From 23fbd99bbc3af0dc982214ec4b4bcd0bf93f299b Mon Sep 17 00:00:00 2001 From: Daan Date: Thu, 11 Nov 2021 12:19:25 +0100 Subject: [PATCH] Build --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7c29a21..de47491 100644 --- a/index.js +++ b/index.js @@ -1 +1 @@ -(function () {function Xb(a){return a&&a.__esModule?{d:a.default}:{d:a}}var Sa=this;var Ij=Nj;var Ff=Qj;for(var Ia=[],Aa=[],Jj="undefined"!=typeof Uint8Array?Uint8Array:Array,Vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nb=0,Kj=Vc.length;nb0)throw new Error("Invalid string. Length must be a multiple of 4");var p=$.indexOf("=");return-1===p&&(p=r),[p,p===r?0:4-p%4]}function Mj($,r,p){return 3*(r+p)/4-p}function Nj($){var r,p,o=Lj($),e=o[0],y=o[1],h=new Jj(Mj($,e,y)),a=0,t=y>0?e-4:e;for(p=0;p>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===y&&(r=Aa[$.charCodeAt(p)]<<2|Aa[$.charCodeAt(p+1)]>>4,h[a++]=255&r),1===y&&(r=Aa[$.charCodeAt(p)]<<10|Aa[$.charCodeAt(p+1)]<<4|Aa[$.charCodeAt(p+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h}function Oj($){return Ia[$>>18&63]+Ia[$>>12&63]+Ia[$>>6&63]+Ia[63&$]}function Pj($,r,p){for(var o,e=[],y=r;yh?h:y+16383));return 1===o?(r=$[p-1],e.push(Ia[r>>2]+Ia[r<<4&63]+"==")):2===o&&(r=($[p-2]<<8)+$[p-1],e.push(Ia[r>>10]+Ia[r>>4&63]+Ia[r<<2&63]+"=")),e.join("")}Aa["-".charCodeAt(0)]=62,Aa["_".charCodeAt(0)]=63;var Yb=function(t,r,o,a,$){var e,p,J=8*$-a-1,N=(1<>1,M=-7,w=o?$-1:0,f=o?-1:1,i=t[r+w];for(w+=f,e=i&(1<<-M)-1,i>>=-M,M+=J;M>0;e=256*e+t[r+w],w+=f,M-=8);for(p=e&(1<<-M)-1,e>>=-M,M+=a;M>0;p=256*p+t[r+w],w+=f,M-=8);if(0===e)e=1-h;else{if(e===N)return p?NaN:1/0*(i?-1:1);p+=Math.pow(2,a),e-=h}return(i?-1:1)*p*Math.pow(2,e-a)};var Gf=function(t,r,o,a,$,e){var p,J,N,h=8*e-$-1,M=(1<>1,f=23===$?Math.pow(2,-24)-Math.pow(2,-77):0,i=a?0:e-1,g=a?1:-1,s=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(J=isNaN(r)?1:0,p=M):(p=Math.floor(Math.log(r)/Math.LN2),r*(N=Math.pow(2,-p))<1&&(p--,N*=2),(r+=p+w>=1?f/N:f*Math.pow(2,1-w))*N>=2&&(p++,N/=2),p+w>=M?(J=0,p=M):p+w>=1?(J=(r*N-1)*Math.pow(2,$),p+=w):(J=r*Math.pow(2,w-1)*Math.pow(2,$),p=0));$>=8;t[o+i]=255&J,i+=g,J/=256,$-=8);for(p=p<<$|J,h+=$;h>0;t[o+i]=255&p,i+=g,p/=256,h-=8);t[o+i-g]|=128*s};var Hf={},Rj={}.toString;Hf=Array.isArray||function(r){return"[object Array]"==Rj.call(r)};var Sj=50;ba.TYPED_ARRAY_SUPPORT=void 0!==Sa.TYPED_ARRAY_SUPPORT?Sa.TYPED_ARRAY_SUPPORT:Tj();var a=Zb();function Tj(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===r.foo()&&"function"==typeof r.subarray&&0===r.subarray(1,1).byteLength}catch(e){return!1}}function Zb(){return ba.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Na(r,e){if(Zb()=Zb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zb().toString(16)+" bytes");return 0|r}function Kf(r,e){if(ba.isBuffer(r))return r.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;"string"!=typeof r&&(r=""+r);var t=r.length;if(0===t)return 0;for(var $=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return ac(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return Tf(r).length;default:if($)return ac(r).length;e=(""+e).toLowerCase(),$=!0;}}function Yj(r,e,t){var $=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return gk(this,e,t);case"utf8":case"utf-8":return Of(this,e,t);case"ascii":return ek(this,e,t);case"latin1":case"binary":return fk(this,e,t);case"base64":return ck(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hk(this,e,t);default:if($)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),$=!0;}}function $a(r,e,t){var $=r[e];r[e]=r[t],r[t]=$}function Lf(r,e,t,$,n){if(0===r.length)return-1;if("string"==typeof t?($=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0){if(!n)return-1;t=0}if("string"==typeof e&&(e=ba.from(e,$)),ba.isBuffer(e))return 0===e.length?-1:Mf(r,e,t,$,n);if("number"==typeof e)return e&=255,ba.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):Mf(r,[e],t,$,n);throw new TypeError("val must be string, number or Buffer")}function Mf(r,e,t,$,n){var s,f=1,h=r.length,a=e.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(r.length<2||e.length<2)return-1;f=2,h/=2,a/=2,t/=2}function i(r,e){return 1===f?r[e]:r.readUInt16BE(e*f)}if(n){var o=-1;for(s=t;sh&&(t=h-a),s=t;s>=0;s--){for(var u=!0,d=0;dn&&($=n):$=n;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");$>s/2&&($=s/2);for(var f=0;f<$;++f){var h=parseInt(e.substr(2*f,2),16);if(isNaN(h))return f;r[t+f]=h}return f}function $j(r,e,t,$){return bc(ac(e,r.length-t),r,t,$)}function Nf(r,e,t,$){return bc(mk(e),r,t,$)}function _j(r,e,t,$){return Nf(r,e,t,$)}function ak(r,e,t,$){return bc(Tf(e),r,t,$)}function bk(r,e,t,$){return bc(nk(e,r.length-t),r,t,$)}function ck(r,e,t){return 0===e&&t===r.length?Ff(r):Ff(r.slice(e,t))}function Of(r,e,t){t=Math.min(r.length,t);for(var $=[],n=e;n239?4:i>223?3:i>191?2:1;if(n+u<=t)switch(u){case 1:i<128&&(o=i);break;case 2:128==(192&(s=r[n+1]))&&(a=(31&i)<<6|63&s)>127&&(o=a);break;case 3:s=r[n+1],f=r[n+2],128==(192&s)&&128==(192&f)&&(a=(15&i)<<12|(63&s)<<6|63&f)>2047&&(a<55296||a>57343)&&(o=a);break;case 4:s=r[n+1],f=r[n+2],h=r[n+3],128==(192&s)&&128==(192&f)&&128==(192&h)&&(a=(15&i)<<18|(63&s)<<12|(63&f)<<6|63&h)>65535&&a<1114112&&(o=a);}null===o?(o=65533,u=1):o>65535&&(o-=65536,$.push(o>>>10&1023|55296),o=56320|1023&o),$.push(o),n+=u}return dk($)}ba.poolSize=8192,ba._augment=function(r){return r.__proto__=ba.prototype,r},ba.from=function(r,e,t){return If(null,r,e,t)},ba.TYPED_ARRAY_SUPPORT&&(ba.prototype.__proto__=Uint8Array.prototype,ba.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ba[Symbol.species]===ba&&Object.defineProperty(ba,Symbol.species,{value:null,configurable:!0})),ba.alloc=function(r,e,t){return Uj(null,r,e,t)},ba.allocUnsafe=function(r){return Wc(null,r)},ba.allocUnsafeSlow=function(r){return Wc(null,r)},ba.isBuffer=function(r){return!(null==r||!r._isBuffer)},ba.compare=function(r,e){if(!ba.isBuffer(r)||!ba.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var t=r.length,$=e.length,n=0,s=Math.min(t,$);n0&&(r=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(r+=" ... ")),""},ba.prototype.compare=function(r,e,t,$,n){if(!ba.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=r?r.length:0),void 0===$&&($=0),void 0===n&&(n=this.length),e<0||t>r.length||$<0||n>this.length)throw new RangeError("out of range index");if($>=n&&e>=t)return 0;if($>=n)return-1;if(e>=t)return 1;if(this===r)return 0;for(var s=(n>>>=0)-($>>>=0),f=(t>>>=0)-(e>>>=0),h=Math.min(s,f),a=this.slice($,n),i=r.slice(e,t),o=0;on)&&(t=n),r.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var s=!1;;)switch($){case"hex":return Zj(this,r,e,t);case"utf8":case"utf-8":return $j(this,r,e,t);case"ascii":return Nf(this,r,e,t);case"latin1":case"binary":return _j(this,r,e,t);case"base64":return ak(this,r,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bk(this,r,e,t);default:if(s)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),s=!0;}},ba.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Pf=4096;function dk(r){var e=r.length;if(e<=Pf)return String.fromCharCode.apply(String,r);for(var t="",$=0;$$)&&(t=$);for(var n="",s=e;st)throw new RangeError("Trying to access beyond buffer length")}function ua(r,e,t,$,n,s){if(!ba.isBuffer(r))throw new TypeError("\"buffer\" argument must be a Buffer instance");if(e>n||er.length)throw new RangeError("Index out of range")}function $b(r,e,t,$){e<0&&(e=65535+e+1);for(var n=0,s=Math.min(r.length-t,2);n>>8*($?n:1-n)}function _b(r,e,t,$){e<0&&(e=4294967295+e+1);for(var n=0,s=Math.min(r.length-t,4);n>>8*($?n:3-n)&255}function Qf(r,e,t,$,n,s){if(t+$>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Rf(r,e,t,$,n){return n||Qf(r,e,t,4,3.4028234663852886e38,-3.4028234663852886e38),Gf(r,e,t,$,23,4),t+4}function Sf(r,e,t,$,n){return n||Qf(r,e,t,8,1.7976931348623157e308,-1.7976931348623157e308),Gf(r,e,t,$,52,8),t+8}ba.prototype.slice=function(r,e){var t,$=this.length;if((r=~~r)<0?(r+=$)<0&&(r=0):r>$&&(r=$),(e=void 0===e?$:~~e)<0?(e+=$)<0&&(e=0):e>$&&(e=$),e0&&(n*=256);)$+=this[r+--e]*n;return $},ba.prototype.readUInt8=function(r,e){return e||oa(r,1,this.length),this[r]},ba.prototype.readUInt16LE=function(r,e){return e||oa(r,2,this.length),this[r]|this[r+1]<<8},ba.prototype.readUInt16BE=function(r,e){return e||oa(r,2,this.length),this[r]<<8|this[r+1]},ba.prototype.readUInt32LE=function(r,e){return e||oa(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},ba.prototype.readUInt32BE=function(r,e){return e||oa(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},ba.prototype.readIntLE=function(r,e,t){r|=0,e|=0,t||oa(r,e,this.length);for(var $=this[r],n=1,s=0;++s=(n*=128)&&($-=Math.pow(2,8*e)),$},ba.prototype.readIntBE=function(r,e,t){r|=0,e|=0,t||oa(r,e,this.length);for(var $=e,n=1,s=this[r+--$];$>0&&(n*=256);)s+=this[r+--$]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},ba.prototype.readInt8=function(r,e){return e||oa(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},ba.prototype.readInt16LE=function(r,e){e||oa(r,2,this.length);var t=this[r]|this[r+1]<<8;return 32768&t?4294901760|t:t},ba.prototype.readInt16BE=function(r,e){e||oa(r,2,this.length);var t=this[r+1]|this[r]<<8;return 32768&t?4294901760|t:t},ba.prototype.readInt32LE=function(r,e){return e||oa(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},ba.prototype.readInt32BE=function(r,e){return e||oa(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},ba.prototype.readFloatLE=function(r,e){return e||oa(r,4,this.length),Yb(this,r,!0,23,4)},ba.prototype.readFloatBE=function(r,e){return e||oa(r,4,this.length),Yb(this,r,!1,23,4)},ba.prototype.readDoubleLE=function(r,e){return e||oa(r,8,this.length),Yb(this,r,!0,52,8)},ba.prototype.readDoubleBE=function(r,e){return e||oa(r,8,this.length),Yb(this,r,!1,52,8)},ba.prototype.writeUIntLE=function(r,e,t,$){(r=+r,e|=0,t|=0,$)||ua(this,r,e,t,Math.pow(2,8*t)-1,0);var n=1,s=0;for(this[e]=255&r;++s=0&&(s*=256);)this[e+n]=r/s&255;return e+t},ba.prototype.writeUInt8=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,1,255,0),ba.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=255&r,e+1},ba.prototype.writeUInt16LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,65535,0),ba.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8):$b(this,r,e,!0),e+2},ba.prototype.writeUInt16BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,65535,0),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=255&r):$b(this,r,e,!1),e+2},ba.prototype.writeUInt32LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,4294967295,0),ba.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=255&r):_b(this,r,e,!0),e+4},ba.prototype.writeUInt32BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,4294967295,0),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r):_b(this,r,e,!1),e+4},ba.prototype.writeIntLE=function(r,e,t,$){if(r=+r,e|=0,!$){var n=Math.pow(2,8*t-1);ua(this,r,e,t,n-1,-n)}var s=0,f=1,h=0;for(this[e]=255&r;++s>0)-h&255;return e+t},ba.prototype.writeIntBE=function(r,e,t,$){if(r=+r,e|=0,!$){var n=Math.pow(2,8*t-1);ua(this,r,e,t,n-1,-n)}var s=t-1,f=1,h=0;for(this[e+s]=255&r;--s>=0&&(f*=256);)r<0&&0===h&&0!==this[e+s+1]&&(h=1),this[e+s]=(r/f>>0)-h&255;return e+t},ba.prototype.writeInt8=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,1,127,-128),ba.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=255&r,e+1},ba.prototype.writeInt16LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,32767,-32768),ba.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8):$b(this,r,e,!0),e+2},ba.prototype.writeInt16BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,32767,-32768),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=255&r):$b(this,r,e,!1),e+2},ba.prototype.writeInt32LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,2147483647,-2147483648),ba.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):_b(this,r,e,!0),e+4},ba.prototype.writeInt32BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r):_b(this,r,e,!1),e+4},ba.prototype.writeFloatLE=function(r,e,t){return Rf(this,r,e,!0,t)},ba.prototype.writeFloatBE=function(r,e,t){return Rf(this,r,e,!1,t)},ba.prototype.writeDoubleLE=function(r,e,t){return Sf(this,r,e,!0,t)},ba.prototype.writeDoubleBE=function(r,e,t){return Sf(this,r,e,!1,t)},ba.prototype.copy=function(r,e,t,$){if(t||(t=0),$||0===$||($=this.length),e>=r.length&&(e=r.length),e||(e=0),$>0&&$=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),r.length-e<$-t&&($=r.length-e+t);var n,s=$-t;if(this===r&&t=0;--n)r[n+e]=this[n+t];else if(s<1e3||!ba.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,t=void 0===t?this.length:t>>>0,r||(r=0),"number"==typeof r)for(s=e;s55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(f+1===$){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=65536+(n-55296<<10|t-56320)}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return s}function mk(r){for(var e=[],t=0;t>8,n=t%256,s.push(n),s.push($);return s}function Tf(r){return Ij(jk(r))}function bc(r,e,t,$){for(var n=0;n<$&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function ok(r){return r!=r}function Eb(e){return(Eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pk(e,t){return rk(e)||tk(e,t)||Uf(e,t)||vk()}function Zc(e){return qk(e)||sk(e)||Uf(e)||uk()}function qk(e){if(Array.isArray(e))return $c(e)}function rk(e){if(Array.isArray(e))return e}function sk(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function tk(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],a=!0,n=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(l){n=!0,o=l}finally{try{a||null==s.return||s.return()}finally{if(n)throw o}}return r}}function Uf(e,t){if(e){if("string"==typeof e)return $c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$c(e,t):void 0}}function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);ru))return!1;var $=s.get(e);if($&&s.get(t))return $==t;var d=-1,f=!0,h=r&o?new Pe:void 0;for(s.set(e,t),s.set(t,e);++d-1},ye.prototype.set=function(e,t){var r=this.__data__,a=xe(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this},Je.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(ce||ye),string:new be}},Je.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Je.prototype.get=function(e){return Fe(this,e).get(e)},Je.prototype.has=function(e){return Fe(this,e).has(e)},Je.prototype.set=function(e,t){var r=Fe(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,a),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new ye,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var a=this.__data__;if(a instanceof ye){var n=a.__data__;if(!ce||n.length-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ge(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return null!=e&&"object"==typeof e}var Ke=L?function(e){return function(t){return e(t)}}(L):function(e){return Qe(e)&&Be(e.length)&&!!O[Oe(e)]};function Ve(e){return null!=(t=e)&&Be(t.length)&&!He(t)?Se(e):Re(e);var t}e.exports=function(e,t){return ke(e,t)}}),Wf={a:["a","\xE0","\xE1","\xE2","\xE3","\xE4","\xE5","\xE6","\u0101","\u0103","\u0105","\u01CE","\u01DF","\u01E1","\u01FB","\u0201","\u0203","\u0227","\u0250","\u0251","\u0252","\u0363","\u0430","\u04D1","\u04D3","\u1D43","\u1D44","\u1D8F","\u1E01","\u1E9A","\u1EA1","\u1EA3","\u1EA5","\u1EA7","\u1EA9","\u1EAB","\u1EAD","\u1EAF","\u1EB1","\u1EB3","\u1EB5","\u1EB7","\u2090","\u2C65","\uFF41"],b:["b","\u0180","\u0183","\u0253","\u15AF","\u1D47","\u1D6C","\u1D80","\u1E03","\u1E05","\u1E07","\uFF42"],c:["c","\xE7","\u0107","\u0109","\u010B","\u010D","\u0188","\u023C","\u0255","\u0368","\u1D04","\u1D9C","\u1E09","\u2184","\uFF43"],d:["d","\u010F","\u0111","\u018B","\u018C","\u0221","\u0256","\u0257","\u0369","\u1D48","\u1D6D","\u1D81","\u1D91","\u1E0B","\u1E0D","\u1E0F","\u1E11","\u1E13","\uFF44"],e:["e","\xE8","\xE9","\xEA","\xEB","\u0113","\u0115","\u0117","\u0119","\u011B","\u01DD","\u0205","\u0207","\u0229","\u0247","\u0258","\u0364","\u1D49","\u1D92","\u1E15","\u1E17","\u1E19","\u1E1B","\u1E1D","\u1EB9","\u1EBB","\u1EBD","\u1EBF","\u1EC1","\u1EC3","\u1EC5","\u1EC7","\u2091","\uFF45"],f:["f","\u0192","\u1D6E","\u1D82","\u1DA0","\u1E1F","\uFF46"],g:["g","\u011D","\u011F","\u0121","\u0123","\u01E5","\u01E7","\u01F5","\u0260","\u0261","\u1D4D","\u1D77","\u1D79","\u1D83","\u1DA2","\u1E21","\uFF47"],h:["h","\u0125","\u0127","\u0195","\u021F","\u0265","\u0266","\u02AE","\u02AF","\u02B0","\u02B1","\u036A","\u04BA","\u04BB","\u144B","\u1DA3","\u1E23","\u1E25","\u1E27","\u1E29","\u1E2B","\u2C68","\uFF48"],i:["i","\xEC","\xED","\xEE","\xEF","\u0129","\u012B","\u012D","\u012F","\u01D0","\u0209","\u020B","\u0268","\u0365","\u1D09","\u1D4E","\u1D62","\u1D96","\u1DA4","\u1E2D","\u1E2F","\u1EC9","\u1ECB","\uFF49"],j:["j","\u0135","\u01F0","\u0249","\u029D","\u02B2","\u1DA1","\u1DA8","\uFF4A"],k:["k","\u0137","\u0199","\u01E9","\u029E","\u1D4F","\u1D84","\u1E31","\u1E33","\u1E35","\u2C6A","\uFF4B"],l:["l","\u013A","\u013C","\u013E","\u0140","\u0142","\u019A","\u0234","\u026B","\u026C","\u026D","\u02E1","\u1D85","\u1DA9","\u1DAA","\u1E37","\u1E39","\u1E3B","\u1E3D","\u2113","\u2C61"],m:["m","\u026F","\u0270","\u0271","\u036B","\u1D1F","\u1D50","\u1D5A","\u1D6F","\u1D86","\u1DAC","\u1DAD","\u1E3F","\u1E41","\u1E43","\u33A1","\u33A5","\uFF4D"],n:["n","\xF1","\u0144","\u0146","\u0148","\u0149","\u019E","\u01F9","\u0235","\u0272","\u0273","\u1D70","\u1D87","\u1DAE","\u1DAF","\u1E45","\u1E47","\u1E49","\u1E4B","\u207F","\uFF4E"],o:["o","\xF2","\xF3","\xF4","\xF5","\xF6","\xF8","\u014D","\u014F","\u0151","\u01A1","\u01D2","\u01EB","\u01ED","\u01FF","\u020D","\u020F","\u022B","\u022D","\u022F","\u0231","\u0275","\u0366","\u043E","\u04E7","\u04E9","\u1D0F","\u1D11","\u1D13","\u1D3C","\u1D52","\u1DB1","\u1E4D","\u1E4F","\u1E51","\u1E53","\u1ECD","\u1ECF","\u1ED1","\u1ED3","\u1ED5","\u1ED7","\u1ED9","\u1EDB","\u1EDD","\u1EDF","\u1EE1","\u1EE3","\u2092","\uFF4F","\uD801\uDC2C"],p:["p","\u1D56","\u1D71","\u1D7D","\u1D88","\u1E55","\u1E57","\uFF50"],q:["q","\u024B","\u02A0","\u16E9","\uFF51"],r:["r","\u0155","\u0157","\u0159","\u0211","\u0213","\u024D","\u0279","\u027B","\u02B3","\u02B4","\u02B5","\u036C","\u1D63","\u1D72","\u1D89","\u1E59","\u1E5B","\u1E5D","\u1E5F"],s:["s","\u015B","\u015D","\u015F","\u0161","\u0219","\u0282","\u1506","\u1D8A","\u1E61","\u1E63","\u1E65","\u1E67","\u1E69","\uFF53"],t:["t","\u0163","\u0165","\u0167","\u01AB","\u01AD","\u021B","\u0287","\u036D","\u1D40","\u1D57","\u1D75","\u1DB5","\u1E6B","\u1E6D","\u1E6F","\u1E71","\u1E97","\uFF54"],u:["u","\xF9","\xFA","\xFB","\xFC","\u0169","\u016B","\u016D","\u016F","\u0171","\u0173","\u01B0","\u01D4","\u01D6","\u01D8","\u01DA","\u01DC","\u0215","\u0217","\u0367","\u07CE","\u1D58","\u1D64","\u1E73","\u1E75","\u1E77","\u1E79","\u1E7B","\u1EE5","\u1EE7","\u1EE9","\u1EEB","\u1EED","\u1EEF","\u1EF1","\uFF55"],v:["v","\u028B","\u036E","\u1D5B","\u1D65","\u1DB9","\u1E7D","\u1E7F","\u2C71","\uFF56","\u2C74"],w:["w","\u0175","\u02B7","\u1D42","\u1E81","\u1E83","\u1E85","\u1E87","\u1E89","\u1E98","\u2C73","\uFF57"],x:["x","\u033D","\u0353","\u1D8D","\u036F","\u1E8B","\u1E8D","\u2093","\uFF58"],y:["y","\xFD","\xFF","\u0177","\u0233","\u024F","\u02B8","\u1E8F","\u1EF3","\u1EF5","\u1EF7","\u1EF9","\uFF59"],z:["z","\u017A","\u017C","\u017E","\u01B6","\u0225","\u0240","\u0290","\u0291","\u1646","\u1647","\u1DBB","\u1DBC","\u1DBD","\u1E91","\u1E93","\u1E95","\u2C6C","\uFF5A"]},Xf=function(){var e={};for(var t in Wf){var r=Wf[t];for(var a in r){var n=r[a];n!==t&&(e[n]=t)}}return e}(),zk=/[^a-z0-9\s,.-]/,bd=function(e){if(-1===e.search(zk))return e;for(var t="",r=e.length,a=0;a2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)return!1;var n=r?String(e).toLowerCase():bd(Yf(String(e)).toLowerCase()),o=r?t.toLowerCase():bd(Yf(t).toLowerCase());return a?n===o:n.indexOf(o)>-1},compare:function(e,t){function r(e){return null==e?"":bd(String(e).toLowerCase())}return(e=r(e))<(t=r(t))?-1:e>t?1:0}},Ak={name:"VgtPaginationPageInfo",props:{currentPage:{default:1},lastPage:{default:1},totalRecords:{default:0},ofText:{default:"of",type:String},pageText:{default:"page",type:String},currentPerPage:{},mode:{default:Vf.Records},infoFn:{default:null}},data:function(){return{id:this.getId()}},computed:{pageInfo:function(){return"".concat(this.ofText," ").concat(this.lastPage)},firstRecordOnPage:function(){return(this.currentPage-1)*this.currentPerPage+1},lastRecordOnPage:function(){return-1===this.currentPerPage?this.totalRecords:Math.min(this.totalRecords,this.currentPage*this.currentPerPage)},recordInfo:function(){var e=this.firstRecordOnPage,t=this.lastRecordOnPage;return 0===t&&(e=0),"".concat(e," - ").concat(t," ").concat(this.ofText," ").concat(this.totalRecords)},infoParams:function(){var e=this.firstRecordOnPage,t=this.lastRecordOnPage;return 0===t&&(e=0),{firstRecordOnPage:e,lastRecordOnPage:t,totalRecords:this.totalRecords,currentPage:this.currentPage,totalPage:this.lastPage}}},methods:{getId:function(){return"vgt-page-input-".concat(Math.floor(Math.random()*Date.now()))},changePage:function(e){var t=parseInt(e.target.value,10);if(Number.isNaN(t)||t>this.lastPage||t<1)return e.target.value=this.currentPage,!1;e.target.value=t,this.$emit("page-changed",t)}},mounted:function(){},components:{}};function _a(e,t,r,a,n,o,i,s,l,u){"boolean"!=typeof i&&(l=s,s=i,i=!1);const c="function"==typeof r?r.options:r;let $;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),a&&(c._scopeId=a),o?($=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=$):t&&($=i?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),$)if(c.functional){const e=c.render;c.render=function(t,r){return $.call(r),e(t,r)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,$):[$]}return r}var Bk=Ak,Ck=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"footer__navigation__page-info"},[e.infoFn?r("div",[e._v("\n "+e._s(e.infoFn(e.infoParams))+"\n ")]):"pages"===e.mode?r("form",{on:{submit:function(e){e.preventDefault()}}},[r("label",{staticClass:"page-info__label",attrs:{for:e.id}},[r("span",[e._v(e._s(e.pageText))]),e._v(" "),r("input",{staticClass:"footer__navigation__page-info__current-entry",attrs:{id:e.id,"aria-describedby":"change-page-hint","aria-controls":"vgb-table",type:"text"},domProps:{value:e.currentPage},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.changePage(t))}}}),e._v(" "),r("span",[e._v(e._s(e.pageInfo))])]),e._v(" "),r("span",{staticStyle:{display:"none"},attrs:{id:"change-page-hint"}},[e._v("\n Type a page number and press Enter to change the page.\n ")])]):r("div",[e._v("\n "+e._s(e.recordInfo)+"\n ")])])},Dk=[],Ek=void 0,Fk="data-v-347cbcfa",Gk=void 0,Hk=!1,Ik=_a({render:Ck,staticRenderFns:Dk},Ek,Bk,Fk,Hk,Gk,!1,void 0,void 0,void 0),Jk={name:"VgtPagination",props:{styleClass:{default:"table table-bordered"},total:{default:null},perPage:{},rtl:{default:!1},perPageDropdownEnabled:{default:!0},customRowsPerPageDropdown:{default:function(){return[]}},paginateDropdownAllowAll:{default:!0},mode:{default:Vf.Records},jumpFirstOrLast:{default:!1},firstText:{default:"First"},lastText:{default:"Last"},nextText:{default:"Next"},prevText:{default:"Prev"},rowsPerPageText:{default:"Rows per page:"},ofText:{default:"of"},pageText:{default:"page"},allText:{default:"All"},infoFn:{default:null}},data:function(){return{id:this.getId(),currentPage:1,prevPage:0,currentPerPage:10,rowsPerPageOptions:[]}},watch:{perPage:{handler:function(e,t){this.handlePerPage(),this.perPageChanged(t)},immediate:!0},customRowsPerPageDropdown:function(){this.handlePerPage()},total:{handler:function(e,t){-1===this.rowsPerPageOptions.indexOf(this.currentPerPage)&&(this.currentPerPage=e)}}},computed:{pagesCount:function(){if(-1===this.currentPerPage)return 1;var e=Math.floor(this.total/this.currentPerPage);return 0===this.total%this.currentPerPage?e:e+1},firstIsPossible:function(){return this.currentPage>1},lastIsPossible:function(){return this.currentPage1}},methods:{getId:function(){return"vgt-select-rpp-".concat(Math.floor(Math.random()*Date.now()))},changePage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e>0&&this.total>this.currentPerPage*(e-1)&&(this.prevPage=this.currentPage,this.currentPage=e,this.pageChanged(t))},firstPage:function(){this.firstIsPossible&&(this.currentPage=1,this.prevPage=0,this.pageChanged())},lastPage:function(){this.lastIsPossible&&(this.currentPage=this.pagesCount,this.prev=this.currentPage-1,this.pageChanged())},nextPage:function(){this.nextIsPossible&&(this.prevPage=this.currentPage,++this.currentPage,this.pageChanged())},previousPage:function(){this.prevIsPossible&&(this.prevPage=this.currentPage,--this.currentPage,this.pageChanged())},pageChanged:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={currentPage:this.currentPage,prevPage:this.prevPage};e||(t.noEmit=!0),this.$emit("page-changed",t)},perPageChanged:function(e){e&&this.$emit("per-page-changed",{currentPerPage:this.currentPerPage}),this.changePage(1,!1)},handlePerPage:function(){if(null!==this.customRowsPerPageDropdown&&Array.isArray(this.customRowsPerPageDropdown)&&0!==this.customRowsPerPageDropdown.length?this.rowsPerPageOptions=JSON.parse(JSON.stringify(this.customRowsPerPageDropdown)):this.rowsPerPageOptions=JSON.parse(JSON.stringify(xk)),this.perPage){this.currentPerPage=this.perPage;for(var e=!1,t=0;t0&&void 0!==arguments[0]&&arguments[0];this.columnFilters={},e&&this.$emit("filter-changed",this.columnFilters)},isFilterable:function(e){return e.filterOptions&&e.filterOptions.enabled},isDropdown:function(e){return this.isFilterable(e)&&e.filterOptions.filterDropdownItems&&e.filterOptions.filterDropdownItems.length},isDropdownObjects:function(e){return this.isDropdown(e)&&"object"===Eb(e.filterOptions.filterDropdownItems[0])},isDropdownArray:function(e){return this.isDropdown(e)&&"object"!==Eb(e.filterOptions.filterDropdownItems[0])},getClasses:function(e){var t="filter-th";return e.filterOptions&&e.filterOptions.styleClass?[t].concat(Zc(e.filterOptions.styleClass.split(" "))).join(" "):t},getPlaceholder:function(e){return this.isFilterable(e)&&e.filterOptions.placeholder||"Filter ".concat(e.label)},getName:function(e){return"vgt-".concat(this.fieldKey(e.field))},updateFiltersOnEnter:function(e,t){this.timer&&clearTimeout(this.timer),this.updateFiltersImmediately(e.field,t)},updateFiltersOnKeyup:function(e,t){"enter"!==e.filterOptions.trigger&&this.updateFilters(e,t)},updateSlotFilter:function(e,t){var r=e.filterOptions.slotFilterField||e.field;"function"==typeof e.filterOptions.formatValue&&(t=e.filterOptions.formatValue(t)),this.updateFiltersImmediately(r,t)},updateFilters:function(e,t){var r=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){r.updateFiltersImmediately(e.field,t)},400)},updateFiltersImmediately:function(e,t){this.$set(this.columnFilters,this.fieldKey(e),t),this.$emit("filter-changed",this.columnFilters)},populateInitialFilters:function(){for(var e=0;e1?"s":"")+" required, but only "+t.length+" present")}function pa(e){ma(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function El(e,t){ma(2,arguments);var r=pa(e).getTime(),a=ia(t);return new Date(r+a)}var dc=6e4;function $f(e){return e.getTime()%dc}function _f(e){var t=new Date(e.getTime()),r=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var a=r>0?(dc+$f(t))%dc:$f(t);return r*dc+a}function Fl(e,t){ma(2,arguments);var r=pa(e),a=pa(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}function ec(e){ma(1,arguments);var t=pa(e);return!isNaN(t)}var fc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Gl(e,t,r){var a;return r=r||{},a="string"==typeof fc[e]?fc[e]:1===t?fc[e].one:fc[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?"in "+a:a+" ago":a}function cd(e){return function(t){var r=t||{},a=r.width?String(r.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var Hl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Il={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kl={date:cd({formats:Hl,defaultWidth:"full"}),time:cd({formats:Il,defaultWidth:"full"}),dateTime:cd({formats:Jl,defaultWidth:"full"})},Ll={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ml(e,t,r,a){return Ll[e]}function Hb(e){return function(t,r){var a,n=r||{};if("formatting"===(n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=n.width?String(n.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[s]}return a[e.argumentCallback?e.argumentCallback(t):t]}}var Nl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ql={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Rl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Sl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function Tl(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";}return r+"th"}var Ul={ordinalNumber:Tl,era:Hb({values:Nl,defaultWidth:"wide"}),quarter:Hb({values:Ol,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Hb({values:Pl,defaultWidth:"wide"}),day:Hb({values:Ql,defaultWidth:"wide"}),dayPeriod:Hb({values:Rl,defaultWidth:"wide",formattingValues:Sl,defaultFormattingWidth:"wide"})};function Vl(e){return function(t,r){var a=String(t),n=r||{},o=a.match(e.matchPattern);if(!o)return null;var i=o[0],s=a.match(e.parsePattern);if(!s)return null;var l=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:a.slice(i.length)}}}function Ib(e){return function(t,r){var a=String(t),n=r||{},o=n.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=a.match(i);if(!s)return null;var l,u=s[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(c)?Xl(c,function(e){return e.test(u)}):Wl(c,function(e){return e.test(u)}),l=e.valueCallback?e.valueCallback(l):l,{value:l=n.valueCallback?n.valueCallback(l):l,rest:a.slice(u.length)}}}function Wl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Xl(e,t){for(var r=0;r0?r:1-r;return fa("yy"===t?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):fa(r+1,2)},d:function(e,t){return fa(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m.";}},h:function(e,t){return fa(e.getUTCHours()%12||12,t.length)},H:function(e,t){return fa(e.getUTCHours(),t.length)},m:function(e,t){return fa(e.getUTCMinutes(),t.length)},s:function(e,t){return fa(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds();return fa(Math.floor(a*Math.pow(10,r-3)),t.length)}},jm=864e5;function km(e){ma(1,arguments);var t=pa(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=r-t.getTime();return Math.floor(a/jm)+1}function pb(e){ma(1,arguments);var t=pa(e),r=t.getUTCDay(),a=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function cg(e){ma(1,arguments);var t=pa(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=pb(a),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=pb(o);return t.getTime()>=n.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function lm(e){ma(1,arguments);var t=cg(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),pb(r)}var mm=6048e5;function dg(e){ma(1,arguments);var t=pa(e),r=pb(t).getTime()-lm(t).getTime();return Math.round(r/mm)+1}function ab(e,t){ma(1,arguments);var r=t||{},a=r.locale,n=a&&a.options&&a.options.weekStartsOn,o=null==n?0:ia(n),i=null==r.weekStartsOn?o:ia(r.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=pa(e),l=s.getUTCDay(),u=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(a+1,0,l),u.setUTCHours(0,0,0,0);var c=ab(u,t),$=new Date(0);$.setUTCFullYear(a,0,l),$.setUTCHours(0,0,0,0);var d=ab($,t);return r.getTime()>=c.getTime()?a+1:r.getTime()>=d.getTime()?a:a-1}function nm(e,t){ma(1,arguments);var r=t||{},a=r.locale,n=a&&a.options&&a.options.firstWeekContainsDate,o=null==n?1:ia(n),i=null==r.firstWeekContainsDate?o:ia(r.firstWeekContainsDate),s=dd(e,t),l=new Date(0);return l.setUTCFullYear(s,0,i),l.setUTCHours(0,0,0,0),ab(l,t)}var om=6048e5;function eg(e,t){ma(1,arguments);var r=pa(e),a=ab(r,t).getTime()-nm(r,t).getTime();return Math.round(a/om)+1}var qb={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pm={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"});}},y:function(e,t,r){if("yo"===t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return Ta.y(e,t)},Y:function(e,t,r,a){var n=dd(e,a),o=n>0?n:1-n;return"YY"===t?fa(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):fa(o,t.length)},R:function(e,t){return fa(cg(e),t.length)},u:function(e,t){return fa(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return fa(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"});}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return fa(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"});}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ta.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"});}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return fa(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"});}},w:function(e,t,r,a){var n=eg(e,a);return"wo"===t?r.ordinalNumber(n,{unit:"week"}):fa(n,t.length)},I:function(e,t,r){var a=dg(e);return"Io"===t?r.ordinalNumber(a,{unit:"week"}):fa(a,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ta.d(e,t)},D:function(e,t,r){var a=km(e);return"Do"===t?r.ordinalNumber(a,{unit:"dayOfYear"}):fa(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"});}},e:function(e,t,r,a){var n=e.getUTCDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return fa(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"});}},c:function(e,t,r,a){var n=e.getUTCDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return fa(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"});}},i:function(e,t,r){var a=e.getUTCDay(),n=0===a?7:a;switch(t){case"i":return String(n);case"ii":return fa(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"});}},a:function(e,t,r){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"});}},b:function(e,t,r){var a,n=e.getUTCHours();switch(a=12===n?qb.noon:0===n?qb.midnight:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"});}},B:function(e,t,r){var a,n=e.getUTCHours();switch(a=n>=17?qb.evening:n>=12?qb.afternoon:n>=4?qb.morning:qb.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"});}},h:function(e,t,r){if("ho"===t){var a=e.getUTCHours()%12;return 0===a&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ta.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ta.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(a,{unit:"hour"}):fa(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return 0===a&&(a=24),"ko"===t?r.ordinalNumber(a,{unit:"hour"}):fa(a,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ta.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ta.s(e,t)},S:function(e,t){return Ta.S(e,t)},X:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return gg(n);case"XXXX":case"XX":return bb(n);case"XXXXX":case"XXX":default:return bb(n,":");}},x:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();switch(t){case"x":return gg(n);case"xxxx":case"xx":return bb(n);case"xxxxx":case"xxx":default:return bb(n,":");}},O:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fg(n,":");case"OOOO":default:return"GMT"+bb(n,":");}},z:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fg(n,":");case"zzzz":default:return"GMT"+bb(n,":");}},t:function(e,t,r,a){var n=a._originalDate||e;return fa(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,a){return fa((a._originalDate||e).getTime(),t.length)}};function fg(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),o=a%60;if(0===o)return r+String(n);var i=t||"";return r+String(n)+i+fa(o,2)}function gg(e,t){return e%60==0?(e>0?"-":"+")+fa(Math.abs(e)/60,2):bb(e,t)}function bb(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e);return a+fa(Math.floor(n/60),2)+r+fa(n%60,2)}function hg(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"});}}function ig(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"});}}function qm(e,t){var r,a=e.match(/(P+)(p+)?/),n=a[1],o=a[2];if(!o)return hg(e,t);switch(n){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});}return r.replace("{{date}}",hg(n,t)).replace("{{time}}",ig(o,t))}var jg={p:ig,P:qm},rm=["D","DD"],sm=["YY","YYYY"];function kg(e){return-1!==rm.indexOf(e)}function lg(e){return-1!==sm.indexOf(e)}function gc(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var tm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,um=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vm=/^'([^]*?)'?$/,wm=/''/g,xm=/[a-zA-Z]/;function ym(e,t,r){ma(2,arguments);var a=String(t),n=r||{},o=n.locale||ag,i=o.options&&o.options.firstWeekContainsDate,s=null==i?1:ia(i),l=null==n.firstWeekContainsDate?s:ia(n.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:ia(u),$=null==n.weekStartsOn?c:ia(n.weekStartsOn);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var d=pa(e);if(!ec(d))throw new RangeError("Invalid time value");var f=bg(d,_f(d)),h={firstWeekContainsDate:l,weekStartsOn:$,locale:o,_originalDate:d};return a.match(um).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,jg[t])(e,o.formatLong,h):e}).join("").match(tm).map(function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return zm(r);var i=pm[a];if(i)return!n.useAdditionalWeekYearTokens&&lg(r)&&gc(r,t,e),!n.useAdditionalDayOfYearTokens&&kg(r)&&gc(r,t,e),i(f,r,o.localize,h);if(a.match(xm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")}function zm(e){return e.match(vm)[1].replace(wm,"'")}function Am(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function ed(e,t,r){ma(2,arguments);var a=r||{},n=a.locale,o=n&&n.options&&n.options.weekStartsOn,i=null==o?0:ia(o),s=null==a.weekStartsOn?i:ia(a.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=pa(e),u=ia(t),c=((u%7+7)%70,n=a?t:1-t;if(n<=50)r=e||100;else{var o=n+50;r=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return a?r:1-r}var Hm=[31,28,31,30,31,30,31,31,30,31,30,31],Im=[31,29,31,30,31,30,31,31,30,31,30,31];function pg(e){return e%400==0||e%4==0&&e%100!=0}var Jm={G:{priority:140,parse:function(e,t,r,a){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});}},set:function(e,t,r,a){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,r,a){var n=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ja(4,e,n);case"yo":return r.ordinalNumber(e,{unit:"year",valueCallback:n});default:return ja(t.length,e,n);}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,a){var n=e.getUTCFullYear();if(r.isTwoDigitYear){var o=og(r.year,n);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,r,a){var n=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ja(4,e,n);case"Yo":return r.ordinalNumber(e,{unit:"year",valueCallback:n});default:return ja(t.length,e,n);}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,a){var n=dd(e,a);if(r.isTwoDigitYear){var o=og(r.year,n);return e.setUTCFullYear(o,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ab(e,a)}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ab(e,a)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,r,a){return ng("R"===t?4:t.length,e)},set:function(e,t,r,a){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),pb(n)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,r,a){return ng("u"===t?4:t.length,e)},set:function(e,t,r,a){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,r,a){switch(t){case"Q":case"QQ":return ja(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,a){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,r,a){switch(t){case"q":case"qq":return ja(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,a){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,r,a){var n=function(e){return e-1};switch(t){case"M":return ha(ka.month,e,n);case"MM":return ja(2,e,n);case"Mo":return r.ordinalNumber(e,{unit:"month",valueCallback:n});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,a){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,r,a){var n=function(e){return e-1};switch(t){case"L":return ha(ka.month,e,n);case"LL":return ja(2,e,n);case"Lo":return r.ordinalNumber(e,{unit:"month",valueCallback:n});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,a){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,r,a){switch(t){case"w":return ha(ka.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,a){return ab(Dm(e,r,a),a)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,r,a){switch(t){case"I":return ha(ka.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,a){return pb(Cm(e,r,a),a)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,r,a){switch(t){case"d":return ha(ka.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return ja(t.length,e);}},validate:function(e,t,r){var a=pg(e.getUTCFullYear()),n=e.getUTCMonth();return a?t>=1&&t<=Im[n]:t>=1&&t<=Hm[n]},set:function(e,t,r,a){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,r,a){switch(t){case"D":case"DD":return ha(ka.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return ja(t.length,e);}},validate:function(e,t,r){return pg(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,r,a){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,r,a){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,a){return(e=ed(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,r,a){var n=function(e){var t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ja(t.length,e,n);case"eo":return r.ordinalNumber(e,{unit:"day",valueCallback:n});case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,a){return(e=ed(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,r,a){var n=function(e){var t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ja(t.length,e,n);case"co":return r.ordinalNumber(e,{unit:"day",valueCallback:n});case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,a){return(e=ed(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,r,a){var n=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ja(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting",valueCallback:n})||r.day(e,{width:"short",context:"formatting",valueCallback:n})||r.day(e,{width:"narrow",context:"formatting",valueCallback:n});case"iiiii":return r.day(e,{width:"narrow",context:"formatting",valueCallback:n});case"iiiiii":return r.day(e,{width:"short",context:"formatting",valueCallback:n})||r.day(e,{width:"narrow",context:"formatting",valueCallback:n});case"iiii":default:return r.day(e,{width:"wide",context:"formatting",valueCallback:n})||r.day(e,{width:"abbreviated",context:"formatting",valueCallback:n})||r.day(e,{width:"short",context:"formatting",valueCallback:n})||r.day(e,{width:"narrow",context:"formatting",valueCallback:n});}},validate:function(e,t,r){return t>=1&&t<=7},set:function(e,t,r,a){return(e=Bm(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,r,a){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,a){return e.setUTCHours(fd(r),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,r,a){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,a){return e.setUTCHours(fd(r),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,r,a){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,a){return e.setUTCHours(fd(r),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,r,a){switch(t){case"h":return ha(ka.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=12},set:function(e,t,r,a){var n=e.getUTCHours()>=12;return n&&r<12?e.setUTCHours(r+12,0,0,0):n||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,r,a){switch(t){case"H":return ha(ka.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=23},set:function(e,t,r,a){return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,r,a){switch(t){case"K":return ha(ka.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,a){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,r,a){switch(t){case"k":return ha(ka.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=24},set:function(e,t,r,a){var n=r<=24?r%24:r;return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,r,a){switch(t){case"m":return ha(ka.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,a){return e.setUTCMinutes(r,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,r,a){switch(t){case"s":return ha(ka.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,a){return e.setUTCSeconds(r,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,r,a){return ja(t.length,e,function(e){return Math.floor(e*Math.pow(10,3-t.length))})},set:function(e,t,r,a){return e.setUTCMilliseconds(r),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,r,a){switch(t){case"X":return Ka(Ja.basicOptionalMinutes,e);case"XX":return Ka(Ja.basic,e);case"XXXX":return Ka(Ja.basicOptionalSeconds,e);case"XXXXX":return Ka(Ja.extendedOptionalSeconds,e);case"XXX":default:return Ka(Ja.extended,e);}},set:function(e,t,r,a){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,r,a){switch(t){case"x":return Ka(Ja.basicOptionalMinutes,e);case"xx":return Ka(Ja.basic,e);case"xxxx":return Ka(Ja.basicOptionalSeconds,e);case"xxxxx":return Ka(Ja.extendedOptionalSeconds,e);case"xxx":default:return Ka(Ja.extended,e);}},set:function(e,t,r,a){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,r,a){return mg(e)},set:function(e,t,r,a){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,r,a){return mg(e)},set:function(e,t,r,a){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Km=10,Lm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nm=/^'([^]*?)'?$/,Om=/''/g,Pm=/\S/,Qm=/[a-zA-Z]/;function qg(e,t,r,a){ma(3,arguments);var n=String(e),o=String(t),i=a||{},s=i.locale||ag;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,u=null==l?1:ia(l),c=null==i.firstWeekContainsDate?u:ia(i.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=s.options&&s.options.weekStartsOn,d=null==$?0:ia($),f=null==i.weekStartsOn?d:ia(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===n?pa(r):new Date(NaN);var h,v={firstWeekContainsDate:c,weekStartsOn:f,locale:s},w=[{priority:Km,subPriority:-1,set:Rm,index:0}],g=o.match(Mm).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,jg[t])(e,s.formatLong,v):e}).join("").match(Lm),p=[];for(h=0;h0&&Pm.test(n))return new Date(NaN);var S=w.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,r){return r.indexOf(e)===t}).map(function(e){return w.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),x=pa(r);if(isNaN(x))return new Date(NaN);var O=bg(x,_f(x)),D={};for(h=0;h=0?parseFloat(e):parseInt(e,10)}return(e="number"==typeof e?e:r(e))<(t="number"==typeof t?t:r(t))?-1:e>t?1:0};var Um=Object.freeze({__proto__:null,default:cb}),rg=Object.assign({},cb);rg.format=function(e){return null==e?"":parseFloat(Math.round(100*e)/100).toFixed(2)};var Vm=Object.freeze({__proto__:null,default:rg}),sg=Object.assign({},cb);sg.format=function(e){return null==e?"":"".concat(parseFloat(100*e).toFixed(2),"%")};var Wm=Object.freeze({__proto__:null,default:sg}),Jb=Object.assign({},ob);Jb.isRight=!0,Jb.filterPredicate=function(e,t){return 0===Jb.compare(e,t)},Jb.compare=function(e,t){function r(e){return"boolean"==typeof e?e?1:0:"string"==typeof e?"true"===e?1:0:-1/0}return(e=r(e))<(t=r(t))?-1:e>t?1:0};var Xm=Object.freeze({__proto__:null,default:Jb}),Ym={date:Tm,decimal:Vm,number:Um,percentage:Wm,boolean:Xm},tg={},ug=Ym;Object.keys(ug).forEach(function(e){var t=e.replace(/^\.\//,"").replace(/\.js/,"");tg[t]=ug[e].default});var Zm={name:"vue-good-table",props:{isLoading:{default:null,type:Boolean},maxHeight:{default:null,type:String},fixedHeader:Boolean,theme:{default:""},mode:{default:"local"},totalRows:{},styleClass:{default:"vgt-table bordered"},columns:{},rows:{},lineNumbers:Boolean,responsive:{default:!0,type:Boolean},rtl:Boolean,rowStyleClass:{default:null,type:[Function,String]},compactMode:Boolean,groupOptions:{default:function(){return{enabled:!1,collapsable:!1,rowKey:null}}},selectOptions:{default:function(){return{enabled:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",disableSelectInfo:!1,selectAllByGroup:!1}}},sortOptions:{default:function(){return{enabled:!0,multipleColumns:!0,initialSortBy:{}}}},paginationOptions:{default:function(){var e;return Fb(e={enabled:!1,position:"bottom",perPage:10,perPageDropdown:null,perPageDropdownEnabled:!0},"position","bottom"),Fb(e,"dropdownAllowAll",!0),Fb(e,"mode","records"),Fb(e,"infoFn",null),Fb(e,"jumpFirstOrLast",!1),e}},searchOptions:{default:function(){return{enabled:!1,trigger:null,externalQuery:null,searchFn:null,placeholder:"Search Table"}}}},data:function(){return{tableLoading:!1,firstText:"First",lastText:"Last",nextText:"Next",prevText:"Previous",rowsPerPageText:"Rows per page",ofText:"of",allText:"All",pageText:"page",selectable:!1,selectOnCheckboxOnly:!1,selectAllByPage:!0,disableSelectInfo:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",maintainExpanded:!0,expandedRowKeys:new Set,sortable:!0,defaultSortBy:null,multipleColumnSort:!0,searchEnabled:!1,searchTrigger:null,externalSearchQuery:null,searchFn:null,searchPlaceholder:"Search Table",searchSkipDiacritics:!1,perPage:null,paginate:!1,paginateOnTop:!1,paginateOnBottom:!0,customRowsPerPageDropdown:[],paginateDropdownAllowAll:!0,paginationMode:"records",paginationInfoFn:null,currentPage:1,currentPerPage:10,sorts:[],globalSearchTerm:"",filteredRows:[],columnFilters:{},forceSearch:!1,sortChanged:!1,dataTypes:tg||{}}},watch:{rows:{handler:function(){this.$emit("update:isLoading",!1),this.filterRows(this.columnFilters,!1)},deep:!0,immediate:!0},selectOptions:{handler:function(){this.initializeSelect()},deep:!0,immediate:!0},paginationOptions:{handler:function(e,t){ad(e,t)||this.initializePagination()},deep:!0,immediate:!0},searchOptions:{handler:function(){void 0!==this.searchOptions.externalQuery&&this.searchOptions.externalQuery!==this.searchTerm&&(this.externalSearchQuery=this.searchOptions.externalQuery,this.handleSearch()),this.initializeSearch()},deep:!0,immediate:!0},sortOptions:{handler:function(e,t){ad(e,t)||this.initializeSort()},deep:!0},selectedRows:function(e,t){ad(e,t)||this.$emit("on-selected-rows-change",{selectedRows:this.selectedRows})}},computed:{tableStyles:function(){return this.compactMode?this.tableStyleClasses+"vgt-compact":this.tableStyleClasses},hasFooterSlot:function(){return!!this.$slots["table-actions-bottom"]},wrapperStyles:function(){return{overflow:"scroll-y",maxHeight:this.maxHeight?this.maxHeight:"auto"}},rowKeyField:function(){return this.groupOptions.rowKey||"vgt_header_id"},hasHeaderRowTemplate:function(){return!!this.$slots["table-header-row"]||!!this.$scopedSlots["table-header-row"]},showEmptySlot:function(){return!this.paginated.length||"no groups"===this.paginated[0].label&&!this.paginated[0].children.length},allSelected:function(){return this.selectedRowCount>0&&(this.selectAllByPage&&this.selectedPageRowsCount===this.totalPageRowCount||!this.selectAllByPage&&this.selectedRowCount===this.totalRowCount)},allSelectedIndeterminate:function(){return!this.allSelected&&(this.selectAllByPage&&this.selectedPageRowsCount>0||!this.selectAllByPage&&this.selectedRowCount>0)},selectionInfo:function(){return"".concat(this.selectedRowCount," ").concat(this.selectionText)},selectedRowCount:function(){return this.selectedRows.length},selectedPageRowsCount:function(){return this.selectedPageRows.length},selectedPageRows:function(){var e=[];return this.paginated.forEach(function(t){t.children.forEach(function(t){t.vgtSelected&&e.push(t)})}),e},selectedRows:function(){var e=[];return this.processedRows.forEach(function(t){t.children.forEach(function(t){t.vgtSelected&&e.push(t)})}),e.sort(function(e,t){return e.originalIndex-t.originalIndex})},fullColspan:function(){for(var e=0,t=0;t=t.length||-1===this.currentPerPage)&&(this.currentPage=1,r=0);var a=t.length+1;-1!==this.currentPerPage&&(a=this.currentPage*this.currentPerPage),t=t.slice(r,a)}var n=[];return t.forEach(function(t){if(void 0!==t.vgt_header_id){e.handleExpanded(t);var r=JSON.parse(JSON.stringify(t));r.children=[],n.push(r)}else{var a=n.find(function(e){return e.vgt_header_id===t.vgt_id});a||(a=e.processedRows.find(function(e){return e.vgt_header_id===t.vgt_id}))&&((a=JSON.parse(JSON.stringify(a))).children=[],n.push(a)),a.children.push(t)}}),n},originalRows:function(){var e=this.rows&&this.rows.length?JSON.parse(JSON.stringify(this.rows)):[],t=[];t=this.groupOptions.enabled?this.handleGrouped(e):this.handleGrouped([{label:"no groups",children:e}]);var r=0;return t.forEach(function(e){e.children.forEach(function(e){e.originalIndex=r++})}),t},typedColumns:function(){for(var e=this.columns,t=0;t2&&void 0!==arguments[2]&&arguments[2]&&t.headerField?this.collect(e,t.headerField):this.collect(e,t.field)))return"";if(t.formatFn&&"function"==typeof t.formatFn)return t.formatFn(r,e);var a=t.typeDef;a||(a=this.dataTypes[t.type]||ob);var n=a.format(r,t);return!this.compactMode||""!=n&&null!=n?n:"-"},formattedRow:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},a=0;a1&&void 0!==arguments[1])||arguments[1];this.columnFilters=e;var a=JSON.parse(JSON.stringify(this.originalRows)),n=!1;if(this.columnFilters&&Object.keys(this.columnFilters).length){var o=function(){if(("remote"!==t.mode||r)&&t.changePage(1),r&&t.$emit("on-column-filter",{columnFilters:t.columnFilters}),"remote"===t.mode)return r?t.$emit("update:isLoading",!0):t.filteredRows=a,{v:void 0};for(var e=function(e){return"function"==typeof e&&e.name?e.name:e},o=function(r){var o=t.typedColumns[r];t.columnFilters[e(o.field)]&&(n=!0,a.forEach(function(r){var a=r.children.filter(function(r){return o.filterOptions&&"function"==typeof o.filterOptions.filterFn?o.filterOptions.filterFn(t.collect(r,o.field),t.columnFilters[e(o.field)]):o.typeDef.filterPredicate(t.collect(r,o.field),t.columnFilters[e(o.field)],!1,o.filterOptions&&"object"===Eb(o.filterOptions.filterDropdownItems))});r.children=a}))},i=0;i0?_c("column-chart",{attrs:{"data":_vm.pageVisitsOverTimeData,"download":true,"download":"Site_PageVisits.png","xtitle":_vm.$t("simplestats.charts.time"),"ytitle":_vm.$t("simplestats.charts.visits"),"height":"300px","stacked":true,"library":_vm.chartOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1),_vm._v(" "),_vm.languagesAreEnabled?_c("k-column",{attrs:{"width":"3/4"}},[_c("k-headline",{attrs:{"size":"medium"}},[_vm._v(_vm._s(_vm.$t("simplestats.visits.languagesovertime")))]),_vm._v(" "),_vm.languagesOverTimeData.length>0?_c("area-chart",{attrs:{"data":_vm.languagesOverTimeData,"download":true,"download":"Site_GlobalLanguages.png","xtitle":_vm.$t("simplestats.charts.time"),"ytitle":_vm.$t("simplestats.charts.visits"),"height":"250px","stacked":true,"library":_vm.chartOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1):_vm._e(),_vm._v(" "),_vm.languagesAreEnabled?_c("k-column",{attrs:{"width":"1/4"}},[_c("k-headline",[_vm._v(_vm._s(_vm.$t("simplestats.visits.globallanguages")))]),_vm._v(" "),_vm.globalLanguagesData.length>0?_c("pie-chart",{attrs:{"data":_vm.globalLanguagesData,"height":"250px"}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1):_vm._e(),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-column",[_vm.rows.length>0?_c("div",[_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{attrs:{"size":""}},[_vm._v(" "+_vm._s(_vm.$t("simplestats.visits.visitedpages"))+" ")]),_vm._v(" "),_c("vue-good-table",{attrs:{"columns":_vm.columns,"rows":_vm.rows,"styleClass":"vgt-table condensed","max-height":"500px","fixed-header":false,"compactMode":"","search-options":{enabled:true,placeholder:_vm.$t("simplestats.table.filter","Filter items...")},"pagination-options":{enabled:true,perPage:20,perPageDropdownEnabled:false,nextLabel:_vm.$t("simplestats.table.pages.next","Next"),prevLabel:_vm.$t("simplestats.table.pages.prev","Previous"),ofLabel:_vm.$t("simplestats.table.pages.of","of")}},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="title"?_c("span",[_c("a",{style:{paddingLeft:12*props.row.depth+"px"},attrs:{"href":props.row.url}},[_vm._v(_vm._s(props.row.title))])]):props.column.field=="uid"?_c("span",[_c("a",{style:{paddingLeft:12*props.row.depth+"px"},attrs:{"href":props.row.url}},[_c("k-icon",{attrs:{"type":props.row.icon}}),_vm._v(_vm._s(props.row.uid))],1)]):props.column.field=="hitspercent"?_c("span",{staticClass:"row-percent"},[_c("span",{staticClass:"visualiser",style:{width:props.row.hitspercent*100+"%"}}),_vm._v(" "),_c("span",{staticClass:"number"},[_vm._v(_vm._s((props.row.hitspercent*100).toFixed(0)+"%"))])]):props.column.field=="firstvisited"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):props.column.field=="lastvisited"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}],null,false,1081060268)},[_c("div",{attrs:{"slot":"emptystate"},slot:"emptystate"},[_c("k-empty",[_vm._v(" "+_vm._s(_vm.$t("simplestats.nodatayet"))+" ")])],1)])],1):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var kc={components:{},data:function(){return{devicesData:[],devicesOverTimeData:[],browsersData:[],systemsData:[],isLoading:!1,error:"",chartOptions:{scales:{xAxes:[{type:"time",time:{unit:"month",displayFormats:{month:"MMM YYYY"}}}],yAxes:[{stacked:!0}]}}}},created:function(){this.load()},methods:{load:function(e){var t=this;e||(this.isLoading=!0),this.$api.get("simplestats/devicestats").then(function(e){t.isLoading=!1,t.devicesData=e.devicesdata,t.browsersData=e.enginesdata,t.devicesOverTimeData=e.devicesovertime,t.systemsData=e.systemsdata}).catch(function(e){t.isLoading=!1,t.error=e.message,t.$store.dispatch("notification/open",{type:"error",message:e.message,timeout:5e3})})}}};if(typeof kc==="function"){kc=kc.options}Object.assign(kc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",[_c("k-view",[_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.devices")))]),_vm._v(" "),_vm.devicesData.length>0?_c("pie-chart",{attrs:{"data":_vm.devicesData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.engines")))]),_vm._v(" "),_vm.browsersData.length>0?_c("pie-chart",{attrs:{"data":_vm.browsersData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.oses")))]),_vm._v(" "),_vm.systemsData.length>0?_c("pie-chart",{attrs:{"data":_vm.systemsData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1)],1),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/1"}},[_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.devicehistory")))]),_vm._v(" "),_vm.devicesOverTimeData.length>0?_c("area-chart",{attrs:{"data":_vm.devicesOverTimeData,"download":true,"download":"Site_DevicesEvolution.png","label":"Devices","xtitle":_vm.$t("simplestats.charts.time"),"ytitle":_vm.$t("simplestats.devices.graph.devicehistory.y"),"stacked":true,"library":_vm.chartOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1)],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var La=Object.freeze({});function da(e){return null==e}function aa(e){return null!=e}function la(e){return!0===e}function ho(e){return!1===e}function Kb(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function sa(e){return null!==e&&"object"==typeof e}var gd=Object.prototype.toString;function xa(e){return"[object Object]"===gd.call(e)}function io(e){return"[object RegExp]"===gd.call(e)}function vg(e){var r=parseFloat(String(e));return r>=0&&Math.floor(r)===r&&isFinite(e)}function hd(e){return aa(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function jo(e){return null==e?"":Array.isArray(e)||xa(e)&&e.toString===gd?JSON.stringify(e,null,2):String(e)}function Lb(e){var r=parseFloat(e);return isNaN(r)?e:r}function Da(e,r){for(var $=Object.create(null),t=e.split(","),a=0;a-1)return e.splice($,1)}}var lo=Object.prototype.hasOwnProperty;function ta(e,r){return lo.call(e,r)}function db(e){var r=Object.create(null);return function($){return r[$]||(r[$]=e($))}}var mo=/-(\w)/g,eb=db(function(e){return e.replace(mo,function(e,r){return r?r.toUpperCase():""})}),no=db(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),oo=/\B([A-Z])/g,Mb=db(function(e){return e.replace(oo,"-$1").toLowerCase()});function po(e,r){function $($){var t=arguments.length;return t?t>1?e.apply(r,arguments):e.call(r,$):e.call(r)}return $._length=e.length,$}function qo(e,r){return e.bind(r)}var ro=Function.prototype.bind?qo:po;function id(e,r){r=r||0;for(var $=e.length-r,t=new Array($);$--;)t[$]=e[$+r];return t}function ga(e,r){for(var $ in r)e[$]=r[$];return e}function wg(e){for(var r={},$=0;$0,kd=ra&&ra.indexOf("edge/")>0,c=ra&&ra.indexOf("android")>0||"android"===Cg,xo=ra&&/iphone|ipad|ipod|ios/.test(ra)||"ios"===Cg,d=ra&&/chrome\/\d+/.test(ra)&&!kd,e=ra&&/phantomjs/.test(ra),Dg=ra&&ra.match(/firefox\/(\d+)/),ld={}.watch,yo=!1;if(ya)try{var Eg={};Object.defineProperty(Eg,"passive",{get:function(){yo=!0}}),window.addEventListener("test-passive",null,Eg)}catch(e){}var oc=function(){return void 0===Bg&&(Bg=!ya&&!jd&&"undefined"!=typeof Sa&&Sa.process&&"server"===Sa.process.env.VUE_ENV),Bg},pc=ya&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function vb(e){return"function"==typeof e&&/native code/.test(e.toString())}var md,qc="undefined"!=typeof Symbol&&vb(Symbol)&&"undefined"!=typeof Reflect&&vb(Reflect.ownKeys);md="undefined"!=typeof Set&&vb(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var f,g,h,i,zo=va,Ao=0,za=function(){this.id=Ao++,this.subs=[]};za.prototype.addSub=function(e){this.subs.push(e)},za.prototype.removeSub=function(e){Oa(this.subs,e)},za.prototype.depend=function(){za.target&&za.target.addDep(this)},za.prototype.notify=function(){var e=this.subs.slice();for(var r=0,$=e.length;r<$;r++)e[r].update()},za.target=null;var rc=[];function sc(e){rc.push(e),za.target=e}function tc(){rc.pop(),za.target=rc[rc.length-1]}var wa=function(e,r,$,t,a,n,i,o){this.tag=e,this.data=r,this.children=$,this.text=t,this.elm=a,this.ns=void 0,this.context=n,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=r&&r.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Fg={child:{configurable:!0}};Fg.child.get=function(){return this.componentInstance},Object.defineProperties(wa.prototype,Fg);var gb=function(e){void 0===e&&(e="");var r=new wa;return r.text=e,r.isComment=!0,r};function wb(e){return new wa(void 0,void 0,void 0,String(e))}function nd(e){var r=new wa(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return r.ns=e.ns,r.isStatic=e.isStatic,r.key=e.key,r.isComment=e.isComment,r.fnContext=e.fnContext,r.fnOptions=e.fnOptions,r.fnScopeId=e.fnScopeId,r.asyncMeta=e.asyncMeta,r.isCloned=!0,r}var Gg=Array.prototype,uc=Object.create(Gg),Bo=["push","pop","shift","unshift","splice","sort","reverse"];Bo.forEach(function(e){var r=Gg[e];sb(uc,e,function(){for(var $=[],t=arguments.length;t--;)$[t]=arguments[t];var a,n=r.apply(this,$),i=this.__ob__;switch(e){case"push":case"unshift":a=$;break;case"splice":a=$.slice(2);}return a&&i.observeArray(a),i.dep.notify(),n})});var Co=Object.getOwnPropertyNames(uc),Hg=!0;function Ua(e){Hg=e}var vc=function(e){this.value=e,this.dep=new za,this.vmCount=0,sb(e,"__ob__",this),Array.isArray(e)?(wo?Do(e,uc):Eo(e,uc,Co),this.observeArray(e)):this.walk(e)};function Do(e,r){e.__proto__=r}function Eo(e,r,$){for(var t=0,a=$.length;t-1)if(n&&!ta(a,"default"))i=!1;else if(""===i||i===Mb(e)){var f=Lg(String,a.type);(f<0||o0&&(Nb((t=Tg(t,(r||"")+"_"+$))[0])&&Nb(n)&&(i[a]=wb(n.text+t[0].text),t.shift()),i.push.apply(i,t)):Kb(t)?Nb(n)?i[a]=wb(n.text+t):""!==t&&i.push(wb(t)):Nb(t)&&Nb(n)?i[a]=wb(n.text+t.text):(la(e._isVList)&&aa(t.tag)&&da(t.key)&&aa(r)&&(t.key="__vlist"+r+"_"+$+"__"),i.push(t)));return i}function Uo(e){var r=e.$options.provide;r&&(e._provided="function"==typeof r?r.call(e):r)}function Vo(e){var r=Ug(e.$options.inject,e);r&&(Ua(!1),Object.keys(r).forEach(function($){ib(e,$,r[$])}),Ua(!0))}function Ug(e,r){if(e){for(var $=Object.create(null),t=qc?Reflect.ownKeys(e):Object.keys(e),a=0;a0,n=e?!!e.$stable:!a,i=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(n&&$&&$!==La&&i===$.$key&&!a&&!$.$hasNormal)return $;for(var o in t={},e)e[o]&&"$"!==o[0]&&(t[o]=Xo(r,o,e[o]))}else t={};for(var f in r)f in t||(t[f]=Yo(r,f));return e&&Object.isExtensible(e)&&(e._normalized=t),sb(t,"$stable",n),sb(t,"$key",i),sb(t,"$hasNormal",a),t}function Xo(e,r,$){var t=function(){var e=arguments.length?$.apply(null,arguments):$({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:zd(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return $.proxy&&Object.defineProperty(e,r,{get:t,enumerable:!0,configurable:!0}),t}function Yo(e,r){return function(){return e[r]}}function Zo(e,r){var $,t,a,n,i;if(Array.isArray(e)||"string"==typeof e)for($=new Array(e.length),t=0,a=e.length;t1?id($):$;for(var t=id(arguments,1),a="event handler for \""+e+"\"",n=0,i=$.length;ndocument.createEvent("Event").timeStamp&&(jh=function(){return Id.now()})}function Hp(){var e,r;for(Gp=jh(),Ep=!0,Qa.sort(function(e,r){return e.id-r.id}),Cc=0;CcCc&&Qa[$].id>e.id;)$--;Qa.splice($+1,0,e)}else Qa.push(e);Dp||(Dp=!0,wd(Hp))}}var Mp=0,Fa=function(e,r,$,t,a){this.vm=e,a&&(e._watcher=this),e._watchers.push(this),t?(this.deep=!!t.deep,this.user=!!t.user,this.lazy=!!t.lazy,this.sync=!!t.sync,this.before=t.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=$,this.id=++Mp,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new md,this.newDepIds=new md,this.expression="","function"==typeof r?this.getter=r:(this.getter=vo(r),this.getter||(this.getter=va)),this.value=this.lazy?void 0:this.get()};Fa.prototype.get=function(){var r;sc(this);var $=this.vm;try{r=this.getter.call($,$)}catch(e){if(!this.user)throw e;Pa(e,$,"getter for watcher \""+this.expression+"\"")}finally{this.deep&&yc(r),tc(),this.cleanupDeps()}return r},Fa.prototype.addDep=function(e){var r=e.id;this.newDepIds.has(r)||(this.newDepIds.add(r),this.newDeps.push(e),this.depIds.has(r)||e.addSub(this))},Fa.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var r=this.deps[e];this.newDepIds.has(r.id)||r.removeSub(this)}var $=this.depIds;this.depIds=this.newDepIds,this.newDepIds=$,this.newDepIds.clear(),$=this.deps,this.deps=this.newDeps,this.newDeps=$,this.newDeps.length=0},Fa.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Lp(this)},Fa.prototype.run=function(){if(this.active){var r=this.get();if(r!==this.value||sa(r)||this.deep){var $=this.value;if(this.value=r,this.user)try{this.cb.call(this.vm,r,$)}catch(e){Pa(e,this.vm,"callback for watcher \""+this.expression+"\"")}else this.cb.call(this.vm,r,$)}}},Fa.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Fa.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Fa.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||Oa(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Wa={enumerable:!0,configurable:!0,get:va,set:va};function Jd(e,r,$){Wa.get=function(){return this[r][$]},Wa.set=function(e){this[r][$]=e},Object.defineProperty(e,$,Wa)}function Np(e){e._watchers=[];var r=e.$options;r.props&&Op(e,r.props),r.methods&&Tp(e,r.methods),r.data?Pp(e):hb(e._data={},!0),r.computed&&Sp(e,r.computed),r.watch&&r.watch!==ld&&Up(e,r.watch)}function Op(e,r){var $=e.$options.propsData||{},t=e._props={},a=e.$options._propKeys=[],n=!e.$parent;n||Ua(!1);var i=function(n){a.push(n);var i=sd(n,r,$,e);ib(t,n,i),n in e||Jd(e,"_props",n)};for(var o in r)i(o);Ua(!0)}function Pp(e){var r=e.$options.data;xa(r=e._data="function"==typeof r?Qp(r,e):r||{})||(r={});for(var $=Object.keys(r),t=e.$options.props,a=(e.$options.methods,$.length);a--;){var n=$[a];0,t&&ta(t,n)||to(n)||Jd(e,"_data",n)}hb(r,!0)}function Qp(r,$){sc();try{return r.call($,$)}catch(e){return Pa(e,$,"data()"),{}}finally{tc()}}var Rp={lazy:!0};function Sp(e,r){var $=e._computedWatchers=Object.create(null),t=oc();for(var a in r){var n=r[a],i="function"==typeof n?n:n.get;0,t||($[a]=new Fa(e,i||va,va,Rp)),a in e||kh(e,a,n)}}function kh(e,r,$){var t=!oc();"function"==typeof $?(Wa.get=t?lh(r):mh($),Wa.set=va):(Wa.get=$.get?t&&!1!==$.cache?lh(r):mh($.get):va,Wa.set=$.set||va),Object.defineProperty(e,r,Wa)}function lh(e){return function(){var r=this._computedWatchers&&this._computedWatchers[e];if(r)return r.dirty&&r.evaluate(),za.target&&r.depend(),r.value}}function mh(e){return function(){return e.call(this,this)}}function Tp(e,r){e.$options.props;for(var $ in r)e[$]="function"!=typeof r[$]?va:ro(r[$],e)}function Up(e,r){for(var $ in r){var t=r[$];if(Array.isArray(t))for(var a=0;a-1)return this;var $=id(arguments,1);return $.unshift(this),"function"==typeof e.install?e.install.apply(e,$):"function"==typeof e&&e.apply(null,$),r.push(e),this}}function _p(e){e.mixin=function(e){return this.options=jb(this.options,e),this}}function aq(e){e.cid=0;var r=1;e.extend=function(e){e=e||{};var $=this,t=$.cid,a=e._Ctor||(e._Ctor={});if(a[t])return a[t];var n=e.name||$.options.name;var i=function(e){this._init(e)};return(i.prototype=Object.create($.prototype)).constructor=i,i.cid=r++,i.options=jb($.options,e),i.super=$,i.options.props&&bq(i),i.options.computed&&cq(i),i.extend=$.extend,i.mixin=$.mixin,i.use=$.use,nc.forEach(function(e){i[e]=$[e]}),n&&(i.options.components[n]=i),i.superOptions=$.options,i.extendOptions=e,i.sealedOptions=ga({},i.options),a[t]=i,i}}function bq(e){var r=e.options.props;for(var $ in r)Jd(e.prototype,"_props",$)}function cq(e){var r=e.options.computed;for(var $ in r)kh(e.prototype,$,r[$])}function dq(e){nc.forEach(function(r){e[r]=function(e,$){return $?("component"===r&&xa($)&&($.name=$.name||e,$=this.options._base.extend($)),"directive"===r&&"function"==typeof $&&($={bind:$,update:$}),this.options[r+"s"][e]=$,$):this.options[r+"s"][e]}})}function nh(e){return e&&(e.Ctor.options.name||e.tag)}function Dc(e,r){return Array.isArray(e)?e.indexOf(r)>-1:"string"==typeof e?e.split(",").indexOf(r)>-1:!!io(e)&&e.test(r)}function oh(e,r){var $=e.cache,t=e.keys,a=e._vnode;for(var n in $){var i=$[n];if(i){var o=nh(i.componentOptions);o&&!r(o)&&Md($,n,t,a)}}}function Md(e,r,$,t){var a=e[r];!a||t&&a.tag===t.tag||a.componentInstance.$destroy(),e[r]=null,Oa($,r)}Xp(na),Vp(na),yp(na),Ap(na),rp(na);var ph=[String,RegExp,Array],eq={name:"keep-alive",abstract:!0,props:{include:ph,exclude:ph,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Md(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(r){oh(e,function(e){return Dc(r,e)})}),this.$watch("exclude",function(r){oh(e,function(e){return!Dc(r,e)})})},render:function(){var e=this.$slots.default,r=eh(e),$=r&&r.componentOptions;if($){var t=nh($),a=this.include,n=this.exclude;if(a&&(!t||!Dc(a,t))||n&&t&&Dc(n,t))return r;var i=this.cache,o=this.keys,f=null==r.key?$.Ctor.cid+($.tag?"::"+$.tag:""):r.key;i[f]?(r.componentInstance=i[f].componentInstance,Oa(o,f),o.push(f)):(i[f]=r,o.push(f),this.max&&o.length>parseInt(this.max)&&Md(i,o[0],o,this._vnode)),r.data.keepAlive=!0}return r||e&&e[0]}},fq={KeepAlive:eq};function gq(e){var r={get:function(){return Ba}};Object.defineProperty(e,"config",r),e.util={warn:zo,extend:ga,mergeOptions:jb,defineReactive:ib},e.set=od,e.delete=Ig,e.nextTick=wd,e.observable=function(e){return hb(e),e},e.options=Object.create(null),nc.forEach(function(r){e.options[r+"s"]=Object.create(null)}),e.options._base=e,ga(e.options.components,fq),$p(e),_p(e),aq(e),dq(e)}gq(na),Object.defineProperty(na.prototype,"$isServer",{get:oc}),Object.defineProperty(na.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(na,"FunctionalRenderContext",{value:Bd}),na.version="2.6.12";var hq=Da("style,class"),iq=Da("input,textarea,option,select,progress"),jq=function(e,r,$){return"value"===$&&iq(e)&&"button"!==r||"selected"===$&&"option"===e||"checked"===$&&"input"===e||"muted"===$&&"video"===e},qh=Da("contenteditable,draggable,spellcheck"),kq=Da("events,caret,typing,plaintext-only"),lq=function(e,r){return Ec(r)||"false"===r?"false":"contenteditable"===e&&kq(r)?r:"true"},mq=Da("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nd="http://www.w3.org/1999/xlink",Od=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},rh=function(e){return Od(e)?e.slice(6,e.length):""},Ec=function(e){return null==e||!1===e};function nq(e){for(var r=e.data,$=e,t=e;aa(t.componentInstance);)(t=t.componentInstance._vnode)&&t.data&&(r=sh(t.data,r));for(;aa($=$.parent);)$&&$.data&&(r=sh(r,$.data));return oq(r.staticClass,r.class)}function sh(e,r){return{staticClass:Pd(e.staticClass,r.staticClass),class:aa(e.class)?[e.class,r.class]:r.class}}function oq(e,r){return aa(e)||aa(r)?Pd(e,Qd(r)):""}function Pd(e,r){return e?r?e+" "+r:e:r||""}function Qd(e){return Array.isArray(e)?pq(e):sa(e)?qq(e):"string"==typeof e?e:""}function pq(e){for(var r,$="",t=0,a=e.length;t-1?Fc[e]=r.constructor===window.HTMLUnknownElement||r.constructor===window.HTMLElement:Fc[e]=/HTMLUnknownElement/.test(r.toString())}var Sd=Da("text,number,password,search,email,tel,url");function vq(e){if("string"==typeof e){var r=document.querySelector(e);return r||document.createElement("div")}return e}function wq(e,r){var $=document.createElement(e);return"select"!==e?$:(r.data&&r.data.attrs&&void 0!==r.data.attrs.multiple&&$.setAttribute("multiple","multiple"),$)}function xq(e,r){return document.createElementNS(rq[e],r)}function yq(e){return document.createTextNode(e)}function zq(e){return document.createComment(e)}function Aq(e,r,$){e.insertBefore(r,$)}function Bq(e,r){e.removeChild(r)}function Cq(e,r){e.appendChild(r)}function Dq(e){return e.parentNode}function Eq(e){return e.nextSibling}function Fq(e){return e.tagName}function Gq(e,r){e.textContent=r}function Hq(e,r){e.setAttribute(r,"")}var Iq=Object.freeze({createElement:wq,createElementNS:xq,createTextNode:yq,createComment:zq,insertBefore:Aq,removeChild:Bq,appendChild:Cq,parentNode:Dq,nextSibling:Eq,tagName:Fq,setTextContent:Gq,setStyleScope:Hq}),Jq={create:function(e,r){xb(r)},update:function(e,r){e.data.ref!==r.data.ref&&(xb(e,!0),xb(r))},destroy:function(e){xb(e,!0)}};function xb(e,r){var $=e.data.ref;if(aa($)){var t=e.context,a=e.componentInstance||e.elm,n=t.$refs;r?Array.isArray(n[$])?Oa(n[$],a):n[$]===a&&(n[$]=void 0):e.data.refInFor?Array.isArray(n[$])?n[$].indexOf(a)<0&&n[$].push(a):n[$]=[a]:n[$]=a}}var kb=new wa("",{},[]),Pb=["create","activate","update","remove","destroy"];function lb(e,r){return e.key===r.key&&(e.tag===r.tag&&e.isComment===r.isComment&&aa(e.data)===aa(r.data)&&Kq(e,r)||la(e.isAsyncPlaceholder)&&e.asyncFactory===r.asyncFactory&&da(r.asyncFactory.error))}function Kq(e,r){if("input"!==e.tag)return!0;var $,t=aa($=e.data)&&aa($=$.attrs)&&$.type,a=aa($=r.data)&&aa($=$.attrs)&&$.type;return t===a||Sd(t)&&Sd(a)}function Lq(e,r,$){var t,a,n={};for(t=r;t<=$;++t)aa(a=e[t].key)&&(n[a]=t);return n}function Mq(e){var r,$,t={},a=e.modules,n=e.nodeOps;for(r=0;rP?z(e,da($[u+1])?null:$[u+1].elm,$,c,u,t):c>u&&d(r,v,P)}(s,l,Q,$,f):aa(Q)?(aa(e.text)&&n.setTextContent(s,""),z(s,null,Q,0,Q.length-1,$)):aa(l)?d(l,0,l.length-1):aa(e.text)&&n.setTextContent(s,""):e.text!==r.text&&n.setTextContent(s,r.text),aa(P)&&aa(v=P.hook)&&aa(v=v.postpatch)&&v(e,r)}}}function m(e,r,$){if(la($)&&aa(e.parent))e.parent.data.pendingInsert=r;else for(var t=0;t-1?xh(e,r,$):mq(r)?Ec($)?e.removeAttribute(r):($="allowfullscreen"===r&&"EMBED"===e.tagName?"true":r,e.setAttribute(r,$)):qh(r)?e.setAttribute(r,lq(r,$)):Od(r)?Ec($)?e.removeAttributeNS(Nd,rh(r)):e.setAttributeNS(Nd,r,$):xh(e,r,$)}function xh(e,r,$){if(Ec($))e.removeAttribute(r);else{if(tb&&!ub&&"TEXTAREA"===e.tagName&&"placeholder"===r&&""!==$&&!e.__ieph){var t=function(r){r.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(r,$)}}var Sq={create:vh,update:vh};function yh(e,r){var $=r.elm,t=r.data,a=e.data;if(!(da(t.staticClass)&&da(t.class)&&(da(a)||da(a.staticClass)&&da(a.class)))){var n=nq(r),i=$._transitionClasses;aa(i)&&(n=Pd(n,Qd(i))),n!==$._prevClass&&($.setAttribute("class",n),$._prevClass=n)}}var Ud,Tq={create:yh,update:yh},Vd="__r",Wd="__c";function Uq(e){if(aa(e[Vd])){var r=tb?"change":"input";e[r]=[].concat(e[Vd],e[r]||[]),delete e[Vd]}aa(e[Wd])&&(e.change=[].concat(e[Wd],e.change||[]),delete e[Wd])}function Vq(e,r,$){var t=Ud;return function a(){null!==r.apply(null,arguments)&&zh(e,a,$,t)}}var Wq=Oo&&!(Dg&&Number(Dg[1])<=53);function Xq(e,r,$,t){if(Wq){var a=Gp,n=r;r=n._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=a||e.timeStamp<=0||e.target.ownerDocument!==document)return n.apply(this,arguments)}}Ud.addEventListener(e,r,yo?{capture:$,passive:t}:$)}function zh(e,r,$,t){(t||Ud).removeEventListener(e,r._wrapper||r,$)}function Ah(e,r){if(!da(e.data.on)||!da(r.data.on)){var $=r.data.on||{},t=e.data.on||{};Ud=r.elm,Uq($),Rg($,t,Xq,zh,Vq,r.context),Ud=void 0}}var Bh,Yq={create:Ah,update:Ah};function Ch(r,$){if(!da(r.data.domProps)||!da($.data.domProps)){var t,a,n=$.elm,i=r.data.domProps||{},o=$.data.domProps||{};for(t in aa(o.__ob__)&&(o=$.data.domProps=ga({},o)),i)t in o||(n[t]="");for(t in o){if(a=o[t],"textContent"===t||"innerHTML"===t){if($.children&&($.children.length=0),a===i[t])continue;1===n.childNodes.length&&n.removeChild(n.childNodes[0])}if("value"===t&&"PROGRESS"!==n.tagName){n._value=a;var f=da(a)?"":String(a);Zq(n,f)&&(n.value=f)}else if("innerHTML"===t&&Rd(n.tagName)&&da(n.innerHTML)){(Bh=Bh||document.createElement("div")).innerHTML=""+a+"";for(var s=Bh.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;s.firstChild;)n.appendChild(s.firstChild)}else if(a!==i[t])try{n[t]=a}catch(e){}}}}function Zq(e,r){return!e.composing&&("OPTION"===e.tagName||$q(e,r)||_q(e,r))}function $q(r,$){var t=!0;try{t=document.activeElement!==r}catch(e){}return t&&r.value!==$}function _q(e,r){var $=e.value,t=e._vModifiers;if(aa(t)){if(t.number)return Lb($)!==Lb(r);if(t.trim)return $.trim()!==r.trim()}return $!==r}var ar={create:Ch,update:Ch},br=db(function(e){var r={},$=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split($);t.length>1&&(r[t[0].trim()]=t[1].trim())}}),r});function Xd(e){var r=Dh(e.style);return e.staticStyle?ga(e.staticStyle,r):r}function Dh(e){return Array.isArray(e)?wg(e):"string"==typeof e?br(e):e}function cr(e,r){var $,t={};if(r)for(var a=e;a.componentInstance;)(a=a.componentInstance._vnode)&&a.data&&($=Xd(a.data))&&ga(t,$);($=Xd(e.data))&&ga(t,$);for(var n=e;n=n.parent;)n.data&&($=Xd(n.data))&&ga(t,$);return t}var Yd,dr=/^--/,Eh=/\s*!important$/,Fh=function(e,r,$){if(dr.test(r))e.style.setProperty(r,$);else if(Eh.test($))e.style.setProperty(Mb(r),$.replace(Eh,""),"important");else{var t=er(r);if(Array.isArray($))for(var a=0,n=$.length;a-1?r.split(Ih).forEach(function(r){return e.classList.add(r)}):e.classList.add(r);else{var $=" "+(e.getAttribute("class")||"")+" ";$.indexOf(" "+r+" ")<0&&e.setAttribute("class",($+r).trim())}}function Kh(e,r){if(r&&(r=r.trim()))if(e.classList)r.indexOf(" ")>-1?r.split(Ih).forEach(function(r){return e.classList.remove(r)}):e.classList.remove(r),e.classList.length||e.removeAttribute("class");else{for(var $=" "+(e.getAttribute("class")||"")+" ",t=" "+r+" ";$.indexOf(t)>=0;)$=$.replace(t," ");($=$.trim())?e.setAttribute("class",$):e.removeAttribute("class")}}function Lh(e){if(e){if("object"==typeof e){var r={};return!1!==e.css&&ga(r,Mh(e.name||"v")),ga(r,e),r}return"string"==typeof e?Mh(e):void 0}}var Mh=db(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Nh=ya&&!ub,yb="transition",Zd="animation",$d="transition",_d="transitionend",Oh="animation",gr="animationend";Nh&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&($d="WebkitTransition",_d="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oh="WebkitAnimation",gr="webkitAnimationEnd"));var Ph=ya?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qh(e){Ph(function(){Ph(e)})}function mb(e,r){var $=e._transitionClasses||(e._transitionClasses=[]);$.indexOf(r)<0&&($.push(r),Jh(e,r))}function Ra(e,r){e._transitionClasses&&Oa(e._transitionClasses,r),Kh(e,r)}function Rh(e,r,$){var t=Sh(e,r),a=t.type,n=t.timeout,i=t.propCount;if(!a)return $();var o=a===yb?_d:gr,f=0,s=function(){e.removeEventListener(o,v),$()},v=function(r){r.target===e&&++f>=i&&s()};setTimeout(function(){f0&&($=yb,v=i,c=n.length):r===Zd?s>0&&($=Zd,v=s,c=f.length):c=($=(v=Math.max(i,s))>0?i>s?yb:Zd:null)?$===yb?n.length:f.length:0,{type:$,timeout:v,propCount:c,hasTransform:$===yb&&hr.test(t[$d+"Property"])}}function Th(e,r){for(;e.length1}function Xh(e,r){!0!==r.data.show&&af(r)}var ir=ya?{create:Xh,activate:Xh,remove:function(e,r){!0!==e.data.show?Vh(e,r):r()}}:{},jr=[Sq,Tq,Yq,ar,fr,ir],kr=jr.concat(Rq),lr=Mq({nodeOps:Iq,modules:kr});ub&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&cf(e,"input")});var Yh={inserted:function(e,r,$,t){"select"===$.tag?(t.elm&&!t.elm._vOptions?Va($,"postpatch",function(){Yh.componentUpdated(e,r,$)}):Zh(e,r,$.context),e._vOptions=[].map.call(e.options,Gc)):("textarea"===$.tag||Sd(e.type))&&(e._vModifiers=r.modifiers,r.modifiers.lazy||(e.addEventListener("compositionstart",mr),e.addEventListener("compositionend",qi),e.addEventListener("change",qi),ub&&(e.vmodel=!0)))},componentUpdated:function(e,r,$){if("select"===$.tag){Zh(e,r,$.context);var t=e._vOptions,a=e._vOptions=[].map.call(e.options,Gc);if(a.some(function(e,r){return!fb(e,t[r])}))(e.multiple?r.value.some(function(e){return ji(e,a)}):r.value!==r.oldValue&&ji(r.value,a))&&cf(e,"change")}}};function Zh(e,r,$){$h(e,r,$),(tb||kd)&&setTimeout(function(){$h(e,r,$)},0)}function $h(e,r,$){var t=r.value,a=e.multiple;if(!a||Array.isArray(t)){for(var n,i,o=0,f=e.options.length;o-1,i.selected!==n&&(i.selected=n);else if(fb(Gc(i),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o));a||(e.selectedIndex=-1)}}function ji(e,r){return r.every(function(r){return!fb(r,e)})}function Gc(e){return"_value"in e?e._value:e.value}function mr(e){e.target.composing=!0}function qi(e){e.target.composing&&(e.target.composing=!1,cf(e.target,"input"))}function cf(e,r){var $=document.createEvent("HTMLEvents");$.initEvent(r,!0,!0),e.dispatchEvent($)}function df(e){return!e.componentInstance||e.data&&e.data.transition?e:df(e.componentInstance._vnode)}var nr={bind:function(e,r,$){var t=r.value,a=($=df($)).data&&$.data.transition,n=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&a?($.data.show=!0,af($,function(){e.style.display=n})):e.style.display=t?n:"none"},update:function(e,r,$){var t=r.value;!t!=!r.oldValue&&(($=df($)).data&&$.data.transition?($.data.show=!0,t?af($,function(){e.style.display=e.__vOriginalDisplay}):Vh($,function(){e.style.display="none"})):e.style.display=t?e.__vOriginalDisplay:"none")},unbind:function(e,r,$,t,a){a||(e.style.display=e.__vOriginalDisplay)}},or={model:Yh,show:nr},Bi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ef(e){var r=e&&e.componentOptions;return r&&r.Ctor.options.abstract?ef(eh(r.children)):e}function Ei(e){var r={},$=e.$options;for(var t in $.propsData)r[t]=e[t];var a=$._parentListeners;for(var n in a)r[eb(n)]=a[n];return r}function Gi(e,r){if(/\d-keep-alive$/.test(r.tag))return e("keep-alive",{props:r.componentOptions.propsData})}function pr(e){for(;e=e.parent;)if(e.data.transition)return!0}function qr(e,r){return r.key===e.key&&r.tag===e.tag}var rr=function(e){return e.tag||Bc(e)},sr=function(e){return"show"===e.name},tr={name:"transition",props:Bi,abstract:!0,render:function(e){var r=this,$=this.$slots.default;if($&&($=$.filter(rr)).length){0;var t=this.mode;0;var a=$[0];if(pr(this.$vnode))return a;var n=ef(a);if(!n)return a;if(this._leaving)return Gi(e,a);var i="__transition-"+this._uid+"-";n.key=null==n.key?n.isComment?i+"comment":i+n.tag:Kb(n.key)?0===String(n.key).indexOf(i)?n.key:i+n.key:n.key;var o=(n.data||(n.data={})).transition=Ei(this),f=this._vnode,s=ef(f);if(n.data.directives&&n.data.directives.some(sr)&&(n.data.show=!0),s&&s.data&&!qr(n,s)&&!Bc(s)&&(!s.componentInstance||!s.componentInstance._vnode.isComment)){var v=s.data.transition=ga({},o);if("out-in"===t)return this._leaving=!0,Va(v,"afterLeave",function(){r._leaving=!1,r.$forceUpdate()}),Gi(e,a);if("in-out"===t){if(Bc(n))return f;var c,P=function(){c()};Va(o,"afterEnter",P),Va(o,"enterCancelled",P),Va(v,"delayLeave",function(e){c=e})}}return a}}},Hi=ga({tag:String,moveClass:String},Bi);delete Hi.mode;var ur={props:Hi,beforeMount:function(){var e=this,r=this._update;this._update=function($,t){var a=gh(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),r.call(e,$,t)}},render:function(e){for(var r=this.tag||this.$vnode.data.tag||"span",$=Object.create(null),t=this.prevChildren=this.children,a=this.$slots.default||[],n=this.children=[],i=Ei(this),o=0;o=6}function w(t){return"number"==typeof t}var C=["bytes","KB","MB","GB","TB","PB","EB"];function A(t,e,r,n){t=t||"",r.prefix&&(e<0&&(e*=-1,t+="-"),t+=r.prefix);var a=r.suffix||"",o=r.precision,i=r.round;if(r.byteScale){var s,c=n?r.byteScale:e;c>=0x1000000000000000?(e/=0x1000000000000000,s=6):c>=0x4000000000000?(e/=0x4000000000000,s=5):c>=1099511627776?(e/=1099511627776,s=4):c>=1073741824?(e/=1073741824,s=3):c>=1048576?(e/=1048576,s=2):c>=1024?(e/=1024,s=1):s=0,void 0===o&&void 0===i&&(e>=1023.5&&s=1e3?4:3),a=" "+C[s]}if(void 0!==o&&void 0!==i)throw Error("Use either round or precision, not both");if(!n&&(void 0!==o&&(e=e.toPrecision(o),r.zeros||(e=parseFloat(e))),void 0!==i))if(i<0){var p=Math.pow(10,-1*i);e=parseInt((1*e/p).toFixed(0))*p}else e=e.toFixed(i),r.zeros||(e=parseFloat(e));if(r.thousands||r.decimal){var u=(e=l(e)).split(".");e=u[0],r.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,r.thousands)),u.length>1&&(e+=(r.decimal||".")+u[1])}return t+e+a}function _(t,e,r){return r in e?e[r]:r in t.options?t.options[r]:null}var k={maintainAspectRatio:!1,animation:!1,tooltips:{displayColors:!1,callbacks:{}},legend:{},title:{fontSize:20,fontColor:"#333"}},S={scales:{yAxes:[{ticks:{maxTicksLimit:4},scaleLabel:{fontSize:16,fontColor:"#333"}}],xAxes:[{gridLines:{drawOnChartArea:!1},scaleLabel:{fontSize:16,fontColor:"#333"},time:{},ticks:{}}]}},T=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],D=function(t,e,r){void 0!==e?(t.legend.display=!!e,e&&!0!==e&&(t.legend.position=e)):r&&(t.legend.display=!1)},L=function(t,e){t.title.display=!0,t.title.text=e},O=function(t,e){null!==e&&(t.scales.xAxes[0].ticks.min=c(e))},E=function(t,e){t.scales.xAxes[0].ticks.max=c(e)},j=function(t,e){t.scales.xAxes[0].stacked=!!e,t.scales.yAxes[0].stacked=!!e},B=function(t,e){t.scales.xAxes[0].scaleLabel.display=!0,t.scales.xAxes[0].scaleLabel.labelString=e},I=function(t,e){t.scales.yAxes[0].scaleLabel.display=!0,t.scales.yAxes[0].scaleLabel.labelString=e},N=function(t){return null!=t},F=function(e,r,n){var a={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var o=e.data;"pie"===n&&(o=[{data:o}]);for(var i=0,s=0;si&&(i=l.data[c][1]);for(var p=1;i>=1024;)p*=1024,i/=1024;a.byteScale=p}if("pie"!==n){var u=r.scales.yAxes;"bar"===n&&(u=r.scales.xAxes),a.byteScale&&(u[0].ticks.stepSize||(u[0].ticks.stepSize=a.byteScale/2),u[0].ticks.maxTicksLimit||(u[0].ticks.maxTicksLimit=4)),u[0].ticks.callback||(u[0].ticks.callback=function(t){return A("",t,a,!0)})}if(!r.tooltips.callbacks.label)if("scatter"===n)r.tooltips.callbacks.label=function(t,e){var r=e.datasets[t.datasetIndex].label||"";return r&&(r+=": "),r+"("+t.xLabel+", "+t.yLabel+")"};else if("bubble"===n)r.tooltips.callbacks.label=function(t,e){var r=e.datasets[t.datasetIndex].label||"";r&&(r+=": ");var n=e.datasets[t.datasetIndex].data[t.index];return r+"("+t.xLabel+", "+t.yLabel+", "+n.v+")"};else if("pie"===n)r.tooltips.callbacks.label=function(e,r){var n=r.labels[e.index];return t(n)?(n=n.slice())[0]+=": ":n+=": ",A(n,r.datasets[e.datasetIndex].data[e.index],a)};else{var d="bar"===n?"xLabel":"yLabel";r.tooltips.callbacks.label=function(t,e){var r=e.datasets[t.datasetIndex].label||"";return r&&(r+=": "),A(r,t[d],a)}}},Q=d(a(k,S),D,L,function(t,e){null!==e&&(t.scales.yAxes[0].ticks.min=c(e))},function(t,e){t.scales.yAxes[0].ticks.max=c(e)},j,B,I),R=function(t,e,r,n){var o,i=[],s=[],l=t.options.colors||T,u=!0,d=!0,h=!0,f=!0,M=!0,w=!0,C=t.data,A=0;if("bubble"===r)for(var k=0;kA&&(A=S.data[D][2]);var L,O,E,j,B,I,F,Q,R=[],$=[];if("bar"===r||"column"===r||"number"!==t.xtype&&"bubble"!==t.xtype){var H,P,U=[];for(L=0;L0){var rt=(N(q)?p(q):s[0]).getTime(),nt=(N(tt)?p(tt):s[0]).getTime();for(L=1;Lnt&&(nt=at)}var ot,it=(nt-rt)/864e5;if(!e.scales.xAxes[0].time.unit)if(f||it>3650?(e.scales.xAxes[0].time.unit="year",ot=365):h||it>300?(e.scales.xAxes[0].time.unit="month",ot=30):u||it>10?(e.scales.xAxes[0].time.unit="day",ot=1):M||it>.5?(e.scales.xAxes[0].time.displayFormats={hour:"MMM D, h a"},e.scales.xAxes[0].time.unit="hour",ot=1/24):w&&(e.scales.xAxes[0].time.displayFormats={minute:"h:mm a"},e.scales.xAxes[0].time.unit="minute",ot=1/24/60),ot&&it>0){var st=Math.ceil(it/ot/(t.element.offsetWidth/100));d&&1===ot&&(st=7*Math.ceil(st/7)),e.scales.xAxes[0].time.unitStepSize=st}e.scales.xAxes[0].time.tooltipFormat||(u?e.scales.xAxes[0].time.tooltipFormat="ll":M?e.scales.xAxes[0].time.tooltipFormat="MMM D, h a":w&&(e.scales.xAxes[0].time.tooltipFormat="h:mm a"))}return{labels:s,datasets:i}},$=function(t){this.name="chartjs",this.library=t};$.prototype.renderLineChart=function(t,e){var r={};!t.options.max&&function(t){var e,r,n;for(e=0;e25?n=25:n<10&&(n=10),r.scales.xAxes[0].ticks.callback||(r.scales.xAxes[0].ticks.callback=function(t){return(t=l(t)).length>n?t.substring(0,n-2)+"...":t})}(t,o,r),this.drawChart(t,"bar"===e?"horizontalBar":"bar",o,r)},$.prototype.renderAreaChart=function(t){this.renderLineChart(t,"area")},$.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},$.prototype.renderScatterChart=function(t,e){e=e||"scatter";var r=Q(t,t.options);F(t,r,e),"showLines"in r||(r.showLines=!1);var n=R(t,r,e,this.library);r.scales.xAxes[0].type="linear",r.scales.xAxes[0].position="bottom",this.drawChart(t,e,n,r)},$.prototype.renderBubbleChart=function(t){this.renderScatterChart(t,"bubble")},$.prototype.destroy=function(t){t.chart&&t.chart.destroy()},$.prototype.drawChart=function(t,e,r,n){this.destroy(t);var a={type:e,data:r,options:n};t.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(a)+");"),t.element.innerHTML="";var o=t.element.getElementsByTagName("CANVAS")[0];t.chart=new this.library(o,a)};var H={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}}},P=function(t,e,r){void 0!==e?(t.legend.enabled=!!e,e&&!0!==e&&("top"===e||"bottom"===e?t.legend.verticalAlign=e:(t.legend.layout="vertical",t.legend.verticalAlign="middle",t.legend.align=e))):r&&(t.legend.enabled=!1)},U=function(t,e){t.title.text=e},W=d(H,P,U,function(t,e){t.yAxis.min=e},function(t,e){t.yAxis.max=e},function(t,e){var r=e?!0===e?"normal":e:null;t.plotOptions.series.stacking=r,t.plotOptions.area.stacking=r,t.plotOptions.areaspline.stacking=r},function(t,e){t.xAxis.title.text=e},function(t,e){t.yAxis.title.text=e}),K=function(t,e,r){var n={prefix:t.options.prefix,suffix:t.options.suffix,thousands:t.options.thousands,decimal:t.options.decimal,precision:t.options.precision,round:t.options.round,zeros:t.options.zeros};"pie"===r||e.yAxis.labels.formatter||(e.yAxis.labels.formatter=function(){return A("",this.value,n)}),e.tooltip.pointFormatter||(e.tooltip.pointFormatter=function(){return"\u25CF "+A(this.series.name+": ",this.y,n)+"
"})},V=function(t){this.name="highcharts",this.library=t};V.prototype.renderLineChart=function(t,e){var r={};"areaspline"===(e=e||"spline")&&(r={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var n,a,o,i=W(t,t.options,r);i.xAxis.type="string"===t.xtype?"category":"number"===t.xtype?"linear":"datetime",i.chart.type||(i.chart.type=e),K(t,i,e);var s=t.data;for(a=0;a0)return!1;return!0}function Mt(t,r){r.options.messages&&r.options.messages.empty&&bt(r.data,t)?ht(r.element,r.options.messages.empty):(function(t,r){var n,a,o,i;for(o="render"+t,i=r.options.adapter,("Chart"in window)&&zt(window.Chart),("Highcharts"in window)&&zt(window.Highcharts),window.google&&window.google.charts&&zt(window.google),n=0;n0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}(t,r),r.options.download&&!r.__downloadAttached&&"chartjs"===r.adapter&&function(t){var e=t.element,r=document.createElement("a"),n=t.options.download;!0===n?n={}:"string"==typeof n&&(n={filename:n}),r.download=n.filename||"chart.png",r.style.position="absolute",r.style.top="20px",r.style.right="20px",r.style.zIndex=1e3,r.style.lineHeight="20px",r.target="_blank";var a=document.createElement("img");a.alt="Download",a.style.border="none",a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",r.appendChild(a),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=gt(e,"mouseover",function(a){var o=a.relatedTarget;o&&(o===this||xt(this,o))||!t.options.download||(r.href=t.toImage(n),e.appendChild(r))}),t.__leaveEvent=gt(e,"mouseout",function(t){var e=t.relatedTarget;e&&(e===this||xt(this,e))||r.parentNode&&r.parentNode.removeChild(r)})}(r))}var wt=function(t,e){return t="number"===e?c(t):"datetime"===e?p(t):l(t)},Ct=function(t,e){var r,n,a=[];for(n=0;n=0&&"[object Function]"===Ki.call(t.callee)),e}}var Ar,Br,Cr=false;function Dr(){if(Cr)return;Cr=true;Br={};if(!Object.keys){var $orz8$var$has=Object.prototype.hasOwnProperty,$orz8$var$toStr=Object.prototype.toString,$orz8$var$isArgs=(Qi(),Ji),$orz8$var$isEnumerable=Object.prototype.propertyIsEnumerable,$orz8$var$hasDontEnumBug=!$orz8$var$isEnumerable.call({toString:null},"toString"),$orz8$var$hasProtoEnumBug=$orz8$var$isEnumerable.call(function(){},"prototype"),$orz8$var$dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],$orz8$var$equalsConstructorPrototype=function(r){var o=r.constructor;return o&&o.prototype===r},$orz8$var$excludedKeys={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},$orz8$var$hasAutomationEqualityBug=function(){if("undefined"==typeof window)return!1;for(var r in window)try{if(!$orz8$var$excludedKeys["$"+r]&&$orz8$var$has.call(window,r)&&null!==window[r]&&"object"==typeof window[r])try{$orz8$var$equalsConstructorPrototype(window[r])}catch(o){return!0}}catch(o){return!0}return!1}(),$orz8$var$equalsConstructorPrototypeIfNotBuggy=function(r){if("undefined"==typeof window||!$orz8$var$hasAutomationEqualityBug)return $orz8$var$equalsConstructorPrototype(r);try{return $orz8$var$equalsConstructorPrototype(r)}catch(o){return!1}};Ar=function(r){var o=null!==r&&"object"==typeof r,t="[object Function]"===$orz8$var$toStr.call(r),$=$orz8$var$isArgs(r),e=o&&"[object String]"===$orz8$var$toStr.call(r),n=[];if(!o&&!t&&!$)throw new TypeError("Object.keys called on a non-object");var a=$orz8$var$hasProtoEnumBug&&t;if(e&&r.length>0&&!$orz8$var$has.call(r,0))for(var u=0;u0)for(var s=0;s=0&&"[object Array]"!==jf.call(r)&&"[object Function]"===jf.call(r.callee)},Hr=function(){return Ic(arguments)}();Ic.isLegacyArguments=Xi,Wi=Hr?Ic:Xi;var Rb={},Ir="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),Jr=Object.prototype.toString,Kr=Array.prototype.concat,kf=Object.defineProperty,Lr=function(r){return"function"==typeof r&&"[object Function]"===Jr.call(r)},Mr=function(){var r={};try{for(var e in kf(r,"x",{enumerable:!1,value:r}),r)return!1;return r.x===r}catch($){return!1}},Yi=kf&&Mr(),Nr=function(r,e,$,t){(!(e in r)||Lr(t)&&t())&&(Yi?kf(r,e,{configurable:!0,enumerable:!1,value:$,writable:!0}):r[e]=$)},Zi=function(r,e){var $=arguments.length>2?arguments[2]:{},t=hf(e);Ir&&(t=Kr.call(t,Object.getOwnPropertySymbols(e)));for(var o=0;o1&&"boolean"!=typeof e)throw new zb("\"allowMissing\" argument must be a boolean");var t=$r(r),n=t.length>0?t[0]:"",o=_r("%"+n+"%",e),a=o.name,$=o.value,y=!1,p=o.alias;p&&(n=p[0],Xr(t,Wr([0,1],p)));for(var i=1,E=!0;i=t.length){var N=Ab($,d);if(E=!!N,!(e||d in $))throw new zb("base intrinsic for "+r+" exists, but the property is not available.");$=E&&"get"in N&&!("originalValue"in N.get)?N.get:$[d]}else E=Jc($,d),$=$[d];E&&!y&&(Sb[a]=$)}}return $};var rf={},ej=Kc("%Function.prototype.apply%"),fj=Kc("%Function.prototype.call%"),gj=Kc("%Reflect.apply%",!0)||Ga.call(fj,ej),Lc=Kc("%Object.defineProperty%",!0);if(Lc)try{Lc({},"a",{value:1})}catch(e){Lc=null}rf=function(){return gj(Ga,fj,arguments)};var hj=function(){return gj(Ga,ej,arguments)};Lc?Lc(rf,"apply",{value:hj}):rf.apply=hj;var ij={},jj=function(r){return r!=r};ij=function(r,$){return 0===r&&0===$?1/r==1/$:r===$||!(!jj(r)||!jj($))};var sf={};sf=function(){return"function"==typeof Object.is?Object.is:ij};var as={};as=function(){var e=sf();return Rb(Object,{is:e},{is:function(){return Object.is!==e}}),e};var kj={},lj=rf(sf(),Object);Rb(lj,{getPolyfill:sf,implementation:ij,shim:as}),kj=lj;var bs,cs,mj,nj,oj={},ds=mf(),pj=ds&&"symbol"==typeof Symbol.toStringTag;if(pj){bs=Function.call.bind(Object.prototype.hasOwnProperty),cs=Function.call.bind(RegExp.prototype.exec),mj={};var tf=function(){throw mj};nj={toString:tf,valueOf:tf},"symbol"==typeof Symbol.toPrimitive&&(nj[Symbol.toPrimitive]=tf)}var fs=Object.prototype.toString,gs=Object.getOwnPropertyDescriptor,hs="[object RegExp]";oj=pj?function(r){if(!r||"object"!=typeof r)return!1;var $=gs(r,"lastIndex");if(!($&&bs($,"value")))return!1;try{cs(r,nj)}catch(e){return e===mj}}:function(r){return!(!r||"object"!=typeof r&&"function"!=typeof r)&&fs.call(r)===hs};var ca,Mc={},Tb=TypeError,Cb=Object.getOwnPropertyDescriptor;if(Cb)try{Cb({},"")}catch(e){Cb=null}var Nc,qj,Ub,uf=function(){throw new Tb},js=Cb?function(){try{return arguments.callee,uf}catch(r){try{return Cb(arguments,"callee").get}catch(e){return uf}}}():uf,Ya=mf(),Ha=Object.getPrototypeOf||function(r){return r.__proto__},vf=Nc?Ha(Nc):ca,wf=qj?qj.constructor:ca,xf=Ub?Ha(Ub):ca,yf=Ub?Ub():ca,zf="undefined"==typeof Uint8Array?ca:Ha(Uint8Array),Af={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ca:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?ca:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":Ya?Ha([][Symbol.iterator]()):ca,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":ca,"%AsyncFunction%":wf,"%AsyncFunctionPrototype%":wf?wf.prototype:ca,"%AsyncGenerator%":Ub?Ha(yf):ca,"%AsyncGeneratorFunction%":xf,"%AsyncGeneratorPrototype%":xf?xf.prototype:ca,"%AsyncIteratorPrototype%":yf&&Ya&&Symbol.asyncIterator?yf[Symbol.asyncIterator]():ca,"%Atomics%":"undefined"==typeof Atomics?ca:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?ca:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?ca:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?ca:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?ca:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?ca:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?ca:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":Nc?Ha(Nc()):ca,"%GeneratorFunction%":vf,"%GeneratorPrototype%":vf?vf.prototype:ca,"%Int8Array%":"undefined"==typeof Int8Array?ca:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?ca:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?ca:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?ca:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?ca:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?ca:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ya?Ha(Ha([][Symbol.iterator]())):ca,"%JSON%":"object"==typeof JSON?JSON:ca,"%JSONParse%":"object"==typeof JSON?JSON.parse:ca,"%Map%":"undefined"==typeof Map?ca:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ya?Ha(new Map()[Symbol.iterator]()):ca,"%MapPrototype%":"undefined"==typeof Map?ca:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ca:Promise,"%PromisePrototype%":"undefined"==typeof Promise?ca:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?ca:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?ca:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?ca:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?ca:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?ca:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?ca:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?ca:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ya?Ha(new Set()[Symbol.iterator]()):ca,"%SetPrototype%":"undefined"==typeof Set?ca:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ca:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?ca:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":Ya?Ha(""[Symbol.iterator]()):ca,"%StringPrototype%":String.prototype,"%Symbol%":Ya?Symbol:ca,"%SymbolPrototype%":Ya?Symbol.prototype:ca,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":js,"%TypedArray%":zf,"%TypedArrayPrototype%":zf?zf.prototype:ca,"%TypeError%":Tb,"%TypeErrorPrototype%":Tb.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?ca:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?ca:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ca:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?ca:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?ca:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?ca:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?ca:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?ca:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?ca:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?ca:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?ca:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?ca:WeakSet.prototype},rj=Ga.call(Function.call,String.prototype.replace),ks=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ls=/\\(\\)?/g,ms=function(r){var e=[];return rj(r,ks,function(r,t,o,$){e[e.length]=o?rj($,ls,"$1"):t||r}),e},os=function(r,e){if(!(r in Af))throw new SyntaxError("intrinsic "+r+" does not exist!");if(void 0===Af[r]&&!e)throw new Tb("intrinsic "+r+" exists, but is not available. Please file an issue!");return Af[r]};Mc=function(r,e){if("string"!=typeof r||0===r.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError("\"allowMissing\" argument must be a boolean");for(var t=ms(r),o=os("%"+(t.length>0?t[0]:"")+"%",e),$=1;$=t.length){var n=Cb(o,t[$]);if(!(e||t[$]in o))throw new Tb("base intrinsic for "+r+" exists, but the property is not available.");o=n&&"get"in n&&!("originalValue"in n.get)?n.get:o[t[$]]}else o=o[t[$]];return o};var Bf={},sj=Mc("%Function.prototype.apply%"),tj=Mc("%Function.prototype.call%"),uj=Mc("%Reflect.apply%",!0)||Ga.call(tj,sj),Oc=Mc("%Object.defineProperty%",!0);if(Oc)try{Oc({},"a",{value:1})}catch(e){Oc=null}Bf=function(){return uj(Ga,tj,arguments)};var vj=function(){return uj(Ga,sj,arguments)};Oc?Oc(Bf,"apply",{value:vj}):Bf.apply=vj;var Cf={},ps=Object,qs=TypeError;Cf=function(){if(null!=this&&this!==ps(this))throw new qs("RegExp.prototype.flags getter called on non-object");var t="";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t};var wj={},rs=Rb.supportsDescriptors,us=Object.getOwnPropertyDescriptor,vs=TypeError;wj=function(){if(!rs)throw new vs("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var r=us(RegExp.prototype,"flags");if(r&&"function"==typeof r.get&&"boolean"==typeof /a/.dotAll)return r.get}return Cf};var ws={},xs=Rb.supportsDescriptors,ys=Object.getOwnPropertyDescriptor,zs=Object.defineProperty,As=TypeError,xj=Object.getPrototypeOf,Bs=/a/;ws=function(){if(!xs||!xj)throw new As("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var r=wj(),e=xj(Bs),$=ys(e,"flags");return $&&$.get===r||zs(e,"flags",{configurable:!0,enumerable:!1,get:r}),r};var yj={},zj=Bf(Cf);Rb(zj,{getPolyfill:wj,implementation:Cf,shim:ws}),yj=zj;var Aj={},Cs=Date.prototype.getDay,Ds=function(t){try{return Cs.call(t),!0}catch($){return!1}},Es=Object.prototype.toString,Fs="[object Date]",Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;Aj=function(t){return"object"==typeof t&&null!==t&&(Gs?Ds(t):Es.call(t)===Fs)};var Hs={},Bj=Date.prototype.getTime;function Cj(r,e,$){var i=$||{};return!(i.strict?!kj(r,e):r!==e)||(!r||!e||"object"!=typeof r&&"object"!=typeof e?i.strict?kj(r,e):r==e:Is(r,e,i))}function Dj(r){return null==r}function Ej(r){return!(!r||"object"!=typeof r||"number"!=typeof r.length)&&"function"==typeof r.copy&&"function"==typeof r.slice&&!(r.length>0&&"number"!=typeof r[0])}function Is(r,e,$){var i,o;if(typeof r!=typeof e)return!1;if(Dj(r)||Dj(e))return!1;if(r.prototype!==e.prototype)return!1;if(Wi(r)!==Wi(e))return!1;var t=oj(r),a=oj(e);if(t!==a)return!1;if(t||a)return r.source===e.source&&yj(r)===yj(e);if(Aj(r)&&Aj(e))return Bj.call(r)===Bj.call(e);var n=Ej(r),u=Ej(e);if(n!==u)return!1;if(n||u){if(r.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=s[i])return!1;for(i=f.length-1;i>=0;i--)if(!Cj(r[o=f[i]],e[o],$))return!1;return!0}Hs=Cj;var Js={},Ks=function(e){return Ls(e)&&!Ms(e)};function Ls(e){return!!e&&"object"==typeof e}function Ms(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||Ps(e)}var Ns="function"==typeof Symbol&&Symbol.for,Os=Ns?Symbol.for("react.element"):60103;function Ps(e){return e.$$typeof===Os}function Qs(e){return Array.isArray(e)?[]:{}}function Vb(e,r){return!1!==r.clone&&r.isMergeableObject(e)?Db(Qs(e),e,r):e}function Rs(e,r,$){return e.concat(r).map(function(e){return Vb(e,$)})}function Ss(e,r){if(!r.customMerge)return Db;var $=r.customMerge(e);return"function"==typeof $?$:Db}function Ts(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return e.propertyIsEnumerable(r)}):[]}function Fj(e){return Object.keys(e).concat(Ts(e))}function Gj(e,r){try{return r in e}catch($){return!1}}function Us(e,r){return Gj(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function Vs(e,r,$){var t={};return $.isMergeableObject(e)&&Fj(e).forEach(function(r){t[r]=Vb(e[r],$)}),Fj(r).forEach(function(o){Us(e,o)||(Gj(e,o)&&$.isMergeableObject(r[o])?t[o]=Ss(o,$)(e[o],r[o],$):t[o]=Vb(r[o],$))}),t}function Db(e,r,$){($=$||{}).arrayMerge=$.arrayMerge||Rs,$.isMergeableObject=$.isMergeableObject||Ks,$.cloneUnlessOtherwiseSpecified=Vb;var t=Array.isArray(r);return t===Array.isArray(e)?t?$.arrayMerge(e,r,$):Vs(e,r,$):Vb(r,$)}Db.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,$){return Db(e,$,r)},{})};var Ws=Db;Js=Ws;var Xs=1,Za=function(t,r,a){var e=["adapter","bytes","code","colors","curve","dataset","decimal","discrete","donut","download","label","legend","library","max","messages","min","points","precision","prefix","refresh","round","stacked","suffix","thousands","title","xmax","xmin","xtitle","ytitle","zeros"];t.component(r,{props:["data","id","width","height"].concat(e),render:function(t){return t("div",{attrs:{id:this.chartId},style:this.chartStyle},["Loading..."])},data:function(){return{chartId:null}},computed:{chartStyle:function(){return this.data,this.chartOptions,{height:this.height||"300px",lineHeight:this.height||"300px",width:this.width||"100%",textAlign:"center",color:"#999",fontSize:"14px",fontFamily:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif"}},chartOptions:function(){for(var t={},r=e,a=0;a>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var P=/(\[[^\[]*\])|(\\)?([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,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},C={};function U(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(C[e]=i),t&&(C[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(C[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function H(e,t){return e.isValid()?(t=F(t,e.localeData()),W[t]=W[t]||function(e){var t,n,s,i=e.match(P);for(t=0,n=i.length;t=0&&R.test(e);)e=e.replace(R,s),R.lastIndex=0,n-=1;return e}var L={};function V(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function G(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function E(e){var t,n,s={};for(n in e)a(e,n)&&(t=G(n))&&(s[t]=e[n]);return s}var A={};function j(e,t){A[e]=t}function I(e){return e%4==0&&e%100!=0||e%400==0}function Z(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function z(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Z(t)),n}function $(e,t){return function(n){return null!=n?(B(this,e,n),s.updateOffset(this,t),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&I(e.year())&&1===e.month()&&29===e.date()?(n=z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Q=/\d/,X=/\d\d/,K=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,se=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ae=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,he=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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;function fe(e,t,n){J[e]=b(t)?t:function(e,s){return e&&n?n:t}}function me(e,t){return a(J,e)?J[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ye={};function ge(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),l(t)&&(s=function(e,n){n[t]=z(e)}),n=0;n68?1900:2e3)};var Ge=$("FullYear",!0);function Ee(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ae(e,t,n){var s=7+t-n;return-((7+Ee(e,0,s).getUTCDay()-t)%7)+s-1}function je(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ae(e,s,i);return o<=0?a=Ve(r=e-1)+o:o>Ve(e)?(r=e+1,a=o-Ve(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ae(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ze(i=e.year()-1,t,n):a>Ze(e.year(),t,n)?(s=a-Ze(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ze(e,t,n){var s=Ae(e,t,n),i=Ae(e+1,t,n);return(Ve(e)-s+i)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),V("week","w"),V("isoWeek","W"),j("week",5),j("isoWeek",5),fe("w",ne),fe("ww",ne,X),fe("W",ne),fe("WW",ne,X),we(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=z(e)});function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),V("day","d"),V("weekday","e"),V("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),fe("d",ne),fe("e",ne),fe("E",ne),fe("dd",function(e,t){return t.weekdaysMinRegex(e)}),fe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),fe("dddd",function(e,t){return t.weekdaysRegex(e)}),we(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),we(["d","e","E"],function(e,t,n,s){t[s]=z(e)});var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=ce,Qe=ce,Xe=ce;function Ke(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),s=_e(this.weekdaysMin(n,"")),i=_e(this.weekdaysShort(n,"")),r=_e(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,et),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)}),U("hmmss",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),tt("a",!0),tt("A",!1),V("hour","h"),j("hour",13),fe("a",nt),fe("A",nt),fe("H",ne),fe("h",ne),fe("k",ne),fe("HH",ne,X),fe("hh",ne,X),fe("kk",ne,X),fe("hmm",se),fe("hmmss",ie),fe("Hmm",se),fe("Hmmss",ie),ge(["H","HH"],Se),ge(["k","kk"],function(e,t,n){var s=z(e);t[Se]=24===s?0:s}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Se]=z(e),m(n).bigHour=!0}),ge("hmm",function(e,t,n){var s=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s)),m(n).bigHour=!0}),ge("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s,2)),t[Oe]=z(e.substr(i)),m(n).bigHour=!0}),ge("Hmm",function(e,t,n){var s=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s))}),ge("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s,2)),t[Oe]=z(e.substr(i))});var st=$("Hours",!0);var it,rt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Pe,monthsShort:Re,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Be,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},at={},ot={};function ut(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n0;){if(s=ht(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&ut(i,n)>=t-1)break;t--}r++}return it}(e)}function mt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[Me]<0||n[Me]>11?Me:n[De]<1||n[De]>Ne(n[ke],n[Me])?De:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[Ye]||0!==n[Oe]||0!==n[be])?Se:n[Ye]<0||n[Ye]>59?Ye:n[Oe]<0||n[Oe]>59?Oe:n[be]<0||n[be]>999?be:-1,m(e)._overflowDayOfYear&&(tDe)&&(t=De),m(e)._overflowWeeks&&-1===t&&(t=xe),m(e)._overflowWeekday&&-1===t&&(t=Te),m(e).overflow=t),e}var _t=/^\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)?)?$/,yt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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]],pt=[["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/]],vt=/^\/?Date\((-?\d+)/i,kt=/^(?:(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}))$/,Mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i,r,a,o=e._i,u=_t.exec(o)||yt.exec(o);if(u){for(m(e).iso=!0,t=0,n=wt.length;t7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Ie(Pt(),r,a),n=Ot(t.gg,e._a[ke],l.year),s=Ot(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r);s<1||s>Ze(n,r,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=je(n,s,i,r,a),e._a[ke]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=Ot(e._a[ke],i[ke]),(e._dayOfYear>Ve(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ee(a,0,e._dayOfYear),e._a[Me]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[Ye]&&0===e._a[Oe]&&0===e._a[be]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ee:function(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==s.ISO_8601){if(e._f!==s.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,r,a,o,u=""+e._i,l=u.length,h=0;for(i=F(e._f,e._locale).match(P)||[],t=0;t0&&m(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),h+=n.length),C[r]?(n?m(e).empty=!1:m(e).unusedTokens.push(r),pe(r,n,e)):e._strict&&!n&&m(e).unusedTokens.push(r);m(e).charsLeftOver=l-h,u.length>0&&m(e).unusedInput.push(u),e._a[Se]<=12&&!0===m(e).bigHour&&e._a[Se]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(o=m(e).era)&&(e._a[ke]=e._locale.erasConvertYear(o,e._a[ke])),bt(e),mt(e)}else Yt(e);}else Dt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new v(mt(t)):(h(t)?e._d=t:i(n)?function(e){var t,n,s,i,r,a,o=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:y()});function Ct(e,t){var n,s;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],s=1;s=0?new Date(e+400,t,n)-hn:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hn:Date.UTC(e,t,n)}function mn(e,t){return t.erasAbbrRegex(e)}function _n(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=Ze(e,s,i))&&(t=r),function(e,t,n,s,i){var r=je(e,t,n,s,i),a=Ee(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),fe("N",mn),fe("NN",mn),fe("NNN",mn),fe("NNNN",function(e,t){return t.erasNameRegex(e)}),fe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?m(n).era=i:m(n).invalidEra=e}),fe("y",ue),fe("yy",ue),fe("yyy",ue),fe("yyyy",ue),fe("yo",function(e,t){return t._eraYearOrdinalRegex||ue}),ge(["y","yy","yyy","yyyy"],ke),ge(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ke]=n._locale.eraYearOrdinalParse(e,i):t[ke]=parseInt(e,10)}),U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yn("gggg","weekYear"),yn("ggggg","weekYear"),yn("GGGG","isoWeekYear"),yn("GGGGG","isoWeekYear"),V("weekYear","gg"),V("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),fe("G",le),fe("g",le),fe("GG",ne,X),fe("gg",ne,X),fe("GGGG",ae,ee),fe("gggg",ae,ee),fe("GGGGG",oe,te),fe("ggggg",oe,te),we(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=z(e)}),we(["gg","GG"],function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),V("quarter","Q"),j("quarter",7),fe("Q",Q),ge("Q",function(e,t){t[Me]=3*(z(e)-1)}),U("D",["DD",2],"Do","date"),V("date","D"),j("date",9),fe("D",ne),fe("DD",ne,X),fe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],De),ge("Do",function(e,t){t[De]=z(e.match(ne)[0])});var wn=$("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),V("dayOfYear","DDD"),j("dayOfYear",4),fe("DDD",re),fe("DDDD",K),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=z(e)}),U("m",["mm",2],0,"minute"),V("minute","m"),j("minute",14),fe("m",ne),fe("mm",ne,X),ge(["m","mm"],Ye);var pn=$("Minutes",!1);U("s",["ss",2],0,"second"),V("second","s"),j("second",15),fe("s",ne),fe("ss",ne,X),ge(["s","ss"],Oe);var vn,kn,Mn=$("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),V("millisecond","ms"),j("millisecond",16),fe("S",re,Q),fe("SS",re,X),fe("SSS",re,K),vn="SSSS";vn.length<=9;vn+="S")fe(vn,ue);function Dn(e,t){t[be]=z(1e3*("0."+e))}for(vn="S";vn.length<=9;vn+="S")ge(vn,Dn);kn=$("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Sn=v.prototype;function Yn(e){return e}Sn.add=Xt,Sn.calendar=function(e,t){1===arguments.length&&(arguments[0]?tn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=r(e)&&!o(e),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+"(\"]",t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+"[\")]",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=It,Sn.isUTC=It,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=D("dates accessor is deprecated. Use date instead.",wn),Sn.months=D("months accessor is deprecated. Use month instead",Fe),Sn.years=D("years accessor is deprecated. Use year instead",Ge),Sn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Sn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=Tt(t))._a?(e=t._isUTC?f(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var On=T.prototype;function bn(e,t,n,s){var i=ft(),r=f().set(s,t);return i[n](r,e)}function xn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=bn(e,s,n,"month");return i}function Tn(e,t,n,s){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,r=ft(),a=e?r._week.dow:0,o=[];if(null!=n)return bn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=bn(t,(i+a)%7,s,"day");return o}On.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s},On.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},On.invalidDate=function(){return this._invalidDate},On.ordinal=function(e){return this._ordinal.replace("%d",e)},On.preparse=Yn,On.postformat=Yn,On.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e)},On.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t)},On.set=function(e){var t,n;for(n in e)a(e,n)&&(b(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},On.eras=function(e,t){var n,i,r,a=this._eras||ft("en")._eras;for(n=0,i=a.length;n=0)return u[s]},On.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},On.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||_n.call(this),e?this._erasAbbrRegex:this._erasRegex},On.erasNameRegex=function(e){return a(this,"_erasNameRegex")||_n.call(this),e?this._erasNameRegex:this._erasRegex},On.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||_n.call(this),e?this._erasNarrowRegex:this._erasRegex},On.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},On.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},On.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))?i:-1!==(i=ve.call(this._longMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))?i:-1!==(i=ve.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},On.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},On.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ce),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},On.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},On.firstDayOfYear=function(){return this._week.doy},On.firstDayOfWeek=function(){return this._week.dow},On.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},On.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},On.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},On.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))?i:-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:-1!==(i=ve.call(this._weekdaysParse,a))?i:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:-1!==(i=ve.call(this._weekdaysParse,a))?i:-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},On.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},On.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},On.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},On.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},On.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("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(e){var t=e%10;return e+(1===z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=D("moment.lang is deprecated. Use moment.locale instead.",dt),s.langData=D("moment.langData is deprecated. Use moment.localeData instead.",ft);var Nn=Math.abs;function Pn(e,t,n,s){var i=$t(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Rn(e){return e<0?Math.floor(e):Math.ceil(e)}function Wn(e){return 4800*e/146097}function Cn(e){return 146097*e/4800}function Un(e){return function(){return this.as(e)}}var Hn=Un("ms"),Fn=Un("s"),Ln=Un("m"),Vn=Un("h"),Gn=Un("d"),En=Un("w"),An=Un("M"),jn=Un("Q"),In=Un("y");function Zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Zn("milliseconds"),$n=Zn("seconds"),qn=Zn("minutes"),Bn=Zn("hours"),Jn=Zn("days"),Qn=Zn("months"),Xn=Zn("years");var Kn=Math.round,es={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var ts=Math.abs;function ns(e){return(e>0)-(e<0)||+e}function ss(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=ts(this._milliseconds)/1e3,l=ts(this._days),h=ts(this._months),d=this.asSeconds();return d?(e=Z(u/60),t=Z(e/60),u%=60,e%=60,n=Z(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=ns(this._months)!==ns(d)?"-":"",a=ns(this._days)!==ns(d)?"-":"",o=ns(this._milliseconds)!==ns(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var is=Ht.prototype;return is.isValid=function(){return this._isValid},is.abs=function(){var e=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),e.milliseconds=Nn(e.milliseconds),e.seconds=Nn(e.seconds),e.minutes=Nn(e.minutes),e.hours=Nn(e.hours),e.months=Nn(e.months),e.years=Nn(e.years),this},is.add=function(e,t){return Pn(this,e,t,1)},is.subtract=function(e,t){return Pn(this,e,t,-1)},is.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=G(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12;}else switch(t=this._days+Math.round(Cn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e);}},is.asMilliseconds=Hn,is.asSeconds=Fn,is.asMinutes=Ln,is.asHours=Vn,is.asDays=Gn,is.asWeeks=En,is.asMonths=An,is.asQuarters=jn,is.asYears=In,is.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*z(this._months/12):NaN},is._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*Rn(Cn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=Z(r/1e3),u.seconds=e%60,t=Z(e/60),u.minutes=t%60,n=Z(t/60),u.hours=n%24,a+=Z(n/24),o+=i=Z(Wn(a)),a-=Rn(Cn(i)),s=Z(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},is.clone=function(){return $t(this)},is.get=function(e){return e=G(e),this.isValid()?this[e+"s"]():NaN},is.milliseconds=zn,is.seconds=$n,is.minutes=qn,is.hours=Bn,is.days=Jn,is.weeks=function(){return Z(this.days()/7)},is.months=Qn,is.years=Xn,is.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=es;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},es,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),s=function(e,t,n,s){var i=$t(e).abs(),r=Kn(i.as("s")),a=Kn(i.as("m")),o=Kn(i.as("h")),u=Kn(i.as("d")),l=Kn(i.as("M")),h=Kn(i.as("w")),d=Kn(i.as("y")),c=r<=n.ss&&["s",r]||r0,c[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,c)}(this,!i,r,n=this.localeData()),i&&(s=n.pastFuture(+this,s)),n.postformat(s)},is.toISOString=ss,is.toString=ss,is.toJSON=ss,is.locale=sn,is.localeData=an,is.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ss),is.lang=rn,U("X",0,0,"unix"),U("x",0,0,"valueOf"),fe("x",le),fe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,n){n._d=new Date(z(e))}),s.version="2.29.1",e=Pt,s.fn=Sn,s.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},s.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=f,s.unix=function(e){return Pt(1e3*e)},s.months=function(e,t){return xn(e,t,"months")},s.isDate=h,s.locale=dt,s.invalid=y,s.duration=$t,s.isMoment=k,s.weekdays=function(e,t,n){return Tn(e,t,n,"weekdays")},s.parseZone=function(){return Pt.apply(null,arguments).parseZone()},s.localeData=ft,s.isDuration=Ft,s.monthsShort=function(e,t){return xn(e,t,"monthsShort")},s.weekdaysMin=function(e,t,n){return Tn(e,t,n,"weekdaysMin")},s.defineLocale=ct,s.updateLocale=function(e,t){if(null!=t){var n,s,i=rt;null!=at[e]&&null!=at[e].parentLocale?at[e].set(x(at[e]._config,t)):(null!=(s=ht(e))&&(i=s._config),t=x(i,t),null==s&&(t.abbr=e),(n=new T(t)).parentLocale=at[e],at[e]=n),dt(e)}else null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===dt()&&dt(e)):null!=at[e]&&delete at[e]);return at[e]},s.locales=function(){return S(at)},s.weekdaysShort=function(e,t,n){return Tn(e,t,n,"weekdaysShort")},s.normalizeUnits=G,s.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==es[e]&&(void 0===t?es[e]:(es[e]=t,"s"===e&&(es.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},s.prototype=Sn,s.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"},s}),t.exports}.call({})}!function(t,e){"object"==typeof Ef?Ef=e(function(){try{return $s(),Ys}catch(t){}}()):"function"==typeof Df&&Df.amd?Df(["require"],function(t){return e(function(){try{return t("moment")}catch(e){}}())}):(t=t||self).Chart=e(t.moment)}(Ef,function(t){t=t&&t.hasOwnProperty("default")?t.default:t;var e,n={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]},i=(function(t){var e={};for(var i in n)n.hasOwnProperty(i)&&(e[n[i]]=i);var a=t.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 r in a)if(a.hasOwnProperty(r)){if(!("channels"in a[r]))throw new Error("missing channels property: "+r);if(!("labels"in a[r]))throw new Error("missing channel labels property: "+r);if(a[r].labels.length!==a[r].channels)throw new Error("channel and label counts mismatch: "+r);var o=a[r].channels,s=a[r].labels;delete a[r].channels,delete a[r].labels,Object.defineProperty(a[r],"channels",{value:o}),Object.defineProperty(a[r],"labels",{value:s})}a.rgb.hsl=function(t){var e,n,i=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(i,a,r),s=Math.max(i,a,r),l=s-o;return s===o?e=0:i===s?e=(a-r)/l:a===s?e=2+(r-i)/l:r===s&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(o+s)/2,[e,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},a.rgb.hsv=function(t){var e,n,i,a,r,o=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(o,s,l),d=u-Math.min(o,s,l),h=function(t){return(u-t)/6/d+.5};return 0===d?a=r=0:(r=d/u,e=h(o),n=h(s),i=h(l),o===u?a=i-n:s===u?a=1/3+e-i:l===u&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*r,100*u]},a.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-a)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var i=e[t];if(i)return i;var a,r,o,s=1/0;for(var l in n)if(n.hasOwnProperty(l)){var u=n[l],d=(r=t,o=u,Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)+Math.pow(r[2]-o[2],2));d.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],i=e[1],r=e[2];return i/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.hsl.rgb=function(t){var e,n,i,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,i>1&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*r;return a},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,r=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,a*=r<=1?r:2-r,[e,100*(0===i?2*a/(r+a):2*n/(i+n)),100*((i+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,a){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s];}},a.hsv.hsl=function(t){var e,n,i,a=t[0],r=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return i=(2-r)*o,n=r*s,[a,100*(n=(n/=(e=(2-r)*s)<=1?e:2-e)||0),100*(i/=2)]},a.hwb.rgb=function(t){var e,n,i,a,r,o,s,l=t[0]/360,u=t[1]/100,d=t[2]/100,h=u+d;switch(h>1&&(u/=h,d/=h),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),a=u+i*((n=1-d)-u),e){default:case 6:case 0:r=n,o=a,s=u;break;case 1:r=a,o=n,s=u;break;case 2:r=u,o=n,s=a;break;case 3:r=u,o=a,s=n;break;case 4:r=a,o=u,s=n;break;case 5:r=n,o=u,s=a;}return[255*r,255*o,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]},a.xyz.rgb=function(t){var e,n,i,a=t[0]/100,r=t[1]/100,o=t[2]/100;return n=-.9689*a+1.8758*r+.0415*o,i=.0557*a+-.204*r+1.057*o,e=(e=3.2406*a+-1.5372*r+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(t){var e,n,i,a=t[0];e=t[1]/500+(n=(a+16)/116),i=n-t[2]/200;var r=Math.pow(n,3),o=Math.pow(e,3),s=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},a.lab.lch=function(t){var e,n=t[0],i=t[1],a=t[2];return(e=360*Math.atan2(a,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+a*a),e]},a.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],r=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.max(Math.max(n,i),a),o=Math.min(Math.min(n,i),a),s=r-o;return e=s<=0?0:r===n?(i-a)/s%6:r===i?2+(a-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(a=(n-.5*i)/(1-i)),[t[0],100*i,100*a]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var a,r=[0,0,0],o=e%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l;}return a=(1-n)*i,[255*(n*r[0]+a),255*(n*r[1]+a),255*(n*r[2]+a)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}(e={exports:{}},e.exports),e.exports);i.rgb,i.hsl,i.hsv,i.hwb,i.cmyk,i.xyz,i.lab,i.lch,i.hex,i.keyword,i.ansi16,i.ansi256,i.hcg,i.apple,i.gray;function a(t){var e=function(){for(var t={},e=Object.keys(i),n=e.length,a=0;a1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var i=n.length,a=0;a1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)})});var l=s,u={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]},d={getRgba:h,getHsla:c,getRgb:function(t){var e=h(t);return e&&e.slice(0,3)},getHsl:function(t){var e=c(t);return e&&e.slice(0,3)},getHwb:f,getAlpha:function(t){var e=h(t);if(e)return e[3];if(e=c(t))return e[3];if(e=f(t))return e[3]},hexString:function(t,e){var e=void 0!==e&&3===t.length?e:t[3];return"#"+b(t[0])+b(t[1])+b(t[2])+(e>=0&&e<1?b(Math.round(255*e)):"")},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return g(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:g,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return p(t,e);var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+n+"%, "+i+"%, "+a+"%)"},percentaString:p,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return m(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:m,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return x[t.slice(0,3)]}};function h(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(i){a=(i=i[1])[3];for(var r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,i=void 0===e?.5:e,a=2*i-1,r=this.alpha()-n.alpha(),o=((a*r==-1?a:(a+r)/(1+a*r))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new _,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},_.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},_.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},_.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i=0;a--)e.call(n,t[a],a);else for(a=0;a=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-P.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*P.easeInBounce(2*t):.5*P.easeOutBounce(2*t-1)+.5}},A={effects:P};C.easingEffects=P;var D=Math.PI,T=D/180,I=2*D,F=D/2,O=D/4,L=2*D/3,R={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var o=Math.min(r,a/2,i/2),s=e+o,l=n+o,u=e+i-o,d=n+a-o;t.moveTo(e,l),se.left-1e-6&&t.xe.top-1e-6&&t.y0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,i,a=this.animations,r=0;r=n?(j.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(r,1)):++r}},tt=j.options.resolve,et=["push","pop","shift","splice","unshift"];function nt(t,e){var n=t._chartjs;if(n){var i=n.listeners,a=i.indexOf(e);-1!==a&&i.splice(a,1),i.length>0||(et.forEach(function(e){delete t[e]}),delete t._chartjs)}}var it=function(t,e){this.initialize(t,e)};j.extend(it.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.chart,n=e.scales,i=this.getDataset(),a=e.options.scales;null!==t.xAxisID&&t.xAxisID in n&&!i.xAxisID||(t.xAxisID=i.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in n&&!i.yAxisID||(t.yAxisID=i.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_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&&nt(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],a=n.data;for(t=0,e=i.length;tn&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;na?(r=a/e.innerRadius,t.arc(o,s,e.innerRadius-a,i+r,n-r,!0)):t.arc(o,s,a,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function st(t,e,n){var i="inner"===e.borderAlign;i?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&function(t,e,n,i){var a,r=n.endAngle;for(i&&(n.endAngle=n.startAngle+rt,ot(t,n),n.endAngle=r,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=rt,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+rt,n.startAngle,!0),a=0;as;)a-=rt;for(;a=o&&a<=s,u=r>=n.innerRadius&&r<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/rt)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+rt,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(),t=0;tt.x&&(e=xt(e,"left","right")):t.basen?n:i,r:l.right||a<0?0:a>e?e:a,b:l.bottom||r<0?0:r>n?n:r,l:l.left||o<0?0:o>e?e:o}}function _t(t,e,n){var i=null===e,a=null===n,r=!(!t||i&&a)&&bt(t);return r&&(i||e>=r.left&&e<=r.right)&&(a||n>=r.top&&n<=r.bottom)}B._set("global",{elements:{rectangle:{backgroundColor:mt,borderColor:mt,borderSkipped:"bottom",borderWidth:0}}});var kt=K.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=bt(t),n=e.right-e.left,i=e.bottom-e.top,a=yt(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+a.l,y:e.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b}}}(e),i=n.outer,a=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),i.w===a.w&&i.h===a.h||(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(a.x,a.y,a.w,a.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return _t(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return vt(n)?_t(n,t,null):_t(n,null,e)},inXRange:function(t){return _t(this._view,t,null)},inYRange:function(t){return _t(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return vt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return vt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),wt={},Mt=lt,St=ht,Ct=pt,Pt=kt;wt.Arc=Mt,wt.Line=St,wt.Point=Ct,wt.Rectangle=Pt;var At=j._deprecated,Dt=j.valueOrDefault;function Tt(t,e,n){var i,a,r=n.barThickness,o=e.stackCount,s=e.pixels[t],l=j.isNullOrUndef(r)?function(t,e){var n,i,a,r,o=t._length;for(a=1,r=e.length;a0?Math.min(o,Math.abs(i-n)):o,n=i;return o}(e.scale,e.pixels):-1;return j.isNullOrUndef(r)?(i=l*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:s-i/2}}B._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),B._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var It=at.extend({dataElementType:wt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;at.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,At("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),At("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),At("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),At("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),At("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e=0&&p.min>=0?p.min:p.max,y=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,_=g.length;if(v||void 0===v&&void 0!==b)for(i=0;i<_&&(a=g[i]).index!==t;++i)a.stack===b&&(r=void 0===(u=h._parseValue(f[a.index].data[e])).start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(p.min<0&&r<0||p.max>=0&&r>0)&&(x+=r));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+y))-o,void 0!==m&&Math.abs(l)=0&&!c||y<0&&c?o-m:o+m),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,i){var a="flex"===i.barThickness?function(t,e,n){var i,a=e.pixels,r=a[t],o=t>0?a[t-1]:null,s=t=zt?-Nt:b<-zt?Nt:0)+m,y=Math.cos(b),_=Math.sin(b),k=Math.cos(x),w=Math.sin(x),M=b<=0&&x>=0||x>=Nt,S=b<=Bt&&x>=Bt||x>=Nt+Bt,C=b<=-Bt&&x>=-Bt||x>=zt+Bt,P=b===-zt||x>=zt?-1:Math.min(y,y*p,k,k*p),A=C?-1:Math.min(_,_*p,w,w*p),D=M?1:Math.max(y,y*p,k,k*p),T=S?1:Math.max(_,_*p,w,w*p);u=(D-P)/2,d=(T-A)/2,h=-(D+P)/2,c=-(T+A)/2}for(i=0,a=g.length;i0&&!isNaN(t)?Nt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,a,r,o,s,l,u=0,d=this.chart;if(!t)for(e=0,n=d.data.datasets.length;e(u=s>u?s:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,i=j.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Rt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Rt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Rt(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n0&&jt(l[t-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),t0&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return ie(t,e,{intersect:!1})},point:function(t,e){return te(t,Jt(e,t))},nearest:function(t,e,n){var i=Jt(e,t);n.axis=n.axis||"xy";var a=ne(n.axis);return ee(t,i,n.intersect,a)},x:function(t,e,n){var i=Jt(e,t),a=[],r=!1;return Qt(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(a=[]),a},y:function(t,e,n){var i=Jt(e,t),a=[],r=!1;return Qt(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(a=[]),a}}},re=j.extend;function oe(t,e){return j.where(t,function(t){return t.pos===e})}function se(t,e){return t.sort(function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function le(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ue(t,e,n){var i,a,r=n.box,o=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?r.height:r.width,t[n.pos]+=n.size,r.getPadding){var s=r.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(i=e.outerWidth-le(o,t,"left","right"),a=e.outerHeight-le(o,t,"top","bottom"),i!==t.w||a!==t.h){t.w=i,t.h=a;var l=n.horizontal?[i,t.w]:[a,t.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function de(t,e){var n=e.maxPadding;function i(t){var i={left:0,top:0,right:0,bottom:0};return t.forEach(function(t){i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function he(t,e,n){var i,a,r,o,s,l,u=[];for(i=0,a=t.length;i div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&fe.default||fe,me="$chartjs",ve="chartjs-size-monitor",be="chartjs-render-monitor",xe="chartjs-render-animation",ye=["animationstart","webkitAnimationStart"],_e={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ke(t,e){var n=j.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var we=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}()&&{passive:!0};function Me(t,e,n){t.addEventListener(e,n,we)}function Se(t,e,n){t.removeEventListener(e,n,we)}function Ce(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function Pe(t){var e=document.createElement("div");return e.className=t||"",e}function Ae(t,e,n){var i,a,r,o,s=t[me]||(t[me]={}),l=s.resizer=function(t){var e=Pe(ve),n=Pe(ve+"-expand"),i=Pe(ve+"-shrink");n.appendChild(Pe()),i.appendChild(Pe()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var a=function(){e._reset(),t()};return Me(n,"scroll",a.bind(n,"expand")),Me(i,"scroll",a.bind(i,"shrink")),e}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,a=i?i.clientWidth:0;e(Ce("resize",n)),i&&i.clientWidth0){var r=t[0];r.label?n=r.label:r.xLabel?n=r.xLabel:a>0&&r.index-1?t.split("\n"):t}function Ee(t){var e=B.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Re(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Re(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Re(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Re(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Re(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Re(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Re(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Re(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Re(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ve(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function He(t){return Be([],We(t))}var je=K.extend({initialize:function(){this._model=Ee(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),i=t.afterTitle.apply(this,arguments),a=[];return a=Be(a,We(e)),a=Be(a,We(n)),a=Be(a,We(i))},getBeforeBody:function(){return He(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,a=[];return j.each(t,function(t){var r={before:[],lines:[],after:[]};Be(r.before,We(i.beforeLabel.call(n,t,e))),Be(r.lines,i.label.call(n,t,e)),Be(r.after,We(i.afterLabel.call(n,t,e))),a.push(r)}),a},getAfterBody:function(){return He(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),a=[];return a=Be(a,We(e)),a=Be(a,We(n)),a=Be(a,We(i))},update:function(t){var e,n,i,a,r,o,s,l,u,d,h=this,c=h._options,f=h._model,g=h._model=Ee(c),p=h._active,m=h._data,v={xAlign:f.xAlign,yAlign:f.yAlign},b={x:f.x,y:f.y},x={width:f.width,height:f.height},y={x:f.caretX,y:f.caretY};if(p.length){g.opacity=1;var _=[],k=[];y=Ne[c.position].call(h,p,h._eventPosition);var w=[];for(e=0,n=p.length;ei.width&&(a=i.width-e.width),a<0&&(a=0)),"top"===d?r+=h:r-="bottom"===d?e.height+h:e.height/2,"center"===d?"left"===u?a+=h:"right"===u&&(a-=h):"left"===u?a-=c:"right"===u&&(a+=c),{x:a,y:r}}(g,x,v=function(t,e){var n,i,a,r,o,s=t._model,l=t._chart,u=t._chart.chartArea,d="center",h="center";s.yl.height-e.height&&(h="bottom");var c=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===h?(n=function(t){return t<=c},i=function(t){return t>c}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},r=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(d="left",a(s.x)&&(d="center",h=o(s.y))):i(s.x)&&(d="right",r(s.x)&&(d="center",h=o(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:h}}(this,x),h._chart)}else g.opacity=0;return g.xAlign=v.xAlign,g.yAlign=v.yAlign,g.x=b.x,g.y=b.y,g.width=x.width,g.height=x.height,g.caretX=y.x,g.caretY=y.y,h._model=g,t&&c.custom&&c.custom.call(h,g),h},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,a=this.getCaretPosition(t,e,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===c)s=g+m/2,"left"===h?(a=(i=f)-u,r=i,o=s+u,l=s-u):(a=(i=f+p)+u,r=i,o=s-u,l=s+u);else if("left"===h?(i=(a=f+d+u)-u,r=a+u):"right"===h?(i=(a=f+p-d-u)-u,r=a+u):(i=(a=n.caretX)-u,r=a+u),"top"===c)s=(o=g)-u,l=o;else{s=(o=g+m)+u,l=o;var v=r;r=i,i=v}return{x1:i,x2:a,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,e,n){var i,a,r,o=e.title,s=o.length;if(s){var l=ze(e.rtl,e.x,e.width);for(t.x=Ve(e,e._titleAlign),n.textAlign=l.textAlign(e._titleAlign),n.textBaseline="middle",i=e.titleFontSize,a=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=j.fontString(i,e._titleFontStyle,e._titleFontFamily),r=0;r0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(t.save(),t.globalAlpha=a,this.drawBackground(i,e,t,n),i.y+=e.yPadding,j.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),j.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),i.reverse&&n._active.reverse()),(e=!j.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),qe=Ne,Ue=je;Ue.positioners=qe;var Ye=j.valueOrDefault;function $e(){return j.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?j.merge(e[t][a],[Le.getScaleDefaults(r),o]):j.merge(e[t][a],o)}else j._merger(t,e,n,i)}})}function Ge(){return j.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){var a=e[t]||Object.create(null),r=n[t];"scales"===t?e[t]=$e(a,r):"scale"===t?e[t]=j.merge(a,[Le.getScaleDefaults(r.type),r]):j._merger(t,e,n,i)}})}function Xe(t,e,n){var i,a=function(t){return t.id===i};do{i=e+n++}while(j.findIndex(t,a)>=0);return i}function Ke(t){return"top"===t||"bottom"===t}function Ze(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}B._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});var Je=function(t,e){return this.construct(t,e),this};j.extend(Je.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Ge(B.global,B[t.type],t.options||{}),t}(e);var i=Fe.acquireContext(t,e),a=i&&i.canvas,r=a&&a.height,o=a&&a.width;n.id=j.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=r,n.aspectRatio=r?o/r:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Je.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Oe.notify(t,"beforeInit"),j.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Oe.notify(t,"afterInit"),t},clear:function(){return j.canvas.clear(this),this},stop:function(){return Q.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(j.getMaximumWidth(i))),o=Math.max(0,Math.floor(a?r/a:j.getMaximumHeight(i)));if((e.width!==r||e.height!==o)&&(i.width=e.width=r,i.height=e.height=o,i.style.width=r+"px",i.style.height=o+"px",j.retinaScale(e,n.devicePixelRatio),!t)){var s={width:r,height:o};Oe.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;j.each(e.xAxes,function(t,n){t.id||(t.id=Xe(e.xAxes,"x-axis-",n))}),j.each(e.yAxes,function(t,n){t.id||(t.id=Xe(e.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],a=Object.keys(n).reduce(function(t,e){return t[e]=!1,t},{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),j.each(i,function(e){var i=e.options,r=i.id,o=Ye(i.type,e.dtype);Ke(i.position)!==Ke(e.dposition)&&(i.position=e.dposition),a[r]=!0;var s=null;if(r in n&&n[r].type===o)(s=n[r]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=Le.getScaleConstructor(o);if(!l)return;s=new l({id:r,type:o,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)}),j.each(a,function(t,e){t||delete n[e]}),t.scales=n,Le.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,i=[],a=n.data.datasets;for(t=0,e=a.length;t=0;--n)this.drawDataset(e[n],t);Oe.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n={meta:t,index:t.index,easingValue:e};!1!==Oe.notify(this,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Oe.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Oe.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Oe.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return ae.modes.single(this,t)},getElementsAtEvent:function(t){return ae.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return ae.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=ae.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return ae.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=j.log10(Math.abs(i)),r="";if(0!==t){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=j.log10(Math.abs(t)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}}else r="0";return r},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(j.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},rn=j.isArray,on=j.isNullOrUndef,sn=j.valueOrDefault,ln=j.valueAtIndexOrDefault;function un(t,e,n){var i,a=t.getTicks().length,r=Math.min(e,a-1),o=t.getPixelForTick(r),s=t._startPixel,l=t._endPixel;if(!(n&&(i=1===a?Math.max(o-s,l-o):0===e?(t.getPixelForTick(1)-o)/2:(o-t.getPixelForTick(r-1))/2,(o+=rl+1e-6)))return o}function dn(t,e,n,i){var a,r,o,s,l,u,d,h,c,f,g,p,m,v=n.length,b=[],x=[],y=[],_=0,k=0;for(a=0;ae){for(n=0;n=c||d<=1||!s.isHorizontal()?s.labelRotation=h:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,i=Math.min(s.maxWidth,s.chart.width-e),e+6>(a=l.offset?s.maxWidth/d:i/(d-1))&&(a=i/(d-(l.offset?.5:1)),r=s.maxHeight-hn(l.gridLines)-u.padding-cn(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=j.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/a,1)),Math.asin(Math.min(r/o,1))-Math.asin(n/o))),f=Math.max(h,Math.min(c,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){j.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){j.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,a=i.ticks,r=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=hn(o)+cn(r)),u?s&&(e.height=hn(o)+cn(r)):e.height=t.maxHeight,a.display&&s){var d=gn(a),h=t._getLabelSizes(),c=h.first,f=h.last,g=h.widest,p=h.highest,m=.4*d.minor.lineHeight,v=a.padding;if(u){var b=0!==t.labelRotation,x=j.toRadians(t.labelRotation),y=Math.cos(x),_=Math.sin(x),k=_*g.width+y*(p.height-(b?p.offset:0))+(b?0:m);e.height=Math.min(t.maxHeight,e.height+k+v);var w,M,S=t.getPixelForTick(0)-t.left,C=t.right-t.getPixelForTick(t.getTicks().length-1);b?(w=l?y*c.width+_*c.offset:_*(c.height-c.offset),M=l?_*(f.height-f.offset):y*f.width+_*f.offset):(w=c.width/2,M=f.width/2),t.paddingLeft=Math.max((w-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((M-C)*t.width/(t.width-C),0)+3}else{var P=a.mirror?0:g.width+v+m;e.width=Math.min(t.maxWidth,e.width+P),t.paddingTop=c.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){j.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(on(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,i,a=this;for(a.ticks=t.map(function(t){return t.value}),a.beforeTickToLabelConversion(),e=a.convertTicksToLabels(t)||a.ticks,a.afterTickToLabelConversion(),n=0,i=t.length;nn-1?null:this.getPixelForDecimal(t*i+(e?i/2:0))},getPixelForDecimal:function(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i,a,r=this.options.ticks,o=this._length,s=r.maxTicksLimit||o/this._tickSize()+1,l=r.major.enabled?function(t){var e,n,i=[];for(e=0,n=t.length;es)return function(t,e,n){var i,a,r=0,o=e[0];for(n=Math.ceil(n),i=0;iu)return r;return Math.max(u,1)}(l,t,0,s),u>0){for(e=0,n=u-1;e1?(h-d)/(u-1):null,mn(t,i,j.isNullOrUndef(a)?0:d-a,d),mn(t,i,h,j.isNullOrUndef(a)?t.length:h+a),pn(t)}return mn(t,i),pn(t)},_tickSize:function(){var t=this.options.ticks,e=j.toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),a=this._getLabelSizes(),r=t.autoSkipPadding||0,o=a?a.widest.width+r:0,s=a?a.highest.height+r:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i=0&&(o=t),void 0!==r&&(t=n.indexOf(r))>=0&&(s=t),e.minIndex=o,e.maxIndex=s,e.min=n[o],e.max=n[s]},buildTicks:function(){var t=this._getLabels(),e=this.minIndex,n=this.maxIndex;this.ticks=0===e&&n===t.length-1?t:t.slice(e,n+1)},getLabelForIndex:function(t,e){var n=this.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[e].data[t]):this._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;bn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var i,a,r,o=this;return xn(e)||xn(n)||(t=o.chart.data.datasets[n].data[e]),xn(t)||(i=o.isHorizontal()?t.x:t.y),(void 0!==i||void 0!==t&&isNaN(e))&&(a=o._getLabels(),t=j.valueOrDefault(i,t),e=-1!==(r=a.indexOf(t))?r:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),_n={position:"bottom"};yn._defaults=_n;var kn=j.noop,wn=j.isNullOrUndef;var Mn=bn.extend({getRightValue:function(t){return"string"==typeof t?+t:bn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=j.sign(t.min),i=j.sign(t.max);n<0&&i<0?t.max=0:n>0&&i>0&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!==r&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:kn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:j.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=function(t,e){var n,i,a,r,o=[],s=t.stepSize,l=s||1,u=t.maxTicks-1,d=t.min,h=t.max,c=t.precision,f=e.min,g=e.max,p=j.niceNum((g-f)/u/l)*l;if(p<1e-14&&wn(d)&&wn(h))return[f,g];(r=Math.ceil(g/p)-Math.floor(f/p))>u&&(p=j.niceNum(r*p/u/l)*l),s||wn(c)?n=Math.pow(10,j._decimalPlaces(p)):(n=Math.pow(10,c),p=Math.ceil(p*n)/n),i=Math.floor(f/p)*p,a=Math.ceil(g/p)*p,s&&(!wn(d)&&j.almostWhole(d/p,p/1e3)&&(i=d),!wn(h)&&j.almostWhole(h/p,p/1e3)&&(a=h)),r=(a-i)/p,r=j.almostEquals(r,Math.round(r),p/1e3)?Math.round(r):Math.ceil(r),i=Math.round(i*n)/n,a=Math.round(a*n)/n,o.push(wn(d)?i:d);for(var m=1;me.length-1?null:this.getPixelForValue(e[t])}}),Dn=Sn;An._defaults=Dn;var Tn=j.valueOrDefault,In=j.math.log10;var Fn={position:"left",ticks:{callback:an.formatters.logarithmic}};function On(t,e){return j.isFinite(t)&&t>=0?t:e}var Ln=bn.extend({determineDataLimits:function(){var t,e,n,i,a,r,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function h(t){return d?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var c=s.stacked;if(void 0===c)for(t=0;t0){var e=j.min(t),n=j.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,n)}})}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(In(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:On(e.min),max:On(e.max)},a=t.ticks=function(t,e){var n,i,a=[],r=Tn(t.min,Math.pow(10,Math.floor(In(e.min)))),o=Math.floor(In(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===r?(n=Math.floor(In(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(In(r)),i=Math.floor(r/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(r),10==++i&&(i=1,l=++n>=0?1:l),r=Math.round(i*Math.pow(10,n)*l)/l}while(ne.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(In(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;bn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=Tn(t.options.ticks.fontSize,B.global.defaultFontSize)/t._length),t._startValue=In(e),t._valueOffset=n,t._valueRange=(In(t.max)-In(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(In(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),Rn=Fn;Ln._defaults=Rn;var zn=j.valueOrDefault,Nn=j.valueAtIndexOrDefault,Bn=j.options.resolve,Wn={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:an.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function En(t){var e=t.ticks;return e.display&&t.display?zn(e.fontSize,B.global.defaultFontSize)+2*e.backdropPaddingY:0}function Vn(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:ta?{start:e-n,end:e}:{start:e,end:e+n}}function Hn(t){return 0===t||180===t?"center":t<180?"left":"right"}function jn(t,e,n,i){var a,r,o=n.y+i/2;if(j.isArray(e))for(a=0,r=e.length;a270||t<90)&&(n.y-=e.h)}function Un(t){return j.isNumber(t)?t:0}var Yn=Mn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=En(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;j.each(e.data.datasets,function(a,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);j.each(a.data,function(e,a){var r=+t.getRightValue(e);isNaN(r)||o.data[a].hidden||(n=Math.min(r,n),i=Math.max(r,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/En(this.options))},convertTicksToLabels:function(){var t=this;Mn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(function(){var e=j.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""})},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,i,a=j.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=a.string,t._pointLabelSizes=[];var s,l,u,d=t.chart.data.labels.length;for(e=0;er.r&&(r.r=f.end,o.r=h),g.startr.b&&(r.b=g.end,o.b=h)}t.setReductions(t.drawingArea,r,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=this,a=e.l/Math.sin(n.l),r=Math.max(e.r-i.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),s=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(n.b);a=Un(a),r=Un(r),o=Un(o),s=Un(s),i.drawingArea=Math.min(Math.floor(t-(a+r)/2),Math.floor(t-(o+s)/2)),i.setCenterPoint(a,r,o,s)},setCenterPoint:function(t,e,n,i){var a=this,r=a.width-e-a.drawingArea,o=t+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-i-a.drawingArea;a.xCenter=Math.floor((o+r)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(j.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,n=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},_drawGrid:function(){var t,e,n,i=this,a=i.ctx,r=i.options,o=r.gridLines,s=r.angleLines,l=zn(s.lineWidth,o.lineWidth),u=zn(s.color,o.color);if(r.pointLabels.display&&function(t){var e=t.ctx,n=t.options,i=n.pointLabels,a=En(n),r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=j.options._parseFont(i);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,u=t.getPointPosition(s,r+l+5),d=Nn(i.fontColor,s,B.global.defaultFontColor);e.fillStyle=d;var h=t.getIndexAngle(s),c=j.toDegrees(h);e.textAlign=Hn(c),qn(c,t._pointLabelSizes[s],u),jn(e,t.pointLabels[s],u,o.lineHeight)}e.restore()}(i),o.display&&j.each(i.ticks,function(t,n){0!==n&&(e=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(t,e,n,i){var a,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Nn(e.color,i-1),u=Nn(e.lineWidth,i-1);if((o||s)&&l&&u){if(r.save(),r.strokeStyle=l,r.lineWidth=u,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{a=t.getPointPosition(0,n),r.moveTo(a.x,a.y);for(var d=1;d=0;t--)e=i.getDistanceFromCenterForValue(r.ticks.reverse?i.min:i.max),n=i.getPointPosition(t,e),a.beginPath(),a.moveTo(i.xCenter,i.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var i,a,r=t.getIndexAngle(0),o=j.options._parseFont(n),s=zn(n.fontColor,B.global.defaultFontColor);e.save(),e.font=o.string,e.translate(t.xCenter,t.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",j.each(t.ticks,function(r,l){(0!==l||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=e.measureText(r).width,e.fillStyle=n.backdropColor,e.fillRect(-a/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(r,0,-i))}),e.restore()}},_drawTitle:j.noop}),$n=Wn;Yn._defaults=$n;var Gn=j._deprecated,Xn=j.options.resolve,Kn=j.valueOrDefault,Zn=Number.MIN_SAFE_INTEGER||-9007199254740991,Jn=Number.MAX_SAFE_INTEGER||9007199254740991,Qn={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}},ti=Object.keys(Qn);function ei(t,e){return t-e}function ni(t){return j.valueOrDefault(t.time.min,t.ticks.min)}function ii(t){return j.valueOrDefault(t.time.max,t.ticks.max)}function ai(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;o>=0&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],o=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=o[e]-r[e],l=s?(n-r[e])/s:0,u=(o[i]-r[i])*l;return r[i]+u}function ri(t,e){var n=t._adapter,i=t.options.time,a=i.parser,r=a||i.format,o=e;return"function"==typeof a&&(o=a(o)),j.isFinite(o)||(o="string"==typeof r?n.parse(o,r):n.parse(o)),null!==o?+o:(a||"function"!=typeof r||(o=r(e),j.isFinite(o)||(o=n.parse(o))),o)}function oi(t,e){if(j.isNullOrUndef(e))return null;var n=t.options.time,i=ri(t,t.getRightValue(e));return null===i?i:(n.round&&(i=+t._adapter.startOf(i,n.round)),i)}function si(t,e,n,i){var a,r,o,s=ti.length;for(a=ti.indexOf(t);a=0&&(e[r].major=!0);return e}(t,r,o,n):r}var ui=bn.extend({initialize:function(){this.mergeTicksOptions(),bn.prototype.initialize.call(this)},update:function(){var t=this.options,e=t.time||(t.time={}),n=this._adapter=new nn._date(t.adapters.date);return Gn("time scale",e.format,"time.format","time.parser"),Gn("time scale",e.min,"time.min","ticks.min"),Gn("time scale",e.max,"time.max","ticks.max"),j.mergeIf(e.displayFormats,n.formats()),bn.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),bn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,i,a,r,o,s=this,l=s.chart,u=s._adapter,d=s.options,h=d.time.unit||"day",c=Jn,f=Zn,g=[],p=[],m=[],v=s._getLabels();for(t=0,n=v.length;t1?function(t){var e,n,i,a={},r=[];for(e=0,n=t.length;e1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(a=h;a=a&&n<=r&&d.push(n);return i.min=a,i.max=r,i._unit=l.unit||(s.autoSkip?si(l.minUnit,i.min,i.max,h):function(t,e,n,i,a){var r,o;for(r=ti.length-1;r>=ti.indexOf(n);r--)if(o=ti[r],Qn[o].common&&t._adapter.diff(a,i,o)>=e-1)return o;return ti[n?ti.indexOf(n):0]}(i,d.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(t){for(var e=ti.indexOf(t)+1,n=ti.length;ee&&s=0&&t0?s:1}}),di={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}}};ui._defaults=di;var hi={category:yn,linear:An,logarithmic:Ln,radialLinear:Yn,time:ui},ci={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"};nn._date.override("function"==typeof t?{_id:"moment",formats:function(){return ci},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t(e).diff(t(n),i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),B._set("global",{plugins:{filler:{propagate:!0}}});var fi={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),a=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=a.length||0;return r?function(t,e){return e=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1;}}function pi(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,n,i,a,r,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,u=t.fill,d=[];if(!l)return null;for(e=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,e),a=0;a0;--r)j.canvas.lineTo(t,n[r],n[r-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),r=a-1;r>0;--r)t.arc(o,s,l,n[r].angle,n[r-1].angle,!0)}}function yi(t,e,n,i,a,r){var o,s,l,u,d,h,c,f,g=e.length,p=i.spanGaps,m=[],v=[],b=0,x=0;for(t.beginPath(),o=0,s=g;o=0;--n)(e=l[n].$filler)&&e.visible&&(a=(i=e.el)._view,r=i._children||[],o=e.mapper,s=a.backgroundColor||B.global.defaultColor,o&&s&&r.length&&(j.canvas.clipArea(u,t.chartArea),yi(u,r,o,a,s,i._loop),j.canvas.unclipArea(u)))}},ki=j.rtl.getRtlAdapter,wi=j.noop,Mi=j.valueOrDefault;function Si(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}B._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},i=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map(function(n){var a=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:a.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data.datasets;for(a.setAttribute("class",t.id+"-legend"),e=0,n=r.length;el.width)&&(h+=o+n.padding,d[d.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:i,height:o},d[d.length-1]+=i+n.padding}),l.height+=h}else{var c=n.padding,f=t.columnWidths=[],g=t.columnHeights=[],p=n.padding,m=0,v=0;j.each(t.legendItems,function(t,e){var i=Si(n,o)+o/2+a.measureText(t.text).width;e>0&&v+o+2*c>l.height&&(p+=m+n.padding,f.push(m),g.push(v),m=0,v=0),m=Math.max(m,i),v+=o+c,s[e]={left:0,top:0,width:i,height:o}}),p+=m,f.push(m),g.push(v),l.width+=p}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:wi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=B.global,a=i.defaultColor,r=i.elements.line,o=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var d,h=ki(e.rtl,t.left,t.minSize.width),c=t.ctx,f=Mi(n.fontColor,i.defaultFontColor),g=j.options._parseFont(n),p=g.size;c.textAlign=h.textAlign("left"),c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=g.string;var m=Si(n,p),v=t.legendHitBoxes,b=function(t,i){switch(e.align){case"start":return n.padding;case"end":return t-i;default:return(t-i+n.padding)/2;}},x=t.isHorizontal();d=x?{x:t.left+b(l,u[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+b(o,s[0]),line:0},j.rtl.overrideTextDirection(t.ctx,e.textDirection);var y=p+n.padding;j.each(t.legendItems,function(e,i){var f=c.measureText(e.text).width,g=m+p/2+f,_=d.x,k=d.y;h.setWidth(t.minSize.width),x?i>0&&_+g+n.padding>t.left+t.minSize.width&&(k=d.y+=y,d.line++,_=d.x=t.left+b(l,u[d.line])):i>0&&k+y>t.top+t.minSize.height&&(_=d.x=_+t.columnWidths[d.line]+n.padding,d.line++,k=d.y=t.top+b(o,s[d.line]));var w=h.x(_);!function(t,e,i){if(!(isNaN(m)||m<=0)){c.save();var o=Mi(i.lineWidth,r.borderWidth);if(c.fillStyle=Mi(i.fillStyle,a),c.lineCap=Mi(i.lineCap,r.borderCapStyle),c.lineDashOffset=Mi(i.lineDashOffset,r.borderDashOffset),c.lineJoin=Mi(i.lineJoin,r.borderJoinStyle),c.lineWidth=o,c.strokeStyle=Mi(i.strokeStyle,a),c.setLineDash&&c.setLineDash(Mi(i.lineDash,r.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=h.xPlus(t,m/2),u=e+p/2;j.canvas.drawPoint(c,i.pointStyle,s,l,u,i.rotation)}else c.fillRect(h.leftForLtr(t,m),e,m,p),0!==o&&c.strokeRect(h.leftForLtr(t,m),e,m,p);c.restore()}}(w,k,e),v[i].left=h.leftForLtr(w,v[i].width),v[i].top=k,function(t,e,n,i){var a=p/2,r=h.xPlus(t,m+a),o=e+a;c.fillText(n.text,r,o),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,o),c.lineTo(h.xPlus(r,i),o),c.stroke())}(w,k,e,f),x?d.x+=g+n.padding:d.y+=y}),j.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,i,a,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(a=r.legendHitBoxes,n=0;n=(i=a[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return r.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,a="mouseup"===t.type?"click":t.type;if("mousemove"===a){if(!i.onHover&&!i.onLeave)return}else{if("click"!==a)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===a?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function Pi(t,e){var n=new Ci({ctx:t.ctx,options:e,chart:t});ge.configure(t,n,e),ge.addBox(t,n),t.legend=n}var Ai={id:"legend",_element:Ci,beforeInit:function(t){var e=t.options.legend;e&&Pi(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(j.mergeIf(e,B.global.legend),n?(ge.configure(t,n,e),n.options=e):Pi(t,e)):n&&(ge.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Di=j.noop;B._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ti=K.extend({initialize:function(t){j.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:Di,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Di,beforeSetDimensions:Di,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Di,beforeBuildLabels:Di,buildLabels:Di,afterBuildLabels:Di,beforeFit:Di,fit:function(){var t,e=this,n=e.options,i=e.minSize={},a=e.isHorizontal();n.display?(t=(j.isArray(n.text)?n.text.length:1)*j.options._parseFont(n).lineHeight+2*n.padding,e.width=i.width=a?e.maxWidth:t,e.height=i.height=a?t:e.maxHeight):e.width=i.width=e.height=i.height=0},afterFit:Di,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,a,r,o=j.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,d=t.top,h=t.left,c=t.bottom,f=t.right;e.fillStyle=j.valueOrDefault(n.fontColor,B.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(a=h+(f-h)/2,r=d+l,i=f-h):(a="left"===n.position?h+l:f-l,r=d+(c-d)/2,i=c-d,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(a,r),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var g=n.text;if(j.isArray(g))for(var p=0,m=0;m=0;i--){var a=t[i];if(e(a))return a}},j.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},j.almostEquals=function(t,e,n){return Math.abs(t-e)=t},j.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},j.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},j.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},j.toRadians=function(t){return t*(Math.PI/180)},j.toDegrees=function(t){return t*(180/Math.PI)},j._decimalPlaces=function(t){if(j.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},j.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},j.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},j.aliasPixel=function(t){return t%2==0?0:.5},j._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,a=n/2;return Math.round((e-a)*i)/i+a},j.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),h=i*(u=isNaN(u)?0:u),c=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-h*(o.x-a.x),y:r.y-h*(o.y-a.y)},next:{x:r.x+c*(o.x-a.x),y:r.y+c*(o.y-a.y)}}},j.EPSILON=Number.EPSILON||1e-14,j.splineCurveMonotone=function(t){var e,n,i,a,r,o,s,l,u,d=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},j.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},j.niceNum=function(t,e){var n=Math.floor(j.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},j.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},j.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,r=t.target||t.srcElement,o=r.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=a.clientX,i=a.clientY);var l=parseFloat(j.getStyle(r,"padding-left")),u=parseFloat(j.getStyle(r,"padding-top")),d=parseFloat(j.getStyle(r,"padding-right")),h=parseFloat(j.getStyle(r,"padding-bottom")),c=o.right-o.left-l-d,f=o.bottom-o.top-u-h;return{x:n=Math.round((n-o.left-l)/c*r.width/e.currentDevicePixelRatio),y:i=Math.round((i-o.top-u)/f*r.height/e.currentDevicePixelRatio)}},j.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},j.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},j._calculatePadding=function(t,e,n){return(e=j.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},j._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},j.getMaximumWidth=function(t){var e=j._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-j._calculatePadding(e,"padding-left",n)-j._calculatePadding(e,"padding-right",n),a=j.getConstraintWidth(t);return isNaN(a)?i:Math.min(i,a)},j.getMaximumHeight=function(t){var e=j._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-j._calculatePadding(e,"padding-top",n)-j._calculatePadding(e,"padding-bottom",n),a=j.getConstraintHeight(t);return isNaN(a)?i:Math.min(i,a)},j.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},j.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=a+"px",i.style.width=r+"px")}},j.fontString=function(t,e,n){return e+" "+t+"px "+n},j.longestText=function(t,e,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var o,s,l,u,d,h=0,c=n.length;for(o=0;on.length){for(o=0;oi&&(i=r),i},j.numberOfLabelLines=function(t){var e=1;return j.each(t,function(t){j.isArray(t)&&t.length>e&&(e=t.length)}),e},j.color=k?function(t){return t instanceof CanvasGradient&&(t=B.global.defaultColor),k(t)}:function(t){return console.error("Color.js not found!"),t},j.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:j.color(t).saturate(.5).darken(.1).rgbString()}}(),Qe._adapters=nn,Qe.Animation=J,Qe.animationService=Q,Qe.controllers=Zt,Qe.DatasetController=at,Qe.defaults=B,Qe.Element=K,Qe.elements=wt,Qe.Interaction=ae,Qe.layouts=ge,Qe.platform=Fe,Qe.plugins=Oe,Qe.Scale=bn,Qe.scaleService=Le,Qe.Ticks=an,Qe.Tooltip=Ue,Qe.helpers.each(hi,function(t,e){Qe.scaleService.registerScaleType(e,t,t._defaults)}),Fi)Fi.hasOwnProperty(zi)&&Qe.plugins.register(Fi[zi]);Qe.platform.initialize();var Ni=Qe;return"undefined"!=typeof window&&(window.Chart=Qe),Qe.Chart=Qe,Qe.Legend=Fi.legend._element,Qe.Title=Fi.title._element,Qe.pluginService=Qe.plugins,Qe.PluginBase=Qe.Element.extend({}),Qe.canvasHelpers=Qe.helpers.canvas,Qe.layoutService=Qe.layouts,Qe.LinearScaleBase=Mn,Qe.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(t){Qe[t]=function(e,n){return new Qe(e,Qe.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}}),Ni});var Qc={components:{VueGoodTable:rb},data:function(){return{refererDomainsData:[],refererRecentDomainsData:[],refererMediumData:[],refererFullData:[],refererFullLabels:[],referersByMediumOverTimeData:[],isLoading:!1,error:"",userLocale:"en",timeOptions:{layout:{padding:{left:5,right:15,top:5,bottom:10}},scales:{xAxes:[{type:"time",time:{unit:"month",displayFormats:{month:"MMM YYYY"}}}],yAxes:[{stacked:!0}]}}}},created:function(){this.load()},methods:{load:function(e){var r=this;e||(this.isLoading=!0),this.$api.get("simplestats/refererstats").then(function(e){r.isLoading=!1,r.refererDomainsData=e.referersbydomaindata,r.refererMediumData=e.referersbymediumdata,r.refererRecentDomainsData=e.referersbydomainrecentdata,r.refererFullData=e.allreferersrows,r.refererFullLabels=e.allrefererscolumns,r.referersByMediumOverTimeData=e.referersbymediumovertimedata,r.userLocale=window.panel.$language?window.panel.$language.code:""}).catch(function(e){r.isLoading=!1,r.error=e.message,r.$store.dispatch("notification/open",{type:"error",message:e.message,timeout:5e3})})}}};if(typeof Qc==="function"){Qc=Qc.options}Object.assign(Qc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",[_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",[_vm._v("Referrers by medium")]),_vm._v(" "),_vm.refererMediumData.length>0?_c("pie-chart",{attrs:{"data":_vm.refererMediumData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",[_vm._v("Referrers by domain")]),_vm._v(" "),_vm.refererDomainsData.length>0?_c("pie-chart",{attrs:{"data":_vm.refererDomainsData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",[_vm._v("Referrers by domain (this month)")]),_vm._v(" "),_vm.refererRecentDomainsData.length>0?_c("pie-chart",{attrs:{"data":_vm.refererRecentDomainsData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1)],1),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/1"}},[_c("br"),_c("br"),_vm._v(" "),_c("k-headline",[_vm._v("Referrers by medium over time")]),_vm._v(" "),_vm.referersByMediumOverTimeData.length>0?_c("area-chart",{attrs:{"data":_vm.referersByMediumOverTimeData,"download":true,"download":"Site_ReferersEvolution.png","label":"Referers","xtitle":"Time","ytitle":"Hits per medium","stacked":true,"library":_vm.timeOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1)],1),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/1"}},[_c("br"),_c("br"),_c("br"),_vm._v(" "),_c("k-headline",[_vm._v(" All referrers ")]),_vm._v(" "),_vm.refererFullData.length>0?_c("div",[_c("vue-good-table",{attrs:{"rows":_vm.refererFullData,"columns":_vm.refererFullLabels,"styleClass":"vgt-table condensed","max-height":"500px","fixed-header":false,"compactMode":"","search-options":{enabled:true,placeholder:"Filter items..."},"pagination-options":{enabled:true,perPage:20,perPageDropdownEnabled:false}},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="hitspercent"?_c("span",{staticClass:"row-percent"},[_c("span",{staticClass:"visualiser",style:{width:props.row.hitspercent*100+"%"}}),_vm._v(" "),_c("span",{staticClass:"number"},[_vm._v(_vm._s((props.row.hitspercent*100).toFixed(0)+"%"))])]):props.column.field=="timefrom"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}],null,false,3427315326)},[_c("div",{attrs:{"slot":"emptystate"},slot:"emptystate"},[_c("k-empty",[_vm._v(" There is nothing to show... ")])],1)])],1):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Rc={extends:"k-pages-section",data:function(){return{isLoading:!0,error:"",dbHistory:[],dbHistoryLabels:[],upgradeRequired:!1,softwareDbVersion:"unknown",dbVersion:"undefined",dbRequirements:"unknown",dbRequirementsPassed:!0,unlockUpgrade:!1,isUpdatingDb:!1,updateMessage:null,updateMessageTheme:"",databaseLocation:"",databaseSize:""}},components:{VueGoodTable:rb},filters:{prettyBytes:function(e){if("number"!=typeof(e=Number(e))||isNaN(e))return"?? kb";var t,s=e<0,a=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];return s&&(e=-e),e<1?(s?"-":"")+e+" B":(t=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),a.length-1),(s?"-":"")+(e=1*(e/Math.pow(1e3,t)).toFixed(2))+" "+a[t])}},created:function(){this.load()},methods:{load:function(){var e=this;this.updateMessage=null,this.$api.get("simplestats/listdbinfo").then(function(t){e.isLoading=!1,e.dbHistoryLabels=t.dbHistoryLabels,e.dbHistory=t.dbHistory,e.upgradeRequired=t.upgradeRequired,e.softwareDbVersion=t.softwareDbVersion,e.dbVersion=t.dbVersion,e.databaseLocation=t.databaseLocation,e.databaseSize=t.databaseSize,e.updateMessage=null}).catch(function(t){e.isLoading=!1,e.updateMessage=t.message,e.$store.dispatch("notification/open",{type:"error",message:t.message,timeout:5e3})}),this.$api.get("simplestats/checkrequirements").then(function(t){e.isLoading=!1,e.dbRequirements=t.dbRequirements,e.dbRequirementsPassed=t.dbRequirementsPassed}).catch(function(t){e.isLoading=!1,e.dbRequirements=t.message,e.$store.dispatch("notification/open",{type:"error",message:t.message,timeout:5e3})})},acceptUpgrade:function(e){this.unlockUpgrade=e},requestUpgrade:function(e){var t=this;e.stopPropagation(),this.unlockUpgrade?(this.isUpdatingDb=!0,this.updateMessage=null,this.$api.get("simplestats/dbupgrade").then(function(e){t.isUpdatingDb=!1,t.updateMessage=e.message,t.updateMessageTheme=e.status?"positive":"negative"}).catch(function(e){t.isUpdatingDb=!1,t.error=e.message,t.$store.dispatch("notification/open",{type:"error",message:e.message,timeout:5e3})})):this.$store.dispatch("notification/open",{type:"error",message:"Before hitting that button, please ensure to backup your database file !",timeout:5e3})}}};if(typeof Rc==="function"){Rc=Rc.options}Object.assign(Rc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"dbinformation"},[_c("k-headline",{attrs:{"size":"large"}},[_vm._v(_vm._s(_vm.$t("simplestats.info.title")))]),_vm._v(" "),_c("k-headline",[_vm._v(_vm._s(_vm.$t("simplestats.info.db.title")))]),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.file"),"value":_vm.databaseLocation,"icon":"file-zip"}}),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.size"),"value":_vm._f("prettyBytes")(_vm.databaseSize),"icon":"download"}}),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.dbversion"),"value":_vm.dbVersion,"icon":"bolt"}}),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.softwareversion"),"value":_vm.softwareDbVersion,"icon":"bolt"}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",[_vm._v(" "+_vm._s(_vm.$t("simplestats.info.db.versionhistory"))+" ")]),_vm._v(" "),_c("vue-good-table",{attrs:{"rows":_vm.dbHistory,"columns":_vm.dbHistoryLabels,"styleClass":"vgt-table condensed nosearch","max-height":"500px","fixed-header":false,"compactMode":"","search-options":{enabled:false},"pagination-options":{enabled:true,perPage:5,perPageDropdownEnabled:false,nextLabel:_vm.$t("simplestats.table.pages.next","Next"),prevLabel:_vm.$t("simplestats.table.pages.prev","Previous"),ofLabel:_vm.$t("simplestats.table.pages.of","of")}},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="timefrom"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}])},[_c("div",{attrs:{"slot":"emptystate"},slot:"emptystate"},[_c("k-empty",[_vm._v(" "+_vm._s(_vm.$t("simplestats.nodatayet"))+" ")])],1)]),_vm._v(" "),_c("k-line-field"),_vm._v(" "),_c("k-headline",[_vm._v(_vm._s(_vm.$t("simplestats.info.dbreqs.title")))]),_vm._v(" "),_vm.dbRequirementsPassed?_c("div",[_c("k-info-field",{attrs:{"theme":"positive","text":_vm.$t("simplestats.info.dbreqs.positive")}})],1):_c("div",[_c("k-info-field",{attrs:{"theme":"negative","text":_vm.$t("simplestats.info.dbreqs.negative")}}),_vm._v(" "),_c("hr"),_vm._v(" "+_vm._s(_vm.dbRequirements)+" ")],1),_vm._v(" "),_c("br"),_vm._v(" "),_c("div",{staticClass:"upgrade"},[_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_vm.upgradeRequired?_c("div",[!_vm.updateMessage?_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.dbupdate.required"),"theme":"negative","text":_vm.$t("simplestats.info.dbupdate.requiredmsg")}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-checkbox-input",{attrs:{"value":_vm.unlockUpgrade,"label":_vm.$t("simplestats.info.dbupdate.isbackedup")},on:{"input":_vm.acceptUpgrade}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-button",{attrs:{"icon":"bolt"},on:{"click":_vm.requestUpgrade}},[_vm._v(_vm._s(_vm.$t("simplestats.info.dbupdate.go")))]),_vm._v(" "),_vm.isUpdatingDb?_c("k-label",[_vm._v(_vm._s(_vm.$t("simplestats.loading")))]):_vm._e()],1):_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.dbupdate.result"),"text":_vm.updateMessage,"theme":_vm.updateMessageTheme}}),_vm._v(" "),_c("k-button",{attrs:{"theme":"neutral"},on:{"click":_vm.load}},[_vm._v(_vm._s(_vm.$t("simplestats.info.dbupdate.refresh")))])],1)]):_vm.updateMessage==null?_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.dbupdate.title"),"text":_vm.$t("simplestats.info.dbupdate.isuptodate"),"theme":"positive"}})],1):_vm.updateMessage!==null?_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.loaderror"),"text":_vm.updateMessage,"theme":"negative"}})],1):_vm._e()])],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Sc={extends:"k-pages-section",data:function(){return{isLoading:!0,error:"",saltIsSet:!1,trackingPeriodName:"",trackingSince:"",uniqueSeconds:"",enableReferers:!1,enableDevices:!1,enableVisits:!1,enableVisitLanguages:!1,ignoredRoles:[],ignoredPages:[],ignoredTemplates:[],logFile:"",logLevels:[]}},created:function(){this.load()},computed:{trackingFeatures:function(){var e=[];return this.enableReferers&&e.push(this.$t("simplestats.info.config.tracking.referrers","Referers")),this.enableDevices&&e.push(this.$t("simplestats.info.config.tracking.devices","Devices")),this.enableVisits&&e.push(this.$t("simplestats.info.config.tracking.visits","Page Visits")),this.enableVisitLanguages&&e.push(this.$t("simplestats.info.config.tracking.languages","Page Visitors")),e}},methods:{load:function(){var e=this;this.$api.get("simplestats/configinfo").then(function(i){e.isLoading=!1,e.saltIsSet=i.saltIsSet,e.trackingPeriodName=i.trackingPeriodName,e.trackingSince=i.trackingSince,e.uniqueSeconds=i.uniqueSeconds,e.enableReferers=i.enableReferers,e.enableDevices=i.enableDevices,e.enableVisits=i.enableVisits,e.enableVisitLanguages=i.enableVisitLanguages,e.ignoredRoles=i.ignoredRoles,e.ignoredPages=i.ignoredPages,e.logFile=i.logFile,e.logLevels=i.logLevels,e.ignoredTemplates=i.ignoredTemplates}).catch(function(i){e.isLoading=!1,e.error=i.message,e.$store.dispatch("notification/open",{type:"error",message:i.message,timeout:5e3})})}}};if(typeof Sc==="function"){Sc=Sc.options}Object.assign(Sc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"configuration"},[_c("k-headline",{attrs:{"size":"large"}},[_vm._v(_vm._s(_vm.$t("simplestats.info.config.title")))]),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.config.tracking")))]),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.periodname"),"value":_vm.trackingPeriodName,"icon":"clock"}}),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.periodsecs"),"value":_vm.uniqueSeconds,"after":_vm.$t("simplestats.charts.seconds"),"icon":"clock"}}),_vm._v(" "),_c("k-toggle-field",{attrs:{"name":"","disabled":true,"label":_vm.$t("simplestats.info.config.tracking.salted"),"value":_vm.saltIsSet,"icon":"key"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.features"),"value":_vm.trackingFeatures,"icon":"globe"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.ignore.roles"),"value":_vm.ignoredRoles,"icon":"users"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.ignore.ids"),"value":_vm.ignoredPages,"icon":"page"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.ignore.templates"),"value":_vm.ignoredTemplates,"icon":"page"}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.config.log.title")))]),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.log.file"),"value":_vm.logFile,"icon":"file-code"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.log.level"),"value":_vm.logLevels,"icon":"bug"}}),_vm._v(" "),_c("br"),_vm._v(" "),!_vm.isLoading&&!_vm.saltIsSet?_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.config.tracking.unsalted"),"theme":"negative","text":_vm.$t("simplestats.info.config.tracking.unsaltedwarn")}}):_vm._e()],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());function Hj(e){return(Hj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Tc={name:"list-viewer",props:{arrayData:{type:Array,default:[]},depth:{type:Number,default:0}},methods:{}};if(typeof Tc==="function"){Tc=Tc.options}Object.assign(Tc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",[_vm.arrayData?_c("ul",{style:{paddingLeft:20*_vm.depth+"px"}},_vm._l(_vm.arrayData,function(value,key,index){return _c("li",_vm._b({key:key,class:{isChild:_vm.subpage,"text-danger":_vm.hasError}},"li",_vm.arrayData.status,false),[typeof value==="Array"||typeof value==="object"?_c("div",[_c("span",[_vm._v(" "+_vm._s(key)+" = ")]),_vm._v(" "),(typeof value==="Array"||typeof value==="object")&&_vm.depth<10?_c("list-viewer",{attrs:{"array-data":value,"depth":_vm.depth+1}}):_vm._e()],1):_c("div",[_c("span",[_vm._v(" "+_vm._s(key)+" = "+_vm._s(value)+" ")])])])}),0):_vm._e()])};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Uc={name:"TrackingTester",components:{ListViewer:Tc},data:function(){var e=new Date,r=new Date;return r.setDate(e.getDate()-30),{isLoading:!0,error:"",currentDevice:"",currentUserAgent:this.currentUserAgentJS,customDevice:"",customUserAgent:"",referrerField:"",referrerResponse:null,unlockGenerator:!1,generatorMode:"randommulti",generatorTo:e.toString(),generatorFrom:r.toString(),generatorResponse:null}},created:function(){this.load()},computed:{currentUserAgentJS:function(){return navigator.userAgent},formattedCurrentUA:function(){return this.currentDevice&&""!==this.currentDevice?this.currentDevice.device+" - "+this.currentDevice.system+" - "+this.currentDevice.engine:"-"},formattedCustomUA:function(){return this.customDevice&&""!==this.customDevice?this.customDevice.device+" - "+this.customDevice.system+" - "+this.customDevice.engine:"-"},formattedReferrer:function(){return this.referrerResponse?this.referrerResponse.medium?this.referrerResponse.host+" - - "+this.referrerResponse.source+" - "+this.referrerResponse.url+" ("+this.referrerResponse.medium+")":this.referrerResponse.error?this.referrerResponse.error:"Error...":"-"},formattedReferrerUrl:function(){if(this.referrerResponse){if(this.referrerResponse.url)return this.referrerResponse.url;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"},formattedReferrerSource:function(){if(this.referrerResponse){if(this.referrerResponse.source)return this.referrerResponse.source;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"},formattedReferrerHost:function(){if(this.referrerResponse){if(this.referrerResponse.host)return this.referrerResponse.host;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"},formattedReferrerMedium:function(){if(this.referrerResponse){if(this.referrerResponse.medium)return this.referrerResponse.medium;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"}},methods:{load:function(){var e=this;this.$api.get("simplestats/trackingtester").then(function(r){e.isLoading=!1,e.currentDevice=r.currentDeviceInfo,e.currentUserAgent=r.currentUserAgent}).catch(function(r){e.isLoading=!1,e.error=r.message,e.$store.dispatch("notification/open",{type:"error",message:r.message,timeout:5e3})})},testReferrer:function(){var e=this;this.$api.get("simplestats/trackingtester/referrer?referrer="+encodeURIComponent(this.referrerField)).then(function(r){r&&"string"==typeof r.referrerInfo?e.referrerResponse={error:r.referrerInfo}:r&&"object"==Hj(r.referrerInfo)?e.referrerResponse=r.referrerInfo:e.referrerResponse={error:"Data format error !"}}).catch(function(r){r&&r.message?e.referrerResponse=r.message:e.referrerResponse="Loading error !"})},testUserAgent:function(){var e=this;this.$api.get("simplestats/trackingtester/ua?ua="+encodeURIComponent(this.customUserAgent)).then(function(r){"string"==typeof r?e.customDevice={error:r}:"object"==Hj(r)?e.customDevice=r:e.customDevice={error:"Data format error !"}}).catch(function(r){r&&r.message?e.customDevice=r.message:e.customDevice="Loading Error !"})},acceptGenerate:function(e){this.unlockGenerator=e},generateStats:function(){var e=this;this.$api.get("simplestats/trackingtester/generatestats?proceed="+(this.unlockGenerator?"yes":"no")+"&from="+.001*new Date(this.generatorFrom).getTime()+"&to="+.001*new Date(this.generatorTo).getTime()+"&mode="+this.generatorMode).then(function(r){e.generatorResponse=r}).catch(function(r){e.generatorResponse={status:"false",error:"Loading Error = "+r.message}})}}};if(typeof Uc==="function"){Uc=Uc.options}Object.assign(Uc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"configuration"},[_c("k-headline",{attrs:{"size":"large"}},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.title")))]),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.device")))]),_vm._v(" "),_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.device.currentua"),"value":_vm.currentUserAgent,"icon":"display"}}),_vm._v(" "),_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.device.currentdetected"),"value":_vm.formattedCurrentUA,"icon":"display"}}),_vm._v(" "),_c("k-form",{on:{"submit":_vm.testUserAgent}},[_c("k-text-field",{staticClass:"field-with-btn",attrs:{"counter":false,"disabled":false,"label":_vm.$t("simplestats.info.tester.device.customua"),"icon":"display"},model:{value:_vm.customUserAgent,callback:function($$v){_vm.customUserAgent=$$v},expression:"customUserAgent"}}),_vm._v(" "),_c("k-button",{staticClass:"floating-btn",on:{"click":_vm.testUserAgent}},[_vm._v("Go!")]),_vm._v(" "),this.customDevice?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.device.customdetected"),"value":_vm.formattedCustomUA,"icon":"display"}}):_vm._e()],1),_vm._v(" "),this.customDevice?_c("k-box",{attrs:{"theme":"info","text":_vm.$t("simplestats.info.tester.device.note")}}):_vm._e(),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.referrer")))]),_vm._v(" "),_c("k-form",{on:{"submit":_vm.testReferrer}},[_c("k-text-field",{staticClass:"field-with-btn",attrs:{"counter":false,"disabled":false,"label":_vm.$t("simplestats.info.tester.referrer.field"),"icon":"globe"},model:{value:_vm.referrerField,callback:function($$v){_vm.referrerField=$$v},expression:"referrerField"}}),_vm._v(" "),_c("k-button",{staticClass:"floating-btn",attrs:{"name":"btn"},on:{"click":_vm.testReferrer}},[_vm._v("Go!")]),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.host"),"value":_vm.formattedReferrerHost,"icon":"globe"}}):_vm._e(),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.source"),"value":_vm.formattedReferrerSource,"icon":"globe"}}):_vm._e(),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.medium"),"value":_vm.formattedReferrerMedium,"icon":"globe"}}):_vm._e(),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.url"),"value":_vm.formattedReferrerUrl,"icon":"globe"}}):_vm._e()],1),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.generator")))]),_vm._v(" "),_c("k-form",{on:{"submit":_vm.generateStats}},[_c("k-select-field",{attrs:{"label":_vm.$t("simplestats.info.tester.generator.generatorMode"),"options":[{value:"all",text:"Static : all pages"},{value:"randomsingle",text:"Single random page"},{value:"randommulti",text:"Multiple random pages"}]},model:{value:_vm.generatorMode,callback:function($$v){_vm.generatorMode=$$v},expression:"generatorMode"}}),_vm._v(" "),_c("k-date-field",{attrs:{"label":_vm.$t("simplestats.info.tester.generator.datefrom"),"time":false},model:{value:_vm.generatorFrom,callback:function($$v){_vm.generatorFrom=$$v},expression:"generatorFrom"}}),_vm._v(" "),_c("k-date-field",{attrs:{"label":_vm.$t("simplestats.info.tester.generator.dateto"),"time":false},model:{value:_vm.generatorTo,callback:function($$v){_vm.generatorTo=$$v},expression:"generatorTo"}}),_vm._v(" "),_c("k-field",{attrs:{"translate":false,"label":_vm.$t("simplestats.info.tester.generator.unlockgenerator")}},[_c("k-checkbox-input",{style:{padding:".5em"},attrs:{"value":_vm.unlockGenerator,"theme":"field","novalidate":true},on:{"input":_vm.acceptGenerate}}),_vm._v(" "),_c("k-button",{style:{border:"1px solid black",padding:"0 1em","borderRadius":"3px"},on:{"click":_vm.generateStats}},[_vm._v("Go!")])],1),_vm._v(" "),_vm.generatorResponse&&_vm.generatorResponse.data?_c("k-field",{attrs:{"translate":false,"label":"Result"}},[_c("list-viewer",{staticClass:"k-input",style:{padding:"1em"},attrs:{"array-data":_vm.generatorResponse.data,"data-theme":"field"}})],1):_vm._e(),_vm._v(" "),_vm.generatorResponse&&_vm.generatorResponse.error?_c("k-textarea-field",{attrs:{"label":"Error!","buttons":false,"disabled":true},model:{value:_vm.generatorResponse.error,callback:function($$v){_vm.$set(_vm.generatorResponse,"error",$$v)},expression:"generatorResponse.error"}}):_vm._e()],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Wb={components:{Visitors:ic,PageStats:jc,Devices:kc,Referers:Qc,DbInformation:Rc,Configuration:Sc,TrackingTester:Uc},data:function(){return{tab:this.tabsKey,tabs:[{name:"simplestats-tabs-visitedpages",label:"Page visits",icon:"layers",columns:[],link:"simplestats?tab=simplestats-tabs-visitedpages"},{name:"simplestats-tabs-visitordevices",label:"Visitor Devices",icon:"users",columns:[],link:"simplestats?tab=simplestats-tabs-visitordevices"},{name:"simplestats-tabs-referers",label:"Referers",icon:"chart",columns:[],link:"simplestats?tab=simplestats-tabs-referers"},{name:"simplestats-tabs-info",label:"Information",icon:"map",columns:[],link:"simplestats?tab=simplestats-tabs-info"}],dismissDisclaimer:!1,isLoading:!0}},watch:{tab:function(s){this.tab=s}},computed:{tabsKey:function(){if(this.$store.state&&this.$store.state.system&&this.$store.state.system.info&&this.$store.state.system.info.version&&parseInt(this.$store.state.system.info.version.at(0)+this.$store.state.system.info.version.at(2))<36)this.tab=this.$route.hash.replace("#","");else{var s=new URLSearchParams(window.location.search).get("tab");s&&(this.tab=s)}return this.tab&&""!=this.tab||(this.tab="simplestats-tabs-visitedpages"),this.tab}},created:function(){this.load()},methods:{load:function(s){var t=this;s||(this.isLoading=!0),this.$api.get("simplestats/mainview").then(function(s){t.isLoading=!1,t.dismissDisclaimer=s.dismissDisclaimer,t.tabs[0].label=s.translations.tabs.pagevisits,t.tabs[1].label=s.translations.tabs.visitordevices,t.tabs[2].label=s.translations.tabs.referers,t.tabs[3].label=s.translations.tabs.information}).catch(function(s){t.isLoading=!1,t.error=s.message,t.$store.dispatch("notification/open",{type:"error",message:s.message,timeout:5e3})})},onTab:function(s){this.tab=s.name}}};if(typeof Wb==="function"){Wb=Wb.options}Object.assign(Wb,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("k-inside",[_c("k-view",{staticClass:"k-simplestats-view"},[_c("p",[_c("br")]),_vm._v(" "),!_vm.isLoading&&!_vm.dismissDisclaimer?_c("k-grid",[_c("k-column",[_c("k-headline",{attrs:{"size":"medium","align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.disclaimer.title")))]),_vm._v(" "),_c("k-text",{attrs:{"size":"small","align":"center"}},[_c("span",{domProps:{"innerHTML":_vm._s(_vm.$t("simplestats.disclaimer.text"))}}),_vm._v(" "),_c("span",{staticClass:"hover-to-help"},[_c("k-icon",{attrs:{"type":"question"}}),_vm._v(" "),_c("div",{staticClass:"help"},[_c("k-text",{attrs:{"theme":"help","size":"small","align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.disclaimer.dismiss")))])],1)],1),_vm._v(" "),_c("br")]),_vm._v(" "),_c("br"),_c("br")],1)],1):_vm._e(),_vm._v(" "),_c("k-tabs",{key:_vm.tabsKey,ref:"tabsref",attrs:{"tabs":_vm.tabs,"tab":_vm.tab},on:{"tab":_vm.onTab}}),_vm._v(" "),_c("p",[_c("br")]),_vm._v(" "),_vm.tab=="simplestats-tabs-visitedpages"?_c("div",[_c("page-stats")],1):_vm.tab=="simplestats-tabs-visitordevices"?_c("div",[_c("devices")],1):_vm.tab=="simplestats-tabs-referers"?_c("div",[_c("referers")],1):_vm.tab=="simplestats-tabs-info"?_c("div",[_c("k-grid",{attrs:{"gutter":"large"}},[_c("k-column",{attrs:{"width":"1/2"}},[_c("configuration"),_vm._v(" "),_c("k-line-field"),_vm._v(" "),_c("tracking-tester")],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/2"}},[_c("DbInformation")],1),_vm._v(" "),_c("k-column",[_c("visitors")],1)],1)],1):_c("div",[_c("k-empty",[_vm._v(_vm._s(_vm.$t("simplestats.taberror")))])],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var _s=Xb(Ef);Pc.options={colors:["hsl(0, 80%, 70%)","hsl(45, 80%, 70%)","hsl(90, 80%, 70%)","hsl(135, 80%, 70%)","hsl(180, 80%, 70%)","hsl(225, 80%, 70%)","hsl(270, 80%, 70%)","hsl(315, 80%, 70%)","hsl(0, 70%, 80%)","hsl(45, 70%, 80%)","hsl(90, 70%, 80%)","hsl(135, 70%, 80%)","hsl(180, 70%, 80%)","hsl(225, 70%, 80%)","hsl(270, 70%, 80%)","hsl(315, 70%, 80%)","hsl(0, 80%, 70%)","hsl(45, 80%, 70%)","hsl(90, 80%, 70%)","hsl(135, 80%, 70%)","hsl(180, 80%, 70%)","hsl(225, 80%, 70%)","hsl(270, 80%, 70%)","hsl(315, 80%, 70%)","hsl(0, 70%, 80%)","hsl(45, 70%, 80%)","hsl(90, 70%, 80%)","hsl(135, 70%, 80%)","hsl(180, 70%, 80%)","hsl(225, 70%, 80%)","hsl(270, 70%, 80%)","hsl(315, 70%, 80%)"],dataset:{borderWidth:1,borderColor:"black"},options:{scales:{xAxes:[{type:"time",time:{unit:"month",displayFormats:{month:"MMM YYYY"}}}],yAxes:[{stacked:!0}]}}},Pc.use(_s.d),panel.plugin("daandelange/simplestats",{views:{simplestats:{component:Wb,icon:"chart",label:"SimpleStats"}},components:{simplestats:Wb},use:{Chartkick:Pc},devtool:"source-map"});})(); \ No newline at end of file +(function () {function Xb(a){return a&&a.__esModule?{d:a.default}:{d:a}}var Sa=this;var Ij=Nj;var Ff=Qj;for(var Ia=[],Aa=[],Jj="undefined"!=typeof Uint8Array?Uint8Array:Array,Vc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nb=0,Kj=Vc.length;nb0)throw new Error("Invalid string. Length must be a multiple of 4");var p=$.indexOf("=");return-1===p&&(p=r),[p,p===r?0:4-p%4]}function Mj($,r,p){return 3*(r+p)/4-p}function Nj($){var r,p,o=Lj($),e=o[0],y=o[1],h=new Jj(Mj($,e,y)),a=0,t=y>0?e-4:e;for(p=0;p>16&255,h[a++]=r>>8&255,h[a++]=255&r;return 2===y&&(r=Aa[$.charCodeAt(p)]<<2|Aa[$.charCodeAt(p+1)]>>4,h[a++]=255&r),1===y&&(r=Aa[$.charCodeAt(p)]<<10|Aa[$.charCodeAt(p+1)]<<4|Aa[$.charCodeAt(p+2)]>>2,h[a++]=r>>8&255,h[a++]=255&r),h}function Oj($){return Ia[$>>18&63]+Ia[$>>12&63]+Ia[$>>6&63]+Ia[63&$]}function Pj($,r,p){for(var o,e=[],y=r;yh?h:y+16383));return 1===o?(r=$[p-1],e.push(Ia[r>>2]+Ia[r<<4&63]+"==")):2===o&&(r=($[p-2]<<8)+$[p-1],e.push(Ia[r>>10]+Ia[r>>4&63]+Ia[r<<2&63]+"=")),e.join("")}Aa["-".charCodeAt(0)]=62,Aa["_".charCodeAt(0)]=63;var Yb=function(t,r,o,a,$){var e,p,J=8*$-a-1,N=(1<>1,M=-7,w=o?$-1:0,f=o?-1:1,i=t[r+w];for(w+=f,e=i&(1<<-M)-1,i>>=-M,M+=J;M>0;e=256*e+t[r+w],w+=f,M-=8);for(p=e&(1<<-M)-1,e>>=-M,M+=a;M>0;p=256*p+t[r+w],w+=f,M-=8);if(0===e)e=1-h;else{if(e===N)return p?NaN:1/0*(i?-1:1);p+=Math.pow(2,a),e-=h}return(i?-1:1)*p*Math.pow(2,e-a)};var Gf=function(t,r,o,a,$,e){var p,J,N,h=8*e-$-1,M=(1<>1,f=23===$?Math.pow(2,-24)-Math.pow(2,-77):0,i=a?0:e-1,g=a?1:-1,s=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(J=isNaN(r)?1:0,p=M):(p=Math.floor(Math.log(r)/Math.LN2),r*(N=Math.pow(2,-p))<1&&(p--,N*=2),(r+=p+w>=1?f/N:f*Math.pow(2,1-w))*N>=2&&(p++,N/=2),p+w>=M?(J=0,p=M):p+w>=1?(J=(r*N-1)*Math.pow(2,$),p+=w):(J=r*Math.pow(2,w-1)*Math.pow(2,$),p=0));$>=8;t[o+i]=255&J,i+=g,J/=256,$-=8);for(p=p<<$|J,h+=$;h>0;t[o+i]=255&p,i+=g,p/=256,h-=8);t[o+i-g]|=128*s};var Hf={},Rj={}.toString;Hf=Array.isArray||function(r){return"[object Array]"==Rj.call(r)};var Sj=50;ba.TYPED_ARRAY_SUPPORT=void 0!==Sa.TYPED_ARRAY_SUPPORT?Sa.TYPED_ARRAY_SUPPORT:Tj();var a=Zb();function Tj(){try{var r=new Uint8Array(1);return r.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===r.foo()&&"function"==typeof r.subarray&&0===r.subarray(1,1).byteLength}catch(e){return!1}}function Zb(){return ba.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Na(r,e){if(Zb()=Zb())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zb().toString(16)+" bytes");return 0|r}function Kf(r,e){if(ba.isBuffer(r))return r.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;"string"!=typeof r&&(r=""+r);var t=r.length;if(0===t)return 0;for(var $=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return ac(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return Tf(r).length;default:if($)return ac(r).length;e=(""+e).toLowerCase(),$=!0;}}function Yj(r,e,t){var $=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return gk(this,e,t);case"utf8":case"utf-8":return Of(this,e,t);case"ascii":return ek(this,e,t);case"latin1":case"binary":return fk(this,e,t);case"base64":return ck(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return hk(this,e,t);default:if($)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),$=!0;}}function $a(r,e,t){var $=r[e];r[e]=r[t],r[t]=$}function Lf(r,e,t,$,n){if(0===r.length)return-1;if("string"==typeof t?($=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=n?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(n)return-1;t=r.length-1}else if(t<0){if(!n)return-1;t=0}if("string"==typeof e&&(e=ba.from(e,$)),ba.isBuffer(e))return 0===e.length?-1:Mf(r,e,t,$,n);if("number"==typeof e)return e&=255,ba.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):Mf(r,[e],t,$,n);throw new TypeError("val must be string, number or Buffer")}function Mf(r,e,t,$,n){var s,f=1,h=r.length,a=e.length;if(void 0!==$&&("ucs2"===($=String($).toLowerCase())||"ucs-2"===$||"utf16le"===$||"utf-16le"===$)){if(r.length<2||e.length<2)return-1;f=2,h/=2,a/=2,t/=2}function i(r,e){return 1===f?r[e]:r.readUInt16BE(e*f)}if(n){var o=-1;for(s=t;sh&&(t=h-a),s=t;s>=0;s--){for(var u=!0,d=0;dn&&($=n):$=n;var s=e.length;if(s%2!=0)throw new TypeError("Invalid hex string");$>s/2&&($=s/2);for(var f=0;f<$;++f){var h=parseInt(e.substr(2*f,2),16);if(isNaN(h))return f;r[t+f]=h}return f}function $j(r,e,t,$){return bc(ac(e,r.length-t),r,t,$)}function Nf(r,e,t,$){return bc(mk(e),r,t,$)}function _j(r,e,t,$){return Nf(r,e,t,$)}function ak(r,e,t,$){return bc(Tf(e),r,t,$)}function bk(r,e,t,$){return bc(nk(e,r.length-t),r,t,$)}function ck(r,e,t){return 0===e&&t===r.length?Ff(r):Ff(r.slice(e,t))}function Of(r,e,t){t=Math.min(r.length,t);for(var $=[],n=e;n239?4:i>223?3:i>191?2:1;if(n+u<=t)switch(u){case 1:i<128&&(o=i);break;case 2:128==(192&(s=r[n+1]))&&(a=(31&i)<<6|63&s)>127&&(o=a);break;case 3:s=r[n+1],f=r[n+2],128==(192&s)&&128==(192&f)&&(a=(15&i)<<12|(63&s)<<6|63&f)>2047&&(a<55296||a>57343)&&(o=a);break;case 4:s=r[n+1],f=r[n+2],h=r[n+3],128==(192&s)&&128==(192&f)&&128==(192&h)&&(a=(15&i)<<18|(63&s)<<12|(63&f)<<6|63&h)>65535&&a<1114112&&(o=a);}null===o?(o=65533,u=1):o>65535&&(o-=65536,$.push(o>>>10&1023|55296),o=56320|1023&o),$.push(o),n+=u}return dk($)}ba.poolSize=8192,ba._augment=function(r){return r.__proto__=ba.prototype,r},ba.from=function(r,e,t){return If(null,r,e,t)},ba.TYPED_ARRAY_SUPPORT&&(ba.prototype.__proto__=Uint8Array.prototype,ba.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&ba[Symbol.species]===ba&&Object.defineProperty(ba,Symbol.species,{value:null,configurable:!0})),ba.alloc=function(r,e,t){return Uj(null,r,e,t)},ba.allocUnsafe=function(r){return Wc(null,r)},ba.allocUnsafeSlow=function(r){return Wc(null,r)},ba.isBuffer=function(r){return!(null==r||!r._isBuffer)},ba.compare=function(r,e){if(!ba.isBuffer(r)||!ba.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var t=r.length,$=e.length,n=0,s=Math.min(t,$);n0&&(r=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(r+=" ... ")),""},ba.prototype.compare=function(r,e,t,$,n){if(!ba.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=r?r.length:0),void 0===$&&($=0),void 0===n&&(n=this.length),e<0||t>r.length||$<0||n>this.length)throw new RangeError("out of range index");if($>=n&&e>=t)return 0;if($>=n)return-1;if(e>=t)return 1;if(this===r)return 0;for(var s=(n>>>=0)-($>>>=0),f=(t>>>=0)-(e>>>=0),h=Math.min(s,f),a=this.slice($,n),i=r.slice(e,t),o=0;on)&&(t=n),r.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");for(var s=!1;;)switch($){case"hex":return Zj(this,r,e,t);case"utf8":case"utf-8":return $j(this,r,e,t);case"ascii":return Nf(this,r,e,t);case"latin1":case"binary":return _j(this,r,e,t);case"base64":return ak(this,r,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bk(this,r,e,t);default:if(s)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),s=!0;}},ba.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Pf=4096;function dk(r){var e=r.length;if(e<=Pf)return String.fromCharCode.apply(String,r);for(var t="",$=0;$$)&&(t=$);for(var n="",s=e;st)throw new RangeError("Trying to access beyond buffer length")}function ua(r,e,t,$,n,s){if(!ba.isBuffer(r))throw new TypeError("\"buffer\" argument must be a Buffer instance");if(e>n||er.length)throw new RangeError("Index out of range")}function $b(r,e,t,$){e<0&&(e=65535+e+1);for(var n=0,s=Math.min(r.length-t,2);n>>8*($?n:1-n)}function _b(r,e,t,$){e<0&&(e=4294967295+e+1);for(var n=0,s=Math.min(r.length-t,4);n>>8*($?n:3-n)&255}function Qf(r,e,t,$,n,s){if(t+$>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Rf(r,e,t,$,n){return n||Qf(r,e,t,4,3.4028234663852886e38,-3.4028234663852886e38),Gf(r,e,t,$,23,4),t+4}function Sf(r,e,t,$,n){return n||Qf(r,e,t,8,1.7976931348623157e308,-1.7976931348623157e308),Gf(r,e,t,$,52,8),t+8}ba.prototype.slice=function(r,e){var t,$=this.length;if((r=~~r)<0?(r+=$)<0&&(r=0):r>$&&(r=$),(e=void 0===e?$:~~e)<0?(e+=$)<0&&(e=0):e>$&&(e=$),e0&&(n*=256);)$+=this[r+--e]*n;return $},ba.prototype.readUInt8=function(r,e){return e||oa(r,1,this.length),this[r]},ba.prototype.readUInt16LE=function(r,e){return e||oa(r,2,this.length),this[r]|this[r+1]<<8},ba.prototype.readUInt16BE=function(r,e){return e||oa(r,2,this.length),this[r]<<8|this[r+1]},ba.prototype.readUInt32LE=function(r,e){return e||oa(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+16777216*this[r+3]},ba.prototype.readUInt32BE=function(r,e){return e||oa(r,4,this.length),16777216*this[r]+(this[r+1]<<16|this[r+2]<<8|this[r+3])},ba.prototype.readIntLE=function(r,e,t){r|=0,e|=0,t||oa(r,e,this.length);for(var $=this[r],n=1,s=0;++s=(n*=128)&&($-=Math.pow(2,8*e)),$},ba.prototype.readIntBE=function(r,e,t){r|=0,e|=0,t||oa(r,e,this.length);for(var $=e,n=1,s=this[r+--$];$>0&&(n*=256);)s+=this[r+--$]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},ba.prototype.readInt8=function(r,e){return e||oa(r,1,this.length),128&this[r]?-1*(255-this[r]+1):this[r]},ba.prototype.readInt16LE=function(r,e){e||oa(r,2,this.length);var t=this[r]|this[r+1]<<8;return 32768&t?4294901760|t:t},ba.prototype.readInt16BE=function(r,e){e||oa(r,2,this.length);var t=this[r+1]|this[r]<<8;return 32768&t?4294901760|t:t},ba.prototype.readInt32LE=function(r,e){return e||oa(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24},ba.prototype.readInt32BE=function(r,e){return e||oa(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]},ba.prototype.readFloatLE=function(r,e){return e||oa(r,4,this.length),Yb(this,r,!0,23,4)},ba.prototype.readFloatBE=function(r,e){return e||oa(r,4,this.length),Yb(this,r,!1,23,4)},ba.prototype.readDoubleLE=function(r,e){return e||oa(r,8,this.length),Yb(this,r,!0,52,8)},ba.prototype.readDoubleBE=function(r,e){return e||oa(r,8,this.length),Yb(this,r,!1,52,8)},ba.prototype.writeUIntLE=function(r,e,t,$){(r=+r,e|=0,t|=0,$)||ua(this,r,e,t,Math.pow(2,8*t)-1,0);var n=1,s=0;for(this[e]=255&r;++s=0&&(s*=256);)this[e+n]=r/s&255;return e+t},ba.prototype.writeUInt8=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,1,255,0),ba.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=255&r,e+1},ba.prototype.writeUInt16LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,65535,0),ba.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8):$b(this,r,e,!0),e+2},ba.prototype.writeUInt16BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,65535,0),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=255&r):$b(this,r,e,!1),e+2},ba.prototype.writeUInt32LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,4294967295,0),ba.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=255&r):_b(this,r,e,!0),e+4},ba.prototype.writeUInt32BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,4294967295,0),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r):_b(this,r,e,!1),e+4},ba.prototype.writeIntLE=function(r,e,t,$){if(r=+r,e|=0,!$){var n=Math.pow(2,8*t-1);ua(this,r,e,t,n-1,-n)}var s=0,f=1,h=0;for(this[e]=255&r;++s>0)-h&255;return e+t},ba.prototype.writeIntBE=function(r,e,t,$){if(r=+r,e|=0,!$){var n=Math.pow(2,8*t-1);ua(this,r,e,t,n-1,-n)}var s=t-1,f=1,h=0;for(this[e+s]=255&r;--s>=0&&(f*=256);)r<0&&0===h&&0!==this[e+s+1]&&(h=1),this[e+s]=(r/f>>0)-h&255;return e+t},ba.prototype.writeInt8=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,1,127,-128),ba.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=255&r,e+1},ba.prototype.writeInt16LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,32767,-32768),ba.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8):$b(this,r,e,!0),e+2},ba.prototype.writeInt16BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,2,32767,-32768),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=255&r):$b(this,r,e,!1),e+2},ba.prototype.writeInt32LE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,2147483647,-2147483648),ba.TYPED_ARRAY_SUPPORT?(this[e]=255&r,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):_b(this,r,e,!0),e+4},ba.prototype.writeInt32BE=function(r,e,t){return r=+r,e|=0,t||ua(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),ba.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=255&r):_b(this,r,e,!1),e+4},ba.prototype.writeFloatLE=function(r,e,t){return Rf(this,r,e,!0,t)},ba.prototype.writeFloatBE=function(r,e,t){return Rf(this,r,e,!1,t)},ba.prototype.writeDoubleLE=function(r,e,t){return Sf(this,r,e,!0,t)},ba.prototype.writeDoubleBE=function(r,e,t){return Sf(this,r,e,!1,t)},ba.prototype.copy=function(r,e,t,$){if(t||(t=0),$||0===$||($=this.length),e>=r.length&&(e=r.length),e||(e=0),$>0&&$=this.length)throw new RangeError("sourceStart out of bounds");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),r.length-e<$-t&&($=r.length-e+t);var n,s=$-t;if(this===r&&t=0;--n)r[n+e]=this[n+t];else if(s<1e3||!ba.TYPED_ARRAY_SUPPORT)for(n=0;n>>=0,t=void 0===t?this.length:t>>>0,r||(r=0),"number"==typeof r)for(s=e;s55295&&t<57344){if(!n){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(f+1===$){(e-=3)>-1&&s.push(239,191,189);continue}n=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),n=t;continue}t=65536+(n-55296<<10|t-56320)}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return s}function mk(r){for(var e=[],t=0;t>8,n=t%256,s.push(n),s.push($);return s}function Tf(r){return Ij(jk(r))}function bc(r,e,t,$){for(var n=0;n<$&&!(n+t>=e.length||n>=r.length);++n)e[n+t]=r[n];return n}function ok(r){return r!=r}function Eb(e){return(Eb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fb(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pk(e,t){return rk(e)||tk(e,t)||Uf(e,t)||vk()}function Zc(e){return qk(e)||sk(e)||Uf(e)||uk()}function qk(e){if(Array.isArray(e))return $c(e)}function rk(e){if(Array.isArray(e))return e}function sk(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function tk(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],a=!0,n=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(a=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);a=!0);}catch(l){n=!0,o=l}finally{try{a||null==s.return||s.return()}finally{if(n)throw o}}return r}}function Uf(e,t){if(e){if("string"==typeof e)return $c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$c(e,t):void 0}}function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);ru))return!1;var $=s.get(e);if($&&s.get(t))return $==t;var d=-1,f=!0,h=r&o?new Pe:void 0;for(s.set(e,t),s.set(t,e);++d-1},ye.prototype.set=function(e,t){var r=this.__data__,a=xe(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this},Je.prototype.clear=function(){this.size=0,this.__data__={hash:new be,map:new(ce||ye),string:new be}},Je.prototype.delete=function(e){var t=Fe(this,e).delete(e);return this.size-=t?1:0,t},Je.prototype.get=function(e){return Fe(this,e).get(e)},Je.prototype.has=function(e){return Fe(this,e).has(e)},Je.prototype.set=function(e,t){var r=Fe(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,a),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new ye,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var a=this.__data__;if(a instanceof ye){var n=a.__data__;if(!ce||n.length-1&&e%1==0&&e-1&&e%1==0&&e<=i}function Ge(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qe(e){return null!=e&&"object"==typeof e}var Ke=L?function(e){return function(t){return e(t)}}(L):function(e){return Qe(e)&&Be(e.length)&&!!O[Oe(e)]};function Ve(e){return null!=(t=e)&&Be(t.length)&&!He(t)?Se(e):Re(e);var t}e.exports=function(e,t){return ke(e,t)}}),Wf={a:["a","\xE0","\xE1","\xE2","\xE3","\xE4","\xE5","\xE6","\u0101","\u0103","\u0105","\u01CE","\u01DF","\u01E1","\u01FB","\u0201","\u0203","\u0227","\u0250","\u0251","\u0252","\u0363","\u0430","\u04D1","\u04D3","\u1D43","\u1D44","\u1D8F","\u1E01","\u1E9A","\u1EA1","\u1EA3","\u1EA5","\u1EA7","\u1EA9","\u1EAB","\u1EAD","\u1EAF","\u1EB1","\u1EB3","\u1EB5","\u1EB7","\u2090","\u2C65","\uFF41"],b:["b","\u0180","\u0183","\u0253","\u15AF","\u1D47","\u1D6C","\u1D80","\u1E03","\u1E05","\u1E07","\uFF42"],c:["c","\xE7","\u0107","\u0109","\u010B","\u010D","\u0188","\u023C","\u0255","\u0368","\u1D04","\u1D9C","\u1E09","\u2184","\uFF43"],d:["d","\u010F","\u0111","\u018B","\u018C","\u0221","\u0256","\u0257","\u0369","\u1D48","\u1D6D","\u1D81","\u1D91","\u1E0B","\u1E0D","\u1E0F","\u1E11","\u1E13","\uFF44"],e:["e","\xE8","\xE9","\xEA","\xEB","\u0113","\u0115","\u0117","\u0119","\u011B","\u01DD","\u0205","\u0207","\u0229","\u0247","\u0258","\u0364","\u1D49","\u1D92","\u1E15","\u1E17","\u1E19","\u1E1B","\u1E1D","\u1EB9","\u1EBB","\u1EBD","\u1EBF","\u1EC1","\u1EC3","\u1EC5","\u1EC7","\u2091","\uFF45"],f:["f","\u0192","\u1D6E","\u1D82","\u1DA0","\u1E1F","\uFF46"],g:["g","\u011D","\u011F","\u0121","\u0123","\u01E5","\u01E7","\u01F5","\u0260","\u0261","\u1D4D","\u1D77","\u1D79","\u1D83","\u1DA2","\u1E21","\uFF47"],h:["h","\u0125","\u0127","\u0195","\u021F","\u0265","\u0266","\u02AE","\u02AF","\u02B0","\u02B1","\u036A","\u04BA","\u04BB","\u144B","\u1DA3","\u1E23","\u1E25","\u1E27","\u1E29","\u1E2B","\u2C68","\uFF48"],i:["i","\xEC","\xED","\xEE","\xEF","\u0129","\u012B","\u012D","\u012F","\u01D0","\u0209","\u020B","\u0268","\u0365","\u1D09","\u1D4E","\u1D62","\u1D96","\u1DA4","\u1E2D","\u1E2F","\u1EC9","\u1ECB","\uFF49"],j:["j","\u0135","\u01F0","\u0249","\u029D","\u02B2","\u1DA1","\u1DA8","\uFF4A"],k:["k","\u0137","\u0199","\u01E9","\u029E","\u1D4F","\u1D84","\u1E31","\u1E33","\u1E35","\u2C6A","\uFF4B"],l:["l","\u013A","\u013C","\u013E","\u0140","\u0142","\u019A","\u0234","\u026B","\u026C","\u026D","\u02E1","\u1D85","\u1DA9","\u1DAA","\u1E37","\u1E39","\u1E3B","\u1E3D","\u2113","\u2C61"],m:["m","\u026F","\u0270","\u0271","\u036B","\u1D1F","\u1D50","\u1D5A","\u1D6F","\u1D86","\u1DAC","\u1DAD","\u1E3F","\u1E41","\u1E43","\u33A1","\u33A5","\uFF4D"],n:["n","\xF1","\u0144","\u0146","\u0148","\u0149","\u019E","\u01F9","\u0235","\u0272","\u0273","\u1D70","\u1D87","\u1DAE","\u1DAF","\u1E45","\u1E47","\u1E49","\u1E4B","\u207F","\uFF4E"],o:["o","\xF2","\xF3","\xF4","\xF5","\xF6","\xF8","\u014D","\u014F","\u0151","\u01A1","\u01D2","\u01EB","\u01ED","\u01FF","\u020D","\u020F","\u022B","\u022D","\u022F","\u0231","\u0275","\u0366","\u043E","\u04E7","\u04E9","\u1D0F","\u1D11","\u1D13","\u1D3C","\u1D52","\u1DB1","\u1E4D","\u1E4F","\u1E51","\u1E53","\u1ECD","\u1ECF","\u1ED1","\u1ED3","\u1ED5","\u1ED7","\u1ED9","\u1EDB","\u1EDD","\u1EDF","\u1EE1","\u1EE3","\u2092","\uFF4F","\uD801\uDC2C"],p:["p","\u1D56","\u1D71","\u1D7D","\u1D88","\u1E55","\u1E57","\uFF50"],q:["q","\u024B","\u02A0","\u16E9","\uFF51"],r:["r","\u0155","\u0157","\u0159","\u0211","\u0213","\u024D","\u0279","\u027B","\u02B3","\u02B4","\u02B5","\u036C","\u1D63","\u1D72","\u1D89","\u1E59","\u1E5B","\u1E5D","\u1E5F"],s:["s","\u015B","\u015D","\u015F","\u0161","\u0219","\u0282","\u1506","\u1D8A","\u1E61","\u1E63","\u1E65","\u1E67","\u1E69","\uFF53"],t:["t","\u0163","\u0165","\u0167","\u01AB","\u01AD","\u021B","\u0287","\u036D","\u1D40","\u1D57","\u1D75","\u1DB5","\u1E6B","\u1E6D","\u1E6F","\u1E71","\u1E97","\uFF54"],u:["u","\xF9","\xFA","\xFB","\xFC","\u0169","\u016B","\u016D","\u016F","\u0171","\u0173","\u01B0","\u01D4","\u01D6","\u01D8","\u01DA","\u01DC","\u0215","\u0217","\u0367","\u07CE","\u1D58","\u1D64","\u1E73","\u1E75","\u1E77","\u1E79","\u1E7B","\u1EE5","\u1EE7","\u1EE9","\u1EEB","\u1EED","\u1EEF","\u1EF1","\uFF55"],v:["v","\u028B","\u036E","\u1D5B","\u1D65","\u1DB9","\u1E7D","\u1E7F","\u2C71","\uFF56","\u2C74"],w:["w","\u0175","\u02B7","\u1D42","\u1E81","\u1E83","\u1E85","\u1E87","\u1E89","\u1E98","\u2C73","\uFF57"],x:["x","\u033D","\u0353","\u1D8D","\u036F","\u1E8B","\u1E8D","\u2093","\uFF58"],y:["y","\xFD","\xFF","\u0177","\u0233","\u024F","\u02B8","\u1E8F","\u1EF3","\u1EF5","\u1EF7","\u1EF9","\uFF59"],z:["z","\u017A","\u017C","\u017E","\u01B6","\u0225","\u0240","\u0290","\u0291","\u1646","\u1647","\u1DBB","\u1DBC","\u1DBD","\u1E91","\u1E93","\u1E95","\u2C6C","\uFF5A"]},Xf=function(){var e={};for(var t in Wf){var r=Wf[t];for(var a in r){var n=r[a];n!==t&&(e[n]=t)}}return e}(),zk=/[^a-z0-9\s,.-]/,bd=function(e){if(-1===e.search(zk))return e;for(var t="",r=e.length,a=0;a2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null==e)return!1;var n=r?String(e).toLowerCase():bd(Yf(String(e)).toLowerCase()),o=r?t.toLowerCase():bd(Yf(t).toLowerCase());return a?n===o:n.indexOf(o)>-1},compare:function(e,t){function r(e){return null==e?"":bd(String(e).toLowerCase())}return(e=r(e))<(t=r(t))?-1:e>t?1:0}},Ak={name:"VgtPaginationPageInfo",props:{currentPage:{default:1},lastPage:{default:1},totalRecords:{default:0},ofText:{default:"of",type:String},pageText:{default:"page",type:String},currentPerPage:{},mode:{default:Vf.Records},infoFn:{default:null}},data:function(){return{id:this.getId()}},computed:{pageInfo:function(){return"".concat(this.ofText," ").concat(this.lastPage)},firstRecordOnPage:function(){return(this.currentPage-1)*this.currentPerPage+1},lastRecordOnPage:function(){return-1===this.currentPerPage?this.totalRecords:Math.min(this.totalRecords,this.currentPage*this.currentPerPage)},recordInfo:function(){var e=this.firstRecordOnPage,t=this.lastRecordOnPage;return 0===t&&(e=0),"".concat(e," - ").concat(t," ").concat(this.ofText," ").concat(this.totalRecords)},infoParams:function(){var e=this.firstRecordOnPage,t=this.lastRecordOnPage;return 0===t&&(e=0),{firstRecordOnPage:e,lastRecordOnPage:t,totalRecords:this.totalRecords,currentPage:this.currentPage,totalPage:this.lastPage}}},methods:{getId:function(){return"vgt-page-input-".concat(Math.floor(Math.random()*Date.now()))},changePage:function(e){var t=parseInt(e.target.value,10);if(Number.isNaN(t)||t>this.lastPage||t<1)return e.target.value=this.currentPage,!1;e.target.value=t,this.$emit("page-changed",t)}},mounted:function(){},components:{}};function _a(e,t,r,a,n,o,i,s,l,u){"boolean"!=typeof i&&(l=s,s=i,i=!1);const c="function"==typeof r?r.options:r;let $;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,n&&(c.functional=!0)),a&&(c._scopeId=a),o?($=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=$):t&&($=i?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),$)if(c.functional){const e=c.render;c.render=function(t,r){return $.call(r),e(t,r)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,$):[$]}return r}var Bk=Ak,Ck=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"footer__navigation__page-info"},[e.infoFn?r("div",[e._v("\n "+e._s(e.infoFn(e.infoParams))+"\n ")]):"pages"===e.mode?r("form",{on:{submit:function(e){e.preventDefault()}}},[r("label",{staticClass:"page-info__label",attrs:{for:e.id}},[r("span",[e._v(e._s(e.pageText))]),e._v(" "),r("input",{staticClass:"footer__navigation__page-info__current-entry",attrs:{id:e.id,"aria-describedby":"change-page-hint","aria-controls":"vgb-table",type:"text"},domProps:{value:e.currentPage},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.changePage(t))}}}),e._v(" "),r("span",[e._v(e._s(e.pageInfo))])]),e._v(" "),r("span",{staticStyle:{display:"none"},attrs:{id:"change-page-hint"}},[e._v("\n Type a page number and press Enter to change the page.\n ")])]):r("div",[e._v("\n "+e._s(e.recordInfo)+"\n ")])])},Dk=[],Ek=void 0,Fk="data-v-347cbcfa",Gk=void 0,Hk=!1,Ik=_a({render:Ck,staticRenderFns:Dk},Ek,Bk,Fk,Hk,Gk,!1,void 0,void 0,void 0),Jk={name:"VgtPagination",props:{styleClass:{default:"table table-bordered"},total:{default:null},perPage:{},rtl:{default:!1},perPageDropdownEnabled:{default:!0},customRowsPerPageDropdown:{default:function(){return[]}},paginateDropdownAllowAll:{default:!0},mode:{default:Vf.Records},jumpFirstOrLast:{default:!1},firstText:{default:"First"},lastText:{default:"Last"},nextText:{default:"Next"},prevText:{default:"Prev"},rowsPerPageText:{default:"Rows per page:"},ofText:{default:"of"},pageText:{default:"page"},allText:{default:"All"},infoFn:{default:null}},data:function(){return{id:this.getId(),currentPage:1,prevPage:0,currentPerPage:10,rowsPerPageOptions:[]}},watch:{perPage:{handler:function(e,t){this.handlePerPage(),this.perPageChanged(t)},immediate:!0},customRowsPerPageDropdown:function(){this.handlePerPage()},total:{handler:function(e,t){-1===this.rowsPerPageOptions.indexOf(this.currentPerPage)&&(this.currentPerPage=e)}}},computed:{pagesCount:function(){if(-1===this.currentPerPage)return 1;var e=Math.floor(this.total/this.currentPerPage);return 0===this.total%this.currentPerPage?e:e+1},firstIsPossible:function(){return this.currentPage>1},lastIsPossible:function(){return this.currentPage1}},methods:{getId:function(){return"vgt-select-rpp-".concat(Math.floor(Math.random()*Date.now()))},changePage:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e>0&&this.total>this.currentPerPage*(e-1)&&(this.prevPage=this.currentPage,this.currentPage=e,this.pageChanged(t))},firstPage:function(){this.firstIsPossible&&(this.currentPage=1,this.prevPage=0,this.pageChanged())},lastPage:function(){this.lastIsPossible&&(this.currentPage=this.pagesCount,this.prev=this.currentPage-1,this.pageChanged())},nextPage:function(){this.nextIsPossible&&(this.prevPage=this.currentPage,++this.currentPage,this.pageChanged())},previousPage:function(){this.prevIsPossible&&(this.prevPage=this.currentPage,--this.currentPage,this.pageChanged())},pageChanged:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={currentPage:this.currentPage,prevPage:this.prevPage};e||(t.noEmit=!0),this.$emit("page-changed",t)},perPageChanged:function(e){e&&this.$emit("per-page-changed",{currentPerPage:this.currentPerPage}),this.changePage(1,!1)},handlePerPage:function(){if(null!==this.customRowsPerPageDropdown&&Array.isArray(this.customRowsPerPageDropdown)&&0!==this.customRowsPerPageDropdown.length?this.rowsPerPageOptions=JSON.parse(JSON.stringify(this.customRowsPerPageDropdown)):this.rowsPerPageOptions=JSON.parse(JSON.stringify(xk)),this.perPage){this.currentPerPage=this.perPage;for(var e=!1,t=0;t0&&void 0!==arguments[0]&&arguments[0];this.columnFilters={},e&&this.$emit("filter-changed",this.columnFilters)},isFilterable:function(e){return e.filterOptions&&e.filterOptions.enabled},isDropdown:function(e){return this.isFilterable(e)&&e.filterOptions.filterDropdownItems&&e.filterOptions.filterDropdownItems.length},isDropdownObjects:function(e){return this.isDropdown(e)&&"object"===Eb(e.filterOptions.filterDropdownItems[0])},isDropdownArray:function(e){return this.isDropdown(e)&&"object"!==Eb(e.filterOptions.filterDropdownItems[0])},getClasses:function(e){var t="filter-th";return e.filterOptions&&e.filterOptions.styleClass?[t].concat(Zc(e.filterOptions.styleClass.split(" "))).join(" "):t},getPlaceholder:function(e){return this.isFilterable(e)&&e.filterOptions.placeholder||"Filter ".concat(e.label)},getName:function(e){return"vgt-".concat(this.fieldKey(e.field))},updateFiltersOnEnter:function(e,t){this.timer&&clearTimeout(this.timer),this.updateFiltersImmediately(e.field,t)},updateFiltersOnKeyup:function(e,t){"enter"!==e.filterOptions.trigger&&this.updateFilters(e,t)},updateSlotFilter:function(e,t){var r=e.filterOptions.slotFilterField||e.field;"function"==typeof e.filterOptions.formatValue&&(t=e.filterOptions.formatValue(t)),this.updateFiltersImmediately(r,t)},updateFilters:function(e,t){var r=this;this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){r.updateFiltersImmediately(e.field,t)},400)},updateFiltersImmediately:function(e,t){this.$set(this.columnFilters,this.fieldKey(e),t),this.$emit("filter-changed",this.columnFilters)},populateInitialFilters:function(){for(var e=0;e1?"s":"")+" required, but only "+t.length+" present")}function pa(e){ma(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function El(e,t){ma(2,arguments);var r=pa(e).getTime(),a=ia(t);return new Date(r+a)}var dc=6e4;function $f(e){return e.getTime()%dc}function _f(e){var t=new Date(e.getTime()),r=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var a=r>0?(dc+$f(t))%dc:$f(t);return r*dc+a}function Fl(e,t){ma(2,arguments);var r=pa(e),a=pa(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}function ec(e){ma(1,arguments);var t=pa(e);return!isNaN(t)}var fc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Gl(e,t,r){var a;return r=r||{},a="string"==typeof fc[e]?fc[e]:1===t?fc[e].one:fc[e].other.replace("{{count}}",t),r.addSuffix?r.comparison>0?"in "+a:a+" ago":a}function cd(e){return function(t){var r=t||{},a=r.width?String(r.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var Hl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Il={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kl={date:cd({formats:Hl,defaultWidth:"full"}),time:cd({formats:Il,defaultWidth:"full"}),dateTime:cd({formats:Jl,defaultWidth:"full"})},Ll={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Ml(e,t,r,a){return Ll[e]}function Hb(e){return function(t,r){var a,n=r||{};if("formatting"===(n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=n.width?String(n.width):o;a=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n.width?String(n.width):e.defaultWidth;a=e.values[l]||e.values[s]}return a[e.argumentCallback?e.argumentCallback(t):t]}}var Nl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ol={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ql={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Rl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Sl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function Tl(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd";}return r+"th"}var Ul={ordinalNumber:Tl,era:Hb({values:Nl,defaultWidth:"wide"}),quarter:Hb({values:Ol,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:Hb({values:Pl,defaultWidth:"wide"}),day:Hb({values:Ql,defaultWidth:"wide"}),dayPeriod:Hb({values:Rl,defaultWidth:"wide",formattingValues:Sl,defaultFormattingWidth:"wide"})};function Vl(e){return function(t,r){var a=String(t),n=r||{},o=a.match(e.matchPattern);if(!o)return null;var i=o[0],s=a.match(e.parsePattern);if(!s)return null;var l=e.valueCallback?e.valueCallback(s[0]):s[0];return{value:l=n.valueCallback?n.valueCallback(l):l,rest:a.slice(i.length)}}}function Ib(e){return function(t,r){var a=String(t),n=r||{},o=n.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=a.match(i);if(!s)return null;var l,u=s[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(c)?Xl(c,function(e){return e.test(u)}):Wl(c,function(e){return e.test(u)}),l=e.valueCallback?e.valueCallback(l):l,{value:l=n.valueCallback?n.valueCallback(l):l,rest:a.slice(u.length)}}}function Wl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Xl(e,t){for(var r=0;r0?r:1-r;return fa("yy"===t?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):fa(r+1,2)},d:function(e,t){return fa(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return"am"===r?"a.m.":"p.m.";}},h:function(e,t){return fa(e.getUTCHours()%12||12,t.length)},H:function(e,t){return fa(e.getUTCHours(),t.length)},m:function(e,t){return fa(e.getUTCMinutes(),t.length)},s:function(e,t){return fa(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds();return fa(Math.floor(a*Math.pow(10,r-3)),t.length)}},jm=864e5;function km(e){ma(1,arguments);var t=pa(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=r-t.getTime();return Math.floor(a/jm)+1}function pb(e){ma(1,arguments);var t=pa(e),r=t.getUTCDay(),a=(r<1?7:0)+r-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function cg(e){ma(1,arguments);var t=pa(e),r=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(r+1,0,4),a.setUTCHours(0,0,0,0);var n=pb(a),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var i=pb(o);return t.getTime()>=n.getTime()?r+1:t.getTime()>=i.getTime()?r:r-1}function lm(e){ma(1,arguments);var t=cg(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),pb(r)}var mm=6048e5;function dg(e){ma(1,arguments);var t=pa(e),r=pb(t).getTime()-lm(t).getTime();return Math.round(r/mm)+1}function ab(e,t){ma(1,arguments);var r=t||{},a=r.locale,n=a&&a.options&&a.options.weekStartsOn,o=null==n?0:ia(n),i=null==r.weekStartsOn?o:ia(r.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=pa(e),l=s.getUTCDay(),u=(l=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(a+1,0,l),u.setUTCHours(0,0,0,0);var c=ab(u,t),$=new Date(0);$.setUTCFullYear(a,0,l),$.setUTCHours(0,0,0,0);var d=ab($,t);return r.getTime()>=c.getTime()?a+1:r.getTime()>=d.getTime()?a:a-1}function nm(e,t){ma(1,arguments);var r=t||{},a=r.locale,n=a&&a.options&&a.options.firstWeekContainsDate,o=null==n?1:ia(n),i=null==r.firstWeekContainsDate?o:ia(r.firstWeekContainsDate),s=dd(e,t),l=new Date(0);return l.setUTCFullYear(s,0,i),l.setUTCHours(0,0,0,0),ab(l,t)}var om=6048e5;function eg(e,t){ma(1,arguments);var r=pa(e),a=ab(r,t).getTime()-nm(r,t).getTime();return Math.round(a/om)+1}var qb={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pm={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"});}},y:function(e,t,r){if("yo"===t){var a=e.getUTCFullYear(),n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return Ta.y(e,t)},Y:function(e,t,r,a){var n=dd(e,a),o=n>0?n:1-n;return"YY"===t?fa(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):fa(o,t.length)},R:function(e,t){return fa(cg(e),t.length)},u:function(e,t){return fa(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return fa(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"});}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return fa(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"});}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return Ta.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"});}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return fa(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"});}},w:function(e,t,r,a){var n=eg(e,a);return"wo"===t?r.ordinalNumber(n,{unit:"week"}):fa(n,t.length)},I:function(e,t,r){var a=dg(e);return"Io"===t?r.ordinalNumber(a,{unit:"week"}):fa(a,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ta.d(e,t)},D:function(e,t,r){var a=km(e);return"Do"===t?r.ordinalNumber(a,{unit:"dayOfYear"}):fa(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"});}},e:function(e,t,r,a){var n=e.getUTCDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return fa(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"});}},c:function(e,t,r,a){var n=e.getUTCDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return fa(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"});}},i:function(e,t,r){var a=e.getUTCDay(),n=0===a?7:a;switch(t){case"i":return String(n);case"ii":return fa(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"});}},a:function(e,t,r){var a=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"});}},b:function(e,t,r){var a,n=e.getUTCHours();switch(a=12===n?qb.noon:0===n?qb.midnight:n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"});}},B:function(e,t,r){var a,n=e.getUTCHours();switch(a=n>=17?qb.evening:n>=12?qb.afternoon:n>=4?qb.morning:qb.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"});}},h:function(e,t,r){if("ho"===t){var a=e.getUTCHours()%12;return 0===a&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return Ta.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ta.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(a,{unit:"hour"}):fa(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return 0===a&&(a=24),"ko"===t?r.ordinalNumber(a,{unit:"hour"}):fa(a,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ta.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ta.s(e,t)},S:function(e,t){return Ta.S(e,t)},X:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return gg(n);case"XXXX":case"XX":return bb(n);case"XXXXX":case"XXX":default:return bb(n,":");}},x:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();switch(t){case"x":return gg(n);case"xxxx":case"xx":return bb(n);case"xxxxx":case"xxx":default:return bb(n,":");}},O:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+fg(n,":");case"OOOO":default:return"GMT"+bb(n,":");}},z:function(e,t,r,a){var n=(a._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+fg(n,":");case"zzzz":default:return"GMT"+bb(n,":");}},t:function(e,t,r,a){var n=a._originalDate||e;return fa(Math.floor(n.getTime()/1e3),t.length)},T:function(e,t,r,a){return fa((a._originalDate||e).getTime(),t.length)}};function fg(e,t){var r=e>0?"-":"+",a=Math.abs(e),n=Math.floor(a/60),o=a%60;if(0===o)return r+String(n);var i=t||"";return r+String(n)+i+fa(o,2)}function gg(e,t){return e%60==0?(e>0?"-":"+")+fa(Math.abs(e)/60,2):bb(e,t)}function bb(e,t){var r=t||"",a=e>0?"-":"+",n=Math.abs(e);return a+fa(Math.floor(n/60),2)+r+fa(n%60,2)}function hg(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"});}}function ig(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"});}}function qm(e,t){var r,a=e.match(/(P+)(p+)?/),n=a[1],o=a[2];if(!o)return hg(e,t);switch(n){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});}return r.replace("{{date}}",hg(n,t)).replace("{{time}}",ig(o,t))}var jg={p:ig,P:qm},rm=["D","DD"],sm=["YY","YYYY"];function kg(e){return-1!==rm.indexOf(e)}function lg(e){return-1!==sm.indexOf(e)}function gc(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}var tm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,um=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,vm=/^'([^]*?)'?$/,wm=/''/g,xm=/[a-zA-Z]/;function ym(e,t,r){ma(2,arguments);var a=String(t),n=r||{},o=n.locale||ag,i=o.options&&o.options.firstWeekContainsDate,s=null==i?1:ia(i),l=null==n.firstWeekContainsDate?s:ia(n.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:ia(u),$=null==n.weekStartsOn?c:ia(n.weekStartsOn);if(!($>=0&&$<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var d=pa(e);if(!ec(d))throw new RangeError("Invalid time value");var f=bg(d,_f(d)),h={firstWeekContainsDate:l,weekStartsOn:$,locale:o,_originalDate:d};return a.match(um).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,jg[t])(e,o.formatLong,h):e}).join("").match(tm).map(function(r){if("''"===r)return"'";var a=r[0];if("'"===a)return zm(r);var i=pm[a];if(i)return!n.useAdditionalWeekYearTokens&&lg(r)&&gc(r,t,e),!n.useAdditionalDayOfYearTokens&&kg(r)&&gc(r,t,e),i(f,r,o.localize,h);if(a.match(xm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r}).join("")}function zm(e){return e.match(vm)[1].replace(wm,"'")}function Am(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t=t||{})t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function ed(e,t,r){ma(2,arguments);var a=r||{},n=a.locale,o=n&&n.options&&n.options.weekStartsOn,i=null==o?0:ia(o),s=null==a.weekStartsOn?i:ia(a.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=pa(e),u=ia(t),c=((u%7+7)%70,n=a?t:1-t;if(n<=50)r=e||100;else{var o=n+50;r=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return a?r:1-r}var Hm=[31,28,31,30,31,30,31,31,30,31,30,31],Im=[31,29,31,30,31,30,31,31,30,31,30,31];function pg(e){return e%400==0||e%4==0&&e%100!=0}var Jm={G:{priority:140,parse:function(e,t,r,a){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});case"GGGG":default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});}},set:function(e,t,r,a){return t.era=r,e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,r,a){var n=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return ja(4,e,n);case"yo":return r.ordinalNumber(e,{unit:"year",valueCallback:n});default:return ja(t.length,e,n);}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,a){var n=e.getUTCFullYear();if(r.isTwoDigitYear){var o=og(r.year,n);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,r,a){var n=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return ja(4,e,n);case"Yo":return r.ordinalNumber(e,{unit:"year",valueCallback:n});default:return ja(t.length,e,n);}},validate:function(e,t,r){return t.isTwoDigitYear||t.year>0},set:function(e,t,r,a){var n=dd(e,a);if(r.isTwoDigitYear){var o=og(r.year,n);return e.setUTCFullYear(o,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ab(e,a)}var i="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(i,0,a.firstWeekContainsDate),e.setUTCHours(0,0,0,0),ab(e,a)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,r,a){return ng("R"===t?4:t.length,e)},set:function(e,t,r,a){var n=new Date(0);return n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0),pb(n)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,r,a){return ng("u"===t?4:t.length,e)},set:function(e,t,r,a){return e.setUTCFullYear(r,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,r,a){switch(t){case"Q":case"QQ":return ja(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,a){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,r,a){switch(t){case"q":case"qq":return ja(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=1&&t<=4},set:function(e,t,r,a){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,r,a){var n=function(e){return e-1};switch(t){case"M":return ha(ka.month,e,n);case"MM":return ja(2,e,n);case"Mo":return r.ordinalNumber(e,{unit:"month",valueCallback:n});case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,a){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,r,a){var n=function(e){return e-1};switch(t){case"L":return ha(ka.month,e,n);case"LL":return ja(2,e,n);case"Lo":return r.ordinalNumber(e,{unit:"month",valueCallback:n});case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,a){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,r,a){switch(t){case"w":return ha(ka.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,a){return ab(Dm(e,r,a),a)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,r,a){switch(t){case"I":return ha(ka.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=53},set:function(e,t,r,a){return pb(Cm(e,r,a),a)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,r,a){switch(t){case"d":return ha(ka.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return ja(t.length,e);}},validate:function(e,t,r){var a=pg(e.getUTCFullYear()),n=e.getUTCMonth();return a?t>=1&&t<=Im[n]:t>=1&&t<=Hm[n]},set:function(e,t,r,a){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,r,a){switch(t){case"D":case"DD":return ha(ka.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return ja(t.length,e);}},validate:function(e,t,r){return pg(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,r,a){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,r,a){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,a){return(e=ed(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,r,a){var n=function(e){var t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return ja(t.length,e,n);case"eo":return r.ordinalNumber(e,{unit:"day",valueCallback:n});case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,a){return(e=ed(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,r,a){var n=function(e){var t=7*Math.floor((e-1)/7);return(e+a.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return ja(t.length,e,n);case"co":return r.ordinalNumber(e,{unit:"day",valueCallback:n});case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});}},validate:function(e,t,r){return t>=0&&t<=6},set:function(e,t,r,a){return(e=ed(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,r,a){var n=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return ja(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return r.day(e,{width:"abbreviated",context:"formatting",valueCallback:n})||r.day(e,{width:"short",context:"formatting",valueCallback:n})||r.day(e,{width:"narrow",context:"formatting",valueCallback:n});case"iiiii":return r.day(e,{width:"narrow",context:"formatting",valueCallback:n});case"iiiiii":return r.day(e,{width:"short",context:"formatting",valueCallback:n})||r.day(e,{width:"narrow",context:"formatting",valueCallback:n});case"iiii":default:return r.day(e,{width:"wide",context:"formatting",valueCallback:n})||r.day(e,{width:"abbreviated",context:"formatting",valueCallback:n})||r.day(e,{width:"short",context:"formatting",valueCallback:n})||r.day(e,{width:"narrow",context:"formatting",valueCallback:n});}},validate:function(e,t,r){return t>=1&&t<=7},set:function(e,t,r,a){return(e=Bm(e,r,a)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,r,a){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,a){return e.setUTCHours(fd(r),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,r,a){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,a){return e.setUTCHours(fd(r),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,r,a){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});}},set:function(e,t,r,a){return e.setUTCHours(fd(r),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,r,a){switch(t){case"h":return ha(ka.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=12},set:function(e,t,r,a){var n=e.getUTCHours()>=12;return n&&r<12?e.setUTCHours(r+12,0,0,0):n||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,r,a){switch(t){case"H":return ha(ka.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=23},set:function(e,t,r,a){return e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,r,a){switch(t){case"K":return ha(ka.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=11},set:function(e,t,r,a){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,r,a){switch(t){case"k":return ha(ka.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=1&&t<=24},set:function(e,t,r,a){var n=r<=24?r%24:r;return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,r,a){switch(t){case"m":return ha(ka.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,a){return e.setUTCMinutes(r,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,r,a){switch(t){case"s":return ha(ka.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return ja(t.length,e);}},validate:function(e,t,r){return t>=0&&t<=59},set:function(e,t,r,a){return e.setUTCSeconds(r,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,r,a){return ja(t.length,e,function(e){return Math.floor(e*Math.pow(10,3-t.length))})},set:function(e,t,r,a){return e.setUTCMilliseconds(r),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,r,a){switch(t){case"X":return Ka(Ja.basicOptionalMinutes,e);case"XX":return Ka(Ja.basic,e);case"XXXX":return Ka(Ja.basicOptionalSeconds,e);case"XXXXX":return Ka(Ja.extendedOptionalSeconds,e);case"XXX":default:return Ka(Ja.extended,e);}},set:function(e,t,r,a){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,r,a){switch(t){case"x":return Ka(Ja.basicOptionalMinutes,e);case"xx":return Ka(Ja.basic,e);case"xxxx":return Ka(Ja.basicOptionalSeconds,e);case"xxxxx":return Ka(Ja.extendedOptionalSeconds,e);case"xxx":default:return Ka(Ja.extended,e);}},set:function(e,t,r,a){return t.timestampIsSet?e:new Date(e.getTime()-r)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,r,a){return mg(e)},set:function(e,t,r,a){return[new Date(1e3*r),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,r,a){return mg(e)},set:function(e,t,r,a){return[new Date(r),{timestampIsSet:!0}]},incompatibleTokens:"*"}},Km=10,Lm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nm=/^'([^]*?)'?$/,Om=/''/g,Pm=/\S/,Qm=/[a-zA-Z]/;function qg(e,t,r,a){ma(3,arguments);var n=String(e),o=String(t),i=a||{},s=i.locale||ag;if(!s.match)throw new RangeError("locale must contain match property");var l=s.options&&s.options.firstWeekContainsDate,u=null==l?1:ia(l),c=null==i.firstWeekContainsDate?u:ia(i.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var $=s.options&&s.options.weekStartsOn,d=null==$?0:ia($),f=null==i.weekStartsOn?d:ia(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===n?pa(r):new Date(NaN);var h,v={firstWeekContainsDate:c,weekStartsOn:f,locale:s},w=[{priority:Km,subPriority:-1,set:Rm,index:0}],g=o.match(Mm).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,jg[t])(e,s.formatLong,v):e}).join("").match(Lm),p=[];for(h=0;h0&&Pm.test(n))return new Date(NaN);var S=w.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,r){return r.indexOf(e)===t}).map(function(e){return w.filter(function(t){return t.priority===e}).sort(function(e,t){return t.subPriority-e.subPriority})}).map(function(e){return e[0]}),x=pa(r);if(isNaN(x))return new Date(NaN);var O=bg(x,_f(x)),D={};for(h=0;h=0?parseFloat(e):parseInt(e,10)}return(e="number"==typeof e?e:r(e))<(t="number"==typeof t?t:r(t))?-1:e>t?1:0};var Um=Object.freeze({__proto__:null,default:cb}),rg=Object.assign({},cb);rg.format=function(e){return null==e?"":parseFloat(Math.round(100*e)/100).toFixed(2)};var Vm=Object.freeze({__proto__:null,default:rg}),sg=Object.assign({},cb);sg.format=function(e){return null==e?"":"".concat(parseFloat(100*e).toFixed(2),"%")};var Wm=Object.freeze({__proto__:null,default:sg}),Jb=Object.assign({},ob);Jb.isRight=!0,Jb.filterPredicate=function(e,t){return 0===Jb.compare(e,t)},Jb.compare=function(e,t){function r(e){return"boolean"==typeof e?e?1:0:"string"==typeof e?"true"===e?1:0:-1/0}return(e=r(e))<(t=r(t))?-1:e>t?1:0};var Xm=Object.freeze({__proto__:null,default:Jb}),Ym={date:Tm,decimal:Vm,number:Um,percentage:Wm,boolean:Xm},tg={},ug=Ym;Object.keys(ug).forEach(function(e){var t=e.replace(/^\.\//,"").replace(/\.js/,"");tg[t]=ug[e].default});var Zm={name:"vue-good-table",props:{isLoading:{default:null,type:Boolean},maxHeight:{default:null,type:String},fixedHeader:Boolean,theme:{default:""},mode:{default:"local"},totalRows:{},styleClass:{default:"vgt-table bordered"},columns:{},rows:{},lineNumbers:Boolean,responsive:{default:!0,type:Boolean},rtl:Boolean,rowStyleClass:{default:null,type:[Function,String]},compactMode:Boolean,groupOptions:{default:function(){return{enabled:!1,collapsable:!1,rowKey:null}}},selectOptions:{default:function(){return{enabled:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",disableSelectInfo:!1,selectAllByGroup:!1}}},sortOptions:{default:function(){return{enabled:!0,multipleColumns:!0,initialSortBy:{}}}},paginationOptions:{default:function(){var e;return Fb(e={enabled:!1,position:"bottom",perPage:10,perPageDropdown:null,perPageDropdownEnabled:!0},"position","bottom"),Fb(e,"dropdownAllowAll",!0),Fb(e,"mode","records"),Fb(e,"infoFn",null),Fb(e,"jumpFirstOrLast",!1),e}},searchOptions:{default:function(){return{enabled:!1,trigger:null,externalQuery:null,searchFn:null,placeholder:"Search Table"}}}},data:function(){return{tableLoading:!1,firstText:"First",lastText:"Last",nextText:"Next",prevText:"Previous",rowsPerPageText:"Rows per page",ofText:"of",allText:"All",pageText:"page",selectable:!1,selectOnCheckboxOnly:!1,selectAllByPage:!0,disableSelectInfo:!1,selectionInfoClass:"",selectionText:"rows selected",clearSelectionText:"clear",maintainExpanded:!0,expandedRowKeys:new Set,sortable:!0,defaultSortBy:null,multipleColumnSort:!0,searchEnabled:!1,searchTrigger:null,externalSearchQuery:null,searchFn:null,searchPlaceholder:"Search Table",searchSkipDiacritics:!1,perPage:null,paginate:!1,paginateOnTop:!1,paginateOnBottom:!0,customRowsPerPageDropdown:[],paginateDropdownAllowAll:!0,paginationMode:"records",paginationInfoFn:null,currentPage:1,currentPerPage:10,sorts:[],globalSearchTerm:"",filteredRows:[],columnFilters:{},forceSearch:!1,sortChanged:!1,dataTypes:tg||{}}},watch:{rows:{handler:function(){this.$emit("update:isLoading",!1),this.filterRows(this.columnFilters,!1)},deep:!0,immediate:!0},selectOptions:{handler:function(){this.initializeSelect()},deep:!0,immediate:!0},paginationOptions:{handler:function(e,t){ad(e,t)||this.initializePagination()},deep:!0,immediate:!0},searchOptions:{handler:function(){void 0!==this.searchOptions.externalQuery&&this.searchOptions.externalQuery!==this.searchTerm&&(this.externalSearchQuery=this.searchOptions.externalQuery,this.handleSearch()),this.initializeSearch()},deep:!0,immediate:!0},sortOptions:{handler:function(e,t){ad(e,t)||this.initializeSort()},deep:!0},selectedRows:function(e,t){ad(e,t)||this.$emit("on-selected-rows-change",{selectedRows:this.selectedRows})}},computed:{tableStyles:function(){return this.compactMode?this.tableStyleClasses+"vgt-compact":this.tableStyleClasses},hasFooterSlot:function(){return!!this.$slots["table-actions-bottom"]},wrapperStyles:function(){return{overflow:"scroll-y",maxHeight:this.maxHeight?this.maxHeight:"auto"}},rowKeyField:function(){return this.groupOptions.rowKey||"vgt_header_id"},hasHeaderRowTemplate:function(){return!!this.$slots["table-header-row"]||!!this.$scopedSlots["table-header-row"]},showEmptySlot:function(){return!this.paginated.length||"no groups"===this.paginated[0].label&&!this.paginated[0].children.length},allSelected:function(){return this.selectedRowCount>0&&(this.selectAllByPage&&this.selectedPageRowsCount===this.totalPageRowCount||!this.selectAllByPage&&this.selectedRowCount===this.totalRowCount)},allSelectedIndeterminate:function(){return!this.allSelected&&(this.selectAllByPage&&this.selectedPageRowsCount>0||!this.selectAllByPage&&this.selectedRowCount>0)},selectionInfo:function(){return"".concat(this.selectedRowCount," ").concat(this.selectionText)},selectedRowCount:function(){return this.selectedRows.length},selectedPageRowsCount:function(){return this.selectedPageRows.length},selectedPageRows:function(){var e=[];return this.paginated.forEach(function(t){t.children.forEach(function(t){t.vgtSelected&&e.push(t)})}),e},selectedRows:function(){var e=[];return this.processedRows.forEach(function(t){t.children.forEach(function(t){t.vgtSelected&&e.push(t)})}),e.sort(function(e,t){return e.originalIndex-t.originalIndex})},fullColspan:function(){for(var e=0,t=0;t=t.length||-1===this.currentPerPage)&&(this.currentPage=1,r=0);var a=t.length+1;-1!==this.currentPerPage&&(a=this.currentPage*this.currentPerPage),t=t.slice(r,a)}var n=[];return t.forEach(function(t){if(void 0!==t.vgt_header_id){e.handleExpanded(t);var r=JSON.parse(JSON.stringify(t));r.children=[],n.push(r)}else{var a=n.find(function(e){return e.vgt_header_id===t.vgt_id});a||(a=e.processedRows.find(function(e){return e.vgt_header_id===t.vgt_id}))&&((a=JSON.parse(JSON.stringify(a))).children=[],n.push(a)),a.children.push(t)}}),n},originalRows:function(){var e=this.rows&&this.rows.length?JSON.parse(JSON.stringify(this.rows)):[],t=[];t=this.groupOptions.enabled?this.handleGrouped(e):this.handleGrouped([{label:"no groups",children:e}]);var r=0;return t.forEach(function(e){e.children.forEach(function(e){e.originalIndex=r++})}),t},typedColumns:function(){for(var e=this.columns,t=0;t2&&void 0!==arguments[2]&&arguments[2]&&t.headerField?this.collect(e,t.headerField):this.collect(e,t.field)))return"";if(t.formatFn&&"function"==typeof t.formatFn)return t.formatFn(r,e);var a=t.typeDef;a||(a=this.dataTypes[t.type]||ob);var n=a.format(r,t);return!this.compactMode||""!=n&&null!=n?n:"-"},formattedRow:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},a=0;a1&&void 0!==arguments[1])||arguments[1];this.columnFilters=e;var a=JSON.parse(JSON.stringify(this.originalRows)),n=!1;if(this.columnFilters&&Object.keys(this.columnFilters).length){var o=function(){if(("remote"!==t.mode||r)&&t.changePage(1),r&&t.$emit("on-column-filter",{columnFilters:t.columnFilters}),"remote"===t.mode)return r?t.$emit("update:isLoading",!0):t.filteredRows=a,{v:void 0};for(var e=function(e){return"function"==typeof e&&e.name?e.name:e},o=function(r){var o=t.typedColumns[r];t.columnFilters[e(o.field)]&&(n=!0,a.forEach(function(r){var a=r.children.filter(function(r){return o.filterOptions&&"function"==typeof o.filterOptions.filterFn?o.filterOptions.filterFn(t.collect(r,o.field),t.columnFilters[e(o.field)]):o.typeDef.filterPredicate(t.collect(r,o.field),t.columnFilters[e(o.field)],!1,o.filterOptions&&"object"===Eb(o.filterOptions.filterDropdownItems))});r.children=a}))},i=0;i0?_c("column-chart",{attrs:{"data":_vm.pageVisitsOverTimeData,"download":true,"download":"Site_PageVisits.png","xtitle":_vm.$t("simplestats.charts.time"),"ytitle":_vm.$t("simplestats.charts.visits"),"height":"300px","stacked":true,"library":_vm.chartOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1),_vm._v(" "),_vm.languagesAreEnabled?_c("k-column",{attrs:{"width":"3/4"}},[_c("k-headline",{attrs:{"size":"medium"}},[_vm._v(_vm._s(_vm.$t("simplestats.visits.languagesovertime")))]),_vm._v(" "),_vm.languagesOverTimeData.length>0?_c("area-chart",{attrs:{"data":_vm.languagesOverTimeData,"download":true,"download":"Site_GlobalLanguages.png","xtitle":_vm.$t("simplestats.charts.time"),"ytitle":_vm.$t("simplestats.charts.visits"),"height":"250px","stacked":true,"library":_vm.chartOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1):_vm._e(),_vm._v(" "),_vm.languagesAreEnabled?_c("k-column",{attrs:{"width":"1/4"}},[_c("k-headline",[_vm._v(_vm._s(_vm.$t("simplestats.visits.globallanguages")))]),_vm._v(" "),_vm.globalLanguagesData.length>0?_c("pie-chart",{attrs:{"data":_vm.globalLanguagesData,"height":"250px"}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1):_vm._e(),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-column",[_vm.rows.length>0?_c("div",[_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{attrs:{"size":""}},[_vm._v(" "+_vm._s(_vm.$t("simplestats.visits.visitedpages"))+" ")]),_vm._v(" "),_c("vue-good-table",{attrs:{"columns":_vm.columns,"rows":_vm.rows,"styleClass":"vgt-table condensed","max-height":"500px","fixed-header":false,"compactMode":"","search-options":{enabled:true,placeholder:_vm.$t("simplestats.table.filter","Filter items...")},"pagination-options":{enabled:true,perPage:20,perPageDropdownEnabled:false,nextLabel:_vm.$t("simplestats.table.pages.next","Next"),prevLabel:_vm.$t("simplestats.table.pages.prev","Previous"),ofLabel:_vm.$t("simplestats.table.pages.of","of")}},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="title"?_c("span",[_c("a",{style:{paddingLeft:12*props.row.depth+"px"},attrs:{"href":props.row.url}},[_vm._v(_vm._s(props.row.title))])]):props.column.field=="uid"?_c("span",[_c("a",{style:{paddingLeft:12*props.row.depth+"px"},attrs:{"href":props.row.url}},[_c("k-icon",{attrs:{"type":props.row.icon}}),_vm._v(_vm._s(props.row.uid))],1)]):props.column.field=="hitspercent"?_c("span",{staticClass:"row-percent"},[_c("span",{staticClass:"visualiser",style:{width:props.row.hitspercent*100+"%"}}),_vm._v(" "),_c("span",{staticClass:"number"},[_vm._v(_vm._s((props.row.hitspercent*100).toFixed(0)+"%"))])]):props.column.field=="firstvisited"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):props.column.field=="lastvisited"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}],null,false,1081060268)},[_c("div",{attrs:{"slot":"emptystate"},slot:"emptystate"},[_c("k-empty",[_vm._v(" "+_vm._s(_vm.$t("simplestats.nodatayet"))+" ")])],1)])],1):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var kc={components:{},data:function(){return{devicesData:[],devicesOverTimeData:[],browsersData:[],systemsData:[],isLoading:!1,error:"",chartOptions:{scales:{xAxes:[{type:"time",time:{unit:"month",displayFormats:{month:"MMM YYYY"}}}],yAxes:[{stacked:!0}]}}}},created:function(){this.load()},methods:{load:function(e){var t=this;e||(this.isLoading=!0),this.$api.get("simplestats/devicestats").then(function(e){t.isLoading=!1,t.devicesData=e.devicesdata,t.browsersData=e.enginesdata,t.devicesOverTimeData=e.devicesovertime,t.systemsData=e.systemsdata}).catch(function(e){t.isLoading=!1,t.error=e.message,t.$store.dispatch("notification/open",{type:"error",message:e.message,timeout:5e3})})}}};if(typeof kc==="function"){kc=kc.options}Object.assign(kc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",[_c("k-view",[_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.devices")))]),_vm._v(" "),_vm.devicesData.length>0?_c("pie-chart",{attrs:{"data":_vm.devicesData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.engines")))]),_vm._v(" "),_vm.browsersData.length>0?_c("pie-chart",{attrs:{"data":_vm.browsersData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.oses")))]),_vm._v(" "),_vm.systemsData.length>0?_c("pie-chart",{attrs:{"data":_vm.systemsData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1)],1),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/1"}},[_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{attrs:{"align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.devices.graph.devicehistory")))]),_vm._v(" "),_vm.devicesOverTimeData.length>0?_c("area-chart",{attrs:{"data":_vm.devicesOverTimeData,"download":true,"download":"Site_DevicesEvolution.png","label":"Devices","xtitle":_vm.$t("simplestats.charts.time"),"ytitle":_vm.$t("simplestats.devices.graph.devicehistory.y"),"stacked":true,"library":_vm.chartOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v(_vm._s(_vm.$t("simplestats.nodatayet")))])],1)],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var La=Object.freeze({});function da(e){return null==e}function aa(e){return null!=e}function la(e){return!0===e}function ho(e){return!1===e}function Kb(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function sa(e){return null!==e&&"object"==typeof e}var gd=Object.prototype.toString;function xa(e){return"[object Object]"===gd.call(e)}function io(e){return"[object RegExp]"===gd.call(e)}function vg(e){var r=parseFloat(String(e));return r>=0&&Math.floor(r)===r&&isFinite(e)}function hd(e){return aa(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function jo(e){return null==e?"":Array.isArray(e)||xa(e)&&e.toString===gd?JSON.stringify(e,null,2):String(e)}function Lb(e){var r=parseFloat(e);return isNaN(r)?e:r}function Da(e,r){for(var $=Object.create(null),t=e.split(","),a=0;a-1)return e.splice($,1)}}var lo=Object.prototype.hasOwnProperty;function ta(e,r){return lo.call(e,r)}function db(e){var r=Object.create(null);return function($){return r[$]||(r[$]=e($))}}var mo=/-(\w)/g,eb=db(function(e){return e.replace(mo,function(e,r){return r?r.toUpperCase():""})}),no=db(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),oo=/\B([A-Z])/g,Mb=db(function(e){return e.replace(oo,"-$1").toLowerCase()});function po(e,r){function $($){var t=arguments.length;return t?t>1?e.apply(r,arguments):e.call(r,$):e.call(r)}return $._length=e.length,$}function qo(e,r){return e.bind(r)}var ro=Function.prototype.bind?qo:po;function id(e,r){r=r||0;for(var $=e.length-r,t=new Array($);$--;)t[$]=e[$+r];return t}function ga(e,r){for(var $ in r)e[$]=r[$];return e}function wg(e){for(var r={},$=0;$0,kd=ra&&ra.indexOf("edge/")>0,c=ra&&ra.indexOf("android")>0||"android"===Cg,xo=ra&&/iphone|ipad|ipod|ios/.test(ra)||"ios"===Cg,d=ra&&/chrome\/\d+/.test(ra)&&!kd,e=ra&&/phantomjs/.test(ra),Dg=ra&&ra.match(/firefox\/(\d+)/),ld={}.watch,yo=!1;if(ya)try{var Eg={};Object.defineProperty(Eg,"passive",{get:function(){yo=!0}}),window.addEventListener("test-passive",null,Eg)}catch(e){}var oc=function(){return void 0===Bg&&(Bg=!ya&&!jd&&"undefined"!=typeof Sa&&Sa.process&&"server"===Sa.process.env.VUE_ENV),Bg},pc=ya&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function vb(e){return"function"==typeof e&&/native code/.test(e.toString())}var md,qc="undefined"!=typeof Symbol&&vb(Symbol)&&"undefined"!=typeof Reflect&&vb(Reflect.ownKeys);md="undefined"!=typeof Set&&vb(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var f,g,h,i,zo=va,Ao=0,za=function(){this.id=Ao++,this.subs=[]};za.prototype.addSub=function(e){this.subs.push(e)},za.prototype.removeSub=function(e){Oa(this.subs,e)},za.prototype.depend=function(){za.target&&za.target.addDep(this)},za.prototype.notify=function(){var e=this.subs.slice();for(var r=0,$=e.length;r<$;r++)e[r].update()},za.target=null;var rc=[];function sc(e){rc.push(e),za.target=e}function tc(){rc.pop(),za.target=rc[rc.length-1]}var wa=function(e,r,$,t,a,n,i,o){this.tag=e,this.data=r,this.children=$,this.text=t,this.elm=a,this.ns=void 0,this.context=n,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=r&&r.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=o,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Fg={child:{configurable:!0}};Fg.child.get=function(){return this.componentInstance},Object.defineProperties(wa.prototype,Fg);var gb=function(e){void 0===e&&(e="");var r=new wa;return r.text=e,r.isComment=!0,r};function wb(e){return new wa(void 0,void 0,void 0,String(e))}function nd(e){var r=new wa(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return r.ns=e.ns,r.isStatic=e.isStatic,r.key=e.key,r.isComment=e.isComment,r.fnContext=e.fnContext,r.fnOptions=e.fnOptions,r.fnScopeId=e.fnScopeId,r.asyncMeta=e.asyncMeta,r.isCloned=!0,r}var Gg=Array.prototype,uc=Object.create(Gg),Bo=["push","pop","shift","unshift","splice","sort","reverse"];Bo.forEach(function(e){var r=Gg[e];sb(uc,e,function(){for(var $=[],t=arguments.length;t--;)$[t]=arguments[t];var a,n=r.apply(this,$),i=this.__ob__;switch(e){case"push":case"unshift":a=$;break;case"splice":a=$.slice(2);}return a&&i.observeArray(a),i.dep.notify(),n})});var Co=Object.getOwnPropertyNames(uc),Hg=!0;function Ua(e){Hg=e}var vc=function(e){this.value=e,this.dep=new za,this.vmCount=0,sb(e,"__ob__",this),Array.isArray(e)?(wo?Do(e,uc):Eo(e,uc,Co),this.observeArray(e)):this.walk(e)};function Do(e,r){e.__proto__=r}function Eo(e,r,$){for(var t=0,a=$.length;t-1)if(n&&!ta(a,"default"))i=!1;else if(""===i||i===Mb(e)){var f=Lg(String,a.type);(f<0||o0&&(Nb((t=Tg(t,(r||"")+"_"+$))[0])&&Nb(n)&&(i[a]=wb(n.text+t[0].text),t.shift()),i.push.apply(i,t)):Kb(t)?Nb(n)?i[a]=wb(n.text+t):""!==t&&i.push(wb(t)):Nb(t)&&Nb(n)?i[a]=wb(n.text+t.text):(la(e._isVList)&&aa(t.tag)&&da(t.key)&&aa(r)&&(t.key="__vlist"+r+"_"+$+"__"),i.push(t)));return i}function Uo(e){var r=e.$options.provide;r&&(e._provided="function"==typeof r?r.call(e):r)}function Vo(e){var r=Ug(e.$options.inject,e);r&&(Ua(!1),Object.keys(r).forEach(function($){ib(e,$,r[$])}),Ua(!0))}function Ug(e,r){if(e){for(var $=Object.create(null),t=qc?Reflect.ownKeys(e):Object.keys(e),a=0;a0,n=e?!!e.$stable:!a,i=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(n&&$&&$!==La&&i===$.$key&&!a&&!$.$hasNormal)return $;for(var o in t={},e)e[o]&&"$"!==o[0]&&(t[o]=Xo(r,o,e[o]))}else t={};for(var f in r)f in t||(t[f]=Yo(r,f));return e&&Object.isExtensible(e)&&(e._normalized=t),sb(t,"$stable",n),sb(t,"$key",i),sb(t,"$hasNormal",a),t}function Xo(e,r,$){var t=function(){var e=arguments.length?$.apply(null,arguments):$({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:zd(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return $.proxy&&Object.defineProperty(e,r,{get:t,enumerable:!0,configurable:!0}),t}function Yo(e,r){return function(){return e[r]}}function Zo(e,r){var $,t,a,n,i;if(Array.isArray(e)||"string"==typeof e)for($=new Array(e.length),t=0,a=e.length;t1?id($):$;for(var t=id(arguments,1),a="event handler for \""+e+"\"",n=0,i=$.length;ndocument.createEvent("Event").timeStamp&&(jh=function(){return Id.now()})}function Hp(){var e,r;for(Gp=jh(),Ep=!0,Qa.sort(function(e,r){return e.id-r.id}),Cc=0;CcCc&&Qa[$].id>e.id;)$--;Qa.splice($+1,0,e)}else Qa.push(e);Dp||(Dp=!0,wd(Hp))}}var Mp=0,Fa=function(e,r,$,t,a){this.vm=e,a&&(e._watcher=this),e._watchers.push(this),t?(this.deep=!!t.deep,this.user=!!t.user,this.lazy=!!t.lazy,this.sync=!!t.sync,this.before=t.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=$,this.id=++Mp,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new md,this.newDepIds=new md,this.expression="","function"==typeof r?this.getter=r:(this.getter=vo(r),this.getter||(this.getter=va)),this.value=this.lazy?void 0:this.get()};Fa.prototype.get=function(){var r;sc(this);var $=this.vm;try{r=this.getter.call($,$)}catch(e){if(!this.user)throw e;Pa(e,$,"getter for watcher \""+this.expression+"\"")}finally{this.deep&&yc(r),tc(),this.cleanupDeps()}return r},Fa.prototype.addDep=function(e){var r=e.id;this.newDepIds.has(r)||(this.newDepIds.add(r),this.newDeps.push(e),this.depIds.has(r)||e.addSub(this))},Fa.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var r=this.deps[e];this.newDepIds.has(r.id)||r.removeSub(this)}var $=this.depIds;this.depIds=this.newDepIds,this.newDepIds=$,this.newDepIds.clear(),$=this.deps,this.deps=this.newDeps,this.newDeps=$,this.newDeps.length=0},Fa.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Lp(this)},Fa.prototype.run=function(){if(this.active){var r=this.get();if(r!==this.value||sa(r)||this.deep){var $=this.value;if(this.value=r,this.user)try{this.cb.call(this.vm,r,$)}catch(e){Pa(e,this.vm,"callback for watcher \""+this.expression+"\"")}else this.cb.call(this.vm,r,$)}}},Fa.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Fa.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},Fa.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||Oa(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Wa={enumerable:!0,configurable:!0,get:va,set:va};function Jd(e,r,$){Wa.get=function(){return this[r][$]},Wa.set=function(e){this[r][$]=e},Object.defineProperty(e,$,Wa)}function Np(e){e._watchers=[];var r=e.$options;r.props&&Op(e,r.props),r.methods&&Tp(e,r.methods),r.data?Pp(e):hb(e._data={},!0),r.computed&&Sp(e,r.computed),r.watch&&r.watch!==ld&&Up(e,r.watch)}function Op(e,r){var $=e.$options.propsData||{},t=e._props={},a=e.$options._propKeys=[],n=!e.$parent;n||Ua(!1);var i=function(n){a.push(n);var i=sd(n,r,$,e);ib(t,n,i),n in e||Jd(e,"_props",n)};for(var o in r)i(o);Ua(!0)}function Pp(e){var r=e.$options.data;xa(r=e._data="function"==typeof r?Qp(r,e):r||{})||(r={});for(var $=Object.keys(r),t=e.$options.props,a=(e.$options.methods,$.length);a--;){var n=$[a];0,t&&ta(t,n)||to(n)||Jd(e,"_data",n)}hb(r,!0)}function Qp(r,$){sc();try{return r.call($,$)}catch(e){return Pa(e,$,"data()"),{}}finally{tc()}}var Rp={lazy:!0};function Sp(e,r){var $=e._computedWatchers=Object.create(null),t=oc();for(var a in r){var n=r[a],i="function"==typeof n?n:n.get;0,t||($[a]=new Fa(e,i||va,va,Rp)),a in e||kh(e,a,n)}}function kh(e,r,$){var t=!oc();"function"==typeof $?(Wa.get=t?lh(r):mh($),Wa.set=va):(Wa.get=$.get?t&&!1!==$.cache?lh(r):mh($.get):va,Wa.set=$.set||va),Object.defineProperty(e,r,Wa)}function lh(e){return function(){var r=this._computedWatchers&&this._computedWatchers[e];if(r)return r.dirty&&r.evaluate(),za.target&&r.depend(),r.value}}function mh(e){return function(){return e.call(this,this)}}function Tp(e,r){e.$options.props;for(var $ in r)e[$]="function"!=typeof r[$]?va:ro(r[$],e)}function Up(e,r){for(var $ in r){var t=r[$];if(Array.isArray(t))for(var a=0;a-1)return this;var $=id(arguments,1);return $.unshift(this),"function"==typeof e.install?e.install.apply(e,$):"function"==typeof e&&e.apply(null,$),r.push(e),this}}function _p(e){e.mixin=function(e){return this.options=jb(this.options,e),this}}function aq(e){e.cid=0;var r=1;e.extend=function(e){e=e||{};var $=this,t=$.cid,a=e._Ctor||(e._Ctor={});if(a[t])return a[t];var n=e.name||$.options.name;var i=function(e){this._init(e)};return(i.prototype=Object.create($.prototype)).constructor=i,i.cid=r++,i.options=jb($.options,e),i.super=$,i.options.props&&bq(i),i.options.computed&&cq(i),i.extend=$.extend,i.mixin=$.mixin,i.use=$.use,nc.forEach(function(e){i[e]=$[e]}),n&&(i.options.components[n]=i),i.superOptions=$.options,i.extendOptions=e,i.sealedOptions=ga({},i.options),a[t]=i,i}}function bq(e){var r=e.options.props;for(var $ in r)Jd(e.prototype,"_props",$)}function cq(e){var r=e.options.computed;for(var $ in r)kh(e.prototype,$,r[$])}function dq(e){nc.forEach(function(r){e[r]=function(e,$){return $?("component"===r&&xa($)&&($.name=$.name||e,$=this.options._base.extend($)),"directive"===r&&"function"==typeof $&&($={bind:$,update:$}),this.options[r+"s"][e]=$,$):this.options[r+"s"][e]}})}function nh(e){return e&&(e.Ctor.options.name||e.tag)}function Dc(e,r){return Array.isArray(e)?e.indexOf(r)>-1:"string"==typeof e?e.split(",").indexOf(r)>-1:!!io(e)&&e.test(r)}function oh(e,r){var $=e.cache,t=e.keys,a=e._vnode;for(var n in $){var i=$[n];if(i){var o=nh(i.componentOptions);o&&!r(o)&&Md($,n,t,a)}}}function Md(e,r,$,t){var a=e[r];!a||t&&a.tag===t.tag||a.componentInstance.$destroy(),e[r]=null,Oa($,r)}Xp(na),Vp(na),yp(na),Ap(na),rp(na);var ph=[String,RegExp,Array],eq={name:"keep-alive",abstract:!0,props:{include:ph,exclude:ph,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Md(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(r){oh(e,function(e){return Dc(r,e)})}),this.$watch("exclude",function(r){oh(e,function(e){return!Dc(r,e)})})},render:function(){var e=this.$slots.default,r=eh(e),$=r&&r.componentOptions;if($){var t=nh($),a=this.include,n=this.exclude;if(a&&(!t||!Dc(a,t))||n&&t&&Dc(n,t))return r;var i=this.cache,o=this.keys,f=null==r.key?$.Ctor.cid+($.tag?"::"+$.tag:""):r.key;i[f]?(r.componentInstance=i[f].componentInstance,Oa(o,f),o.push(f)):(i[f]=r,o.push(f),this.max&&o.length>parseInt(this.max)&&Md(i,o[0],o,this._vnode)),r.data.keepAlive=!0}return r||e&&e[0]}},fq={KeepAlive:eq};function gq(e){var r={get:function(){return Ba}};Object.defineProperty(e,"config",r),e.util={warn:zo,extend:ga,mergeOptions:jb,defineReactive:ib},e.set=od,e.delete=Ig,e.nextTick=wd,e.observable=function(e){return hb(e),e},e.options=Object.create(null),nc.forEach(function(r){e.options[r+"s"]=Object.create(null)}),e.options._base=e,ga(e.options.components,fq),$p(e),_p(e),aq(e),dq(e)}gq(na),Object.defineProperty(na.prototype,"$isServer",{get:oc}),Object.defineProperty(na.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(na,"FunctionalRenderContext",{value:Bd}),na.version="2.6.12";var hq=Da("style,class"),iq=Da("input,textarea,option,select,progress"),jq=function(e,r,$){return"value"===$&&iq(e)&&"button"!==r||"selected"===$&&"option"===e||"checked"===$&&"input"===e||"muted"===$&&"video"===e},qh=Da("contenteditable,draggable,spellcheck"),kq=Da("events,caret,typing,plaintext-only"),lq=function(e,r){return Ec(r)||"false"===r?"false":"contenteditable"===e&&kq(r)?r:"true"},mq=Da("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nd="http://www.w3.org/1999/xlink",Od=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},rh=function(e){return Od(e)?e.slice(6,e.length):""},Ec=function(e){return null==e||!1===e};function nq(e){for(var r=e.data,$=e,t=e;aa(t.componentInstance);)(t=t.componentInstance._vnode)&&t.data&&(r=sh(t.data,r));for(;aa($=$.parent);)$&&$.data&&(r=sh(r,$.data));return oq(r.staticClass,r.class)}function sh(e,r){return{staticClass:Pd(e.staticClass,r.staticClass),class:aa(e.class)?[e.class,r.class]:r.class}}function oq(e,r){return aa(e)||aa(r)?Pd(e,Qd(r)):""}function Pd(e,r){return e?r?e+" "+r:e:r||""}function Qd(e){return Array.isArray(e)?pq(e):sa(e)?qq(e):"string"==typeof e?e:""}function pq(e){for(var r,$="",t=0,a=e.length;t-1?Fc[e]=r.constructor===window.HTMLUnknownElement||r.constructor===window.HTMLElement:Fc[e]=/HTMLUnknownElement/.test(r.toString())}var Sd=Da("text,number,password,search,email,tel,url");function vq(e){if("string"==typeof e){var r=document.querySelector(e);return r||document.createElement("div")}return e}function wq(e,r){var $=document.createElement(e);return"select"!==e?$:(r.data&&r.data.attrs&&void 0!==r.data.attrs.multiple&&$.setAttribute("multiple","multiple"),$)}function xq(e,r){return document.createElementNS(rq[e],r)}function yq(e){return document.createTextNode(e)}function zq(e){return document.createComment(e)}function Aq(e,r,$){e.insertBefore(r,$)}function Bq(e,r){e.removeChild(r)}function Cq(e,r){e.appendChild(r)}function Dq(e){return e.parentNode}function Eq(e){return e.nextSibling}function Fq(e){return e.tagName}function Gq(e,r){e.textContent=r}function Hq(e,r){e.setAttribute(r,"")}var Iq=Object.freeze({createElement:wq,createElementNS:xq,createTextNode:yq,createComment:zq,insertBefore:Aq,removeChild:Bq,appendChild:Cq,parentNode:Dq,nextSibling:Eq,tagName:Fq,setTextContent:Gq,setStyleScope:Hq}),Jq={create:function(e,r){xb(r)},update:function(e,r){e.data.ref!==r.data.ref&&(xb(e,!0),xb(r))},destroy:function(e){xb(e,!0)}};function xb(e,r){var $=e.data.ref;if(aa($)){var t=e.context,a=e.componentInstance||e.elm,n=t.$refs;r?Array.isArray(n[$])?Oa(n[$],a):n[$]===a&&(n[$]=void 0):e.data.refInFor?Array.isArray(n[$])?n[$].indexOf(a)<0&&n[$].push(a):n[$]=[a]:n[$]=a}}var kb=new wa("",{},[]),Pb=["create","activate","update","remove","destroy"];function lb(e,r){return e.key===r.key&&(e.tag===r.tag&&e.isComment===r.isComment&&aa(e.data)===aa(r.data)&&Kq(e,r)||la(e.isAsyncPlaceholder)&&e.asyncFactory===r.asyncFactory&&da(r.asyncFactory.error))}function Kq(e,r){if("input"!==e.tag)return!0;var $,t=aa($=e.data)&&aa($=$.attrs)&&$.type,a=aa($=r.data)&&aa($=$.attrs)&&$.type;return t===a||Sd(t)&&Sd(a)}function Lq(e,r,$){var t,a,n={};for(t=r;t<=$;++t)aa(a=e[t].key)&&(n[a]=t);return n}function Mq(e){var r,$,t={},a=e.modules,n=e.nodeOps;for(r=0;rP?z(e,da($[u+1])?null:$[u+1].elm,$,c,u,t):c>u&&d(r,v,P)}(s,l,Q,$,f):aa(Q)?(aa(e.text)&&n.setTextContent(s,""),z(s,null,Q,0,Q.length-1,$)):aa(l)?d(l,0,l.length-1):aa(e.text)&&n.setTextContent(s,""):e.text!==r.text&&n.setTextContent(s,r.text),aa(P)&&aa(v=P.hook)&&aa(v=v.postpatch)&&v(e,r)}}}function m(e,r,$){if(la($)&&aa(e.parent))e.parent.data.pendingInsert=r;else for(var t=0;t-1?xh(e,r,$):mq(r)?Ec($)?e.removeAttribute(r):($="allowfullscreen"===r&&"EMBED"===e.tagName?"true":r,e.setAttribute(r,$)):qh(r)?e.setAttribute(r,lq(r,$)):Od(r)?Ec($)?e.removeAttributeNS(Nd,rh(r)):e.setAttributeNS(Nd,r,$):xh(e,r,$)}function xh(e,r,$){if(Ec($))e.removeAttribute(r);else{if(tb&&!ub&&"TEXTAREA"===e.tagName&&"placeholder"===r&&""!==$&&!e.__ieph){var t=function(r){r.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(r,$)}}var Sq={create:vh,update:vh};function yh(e,r){var $=r.elm,t=r.data,a=e.data;if(!(da(t.staticClass)&&da(t.class)&&(da(a)||da(a.staticClass)&&da(a.class)))){var n=nq(r),i=$._transitionClasses;aa(i)&&(n=Pd(n,Qd(i))),n!==$._prevClass&&($.setAttribute("class",n),$._prevClass=n)}}var Ud,Tq={create:yh,update:yh},Vd="__r",Wd="__c";function Uq(e){if(aa(e[Vd])){var r=tb?"change":"input";e[r]=[].concat(e[Vd],e[r]||[]),delete e[Vd]}aa(e[Wd])&&(e.change=[].concat(e[Wd],e.change||[]),delete e[Wd])}function Vq(e,r,$){var t=Ud;return function a(){null!==r.apply(null,arguments)&&zh(e,a,$,t)}}var Wq=Oo&&!(Dg&&Number(Dg[1])<=53);function Xq(e,r,$,t){if(Wq){var a=Gp,n=r;r=n._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=a||e.timeStamp<=0||e.target.ownerDocument!==document)return n.apply(this,arguments)}}Ud.addEventListener(e,r,yo?{capture:$,passive:t}:$)}function zh(e,r,$,t){(t||Ud).removeEventListener(e,r._wrapper||r,$)}function Ah(e,r){if(!da(e.data.on)||!da(r.data.on)){var $=r.data.on||{},t=e.data.on||{};Ud=r.elm,Uq($),Rg($,t,Xq,zh,Vq,r.context),Ud=void 0}}var Bh,Yq={create:Ah,update:Ah};function Ch(r,$){if(!da(r.data.domProps)||!da($.data.domProps)){var t,a,n=$.elm,i=r.data.domProps||{},o=$.data.domProps||{};for(t in aa(o.__ob__)&&(o=$.data.domProps=ga({},o)),i)t in o||(n[t]="");for(t in o){if(a=o[t],"textContent"===t||"innerHTML"===t){if($.children&&($.children.length=0),a===i[t])continue;1===n.childNodes.length&&n.removeChild(n.childNodes[0])}if("value"===t&&"PROGRESS"!==n.tagName){n._value=a;var f=da(a)?"":String(a);Zq(n,f)&&(n.value=f)}else if("innerHTML"===t&&Rd(n.tagName)&&da(n.innerHTML)){(Bh=Bh||document.createElement("div")).innerHTML=""+a+"";for(var s=Bh.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;s.firstChild;)n.appendChild(s.firstChild)}else if(a!==i[t])try{n[t]=a}catch(e){}}}}function Zq(e,r){return!e.composing&&("OPTION"===e.tagName||$q(e,r)||_q(e,r))}function $q(r,$){var t=!0;try{t=document.activeElement!==r}catch(e){}return t&&r.value!==$}function _q(e,r){var $=e.value,t=e._vModifiers;if(aa(t)){if(t.number)return Lb($)!==Lb(r);if(t.trim)return $.trim()!==r.trim()}return $!==r}var ar={create:Ch,update:Ch},br=db(function(e){var r={},$=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split($);t.length>1&&(r[t[0].trim()]=t[1].trim())}}),r});function Xd(e){var r=Dh(e.style);return e.staticStyle?ga(e.staticStyle,r):r}function Dh(e){return Array.isArray(e)?wg(e):"string"==typeof e?br(e):e}function cr(e,r){var $,t={};if(r)for(var a=e;a.componentInstance;)(a=a.componentInstance._vnode)&&a.data&&($=Xd(a.data))&&ga(t,$);($=Xd(e.data))&&ga(t,$);for(var n=e;n=n.parent;)n.data&&($=Xd(n.data))&&ga(t,$);return t}var Yd,dr=/^--/,Eh=/\s*!important$/,Fh=function(e,r,$){if(dr.test(r))e.style.setProperty(r,$);else if(Eh.test($))e.style.setProperty(Mb(r),$.replace(Eh,""),"important");else{var t=er(r);if(Array.isArray($))for(var a=0,n=$.length;a-1?r.split(Ih).forEach(function(r){return e.classList.add(r)}):e.classList.add(r);else{var $=" "+(e.getAttribute("class")||"")+" ";$.indexOf(" "+r+" ")<0&&e.setAttribute("class",($+r).trim())}}function Kh(e,r){if(r&&(r=r.trim()))if(e.classList)r.indexOf(" ")>-1?r.split(Ih).forEach(function(r){return e.classList.remove(r)}):e.classList.remove(r),e.classList.length||e.removeAttribute("class");else{for(var $=" "+(e.getAttribute("class")||"")+" ",t=" "+r+" ";$.indexOf(t)>=0;)$=$.replace(t," ");($=$.trim())?e.setAttribute("class",$):e.removeAttribute("class")}}function Lh(e){if(e){if("object"==typeof e){var r={};return!1!==e.css&&ga(r,Mh(e.name||"v")),ga(r,e),r}return"string"==typeof e?Mh(e):void 0}}var Mh=db(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),Nh=ya&&!ub,yb="transition",Zd="animation",$d="transition",_d="transitionend",Oh="animation",gr="animationend";Nh&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&($d="WebkitTransition",_d="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oh="WebkitAnimation",gr="webkitAnimationEnd"));var Ph=ya?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Qh(e){Ph(function(){Ph(e)})}function mb(e,r){var $=e._transitionClasses||(e._transitionClasses=[]);$.indexOf(r)<0&&($.push(r),Jh(e,r))}function Ra(e,r){e._transitionClasses&&Oa(e._transitionClasses,r),Kh(e,r)}function Rh(e,r,$){var t=Sh(e,r),a=t.type,n=t.timeout,i=t.propCount;if(!a)return $();var o=a===yb?_d:gr,f=0,s=function(){e.removeEventListener(o,v),$()},v=function(r){r.target===e&&++f>=i&&s()};setTimeout(function(){f0&&($=yb,v=i,c=n.length):r===Zd?s>0&&($=Zd,v=s,c=f.length):c=($=(v=Math.max(i,s))>0?i>s?yb:Zd:null)?$===yb?n.length:f.length:0,{type:$,timeout:v,propCount:c,hasTransform:$===yb&&hr.test(t[$d+"Property"])}}function Th(e,r){for(;e.length1}function Xh(e,r){!0!==r.data.show&&af(r)}var ir=ya?{create:Xh,activate:Xh,remove:function(e,r){!0!==e.data.show?Vh(e,r):r()}}:{},jr=[Sq,Tq,Yq,ar,fr,ir],kr=jr.concat(Rq),lr=Mq({nodeOps:Iq,modules:kr});ub&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&cf(e,"input")});var Yh={inserted:function(e,r,$,t){"select"===$.tag?(t.elm&&!t.elm._vOptions?Va($,"postpatch",function(){Yh.componentUpdated(e,r,$)}):Zh(e,r,$.context),e._vOptions=[].map.call(e.options,Gc)):("textarea"===$.tag||Sd(e.type))&&(e._vModifiers=r.modifiers,r.modifiers.lazy||(e.addEventListener("compositionstart",mr),e.addEventListener("compositionend",qi),e.addEventListener("change",qi),ub&&(e.vmodel=!0)))},componentUpdated:function(e,r,$){if("select"===$.tag){Zh(e,r,$.context);var t=e._vOptions,a=e._vOptions=[].map.call(e.options,Gc);if(a.some(function(e,r){return!fb(e,t[r])}))(e.multiple?r.value.some(function(e){return ji(e,a)}):r.value!==r.oldValue&&ji(r.value,a))&&cf(e,"change")}}};function Zh(e,r,$){$h(e,r,$),(tb||kd)&&setTimeout(function(){$h(e,r,$)},0)}function $h(e,r,$){var t=r.value,a=e.multiple;if(!a||Array.isArray(t)){for(var n,i,o=0,f=e.options.length;o-1,i.selected!==n&&(i.selected=n);else if(fb(Gc(i),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o));a||(e.selectedIndex=-1)}}function ji(e,r){return r.every(function(r){return!fb(r,e)})}function Gc(e){return"_value"in e?e._value:e.value}function mr(e){e.target.composing=!0}function qi(e){e.target.composing&&(e.target.composing=!1,cf(e.target,"input"))}function cf(e,r){var $=document.createEvent("HTMLEvents");$.initEvent(r,!0,!0),e.dispatchEvent($)}function df(e){return!e.componentInstance||e.data&&e.data.transition?e:df(e.componentInstance._vnode)}var nr={bind:function(e,r,$){var t=r.value,a=($=df($)).data&&$.data.transition,n=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&a?($.data.show=!0,af($,function(){e.style.display=n})):e.style.display=t?n:"none"},update:function(e,r,$){var t=r.value;!t!=!r.oldValue&&(($=df($)).data&&$.data.transition?($.data.show=!0,t?af($,function(){e.style.display=e.__vOriginalDisplay}):Vh($,function(){e.style.display="none"})):e.style.display=t?e.__vOriginalDisplay:"none")},unbind:function(e,r,$,t,a){a||(e.style.display=e.__vOriginalDisplay)}},or={model:Yh,show:nr},Bi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ef(e){var r=e&&e.componentOptions;return r&&r.Ctor.options.abstract?ef(eh(r.children)):e}function Ei(e){var r={},$=e.$options;for(var t in $.propsData)r[t]=e[t];var a=$._parentListeners;for(var n in a)r[eb(n)]=a[n];return r}function Gi(e,r){if(/\d-keep-alive$/.test(r.tag))return e("keep-alive",{props:r.componentOptions.propsData})}function pr(e){for(;e=e.parent;)if(e.data.transition)return!0}function qr(e,r){return r.key===e.key&&r.tag===e.tag}var rr=function(e){return e.tag||Bc(e)},sr=function(e){return"show"===e.name},tr={name:"transition",props:Bi,abstract:!0,render:function(e){var r=this,$=this.$slots.default;if($&&($=$.filter(rr)).length){0;var t=this.mode;0;var a=$[0];if(pr(this.$vnode))return a;var n=ef(a);if(!n)return a;if(this._leaving)return Gi(e,a);var i="__transition-"+this._uid+"-";n.key=null==n.key?n.isComment?i+"comment":i+n.tag:Kb(n.key)?0===String(n.key).indexOf(i)?n.key:i+n.key:n.key;var o=(n.data||(n.data={})).transition=Ei(this),f=this._vnode,s=ef(f);if(n.data.directives&&n.data.directives.some(sr)&&(n.data.show=!0),s&&s.data&&!qr(n,s)&&!Bc(s)&&(!s.componentInstance||!s.componentInstance._vnode.isComment)){var v=s.data.transition=ga({},o);if("out-in"===t)return this._leaving=!0,Va(v,"afterLeave",function(){r._leaving=!1,r.$forceUpdate()}),Gi(e,a);if("in-out"===t){if(Bc(n))return f;var c,P=function(){c()};Va(o,"afterEnter",P),Va(o,"enterCancelled",P),Va(v,"delayLeave",function(e){c=e})}}return a}}},Hi=ga({tag:String,moveClass:String},Bi);delete Hi.mode;var ur={props:Hi,beforeMount:function(){var e=this,r=this._update;this._update=function($,t){var a=gh(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),r.call(e,$,t)}},render:function(e){for(var r=this.tag||this.$vnode.data.tag||"span",$=Object.create(null),t=this.prevChildren=this.children,a=this.$slots.default||[],n=this.children=[],i=Ei(this),o=0;o=6}function w(t){return"number"==typeof t}var C=["bytes","KB","MB","GB","TB","PB","EB"];function A(t,e,r,n){t=t||"",r.prefix&&(e<0&&(e*=-1,t+="-"),t+=r.prefix);var a=r.suffix||"",o=r.precision,i=r.round;if(r.byteScale){var s,c=n?r.byteScale:e;c>=0x1000000000000000?(e/=0x1000000000000000,s=6):c>=0x4000000000000?(e/=0x4000000000000,s=5):c>=1099511627776?(e/=1099511627776,s=4):c>=1073741824?(e/=1073741824,s=3):c>=1048576?(e/=1048576,s=2):c>=1024?(e/=1024,s=1):s=0,void 0===o&&void 0===i&&(e>=1023.5&&s=1e3?4:3),a=" "+C[s]}if(void 0!==o&&void 0!==i)throw Error("Use either round or precision, not both");if(!n&&(void 0!==o&&(e=e.toPrecision(o),r.zeros||(e=parseFloat(e))),void 0!==i))if(i<0){var p=Math.pow(10,-1*i);e=parseInt((1*e/p).toFixed(0))*p}else e=e.toFixed(i),r.zeros||(e=parseFloat(e));if(r.thousands||r.decimal){var u=(e=l(e)).split(".");e=u[0],r.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,r.thousands)),u.length>1&&(e+=(r.decimal||".")+u[1])}return t+e+a}function _(t,e,r){return r in e?e[r]:r in t.options?t.options[r]:null}var k={maintainAspectRatio:!1,animation:!1,tooltips:{displayColors:!1,callbacks:{}},legend:{},title:{fontSize:20,fontColor:"#333"}},S={scales:{yAxes:[{ticks:{maxTicksLimit:4},scaleLabel:{fontSize:16,fontColor:"#333"}}],xAxes:[{gridLines:{drawOnChartArea:!1},scaleLabel:{fontSize:16,fontColor:"#333"},time:{},ticks:{}}]}},T=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],D=function(t,e,r){void 0!==e?(t.legend.display=!!e,e&&!0!==e&&(t.legend.position=e)):r&&(t.legend.display=!1)},L=function(t,e){t.title.display=!0,t.title.text=e},O=function(t,e){null!==e&&(t.scales.xAxes[0].ticks.min=c(e))},E=function(t,e){t.scales.xAxes[0].ticks.max=c(e)},j=function(t,e){t.scales.xAxes[0].stacked=!!e,t.scales.yAxes[0].stacked=!!e},B=function(t,e){t.scales.xAxes[0].scaleLabel.display=!0,t.scales.xAxes[0].scaleLabel.labelString=e},I=function(t,e){t.scales.yAxes[0].scaleLabel.display=!0,t.scales.yAxes[0].scaleLabel.labelString=e},N=function(t){return null!=t},F=function(e,r,n){var a={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var o=e.data;"pie"===n&&(o=[{data:o}]);for(var i=0,s=0;si&&(i=l.data[c][1]);for(var p=1;i>=1024;)p*=1024,i/=1024;a.byteScale=p}if("pie"!==n){var u=r.scales.yAxes;"bar"===n&&(u=r.scales.xAxes),a.byteScale&&(u[0].ticks.stepSize||(u[0].ticks.stepSize=a.byteScale/2),u[0].ticks.maxTicksLimit||(u[0].ticks.maxTicksLimit=4)),u[0].ticks.callback||(u[0].ticks.callback=function(t){return A("",t,a,!0)})}if(!r.tooltips.callbacks.label)if("scatter"===n)r.tooltips.callbacks.label=function(t,e){var r=e.datasets[t.datasetIndex].label||"";return r&&(r+=": "),r+"("+t.xLabel+", "+t.yLabel+")"};else if("bubble"===n)r.tooltips.callbacks.label=function(t,e){var r=e.datasets[t.datasetIndex].label||"";r&&(r+=": ");var n=e.datasets[t.datasetIndex].data[t.index];return r+"("+t.xLabel+", "+t.yLabel+", "+n.v+")"};else if("pie"===n)r.tooltips.callbacks.label=function(e,r){var n=r.labels[e.index];return t(n)?(n=n.slice())[0]+=": ":n+=": ",A(n,r.datasets[e.datasetIndex].data[e.index],a)};else{var d="bar"===n?"xLabel":"yLabel";r.tooltips.callbacks.label=function(t,e){var r=e.datasets[t.datasetIndex].label||"";return r&&(r+=": "),A(r,t[d],a)}}},Q=d(a(k,S),D,L,function(t,e){null!==e&&(t.scales.yAxes[0].ticks.min=c(e))},function(t,e){t.scales.yAxes[0].ticks.max=c(e)},j,B,I),R=function(t,e,r,n){var o,i=[],s=[],l=t.options.colors||T,u=!0,d=!0,h=!0,f=!0,M=!0,w=!0,C=t.data,A=0;if("bubble"===r)for(var k=0;kA&&(A=S.data[D][2]);var L,O,E,j,B,I,F,Q,R=[],$=[];if("bar"===r||"column"===r||"number"!==t.xtype&&"bubble"!==t.xtype){var H,P,U=[];for(L=0;L0){var rt=(N(q)?p(q):s[0]).getTime(),nt=(N(tt)?p(tt):s[0]).getTime();for(L=1;Lnt&&(nt=at)}var ot,it=(nt-rt)/864e5;if(!e.scales.xAxes[0].time.unit)if(f||it>3650?(e.scales.xAxes[0].time.unit="year",ot=365):h||it>300?(e.scales.xAxes[0].time.unit="month",ot=30):u||it>10?(e.scales.xAxes[0].time.unit="day",ot=1):M||it>.5?(e.scales.xAxes[0].time.displayFormats={hour:"MMM D, h a"},e.scales.xAxes[0].time.unit="hour",ot=1/24):w&&(e.scales.xAxes[0].time.displayFormats={minute:"h:mm a"},e.scales.xAxes[0].time.unit="minute",ot=1/24/60),ot&&it>0){var st=Math.ceil(it/ot/(t.element.offsetWidth/100));d&&1===ot&&(st=7*Math.ceil(st/7)),e.scales.xAxes[0].time.unitStepSize=st}e.scales.xAxes[0].time.tooltipFormat||(u?e.scales.xAxes[0].time.tooltipFormat="ll":M?e.scales.xAxes[0].time.tooltipFormat="MMM D, h a":w&&(e.scales.xAxes[0].time.tooltipFormat="h:mm a"))}return{labels:s,datasets:i}},$=function(t){this.name="chartjs",this.library=t};$.prototype.renderLineChart=function(t,e){var r={};!t.options.max&&function(t){var e,r,n;for(e=0;e25?n=25:n<10&&(n=10),r.scales.xAxes[0].ticks.callback||(r.scales.xAxes[0].ticks.callback=function(t){return(t=l(t)).length>n?t.substring(0,n-2)+"...":t})}(t,o,r),this.drawChart(t,"bar"===e?"horizontalBar":"bar",o,r)},$.prototype.renderAreaChart=function(t){this.renderLineChart(t,"area")},$.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},$.prototype.renderScatterChart=function(t,e){e=e||"scatter";var r=Q(t,t.options);F(t,r,e),"showLines"in r||(r.showLines=!1);var n=R(t,r,e,this.library);r.scales.xAxes[0].type="linear",r.scales.xAxes[0].position="bottom",this.drawChart(t,e,n,r)},$.prototype.renderBubbleChart=function(t){this.renderScatterChart(t,"bubble")},$.prototype.destroy=function(t){t.chart&&t.chart.destroy()},$.prototype.drawChart=function(t,e,r,n){this.destroy(t);var a={type:e,data:r,options:n};t.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(a)+");"),t.element.innerHTML="";var o=t.element.getElementsByTagName("CANVAS")[0];t.chart=new this.library(o,a)};var H={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}}},P=function(t,e,r){void 0!==e?(t.legend.enabled=!!e,e&&!0!==e&&("top"===e||"bottom"===e?t.legend.verticalAlign=e:(t.legend.layout="vertical",t.legend.verticalAlign="middle",t.legend.align=e))):r&&(t.legend.enabled=!1)},U=function(t,e){t.title.text=e},W=d(H,P,U,function(t,e){t.yAxis.min=e},function(t,e){t.yAxis.max=e},function(t,e){var r=e?!0===e?"normal":e:null;t.plotOptions.series.stacking=r,t.plotOptions.area.stacking=r,t.plotOptions.areaspline.stacking=r},function(t,e){t.xAxis.title.text=e},function(t,e){t.yAxis.title.text=e}),K=function(t,e,r){var n={prefix:t.options.prefix,suffix:t.options.suffix,thousands:t.options.thousands,decimal:t.options.decimal,precision:t.options.precision,round:t.options.round,zeros:t.options.zeros};"pie"===r||e.yAxis.labels.formatter||(e.yAxis.labels.formatter=function(){return A("",this.value,n)}),e.tooltip.pointFormatter||(e.tooltip.pointFormatter=function(){return"\u25CF "+A(this.series.name+": ",this.y,n)+"
"})},V=function(t){this.name="highcharts",this.library=t};V.prototype.renderLineChart=function(t,e){var r={};"areaspline"===(e=e||"spline")&&(r={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var n,a,o,i=W(t,t.options,r);i.xAxis.type="string"===t.xtype?"category":"number"===t.xtype?"linear":"datetime",i.chart.type||(i.chart.type=e),K(t,i,e);var s=t.data;for(a=0;a0)return!1;return!0}function Mt(t,r){r.options.messages&&r.options.messages.empty&&bt(r.data,t)?ht(r.element,r.options.messages.empty):(function(t,r){var n,a,o,i;for(o="render"+t,i=r.options.adapter,("Chart"in window)&&zt(window.Chart),("Highcharts"in window)&&zt(window.Highcharts),window.google&&window.google.charts&&zt(window.google),n=0;n0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}(t,r),r.options.download&&!r.__downloadAttached&&"chartjs"===r.adapter&&function(t){var e=t.element,r=document.createElement("a"),n=t.options.download;!0===n?n={}:"string"==typeof n&&(n={filename:n}),r.download=n.filename||"chart.png",r.style.position="absolute",r.style.top="20px",r.style.right="20px",r.style.zIndex=1e3,r.style.lineHeight="20px",r.target="_blank";var a=document.createElement("img");a.alt="Download",a.style.border="none",a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",r.appendChild(a),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=gt(e,"mouseover",function(a){var o=a.relatedTarget;o&&(o===this||xt(this,o))||!t.options.download||(r.href=t.toImage(n),e.appendChild(r))}),t.__leaveEvent=gt(e,"mouseout",function(t){var e=t.relatedTarget;e&&(e===this||xt(this,e))||r.parentNode&&r.parentNode.removeChild(r)})}(r))}var wt=function(t,e){return t="number"===e?c(t):"datetime"===e?p(t):l(t)},Ct=function(t,e){var r,n,a=[];for(n=0;n=0&&"[object Function]"===Ki.call(t.callee)),e}}var Ar,Br,Cr=false;function Dr(){if(Cr)return;Cr=true;Br={};if(!Object.keys){var $orz8$var$has=Object.prototype.hasOwnProperty,$orz8$var$toStr=Object.prototype.toString,$orz8$var$isArgs=(Qi(),Ji),$orz8$var$isEnumerable=Object.prototype.propertyIsEnumerable,$orz8$var$hasDontEnumBug=!$orz8$var$isEnumerable.call({toString:null},"toString"),$orz8$var$hasProtoEnumBug=$orz8$var$isEnumerable.call(function(){},"prototype"),$orz8$var$dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],$orz8$var$equalsConstructorPrototype=function(r){var o=r.constructor;return o&&o.prototype===r},$orz8$var$excludedKeys={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},$orz8$var$hasAutomationEqualityBug=function(){if("undefined"==typeof window)return!1;for(var r in window)try{if(!$orz8$var$excludedKeys["$"+r]&&$orz8$var$has.call(window,r)&&null!==window[r]&&"object"==typeof window[r])try{$orz8$var$equalsConstructorPrototype(window[r])}catch(o){return!0}}catch(o){return!0}return!1}(),$orz8$var$equalsConstructorPrototypeIfNotBuggy=function(r){if("undefined"==typeof window||!$orz8$var$hasAutomationEqualityBug)return $orz8$var$equalsConstructorPrototype(r);try{return $orz8$var$equalsConstructorPrototype(r)}catch(o){return!1}};Ar=function(r){var o=null!==r&&"object"==typeof r,t="[object Function]"===$orz8$var$toStr.call(r),$=$orz8$var$isArgs(r),e=o&&"[object String]"===$orz8$var$toStr.call(r),n=[];if(!o&&!t&&!$)throw new TypeError("Object.keys called on a non-object");var a=$orz8$var$hasProtoEnumBug&&t;if(e&&r.length>0&&!$orz8$var$has.call(r,0))for(var u=0;u0)for(var s=0;s=0&&"[object Array]"!==jf.call(r)&&"[object Function]"===jf.call(r.callee)},Hr=function(){return Ic(arguments)}();Ic.isLegacyArguments=Xi,Wi=Hr?Ic:Xi;var Rb={},Ir="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),Jr=Object.prototype.toString,Kr=Array.prototype.concat,kf=Object.defineProperty,Lr=function(r){return"function"==typeof r&&"[object Function]"===Jr.call(r)},Mr=function(){var r={};try{for(var e in kf(r,"x",{enumerable:!1,value:r}),r)return!1;return r.x===r}catch($){return!1}},Yi=kf&&Mr(),Nr=function(r,e,$,t){(!(e in r)||Lr(t)&&t())&&(Yi?kf(r,e,{configurable:!0,enumerable:!1,value:$,writable:!0}):r[e]=$)},Zi=function(r,e){var $=arguments.length>2?arguments[2]:{},t=hf(e);Ir&&(t=Kr.call(t,Object.getOwnPropertySymbols(e)));for(var o=0;o1&&"boolean"!=typeof e)throw new zb("\"allowMissing\" argument must be a boolean");var t=$r(r),n=t.length>0?t[0]:"",o=_r("%"+n+"%",e),a=o.name,$=o.value,y=!1,p=o.alias;p&&(n=p[0],Xr(t,Wr([0,1],p)));for(var i=1,E=!0;i=t.length){var N=Ab($,d);if(E=!!N,!(e||d in $))throw new zb("base intrinsic for "+r+" exists, but the property is not available.");$=E&&"get"in N&&!("originalValue"in N.get)?N.get:$[d]}else E=Jc($,d),$=$[d];E&&!y&&(Sb[a]=$)}}return $};var rf={},ej=Kc("%Function.prototype.apply%"),fj=Kc("%Function.prototype.call%"),gj=Kc("%Reflect.apply%",!0)||Ga.call(fj,ej),Lc=Kc("%Object.defineProperty%",!0);if(Lc)try{Lc({},"a",{value:1})}catch(e){Lc=null}rf=function(){return gj(Ga,fj,arguments)};var hj=function(){return gj(Ga,ej,arguments)};Lc?Lc(rf,"apply",{value:hj}):rf.apply=hj;var ij={},jj=function(r){return r!=r};ij=function(r,$){return 0===r&&0===$?1/r==1/$:r===$||!(!jj(r)||!jj($))};var sf={};sf=function(){return"function"==typeof Object.is?Object.is:ij};var as={};as=function(){var e=sf();return Rb(Object,{is:e},{is:function(){return Object.is!==e}}),e};var kj={},lj=rf(sf(),Object);Rb(lj,{getPolyfill:sf,implementation:ij,shim:as}),kj=lj;var bs,cs,mj,nj,oj={},ds=mf(),pj=ds&&"symbol"==typeof Symbol.toStringTag;if(pj){bs=Function.call.bind(Object.prototype.hasOwnProperty),cs=Function.call.bind(RegExp.prototype.exec),mj={};var tf=function(){throw mj};nj={toString:tf,valueOf:tf},"symbol"==typeof Symbol.toPrimitive&&(nj[Symbol.toPrimitive]=tf)}var fs=Object.prototype.toString,gs=Object.getOwnPropertyDescriptor,hs="[object RegExp]";oj=pj?function(r){if(!r||"object"!=typeof r)return!1;var $=gs(r,"lastIndex");if(!($&&bs($,"value")))return!1;try{cs(r,nj)}catch(e){return e===mj}}:function(r){return!(!r||"object"!=typeof r&&"function"!=typeof r)&&fs.call(r)===hs};var ca,Mc={},Tb=TypeError,Cb=Object.getOwnPropertyDescriptor;if(Cb)try{Cb({},"")}catch(e){Cb=null}var Nc,qj,Ub,uf=function(){throw new Tb},js=Cb?function(){try{return arguments.callee,uf}catch(r){try{return Cb(arguments,"callee").get}catch(e){return uf}}}():uf,Ya=mf(),Ha=Object.getPrototypeOf||function(r){return r.__proto__},vf=Nc?Ha(Nc):ca,wf=qj?qj.constructor:ca,xf=Ub?Ha(Ub):ca,yf=Ub?Ub():ca,zf="undefined"==typeof Uint8Array?ca:Ha(Uint8Array),Af={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ca:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?ca:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":Ya?Ha([][Symbol.iterator]()):ca,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":ca,"%AsyncFunction%":wf,"%AsyncFunctionPrototype%":wf?wf.prototype:ca,"%AsyncGenerator%":Ub?Ha(yf):ca,"%AsyncGeneratorFunction%":xf,"%AsyncGeneratorPrototype%":xf?xf.prototype:ca,"%AsyncIteratorPrototype%":yf&&Ya&&Symbol.asyncIterator?yf[Symbol.asyncIterator]():ca,"%Atomics%":"undefined"==typeof Atomics?ca:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?ca:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?ca:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?ca:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?ca:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?ca:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?ca:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":Nc?Ha(Nc()):ca,"%GeneratorFunction%":vf,"%GeneratorPrototype%":vf?vf.prototype:ca,"%Int8Array%":"undefined"==typeof Int8Array?ca:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?ca:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?ca:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?ca:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?ca:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?ca:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ya?Ha(Ha([][Symbol.iterator]())):ca,"%JSON%":"object"==typeof JSON?JSON:ca,"%JSONParse%":"object"==typeof JSON?JSON.parse:ca,"%Map%":"undefined"==typeof Map?ca:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Ya?Ha(new Map()[Symbol.iterator]()):ca,"%MapPrototype%":"undefined"==typeof Map?ca:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ca:Promise,"%PromisePrototype%":"undefined"==typeof Promise?ca:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?ca:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?ca:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?ca:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?ca:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?ca:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?ca:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?ca:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Ya?Ha(new Set()[Symbol.iterator]()):ca,"%SetPrototype%":"undefined"==typeof Set?ca:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ca:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?ca:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":Ya?Ha(""[Symbol.iterator]()):ca,"%StringPrototype%":String.prototype,"%Symbol%":Ya?Symbol:ca,"%SymbolPrototype%":Ya?Symbol.prototype:ca,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":js,"%TypedArray%":zf,"%TypedArrayPrototype%":zf?zf.prototype:ca,"%TypeError%":Tb,"%TypeErrorPrototype%":Tb.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?ca:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?ca:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ca:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?ca:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?ca:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?ca:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?ca:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?ca:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?ca:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?ca:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?ca:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?ca:WeakSet.prototype},rj=Ga.call(Function.call,String.prototype.replace),ks=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ls=/\\(\\)?/g,ms=function(r){var e=[];return rj(r,ks,function(r,t,o,$){e[e.length]=o?rj($,ls,"$1"):t||r}),e},os=function(r,e){if(!(r in Af))throw new SyntaxError("intrinsic "+r+" does not exist!");if(void 0===Af[r]&&!e)throw new Tb("intrinsic "+r+" exists, but is not available. Please file an issue!");return Af[r]};Mc=function(r,e){if("string"!=typeof r||0===r.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new TypeError("\"allowMissing\" argument must be a boolean");for(var t=ms(r),o=os("%"+(t.length>0?t[0]:"")+"%",e),$=1;$=t.length){var n=Cb(o,t[$]);if(!(e||t[$]in o))throw new Tb("base intrinsic for "+r+" exists, but the property is not available.");o=n&&"get"in n&&!("originalValue"in n.get)?n.get:o[t[$]]}else o=o[t[$]];return o};var Bf={},sj=Mc("%Function.prototype.apply%"),tj=Mc("%Function.prototype.call%"),uj=Mc("%Reflect.apply%",!0)||Ga.call(tj,sj),Oc=Mc("%Object.defineProperty%",!0);if(Oc)try{Oc({},"a",{value:1})}catch(e){Oc=null}Bf=function(){return uj(Ga,tj,arguments)};var vj=function(){return uj(Ga,sj,arguments)};Oc?Oc(Bf,"apply",{value:vj}):Bf.apply=vj;var Cf={},ps=Object,qs=TypeError;Cf=function(){if(null!=this&&this!==ps(this))throw new qs("RegExp.prototype.flags getter called on non-object");var t="";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t};var wj={},rs=Rb.supportsDescriptors,us=Object.getOwnPropertyDescriptor,vs=TypeError;wj=function(){if(!rs)throw new vs("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var r=us(RegExp.prototype,"flags");if(r&&"function"==typeof r.get&&"boolean"==typeof /a/.dotAll)return r.get}return Cf};var ws={},xs=Rb.supportsDescriptors,ys=Object.getOwnPropertyDescriptor,zs=Object.defineProperty,As=TypeError,xj=Object.getPrototypeOf,Bs=/a/;ws=function(){if(!xs||!xj)throw new As("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var r=wj(),e=xj(Bs),$=ys(e,"flags");return $&&$.get===r||zs(e,"flags",{configurable:!0,enumerable:!1,get:r}),r};var yj={},zj=Bf(Cf);Rb(zj,{getPolyfill:wj,implementation:Cf,shim:ws}),yj=zj;var Aj={},Cs=Date.prototype.getDay,Ds=function(t){try{return Cs.call(t),!0}catch($){return!1}},Es=Object.prototype.toString,Fs="[object Date]",Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;Aj=function(t){return"object"==typeof t&&null!==t&&(Gs?Ds(t):Es.call(t)===Fs)};var Hs={},Bj=Date.prototype.getTime;function Cj(r,e,$){var i=$||{};return!(i.strict?!kj(r,e):r!==e)||(!r||!e||"object"!=typeof r&&"object"!=typeof e?i.strict?kj(r,e):r==e:Is(r,e,i))}function Dj(r){return null==r}function Ej(r){return!(!r||"object"!=typeof r||"number"!=typeof r.length)&&"function"==typeof r.copy&&"function"==typeof r.slice&&!(r.length>0&&"number"!=typeof r[0])}function Is(r,e,$){var i,o;if(typeof r!=typeof e)return!1;if(Dj(r)||Dj(e))return!1;if(r.prototype!==e.prototype)return!1;if(Wi(r)!==Wi(e))return!1;var t=oj(r),a=oj(e);if(t!==a)return!1;if(t||a)return r.source===e.source&&yj(r)===yj(e);if(Aj(r)&&Aj(e))return Bj.call(r)===Bj.call(e);var n=Ej(r),u=Ej(e);if(n!==u)return!1;if(n||u){if(r.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=s[i])return!1;for(i=f.length-1;i>=0;i--)if(!Cj(r[o=f[i]],e[o],$))return!1;return!0}Hs=Cj;var Js={},Ks=function(e){return Ls(e)&&!Ms(e)};function Ls(e){return!!e&&"object"==typeof e}function Ms(e){var r=Object.prototype.toString.call(e);return"[object RegExp]"===r||"[object Date]"===r||Ps(e)}var Ns="function"==typeof Symbol&&Symbol.for,Os=Ns?Symbol.for("react.element"):60103;function Ps(e){return e.$$typeof===Os}function Qs(e){return Array.isArray(e)?[]:{}}function Vb(e,r){return!1!==r.clone&&r.isMergeableObject(e)?Db(Qs(e),e,r):e}function Rs(e,r,$){return e.concat(r).map(function(e){return Vb(e,$)})}function Ss(e,r){if(!r.customMerge)return Db;var $=r.customMerge(e);return"function"==typeof $?$:Db}function Ts(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return e.propertyIsEnumerable(r)}):[]}function Fj(e){return Object.keys(e).concat(Ts(e))}function Gj(e,r){try{return r in e}catch($){return!1}}function Us(e,r){return Gj(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))}function Vs(e,r,$){var t={};return $.isMergeableObject(e)&&Fj(e).forEach(function(r){t[r]=Vb(e[r],$)}),Fj(r).forEach(function(o){Us(e,o)||(Gj(e,o)&&$.isMergeableObject(r[o])?t[o]=Ss(o,$)(e[o],r[o],$):t[o]=Vb(r[o],$))}),t}function Db(e,r,$){($=$||{}).arrayMerge=$.arrayMerge||Rs,$.isMergeableObject=$.isMergeableObject||Ks,$.cloneUnlessOtherwiseSpecified=Vb;var t=Array.isArray(r);return t===Array.isArray(e)?t?$.arrayMerge(e,r,$):Vs(e,r,$):Vb(r,$)}Db.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,$){return Db(e,$,r)},{})};var Ws=Db;Js=Ws;var Xs=1,Za=function(t,r,a){var e=["adapter","bytes","code","colors","curve","dataset","decimal","discrete","donut","download","label","legend","library","max","messages","min","points","precision","prefix","refresh","round","stacked","suffix","thousands","title","xmax","xmin","xtitle","ytitle","zeros"];t.component(r,{props:["data","id","width","height"].concat(e),render:function(t){return t("div",{attrs:{id:this.chartId},style:this.chartStyle},["Loading..."])},data:function(){return{chartId:null}},computed:{chartStyle:function(){return this.data,this.chartOptions,{height:this.height||"300px",lineHeight:this.height||"300px",width:this.width||"100%",textAlign:"center",color:"#999",fontSize:"14px",fontFamily:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif"}},chartOptions:function(){for(var t={},r=e,a=0;a>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var P=/(\[[^\[]*\])|(\\)?([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,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},C={};function U(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(C[e]=i),t&&(C[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(C[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function H(e,t){return e.isValid()?(t=F(t,e.localeData()),W[t]=W[t]||function(e){var t,n,s,i=e.match(P);for(t=0,n=i.length;t=0&&R.test(e);)e=e.replace(R,s),R.lastIndex=0,n-=1;return e}var L={};function V(e,t){var n=e.toLowerCase();L[n]=L[n+"s"]=L[t]=e}function G(e){return"string"==typeof e?L[e]||L[e.toLowerCase()]:void 0}function E(e){var t,n,s={};for(n in e)a(e,n)&&(t=G(n))&&(s[t]=e[n]);return s}var A={};function j(e,t){A[e]=t}function I(e){return e%4==0&&e%100!=0||e%400==0}function Z(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function z(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Z(t)),n}function $(e,t){return function(n){return null!=n?(B(this,e,n),s.updateOffset(this,t),this):q(this,e)}}function q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function B(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&I(e.year())&&1===e.month()&&29===e.date()?(n=z(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var J,Q=/\d/,X=/\d\d/,K=/\d{3}/,ee=/\d{4}/,te=/[+-]?\d{6}/,ne=/\d\d?/,se=/\d\d\d\d?/,ie=/\d\d\d\d\d\d?/,re=/\d{1,3}/,ae=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ue=/\d+/,le=/[+-]?\d+/,he=/Z|[+-]\d\d:?\d\d/gi,de=/Z|[+-]\d\d(?::?\d\d)?/gi,ce=/[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;function fe(e,t,n){J[e]=b(t)?t:function(e,s){return e&&n?n:t}}function me(e,t){return a(J,e)?J[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var ye={};function ge(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),l(t)&&(s=function(e,n){n[t]=z(e)}),n=0;n68?1900:2e3)};var Ge=$("FullYear",!0);function Ee(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ae(e,t,n){var s=7+t-n;return-((7+Ee(e,0,s).getUTCDay()-t)%7)+s-1}function je(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+Ae(e,s,i);return o<=0?a=Ve(r=e-1)+o:o>Ve(e)?(r=e+1,a=o-Ve(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Ie(e,t,n){var s,i,r=Ae(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Ze(i=e.year()-1,t,n):a>Ze(e.year(),t,n)?(s=a-Ze(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Ze(e,t,n){var s=Ae(e,t,n),i=Ae(e+1,t,n);return(Ve(e)-s+i)/7}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),V("week","w"),V("isoWeek","W"),j("week",5),j("isoWeek",5),fe("w",ne),fe("ww",ne,X),fe("W",ne),fe("WW",ne,X),we(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=z(e)});function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),V("day","d"),V("weekday","e"),V("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),fe("d",ne),fe("e",ne),fe("E",ne),fe("dd",function(e,t){return t.weekdaysMinRegex(e)}),fe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),fe("dddd",function(e,t){return t.weekdaysRegex(e)}),we(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:m(n).invalidWeekday=e}),we(["d","e","E"],function(e,t,n,s){t[s]=z(e)});var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Je=ce,Qe=ce,Xe=ce;function Ke(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),s=_e(this.weekdaysMin(n,"")),i=_e(this.weekdaysShort(n,"")),r=_e(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,et),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)}),U("hmmss",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),tt("a",!0),tt("A",!1),V("hour","h"),j("hour",13),fe("a",nt),fe("A",nt),fe("H",ne),fe("h",ne),fe("k",ne),fe("HH",ne,X),fe("hh",ne,X),fe("kk",ne,X),fe("hmm",se),fe("hmmss",ie),fe("Hmm",se),fe("Hmmss",ie),ge(["H","HH"],Se),ge(["k","kk"],function(e,t,n){var s=z(e);t[Se]=24===s?0:s}),ge(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ge(["h","hh"],function(e,t,n){t[Se]=z(e),m(n).bigHour=!0}),ge("hmm",function(e,t,n){var s=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s)),m(n).bigHour=!0}),ge("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s,2)),t[Oe]=z(e.substr(i)),m(n).bigHour=!0}),ge("Hmm",function(e,t,n){var s=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s))}),ge("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Se]=z(e.substr(0,s)),t[Ye]=z(e.substr(s,2)),t[Oe]=z(e.substr(i))});var st=$("Hours",!0);var it,rt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:Pe,monthsShort:Re,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Be,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},at={},ot={};function ut(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n0;){if(s=ht(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&ut(i,n)>=t-1)break;t--}r++}return it}(e)}function mt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[Me]<0||n[Me]>11?Me:n[De]<1||n[De]>Ne(n[ke],n[Me])?De:n[Se]<0||n[Se]>24||24===n[Se]&&(0!==n[Ye]||0!==n[Oe]||0!==n[be])?Se:n[Ye]<0||n[Ye]>59?Ye:n[Oe]<0||n[Oe]>59?Oe:n[be]<0||n[be]>999?be:-1,m(e)._overflowDayOfYear&&(tDe)&&(t=De),m(e)._overflowWeeks&&-1===t&&(t=xe),m(e)._overflowWeekday&&-1===t&&(t=Te),m(e).overflow=t),e}var _t=/^\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)?)?$/,yt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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]],pt=[["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/]],vt=/^\/?Date\((-?\d+)/i,kt=/^(?:(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}))$/,Mt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dt(e){var t,n,s,i,r,a,o=e._i,u=_t.exec(o)||yt.exec(o);if(u){for(m(e).iso=!0,t=0,n=wt.length;t7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Ie(Pt(),r,a),n=Ot(t.gg,e._a[ke],l.year),s=Ot(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r);s<1||s>Ze(n,r,a)?m(e)._overflowWeeks=!0:null!=u?m(e)._overflowWeekday=!0:(o=je(n,s,i,r,a),e._a[ke]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(a=Ot(e._a[ke],i[ke]),(e._dayOfYear>Ve(a)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Ee(a,0,e._dayOfYear),e._a[Me]=n.getUTCMonth(),e._a[De]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Se]&&0===e._a[Ye]&&0===e._a[Oe]&&0===e._a[be]&&(e._nextDay=!0,e._a[Se]=0),e._d=(e._useUTC?Ee:function(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Se]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(m(e).weekdayMismatch=!0)}}function xt(e){if(e._f!==s.ISO_8601){if(e._f!==s.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,r,a,o,u=""+e._i,l=u.length,h=0;for(i=F(e._f,e._locale).match(P)||[],t=0;t0&&m(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),h+=n.length),C[r]?(n?m(e).empty=!1:m(e).unusedTokens.push(r),pe(r,n,e)):e._strict&&!n&&m(e).unusedTokens.push(r);m(e).charsLeftOver=l-h,u.length>0&&m(e).unusedInput.push(u),e._a[Se]<=12&&!0===m(e).bigHour&&e._a[Se]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[Se]=function(e,t,n){var s;if(null==n)return t;return null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[Se],e._meridiem),null!==(o=m(e).era)&&(e._a[ke]=e._locale.erasConvertYear(o,e._a[ke])),bt(e),mt(e)}else Yt(e);}else Dt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new v(mt(t)):(h(t)?e._d=t:i(n)?function(e){var t,n,s,i,r,a,o=!1;if(0===e._f.length)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:y()});function Ct(e,t){var n,s;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Pt();for(n=t[0],s=1;s=0?new Date(e+400,t,n)-hn:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hn:Date.UTC(e,t,n)}function mn(e,t){return t.erasAbbrRegex(e)}function _n(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=Ze(e,s,i))&&(t=r),function(e,t,n,s,i){var r=je(e,t,n,s,i),a=Ee(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,s,i))}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),fe("N",mn),fe("NN",mn),fe("NNN",mn),fe("NNNN",function(e,t){return t.erasNameRegex(e)}),fe("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?m(n).era=i:m(n).invalidEra=e}),fe("y",ue),fe("yy",ue),fe("yyy",ue),fe("yyyy",ue),fe("yo",function(e,t){return t._eraYearOrdinalRegex||ue}),ge(["y","yy","yyy","yyyy"],ke),ge(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ke]=n._locale.eraYearOrdinalParse(e,i):t[ke]=parseInt(e,10)}),U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yn("gggg","weekYear"),yn("ggggg","weekYear"),yn("GGGG","isoWeekYear"),yn("GGGGG","isoWeekYear"),V("weekYear","gg"),V("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),fe("G",le),fe("g",le),fe("GG",ne,X),fe("gg",ne,X),fe("GGGG",ae,ee),fe("gggg",ae,ee),fe("GGGGG",oe,te),fe("ggggg",oe,te),we(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=z(e)}),we(["gg","GG"],function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),V("quarter","Q"),j("quarter",7),fe("Q",Q),ge("Q",function(e,t){t[Me]=3*(z(e)-1)}),U("D",["DD",2],"Do","date"),V("date","D"),j("date",9),fe("D",ne),fe("DD",ne,X),fe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ge(["D","DD"],De),ge("Do",function(e,t){t[De]=z(e.match(ne)[0])});var wn=$("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),V("dayOfYear","DDD"),j("dayOfYear",4),fe("DDD",re),fe("DDDD",K),ge(["DDD","DDDD"],function(e,t,n){n._dayOfYear=z(e)}),U("m",["mm",2],0,"minute"),V("minute","m"),j("minute",14),fe("m",ne),fe("mm",ne,X),ge(["m","mm"],Ye);var pn=$("Minutes",!1);U("s",["ss",2],0,"second"),V("second","s"),j("second",15),fe("s",ne),fe("ss",ne,X),ge(["s","ss"],Oe);var vn,kn,Mn=$("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),V("millisecond","ms"),j("millisecond",16),fe("S",re,Q),fe("SS",re,X),fe("SSS",re,K),vn="SSSS";vn.length<=9;vn+="S")fe(vn,ue);function Dn(e,t){t[be]=z(1e3*("0."+e))}for(vn="S";vn.length<=9;vn+="S")ge(vn,Dn);kn=$("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Sn=v.prototype;function Yn(e){return e}Sn.add=Xt,Sn.calendar=function(e,t){1===arguments.length&&(arguments[0]?tn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=r(e)&&!o(e),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):b(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+"(\"]",t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+"[\")]",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=It,Sn.isUTC=It,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=D("dates accessor is deprecated. Use date instead.",wn),Sn.months=D("months accessor is deprecated. Use month instead",Fe),Sn.years=D("years accessor is deprecated. Use year instead",Ge),Sn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Sn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=Tt(t))._a?(e=t._isUTC?f(t._a):Pt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var On=T.prototype;function bn(e,t,n,s){var i=ft(),r=f().set(s,t);return i[n](r,e)}function xn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=bn(e,s,n,"month");return i}function Tn(e,t,n,s){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,r=ft(),a=e?r._week.dow:0,o=[];if(null!=n)return bn(t,(n+a)%7,s,"day");for(i=0;i<7;i++)o[i]=bn(t,(i+a)%7,s,"day");return o}On.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return b(s)?s.call(t,n):s},On.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},On.invalidDate=function(){return this._invalidDate},On.ordinal=function(e){return this._ordinal.replace("%d",e)},On.preparse=Yn,On.postformat=Yn,On.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return b(i)?i(e,t,n,s):i.replace(/%d/i,e)},On.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return b(n)?n(t):n.replace(/%s/i,t)},On.set=function(e){var t,n;for(n in e)a(e,n)&&(b(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},On.eras=function(e,t){var n,i,r,a=this._eras||ft("en")._eras;for(n=0,i=a.length;n=0)return u[s]},On.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},On.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||_n.call(this),e?this._erasAbbrRegex:this._erasRegex},On.erasNameRegex=function(e){return a(this,"_erasNameRegex")||_n.call(this),e?this._erasNameRegex:this._erasRegex},On.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||_n.call(this),e?this._erasNarrowRegex:this._erasRegex},On.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||We).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},On.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[We.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},On.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=f([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=ve.call(this._shortMonthsParse,a))?i:-1!==(i=ve.call(this._longMonthsParse,a))?i:null:-1!==(i=ve.call(this._longMonthsParse,a))?i:-1!==(i=ve.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=f([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},On.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},On.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||Le.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Ce),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},On.week=function(e){return Ie(e,this._week.dow,this._week.doy).week},On.firstDayOfYear=function(){return this._week.doy},On.firstDayOfWeek=function(){return this._week.dow},On.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},On.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},On.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},On.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return function(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=f([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=ve.call(this._weekdaysParse,a))?i:-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:-1!==(i=ve.call(this._weekdaysParse,a))?i:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:null:-1!==(i=ve.call(this._minWeekdaysParse,a))?i:-1!==(i=ve.call(this._weekdaysParse,a))?i:-1!==(i=ve.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=f([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},On.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Je),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},On.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},On.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},On.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},On.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("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(e){var t=e%10;return e+(1===z(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),s.lang=D("moment.lang is deprecated. Use moment.locale instead.",dt),s.langData=D("moment.langData is deprecated. Use moment.localeData instead.",ft);var Nn=Math.abs;function Pn(e,t,n,s){var i=$t(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Rn(e){return e<0?Math.floor(e):Math.ceil(e)}function Wn(e){return 4800*e/146097}function Cn(e){return 146097*e/4800}function Un(e){return function(){return this.as(e)}}var Hn=Un("ms"),Fn=Un("s"),Ln=Un("m"),Vn=Un("h"),Gn=Un("d"),En=Un("w"),An=Un("M"),jn=Un("Q"),In=Un("y");function Zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var zn=Zn("milliseconds"),$n=Zn("seconds"),qn=Zn("minutes"),Bn=Zn("hours"),Jn=Zn("days"),Qn=Zn("months"),Xn=Zn("years");var Kn=Math.round,es={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var ts=Math.abs;function ns(e){return(e>0)-(e<0)||+e}function ss(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=ts(this._milliseconds)/1e3,l=ts(this._days),h=ts(this._months),d=this.asSeconds();return d?(e=Z(u/60),t=Z(e/60),u%=60,e%=60,n=Z(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=ns(this._months)!==ns(d)?"-":"",a=ns(this._days)!==ns(d)?"-":"",o=ns(this._milliseconds)!==ns(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var is=Ht.prototype;return is.isValid=function(){return this._isValid},is.abs=function(){var e=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),e.milliseconds=Nn(e.milliseconds),e.seconds=Nn(e.seconds),e.minutes=Nn(e.minutes),e.hours=Nn(e.hours),e.months=Nn(e.months),e.years=Nn(e.years),this},is.add=function(e,t){return Pn(this,e,t,1)},is.subtract=function(e,t){return Pn(this,e,t,-1)},is.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=G(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Wn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12;}else switch(t=this._days+Math.round(Cn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e);}},is.asMilliseconds=Hn,is.asSeconds=Fn,is.asMinutes=Ln,is.asHours=Vn,is.asDays=Gn,is.asWeeks=En,is.asMonths=An,is.asQuarters=jn,is.asYears=In,is.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*z(this._months/12):NaN},is._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*Rn(Cn(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=Z(r/1e3),u.seconds=e%60,t=Z(e/60),u.minutes=t%60,n=Z(t/60),u.hours=n%24,a+=Z(n/24),o+=i=Z(Wn(a)),a-=Rn(Cn(i)),s=Z(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},is.clone=function(){return $t(this)},is.get=function(e){return e=G(e),this.isValid()?this[e+"s"]():NaN},is.milliseconds=zn,is.seconds=$n,is.minutes=qn,is.hours=Bn,is.days=Jn,is.weeks=function(){return Z(this.days()/7)},is.months=Qn,is.years=Xn,is.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,r=es;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},es,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),s=function(e,t,n,s){var i=$t(e).abs(),r=Kn(i.as("s")),a=Kn(i.as("m")),o=Kn(i.as("h")),u=Kn(i.as("d")),l=Kn(i.as("M")),h=Kn(i.as("w")),d=Kn(i.as("y")),c=r<=n.ss&&["s",r]||r0,c[4]=s,function(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}.apply(null,c)}(this,!i,r,n=this.localeData()),i&&(s=n.pastFuture(+this,s)),n.postformat(s)},is.toISOString=ss,is.toString=ss,is.toJSON=ss,is.locale=sn,is.localeData=an,is.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ss),is.lang=rn,U("X",0,0,"unix"),U("x",0,0,"valueOf"),fe("x",le),fe("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ge("x",function(e,t,n){n._d=new Date(z(e))}),s.version="2.29.1",e=Pt,s.fn=Sn,s.min=function(){return Ct("isBefore",[].slice.call(arguments,0))},s.max=function(){return Ct("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=f,s.unix=function(e){return Pt(1e3*e)},s.months=function(e,t){return xn(e,t,"months")},s.isDate=h,s.locale=dt,s.invalid=y,s.duration=$t,s.isMoment=k,s.weekdays=function(e,t,n){return Tn(e,t,n,"weekdays")},s.parseZone=function(){return Pt.apply(null,arguments).parseZone()},s.localeData=ft,s.isDuration=Ft,s.monthsShort=function(e,t){return xn(e,t,"monthsShort")},s.weekdaysMin=function(e,t,n){return Tn(e,t,n,"weekdaysMin")},s.defineLocale=ct,s.updateLocale=function(e,t){if(null!=t){var n,s,i=rt;null!=at[e]&&null!=at[e].parentLocale?at[e].set(x(at[e]._config,t)):(null!=(s=ht(e))&&(i=s._config),t=x(i,t),null==s&&(t.abbr=e),(n=new T(t)).parentLocale=at[e],at[e]=n),dt(e)}else null!=at[e]&&(null!=at[e].parentLocale?(at[e]=at[e].parentLocale,e===dt()&&dt(e)):null!=at[e]&&delete at[e]);return at[e]},s.locales=function(){return S(at)},s.weekdaysShort=function(e,t,n){return Tn(e,t,n,"weekdaysShort")},s.normalizeUnits=G,s.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==es[e]&&(void 0===t?es[e]:(es[e]=t,"s"===e&&(es.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},s.prototype=Sn,s.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"},s}),t.exports}.call({})}!function(t,e){"object"==typeof Ef?Ef=e(function(){try{return $s(),Ys}catch(t){}}()):"function"==typeof Df&&Df.amd?Df(["require"],function(t){return e(function(){try{return t("moment")}catch(e){}}())}):(t=t||self).Chart=e(t.moment)}(Ef,function(t){t=t&&t.hasOwnProperty("default")?t.default:t;var e,n={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]},i=(function(t){var e={};for(var i in n)n.hasOwnProperty(i)&&(e[n[i]]=i);var a=t.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 r in a)if(a.hasOwnProperty(r)){if(!("channels"in a[r]))throw new Error("missing channels property: "+r);if(!("labels"in a[r]))throw new Error("missing channel labels property: "+r);if(a[r].labels.length!==a[r].channels)throw new Error("channel and label counts mismatch: "+r);var o=a[r].channels,s=a[r].labels;delete a[r].channels,delete a[r].labels,Object.defineProperty(a[r],"channels",{value:o}),Object.defineProperty(a[r],"labels",{value:s})}a.rgb.hsl=function(t){var e,n,i=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(i,a,r),s=Math.max(i,a,r),l=s-o;return s===o?e=0:i===s?e=(a-r)/l:a===s?e=2+(r-i)/l:r===s&&(e=4+(i-a)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(o+s)/2,[e,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},a.rgb.hsv=function(t){var e,n,i,a,r,o=t[0]/255,s=t[1]/255,l=t[2]/255,u=Math.max(o,s,l),d=u-Math.min(o,s,l),h=function(t){return(u-t)/6/d+.5};return 0===d?a=r=0:(r=d/u,e=h(o),n=h(s),i=h(l),o===u?a=i-n:s===u?a=1/3+e-i:l===u&&(a=2/3+n-e),a<0?a+=1:a>1&&(a-=1)),[360*a,100*r,100*u]},a.rgb.hwb=function(t){var e=t[0],n=t[1],i=t[2];return[a.rgb.hsl(t)[0],100*(1/255*Math.min(e,Math.min(n,i))),100*(i=1-1/255*Math.max(e,Math.max(n,i)))]},a.rgb.cmyk=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-i,1-a)))/(1-e)||0),100*((1-i-e)/(1-e)||0),100*((1-a-e)/(1-e)||0),100*e]},a.rgb.keyword=function(t){var i=e[t];if(i)return i;var a,r,o,s=1/0;for(var l in n)if(n.hasOwnProperty(l)){var u=n[l],d=(r=t,o=u,Math.pow(r[0]-o[0],2)+Math.pow(r[1]-o[1],2)+Math.pow(r[2]-o[2],2));d.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]},a.rgb.lab=function(t){var e=a.rgb.xyz(t),n=e[0],i=e[1],r=e[2];return i/=100,r/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},a.hsl.rgb=function(t){var e,n,i,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[r=255*l,r,r];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,i>1&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*r;return a},a.hsl.hsv=function(t){var e=t[0],n=t[1]/100,i=t[2]/100,a=n,r=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,a*=r<=1?r:2-r,[e,100*(0===i?2*a/(r+a):2*n/(i+n)),100*((i+n)/2)]},a.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r));switch(i*=255,a){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s];}},a.hsv.hsl=function(t){var e,n,i,a=t[0],r=t[1]/100,o=t[2]/100,s=Math.max(o,.01);return i=(2-r)*o,n=r*s,[a,100*(n=(n/=(e=(2-r)*s)<=1?e:2-e)||0),100*(i/=2)]},a.hwb.rgb=function(t){var e,n,i,a,r,o,s,l=t[0]/360,u=t[1]/100,d=t[2]/100,h=u+d;switch(h>1&&(u/=h,d/=h),i=6*l-(e=Math.floor(6*l)),0!=(1&e)&&(i=1-i),a=u+i*((n=1-d)-u),e){default:case 6:case 0:r=n,o=a,s=u;break;case 1:r=a,o=n,s=u;break;case 2:r=u,o=n,s=a;break;case 3:r=u,o=a,s=n;break;case 4:r=a,o=u,s=n;break;case 5:r=n,o=u,s=a;}return[255*r,255*o,255*s]},a.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,i=t[2]/100,a=t[3]/100;return[255*(1-Math.min(1,e*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,i*(1-a)+a))]},a.xyz.rgb=function(t){var e,n,i,a=t[0]/100,r=t[1]/100,o=t[2]/100;return n=-.9689*a+1.8758*r+.0415*o,i=.0557*a+-.204*r+1.057*o,e=(e=3.2406*a+-1.5372*r+-.4986*o)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},a.xyz.lab=function(t){var e=t[0],n=t[1],i=t[2];return n/=100,i/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},a.lab.xyz=function(t){var e,n,i,a=t[0];e=t[1]/500+(n=(a+16)/116),i=n-t[2]/200;var r=Math.pow(n,3),o=Math.pow(e,3),s=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,e=o>.008856?o:(e-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,[e*=95.047,n*=100,i*=108.883]},a.lab.lch=function(t){var e,n=t[0],i=t[1],a=t[2];return(e=360*Math.atan2(a,i)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(i*i+a*a),e]},a.lch.lab=function(t){var e,n=t[0],i=t[1];return e=t[2]/360*2*Math.PI,[n,i*Math.cos(e),i*Math.sin(e)]},a.rgb.ansi16=function(t){var e=t[0],n=t[1],i=t[2],r=1 in arguments?arguments[1]:a.rgb.hsv(t)[2];if(0===(r=Math.round(r/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===r&&(o+=60),o},a.hsv.ansi16=function(t){return a.rgb.ansi16(a.hsv.rgb(t),t[2])},a.rgb.ansi256=function(t){var e=t[0],n=t[1],i=t[2];return e===n&&n===i?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},a.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},a.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},a.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},a.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},a.rgb.hcg=function(t){var e,n=t[0]/255,i=t[1]/255,a=t[2]/255,r=Math.max(Math.max(n,i),a),o=Math.min(Math.min(n,i),a),s=r-o;return e=s<=0?0:r===n?(i-a)/s%6:r===i?2+(a-n)/s:4+(n-i)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?o/(1-s):0)]},a.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=1,a=0;return(i=n<.5?2*e*n:2*e*(1-n))<1&&(a=(n-.5*i)/(1-i)),[t[0],100*i,100*a]},a.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,i=e*n,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,i=t[2]/100;if(0===n)return[255*i,255*i,255*i];var a,r=[0,0,0],o=e%1*6,s=o%1,l=1-s;switch(Math.floor(o)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l;}return a=(1-n)*i,[255*(n*r[0]+a),255*(n*r[1]+a),255*(n*r[2]+a)]},a.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),i=0;return n>0&&(i=e/n),[t[0],100*i,100*n]},a.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,i=0;return n>0&&n<.5?i=e/(2*n):n>=.5&&n<1&&(i=e/(2*(1-n))),[t[0],100*i,100*n]},a.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},a.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,i=n-e,a=0;return i<1&&(a=(n-i)/(1-i)),[t[0],100*i,100*a]},a.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},a.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},a.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},a.gray.hsl=a.gray.hsv=function(t){return[0,0,t[0]]},a.gray.hwb=function(t){return[0,100,t[0]]},a.gray.cmyk=function(t){return[0,0,0,t[0]]},a.gray.lab=function(t){return[t[0],0,0]},a.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},a.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}(e={exports:{}},e.exports),e.exports);i.rgb,i.hsl,i.hsv,i.hwb,i.cmyk,i.xyz,i.lab,i.lch,i.hex,i.keyword,i.ansi16,i.ansi256,i.hcg,i.apple,i.gray;function a(t){var e=function(){for(var t={},e=Object.keys(i),n=e.length,a=0;a1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"==typeof n)for(var i=n.length,a=0;a1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)})});var l=s,u={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]},d={getRgba:h,getHsla:c,getRgb:function(t){var e=h(t);return e&&e.slice(0,3)},getHsl:function(t){var e=c(t);return e&&e.slice(0,3)},getHwb:f,getAlpha:function(t){var e=h(t);if(e)return e[3];if(e=c(t))return e[3];if(e=f(t))return e[3]},hexString:function(t,e){var e=void 0!==e&&3===t.length?e:t[3];return"#"+b(t[0])+b(t[1])+b(t[2])+(e>=0&&e<1?b(Math.round(255*e)):"")},rgbString:function(t,e){if(e<1||t[3]&&t[3]<1)return g(t,e);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:g,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return p(t,e);var n=Math.round(t[0]/255*100),i=Math.round(t[1]/255*100),a=Math.round(t[2]/255*100);return"rgb("+n+"%, "+i+"%, "+a+"%)"},percentaString:p,hslString:function(t,e){if(e<1||t[3]&&t[3]<1)return m(t,e);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:m,hwbString:function(t,e){void 0===e&&(e=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return x[t.slice(0,3)]}};function h(t){if(t){var e=[0,0,0],n=1,i=t.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(i){a=(i=i[1])[3];for(var r=0;rn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,i=void 0===e?.5:e,a=2*i-1,r=this.alpha()-n.alpha(),o=((a*r==-1?a:(a+r)/(1+a*r))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new _,i=this.values,a=n.values;for(var r in i)i.hasOwnProperty(r)&&(t=i[r],"[object Array]"===(e={}.toString.call(t))?a[r]=t.slice(0):"[object Number]"===e?a[r]=t:console.error("unexpected color value:",t));return n}},_.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},_.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},_.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i=0;a--)e.call(n,t[a],a);else for(a=0;a=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-P.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*P.easeInBounce(2*t):.5*P.easeOutBounce(2*t-1)+.5}},A={effects:P};C.easingEffects=P;var D=Math.PI,T=D/180,I=2*D,F=D/2,O=D/4,L=2*D/3,R={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var o=Math.min(r,a/2,i/2),s=e+o,l=n+o,u=e+i-o,d=n+a-o;t.moveTo(e,l),se.left-1e-6&&t.xe.top-1e-6&&t.y0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,i,a=this.animations,r=0;r=n?(j.callback(t.onAnimationComplete,[t],e),e.animating=!1,a.splice(r,1)):++r}},tt=j.options.resolve,et=["push","pop","shift","splice","unshift"];function nt(t,e){var n=t._chartjs;if(n){var i=n.listeners,a=i.indexOf(e);-1!==a&&i.splice(a,1),i.length>0||(et.forEach(function(e){delete t[e]}),delete t._chartjs)}}var it=function(t,e){this.initialize(t,e)};j.extend(it.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.chart,n=e.scales,i=this.getDataset(),a=e.options.scales;null!==t.xAxisID&&t.xAxisID in n&&!i.xAxisID||(t.xAxisID=i.xAxisID||a.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in n&&!i.yAxisID||(t.yAxisID=i.yAxisID||a.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_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&&nt(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),i=this.getDataset().data||[],a=n.data;for(t=0,e=i.length;tn&&this.insertElements(n,i-n)},insertElements:function(t,e){for(var n=0;na?(r=a/e.innerRadius,t.arc(o,s,e.innerRadius-a,i+r,n-r,!0)):t.arc(o,s,a,i+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function st(t,e,n){var i="inner"===e.borderAlign;i?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&function(t,e,n,i){var a,r=n.endAngle;for(i&&(n.endAngle=n.startAngle+rt,ot(t,n),n.endAngle=r,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=rt,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+rt,n.startAngle,!0),a=0;as;)a-=rt;for(;a=o&&a<=s,u=r>=n.innerRadius&&r<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,a={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/rt)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,a.fullCircles){for(a.endAngle=a.startAngle+rt,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(),t=0;tt.x&&(e=xt(e,"left","right")):t.basen?n:i,r:l.right||a<0?0:a>e?e:a,b:l.bottom||r<0?0:r>n?n:r,l:l.left||o<0?0:o>e?e:o}}function _t(t,e,n){var i=null===e,a=null===n,r=!(!t||i&&a)&&bt(t);return r&&(i||e>=r.left&&e<=r.right)&&(a||n>=r.top&&n<=r.bottom)}B._set("global",{elements:{rectangle:{backgroundColor:mt,borderColor:mt,borderSkipped:"bottom",borderWidth:0}}});var kt=K.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=bt(t),n=e.right-e.left,i=e.bottom-e.top,a=yt(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i},inner:{x:e.left+a.l,y:e.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b}}}(e),i=n.outer,a=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(i.x,i.y,i.w,i.h),i.w===a.w&&i.h===a.h||(t.save(),t.beginPath(),t.rect(i.x,i.y,i.w,i.h),t.clip(),t.fillStyle=e.borderColor,t.rect(a.x,a.y,a.w,a.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return _t(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return vt(n)?_t(n,t,null):_t(n,null,e)},inXRange:function(t){return _t(this._view,t,null)},inYRange:function(t){return _t(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return vt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return vt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),wt={},Mt=lt,St=ht,Ct=pt,Pt=kt;wt.Arc=Mt,wt.Line=St,wt.Point=Ct,wt.Rectangle=Pt;var At=j._deprecated,Dt=j.valueOrDefault;function Tt(t,e,n){var i,a,r=n.barThickness,o=e.stackCount,s=e.pixels[t],l=j.isNullOrUndef(r)?function(t,e){var n,i,a,r,o=t._length;for(a=1,r=e.length;a0?Math.min(o,Math.abs(i-n)):o,n=i;return o}(e.scale,e.pixels):-1;return j.isNullOrUndef(r)?(i=l*n.categoryPercentage,a=n.barPercentage):(i=r*o,a=1),{chunk:i/o,ratio:a,start:s-i/2}}B._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),B._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var It=at.extend({dataElementType:wt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;at.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,At("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),At("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),At("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),At("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),At("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=i.length;e=0&&p.min>=0?p.min:p.max,y=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,_=g.length;if(v||void 0===v&&void 0!==b)for(i=0;i<_&&(a=g[i]).index!==t;++i)a.stack===b&&(r=void 0===(u=h._parseValue(f[a.index].data[e])).start?u.end:u.min>=0&&u.max>=0?u.max:u.min,(p.min<0&&r<0||p.max>=0&&r>0)&&(x+=r));return o=h.getPixelForValue(x),l=(s=h.getPixelForValue(x+y))-o,void 0!==m&&Math.abs(l)=0&&!c||y<0&&c?o-m:o+m),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(t,e,n,i){var a="flex"===i.barThickness?function(t,e,n){var i,a=e.pixels,r=a[t],o=t>0?a[t-1]:null,s=t=zt?-Nt:b<-zt?Nt:0)+m,y=Math.cos(b),_=Math.sin(b),k=Math.cos(x),w=Math.sin(x),M=b<=0&&x>=0||x>=Nt,S=b<=Bt&&x>=Bt||x>=Nt+Bt,C=b<=-Bt&&x>=-Bt||x>=zt+Bt,P=b===-zt||x>=zt?-1:Math.min(y,y*p,k,k*p),A=C?-1:Math.min(_,_*p,w,w*p),D=M?1:Math.max(y,y*p,k,k*p),T=S?1:Math.max(_,_*p,w,w*p);u=(D-P)/2,d=(T-A)/2,h=-(D+P)/2,c=-(T+A)/2}for(i=0,a=g.length;i0&&!isNaN(t)?Nt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,i,a,r,o,s,l,u=0,d=this.chart;if(!t)for(e=0,n=d.data.datasets.length;e(u=s>u?s:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,i=j.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Rt(n.hoverBackgroundColor,i(n.backgroundColor)),e.borderColor=Rt(n.hoverBorderColor,i(n.borderColor)),e.borderWidth=Rt(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n0&&jt(l[t-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),t0&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return ie(t,e,{intersect:!1})},point:function(t,e){return te(t,Jt(e,t))},nearest:function(t,e,n){var i=Jt(e,t);n.axis=n.axis||"xy";var a=ne(n.axis);return ee(t,i,n.intersect,a)},x:function(t,e,n){var i=Jt(e,t),a=[],r=!1;return Qt(t,function(t){t.inXRange(i.x)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(a=[]),a},y:function(t,e,n){var i=Jt(e,t),a=[],r=!1;return Qt(t,function(t){t.inYRange(i.y)&&a.push(t),t.inRange(i.x,i.y)&&(r=!0)}),n.intersect&&!r&&(a=[]),a}}},re=j.extend;function oe(t,e){return j.where(t,function(t){return t.pos===e})}function se(t,e){return t.sort(function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function le(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function ue(t,e,n){var i,a,r=n.box,o=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?r.height:r.width,t[n.pos]+=n.size,r.getPadding){var s=r.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(i=e.outerWidth-le(o,t,"left","right"),a=e.outerHeight-le(o,t,"top","bottom"),i!==t.w||a!==t.h){t.w=i,t.h=a;var l=n.horizontal?[i,t.w]:[a,t.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function de(t,e){var n=e.maxPadding;function i(t){var i={left:0,top:0,right:0,bottom:0};return t.forEach(function(t){i[t]=Math.max(e[t],n[t])}),i}return i(t?["left","right"]:["top","bottom"])}function he(t,e,n){var i,a,r,o,s,l,u=[];for(i=0,a=t.length;i div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&fe.default||fe,me="$chartjs",ve="chartjs-size-monitor",be="chartjs-render-monitor",xe="chartjs-render-animation",ye=["animationstart","webkitAnimationStart"],_e={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ke(t,e){var n=j.getStyle(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var we=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}()&&{passive:!0};function Me(t,e,n){t.addEventListener(e,n,we)}function Se(t,e,n){t.removeEventListener(e,n,we)}function Ce(t,e,n,i,a){return{type:t,chart:e,native:a||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function Pe(t){var e=document.createElement("div");return e.className=t||"",e}function Ae(t,e,n){var i,a,r,o,s=t[me]||(t[me]={}),l=s.resizer=function(t){var e=Pe(ve),n=Pe(ve+"-expand"),i=Pe(ve+"-shrink");n.appendChild(Pe()),i.appendChild(Pe()),e.appendChild(n),e.appendChild(i),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var a=function(){e._reset(),t()};return Me(n,"scroll",a.bind(n,"expand")),Me(i,"scroll",a.bind(i,"shrink")),e}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,a=i?i.clientWidth:0;e(Ce("resize",n)),i&&i.clientWidth0){var r=t[0];r.label?n=r.label:r.xLabel?n=r.xLabel:a>0&&r.index-1?t.split("\n"):t}function Ee(t){var e=B.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Re(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Re(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Re(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Re(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Re(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Re(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Re(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Re(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Re(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ve(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function He(t){return Be([],We(t))}var je=K.extend({initialize:function(){this._model=Ee(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),n=t.title.apply(this,arguments),i=t.afterTitle.apply(this,arguments),a=[];return a=Be(a,We(e)),a=Be(a,We(n)),a=Be(a,We(i))},getBeforeBody:function(){return He(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,i=n._options.callbacks,a=[];return j.each(t,function(t){var r={before:[],lines:[],after:[]};Be(r.before,We(i.beforeLabel.call(n,t,e))),Be(r.lines,i.label.call(n,t,e)),Be(r.after,We(i.afterLabel.call(n,t,e))),a.push(r)}),a},getAfterBody:function(){return He(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),n=t.footer.apply(this,arguments),i=t.afterFooter.apply(this,arguments),a=[];return a=Be(a,We(e)),a=Be(a,We(n)),a=Be(a,We(i))},update:function(t){var e,n,i,a,r,o,s,l,u,d,h=this,c=h._options,f=h._model,g=h._model=Ee(c),p=h._active,m=h._data,v={xAlign:f.xAlign,yAlign:f.yAlign},b={x:f.x,y:f.y},x={width:f.width,height:f.height},y={x:f.caretX,y:f.caretY};if(p.length){g.opacity=1;var _=[],k=[];y=Ne[c.position].call(h,p,h._eventPosition);var w=[];for(e=0,n=p.length;ei.width&&(a=i.width-e.width),a<0&&(a=0)),"top"===d?r+=h:r-="bottom"===d?e.height+h:e.height/2,"center"===d?"left"===u?a+=h:"right"===u&&(a-=h):"left"===u?a-=c:"right"===u&&(a+=c),{x:a,y:r}}(g,x,v=function(t,e){var n,i,a,r,o,s=t._model,l=t._chart,u=t._chart.chartArea,d="center",h="center";s.yl.height-e.height&&(h="bottom");var c=(u.left+u.right)/2,f=(u.top+u.bottom)/2;"center"===h?(n=function(t){return t<=c},i=function(t){return t>c}):(n=function(t){return t<=e.width/2},i=function(t){return t>=l.width-e.width/2}),a=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},r=function(t){return t-e.width-s.caretSize-s.caretPadding<0},o=function(t){return t<=f?"top":"bottom"},n(s.x)?(d="left",a(s.x)&&(d="center",h=o(s.y))):i(s.x)&&(d="right",r(s.x)&&(d="center",h=o(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:h}}(this,x),h._chart)}else g.opacity=0;return g.xAlign=v.xAlign,g.yAlign=v.yAlign,g.x=b.x,g.y=b.y,g.width=x.width,g.height=x.height,g.caretX=y.x,g.caretY=y.y,h._model=g,t&&c.custom&&c.custom.call(h,g),h},drawCaret:function(t,e){var n=this._chart.ctx,i=this._view,a=this.getCaretPosition(t,e,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,n){var i,a,r,o,s,l,u=n.caretSize,d=n.cornerRadius,h=n.xAlign,c=n.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===c)s=g+m/2,"left"===h?(a=(i=f)-u,r=i,o=s+u,l=s-u):(a=(i=f+p)+u,r=i,o=s-u,l=s+u);else if("left"===h?(i=(a=f+d+u)-u,r=a+u):"right"===h?(i=(a=f+p-d-u)-u,r=a+u):(i=(a=n.caretX)-u,r=a+u),"top"===c)s=(o=g)-u,l=o;else{s=(o=g+m)+u,l=o;var v=r;r=i,i=v}return{x1:i,x2:a,x3:r,y1:o,y2:s,y3:l}},drawTitle:function(t,e,n){var i,a,r,o=e.title,s=o.length;if(s){var l=ze(e.rtl,e.x,e.width);for(t.x=Ve(e,e._titleAlign),n.textAlign=l.textAlign(e._titleAlign),n.textBaseline="middle",i=e.titleFontSize,a=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=j.fontString(i,e._titleFontStyle,e._titleFontFamily),r=0;r0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(t.save(),t.globalAlpha=a,this.drawBackground(i,e,t,n),i.y+=e.yPadding,j.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),j.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(t,i.mode,i),i.reverse&&n._active.reverse()),(e=!j.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),qe=Ne,Ue=je;Ue.positioners=qe;var Ye=j.valueOrDefault;function $e(){return j.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){if("xAxes"===t||"yAxes"===t){var a,r,o,s=n[t].length;for(e[t]||(e[t]=[]),a=0;a=e[t].length&&e[t].push({}),!e[t][a].type||o.type&&o.type!==e[t][a].type?j.merge(e[t][a],[Le.getScaleDefaults(r),o]):j.merge(e[t][a],o)}else j._merger(t,e,n,i)}})}function Ge(){return j.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,i){var a=e[t]||Object.create(null),r=n[t];"scales"===t?e[t]=$e(a,r):"scale"===t?e[t]=j.merge(a,[Le.getScaleDefaults(r.type),r]):j._merger(t,e,n,i)}})}function Xe(t,e,n){var i,a=function(t){return t.id===i};do{i=e+n++}while(j.findIndex(t,a)>=0);return i}function Ke(t){return"top"===t||"bottom"===t}function Ze(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}B._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});var Je=function(t,e){return this.construct(t,e),this};j.extend(Je.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Ge(B.global,B[t.type],t.options||{}),t}(e);var i=Fe.acquireContext(t,e),a=i&&i.canvas,r=a&&a.height,o=a&&a.width;n.id=j.uid(),n.ctx=i,n.canvas=a,n.config=e,n.width=o,n.height=r,n.aspectRatio=r?o/r:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Je.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),i&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Oe.notify(t,"beforeInit"),j.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Oe.notify(t,"afterInit"),t},clear:function(){return j.canvas.clear(this),this},stop:function(){return Q.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,a=n.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(j.getMaximumWidth(i))),o=Math.max(0,Math.floor(a?r/a:j.getMaximumHeight(i)));if((e.width!==r||e.height!==o)&&(i.width=e.width=r,i.height=e.height=o,i.style.width=r+"px",i.style.height=o+"px",j.retinaScale(e,n.devicePixelRatio),!t)){var s={width:r,height:o};Oe.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;j.each(e.xAxes,function(t,n){t.id||(t.id=Xe(e.xAxes,"x-axis-",n))}),j.each(e.yAxes,function(t,n){t.id||(t.id=Xe(e.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},i=[],a=Object.keys(n).reduce(function(t,e){return t[e]=!1,t},{});e.scales&&(i=i.concat((e.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),e.scale&&i.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),j.each(i,function(e){var i=e.options,r=i.id,o=Ye(i.type,e.dtype);Ke(i.position)!==Ke(e.dposition)&&(i.position=e.dposition),a[r]=!0;var s=null;if(r in n&&n[r].type===o)(s=n[r]).options=i,s.ctx=t.ctx,s.chart=t;else{var l=Le.getScaleConstructor(o);if(!l)return;s=new l({id:r,type:o,options:i,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)}),j.each(a,function(t,e){t||delete n[e]}),t.scales=n,Le.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,i=[],a=n.data.datasets;for(t=0,e=a.length;t=0;--n)this.drawDataset(e[n],t);Oe.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n={meta:t,index:t.index,easingValue:e};!1!==Oe.notify(this,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Oe.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Oe.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Oe.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return ae.modes.single(this,t)},getElementsAtEvent:function(t){return ae.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return ae.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=ae.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return ae.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&t!==Math.floor(t)&&(i=t-Math.floor(t));var a=j.log10(Math.abs(i)),r="";if(0!==t){if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=j.log10(Math.abs(t)),s=Math.floor(o)-Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toExponential(s)}else{var l=-1*Math.floor(a);l=Math.max(Math.min(l,20),0),r=t.toFixed(l)}}else r="0";return r},logarithmic:function(t,e,n){var i=t/Math.pow(10,Math.floor(j.log10(t)));return 0===t?"0":1===i||2===i||5===i||0===e||e===n.length-1?t.toExponential():""}}},rn=j.isArray,on=j.isNullOrUndef,sn=j.valueOrDefault,ln=j.valueAtIndexOrDefault;function un(t,e,n){var i,a=t.getTicks().length,r=Math.min(e,a-1),o=t.getPixelForTick(r),s=t._startPixel,l=t._endPixel;if(!(n&&(i=1===a?Math.max(o-s,l-o):0===e?(t.getPixelForTick(1)-o)/2:(o-t.getPixelForTick(r-1))/2,(o+=rl+1e-6)))return o}function dn(t,e,n,i){var a,r,o,s,l,u,d,h,c,f,g,p,m,v=n.length,b=[],x=[],y=[],_=0,k=0;for(a=0;ae){for(n=0;n=c||d<=1||!s.isHorizontal()?s.labelRotation=h:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,i=Math.min(s.maxWidth,s.chart.width-e),e+6>(a=l.offset?s.maxWidth/d:i/(d-1))&&(a=i/(d-(l.offset?.5:1)),r=s.maxHeight-hn(l.gridLines)-u.padding-cn(l.scaleLabel),o=Math.sqrt(e*e+n*n),f=j.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/a,1)),Math.asin(Math.min(r/o,1))-Math.asin(n/o))),f=Math.max(h,Math.min(c,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){j.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){j.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,i=t.options,a=i.ticks,r=i.scaleLabel,o=i.gridLines,s=t._isVisible(),l="bottom"===i.position,u=t.isHorizontal();if(u?e.width=t.maxWidth:s&&(e.width=hn(o)+cn(r)),u?s&&(e.height=hn(o)+cn(r)):e.height=t.maxHeight,a.display&&s){var d=gn(a),h=t._getLabelSizes(),c=h.first,f=h.last,g=h.widest,p=h.highest,m=.4*d.minor.lineHeight,v=a.padding;if(u){var b=0!==t.labelRotation,x=j.toRadians(t.labelRotation),y=Math.cos(x),_=Math.sin(x),k=_*g.width+y*(p.height-(b?p.offset:0))+(b?0:m);e.height=Math.min(t.maxHeight,e.height+k+v);var w,M,S=t.getPixelForTick(0)-t.left,C=t.right-t.getPixelForTick(t.getTicks().length-1);b?(w=l?y*c.width+_*c.offset:_*(c.height-c.offset),M=l?_*(f.height-f.offset):y*f.width+_*f.offset):(w=c.width/2,M=f.width/2),t.paddingLeft=Math.max((w-S)*t.width/(t.width-S),0)+3,t.paddingRight=Math.max((M-C)*t.width/(t.width-C),0)+3}else{var P=a.mirror?0:g.width+v+m;e.width=Math.min(t.maxWidth,e.width+P),t.paddingTop=c.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),u?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){j.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(on(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,i,a=this;for(a.ticks=t.map(function(t){return t.value}),a.beforeTickToLabelConversion(),e=a.convertTicksToLabels(t)||a.ticks,a.afterTickToLabelConversion(),n=0,i=t.length;nn-1?null:this.getPixelForDecimal(t*i+(e?i/2:0))},getPixelForDecimal:function(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,i,a,r=this.options.ticks,o=this._length,s=r.maxTicksLimit||o/this._tickSize()+1,l=r.major.enabled?function(t){var e,n,i=[];for(e=0,n=t.length;es)return function(t,e,n){var i,a,r=0,o=e[0];for(n=Math.ceil(n),i=0;iu)return r;return Math.max(u,1)}(l,t,0,s),u>0){for(e=0,n=u-1;e1?(h-d)/(u-1):null,mn(t,i,j.isNullOrUndef(a)?0:d-a,d),mn(t,i,h,j.isNullOrUndef(a)?t.length:h+a),pn(t)}return mn(t,i),pn(t)},_tickSize:function(){var t=this.options.ticks,e=j.toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),a=this._getLabelSizes(),r=t.autoSkipPadding||0,o=a?a.widest.width+r:0,s=a?a.highest.height+r:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i=0&&(o=t),void 0!==r&&(t=n.indexOf(r))>=0&&(s=t),e.minIndex=o,e.maxIndex=s,e.min=n[o],e.max=n[s]},buildTicks:function(){var t=this._getLabels(),e=this.minIndex,n=this.maxIndex;this.ticks=0===e&&n===t.length-1?t:t.slice(e,n+1)},getLabelForIndex:function(t,e){var n=this.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[e].data[t]):this._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;bn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var i,a,r,o=this;return xn(e)||xn(n)||(t=o.chart.data.datasets[n].data[e]),xn(t)||(i=o.isHorizontal()?t.x:t.y),(void 0!==i||void 0!==t&&isNaN(e))&&(a=o._getLabels(),t=j.valueOrDefault(i,t),e=-1!==(r=a.indexOf(t))?r:e,isNaN(e)&&(e=t)),o.getPixelForDecimal((e-o._startValue)/o._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),_n={position:"bottom"};yn._defaults=_n;var kn=j.noop,wn=j.isNullOrUndef;var Mn=bn.extend({getRightValue:function(t){return"string"==typeof t?+t:bn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=j.sign(t.min),i=j.sign(t.max);n<0&&i<0?t.max=0:n>0&&i>0&&(t.min=0)}var a=void 0!==e.min||void 0!==e.suggestedMin,r=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),a!==r&&t.min>=t.max&&(a?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,i=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:kn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:j.valueOrDefault(e.fixedStepSize,e.stepSize)},a=t.ticks=function(t,e){var n,i,a,r,o=[],s=t.stepSize,l=s||1,u=t.maxTicks-1,d=t.min,h=t.max,c=t.precision,f=e.min,g=e.max,p=j.niceNum((g-f)/u/l)*l;if(p<1e-14&&wn(d)&&wn(h))return[f,g];(r=Math.ceil(g/p)-Math.floor(f/p))>u&&(p=j.niceNum(r*p/u/l)*l),s||wn(c)?n=Math.pow(10,j._decimalPlaces(p)):(n=Math.pow(10,c),p=Math.ceil(p*n)/n),i=Math.floor(f/p)*p,a=Math.ceil(g/p)*p,s&&(!wn(d)&&j.almostWhole(d/p,p/1e3)&&(i=d),!wn(h)&&j.almostWhole(h/p,p/1e3)&&(a=h)),r=(a-i)/p,r=j.almostEquals(r,Math.round(r),p/1e3)?Math.round(r):Math.ceil(r),i=Math.round(i*n)/n,a=Math.round(a*n)/n,o.push(wn(d)?i:d);for(var m=1;me.length-1?null:this.getPixelForValue(e[t])}}),Dn=Sn;An._defaults=Dn;var Tn=j.valueOrDefault,In=j.math.log10;var Fn={position:"left",ticks:{callback:an.formatters.logarithmic}};function On(t,e){return j.isFinite(t)&&t>=0?t:e}var Ln=bn.extend({determineDataLimits:function(){var t,e,n,i,a,r,o=this,s=o.options,l=o.chart,u=l.data.datasets,d=o.isHorizontal();function h(t){return d?t.xAxisID===o.id:t.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var c=s.stacked;if(void 0===c)for(t=0;t0){var e=j.min(t),n=j.max(t);o.min=Math.min(o.min,e),o.max=Math.max(o.max,n)}})}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(In(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),i={min:On(e.min),max:On(e.max)},a=t.ticks=function(t,e){var n,i,a=[],r=Tn(t.min,Math.pow(10,Math.floor(In(e.min)))),o=Math.floor(In(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===r?(n=Math.floor(In(e.minNotZero)),i=Math.floor(e.minNotZero/Math.pow(10,n)),a.push(r),r=i*Math.pow(10,n)):(n=Math.floor(In(r)),i=Math.floor(r/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(r),10==++i&&(i=1,l=++n>=0?1:l),r=Math.round(i*Math.pow(10,n)*l)/l}while(ne.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(In(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;bn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=Tn(t.options.ticks.fontSize,B.global.defaultFontSize)/t._length),t._startValue=In(e),t._valueOffset=n,t._valueRange=(In(t.max)-In(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(In(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),Rn=Fn;Ln._defaults=Rn;var zn=j.valueOrDefault,Nn=j.valueAtIndexOrDefault,Bn=j.options.resolve,Wn={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:an.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function En(t){var e=t.ticks;return e.display&&t.display?zn(e.fontSize,B.global.defaultFontSize)+2*e.backdropPaddingY:0}function Vn(t,e,n,i,a){return t===i||t===a?{start:e-n/2,end:e+n/2}:ta?{start:e-n,end:e}:{start:e,end:e+n}}function Hn(t){return 0===t||180===t?"center":t<180?"left":"right"}function jn(t,e,n,i){var a,r,o=n.y+i/2;if(j.isArray(e))for(a=0,r=e.length;a270||t<90)&&(n.y-=e.h)}function Un(t){return j.isNumber(t)?t:0}var Yn=Mn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=En(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;j.each(e.data.datasets,function(a,r){if(e.isDatasetVisible(r)){var o=e.getDatasetMeta(r);j.each(a.data,function(e,a){var r=+t.getRightValue(e);isNaN(r)||o.data[a].hidden||(n=Math.min(r,n),i=Math.max(r,i))})}}),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=i===Number.NEGATIVE_INFINITY?0:i,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/En(this.options))},convertTicksToLabels:function(){var t=this;Mn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(function(){var e=j.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""})},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,i,a=j.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=a.string,t._pointLabelSizes=[];var s,l,u,d=t.chart.data.labels.length;for(e=0;er.r&&(r.r=f.end,o.r=h),g.startr.b&&(r.b=g.end,o.b=h)}t.setReductions(t.drawingArea,r,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var i=this,a=e.l/Math.sin(n.l),r=Math.max(e.r-i.width,0)/Math.sin(n.r),o=-e.t/Math.cos(n.t),s=-Math.max(e.b-(i.height-i.paddingTop),0)/Math.cos(n.b);a=Un(a),r=Un(r),o=Un(o),s=Un(s),i.drawingArea=Math.min(Math.floor(t-(a+r)/2),Math.floor(t-(o+s)/2)),i.setCenterPoint(a,r,o,s)},setCenterPoint:function(t,e,n,i){var a=this,r=a.width-e-a.drawingArea,o=t+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-i-a.drawingArea;a.xCenter=Math.floor((o+r)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(j.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,n=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},_drawGrid:function(){var t,e,n,i=this,a=i.ctx,r=i.options,o=r.gridLines,s=r.angleLines,l=zn(s.lineWidth,o.lineWidth),u=zn(s.color,o.color);if(r.pointLabels.display&&function(t){var e=t.ctx,n=t.options,i=n.pointLabels,a=En(n),r=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),o=j.options._parseFont(i);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,u=t.getPointPosition(s,r+l+5),d=Nn(i.fontColor,s,B.global.defaultFontColor);e.fillStyle=d;var h=t.getIndexAngle(s),c=j.toDegrees(h);e.textAlign=Hn(c),qn(c,t._pointLabelSizes[s],u),jn(e,t.pointLabels[s],u,o.lineHeight)}e.restore()}(i),o.display&&j.each(i.ticks,function(t,n){0!==n&&(e=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(t,e,n,i){var a,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Nn(e.color,i-1),u=Nn(e.lineWidth,i-1);if((o||s)&&l&&u){if(r.save(),r.strokeStyle=l,r.lineWidth=u,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{a=t.getPointPosition(0,n),r.moveTo(a.x,a.y);for(var d=1;d=0;t--)e=i.getDistanceFromCenterForValue(r.ticks.reverse?i.min:i.max),n=i.getPointPosition(t,e),a.beginPath(),a.moveTo(i.xCenter,i.yCenter),a.lineTo(n.x,n.y),a.stroke();a.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var i,a,r=t.getIndexAngle(0),o=j.options._parseFont(n),s=zn(n.fontColor,B.global.defaultFontColor);e.save(),e.font=o.string,e.translate(t.xCenter,t.yCenter),e.rotate(r),e.textAlign="center",e.textBaseline="middle",j.each(t.ticks,function(r,l){(0!==l||n.reverse)&&(i=t.getDistanceFromCenterForValue(t.ticksAsNumbers[l]),n.showLabelBackdrop&&(a=e.measureText(r).width,e.fillStyle=n.backdropColor,e.fillRect(-a/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,a+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(r,0,-i))}),e.restore()}},_drawTitle:j.noop}),$n=Wn;Yn._defaults=$n;var Gn=j._deprecated,Xn=j.options.resolve,Kn=j.valueOrDefault,Zn=Number.MIN_SAFE_INTEGER||-9007199254740991,Jn=Number.MAX_SAFE_INTEGER||9007199254740991,Qn={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}},ti=Object.keys(Qn);function ei(t,e){return t-e}function ni(t){return j.valueOrDefault(t.time.min,t.ticks.min)}function ii(t){return j.valueOrDefault(t.time.max,t.ticks.max)}function ai(t,e,n,i){var a=function(t,e,n){for(var i,a,r,o=0,s=t.length-1;o>=0&&o<=s;){if(a=t[(i=o+s>>1)-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],o=a.lo?a.hi?a.hi:t[t.length-1]:t[1],s=o[e]-r[e],l=s?(n-r[e])/s:0,u=(o[i]-r[i])*l;return r[i]+u}function ri(t,e){var n=t._adapter,i=t.options.time,a=i.parser,r=a||i.format,o=e;return"function"==typeof a&&(o=a(o)),j.isFinite(o)||(o="string"==typeof r?n.parse(o,r):n.parse(o)),null!==o?+o:(a||"function"!=typeof r||(o=r(e),j.isFinite(o)||(o=n.parse(o))),o)}function oi(t,e){if(j.isNullOrUndef(e))return null;var n=t.options.time,i=ri(t,t.getRightValue(e));return null===i?i:(n.round&&(i=+t._adapter.startOf(i,n.round)),i)}function si(t,e,n,i){var a,r,o,s=ti.length;for(a=ti.indexOf(t);a=0&&(e[r].major=!0);return e}(t,r,o,n):r}var ui=bn.extend({initialize:function(){this.mergeTicksOptions(),bn.prototype.initialize.call(this)},update:function(){var t=this.options,e=t.time||(t.time={}),n=this._adapter=new nn._date(t.adapters.date);return Gn("time scale",e.format,"time.format","time.parser"),Gn("time scale",e.min,"time.min","ticks.min"),Gn("time scale",e.max,"time.max","ticks.max"),j.mergeIf(e.displayFormats,n.formats()),bn.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),bn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,i,a,r,o,s=this,l=s.chart,u=s._adapter,d=s.options,h=d.time.unit||"day",c=Jn,f=Zn,g=[],p=[],m=[],v=s._getLabels();for(t=0,n=v.length;t1?function(t){var e,n,i,a={},r=[];for(e=0,n=t.length;e1e5*u)throw e+" and "+n+" are too far apart with stepSize of "+u+" "+l;for(a=h;a=a&&n<=r&&d.push(n);return i.min=a,i.max=r,i._unit=l.unit||(s.autoSkip?si(l.minUnit,i.min,i.max,h):function(t,e,n,i,a){var r,o;for(r=ti.length-1;r>=ti.indexOf(n);r--)if(o=ti[r],Qn[o].common&&t._adapter.diff(a,i,o)>=e-1)return o;return ti[n?ti.indexOf(n):0]}(i,d.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(t){for(var e=ti.indexOf(t)+1,n=ti.length;ee&&s=0&&t0?s:1}}),di={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}}};ui._defaults=di;var hi={category:yn,linear:An,logarithmic:Ln,radialLinear:Yn,time:ui},ci={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"};nn._date.override("function"==typeof t?{_id:"moment",formats:function(){return ci},parse:function(e,n){return"string"==typeof e&&"string"==typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,i){return t(e).add(n,i).valueOf()},diff:function(e,n,i){return t(e).diff(t(n),i)},startOf:function(e,n,i){return e=t(e),"isoWeek"===n?e.isoWeekday(i).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),B._set("global",{plugins:{filler:{propagate:!0}}});var fi={dataset:function(t){var e=t.fill,n=t.chart,i=n.getDatasetMeta(e),a=i&&n.isDatasetVisible(e)&&i.dataset._children||[],r=a.length||0;return r?function(t,e){return e=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1;}}function pi(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,n,i,a,r,o=t.el._scale,s=o.options,l=o.chart.data.labels.length,u=t.fill,d=[];if(!l)return null;for(e=s.ticks.reverse?o.max:o.min,n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,e),a=0;a0;--r)j.canvas.lineTo(t,n[r],n[r-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),r=a-1;r>0;--r)t.arc(o,s,l,n[r].angle,n[r-1].angle,!0)}}function yi(t,e,n,i,a,r){var o,s,l,u,d,h,c,f,g=e.length,p=i.spanGaps,m=[],v=[],b=0,x=0;for(t.beginPath(),o=0,s=g;o=0;--n)(e=l[n].$filler)&&e.visible&&(a=(i=e.el)._view,r=i._children||[],o=e.mapper,s=a.backgroundColor||B.global.defaultColor,o&&s&&r.length&&(j.canvas.clipArea(u,t.chartArea),yi(u,r,o,a,s,i._loop),j.canvas.unclipArea(u)))}},ki=j.rtl.getRtlAdapter,wi=j.noop,Mi=j.valueOrDefault;function Si(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}B._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,i=this.chart,a=i.getDatasetMeta(n);a.hidden=null===a.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},i=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map(function(n){var a=n.controller.getStyle(i?0:void 0);return{text:e[n.index].label,fillStyle:a.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:a.borderWidth,strokeStyle:a.borderColor,pointStyle:a.pointStyle,rotation:a.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(t){var e,n,i,a=document.createElement("ul"),r=t.data.datasets;for(a.setAttribute("class",t.id+"-legend"),e=0,n=r.length;el.width)&&(h+=o+n.padding,d[d.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:i,height:o},d[d.length-1]+=i+n.padding}),l.height+=h}else{var c=n.padding,f=t.columnWidths=[],g=t.columnHeights=[],p=n.padding,m=0,v=0;j.each(t.legendItems,function(t,e){var i=Si(n,o)+o/2+a.measureText(t.text).width;e>0&&v+o+2*c>l.height&&(p+=m+n.padding,f.push(m),g.push(v),m=0,v=0),m=Math.max(m,i),v+=o+c,s[e]={left:0,top:0,width:i,height:o}}),p+=m,f.push(m),g.push(v),l.width+=p}t.width=l.width,t.height=l.height}else t.width=l.width=t.height=l.height=0},afterFit:wi,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,i=B.global,a=i.defaultColor,r=i.elements.line,o=t.height,s=t.columnHeights,l=t.width,u=t.lineWidths;if(e.display){var d,h=ki(e.rtl,t.left,t.minSize.width),c=t.ctx,f=Mi(n.fontColor,i.defaultFontColor),g=j.options._parseFont(n),p=g.size;c.textAlign=h.textAlign("left"),c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=g.string;var m=Si(n,p),v=t.legendHitBoxes,b=function(t,i){switch(e.align){case"start":return n.padding;case"end":return t-i;default:return(t-i+n.padding)/2;}},x=t.isHorizontal();d=x?{x:t.left+b(l,u[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+b(o,s[0]),line:0},j.rtl.overrideTextDirection(t.ctx,e.textDirection);var y=p+n.padding;j.each(t.legendItems,function(e,i){var f=c.measureText(e.text).width,g=m+p/2+f,_=d.x,k=d.y;h.setWidth(t.minSize.width),x?i>0&&_+g+n.padding>t.left+t.minSize.width&&(k=d.y+=y,d.line++,_=d.x=t.left+b(l,u[d.line])):i>0&&k+y>t.top+t.minSize.height&&(_=d.x=_+t.columnWidths[d.line]+n.padding,d.line++,k=d.y=t.top+b(o,s[d.line]));var w=h.x(_);!function(t,e,i){if(!(isNaN(m)||m<=0)){c.save();var o=Mi(i.lineWidth,r.borderWidth);if(c.fillStyle=Mi(i.fillStyle,a),c.lineCap=Mi(i.lineCap,r.borderCapStyle),c.lineDashOffset=Mi(i.lineDashOffset,r.borderDashOffset),c.lineJoin=Mi(i.lineJoin,r.borderJoinStyle),c.lineWidth=o,c.strokeStyle=Mi(i.strokeStyle,a),c.setLineDash&&c.setLineDash(Mi(i.lineDash,r.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,l=h.xPlus(t,m/2),u=e+p/2;j.canvas.drawPoint(c,i.pointStyle,s,l,u,i.rotation)}else c.fillRect(h.leftForLtr(t,m),e,m,p),0!==o&&c.strokeRect(h.leftForLtr(t,m),e,m,p);c.restore()}}(w,k,e),v[i].left=h.leftForLtr(w,v[i].width),v[i].top=k,function(t,e,n,i){var a=p/2,r=h.xPlus(t,m+a),o=e+a;c.fillText(n.text,r,o),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,o),c.lineTo(h.xPlus(r,i),o),c.stroke())}(w,k,e,f),x?d.x+=g+n.padding:d.y+=y}),j.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,i,a,r=this;if(t>=r.left&&t<=r.right&&e>=r.top&&e<=r.bottom)for(a=r.legendHitBoxes,n=0;n=(i=a[n]).left&&t<=i.left+i.width&&e>=i.top&&e<=i.top+i.height)return r.legendItems[n];return null},handleEvent:function(t){var e,n=this,i=n.options,a="mouseup"===t.type?"click":t.type;if("mousemove"===a){if(!i.onHover&&!i.onLeave)return}else{if("click"!==a)return;if(!i.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===a?e&&i.onClick&&i.onClick.call(n,t.native,e):(i.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),i.onHover&&e&&i.onHover.call(n,t.native,e))}});function Pi(t,e){var n=new Ci({ctx:t.ctx,options:e,chart:t});ge.configure(t,n,e),ge.addBox(t,n),t.legend=n}var Ai={id:"legend",_element:Ci,beforeInit:function(t){var e=t.options.legend;e&&Pi(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(j.mergeIf(e,B.global.legend),n?(ge.configure(t,n,e),n.options=e):Pi(t,e)):n&&(ge.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Di=j.noop;B._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ti=K.extend({initialize:function(t){j.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:Di,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Di,beforeSetDimensions:Di,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Di,beforeBuildLabels:Di,buildLabels:Di,afterBuildLabels:Di,beforeFit:Di,fit:function(){var t,e=this,n=e.options,i=e.minSize={},a=e.isHorizontal();n.display?(t=(j.isArray(n.text)?n.text.length:1)*j.options._parseFont(n).lineHeight+2*n.padding,e.width=i.width=a?e.maxWidth:t,e.height=i.height=a?t:e.maxHeight):e.width=i.width=e.height=i.height=0},afterFit:Di,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var i,a,r,o=j.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,u=0,d=t.top,h=t.left,c=t.bottom,f=t.right;e.fillStyle=j.valueOrDefault(n.fontColor,B.global.defaultFontColor),e.font=o.string,t.isHorizontal()?(a=h+(f-h)/2,r=d+l,i=f-h):(a="left"===n.position?h+l:f-l,r=d+(c-d)/2,i=c-d,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(a,r),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var g=n.text;if(j.isArray(g))for(var p=0,m=0;m=0;i--){var a=t[i];if(e(a))return a}},j.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},j.almostEquals=function(t,e,n){return Math.abs(t-e)=t},j.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},j.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},j.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},j.toRadians=function(t){return t*(Math.PI/180)},j.toDegrees=function(t){return t*(180/Math.PI)},j._decimalPlaces=function(t){if(j.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},j.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},j.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},j.aliasPixel=function(t){return t%2==0?0:.5},j._alignPixel=function(t,e,n){var i=t.currentDevicePixelRatio,a=n/2;return Math.round((e-a)*i)/i+a},j.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),h=i*(u=isNaN(u)?0:u),c=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-h*(o.x-a.x),y:r.y-h*(o.y-a.y)},next:{x:r.x+c*(o.x-a.x),y:r.y+c*(o.y-a.y)}}},j.EPSILON=Number.EPSILON||1e-14,j.splineCurveMonotone=function(t){var e,n,i,a,r,o,s,l,u,d=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=d.length;for(e=0;e0?d[e-1]:null,(a=e0?d[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},j.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},j.niceNum=function(t,e){var n=Math.floor(j.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},j.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},j.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,r=t.target||t.srcElement,o=r.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=a.clientX,i=a.clientY);var l=parseFloat(j.getStyle(r,"padding-left")),u=parseFloat(j.getStyle(r,"padding-top")),d=parseFloat(j.getStyle(r,"padding-right")),h=parseFloat(j.getStyle(r,"padding-bottom")),c=o.right-o.left-l-d,f=o.bottom-o.top-u-h;return{x:n=Math.round((n-o.left-l)/c*r.width/e.currentDevicePixelRatio),y:i=Math.round((i-o.top-u)/f*r.height/e.currentDevicePixelRatio)}},j.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},j.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},j._calculatePadding=function(t,e,n){return(e=j.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},j._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},j.getMaximumWidth=function(t){var e=j._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,i=n-j._calculatePadding(e,"padding-left",n)-j._calculatePadding(e,"padding-right",n),a=j.getConstraintWidth(t);return isNaN(a)?i:Math.min(i,a)},j.getMaximumHeight=function(t){var e=j._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,i=n-j._calculatePadding(e,"padding-top",n)-j._calculatePadding(e,"padding-bottom",n),a=j.getConstraintHeight(t);return isNaN(a)?i:Math.min(i,a)},j.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},j.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=a+"px",i.style.width=r+"px")}},j.fontString=function(t,e,n){return e+" "+t+"px "+n},j.longestText=function(t,e,n,i){var a=(i=i||{}).data=i.data||{},r=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},r=i.garbageCollect=[],i.font=e),t.font=e;var o,s,l,u,d,h=0,c=n.length;for(o=0;on.length){for(o=0;oi&&(i=r),i},j.numberOfLabelLines=function(t){var e=1;return j.each(t,function(t){j.isArray(t)&&t.length>e&&(e=t.length)}),e},j.color=k?function(t){return t instanceof CanvasGradient&&(t=B.global.defaultColor),k(t)}:function(t){return console.error("Color.js not found!"),t},j.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:j.color(t).saturate(.5).darken(.1).rgbString()}}(),Qe._adapters=nn,Qe.Animation=J,Qe.animationService=Q,Qe.controllers=Zt,Qe.DatasetController=at,Qe.defaults=B,Qe.Element=K,Qe.elements=wt,Qe.Interaction=ae,Qe.layouts=ge,Qe.platform=Fe,Qe.plugins=Oe,Qe.Scale=bn,Qe.scaleService=Le,Qe.Ticks=an,Qe.Tooltip=Ue,Qe.helpers.each(hi,function(t,e){Qe.scaleService.registerScaleType(e,t,t._defaults)}),Fi)Fi.hasOwnProperty(zi)&&Qe.plugins.register(Fi[zi]);Qe.platform.initialize();var Ni=Qe;return"undefined"!=typeof window&&(window.Chart=Qe),Qe.Chart=Qe,Qe.Legend=Fi.legend._element,Qe.Title=Fi.title._element,Qe.pluginService=Qe.plugins,Qe.PluginBase=Qe.Element.extend({}),Qe.canvasHelpers=Qe.helpers.canvas,Qe.layoutService=Qe.layouts,Qe.LinearScaleBase=Mn,Qe.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(t){Qe[t]=function(e,n){return new Qe(e,Qe.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}}),Ni});var Qc={components:{VueGoodTable:rb},data:function(){return{refererDomainsData:[],refererRecentDomainsData:[],refererMediumData:[],refererFullData:[],refererFullLabels:[],referersByMediumOverTimeData:[],isLoading:!1,error:"",userLocale:"en",timeOptions:{layout:{padding:{left:5,right:15,top:5,bottom:10}},scales:{xAxes:[{type:"time",time:{unit:"month",displayFormats:{month:"MMM YYYY"}}}],yAxes:[{stacked:!0}]}}}},created:function(){this.load()},methods:{load:function(e){var r=this;e||(this.isLoading=!0),this.$api.get("simplestats/refererstats").then(function(e){r.isLoading=!1,r.refererDomainsData=e.referersbydomaindata,r.refererMediumData=e.referersbymediumdata,r.refererRecentDomainsData=e.referersbydomainrecentdata,r.refererFullData=e.allreferersrows,r.refererFullLabels=e.allrefererscolumns,r.referersByMediumOverTimeData=e.referersbymediumovertimedata,r.userLocale=window.panel.$language?window.panel.$language.code:""}).catch(function(e){r.isLoading=!1,r.error=e.message,r.$store.dispatch("notification/open",{type:"error",message:e.message,timeout:5e3})})}}};if(typeof Qc==="function"){Qc=Qc.options}Object.assign(Qc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",[_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",[_vm._v("Referrers by medium")]),_vm._v(" "),_vm.refererMediumData.length>0?_c("pie-chart",{attrs:{"data":_vm.refererMediumData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",[_vm._v("Referrers by domain")]),_vm._v(" "),_vm.refererDomainsData.length>0?_c("pie-chart",{attrs:{"data":_vm.refererDomainsData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/3"}},[_c("k-headline",[_vm._v("Referrers by domain (this month)")]),_vm._v(" "),_vm.refererRecentDomainsData.length>0?_c("pie-chart",{attrs:{"data":_vm.refererRecentDomainsData}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1)],1),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/1"}},[_c("br"),_c("br"),_vm._v(" "),_c("k-headline",[_vm._v("Referrers by medium over time")]),_vm._v(" "),_vm.referersByMediumOverTimeData.length>0?_c("area-chart",{attrs:{"data":_vm.referersByMediumOverTimeData,"download":true,"download":"Site_ReferersEvolution.png","label":"Referers","xtitle":"Time","ytitle":"Hits per medium","stacked":true,"library":_vm.timeOptions}}):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1)],1),_vm._v(" "),_c("k-grid",{attrs:{"gutter":"medium"}},[_c("k-column",{attrs:{"width":"1/1"}},[_c("br"),_c("br"),_c("br"),_vm._v(" "),_c("k-headline",[_vm._v(" All referrers ")]),_vm._v(" "),_vm.refererFullData.length>0?_c("div",[_c("vue-good-table",{attrs:{"rows":_vm.refererFullData,"columns":_vm.refererFullLabels,"styleClass":"vgt-table condensed","max-height":"500px","fixed-header":false,"compactMode":"","search-options":{enabled:true,placeholder:"Filter items..."},"pagination-options":{enabled:true,perPage:20,perPageDropdownEnabled:false}},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="hitspercent"?_c("span",{staticClass:"row-percent"},[_c("span",{staticClass:"visualiser",style:{width:props.row.hitspercent*100+"%"}}),_vm._v(" "),_c("span",{staticClass:"number"},[_vm._v(_vm._s((props.row.hitspercent*100).toFixed(0)+"%"))])]):props.column.field=="timefrom"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}],null,false,3427315326)},[_c("div",{attrs:{"slot":"emptystate"},slot:"emptystate"},[_c("k-empty",[_vm._v(" There is nothing to show... ")])],1)])],1):_c("k-empty",{staticClass:"emptyChart",attrs:{"layout":"block"}},[_vm._v("No data yet")])],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Rc={extends:"k-pages-section",data:function(){return{isLoading:!0,error:"",dbHistory:[],dbHistoryLabels:[],upgradeRequired:!1,softwareDbVersion:"unknown",dbVersion:"undefined",dbRequirements:"unknown",dbRequirementsPassed:!0,unlockUpgrade:!1,isUpdatingDb:!1,updateMessage:null,updateMessageTheme:"",databaseLocation:"",databaseSize:""}},components:{VueGoodTable:rb},filters:{prettyBytes:function(e){if("number"!=typeof(e=Number(e))||isNaN(e))return"?? kb";var t,s=e<0,a=["B","kB","MB","GB","TB","PB","EB","ZB","YB"];return s&&(e=-e),e<1?(s?"-":"")+e+" B":(t=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),a.length-1),(s?"-":"")+(e=1*(e/Math.pow(1e3,t)).toFixed(2))+" "+a[t])}},created:function(){this.load()},methods:{load:function(){var e=this;this.updateMessage=null,this.$api.get("simplestats/listdbinfo").then(function(t){e.isLoading=!1,e.dbHistoryLabels=t.dbHistoryLabels,e.dbHistory=t.dbHistory,e.upgradeRequired=t.upgradeRequired,e.softwareDbVersion=t.softwareDbVersion,e.dbVersion=t.dbVersion,e.databaseLocation=t.databaseLocation,e.databaseSize=t.databaseSize,e.updateMessage=null}).catch(function(t){e.isLoading=!1,e.updateMessage=t.message,e.$store.dispatch("notification/open",{type:"error",message:t.message,timeout:5e3})}),this.$api.get("simplestats/checkrequirements").then(function(t){e.isLoading=!1,e.dbRequirements=t.dbRequirements,e.dbRequirementsPassed=t.dbRequirementsPassed}).catch(function(t){e.isLoading=!1,e.dbRequirements=t.message,e.$store.dispatch("notification/open",{type:"error",message:t.message,timeout:5e3})})},acceptUpgrade:function(e){this.unlockUpgrade=e},requestUpgrade:function(e){var t=this;e.stopPropagation(),this.unlockUpgrade?(this.isUpdatingDb=!0,this.updateMessage=null,this.$api.get("simplestats/dbupgrade").then(function(e){t.isUpdatingDb=!1,t.updateMessage=e.message,t.updateMessageTheme=e.status?"positive":"negative"}).catch(function(e){t.isUpdatingDb=!1,t.error=e.message,t.$store.dispatch("notification/open",{type:"error",message:e.message,timeout:5e3})})):this.$store.dispatch("notification/open",{type:"error",message:"Before hitting that button, please ensure to backup your database file !",timeout:5e3})}}};if(typeof Rc==="function"){Rc=Rc.options}Object.assign(Rc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"dbinformation"},[_c("k-headline",{attrs:{"size":"large"}},[_vm._v(_vm._s(_vm.$t("simplestats.info.title")))]),_vm._v(" "),_c("k-headline",[_vm._v(_vm._s(_vm.$t("simplestats.info.db.title")))]),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.file"),"value":_vm.databaseLocation,"icon":"file-zip"}}),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.size"),"value":_vm._f("prettyBytes")(_vm.databaseSize),"icon":"download"}}),_vm._v(" "),_c("k-number-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.dbversion"),"value":_vm.dbVersion,"icon":"bolt"}}),_vm._v(" "),_c("k-number-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.db.softwareversion"),"value":_vm.softwareDbVersion,"icon":"bolt"}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",[_vm._v(" "+_vm._s(_vm.$t("simplestats.info.db.versionhistory"))+" ")]),_vm._v(" "),_c("vue-good-table",{attrs:{"rows":_vm.dbHistory,"columns":_vm.dbHistoryLabels,"styleClass":"vgt-table condensed nosearch","max-height":"500px","fixed-header":false,"compactMode":"","search-options":{enabled:false},"pagination-options":{enabled:true,perPage:5,perPageDropdownEnabled:false,nextLabel:_vm.$t("simplestats.table.pages.next","Next"),prevLabel:_vm.$t("simplestats.table.pages.prev","Previous"),ofLabel:_vm.$t("simplestats.table.pages.of","of")}},scopedSlots:_vm._u([{key:"table-row",fn:function(props){return[props.column.field=="timefrom"?_c("span",[_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]):_c("span",[_vm._v(" "+_vm._s(props.formattedRow[props.column.field])+" ")])]}}])},[_c("div",{attrs:{"slot":"emptystate"},slot:"emptystate"},[_c("k-empty",[_vm._v(" "+_vm._s(_vm.$t("simplestats.nodatayet"))+" ")])],1)]),_vm._v(" "),_c("k-line-field"),_vm._v(" "),_c("k-headline",[_vm._v(_vm._s(_vm.$t("simplestats.info.dbreqs.title")))]),_vm._v(" "),_vm.dbRequirementsPassed?_c("div",[_c("k-info-field",{attrs:{"theme":"positive","text":_vm.$t("simplestats.info.dbreqs.positive")}})],1):_c("div",[_c("k-info-field",{attrs:{"theme":"negative","text":_vm.$t("simplestats.info.dbreqs.negative")}}),_vm._v(" "),_c("hr"),_vm._v(" "+_vm._s(_vm.dbRequirements)+" ")],1),_vm._v(" "),_c("br"),_vm._v(" "),_c("div",{staticClass:"upgrade"},[_c("br"),_vm._v(" "),_c("br"),_vm._v(" "),_vm.upgradeRequired?_c("div",[!_vm.updateMessage?_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.dbupdate.required"),"theme":"negative","text":_vm.$t("simplestats.info.dbupdate.requiredmsg")}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-checkbox-input",{attrs:{"value":_vm.unlockUpgrade,"label":_vm.$t("simplestats.info.dbupdate.isbackedup")},on:{"input":_vm.acceptUpgrade}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-button",{attrs:{"icon":"bolt"},on:{"click":_vm.requestUpgrade}},[_vm._v(_vm._s(_vm.$t("simplestats.info.dbupdate.go")))]),_vm._v(" "),_vm.isUpdatingDb?_c("k-label",[_vm._v(_vm._s(_vm.$t("simplestats.loading")))]):_vm._e()],1):_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.dbupdate.result"),"text":_vm.updateMessage,"theme":_vm.updateMessageTheme}}),_vm._v(" "),_c("k-button",{attrs:{"theme":"neutral"},on:{"click":_vm.load}},[_vm._v(_vm._s(_vm.$t("simplestats.info.dbupdate.refresh")))])],1)]):_vm.updateMessage==null?_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.dbupdate.title"),"text":_vm.$t("simplestats.info.dbupdate.isuptodate"),"theme":"positive"}})],1):_vm.updateMessage!==null?_c("div",[_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.loaderror"),"text":_vm.updateMessage,"theme":"negative"}})],1):_vm._e()])],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Sc={extends:"k-pages-section",data:function(){return{isLoading:!0,error:"",saltIsSet:!1,trackingPeriodName:"",trackingSince:"",uniqueSeconds:"",enableReferers:!1,enableDevices:!1,enableVisits:!1,enableVisitLanguages:!1,ignoredRoles:[],ignoredPages:[],ignoredTemplates:[],logFile:"",logLevels:[]}},created:function(){this.load()},computed:{trackingFeatures:function(){var e=[];return this.enableReferers&&e.push(this.$t("simplestats.info.config.tracking.referrers","Referers")),this.enableDevices&&e.push(this.$t("simplestats.info.config.tracking.devices","Devices")),this.enableVisits&&e.push(this.$t("simplestats.info.config.tracking.visits","Page Visits")),this.enableVisitLanguages&&e.push(this.$t("simplestats.info.config.tracking.languages","Page Visitors")),e}},methods:{load:function(){var e=this;this.$api.get("simplestats/configinfo").then(function(i){e.isLoading=!1,e.saltIsSet=i.saltIsSet,e.trackingPeriodName=i.trackingPeriodName,e.trackingSince=i.trackingSince,e.uniqueSeconds=i.uniqueSeconds,e.enableReferers=i.enableReferers,e.enableDevices=i.enableDevices,e.enableVisits=i.enableVisits,e.enableVisitLanguages=i.enableVisitLanguages,e.ignoredRoles=i.ignoredRoles,e.ignoredPages=i.ignoredPages,e.logFile=i.logFile,e.logLevels=i.logLevels,e.ignoredTemplates=i.ignoredTemplates}).catch(function(i){e.isLoading=!1,e.error=i.message,e.$store.dispatch("notification/open",{type:"error",message:i.message,timeout:5e3})})}}};if(typeof Sc==="function"){Sc=Sc.options}Object.assign(Sc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"configuration"},[_c("k-headline",{attrs:{"size":"large"}},[_vm._v(_vm._s(_vm.$t("simplestats.info.config.title")))]),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.config.tracking")))]),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.periodname"),"value":_vm.trackingPeriodName,"icon":"clock"}}),_vm._v(" "),_c("k-number-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.periodsecs"),"value":_vm.uniqueSeconds,"after":_vm.$t("simplestats.charts.seconds"),"icon":"clock"}}),_vm._v(" "),_c("k-toggle-field",{attrs:{"name":"","disabled":true,"label":_vm.$t("simplestats.info.config.tracking.salted"),"value":_vm.saltIsSet,"icon":"key"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.features"),"value":_vm.trackingFeatures,"icon":"globe"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.ignore.roles"),"value":_vm.ignoredRoles,"icon":"users"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.ignore.ids"),"value":_vm.ignoredPages,"icon":"page"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.tracking.ignore.templates"),"value":_vm.ignoredTemplates,"icon":"page"}}),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.config.log.title")))]),_vm._v(" "),_c("k-text-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.log.file"),"value":_vm.logFile,"icon":"file-code"}}),_vm._v(" "),_c("k-tags-field",{attrs:{"name":"","counter":false,"disabled":true,"label":_vm.$t("simplestats.info.config.log.level"),"value":_vm.logLevels,"icon":"bug"}}),_vm._v(" "),_c("br"),_vm._v(" "),!_vm.isLoading&&!_vm.saltIsSet?_c("k-info-field",{attrs:{"label":_vm.$t("simplestats.info.config.tracking.unsalted"),"theme":"negative","text":_vm.$t("simplestats.info.config.tracking.unsaltedwarn")}}):_vm._e()],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());function Hj(e){return(Hj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Tc={name:"list-viewer",props:{arrayData:{type:Array,default:[]},depth:{type:Number,default:0}},methods:{}};if(typeof Tc==="function"){Tc=Tc.options}Object.assign(Tc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",[_vm.arrayData?_c("ul",{style:{paddingLeft:20*_vm.depth+"px"}},_vm._l(_vm.arrayData,function(value,key,index){return _c("li",_vm._b({key:key,class:{isChild:_vm.subpage,"text-danger":_vm.hasError}},"li",_vm.arrayData.status,false),[typeof value==="Array"||typeof value==="object"?_c("div",[_c("span",[_vm._v(" "+_vm._s(key)+" = ")]),_vm._v(" "),(typeof value==="Array"||typeof value==="object")&&_vm.depth<10?_c("list-viewer",{attrs:{"array-data":value,"depth":_vm.depth+1}}):_vm._e()],1):_c("div",[_c("span",[_vm._v(" "+_vm._s(key)+" = "+_vm._s(value)+" ")])])])}),0):_vm._e()])};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Uc={name:"TrackingTester",components:{ListViewer:Tc},data:function(){var e=new Date,r=new Date;return r.setDate(e.getDate()-30),{isLoading:!0,error:"",currentDevice:"",currentUserAgent:this.currentUserAgentJS,customDevice:"",customUserAgent:"",referrerField:"",referrerResponse:null,unlockGenerator:!1,generatorMode:"randommulti",generatorTo:e.toString(),generatorFrom:r.toString(),generatorResponse:null}},created:function(){this.load()},computed:{currentUserAgentJS:function(){return navigator.userAgent},formattedCurrentUA:function(){return this.currentDevice&&""!==this.currentDevice?this.currentDevice.device+" - "+this.currentDevice.system+" - "+this.currentDevice.engine:"-"},formattedCustomUA:function(){return this.customDevice&&""!==this.customDevice?this.customDevice.device+" - "+this.customDevice.system+" - "+this.customDevice.engine:"-"},formattedReferrer:function(){return this.referrerResponse?this.referrerResponse.medium?this.referrerResponse.host+" - - "+this.referrerResponse.source+" - "+this.referrerResponse.url+" ("+this.referrerResponse.medium+")":this.referrerResponse.error?this.referrerResponse.error:"Error...":"-"},formattedReferrerUrl:function(){if(this.referrerResponse){if(this.referrerResponse.url)return this.referrerResponse.url;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"},formattedReferrerSource:function(){if(this.referrerResponse){if(this.referrerResponse.source)return this.referrerResponse.source;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"},formattedReferrerHost:function(){if(this.referrerResponse){if(this.referrerResponse.host)return this.referrerResponse.host;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"},formattedReferrerMedium:function(){if(this.referrerResponse){if(this.referrerResponse.medium)return this.referrerResponse.medium;if(this.referrerResponse.error)return this.referrerResponse.error}return"-none-"}},methods:{load:function(){var e=this;this.$api.get("simplestats/trackingtester").then(function(r){e.isLoading=!1,e.currentDevice=r.currentDeviceInfo,e.currentUserAgent=r.currentUserAgent}).catch(function(r){e.isLoading=!1,e.error=r.message,e.$store.dispatch("notification/open",{type:"error",message:r.message,timeout:5e3})})},testReferrer:function(){var e=this;this.$api.get("simplestats/trackingtester/referrer?referrer="+encodeURIComponent(this.referrerField)).then(function(r){r&&"string"==typeof r.referrerInfo?e.referrerResponse={error:r.referrerInfo}:r&&"object"==Hj(r.referrerInfo)?e.referrerResponse=r.referrerInfo:e.referrerResponse={error:"Data format error !"}}).catch(function(r){r&&r.message?e.referrerResponse=r.message:e.referrerResponse="Loading error !"})},testUserAgent:function(){var e=this;this.$api.get("simplestats/trackingtester/ua?ua="+encodeURIComponent(this.customUserAgent)).then(function(r){"string"==typeof r?e.customDevice={error:r}:"object"==Hj(r)?e.customDevice=r:e.customDevice={error:"Data format error !"}}).catch(function(r){r&&r.message?e.customDevice=r.message:e.customDevice="Loading Error !"})},acceptGenerate:function(e){this.unlockGenerator=e},generateStats:function(){var e=this;this.$api.get("simplestats/trackingtester/generatestats?proceed="+(this.unlockGenerator?"yes":"no")+"&from="+.001*new Date(this.generatorFrom).getTime()+"&to="+.001*new Date(this.generatorTo).getTime()+"&mode="+this.generatorMode).then(function(r){e.generatorResponse=r}).catch(function(r){e.generatorResponse={status:"false",error:"Loading Error = "+r.message}})}}};if(typeof Uc==="function"){Uc=Uc.options}Object.assign(Uc,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div",{staticClass:"configuration"},[_c("k-headline",{attrs:{"size":"large"}},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.title")))]),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.device")))]),_vm._v(" "),_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.device.currentua"),"value":_vm.currentUserAgent,"icon":"display"}}),_vm._v(" "),_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.device.currentdetected"),"value":_vm.formattedCurrentUA,"icon":"display"}}),_vm._v(" "),_c("k-form",{on:{"submit":_vm.testUserAgent}},[_c("k-text-field",{staticClass:"field-with-btn",attrs:{"counter":false,"disabled":false,"label":_vm.$t("simplestats.info.tester.device.customua"),"icon":"display"},model:{value:_vm.customUserAgent,callback:function($$v){_vm.customUserAgent=$$v},expression:"customUserAgent"}}),_vm._v(" "),_c("k-button",{staticClass:"floating-btn",on:{"click":_vm.testUserAgent}},[_vm._v("Go!")]),_vm._v(" "),this.customDevice?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.device.customdetected"),"value":_vm.formattedCustomUA,"icon":"display"}}):_vm._e()],1),_vm._v(" "),this.customDevice?_c("k-box",{attrs:{"theme":"info","text":_vm.$t("simplestats.info.tester.device.note")}}):_vm._e(),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.referrer")))]),_vm._v(" "),_c("k-form",{on:{"submit":_vm.testReferrer}},[_c("k-text-field",{staticClass:"field-with-btn",attrs:{"counter":false,"disabled":false,"label":_vm.$t("simplestats.info.tester.referrer.field"),"icon":"globe"},model:{value:_vm.referrerField,callback:function($$v){_vm.referrerField=$$v},expression:"referrerField"}}),_vm._v(" "),_c("k-button",{staticClass:"floating-btn",attrs:{"name":"btn"},on:{"click":_vm.testReferrer}},[_vm._v("Go!")]),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.host"),"value":_vm.formattedReferrerHost,"icon":"globe"}}):_vm._e(),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.source"),"value":_vm.formattedReferrerSource,"icon":"globe"}}):_vm._e(),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.medium"),"value":_vm.formattedReferrerMedium,"icon":"globe"}}):_vm._e(),_vm._v(" "),this.referrerResponse?_c("k-text-field",{attrs:{"counter":false,"disabled":true,"label":_vm.$t("simplestats.info.tester.referrer.response.url"),"value":_vm.formattedReferrerUrl,"icon":"globe"}}):_vm._e()],1),_vm._v(" "),_c("br"),_vm._v(" "),_c("k-headline",{staticClass:"rightColumnAlign"},[_vm._v(_vm._s(_vm.$t("simplestats.info.tester.generator")))]),_vm._v(" "),_c("k-form",{on:{"submit":_vm.generateStats}},[_c("k-select-field",{attrs:{"label":_vm.$t("simplestats.info.tester.generator.generatorMode"),"options":[{value:"all",text:"Static : all pages"},{value:"randomsingle",text:"Single random page"},{value:"randommulti",text:"Multiple random pages"}]},model:{value:_vm.generatorMode,callback:function($$v){_vm.generatorMode=$$v},expression:"generatorMode"}}),_vm._v(" "),_c("k-date-field",{attrs:{"label":_vm.$t("simplestats.info.tester.generator.datefrom"),"time":false},model:{value:_vm.generatorFrom,callback:function($$v){_vm.generatorFrom=$$v},expression:"generatorFrom"}}),_vm._v(" "),_c("k-date-field",{attrs:{"label":_vm.$t("simplestats.info.tester.generator.dateto"),"time":false},model:{value:_vm.generatorTo,callback:function($$v){_vm.generatorTo=$$v},expression:"generatorTo"}}),_vm._v(" "),_c("k-field",{attrs:{"translate":false,"label":_vm.$t("simplestats.info.tester.generator.unlockgenerator")}},[_c("k-checkbox-input",{style:{padding:".5em"},attrs:{"value":_vm.unlockGenerator,"theme":"field","novalidate":true},on:{"input":_vm.acceptGenerate}}),_vm._v(" "),_c("k-button",{style:{border:"1px solid black",padding:"0 1em","borderRadius":"3px"},on:{"click":_vm.generateStats}},[_vm._v("Go!")])],1),_vm._v(" "),_vm.generatorResponse&&_vm.generatorResponse.data?_c("k-field",{attrs:{"translate":false,"label":"Result"}},[_c("list-viewer",{staticClass:"k-input",style:{padding:"1em"},attrs:{"array-data":_vm.generatorResponse.data,"data-theme":"field"}})],1):_vm._e(),_vm._v(" "),_vm.generatorResponse&&_vm.generatorResponse.error?_c("k-textarea-field",{attrs:{"label":"Error!","buttons":false,"disabled":true},model:{value:_vm.generatorResponse.error,callback:function($$v){_vm.$set(_vm.generatorResponse,"error",$$v)},expression:"generatorResponse.error"}}):_vm._e()],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var Wb={components:{Visitors:ic,PageStats:jc,Devices:kc,Referers:Qc,DbInformation:Rc,Configuration:Sc,TrackingTester:Uc},data:function(){return{tab:this.tabsKey,tabs:[{name:"simplestats-tabs-visitedpages",label:"Page visits",icon:"layers",columns:[],link:"simplestats?tab=simplestats-tabs-visitedpages"},{name:"simplestats-tabs-visitordevices",label:"Visitor Devices",icon:"users",columns:[],link:"simplestats?tab=simplestats-tabs-visitordevices"},{name:"simplestats-tabs-referers",label:"Referers",icon:"chart",columns:[],link:"simplestats?tab=simplestats-tabs-referers"},{name:"simplestats-tabs-info",label:"Information",icon:"map",columns:[],link:"simplestats?tab=simplestats-tabs-info"}],dismissDisclaimer:!1,isLoading:!0}},watch:{tab:function(s){this.tab=s}},computed:{tabsKey:function(){if(this.$store.state&&this.$store.state.system&&this.$store.state.system.info&&this.$store.state.system.info.version&&parseInt(this.$store.state.system.info.version.at(0)+this.$store.state.system.info.version.at(2))<36)this.tab=this.$route.hash.replace("#","");else{var s=new URLSearchParams(window.location.search).get("tab");s&&(this.tab=s)}return this.tab&&""!=this.tab||(this.tab="simplestats-tabs-visitedpages"),this.tab}},created:function(){this.load()},methods:{load:function(s){var t=this;s||(this.isLoading=!0),this.$api.get("simplestats/mainview").then(function(s){t.isLoading=!1,t.dismissDisclaimer=s.dismissDisclaimer,t.tabs[0].label=s.translations.tabs.pagevisits,t.tabs[1].label=s.translations.tabs.visitordevices,t.tabs[2].label=s.translations.tabs.referers,t.tabs[3].label=s.translations.tabs.information}).catch(function(s){t.isLoading=!1,t.error=s.message,t.$store.dispatch("notification/open",{type:"error",message:s.message,timeout:5e3})})},onTab:function(s){this.tab=s.name}}};if(typeof Wb==="function"){Wb=Wb.options}Object.assign(Wb,function(){var render=function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("k-inside",[_c("k-view",{staticClass:"k-simplestats-view"},[_c("p",[_c("br")]),_vm._v(" "),!_vm.isLoading&&!_vm.dismissDisclaimer?_c("k-grid",[_c("k-column",[_c("k-headline",{attrs:{"size":"medium","align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.disclaimer.title")))]),_vm._v(" "),_c("k-text",{attrs:{"size":"small","align":"center"}},[_c("span",{domProps:{"innerHTML":_vm._s(_vm.$t("simplestats.disclaimer.text"))}}),_vm._v(" "),_c("span",{staticClass:"hover-to-help"},[_c("k-icon",{attrs:{"type":"question"}}),_vm._v(" "),_c("div",{staticClass:"help"},[_c("k-text",{attrs:{"theme":"help","size":"small","align":"center"}},[_vm._v(_vm._s(_vm.$t("simplestats.disclaimer.dismiss")))])],1)],1),_vm._v(" "),_c("br")]),_vm._v(" "),_c("br"),_c("br")],1)],1):_vm._e(),_vm._v(" "),_c("k-tabs",{key:_vm.tabsKey,ref:"tabsref",attrs:{"tabs":_vm.tabs,"tab":_vm.tab},on:{"tab":_vm.onTab}}),_vm._v(" "),_c("p",[_c("br")]),_vm._v(" "),_vm.tab=="simplestats-tabs-visitedpages"?_c("div",[_c("page-stats")],1):_vm.tab=="simplestats-tabs-visitordevices"?_c("div",[_c("devices")],1):_vm.tab=="simplestats-tabs-referers"?_c("div",[_c("referers")],1):_vm.tab=="simplestats-tabs-info"?_c("div",[_c("k-grid",{attrs:{"gutter":"large"}},[_c("k-column",{attrs:{"width":"1/2"}},[_c("configuration"),_vm._v(" "),_c("k-line-field"),_vm._v(" "),_c("tracking-tester")],1),_vm._v(" "),_c("k-column",{attrs:{"width":"1/2"}},[_c("DbInformation")],1),_vm._v(" "),_c("k-column",[_c("visitors")],1)],1)],1):_c("div",[_c("k-empty",[_vm._v(_vm._s(_vm.$t("simplestats.taberror")))])],1)],1)],1)};var staticRenderFns=[];return{render:render,staticRenderFns:staticRenderFns,_compiled:true,_scopeId:null,functional:undefined}}());var _s=Xb(Ef);Pc.options={colors:["hsl(0, 80%, 70%)","hsl(45, 80%, 70%)","hsl(90, 80%, 70%)","hsl(135, 80%, 70%)","hsl(180, 80%, 70%)","hsl(225, 80%, 70%)","hsl(270, 80%, 70%)","hsl(315, 80%, 70%)","hsl(0, 70%, 80%)","hsl(45, 70%, 80%)","hsl(90, 70%, 80%)","hsl(135, 70%, 80%)","hsl(180, 70%, 80%)","hsl(225, 70%, 80%)","hsl(270, 70%, 80%)","hsl(315, 70%, 80%)","hsl(0, 80%, 70%)","hsl(45, 80%, 70%)","hsl(90, 80%, 70%)","hsl(135, 80%, 70%)","hsl(180, 80%, 70%)","hsl(225, 80%, 70%)","hsl(270, 80%, 70%)","hsl(315, 80%, 70%)","hsl(0, 70%, 80%)","hsl(45, 70%, 80%)","hsl(90, 70%, 80%)","hsl(135, 70%, 80%)","hsl(180, 70%, 80%)","hsl(225, 70%, 80%)","hsl(270, 70%, 80%)","hsl(315, 70%, 80%)"],dataset:{borderWidth:1,borderColor:"black"},options:{scales:{xAxes:[{type:"time",time:{unit:"month",displayFormats:{month:"MMM YYYY"}}}],yAxes:[{stacked:!0}]}}},Pc.use(_s.d),panel.plugin("daandelange/simplestats",{views:{simplestats:{component:Wb,icon:"chart",label:"SimpleStats"}},components:{simplestats:Wb},use:[Pc],devtool:"source-map"});})(); \ No newline at end of file