@rcsb/rcsb-statistics 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.html +1 -1
- package/build/static/js/451.8ecffe73.chunk.js +294 -0
- package/build/static/js/637.96fc0ca0.chunk.js +1 -0
- package/build/static/js/768.dd5da0ff.chunk.js +2 -0
- package/build/static/js/{310.2e091756.chunk.js.LICENSE.txt → 768.dd5da0ff.chunk.js.LICENSE.txt} +1 -1
- package/build/static/js/main.a8849d73.js +334 -0
- package/build/static/js/{main.f39b64be.js.LICENSE.txt → main.a8849d73.js.LICENSE.txt} +3 -3
- package/package.json +1 -1
- package/build/static/js/310.2e091756.chunk.js +0 -2
- package/build/static/js/637.2a795f71.chunk.js +0 -1
- package/build/static/js/849.d1b56840.chunk.js +0 -102
- package/build/static/js/main.f39b64be.js +0 -334
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 310.2e091756.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[310],{7704:(t,e)=>{"use strict";function n(t,e,i){const r=null!=i?i:[];return(s=t,s.map((t=>"value"in t?{name:t.name,buckets:[{label:t.name,population:t.value}]}:t))).forEach((t=>{const i=t.buckets.filter((t=>Array.isArray(t.facets)));i.length>0&&i.forEach((t=>{t.facets&&n(t.facets,e?e.concat(t.label):[t.label],r)}));const s={name:t.name,labelPath:null!=e?e:[],data:[]};t.buckets.forEach((t=>{t.label&&t.population&&s.data.push({label:t.label,population:t.population})})),r.push(s)})),r;var s}e.z=void 0,e.z=function(t){return t.facets?n(t.facets):[]}},8154:(t,e,n)=>{"use strict";e.vw=e.XY=void 0;const i=n(7231);n(2543);function r(t){return{type:i.Type.Terminal,service:t.service,parameters:{attribute:t.attribute,negation:"boolean"==typeof t.negation&&t.negation,operator:t.operator,value:t.value}}}e.XY=r,e.vw=function t(e,n){Array.isArray(n.facets)&&n.facets.forEach((n=>t(e,n))),"name"in n&&"attribute"in n&&(Array.isArray(n.facets)?n.facets.unshift(e):n.facets=[e])}},3839:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>X});var i=n(7168),r=n.n(i),s=n(2020);const o=t=>t&&t.enabled&&t.modifierKey,a=(t,e)=>t&&e[t+"Key"],c=(t,e)=>t&&!e[t+"Key"];function l(t,e,n){return void 0===t||("string"==typeof t?-1!==t.indexOf(e):"function"==typeof t&&-1!==t({chart:n}).indexOf(e))}function h(t,e){return"function"==typeof t&&(t=t({chart:e})),"string"==typeof t?{x:-1!==t.indexOf("x"),y:-1!==t.indexOf("y")}:{x:!1,y:!1}}function u(t,e,n){const{mode:i="xy",scaleMode:r,overScaleMode:o}=t||{},a=function({x:t,y:e},n){const i=n.scales,r=Object.keys(i);for(let n=0;n<r.length;n++){const s=i[r[n]];if(e>=s.top&&e<=s.bottom&&t>=s.left&&t<=s.right)return s}return null}(e,n),c=h(i,n),l=h(r,n);if(o){const t=h(o,n);for(const e of["x","y"])t[e]&&(l[e]=c[e],c[e]=!1)}if(a&&l[a.axis])return[a];const u=[];return(0,s.F)(n.scales,(function(t){c[t.axis]&&u.push(t)})),u}const f=new WeakMap;function d(t){let e=f.get(t);return e||(e={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},f.set(t,e)),e}function p(t,e,n){const i=t.max-t.min,r=i*(e-1),s=t.isHorizontal()?n.x:n.y,o=Math.max(0,Math.min(1,(t.getValueForPixel(s)-t.min)/i||0));return{min:r*o,max:r*(1-o)}}function g(t,e,n,i,r){let o=n[i];if("original"===o){const n=t.originalScaleLimits[e.id][i];o=(0,s.v)(n.options,n.scale)}return(0,s.v)(o,r)}function m(t,{min:e,max:n},i,r=!1){const s=d(t.chart),{id:o,axis:a,options:c}=t,l=i&&(i[o]||i[a])||{},{minRange:h=0}=l,u=g(s,t,l,"min",-1/0),f=g(s,t,l,"max",1/0),p=r?Math.max(n-e,h):t.max-t.min,m=(p-n+e)/2;return n+=m,(e-=m)<u?(e=u,n=Math.min(u+p,f)):n>f&&(n=f,e=Math.max(f-p,u)),c.min=e,c.max=n,s.updatedScaleLimits[t.id]={min:e,max:n},t.parse(e)!==t.min||t.parse(n)!==t.max}const v=t=>0===t||isNaN(t)?0:t<0?Math.min(Math.round(t),-1):Math.max(Math.round(t),1),b={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function y(t,e,n,i=!1){const{min:r,max:s,options:o}=t,a=o.time&&o.time.round,c=b[a]||0,l=t.getValueForPixel(t.getPixelForValue(r+c)-e),h=t.getValueForPixel(t.getPixelForValue(s+c)-e),{min:u=-1/0,max:f=1/0}=i&&n&&n[t.axis]||{};return!!(isNaN(l)||isNaN(h)||l<u||h>f)||m(t,{min:l,max:h},n,i)}function x(t,e,n){return y(t,e,n,!0)}const _={category:function(t,e,n,i){const r=p(t,e,n);return t.min===t.max&&e<1&&function(t){const e=t.getLabels().length-1;t.min>0&&(t.min-=1),t.max<e&&(t.max+=1)}(t),m(t,{min:t.min+v(r.min),max:t.max-v(r.max)},i,!0)},default:function(t,e,n,i){const r=p(t,e,n);return m(t,{min:t.min+r.min,max:t.max-r.max},i,!0)}},w={default:function(t,e,n,i){m(t,function(t,e,n){const i=t.getValueForPixel(e),r=t.getValueForPixel(n);return{min:Math.min(i,r),max:Math.max(i,r)}}(t,e,n),i,!0)}},M={category:function(t,e,n){const i=t.getLabels().length-1;let{min:r,max:s}=t;const o=Math.max(s-r,1),a=Math.round(function(t){return t.isHorizontal()?t.width:t.height}(t)/Math.max(o,10)),c=Math.round(Math.abs(e/a));let l;return e<-a?(s=Math.min(s+c,i),r=1===o?s:s-o,l=s===i):e>a&&(r=Math.max(0,r-c),s=1===o?r:r+o,l=0===r),m(t,{min:r,max:s},n)||l},default:y,logarithmic:x,timeseries:x};function k(t,e){(0,s.F)(t,((n,i)=>{e[i]||delete t[i]}))}function S(t,e){const{scales:n}=t,{originalScaleLimits:i,updatedScaleLimits:r}=e;return(0,s.F)(n,(function(t){(function(t,e,n){const{id:i,options:{min:r,max:s}}=t;if(!e[i]||!n[i])return!0;const o=n[i];return o.min!==r||o.max!==s})(t,i,r)&&(i[t.id]={min:{scale:t.min,options:t.options.min},max:{scale:t.max,options:t.options.max}})})),k(i,n),k(r,n),i}function T(t,e,n,i){const r=_[t.type]||_.default;(0,s.Q)(r,[t,e,n,i])}function R(t,e,n,i,r){const o=w[t.type]||w.default;(0,s.Q)(o,[t,e,n,i,r])}function O(t){const e=t.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}function A(t,e,n="none"){const{x:i=1,y:r=1,focalPoint:o=O(t)}="number"==typeof e?{x:e,y:e}:e,a=d(t),{options:{limits:c,zoom:l}}=a;S(t,a);const h=1!==i,f=1!==r,p=u(l,o,t);(0,s.F)(p||t.scales,(function(t){t.isHorizontal()&&h?T(t,i,o,c):!t.isHorizontal()&&f&&T(t,r,o,c)})),t.update(n),(0,s.Q)(l.onZoom,[{chart:t}])}function C(t,e,n,i="none"){const r=d(t),{options:{limits:o,zoom:a}}=r,{mode:c="xy"}=a;S(t,r);const h=l(c,"x",t),u=l(c,"y",t);(0,s.F)(t.scales,(function(t){t.isHorizontal()&&h?R(t,e.x,n.x,o):!t.isHorizontal()&&u&&R(t,e.y,n.y,o)})),t.update(i),(0,s.Q)(a.onZoom,[{chart:t}])}function P(t,e,n,i){const{panDelta:r}=i,o=r[t.id]||0;(0,s.s)(o)===(0,s.s)(e)&&(e+=o);const a=M[t.type]||M.default;(0,s.Q)(a,[t,e,n])?r[t.id]=0:r[t.id]=e}function E(t,e,n,i="none"){const{x:r=0,y:o=0}="number"==typeof e?{x:e,y:e}:e,a=d(t),{options:{pan:c,limits:l}}=a,{onPan:h}=c||{};S(t,a);const u=0!==r,f=0!==o;(0,s.F)(n||t.scales,(function(t){t.isHorizontal()&&u?P(t,r,l,a):!t.isHorizontal()&&f&&P(t,o,l,a)})),t.update(i),(0,s.Q)(h,[{chart:t}])}function I(t){const e=d(t);S(t,e);const n={};for(const i of Object.keys(t.scales)){const{min:t,max:r}=e.originalScaleLimits[i]||{min:{},max:{}};n[i]={min:t.scale,max:r.scale}}return n}function D(t,e){const{handlers:n}=d(t),i=n[e];i&&i.target&&(i.target.removeEventListener(e,i),delete n[e])}function z(t,e,n,i){const{handlers:r,options:s}=d(t),o=r[n];o&&o.target===e||(D(t,n),r[n]=e=>i(t,e,s),r[n].target=e,e.addEventListener(n,r[n]))}function L(t,e){const n=d(t);n.dragStart&&(n.dragging=!0,n.dragEnd=e,t.update("none"))}function F(t,e){const n=d(t);n.dragStart&&"Escape"===e.key&&(D(t,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,t.update("none"))}function j(t,e,n){const{onZoomStart:i,onZoomRejected:r}=n;if(i){const n=(0,s.z)(e,t);if(!1===(0,s.Q)(i,[{chart:t,event:e,point:n}]))return(0,s.Q)(r,[{chart:t,event:e}]),!1}}function W(t,e){const n=d(t),{pan:i,zoom:r={}}=n.options;if(0!==e.button||a(o(i),e)||c(o(r.drag),e))return(0,s.Q)(r.onZoomRejected,[{chart:t,event:e}]);!1!==j(t,e,r)&&(n.dragStart=e,z(t,t.canvas,"mousemove",L),z(t,window.document,"keydown",F))}function B(t,e,n,i){const r=l(e,"x",t),o=l(e,"y",t);let{top:a,left:c,right:h,bottom:u,width:f,height:d}=t.chartArea;const p=(0,s.z)(n,t),g=(0,s.z)(i,t);r&&(c=Math.min(p.x,g.x),h=Math.max(p.x,g.x)),o&&(a=Math.min(p.y,g.y),u=Math.max(p.y,g.y));const m=h-c,v=u-a;return{left:c,top:a,right:h,bottom:u,width:m,height:v,zoomX:r&&m?1+(f-m)/f:1,zoomY:o&&v?1+(d-v)/d:1}}function N(t,e){const n=d(t);if(!n.dragStart)return;D(t,"mousemove");const{mode:i,onZoomComplete:r,drag:{threshold:o=0}}=n.options.zoom,a=B(t,i,n.dragStart,e),c=l(i,"x",t)?a.width:0,h=l(i,"y",t)?a.height:0,u=Math.sqrt(c*c+h*h);if(n.dragStart=n.dragEnd=null,u<=o)return n.dragging=!1,void t.update("none");C(t,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout((()=>n.dragging=!1),500),(0,s.Q)(r,[{chart:t}])}function H(t,e){const{handlers:{onZoomComplete:n},options:{zoom:i}}=d(t);if(!function(t,e,n){if(c(o(n.wheel),e))(0,s.Q)(n.onZoomRejected,[{chart:t,event:e}]);else if(!1!==j(t,e,n)&&(e.cancelable&&e.preventDefault(),void 0!==e.deltaY))return!0}(t,e,i))return;const r=e.target.getBoundingClientRect(),a=1+(e.deltaY>=0?-i.wheel.speed:i.wheel.speed);A(t,{x:a,y:a,focalPoint:{x:e.clientX-r.left,y:e.clientY-r.top}}),n&&n()}function V(t,e){return function(n,i){const{pan:r,zoom:l={}}=e.options;if(!r||!r.enabled)return!1;const h=i&&i.srcEvent;return!(h&&!e.panning&&"mouse"===i.pointerType&&(c(o(r),h)||a(o(l.drag),h))&&((0,s.Q)(r.onPanRejected,[{chart:t,event:i}]),1))}}function $(t,e,n){if(e.scale){const{center:i,pointers:r}=n,s=1/e.scale*n.scale,o=n.target.getBoundingClientRect(),a=function(t,e){const n=Math.abs(t.clientX-e.clientX),i=Math.abs(t.clientY-e.clientY),r=n/i;let s,o;return r>.3&&r<1.7?s=o=!0:n>i?s=!0:o=!0,{x:s,y:o}}(r[0],r[1]),c=e.options.zoom.mode;A(t,{x:a.x&&l(c,"x",t)?s:1,y:a.y&&l(c,"y",t)?s:1,focalPoint:{x:i.x-o.left,y:i.y-o.top}}),e.scale=n.scale}}function U(t,e,n){const i=e.delta;i&&(e.panning=!0,E(t,{x:n.deltaX-i.x,y:n.deltaY-i.y},e.panScales),e.delta={x:n.deltaX,y:n.deltaY})}const Q=new WeakMap;function Y(t,e,n){const i=n.zoom.drag,{dragStart:r,dragEnd:s}=d(t);if(i.drawTime!==e||!s)return;const{left:o,top:a,width:c,height:l}=B(t,n.zoom.mode,r,s),h=t.ctx;h.save(),h.beginPath(),h.fillStyle=i.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(o,a,c,l),i.borderWidth>0&&(h.lineWidth=i.borderWidth,h.strokeStyle=i.borderColor||"rgba(225,225,225)",h.strokeRect(o,a,c,l)),h.restore()}var X={id:"zoom",version:"2.0.1",defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(t,e,n){d(t).options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),r()&&function(t,e){const n=d(t),i=t.canvas,{pan:o,zoom:a}=e,c=new(r().Manager)(i);a&&a.pinch.enabled&&(c.add(new(r().Pinch)),c.on("pinchstart",(()=>function(t,e){e.options.zoom.pinch.enabled&&(e.scale=1)}(0,n))),c.on("pinch",(e=>$(t,n,e))),c.on("pinchend",(e=>function(t,e,n){e.scale&&($(t,e,n),e.scale=null,(0,s.Q)(e.options.zoom.onZoomComplete,[{chart:t}]))}(t,n,e)))),o&&o.enabled&&(c.add(new(r().Pan)({threshold:o.threshold,enable:V(t,n)})),c.on("panstart",(e=>function(t,e,n){const{enabled:i,onPanStart:r,onPanRejected:o}=e.options.pan;if(!i)return;const a=n.target.getBoundingClientRect(),c={x:n.center.x-a.left,y:n.center.y-a.top};if(!1===(0,s.Q)(r,[{chart:t,event:n,point:c}]))return(0,s.Q)(o,[{chart:t,event:n}]);e.panScales=u(e.options.pan,c,t),e.delta={x:0,y:0},clearTimeout(e.panEndTimeout),U(t,e,n)}(t,n,e))),c.on("panmove",(e=>U(t,n,e))),c.on("panend",(()=>function(t,e){e.delta=null,e.panning&&(e.panEndTimeout=setTimeout((()=>e.panning=!1),500),(0,s.Q)(e.options.pan.onPanComplete,[{chart:t}]))}(t,n)))),Q.set(t,c)}(t,n),t.pan=(e,n,i)=>E(t,e,n,i),t.zoom=(e,n)=>A(t,e,n),t.zoomRect=(e,n,i)=>C(t,e,n,i),t.zoomScale=(e,n,i)=>function(t,e,n,i="none"){S(t,d(t)),m(t.scales[e],n,void 0,!0),t.update(i)}(t,e,n,i),t.resetZoom=e=>function(t,e="default"){const n=d(t),i=S(t,n);(0,s.F)(t.scales,(function(t){const e=t.options;i[t.id]?(e.min=i[t.id].min.options,e.max=i[t.id].max.options):(delete e.min,delete e.max)})),t.update(e),(0,s.Q)(n.options.zoom.onZoomComplete,[{chart:t}])}(t,e),t.getZoomLevel=()=>function(t){const e=d(t);let n=1,i=1;return(0,s.F)(t.scales,(function(t){const r=function(t,e){const n=t.originalScaleLimits[e];if(!n)return;const{min:i,max:r}=n;return(0,s.v)(r.options,r.scale)-(0,s.v)(i.options,i.scale)}(e,t.id);if(r){const e=Math.round(r/(t.max-t.min)*100)/100;n=Math.min(n,e),i=Math.max(i,e)}})),n<1?n:i}(t),t.getInitialScaleBounds=()=>I(t),t.isZoomedOrPanned=()=>function(t){const e=I(t);for(const n of Object.keys(t.scales)){const{min:i,max:r}=e[n];if(void 0!==i&&t.scales[n].min!==i)return!0;if(void 0!==r&&t.scales[n].max!==r)return!0}return!1}(t)},beforeEvent(t){const e=d(t);if(e.panning||e.dragging)return!1},beforeUpdate:function(t,e,n){d(t).options=n,function(t,e){const n=t.canvas,{wheel:i,drag:r,onZoomComplete:o}=e.zoom;i.enabled?(z(t,n,"wheel",H),function(t,e,n,i){n&&(d(t).handlers[e]=function(t,e){let n;return function(){return clearTimeout(n),n=setTimeout(t,e),e}}((()=>(0,s.Q)(n,[{chart:t}])),i))}(t,"onZoomComplete",o,250)):D(t,"wheel"),r.enabled?(z(t,n,"mousedown",W),z(t,n.ownerDocument,"mouseup",N)):(D(t,"mousedown"),D(t,"mousemove"),D(t,"mouseup"),D(t,"keydown"))}(t,n)},beforeDatasetsDraw(t,e,n){Y(t,"beforeDatasetsDraw",n)},afterDatasetsDraw(t,e,n){Y(t,"afterDatasetsDraw",n)},beforeDraw(t,e,n){Y(t,"beforeDraw",n)},afterDraw(t,e,n){Y(t,"afterDraw",n)},stop:function(t){!function(t){D(t,"mousedown"),D(t,"mousemove"),D(t,"mouseup"),D(t,"wheel"),D(t,"click"),D(t,"keydown")}(t),r()&&function(t){const e=Q.get(t);e&&(e.remove("pinchstart"),e.remove("pinch"),e.remove("pinchend"),e.remove("panstart"),e.remove("pan"),e.remove("panend"),e.destroy(),Q.delete(t))}(t),function(t){f.delete(t)}(t)},panFunctions:M,zoomFunctions:_,zoomRectFunctions:w}},7168:(t,e,n)=>{var i;!function(r,s,o,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],h=s.createElement("div"),u=Math.round,f=Math.abs,d=Date.now;function p(t,e,n){return setTimeout(_(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(m(t,n[e],n),!0)}function m(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function v(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",s=r.console&&(r.console.warn||r.console.log);return s&&s.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==a&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var b=v((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===a)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),y=v((function(t,e){return b(t,e,!0)}),"merge","Use `assign`.");function x(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&c(i,n)}function _(t,e){return function(){return t.apply(e,arguments)}}function w(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function M(t,e){return t===a?e:t}function k(t,e,n){m(O(e),(function(e){t.addEventListener(e,n,!1)}))}function S(t,e,n){m(O(e),(function(e){t.removeEventListener(e,n,!1)}))}function T(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function R(t,e){return t.indexOf(e)>-1}function O(t){return t.trim().split(/\s+/g)}function A(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function C(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var i=[],r=[],s=0;s<t.length;){var o=e?t[s][e]:t[s];A(r,o)<0&&i.push(t[s]),r[s]=o,s++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function E(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<l.length;){if((i=(n=l[s])?n+r:e)in t)return i;s++}return a}var I=1;function D(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var z="ontouchstart"in r,L=E(r,"PointerEvent")!==a,F=z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",W="mouse",B=["x","y"],N=["clientX","clientY"];function H(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){w(t.options.enable,[t])&&n.handler(e)},this.init()}function V(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,s=1&e&&i-r==0,o=12&e&&i-r==0;n.isFirst=!!s,n.isFinal=!!o,s&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=$(e)),r>1&&!n.firstMultiple?n.firstMultiple=$(e):1===r&&(n.firstMultiple=!1);var s=n.firstInput,o=n.firstMultiple,c=o?o.center:s.center,l=e.center=U(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=q(c,l),e.distance=X(c,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},s=t.prevInput||{};1!==e.eventType&&4!==s.eventType||(r=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=Y(e.deltaX,e.deltaY);var h,u,p=Q(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=f(p.x)>f(p.y)?p.x:p.y,e.scale=o?(h=o.pointers,X((u=i)[0],u[1],N)/X(h[0],h[1],N)):1,e.rotation=o?function(t,e){return q(e[1],e[0],N)+q(t[1],t[0],N)}(o.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,s,o=t.lastInterval||e,c=e.timeStamp-o.timeStamp;if(8!=e.eventType&&(c>25||o.velocity===a)){var l=e.deltaX-o.deltaX,h=e.deltaY-o.deltaY,u=Q(c,l,h);i=u.x,r=u.y,n=f(u.x)>f(u.y)?u.x:u.y,s=Y(l,h),t.lastInterval=e}else n=o.velocity,i=o.velocityX,r=o.velocityY,s=o.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}(n,e);var g=t.element;T(e.srcEvent.target,g)&&(g=e.srcEvent.target),e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function $(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:u(t.pointers[n].clientX),clientY:u(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:U(e),deltaX:t.deltaX,deltaY:t.deltaY}}function U(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:u(n/e),y:u(i/e)}}function Q(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?1:f(t)>=f(e)?t<0?2:4:e<0?8:16}function X(t,e,n){n||(n=B);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function q(t,e,n){n||(n=B);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}H.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(D(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(D(this.element),this.evWin,this.domHandler)}};var Z={mousedown:1,mousemove:2,mouseup:4};function K(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,H.apply(this,arguments)}x(K,H,{handler:function(t){var e=Z[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:W,srcEvent:t}))}});var G={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:j,3:"pen",4:W,5:"kinect"},tt="pointerdown",et="pointermove pointerup pointercancel";function nt(){this.evEl=tt,this.evWin=et,H.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(tt="MSPointerDown",et="MSPointerMove MSPointerUp MSPointerCancel"),x(nt,H,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=G[i],s=J[t.pointerType]||t.pointerType,o=s==j,a=A(e,t.pointerId,"pointerId");1&r&&(0===t.button||o)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function rt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,H.apply(this,arguments)}function st(t,e){var n=C(t.touches),i=C(t.changedTouches);return 12&e&&(n=P(n.concat(i),"identifier",!0)),[n,i]}x(rt,H,{handler:function(t){var e=it[t.type];if(1===e&&(this.started=!0),this.started){var n=st.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:t})}}});var ot={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function at(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},H.apply(this,arguments)}function ct(t,e){var n=C(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,s,o=C(t.changedTouches),a=[],c=this.target;if(s=n.filter((function(t){return T(t.target,c)})),1===e)for(r=0;r<s.length;)i[s[r].identifier]=!0,r++;for(r=0;r<o.length;)i[o[r].identifier]&&a.push(o[r]),12&e&&delete i[o[r].identifier],r++;return a.length?[P(s.concat(a),"identifier",!0),a]:void 0}function lt(){H.apply(this,arguments);var t=_(this.handler,this);this.touch=new at(this.manager,t),this.mouse=new K(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function ht(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ut.call(this,e)):12&t&&ut.call(this,e)}function ut(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function ft(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],s=Math.abs(e-r.x),o=Math.abs(n-r.y);if(s<=25&&o<=25)return!0}return!1}x(at,H,{handler:function(t){var e=ot[t.type],n=ct.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:j,srcEvent:t})}}),x(lt,H,{handler:function(t,e,n){var i=n.pointerType==j,r=n.pointerType==W;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)ht.call(this,e,n);else if(r&&ft.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var dt=E(h.style,"touchAction"),pt=dt!==a,gt="compute",mt="auto",vt="manipulation",bt="none",yt="pan-x",xt="pan-y",_t=function(){if(!pt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function wt(t,e){this.manager=t,this.set(e)}wt.prototype={set:function(t){t==gt&&(t=this.compute()),pt&&this.manager.element.style&&_t[t]&&(this.manager.element.style[dt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return m(this.manager.recognizers,(function(e){w(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(R(t,bt))return bt;var e=R(t,yt),n=R(t,xt);return e&&n?bt:e||n?e?yt:xt:R(t,vt)?vt:mt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=R(i,bt)&&!_t[bt],s=R(i,xt)&&!_t[xt],o=R(i,yt)&&!_t[yt];if(r){var a=1===t.pointers.length,c=t.distance<2,l=t.deltaTime<250;if(a&&c&&l)return}if(!o||!s)return r||s&&6&n||o&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Mt=32;function kt(t){this.options=c({},this.defaults,t||{}),this.id=I++,this.manager=null,this.options.enable=M(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function St(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Tt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Rt(t,e){var n=e.manager;return n?n.get(t):t}function Ot(){kt.apply(this,arguments)}function At(){Ot.apply(this,arguments),this.pX=null,this.pY=null}function Ct(){Ot.apply(this,arguments)}function Pt(){kt.apply(this,arguments),this._timer=null,this._input=null}function Et(){Ot.apply(this,arguments)}function It(){Ot.apply(this,arguments)}function Dt(){kt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function zt(t,e){return(e=e||{}).recognizers=M(e.recognizers,zt.defaults.preset),new Lt(t,e)}function Lt(t,e){this.options=c({},zt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(L?nt:F?at:z?lt:K))(this,V),this.touchAction=new wt(this,this.options.touchAction),Ft(this,!0),m(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Ft(t,e){var n,i=t.element;i.style&&(m(t.options.cssProps,(function(r,s){n=E(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}kt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Rt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=Rt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===A(e,t=Rt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=Rt(t,this);var e=A(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+St(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+St(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Mt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!w(this.options.enable,[this,e]))return this.reset(),void(this.state=Mt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},x(Ot,kt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:Mt}}),x(At,Ot,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(xt),24&t&&e.push(yt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,s=t.deltaX,o=t.deltaY;return r&e.direction||(6&e.direction?(r=0===s?1:s<0?2:4,n=s!=this.pX,i=Math.abs(t.deltaX)):(r=0===o?1:o<0?8:16,n=o!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Ot.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Tt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),x(Ct,Ot,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),x(Pt,kt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[mt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Mt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),x(Et,Ot,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),x(It,Ot,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return At.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Tt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),x(Dt,kt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[vt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,o=!this.pCenter||X(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,o&&s?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Mt},failTimeout:function(){return this._timer=p((function(){this.state=Mt}),this.options.interval,this),Mt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),zt.VERSION="2.0.7",zt.defaults={domEvents:!1,touchAction:gt,enable:!0,inputTarget:null,inputClass:null,preset:[[Et,{enable:!1}],[Ct,{enable:!1},["rotate"]],[It,{direction:6}],[At,{direction:6},["swipe"]],[Dt],[Dt,{event:"doubletap",taps:2},["tap"]],[Pt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Lt.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),s++}},get:function(t){if(t instanceof kt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(g(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=A(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return m(O(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return m(O(t),(function(t){e?n[t]&&n[t].splice(A(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=s.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(zt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Mt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Lt,Input:H,TouchAction:wt,TouchInput:at,MouseInput:K,PointerEventInput:nt,TouchMouseInput:lt,SingleTouchInput:rt,Recognizer:kt,AttrRecognizer:Ot,Tap:Dt,Pan:At,Swipe:It,Pinch:Ct,Rotate:Et,Press:Pt,on:k,off:S,each:m,merge:y,extend:b,assign:c,inherit:x,bindFn:_,prefixed:E}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=zt,(i=function(){return zt}.call(e,n,e,t))===a||(t.exports=i)}(window,document)},2543:function(t,e,n){var i;t=n.nmd(t),function(){var r,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=32,l=128,h=1/0,u=9007199254740991,f=NaN,d=4294967295,p=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],g="[object Arguments]",m="[object Array]",v="[object Boolean]",b="[object Date]",y="[object Error]",x="[object Function]",_="[object GeneratorFunction]",w="[object Map]",M="[object Number]",k="[object Object]",S="[object Promise]",T="[object RegExp]",R="[object Set]",O="[object String]",A="[object Symbol]",C="[object WeakMap]",P="[object ArrayBuffer]",E="[object DataView]",I="[object Float32Array]",D="[object Float64Array]",z="[object Int8Array]",L="[object Int16Array]",F="[object Int32Array]",j="[object Uint8Array]",W="[object Uint8ClampedArray]",B="[object Uint16Array]",N="[object Uint32Array]",H=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,U=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,Y=RegExp(U.source),X=RegExp(Q.source),q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),it=/^\s+/,rt=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ct=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lt=/[()=,{}\[\]\/\s]/,ht=/\\(\\)?/g,ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,_t="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Mt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Rt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ot="["+_t+"]",At="["+Rt+"]",Ct="["+wt+"]",Pt="\\d+",Et="["+Mt+"]",It="["+kt+"]",Dt="[^"+_t+Rt+Pt+Mt+kt+St+"]",zt="\\ud83c[\\udffb-\\udfff]",Lt="[^"+_t+"]",Ft="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+St+"]",Bt="\\u200d",Nt="(?:"+It+"|"+Dt+")",Ht="(?:"+Wt+"|"+Dt+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+Ct+"|"+zt+")?",Qt="["+Tt+"]?",Yt=Qt+Ut+"(?:"+Bt+"(?:"+[Lt,Ft,jt].join("|")+")"+Qt+Ut+")*",Xt="(?:"+[Et,Ft,jt].join("|")+")"+Yt,qt="(?:"+[Lt+Ct+"?",Ct,Ft,jt,Ot].join("|")+")",Zt=RegExp("['’]","g"),Kt=RegExp(Ct,"g"),Gt=RegExp(zt+"(?="+zt+")|"+qt+Yt,"g"),Jt=RegExp([Wt+"?"+It+"+"+Vt+"(?="+[At,Wt,"$"].join("|")+")",Ht+"+"+$t+"(?="+[At,Wt+Nt,"$"].join("|")+")",Wt+"?"+Nt+"+"+Vt,Wt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pt,Xt].join("|"),"g"),te=RegExp("["+Bt+_t+wt+Tt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ie=-1,re={};re[I]=re[D]=re[z]=re[L]=re[F]=re[j]=re[W]=re[B]=re[N]=!0,re[g]=re[m]=re[P]=re[v]=re[E]=re[b]=re[y]=re[x]=re[w]=re[M]=re[k]=re[T]=re[R]=re[O]=re[C]=!1;var se={};se[g]=se[m]=se[P]=se[E]=se[v]=se[b]=se[I]=se[D]=se[z]=se[L]=se[F]=se[w]=se[M]=se[k]=se[T]=se[R]=se[O]=se[A]=se[j]=se[W]=se[B]=se[N]=!0,se[y]=se[x]=se[C]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,ce=parseInt,le="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,he="object"==typeof self&&self&&self.Object===Object&&self,ue=le||he||Function("return this")(),fe=e&&!e.nodeType&&e,de=fe&&t&&!t.nodeType&&t,pe=de&&de.exports===fe,ge=pe&&le.process,me=function(){try{return de&&de.require&&de.require("util").types||ge&&ge.binding&&ge.binding("util")}catch(t){}}(),ve=me&&me.isArrayBuffer,be=me&&me.isDate,ye=me&&me.isMap,xe=me&&me.isRegExp,_e=me&&me.isSet,we=me&&me.isTypedArray;function Me(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,i){for(var r=-1,s=null==t?0:t.length;++r<s;){var o=t[r];e(i,o,n(o),t)}return i}function Se(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function Te(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Re(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function Oe(t,e){for(var n=-1,i=null==t?0:t.length,r=0,s=[];++n<i;){var o=t[n];e(o,n,t)&&(s[r++]=o)}return s}function Ae(t,e){return!(null==t||!t.length)&&We(t,e,0)>-1}function Ce(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Pe(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Ee(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Ie(t,e,n,i){var r=-1,s=null==t?0:t.length;for(i&&s&&(n=t[++r]);++r<s;)n=e(n,t[r],r,t);return n}function De(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function ze(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var Le=Ve("length");function Fe(t,e,n){var i;return n(t,(function(t,n,r){if(e(t,n,r))return i=n,!1})),i}function je(t,e,n,i){for(var r=t.length,s=n+(i?1:-1);i?s--:++s<r;)if(e(t[s],s,t))return s;return-1}function We(t,e,n){return e==e?function(t,e,n){for(var i=n-1,r=t.length;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):je(t,Ne,n)}function Be(t,e,n,i){for(var r=n-1,s=t.length;++r<s;)if(i(t[r],e))return r;return-1}function Ne(t){return t!=t}function He(t,e){var n=null==t?0:t.length;return n?Qe(t,e)/n:f}function Ve(t){return function(e){return null==e?r:e[t]}}function $e(t){return function(e){return null==t?r:t[e]}}function Ue(t,e,n,i,r){return r(t,(function(t,r,s){n=i?(i=!1,t):e(n,t,r,s)})),n}function Qe(t,e){for(var n,i=-1,s=t.length;++i<s;){var o=e(t[i]);o!==r&&(n=n===r?o:n+o)}return n}function Ye(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function Xe(t){return t?t.slice(0,fn(t)+1).replace(it,""):t}function qe(t){return function(e){return t(e)}}function Ze(t,e){return Pe(e,(function(e){return t[e]}))}function Ke(t,e){return t.has(e)}function Ge(t,e){for(var n=-1,i=t.length;++n<i&&We(e,t[n],0)>-1;);return n}function Je(t,e){for(var n=t.length;n--&&We(e,t[n],0)>-1;);return n}var tn=$e({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,i=t.length,r=0,s=[];++n<i;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[r++]=n)}return s}function cn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function hn(t){return rn(t)?function(t){for(var e=Gt.lastIndex=0;Gt.test(t);)++e;return e}(t):Le(t)}function un(t){return rn(t)?function(t){return t.match(Gt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&rt.test(t.charAt(e)););return e}var dn=$e({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,i=(e=null==e?ue:pn.defaults(ue.Object(),e,pn.pick(ue,ne))).Array,rt=e.Date,_t=e.Error,wt=e.Function,Mt=e.Math,kt=e.Object,St=e.RegExp,Tt=e.String,Rt=e.TypeError,Ot=i.prototype,At=wt.prototype,Ct=kt.prototype,Pt=e["__core-js_shared__"],Et=At.toString,It=Ct.hasOwnProperty,Dt=0,zt=(n=/[^.]+$/.exec(Pt&&Pt.keys&&Pt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Lt=Ct.toString,Ft=Et.call(kt),jt=ue._,Wt=St("^"+Et.call(It).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=pe?e.Buffer:r,Nt=e.Symbol,Ht=e.Uint8Array,Vt=Bt?Bt.allocUnsafe:r,$t=on(kt.getPrototypeOf,kt),Ut=kt.create,Qt=Ct.propertyIsEnumerable,Yt=Ot.splice,Xt=Nt?Nt.isConcatSpreadable:r,qt=Nt?Nt.iterator:r,Gt=Nt?Nt.toStringTag:r,te=function(){try{var t=cs(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ue.clearTimeout&&e.clearTimeout,le=rt&&rt.now!==ue.Date.now&&rt.now,he=e.setTimeout!==ue.setTimeout&&e.setTimeout,fe=Mt.ceil,de=Mt.floor,ge=kt.getOwnPropertySymbols,me=Bt?Bt.isBuffer:r,Le=e.isFinite,$e=Ot.join,gn=on(kt.keys,kt),mn=Mt.max,vn=Mt.min,bn=rt.now,yn=e.parseInt,xn=Mt.random,_n=Ot.reverse,wn=cs(e,"DataView"),Mn=cs(e,"Map"),kn=cs(e,"Promise"),Sn=cs(e,"Set"),Tn=cs(e,"WeakMap"),Rn=cs(kt,"create"),On=Tn&&new Tn,An={},Cn=Ls(wn),Pn=Ls(Mn),En=Ls(kn),In=Ls(Sn),Dn=Ls(Tn),zn=Nt?Nt.prototype:r,Ln=zn?zn.valueOf:r,Fn=zn?zn.toString:r;function jn(t){if(ta(t)&&!Vo(t)&&!(t instanceof Hn)){if(t instanceof Nn)return t;if(It.call(t,"__wrapped__"))return Fs(t)}return new Nn(t)}var Wn=function(){function t(){}return function(e){if(!Jo(e))return{};if(Ut)return Ut(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Bn(){}function Nn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Hn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function $n(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Qn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Un;++e<n;)this.add(t[e])}function Yn(t){var e=this.__data__=new $n(t);this.size=e.size}function Xn(t,e){var n=Vo(t),i=!n&&Ho(t),r=!n&&!i&&Yo(t),s=!n&&!i&&!r&&ca(t),o=n||i||r||s,a=o?Ye(t.length,Tt):[],c=a.length;for(var l in t)!e&&!It.call(t,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||gs(l,c))||a.push(l);return a}function qn(t){var e=t.length;return e?t[Ui(0,e-1)]:r}function Zn(t,e){return Ps(Tr(t),si(e,0,t.length))}function Kn(t){return Ps(Tr(t))}function Gn(t,e,n){(n!==r&&!Wo(t[e],n)||n===r&&!(e in t))&&ii(t,e,n)}function Jn(t,e,n){var i=t[e];It.call(t,e)&&Wo(i,n)&&(n!==r||e in t)||ii(t,e,n)}function ti(t,e){for(var n=t.length;n--;)if(Wo(t[n][0],e))return n;return-1}function ei(t,e,n,i){return hi(t,(function(t,r,s){e(i,t,n(t),s)})),i}function ni(t,e){return t&&Rr(e,Ca(e),t)}function ii(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ri(t,e){for(var n=-1,s=e.length,o=i(s),a=null==t;++n<s;)o[n]=a?r:Sa(t,e[n]);return o}function si(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function oi(t,e,n,i,s,o){var a,c=1&e,l=2&e,h=4&e;if(n&&(a=s?n(t,i,s,o):n(t)),a!==r)return a;if(!Jo(t))return t;var u=Vo(t);if(u){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&It.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!c)return Tr(t,a)}else{var f=us(t),d=f==x||f==_;if(Yo(t))return xr(t,c);if(f==k||f==g||d&&!s){if(a=l||d?{}:ds(t),!c)return l?function(t,e){return Rr(t,hs(t),e)}(t,function(t,e){return t&&Rr(e,Pa(e),t)}(a,t)):function(t,e){return Rr(t,ls(t),e)}(t,ni(a,t))}else{if(!se[f])return s?t:{};a=function(t,e,n){var i,r=t.constructor;switch(e){case P:return _r(t);case v:case b:return new r(+t);case E:return function(t,e){var n=e?_r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case I:case D:case z:case L:case F:case j:case W:case B:case N:return wr(t,n);case w:return new r;case M:case O:return new r(t);case T:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case R:return new r;case A:return i=t,Ln?kt(Ln.call(i)):{}}}(t,f,c)}}o||(o=new Yn);var p=o.get(t);if(p)return p;o.set(t,a),sa(t)?t.forEach((function(i){a.add(oi(i,e,n,i,t,o))})):ea(t)&&t.forEach((function(i,r){a.set(r,oi(i,e,n,r,t,o))}));var m=u?r:(h?l?es:ts:l?Pa:Ca)(t);return Se(m||t,(function(i,r){m&&(i=t[r=i]),Jn(a,r,oi(i,e,n,r,t,o))})),a}function ai(t,e,n){var i=n.length;if(null==t)return!i;for(t=kt(t);i--;){var s=n[i],o=e[s],a=t[s];if(a===r&&!(s in t)||!o(a))return!1}return!0}function ci(t,e,n){if("function"!=typeof t)throw new Rt(s);return Rs((function(){t.apply(r,n)}),e)}function li(t,e,n,i){var r=-1,s=Ae,o=!0,a=t.length,c=[],l=e.length;if(!a)return c;n&&(e=Pe(e,qe(n))),i?(s=Ce,o=!1):e.length>=200&&(s=Ke,o=!1,e=new Qn(e));t:for(;++r<a;){var h=t[r],u=null==n?h:n(h);if(h=i||0!==h?h:0,o&&u==u){for(var f=l;f--;)if(e[f]===u)continue t;c.push(h)}else s(e,u,i)||c.push(h)}return c}jn.templateSettings={escape:q,evaluate:Z,interpolate:K,variable:"",imports:{_:jn}},jn.prototype=Bn.prototype,jn.prototype.constructor=jn,Nn.prototype=Wn(Bn.prototype),Nn.prototype.constructor=Nn,Hn.prototype=Wn(Bn.prototype),Hn.prototype.constructor=Hn,Vn.prototype.clear=function(){this.__data__=Rn?Rn(null):{},this.size=0},Vn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Vn.prototype.get=function(t){var e=this.__data__;if(Rn){var n=e[t];return n===o?r:n}return It.call(e,t)?e[t]:r},Vn.prototype.has=function(t){var e=this.__data__;return Rn?e[t]!==r:It.call(e,t)},Vn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Rn&&e===r?o:e,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(t){var e=this.__data__,n=ti(e,t);return!(n<0||(n==e.length-1?e.pop():Yt.call(e,n,1),--this.size,0))},$n.prototype.get=function(t){var e=this.__data__,n=ti(e,t);return n<0?r:e[n][1]},$n.prototype.has=function(t){return ti(this.__data__,t)>-1},$n.prototype.set=function(t,e){var n=this.__data__,i=ti(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},Un.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Mn||$n),string:new Vn}},Un.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Un.prototype.get=function(t){return os(this,t).get(t)},Un.prototype.has=function(t){return os(this,t).has(t)},Un.prototype.set=function(t,e){var n=os(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Qn.prototype.add=Qn.prototype.push=function(t){return this.__data__.set(t,o),this},Qn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.clear=function(){this.__data__=new $n,this.size=0},Yn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Yn.prototype.get=function(t){return this.__data__.get(t)},Yn.prototype.has=function(t){return this.__data__.has(t)},Yn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof $n){var i=n.__data__;if(!Mn||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Un(i)}return n.set(t,e),this.size=n.size,this};var hi=Cr(bi),ui=Cr(yi,!0);function fi(t,e){var n=!0;return hi(t,(function(t,i,r){return n=!!e(t,i,r)})),n}function di(t,e,n){for(var i=-1,s=t.length;++i<s;){var o=t[i],a=e(o);if(null!=a&&(c===r?a==a&&!aa(a):n(a,c)))var c=a,l=o}return l}function pi(t,e){var n=[];return hi(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function gi(t,e,n,i,r){var s=-1,o=t.length;for(n||(n=ps),r||(r=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?gi(a,e-1,n,i,r):Ee(r,a):i||(r[r.length]=a)}return r}var mi=Pr(),vi=Pr(!0);function bi(t,e){return t&&mi(t,e,Ca)}function yi(t,e){return t&&vi(t,e,Ca)}function xi(t,e){return Oe(e,(function(e){return Zo(t[e])}))}function _i(t,e){for(var n=0,i=(e=mr(e,t)).length;null!=t&&n<i;)t=t[zs(e[n++])];return n&&n==i?t:r}function wi(t,e,n){var i=e(t);return Vo(t)?i:Ee(i,n(t))}function Mi(t){return null==t?t===r?"[object Undefined]":"[object Null]":Gt&&Gt in kt(t)?function(t){var e=It.call(t,Gt),n=t[Gt];try{t[Gt]=r;var i=!0}catch(t){}var s=Lt.call(t);return i&&(e?t[Gt]=n:delete t[Gt]),s}(t):function(t){return Lt.call(t)}(t)}function ki(t,e){return t>e}function Si(t,e){return null!=t&&It.call(t,e)}function Ti(t,e){return null!=t&&e in kt(t)}function Ri(t,e,n){for(var s=n?Ce:Ae,o=t[0].length,a=t.length,c=a,l=i(a),h=1/0,u=[];c--;){var f=t[c];c&&e&&(f=Pe(f,qe(e))),h=vn(f.length,h),l[c]=!n&&(e||o>=120&&f.length>=120)?new Qn(c&&f):r}f=t[0];var d=-1,p=l[0];t:for(;++d<o&&u.length<h;){var g=f[d],m=e?e(g):g;if(g=n||0!==g?g:0,!(p?Ke(p,m):s(u,m,n))){for(c=a;--c;){var v=l[c];if(!(v?Ke(v,m):s(t[c],m,n)))continue t}p&&p.push(m),u.push(g)}}return u}function Oi(t,e,n){var i=null==(t=ks(t,e=mr(e,t)))?t:t[zs(Xs(e))];return null==i?r:Me(i,t,n)}function Ai(t){return ta(t)&&Mi(t)==g}function Ci(t,e,n,i,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,i,s,o){var a=Vo(t),c=Vo(e),l=a?m:us(t),h=c?m:us(e),u=(l=l==g?k:l)==k,f=(h=h==g?k:h)==k,d=l==h;if(d&&Yo(t)){if(!Yo(e))return!1;a=!0,u=!1}if(d&&!u)return o||(o=new Yn),a||ca(t)?Gr(t,e,n,i,s,o):function(t,e,n,i,r,s,o){switch(n){case E:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case P:return!(t.byteLength!=e.byteLength||!s(new Ht(t),new Ht(e)));case v:case b:case M:return Wo(+t,+e);case y:return t.name==e.name&&t.message==e.message;case T:case O:return t==e+"";case w:var a=sn;case R:var c=1&i;if(a||(a=cn),t.size!=e.size&&!c)return!1;var l=o.get(t);if(l)return l==e;i|=2,o.set(t,e);var h=Gr(a(t),a(e),i,r,s,o);return o.delete(t),h;case A:if(Ln)return Ln.call(t)==Ln.call(e)}return!1}(t,e,l,n,i,s,o);if(!(1&n)){var p=u&&It.call(t,"__wrapped__"),x=f&&It.call(e,"__wrapped__");if(p||x){var _=p?t.value():t,S=x?e.value():e;return o||(o=new Yn),s(_,S,n,i,o)}}return!!d&&(o||(o=new Yn),function(t,e,n,i,s,o){var a=1&n,c=ts(t),l=c.length;if(l!=ts(e).length&&!a)return!1;for(var h=l;h--;){var u=c[h];if(!(a?u in e:It.call(e,u)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);for(var g=a;++h<l;){var m=t[u=c[h]],v=e[u];if(i)var b=a?i(v,m,u,e,t,o):i(m,v,u,t,e,o);if(!(b===r?m===v||s(m,v,n,i,o):b)){p=!1;break}g||(g="constructor"==u)}if(p&&!g){var y=t.constructor,x=e.constructor;y==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,i,s,o))}(t,e,n,i,Ci,s))}function Pi(t,e,n,i){var s=n.length,o=s,a=!i;if(null==t)return!o;for(t=kt(t);s--;){var c=n[s];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<o;){var l=(c=n[s])[0],h=t[l],u=c[1];if(a&&c[2]){if(h===r&&!(l in t))return!1}else{var f=new Yn;if(i)var d=i(h,u,l,t,e,f);if(!(d===r?Ci(u,h,3,i,f):d))return!1}}return!0}function Ei(t){return!(!Jo(t)||(e=t,zt&&zt in e))&&(Zo(t)?Wt:gt).test(Ls(t));var e}function Ii(t){return"function"==typeof t?t:null==t?nc:"object"==typeof t?Vo(t)?ji(t[0],t[1]):Fi(t):uc(t)}function Di(t){if(!xs(t))return gn(t);var e=[];for(var n in kt(t))It.call(t,n)&&"constructor"!=n&&e.push(n);return e}function zi(t,e){return t<e}function Li(t,e){var n=-1,r=Uo(t)?i(t.length):[];return hi(t,(function(t,i,s){r[++n]=e(t,i,s)})),r}function Fi(t){var e=as(t);return 1==e.length&&e[0][2]?ws(e[0][0],e[0][1]):function(n){return n===t||Pi(n,t,e)}}function ji(t,e){return vs(t)&&_s(e)?ws(zs(t),e):function(n){var i=Sa(n,t);return i===r&&i===e?Ta(n,t):Ci(e,i,3)}}function Wi(t,e,n,i,s){t!==e&&mi(e,(function(o,a){if(s||(s=new Yn),Jo(o))!function(t,e,n,i,s,o,a){var c=Ss(t,n),l=Ss(e,n),h=a.get(l);if(h)Gn(t,n,h);else{var u=o?o(c,l,n+"",t,e,a):r,f=u===r;if(f){var d=Vo(l),p=!d&&Yo(l),g=!d&&!p&&ca(l);u=l,d||p||g?Vo(c)?u=c:Qo(c)?u=Tr(c):p?(f=!1,u=xr(l,!0)):g?(f=!1,u=wr(l,!0)):u=[]:ia(l)||Ho(l)?(u=c,Ho(c)?u=ma(c):Jo(c)&&!Zo(c)||(u=ds(l))):f=!1}f&&(a.set(l,u),s(u,l,i,o,a),a.delete(l)),Gn(t,n,u)}}(t,e,a,n,Wi,i,s);else{var c=i?i(Ss(t,a),o,a+"",t,e,s):r;c===r&&(c=o),Gn(t,a,c)}}),Pa)}function Bi(t,e){var n=t.length;if(n)return gs(e+=e<0?n:0,n)?t[e]:r}function Ni(t,e,n){e=e.length?Pe(e,(function(t){return Vo(t)?function(e){return _i(e,1===t.length?t[0]:t)}:t})):[nc];var i=-1;e=Pe(e,qe(ss()));var r=Li(t,(function(t,n,r){var s=Pe(e,(function(e){return e(t)}));return{criteria:s,index:++i,value:t}}));return function(t){var e=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,s=e.criteria,o=r.length,a=n.length;++i<o;){var c=Mr(r[i],s[i]);if(c)return i>=a?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}(t,e,n)}));e--;)t[e]=t[e].value;return t}(r)}function Hi(t,e,n){for(var i=-1,r=e.length,s={};++i<r;){var o=e[i],a=_i(t,o);n(a,o)&&Zi(s,mr(o,t),a)}return s}function Vi(t,e,n,i){var r=i?Be:We,s=-1,o=e.length,a=t;for(t===e&&(e=Tr(e)),n&&(a=Pe(t,qe(n)));++s<o;)for(var c=0,l=e[s],h=n?n(l):l;(c=r(a,h,c,i))>-1;)a!==t&&Yt.call(a,c,1),Yt.call(t,c,1);return t}function $i(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==s){var s=r;gs(r)?Yt.call(t,r,1):cr(t,r)}}return t}function Ui(t,e){return t+de(xn()*(e-t+1))}function Qi(t,e){var n="";if(!t||e<1||e>u)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Yi(t,e){return Os(Ms(t,e,nc),t+"")}function Xi(t){return qn(Wa(t))}function qi(t,e){var n=Wa(t);return Ps(n,si(e,0,n.length))}function Zi(t,e,n,i){if(!Jo(t))return t;for(var s=-1,o=(e=mr(e,t)).length,a=o-1,c=t;null!=c&&++s<o;){var l=zs(e[s]),h=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(s!=a){var u=c[l];(h=i?i(u,l,c):r)===r&&(h=Jo(u)?u:gs(e[s+1])?[]:{})}Jn(c,l,h),c=c[l]}return t}var Ki=On?function(t,e){return On.set(t,e),t}:nc,Gi=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ja(e),writable:!0})}:nc;function Ji(t){return Ps(Wa(t))}function tr(t,e,n){var r=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=i(s);++r<s;)o[r]=t[r+e];return o}function er(t,e){var n;return hi(t,(function(t,i,r){return!(n=e(t,i,r))})),!!n}function nr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=2147483647){for(;i<r;){var s=i+r>>>1,o=t[s];null!==o&&!aa(o)&&(n?o<=e:o<e)?i=s+1:r=s}return r}return ir(t,e,nc,n)}function ir(t,e,n,i){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,c=null===e,l=aa(e),h=e===r;s<o;){var u=de((s+o)/2),f=n(t[u]),d=f!==r,p=null===f,g=f==f,m=aa(f);if(a)var v=i||g;else v=h?g&&(i||d):c?g&&d&&(i||!p):l?g&&d&&!p&&(i||!m):!p&&!m&&(i?f<=e:f<e);v?s=u+1:o=u}return vn(o,4294967294)}function rr(t,e){for(var n=-1,i=t.length,r=0,s=[];++n<i;){var o=t[n],a=e?e(o):o;if(!n||!Wo(a,c)){var c=a;s[r++]=0===o?0:o}}return s}function sr(t){return"number"==typeof t?t:aa(t)?f:+t}function or(t){if("string"==typeof t)return t;if(Vo(t))return Pe(t,or)+"";if(aa(t))return Fn?Fn.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ar(t,e,n){var i=-1,r=Ae,s=t.length,o=!0,a=[],c=a;if(n)o=!1,r=Ce;else if(s>=200){var l=e?null:Qr(t);if(l)return cn(l);o=!1,r=Ke,c=new Qn}else c=e?[]:a;t:for(;++i<s;){var h=t[i],u=e?e(h):h;if(h=n||0!==h?h:0,o&&u==u){for(var f=c.length;f--;)if(c[f]===u)continue t;e&&c.push(u),a.push(h)}else r(c,u,n)||(c!==a&&c.push(u),a.push(h))}return a}function cr(t,e){return null==(t=ks(t,e=mr(e,t)))||delete t[zs(Xs(e))]}function lr(t,e,n,i){return Zi(t,e,n(_i(t,e)),i)}function hr(t,e,n,i){for(var r=t.length,s=i?r:-1;(i?s--:++s<r)&&e(t[s],s,t););return n?tr(t,i?0:s,i?s+1:r):tr(t,i?s+1:0,i?r:s)}function ur(t,e){var n=t;return n instanceof Hn&&(n=n.value()),Ie(e,(function(t,e){return e.func.apply(e.thisArg,Ee([t],e.args))}),n)}function fr(t,e,n){var r=t.length;if(r<2)return r?ar(t[0]):[];for(var s=-1,o=i(r);++s<r;)for(var a=t[s],c=-1;++c<r;)c!=s&&(o[s]=li(o[s]||a,t[c],e,n));return ar(gi(o,1),e,n)}function dr(t,e,n){for(var i=-1,s=t.length,o=e.length,a={};++i<s;){var c=i<o?e[i]:r;n(a,t[i],c)}return a}function pr(t){return Qo(t)?t:[]}function gr(t){return"function"==typeof t?t:nc}function mr(t,e){return Vo(t)?t:vs(t,e)?[t]:Ds(va(t))}var vr=Yi;function br(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:tr(t,e,n)}var yr=oe||function(t){return ue.clearTimeout(t)};function xr(t,e){if(e)return t.slice();var n=t.length,i=Vt?Vt(n):new t.constructor(n);return t.copy(i),i}function _r(t){var e=new t.constructor(t.byteLength);return new Ht(e).set(new Ht(t)),e}function wr(t,e){var n=e?_r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Mr(t,e){if(t!==e){var n=t!==r,i=null===t,s=t==t,o=aa(t),a=e!==r,c=null===e,l=e==e,h=aa(e);if(!c&&!h&&!o&&t>e||o&&a&&l&&!c&&!h||i&&a&&l||!n&&l||!s)return 1;if(!i&&!o&&!h&&t<e||h&&n&&s&&!i&&!o||c&&n&&s||!a&&s||!l)return-1}return 0}function kr(t,e,n,r){for(var s=-1,o=t.length,a=n.length,c=-1,l=e.length,h=mn(o-a,0),u=i(l+h),f=!r;++c<l;)u[c]=e[c];for(;++s<a;)(f||s<o)&&(u[n[s]]=t[s]);for(;h--;)u[c++]=t[s++];return u}function Sr(t,e,n,r){for(var s=-1,o=t.length,a=-1,c=n.length,l=-1,h=e.length,u=mn(o-c,0),f=i(u+h),d=!r;++s<u;)f[s]=t[s];for(var p=s;++l<h;)f[p+l]=e[l];for(;++a<c;)(d||s<o)&&(f[p+n[a]]=t[s++]);return f}function Tr(t,e){var n=-1,r=t.length;for(e||(e=i(r));++n<r;)e[n]=t[n];return e}function Rr(t,e,n,i){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var c=e[o],l=i?i(n[c],t[c],c,n,t):r;l===r&&(l=t[c]),s?ii(n,c,l):Jn(n,c,l)}return n}function Or(t,e){return function(n,i){var r=Vo(n)?ke:ei,s=e?e():{};return r(n,t,ss(i,2),s)}}function Ar(t){return Yi((function(e,n){var i=-1,s=n.length,o=s>1?n[s-1]:r,a=s>2?n[2]:r;for(o=t.length>3&&"function"==typeof o?(s--,o):r,a&&ms(n[0],n[1],a)&&(o=s<3?r:o,s=1),e=kt(e);++i<s;){var c=n[i];c&&t(e,c,i,o)}return e}))}function Cr(t,e){return function(n,i){if(null==n)return n;if(!Uo(n))return t(n,i);for(var r=n.length,s=e?r:-1,o=kt(n);(e?s--:++s<r)&&!1!==i(o[s],s,o););return n}}function Pr(t){return function(e,n,i){for(var r=-1,s=kt(e),o=i(e),a=o.length;a--;){var c=o[t?a:++r];if(!1===n(s[c],c,s))break}return e}}function Er(t){return function(e){var n=rn(e=va(e))?un(e):r,i=n?n[0]:e.charAt(0),s=n?br(n,1).join(""):e.slice(1);return i[t]()+s}}function Ir(t){return function(e){return Ie(Za(Ha(e).replace(Zt,"")),t,"")}}function Dr(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Wn(t.prototype),i=t.apply(n,e);return Jo(i)?i:n}}function zr(t){return function(e,n,i){var s=kt(e);if(!Uo(e)){var o=ss(n,3);e=Ca(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,i);return a>-1?s[o?e[a]:a]:r}}function Lr(t){return Jr((function(e){var n=e.length,i=n,o=Nn.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new Rt(s);if(o&&!c&&"wrapper"==is(a))var c=new Nn([],!0)}for(i=c?i:n;++i<n;){var l=is(a=e[i]),h="wrapper"==l?ns(a):r;c=h&&bs(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?c[is(h[0])].apply(c,h[3]):1==a.length&&bs(a)?c[l]():c.thru(a)}return function(){var t=arguments,i=t[0];if(c&&1==t.length&&Vo(i))return c.plant(i).value();for(var r=0,s=n?e[r].apply(this,t):i;++r<n;)s=e[r].call(this,s);return s}}))}function Fr(t,e,n,s,o,a,c,h,u,f){var d=e&l,p=1&e,g=2&e,m=24&e,v=512&e,b=g?r:Dr(t);return function l(){for(var y=arguments.length,x=i(y),_=y;_--;)x[_]=arguments[_];if(m)var w=rs(l),M=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(x,w);if(s&&(x=kr(x,s,o,m)),a&&(x=Sr(x,a,c,m)),y-=M,m&&y<f){var k=an(x,w);return $r(t,e,Fr,l.placeholder,n,x,k,h,u,f-y)}var S=p?n:this,T=g?S[t]:t;return y=x.length,h?x=function(t,e){for(var n=t.length,i=vn(e.length,n),s=Tr(t);i--;){var o=e[i];t[i]=gs(o,n)?s[o]:r}return t}(x,h):v&&y>1&&x.reverse(),d&&u<y&&(x.length=u),this&&this!==ue&&this instanceof l&&(T=b||Dr(T)),T.apply(S,x)}}function jr(t,e){return function(n,i){return function(t,e,n,i){return bi(t,(function(t,r,s){e(i,n(t),r,s)})),i}(n,t,e(i),{})}}function Wr(t,e){return function(n,i){var s;if(n===r&&i===r)return e;if(n!==r&&(s=n),i!==r){if(s===r)return i;"string"==typeof n||"string"==typeof i?(n=or(n),i=or(i)):(n=sr(n),i=sr(i)),s=t(n,i)}return s}}function Br(t){return Jr((function(e){return e=Pe(e,qe(ss())),Yi((function(n){var i=this;return t(e,(function(t){return Me(t,i,n)}))}))}))}function Nr(t,e){var n=(e=e===r?" ":or(e)).length;if(n<2)return n?Qi(e,t):e;var i=Qi(e,fe(t/hn(e)));return rn(e)?br(un(i),0,t).join(""):i.slice(0,t)}function Hr(t){return function(e,n,s){return s&&"number"!=typeof s&&ms(e,n,s)&&(n=s=r),e=fa(e),n===r?(n=e,e=0):n=fa(n),function(t,e,n,r){for(var s=-1,o=mn(fe((e-t)/(n||1)),0),a=i(o);o--;)a[r?o:++s]=t,t+=n;return a}(e,n,s=s===r?e<n?1:-1:fa(s),t)}}function Vr(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ga(e),n=ga(n)),t(e,n)}}function $r(t,e,n,i,s,o,a,l,h,u){var f=8&e;e|=f?c:64,4&(e&=~(f?64:c))||(e&=-4);var d=[t,e,s,f?o:r,f?a:r,f?r:o,f?r:a,l,h,u],p=n.apply(r,d);return bs(t)&&Ts(p,d),p.placeholder=i,As(p,t,e)}function Ur(t){var e=Mt[t];return function(t,n){if(t=ga(t),(n=null==n?0:vn(da(n),292))&&Le(t)){var i=(va(t)+"e").split("e");return+((i=(va(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Qr=Sn&&1/cn(new Sn([,-0]))[1]==h?function(t){return new Sn(t)}:ac;function Yr(t){return function(e){var n=us(e);return n==w?sn(e):n==R?ln(e):function(t,e){return Pe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xr(t,e,n,o,h,u,f,d){var p=2&e;if(!p&&"function"!=typeof t)throw new Rt(s);var g=o?o.length:0;if(g||(e&=-97,o=h=r),f=f===r?f:mn(da(f),0),d=d===r?d:da(d),g-=h?h.length:0,64&e){var m=o,v=h;o=h=r}var b=p?r:ns(t),y=[t,e,n,o,h,m,v,u,f,d];if(b&&function(t,e){var n=t[1],i=e[1],r=n|i,s=r<131,o=i==l&&8==n||i==l&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&i&&(t[2]=e[2],r|=1&n?0:4);var c=e[3];if(c){var h=t[3];t[3]=h?kr(h,c,e[4]):c,t[4]=h?an(t[3],a):e[4]}(c=e[5])&&(h=t[5],t[5]=h?Sr(h,c,e[6]):c,t[6]=h?an(t[5],a):e[6]),(c=e[7])&&(t[7]=c),i&l&&(t[8]=null==t[8]?e[8]:vn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(y,b),t=y[0],e=y[1],n=y[2],o=y[3],h=y[4],!(d=y[9]=y[9]===r?p?0:t.length:mn(y[9]-g,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||16==e?function(t,e,n){var s=Dr(t);return function o(){for(var a=arguments.length,c=i(a),l=a,h=rs(o);l--;)c[l]=arguments[l];var u=a<3&&c[0]!==h&&c[a-1]!==h?[]:an(c,h);return(a-=u.length)<n?$r(t,e,Fr,o.placeholder,r,c,u,r,r,n-a):Me(this&&this!==ue&&this instanceof o?s:t,this,c)}}(t,e,d):e!=c&&33!=e||h.length?Fr.apply(r,y):function(t,e,n,r){var s=1&e,o=Dr(t);return function e(){for(var a=-1,c=arguments.length,l=-1,h=r.length,u=i(h+c),f=this&&this!==ue&&this instanceof e?o:t;++l<h;)u[l]=r[l];for(;c--;)u[l++]=arguments[++a];return Me(f,s?n:this,u)}}(t,e,n,o);else var x=function(t,e,n){var i=1&e,r=Dr(t);return function e(){return(this&&this!==ue&&this instanceof e?r:t).apply(i?n:this,arguments)}}(t,e,n);return As((b?Ki:Ts)(x,y),t,e)}function qr(t,e,n,i){return t===r||Wo(t,Ct[n])&&!It.call(i,n)?e:t}function Zr(t,e,n,i,s,o){return Jo(t)&&Jo(e)&&(o.set(e,t),Wi(t,e,r,Zr,o),o.delete(e)),t}function Kr(t){return ia(t)?r:t}function Gr(t,e,n,i,s,o){var a=1&n,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var h=o.get(t),u=o.get(e);if(h&&u)return h==e&&u==t;var f=-1,d=!0,p=2&n?new Qn:r;for(o.set(t,e),o.set(e,t);++f<c;){var g=t[f],m=e[f];if(i)var v=a?i(m,g,f,e,t,o):i(g,m,f,t,e,o);if(v!==r){if(v)continue;d=!1;break}if(p){if(!ze(e,(function(t,e){if(!Ke(p,e)&&(g===t||s(g,t,n,i,o)))return p.push(e)}))){d=!1;break}}else if(g!==m&&!s(g,m,n,i,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Jr(t){return Os(Ms(t,r,Vs),t+"")}function ts(t){return wi(t,Ca,ls)}function es(t){return wi(t,Pa,hs)}var ns=On?function(t){return On.get(t)}:ac;function is(t){for(var e=t.name+"",n=An[e],i=It.call(An,e)?n.length:0;i--;){var r=n[i],s=r.func;if(null==s||s==t)return r.name}return e}function rs(t){return(It.call(jn,"placeholder")?jn:t).placeholder}function ss(){var t=jn.iteratee||ic;return t=t===ic?Ii:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function as(t){for(var e=Ca(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,_s(r)]}return e}function cs(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Ei(n)?n:r}var ls=ge?function(t){return null==t?[]:(t=kt(t),Oe(ge(t),(function(e){return Qt.call(t,e)})))}:pc,hs=ge?function(t){for(var e=[];t;)Ee(e,ls(t)),t=$t(t);return e}:pc,us=Mi;function fs(t,e,n){for(var i=-1,r=(e=mr(e,t)).length,s=!1;++i<r;){var o=zs(e[i]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++i!=r?s:!!(r=null==t?0:t.length)&&Go(r)&&gs(o,r)&&(Vo(t)||Ho(t))}function ds(t){return"function"!=typeof t.constructor||xs(t)?{}:Wn($t(t))}function ps(t){return Vo(t)||Ho(t)||!!(Xt&&t&&t[Xt])}function gs(t,e){var n=typeof t;return!!(e=null==e?u:e)&&("number"==n||"symbol"!=n&&vt.test(t))&&t>-1&&t%1==0&&t<e}function ms(t,e,n){if(!Jo(n))return!1;var i=typeof e;return!!("number"==i?Uo(n)&&gs(e,n.length):"string"==i&&e in n)&&Wo(n[e],t)}function vs(t,e){if(Vo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||J.test(t)||!G.test(t)||null!=e&&t in kt(e)}function bs(t){var e=is(t),n=jn[e];if("function"!=typeof n||!(e in Hn.prototype))return!1;if(t===n)return!0;var i=ns(n);return!!i&&t===i[0]}(wn&&us(new wn(new ArrayBuffer(1)))!=E||Mn&&us(new Mn)!=w||kn&&us(kn.resolve())!=S||Sn&&us(new Sn)!=R||Tn&&us(new Tn)!=C)&&(us=function(t){var e=Mi(t),n=e==k?t.constructor:r,i=n?Ls(n):"";if(i)switch(i){case Cn:return E;case Pn:return w;case En:return S;case In:return R;case Dn:return C}return e});var ys=Pt?Zo:gc;function xs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ct)}function _s(t){return t==t&&!Jo(t)}function ws(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in kt(n))}}function Ms(t,e,n){return e=mn(e===r?t.length-1:e,0),function(){for(var r=arguments,s=-1,o=mn(r.length-e,0),a=i(o);++s<o;)a[s]=r[e+s];s=-1;for(var c=i(e+1);++s<e;)c[s]=r[s];return c[e]=n(a),Me(t,this,c)}}function ks(t,e){return e.length<2?t:_i(t,tr(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ts=Cs(Ki),Rs=he||function(t,e){return ue.setTimeout(t,e)},Os=Cs(Gi);function As(t,e,n){var i=e+"";return Os(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Se(p,(function(n){var i="_."+n[0];e&n[1]&&!Ae(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(i),n)))}function Cs(t){var e=0,n=0;return function(){var i=bn(),s=16-(i-n);if(n=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Ps(t,e){var n=-1,i=t.length,s=i-1;for(e=e===r?i:e;++n<e;){var o=Ui(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Es,Is,Ds=(Es=Io((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,i,r){e.push(i?r.replace(ht,"$1"):n||t)})),e}),(function(t){return 500===Is.size&&Is.clear(),t})),Is=Es.cache,Es);function zs(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ls(t){if(null!=t){try{return Et.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Fs(t){if(t instanceof Hn)return t.clone();var e=new Nn(t.__wrapped__,t.__chain__);return e.__actions__=Tr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var js=Yi((function(t,e){return Qo(t)?li(t,gi(e,1,Qo,!0)):[]})),Ws=Yi((function(t,e){var n=Xs(e);return Qo(n)&&(n=r),Qo(t)?li(t,gi(e,1,Qo,!0),ss(n,2)):[]})),Bs=Yi((function(t,e){var n=Xs(e);return Qo(n)&&(n=r),Qo(t)?li(t,gi(e,1,Qo,!0),r,n):[]}));function Ns(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:da(n);return r<0&&(r=mn(i+r,0)),je(t,ss(e,3),r)}function Hs(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i-1;return n!==r&&(s=da(n),s=n<0?mn(i+s,0):vn(s,i-1)),je(t,ss(e,3),s,!0)}function Vs(t){return null!=t&&t.length?gi(t,1):[]}function $s(t){return t&&t.length?t[0]:r}var Us=Yi((function(t){var e=Pe(t,pr);return e.length&&e[0]===t[0]?Ri(e):[]})),Qs=Yi((function(t){var e=Xs(t),n=Pe(t,pr);return e===Xs(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Ri(n,ss(e,2)):[]})),Ys=Yi((function(t){var e=Xs(t),n=Pe(t,pr);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Ri(n,r,e):[]}));function Xs(t){var e=null==t?0:t.length;return e?t[e-1]:r}var qs=Yi(Zs);function Zs(t,e){return t&&t.length&&e&&e.length?Vi(t,e):t}var Ks=Jr((function(t,e){var n=null==t?0:t.length,i=ri(t,e);return $i(t,Pe(e,(function(t){return gs(t,n)?+t:t})).sort(Mr)),i}));function Gs(t){return null==t?t:_n.call(t)}var Js=Yi((function(t){return ar(gi(t,1,Qo,!0))})),to=Yi((function(t){var e=Xs(t);return Qo(e)&&(e=r),ar(gi(t,1,Qo,!0),ss(e,2))})),eo=Yi((function(t){var e=Xs(t);return e="function"==typeof e?e:r,ar(gi(t,1,Qo,!0),r,e)}));function no(t){if(!t||!t.length)return[];var e=0;return t=Oe(t,(function(t){if(Qo(t))return e=mn(t.length,e),!0})),Ye(e,(function(e){return Pe(t,Ve(e))}))}function io(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Pe(n,(function(t){return Me(e,r,t)}))}var ro=Yi((function(t,e){return Qo(t)?li(t,e):[]})),so=Yi((function(t){return fr(Oe(t,Qo))})),oo=Yi((function(t){var e=Xs(t);return Qo(e)&&(e=r),fr(Oe(t,Qo),ss(e,2))})),ao=Yi((function(t){var e=Xs(t);return e="function"==typeof e?e:r,fr(Oe(t,Qo),r,e)})),co=Yi(no),lo=Yi((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,io(t,n)}));function ho(t){var e=jn(t);return e.__chain__=!0,e}function uo(t,e){return e(t)}var fo=Jr((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,s=function(e){return ri(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Hn&&gs(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:uo,args:[s],thisArg:r}),new Nn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(s)})),po=Or((function(t,e,n){It.call(t,n)?++t[n]:ii(t,n,1)})),go=zr(Ns),mo=zr(Hs);function vo(t,e){return(Vo(t)?Se:hi)(t,ss(e,3))}function bo(t,e){return(Vo(t)?Te:ui)(t,ss(e,3))}var yo=Or((function(t,e,n){It.call(t,n)?t[n].push(e):ii(t,n,[e])})),xo=Yi((function(t,e,n){var r=-1,s="function"==typeof e,o=Uo(t)?i(t.length):[];return hi(t,(function(t){o[++r]=s?Me(e,t,n):Oi(t,e,n)})),o})),_o=Or((function(t,e,n){ii(t,n,e)}));function wo(t,e){return(Vo(t)?Pe:Li)(t,ss(e,3))}var Mo=Or((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),ko=Yi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ms(t,e[0],e[1])?e=[]:n>2&&ms(e[0],e[1],e[2])&&(e=[e[0]]),Ni(t,gi(e,1),[])})),So=le||function(){return ue.Date.now()};function To(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Xr(t,l,r,r,r,r,e)}function Ro(t,e){var n;if("function"!=typeof e)throw new Rt(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Oo=Yi((function(t,e,n){var i=1;if(n.length){var r=an(n,rs(Oo));i|=c}return Xr(t,i,e,n,r)})),Ao=Yi((function(t,e,n){var i=3;if(n.length){var r=an(n,rs(Ao));i|=c}return Xr(e,i,t,n,r)}));function Co(t,e,n){var i,o,a,c,l,h,u=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Rt(s);function g(e){var n=i,s=o;return i=o=r,u=e,c=t.apply(s,n)}function m(t){var n=t-h;return h===r||n>=e||n<0||d&&t-u>=a}function v(){var t=So();if(m(t))return b(t);l=Rs(v,function(t){var n=e-(t-h);return d?vn(n,a-(t-u)):n}(t))}function b(t){return l=r,p&&i?g(t):(i=o=r,c)}function y(){var t=So(),n=m(t);if(i=arguments,o=this,h=t,n){if(l===r)return function(t){return u=t,l=Rs(v,e),f?g(t):c}(h);if(d)return yr(l),l=Rs(v,e),g(h)}return l===r&&(l=Rs(v,e)),c}return e=ga(e)||0,Jo(n)&&(f=!!n.leading,a=(d="maxWait"in n)?mn(ga(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){l!==r&&yr(l),u=0,i=h=o=l=r},y.flush=function(){return l===r?c:b(So())},y}var Po=Yi((function(t,e){return ci(t,1,e)})),Eo=Yi((function(t,e,n){return ci(t,ga(e)||0,n)}));function Io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Rt(s);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=t.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(Io.Cache||Un),n}function Do(t){if("function"!=typeof t)throw new Rt(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Io.Cache=Un;var zo=vr((function(t,e){var n=(e=1==e.length&&Vo(e[0])?Pe(e[0],qe(ss())):Pe(gi(e,1),qe(ss()))).length;return Yi((function(i){for(var r=-1,s=vn(i.length,n);++r<s;)i[r]=e[r].call(this,i[r]);return Me(t,this,i)}))})),Lo=Yi((function(t,e){var n=an(e,rs(Lo));return Xr(t,c,r,e,n)})),Fo=Yi((function(t,e){var n=an(e,rs(Fo));return Xr(t,64,r,e,n)})),jo=Jr((function(t,e){return Xr(t,256,r,r,r,e)}));function Wo(t,e){return t===e||t!=t&&e!=e}var Bo=Vr(ki),No=Vr((function(t,e){return t>=e})),Ho=Ai(function(){return arguments}())?Ai:function(t){return ta(t)&&It.call(t,"callee")&&!Qt.call(t,"callee")},Vo=i.isArray,$o=ve?qe(ve):function(t){return ta(t)&&Mi(t)==P};function Uo(t){return null!=t&&Go(t.length)&&!Zo(t)}function Qo(t){return ta(t)&&Uo(t)}var Yo=me||gc,Xo=be?qe(be):function(t){return ta(t)&&Mi(t)==b};function qo(t){if(!ta(t))return!1;var e=Mi(t);return e==y||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Zo(t){if(!Jo(t))return!1;var e=Mi(t);return e==x||e==_||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ko(t){return"number"==typeof t&&t==da(t)}function Go(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Jo(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=ye?qe(ye):function(t){return ta(t)&&us(t)==w};function na(t){return"number"==typeof t||ta(t)&&Mi(t)==M}function ia(t){if(!ta(t)||Mi(t)!=k)return!1;var e=$t(t);if(null===e)return!0;var n=It.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Et.call(n)==Ft}var ra=xe?qe(xe):function(t){return ta(t)&&Mi(t)==T},sa=_e?qe(_e):function(t){return ta(t)&&us(t)==R};function oa(t){return"string"==typeof t||!Vo(t)&&ta(t)&&Mi(t)==O}function aa(t){return"symbol"==typeof t||ta(t)&&Mi(t)==A}var ca=we?qe(we):function(t){return ta(t)&&Go(t.length)&&!!re[Mi(t)]},la=Vr(zi),ha=Vr((function(t,e){return t<=e}));function ua(t){if(!t)return[];if(Uo(t))return oa(t)?un(t):Tr(t);if(qt&&t[qt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[qt]());var e=us(t);return(e==w?sn:e==R?cn:Wa)(t)}function fa(t){return t?(t=ga(t))===h||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=fa(t),n=e%1;return e==e?n?e-n:e:0}function pa(t){return t?si(da(t),0,d):0}function ga(t){if("number"==typeof t)return t;if(aa(t))return f;if(Jo(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Jo(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Xe(t);var n=pt.test(t);return n||mt.test(t)?ce(t.slice(2),n?2:8):dt.test(t)?f:+t}function ma(t){return Rr(t,Pa(t))}function va(t){return null==t?"":or(t)}var ba=Ar((function(t,e){if(xs(e)||Uo(e))Rr(e,Ca(e),t);else for(var n in e)It.call(e,n)&&Jn(t,n,e[n])})),ya=Ar((function(t,e){Rr(e,Pa(e),t)})),xa=Ar((function(t,e,n,i){Rr(e,Pa(e),t,i)})),_a=Ar((function(t,e,n,i){Rr(e,Ca(e),t,i)})),wa=Jr(ri),Ma=Yi((function(t,e){t=kt(t);var n=-1,i=e.length,s=i>2?e[2]:r;for(s&&ms(e[0],e[1],s)&&(i=1);++n<i;)for(var o=e[n],a=Pa(o),c=-1,l=a.length;++c<l;){var h=a[c],u=t[h];(u===r||Wo(u,Ct[h])&&!It.call(t,h))&&(t[h]=o[h])}return t})),ka=Yi((function(t){return t.push(r,Zr),Me(Ia,r,t)}));function Sa(t,e,n){var i=null==t?r:_i(t,e);return i===r?n:i}function Ta(t,e){return null!=t&&fs(t,e,Ti)}var Ra=jr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n}),Ja(nc)),Oa=jr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),It.call(t,e)?t[e].push(n):t[e]=[n]}),ss),Aa=Yi(Oi);function Ca(t){return Uo(t)?Xn(t):Di(t)}function Pa(t){return Uo(t)?Xn(t,!0):function(t){if(!Jo(t))return function(t){var e=[];if(null!=t)for(var n in kt(t))e.push(n);return e}(t);var e=xs(t),n=[];for(var i in t)("constructor"!=i||!e&&It.call(t,i))&&n.push(i);return n}(t)}var Ea=Ar((function(t,e,n){Wi(t,e,n)})),Ia=Ar((function(t,e,n,i){Wi(t,e,n,i)})),Da=Jr((function(t,e){var n={};if(null==t)return n;var i=!1;e=Pe(e,(function(e){return e=mr(e,t),i||(i=e.length>1),e})),Rr(t,es(t),n),i&&(n=oi(n,7,Kr));for(var r=e.length;r--;)cr(n,e[r]);return n})),za=Jr((function(t,e){return null==t?{}:function(t,e){return Hi(t,e,(function(e,n){return Ta(t,n)}))}(t,e)}));function La(t,e){if(null==t)return{};var n=Pe(es(t),(function(t){return[t]}));return e=ss(e),Hi(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Yr(Ca),ja=Yr(Pa);function Wa(t){return null==t?[]:Ze(t,Ca(t))}var Ba=Ir((function(t,e,n){return e=e.toLowerCase(),t+(n?Na(e):e)}));function Na(t){return qa(va(t).toLowerCase())}function Ha(t){return(t=va(t))&&t.replace(bt,tn).replace(Kt,"")}var Va=Ir((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),$a=Ir((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ua=Er("toLowerCase"),Qa=Ir((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Ya=Ir((function(t,e,n){return t+(n?" ":"")+qa(e)})),Xa=Ir((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),qa=Er("toUpperCase");function Za(t,e,n){return t=va(t),(e=n?r:e)===r?function(t){return ee.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(ct)||[]}(t):t.match(e)||[]}var Ka=Yi((function(t,e){try{return Me(t,r,e)}catch(t){return qo(t)?t:new _t(t)}})),Ga=Jr((function(t,e){return Se(e,(function(e){e=zs(e),ii(t,e,Oo(t[e],t))})),t}));function Ja(t){return function(){return t}}var tc=Lr(),ec=Lr(!0);function nc(t){return t}function ic(t){return Ii("function"==typeof t?t:oi(t,1))}var rc=Yi((function(t,e){return function(n){return Oi(n,t,e)}})),sc=Yi((function(t,e){return function(n){return Oi(t,n,e)}}));function oc(t,e,n){var i=Ca(e),r=xi(e,i);null!=n||Jo(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=xi(e,Ca(e)));var s=!(Jo(n)&&"chain"in n&&!n.chain),o=Zo(t);return Se(r,(function(n){var i=e[n];t[n]=i,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Tr(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Ee([this.value()],arguments))})})),t}function ac(){}var cc=Br(Pe),lc=Br(Re),hc=Br(ze);function uc(t){return vs(t)?Ve(zs(t)):function(t){return function(e){return _i(e,t)}}(t)}var fc=Hr(),dc=Hr(!0);function pc(){return[]}function gc(){return!1}var mc,vc=Wr((function(t,e){return t+e}),0),bc=Ur("ceil"),yc=Wr((function(t,e){return t/e}),1),xc=Ur("floor"),_c=Wr((function(t,e){return t*e}),1),wc=Ur("round"),Mc=Wr((function(t,e){return t-e}),0);return jn.after=function(t,e){if("function"!=typeof e)throw new Rt(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},jn.ary=To,jn.assign=ba,jn.assignIn=ya,jn.assignInWith=xa,jn.assignWith=_a,jn.at=wa,jn.before=Ro,jn.bind=Oo,jn.bindAll=Ga,jn.bindKey=Ao,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Vo(t)?t:[t]},jn.chain=ho,jn.chunk=function(t,e,n){e=(n?ms(t,e,n):e===r)?1:mn(da(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,c=i(fe(s/e));o<s;)c[a++]=tr(t,o,o+=e);return c},jn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var s=t[e];s&&(r[i++]=s)}return r},jn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=i(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return Ee(Vo(n)?Tr(n):[n],gi(e,1))},jn.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Pe(t,(function(t){if("function"!=typeof t[1])throw new Rt(s);return[n(t[0]),t[1]]})):[],Yi((function(n){for(var i=-1;++i<e;){var r=t[i];if(Me(r[0],this,n))return Me(r[1],this,n)}}))},jn.conforms=function(t){return function(t){var e=Ca(t);return function(n){return ai(n,t,e)}}(oi(t,1))},jn.constant=Ja,jn.countBy=po,jn.create=function(t,e){var n=Wn(t);return null==e?n:ni(n,e)},jn.curry=function t(e,n,i){var s=Xr(e,8,r,r,r,r,r,n=i?r:n);return s.placeholder=t.placeholder,s},jn.curryRight=function t(e,n,i){var s=Xr(e,16,r,r,r,r,r,n=i?r:n);return s.placeholder=t.placeholder,s},jn.debounce=Co,jn.defaults=Ma,jn.defaultsDeep=ka,jn.defer=Po,jn.delay=Eo,jn.difference=js,jn.differenceBy=Ws,jn.differenceWith=Bs,jn.drop=function(t,e,n){var i=null==t?0:t.length;return i?tr(t,(e=n||e===r?1:da(e))<0?0:e,i):[]},jn.dropRight=function(t,e,n){var i=null==t?0:t.length;return i?tr(t,0,(e=i-(e=n||e===r?1:da(e)))<0?0:e):[]},jn.dropRightWhile=function(t,e){return t&&t.length?hr(t,ss(e,3),!0,!0):[]},jn.dropWhile=function(t,e){return t&&t.length?hr(t,ss(e,3),!0):[]},jn.fill=function(t,e,n,i){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&ms(t,e,n)&&(n=0,i=s),function(t,e,n,i){var s=t.length;for((n=da(n))<0&&(n=-n>s?0:s+n),(i=i===r||i>s?s:da(i))<0&&(i+=s),i=n>i?0:pa(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},jn.filter=function(t,e){return(Vo(t)?Oe:pi)(t,ss(e,3))},jn.flatMap=function(t,e){return gi(wo(t,e),1)},jn.flatMapDeep=function(t,e){return gi(wo(t,e),h)},jn.flatMapDepth=function(t,e,n){return n=n===r?1:da(n),gi(wo(t,e),n)},jn.flatten=Vs,jn.flattenDeep=function(t){return null!=t&&t.length?gi(t,h):[]},jn.flattenDepth=function(t,e){return null!=t&&t.length?gi(t,e=e===r?1:da(e)):[]},jn.flip=function(t){return Xr(t,512)},jn.flow=tc,jn.flowRight=ec,jn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},jn.functions=function(t){return null==t?[]:xi(t,Ca(t))},jn.functionsIn=function(t){return null==t?[]:xi(t,Pa(t))},jn.groupBy=yo,jn.initial=function(t){return null!=t&&t.length?tr(t,0,-1):[]},jn.intersection=Us,jn.intersectionBy=Qs,jn.intersectionWith=Ys,jn.invert=Ra,jn.invertBy=Oa,jn.invokeMap=xo,jn.iteratee=ic,jn.keyBy=_o,jn.keys=Ca,jn.keysIn=Pa,jn.map=wo,jn.mapKeys=function(t,e){var n={};return e=ss(e,3),bi(t,(function(t,i,r){ii(n,e(t,i,r),t)})),n},jn.mapValues=function(t,e){var n={};return e=ss(e,3),bi(t,(function(t,i,r){ii(n,i,e(t,i,r))})),n},jn.matches=function(t){return Fi(oi(t,1))},jn.matchesProperty=function(t,e){return ji(t,oi(e,1))},jn.memoize=Io,jn.merge=Ea,jn.mergeWith=Ia,jn.method=rc,jn.methodOf=sc,jn.mixin=oc,jn.negate=Do,jn.nthArg=function(t){return t=da(t),Yi((function(e){return Bi(e,t)}))},jn.omit=Da,jn.omitBy=function(t,e){return La(t,Do(ss(e)))},jn.once=function(t){return Ro(2,t)},jn.orderBy=function(t,e,n,i){return null==t?[]:(Vo(e)||(e=null==e?[]:[e]),Vo(n=i?r:n)||(n=null==n?[]:[n]),Ni(t,e,n))},jn.over=cc,jn.overArgs=zo,jn.overEvery=lc,jn.overSome=hc,jn.partial=Lo,jn.partialRight=Fo,jn.partition=Mo,jn.pick=za,jn.pickBy=La,jn.property=uc,jn.propertyOf=function(t){return function(e){return null==t?r:_i(t,e)}},jn.pull=qs,jn.pullAll=Zs,jn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Vi(t,e,ss(n,2)):t},jn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Vi(t,e,r,n):t},jn.pullAt=Ks,jn.range=fc,jn.rangeRight=dc,jn.rearg=jo,jn.reject=function(t,e){return(Vo(t)?Oe:pi)(t,Do(ss(e,3)))},jn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],s=t.length;for(e=ss(e,3);++i<s;){var o=t[i];e(o,i,t)&&(n.push(o),r.push(i))}return $i(t,r),n},jn.rest=function(t,e){if("function"!=typeof t)throw new Rt(s);return Yi(t,e=e===r?e:da(e))},jn.reverse=Gs,jn.sampleSize=function(t,e,n){return e=(n?ms(t,e,n):e===r)?1:da(e),(Vo(t)?Zn:qi)(t,e)},jn.set=function(t,e,n){return null==t?t:Zi(t,e,n)},jn.setWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:Zi(t,e,n,i)},jn.shuffle=function(t){return(Vo(t)?Kn:Ji)(t)},jn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&ms(t,e,n)?(e=0,n=i):(e=null==e?0:da(e),n=n===r?i:da(n)),tr(t,e,n)):[]},jn.sortBy=ko,jn.sortedUniq=function(t){return t&&t.length?rr(t):[]},jn.sortedUniqBy=function(t,e){return t&&t.length?rr(t,ss(e,2)):[]},jn.split=function(t,e,n){return n&&"number"!=typeof n&&ms(t,e,n)&&(e=n=r),(n=n===r?d:n>>>0)?(t=va(t))&&("string"==typeof e||null!=e&&!ra(e))&&!(e=or(e))&&rn(t)?br(un(t),0,n):t.split(e,n):[]},jn.spread=function(t,e){if("function"!=typeof t)throw new Rt(s);return e=null==e?0:mn(da(e),0),Yi((function(n){var i=n[e],r=br(n,0,e);return i&&Ee(r,i),Me(t,this,r)}))},jn.tail=function(t){var e=null==t?0:t.length;return e?tr(t,1,e):[]},jn.take=function(t,e,n){return t&&t.length?tr(t,0,(e=n||e===r?1:da(e))<0?0:e):[]},jn.takeRight=function(t,e,n){var i=null==t?0:t.length;return i?tr(t,(e=i-(e=n||e===r?1:da(e)))<0?0:e,i):[]},jn.takeRightWhile=function(t,e){return t&&t.length?hr(t,ss(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?hr(t,ss(e,3)):[]},jn.tap=function(t,e){return e(t),t},jn.throttle=function(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new Rt(s);return Jo(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Co(t,e,{leading:i,maxWait:e,trailing:r})},jn.thru=uo,jn.toArray=ua,jn.toPairs=Fa,jn.toPairsIn=ja,jn.toPath=function(t){return Vo(t)?Pe(t,zs):aa(t)?[t]:Tr(Ds(va(t)))},jn.toPlainObject=ma,jn.transform=function(t,e,n){var i=Vo(t),r=i||Yo(t)||ca(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=r?i?new s:[]:Jo(t)&&Zo(s)?Wn($t(t)):{}}return(r?Se:bi)(t,(function(t,i,r){return e(n,t,i,r)})),n},jn.unary=function(t){return To(t,1)},jn.union=Js,jn.unionBy=to,jn.unionWith=eo,jn.uniq=function(t){return t&&t.length?ar(t):[]},jn.uniqBy=function(t,e){return t&&t.length?ar(t,ss(e,2)):[]},jn.uniqWith=function(t,e){return e="function"==typeof e?e:r,t&&t.length?ar(t,r,e):[]},jn.unset=function(t,e){return null==t||cr(t,e)},jn.unzip=no,jn.unzipWith=io,jn.update=function(t,e,n){return null==t?t:lr(t,e,gr(n))},jn.updateWith=function(t,e,n,i){return i="function"==typeof i?i:r,null==t?t:lr(t,e,gr(n),i)},jn.values=Wa,jn.valuesIn=function(t){return null==t?[]:Ze(t,Pa(t))},jn.without=ro,jn.words=Za,jn.wrap=function(t,e){return Lo(gr(e),t)},jn.xor=so,jn.xorBy=oo,jn.xorWith=ao,jn.zip=co,jn.zipObject=function(t,e){return dr(t||[],e||[],Jn)},jn.zipObjectDeep=function(t,e){return dr(t||[],e||[],Zi)},jn.zipWith=lo,jn.entries=Fa,jn.entriesIn=ja,jn.extend=ya,jn.extendWith=xa,oc(jn,jn),jn.add=vc,jn.attempt=Ka,jn.camelCase=Ba,jn.capitalize=Na,jn.ceil=bc,jn.clamp=function(t,e,n){return n===r&&(n=e,e=r),n!==r&&(n=(n=ga(n))==n?n:0),e!==r&&(e=(e=ga(e))==e?e:0),si(ga(t),e,n)},jn.clone=function(t){return oi(t,4)},jn.cloneDeep=function(t){return oi(t,5)},jn.cloneDeepWith=function(t,e){return oi(t,5,e="function"==typeof e?e:r)},jn.cloneWith=function(t,e){return oi(t,4,e="function"==typeof e?e:r)},jn.conformsTo=function(t,e){return null==e||ai(t,e,Ca(e))},jn.deburr=Ha,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=yc,jn.endsWith=function(t,e,n){t=va(t),e=or(e);var i=t.length,s=n=n===r?i:si(da(n),0,i);return(n-=e.length)>=0&&t.slice(n,s)==e},jn.eq=Wo,jn.escape=function(t){return(t=va(t))&&X.test(t)?t.replace(Q,en):t},jn.escapeRegExp=function(t){return(t=va(t))&&nt.test(t)?t.replace(et,"\\$&"):t},jn.every=function(t,e,n){var i=Vo(t)?Re:fi;return n&&ms(t,e,n)&&(e=r),i(t,ss(e,3))},jn.find=go,jn.findIndex=Ns,jn.findKey=function(t,e){return Fe(t,ss(e,3),bi)},jn.findLast=mo,jn.findLastIndex=Hs,jn.findLastKey=function(t,e){return Fe(t,ss(e,3),yi)},jn.floor=xc,jn.forEach=vo,jn.forEachRight=bo,jn.forIn=function(t,e){return null==t?t:mi(t,ss(e,3),Pa)},jn.forInRight=function(t,e){return null==t?t:vi(t,ss(e,3),Pa)},jn.forOwn=function(t,e){return t&&bi(t,ss(e,3))},jn.forOwnRight=function(t,e){return t&&yi(t,ss(e,3))},jn.get=Sa,jn.gt=Bo,jn.gte=No,jn.has=function(t,e){return null!=t&&fs(t,e,Si)},jn.hasIn=Ta,jn.head=$s,jn.identity=nc,jn.includes=function(t,e,n,i){t=Uo(t)?t:Wa(t),n=n&&!i?da(n):0;var r=t.length;return n<0&&(n=mn(r+n,0)),oa(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&We(t,e,n)>-1},jn.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:da(n);return r<0&&(r=mn(i+r,0)),We(t,e,r)},jn.inRange=function(t,e,n){return e=fa(e),n===r?(n=e,e=0):n=fa(n),function(t,e,n){return t>=vn(e,n)&&t<mn(e,n)}(t=ga(t),e,n)},jn.invoke=Aa,jn.isArguments=Ho,jn.isArray=Vo,jn.isArrayBuffer=$o,jn.isArrayLike=Uo,jn.isArrayLikeObject=Qo,jn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Mi(t)==v},jn.isBuffer=Yo,jn.isDate=Xo,jn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ia(t)},jn.isEmpty=function(t){if(null==t)return!0;if(Uo(t)&&(Vo(t)||"string"==typeof t||"function"==typeof t.splice||Yo(t)||ca(t)||Ho(t)))return!t.length;var e=us(t);if(e==w||e==R)return!t.size;if(xs(t))return!Di(t).length;for(var n in t)if(It.call(t,n))return!1;return!0},jn.isEqual=function(t,e){return Ci(t,e)},jn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Ci(t,e,r,n):!!i},jn.isError=qo,jn.isFinite=function(t){return"number"==typeof t&&Le(t)},jn.isFunction=Zo,jn.isInteger=Ko,jn.isLength=Go,jn.isMap=ea,jn.isMatch=function(t,e){return t===e||Pi(t,e,as(e))},jn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Pi(t,e,as(e),n)},jn.isNaN=function(t){return na(t)&&t!=+t},jn.isNative=function(t){if(ys(t))throw new _t("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ei(t)},jn.isNil=function(t){return null==t},jn.isNull=function(t){return null===t},jn.isNumber=na,jn.isObject=Jo,jn.isObjectLike=ta,jn.isPlainObject=ia,jn.isRegExp=ra,jn.isSafeInteger=function(t){return Ko(t)&&t>=-9007199254740991&&t<=u},jn.isSet=sa,jn.isString=oa,jn.isSymbol=aa,jn.isTypedArray=ca,jn.isUndefined=function(t){return t===r},jn.isWeakMap=function(t){return ta(t)&&us(t)==C},jn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Mi(t)},jn.join=function(t,e){return null==t?"":$e.call(t,e)},jn.kebabCase=Va,jn.last=Xs,jn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var s=i;return n!==r&&(s=(s=da(n))<0?mn(i+s,0):vn(s,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,s):je(t,Ne,s,!0)},jn.lowerCase=$a,jn.lowerFirst=Ua,jn.lt=la,jn.lte=ha,jn.max=function(t){return t&&t.length?di(t,nc,ki):r},jn.maxBy=function(t,e){return t&&t.length?di(t,ss(e,2),ki):r},jn.mean=function(t){return He(t,nc)},jn.meanBy=function(t,e){return He(t,ss(e,2))},jn.min=function(t){return t&&t.length?di(t,nc,zi):r},jn.minBy=function(t,e){return t&&t.length?di(t,ss(e,2),zi):r},jn.stubArray=pc,jn.stubFalse=gc,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=_c,jn.nth=function(t,e){return t&&t.length?Bi(t,da(e)):r},jn.noConflict=function(){return ue._===this&&(ue._=jt),this},jn.noop=ac,jn.now=So,jn.pad=function(t,e,n){t=va(t);var i=(e=da(e))?hn(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return Nr(de(r),n)+t+Nr(fe(r),n)},jn.padEnd=function(t,e,n){t=va(t);var i=(e=da(e))?hn(t):0;return e&&i<e?t+Nr(e-i,n):t},jn.padStart=function(t,e,n){t=va(t);var i=(e=da(e))?hn(t):0;return e&&i<e?Nr(e-i,n)+t:t},jn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),yn(va(t).replace(it,""),e||0)},jn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&ms(t,e,n)&&(e=n=r),n===r&&("boolean"==typeof e?(n=e,e=r):"boolean"==typeof t&&(n=t,t=r)),t===r&&e===r?(t=0,e=1):(t=fa(t),e===r?(e=t,t=0):e=fa(e)),t>e){var i=t;t=e,e=i}if(n||t%1||e%1){var s=xn();return vn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Ui(t,e)},jn.reduce=function(t,e,n){var i=Vo(t)?Ie:Ue,r=arguments.length<3;return i(t,ss(e,4),n,r,hi)},jn.reduceRight=function(t,e,n){var i=Vo(t)?De:Ue,r=arguments.length<3;return i(t,ss(e,4),n,r,ui)},jn.repeat=function(t,e,n){return e=(n?ms(t,e,n):e===r)?1:da(e),Qi(va(t),e)},jn.replace=function(){var t=arguments,e=va(t[0]);return t.length<3?e:e.replace(t[1],t[2])},jn.result=function(t,e,n){var i=-1,s=(e=mr(e,t)).length;for(s||(s=1,t=r);++i<s;){var o=null==t?r:t[zs(e[i])];o===r&&(i=s,o=n),t=Zo(o)?o.call(t):o}return t},jn.round=wc,jn.runInContext=t,jn.sample=function(t){return(Vo(t)?qn:Xi)(t)},jn.size=function(t){if(null==t)return 0;if(Uo(t))return oa(t)?hn(t):t.length;var e=us(t);return e==w||e==R?t.size:Di(t).length},jn.snakeCase=Qa,jn.some=function(t,e,n){var i=Vo(t)?ze:er;return n&&ms(t,e,n)&&(e=r),i(t,ss(e,3))},jn.sortedIndex=function(t,e){return nr(t,e)},jn.sortedIndexBy=function(t,e,n){return ir(t,e,ss(n,2))},jn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=nr(t,e);if(i<n&&Wo(t[i],e))return i}return-1},jn.sortedLastIndex=function(t,e){return nr(t,e,!0)},jn.sortedLastIndexBy=function(t,e,n){return ir(t,e,ss(n,2),!0)},jn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=nr(t,e,!0)-1;if(Wo(t[n],e))return n}return-1},jn.startCase=Ya,jn.startsWith=function(t,e,n){return t=va(t),n=null==n?0:si(da(n),0,t.length),e=or(e),t.slice(n,n+e.length)==e},jn.subtract=Mc,jn.sum=function(t){return t&&t.length?Qe(t,nc):0},jn.sumBy=function(t,e){return t&&t.length?Qe(t,ss(e,2)):0},jn.template=function(t,e,n){var i=jn.templateSettings;n&&ms(t,e,n)&&(e=r),t=va(t),e=xa({},e,i,qr);var s,o,a=xa({},e.imports,i.imports,qr),c=Ca(a),l=Ze(a,c),h=0,u=e.interpolate||yt,f="__p += '",d=St((e.escape||yt).source+"|"+u.source+"|"+(u===K?ut:yt).source+"|"+(e.evaluate||yt).source+"|$","g"),p="//# sourceURL="+(It.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ie+"]")+"\n";t.replace(d,(function(e,n,i,r,a,c){return i||(i=r),f+=t.slice(h,c).replace(xt,nn),n&&(s=!0,f+="' +\n__e("+n+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),i&&(f+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),h=c+e.length,e})),f+="';\n";var g=It.call(e,"variable")&&e.variable;if(g){if(lt.test(g))throw new _t("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(H,""):f).replace(V,"$1").replace($,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Ka((function(){return wt(c,p+"return "+f).apply(r,l)}));if(m.source=f,qo(m))throw m;return m},jn.times=function(t,e){if((t=da(t))<1||t>u)return[];var n=d,i=vn(t,d);e=ss(e),t-=d;for(var r=Ye(i,e);++n<t;)e(n);return r},jn.toFinite=fa,jn.toInteger=da,jn.toLength=pa,jn.toLower=function(t){return va(t).toLowerCase()},jn.toNumber=ga,jn.toSafeInteger=function(t){return t?si(da(t),-9007199254740991,u):0===t?t:0},jn.toString=va,jn.toUpper=function(t){return va(t).toUpperCase()},jn.trim=function(t,e,n){if((t=va(t))&&(n||e===r))return Xe(t);if(!t||!(e=or(e)))return t;var i=un(t),s=un(e);return br(i,Ge(i,s),Je(i,s)+1).join("")},jn.trimEnd=function(t,e,n){if((t=va(t))&&(n||e===r))return t.slice(0,fn(t)+1);if(!t||!(e=or(e)))return t;var i=un(t);return br(i,0,Je(i,un(e))+1).join("")},jn.trimStart=function(t,e,n){if((t=va(t))&&(n||e===r))return t.replace(it,"");if(!t||!(e=or(e)))return t;var i=un(t);return br(i,Ge(i,un(e))).join("")},jn.truncate=function(t,e){var n=30,i="...";if(Jo(e)){var s="separator"in e?e.separator:s;n="length"in e?da(e.length):n,i="omission"in e?or(e.omission):i}var o=(t=va(t)).length;if(rn(t)){var a=un(t);o=a.length}if(n>=o)return t;var c=n-hn(i);if(c<1)return i;var l=a?br(a,0,c).join(""):t.slice(0,c);if(s===r)return l+i;if(a&&(c+=l.length-c),ra(s)){if(t.slice(c).search(s)){var h,u=l;for(s.global||(s=St(s.source,va(ft.exec(s))+"g")),s.lastIndex=0;h=s.exec(u);)var f=h.index;l=l.slice(0,f===r?c:f)}}else if(t.indexOf(or(s),c)!=c){var d=l.lastIndexOf(s);d>-1&&(l=l.slice(0,d))}return l+i},jn.unescape=function(t){return(t=va(t))&&Y.test(t)?t.replace(U,dn):t},jn.uniqueId=function(t){var e=++Dt;return va(t)+e},jn.upperCase=Xa,jn.upperFirst=qa,jn.each=vo,jn.eachRight=bo,jn.first=$s,oc(jn,(mc={},bi(jn,(function(t,e){It.call(jn.prototype,e)||(mc[e]=t)})),mc),{chain:!1}),jn.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){jn[t].placeholder=jn})),Se(["drop","take"],(function(t,e){Hn.prototype[t]=function(n){n=n===r?1:mn(da(n),0);var i=this.__filtered__&&!e?new Hn(this):this.clone();return i.__filtered__?i.__takeCount__=vn(n,i.__takeCount__):i.__views__.push({size:vn(n,d),type:t+(i.__dir__<0?"Right":"")}),i},Hn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var n=e+1,i=1==n||3==n;Hn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Hn.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Hn.prototype[t]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(nc)},Hn.prototype.find=function(t){return this.filter(t).head()},Hn.prototype.findLast=function(t){return this.reverse().find(t)},Hn.prototype.invokeMap=Yi((function(t,e){return"function"==typeof t?new Hn(this):this.map((function(n){return Oi(n,t,e)}))})),Hn.prototype.reject=function(t){return this.filter(Do(ss(t)))},Hn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Hn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==r&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},Hn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Hn.prototype.toArray=function(){return this.take(d)},bi(Hn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),s=jn[i?"take"+("last"==e?"Right":""):e],o=i||/^find/.test(e);s&&(jn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof Hn,l=a[0],h=c||Vo(e),u=function(t){var e=s.apply(jn,Ee([t],a));return i&&f?e[0]:e};h&&n&&"function"==typeof l&&1!=l.length&&(c=h=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,g=c&&!d;if(!o&&h){e=g?e:new Hn(this);var m=t.apply(e,a);return m.__actions__.push({func:uo,args:[u],thisArg:r}),new Nn(m,f)}return p&&g?t.apply(this,a):(m=this.thru(u),p?i?m.value()[0]:m.value():m)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Ot[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);jn.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(Vo(r)?r:[],t)}return this[n]((function(n){return e.apply(Vo(n)?n:[],t)}))}})),bi(Hn.prototype,(function(t,e){var n=jn[e];if(n){var i=n.name+"";It.call(An,i)||(An[i]=[]),An[i].push({name:e,func:n})}})),An[Fr(r,2).name]=[{name:"wrapper",func:r}],Hn.prototype.clone=function(){var t=new Hn(this.__wrapped__);return t.__actions__=Tr(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Tr(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Tr(this.__views__),t},Hn.prototype.reverse=function(){if(this.__filtered__){var t=new Hn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Hn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Vo(t),i=e<0,r=n?t.length:0,s=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var s=n[i],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=vn(e,t+o);break;case"takeRight":t=mn(t,e-o)}}return{start:t,end:e}}(0,r,this.__views__),o=s.start,a=s.end,c=a-o,l=i?a:o-1,h=this.__iteratees__,u=h.length,f=0,d=vn(c,this.__takeCount__);if(!n||!i&&r==c&&d==c)return ur(t,this.__actions__);var p=[];t:for(;c--&&f<d;){for(var g=-1,m=t[l+=e];++g<u;){var v=h[g],b=v.iteratee,y=v.type,x=b(m);if(2==y)m=x;else if(!x){if(1==y)continue t;break t}}p[f++]=m}return p},jn.prototype.at=fo,jn.prototype.chain=function(){return ho(this)},jn.prototype.commit=function(){return new Nn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===r&&(this.__values__=ua(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?r:this.__values__[this.__index__++]}},jn.prototype.plant=function(t){for(var e,n=this;n instanceof Bn;){var i=Fs(n);i.__index__=0,i.__values__=r,e?s.__wrapped__=i:e=i;var s=i;n=n.__wrapped__}return s.__wrapped__=t,e},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Hn){var e=t;return this.__actions__.length&&(e=new Hn(this)),(e=e.reverse()).__actions__.push({func:uo,args:[Gs],thisArg:r}),new Nn(e,this.__chain__)}return this.thru(Gs)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return ur(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,qt&&(jn.prototype[qt]=function(){return this}),jn}();ue._=pn,(i=function(){return pn}.call(e,n,e,t))===r||(t.exports=i)}.call(this)},1105:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6942),r=n.n(i),s=n(6540),o=n(6519),a=n(4848);const c=s.forwardRef(((t,e)=>{const[{className:n,...i},{as:s="div",bsPrefix:c,spans:l}]=function({as:t,bsPrefix:e,className:n,...i}){e=(0,o.oU)(e,"col");const s=(0,o.gy)(),a=(0,o.Jm)(),c=[],l=[];return s.forEach((t=>{const n=i[t];let r,s,o;delete i[t],"object"==typeof n&&null!=n?({span:r,offset:s,order:o}=n):r=n;const h=t!==a?`-${t}`:"";r&&c.push(!0===r?`${e}${h}`:`${e}${h}-${r}`),null!=o&&l.push(`order${h}-${o}`),null!=s&&l.push(`offset${h}-${s}`)})),[{...i,className:r()(n,...c,...l)},{as:t,bsPrefix:e,spans:c}]}(t);return(0,a.jsx)(s,{...i,ref:e,className:r()(n,!l.length&&c)})}));c.displayName="Col";const l=c},3048:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6942),r=n.n(i),s=n(6540),o=n(6519),a=n(4848);const c=s.forwardRef((({bsPrefix:t,fluid:e=!1,as:n="div",className:i,...s},c)=>{const l=(0,o.oU)(t,"container"),h="string"==typeof e?`-${e}`:"-fluid";return(0,a.jsx)(n,{ref:c,...s,className:r()(i,e?`${l}${h}`:l)})}));c.displayName="Container";const l=c},1376:(t,e,n)=>{"use strict";n.d(e,{A:()=>N});var i=n(6942),r=n.n(i),s=n(5556),o=n.n(s),a=n(6540),c=n(4848);const l={type:o().string,tooltip:o().bool,as:o().elementType},h=a.forwardRef((({as:t="div",className:e,type:n="valid",tooltip:i=!1,...s},o)=>(0,c.jsx)(t,{...s,ref:o,className:r()(e,`${n}-${i?"tooltip":"feedback"}`)})));h.displayName="Feedback",h.propTypes=l;const u=h,f=a.createContext({});var d=n(6519);const p=a.forwardRef((({id:t,bsPrefix:e,className:n,type:i="checkbox",isValid:s=!1,isInvalid:o=!1,as:l="input",...h},u)=>{const{controlId:p}=(0,a.useContext)(f);return e=(0,d.oU)(e,"form-check-input"),(0,c.jsx)(l,{...h,ref:u,type:i,id:t||p,className:r()(n,e,s&&"is-valid",o&&"is-invalid")})}));p.displayName="FormCheckInput";const g=p,m=a.forwardRef((({bsPrefix:t,className:e,htmlFor:n,...i},s)=>{const{controlId:o}=(0,a.useContext)(f);return t=(0,d.oU)(t,"form-check-label"),(0,c.jsx)("label",{...i,ref:s,htmlFor:n||o,className:r()(e,t)})}));m.displayName="FormCheckLabel";const v=m,b=a.forwardRef((({id:t,bsPrefix:e,bsSwitchPrefix:n,inline:i=!1,reverse:s=!1,disabled:o=!1,isValid:l=!1,isInvalid:h=!1,feedbackTooltip:p=!1,feedback:m,feedbackType:b,className:y,style:x,title:_="",type:w="checkbox",label:M,children:k,as:S="input",...T},R)=>{e=(0,d.oU)(e,"form-check"),n=(0,d.oU)(n,"form-switch");const{controlId:O}=(0,a.useContext)(f),A=(0,a.useMemo)((()=>({controlId:t||O})),[O,t]),C=!k&&null!=M&&!1!==M||function(t,e){return a.Children.toArray(t).some((t=>a.isValidElement(t)&&t.type===e))}(k,v),P=(0,c.jsx)(g,{...T,type:"switch"===w?"checkbox":w,ref:R,isValid:l,isInvalid:h,disabled:o,as:S});return(0,c.jsx)(f.Provider,{value:A,children:(0,c.jsx)("div",{style:x,className:r()(y,C&&e,i&&`${e}-inline`,s&&`${e}-reverse`,"switch"===w&&n),children:k||(0,c.jsxs)(c.Fragment,{children:[P,C&&(0,c.jsx)(v,{title:_,children:M}),m&&(0,c.jsx)(u,{type:b,tooltip:p,children:m})]})})})}));b.displayName="FormCheck";const y=Object.assign(b,{Input:g,Label:v});n(9771);const x=a.forwardRef((({bsPrefix:t,type:e,size:n,htmlSize:i,id:s,className:o,isValid:l=!1,isInvalid:h=!1,plaintext:u,readOnly:p,as:g="input",...m},v)=>{const{controlId:b}=(0,a.useContext)(f);return t=(0,d.oU)(t,"form-control"),(0,c.jsx)(g,{...m,type:e,size:i,ref:v,readOnly:p,id:s||b,className:r()(o,u?`${t}-plaintext`:t,n&&`${t}-${n}`,"color"===e&&`${t}-color`,l&&"is-valid",h&&"is-invalid")})}));x.displayName="FormControl";const _=Object.assign(x,{Feedback:u}),w=a.forwardRef((({className:t,bsPrefix:e,as:n="div",...i},s)=>(e=(0,d.oU)(e,"form-floating"),(0,c.jsx)(n,{ref:s,className:r()(t,e),...i}))));w.displayName="FormFloating";const M=w,k=a.forwardRef((({controlId:t,as:e="div",...n},i)=>{const r=(0,a.useMemo)((()=>({controlId:t})),[t]);return(0,c.jsx)(f.Provider,{value:r,children:(0,c.jsx)(e,{...n,ref:i})})}));k.displayName="FormGroup";const S=k;var T=n(1105);const R=a.forwardRef((({as:t="label",bsPrefix:e,column:n=!1,visuallyHidden:i=!1,className:s,htmlFor:o,...l},h)=>{const{controlId:u}=(0,a.useContext)(f);e=(0,d.oU)(e,"form-label");let p="col-form-label";"string"==typeof n&&(p=`${p} ${p}-${n}`);const g=r()(s,e,i&&"visually-hidden",n&&p);return o=o||u,n?(0,c.jsx)(T.A,{ref:h,as:"label",className:g,htmlFor:o,...l}):(0,c.jsx)(t,{ref:h,className:g,htmlFor:o,...l})}));R.displayName="FormLabel";const O=R,A=a.forwardRef((({bsPrefix:t,className:e,id:n,...i},s)=>{const{controlId:o}=(0,a.useContext)(f);return t=(0,d.oU)(t,"form-range"),(0,c.jsx)("input",{...i,type:"range",ref:s,className:r()(e,t),id:n||o})}));A.displayName="FormRange";const C=A,P=a.forwardRef((({bsPrefix:t,size:e,htmlSize:n,className:i,isValid:s=!1,isInvalid:o=!1,id:l,...h},u)=>{const{controlId:p}=(0,a.useContext)(f);return t=(0,d.oU)(t,"form-select"),(0,c.jsx)("select",{...h,size:n,ref:u,className:r()(i,t,e&&`${t}-${e}`,s&&"is-valid",o&&"is-invalid"),id:l||p})}));P.displayName="FormSelect";const E=P,I=a.forwardRef((({bsPrefix:t,className:e,as:n="small",muted:i,...s},o)=>(t=(0,d.oU)(t,"form-text"),(0,c.jsx)(n,{...s,ref:o,className:r()(e,t,i&&"text-muted")}))));I.displayName="FormText";const D=I,z=a.forwardRef(((t,e)=>(0,c.jsx)(y,{...t,ref:e,type:"switch"})));z.displayName="Switch";const L=Object.assign(z,{Input:y.Input,Label:y.Label}),F=a.forwardRef((({bsPrefix:t,className:e,children:n,controlId:i,label:s,...o},a)=>(t=(0,d.oU)(t,"form-floating"),(0,c.jsxs)(S,{ref:a,className:r()(e,t),controlId:i,...o,children:[n,(0,c.jsx)("label",{htmlFor:i,children:s})]}))));F.displayName="FloatingLabel";const j=F,W={_ref:o().any,validated:o().bool,as:o().elementType},B=a.forwardRef((({className:t,validated:e,as:n="form",...i},s)=>(0,c.jsx)(n,{...i,ref:s,className:r()(t,e&&"was-validated")})));B.displayName="Form",B.propTypes=W;const N=Object.assign(B,{Group:S,Control:_,Floating:M,Check:y,Switch:L,Label:O,Text:D,Range:C,Select:E,FloatingLabel:j})},4479:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6942),r=n.n(i),s=n(6540),o=n(6519),a=n(4848);const c=s.forwardRef((({bsPrefix:t,className:e,as:n="div",...i},s)=>{const c=(0,o.oU)(t,"row"),l=(0,o.gy)(),h=(0,o.Jm)(),u=`${c}-cols`,f=[];return l.forEach((t=>{const e=i[t];let n;delete i[t],null!=e&&"object"==typeof e?({cols:n}=e):n=e;const r=t!==h?`-${t}`:"";null!=n&&f.push(`${u}${r}-${n}`)})),(0,a.jsx)(n,{ref:s,...i,className:r()(e,c,...f)})}));c.displayName="Row";const l=c},6519:(t,e,n)=>{"use strict";n.d(e,{Jm:()=>l,gy:()=>c,oU:()=>a});var i=n(6540);n(4848);const r=i.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:s,Provider:o}=r;function a(t,e){const{prefixes:n}=(0,i.useContext)(r);return t||n[e]||e}function c(){const{breakpoints:t}=(0,i.useContext)(r);return t}function l(){const{minBreakpoint:t}=(0,i.useContext)(r);return t}},9771:t=>{"use strict";t.exports=function(){}},6942:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=o(t,s(n)))}return t}function s(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return r.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var n in t)i.call(t,n)&&t[n]&&(e=o(e,n));return e}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(r.default=r,t.exports=r):void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},176:(t,e,n)=>{"use strict";n.d(e,{I:()=>O});var i=n(9658),r=n(6261),s=n(9757),o=n(6500),a=n(4658),c=n(4880),l=class extends o.Q{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#n=(0,a.T)(),this.options.experimental_prefetchInRender||this.#n.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#t;#i=void 0;#r=void 0;#s=void 0;#o;#a;#n;#e;#c;#l;#h;#u;#f;#d;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#i.addObserver(this),h(this.#i,this.options)?this.#g():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#i,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#i,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#b(),this.#i.removeObserver(this)}setOptions(t,e){const n=this.options,i=this.#i;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,c.Eh)(this.options.enabled,this.#i))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#y(),this.#i.setOptions(this.options),n._defaulted&&!(0,c.f8)(this.options,n)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#i,observer:this});const r=this.hasListeners();r&&f(this.#i,i,this.options,n)&&this.#g(),this.updateResult(e),!r||this.#i===i&&(0,c.Eh)(this.options.enabled,this.#i)===(0,c.Eh)(n.enabled,this.#i)&&(0,c.d2)(this.options.staleTime,this.#i)===(0,c.d2)(n.staleTime,this.#i)||this.#x();const s=this.#_();!r||this.#i===i&&(0,c.Eh)(this.options.enabled,this.#i)===(0,c.Eh)(n.enabled,this.#i)&&s===this.#d||this.#w(s)}getOptimisticResult(t){const e=this.#t.getQueryCache().build(this.#t,t),n=this.createResult(e,t);return i=this,r=n,!(0,c.f8)(i.getCurrentResult(),r)&&(this.#s=n,this.#a=this.options,this.#o=this.#i.state),n;var i,r}getCurrentResult(){return this.#s}trackResult(t,e){const n={};return Object.keys(t).forEach((i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),e?.(i),t[i])})})),n}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#i}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#t.defaultQueryOptions(t),n=this.#t.getQueryCache().build(this.#t,e);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,e)))}fetch(t){return this.#g({...t,cancelRefetch:t.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#s)))}#g(t){this.#y();let e=this.#i.fetch(this.options,t);return t?.throwOnError||(e=e.catch(c.lQ)),e}#x(){this.#v();const t=(0,c.d2)(this.options.staleTime,this.#i);if(c.S$||this.#s.isStale||!(0,c.gn)(t))return;const e=(0,c.j3)(this.#s.dataUpdatedAt,t)+1;this.#u=setTimeout((()=>{this.#s.isStale||this.updateResult()}),e)}#_(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#i):this.options.refetchInterval)??!1}#w(t){this.#b(),this.#d=t,!c.S$&&!1!==(0,c.Eh)(this.options.enabled,this.#i)&&(0,c.gn)(this.#d)&&0!==this.#d&&(this.#f=setInterval((()=>{(this.options.refetchIntervalInBackground||i.m.isFocused())&&this.#g()}),this.#d))}#m(){this.#x(),this.#w(this.#_())}#v(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#b(){this.#f&&(clearInterval(this.#f),this.#f=void 0)}createResult(t,e){const n=this.#i,i=this.options,r=this.#s,o=this.#o,a=this.#a,l=t!==n?t.state:this.#r,{state:u}=t;let p,g={...u},m=!1;if(e._optimisticResults){const r=this.hasListeners(),o=!r&&h(t,e),a=r&&f(t,n,e,i);(o||a)&&(g={...g,...(0,s.k)(u.data,t.options)}),"isRestoring"===e._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:b,status:y}=g;if(e.select&&void 0!==g.data)if(r&&g.data===o?.data&&e.select===this.#c)p=this.#l;else try{this.#c=e.select,p=e.select(g.data),p=(0,c.pl)(r?.data,p,e),this.#l=p,this.#e=null}catch(t){this.#e=t}else p=g.data;if(void 0!==e.placeholderData&&void 0===p&&"pending"===y){let t;if(r?.isPlaceholderData&&e.placeholderData===a?.placeholderData)t=r.data;else if(t="function"==typeof e.placeholderData?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,e.select&&void 0!==t)try{t=e.select(t),this.#e=null}catch(t){this.#e=t}void 0!==t&&(y="success",p=(0,c.pl)(r?.data,t,e),m=!0)}this.#e&&(v=this.#e,p=this.#l,b=Date.now(),y="error");const x="fetching"===g.fetchStatus,_="pending"===y,w="error"===y,M=_&&x,k=void 0!==p;return{status:y,fetchStatus:g.fetchStatus,isPending:_,isSuccess:"success"===y,isError:w,isInitialLoading:M,isLoading:M,data:p,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>l.dataUpdateCount||g.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!_,isLoadingError:w&&!k,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:w&&k,isStale:d(t,e),refetch:this.refetch,promise:this.#n}}updateResult(t){const e=this.#s,n=this.createResult(this.#i,this.options);if(this.#o=this.#i.state,this.#a=this.options,void 0!==this.#o.data&&(this.#h=this.#i),(0,c.f8)(n,e))return;if(this.options.experimental_prefetchInRender){const t=t=>{"error"===n.status?t.reject(n.error):void 0!==n.data&&t.resolve(n.data)},e=()=>{const e=this.#n=n.promise=(0,a.T)();t(e)},i=this.#n;switch(i.status){case"pending":t(i);break;case"fulfilled":"error"!==n.status&&n.data===i.value||e();break;case"rejected":"error"===n.status&&n.error===i.reason||e()}}this.#s=n;const i={};!1!==t?.listeners&&(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,n="function"==typeof t?t():t;if("all"===n||!n&&!this.#p.size)return!0;const i=new Set(n??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some((t=>{const n=t;return this.#s[n]!==e[n]&&i.has(n)}))})()&&(i.listeners=!0),this.#M({...i,...t})}#y(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#i)return;const e=this.#i;this.#i=t,this.#r=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#M(t){r.j.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t(this.#s)})),this.#t.getQueryCache().notify({query:this.#i,type:"observerResultsUpdated"})}))}};function h(t,e){return function(t,e){return!1!==(0,c.Eh)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)}(t,e)||void 0!==t.state.data&&u(t,e,e.refetchOnMount)}function u(t,e,n){if(!1!==(0,c.Eh)(e.enabled,t)){const i="function"==typeof n?n(t):n;return"always"===i||!1!==i&&d(t,e)}return!1}function f(t,e,n,i){return(t!==e||!1===(0,c.Eh)(i.enabled,t))&&(!n.suspense||"error"!==t.state.status)&&d(t,n)}function d(t,e){return!1!==(0,c.Eh)(e.enabled,t)&&t.isStaleByTime((0,c.d2)(e.staleTime,t))}var p=n(6540),g=n(7665);n(4848);var m=p.createContext(function(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}()),v=()=>p.useContext(m);function b(){}var y=(t,e)=>{(t.suspense||t.throwOnError)&&(e.isReset()||(t.retryOnMount=!1))},x=t=>{p.useEffect((()=>{t.clearReset()}),[t])},_=({result:t,errorResetBoundary:e,throwOnError:n,query:i})=>{return t.isError&&!e.isReset()&&!t.isFetching&&i&&(r=n,s=[t.error,i],"function"==typeof r?r(...s):!!r);var r,s},w=p.createContext(!1),M=()=>p.useContext(w),k=(w.Provider,t=>{t.suspense&&("number"!=typeof t.staleTime&&(t.staleTime=1e3),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3)))}),S=(t,e)=>t.isLoading&&t.isFetching&&!e,T=(t,e)=>t?.suspense&&e.isPending,R=(t,e,n)=>e.fetchOptimistic(t).catch((()=>{n.clearReset()}));function O(t,e){return function(t,e,n){const i=(0,g.jE)(n),s=M(),o=v(),a=i.defaultQueryOptions(t);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=s?"isRestoring":"optimistic",k(a),y(a,o),x(o);const l=!i.getQueryState(t.queryKey),[h]=p.useState((()=>new e(i,a))),u=h.getOptimisticResult(a);if(p.useSyncExternalStore(p.useCallback((t=>{const e=s?()=>{}:h.subscribe(r.j.batchCalls(t));return h.updateResult(),e}),[h,s]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),p.useEffect((()=>{h.setOptions(a,{listeners:!1})}),[a,h]),T(a,u))throw R(a,h,o);if(_({result:u,errorResetBoundary:o,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash)}))throw u.error;if(i.getDefaultOptions().queries?._experimental_afterQuery?.(a,u),a.experimental_prefetchInRender&&!c.S$&&S(u,s)){const t=l?R(a,h,o):i.getQueryCache().get(a.queryHash)?.promise;t?.catch(b).finally((()=>{h.hasListeners()||h.updateResult()}))}return a.notifyOnChangeProps?u:h.trackResult(u)}(t,l,e)}},6118:(t,e,n)=>{"use strict";n.d(e,{A6:()=>C,Bs:()=>re,E8:()=>xe,FN:()=>pe,No:()=>fe,P$:()=>I,PP:()=>Ve,ZT:()=>E,hE:()=>Te,kc:()=>Qe,m_:()=>Ne,s$:()=>ke,t1:()=>te});var i=n(2020);class r{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],s=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(n-e.start,s)})))}_refresh(){this._request||(this._running=!0,this._request=i.r.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let s,o=r.length-1,a=!1;for(;o>=0;--o)s=r[o],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var s=new r;const o="transparent",a={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=(0,i.c)(t||o),s=r.valid&&(0,i.c)(e||o);return s&&s.valid?s.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class c{constructor(t,e,n,r){const s=e[n];r=(0,i.a)([t.to,r,s,t.from]);const o=(0,i.a)([t.from,s,r]);this._active=!0,this._fn=t.fn||a[t.type||typeof o],this._easing=i.e[t.easing]||i.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],s=n-this._start,o=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=(0,i.a)([t.to,e,r,t.from]),this._from=(0,i.a)([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,s=this._loop,o=this._to;let a;if(this._active=r!==o&&(s||e<n),!this._active)return this._target[i]=o,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=s&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,o,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class l{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,i.i)(t))return;const e=Object.keys(i.d.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((r=>{const s=t[r];if(!(0,i.i)(s))return;const o={};for(const t of e)o[t]=s[t];((0,i.b)(s.properties)&&s.properties||[r]).forEach((t=>{t!==r&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),s=Object.keys(e),o=Date.now();let a;for(a=s.length-1;a>=0;--a){const l=s[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const h=e[l];let u=r[l];const f=n.get(l);if(u){if(f&&u.active()){u.update(f,h,o);continue}u.cancel()}f&&f.duration?(r[l]=u=new c(f,t,l,h),i.push(u)):t[l]=h}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(s.add(this._chart,n),!0):void 0}}function h(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,s=void 0===n.max?e:0;return{start:i?s:r,end:i?r:s}}function u(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,s;for(r=0,s=i.length;r<s;++r)n.push(i[r].index);return n}function f(t,e,n,r={}){const s=t.keys,o="single"===r.mode;let a,c,l,h;if(null!==e){for(a=0,c=s.length;a<c;++a){if(l=+s[a],l===n){if(r.all)continue;break}h=t.values[l],(0,i.g)(h)&&(o||0===e||(0,i.s)(e)===(0,i.s)(h))&&(e+=h)}return e}}function d(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function p(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function g(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function m(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:s,vScale:o,index:a}=i,c=s.axis,l=o.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(s,o,i),u=e.length;let f;for(let t=0;t<u;++t){const n=e[t],{[c]:s,[l]:u}=n;f=(n._stacks||(n._stacks={}))[l]=p(r,h,s),f[a]=u,f._top=g(f,o,!0,i.type),f._bottom=g(f,o,!1,i.type),(f._visualValues||(f._visualValues={}))[a]=u}}function v(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function b(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const y=t=>"reset"===t||"none"===t,x=(t,e)=>e?t:Object.assign({},t);class _{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=d(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&b(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,s=e.xAxisID=(0,i.v)(n.xAxisID,v(t,"x")),o=e.yAxisID=(0,i.v)(n.yAxisID,v(t,"y")),a=e.rAxisID=(0,i.v)(n.rAxisID,v(t,"r")),c=e.indexAxis,l=e.iAxisID=r(c,s,o,a),h=e.vAxisID=r(c,o,s,a);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&(0,i.u)(this._data,this),t._stacked&&b(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if((0,i.i)(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",s="x"===i.axis?"x":"y",o=Object.keys(t),a=new Array(o.length);let c,l,h;for(c=0,l=o.length;c<l;++c)h=o[c],a[c]={[r]:h,[s]:t[h]};return a}(e,t)}else if(n!==e){if(n){(0,i.u)(n,this);const t=this._cachedMeta;b(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,i.l)(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=d(e.vScale,e),e.stack!==n.stack&&(i=!0,b(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&m(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:r}=this,{iScale:s,_stacked:o}=n,a=s.axis;let c,l,h,u=0===t&&e===r.length||n._sorted,f=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,h=r;else{h=(0,i.b)(r[t])?this.parseArrayData(n,r,t,e):(0,i.i)(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const s=()=>null===l[a]||f&&l[a]<f[a];for(c=0;c<e;++c)n._parsed[c+t]=l=h[c],u&&(s()&&(u=!1),f=l);n._sorted=u}o&&m(this,h)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:s}=t,o=r.axis,a=s.axis,c=r.getLabels(),l=r===s,h=new Array(i);let u,f,d;for(u=0,f=i;u<f;++u)d=u+n,h[u]={[o]:l||r.parse(c[d],d),[a]:s.parse(e[d],d)};return h}parseArrayData(t,e,n,i){const{xScale:r,yScale:s}=t,o=new Array(i);let a,c,l,h;for(a=0,c=i;a<c;++a)l=a+n,h=e[l],o[a]={x:r.parse(h[0],l),y:s.parse(h[1],l)};return o}parseObjectData(t,e,n,r){const{xScale:s,yScale:o}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=new Array(r);let h,u,f,d;for(h=0,u=r;h<u;++h)f=h+n,d=e[f],l[h]={x:s.parse((0,i.f)(d,a),f),y:o.parse((0,i.f)(d,c),f)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,s=e[t.axis];return f({keys:u(i,!0),values:e._stacks[t.axis]._visualValues},s,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let s=null===r?NaN:r;const o=i&&n._stacks[e.axis];i&&o&&(i.values=o,s=f(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,s=n._sorted&&t===n.iScale,o=r.length,a=this._getOtherScale(t),c=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:u(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:f}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(a);let d,p;function g(){p=r[d];const e=p[a.axis];return!(0,i.g)(p[t.axis])||h>e||f<e}for(d=0;d<o&&(g()||(this.updateRangeFromParsed(l,t,p,c),!s));++d);if(s)for(d=o-1;d>=0;--d)if(!g()){this.updateRangeFromParsed(l,t,p,c);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,s,o;for(r=0,s=e.length;r<s;++r)o=e[r][t.axis],(0,i.g)(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,r,s;return(0,i.i)(t)?(e=t.top,n=t.right,r=t.bottom,s=t.left):e=n=r=s=t,{top:e,right:n,bottom:r,left:s,disabled:!1===t}}((0,i.v)(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=h(t,n),r=h(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,s=[],o=this._drawStart||0,a=this._drawCount||i.length-o,c=this.options.drawActiveElementsOnTop;let l;for(n.dataset&&n.dataset.draw(t,r,o,a),l=o;l<o+a;++l){const e=i[l];e.hidden||(e.active&&c?s.push(e):e.draw(t,r))}for(l=0;l<s.length;++l)s[l].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const r=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];s=e.$context||(e.$context=function(t,e,n){return(0,i.j)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),s.parsed=this.getParsed(t),s.raw=r.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function(t,e){return(0,i.j)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=n,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const r="active"===e,s=this._cachedDataOpts,o=t+"-"+e,a=s[o],c=this.enableOptionSharing&&(0,i.h)(n);if(a)return x(a,c);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],f=l.getOptionScopes(this.getDataset(),h),d=Object.keys(i.d.elements[t]),p=l.resolveNamedOptions(f,d,(()=>this.getContext(n,r,e)),u);return p.$shared&&(p.$shared=c,s[o]=Object.freeze(x(p,c))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,s=`animation-${e}`,o=r[s];if(o)return o;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),s=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(s,this.getContext(t,n,e))}const c=new l(i,a&&a.animations);return a&&a._cacheable&&(r[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||y(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),s=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:s}}updateElement(t,e,n,i){y(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!y(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,s=Math.min(r,i);s&&this.parse(0,s),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,s=t+e;let o;const a=t=>{for(t.length+=e,o=t.length-1;o>=s;o--)t[o]=t[o-e]};for(a(r),o=t;o<s;++o)r[o]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&b(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function w(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,i=n.length;e<i;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=(0,i._)(r.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let r,s,o,a,c=e._length;const l=()=>{32767!==o&&-32768!==o&&((0,i.h)(a)&&(c=Math.min(c,Math.abs(o-a)||c)),a=o)};for(r=0,s=n.length;r<s;++r)o=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,s=e.ticks.length;r<s;++r)o=e.getPixelForTick(r),l();return c}function M(t,e,n,r){return(0,i.b)(t)?function(t,e,n,i){const r=n.parse(t[0],i),s=n.parse(t[1],i),o=Math.min(r,s),a=Math.max(r,s);let c=o,l=a;Math.abs(o)>Math.abs(a)&&(c=a,l=o),e[n.axis]=l,e._custom={barStart:c,barEnd:l,start:r,end:s,min:o,max:a}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function k(t,e,n,i){const r=t.iScale,s=t.vScale,o=r.getLabels(),a=r===s,c=[];let l,h,u,f;for(l=n,h=n+i;l<h;++l)f=e[l],u={},u[r.axis]=a||r.parse(o[l],l),c.push(M(f,u,s,l));return c}function S(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function T(t,e,n,i){let r=e.borderSkipped;const s={};if(!r)return void(t.borderSkipped=s);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:c,top:l,bottom:h}=function(t){let e,n,i,r,s;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",s="start"):(r="start",s="end"),{start:n,end:i,reverse:e,top:r,bottom:s}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=l:(n._bottom||0)===i?r=h:(s[R(h,o,a,c)]=!0,r=l)),s[R(r,o,a,c)]=!0,t.borderSkipped=s}function R(t,e,n,i){var r,s,o;return i?(o=n,t=O(t=(r=t)===(s=e)?o:r===o?s:r,n,e)):t=O(t,e,n),t}function O(t,e,n){return"start"===t?e:"end"===t?n:t}function A(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class C extends _{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return k(t,e,n,i)}parseArrayData(t,e,n,i){return k(t,e,n,i)}parseObjectData(t,e,n,r){const{iScale:s,vScale:o}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l="x"===s.axis?a:c,h="x"===o.axis?a:c,u=[];let f,d,p,g;for(f=n,d=n+r;f<d;++f)g=e[f],p={},p[s.axis]=s.parse((0,i.f)(g,l),f),u.push(M((0,i.f)(g,h),p,o,f));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),s=r._custom,o=S(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const s="reset"===r,{index:o,_cachedMeta:{vScale:a}}=this,c=a.getBasePixel(),l=a.isHorizontal(),h=this._getRuler(),{sharedOptions:u,includeOptions:f}=this._getSharedOptions(e,r);for(let d=e;d<e+n;d++){const e=this.getParsed(d),n=s||(0,i.k)(e[a.axis])?{base:c,head:c}:this._calculateBarValuePixels(d),p=this._calculateBarIndexPixels(d,h),g=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!g||S(e._custom)||o===g._top||o===g._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};f&&(m.options=u||this.resolveDataElementOptions(d,t[d].active?"active":r));const v=m.options||t[d].options;T(m,v,g,o),A(m,v,h.ratio),this.updateElement(t[d],d,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),s=n.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),c=a&&a[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===c)),r=e&&e[t.vScale.axis];if((0,i.k)(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!l(n))&&((!1===s||-1===o.indexOf(n.stack)||void 0===s&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,s;for(r=0,s=e.data.length;r<s;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const o=t.barThickness;return{min:o||w(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:o?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:s,minBarLength:o}}=this,a=s||0,c=this.getParsed(t),l=c._custom,h=S(l);let u,f,d=c[e.axis],p=0,g=n?this.applyStack(e,c,n):d;g!==d&&(p=g-d,g=d),h&&(d=l.barStart,g=l.barEnd-l.barStart,0!==d&&(0,i.s)(d)!==(0,i.s)(l.barEnd)&&(p=0),p+=d);const m=(0,i.k)(s)||h?p:s;let v=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):v,f=u-v,Math.abs(f)<o){f=function(t,e,n){return 0!==t?(0,i.s)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(f,e,a)*o,d===a&&(v-=f/2);const t=e.getPixelForDecimal(0),s=e.getPixelForDecimal(1),l=Math.min(t,s),p=Math.max(t,s);v=Math.max(Math.min(v,p),l),u=v+f,n&&!h&&(c._stacks[e.axis]._visualValues[r]=e.getValueForPixel(u)-e.getValueForPixel(v))}if(v===e.getPixelForValue(a)){const t=(0,i.s)(f)*e.getLineWidthForValue(a)/2;v+=t,f-=t}return{size:f,base:v,head:u,center:u+f/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,s=r.skipNull,o=(0,i.v)(r.maxBarThickness,1/0);let a,c;if(e.grouped){const n=s?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,i){const r=e.pixels,s=r[t];let o=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const c=n.categoryPercentage;null===o&&(o=s-(null===a?e.end-e.start:a-s)),null===a&&(a=s+s-o);const l=s-(s-Math.min(o,a))/2*c;return{chunk:Math.abs(a-o)/2*c/i,ratio:n.barPercentage,start:l}}(t,e,r,n):function(t,e,n,r){const s=n.barThickness;let o,a;return(0,i.k)(s)?(o=e.min*n.categoryPercentage,a=n.barPercentage):(o=s*r,a=1),{chunk:o/r,ratio:a,start:e.pixels[t]-o/2}}(t,e,r,n),h=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);a=l.start+l.chunk*h+l.chunk/2,c=Math.min(o,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(o,e.min*e.ratio);return{base:a-c/2,head:a+c/2,center:a,size:c}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}class P extends _{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:i}}=t.legend.options;return e.labels.map(((e,r)=>{const s=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:i,lineWidth:s.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(r),index:r}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let s,o,a=t=>+n[t];if((0,i.i)(n[t])){const{key:t="value"}=this._parsing;a=e=>+(0,i.f)(n[e],t)}for(s=t,o=t+e;s<o;++s)r._parsed[s]=a(s)}}_getRotation(){return(0,i.t)(this.options.rotation-90)}_getCircumference(){return(0,i.t)(this.options.circumference)}_getRotationExtents(){let t=i.T,e=-i.T;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,r=i._getRotation(),s=i._getCircumference();t=Math.min(t,r),e=Math.max(e,r+s)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,r=this._cachedMeta,s=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-o)/2,0),c=Math.min((0,i.m)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:f,ratioY:d,offsetX:p,offsetY:g}=function(t,e,n){let r=1,s=1,o=0,a=0;if(e<i.T){const c=t,l=c+e,h=Math.cos(c),u=Math.sin(c),f=Math.cos(l),d=Math.sin(l),p=(t,e,r)=>(0,i.p)(t,c,l,!0)?1:Math.max(e,e*n,r,r*n),g=(t,e,r)=>(0,i.p)(t,c,l,!0)?-1:Math.min(e,e*n,r,r*n),m=p(0,h,f),v=p(i.H,u,d),b=g(i.P,h,f),y=g(i.P+i.H,u,d);r=(m-b)/2,s=(v-y)/2,o=-(m+b)/2,a=-(v+y)/2}return{ratioX:r,ratioY:s,offsetX:o,offsetY:a}}(u,h,c),m=(n.width-o)/f,v=(n.height-o)/d,b=Math.max(Math.min(m,v)/2,0),y=(0,i.n)(this.options.radius,b),x=(y-Math.max(y*c,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*y,this.offsetY=g*y,r.total=this.calculateTotal(),this.outerRadius=y-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*l,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,s=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*s/i.T)}updateElements(t,e,n,i){const r="reset"===i,s=this.chart,o=s.chartArea,a=s.options.animation,c=(o.left+o.right)/2,l=(o.top+o.bottom)/2,h=r&&a.animateScale,u=h?0:this.innerRadius,f=h?0:this.outerRadius,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(e,i);let g,m=this._getRotation();for(g=0;g<e;++g)m+=this._circumference(g,r);for(g=e;g<e+n;++g){const e=this._circumference(g,r),n=t[g],s={x:c+this.offsetX,y:l+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:f,innerRadius:u};p&&(s.options=d||this.resolveDataElementOptions(g,n.active?"active":i)),m+=e,this.updateElement(n,g,s,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const r=t._parsed[n];null===r||isNaN(r)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(r))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?i.T*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],s=(0,i.o)(e._parsed[t],n.options.locale);return{label:r[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,r,s,o,a;if(!t)for(i=0,r=n.data.datasets.length;i<r;++i)if(n.isDatasetVisible(i)){s=n.getDatasetMeta(i),t=s.data,o=s.controller;break}if(!t)return 0;for(i=0,r=t.length;i<r;++i)a=o.resolveDataElementOptions(i),"inner"!==a.borderAlign&&(e=Math.max(e,a.borderWidth||0,a.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max((0,i.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class E extends _{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:r=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:a,count:c}=(0,i.q)(e,r,o);this._drawStart=a,this._drawCount=c,(0,i.w)(e)&&(a=0,c=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!s._decimated,n.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},t),this.updateElements(r,a,c,t)}updateElements(t,e,n,r){const s="reset"===r,{iScale:o,vScale:a,_stacked:c,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,r),f=o.axis,d=a.axis,{spanGaps:p,segment:g}=this.options,m=(0,i.x)(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||s||"none"===r,b=e+n,y=t.length;let x=e>0&&this.getParsed(e-1);for(let n=0;n<y;++n){const p=t[n],y=v?p:{};if(n<e||n>=b){y.skip=!0;continue}const _=this.getParsed(n),w=(0,i.k)(_[d]),M=y[f]=o.getPixelForValue(_[f],n),k=y[d]=s||w?a.getBasePixel():a.getPixelForValue(c?this.applyStack(a,_,c):_[d],n);y.skip=isNaN(M)||isNaN(k)||w,y.stop=n>0&&Math.abs(_[f]-x[f])>m,g&&(y.parsed=_,y.raw=l.data[n]),u&&(y.options=h||this.resolveDataElementOptions(n,p.active?"active":r)),v||this.updateElement(p,n,y,r),x=_}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const r=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,r,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class I extends P{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function D(t,e,n,r){const{controller:s,data:o,_sorted:a}=t,c=s._cachedMeta.iScale;if(c&&e===c.axis&&"r"!==e&&a&&o.length){const t=c._reversePixels?i.A:i.B;if(!r)return t(o,e,n);if(s._sharedOptions){const i=o[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(o,e,n-r),s=t(o,e,n+r);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function z(t,e,n,i,r){const s=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=s.length;t<n;++t){const{index:n,data:a}=s[t],{lo:c,hi:l}=D(s[t],e,o,r);for(let t=c;t<=l;++t){const e=a[t];e.skip||i(e,n,t)}}}function L(t,e,n,r,s){const o=[];return s||t.isPointInArea(e)?(z(t,n,e,(function(n,a,c){(s||(0,i.C)(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&o.push({element:n,datasetIndex:a,index:c})}),!0),o):o}function F(t,e,n,r,s,o){return o||t.isPointInArea(e)?"r"!==n||r?function(t,e,n,i,r,s){let o=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,s=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(s,2))}}(n);let c=Number.POSITIVE_INFINITY;return z(t,n,e,(function(n,l,h){const u=n.inRange(e.x,e.y,r);if(i&&!u)return;const f=n.getCenterPoint(r);if(!s&&!t.isPointInArea(f)&&!u)return;const d=a(e,f);d<c?(o=[{element:n,datasetIndex:l,index:h}],c=d):d===c&&o.push({element:n,datasetIndex:l,index:h})})),o}(t,e,n,r,s,o):function(t,e,n,r){let s=[];return z(t,n,e,(function(t,n,o){const{startAngle:a,endAngle:c}=t.getProps(["startAngle","endAngle"],r),{angle:l}=(0,i.D)(t,{x:e.x,y:e.y});(0,i.p)(l,a,c)&&s.push({element:t,datasetIndex:n,index:o})})),s}(t,e,n,s):[]}function j(t,e,n,i,r){const s=[],o="x"===n?"inXRange":"inYRange";let a=!1;return z(t,n,e,((t,i,c)=>{t[o]&&t[o](e[n],r)&&(s.push({element:t,datasetIndex:i,index:c}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:s}var W={evaluateInteractionItems:z,modes:{index(t,e,n,r){const s=(0,i.z)(e,t),o=n.axis||"x",a=n.includeInvisible||!1,c=n.intersect?L(t,s,o,r,a):F(t,s,o,!1,r,a),l=[];return c.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=c[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,r){const s=(0,i.z)(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;let c=n.intersect?L(t,s,o,r,a):F(t,s,o,!1,r,a);if(c.length>0){const e=c[0].datasetIndex,n=t.getDatasetMeta(e).data;c=[];for(let t=0;t<n.length;++t)c.push({element:n[t],datasetIndex:e,index:t})}return c},point:(t,e,n,r)=>L(t,(0,i.z)(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const s=(0,i.z)(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;return F(t,s,o,n.intersect,r,a)},x:(t,e,n,r)=>j(t,(0,i.z)(e,t),"x",n.intersect,r),y:(t,e,n,r)=>j(t,(0,i.z)(e,t),"y",n.intersect,r)}};const B=["left","top","right","bottom"];function N(t,e){return t.filter((t=>t.pos===e))}function H(t,e){return t.filter((t=>-1===B.indexOf(t.pos)&&t.box.axis===e))}function V(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function $(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function U(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Q(t,e,n,r){const{pos:s,box:o}=n,a=t.maxPadding;if(!(0,i.i)(s)){n.size&&(t[s]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[s]+=n.size}o.getPadding&&U(a,o.getPadding());const c=Math.max(0,e.outerWidth-$(a,t,"left","right")),l=Math.max(0,e.outerHeight-$(a,t,"top","bottom")),h=c!==t.w,u=l!==t.h;return t.w=c,t.h=l,n.horizontal?{same:h,other:u}:{same:u,other:h}}function Y(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function X(t,e,n,i){const r=[];let s,o,a,c,l,h;for(s=0,o=t.length,l=0;s<o;++s){a=t[s],c=a.box,c.update(a.width||e.w,a.height||e.h,Y(a.horizontal,e));const{same:o,other:u}=Q(e,n,a,i);l|=o&&r.length,h=h||u,c.fullSize||r.push(a)}return l&&X(r,e,n,i)||h}function q(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function Z(t,e,n,r){const s=n.padding;let{x:o,y:a}=e;for(const c of t){const t=c.box,l=r[c.stack]||{count:1,placed:0,weight:1},h=c.stackWeight/l.weight||1;if(c.horizontal){const r=e.w*h,o=l.size||t.height;(0,i.h)(l.start)&&(a=l.start),t.fullSize?q(t,s.left,a,n.outerWidth-s.right-s.left,o):q(t,e.left+l.placed,a,r,o),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*h,a=l.size||t.width;(0,i.h)(l.start)&&(o=l.start),t.fullSize?q(t,o,s.top,a,n.outerHeight-s.bottom-s.top):q(t,o,e.top+l.placed,a,r),l.start=o,l.placed+=r,o=t.right}}e.x=o,e.y=a}var K={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const s=(0,i.E)(t.options.layout.padding),o=Math.max(e-s.width,0),a=Math.max(n-s.height,0),c=function(t){const e=function(t){const e=[];let n,i,r,s,o,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:s,options:{stack:o,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return e}(t),n=V(e.filter((t=>t.box.fullSize)),!0),i=V(N(e,"left"),!0),r=V(N(e,"right")),s=V(N(e,"top"),!0),o=V(N(e,"bottom")),a=H(e,"x"),c=H(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:r.concat(c).concat(o).concat(a),chartArea:N(e,"chartArea"),vertical:i.concat(r).concat(c),horizontal:s.concat(o).concat(a)}}(t.boxes),l=c.vertical,h=c.horizontal;(0,i.F)(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,f=Object.freeze({outerWidth:e,outerHeight:n,padding:s,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},s);U(d,(0,i.E)(r));const p=Object.assign({maxPadding:d,w:o,h:a,x:s.left,y:s.top},s),g=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!B.includes(i))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let s,o,a;for(s=0,o=t.length;s<o;++s){a=t[s];const{fullSize:o}=a.box,c=n[a.stack],l=c&&a.stackWeight/c.weight;a.horizontal?(a.width=l?l*i:o&&e.availableWidth,a.height=r):(a.width=i,a.height=l?l*r:o&&e.availableHeight)}return n}(l.concat(h),f);X(c.fullSize,p,f,g),X(l,p,f,g),X(h,p,f,g)&&X(l,p,f,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Z(c.leftAndTop,p,f,g),p.x+=p.w,p.y+=p.h,Z(c.rightAndBottom,p,f,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,i.F)(c.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class G{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class J extends G{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const tt="$chartjs",et={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nt=t=>null===t||""===t,it=!!i.K&&{passive:!0};function rt(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,it)}function st(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function ot(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||st(n.addedNodes,i),e=e&&!st(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function at(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||st(n.removedNodes,i),e=e&&!st(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const ct=new Map;let lt=0;function ht(){const t=window.devicePixelRatio;t!==lt&&(lt=t,ct.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function ut(t,e,n){const r=t.canvas,s=r&&(0,i.I)(r);if(!s)return;const o=(0,i.L)(((t,e)=>{const i=s.clientWidth;n(t,e),i<s.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return a.observe(s),function(t,e){ct.size||window.addEventListener("resize",ht),ct.set(t,e)}(t,o),a}function ft(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){ct.delete(t),ct.size||window.removeEventListener("resize",ht)}(t)}function dt(t,e,n){const r=t.canvas,s=(0,i.L)((e=>{null!==t.ctx&&n(function(t,e){const n=et[t.type]||t.type,{x:r,y:s}=(0,i.z)(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==s?s:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,it)}(r,e,s),s}class pt extends G{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,r=t.getAttribute("height"),s=t.getAttribute("width");if(t[tt]={initial:{height:r,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",nt(s)){const e=(0,i.J)(t,"width");void 0!==e&&(t.width=e)}if(nt(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=(0,i.J)(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[tt])return!1;const n=e[tt].initial;["height","width"].forEach((t=>{const r=n[t];(0,i.k)(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=n.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e[tt],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:ot,detach:at,resize:ut}[e]||dt;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:ft,detach:ft,resize:ft}[e]||rt)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return(0,i.G)(t,e,n,r)}isAttached(t){const e=t&&(0,i.I)(t);return!(!e||!e.isConnected)}}class gt{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return(0,i.x)(this.x)&&(0,i.x)(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function mt(t,e,n,r,s){const o=(0,i.v)(r,0),a=Math.min((0,i.v)(s,t.length),t.length);let c,l,h,u=0;for(n=Math.ceil(n),s&&(c=s-r,n=c/Math.floor(c/n)),h=o;h<0;)u++,h=Math.round(o+u*n);for(l=Math.max(o,0);l<a;l++)l===h&&(e.push(t[l]),u++,h=Math.round(o+u*n))}const vt=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,bt=(t,e)=>Math.min(e||t,t);function yt(t,e){const n=[],i=t.length/e,r=t.length;let s=0;for(;s<r;s+=i)n.push(t[Math.floor(s)]);return n}function xt(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),s=t._startPixel,o=t._endPixel,a=1e-6;let c,l=t.getPixelForTick(r);if(!(n&&(c=1===i?Math.max(l-s,o-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(r-1))/2,l+=r<e?c:-c,l<s-a||l>o+a)))return l}function _t(t){return t.drawTicks?t.tickLength:0}function wt(t,e){if(!t.display)return 0;const n=(0,i.a0)(t.font,e),r=(0,i.E)(t.padding);return((0,i.b)(t.text)?t.text.length:1)*n.lineHeight+r.height}function Mt(t,e,n){let r=(0,i.a1)(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class kt extends gt{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this;return t=(0,i.O)(t,Number.POSITIVE_INFINITY),e=(0,i.O)(e,Number.NEGATIVE_INFINITY),n=(0,i.O)(n,Number.POSITIVE_INFINITY),r=(0,i.O)(r,Number.NEGATIVE_INFINITY),{min:(0,i.O)(t,n),max:(0,i.O)(e,r),minDefined:(0,i.g)(t),maxDefined:(0,i.g)(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:s,maxDefined:o}=this.getUserBounds();if(s&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let i=0,c=a.length;i<c;++i)e=a[i].controller.getMinMax(this,t),s||(n=Math.min(n,e.min)),o||(r=Math.max(r,e.max));return n=o&&n>r?r:n,r=s&&n>r?n:r,{min:(0,i.O)(n,(0,i.O)(r,n)),max:(0,i.O)(r,(0,i.O)(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,i.Q)(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,i.R)(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?yt(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const n=t.options.ticks,r=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),s=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,c=o[0],l=o[a-1],h=[];if(a>s)return function(t,e,n,i){let r,s=0,o=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===o&&(e.push(t[r]),s++,o=n[s*i])}(e,h,o,a/s),h;const u=function(t,e,n){const r=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),s=e.length/n;if(!r)return Math.max(s,1);const o=(0,i.N)(r);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>s)return e}return Math.max(s,1)}(o,e,s);if(a>0){let t,n;const r=a>1?Math.round((l-c)/(a-1)):null;for(mt(e,h,u,(0,i.k)(r)?0:c-r,c),t=0,n=a-1;t<n;t++)mt(e,h,u,o[t],o[t+1]);return mt(e,h,u,l,(0,i.k)(r)?e.length:l+r),h}return mt(e,h,u),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,i.Q)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,i.Q)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,i.Q)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,i.Q)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,i.Q)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,s;for(n=0,r=t.length;n<r;n++)s=t[n],s.label=(0,i.Q)(e.callback,[s.value,n,t],this)}afterTickToLabelConversion(){(0,i.Q)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,i.Q)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=bt(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,s=e.maxRotation;let o,a,c,l=r;if(!this._isVisible()||!e.display||r>=s||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const h=this._getLabelSizes(),u=h.widest.width,f=h.highest.height,d=(0,i.S)(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:d/(n-1),u+6>o&&(o=d/(n-(t.offset?.5:1)),a=this.maxHeight-_t(t.grid)-e.padding-wt(t.title,this.chart.options.font),c=Math.sqrt(u*u+f*f),l=(0,i.U)(Math.min(Math.asin((0,i.S)((h.highest.height+6)/o,-1,1)),Math.asin((0,i.S)(a/c,-1,1))-Math.asin((0,i.S)(f/c,-1,1)))),l=Math.max(r,Math.min(s,l))),this.labelRotation=l}afterCalculateLabelRotation(){(0,i.Q)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,i.Q)(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=wt(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=_t(s)+o):(t.height=this.maxHeight,t.width=_t(s)+o),n.display&&this.ticks.length){const{first:e,last:r,widest:s,highest:o}=this._getLabelSizes(),c=2*n.padding,l=(0,i.t)(this.labelRotation),h=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*s.width+h*o.height;t.height=Math.min(this.maxHeight,t.height+e+c)}else{const e=n.mirror?0:h*s.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+c)}this._calculatePadding(e,r,u,h)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:s},position:o}=this.options,a=0!==this.labelRotation,c="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,u=0;a?c?(h=i*t.width,u=n*e.height):(h=n*t.height,u=i*e.width):"start"===r?u=e.width:"end"===r?h=t.width:"inner"!==r&&(h=t.width/2,u=e.width/2),this.paddingLeft=Math.max((h-o+s)*this.width/(this.width-o),0),this.paddingRight=Math.max((u-l+s)*this.width/(this.width-l),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+s,this.paddingBottom=i+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,i.Q)(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)(0,i.k)(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=yt(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:s}=this,o=[],a=[],c=Math.floor(e/bt(e,n));let l,h,u,f,d,p,g,m,v,b,y,x=0,_=0;for(l=0;l<e;l+=c){if(f=t[l].label,d=this._resolveTickFontOptions(l),r.font=p=d.string,g=s[p]=s[p]||{data:{},gc:[]},m=d.lineHeight,v=b=0,(0,i.k)(f)||(0,i.b)(f)){if((0,i.b)(f))for(h=0,u=f.length;h<u;++h)y=f[h],(0,i.k)(y)||(0,i.b)(y)||(v=(0,i.V)(r,g.data,g.gc,v,y),b+=m)}else v=(0,i.V)(r,g.data,g.gc,v,f),b=m;o.push(v),a.push(b),x=Math.max(v,x),_=Math.max(b,_)}!function(t,e){(0,i.F)(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(s,e);const w=o.indexOf(x),M=a.indexOf(_),k=t=>({width:o[t]||0,height:a[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(M),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return(0,i.W)(this._alignToPixels?(0,i.X)(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return(0,i.j)(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=(n=this.chart.getContext(),(0,i.j)(n,{scale:this,type:"scale"})));var n}_tickSize(){const t=this.options.ticks,e=(0,i.t)(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,c=s?s.highest.height+o:0;return this.isHorizontal()?c*n>a*r?a/n:c/r:c*r<a*n?c/n:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:s,position:o,border:a}=r,c=s.offset,l=this.isHorizontal(),h=this.ticks.length+(c?1:0),u=_t(s),f=[],d=a.setContext(this.getContext()),p=d.display?d.width:0,g=p/2,m=function(t){return(0,i.X)(n,t,p)};let v,b,y,x,_,w,M,k,S,T,R,O;if("top"===o)v=m(this.bottom),w=this.bottom-u,k=v-g,T=m(t.top)+g,O=t.bottom;else if("bottom"===o)v=m(this.top),T=t.top,O=m(t.bottom)-g,w=v+g,k=this.top+u;else if("left"===o)v=m(this.right),_=this.right-u,M=v-g,S=m(t.left)+g,R=t.right;else if("right"===o)v=m(this.left),S=t.left,R=m(t.right)-g,_=v+g,M=this.left+u;else if("x"===e){if("center"===o)v=m((t.top+t.bottom)/2+.5);else if((0,i.i)(o)){const t=Object.keys(o)[0],e=o[t];v=m(this.chart.scales[t].getPixelForValue(e))}T=t.top,O=t.bottom,w=v+g,k=w+u}else if("y"===e){if("center"===o)v=m((t.left+t.right)/2);else if((0,i.i)(o)){const t=Object.keys(o)[0],e=o[t];v=m(this.chart.scales[t].getPixelForValue(e))}_=v-g,M=_-u,S=t.left,R=t.right}const A=(0,i.v)(r.ticks.maxTicksLimit,h),C=Math.max(1,Math.ceil(h/A));for(b=0;b<h;b+=C){const t=this.getContext(b),e=s.setContext(t),r=a.setContext(t),o=e.lineWidth,h=e.color,u=r.dash||[],d=r.dashOffset,p=e.tickWidth,g=e.tickColor,m=e.tickBorderDash||[],v=e.tickBorderDashOffset;y=xt(this,b,c),void 0!==y&&(x=(0,i.X)(n,y,o),l?_=M=S=R=x:w=k=T=O=x,f.push({tx1:_,ty1:w,tx2:M,ty2:k,x1:S,y1:T,x2:R,y2:O,width:o,color:h,borderDash:u,borderDashOffset:d,tickWidth:p,tickColor:g,tickBorderDash:m,tickBorderDashOffset:v}))}return this._ticksLength=h,this._borderValue=v,f}_computeLabelItems(t){const e=this.axis,n=this.options,{position:r,ticks:s}=n,o=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:h,mirror:u}=s,f=_t(n.grid),d=f+h,p=u?-h:d,g=-(0,i.t)(this.labelRotation),m=[];let v,b,y,x,_,w,M,k,S,T,R,O,A="middle";if("top"===r)w=this.bottom-p,M=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+p,M=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(f);M=t.textAlign,_=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(f);M=t.textAlign,_=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+d;else if((0,i.i)(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+d}M=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)_=(t.left+t.right)/2-d;else if((0,i.i)(r)){const t=Object.keys(r)[0],e=r[t];_=this.chart.scales[t].getPixelForValue(e)}M=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===c?A="top":"end"===c&&(A="bottom"));const C=this._getLabelSizes();for(v=0,b=a.length;v<b;++v){y=a[v],x=y.label;const t=s.setContext(this.getContext(v));k=this.getPixelForTick(v)+s.labelOffset,S=this._resolveTickFontOptions(v),T=S.lineHeight,R=(0,i.b)(x)?x.length:1;const e=R/2,n=t.color,c=t.textStrokeColor,h=t.textStrokeWidth;let f,d=M;if(o?(_=k,"inner"===M&&(d=v===b-1?this.options.reverse?"left":"right":0===v?this.options.reverse?"right":"left":"center"),O="top"===r?"near"===l||0!==g?-R*T+T/2:"center"===l?-C.highest.height/2-e*T+T:-C.highest.height+T/2:"near"===l||0!==g?T/2:"center"===l?C.highest.height/2-e*T:C.highest.height-R*T,u&&(O*=-1),0===g||t.showLabelBackdrop||(_+=T/2*Math.sin(g))):(w=k,O=(1-R)*T/2),t.showLabelBackdrop){const e=(0,i.E)(t.backdropPadding),n=C.heights[v],r=C.widths[v];let s=O-e.top,o=0-e.left;switch(A){case"middle":s-=n/2;break;case"bottom":s-=n}switch(M){case"center":o-=r/2;break;case"right":o-=r;break;case"inner":v===b-1?o-=r:v>0&&(o-=r/2)}f={left:o,top:s,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:x,font:S,textOffset:O,options:{rotation:g,color:n,strokeColor:c,strokeWidth:h,textAlign:d,textBaseline:A,translation:[_,w],backdrop:f}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-(0,i.t)(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,s=t+r,o=this._getLabelSizes().widest.width;let a,c;return"left"===e?i?(c=this.right+r,"near"===n?a="left":"center"===n?(a="center",c+=o/2):(a="right",c+=o)):(c=this.right-s,"near"===n?a="right":"center"===n?(a="center",c-=o/2):(a="left",c=this.left)):"right"===e?i?(c=this.left+r,"near"===n?a="right":"center"===n?(a="center",c-=o/2):(a="left",c-=o)):(c=this.left+s,"near"===n?a="left":"center"===n?(a="center",c+=o/2):(a="right",c=this.right)):a="right",{textAlign:a,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,s;const o=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,s=i.length;r<s;++r){const t=i[r];e.drawOnChartArea&&o({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&o({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:r}}=this,s=n.setContext(this.getContext()),o=n.display?s.width:0;if(!o)return;const a=r.setContext(this.getContext(0)).lineWidth,c=this._borderValue;let l,h,u,f;this.isHorizontal()?(l=(0,i.X)(t,this.left,o)-o/2,h=(0,i.X)(t,this.right,a)+a/2,u=f=c):(u=(0,i.X)(t,this.top,o)-o/2,f=(0,i.X)(t,this.bottom,a)+a/2,l=h=c),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(l,u),e.lineTo(h,f),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&(0,i.Y)(e,n);const r=this.getLabelItems(t);for(const t of r){const n=t.options,r=t.font,s=t.label,o=t.textOffset;(0,i.Z)(e,s,0,o,r,n)}n&&(0,i.$)(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const s=(0,i.a0)(n.font),o=(0,i.E)(n.padding),a=n.align;let c=s.lineHeight/2;"bottom"===e||"center"===e||(0,i.i)(e)?(c+=o.bottom,(0,i.b)(n.text)&&(c+=s.lineHeight*(n.text.length-1))):c+=o.top;const{titleX:l,titleY:h,maxWidth:u,rotation:f}=function(t,e,n,r){const{top:s,left:o,bottom:a,right:c,chart:l}=t,{chartArea:h,scales:u}=l;let f,d,p,g=0;const m=a-s,v=c-o;if(t.isHorizontal()){if(d=(0,i.a2)(r,o,c),(0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)+m-e}else p="center"===n?(h.bottom+h.top)/2+m-e:vt(t,n,e);f=c-o}else{if((0,i.i)(n)){const t=Object.keys(n)[0],i=n[t];d=u[t].getPixelForValue(i)-v+e}else d="center"===n?(h.left+h.right)/2-v+e:vt(t,n,e);p=(0,i.a2)(r,a,s),g="left"===n?-i.H:i.H}return{titleX:d,titleY:p,maxWidth:f,rotation:g}}(this,c,e,a);(0,i.Z)(t,n.text,0,0,s,{color:n.color,maxWidth:u,rotation:f,textAlign:Mt(a,e,r),textBaseline:"middle",translation:[l,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=(0,i.v)(t.grid&&t.grid.z,-1),r=(0,i.v)(t.border&&t.border.z,0);return this._isVisible()&&this.draw===kt.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,s;for(r=0,s=e.length;r<s;++r){const s=e[r];s[n]!==this.id||t&&s.type!==t||i.push(s)}return i}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return(0,i.a0)(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class St{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const r=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in r||(r[s]=t,function(t,e,n){const r=(0,i.a4)(Object.create(null),[n?i.d.get(n):{},i.d.get(e),t.defaults]);i.d.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const r=n.split("."),s=r.pop(),o=[t].concat(r).join("."),a=e[n].split("."),c=a.pop(),l=a.join(".");i.d.route(o,s,l,c)}))}(e,t.defaultRoutes),t.descriptors&&i.d.describe(e,t.descriptors)}(t,o,n),this.override&&i.d.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in i.d[r]&&(delete i.d[r][n],this.override&&delete i.a3[n])}}class Tt{constructor(){this.controllers=new St(_,"datasets",!0),this.elements=new St(gt,"elements"),this.plugins=new St(Object,"plugins"),this.scales=new St(kt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):(0,i.F)(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const r=(0,i.a5)(t);(0,i.Q)(n["before"+r],[],n),e[t](n),(0,i.Q)(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Rt=new Tt;class Ot{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,n,r){r=r||{};for(const s of t){const t=s.plugin,o=t[n],a=[e,r,s.options];if(!1===(0,i.Q)(o,a,t)&&r.cancelable)return!1}return!0}invalidate(){(0,i.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=(0,i.v)(n.options&&n.options.plugins,{}),s=function(t){const e={},n=[],i=Object.keys(Rt.plugins.items);for(let t=0;t<i.length;t++)n.push(Rt.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,{plugins:e,localIds:n},i,r){const s=[],o=t.getContext();for(const a of e){const e=a.id,c=At(i[e],r);null!==c&&s.push({plugin:a,options:Ct(t.config,{plugin:a,local:n[e]},c,o)})}return s}(t,s,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function At(t,e){return e||!1!==t?!0===t?{}:t:null}function Ct(t,{plugin:e,local:n},i,r){const s=t.pluginScopeKeys(e),o=t.getOptionScopes(i,s);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Pt(t,e){const n=i.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Et(t){if("x"===t||"y"===t||"r"===t)return t}function It(t,...e){if(Et(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&Et(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Dt(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function zt(t){const e=t.options||(t.options={});e.plugins=(0,i.v)(e.plugins,{}),e.scales=function(t,e){const n=i.a3[t.type]||{scales:{}},r=e.scales||{},s=Pt(t.type,e),o=Object.create(null);return Object.keys(r).forEach((e=>{const a=r[e];if(!(0,i.i)(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const c=It(e,a,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return Dt(t,"x",n[0])||Dt(t,"y",n[0])}return{}}(e,t),i.d.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(c,s),h=n.scales||{};o[e]=(0,i.ab)(Object.create(null),[{axis:c},a,h[c],h[l]])})),t.data.datasets.forEach((n=>{const s=n.type||t.type,a=n.indexAxis||Pt(s,e),c=(i.a3[s]||{}).scales||{};Object.keys(c).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),s=n[e+"AxisID"]||e;o[s]=o[s]||Object.create(null),(0,i.ab)(o[s],[{axis:e},r[s],c[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];(0,i.ab)(e,[i.d.scales[e.type],i.d.scale])})),o}(t,e)}function Lt(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ft=new Map,jt=new Set;function Wt(t,e){let n=Ft.get(t);return n||(n=e(),Ft.set(t,n),jt.add(n)),n}const Bt=(t,e,n)=>{const r=(0,i.f)(e,n);void 0!==r&&t.add(r)};class Nt{constructor(t){this._config=function(t){return(t=t||{}).data=Lt(t.data),zt(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Lt(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),zt(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Wt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Wt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Wt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Wt(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:r,type:s}=this,o=this._cachedScopes(t,n),a=o.get(e);if(a)return a;const c=new Set;e.forEach((e=>{t&&(c.add(t),e.forEach((e=>Bt(c,t,e)))),e.forEach((t=>Bt(c,r,t))),e.forEach((t=>Bt(c,i.a3[s]||{},t))),e.forEach((t=>Bt(c,i.d,t))),e.forEach((t=>Bt(c,i.a6,t)))}));const l=Array.from(c);return 0===l.length&&l.push(Object.create(null)),jt.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,i.a3[e]||{},i.d.datasets[e]||{},{type:e},i.d,i.a6]}resolveNamedOptions(t,e,n,r=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=Ht(this._resolverCache,t,r);let c=o;if(function(t,e){const{isScriptable:n,isIndexable:r}=(0,i.aa)(t);for(const s of e){const e=n(s),o=r(s),a=(o||e)&&t[s];if(e&&((0,i.a7)(a)||Vt(a))||o&&(0,i.b)(a))return!0}return!1}(o,e)){s.$shared=!1,n=(0,i.a7)(n)?n():n;const e=this.createResolver(t,n,a);c=(0,i.a8)(o,n,e)}for(const t of e)s[t]=c[t];return s}createResolver(t,e,n=[""],r){const{resolver:s}=Ht(this._resolverCache,t,n);return(0,i.i)(e)?(0,i.a8)(s,e,void 0,r):s}}function Ht(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const s=n.join();let o=r.get(s);return o||(o={resolver:(0,i.a9)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},r.set(s,o)),o}const Vt=t=>(0,i.i)(t)&&Object.getOwnPropertyNames(t).some((e=>(0,i.a7)(t[e]))),$t=["top","bottom","left","right","chartArea"];function Ut(t,e){return"top"===t||"bottom"===t||-1===$t.indexOf(t)&&"x"===e}function Qt(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Yt(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,i.Q)(n&&n.onComplete,[t],e)}function Xt(t){const e=t.chart,n=e.options.animation;(0,i.Q)(n&&n.onProgress,[t],e)}function qt(t){return(0,i.M)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Zt={},Kt=t=>{const e=qt(t);return Object.values(Zt).filter((t=>t.canvas===e)).pop()};function Gt(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const s=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=s)}}}function Jt(t,e,n){return t.options.clip?t[n]:e[n]}class te{static defaults=i.d;static instances=Zt;static overrides=i.a3;static registry=Rt;static version="4.4.4";static getChart=Kt;static register(...t){Rt.add(...t),ee()}static unregister(...t){Rt.remove(...t),ee()}constructor(t,e){const n=this.config=new Nt(e),r=qt(t),o=Kt(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!(0,i.M)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?J:pt}(r)),this.platform.updateConfig(n);const c=this.platform.acquireContext(r,a.aspectRatio),l=c&&c.canvas,h=l&&l.height,u=l&&l.width;this.id=(0,i.ac)(),this.ctx=c,this.canvas=l,this.width=u,this.height=h,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ot,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,i.ad)((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],Zt[this.id]=this,c&&l?(s.listen(this,"complete",Yt),s.listen(this,"progress",Xt),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:s}=this;return(0,i.k)(t)?e&&s?s:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Rt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,i.ae)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,i.af)(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(t,e){s.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,s=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,s),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,(0,i.ae)(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),(0,i.Q)(n.onResize,[this,o],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};(0,i.F)(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let s=[];e&&(s=s.concat(Object.keys(e).map((t=>{const n=e[t],i=It(t,n),r="r"===i,s="x"===i;return{options:n,dposition:r?"chartArea":s?"bottom":"left",dtype:r?"radialLinear":s?"category":"linear"}})))),(0,i.F)(s,(e=>{const s=e.options,o=s.id,a=It(o,s),c=(0,i.v)(s.type,e.dtype);void 0!==s.position&&Ut(s.position,a)===Ut(e.dposition)||(s.position=e.dposition),r[o]=!0;let l=null;o in n&&n[o].type===c?l=n[o]:(l=new(Rt.getScale(c))({id:o,type:c,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(s,t)})),(0,i.F)(r,((t,e)=>{t||delete n[e]})),(0,i.F)(n,(t=>{K.configure(this,t,t.options),K.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Qt("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[n];let s=this.getDatasetMeta(n);const o=r.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=o,s.indexAxis=r.indexAxis||Pt(o,this.options),s.order=r.order||0,s.index=n,s.label=""+r.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const e=Rt.getController(o),{datasetElementType:r,dataElementType:a}=i.d.datasets[o];Object.assign(e,{dataElementType:Rt.getElement(a),datasetElementType:r&&Rt.getElement(r)}),s.controller=new e(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){(0,i.F)(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===s.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||(0,i.F)(s,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Qt("z","_idx"));const{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){(0,i.F)(this.scales,(t=>{K.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);(0,i.ag)(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)Gt(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),r=n(0);for(let t=1;t<e;t++)if(!(0,i.ag)(r,n(t)))return;return Array.from(r).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;K.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],(0,i.F)(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,(0,i.a7)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(this)?this.attached&&!s.running(this)&&s.start(this):(this.draw(),Yt({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,r=!n.disabled,s=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Jt(n,e,"left"),right:Jt(n,e,"right"),top:Jt(i,e,"top"),bottom:Jt(i,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&(0,i.Y)(e,{left:!1===n.left?0:s.left-n.left,right:!1===n.right?this.width:s.right+n.right,top:!1===n.top?0:s.top-n.top,bottom:!1===n.bottom?this.height:s.bottom+n.bottom}),t.controller.draw(),r&&(0,i.$)(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return(0,i.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=W.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=(0,i.j)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,r);(0,i.h)(e)?(s.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(s,{visible:n}),this.update((e=>e.datasetIndex===t?r:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),s.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,i.af)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Zt[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};(0,i.F)(this.options.events,(t=>n(t,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",r),n("detach",s)};s=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",o)},e.isAttached(this.canvas)?o():s()}unbindEvents(){(0,i.F)(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},(0,i.F)(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,s,o,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),o=0,a=t.length;o<a;++o){s=t[o];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!(0,i.ah)(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),s=r(e,t),o=n?t:r(t,e);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:s}=this,o=e,a=this._getActiveElements(t,r,n,o),c=(0,i.ai)(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,c);n&&(this._lastEvent=null,(0,i.Q)(s.onHover,[t,a,this],this),c&&(0,i.Q)(s.onClick,[t,a,this],this));const h=!(0,i.ah)(a,r);return(h||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,h}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function ee(){return(0,i.F)(te.instances,(t=>t._plugins.invalidate()))}function ne(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function ie(t,e,n,r,s,o){const{x:a,y:c,startAngle:l,pixelMargin:h,innerRadius:u}=e,f=Math.max(e.outerRadius+r+n-h,0),d=u>0?u+r+n+h:0;let p=0;const g=s-l;if(r){const t=((u>0?u-r:0)+(f>0?f-r:0))/2;p=(g-(0!==t?g*t/(t+r):g))/2}const m=(g-Math.max(.001,g*f-n/i.P)/f)/2,v=l+m+p,b=s-m-p,{outerStart:y,outerEnd:x,innerStart:_,innerEnd:w}=function(t,e,n,r){const s=(o=t.options.borderRadius,(0,i.ak)(o,["outerStart","outerEnd","innerStart","innerEnd"]));var o;const a=(n-e)/2,c=Math.min(a,r*e/2),l=t=>{const e=(n-Math.min(a,t))*r/2;return(0,i.S)(t,0,Math.min(a,e))};return{outerStart:l(s.outerStart),outerEnd:l(s.outerEnd),innerStart:(0,i.S)(s.innerStart,0,c),innerEnd:(0,i.S)(s.innerEnd,0,c)}}(e,d,f,b-v),M=f-y,k=f-x,S=v+y/M,T=b-x/k,R=d+_,O=d+w,A=v+_/R,C=b-w/O;if(t.beginPath(),o){const e=(S+T)/2;if(t.arc(a,c,f,S,e),t.arc(a,c,f,e,T),x>0){const e=ne(k,T,a,c);t.arc(e.x,e.y,x,T,b+i.H)}const n=ne(O,b,a,c);if(t.lineTo(n.x,n.y),w>0){const e=ne(O,C,a,c);t.arc(e.x,e.y,w,b+i.H,C+Math.PI)}const r=(b-w/d+(v+_/d))/2;if(t.arc(a,c,d,b-w/d,r,!0),t.arc(a,c,d,r,v+_/d,!0),_>0){const e=ne(R,A,a,c);t.arc(e.x,e.y,_,A+Math.PI,v-i.H)}const s=ne(M,v,a,c);if(t.lineTo(s.x,s.y),y>0){const e=ne(M,S,a,c);t.arc(e.x,e.y,y,v-i.H,S)}}else{t.moveTo(a,c);const e=Math.cos(S)*f+a,n=Math.sin(S)*f+c;t.lineTo(e,n);const i=Math.cos(T)*f+a,r=Math.sin(T)*f+c;t.lineTo(i,r)}t.closePath()}class re extends gt{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.getProps(["x","y"],n),{angle:s,distance:o}=(0,i.D)(r,{x:t,y:e}),{startAngle:a,endAngle:c,innerRadius:l,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),f=(this.options.spacing+this.options.borderWidth)/2,d=(0,i.v)(u,c-a),p=(0,i.p)(s,a,c)&&a!==c,g=d>=i.T||p,m=(0,i.aj)(o,l+f,h+f);return g&&m}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:r,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:a,spacing:c}=this.options,l=(i+r)/2,h=(s+o+c+a)/2;return{x:e+Math.cos(l)*h,y:n+Math.sin(l)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>i.T?Math.floor(n/i.T):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const c=r*(1-Math.sin(Math.min(i.P,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,r,s){const{fullCircles:o,startAngle:a,circumference:c}=e;let l=e.endAngle;if(o){ie(t,e,n,r,l,s);for(let e=0;e<o;++e)t.fill();isNaN(c)||(l=a+(c%i.T||i.T))}ie(t,e,n,r,l,s),t.fill()}(t,this,c,s,o),function(t,e,n,r,s){const{fullCircles:o,startAngle:a,circumference:c,options:l}=e,{borderWidth:h,borderJoinStyle:u,borderDash:f,borderDashOffset:d}=l,p="inner"===l.borderAlign;if(!h)return;t.setLineDash(f||[]),t.lineDashOffset=d,p?(t.lineWidth=2*h,t.lineJoin=u||"round"):(t.lineWidth=h,t.lineJoin=u||"bevel");let g=e.endAngle;if(o){ie(t,e,n,r,g,s);for(let e=0;e<o;++e)t.stroke();isNaN(c)||(g=a+(c%i.T||i.T))}p&&function(t,e,n){const{startAngle:r,pixelMargin:s,x:o,y:a,outerRadius:c,innerRadius:l}=e;let h=s/c;t.beginPath(),t.arc(o,a,c,r-h,n+h),l>s?(h=s/l,t.arc(o,a,l,n+h,r-h,!0)):t.arc(o,a,s,n+i.H,r-i.H),t.closePath(),t.clip()}(t,e,g),o||(ie(t,e,n,r,g,s),t.stroke())}(t,this,c,s,o),t.restore()}}function se(t,e,n=e){t.lineCap=(0,i.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,i.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,i.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,i.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,i.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,i.v)(n.borderColor,e.borderColor)}function oe(t,e,n){t.lineTo(n.x,n.y)}function ae(t,e,n={}){const i=t.length,{start:r=0,end:s=i-1}=n,{start:o,end:a}=e,c=Math.max(r,o),l=Math.min(s,a),h=r<o&&s<o||r>a&&s>a;return{count:i,start:c,loop:e.loop,ilen:l<c&&!h?i+l-c:l-c}}function ce(t,e,n,r){const{points:s,options:o}=e,{count:a,start:c,loop:l,ilen:h}=ae(s,n,r),u=function(t){return t.stepped?i.ar:t.tension||"monotone"===t.cubicInterpolationMode?i.as:oe}(o);let f,d,p,{move:g=!0,reverse:m}=r||{};for(f=0;f<=h;++f)d=s[(c+(m?h-f:f))%a],d.skip||(g?(t.moveTo(d.x,d.y),g=!1):u(t,p,d,m,o.stepped),p=d);return l&&(d=s[(c+(m?h:0))%a],u(t,p,d,m,o.stepped)),!!l}function le(t,e,n,i){const r=e.points,{count:s,start:o,ilen:a}=ae(r,n,i),{move:c=!0,reverse:l}=i||{};let h,u,f,d,p,g,m=0,v=0;const b=t=>(o+(l?a-t:t))%s,y=()=>{d!==p&&(t.lineTo(m,p),t.lineTo(m,d),t.lineTo(m,g))};for(c&&(u=r[b(0)],t.moveTo(u.x,u.y)),h=0;h<=a;++h){if(u=r[b(h)],u.skip)continue;const e=u.x,n=u.y,i=0|e;i===f?(n<d?d=n:n>p&&(p=n),m=(v*m+e)/++v):(y(),t.lineTo(e,n),f=i,v=0,d=p=n),g=n}y()}function he(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?ce:le}const ue="function"==typeof Path2D;class fe extends gt{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;(0,i.al)(this._points,n,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,i.am)(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,r=t[e],s=this.points,o=(0,i.an)(this,{property:e,start:r,end:r});if(!o.length)return;const a=[],c=function(t){return t.stepped?i.ao:t.tension||"monotone"===t.cubicInterpolationMode?i.ap:i.aq}(n);let l,h;for(l=0,h=o.length;l<h;++l){const{start:i,end:h}=o[l],u=s[i],f=s[h];if(u===f){a.push(u);continue}const d=c(u,f,Math.abs((r-u[e])/(f[e]-u[e])),n.stepped);d[e]=t[e],a.push(d)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return he(this)(t,this,e,n)}path(t,e,n){const i=this.segments,r=he(this);let s=this._loop;e=e||0,n=n||this.points.length-e;for(const o of i)s&=r(t,this,o,{start:e,end:e+n-1});return!!s}draw(t,e,n,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),function(t,e,n,i){ue&&!e.options.segment?function(t,e,n,i){let r=e._path;r||(r=e._path=new Path2D,e.path(r,n,i)&&r.closePath()),se(t,e.options),t.stroke(r)}(t,e,n,i):function(t,e,n,i){const{segments:r,options:s}=e,o=he(e);for(const a of r)se(t,s,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function de(t,e,n,i){const r=t.options,{[n]:s}=t.getProps([n],i);return Math.abs(e-s)<r.radius+r.hitRadius}class pe extends gt{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const i=this.options,{x:r,y:s}=this.getProps(["x","y"],n);return Math.pow(t-r,2)+Math.pow(e-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return de(this,t,"x",e)}inYRange(t,e){return de(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!(0,i.C)(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,(0,i.at)(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function ge(t,e){const{x:n,y:i,base:r,width:s,height:o}=t.getProps(["x","y","base","width","height"],e);let a,c,l,h,u;return t.horizontal?(u=o/2,a=Math.min(n,r),c=Math.max(n,r),l=i-u,h=i+u):(u=s/2,a=n-u,c=n+u,l=Math.min(i,r),h=Math.max(i,r)),{left:a,top:l,right:c,bottom:h}}function me(t,e,n,r){return t?0:(0,i.S)(e,n,r)}function ve(t,e,n,r){const s=null===e,o=null===n,a=t&&!(s&&o)&&ge(t,r);return a&&(s||(0,i.aj)(e,a.left,a.right))&&(o||(0,i.aj)(n,a.top,a.bottom))}function be(t,e){t.rect(e.x,e.y,e.w,e.h)}function ye(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,s=(t.x+t.w!==n.x+n.w?e:0)-i,o=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+s,h:t.h+o,radius:t.radius}}class xe extends gt{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:s,outer:o}=function(t){const e=ge(t),n=e.right-e.left,r=e.bottom-e.top,s=function(t,e,n){const r=t.options.borderWidth,s=t.borderSkipped,o=(0,i.av)(r);return{t:me(s.top,o.top,0,n),r:me(s.right,o.right,0,e),b:me(s.bottom,o.bottom,0,n),l:me(s.left,o.left,0,e)}}(t,n/2,r/2),o=function(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,o=(0,i.aw)(s),a=Math.min(e,n),c=t.borderSkipped,l=r||(0,i.i)(s);return{topLeft:me(!l||c.top||c.left,o.topLeft,0,a),topRight:me(!l||c.top||c.right,o.topRight,0,a),bottomLeft:me(!l||c.bottom||c.left,o.bottomLeft,0,a),bottomRight:me(!l||c.bottom||c.right,o.bottomRight,0,a)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:o},inner:{x:e.left+s.l,y:e.top+s.t,w:n-s.l-s.r,h:r-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}(this),a=(c=o.radius).topLeft||c.topRight||c.bottomLeft||c.bottomRight?i.au:be;var c;t.save(),o.w===s.w&&o.h===s.h||(t.beginPath(),a(t,ye(o,e,s)),t.clip(),a(t,ye(s,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,ye(s,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return ve(this,t,e,n)}inXRange(t,e){return ve(this,t,null,e)}inYRange(t,e){return ve(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}const _e=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class we extends gt{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=(0,i.Q)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,r=(0,i.a0)(n.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:c}=_e(n,s);let l,h;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(o,s,a,c)+10):(h=this.maxHeight,l=this._fitCols(o,r,a,c)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:r,maxWidth:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],l=i+o;let h=t;r.textAlign="left",r.textBaseline="middle";let u=-1,f=-l;return this.legendItems.forEach(((t,d)=>{const p=n+e/2+r.measureText(t.text).width;(0===d||c[c.length-1]+p+2*o>s)&&(h+=l,c[c.length-(d>0?0:1)]=0,f+=l,u++),a[d]={left:0,top:f,row:u,width:p,height:i},c[c.length-1]+=p+o})),h}_fitCols(t,e,n,i){const{ctx:r,maxHeight:s,options:{labels:{padding:o}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],l=s-t;let h=o,u=0,f=0,d=0,p=0;return this.legendItems.forEach(((t,s)=>{const{itemWidth:g,itemHeight:m}=function(t,e,n,i,r){const s=function(t,e,n,i){let r=t.text;return r&&"string"!=typeof r&&(r=r.reduce(((t,e)=>t.length>e.length?t:e))),e+n.size/2+i.measureText(r).width}(i,t,e,n),o=function(t,e,n){let i=t;return"string"!=typeof e.text&&(i=Me(e,n)),i}(r,i,e.lineHeight);return{itemWidth:s,itemHeight:o}}(n,e,r,t,i);s>0&&f+m+2*o>l&&(h+=u+o,c.push({width:u,height:f}),d+=u+o,p++,u=f=0),a[s]={left:d,top:f,col:p,width:g,height:m},u=Math.max(u,g),f+=m+o})),h+=u,c.push({width:u,height:f}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:s}}=this,o=(0,i.az)(s,this.left,this.width);if(this.isHorizontal()){let s=0,a=(0,i.a2)(n,this.left+r,this.right-this.lineWidths[s]);for(const c of e)s!==c.row&&(s=c.row,a=(0,i.a2)(n,this.left+r,this.right-this.lineWidths[s])),c.top+=this.top+t+r,c.left=o.leftForLtr(o.x(a),c.width),a+=c.width+r}else{let s=0,a=(0,i.a2)(n,this.top+t+r,this.bottom-this.columnSizes[s].height);for(const c of e)c.col!==s&&(s=c.col,a=(0,i.a2)(n,this.top+t+r,this.bottom-this.columnSizes[s].height)),c.top=a,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),a+=c.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;(0,i.Y)(t,this),this._draw(),(0,i.$)(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:s,labels:o}=t,a=i.d.color,c=(0,i.az)(t.rtl,this.left,this.width),l=(0,i.a0)(o.font),{padding:h}=o,u=l.size,f=u/2;let d;this.drawTitle(),r.textAlign=c.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:g,itemHeight:m}=_e(o,u),v=this.isHorizontal(),b=this._computeTitleHeight();d=v?{x:(0,i.a2)(s,this.left+h,this.right-n[0]),y:this.top+h+b,line:0}:{x:this.left+h,y:(0,i.a2)(s,this.top+b+h,this.bottom-e[0].height),line:0},(0,i.aA)(this.ctx,t.textDirection);const y=m+h;this.legendItems.forEach(((x,_)=>{r.strokeStyle=x.fontColor,r.fillStyle=x.fontColor;const w=r.measureText(x.text).width,M=c.textAlign(x.textAlign||(x.textAlign=o.textAlign)),k=p+f+w;let S=d.x,T=d.y;if(c.setWidth(this.width),v?_>0&&S+k+h>this.right&&(T=d.y+=y,d.line++,S=d.x=(0,i.a2)(s,this.left+h,this.right-n[d.line])):_>0&&T+y>this.bottom&&(S=d.x=S+e[d.line].width+h,d.line++,T=d.y=(0,i.a2)(s,this.top+b+h,this.bottom-e[d.line].height)),function(t,e,n){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;r.save();const s=(0,i.v)(n.lineWidth,1);if(r.fillStyle=(0,i.v)(n.fillStyle,a),r.lineCap=(0,i.v)(n.lineCap,"butt"),r.lineDashOffset=(0,i.v)(n.lineDashOffset,0),r.lineJoin=(0,i.v)(n.lineJoin,"miter"),r.lineWidth=s,r.strokeStyle=(0,i.v)(n.strokeStyle,a),r.setLineDash((0,i.v)(n.lineDash,[])),o.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:s},l=c.xPlus(t,p/2),h=e+f;(0,i.aD)(r,a,l,h,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-g)/2,0),a=c.leftForLtr(t,p),l=(0,i.aw)(n.borderRadius);r.beginPath(),Object.values(l).some((t=>0!==t))?(0,i.au)(r,{x:a,y:o,w:p,h:g,radius:l}):r.rect(a,o,p,g),r.fill(),0!==s&&r.stroke()}r.restore()}(c.x(S),T,x),S=(0,i.aB)(M,S+p+f,v?S+k:this.right,t.rtl),function(t,e,n){(0,i.Z)(r,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:c.textAlign(n.textAlign)})}(c.x(S),T,x),v)d.x+=k+h;else if("string"!=typeof x.text){const t=l.lineHeight;d.y+=Me(x,t)+h}else d.y+=y})),(0,i.aC)(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=(0,i.a0)(e.font),r=(0,i.E)(e.padding);if(!e.display)return;const s=(0,i.az)(t.rtl,this.left,this.width),o=this.ctx,a=e.position,c=n.size/2,l=r.top+c;let h,u=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),h=this.top+l,u=(0,i.a2)(t.align,u,this.right-f);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+(0,i.a2)(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=(0,i.a2)(a,u,u+f);o.textAlign=s.textAlign((0,i.a1)(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,(0,i.Z)(o,e.text,d,h,n)}_computeTitleHeight(){const t=this.options.title,e=(0,i.a0)(t.font),n=(0,i.E)(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,s;if((0,i.aj)(t,this.left,this.right)&&(0,i.aj)(e,this.top,this.bottom))for(s=this.legendHitBoxes,n=0;n<s.length;++n)if(r=s[n],(0,i.aj)(t,r.left,r.left+r.width)&&(0,i.aj)(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(s=n,null!==(r=o)&&null!==s&&r.datasetIndex===s.datasetIndex&&r.index===s.index);o&&!a&&(0,i.Q)(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!a&&(0,i.Q)(e.onHover,[t,n,this],this)}else n&&(0,i.Q)(e.onClick,[t,n,this],this);var r,s}}function Me(t,e){return e*(t.text?t.text.length:0)}var ke={id:"legend",_element:we,start(t,e,n){const i=t.legend=new we({ctx:t.ctx,options:n,chart:t});K.configure(t,i,n),K.addBox(t,i)},stop(t){K.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;K.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,r=n.chart;r.isDatasetVisible(i)?(r.hide(i),e.hidden=!0):(r.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:s,color:o,useBorderRadius:a,borderRadius:c}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),h=(0,i.E)(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:s||l.textAlign,borderRadius:a&&(c||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Se extends gt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=(0,i.b)(n.text)?n.text.length:1;this._padding=(0,i.E)(n.padding);const s=r*(0,i.a0)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:r,right:s,options:o}=this,a=o.align;let c,l,h,u=0;return this.isHorizontal()?(l=(0,i.a2)(a,n,s),h=e+t,c=s-n):("left"===o.position?(l=n+t,h=(0,i.a2)(a,r,e),u=-.5*i.P):(l=s-t,h=(0,i.a2)(a,e,r),u=.5*i.P),c=r-e),{titleX:l,titleY:h,maxWidth:c,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=(0,i.a0)(e.font),r=n.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:a,rotation:c}=this._drawArgs(r);(0,i.Z)(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:c,textAlign:(0,i.a1)(e.align),textBaseline:"middle",translation:[s,o]})}}var Te={id:"title",_element:Se,start(t,e,n){!function(t,e){const n=new Se({ctx:t.ctx,options:e,chart:t});K.configure(t,n,e),K.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;K.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;K.configure(t,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;const Re={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,s=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i.add(t.x),r+=t.y,++s}}return 0!==s&&0!==i.size&&{x:[...i].reduce(((t,e)=>t+e))/i.size,y:r/s}},nearest(t,e){if(!t.length)return!1;let n,r,s,o=e.x,a=e.y,c=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=r.getCenterPoint(),n=(0,i.aE)(e,t);n<c&&(c=n,s=r)}}if(s){const t=s.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Oe(t,e){return e&&((0,i.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ae(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Ce(t,e){const{element:n,datasetIndex:i,index:r}=e,s=t.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:t,label:o,parsed:s.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function Pe(t,e){const n=t.chart.ctx,{body:r,footer:s,title:o}=t,{boxWidth:a,boxHeight:c}=e,l=(0,i.a0)(e.bodyFont),h=(0,i.a0)(e.titleFont),u=(0,i.a0)(e.footerFont),f=o.length,d=s.length,p=r.length,g=(0,i.E)(e.padding);let m=g.height,v=0,b=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,f&&(m+=f*h.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),b&&(m+=p*(e.displayColors?Math.max(c,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing),d&&(m+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let y=0;const x=function(t){v=Math.max(v,n.measureText(t).width+y)};return n.save(),n.font=h.string,(0,i.F)(t.title,x),n.font=l.string,(0,i.F)(t.beforeBody.concat(t.afterBody),x),y=e.displayColors?a+2+e.boxPadding:0,(0,i.F)(r,(t=>{(0,i.F)(t.before,x),(0,i.F)(t.lines,x),(0,i.F)(t.after,x)})),y=0,n.font=u.string,(0,i.F)(t.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function Ee(t,e,n,i){const{x:r,width:s}=n,{width:o,chartArea:{left:a,right:c}}=t;let l="center";return"center"===i?l=r<=(a+c)/2?"left":"right":r<=s/2?l="left":r>=o-s/2&&(l="right"),function(t,e,n,i){const{x:r,width:s}=i,o=n.caretSize+n.caretPadding;return"left"===t&&r+s+o>e.width||"right"===t&&r-s-o<0||void 0}(l,t,e,n)&&(l="center"),l}function Ie(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Ee(t,e,n,i),yAlign:i}}function De(t,e,n,r){const{caretSize:s,caretPadding:o,cornerRadius:a}=t,{xAlign:c,yAlign:l}=n,h=s+o,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:p}=(0,i.aw)(a);let g=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,c);const m=function(t,e,n){let{y:i,height:r}=t;return"top"===e?i+=n:i-="bottom"===e?r+n:r/2,i}(e,l,h);return"center"===l?"left"===c?g+=h:"right"===c&&(g-=h):"left"===c?g-=Math.max(u,d)+s:"right"===c&&(g+=Math.max(f,p)+s),{x:(0,i.S)(g,0,r.width-e.width),y:(0,i.S)(m,0,r.height-e.height)}}function ze(t,e,n){const r=(0,i.E)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function Le(t){return Oe([],Ae(t))}function Fe(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const je={beforeTitle:i.aF,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:i.aF,beforeBody:i.aF,beforeLabel:i.aF,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return(0,i.k)(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:i.aF,afterBody:i.aF,beforeFooter:i.aF,footer:i.aF,afterFooter:i.aF};function We(t,e,n,i){const r=t[e].call(n,i);return void 0===r?je[e].call(n,i):r}class Be extends gt{static positioners=Re;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,r=new l(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this._tooltipItems,(0,i.j)(t,{tooltip:this,tooltipItems:e,type:"tooltip"})));var t,e}getTitle(t,e){const{callbacks:n}=e,i=We(n,"beforeTitle",this,t),r=We(n,"title",this,t),s=We(n,"afterTitle",this,t);let o=[];return o=Oe(o,Ae(i)),o=Oe(o,Ae(r)),o=Oe(o,Ae(s)),o}getBeforeBody(t,e){return Le(We(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,r=[];return(0,i.F)(t,(t=>{const e={before:[],lines:[],after:[]},i=Fe(n,t);Oe(e.before,Ae(We(i,"beforeLabel",this,t))),Oe(e.lines,We(i,"label",this,t)),Oe(e.after,Ae(We(i,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return Le(We(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=We(n,"beforeFooter",this,t),r=We(n,"footer",this,t),s=We(n,"afterFooter",this,t);let o=[];return o=Oe(o,Ae(i)),o=Oe(o,Ae(r)),o=Oe(o,Ae(s)),o}_createItems(t){const e=this._active,n=this.chart.data,r=[],s=[],o=[];let a,c,l=[];for(a=0,c=e.length;a<c;++a)l.push(Ce(this.chart,e[a]));return t.filter&&(l=l.filter(((e,i,r)=>t.filter(e,i,r,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),(0,i.F)(l,(e=>{const n=Fe(t.callbacks,e);r.push(We(n,"labelColor",this,e)),s.push(We(n,"labelPointStyle",this,e)),o.push(We(n,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,s=[];if(i.length){const t=Re[n.position].call(this,i,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const e=this._size=Pe(this,n),o=Object.assign({},t,e),a=Ie(this.chart,n,o),c=De(n,o,a,this.chart);this.xAlign=a.xAlign,this.yAlign=a.yAlign,r={opacity:1,x:c.x,y:c.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(r={opacity:0});this._tooltipItems=s,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const r=this.getCaretPosition(t,n,i);e.lineTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.lineTo(r.x3,r.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:c,topRight:l,bottomLeft:h,bottomRight:u}=(0,i.aw)(a),{x:f,y:d}=t,{width:p,height:g}=e;let m,v,b,y,x,_;return"center"===s?(x=d+g/2,"left"===r?(m=f,v=m-o,y=x+o,_=x-o):(m=f+p,v=m+o,y=x-o,_=x+o),b=m):(v="left"===r?f+Math.max(c,h)+o:"right"===r?f+p-Math.max(l,u)-o:this.caretX,"top"===s?(y=d,x=y-o,m=v-o,b=v+o):(y=d+g,x=y+o,m=v+o,b=v-o),_=y),{x1:m,x2:v,x3:b,y1:y,y2:x,y3:_}}drawTitle(t,e,n){const r=this.title,s=r.length;let o,a,c;if(s){const l=(0,i.az)(n.rtl,this.x,this.width);for(t.x=ze(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",o=(0,i.a0)(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,c=0;c<s;++c)e.fillText(r[c],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,c+1===s&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,s){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:c,boxWidth:l}=s,h=(0,i.a0)(s.bodyFont),u=ze(this,"left",s),f=r.x(u),d=c<h.lineHeight?(h.lineHeight-c)/2:0,p=e.y+d;if(s.usePointStyle){const e={radius:Math.min(l,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(f,l)+l/2,h=p+c/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,(0,i.at)(t,e,n,h),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,(0,i.at)(t,e,n,h)}else{t.lineWidth=(0,i.i)(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=r.leftForLtr(f,l),n=r.leftForLtr(r.xPlus(f,1),l-2),a=(0,i.aw)(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=s.multiKeyBackground,(0,i.au)(t,{x:e,y:p,w:l,h:c,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),(0,i.au)(t,{x:n,y:p+1,w:l-2,h:c-2,radius:a}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,p,l,c),t.strokeRect(e,p,l,c),t.fillStyle=o.backgroundColor,t.fillRect(n,p+1,l-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:c,boxWidth:l,boxPadding:h}=n,u=(0,i.a0)(n.bodyFont);let f=u.lineHeight,d=0;const p=(0,i.az)(n.rtl,this.x,this.width),g=function(n){e.fillText(n,p.x(t.x+d),t.y+f/2),t.y+=f+s},m=p.textAlign(o);let v,b,y,x,_,w,M;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=ze(this,m,n),e.fillStyle=n.bodyColor,(0,i.F)(this.beforeBody,g),d=a&&"right"!==m?"center"===o?l/2+h:l+2+h:0,x=0,w=r.length;x<w;++x){for(v=r[x],b=this.labelTextColors[x],e.fillStyle=b,(0,i.F)(v.before,g),y=v.lines,a&&y.length&&(this._drawColorBox(e,t,x,p,n),f=Math.max(u.lineHeight,c)),_=0,M=y.length;_<M;++_)g(y[_]),f=u.lineHeight;(0,i.F)(v.after,g)}d=0,f=u.lineHeight,(0,i.F)(this.afterBody,g),t.y-=s}drawFooter(t,e,n){const r=this.footer,s=r.length;let o,a;if(s){const c=(0,i.az)(n.rtl,this.x,this.width);for(t.x=ze(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=c.textAlign(n.footerAlign),e.textBaseline="middle",o=(0,i.a0)(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,a=0;a<s;++a)e.fillText(r[a],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:s,yAlign:o}=this,{x:a,y:c}=t,{width:l,height:h}=n,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:p}=(0,i.aw)(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+u,c),"top"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l-f,c),e.quadraticCurveTo(a+l,c,a+l,c+f),"center"===o&&"right"===s&&this.drawCaret(t,e,n,r),e.lineTo(a+l,c+h-p),e.quadraticCurveTo(a+l,c+h,a+l-p,c+h),"bottom"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+d,c+h),e.quadraticCurveTo(a,c+h,a,c+h-d),"center"===o&&"left"===s&&this.drawCaret(t,e,n,r),e.lineTo(a,c+u),e.quadraticCurveTo(a,c,a+u,c),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,r=n&&n.y;if(i||r){const n=Re[t.position].call(this,this._active,this._eventPosition);if(!n)return;const s=this._size=Pe(this,t),o=Object.assign({},n,this._size),a=Ie(e,t,o),c=De(t,o,a,e);i._to===c.x&&r._to===c.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=s.width,this.height=s.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=(0,i.E)(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(s,t,r,e),(0,i.aA)(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),(0,i.aC)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),s=!(0,i.ah)(n,r),o=this._positionChanged(r,e);(s||o)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,n),a=this._positionChanged(o,t),c=e||!(0,i.ah)(o,s)||a;return c&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,n,i){const r=this.options;if("mouseout"===t.type)return[];if(!i)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const s=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,s=Re[r.position].call(this,t,e);return!1!==s&&(n!==s.x||i!==s.y)}}var Ne={id:"tooltip",_element:Be,positioners:Re,afterInit(t,e,n){n&&(t.tooltip=new Be({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:je},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function He(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Ve extends kt{static id="category";static defaults={ticks:{callback:He}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,i.k)(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:(0,i.S)(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,(0,i.v)(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return He.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function $e(t,e,{horizontal:n,minRotation:r}){const s=(0,i.t)(r),o=(n?Math.sin(s):Math.cos(s))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class Ue extends kt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,i.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:s}=this;const o=t=>r=e?r:t,a=t=>s=n?s:t;if(t){const t=(0,i.s)(r),e=(0,i.s)(s);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(r===s){let e=0===s?1:Math.abs(.05*s);a(s+e),t||o(r-e)}this.min=r,this.max=s}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=function(t,e){const n=[],{bounds:r,step:s,min:o,max:a,precision:c,count:l,maxTicks:h,maxDigits:u,includeBounds:f}=t,d=s||1,p=h-1,{min:g,max:m}=e,v=!(0,i.k)(o),b=!(0,i.k)(a),y=!(0,i.k)(l),x=(m-g)/(u+1);let _,w,M,k,S=(0,i.aH)((m-g)/p/d)*d;if(S<1e-14&&!v&&!b)return[{value:g},{value:m}];k=Math.ceil(m/S)-Math.floor(g/S),k>p&&(S=(0,i.aH)(k*S/p/d)*d),(0,i.k)(c)||(_=Math.pow(10,c),S=Math.ceil(S*_)/_),"ticks"===r?(w=Math.floor(g/S)*S,M=Math.ceil(m/S)*S):(w=g,M=m),v&&b&&s&&(0,i.aI)((a-o)/s,S/1e3)?(k=Math.round(Math.min((a-o)/S,h)),S=(a-o)/k,w=o,M=a):y?(w=v?o:w,M=b?a:M,k=l-1,S=(M-w)/k):(k=(M-w)/S,k=(0,i.aJ)(k,Math.round(k),S/1e3)?Math.round(k):Math.ceil(k));const T=Math.max((0,i.aK)(S),(0,i.aK)(w));_=Math.pow(10,(0,i.k)(c)?T:c),w=Math.round(w*_)/_,M=Math.round(M*_)/_;let R=0;for(v&&(f&&w!==o?(n.push({value:o}),w<o&&R++,(0,i.aJ)(Math.round((w+R*S)*_)/_,o,$e(o,x,t))&&R++):w<o&&R++);R<k;++R){const t=Math.round((w+R*S)*_)/_;if(b&&t>a)break;n.push({value:t})}return b&&f&&M!==a?n.length&&(0,i.aJ)(n[n.length-1].value,a,$e(a,x,t))?n[n.length-1].value=a:n.push({value:a}):b&&M!==a||n.push({value:M}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&(0,i.aG)(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return(0,i.o)(t,this.chart.options.locale,this.options.ticks.format)}}class Qe extends Ue{static id="linear";static defaults={ticks:{callback:i.aL.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=(0,i.g)(t)?t:0,this.max=(0,i.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=(0,i.t)(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}i.aL.formatters.logarithmic,i.aL.formatters.numeric},2020:(t,e,n)=>{"use strict";function i(t){return t+.5|0}n.d(e,{$:()=>_e,A:()=>Dt,B:()=>It,C:()=>ye,D:()=>kt,E:()=>ze,F:()=>$,G:()=>mn,H:()=>ht,I:()=>cn,J:()=>yn,K:()=>bn,L:()=>Nt,M:()=>an,N:()=>vt,O:()=>W,P:()=>st,Q:()=>V,R:()=>je,S:()=>At,T:()=>ot,U:()=>wt,V:()=>de,W:()=>Ct,X:()=>ge,Y:()=>xe,Z:()=>Te,_:()=>Wt,a:()=>Fe,a0:()=>Le,a1:()=>Vt,a2:()=>$t,a3:()=>ae,a4:()=>q,a5:()=>tt,a6:()=>ce,a7:()=>nt,a8:()=>Ne,a9:()=>Be,aA:()=>Tn,aB:()=>Ut,aC:()=>Rn,aD:()=>be,aE:()=>St,aF:()=>I,aG:()=>xt,aH:()=>mt,aI:()=>yt,aJ:()=>gt,aK:()=>Mt,aL:()=>oe,aM:()=>dt,aN:()=>pe,aO:()=>zt,aP:()=>Et,aa:()=>He,ab:()=>Z,ac:()=>D,ad:()=>Ht,ae:()=>vn,af:()=>me,ag:()=>it,ah:()=>U,ai:()=>rt,aj:()=>Pt,ak:()=>Ee,al:()=>on,am:()=>En,an:()=>Pn,ao:()=>_n,ap:()=>wn,aq:()=>xn,ar:()=>we,as:()=>Me,at:()=>ve,au:()=>Re,av:()=>Ie,aw:()=>De,ax:()=>Cn,ay:()=>Rt,az:()=>Sn,b:()=>L,c:()=>Jt,d:()=>fe,e:()=>Kt,f:()=>J,g:()=>j,h:()=>et,i:()=>F,j:()=>We,k:()=>z,l:()=>Ft,m:()=>N,n:()=>H,o:()=>re,p:()=>Ot,q:()=>Qt,r:()=>Bt,s:()=>pt,t:()=>_t,u:()=>jt,v:()=>B,w:()=>Yt,x:()=>bt,y:()=>Je,z:()=>pn});const r=(t,e,n)=>Math.max(Math.min(t,n),e);function s(t){return r(i(2.55*t),0,255)}function o(t){return r(i(255*t),0,255)}function a(t){return r(i(t/2.55)/100,0,1)}function c(t){return r(i(100*t),0,100)}const l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},h=[..."0123456789ABCDEF"],u=t=>h[15&t],f=t=>h[(240&t)>>4]+h[15&t],d=t=>(240&t)>>4==(15&t);const p=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function m(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function v(t,e,n){const i=g(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function b(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),s=Math.min(e,n,i),o=(r+s)/2;let a,c,l;return r!==s&&(l=r-s,c=o>.5?l/(2-r-s):l/(r+s),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,l,r),a=60*a+.5),[0|a,c||0,o]}function y(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(o)}function x(t,e,n){return y(g,t,e,n)}function _(t){return(t%360+360)%360}const w={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},M={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let k;const S=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,T=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,R=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function O(t,e,n){if(t){let i=b(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=x(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function A(t,e){return t?Object.assign(e||{},t):t}function C(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=o(t[3]))):(e=A(t,{r:0,g:0,b:0,a:1})).a=o(e.a),e}function P(t){return"r"===t.charAt(0)?function(t){const e=S.exec(t);let n,i,o,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?s(t):r(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?s(n):r(n,0,255)),i=255&(e[4]?s(i):r(i,0,255)),o=255&(e[6]?s(o):r(o,0,255)),{r:n,g:i,b:o,a}}}(t):function(t){const e=p.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?s(+e[5]):o(+e[5]));const r=_(+e[2]),a=+e[3]/100,c=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return y(v,t,e,n)}(r,a,c):"hsv"===e[1]?function(t,e,n){return y(m,t,e,n)}(r,a,c):x(r,a,c),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class E{constructor(t){if(t instanceof E)return t;const e=typeof t;let n;var i,r,s;"object"===e?n=C(t):"string"===e&&(s=(i=t).length,"#"===i[0]&&(4===s||5===s?r={r:255&17*l[i[1]],g:255&17*l[i[2]],b:255&17*l[i[3]],a:5===s?17*l[i[4]]:255}:7!==s&&9!==s||(r={r:l[i[1]]<<4|l[i[2]],g:l[i[3]]<<4|l[i[4]],b:l[i[5]]<<4|l[i[6]],a:9===s?l[i[7]]<<4|l[i[8]]:255})),n=r||function(t){k||(k=function(){const t={},e=Object.keys(M),n=Object.keys(w);let i,r,s,o,a;for(i=0;i<e.length;i++){for(o=a=e[i],r=0;r<n.length;r++)s=n[r],a=a.replace(s,w[s]);s=parseInt(M[o],16),t[a]=[s>>16&255,s>>8&255,255&s]}return t}(),k.transparent=[0,0,0,0]);const e=k[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||P(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=A(this._rgb);return t&&(t.a=a(t.a)),t}set rgb(t){this._rgb=C(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${a(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>d(t.r)&&d(t.g)&&d(t.b)&&d(t.a))(t)?u:f,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=b(t),n=e[0],i=c(e[1]),r=c(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${a(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const s=e===r?.5:e,o=2*s-1,a=n.a-i.a,c=((o*a==-1?o:(o+a)/(1+o*a))+1)/2;r=1-c,n.r=255&c*n.r+r*i.r+.5,n.g=255&c*n.g+r*i.g+.5,n.b=255&c*n.b+r*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=R(a(t.r)),r=R(a(t.g)),s=R(a(t.b));return{r:o(T(i+n*(R(a(e.r))-i))),g:o(T(r+n*(R(a(e.g))-r))),b:o(T(s+n*(R(a(e.b))-s))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new E(this.rgb)}alpha(t){return this._rgb.a=o(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=i(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return O(this._rgb,2,t),this}darken(t){return O(this._rgb,2,-t),this}saturate(t){return O(this._rgb,1,t),this}desaturate(t){return O(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=b(t);n[0]=_(n[0]+e),n=x(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function I(){}const D=(()=>{let t=0;return()=>t++})();function z(t){return null==t}function L(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function F(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function j(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function W(t,e){return j(t)?t:e}function B(t,e){return void 0===t?e:t}const N=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,H=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function V(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function $(t,e,n,i){let r,s,o;if(L(t))if(s=t.length,i)for(r=s-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<s;r++)e.call(n,t[r],r);else if(F(t))for(o=Object.keys(t),s=o.length,r=0;r<s;r++)e.call(n,t[o[r]],o[r])}function U(t,e){let n,i,r,s;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],s=e[n],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function Q(t){if(L(t))return t.map(Q);if(F(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=Q(t[n[r]]);return e}return t}function Y(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function X(t,e,n,i){if(!Y(t))return;const r=e[t],s=n[t];F(r)&&F(s)?q(r,s,i):e[t]=Q(s)}function q(t,e,n){const i=L(e)?e:[e],r=i.length;if(!F(t))return t;const s=(n=n||{}).merger||X;let o;for(let e=0;e<r;++e){if(o=i[e],!F(o))continue;const r=Object.keys(o);for(let e=0,i=r.length;e<i;++e)s(r[e],t,o,n)}return t}function Z(t,e){return q(t,e,{merger:K})}function K(t,e,n){if(!Y(t))return;const i=e[t],r=n[t];F(i)&&F(r)?Z(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Q(r))}const G={"":t=>t,x:t=>t.x,y:t=>t.y};function J(t,e){const n=G[e]||(G[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function tt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const et=t=>void 0!==t,nt=t=>"function"==typeof t,it=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function rt(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}const st=Math.PI,ot=2*st,at=ot+st,ct=Number.POSITIVE_INFINITY,lt=st/180,ht=st/2,ut=st/4,ft=2*st/3,dt=Math.log10,pt=Math.sign;function gt(t,e,n){return Math.abs(t-e)<n}function mt(t){const e=Math.round(t);t=gt(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(dt(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function vt(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}function bt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function yt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function xt(t,e,n){let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i][n],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function _t(t){return t*(st/180)}function wt(t){return t*(180/st)}function Mt(t){if(!j(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function kt(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let s=Math.atan2(i,n);return s<-.5*st&&(s+=ot),{angle:s,distance:r}}function St(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Tt(t,e){return(t-e+at)%ot-st}function Rt(t){return(t%ot+ot)%ot}function Ot(t,e,n,i){const r=Rt(t),s=Rt(e),o=Rt(n),a=Rt(s-r),c=Rt(o-r),l=Rt(r-s),h=Rt(r-o);return r===s||r===o||i&&s===o||a>c&&l<h}function At(t,e,n){return Math.max(e,Math.min(n,t))}function Ct(t){return At(t,-32768,32767)}function Pt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Et(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,s=0;for(;r-s>1;)i=s+r>>1,n(i)?s=i:r=i;return{lo:s,hi:r}}const It=(t,e,n,i)=>Et(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),Dt=(t,e,n)=>Et(t,n,(i=>t[i][e]>=n));function zt(t,e,n){let i=0,r=t.length;for(;i<r&&t[i]<e;)i++;for(;r>i&&t[r-1]>n;)r--;return i>0||r<t.length?t.slice(i,r):t}const Lt=["push","pop","shift","splice","unshift"];function Ft(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Lt.forEach((e=>{const n="_onData"+tt(e),i=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const r=i.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[n]&&t[n](...e)})),r}})})))}function jt(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(Lt.forEach((e=>{delete t[e]})),delete t._chartjs)}function Wt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Bt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Nt(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,Bt.call(window,(()=>{i=!1,t.apply(e,n)})))}}function Ht(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const Vt=t=>"start"===t?"left":"end"===t?"right":"center",$t=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,Ut=(t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e;function Qt(t,e,n){const i=e.length;let r=0,s=i;if(t._sorted){const{iScale:o,_parsed:a}=t,c=o.axis,{min:l,max:h,minDefined:u,maxDefined:f}=o.getUserBounds();u&&(r=At(Math.min(It(a,c,l).lo,n?i:It(e,c,o.getPixelForValue(l)).lo),0,i-1)),s=f?At(Math.max(It(a,o.axis,h,!0).hi+1,n?0:It(e,c,o.getPixelForValue(h),!0).hi+1),r,i)-r:i-r}return{start:r,count:s}}function Yt(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,r={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=r,!0;const s=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),s}const Xt=t=>0===t||1===t,qt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*ot/n),Zt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*ot/n)+1,Kt={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ht),easeOutSine:t=>Math.sin(t*ht),easeInOutSine:t=>-.5*(Math.cos(st*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>Xt(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Xt(t)?t:qt(t,.075,.3),easeOutElastic:t=>Xt(t)?t:Zt(t,.075,.3),easeInOutElastic(t){const e=.1125;return Xt(t)?t:t<.5?.5*qt(2*t,e,.45):.5+.5*Zt(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-Kt.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*Kt.easeInBounce(2*t):.5*Kt.easeOutBounce(2*t-1)+.5};function Gt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Jt(t){return Gt(t)?t:new E(t)}function te(t){return Gt(t)?t:new E(t).saturate(.5).darken(.1).hexString()}const ee=["x","y","borderWidth","radius","tension"],ne=["color","borderColor","backgroundColor"],ie=new Map;function re(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ie.get(n);return i||(i=new Intl.NumberFormat(t,e),ie.set(n,i)),i}(e,n).format(t)}const se={values:t=>L(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,s=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),s=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const o=dt(Math.abs(s)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(c,this.options.ticks.format),re(t,i,c)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(dt(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?se.numeric.call(this,t,e,n):""}};var oe={formatters:se};const ae=Object.create(null),ce=Object.create(null);function le(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function he(t,e,n){return"string"==typeof e?q(le(t,e),n):q(le(t,""),e)}class ue{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>te(e.backgroundColor),this.hoverBorderColor=(t,e)=>te(e.borderColor),this.hoverColor=(t,e)=>te(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return he(this,t,e)}get(t){return le(this,t)}describe(t,e){return he(ce,t,e)}override(t,e){return he(ae,t,e)}route(t,e,n,i){const r=le(this,t),s=le(this,n),o="_"+e;Object.defineProperties(r,{[o]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=s[i];return F(t)?Object.assign({},e,t):B(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var fe=new ue({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:ne},numbers:{type:"number",properties:ee}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:oe.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function de(t,e,n,i,r){let s=e[r];return s||(s=e[r]=t.measureText(r).width,n.push(r)),s>i&&(i=s),i}function pe(t,e,n,i){let r=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},s=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let o=0;const a=n.length;let c,l,h,u,f;for(c=0;c<a;c++)if(u=n[c],null==u||L(u)){if(L(u))for(l=0,h=u.length;l<h;l++)f=u[l],null==f||L(f)||(o=de(t,r,s,o,f))}else o=de(t,r,s,o,u);t.restore();const d=s.length/2;if(d>n.length){for(c=0;c<d;c++)delete r[s[c]];s.splice(0,d)}return o}function ge(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function me(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function ve(t,e,n,i){be(t,e,n,i,null)}function be(t,e,n,i,r){let s,o,a,c,l,h,u,f;const d=e.pointStyle,p=e.rotation,g=e.radius;let m=(p||0)*lt;if(d&&"object"==typeof d&&(s=d.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(n,i),t.rotate(m),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(g)||g<=0)){switch(t.beginPath(),d){default:r?t.ellipse(n,i,r/2,g,0,0,ot):t.arc(n,i,g,0,ot),t.closePath();break;case"triangle":h=r?r/2:g,t.moveTo(n+Math.sin(m)*h,i-Math.cos(m)*g),m+=ft,t.lineTo(n+Math.sin(m)*h,i-Math.cos(m)*g),m+=ft,t.lineTo(n+Math.sin(m)*h,i-Math.cos(m)*g),t.closePath();break;case"rectRounded":l=.516*g,c=g-l,o=Math.cos(m+ut)*c,u=Math.cos(m+ut)*(r?r/2-l:c),a=Math.sin(m+ut)*c,f=Math.sin(m+ut)*(r?r/2-l:c),t.arc(n-u,i-a,l,m-st,m-ht),t.arc(n+f,i-o,l,m-ht,m),t.arc(n+u,i+a,l,m,m+ht),t.arc(n-f,i+o,l,m+ht,m+st),t.closePath();break;case"rect":if(!p){c=Math.SQRT1_2*g,h=r?r/2:c,t.rect(n-h,i-c,2*h,2*c);break}m+=ut;case"rectRot":u=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),t.moveTo(n-u,i-a),t.lineTo(n+f,i-o),t.lineTo(n+u,i+a),t.lineTo(n-f,i+o),t.closePath();break;case"crossRot":m+=ut;case"cross":u=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),t.moveTo(n-u,i-a),t.lineTo(n+u,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"star":u=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),t.moveTo(n-u,i-a),t.lineTo(n+u,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o),m+=ut,u=Math.cos(m)*(r?r/2:g),o=Math.cos(m)*g,a=Math.sin(m)*g,f=Math.sin(m)*(r?r/2:g),t.moveTo(n-u,i-a),t.lineTo(n+u,i+a),t.moveTo(n+f,i-o),t.lineTo(n-f,i+o);break;case"line":o=r?r/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(n-o,i-a),t.lineTo(n+o,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(m)*(r?r/2:g),i+Math.sin(m)*g);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function ye(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function xe(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function _e(t){t.restore()}function we(t,e,n,i,r){if(!e)return t.lineTo(n.x,n.y);if("middle"===r){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===r!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Me(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function ke(t,e,n,i,r){if(r.strikethrough||r.underline){const s=t.measureText(i),o=e-s.actualBoundingBoxLeft,a=e+s.actualBoundingBoxRight,c=n-s.actualBoundingBoxAscent,l=n+s.actualBoundingBoxDescent,h=r.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(o,h),t.lineTo(a,h),t.stroke()}}function Se(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function Te(t,e,n,i,r,s={}){const o=L(e)?e:[e],a=s.strokeWidth>0&&""!==s.strokeColor;let c,l;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),z(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),c=0;c<o.length;++c)l=o[c],s.backdrop&&Se(t,s.backdrop),a&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),z(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(l,n,i,s.maxWidth)),t.fillText(l,n,i,s.maxWidth),ke(t,n,i,l,s),i+=Number(r.lineHeight);t.restore()}function Re(t,e){const{x:n,y:i,w:r,h:s,radius:o}=e;t.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*st,st,!0),t.lineTo(n,i+s-o.bottomLeft),t.arc(n+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,st,ht,!0),t.lineTo(n+r-o.bottomRight,i+s),t.arc(n+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,ht,0,!0),t.lineTo(n+r,i+o.topRight),t.arc(n+r-o.topRight,i+o.topRight,o.topRight,0,-ht,!0),t.lineTo(n+o.topLeft,i)}const Oe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Ae=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ce(t,e){const n=(""+t).match(Oe);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const Pe=t=>+t||0;function Ee(t,e){const n={},i=F(e),r=i?Object.keys(e):e,s=F(t)?i?n=>B(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=Pe(s(t));return n}function Ie(t){return Ee(t,{top:"y",right:"x",bottom:"y",left:"x"})}function De(t){return Ee(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ze(t){const e=Ie(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Le(t,e){t=t||{},e=e||fe.font;let n=B(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=B(t.style,e.style);i&&!(""+i).match(Ae)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:B(t.family,e.family),lineHeight:Ce(B(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:B(t.weight,e.weight),string:""};return r.string=function(t){return!t||z(t.size)||z(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function Fe(t,e,n,i){let r,s,o,a=!0;for(r=0,s=t.length;r<s;++r)if(o=t[r],void 0!==o&&(void 0!==e&&"function"==typeof o&&(o=o(e),a=!1),void 0!==n&&L(o)&&(o=o[n%o.length],a=!1),void 0!==o))return i&&!a&&(i.cacheable=!1),o}function je(t,e,n){const{min:i,max:r}=t,s=H(e,(r-i)/2),o=(t,e)=>n&&0===t?0:t+e;return{min:o(i,-Math.abs(s)),max:o(r,s)}}function We(t,e){return Object.assign(Object.create(t),e)}function Be(t,e=[""],n,i,r=()=>t[0]){const s=n||t;void 0===i&&(i=Ke("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:r,override:n=>Be([n,...t],e,s,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Ue(n,i,(()=>function(t,e,n,i){let r;for(const s of e)if(r=Ke(Ve(s,t),n),void 0!==r)return $e(t,r)?qe(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ge(t).includes(e),ownKeys:t=>Ge(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function Ne(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:He(t,i),setContext:e=>Ne(t,e,n,i),override:r=>Ne(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Ue(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=t;let a=i[e];return nt(a)&&o.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let c=e(s,o||i);return a.delete(t),$e(t,c)&&(c=qe(r._scopes,r,t,c)),c}(e,a,t,n)),L(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=n;if(void 0!==s.index&&i(t))return e[s.index%e.length];if(F(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const c of n){const n=qe(i,r,t,c);e.push(Ne(n,s,o&&o[t],a))}}return e}(e,a,t,o.isIndexable)),$e(e,a)&&(a=Ne(a,r,s&&s[e],o)),a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function He(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:nt(n)?n:()=>n,isIndexable:nt(i)?i:()=>i}}const Ve=(t,e)=>t?t+tt(e):e,$e=(t,e)=>F(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ue(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function Qe(t,e,n){return nt(t)?t(e,n):t}const Ye=(t,e)=>!0===t?e:"string"==typeof t?J(e,t):void 0;function Xe(t,e,n,i,r){for(const s of e){const e=Ye(n,s);if(e){t.add(e);const s=Qe(e._fallback,n,r);if(void 0!==s&&s!==n&&s!==i)return s}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function qe(t,e,n,i){const r=e._rootScopes,s=Qe(e._fallback,n,i),o=[...t,...r],a=new Set;a.add(i);let c=Ze(a,o,n,s||n,i);return null!==c&&(void 0===s||s===n||(c=Ze(a,o,s,c,i),null!==c))&&Be(Array.from(a),[""],r,s,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return L(r)&&F(n)?n:r||{}}(e,n,i)))}function Ze(t,e,n,i,r){for(;n;)n=Xe(t,e,n,i,r);return n}function Ke(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Ge(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Je(t,e,n,i){const{iScale:r}=t,{key:s="r"}=this._parsing,o=new Array(i);let a,c,l,h;for(a=0,c=i;a<c;++a)l=a+n,h=e[l],o[a]={r:r.parse(J(h,s),l)};return o}const tn=Number.EPSILON||1e-14,en=(t,e)=>e<t.length&&!t[e].skip&&t[e],nn=t=>"x"===t?"y":"x";function rn(t,e,n,i){const r=t.skip?e:t,s=e,o=n.skip?e:n,a=St(s,r),c=St(o,s);let l=a/(a+c),h=c/(a+c);l=isNaN(l)?0:l,h=isNaN(h)?0:h;const u=i*l,f=i*h;return{previous:{x:s.x-u*(o.x-r.x),y:s.y-u*(o.y-r.y)},next:{x:s.x+f*(o.x-r.x),y:s.y+f*(o.y-r.y)}}}function sn(t,e,n){return Math.max(Math.min(t,n),e)}function on(t,e,n,i,r){let s,o,a,c;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const n=nn(e),i=t.length,r=Array(i).fill(0),s=Array(i);let o,a,c,l=en(t,0);for(o=0;o<i;++o)if(a=c,c=l,l=en(t,o+1),c){if(l){const t=l[e]-c[e];r[o]=0!==t?(l[n]-c[n])/t:0}s[o]=a?l?pt(r[o-1])!==pt(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}!function(t,e,n){const i=t.length;let r,s,o,a,c,l=en(t,0);for(let h=0;h<i-1;++h)c=l,l=en(t,h+1),c&&l&&(gt(e[h],0,tn)?n[h]=n[h+1]=0:(r=n[h]/e[h],s=n[h+1]/e[h],a=Math.pow(r,2)+Math.pow(s,2),a<=9||(o=3/Math.sqrt(a),n[h]=r*o*e[h],n[h+1]=s*o*e[h])))}(t,r,s),function(t,e,n="x"){const i=nn(n),r=t.length;let s,o,a,c=en(t,0);for(let l=0;l<r;++l){if(o=a,a=c,c=en(t,l+1),!a)continue;const r=a[n],h=a[i];o&&(s=(r-o[n])/3,a[`cp1${n}`]=r-s,a[`cp1${i}`]=h-s*e[l]),c&&(s=(c[n]-r)/3,a[`cp2${n}`]=r+s,a[`cp2${i}`]=h+s*e[l])}}(t,s,e)}(t,r);else{let n=i?t[t.length-1]:t[0];for(s=0,o=t.length;s<o;++s)a=t[s],c=rn(n,a,t[Math.min(s+1,o-(i?0:1))%o],e.tension),a.cp1x=c.previous.x,a.cp1y=c.previous.y,a.cp2x=c.next.x,a.cp2y=c.next.y,n=a}e.capBezierPoints&&function(t,e){let n,i,r,s,o,a=ye(t[0],e);for(n=0,i=t.length;n<i;++n)o=s,s=a,a=n<i-1&&ye(t[n+1],e),s&&(r=t[n],o&&(r.cp1x=sn(r.cp1x,e.left,e.right),r.cp1y=sn(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=sn(r.cp2x,e.left,e.right),r.cp2y=sn(r.cp2y,e.top,e.bottom)))}(t,n)}function an(){return"undefined"!=typeof window&&"undefined"!=typeof document}function cn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ln(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const hn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),un=["top","right","bottom","left"];function fn(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const s=un[r];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const dn=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function pn(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=hn(n),s="border-box"===r.boxSizing,o=fn(r,"padding"),a=fn(r,"border","width"),{x:c,y:l,box:h}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:s}=i;let o,a,c=!1;if(dn(r,s,t.target))o=r,a=s;else{const t=e.getBoundingClientRect();o=i.clientX-t.left,a=i.clientY-t.top,c=!0}return{x:o,y:a,box:c}}(t,n),u=o.left+(h&&a.left),f=o.top+(h&&a.top);let{width:d,height:p}=e;return s&&(d-=o.width+a.width,p-=o.height+a.height),{x:Math.round((c-u)/d*n.width/i),y:Math.round((l-f)/p*n.height/i)}}const gn=t=>Math.round(10*t)/10;function mn(t,e,n,i){const r=hn(t),s=fn(r,"margin"),o=ln(r.maxWidth,t,"clientWidth")||ct,a=ln(r.maxHeight,t,"clientHeight")||ct,c=function(t,e,n){let i,r;if(void 0===e||void 0===n){const s=t&&cn(t);if(s){const t=s.getBoundingClientRect(),o=hn(s),a=fn(o,"border","width"),c=fn(o,"padding");e=t.width-c.width-a.width,n=t.height-c.height-a.height,i=ln(o.maxWidth,s,"clientWidth"),r=ln(o.maxHeight,s,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||ct,maxHeight:r||ct}}(t,e,n);let{width:l,height:h}=c;if("content-box"===r.boxSizing){const t=fn(r,"border","width"),e=fn(r,"padding");l-=e.width+t.width,h-=e.height+t.height}return l=Math.max(0,l-s.width),h=Math.max(0,i?l/i:h-s.height),l=gn(Math.min(l,o,c.maxWidth)),h=gn(Math.min(h,a,c.maxHeight)),l&&!h&&(h=gn(l/2)),(void 0!==e||void 0!==n)&&i&&c.height&&h>c.height&&(h=c.height,l=gn(Math.floor(h*i))),{width:l,height:h}}function vn(t,e,n){const i=e||1,r=Math.floor(t.height*i),s=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||o.height!==r||o.width!==s)&&(t.currentDevicePixelRatio=i,o.height=r,o.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0)}const bn=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};an()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function yn(t,e){const n=function(t,e){return hn(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function xn(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function _n(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function wn(t,e,n,i){const r={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},o=xn(t,r,n),a=xn(r,s,n),c=xn(s,e,n),l=xn(o,a,n),h=xn(a,c,n);return xn(l,h,n)}const Mn=function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},kn=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function Sn(t,e,n){return t?Mn(e,n):kn()}function Tn(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function Rn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function On(t){return"angle"===t?{between:Ot,compare:Tt,normalize:Rt}:{between:Pt,compare:(t,e)=>t-e,normalize:t=>t}}function An({start:t,end:e,count:n,loop:i,style:r}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:r}}function Cn(t,e,n){if(!n)return[t];const{property:i,start:r,end:s}=n,o=e.length,{compare:a,between:c,normalize:l}=On(i),{start:h,end:u,loop:f,style:d}=function(t,e,n){const{property:i,start:r,end:s}=n,{between:o,normalize:a}=On(i),c=e.length;let l,h,{start:u,end:f,loop:d}=t;if(d){for(u+=c,f+=c,l=0,h=c;l<h&&o(a(e[u%c][i]),r,s);++l)u--,f--;u%=c,f%=c}return f<u&&(f+=c),{start:u,end:f,loop:d,style:t.style}}(t,e,n),p=[];let g,m,v,b=!1,y=null;for(let t=h,n=h;t<=u;++t)m=e[t%o],m.skip||(g=l(m[i]),g!==v&&(b=c(g,r,s),null===y&&(b||c(r,v,g)&&0!==a(r,v))&&(y=0===a(g,r)?t:n),null!==y&&(!b||0===a(s,g)||c(s,v,g))&&(p.push(An({start:y,end:t,loop:f,count:o,style:d})),y=null),n=t,v=g));return null!==y&&p.push(An({start:y,end:u,loop:f,count:o,style:d})),p}function Pn(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const s=Cn(i[r],t.points,e);s.length&&n.push(...s)}return n}function En(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const s=!!t._loop,{start:o,end:a}=function(t,e,n,i){let r=0,s=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(s+=r);s>r&&t[s%e].skip;)s--;return s%=e,{start:r,end:s}}(n,r,s,i);return In(t,!0===i?[{start:o,end:a,loop:s}]:function(t,e,n,i){const r=t.length,s=[];let o,a=e,c=t[e];for(o=e+1;o<=n;++o){const n=t[o%r];n.skip||n.stop?c.skip||(i=!1,s.push({start:e%r,end:(o-1)%r,loop:i}),e=a=n.stop?o:null):(a=o,c.skip&&(e=o)),c=n}return null!==a&&s.push({start:e%r,end:a%r,loop:i}),s}(n,o,a<o?a+r:a,!!t._fullLoop&&0===o&&a===r-1),n,e)}function In(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const r=t._chart.getContext(),s=Dn(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,c=n.length,l=[];let h=s,u=e[0].start,f=u;function d(t,e,i,r){const s=a?-1:1;if(t!==e){for(t+=c;n[t%c].skip;)t-=s;for(;n[e%c].skip;)e+=s;t%c!=e%c&&(l.push({start:t%c,end:e%c,loop:i,style:r}),h=r,u=e%c)}}for(const t of e){u=a?u:t.start;let e,s=n[u%c];for(f=u+1;f<=t.end;f++){const a=n[f%c];e=Dn(i.setContext(We(r,{type:"segment",p0:s,p1:a,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:o}))),zn(e,h)&&d(u,f-1,t.loop,h),s=a,h=e}u<f-1&&d(u,f-1,t.loop,h)}return l}(t,e,n,i):e}function Dn(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function zn(t,e){if(!e)return!1;const n=[],i=function(t,e){return Gt(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,i)!==JSON.stringify(e,i)}},4731:(t,e,n)=>{"use strict";n.d(e,{CK:()=>h,Fq:()=>m,N1:()=>p,yP:()=>g});var i=n(6540),r=n(6118);const s="label";function o(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function a(t,e){t.labels=e}function c(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;const i=[];t.datasets=e.map((e=>{const r=t.datasets.find((t=>t[n]===e[n]));return r&&e.data&&!i.includes(r)?(i.push(r),Object.assign(r,e),r):{...e}}))}function l(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;const n={labels:[],datasets:[]};return a(n,t.labels),c(n,t.datasets,e),n}function h(t,e){return t.getElementsAtEventForMode(e.nativeEvent,"nearest",{intersect:!0},!1)}function u(t,e){const{height:n=150,width:s=300,redraw:h=!1,datasetIdKey:u,type:f,data:d,options:p,plugins:g=[],fallbackContent:m,updateMode:v,...b}=t,y=(0,i.useRef)(null),x=(0,i.useRef)(),_=()=>{y.current&&(x.current=new r.t1(y.current,{type:f,data:l(d,u),options:p&&{...p},plugins:g}),o(e,x.current))},w=()=>{o(e,null),x.current&&(x.current.destroy(),x.current=null)};return(0,i.useEffect)((()=>{!h&&x.current&&p&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(x.current,p)}),[h,p]),(0,i.useEffect)((()=>{!h&&x.current&&a(x.current.config.data,d.labels)}),[h,d.labels]),(0,i.useEffect)((()=>{!h&&x.current&&d.datasets&&c(x.current.config.data,d.datasets,u)}),[h,d.datasets]),(0,i.useEffect)((()=>{x.current&&(h?(w(),setTimeout(_)):x.current.update(v))}),[h,p,d.labels,d.datasets,v]),(0,i.useEffect)((()=>{x.current&&(w(),setTimeout(_))}),[f]),(0,i.useEffect)((()=>(_(),()=>w())),[]),i.createElement("canvas",Object.assign({ref:y,role:"img",height:n,width:s},b),m)}const f=(0,i.forwardRef)(u);function d(t,e){return r.t1.register(e),(0,i.forwardRef)(((e,n)=>i.createElement(f,Object.assign({},e,{ref:n,type:t}))))}const p=d("line",r.ZT),g=d("bar",r.A6),m=d("pie",r.P$)},6973:(t,e,n)=>{"use strict";n.d(e,{$qe:()=>r,vqg:()=>s});var i=n(2225);function r(t){return(0,i.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5m5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5M0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5m10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0z"},child:[]}]})(t)}function s(t){return(0,i.k5)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5M.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5m15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5"},child:[]}]})(t)}},8027:(t,e,n)=>{"use strict";n.d(e,{$TP:()=>r,DIg:()=>l,Pcn:()=>c,YYR:()=>o,ist:()=>h,qvi:()=>a,v$b:()=>s});var i=n(2225);function r(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(t)}function s(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"},child:[]}]})(t)}function o(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"},child:[]}]})(t)}function a(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 544 512"},child:[{tag:"path",attr:{d:"M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"},child:[]}]})(t)}function c(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},child:[]}]})(t)}function l(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"},child:[]}]})(t)}function h(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"},child:[]}]})(t)}}}]);
|