@rcsb/rcsb-statistics 0.3.4 → 0.3.6

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.
@@ -1,2 +0,0 @@
1
- /*! For license information please see 368.e7694997.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_rcsb_rcsb_statistics=self.webpackChunk_rcsb_rcsb_statistics||[]).push([[368],{7704:(t,e)=>{"use strict";function n(t,e,i){const r=null!=i?i:[];return(o=t,o.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 o={name:t.name,labelPath:null!=e?e:[],data:[]};t.buckets.forEach((t=>{t.label&&t.population&&o.data.push({label:t.label,population:t.population})})),r.push(o)})),r;var o}e.z=void 0,e.z=function(t){return t.facets?n(t.facets):[]}},8154:(t,e,n)=>{"use strict";e.vw=e.XY=e.G2=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.G2=function(t,e,n){return{query:t,return_type:e,request_options:n}},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),o=n(2020);const s=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:s}=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 o=i[r[n]];if(e>=o.top&&e<=o.bottom&&t>=o.left&&t<=o.right)return o}return null}(e,n),c=h(i,n),l=h(r,n);if(s){const t=h(s,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,o.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),o=t.isHorizontal()?n.x:n.y,s=Math.max(0,Math.min(1,(t.getValueForPixel(o)-t.min)/i||0));return{min:r*s,max:r*(1-s)}}function g(t,e,n,i,r){let s=n[i];if("original"===s){const n=t.originalScaleLimits[e.id][i];s=(0,o.v)(n.options,n.scale)}return(0,o.v)(s,r)}function m(t,{min:e,max:n},i,r=!1){const o=d(t.chart),{id:s,axis:a,options:c}=t,l=i&&(i[s]||i[a])||{},{minRange:h=0}=l,u=g(o,t,l,"min",-1/0),f=g(o,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,o.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),y={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function b(t,e,n,i=!1){const{min:r,max:o,options:s}=t,a=s.time&&s.time.round,c=y[a]||0,l=t.getValueForPixel(t.getPixelForValue(r+c)-e),h=t.getValueForPixel(t.getPixelForValue(o+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 b(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)}},k={category:function(t,e,n){const i=t.getLabels().length-1;let{min:r,max:o}=t;const s=Math.max(o-r,1),a=Math.round(function(t){return t.isHorizontal()?t.width:t.height}(t)/Math.max(s,10)),c=Math.round(Math.abs(e/a));let l;return e<-a?(o=Math.min(o+c,i),r=1===s?o:o-s,l=o===i):e>a&&(r=Math.max(0,r-c),o=1===s?r:r+s,l=0===r),m(t,{min:r,max:o},n)||l},default:b,logarithmic:x,timeseries:x};function M(t,e){(0,o.F)(t,((n,i)=>{e[i]||delete t[i]}))}function S(t,e){const{scales:n}=t,{originalScaleLimits:i,updatedScaleLimits:r}=e;return(0,o.F)(n,(function(t){(function(t,e,n){const{id:i,options:{min:r,max:o}}=t;if(!e[i]||!n[i])return!0;const s=n[i];return s.min!==r||s.max!==o})(t,i,r)&&(i[t.id]={min:{scale:t.min,options:t.options.min},max:{scale:t.max,options:t.options.max}})})),M(i,n),M(r,n),i}function T(t,e,n,i){const r=_[t.type]||_.default;(0,o.Q)(r,[t,e,n,i])}function O(t,e,n,i,r){const s=w[t.type]||w.default;(0,o.Q)(s,[t,e,n,i,r])}function E(t){const e=t.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}function P(t,e,n="none"){const{x:i=1,y:r=1,focalPoint:s=E(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,s,t);(0,o.F)(p||t.scales,(function(t){t.isHorizontal()&&h?T(t,i,s,c):!t.isHorizontal()&&f&&T(t,r,s,c)})),t.update(n),(0,o.Q)(l.onZoom,[{chart:t}])}function A(t,e,n,i="none"){const r=d(t),{options:{limits:s,zoom:a}}=r,{mode:c="xy"}=a;S(t,r);const h=l(c,"x",t),u=l(c,"y",t);(0,o.F)(t.scales,(function(t){t.isHorizontal()&&h?O(t,e.x,n.x,s):!t.isHorizontal()&&u&&O(t,e.y,n.y,s)})),t.update(i),(0,o.Q)(a.onZoom,[{chart:t}])}function R(t,e,n,i){const{panDelta:r}=i,s=r[t.id]||0;(0,o.s)(s)===(0,o.s)(e)&&(e+=s);const a=k[t.type]||k.default;(0,o.Q)(a,[t,e,n])?r[t.id]=0:r[t.id]=e}function C(t,e,n,i="none"){const{x:r=0,y:s=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!==s;(0,o.F)(n||t.scales,(function(t){t.isHorizontal()&&u?R(t,r,l,a):!t.isHorizontal()&&f&&R(t,s,l,a)})),t.update(i),(0,o.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:o}=d(t),s=r[n];s&&s.target===e||(D(t,n),r[n]=e=>i(t,e,o),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,o.z)(e,t);if(!1===(0,o.Q)(i,[{chart:t,event:e,point:n}]))return(0,o.Q)(r,[{chart:t,event:e}]),!1}}function B(t,e){const n=d(t),{pan:i,zoom:r={}}=n.options;if(0!==e.button||a(s(i),e)||c(s(r.drag),e))return(0,o.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 H(t,e,n,i){const r=l(e,"x",t),s=l(e,"y",t);let{top:a,left:c,right:h,bottom:u,width:f,height:d}=t.chartArea;const p=(0,o.z)(n,t),g=(0,o.z)(i,t);r&&(c=Math.min(p.x,g.x),h=Math.max(p.x,g.x)),s&&(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:s&&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:s=0}}=n.options.zoom,a=H(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<=s)return n.dragging=!1,void t.update("none");A(t,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout((()=>n.dragging=!1),500),(0,o.Q)(r,[{chart:t}])}function W(t,e){const{handlers:{onZoomComplete:n},options:{zoom:i}}=d(t);if(!function(t,e,n){if(c(s(n.wheel),e))(0,o.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);P(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(s(r),h)||a(s(l.drag),h))&&((0,o.Q)(r.onPanRejected,[{chart:t,event:i}]),1))}}function $(t,e,n){if(e.scale){const{center:i,pointers:r}=n,o=1/e.scale*n.scale,s=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 o,s;return r>.3&&r<1.7?o=s=!0:n>i?o=!0:s=!0,{x:o,y:s}}(r[0],r[1]),c=e.options.zoom.mode;P(t,{x:a.x&&l(c,"x",t)?o:1,y:a.y&&l(c,"y",t)?o:1,focalPoint:{x:i.x-s.left,y:i.y-s.top}}),e.scale=n.scale}}function U(t,e,n){const i=e.delta;i&&(e.panning=!0,C(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:o}=d(t);if(i.drawTime!==e||!o)return;const{left:s,top:a,width:c,height:l}=H(t,n.zoom.mode,r,o),h=t.ctx;h.save(),h.beginPath(),h.fillStyle=i.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(s,a,c,l),i.borderWidth>0&&(h.lineWidth=i.borderWidth,h.strokeStyle=i.borderColor||"rgba(225,225,225)",h.strokeRect(s,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:s,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,o.Q)(e.options.zoom.onZoomComplete,[{chart:t}]))}(t,n,e)))),s&&s.enabled&&(c.add(new(r().Pan)({threshold:s.threshold,enable:V(t,n)})),c.on("panstart",(e=>function(t,e,n){const{enabled:i,onPanStart:r,onPanRejected:s}=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,o.Q)(r,[{chart:t,event:n,point:c}]))return(0,o.Q)(s,[{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,o.Q)(e.options.pan.onPanComplete,[{chart:t}]))}(t,n)))),Q.set(t,c)}(t,n),t.pan=(e,n,i)=>C(t,e,n,i),t.zoom=(e,n)=>P(t,e,n),t.zoomRect=(e,n,i)=>A(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,o.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,o.Q)(n.options.zoom.onZoomComplete,[{chart:t}])}(t,e),t.getZoomLevel=()=>function(t){const e=d(t);let n=1,i=1;return(0,o.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,o.v)(r.options,r.scale)-(0,o.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:s}=e.zoom;i.enabled?(z(t,n,"wheel",W),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,o.Q)(n,[{chart:t}])),i))}(t,"onZoomComplete",s,250)):D(t,"wheel"),r.enabled?(z(t,n,"mousedown",B),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:k,zoomFunctions:_,zoomRectFunctions:w}},7168:(t,e,n)=>{var i;!function(r,o,s,a){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],h=o.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",o=r.console&&(r.console.warn||r.console.log);return o&&o.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 y=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`."),b=v((function(t,e){return y(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 k(t,e){return t===a?e:t}function M(t,e,n){m(E(e),(function(e){t.addEventListener(e,n,!1)}))}function S(t,e,n){m(E(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 O(t,e){return t.indexOf(e)>-1}function E(t){return t.trim().split(/\s+/g)}function P(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 A(t){return Array.prototype.slice.call(t,0)}function R(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];P(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function C(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<l.length;){if((i=(n=l[o])?n+r:e)in t)return i;o++}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=C(r,"PointerEvent")!==a,F=z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j="touch",B="mouse",H=["x","y"],N=["clientX","clientY"];function W(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,o=1&e&&i-r==0,s=12&e&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(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 o=n.firstInput,s=n.firstMultiple,c=s?s.center:o.center,l=e.center=U(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=q(c,l),e.distance=X(c,l),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.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=s?(h=s.pointers,X((u=i)[0],u[1],N)/X(h[0],h[1],N)):1,e.rotation=s?function(t,e){return q(e[1],e[0],N)+q(t[1],t[0],N)}(s.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,o,s=t.lastInterval||e,c=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(c>25||s.velocity===a)){var l=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,u=Q(c,l,h);i=u.x,r=u.y,n=f(u.x)>f(u.y)?u.x:u.y,o=Y(l,h),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(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=H);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=H);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(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,W.apply(this,arguments)}x(K,W,{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:B,srcEvent:t}))}});var G={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},J={2:j,3:"pen",4:B,5:"kinect"},tt="pointerdown",et="pointermove pointerup pointercancel";function nt(){this.evEl=tt,this.evWin=et,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(tt="MSPointerDown",et="MSPointerMove MSPointerUp MSPointerCancel"),x(nt,W,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=G[i],o=J[t.pointerType]||t.pointerType,s=o==j,a=P(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?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:o,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,W.apply(this,arguments)}function ot(t,e){var n=A(t.touches),i=A(t.changedTouches);return 12&e&&(n=R(n.concat(i),"identifier",!0)),[n,i]}x(rt,W,{handler:function(t){var e=it[t.type];if(1===e&&(this.started=!0),this.started){var n=ot.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 st={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function at(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},W.apply(this,arguments)}function ct(t,e){var n=A(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=A(t.changedTouches),a=[],c=this.target;if(o=n.filter((function(t){return T(t.target,c)})),1===e)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),12&e&&delete i[s[r].identifier],r++;return a.length?[R(o.concat(a),"identifier",!0),a]:void 0}function lt(){W.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],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}x(at,W,{handler:function(t){var e=st[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,W,{handler:function(t,e,n){var i=n.pointerType==j,r=n.pointerType==B;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=C(h.style,"touchAction"),pt=dt!==a,gt="compute",mt="auto",vt="manipulation",yt="none",bt="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(O(t,yt))return yt;var e=O(t,bt),n=O(t,xt);return e&&n?yt:e||n?e?bt:xt:O(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=O(i,yt)&&!_t[yt],o=O(i,xt)&&!_t[xt],s=O(i,bt)&&!_t[bt];if(r){var a=1===t.pointers.length,c=t.distance<2,l=t.deltaTime<250;if(a&&c&&l)return}if(!s||!o)return r||o&&6&n||s&&24&n?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var kt=32;function Mt(t){this.options=c({},this.defaults,t||{}),this.id=I++,this.manager=null,this.options.enable=k(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 Ot(t,e){var n=e.manager;return n?n.get(t):t}function Et(){Mt.apply(this,arguments)}function Pt(){Et.apply(this,arguments),this.pX=null,this.pY=null}function At(){Et.apply(this,arguments)}function Rt(){Mt.apply(this,arguments),this._timer=null,this._input=null}function Ct(){Et.apply(this,arguments)}function It(){Et.apply(this,arguments)}function Dt(){Mt.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=k(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,o){n=C(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Mt.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=Ot(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=Ot(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===P(e,t=Ot(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=Ot(t,this);var e=P(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=kt},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=kt);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(Et,Mt,{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:kt}}),x(Pt,Et,{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(bt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return Et.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(At,Et,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[yt]},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(Rt,Mt,{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 kt},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(Ct,Et,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[yt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),x(It,Et,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Pt.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,Mt,{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 o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||X(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?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 kt},failTimeout:function(){return this._timer=p((function(){this.state=kt}),this.options.interval,this),kt},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:[[Ct,{enable:!1}],[At,{enable:!1},["rotate"]],[It,{direction:6}],[Pt,{direction:6},["swipe"]],[Dt],[Dt,{event:"doubletap",taps:2},["tap"]],[Rt]],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 o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Mt)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=P(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(E(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(E(t),(function(t){e?n[t]&&n[t].splice(P(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.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:kt,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:W,TouchAction:wt,TouchInput:at,MouseInput:K,PointerEventInput:nt,TouchMouseInput:lt,SingleTouchInput:rt,Recognizer:Mt,AttrRecognizer:Et,Tap:Dt,Pan:Pt,Swipe:It,Pinch:At,Rotate:Ct,Press:Rt,on:M,off:S,each:m,merge:b,extend:y,assign:c,inherit:x,bindFn:_,prefixed:C}),(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,o="Expected a function",s="__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]",y="[object Date]",b="[object Error]",x="[object Function]",_="[object GeneratorFunction]",w="[object Map]",k="[object Number]",M="[object Object]",S="[object Promise]",T="[object RegExp]",O="[object Set]",E="[object String]",P="[object Symbol]",A="[object WeakMap]",R="[object ArrayBuffer]",C="[object DataView]",I="[object Float32Array]",D="[object Float64Array]",z="[object Int8Array]",L="[object Int16Array]",F="[object Int32Array]",j="[object Uint8Array]",B="[object Uint8ClampedArray]",H="[object Uint16Array]",N="[object Uint32Array]",W=/\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/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\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*)$/,yt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,xt=/['\n\r\u2028\u2029\\]/g,_t="\\ud800-\\udfff",wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",kt="\\u2700-\\u27bf",Mt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Ot="\\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",Et="["+_t+"]",Pt="["+Ot+"]",At="["+wt+"]",Rt="\\d+",Ct="["+kt+"]",It="["+Mt+"]",Dt="[^"+_t+Ot+Rt+kt+Mt+St+"]",zt="\\ud83c[\\udffb-\\udfff]",Lt="[^"+_t+"]",Ft="(?:\\ud83c[\\udde6-\\uddff]){2}",jt="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+St+"]",Ht="\\u200d",Nt="(?:"+It+"|"+Dt+")",Wt="(?:"+Bt+"|"+Dt+")",Vt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ut="(?:"+At+"|"+zt+")?",Qt="["+Tt+"]?",Yt=Qt+Ut+"(?:"+Ht+"(?:"+[Lt,Ft,jt].join("|")+")"+Qt+Ut+")*",Xt="(?:"+[Ct,Ft,jt].join("|")+")"+Yt,qt="(?:"+[Lt+At+"?",At,Ft,jt,Et].join("|")+")",Zt=RegExp("['’]","g"),Kt=RegExp(At,"g"),Gt=RegExp(zt+"(?="+zt+")|"+qt+Yt,"g"),Jt=RegExp([Bt+"?"+It+"+"+Vt+"(?="+[Pt,Bt,"$"].join("|")+")",Wt+"+"+$t+"(?="+[Pt,Bt+Nt,"$"].join("|")+")",Bt+"?"+Nt+"+"+Vt,Bt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rt,Xt].join("|"),"g"),te=RegExp("["+Ht+_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[B]=re[H]=re[N]=!0,re[g]=re[m]=re[R]=re[v]=re[C]=re[y]=re[b]=re[x]=re[w]=re[k]=re[M]=re[T]=re[O]=re[E]=re[A]=!1;var oe={};oe[g]=oe[m]=oe[R]=oe[C]=oe[v]=oe[y]=oe[I]=oe[D]=oe[z]=oe[L]=oe[F]=oe[w]=oe[k]=oe[M]=oe[T]=oe[O]=oe[E]=oe[P]=oe[j]=oe[B]=oe[H]=oe[N]=!0,oe[b]=oe[x]=oe[A]=!1;var se={"\\":"\\","'":"'","\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,ye=me&&me.isDate,be=me&&me.isMap,xe=me&&me.isRegExp,_e=me&&me.isSet,we=me&&me.isTypedArray;function ke(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 Me(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var s=t[r];e(i,s,n(s),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 Oe(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 Ee(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var s=t[n];e(s,n,t)&&(o[r++]=s)}return o}function Pe(t,e){return!(null==t||!t.length)&&Be(t,e,0)>-1}function Ae(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 Re(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 Ce(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,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)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,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function Be(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 He(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function Ne(t){return t!=t}function We(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,o){n=i?(i=!1,t):e(n,t,r,o)})),n}function Qe(t,e){for(var n,i=-1,o=t.length;++i<o;){var s=e(t[i]);s!==r&&(n=n===r?s:n+s)}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 Re(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&&Be(e,t[n],0)>-1;);return n}function Je(t,e){for(var n=t.length;n--&&Be(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({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nn(t){return"\\"+se[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function sn(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[r++]=n)}return o}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({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),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,kt=e.Math,Mt=e.Object,St=e.RegExp,Tt=e.String,Ot=e.TypeError,Et=i.prototype,Pt=wt.prototype,At=Mt.prototype,Rt=e["__core-js_shared__"],Ct=Pt.toString,It=At.hasOwnProperty,Dt=0,zt=(n=/[^.]+$/.exec(Rt&&Rt.keys&&Rt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Lt=At.toString,Ft=Ct.call(Mt),jt=ue._,Bt=St("^"+Ct.call(It).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ht=pe?e.Buffer:r,Nt=e.Symbol,Wt=e.Uint8Array,Vt=Ht?Ht.allocUnsafe:r,$t=sn(Mt.getPrototypeOf,Mt),Ut=Mt.create,Qt=At.propertyIsEnumerable,Yt=Et.splice,Xt=Nt?Nt.isConcatSpreadable:r,qt=Nt?Nt.iterator:r,Gt=Nt?Nt.toStringTag:r,te=function(){try{var t=co(Mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),se=e.clearTimeout!==ue.clearTimeout&&e.clearTimeout,le=rt&&rt.now!==ue.Date.now&&rt.now,he=e.setTimeout!==ue.setTimeout&&e.setTimeout,fe=kt.ceil,de=kt.floor,ge=Mt.getOwnPropertySymbols,me=Ht?Ht.isBuffer:r,Le=e.isFinite,$e=Et.join,gn=sn(Mt.keys,Mt),mn=kt.max,vn=kt.min,yn=rt.now,bn=e.parseInt,xn=kt.random,_n=Et.reverse,wn=co(e,"DataView"),kn=co(e,"Map"),Mn=co(e,"Promise"),Sn=co(e,"Set"),Tn=co(e,"WeakMap"),On=co(Mt,"create"),En=Tn&&new Tn,Pn={},An=Fo(wn),Rn=Fo(kn),Cn=Fo(Mn),In=Fo(Sn),Dn=Fo(Tn),zn=Nt?Nt.prototype:r,Ln=zn?zn.valueOf:r,Fn=zn?zn.toString:r;function jn(t){if(ta(t)&&!Vs(t)&&!(t instanceof Wn)){if(t instanceof Nn)return t;if(It.call(t,"__wrapped__"))return jo(t)}return new Nn(t)}var Bn=function(){function t(){}return function(e){if(!Js(e))return{};if(Ut)return Ut(e);t.prototype=e;var n=new t;return t.prototype=r,n}}();function Hn(){}function Nn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=r}function Wn(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=Vs(t),i=!n&&Ws(t),r=!n&&!i&&Ys(t),o=!n&&!i&&!r&&ca(t),s=n||i||r||o,a=s?Ye(t.length,Tt):[],c=a.length;for(var l in t)!e&&!It.call(t,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mo(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 Co(Tr(t),oi(e,0,t.length))}function Kn(t){return Co(Tr(t))}function Gn(t,e,n){(n!==r&&!Bs(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)&&Bs(i,n)&&(n!==r||e in t)||ii(t,e,n)}function ti(t,e){for(var n=t.length;n--;)if(Bs(t[n][0],e))return n;return-1}function ei(t,e,n,i){return hi(t,(function(t,r,o){e(i,t,n(t),o)})),i}function ni(t,e){return t&&Or(e,Aa(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,o=e.length,s=i(o),a=null==t;++n<o;)s[n]=a?r:Sa(t,e[n]);return s}function oi(t,e,n){return t==t&&(n!==r&&(t=t<=n?t:n),e!==r&&(t=t>=e?t:e)),t}function si(t,e,n,i,o,s){var a,c=1&e,l=2&e,h=4&e;if(n&&(a=o?n(t,i,o,s):n(t)),a!==r)return a;if(!Js(t))return t;var u=Vs(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=uo(t),d=f==x||f==_;if(Ys(t))return xr(t,c);if(f==M||f==g||d&&!o){if(a=l||d?{}:po(t),!c)return l?function(t,e){return Or(t,ho(t),e)}(t,function(t,e){return t&&Or(e,Ra(e),t)}(a,t)):function(t,e){return Or(t,lo(t),e)}(t,ni(a,t))}else{if(!oe[f])return o?t:{};a=function(t,e,n){var i,r=t.constructor;switch(e){case R:return _r(t);case v:case y:return new r(+t);case C: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 B:case H:case N:return wr(t,n);case w:return new r;case k:case E: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 O:return new r;case P:return i=t,Ln?Mt(Ln.call(i)):{}}}(t,f,c)}}s||(s=new Yn);var p=s.get(t);if(p)return p;s.set(t,a),oa(t)?t.forEach((function(i){a.add(si(i,e,n,i,t,s))})):ea(t)&&t.forEach((function(i,r){a.set(r,si(i,e,n,r,t,s))}));var m=u?r:(h?l?eo:to:l?Ra:Aa)(t);return Se(m||t,(function(i,r){m&&(i=t[r=i]),Jn(a,r,si(i,e,n,r,t,s))})),a}function ai(t,e,n){var i=n.length;if(null==t)return!i;for(t=Mt(t);i--;){var o=n[i],s=e[o],a=t[o];if(a===r&&!(o in t)||!s(a))return!1}return!0}function ci(t,e,n){if("function"!=typeof t)throw new Ot(o);return Eo((function(){t.apply(r,n)}),e)}function li(t,e,n,i){var r=-1,o=Pe,s=!0,a=t.length,c=[],l=e.length;if(!a)return c;n&&(e=Re(e,qe(n))),i?(o=Ae,s=!1):e.length>=200&&(o=Ke,s=!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,s&&u==u){for(var f=l;f--;)if(e[f]===u)continue t;c.push(h)}else o(e,u,i)||c.push(h)}return c}jn.templateSettings={escape:q,evaluate:Z,interpolate:K,variable:"",imports:{_:jn}},jn.prototype=Hn.prototype,jn.prototype.constructor=jn,Nn.prototype=Bn(Hn.prototype),Nn.prototype.constructor=Nn,Wn.prototype=Bn(Hn.prototype),Wn.prototype.constructor=Wn,Vn.prototype.clear=function(){this.__data__=On?On(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(On){var n=e[t];return n===s?r:n}return It.call(e,t)?e[t]:r},Vn.prototype.has=function(t){var e=this.__data__;return On?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]=On&&e===r?s: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(kn||$n),string:new Vn}},Un.prototype.delete=function(t){var e=so(this,t).delete(t);return this.size-=e?1:0,e},Un.prototype.get=function(t){return so(this,t).get(t)},Un.prototype.has=function(t){return so(this,t).has(t)},Un.prototype.set=function(t,e){var n=so(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,s),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(!kn||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=Ar(yi),ui=Ar(bi,!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,o=t.length;++i<o;){var s=t[i],a=e(s);if(null!=a&&(c===r?a==a&&!aa(a):n(a,c)))var c=a,l=s}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 o=-1,s=t.length;for(n||(n=go),r||(r=[]);++o<s;){var a=t[o];e>0&&n(a)?e>1?gi(a,e-1,n,i,r):Ce(r,a):i||(r[r.length]=a)}return r}var mi=Rr(),vi=Rr(!0);function yi(t,e){return t&&mi(t,e,Aa)}function bi(t,e){return t&&vi(t,e,Aa)}function xi(t,e){return Ee(e,(function(e){return Zs(t[e])}))}function _i(t,e){for(var n=0,i=(e=mr(e,t)).length;null!=t&&n<i;)t=t[Lo(e[n++])];return n&&n==i?t:r}function wi(t,e,n){var i=e(t);return Vs(t)?i:Ce(i,n(t))}function ki(t){return null==t?t===r?"[object Undefined]":"[object Null]":Gt&&Gt in Mt(t)?function(t){var e=It.call(t,Gt),n=t[Gt];try{t[Gt]=r;var i=!0}catch(t){}var o=Lt.call(t);return i&&(e?t[Gt]=n:delete t[Gt]),o}(t):function(t){return Lt.call(t)}(t)}function Mi(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 Mt(t)}function Oi(t,e,n){for(var o=n?Ae:Pe,s=t[0].length,a=t.length,c=a,l=i(a),h=1/0,u=[];c--;){var f=t[c];c&&e&&(f=Re(f,qe(e))),h=vn(f.length,h),l[c]=!n&&(e||s>=120&&f.length>=120)?new Qn(c&&f):r}f=t[0];var d=-1,p=l[0];t:for(;++d<s&&u.length<h;){var g=f[d],m=e?e(g):g;if(g=n||0!==g?g:0,!(p?Ke(p,m):o(u,m,n))){for(c=a;--c;){var v=l[c];if(!(v?Ke(v,m):o(t[c],m,n)))continue t}p&&p.push(m),u.push(g)}}return u}function Ei(t,e,n){var i=null==(t=So(t,e=mr(e,t)))?t:t[Lo(qo(e))];return null==i?r:ke(i,t,n)}function Pi(t){return ta(t)&&ki(t)==g}function Ai(t,e,n,i,o){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,i,o,s){var a=Vs(t),c=Vs(e),l=a?m:uo(t),h=c?m:uo(e),u=(l=l==g?M:l)==M,f=(h=h==g?M:h)==M,d=l==h;if(d&&Ys(t)){if(!Ys(e))return!1;a=!0,u=!1}if(d&&!u)return s||(s=new Yn),a||ca(t)?Gr(t,e,n,i,o,s):function(t,e,n,i,r,o,s){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case R:return!(t.byteLength!=e.byteLength||!o(new Wt(t),new Wt(e)));case v:case y:case k:return Bs(+t,+e);case b:return t.name==e.name&&t.message==e.message;case T:case E:return t==e+"";case w:var a=on;case O:var c=1&i;if(a||(a=cn),t.size!=e.size&&!c)return!1;var l=s.get(t);if(l)return l==e;i|=2,s.set(t,e);var h=Gr(a(t),a(e),i,r,o,s);return s.delete(t),h;case P:if(Ln)return Ln.call(t)==Ln.call(e)}return!1}(t,e,l,n,i,o,s);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 s||(s=new Yn),o(_,S,n,i,s)}}return!!d&&(s||(s=new Yn),function(t,e,n,i,o,s){var a=1&n,c=to(t),l=c.length;if(l!=to(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=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var p=!0;s.set(t,e),s.set(e,t);for(var g=a;++h<l;){var m=t[u=c[h]],v=e[u];if(i)var y=a?i(v,m,u,e,t,s):i(m,v,u,t,e,s);if(!(y===r?m===v||o(m,v,n,i,s):y)){p=!1;break}g||(g="constructor"==u)}if(p&&!g){var b=t.constructor,x=e.constructor;b==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(p=!1)}return s.delete(t),s.delete(e),p}(t,e,n,i,o,s))}(t,e,n,i,Ai,o))}function Ri(t,e,n,i){var o=n.length,s=o,a=!i;if(null==t)return!s;for(t=Mt(t);o--;){var c=n[o];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<s;){var l=(c=n[o])[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?Ai(u,h,3,i,f):d))return!1}}return!0}function Ci(t){return!(!Js(t)||(e=t,zt&&zt in e))&&(Zs(t)?Bt:gt).test(Fo(t));var e}function Ii(t){return"function"==typeof t?t:null==t?nc:"object"==typeof t?Vs(t)?ji(t[0],t[1]):Fi(t):uc(t)}function Di(t){if(!_o(t))return gn(t);var e=[];for(var n in Mt(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=Us(t)?i(t.length):[];return hi(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}function Fi(t){var e=ao(t);return 1==e.length&&e[0][2]?ko(e[0][0],e[0][1]):function(n){return n===t||Ri(n,t,e)}}function ji(t,e){return yo(t)&&wo(e)?ko(Lo(t),e):function(n){var i=Sa(n,t);return i===r&&i===e?Ta(n,t):Ai(e,i,3)}}function Bi(t,e,n,i,o){t!==e&&mi(e,(function(s,a){if(o||(o=new Yn),Js(s))!function(t,e,n,i,o,s,a){var c=To(t,n),l=To(e,n),h=a.get(l);if(h)Gn(t,n,h);else{var u=s?s(c,l,n+"",t,e,a):r,f=u===r;if(f){var d=Vs(l),p=!d&&Ys(l),g=!d&&!p&&ca(l);u=l,d||p||g?Vs(c)?u=c:Qs(c)?u=Tr(c):p?(f=!1,u=xr(l,!0)):g?(f=!1,u=wr(l,!0)):u=[]:ia(l)||Ws(l)?(u=c,Ws(c)?u=ma(c):Js(c)&&!Zs(c)||(u=po(l))):f=!1}f&&(a.set(l,u),o(u,l,i,s,a),a.delete(l)),Gn(t,n,u)}}(t,e,a,n,Bi,i,o);else{var c=i?i(To(t,a),s,a+"",t,e,o):r;c===r&&(c=s),Gn(t,a,c)}}),Ra)}function Hi(t,e){var n=t.length;if(n)return mo(e+=e<0?n:0,n)?t[e]:r}function Ni(t,e,n){e=e.length?Re(e,(function(t){return Vs(t)?function(e){return _i(e,1===t.length?t[0]:t)}:t})):[nc];var i=-1;e=Re(e,qe(oo()));var r=Li(t,(function(t,n,r){var o=Re(e,(function(e){return e(t)}));return{criteria:o,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,o=e.criteria,s=r.length,a=n.length;++i<s;){var c=kr(r[i],o[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 Wi(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var s=e[i],a=_i(t,s);n(a,s)&&Zi(o,mr(s,t),a)}return o}function Vi(t,e,n,i){var r=i?He:Be,o=-1,s=e.length,a=t;for(t===e&&(e=Tr(e)),n&&(a=Re(t,qe(n)));++o<s;)for(var c=0,l=e[o],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!==o){var o=r;mo(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 Po(Mo(t,e,nc),t+"")}function Xi(t){return qn(Ba(t))}function qi(t,e){var n=Ba(t);return Co(n,oi(e,0,n.length))}function Zi(t,e,n,i){if(!Js(t))return t;for(var o=-1,s=(e=mr(e,t)).length,a=s-1,c=t;null!=c&&++o<s;){var l=Lo(e[o]),h=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=a){var u=c[l];(h=i?i(u,l,c):r)===r&&(h=Js(u)?u:mo(e[o+1])?[]:{})}Jn(c,l,h),c=c[l]}return t}var Ki=En?function(t,e){return En.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 Co(Ba(t))}function tr(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=i(o);++r<o;)s[r]=t[r+e];return s}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 o=i+r>>>1,s=t[o];null!==s&&!aa(s)&&(n?s<=e:s<e)?i=o+1:r=o}return r}return ir(t,e,nc,n)}function ir(t,e,n,i){var o=0,s=null==t?0:t.length;if(0===s)return 0;for(var a=(e=n(e))!=e,c=null===e,l=aa(e),h=e===r;o<s;){var u=de((o+s)/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?o=u+1:s=u}return vn(s,4294967294)}function rr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var s=t[n],a=e?e(s):s;if(!n||!Bs(a,c)){var c=a;o[r++]=0===s?0:s}}return o}function or(t){return"number"==typeof t?t:aa(t)?f:+t}function sr(t){if("string"==typeof t)return t;if(Vs(t))return Re(t,sr)+"";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=Pe,o=t.length,s=!0,a=[],c=a;if(n)s=!1,r=Ae;else if(o>=200){var l=e?null:Qr(t);if(l)return cn(l);s=!1,r=Ke,c=new Qn}else c=e?[]:a;t:for(;++i<o;){var h=t[i],u=e?e(h):h;if(h=n||0!==h?h:0,s&&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=So(t,e=mr(e,t)))||delete t[Lo(qo(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,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?tr(t,i?0:o,i?o+1:r):tr(t,i?o+1:0,i?r:o)}function ur(t,e){var n=t;return n instanceof Wn&&(n=n.value()),Ie(e,(function(t,e){return e.func.apply(e.thisArg,Ce([t],e.args))}),n)}function fr(t,e,n){var r=t.length;if(r<2)return r?ar(t[0]):[];for(var o=-1,s=i(r);++o<r;)for(var a=t[o],c=-1;++c<r;)c!=o&&(s[o]=li(s[o]||a,t[c],e,n));return ar(gi(s,1),e,n)}function dr(t,e,n){for(var i=-1,o=t.length,s=e.length,a={};++i<o;){var c=i<s?e[i]:r;n(a,t[i],c)}return a}function pr(t){return Qs(t)?t:[]}function gr(t){return"function"==typeof t?t:nc}function mr(t,e){return Vs(t)?t:yo(t,e)?[t]:zo(va(t))}var vr=Yi;function yr(t,e,n){var i=t.length;return n=n===r?i:n,!e&&n>=i?t:tr(t,e,n)}var br=se||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 Wt(e).set(new Wt(t)),e}function wr(t,e){var n=e?_r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function kr(t,e){if(t!==e){var n=t!==r,i=null===t,o=t==t,s=aa(t),a=e!==r,c=null===e,l=e==e,h=aa(e);if(!c&&!h&&!s&&t>e||s&&a&&l&&!c&&!h||i&&a&&l||!n&&l||!o)return 1;if(!i&&!s&&!h&&t<e||h&&n&&o&&!i&&!s||c&&n&&o||!a&&o||!l)return-1}return 0}function Mr(t,e,n,r){for(var o=-1,s=t.length,a=n.length,c=-1,l=e.length,h=mn(s-a,0),u=i(l+h),f=!r;++c<l;)u[c]=e[c];for(;++o<a;)(f||o<s)&&(u[n[o]]=t[o]);for(;h--;)u[c++]=t[o++];return u}function Sr(t,e,n,r){for(var o=-1,s=t.length,a=-1,c=n.length,l=-1,h=e.length,u=mn(s-c,0),f=i(u+h),d=!r;++o<u;)f[o]=t[o];for(var p=o;++l<h;)f[p+l]=e[l];for(;++a<c;)(d||o<s)&&(f[p+n[a]]=t[o++]);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 Or(t,e,n,i){var o=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var c=e[s],l=i?i(n[c],t[c],c,n,t):r;l===r&&(l=t[c]),o?ii(n,c,l):Jn(n,c,l)}return n}function Er(t,e){return function(n,i){var r=Vs(n)?Me:ei,o=e?e():{};return r(n,t,oo(i,2),o)}}function Pr(t){return Yi((function(e,n){var i=-1,o=n.length,s=o>1?n[o-1]:r,a=o>2?n[2]:r;for(s=t.length>3&&"function"==typeof s?(o--,s):r,a&&vo(n[0],n[1],a)&&(s=o<3?r:s,o=1),e=Mt(e);++i<o;){var c=n[i];c&&t(e,c,i,s)}return e}))}function Ar(t,e){return function(n,i){if(null==n)return n;if(!Us(n))return t(n,i);for(var r=n.length,o=e?r:-1,s=Mt(n);(e?o--:++o<r)&&!1!==i(s[o],o,s););return n}}function Rr(t){return function(e,n,i){for(var r=-1,o=Mt(e),s=i(e),a=s.length;a--;){var c=s[t?a:++r];if(!1===n(o[c],c,o))break}return e}}function Cr(t){return function(e){var n=rn(e=va(e))?un(e):r,i=n?n[0]:e.charAt(0),o=n?yr(n,1).join(""):e.slice(1);return i[t]()+o}}function Ir(t){return function(e){return Ie(Za(Wa(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=Bn(t.prototype),i=t.apply(n,e);return Js(i)?i:n}}function zr(t){return function(e,n,i){var o=Mt(e);if(!Us(e)){var s=oo(n,3);e=Aa(e),n=function(t){return s(o[t],t,o)}}var a=t(e,n,i);return a>-1?o[s?e[a]:a]:r}}function Lr(t){return Jr((function(e){var n=e.length,i=n,s=Nn.prototype.thru;for(t&&e.reverse();i--;){var a=e[i];if("function"!=typeof a)throw new Ot(o);if(s&&!c&&"wrapper"==io(a))var c=new Nn([],!0)}for(i=c?i:n;++i<n;){var l=io(a=e[i]),h="wrapper"==l?no(a):r;c=h&&bo(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?c[io(h[0])].apply(c,h[3]):1==a.length&&bo(a)?c[l]():c.thru(a)}return function(){var t=arguments,i=t[0];if(c&&1==t.length&&Vs(i))return c.plant(i).value();for(var r=0,o=n?e[r].apply(this,t):i;++r<n;)o=e[r].call(this,o);return o}}))}function Fr(t,e,n,o,s,a,c,h,u,f){var d=e&l,p=1&e,g=2&e,m=24&e,v=512&e,y=g?r:Dr(t);return function l(){for(var b=arguments.length,x=i(b),_=b;_--;)x[_]=arguments[_];if(m)var w=ro(l),k=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(x,w);if(o&&(x=Mr(x,o,s,m)),a&&(x=Sr(x,a,c,m)),b-=k,m&&b<f){var M=an(x,w);return $r(t,e,Fr,l.placeholder,n,x,M,h,u,f-b)}var S=p?n:this,T=g?S[t]:t;return b=x.length,h?x=function(t,e){for(var n=t.length,i=vn(e.length,n),o=Tr(t);i--;){var s=e[i];t[i]=mo(s,n)?o[s]:r}return t}(x,h):v&&b>1&&x.reverse(),d&&u<b&&(x.length=u),this&&this!==ue&&this instanceof l&&(T=y||Dr(T)),T.apply(S,x)}}function jr(t,e){return function(n,i){return function(t,e,n,i){return yi(t,(function(t,r,o){e(i,n(t),r,o)})),i}(n,t,e(i),{})}}function Br(t,e){return function(n,i){var o;if(n===r&&i===r)return e;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=sr(n),i=sr(i)):(n=or(n),i=or(i)),o=t(n,i)}return o}}function Hr(t){return Jr((function(e){return e=Re(e,qe(oo())),Yi((function(n){var i=this;return t(e,(function(t){return ke(t,i,n)}))}))}))}function Nr(t,e){var n=(e=e===r?" ":sr(e)).length;if(n<2)return n?Qi(e,t):e;var i=Qi(e,fe(t/hn(e)));return rn(e)?yr(un(i),0,t).join(""):i.slice(0,t)}function Wr(t){return function(e,n,o){return o&&"number"!=typeof o&&vo(e,n,o)&&(n=o=r),e=fa(e),n===r?(n=e,e=0):n=fa(n),function(t,e,n,r){for(var o=-1,s=mn(fe((e-t)/(n||1)),0),a=i(s);s--;)a[r?s:++o]=t,t+=n;return a}(e,n,o=o===r?e<n?1:-1:fa(o),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,o,s,a,l,h,u){var f=8&e;e|=f?c:64,4&(e&=~(f?64:c))||(e&=-4);var d=[t,e,o,f?s:r,f?a:r,f?r:s,f?r:a,l,h,u],p=n.apply(r,d);return bo(t)&&Oo(p,d),p.placeholder=i,Ao(p,t,e)}function Ur(t){var e=kt[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=uo(e);return n==w?on(e):n==O?ln(e):function(t,e){return Re(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Xr(t,e,n,s,h,u,f,d){var p=2&e;if(!p&&"function"!=typeof t)throw new Ot(o);var g=s?s.length:0;if(g||(e&=-97,s=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=s,v=h;s=h=r}var y=p?r:no(t),b=[t,e,n,s,h,m,v,u,f,d];if(y&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<131,s=i==l&&8==n||i==l&&256==n&&t[7].length<=e[8]||384==i&&e[7].length<=e[8]&&8==n;if(!o&&!s)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?Mr(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}(b,y),t=b[0],e=b[1],n=b[2],s=b[3],h=b[4],!(d=b[9]=b[9]===r?p?0:t.length:mn(b[9]-g,0))&&24&e&&(e&=-25),e&&1!=e)x=8==e||16==e?function(t,e,n){var o=Dr(t);return function s(){for(var a=arguments.length,c=i(a),l=a,h=ro(s);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,s.placeholder,r,c,u,r,r,n-a):ke(this&&this!==ue&&this instanceof s?o:t,this,c)}}(t,e,d):e!=c&&33!=e||h.length?Fr.apply(r,b):function(t,e,n,r){var o=1&e,s=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?s:t;++l<h;)u[l]=r[l];for(;c--;)u[l++]=arguments[++a];return ke(f,o?n:this,u)}}(t,e,n,s);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 Ao((y?Ki:Oo)(x,b),t,e)}function qr(t,e,n,i){return t===r||Bs(t,At[n])&&!It.call(i,n)?e:t}function Zr(t,e,n,i,o,s){return Js(t)&&Js(e)&&(s.set(e,t),Bi(t,e,r,Zr,s),s.delete(e)),t}function Kr(t){return ia(t)?r:t}function Gr(t,e,n,i,o,s){var a=1&n,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var h=s.get(t),u=s.get(e);if(h&&u)return h==e&&u==t;var f=-1,d=!0,p=2&n?new Qn:r;for(s.set(t,e),s.set(e,t);++f<c;){var g=t[f],m=e[f];if(i)var v=a?i(m,g,f,e,t,s):i(g,m,f,t,e,s);if(v!==r){if(v)continue;d=!1;break}if(p){if(!ze(e,(function(t,e){if(!Ke(p,e)&&(g===t||o(g,t,n,i,s)))return p.push(e)}))){d=!1;break}}else if(g!==m&&!o(g,m,n,i,s)){d=!1;break}}return s.delete(t),s.delete(e),d}function Jr(t){return Po(Mo(t,r,$o),t+"")}function to(t){return wi(t,Aa,lo)}function eo(t){return wi(t,Ra,ho)}var no=En?function(t){return En.get(t)}:ac;function io(t){for(var e=t.name+"",n=Pn[e],i=It.call(Pn,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function ro(t){return(It.call(jn,"placeholder")?jn:t).placeholder}function oo(){var t=jn.iteratee||ic;return t=t===ic?Ii:t,arguments.length?t(arguments[0],arguments[1]):t}function so(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 ao(t){for(var e=Aa(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,wo(r)]}return e}function co(t,e){var n=function(t,e){return null==t?r:t[e]}(t,e);return Ci(n)?n:r}var lo=ge?function(t){return null==t?[]:(t=Mt(t),Ee(ge(t),(function(e){return Qt.call(t,e)})))}:pc,ho=ge?function(t){for(var e=[];t;)Ce(e,lo(t)),t=$t(t);return e}:pc,uo=ki;function fo(t,e,n){for(var i=-1,r=(e=mr(e,t)).length,o=!1;++i<r;){var s=Lo(e[i]);if(!(o=null!=t&&n(t,s)))break;t=t[s]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Gs(r)&&mo(s,r)&&(Vs(t)||Ws(t))}function po(t){return"function"!=typeof t.constructor||_o(t)?{}:Bn($t(t))}function go(t){return Vs(t)||Ws(t)||!!(Xt&&t&&t[Xt])}function mo(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 vo(t,e,n){if(!Js(n))return!1;var i=typeof e;return!!("number"==i?Us(n)&&mo(e,n.length):"string"==i&&e in n)&&Bs(n[e],t)}function yo(t,e){if(Vs(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 Mt(e)}function bo(t){var e=io(t),n=jn[e];if("function"!=typeof n||!(e in Wn.prototype))return!1;if(t===n)return!0;var i=no(n);return!!i&&t===i[0]}(wn&&uo(new wn(new ArrayBuffer(1)))!=C||kn&&uo(new kn)!=w||Mn&&uo(Mn.resolve())!=S||Sn&&uo(new Sn)!=O||Tn&&uo(new Tn)!=A)&&(uo=function(t){var e=ki(t),n=e==M?t.constructor:r,i=n?Fo(n):"";if(i)switch(i){case An:return C;case Rn:return w;case Cn:return S;case In:return O;case Dn:return A}return e});var xo=Rt?Zs:gc;function _o(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||At)}function wo(t){return t==t&&!Js(t)}function ko(t,e){return function(n){return null!=n&&n[t]===e&&(e!==r||t in Mt(n))}}function Mo(t,e,n){return e=mn(e===r?t.length-1:e,0),function(){for(var r=arguments,o=-1,s=mn(r.length-e,0),a=i(s);++o<s;)a[o]=r[e+o];o=-1;for(var c=i(e+1);++o<e;)c[o]=r[o];return c[e]=n(a),ke(t,this,c)}}function So(t,e){return e.length<2?t:_i(t,tr(e,0,-1))}function To(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Oo=Ro(Ki),Eo=he||function(t,e){return ue.setTimeout(t,e)},Po=Ro(Gi);function Ao(t,e,n){var i=e+"";return Po(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(ot,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return Se(p,(function(n){var i="_."+n[0];e&n[1]&&!Pe(t,i)&&t.push(i)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(at):[]}(i),n)))}function Ro(t){var e=0,n=0;return function(){var i=yn(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(r,arguments)}}function Co(t,e){var n=-1,i=t.length,o=i-1;for(e=e===r?i:e;++n<e;){var s=Ui(n,o),a=t[s];t[s]=t[n],t[n]=a}return t.length=e,t}var Io,Do,zo=(Io=Is((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===Do.size&&Do.clear(),t})),Do=Io.cache,Io);function Lo(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fo(t){if(null!=t){try{return Ct.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function jo(t){if(t instanceof Wn)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 Bo=Yi((function(t,e){return Qs(t)?li(t,gi(e,1,Qs,!0)):[]})),Ho=Yi((function(t,e){var n=qo(e);return Qs(n)&&(n=r),Qs(t)?li(t,gi(e,1,Qs,!0),oo(n,2)):[]})),No=Yi((function(t,e){var n=qo(e);return Qs(n)&&(n=r),Qs(t)?li(t,gi(e,1,Qs,!0),r,n):[]}));function Wo(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,oo(e,3),r)}function Vo(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i-1;return n!==r&&(o=da(n),o=n<0?mn(i+o,0):vn(o,i-1)),je(t,oo(e,3),o,!0)}function $o(t){return null!=t&&t.length?gi(t,1):[]}function Uo(t){return t&&t.length?t[0]:r}var Qo=Yi((function(t){var e=Re(t,pr);return e.length&&e[0]===t[0]?Oi(e):[]})),Yo=Yi((function(t){var e=qo(t),n=Re(t,pr);return e===qo(n)?e=r:n.pop(),n.length&&n[0]===t[0]?Oi(n,oo(e,2)):[]})),Xo=Yi((function(t){var e=qo(t),n=Re(t,pr);return(e="function"==typeof e?e:r)&&n.pop(),n.length&&n[0]===t[0]?Oi(n,r,e):[]}));function qo(t){var e=null==t?0:t.length;return e?t[e-1]:r}var Zo=Yi(Ko);function Ko(t,e){return t&&t.length&&e&&e.length?Vi(t,e):t}var Go=Jr((function(t,e){var n=null==t?0:t.length,i=ri(t,e);return $i(t,Re(e,(function(t){return mo(t,n)?+t:t})).sort(kr)),i}));function Jo(t){return null==t?t:_n.call(t)}var ts=Yi((function(t){return ar(gi(t,1,Qs,!0))})),es=Yi((function(t){var e=qo(t);return Qs(e)&&(e=r),ar(gi(t,1,Qs,!0),oo(e,2))})),ns=Yi((function(t){var e=qo(t);return e="function"==typeof e?e:r,ar(gi(t,1,Qs,!0),r,e)}));function is(t){if(!t||!t.length)return[];var e=0;return t=Ee(t,(function(t){if(Qs(t))return e=mn(t.length,e),!0})),Ye(e,(function(e){return Re(t,Ve(e))}))}function rs(t,e){if(!t||!t.length)return[];var n=is(t);return null==e?n:Re(n,(function(t){return ke(e,r,t)}))}var os=Yi((function(t,e){return Qs(t)?li(t,e):[]})),ss=Yi((function(t){return fr(Ee(t,Qs))})),as=Yi((function(t){var e=qo(t);return Qs(e)&&(e=r),fr(Ee(t,Qs),oo(e,2))})),cs=Yi((function(t){var e=qo(t);return e="function"==typeof e?e:r,fr(Ee(t,Qs),r,e)})),ls=Yi(is),hs=Yi((function(t){var e=t.length,n=e>1?t[e-1]:r;return n="function"==typeof n?(t.pop(),n):r,rs(t,n)}));function us(t){var e=jn(t);return e.__chain__=!0,e}function fs(t,e){return e(t)}var ds=Jr((function(t){var e=t.length,n=e?t[0]:0,i=this.__wrapped__,o=function(e){return ri(e,t)};return!(e>1||this.__actions__.length)&&i instanceof Wn&&mo(n)?((i=i.slice(n,+n+(e?1:0))).__actions__.push({func:fs,args:[o],thisArg:r}),new Nn(i,this.__chain__).thru((function(t){return e&&!t.length&&t.push(r),t}))):this.thru(o)})),ps=Er((function(t,e,n){It.call(t,n)?++t[n]:ii(t,n,1)})),gs=zr(Wo),ms=zr(Vo);function vs(t,e){return(Vs(t)?Se:hi)(t,oo(e,3))}function ys(t,e){return(Vs(t)?Te:ui)(t,oo(e,3))}var bs=Er((function(t,e,n){It.call(t,n)?t[n].push(e):ii(t,n,[e])})),xs=Yi((function(t,e,n){var r=-1,o="function"==typeof e,s=Us(t)?i(t.length):[];return hi(t,(function(t){s[++r]=o?ke(e,t,n):Ei(t,e,n)})),s})),_s=Er((function(t,e,n){ii(t,n,e)}));function ws(t,e){return(Vs(t)?Re:Li)(t,oo(e,3))}var ks=Er((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Ms=Yi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vo(t,e[0],e[1])?e=[]:n>2&&vo(e[0],e[1],e[2])&&(e=[e[0]]),Ni(t,gi(e,1),[])})),Ss=le||function(){return ue.Date.now()};function Ts(t,e,n){return e=n?r:e,e=t&&null==e?t.length:e,Xr(t,l,r,r,r,r,e)}function Os(t,e){var n;if("function"!=typeof e)throw new Ot(o);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=r),n}}var Es=Yi((function(t,e,n){var i=1;if(n.length){var r=an(n,ro(Es));i|=c}return Xr(t,i,e,n,r)})),Ps=Yi((function(t,e,n){var i=3;if(n.length){var r=an(n,ro(Ps));i|=c}return Xr(e,i,t,n,r)}));function As(t,e,n){var i,s,a,c,l,h,u=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ot(o);function g(e){var n=i,o=s;return i=s=r,u=e,c=t.apply(o,n)}function m(t){var n=t-h;return h===r||n>=e||n<0||d&&t-u>=a}function v(){var t=Ss();if(m(t))return y(t);l=Eo(v,function(t){var n=e-(t-h);return d?vn(n,a-(t-u)):n}(t))}function y(t){return l=r,p&&i?g(t):(i=s=r,c)}function b(){var t=Ss(),n=m(t);if(i=arguments,s=this,h=t,n){if(l===r)return function(t){return u=t,l=Eo(v,e),f?g(t):c}(h);if(d)return br(l),l=Eo(v,e),g(h)}return l===r&&(l=Eo(v,e)),c}return e=ga(e)||0,Js(n)&&(f=!!n.leading,a=(d="maxWait"in n)?mn(ga(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),b.cancel=function(){l!==r&&br(l),u=0,i=h=s=l=r},b.flush=function(){return l===r?c:y(Ss())},b}var Rs=Yi((function(t,e){return ci(t,1,e)})),Cs=Yi((function(t,e,n){return ci(t,ga(e)||0,n)}));function Is(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ot(o);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(Is.Cache||Un),n}function Ds(t){if("function"!=typeof t)throw new Ot(o);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)}}Is.Cache=Un;var zs=vr((function(t,e){var n=(e=1==e.length&&Vs(e[0])?Re(e[0],qe(oo())):Re(gi(e,1),qe(oo()))).length;return Yi((function(i){for(var r=-1,o=vn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return ke(t,this,i)}))})),Ls=Yi((function(t,e){var n=an(e,ro(Ls));return Xr(t,c,r,e,n)})),Fs=Yi((function(t,e){var n=an(e,ro(Fs));return Xr(t,64,r,e,n)})),js=Jr((function(t,e){return Xr(t,256,r,r,r,e)}));function Bs(t,e){return t===e||t!=t&&e!=e}var Hs=Vr(Mi),Ns=Vr((function(t,e){return t>=e})),Ws=Pi(function(){return arguments}())?Pi:function(t){return ta(t)&&It.call(t,"callee")&&!Qt.call(t,"callee")},Vs=i.isArray,$s=ve?qe(ve):function(t){return ta(t)&&ki(t)==R};function Us(t){return null!=t&&Gs(t.length)&&!Zs(t)}function Qs(t){return ta(t)&&Us(t)}var Ys=me||gc,Xs=ye?qe(ye):function(t){return ta(t)&&ki(t)==y};function qs(t){if(!ta(t))return!1;var e=ki(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Zs(t){if(!Js(t))return!1;var e=ki(t);return e==x||e==_||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ks(t){return"number"==typeof t&&t==da(t)}function Gs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=u}function Js(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=be?qe(be):function(t){return ta(t)&&uo(t)==w};function na(t){return"number"==typeof t||ta(t)&&ki(t)==k}function ia(t){if(!ta(t)||ki(t)!=M)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&&Ct.call(n)==Ft}var ra=xe?qe(xe):function(t){return ta(t)&&ki(t)==T},oa=_e?qe(_e):function(t){return ta(t)&&uo(t)==O};function sa(t){return"string"==typeof t||!Vs(t)&&ta(t)&&ki(t)==E}function aa(t){return"symbol"==typeof t||ta(t)&&ki(t)==P}var ca=we?qe(we):function(t){return ta(t)&&Gs(t.length)&&!!re[ki(t)]},la=Vr(zi),ha=Vr((function(t,e){return t<=e}));function ua(t){if(!t)return[];if(Us(t))return sa(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=uo(t);return(e==w?on:e==O?cn:Ba)(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?oi(da(t),0,d):0}function ga(t){if("number"==typeof t)return t;if(aa(t))return f;if(Js(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Js(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 Or(t,Ra(t))}function va(t){return null==t?"":sr(t)}var ya=Pr((function(t,e){if(_o(e)||Us(e))Or(e,Aa(e),t);else for(var n in e)It.call(e,n)&&Jn(t,n,e[n])})),ba=Pr((function(t,e){Or(e,Ra(e),t)})),xa=Pr((function(t,e,n,i){Or(e,Ra(e),t,i)})),_a=Pr((function(t,e,n,i){Or(e,Aa(e),t,i)})),wa=Jr(ri),ka=Yi((function(t,e){t=Mt(t);var n=-1,i=e.length,o=i>2?e[2]:r;for(o&&vo(e[0],e[1],o)&&(i=1);++n<i;)for(var s=e[n],a=Ra(s),c=-1,l=a.length;++c<l;){var h=a[c],u=t[h];(u===r||Bs(u,At[h])&&!It.call(t,h))&&(t[h]=s[h])}return t})),Ma=Yi((function(t){return t.push(r,Zr),ke(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&&fo(t,e,Ti)}var Oa=jr((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Lt.call(e)),t[e]=n}),Ja(nc)),Ea=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]}),oo),Pa=Yi(Ei);function Aa(t){return Us(t)?Xn(t):Di(t)}function Ra(t){return Us(t)?Xn(t,!0):function(t){if(!Js(t))return function(t){var e=[];if(null!=t)for(var n in Mt(t))e.push(n);return e}(t);var e=_o(t),n=[];for(var i in t)("constructor"!=i||!e&&It.call(t,i))&&n.push(i);return n}(t)}var Ca=Pr((function(t,e,n){Bi(t,e,n)})),Ia=Pr((function(t,e,n,i){Bi(t,e,n,i)})),Da=Jr((function(t,e){var n={};if(null==t)return n;var i=!1;e=Re(e,(function(e){return e=mr(e,t),i||(i=e.length>1),e})),Or(t,eo(t),n),i&&(n=si(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 Wi(t,e,(function(e,n){return Ta(t,n)}))}(t,e)}));function La(t,e){if(null==t)return{};var n=Re(eo(t),(function(t){return[t]}));return e=oo(e),Wi(t,n,(function(t,n){return e(t,n[0])}))}var Fa=Yr(Aa),ja=Yr(Ra);function Ba(t){return null==t?[]:Ze(t,Aa(t))}var Ha=Ir((function(t,e,n){return e=e.toLowerCase(),t+(n?Na(e):e)}));function Na(t){return qa(va(t).toLowerCase())}function Wa(t){return(t=va(t))&&t.replace(yt,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=Cr("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=Cr("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 ke(t,r,e)}catch(t){return qs(t)?t:new _t(t)}})),Ga=Jr((function(t,e){return Se(e,(function(e){e=Lo(e),ii(t,e,Es(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:si(t,1))}var rc=Yi((function(t,e){return function(n){return Ei(n,t,e)}})),oc=Yi((function(t,e){return function(n){return Ei(t,n,e)}}));function sc(t,e,n){var i=Aa(e),r=xi(e,i);null!=n||Js(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=xi(e,Aa(e)));var o=!(Js(n)&&"chain"in n&&!n.chain),s=Zs(t);return Se(r,(function(n){var i=e[n];t[n]=i,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||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,Ce([this.value()],arguments))})})),t}function ac(){}var cc=Hr(Re),lc=Hr(Oe),hc=Hr(ze);function uc(t){return yo(t)?Ve(Lo(t)):function(t){return function(e){return _i(e,t)}}(t)}var fc=Wr(),dc=Wr(!0);function pc(){return[]}function gc(){return!1}var mc,vc=Br((function(t,e){return t+e}),0),yc=Ur("ceil"),bc=Br((function(t,e){return t/e}),1),xc=Ur("floor"),_c=Br((function(t,e){return t*e}),1),wc=Ur("round"),kc=Br((function(t,e){return t-e}),0);return jn.after=function(t,e){if("function"!=typeof e)throw new Ot(o);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},jn.ary=Ts,jn.assign=ya,jn.assignIn=ba,jn.assignInWith=xa,jn.assignWith=_a,jn.at=wa,jn.before=Os,jn.bind=Es,jn.bindAll=Ga,jn.bindKey=Ps,jn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Vs(t)?t:[t]},jn.chain=us,jn.chunk=function(t,e,n){e=(n?vo(t,e,n):e===r)?1:mn(da(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var s=0,a=0,c=i(fe(o/e));s<o;)c[a++]=tr(t,s,s+=e);return c},jn.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}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 Ce(Vs(n)?Tr(n):[n],gi(e,1))},jn.cond=function(t){var e=null==t?0:t.length,n=oo();return t=e?Re(t,(function(t){if("function"!=typeof t[1])throw new Ot(o);return[n(t[0]),t[1]]})):[],Yi((function(n){for(var i=-1;++i<e;){var r=t[i];if(ke(r[0],this,n))return ke(r[1],this,n)}}))},jn.conforms=function(t){return function(t){var e=Aa(t);return function(n){return ai(n,t,e)}}(si(t,1))},jn.constant=Ja,jn.countBy=ps,jn.create=function(t,e){var n=Bn(t);return null==e?n:ni(n,e)},jn.curry=function t(e,n,i){var o=Xr(e,8,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},jn.curryRight=function t(e,n,i){var o=Xr(e,16,r,r,r,r,r,n=i?r:n);return o.placeholder=t.placeholder,o},jn.debounce=As,jn.defaults=ka,jn.defaultsDeep=Ma,jn.defer=Rs,jn.delay=Cs,jn.difference=Bo,jn.differenceBy=Ho,jn.differenceWith=No,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,oo(e,3),!0,!0):[]},jn.dropWhile=function(t,e){return t&&t.length?hr(t,oo(e,3),!0):[]},jn.fill=function(t,e,n,i){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&vo(t,e,n)&&(n=0,i=o),function(t,e,n,i){var o=t.length;for((n=da(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:da(i))<0&&(i+=o),i=n>i?0:pa(i);n<i;)t[n++]=e;return t}(t,e,n,i)):[]},jn.filter=function(t,e){return(Vs(t)?Ee:pi)(t,oo(e,3))},jn.flatMap=function(t,e){return gi(ws(t,e),1)},jn.flatMapDeep=function(t,e){return gi(ws(t,e),h)},jn.flatMapDepth=function(t,e,n){return n=n===r?1:da(n),gi(ws(t,e),n)},jn.flatten=$o,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,Aa(t))},jn.functionsIn=function(t){return null==t?[]:xi(t,Ra(t))},jn.groupBy=bs,jn.initial=function(t){return null!=t&&t.length?tr(t,0,-1):[]},jn.intersection=Qo,jn.intersectionBy=Yo,jn.intersectionWith=Xo,jn.invert=Oa,jn.invertBy=Ea,jn.invokeMap=xs,jn.iteratee=ic,jn.keyBy=_s,jn.keys=Aa,jn.keysIn=Ra,jn.map=ws,jn.mapKeys=function(t,e){var n={};return e=oo(e,3),yi(t,(function(t,i,r){ii(n,e(t,i,r),t)})),n},jn.mapValues=function(t,e){var n={};return e=oo(e,3),yi(t,(function(t,i,r){ii(n,i,e(t,i,r))})),n},jn.matches=function(t){return Fi(si(t,1))},jn.matchesProperty=function(t,e){return ji(t,si(e,1))},jn.memoize=Is,jn.merge=Ca,jn.mergeWith=Ia,jn.method=rc,jn.methodOf=oc,jn.mixin=sc,jn.negate=Ds,jn.nthArg=function(t){return t=da(t),Yi((function(e){return Hi(e,t)}))},jn.omit=Da,jn.omitBy=function(t,e){return La(t,Ds(oo(e)))},jn.once=function(t){return Os(2,t)},jn.orderBy=function(t,e,n,i){return null==t?[]:(Vs(e)||(e=null==e?[]:[e]),Vs(n=i?r:n)||(n=null==n?[]:[n]),Ni(t,e,n))},jn.over=cc,jn.overArgs=zs,jn.overEvery=lc,jn.overSome=hc,jn.partial=Ls,jn.partialRight=Fs,jn.partition=ks,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=Zo,jn.pullAll=Ko,jn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Vi(t,e,oo(n,2)):t},jn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Vi(t,e,r,n):t},jn.pullAt=Go,jn.range=fc,jn.rangeRight=dc,jn.rearg=js,jn.reject=function(t,e){return(Vs(t)?Ee:pi)(t,Ds(oo(e,3)))},jn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=oo(e,3);++i<o;){var s=t[i];e(s,i,t)&&(n.push(s),r.push(i))}return $i(t,r),n},jn.rest=function(t,e){if("function"!=typeof t)throw new Ot(o);return Yi(t,e=e===r?e:da(e))},jn.reverse=Jo,jn.sampleSize=function(t,e,n){return e=(n?vo(t,e,n):e===r)?1:da(e),(Vs(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(Vs(t)?Kn:Ji)(t)},jn.slice=function(t,e,n){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&vo(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=Ms,jn.sortedUniq=function(t){return t&&t.length?rr(t):[]},jn.sortedUniqBy=function(t,e){return t&&t.length?rr(t,oo(e,2)):[]},jn.split=function(t,e,n){return n&&"number"!=typeof n&&vo(t,e,n)&&(e=n=r),(n=n===r?d:n>>>0)?(t=va(t))&&("string"==typeof e||null!=e&&!ra(e))&&!(e=sr(e))&&rn(t)?yr(un(t),0,n):t.split(e,n):[]},jn.spread=function(t,e){if("function"!=typeof t)throw new Ot(o);return e=null==e?0:mn(da(e),0),Yi((function(n){var i=n[e],r=yr(n,0,e);return i&&Ce(r,i),ke(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,oo(e,3),!1,!0):[]},jn.takeWhile=function(t,e){return t&&t.length?hr(t,oo(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 Ot(o);return Js(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),As(t,e,{leading:i,maxWait:e,trailing:r})},jn.thru=fs,jn.toArray=ua,jn.toPairs=Fa,jn.toPairsIn=ja,jn.toPath=function(t){return Vs(t)?Re(t,Lo):aa(t)?[t]:Tr(zo(va(t)))},jn.toPlainObject=ma,jn.transform=function(t,e,n){var i=Vs(t),r=i||Ys(t)||ca(t);if(e=oo(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Js(t)&&Zs(o)?Bn($t(t)):{}}return(r?Se:yi)(t,(function(t,i,r){return e(n,t,i,r)})),n},jn.unary=function(t){return Ts(t,1)},jn.union=ts,jn.unionBy=es,jn.unionWith=ns,jn.uniq=function(t){return t&&t.length?ar(t):[]},jn.uniqBy=function(t,e){return t&&t.length?ar(t,oo(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=is,jn.unzipWith=rs,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=Ba,jn.valuesIn=function(t){return null==t?[]:Ze(t,Ra(t))},jn.without=os,jn.words=Za,jn.wrap=function(t,e){return Ls(gr(e),t)},jn.xor=ss,jn.xorBy=as,jn.xorWith=cs,jn.zip=ls,jn.zipObject=function(t,e){return dr(t||[],e||[],Jn)},jn.zipObjectDeep=function(t,e){return dr(t||[],e||[],Zi)},jn.zipWith=hs,jn.entries=Fa,jn.entriesIn=ja,jn.extend=ba,jn.extendWith=xa,sc(jn,jn),jn.add=vc,jn.attempt=Ka,jn.camelCase=Ha,jn.capitalize=Na,jn.ceil=yc,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),oi(ga(t),e,n)},jn.clone=function(t){return si(t,4)},jn.cloneDeep=function(t){return si(t,5)},jn.cloneDeepWith=function(t,e){return si(t,5,e="function"==typeof e?e:r)},jn.cloneWith=function(t,e){return si(t,4,e="function"==typeof e?e:r)},jn.conformsTo=function(t,e){return null==e||ai(t,e,Aa(e))},jn.deburr=Wa,jn.defaultTo=function(t,e){return null==t||t!=t?e:t},jn.divide=bc,jn.endsWith=function(t,e,n){t=va(t),e=sr(e);var i=t.length,o=n=n===r?i:oi(da(n),0,i);return(n-=e.length)>=0&&t.slice(n,o)==e},jn.eq=Bs,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=Vs(t)?Oe:fi;return n&&vo(t,e,n)&&(e=r),i(t,oo(e,3))},jn.find=gs,jn.findIndex=Wo,jn.findKey=function(t,e){return Fe(t,oo(e,3),yi)},jn.findLast=ms,jn.findLastIndex=Vo,jn.findLastKey=function(t,e){return Fe(t,oo(e,3),bi)},jn.floor=xc,jn.forEach=vs,jn.forEachRight=ys,jn.forIn=function(t,e){return null==t?t:mi(t,oo(e,3),Ra)},jn.forInRight=function(t,e){return null==t?t:vi(t,oo(e,3),Ra)},jn.forOwn=function(t,e){return t&&yi(t,oo(e,3))},jn.forOwnRight=function(t,e){return t&&bi(t,oo(e,3))},jn.get=Sa,jn.gt=Hs,jn.gte=Ns,jn.has=function(t,e){return null!=t&&fo(t,e,Si)},jn.hasIn=Ta,jn.head=Uo,jn.identity=nc,jn.includes=function(t,e,n,i){t=Us(t)?t:Ba(t),n=n&&!i?da(n):0;var r=t.length;return n<0&&(n=mn(r+n,0)),sa(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&Be(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)),Be(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=Pa,jn.isArguments=Ws,jn.isArray=Vs,jn.isArrayBuffer=$s,jn.isArrayLike=Us,jn.isArrayLikeObject=Qs,jn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&ki(t)==v},jn.isBuffer=Ys,jn.isDate=Xs,jn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ia(t)},jn.isEmpty=function(t){if(null==t)return!0;if(Us(t)&&(Vs(t)||"string"==typeof t||"function"==typeof t.splice||Ys(t)||ca(t)||Ws(t)))return!t.length;var e=uo(t);if(e==w||e==O)return!t.size;if(_o(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 Ai(t,e)},jn.isEqualWith=function(t,e,n){var i=(n="function"==typeof n?n:r)?n(t,e):r;return i===r?Ai(t,e,r,n):!!i},jn.isError=qs,jn.isFinite=function(t){return"number"==typeof t&&Le(t)},jn.isFunction=Zs,jn.isInteger=Ks,jn.isLength=Gs,jn.isMap=ea,jn.isMatch=function(t,e){return t===e||Ri(t,e,ao(e))},jn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:r,Ri(t,e,ao(e),n)},jn.isNaN=function(t){return na(t)&&t!=+t},jn.isNative=function(t){if(xo(t))throw new _t("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ci(t)},jn.isNil=function(t){return null==t},jn.isNull=function(t){return null===t},jn.isNumber=na,jn.isObject=Js,jn.isObjectLike=ta,jn.isPlainObject=ia,jn.isRegExp=ra,jn.isSafeInteger=function(t){return Ks(t)&&t>=-9007199254740991&&t<=u},jn.isSet=oa,jn.isString=sa,jn.isSymbol=aa,jn.isTypedArray=ca,jn.isUndefined=function(t){return t===r},jn.isWeakMap=function(t){return ta(t)&&uo(t)==A},jn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==ki(t)},jn.join=function(t,e){return null==t?"":$e.call(t,e)},jn.kebabCase=Va,jn.last=qo,jn.lastIndexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=da(n))<0?mn(i+o,0):vn(o,i-1)),e==e?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(t,e,o):je(t,Ne,o,!0)},jn.lowerCase=$a,jn.lowerFirst=Ua,jn.lt=la,jn.lte=ha,jn.max=function(t){return t&&t.length?di(t,nc,Mi):r},jn.maxBy=function(t,e){return t&&t.length?di(t,oo(e,2),Mi):r},jn.mean=function(t){return We(t,nc)},jn.meanBy=function(t,e){return We(t,oo(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,oo(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?Hi(t,da(e)):r},jn.noConflict=function(){return ue._===this&&(ue._=jt),this},jn.noop=ac,jn.now=Ss,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),bn(va(t).replace(it,""),e||0)},jn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&vo(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 o=xn();return vn(t+o*(e-t+ae("1e-"+((o+"").length-1))),e)}return Ui(t,e)},jn.reduce=function(t,e,n){var i=Vs(t)?Ie:Ue,r=arguments.length<3;return i(t,oo(e,4),n,r,hi)},jn.reduceRight=function(t,e,n){var i=Vs(t)?De:Ue,r=arguments.length<3;return i(t,oo(e,4),n,r,ui)},jn.repeat=function(t,e,n){return e=(n?vo(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,o=(e=mr(e,t)).length;for(o||(o=1,t=r);++i<o;){var s=null==t?r:t[Lo(e[i])];s===r&&(i=o,s=n),t=Zs(s)?s.call(t):s}return t},jn.round=wc,jn.runInContext=t,jn.sample=function(t){return(Vs(t)?qn:Xi)(t)},jn.size=function(t){if(null==t)return 0;if(Us(t))return sa(t)?hn(t):t.length;var e=uo(t);return e==w||e==O?t.size:Di(t).length},jn.snakeCase=Qa,jn.some=function(t,e,n){var i=Vs(t)?ze:er;return n&&vo(t,e,n)&&(e=r),i(t,oo(e,3))},jn.sortedIndex=function(t,e){return nr(t,e)},jn.sortedIndexBy=function(t,e,n){return ir(t,e,oo(n,2))},jn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=nr(t,e);if(i<n&&Bs(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,oo(n,2),!0)},jn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=nr(t,e,!0)-1;if(Bs(t[n],e))return n}return-1},jn.startCase=Ya,jn.startsWith=function(t,e,n){return t=va(t),n=null==n?0:oi(da(n),0,t.length),e=sr(e),t.slice(n,n+e.length)==e},jn.subtract=kc,jn.sum=function(t){return t&&t.length?Qe(t,nc):0},jn.sumBy=function(t,e){return t&&t.length?Qe(t,oo(e,2)):0},jn.template=function(t,e,n){var i=jn.templateSettings;n&&vo(t,e,n)&&(e=r),t=va(t),e=xa({},e,i,qr);var o,s,a=xa({},e.imports,i.imports,qr),c=Aa(a),l=Ze(a,c),h=0,u=e.interpolate||bt,f="__p += '",d=St((e.escape||bt).source+"|"+u.source+"|"+(u===K?ut:bt).source+"|"+(e.evaluate||bt).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&&(o=!0,f+="' +\n__e("+n+") +\n'"),a&&(s=!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=(s?f.replace(W,""):f).replace(V,"$1").replace($,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(s?", __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,qs(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=oo(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?oi(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=sr(e)))return t;var i=un(t),o=un(e);return yr(i,Ge(i,o),Je(i,o)+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=sr(e)))return t;var i=un(t);return yr(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=sr(e)))return t;var i=un(t);return yr(i,Ge(i,un(e))).join("")},jn.truncate=function(t,e){var n=30,i="...";if(Js(e)){var o="separator"in e?e.separator:o;n="length"in e?da(e.length):n,i="omission"in e?sr(e.omission):i}var s=(t=va(t)).length;if(rn(t)){var a=un(t);s=a.length}if(n>=s)return t;var c=n-hn(i);if(c<1)return i;var l=a?yr(a,0,c).join(""):t.slice(0,c);if(o===r)return l+i;if(a&&(c+=l.length-c),ra(o)){if(t.slice(c).search(o)){var h,u=l;for(o.global||(o=St(o.source,va(ft.exec(o))+"g")),o.lastIndex=0;h=o.exec(u);)var f=h.index;l=l.slice(0,f===r?c:f)}}else if(t.indexOf(sr(o),c)!=c){var d=l.lastIndexOf(o);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=vs,jn.eachRight=ys,jn.first=Uo,sc(jn,(mc={},yi(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){Wn.prototype[t]=function(n){n=n===r?1:mn(da(n),0);var i=this.__filtered__&&!e?new Wn(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},Wn.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;Wn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:oo(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Wn.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Wn.prototype[t]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(nc)},Wn.prototype.find=function(t){return this.filter(t).head()},Wn.prototype.findLast=function(t){return this.reverse().find(t)},Wn.prototype.invokeMap=Yi((function(t,e){return"function"==typeof t?new Wn(this):this.map((function(n){return Ei(n,t,e)}))})),Wn.prototype.reject=function(t){return this.filter(Ds(oo(t)))},Wn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Wn(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)},Wn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Wn.prototype.toArray=function(){return this.take(d)},yi(Wn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),i=/^(?:head|last)$/.test(e),o=jn[i?"take"+("last"==e?"Right":""):e],s=i||/^find/.test(e);o&&(jn.prototype[e]=function(){var e=this.__wrapped__,a=i?[1]:arguments,c=e instanceof Wn,l=a[0],h=c||Vs(e),u=function(t){var e=o.apply(jn,Ce([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=s&&!f,g=c&&!d;if(!s&&h){e=g?e:new Wn(this);var m=t.apply(e,a);return m.__actions__.push({func:fs,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=Et[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(Vs(r)?r:[],t)}return this[n]((function(n){return e.apply(Vs(n)?n:[],t)}))}})),yi(Wn.prototype,(function(t,e){var n=jn[e];if(n){var i=n.name+"";It.call(Pn,i)||(Pn[i]=[]),Pn[i].push({name:e,func:n})}})),Pn[Fr(r,2).name]=[{name:"wrapper",func:r}],Wn.prototype.clone=function(){var t=new Wn(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},Wn.prototype.reverse=function(){if(this.__filtered__){var t=new Wn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Wn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Vs(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],s=o.size;switch(o.type){case"drop":t+=s;break;case"dropRight":e-=s;break;case"take":e=vn(e,t+s);break;case"takeRight":t=mn(t,e-s)}}return{start:t,end:e}}(0,r,this.__views__),s=o.start,a=o.end,c=a-s,l=i?a:s-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],y=v.iteratee,b=v.type,x=y(m);if(2==b)m=x;else if(!x){if(1==b)continue t;break t}}p[f++]=m}return p},jn.prototype.at=ds,jn.prototype.chain=function(){return us(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 Hn;){var i=jo(n);i.__index__=0,i.__values__=r,e?o.__wrapped__=i:e=i;var o=i;n=n.__wrapped__}return o.__wrapped__=t,e},jn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Wn){var e=t;return this.__actions__.length&&(e=new Wn(this)),(e=e.reverse()).__actions__.push({func:fs,args:[Jo],thisArg:r}),new Nn(e,this.__chain__)}return this.thru(Jo)},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),o=n(6540),s=n(6519),a=n(4848);const c=o.forwardRef(((t,e)=>{const[{className:n,...i},{as:o="div",bsPrefix:c,spans:l}]=function({as:t,bsPrefix:e,className:n,...i}){e=(0,s.oU)(e,"col");const o=(0,s.gy)(),a=(0,s.Jm)(),c=[],l=[];return o.forEach((t=>{const n=i[t];let r,o,s;delete i[t],"object"==typeof n&&null!=n?({span:r,offset:o,order:s}=n):r=n;const h=t!==a?`-${t}`:"";r&&c.push(!0===r?`${e}${h}`:`${e}${h}-${r}`),null!=s&&l.push(`order${h}-${s}`),null!=o&&l.push(`offset${h}-${o}`)})),[{...i,className:r()(n,...c,...l)},{as:t,bsPrefix:e,spans:c}]}(t);return(0,a.jsx)(o,{...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),o=n(6540),s=n(6519),a=n(4848);const c=o.forwardRef((({bsPrefix:t,fluid:e=!1,as:n="div",className:i,...o},c)=>{const l=(0,s.oU)(t,"container"),h="string"==typeof e?`-${e}`:"-fluid";return(0,a.jsx)(n,{ref:c,...o,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),o=n(5556),s=n.n(o),a=n(6540),c=n(4848);const l={type:s().string,tooltip:s().bool,as:s().elementType},h=a.forwardRef((({as:t="div",className:e,type:n="valid",tooltip:i=!1,...o},s)=>(0,c.jsx)(t,{...o,ref:s,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:o=!1,isInvalid:s=!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,o&&"is-valid",s&&"is-invalid")})}));p.displayName="FormCheckInput";const g=p,m=a.forwardRef((({bsPrefix:t,className:e,htmlFor:n,...i},o)=>{const{controlId:s}=(0,a.useContext)(f);return t=(0,d.oU)(t,"form-check-label"),(0,c.jsx)("label",{...i,ref:o,htmlFor:n||s,className:r()(e,t)})}));m.displayName="FormCheckLabel";const v=m,y=a.forwardRef((({id:t,bsPrefix:e,bsSwitchPrefix:n,inline:i=!1,reverse:o=!1,disabled:s=!1,isValid:l=!1,isInvalid:h=!1,feedbackTooltip:p=!1,feedback:m,feedbackType:y,className:b,style:x,title:_="",type:w="checkbox",label:k,children:M,as:S="input",...T},O)=>{e=(0,d.oU)(e,"form-check"),n=(0,d.oU)(n,"form-switch");const{controlId:E}=(0,a.useContext)(f),P=(0,a.useMemo)((()=>({controlId:t||E})),[E,t]),A=!M&&null!=k&&!1!==k||function(t,e){return a.Children.toArray(t).some((t=>a.isValidElement(t)&&t.type===e))}(M,v),R=(0,c.jsx)(g,{...T,type:"switch"===w?"checkbox":w,ref:O,isValid:l,isInvalid:h,disabled:s,as:S});return(0,c.jsx)(f.Provider,{value:P,children:(0,c.jsx)("div",{style:x,className:r()(b,A&&e,i&&`${e}-inline`,o&&`${e}-reverse`,"switch"===w&&n),children:M||(0,c.jsxs)(c.Fragment,{children:[R,A&&(0,c.jsx)(v,{title:_,children:k}),m&&(0,c.jsx)(u,{type:y,tooltip:p,children:m})]})})})}));y.displayName="FormCheck";const b=Object.assign(y,{Input:g,Label:v});n(9771);const x=a.forwardRef((({bsPrefix:t,type:e,size:n,htmlSize:i,id:o,className:s,isValid:l=!1,isInvalid:h=!1,plaintext:u,readOnly:p,as:g="input",...m},v)=>{const{controlId:y}=(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:o||y,className:r()(s,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},o)=>(e=(0,d.oU)(e,"form-floating"),(0,c.jsx)(n,{ref:o,className:r()(t,e),...i}))));w.displayName="FormFloating";const k=w,M=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})})}));M.displayName="FormGroup";const S=M;var T=n(1105);const O=a.forwardRef((({as:t="label",bsPrefix:e,column:n=!1,visuallyHidden:i=!1,className:o,htmlFor:s,...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()(o,e,i&&"visually-hidden",n&&p);return s=s||u,n?(0,c.jsx)(T.A,{ref:h,as:"label",className:g,htmlFor:s,...l}):(0,c.jsx)(t,{ref:h,className:g,htmlFor:s,...l})}));O.displayName="FormLabel";const E=O,P=a.forwardRef((({bsPrefix:t,className:e,id:n,...i},o)=>{const{controlId:s}=(0,a.useContext)(f);return t=(0,d.oU)(t,"form-range"),(0,c.jsx)("input",{...i,type:"range",ref:o,className:r()(e,t),id:n||s})}));P.displayName="FormRange";const A=P,R=a.forwardRef((({bsPrefix:t,size:e,htmlSize:n,className:i,isValid:o=!1,isInvalid:s=!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}`,o&&"is-valid",s&&"is-invalid"),id:l||p})}));R.displayName="FormSelect";const C=R,I=a.forwardRef((({bsPrefix:t,className:e,as:n="small",muted:i,...o},s)=>(t=(0,d.oU)(t,"form-text"),(0,c.jsx)(n,{...o,ref:s,className:r()(e,t,i&&"text-muted")}))));I.displayName="FormText";const D=I,z=a.forwardRef(((t,e)=>(0,c.jsx)(b,{...t,ref:e,type:"switch"})));z.displayName="Switch";const L=Object.assign(z,{Input:b.Input,Label:b.Label}),F=a.forwardRef((({bsPrefix:t,className:e,children:n,controlId:i,label:o,...s},a)=>(t=(0,d.oU)(t,"form-floating"),(0,c.jsxs)(S,{ref:a,className:r()(e,t),controlId:i,...s,children:[n,(0,c.jsx)("label",{htmlFor:i,children:o})]}))));F.displayName="FloatingLabel";const j=F,B={_ref:s().any,validated:s().bool,as:s().elementType},H=a.forwardRef((({className:t,validated:e,as:n="form",...i},o)=>(0,c.jsx)(n,{...i,ref:o,className:r()(t,e&&"was-validated")})));H.displayName="Form",H.propTypes=B;const N=Object.assign(H,{Group:S,Control:_,Floating:k,Check:b,Switch:L,Label:E,Text:D,Range:A,Select:C,FloatingLabel:j})},4479:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6942),r=n.n(i),o=n(6540),s=n(6519),a=n(4848);const c=o.forwardRef((({bsPrefix:t,className:e,as:n="div",...i},o)=>{const c=(0,s.oU)(t,"row"),l=(0,s.gy)(),h=(0,s.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:o,...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:o,Provider:s}=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=s(t,o(n)))}return t}function o(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=s(e,n));return e}function s(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:()=>E});var i=n(9658),r=n(6261),o=n(9757),s=n(6500),a=n(4658),c=n(4880),l=class extends s.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;#o=void 0;#s;#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.#y(),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.#b(),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 o=this.#_();!r||this.#i===i&&(0,c.Eh)(this.options.enabled,this.#i)===(0,c.Eh)(n.enabled,this.#i)&&o===this.#d||this.#w(o)}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.#o=n,this.#a=this.options,this.#s=this.#i.state),n;var i,r}getCurrentResult(){return this.#o}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.#o)))}#g(t){this.#b();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.#o.isStale||!(0,c.gn)(t))return;const e=(0,c.j3)(this.#o.dataUpdatedAt,t)+1;this.#u=setTimeout((()=>{this.#o.isStale||this.updateResult()}),e)}#_(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#i):this.options.refetchInterval)??!1}#w(t){this.#y(),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)}#y(){this.#f&&(clearInterval(this.#f),this.#f=void 0)}createResult(t,e){const n=this.#i,i=this.options,r=this.#o,s=this.#s,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(),s=!r&&h(t,e),a=r&&f(t,n,e,i);(s||a)&&(g={...g,...(0,o.k)(u.data,t.options)}),"isRestoring"===e._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=g;if(e.select&&void 0!==g.data)if(r&&g.data===s?.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"===b){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&&(b="success",p=(0,c.pl)(r?.data,t,e),m=!0)}this.#e&&(v=this.#e,p=this.#l,y=Date.now(),b="error");const x="fetching"===g.fetchStatus,_="pending"===b,w="error"===b,k=_&&x,M=void 0!==p;return{status:b,fetchStatus:g.fetchStatus,isPending:_,isSuccess:"success"===b,isError:w,isInitialLoading:k,isLoading:k,data:p,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:y,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&&!M,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:w&&M,isStale:d(t,e),refetch:this.refetch,promise:this.#n}}updateResult(t){const e=this.#o,n=this.createResult(this.#i,this.options);if(this.#s=this.#i.state,this.#a=this.options,void 0!==this.#s.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.#o=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.#o).some((t=>{const n=t;return this.#o[n]!==e[n]&&i.has(n)}))})()&&(i.listeners=!0),this.#k({...i,...t})}#b(){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()}#k(t){r.j.batch((()=>{t.listeners&&this.listeners.forEach((t=>{t(this.#o)})),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 y(){}var b=(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,o=[t.error,i],"function"==typeof r?r(...o):!!r);var r,o},w=p.createContext(!1),k=()=>p.useContext(w),M=(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,O=(t,e,n)=>e.fetchOptimistic(t).catch((()=>{n.clearReset()}));function E(t,e){return function(t,e,n){const i=(0,g.jE)(n),o=k(),s=v(),a=i.defaultQueryOptions(t);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=o?"isRestoring":"optimistic",M(a),b(a,s),x(s);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=o?()=>{}:h.subscribe(r.j.batchCalls(t));return h.updateResult(),e}),[h,o]),(()=>h.getCurrentResult()),(()=>h.getCurrentResult())),p.useEffect((()=>{h.setOptions(a,{listeners:!1})}),[a,h]),T(a,u))throw O(a,h,s);if(_({result:u,errorResetBoundary:s,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,o)){const t=l?O(a,h,s):i.getQueryCache().get(a.queryHash)?.promise;t?.catch(y).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:()=>A,E8:()=>re,PP:()=>Oe,hE:()=>he,kc:()=>Ae,m_:()=>Se,s$:()=>ce,t1:()=>Kt});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],o=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_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 o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(r[s]=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 o=new r;const s="transparent",a={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=(0,i.c)(t||s),o=r.valid&&(0,i.c)(e||s);return o&&o.valid?o.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class c{constructor(t,e,n,r){const o=e[n];r=(0,i.a)([t.to,r,o,t.from]);const s=(0,i.a)([t.from,o,r]);this._active=!0,this._fn=t.fn||a[t.type||typeof s],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=s,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],o=n-this._start,s=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,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,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,s,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 o=t[r];if(!(0,i.i)(o))return;const s={};for(const t of e)s[t]=o[t];((0,i.b)(o.properties)&&o.properties||[r]).forEach((t=>{t!==r&&n.has(t)||n.set(t,s)}))}))}_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={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[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,s);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?(o.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,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function u(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function f(t,e,n,r={}){const o=t.keys,s="single"===r.mode;let a,c,l,h;if(null!==e){for(a=0,c=o.length;a<c;++a){if(l=+o[a],l===n){if(r.all)continue;break}h=t.values[l],(0,i.g)(h)&&(s||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:o,vScale:s,index:a}=i,c=o.axis,l=s.axis,h=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,i),u=e.length;let f;for(let t=0;t<u;++t){const n=e[t],{[c]:o,[l]:u}=n;f=(n._stacks||(n._stacks={}))[l]=p(r,h,o),f[a]=u,f._top=g(f,s,!0,i.type),f._bottom=g(f,s,!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 y(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 b=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&&y(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,o=e.xAxisID=(0,i.v)(n.xAxisID,v(t,"x")),s=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,o,s,a),h=e.vAxisID=r(c,s,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(s),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&&y(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",o="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let c,l,h;for(c=0,l=s.length;c<l;++c)h=s[c],a[c]={[r]:h,[o]:t[h]};return a}(e,t)}else if(n!==e){if(n){(0,i.u)(n,this);const t=this._cachedMeta;y(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,y(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:o,_stacked:s}=n,a=o.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 o=()=>null===l[a]||f&&l[a]<f[a];for(c=0;c<e;++c)n._parsed[c+t]=l=h[c],u&&(o()&&(u=!1),f=l);n._sorted=u}s&&m(this,h)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,s=r.axis,a=o.axis,c=r.getLabels(),l=r===o,h=new Array(i);let u,f,d;for(u=0,f=i;u<f;++u)d=u+n,h[u]={[s]:l||r.parse(c[d],d),[a]:o.parse(e[d],d)};return h}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,s=new Array(i);let a,c,l,h;for(a=0,c=i;a<c;++a)l=a+n,h=e[l],s[a]={x:r.parse(h[0],l),y:o.parse(h[1],l)};return s}parseObjectData(t,e,n,r){const{xScale:o,yScale:s}=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:o.parse((0,i.f)(d,a),f),y:s.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,o=e[t.axis];return f({keys:u(i,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,o=f(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,o=n._sorted&&t===n.iScale,s=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<s&&(g()||(this.updateRangeFromParsed(l,t,p,c),!o));++d);if(o)for(d=s-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,o,s;for(r=0,o=e.length;r<o;++r)s=e[r][t.axis],(0,i.g)(s)&&n.push(s);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,o;return(0,i.i)(t)?(e=t.top,n=t.right,r=t.bottom,o=t.left):e=n=r=o=t,{top:e,right:n,bottom:r,left:o,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,o=[],s=this._drawStart||0,a=this._drawCount||i.length-s,c=this.options.drawActiveElementsOnTop;let l;for(n.dataset&&n.dataset.draw(t,r,s,a),l=s;l<s+a;++l){const e=i[l];e.hidden||(e.active&&c?o.push(e):e.draw(t,r))}for(l=0;l<o.length;++l)o[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 o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=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)),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=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)),o.dataset=r,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}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,o=this._cachedDataOpts,s=t+"-"+e,a=o[s],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,o[s]=Object.freeze(x(p,c))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(o,this.getContext(t,n,e))}const c=new l(i,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||b(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){b(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!b(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,o=Math.min(r,i);o&&this.parse(0,o),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,o=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;s<o;++s)r[s]=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&&y(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,o,s,a,c=e._length;const l=()=>{32767!==s&&-32768!==s&&((0,i.h)(a)&&(c=Math.min(c,Math.abs(s-a)||c)),a=s)};for(r=0,o=n.length;r<o;++r)s=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,o=e.ticks.length;r<o;++r)s=e.getPixelForTick(r),l();return c}function k(t,e,n,r){return(0,i.b)(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),s=Math.min(r,o),a=Math.max(r,o);let c=s,l=a;Math.abs(s)>Math.abs(a)&&(c=a,l=s),e[n.axis]=l,e._custom={barStart:c,barEnd:l,start:r,end:o,min:s,max:a}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function M(t,e,n,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,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(s[l],l),c.push(k(f,u,o,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 o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:c,top:l,bottom:h}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=l:(n._bottom||0)===i?r=h:(o[O(h,s,a,c)]=!0,r=l)),o[O(r,s,a,c)]=!0,t.borderSkipped=o}function O(t,e,n,i){var r,o,s;return i?(s=n,t=E(t=(r=t)===(o=e)?s:r===s?o:r,n,e)):t=E(t,e,n),t}function E(t,e,n){return"start"===t?e:"end"===t?n:t}function P(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class A 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 M(t,e,n,i)}parseArrayData(t,e,n,i){return M(t,e,n,i)}parseObjectData(t,e,n,r){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l="x"===o.axis?a:c,h="x"===s.axis?a:c,u=[];let f,d,p,g;for(f=n,d=n+r;f<d;++f)g=e[f],p={},p[o.axis]=o.parse((0,i.f)(g,l),f),u.push(k((0,i.f)(g,h),p,s,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),o=r._custom,s=S(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:s}}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 o="reset"===r,{index:s,_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=o||(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)||s===g._top||s===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,s),P(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)),o=n.options.stacked,s=[],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===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index===t))break;return s.length||s.push(void 0),s}_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,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const s=t.barThickness;return{min:s||w(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:o,minBarLength:s}}=this,a=o||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)(o)||h?p:o;let v=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):v,f=u-v,Math.abs(f)<s){f=function(t,e,n){return 0!==t?(0,i.s)(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(f,e,a)*s,d===a&&(v-=f/2);const t=e.getPixelForDecimal(0),o=e.getPixelForDecimal(1),l=Math.min(t,o),p=Math.max(t,o);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,o=r.skipNull,s=(0,i.v)(r.maxBarThickness,1/0);let a,c;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const c=n.categoryPercentage;null===s&&(s=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-s);const l=o-(o-Math.min(s,a))/2*c;return{chunk:Math.abs(a-s)/2*c/i,ratio:n.barPercentage,start:l}}(t,e,r,n):function(t,e,n,r){const o=n.barThickness;let s,a;return(0,i.k)(o)?(s=e.min*n.categoryPercentage,a=n.barPercentage):(s=o*r,a=1),{chunk:s/r,ratio:a,start:e.pixels[t]-s/2}}(t,e,r,n),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=l.start+l.chunk*h+l.chunk/2,c=Math.min(s,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(s,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)}}function R(t,e,n,r){const{controller:o,data:s,_sorted:a}=t,c=o._cachedMeta.iScale;if(c&&e===c.axis&&"r"!==e&&a&&s.length){const t=c._reversePixels?i.A:i.B;if(!r)return t(s,e,n);if(o._sharedOptions){const i=s[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(s,e,n-r),o=t(s,e,n+r);return{lo:i.lo,hi:o.hi}}}}return{lo:0,hi:s.length-1}}function C(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:c,hi:l}=R(o[t],e,s,r);for(let t=c;t<=l;++t){const e=a[t];e.skip||i(e,n,t)}}}function I(t,e,n,r,o){const s=[];return o||t.isPointInArea(e)?(C(t,n,e,(function(n,a,c){(o||(0,i.C)(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&s.push({element:n,datasetIndex:a,index:c})}),!0),s):s}function D(t,e,n,r,o,s){return s||t.isPointInArea(e)?"r"!==n||r?function(t,e,n,i,r,o){let s=[];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,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let c=Number.POSITIVE_INFINITY;return C(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(!o&&!t.isPointInArea(f)&&!u)return;const d=a(e,f);d<c?(s=[{element:n,datasetIndex:l,index:h}],c=d):d===c&&s.push({element:n,datasetIndex:l,index:h})})),s}(t,e,n,r,o,s):function(t,e,n,r){let o=[];return C(t,n,e,(function(t,n,s){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)&&o.push({element:t,datasetIndex:n,index:s})})),o}(t,e,n,o):[]}function z(t,e,n,i,r){const o=[],s="x"===n?"inXRange":"inYRange";let a=!1;return C(t,n,e,((t,i,c)=>{t[s]&&t[s](e[n],r)&&(o.push({element:t,datasetIndex:i,index:c}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:o}var L={evaluateInteractionItems:C,modes:{index(t,e,n,r){const o=(0,i.z)(e,t),s=n.axis||"x",a=n.includeInvisible||!1,c=n.intersect?I(t,o,s,r,a):D(t,o,s,!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 o=(0,i.z)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;let c=n.intersect?I(t,o,s,r,a):D(t,o,s,!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)=>I(t,(0,i.z)(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const o=(0,i.z)(e,t),s=n.axis||"xy",a=n.includeInvisible||!1;return D(t,o,s,n.intersect,r,a)},x:(t,e,n,r)=>z(t,(0,i.z)(e,t),"x",n.intersect,r),y:(t,e,n,r)=>z(t,(0,i.z)(e,t),"y",n.intersect,r)}};const F=["left","top","right","bottom"];function j(t,e){return t.filter((t=>t.pos===e))}function B(t,e){return t.filter((t=>-1===F.indexOf(t.pos)&&t.box.axis===e))}function H(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 N(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function W(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 V(t,e,n,r){const{pos:o,box:s}=n,a=t.maxPadding;if(!(0,i.i)(o)){n.size&&(t[o]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?s.height:s.width),n.size=e.size/e.count,t[o]+=n.size}s.getPadding&&W(a,s.getPadding());const c=Math.max(0,e.outerWidth-N(a,t,"left","right")),l=Math.max(0,e.outerHeight-N(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 $(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 U(t,e,n,i){const r=[];let o,s,a,c,l,h;for(o=0,s=t.length,l=0;o<s;++o){a=t[o],c=a.box,c.update(a.width||e.w,a.height||e.h,$(a.horizontal,e));const{same:s,other:u}=V(e,n,a,i);l|=s&&r.length,h=h||u,c.fullSize||r.push(a)}return l&&U(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 Y(t,e,n,r){const o=n.padding;let{x:s,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,s=l.size||t.height;(0,i.h)(l.start)&&(a=l.start),t.fullSize?Q(t,o.left,a,n.outerWidth-o.right-o.left,s):Q(t,e.left+l.placed,a,r,s),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)&&(s=l.start),t.fullSize?Q(t,s,o.top,a,n.outerHeight-o.bottom-o.top):Q(t,s,e.top+l.placed,a,r),l.start=s,l.placed+=r,s=t.right}}e.x=s,e.y=a}var X={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 o=(0,i.E)(t.options.layout.padding),s=Math.max(e-o.width,0),a=Math.max(n-o.height,0),c=function(t){const e=function(t){const e=[];let n,i,r,o,s,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:s,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return e}(t),n=H(e.filter((t=>t.box.fullSize)),!0),i=H(j(e,"left"),!0),r=H(j(e,"right")),o=H(j(e,"top"),!0),s=H(j(e,"bottom")),a=B(e,"x"),c=B(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(c).concat(s).concat(a),chartArea:j(e,"chartArea"),vertical:i.concat(r).concat(c),horizontal:o.concat(s).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:o,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},o);W(d,(0,i.E)(r));const p=Object.assign({maxPadding:d,w:s,h:a,x:o.left,y:o.top},o),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||!F.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:s}=a.box,c=n[a.stack],l=c&&a.stackWeight/c.weight;a.horizontal?(a.width=l?l*i:s&&e.availableWidth,a.height=r):(a.width=i,a.height=l?l*r:s&&e.availableHeight)}return n}(l.concat(h),f);U(c.fullSize,p,f,g),U(l,p,f,g),U(h,p,f,g)&&U(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),Y(c.leftAndTop,p,f,g),p.x+=p.w,p.y+=p.h,Y(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 q{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 Z extends q{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const K="$chartjs",G={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},J=t=>null===t||""===t,tt=!!i.K&&{passive:!0};function et(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,tt)}function nt(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function it(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||nt(n.addedNodes,i),e=e&&!nt(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function rt(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||nt(n.removedNodes,i),e=e&&!nt(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const ot=new Map;let st=0;function at(){const t=window.devicePixelRatio;t!==st&&(st=t,ot.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function ct(t,e,n){const r=t.canvas,o=r&&(0,i.I)(r);if(!o)return;const s=(0,i.L)(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||s(n,i)}));return a.observe(o),function(t,e){ot.size||window.addEventListener("resize",at),ot.set(t,e)}(t,s),a}function lt(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){ot.delete(t),ot.size||window.removeEventListener("resize",at)}(t)}function ht(t,e,n){const r=t.canvas,o=(0,i.L)((e=>{null!==t.ctx&&n(function(t,e){const n=G[t.type]||t.type,{x:r,y:o}=(0,i.z)(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==o?o:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,tt)}(r,e,o),o}class ut extends q{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"),o=t.getAttribute("width");if(t[K]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",J(o)){const e=(0,i.J)(t,"width");void 0!==e&&(t.width=e)}if(J(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[K])return!1;const n=e[K].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[K],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:it,detach:rt,resize:ct}[e]||ht;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:lt,detach:lt,resize:lt}[e]||et)(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 ft{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 dt(t,e,n,r,o){const s=(0,i.v)(r,0),a=Math.min((0,i.v)(o,t.length),t.length);let c,l,h,u=0;for(n=Math.ceil(n),o&&(c=o-r,n=c/Math.floor(c/n)),h=s;h<0;)u++,h=Math.round(s+u*n);for(l=Math.max(s,0);l<a;l++)l===h&&(e.push(t[l]),u++,h=Math.round(s+u*n))}const pt=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,gt=(t,e)=>Math.min(e||t,t);function mt(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function vt(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,a=1e-6;let c,l=t.getPixelForTick(r);if(!(n&&(c=1===i?Math.max(l-o,s-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(r-1))/2,l+=r<e?c:-c,l<o-a||l>s+a)))return l}function yt(t){return t.drawTicks?t.tickLength:0}function bt(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 xt(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 _t extends ft{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:o,maxDefined:s}=this.getUserBounds();if(o&&s)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),o||(n=Math.min(n,e.min)),s||(r=Math.max(r,e.max));return n=s&&n>r?r:n,r=o&&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:o,ticks:s}=this.options,a=s.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,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const c=a<this.ticks.length;this._convertTicksToLabels(c?mt(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.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),o=Math.min(n.maxTicksLimit||r,r),s=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=s.length,c=s[0],l=s[a-1],h=[];if(a>o)return function(t,e,n,i){let r,o=0,s=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===s&&(e.push(t[r]),o++,s=n[o*i])}(e,h,s,a/o),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),o=e.length/n;if(!r)return Math.max(o,1);const s=(0,i.N)(r);for(let t=0,e=s.length-1;t<e;t++){const e=s[t];if(e>o)return e}return Math.max(o,1)}(s,e,o);if(a>0){let t,n;const r=a>1?Math.round((l-c)/(a-1)):null;for(dt(e,h,u,(0,i.k)(r)?0:c-r,c),t=0,n=a-1;t<n;t++)dt(e,h,u,s[t],s[t+1]);return dt(e,h,u,l,(0,i.k)(r)?e.length:l+r),h}return dt(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,o;for(n=0,r=t.length;n<r;n++)o=t[n],o.label=(0,i.Q)(e.callback,[o.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=gt(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,o=e.maxRotation;let s,a,c,l=r;if(!this._isVisible()||!e.display||r>=o||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);s=t.offset?this.maxWidth/n:d/(n-1),u+6>s&&(s=d/(n-(t.offset?.5:1)),a=this.maxHeight-yt(t.grid)-e.padding-bt(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)/s,-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(o,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:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=bt(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=yt(o)+s):(t.height=this.maxHeight,t.width=yt(o)+s),n.display&&this.ticks.length){const{first:e,last:r,widest:o,highest:s}=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*o.width+h*s.height;t.height=Math.min(this.maxHeight,t.height+e+c)}else{const e=n.mirror?0:h*o.width+u*s.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:o},position:s}=this.options,a=0!==this.labelRotation,c="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=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-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((u-l+o)*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+o,this.paddingBottom=i+o}}_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=mt(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:o}=this,s=[],a=[],c=Math.floor(e/gt(e,n));let l,h,u,f,d,p,g,m,v,y,b,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=o[p]=o[p]||{data:{},gc:[]},m=d.lineHeight,v=y=0,(0,i.k)(f)||(0,i.b)(f)){if((0,i.b)(f))for(h=0,u=f.length;h<u;++h)b=f[h],(0,i.k)(b)||(0,i.b)(b)||(v=(0,i.V)(r,g.data,g.gc,v,b),y+=m)}else v=(0,i.V)(r,g.data,g.gc,v,f),y=m;s.push(v),a.push(y),x=Math.max(v,x),_=Math.max(y,_)}!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)}}))}(o,e);const w=s.indexOf(x),k=a.indexOf(_),M=t=>({width:s[t]||0,height:a[t]||0});return{first:M(0),last:M(e-1),widest:M(w),highest:M(k),widths:s,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)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,c=o?o.highest.height+s: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:o,position:s,border:a}=r,c=o.offset,l=this.isHorizontal(),h=this.ticks.length+(c?1:0),u=yt(o),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,y,b,x,_,w,k,M,S,T,O,E;if("top"===s)v=m(this.bottom),w=this.bottom-u,M=v-g,T=m(t.top)+g,E=t.bottom;else if("bottom"===s)v=m(this.top),T=t.top,E=m(t.bottom)-g,w=v+g,M=this.top+u;else if("left"===s)v=m(this.right),_=this.right-u,k=v-g,S=m(t.left)+g,O=t.right;else if("right"===s)v=m(this.left),S=t.left,O=m(t.right)-g,_=v+g,k=this.left+u;else if("x"===e){if("center"===s)v=m((t.top+t.bottom)/2+.5);else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];v=m(this.chart.scales[t].getPixelForValue(e))}T=t.top,E=t.bottom,w=v+g,M=w+u}else if("y"===e){if("center"===s)v=m((t.left+t.right)/2);else if((0,i.i)(s)){const t=Object.keys(s)[0],e=s[t];v=m(this.chart.scales[t].getPixelForValue(e))}_=v-g,k=_-u,S=t.left,O=t.right}const P=(0,i.v)(r.ticks.maxTicksLimit,h),A=Math.max(1,Math.ceil(h/P));for(y=0;y<h;y+=A){const t=this.getContext(y),e=o.setContext(t),r=a.setContext(t),s=e.lineWidth,h=e.color,u=r.dash||[],d=r.dashOffset,p=e.tickWidth,g=e.tickColor,m=e.tickBorderDash||[],v=e.tickBorderDashOffset;b=vt(this,y,c),void 0!==b&&(x=(0,i.X)(n,b,s),l?_=k=S=O=x:w=M=T=E=x,f.push({tx1:_,ty1:w,tx2:k,ty2:M,x1:S,y1:T,x2:O,y2:E,width:s,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:o}=n,s=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:h,mirror:u}=o,f=yt(n.grid),d=f+h,p=u?-h:d,g=-(0,i.t)(this.labelRotation),m=[];let v,y,b,x,_,w,k,M,S,T,O,E,P="middle";if("top"===r)w=this.bottom-p,k=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+p,k=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(f);k=t.textAlign,_=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(f);k=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}k=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)}k=this._getYAxisLabelAlignment(f).textAlign}"y"===e&&("start"===c?P="top":"end"===c&&(P="bottom"));const A=this._getLabelSizes();for(v=0,y=a.length;v<y;++v){b=a[v],x=b.label;const t=o.setContext(this.getContext(v));M=this.getPixelForTick(v)+o.labelOffset,S=this._resolveTickFontOptions(v),T=S.lineHeight,O=(0,i.b)(x)?x.length:1;const e=O/2,n=t.color,c=t.textStrokeColor,h=t.textStrokeWidth;let f,d=k;if(s?(_=M,"inner"===k&&(d=v===y-1?this.options.reverse?"left":"right":0===v?this.options.reverse?"right":"left":"center"),E="top"===r?"near"===l||0!==g?-O*T+T/2:"center"===l?-A.highest.height/2-e*T+T:-A.highest.height+T/2:"near"===l||0!==g?T/2:"center"===l?A.highest.height/2-e*T:A.highest.height-O*T,u&&(E*=-1),0===g||t.showLabelBackdrop||(_+=T/2*Math.sin(g))):(w=M,E=(1-O)*T/2),t.showLabelBackdrop){const e=(0,i.E)(t.backdropPadding),n=A.heights[v],r=A.widths[v];let o=E-e.top,s=0-e.left;switch(P){case"middle":o-=n/2;break;case"bottom":o-=n}switch(k){case"center":s-=r/2;break;case"right":s-=r;break;case"inner":v===y-1?s-=r:v>0&&(s-=r/2)}f={left:s,top:o,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:x,font:S,textOffset:E,options:{rotation:g,color:n,strokeColor:c,strokeWidth:h,textAlign:d,textBaseline:P,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,o=t+r,s=this._getLabelSizes().widest.width;let a,c;return"left"===e?i?(c=this.right+r,"near"===n?a="left":"center"===n?(a="center",c+=s/2):(a="right",c+=s)):(c=this.right-o,"near"===n?a="right":"center"===n?(a="center",c-=s/2):(a="left",c=this.left)):"right"===e?i?(c=this.left+r,"near"===n?a="right":"center"===n?(a="center",c-=s/2):(a="left",c-=s)):(c=this.left+o,"near"===n?a="left":"center"===n?(a="center",c+=s/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:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),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,o;const s=(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,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({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,o=n.setContext(this.getContext()),s=n.display?o.width:0;if(!s)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,s)-s/2,h=(0,i.X)(t,this.right,a)+a/2,u=f=c):(u=(0,i.X)(t,this.top,s)-s/2,f=(0,i.X)(t,this.bottom,a)+a/2,l=h=c),e.save(),e.lineWidth=o.width,e.strokeStyle=o.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,o=t.label,s=t.textOffset;(0,i.Z)(e,o,0,s,r,n)}n&&(0,i.$)(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const o=(0,i.a0)(n.font),s=(0,i.E)(n.padding),a=n.align;let c=o.lineHeight/2;"bottom"===e||"center"===e||(0,i.i)(e)?(c+=s.bottom,(0,i.b)(n.text)&&(c+=o.lineHeight*(n.text.length-1))):c+=s.top;const{titleX:l,titleY:h,maxWidth:u,rotation:f}=function(t,e,n,r){const{top:o,left:s,bottom:a,right:c,chart:l}=t,{chartArea:h,scales:u}=l;let f,d,p,g=0;const m=a-o,v=c-s;if(t.isHorizontal()){if(d=(0,i.a2)(r,s,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:pt(t,n,e);f=c-s}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:pt(t,n,e);p=(0,i.a2)(r,a,o),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,o,{color:n.color,maxWidth:u,rotation:f,textAlign:xt(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===_t.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,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}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 wt{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,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=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("."),o=r.pop(),s=[t].concat(r).join("."),a=e[n].split("."),c=a.pop(),l=a.join(".");i.d.route(s,o,l,c)}))}(e,t.defaultRoutes),t.descriptors&&i.d.describe(e,t.descriptors)}(t,s,n),this.override&&i.d.override(t.id,t.overrides)),s}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 kt{constructor(){this.controllers=new wt(_,"datasets",!0),this.elements=new wt(ft,"elements"),this.plugins=new wt(Object,"plugins"),this.scales=new wt(_t,"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 Mt=new kt;class St{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),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,r){r=r||{};for(const o of t){const t=o.plugin,s=t[n],a=[e,r,o.options];if(!1===(0,i.Q)(s,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,{}),o=function(t){const e={},n=[],i=Object.keys(Mt.plugins.items);for(let t=0;t<i.length;t++)n.push(Mt.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 o=[],s=t.getContext();for(const a of e){const e=a.id,c=Tt(i[e],r);null!==c&&o.push({plugin:a,options:Ot(t.config,{plugin:a,local:n[e]},c,s)})}return o}(t,o,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 Tt(t,e){return e||!1!==t?!0===t?{}:t:null}function Ot(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Et(t,e){const n=i.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function Pt(t){if("x"===t||"y"===t||"r"===t)return t}function At(t,...e){if(Pt(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&&Pt(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 Rt(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Ct(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||{},o=Et(t.type,e),s=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=At(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 Rt(t,"x",n[0])||Rt(t,"y",n[0])}return{}}(e,t),i.d.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(c,o),h=n.scales||{};s[e]=(0,i.ab)(Object.create(null),[{axis:c},a,h[c],h[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,a=n.indexAxis||Et(o,e),c=(i.a3[o]||{}).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),o=n[e+"AxisID"]||e;s[o]=s[o]||Object.create(null),(0,i.ab)(s[o],[{axis:e},r[o],c[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];(0,i.ab)(e,[i.d.scales[e.type],i.d.scale])})),s}(t,e)}function It(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Dt=new Map,zt=new Set;function Lt(t,e){let n=Dt.get(t);return n||(n=e(),Dt.set(t,n),zt.add(n)),n}const Ft=(t,e,n)=>{const r=(0,i.f)(e,n);void 0!==r&&t.add(r)};class jt{constructor(t){this._config=function(t){return(t=t||{}).data=It(t.data),Ct(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=It(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(),Ct(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Lt(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Lt(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Lt(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Lt(`${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:o}=this,s=this._cachedScopes(t,n),a=s.get(e);if(a)return a;const c=new Set;e.forEach((e=>{t&&(c.add(t),e.forEach((e=>Ft(c,t,e)))),e.forEach((t=>Ft(c,r,t))),e.forEach((t=>Ft(c,i.a3[o]||{},t))),e.forEach((t=>Ft(c,i.d,t))),e.forEach((t=>Ft(c,i.a6,t)))}));const l=Array.from(c);return 0===l.length&&l.push(Object.create(null)),zt.has(e)&&s.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 o={$shared:!0},{resolver:s,subPrefixes:a}=Bt(this._resolverCache,t,r);let c=s;if(function(t,e){const{isScriptable:n,isIndexable:r}=(0,i.aa)(t);for(const o of e){const e=n(o),s=r(o),a=(s||e)&&t[o];if(e&&((0,i.a7)(a)||Ht(a))||s&&(0,i.b)(a))return!0}return!1}(s,e)){o.$shared=!1,n=(0,i.a7)(n)?n():n;const e=this.createResolver(t,n,a);c=(0,i.a8)(s,n,e)}for(const t of e)o[t]=c[t];return o}createResolver(t,e,n=[""],r){const{resolver:o}=Bt(this._resolverCache,t,n);return(0,i.i)(e)?(0,i.a8)(o,e,void 0,r):o}}function Bt(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const o=n.join();let s=r.get(o);return s||(s={resolver:(0,i.a9)(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},r.set(o,s)),s}const Ht=t=>(0,i.i)(t)&&Object.getOwnPropertyNames(t).some((e=>(0,i.a7)(t[e]))),Nt=["top","bottom","left","right","chartArea"];function Wt(t,e){return"top"===t||"bottom"===t||-1===Nt.indexOf(t)&&"x"===e}function Vt(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function $t(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,i.Q)(n&&n.onComplete,[t],e)}function Ut(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 Yt={},Xt=t=>{const e=Qt(t);return Object.values(Yt).filter((t=>t.canvas===e)).pop()};function qt(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}function Zt(t,e,n){return t.options.clip?t[n]:e[n]}class Kt{static defaults=i.d;static instances=Yt;static overrides=i.a3;static registry=Mt;static version="4.4.4";static getChart=Xt;static register(...t){Mt.add(...t),Gt()}static unregister(...t){Mt.remove(...t),Gt()}constructor(t,e){const n=this.config=new jt(e),r=Qt(t),s=Xt(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.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?Z:ut}(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 St,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=[],Yt[this.id]=this,c&&l?(o.listen(this,"complete",$t),o.listen(this,"progress",Ut),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:o}=this;return(0,i.k)(t)?e&&o?o: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 Mt}_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 o.stop(this),this}resize(t,e){o.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,e,o),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,(0,i.ae)(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),(0,i.Q)(n.onResize,[this,s],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 o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=At(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),(0,i.F)(o,(e=>{const o=e.options,s=o.id,a=At(s,o),c=(0,i.v)(o.type,e.dtype);void 0!==o.position&&Wt(o.position,a)===Wt(e.dposition)||(o.position=e.dposition),r[s]=!0;let l=null;s in n&&n[s].type===c?l=n[s]:(l=new(Mt.getScale(c))({id:s,type:c,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(o,t)})),(0,i.F)(r,((t,e)=>{t||delete n[e]})),(0,i.F)(n,(t=>{X.configure(this,t,t.options),X.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(Vt("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 o=this.getDatasetMeta(n);const s=r.type||this.config.type;if(o.type&&o.type!==s&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=s,o.indexAxis=r.indexAxis||Et(s,this.options),o.order=r.order||0,o.index=n,o.label=""+r.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=Mt.getController(s),{datasetElementType:r,dataElementType:a}=i.d.datasets[s];Object.assign(e,{dataElementType:Mt.getElement(a),datasetElementType:r&&Mt.getElement(r)}),o.controller=new e(this,n),t.push(o.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 o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===o.indexOf(e);e.buildOrUpdateElements(n),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),r||(0,i.F)(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Vt("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=>{X.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)qt(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;X.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})&&(o.has(this)?this.attached&&!o.running(this)&&o.start(this):(this.draw(),$t({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,o=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Zt(n,e,"left"),right:Zt(n,e,"right"),top:Zt(i,e,"top"),bottom:Zt(i,e,"bottom")}:e}(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(r&&(0,i.Y)(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),r&&(0,i.$)(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return(0,i.C)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=L.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",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,r);(0,i.h)(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(o,{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(),o.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 Yt[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 o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}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,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){o=t[s];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.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)))),o=r(e,t),s=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,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:o}=this,s=e,a=this._getActiveElements(t,r,n,s),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)(o.onHover,[t,a,this],this),c&&(0,i.Q)(o.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 Gt(){return(0,i.F)(Kt.instances,(t=>t._plugins.invalidate()))}function Jt(t,e){const{x:n,y:i,base:r,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,c,l,h,u;return t.horizontal?(u=s/2,a=Math.min(n,r),c=Math.max(n,r),l=i-u,h=i+u):(u=o/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 te(t,e,n,r){return t?0:(0,i.S)(e,n,r)}function ee(t,e,n,r){const o=null===e,s=null===n,a=t&&!(o&&s)&&Jt(t,r);return a&&(o||(0,i.aj)(e,a.left,a.right))&&(s||(0,i.aj)(n,a.top,a.bottom))}function ne(t,e){t.rect(e.x,e.y,e.w,e.h)}function ie(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+s,radius:t.radius}}class re extends ft{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:o,outer:s}=function(t){const e=Jt(t),n=e.right-e.left,r=e.bottom-e.top,o=function(t,e,n){const r=t.options.borderWidth,o=t.borderSkipped,s=(0,i.av)(r);return{t:te(o.top,s.top,0,n),r:te(o.right,s.right,0,e),b:te(o.bottom,s.bottom,0,n),l:te(o.left,s.left,0,e)}}(t,n/2,r/2),s=function(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,s=(0,i.aw)(o),a=Math.min(e,n),c=t.borderSkipped,l=r||(0,i.i)(o);return{topLeft:te(!l||c.top||c.left,s.topLeft,0,a),topRight:te(!l||c.top||c.right,s.topRight,0,a),bottomLeft:te(!l||c.bottom||c.left,s.bottomLeft,0,a),bottomRight:te(!l||c.bottom||c.right,s.bottomRight,0,a)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:s},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:r-o.t-o.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,s.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(o.b,o.r))}}}}(this),a=(c=s.radius).topLeft||c.topRight||c.bottomLeft||c.bottomRight?i.au:ne;var c;t.save(),s.w===o.w&&s.h===o.h||(t.beginPath(),a(t,ie(s,e,o)),t.clip(),a(t,ie(o,-e,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,ie(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return ee(this,t,e,n)}inXRange(t,e){return ee(this,t,null,e)}inYRange(t,e){return ee(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 oe=(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 se extends ft{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),o=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:c}=oe(n,o);let l,h;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(s,o,a,c)+10):(h=this.maxHeight,l=this._fitCols(s,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:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],c=this.lineWidths=[0],l=i+s;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*s>o)&&(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+s})),h}_fitCols(t,e,n,i){const{ctx:r,maxHeight:o,options:{labels:{padding:s}}}=this,a=this.legendHitBoxes=[],c=this.columnSizes=[],l=o-t;let h=s,u=0,f=0,d=0,p=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:g,itemHeight:m}=function(t,e,n,i,r){const o=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),s=function(t,e,n){let i=t;return"string"!=typeof e.text&&(i=ae(e,n)),i}(r,i,e.lineHeight);return{itemWidth:o,itemHeight:s}}(n,e,r,t,i);o>0&&f+m+2*s>l&&(h+=u+s,c.push({width:u,height:f}),d+=u+s,p++,u=f=0),a[o]={left:d,top:f,col:p,width:g,height:m},u=Math.max(u,g),f+=m+s})),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:o}}=this,s=(0,i.az)(o,this.left,this.width);if(this.isHorizontal()){let o=0,a=(0,i.a2)(n,this.left+r,this.right-this.lineWidths[o]);for(const c of e)o!==c.row&&(o=c.row,a=(0,i.a2)(n,this.left+r,this.right-this.lineWidths[o])),c.top+=this.top+t+r,c.left=s.leftForLtr(s.x(a),c.width),a+=c.width+r}else{let o=0,a=(0,i.a2)(n,this.top+t+r,this.bottom-this.columnSizes[o].height);for(const c of e)c.col!==o&&(o=c.col,a=(0,i.a2)(n,this.top+t+r,this.bottom-this.columnSizes[o].height)),c.top=a,c.left+=this.left+r,c.left=s.leftForLtr(s.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:o,labels:s}=t,a=i.d.color,c=(0,i.az)(t.rtl,this.left,this.width),l=(0,i.a0)(s.font),{padding:h}=s,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}=oe(s,u),v=this.isHorizontal(),y=this._computeTitleHeight();d=v?{x:(0,i.a2)(o,this.left+h,this.right-n[0]),y:this.top+h+y,line:0}:{x:this.left+h,y:(0,i.a2)(o,this.top+y+h,this.bottom-e[0].height),line:0},(0,i.aA)(this.ctx,t.textDirection);const b=m+h;this.legendItems.forEach(((x,_)=>{r.strokeStyle=x.fontColor,r.fillStyle=x.fontColor;const w=r.measureText(x.text).width,k=c.textAlign(x.textAlign||(x.textAlign=s.textAlign)),M=p+f+w;let S=d.x,T=d.y;if(c.setWidth(this.width),v?_>0&&S+M+h>this.right&&(T=d.y+=b,d.line++,S=d.x=(0,i.a2)(o,this.left+h,this.right-n[d.line])):_>0&&T+b>this.bottom&&(S=d.x=S+e[d.line].width+h,d.line++,T=d.y=(0,i.a2)(o,this.top+y+h,this.bottom-e[d.line].height)),function(t,e,n){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;r.save();const o=(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=o,r.strokeStyle=(0,i.v)(n.strokeStyle,a),r.setLineDash((0,i.v)(n.lineDash,[])),s.usePointStyle){const a={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=c.xPlus(t,p/2),h=e+f;(0,i.aD)(r,a,l,h,s.pointStyleWidth&&p)}else{const s=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:s,w:p,h:g,radius:l}):r.rect(a,s,p,g),r.fill(),0!==o&&r.stroke()}r.restore()}(c.x(S),T,x),S=(0,i.aB)(k,S+p+f,v?S+M: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+=M+h;else if("string"!=typeof x.text){const t=l.lineHeight;d.y+=ae(x,t)+h}else d.y+=b})),(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 o=(0,i.az)(t.rtl,this.left,this.width),s=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);s.textAlign=o.textAlign((0,i.a1)(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=n.string,(0,i.Z)(s,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,o;if((0,i.aj)(t,this.left,this.right)&&(0,i.aj)(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(r=o[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 s=this._hoveredItem,a=(o=n,null!==(r=s)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);s&&!a&&(0,i.Q)(e.onLeave,[t,s,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,o}}function ae(t,e){return e*(t.text?t.text.length:0)}var ce={id:"legend",_element:se,start(t,e,n){const i=t.legend=new se({ctx:t.ctx,options:n,chart:t});X.configure(t,i,n),X.addBox(t,i)},stop(t){X.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;X.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:o,color:s,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:s,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:o||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 le extends ft{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 o=r*(0,i.a0)(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:r,right:o,options:s}=this,a=s.align;let c,l,h,u=0;return this.isHorizontal()?(l=(0,i.a2)(a,n,o),h=e+t,c=o-n):("left"===s.position?(l=n+t,h=(0,i.a2)(a,r,e),u=-.5*i.P):(l=o-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:o,titleY:s,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:[o,s]})}}var he={id:"title",_element:le,start(t,e,n){!function(t,e){const n=new le({ctx:t.ctx,options:e,chart:t});X.configure(t,n,e),X.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;X.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;X.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 ue={average(t){if(!t.length)return!1;let e,n,i=new Set,r=0,o=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,++o}}return 0!==o&&0!==i.size&&{x:[...i].reduce(((t,e)=>t+e))/i.size,y:r/o}},nearest(t,e){if(!t.length)return!1;let n,r,o,s=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,o=r)}}if(o){const t=o.tooltipPosition();s=t.x,a=t.y}return{x:s,y:a}}};function fe(t,e){return e&&((0,i.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function de(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function pe(t,e){const{element:n,datasetIndex:i,index:r}=e,o=t.getDatasetMeta(i).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:t,label:s,parsed:o.getParsed(r),raw:t.data.datasets[i].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:n}}function ge(t,e){const n=t.chart.ctx,{body:r,footer:o,title:s}=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=s.length,d=o.length,p=r.length,g=(0,i.E)(e.padding);let m=g.height,v=0,y=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);y+=t.beforeBody.length+t.afterBody.length,f&&(m+=f*h.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y&&(m+=p*(e.displayColors?Math.max(c,l.lineHeight):l.lineHeight)+(y-p)*l.lineHeight+(y-1)*e.bodySpacing),d&&(m+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let b=0;const x=function(t){v=Math.max(v,n.measureText(t).width+b)};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),b=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)})),b=0,n.font=u.string,(0,i.F)(t.footer,x),n.restore(),v+=g.width,{width:v,height:m}}function me(t,e,n,i){const{x:r,width:o}=n,{width:s,chartArea:{left:a,right:c}}=t;let l="center";return"center"===i?l=r<=(a+c)/2?"left":"right":r<=o/2?l="left":r>=s-o/2&&(l="right"),function(t,e,n,i){const{x:r,width:o}=i,s=n.caretSize+n.caretPadding;return"left"===t&&r+o+s>e.width||"right"===t&&r-o-s<0||void 0}(l,t,e,n)&&(l="center"),l}function ve(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||me(t,e,n,i),yAlign:i}}function ye(t,e,n,r){const{caretSize:o,caretPadding:s,cornerRadius:a}=t,{xAlign:c,yAlign:l}=n,h=o+s,{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)+o:"right"===c&&(g+=Math.max(f,p)+o),{x:(0,i.S)(g,0,r.width-e.width),y:(0,i.S)(m,0,r.height-e.height)}}function be(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 xe(t){return fe([],de(t))}function _e(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const we={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 ke(t,e,n,i){const r=t[e].call(n,i);return void 0===r?we[e].call(n,i):r}class Me extends ft{static positioners=ue;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=ke(n,"beforeTitle",this,t),r=ke(n,"title",this,t),o=ke(n,"afterTitle",this,t);let s=[];return s=fe(s,de(i)),s=fe(s,de(r)),s=fe(s,de(o)),s}getBeforeBody(t,e){return xe(ke(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=_e(n,t);fe(e.before,de(ke(i,"beforeLabel",this,t))),fe(e.lines,ke(i,"label",this,t)),fe(e.after,de(ke(i,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return xe(ke(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,i=ke(n,"beforeFooter",this,t),r=ke(n,"footer",this,t),o=ke(n,"afterFooter",this,t);let s=[];return s=fe(s,de(i)),s=fe(s,de(r)),s=fe(s,de(o)),s}_createItems(t){const e=this._active,n=this.chart.data,r=[],o=[],s=[];let a,c,l=[];for(a=0,c=e.length;a<c;++a)l.push(pe(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=_e(t.callbacks,e);r.push(ke(n,"labelColor",this,e)),o.push(ke(n,"labelPointStyle",this,e)),s.push(ke(n,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(i.length){const t=ue[n.position].call(this,i,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=ge(this,n),s=Object.assign({},t,e),a=ve(this.chart,n,s),c=ye(n,s,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=o,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:o}=this,{caretSize:s,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,y,b,x,_;return"center"===o?(x=d+g/2,"left"===r?(m=f,v=m-s,b=x+s,_=x-s):(m=f+p,v=m+s,b=x-s,_=x+s),y=m):(v="left"===r?f+Math.max(c,h)+s:"right"===r?f+p-Math.max(l,u)-s:this.caretX,"top"===o?(b=d,x=b-s,m=v-s,y=v+s):(b=d+g,x=b+s,m=v+s,y=v-s),_=b),{x1:m,x2:v,x3:y,y1:b,y2:x,y3:_}}drawTitle(t,e,n){const r=this.title,o=r.length;let s,a,c;if(o){const l=(0,i.az)(n.rtl,this.x,this.width);for(t.x=be(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",s=(0,i.a0)(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=s.string,c=0;c<o;++c)e.fillText(r[c],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,c+1===o&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,o){const s=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:c,boxWidth:l}=o,h=(0,i.a0)(o.bodyFont),u=be(this,"left",o),f=r.x(u),d=c<h.lineHeight?(h.lineHeight-c)/2:0,p=e.y+d;if(o.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=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,(0,i.at)(t,e,n,h),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,(0,i.at)(t,e,n,h)}else{t.lineWidth=(0,i.i)(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=r.leftForLtr(f,l),n=r.leftForLtr(r.xPlus(f,1),l-2),a=(0,i.aw)(s.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,(0,i.au)(t,{x:e,y:p,w:l,h:c,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),(0,i.au)(t,{x:n,y:p+1,w:l-2,h:c-2,radius:a}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,p,l,c),t.strokeRect(e,p,l,c),t.fillStyle=s.backgroundColor,t.fillRect(n,p+1,l-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:o,bodyAlign:s,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+o},m=p.textAlign(s);let v,y,b,x,_,w,k;for(e.textAlign=s,e.textBaseline="middle",e.font=u.string,t.x=be(this,m,n),e.fillStyle=n.bodyColor,(0,i.F)(this.beforeBody,g),d=a&&"right"!==m?"center"===s?l/2+h:l+2+h:0,x=0,w=r.length;x<w;++x){for(v=r[x],y=this.labelTextColors[x],e.fillStyle=y,(0,i.F)(v.before,g),b=v.lines,a&&b.length&&(this._drawColorBox(e,t,x,p,n),f=Math.max(u.lineHeight,c)),_=0,k=b.length;_<k;++_)g(b[_]),f=u.lineHeight;(0,i.F)(v.after,g)}d=0,f=u.lineHeight,(0,i.F)(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const r=this.footer,o=r.length;let s,a;if(o){const c=(0,i.az)(n.rtl,this.x,this.width);for(t.x=be(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=c.textAlign(n.footerAlign),e.textBaseline="middle",s=(0,i.a0)(n.footerFont),e.fillStyle=n.footerColor,e.font=s.string,a=0;a<o;++a)e.fillText(r[a],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:o,yAlign:s}=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"===s&&this.drawCaret(t,e,n,r),e.lineTo(a+l-f,c),e.quadraticCurveTo(a+l,c,a+l,c+f),"center"===s&&"right"===o&&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"===s&&this.drawCaret(t,e,n,r),e.lineTo(a+d,c+h),e.quadraticCurveTo(a,c+h,a,c+h-d),"center"===s&&"left"===o&&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=ue[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=ge(this,t),s=Object.assign({},n,this._size),a=ve(e,t,s),c=ye(t,s,a,e);i._to===c.x&&r._to===c.y||(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=o.width,this.height=o.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},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=(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(o,t,r,e),(0,i.aA)(t,e.textDirection),o.y+=s.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,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}})),o=!(0,i.ah)(n,r),s=this._positionChanged(r,e);(o||s)&&(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,o=this._active||[],s=this._getActiveElements(t,o,e,n),a=this._positionChanged(s,t),c=e||!(0,i.ah)(s,o)||a;return c&&(this._active=s,(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 o=this.chart.getElementsAtEventForMode(t,r.mode,r,n);return r.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:i,options:r}=this,o=ue[r.position].call(this,t,e);return!1!==o&&(n!==o.x||i!==o.y)}}var Se={id:"tooltip",_element:Me,positioners:ue,afterInit(t,e,n){n&&(t.tooltip=new Me({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:we},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 Te(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class Oe extends _t{static id="category";static defaults={ticks:{callback:Te}};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 Te.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 Ee(t,e,{horizontal:n,minRotation:r}){const o=(0,i.t)(r),s=(n?Math.sin(o):Math.cos(o))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class Pe extends _t{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:o}=this;const s=t=>r=e?r:t,a=t=>o=n?o:t;if(t){const t=(0,i.s)(r),e=(0,i.s)(o);t<0&&e<0?a(0):t>0&&e>0&&s(0)}if(r===o){let e=0===o?1:Math.abs(.05*o);a(o+e),t||s(r-e)}this.min=r,this.max=o}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:o,min:s,max:a,precision:c,count:l,maxTicks:h,maxDigits:u,includeBounds:f}=t,d=o||1,p=h-1,{min:g,max:m}=e,v=!(0,i.k)(s),y=!(0,i.k)(a),b=!(0,i.k)(l),x=(m-g)/(u+1);let _,w,k,M,S=(0,i.aH)((m-g)/p/d)*d;if(S<1e-14&&!v&&!y)return[{value:g},{value:m}];M=Math.ceil(m/S)-Math.floor(g/S),M>p&&(S=(0,i.aH)(M*S/p/d)*d),(0,i.k)(c)||(_=Math.pow(10,c),S=Math.ceil(S*_)/_),"ticks"===r?(w=Math.floor(g/S)*S,k=Math.ceil(m/S)*S):(w=g,k=m),v&&y&&o&&(0,i.aI)((a-s)/o,S/1e3)?(M=Math.round(Math.min((a-s)/S,h)),S=(a-s)/M,w=s,k=a):b?(w=v?s:w,k=y?a:k,M=l-1,S=(k-w)/M):(M=(k-w)/S,M=(0,i.aJ)(M,Math.round(M),S/1e3)?Math.round(M):Math.ceil(M));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*_)/_,k=Math.round(k*_)/_;let O=0;for(v&&(f&&w!==s?(n.push({value:s}),w<s&&O++,(0,i.aJ)(Math.round((w+O*S)*_)/_,s,Ee(s,x,t))&&O++):w<s&&O++);O<M;++O){const t=Math.round((w+O*S)*_)/_;if(y&&t>a)break;n.push({value:t})}return y&&f&&k!==a?n.length&&(0,i.aJ)(n[n.length-1].value,a,Ee(a,x,t))?n[n.length-1].value=a:n.push({value:a}):y&&k!==a||n.push({value:k}),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 Ae extends Pe{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,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.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:()=>be,D:()=>Mt,E:()=>ze,F:()=>$,G:()=>mn,H:()=>ht,I:()=>cn,J:()=>bn,K:()=>yn,L:()=>Nt,M:()=>an,N:()=>vt,O:()=>B,P:()=>ot,Q:()=>V,R:()=>je,S:()=>Pt,T:()=>st,U:()=>wt,V:()=>de,W:()=>At,X:()=>ge,Y:()=>xe,Z:()=>Te,_:()=>Bt,a:()=>Fe,a0:()=>Le,a1:()=>Vt,a2:()=>$t,a3:()=>ae,a4:()=>q,a5:()=>tt,a6:()=>ce,a7:()=>nt,a8:()=>Ne,a9:()=>He,aA:()=>Tn,aB:()=>Ut,aC:()=>On,aD:()=>ye,aE:()=>St,aF:()=>I,aG:()=>xt,aH:()=>mt,aI:()=>bt,aJ:()=>gt,aK:()=>kt,aL:()=>se,aM:()=>dt,aN:()=>pe,aO:()=>zt,aP:()=>Ct,aa:()=>We,ab:()=>Z,ac:()=>D,ad:()=>Wt,ae:()=>vn,af:()=>me,ag:()=>it,ah:()=>U,ai:()=>rt,aj:()=>Rt,ak:()=>Ce,al:()=>sn,am:()=>Cn,an:()=>Rn,ao:()=>_n,ap:()=>wn,aq:()=>xn,ar:()=>we,as:()=>ke,at:()=>ve,au:()=>Oe,av:()=>Ie,aw:()=>De,ax:()=>An,ay:()=>Ot,az:()=>Sn,b:()=>L,c:()=>Jt,d:()=>fe,e:()=>Kt,f:()=>J,g:()=>j,h:()=>et,i:()=>F,j:()=>Be,k:()=>z,l:()=>Ft,m:()=>N,n:()=>W,o:()=>re,p:()=>Et,q:()=>Qt,r:()=>Ht,s:()=>pt,t:()=>_t,u:()=>jt,v:()=>H,w:()=>Yt,x:()=>yt,y:()=>Je,z:()=>pn});const r=(t,e,n)=>Math.max(Math.min(t,n),e);function o(t){return r(i(2.55*t),0,255)}function s(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 y(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),s=(r+o)/2;let a,c,l;return r!==o&&(l=r-o,c=s>.5?l/(2-r-o):l/(r+o),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,s]}function b(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(s)}function x(t,e,n){return b(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"},k={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 M;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,O=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function E(t,e,n){if(t){let i=y(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 P(t,e){return t?Object.assign(e||{},t):t}function A(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=s(t[3]))):(e=P(t,{r:0,g:0,b:0,a:1})).a=s(e.a),e}function R(t){return"r"===t.charAt(0)?function(t){const e=S.exec(t);let n,i,s,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?o(t):r(255*t,0,255)}return n=+e[1],i=+e[3],s=+e[5],n=255&(e[2]?o(n):r(n,0,255)),i=255&(e[4]?o(i):r(i,0,255)),s=255&(e[6]?o(s):r(s,0,255)),{r:n,g:i,b:s,a}}}(t):function(t){const e=p.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?o(+e[5]):s(+e[5]));const r=_(+e[2]),a=+e[3]/100,c=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return b(v,t,e,n)}(r,a,c):"hsv"===e[1]?function(t,e,n){return b(m,t,e,n)}(r,a,c):x(r,a,c),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class C{constructor(t){if(t instanceof C)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=A(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*l[i[1]],g:255&17*l[i[2]],b:255&17*l[i[3]],a:5===o?17*l[i[4]]:255}:7!==o&&9!==o||(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===o?l[i[7]]<<4|l[i[8]]:255})),n=r||function(t){M||(M=function(){const t={},e=Object.keys(k),n=Object.keys(w);let i,r,o,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],r=0;r<n.length;r++)o=n[r],a=a.replace(o,w[o]);o=parseInt(k[s],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),M.transparent=[0,0,0,0]);const e=M[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||R(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=P(this._rgb);return t&&(t.a=a(t.a)),t}set rgb(t){this._rgb=A(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=y(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 o=e===r?.5:e,s=2*o-1,a=n.a-i.a,c=((s*a==-1?s:(s+a)/(1+s*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=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=O(a(t.r)),r=O(a(t.g)),o=O(a(t.b));return{r:s(T(i+n*(O(a(e.r))-i))),g:s(T(r+n*(O(a(e.g))-r))),b:s(T(o+n*(O(a(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new C(this.rgb)}alpha(t){return this._rgb.a=s(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 E(this._rgb,2,t),this}darken(t){return E(this._rgb,2,-t),this}saturate(t){return E(this._rgb,1,t),this}desaturate(t){return E(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=y(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 B(t,e){return j(t)?t:e}function H(t,e){return void 0===t?e:t}const N=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/e,W=(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,o,s;if(L(t))if(o=t.length,i)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<o;r++)e.call(n,t[r],r);else if(F(t))for(s=Object.keys(t),o=s.length,r=0;r<o;r++)e.call(n,t[s[r]],s[r])}function U(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.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],o=n[t];F(r)&&F(o)?q(r,o,i):e[t]=Q(o)}function q(t,e,n){const i=L(e)?e:[e],r=i.length;if(!F(t))return t;const o=(n=n||{}).merger||X;let s;for(let e=0;e<r;++e){if(s=i[e],!F(s))continue;const r=Object.keys(s);for(let e=0,i=r.length;e<i;++e)o(r[e],t,s,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 ot=Math.PI,st=2*ot,at=st+ot,ct=Number.POSITIVE_INFINITY,lt=ot/180,ht=ot/2,ut=ot/4,ft=2*ot/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 yt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function bt(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function xt(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function _t(t){return t*(ot/180)}function wt(t){return t*(180/ot)}function kt(t){if(!j(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Mt(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*ot&&(o+=st),{angle:o,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)%st-ot}function Ot(t){return(t%st+st)%st}function Et(t,e,n,i){const r=Ot(t),o=Ot(e),s=Ot(n),a=Ot(o-r),c=Ot(s-r),l=Ot(r-o),h=Ot(r-s);return r===o||r===s||i&&o===s||a>c&&l<h}function Pt(t,e,n){return Math.max(e,Math.min(n,t))}function At(t){return Pt(t,-32768,32767)}function Rt(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function Ct(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const It=(t,e,n,i)=>Ct(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)=>Ct(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 Bt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Ht="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,Ht.call(window,(()=>{i=!1,t.apply(e,n)})))}}function Wt(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,o=i;if(t._sorted){const{iScale:s,_parsed:a}=t,c=s.axis,{min:l,max:h,minDefined:u,maxDefined:f}=s.getUserBounds();u&&(r=Pt(Math.min(It(a,c,l).lo,n?i:It(e,c,s.getPixelForValue(l)).lo),0,i-1)),o=f?Pt(Math.max(It(a,s.axis,h,!0).hi+1,n?0:It(e,c,s.getPixelForValue(h),!0).hi+1),r,i)-r:i-r}return{start:r,count:o}}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 o=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,r),o}const Xt=t=>0===t||1===t,qt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*st/n),Zt=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*st/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(ot*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 C(t)}function te(t){return Gt(t)?t:new C(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 oe={values:t=>L(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=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"),o=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 s=dt(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),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?oe.numeric.call(this,t,e,n):""}};var se={formatters:oe};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),o=le(this,n),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[i];return F(t)?Object.assign({},e,t):H(t,e)},set(t){this[s]=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:se.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 o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function pe(t,e,n,i){let r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(r=i.data={},o=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=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)||(s=de(t,r,o,s,f))}else s=de(t,r,o,s,u);t.restore();const d=o.length/2;if(d>n.length){for(c=0;c<d;c++)delete r[o[c]];o.splice(0,d)}return s}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){ye(t,e,n,i,null)}function ye(t,e,n,i,r){let o,s,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&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))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,st):t.arc(n,i,g,0,st),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,s=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-ot,m-ht),t.arc(n+f,i-s,l,m-ht,m),t.arc(n+u,i+a,l,m,m+ht),t.arc(n-f,i+s,l,m+ht,m+ot),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),s=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-s),t.lineTo(n+u,i+a),t.lineTo(n-f,i+s),t.closePath();break;case"crossRot":m+=ut;case"cross":u=Math.cos(m)*(r?r/2:g),s=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-s),t.lineTo(n-f,i+s);break;case"star":u=Math.cos(m)*(r?r/2:g),s=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-s),t.lineTo(n-f,i+s),m+=ut,u=Math.cos(m)*(r?r/2:g),s=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-s),t.lineTo(n-f,i+s);break;case"line":s=r?r/2:Math.cos(m)*g,a=Math.sin(m)*g,t.moveTo(n-s,i-a),t.lineTo(n+s,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 be(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 ke(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 Me(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,l=n+o.actualBoundingBoxDescent,h=r.strikethrough?(c+l)/2:l;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,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,o={}){const s=L(e)?e:[e],a=o.strokeWidth>0&&""!==o.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,o),c=0;c<s.length;++c)l=s[c],o.backdrop&&Se(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),z(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(l,n,i,o.maxWidth)),t.fillText(l,n,i,o.maxWidth),Me(t,n,i,l,o),i+=Number(r.lineHeight);t.restore()}function Oe(t,e){const{x:n,y:i,w:r,h:o,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*ot,ot,!0),t.lineTo(n,i+o-s.bottomLeft),t.arc(n+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,ot,ht,!0),t.lineTo(n+r-s.bottomRight,i+o),t.arc(n+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,ht,0,!0),t.lineTo(n+r,i+s.topRight),t.arc(n+r-s.topRight,i+s.topRight,s.topRight,0,-ht,!0),t.lineTo(n+s.topLeft,i)}const Ee=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Pe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ae(t,e){const n=(""+t).match(Ee);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 Re=t=>+t||0;function Ce(t,e){const n={},i=F(e),r=i?Object.keys(e):e,o=F(t)?i?n=>H(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=Re(o(t));return n}function Ie(t){return Ce(t,{top:"y",right:"x",bottom:"y",left:"x"})}function De(t){return Ce(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=H(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=H(t.style,e.style);i&&!(""+i).match(Pe)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:H(t.family,e.family),lineHeight:Ae(H(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:H(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,o,s,a=!0;for(r=0,o=t.length;r<o;++r)if(s=t[r],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),a=!1),void 0!==n&&L(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function je(t,e,n){const{min:i,max:r}=t,o=W(e,(r-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function Be(t,e){return Object.assign(Object.create(t),e)}function He(t,e=[""],n,i,r=()=>t[0]){const o=n||t;void 0===i&&(i=Ke("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:n=>He([n,...t],e,o,i)};return new Proxy(s,{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 o of e)if(r=Ke(Ve(o,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:We(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:o,_descriptors:s}=t;let a=i[e];return nt(a)&&s.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let c=e(o,s||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:o,_subProxy:s,_descriptors:a}=n;if(void 0!==o.index&&i(t))return e[o.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,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable)),$e(e,a)&&(a=Ne(a,r,o&&o[e],s)),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 We(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 o of e){const e=Ye(n,o);if(e){t.add(e);const o=Qe(e._fallback,n,r);if(void 0!==o&&o!==n&&o!==i)return o}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function qe(t,e,n,i){const r=e._rootScopes,o=Qe(e._fallback,n,i),s=[...t,...r],a=new Set;a.add(i);let c=Ze(a,s,n,o||n,i);return null!==c&&(void 0===o||o===n||(c=Ze(a,s,o,c,i),null!==c))&&He(Array.from(a),[""],r,o,(()=>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:o="r"}=this._parsing,s=new Array(i);let a,c,l,h;for(a=0,c=i;a<c;++a)l=a+n,h=e[l],s[a]={r:r.parse(J(h,o),l)};return s}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,o=e,s=n.skip?e:n,a=St(o,r),c=St(s,o);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:o.x-u*(s.x-r.x),y:o.y-u*(s.y-r.y)},next:{x:o.x+f*(s.x-r.x),y:o.y+f*(s.y-r.y)}}}function on(t,e,n){return Math.max(Math.min(t,n),e)}function sn(t,e,n,i,r){let o,s,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),o=Array(i);let s,a,c,l=en(t,0);for(s=0;s<i;++s)if(a=c,c=l,l=en(t,s+1),c){if(l){const t=l[e]-c[e];r[s]=0!==t?(l[n]-c[n])/t:0}o[s]=a?l?pt(r[s-1])!==pt(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}!function(t,e,n){const i=t.length;let r,o,s,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],o=n[h+1]/e[h],a=Math.pow(r,2)+Math.pow(o,2),a<=9||(s=3/Math.sqrt(a),n[h]=r*s*e[h],n[h+1]=o*s*e[h])))}(t,r,o),function(t,e,n="x"){const i=nn(n),r=t.length;let o,s,a,c=en(t,0);for(let l=0;l<r;++l){if(s=a,a=c,c=en(t,l+1),!a)continue;const r=a[n],h=a[i];s&&(o=(r-s[n])/3,a[`cp1${n}`]=r-o,a[`cp1${i}`]=h-o*e[l]),c&&(o=(c[n]-r)/3,a[`cp2${n}`]=r+o,a[`cp2${i}`]=h+o*e[l])}}(t,o,e)}(t,r);else{let n=i?t[t.length-1]:t[0];for(o=0,s=t.length;o<s;++o)a=t[o],c=rn(n,a,t[Math.min(o+1,s-(i?0:1))%s],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,o,s,a=be(t[0],e);for(n=0,i=t.length;n<i;++n)s=o,o=a,a=n<i-1&&be(t[n+1],e),o&&(r=t[n],s&&(r.cp1x=on(r.cp1x,e.left,e.right),r.cp1y=on(r.cp1y,e.top,e.bottom)),a&&(r.cp2x=on(r.cp2x,e.left,e.right),r.cp2y=on(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 o=un[r];i[o]=parseFloat(t[e+"-"+o+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),o="border-box"===r.boxSizing,s=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:o}=i;let s,a,c=!1;if(dn(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,c=!0}return{x:s,y:a,box:c}}(t,n),u=s.left+(h&&a.left),f=s.top+(h&&a.top);let{width:d,height:p}=e;return o&&(d-=s.width+a.width,p-=s.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),o=fn(r,"margin"),s=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 o=t&&cn(t);if(o){const t=o.getBoundingClientRect(),s=hn(o),a=fn(s,"border","width"),c=fn(s,"padding");e=t.width-c.width-a.width,n=t.height-c.height-a.height,i=ln(s.maxWidth,o,"clientWidth"),r=ln(s.maxHeight,o,"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-o.width),h=Math.max(0,i?l/i:h-o.height),l=gn(Math.min(l,s,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),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const yn=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 bn(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},o={x:e.cp1x,y:e.cp1y},s=xn(t,r,n),a=xn(r,o,n),c=xn(o,e,n),l=xn(s,a,n),h=xn(a,c,n);return xn(l,h,n)}const kn=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}},Mn=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?kn(e,n):Mn()}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 On(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function En(t){return"angle"===t?{between:Et,compare:Tt,normalize:Ot}:{between:Rt,compare:(t,e)=>t-e,normalize:t=>t}}function Pn({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 An(t,e,n){if(!n)return[t];const{property:i,start:r,end:o}=n,s=e.length,{compare:a,between:c,normalize:l}=En(i),{start:h,end:u,loop:f,style:d}=function(t,e,n){const{property:i,start:r,end:o}=n,{between:s,normalize:a}=En(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&&s(a(e[u%c][i]),r,o);++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,y=!1,b=null;for(let t=h,n=h;t<=u;++t)m=e[t%s],m.skip||(g=l(m[i]),g!==v&&(y=c(g,r,o),null===b&&(y||c(r,v,g)&&0!==a(r,v))&&(b=0===a(g,r)?t:n),null!==b&&(!y||0===a(o,g)||c(o,v,g))&&(p.push(Pn({start:b,end:t,loop:f,count:s,style:d})),b=null),n=t,v=g));return null!==b&&p.push(Pn({start:b,end:u,loop:f,count:s,style:d})),p}function Rn(t,e){const n=[],i=t.segments;for(let r=0;r<i.length;r++){const o=An(i[r],t.points,e);o.length&&n.push(...o)}return n}function Cn(t,e){const n=t.points,i=t.options.spanGaps,r=n.length;if(!r)return[];const o=!!t._loop,{start:s,end:a}=function(t,e,n,i){let r=0,o=e-1;if(n&&!i)for(;r<e&&!t[r].skip;)r++;for(;r<e&&t[r].skip;)r++;for(r%=e,n&&(o+=r);o>r&&t[o%e].skip;)o--;return o%=e,{start:r,end:o}}(n,r,o,i);return In(t,!0===i?[{start:s,end:a,loop:o}]:function(t,e,n,i){const r=t.length,o=[];let s,a=e,c=t[e];for(s=e+1;s<=n;++s){const n=t[s%r];n.skip||n.stop?c.skip||(i=!1,o.push({start:e%r,end:(s-1)%r,loop:i}),e=a=n.stop?s:null):(a=s,c.skip&&(e=s)),c=n}return null!==a&&o.push({start:e%r,end:a%r,loop:i}),o}(n,s,a<s?a+r:a,!!t._fullLoop&&0===s&&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(),o=Dn(t.options),{_datasetIndex:s,options:{spanGaps:a}}=t,c=n.length,l=[];let h=o,u=e[0].start,f=u;function d(t,e,i,r){const o=a?-1:1;if(t!==e){for(t+=c;n[t%c].skip;)t-=o;for(;n[e%c].skip;)e+=o;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,o=n[u%c];for(f=u+1;f<=t.end;f++){const a=n[f%c];e=Dn(i.setContext(Be(r,{type:"segment",p0:o,p1:a,p0DataIndex:(f-1)%c,p1DataIndex:f%c,datasetIndex:s}))),zn(e,h)&&d(u,f-1,t.loop,h),o=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,yP:()=>p});var i=n(6540),r=n(6118);const o="label";function s(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]:o;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]:o;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:o=300,redraw:h=!1,datasetIdKey:u,type:f,data:d,options:p,plugins:g=[],fallbackContent:m,updateMode:v,...y}=t,b=(0,i.useRef)(null),x=(0,i.useRef)(),_=()=>{b.current&&(x.current=new r.t1(b.current,{type:f,data:l(d,u),options:p&&{...p},plugins:g}),s(e,x.current))},w=()=>{s(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:b,role:"img",height:n,width:o},y),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("bar",r.A6)},8027:(t,e,n)=>{"use strict";n.d(e,{$TP:()=>r,DIg:()=>c,Pcn:()=>s,YYR:()=>o,__w:()=>a,ist:()=>l,kxO:()=>h});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 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 s(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 a(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(t)}function c(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 l(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)}function h(t){return(0,i.k5)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V192h416v234z"},child:[]}]})(t)}}}]);