s&&i>s;return{count:r,start:l,loop:e.loop,ilen:c(o+(c?s-t:t))%i,v=()=>{p!==f&&(t.lineTo(A,f),t.lineTo(A,p),t.lineTo(A,g))};for(l&&(h=a[b(0)],t.moveTo(h.x,h.y)),u=0;u<=s;++u){if(h=a[b(u)],h.skip)continue;const e=h.x,n=h.y,r=0|e;r===d?(nf&&(f=n),A=(m*A+e)/++m):(v(),t.lineTo(e,n),d=r,m=0,p=f=n),g=n}v()}function ei(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?Ja:ti}const ni="function"==typeof Path2D;class ri extends oa{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;xn(this._points,n,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,r=t.options.spanGaps,a=n.length;if(!a)return[];const i=!!t._loop,{start:o,end:s}=function(t,e,n,r){let a=0,i=e-1;if(n&&!r)for(;aa&&t[i%e].skip;)i--;return i%=e,{start:a,end:i}}(n,a,i,r);return function(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const a=t._chart.getContext(),i=qn(t.options),{_datasetIndex:o,options:{spanGaps:s}}=t,l=n.length,c=[];let u=i,h=e[0].start,d=h;function p(t,e,r,a){const i=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=i;for(;n[e%l].skip;)e+=i;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:r,style:a}),u=a,h=e%l)}}for(const t of e){h=s?h:t.start;let e,i=n[h%l];for(d=h+1;d<=t.end;d++){const s=n[d%l];e=qn(r.setContext(en(a,{type:"segment",p0:i,p1:s,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),Vn(e,u)&&p(h,d-1,t.loop,u),i=s,u=e}ht.replace("rgb(","rgba(").replace(")",", 0.5)")));function gi(t){return pi[t%pi.length]}function Ai(t){return fi[t%fi.length]}function mi(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var bi={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:a}=t.config,{elements:i}=a;if(!n.forceOverride&&(mi(r)||(o=a)&&(o.borderColor||o.backgroundColor)||i&&mi(i)))return;var o;const s=function(t){let e=0;return(n,r)=>{const a=t.getDatasetMeta(r).controller;a instanceof vr?e=function(t,e){return t.backgroundColor=t.data.map((()=>gi(e++))),e}(n,e):a instanceof yr?e=function(t,e){return t.backgroundColor=t.data.map((()=>Ai(e++))),e}(n,e):a&&(e=function(t,e){return t.borderColor=gi(e),t.backgroundColor=Ai(e),++e}(n,e))}}(t);r.forEach(s)}};function vi(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function yi(t){t.data.datasets.forEach((t=>{vi(t)}))}var Ci={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void yi(t);const r=t.width;t.data.datasets.forEach(((e,a)=>{const{_data:i,indexAxis:o}=e,s=t.getDatasetMeta(a),l=i||e.data;if("y"===tn([o,t.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=t.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let u,{start:h,count:d}=function(t,e){const n=e.length;let r,a=0;const{iScale:i}=t,{min:o,max:s,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(a=Kt(te(e,i.axis,o).lo,0,n-1)),r=c?Kt(te(e,i.axis,s).hi+1,a,n)-a:n-a,{start:a,count:r}}(s,l);if(d<=(n.threshold||4*r))vi(e);else{switch(st(i)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":u=function(t,e,n,r,a){const i=a.samples||r;if(i>=n)return t.slice(e,e+n);const o=[],s=(n-2)/(i-2);let l=0;const c=e+n-1;let u,h,d,p,f,g=e;for(o[l++]=t[g],u=0;ud&&(d=p,h=t[r],f=r);o[l++]=h,g=f}return o[l++]=t[c],o}(l,h,d,r,n);break;case"min-max":u=function(t,e,n,r){let a,i,o,s,l,c,u,h,d,p,f=0,g=0;const A=[],m=e+n-1,b=t[e].x,v=t[m].x-b;for(a=e;ap&&(p=s,u=a),f=(g*f+i.x)/++g;else{const n=a-1;if(!st(c)&&!st(u)){const e=Math.min(c,u),r=Math.max(c,u);e!==h&&e!==n&&A.push({...t[e],x:f}),r!==h&&r!==n&&A.push({...t[r],x:f})}a>0&&n!==h&&A.push(t[n]),A.push(i),l=e,g=0,d=p=s,c=u=h=a}}return A}(l,h,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=u}}))},destroy(t){yi(t)}};function xi(t,e,n,r){if(r)return;let a=e[t],i=n[t];return"angle"===t&&(a=Gt(a),i=Gt(i)),{property:t,start:a,end:i}}function wi(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function _i(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function ki(t,e){let n=[],r=!1;return lt(t)?(r=!0,n=t):n=function(t,e){const{x:n=null,y:r=null}=t||{},a=e.points,i=[];return e.segments.forEach((({start:t,end:e})=>{e=wi(t,e,a);const o=a[t],s=a[e];null!==r?(i.push({x:o.x,y:r}),i.push({x:s.x,y:r})):null!==n&&(i.push({x:n,y:o.y}),i.push({x:n,y:s.y}))})),i}(t,e),n.length?new ri({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Si(t){return t&&!1!==t.fill}function Bi(t,e,n){let r=t[e].fill;const a=[e];let i;if(!n)return r;for(;!1!==r&&-1===a.indexOf(r);){if(!ut(r))return r;if(i=t[r],!i)return!1;if(i.visible)return r;a.push(r),r=i.fill}return!1}function Oi(t,e,n){const r=function(t){const e=t.options,n=e.fill;let r=dt(n&&n.target,n);return void 0===r&&(r=!!e.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(t);if(ct(r))return!isNaN(r.value)&&r;let a=parseFloat(r);return ut(a)&&Math.floor(a)===a?function(t,e,n,r){return"-"!==t&&"+"!==t||(n=e+n),!(n===e||n<0||n>=r)&&n}(r[0],e,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Pi(t,e,n){const r=[];for(let a=0;a=0;--e){const n=a[e].$filler;n&&(n.line.updateControlPoints(i,n.axis),r&&n.fill&&Ei(t.ctx,n,i))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;Si(n)&&Ei(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;Si(r)&&"beforeDatasetDraw"===n.drawTime&&Ei(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Ri=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class Fi extends oa{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=ft(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=Je(n.font),a=r.size,i=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=Ri(n,a);let l,c;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(i,a,o,s)+10):(c=this.maxHeight,l=this._fitCols(i,r,o,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:a,maxWidth:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+o;let u=t;a.textAlign="left",a.textBaseline="middle";let h=-1,d=-c;return this.legendItems.forEach(((t,p)=>{const f=n+e/2+a.measureText(t.text).width;(0===p||l[l.length-1]+f+2*o>i)&&(u+=c,l[l.length-(p>0?0:1)]=0,d+=c,h++),s[p]={left:0,top:d,row:h,width:f,height:r},l[l.length-1]+=f+o})),u}_fitCols(t,e,n,r){const{ctx:a,maxHeight:i,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=i-t;let u=o,h=0,d=0,p=0,f=0;return this.legendItems.forEach(((t,i)=>{const{itemWidth:g,itemHeight:A}=function(t,e,n,r,a){const i=function(t,e,n,r){let a=t.text;return a&&"string"!=typeof a&&(a=a.reduce(((t,e)=>t.length>e.length?t:e))),e+n.size/2+r.measureText(a).width}(r,t,e,n),o=function(t,e,n){let r=t;return"string"!=typeof e.text&&(r=Ni(e,n)),r}(a,r,e.lineHeight);return{itemWidth:i,itemHeight:o}}(n,e,a,t,r);i>0&&d+A+2*o>c&&(u+=h+o,l.push({width:h,height:d}),p+=h+o,f++,h=d=0),s[i]={left:p,top:d,col:f,width:g,height:A},h=Math.max(h,g),d+=A+o})),u+=h,l.push({width:h,height:d}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:a}}=this,i=Rn(a,this.left,this.width);if(this.isHorizontal()){let a=0,o=le(n,this.left+r,this.right-this.lineWidths[a]);for(const s of e)a!==s.row&&(a=s.row,o=le(n,this.left+r,this.right-this.lineWidths[a])),s.top+=this.top+t+r,s.left=i.leftForLtr(i.x(o),s.width),o+=s.width+r}else{let a=0,o=le(n,this.top+t+r,this.bottom-this.columnSizes[a].height);for(const s of e)s.col!==a&&(a=s.col,o=le(n,this.top+t+r,this.bottom-this.columnSizes[a].height)),s.top=o,s.left+=this.left+r,s.left=i.leftForLtr(i.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Le(t,this),this._draw(),Re(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:a,labels:i}=t,o=Pe.color,s=Rn(t.rtl,this.left,this.width),l=Je(i.font),{padding:c}=i,u=l.size,h=u/2;let d;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:g}=Ri(i,u),A=this.isHorizontal(),m=this._computeTitleHeight();d=A?{x:le(a,this.left+c,this.right-n[0]),y:this.top+c+m,line:0}:{x:this.left+c,y:le(a,this.top+m+c,this.bottom-e[0].height),line:0},Fn(this.ctx,t.textDirection);const b=g+c;this.legendItems.forEach(((v,y)=>{r.strokeStyle=v.fontColor,r.fillStyle=v.fontColor;const C=r.measureText(v.text).width,x=s.textAlign(v.textAlign||(v.textAlign=i.textAlign)),w=p+h+C;let _=d.x,k=d.y;if(s.setWidth(this.width),A?y>0&&_+w+c>this.right&&(k=d.y+=b,d.line++,_=d.x=le(a,this.left+c,this.right-n[d.line])):y>0&&k+b>this.bottom&&(_=d.x=_+e[d.line].width+c,d.line++,k=d.y=le(a,this.top+m+c,this.bottom-e[d.line].height)),function(t,e,n){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;r.save();const a=dt(n.lineWidth,1);if(r.fillStyle=dt(n.fillStyle,o),r.lineCap=dt(n.lineCap,"butt"),r.lineDashOffset=dt(n.lineDashOffset,0),r.lineJoin=dt(n.lineJoin,"miter"),r.lineWidth=a,r.strokeStyle=dt(n.strokeStyle,o),r.setLineDash(dt(n.lineDash,[])),i.usePointStyle){const o={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:a},l=s.xPlus(t,p/2);je(r,o,l,e+h,i.pointStyleWidth&&p)}else{const i=e+Math.max((u-f)/2,0),o=s.leftForLtr(t,p),l=Ke(n.borderRadius);r.beginPath(),Object.values(l).some((t=>0!==t))?Ye(r,{x:o,y:i,w:p,h:f,radius:l}):r.rect(o,i,p,f),r.fill(),0!==a&&r.stroke()}r.restore()}(s.x(_),k,v),_=((t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e)(x,_+p+h,A?_+w:this.right,t.rtl),function(t,e,n){He(r,n.text,t,e+g/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(_),k,v),A)d.x+=w+c;else if("string"!=typeof v.text){const t=l.lineHeight;d.y+=Ni(v,t)+c}else d.y+=b})),Nn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Je(e.font),r=Ze(e.padding);if(!e.display)return;const a=Rn(t.rtl,this.left,this.width),i=this.ctx,o=e.position,s=n.size/2,l=r.top+s;let c,u=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,u=le(t.align,u,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+le(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=le(o,u,u+h);i.textAlign=a.textAlign(se(o)),i.textBaseline="middle",i.strokeStyle=e.color,i.fillStyle=e.color,i.font=n.string,He(i,e.text,d,c,n)}_computeTitleHeight(){const t=this.options.title,e=Je(t.font),n=Ze(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,a;if(Zt(t,this.left,this.right)&&Zt(e,this.top,this.bottom))for(a=this.legendHitBoxes,n=0;nnull!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(r,n);r&&!a&&ft(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&ft(e.onHover,[t,n,this],this)}else n&&ft(e.onClick,[t,n,this],this)}}function Ni(t,e){return e*(t.text?t.text.length:0)}var Wi={id:"legend",_element:Fi,start(t,e,n){const r=t.legend=new Fi({ctx:t.ctx,options:n,chart:t});Ur.configure(t,r,n),Ur.addBox(t,r)},stop(t){Ur.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;Ur.configure(t,r,n),r.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 r=e.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),e.hidden=!0):(a.show(r),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:a,color:i,useBorderRadius:o,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),c=Ze(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:i,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:a||l.textAlign,borderRadius:o&&(s||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 Ui extends oa{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=lt(n.text)?n.text.length:1;this._padding=Ze(n.padding);const a=r*Je(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:r,right:a,options:i}=this,o=i.align;let s,l,c,u=0;return this.isHorizontal()?(l=le(o,n,a),c=e+t,s=a-n):("left"===i.position?(l=n+t,c=le(o,r,e),u=-.5*Pt):(l=a-t,c=le(o,e,r),u=.5*Pt),s=r-e),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Je(e.font),r=n.lineHeight/2+this._padding.top,{titleX:a,titleY:i,maxWidth:o,rotation:s}=this._drawArgs(r);He(t,e.text,0,0,n,{color:e.color,maxWidth:o,rotation:s,textAlign:se(e.align),textBaseline:"middle",translation:[a,i]})}}var Hi={id:"title",_element:Ui,start(t,e,n){!function(t,e){const n=new Ui({ctx:t.ctx,options:e,chart:t});Ur.configure(t,n,e),Ur.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;Ur.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;Ur.configure(t,r,n),r.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}};const Yi=new WeakMap;var qi={id:"subtitle",start(t,e,n){const r=new Ui({ctx:t.ctx,options:n,chart:t});Ur.configure(t,r,n),Ur.addBox(t,r),Yi.set(t,r)},stop(t){Ur.removeBox(t,Yi.get(t)),Yi.delete(t)},beforeUpdate(t,e,n){const r=Yi.get(t);Ur.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Vi={average(t){if(!t.length)return!1;let e,n,r=new Set,a=0,i=0;for(e=0,n=t.length;et+e))/r.size;return{x:o,y:a/i}},nearest(t,e){if(!t.length)return!1;let n,r,a,i=e.x,o=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n-1?t.split("\n"):t}function Gi(t,e){const{element:n,datasetIndex:r,index:a}=e,i=t.getDatasetMeta(r).controller,{label:o,value:s}=i.getLabelAndValue(a);return{chart:t,label:o,parsed:i.getParsed(a),raw:t.data.datasets[r].data[a],formattedValue:s,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function Xi(t,e){const n=t.chart.ctx,{body:r,footer:a,title:i}=t,{boxWidth:o,boxHeight:s}=e,l=Je(e.bodyFont),c=Je(e.titleFont),u=Je(e.footerFont),h=i.length,d=a.length,p=r.length,f=Ze(e.padding);let g=f.height,A=0,m=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);m+=t.beforeBody.length+t.afterBody.length,h&&(g+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),m&&(g+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(m-p)*l.lineHeight+(m-1)*e.bodySpacing),d&&(g+=e.footerMarginTop+d*u.lineHeight+(d-1)*e.footerSpacing);let b=0;const v=function(t){A=Math.max(A,n.measureText(t).width+b)};return n.save(),n.font=c.string,gt(t.title,v),n.font=l.string,gt(t.beforeBody.concat(t.afterBody),v),b=e.displayColors?o+2+e.boxPadding:0,gt(r,(t=>{gt(t.before,v),gt(t.lines,v),gt(t.after,v)})),b=0,n.font=u.string,gt(t.footer,v),n.restore(),A+=f.width,{width:A,height:g}}function Ki(t,e,n,r){const{x:a,width:i}=n,{width:o,chartArea:{left:s,right:l}}=t;let c="center";return"center"===r?c=a<=(s+l)/2?"left":"right":a<=i/2?c="left":a>=o-i/2&&(c="right"),function(t,e,n,r){const{x:a,width:i}=r,o=n.caretSize+n.caretPadding;return"left"===t&&a+i+o>e.width||"right"===t&&a-i-o<0||void 0}(c,t,e,n)&&(c="center"),c}function Zi(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const{y:n,height:r}=e;return nt.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Ki(t,e,n,r),yAlign:r}}function Ji(t,e,n,r){const{caretSize:a,caretPadding:i,cornerRadius:o}=t,{xAlign:s,yAlign:l}=n,c=a+i,{topLeft:u,topRight:h,bottomLeft:d,bottomRight:p}=Ke(o);let f=function(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s);const g=function(t,e,n){let{y:r,height:a}=t;return"top"===e?r+=n:r-="bottom"===e?a+n:a/2,r}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,d)+a:"right"===s&&(f+=Math.max(h,p)+a),{x:Kt(f,0,r.width-e.width),y:Kt(g,0,r.height-e.height)}}function to(t,e,n){const r=Ze(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function eo(t){return $i([],Qi(t))}function no(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const ro={beforeTitle:it,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex{const e={before:[],lines:[],after:[]},a=no(n,t);$i(e.before,Qi(ao(a,"beforeLabel",this,t))),$i(e.lines,ao(a,"label",this,t)),$i(e.after,Qi(ao(a,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return eo(ao(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=ao(n,"beforeFooter",this,t),a=ao(n,"footer",this,t),i=ao(n,"afterFooter",this,t);let o=[];return o=$i(o,Qi(r)),o=$i(o,Qi(a)),o=$i(o,Qi(i)),o}_createItems(t){const e=this._active,n=this.chart.data,r=[],a=[],i=[];let o,s,l=[];for(o=0,s=e.length;ot.filter(e,r,a,n)))),t.itemSort&&(l=l.sort(((e,r)=>t.itemSort(e,r,n)))),gt(l,(e=>{const n=no(t.callbacks,e);r.push(ao(n,"labelColor",this,e)),a.push(ao(n,"labelPointStyle",this,e)),i.push(ao(n,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=i,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let a,i=[];if(r.length){const t=Vi[n.position].call(this,r,this._eventPosition);i=this._createItems(n),this.title=this.getTitle(i,n),this.beforeBody=this.getBeforeBody(i,n),this.body=this.getBody(i,n),this.afterBody=this.getAfterBody(i,n),this.footer=this.getFooter(i,n);const e=this._size=Xi(this,n),o=Object.assign({},t,e),s=Zi(this.chart,n,o),l=Ji(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,a={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=i,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const a=this.getCaretPosition(t,n,r);e.lineTo(a.x1,a.y1),e.lineTo(a.x2,a.y2),e.lineTo(a.x3,a.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:a}=this,{caretSize:i,cornerRadius:o}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Ke(o),{x:h,y:d}=t,{width:p,height:f}=e;let g,A,m,b,v,y;return"center"===a?(v=d+f/2,"left"===r?(g=h,A=g-i,b=v+i,y=v-i):(g=h+p,A=g+i,b=v-i,y=v+i),m=g):(A="left"===r?h+Math.max(s,c)+i:"right"===r?h+p-Math.max(l,u)-i:this.caretX,"top"===a?(b=d,v=b-i,g=A-i,m=A+i):(b=d+f,v=b+i,g=A+i,m=A-i),y=b),{x1:g,x2:A,x3:m,y1:b,y2:v,y3:y}}drawTitle(t,e,n){const r=this.title,a=r.length;let i,o,s;if(a){const l=Rn(n.rtl,this.x,this.width);for(t.x=to(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",i=Je(n.titleFont),o=n.titleSpacing,e.fillStyle=n.titleColor,e.font=i.string,s=0;s0!==t))?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Ye(t,{x:e,y:p,w:l,h:s,radius:o}),t.fill(),t.stroke(),t.fillStyle=i.backgroundColor,t.beginPath(),Ye(t,{x:n,y:p+1,w:l-2,h:s-2,radius:o}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(e,p,l,s),t.strokeRect(e,p,l,s),t.fillStyle=i.backgroundColor,t.fillRect(n,p+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:a,bodyAlign:i,displayColors:o,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Je(n.bodyFont);let h=u.lineHeight,d=0;const p=Rn(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+d),t.y+h/2),t.y+=h+a},g=p.textAlign(i);let A,m,b,v,y,C,x;for(e.textAlign=i,e.textBaseline="middle",e.font=u.string,t.x=to(this,g,n),e.fillStyle=n.bodyColor,gt(this.beforeBody,f),d=o&&"right"!==g?"center"===i?l/2+c:l+2+c:0,v=0,C=r.length;v0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,a=n&&n.y;if(r||a){const n=Vi[t.position].call(this,this._active,this._eventPosition);if(!n)return;const i=this._size=Xi(this,t),o=Object.assign({},n,this._size),s=Zi(e,t,o),l=Ji(t,o,s,e);r._to===l.x&&a._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_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},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const i=Ze(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,r,e),Fn(t,e.textDirection),a.y+=i.top,this.drawTitle(a,t,e),this.drawBody(a,t,e),this.drawFooter(a,t,e),Nn(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}})),a=!At(n,r),i=this._positionChanged(r,e);(a||i)&&(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,a=this._active||[],i=this._getActiveElements(t,a,e,n),o=this._positionChanged(i,t),s=e||!At(i,a)||o;return s&&(this._active=i,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const a=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const i=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&i.reverse(),i}_positionChanged(t,e){const{caretX:n,caretY:r,options:a}=this,i=Vi[a.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}var oo={id:"tooltip",_element:io,positioners:Vi,afterInit(t,e,n){n&&(t.tooltip=new io({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:ro},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"]},so=Object.freeze({__proto__:null,Colors:bi,Decimation:Ci,Filler:Li,Legend:Wi,SubTitle:qi,Title:Hi,Tooltip:oo});function lo(t){const e=this.getLabels();return t>=0&&tr=e?r:t,o=t=>a=n?a:t;if(t){const t=Rt(r),e=Rt(a);t<0&&e<0?o(0):t>0&&e>0&&i(0)}if(r===a){let e=0===a?1:Math.abs(.05*a);o(a+e),t||i(r-e)}this.min=r,this.max=a}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} 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:a,min:i,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:h}=t,d=a||1,p=c-1,{min:f,max:g}=e,A=!st(i),m=!st(o),b=!st(l),v=(g-f)/(u+1);let y,C,x,w,_=Nt((g-f)/p/d)*d;if(_<1e-14&&!A&&!m)return[{value:f},{value:g}];w=Math.ceil(g/_)-Math.floor(f/_),w>p&&(_=Nt(w*_/p/d)*d),st(s)||(y=Math.pow(10,s),_=Math.ceil(_*y)/y),"ticks"===r?(C=Math.floor(f/_)*_,x=Math.ceil(g/_)*_):(C=f,x=g),A&&m&&a&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((o-i)/a,_/1e3)?(w=Math.round(Math.min((o-i)/_,c)),_=(o-i)/w,C=i,x=o):b?(C=A?i:C,x=m?o:x,w=l-1,_=(x-C)/w):(w=(x-C)/_,w=Ft(w,Math.round(w),_/1e3)?Math.round(w):Math.ceil(w));const k=Math.max(qt(_),qt(C));y=Math.pow(10,st(s)?k:s),C=Math.round(C*y)/y,x=Math.round(x*y)/y;let S=0;for(A&&(h&&C!==i?(n.push({value:i}),Co)break;n.push({value:t})}return m&&h&&x!==o?n.length&&Ft(n[n.length-1].value,o,co(o,v,t))?n[n.length-1].value=o:n.push({value:o}):m&&x!==o||n.push({value:x}),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&&Ut(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 r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Ce(t,this.chart.options.locale,this.options.ticks.format)}}class ho extends uo{static id="linear";static defaults={ticks:{callback:we.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ut(t)?t:0,this.max=ut(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Ht(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,a.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}}const po=t=>Math.floor(Lt(t)),fo=(t,e)=>Math.pow(10,po(t)+e);function go(t){return 1==t/Math.pow(10,po(t))}function Ao(t,e,n){const r=Math.pow(10,n),a=Math.floor(t/r);return Math.ceil(e/r)-a}class mo extends ga{static id="logarithmic";static defaults={ticks:{callback:we.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=uo.prototype.parse.apply(this,[t,e]);if(0!==n)return ut(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=ut(t)?Math.max(0,t):null,this.max=ut(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ut(this._userMin)&&(this.min=t===fo(this.min,0)?fo(this.min,-1):fo(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,r=this.max;const a=e=>n=t?n:e,i=t=>r=e?r:t;n===r&&(n<=0?(a(1),i(10)):(a(fo(n,-1)),i(fo(r,1)))),n<=0&&a(fo(r,-1)),r<=0&&i(fo(n,1)),this.min=n,this.max=r}buildTicks(){const t=this.options,e=function(t,{min:e,max:n}){e=ht(t.min,e);const r=[],a=po(e);let i=function(t,e){let n=po(e-t);for(;Ao(t,e,n)>10;)n++;for(;Ao(t,e,n)<10;)n--;return Math.min(n,po(t))}(e,n),o=i<0?Math.pow(10,Math.abs(i)):1;const s=Math.pow(10,i),l=a>i?Math.pow(10,a):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/s/10)*s*10;let h=Math.floor((c-u)/Math.pow(10,i)),d=ht(t.min,Math.round((l+u+h*Math.pow(10,i))*o)/o);for(;d=10?h=h<15?15:20:h++,h>=20&&(i++,h=2,o=i>=0?1:o),d=Math.round((l+u+h*Math.pow(10,i))*o)/o;const p=ht(t.max,d);return r.push({value:p,major:go(p),significand:h}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Ut(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Ce(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Lt(t),this._valueRange=Lt(this.max)-Lt(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Lt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function bo(t){const e=t.ticks;if(e.display&&t.display){const t=Ze(e.backdropPadding);return dt(e.font&&e.font.size,Pe.font.size)+t.height}return 0}function vo(t,e,n,r,a){return t===r||t===a?{start:e-n/2,end:e+n/2}:ta?{start:e-n,end:e}:{start:e,end:e+n}}function yo(t,e,n,r,a){const i=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let s=0,l=0;r.starte.r&&(s=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+s)),a.starte.b&&(l=(a.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function Co(t,e,n){const r=t.drawingArea,{extra:a,additionalAngle:i,padding:o,size:s}=n,l=t.getPointPosition(e,r+a+o,i),c=Math.round(Yt(Gt(l.angle+Tt))),u=function(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}(l.y,s.h,c),h=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(c),d=function(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}(l.x,s.w,h);return{visible:!0,x:l.x,y:u,textAlign:h,left:d,top:u,right:d+s.w,bottom:u+s.h}}function xo(t,e){if(!e)return!0;const{left:n,top:r,right:a,bottom:i}=t;return!(ze({x:n,y:r},e)||ze({x:n,y:i},e)||ze({x:a,y:r},e)||ze({x:a,y:i},e))}function wo(t,e,n){const{left:r,top:a,right:i,bottom:o}=n,{backdropColor:s}=e;if(!st(s)){const n=Ke(e.borderRadius),l=Ze(e.backdropPadding);t.fillStyle=s;const c=r-l.left,u=a-l.top,h=i-r+l.width,d=o-a+l.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),Ye(t,{x:c,y:u,w:h,h:d,radius:n}),t.fill()):t.fillRect(c,u,h,d)}}function _o(t,e,n,r){const{ctx:a}=t;if(n)a.arc(t.xCenter,t.yCenter,e,0,Dt);else{let n=t.getPointPosition(0,e);a.moveTo(n.x,n.y);for(let i=1;it,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ze(bo(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=ut(t)&&!isNaN(t)?t:0,this.max=ut(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bo(this.options))}generateTickLabels(t){uo.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=ft(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],a=[],i=t._pointLabels.length,o=t.options.pointLabels,s=o.centerPointLabels?Pt/i:0;for(let h=0;h=0&&t=0;a--){const e=t._pointLabelItems[a];if(!e.visible)continue;const i=r.setContext(t.getPointLabelContext(a));wo(n,i,e);const o=Je(i.font),{x:s,y:l,textAlign:c}=e;He(n,t._pointLabels[a],s,l+o.lineHeight/2,o,{color:i.color,textAlign:c,textBaseline:"middle"})}}(this,i),r.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){s=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),o=r.setContext(n),l=a.setContext(n);!function(t,e,n,r,a){const i=t.ctx,o=e.circular,{color:s,lineWidth:l}=e;!o&&!r||!s||!l||n<0||(i.save(),i.strokeStyle=s,i.lineWidth=l,i.setLineDash(a.dash),i.lineDashOffset=a.dashOffset,i.beginPath(),_o(t,n,o,r),i.closePath(),i.stroke(),i.restore())}(this,o,s,i,l)}})),n.display){for(t.save(),o=i-1;o>=0;o--){const r=n.setContext(this.getPointLabelContext(o)),{color:a,lineWidth:i}=r;i&&a&&(t.lineWidth=i,t.strokeStyle=a,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(o,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let a,i;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((r,o)=>{if(0===o&&this.min>=0&&!e.reverse)return;const s=n.setContext(this.getContext(o)),l=Je(s.font);if(a=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){t.font=l.string,i=t.measureText(r.label).width,t.fillStyle=s.backdropColor;const e=Ze(s.backdropPadding);t.fillRect(-i/2-e.left,-a-l.size/2-e.top,i+e.width,l.size+e.height)}He(t,r.label,0,-a,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),t.restore()}drawTitle(){}}const So={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bo=Object.keys(So);function Oo(t,e){return t-e}function Po(t,e){if(st(e))return null;const n=t._adapter,{parser:r,round:a,isoWeekday:i}=t._parseOpts;let o=e;return"function"==typeof r&&(o=r(o)),ut(o)||(o="string"==typeof r?n.parse(o,r):n.parse(o)),null===o?null:(a&&(o="week"!==a||!Wt(i)&&!0!==i?n.startOf(o,a):n.startOf(o,"isoWeek",i)),+o)}function Do(t,e,n,r){const a=Bo.length;for(let i=Bo.indexOf(t);i=e?n[r]:n[a]]=!0}}else t[e]=!0}function Eo(t,e,n){const r=[],a={},i=e.length;let o,s;for(o=0;o=0&&(e[l].major=!0);return e}(t,r,a,n):r}class Io extends ga{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),r=this._adapter=new _r._date(t.adapters.date);r.init(e),Ct(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Po(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:r,max:a,minDefined:i,maxDefined:o}=this.getUserBounds();function s(t){i||isNaN(t.min)||(r=Math.min(r,t.min)),o||isNaN(t.max)||(a=Math.max(a,t.max))}i&&o||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),r=ut(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),a=ut(a)&&!isNaN(a)?a:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,a-1),this.max=Math.max(r+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const a=this.min,i=function(t,e,n){let r=0,a=t.length;for(;rr&&t[a-1]>n;)a--;return r>0||a=Bo.indexOf(n);i--){const n=Bo[i];if(So[n].common&&t._adapter.diff(a,r,n)>=e-1)return n}return Bo[n?Bo.indexOf(n):0]}(this,i.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=Bo.indexOf(t)+1,n=Bo.length;e+t.value)))}initOffsets(t=[]){let e,n,r=0,a=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),a=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const i=t.length<3?.5:.25;r=Kt(r,0,i),a=Kt(a,0,i),this._offsets={start:r,end:a,factor:1/(r+1+a)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,a=r.time,i=a.unit||Do(a.minUnit,e,n,this._getLabelCapacity(e)),o=dt(r.ticks.stepSize,1),s="week"===i&&a.isoWeekday,l=Wt(s)||!0===s,c={};let u,h,d=e;if(l&&(d=+t.startOf(d,"isoWeek",s)),d=+t.startOf(d,l?"day":i),t.diff(n,e,i)>1e5*o)throw new Error(e+" and "+n+" are too far apart with stepSize of "+o+" "+i);const p="data"===r.ticks.source&&this.getDataTimestamps();for(u=d,h=0;u+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,r=this._unit,a=e||n[r];return this._adapter.format(t,a)}_tickFormatFunction(t,e,n,r){const a=this.options,i=a.ticks.callback;if(i)return ft(i,[t,e,n],this);const o=a.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&o[s],u=l&&o[l],h=n[e],d=l&&u&&h&&h.major;return this._adapter.format(t,r||(d?u:c))}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e0?o:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=te(t,"pos",e)),({pos:r,time:i}=t[s]),({pos:a,time:o}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=te(t,"time",e)),({time:r,pos:i}=t[s]),({time:a,pos:o}=t[l]));const c=a-r;return c?i+(o-i)*(e-r)/c:i}var jo=Object.freeze({__proto__:null,CategoryScale:class extends ga{static id="category";static defaults={ticks:{callback:lo}};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:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(st(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Kt(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,r){const a=t.indexOf(e);return-1===a?((t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r):a!==t.lastIndexOf(e)?n:a}(n,t,dt(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let a=this.getLabels();a=0===t&&e===a.length-1?a:a.slice(t,e+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)r.push({value:n});return r}getLabelForValue(t){return lo.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}},LinearScale:ho,LogarithmicScale:mo,RadialLinearScale:ko,TimeScale:Io,TimeSeriesScale:class extends Io{static id="timeseries";static defaults=Io.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=To(e,this.min),this._tableRange=To(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],a=[];let i,o,s,l,c;for(i=0,o=t.length;i=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(i=0,o=r.length;it-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(To(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return To(this._table,n*this._tableRange+this._minPos,!0)}}});const zo=[Cr,di,so,jo];qa.register(...zo);const Lo=qa;function Ro(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}var No={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Wo(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Uo={date:Wo({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Wo({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Wo({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ho={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Yo(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=null!=n&&n.width?String(n.width):a;r=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(e):e]}}const qo={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Yo({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Yo({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Yo({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Yo({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Yo({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Vo(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;var o,s=i[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.match($o.matchPattern);if(!n)return null;var r=n[0],a=t.match($o.parsePattern);if(!a)return null;var i=$o.valueCallback?$o.valueCallback(a[0]):a[0];return{value:i=e.valueCallback?e.valueCallback(i):i,rest:t.slice(r.length)}}),era:Vo({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Vo({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Vo({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Vo({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Vo({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const Go={code:"en-US",formatDistance:function(t,e,n){var r,a=No[t];return r="string"==typeof a?a:1===e?a.one:a.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:Uo,formatRelative:function(t,e,n,r){return Ho[t]},localize:qo,match:Qo,options:{weekStartsOn:0,firstWeekContainsDate:1}},Xo=Go;function Ko(t,a){e(2,arguments);var i=n(t).getTime(),o=r(a);return new Date(i+o)}function Zo(t,n){return e(2,arguments),Ko(t,-r(n))}function Jo(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}var ts=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},es=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}};const ns={p:es,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return ts(t,e);switch(a){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",ts(a,e)).replace("{{time}}",es(i,e))}};function rs(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var as=["D","DD"],is=["YY","YYYY"];function os(t){return-1!==as.indexOf(t)}function ss(t){return-1!==is.indexOf(t)}function ls(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function cs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function us(t,e){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},us(t,e)}function hs(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&us(t,e)}function ds(t){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ds(t)}function ps(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,a=ds(e);if(n){var i=ds(this).constructor;r=Reflect.construct(a,arguments,i)}else r=a.apply(this,arguments);return function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return cs(e)}(this,r)}}function fs(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gs(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,"string");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(n)?n:String(n)}function As(t,e){for(var n=0;n0,a=r?e:1-e;if(a<=50)n=t||100;else{var i=a+50;n=t+100*Math.floor(i/100)-(t>=i%100?100:0)}return r?n:1-n}function al(t){return t%400==0||t%4==0&&t%100!=0}var il=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"set",value:function(t,e,n){var r=t.getUTCFullYear();if(n.isTwoDigitYear){var a=rl(n.year,r);return t.setUTCFullYear(a,0,1),t.setUTCHours(0,0,0,0),t}var i="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),n}(xs),ol={};function sl(){return ol}function ll(t,a){var i,o,s,l,c,u,h,d;e(1,arguments);var p=sl(),f=r(null!==(i=null!==(o=null!==(s=null!==(l=null==a?void 0:a.weekStartsOn)&&void 0!==l?l:null==a||null===(c=a.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==s?s:p.weekStartsOn)&&void 0!==o?o:null===(h=p.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==i?i:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=n(t),A=g.getUTCDay(),m=(A=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(f+1,0,A),m.setUTCHours(0,0,0,0);var b=ll(m,a),v=new Date(0);v.setUTCFullYear(f,0,A),v.setUTCHours(0,0,0,0);var y=ll(v,a);return p.getTime()>=b.getTime()?f+1:p.getTime()>=y.getTime()?f:f-1}var ul=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0}},{key:"set",value:function(t,e,n,r){var a=cl(t,r);if(n.isTwoDigitYear){var i=rl(n.year,a);return t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),ll(t,r)}var o="era"in e&&1!==e.era?1-n.year:n.year;return t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),ll(t,r)}}]),n}(xs);function hl(t){e(1,arguments);var r=n(t),a=r.getUTCDay(),i=(a<1?7:0)+a-1;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}var dl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(xs),gl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&e<=4}},{key:"set",value:function(t,e,n){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}}]),n}(xs),Al=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(xs),ml=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=11}},{key:"set",value:function(t,e,n){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}}]),n}(xs);function bl(t,a){e(1,arguments);var i=n(t),o=ll(i,a).getTime()-function(t,n){var a,i,o,s,l,c,u,h;e(1,arguments);var d=sl(),p=r(null!==(a=null!==(i=null!==(o=null!==(s=null==n?void 0:n.firstWeekContainsDate)&&void 0!==s?s:null==n||null===(l=n.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==i?i:null===(u=d.locale)||void 0===u||null===(h=u.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==a?a:1),f=cl(t,n),g=new Date(0);return g.setUTCFullYear(f,0,p),g.setUTCHours(0,0,0,0),ll(g,n)}(i,a).getTime();return Math.round(o/6048e5)+1}var vl=function(t){hs(i,t);var a=ps(i);function i(){var t;fs(this,i);for(var e=arguments.length,n=new Array(e),r=0;r=1&&e<=53}},{key:"set",value:function(t,a,i,o){return ll(function(t,a,i){e(2,arguments);var o=n(t),s=r(a),l=bl(o,i)-s;return o.setUTCDate(o.getUTCDate()-7*l),o}(t,i,o),o)}}]),i}(xs);function yl(t){e(1,arguments);var r=n(t),a=r.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(a+1,0,4),i.setUTCHours(0,0,0,0);var o=hl(i),s=new Date(0);s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0);var l=hl(s);return r.getTime()>=o.getTime()?a+1:r.getTime()>=l.getTime()?a:a-1}function Cl(t){e(1,arguments);var r=n(t),a=hl(r).getTime()-function(t){e(1,arguments);var n=yl(t),r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),hl(r)}(r).getTime();return Math.round(a/6048e5)+1}var xl=function(t){hs(i,t);var a=ps(i);function i(){var t;fs(this,i);for(var e=arguments.length,n=new Array(e),r=0;r=1&&e<=53}},{key:"set",value:function(t,a,i){return hl(function(t,a){e(2,arguments);var i=n(t),o=r(a),s=Cl(i)-o;return i.setUTCDate(i.getUTCDate()-7*s),i}(t,i))}}]),i}(xs),wl=[31,28,31,30,31,30,31,31,30,31,30,31],_l=[31,29,31,30,31,30,31,31,30,31,30,31],kl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&e<=_l[r]:e>=1&&e<=wl[r]}},{key:"set",value:function(t,e,n){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}}]),n}(xs),Sl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,n){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}}]),n}(xs);function Bl(t,a,i){var o,s,l,c,u,h,d,p;e(2,arguments);var f=sl(),g=r(null!==(o=null!==(s=null!==(l=null!==(c=null==i?void 0:i.weekStartsOn)&&void 0!==c?c:null==i||null===(u=i.locale)||void 0===u||null===(h=u.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==o?o:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var A=n(t),m=r(a),b=((m%7+7)%7=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Bl(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(xs),Pl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Bl(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(xs),Dl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=6}},{key:"set",value:function(t,e,n,r){return(t=Bl(t,n,r)).setUTCHours(0,0,0,0),t}}]),n}(xs),Ml=function(t){hs(i,t);var a=ps(i);function i(){var t;fs(this,i);for(var e=arguments.length,n=new Array(e),r=0;r=1&&e<=7}},{key:"set",value:function(t,a,i){return t=function(t,a){e(2,arguments);var i=r(a);i%7==0&&(i-=7);var o=n(t),s=((i%7+7)%7<1?7:0)+i-o.getUTCDay();return o.setUTCDate(o.getUTCDate()+s),o}(t,i),t.setUTCHours(0,0,0,0),t}}]),i}(xs),El=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&e<=12}},{key:"set",value:function(t,e,n){var r=t.getUTCHours()>=12;return r&&n<12?t.setUTCHours(n+12,0,0,0):r||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}}]),n}(xs),zl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=23}},{key:"set",value:function(t,e,n){return t.setUTCHours(n,0,0,0),t}}]),n}(xs),Ll=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=11}},{key:"set",value:function(t,e,n){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}}]),n}(xs),Rl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=1&&e<=24}},{key:"set",value:function(t,e,n){var r=n<=24?n%24:n;return t.setUTCHours(r,0,0,0),t}}]),n}(xs),Fl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCMinutes(n,0,0),t}}]),n}(xs),Nl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&e<=59}},{key:"set",value:function(t,e,n){return t.setUTCSeconds(n,0),t}}]),n}(xs),Wl=function(t){hs(n,t);var e=ps(n);function n(){var t;fs(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0?n:1-n;return lc("yy"===e?r%100:r,e.length)},uc=function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):lc(n+1,2)},hc=function(t,e){return lc(t.getUTCDate(),e.length)},dc=function(t,e){return lc(t.getUTCHours()%12||12,e.length)},pc=function(t,e){return lc(t.getUTCHours(),e.length)},fc=function(t,e){return lc(t.getUTCMinutes(),e.length)},gc=function(t,e){return lc(t.getUTCSeconds(),e.length)},Ac=function(t,e){var n=e.length,r=t.getUTCMilliseconds();return lc(Math.floor(r*Math.pow(10,n-3)),e.length)};var mc={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return cc(t,e)},Y:function(t,e,n,r){var a=cl(t,r),i=a>0?a:1-a;return"YY"===e?lc(i%100,2):"Yo"===e?n.ordinalNumber(i,{unit:"year"}):lc(i,e.length)},R:function(t,e){return lc(yl(t),e.length)},u:function(t,e){return lc(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return lc(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return lc(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return uc(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return lc(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var a=bl(t,r);return"wo"===e?n.ordinalNumber(a,{unit:"week"}):lc(a,e.length)},I:function(t,e,n){var r=Cl(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):lc(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):hc(t,e)},D:function(t,r,a){var i=function(t){e(1,arguments);var r=n(t),a=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var i=a-r.getTime();return Math.floor(i/864e5)+1}(t);return"Do"===r?a.ordinalNumber(i,{unit:"dayOfYear"}):lc(i,r.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return lc(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return lc(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return lc(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,a=t.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,a=t.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return dc(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):pc(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):lc(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):lc(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):fc(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):gc(t,e)},S:function(t,e){return Ac(t,e)},X:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return vc(a);case"XXXX":case"XX":return yc(a);default:return yc(a,":")}},x:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return vc(a);case"xxxx":case"xx":return yc(a);default:return yc(a,":")}},O:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+bc(a,":");default:return"GMT"+yc(a,":")}},z:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+bc(a,":");default:return"GMT"+yc(a,":")}},t:function(t,e,n,r){var a=r._originalDate||t;return lc(Math.floor(a.getTime()/1e3),e.length)},T:function(t,e,n,r){return lc((r._originalDate||t).getTime(),e.length)}};function bc(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=e||"";return n+String(a)+o+lc(i,2)}function vc(t,e){return t%60==0?(t>0?"-":"+")+lc(Math.abs(t)/60,2):yc(t,e)}function yc(t,e){var n=e||"",r=t>0?"-":"+",a=Math.abs(t);return r+lc(Math.floor(a/60),2)+n+lc(a%60,2)}const Cc=mc;var xc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_c=/^'([^]*?)'?$/,kc=/''/g,Sc=/[a-zA-Z]/;function Bc(t,a){e(2,arguments);var i=n(t),o=r(a);return isNaN(o)?new Date(NaN):o?(i.setDate(i.getDate()+o),i):i}function Oc(t,a){e(2,arguments);var i=n(t),o=r(a);if(isNaN(o))return new Date(NaN);if(!o)return i;var s=i.getDate(),l=new Date(i.getTime());return l.setMonth(i.getMonth()+o+1,0),s>=l.getDate()?l:(i.setFullYear(l.getFullYear(),l.getMonth(),s),i)}function Pc(t,r){return e(2,arguments),n(t).getTime()-n(r).getTime()}var Dc={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}};function Mc(t){return t?Dc[t]:Dc.trunc}function Ec(t){e(1,arguments);var r=n(t);return r.setHours(0,0,0,0),r}function Ic(t,e){var n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function Tc(t,r){e(2,arguments);var a=n(t),i=n(r),o=Ic(a,i),s=Math.abs(function(t,n){e(2,arguments);var r=Ec(t),a=Ec(n),i=r.getTime()-rs(r),o=a.getTime()-rs(a);return Math.round((i-o)/864e5)}(a,i));a.setDate(a.getDate()-o*s);var l=o*(s-Number(Ic(a,i)===-o));return 0===l?0:l}function jc(t,r){e(2,arguments);var a=n(t),i=n(r),o=a.getTime()-i.getTime();return o<0?-1:o>0?1:o}function zc(t){e(1,arguments);var r=n(t);return r.setHours(23,59,59,999),r}function Lc(t){e(1,arguments);var r=n(t),a=r.getMonth();return r.setFullYear(r.getFullYear(),a+1,0),r.setHours(23,59,59,999),r}function Rc(t,r){e(2,arguments);var a,i=n(t),o=n(r),s=jc(i,o),l=Math.abs(function(t,r){e(2,arguments);var a=n(t),i=n(r);return 12*(a.getFullYear()-i.getFullYear())+(a.getMonth()-i.getMonth())}(i,o));if(l<1)a=0;else{1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*l);var c=jc(i,o)===-s;(function(t){e(1,arguments);var r=n(t);return zc(r).getTime()===Lc(r).getTime()})(n(t))&&1===l&&1===jc(t,o)&&(c=!1),a=s*(l-Number(c))}return 0===a?0:a}function Fc(t,a){var i,o,s,l,c,u,h,d;e(1,arguments);var p=sl(),f=r(null!==(i=null!==(o=null!==(s=null!==(l=null==a?void 0:a.weekStartsOn)&&void 0!==l?l:null==a||null===(c=a.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==s?s:p.weekStartsOn)&&void 0!==o?o:null===(h=p.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==i?i:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=n(t),A=g.getDay(),m=(A=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var M=r(null!==(b=null!==(v=null!==(y=null!==(C=null==s?void 0:s.weekStartsOn)&&void 0!==C?C:null==s||null===(x=s.locale)||void 0===x||null===(w=x.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==y?y:O.weekStartsOn)&&void 0!==v?v:null===(_=O.locale)||void 0===_||null===(k=_.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==b?b:0);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===B)return""===S?n(o):new Date(NaN);var E,I={firstWeekContainsDate:D,weekStartsOn:M,locale:P},T=[new Cs],j=B.match(Ql).map((function(t){var e=t[0];return e in ns?(0,ns[e])(t,P.formatLong):t})).join("").match($l),z=[],L=Fo(j);try{var R=function(){var t=E.value;null!=s&&s.useAdditionalWeekYearTokens||!ss(t)||ls(t,B,a),null!=s&&s.useAdditionalDayOfYearTokens||!os(t)||ls(t,B,a);var e=t[0],n=Vl[e];if(n){var r=n.incompatibleTokens;if(Array.isArray(r)){var i=z.find((function(t){return r.includes(t.token)||t.token===e}));if(i)throw new RangeError("The format string mustn't contain `".concat(i.fullToken,"` and `").concat(t,"` at the same time"))}else if("*"===n.incompatibleTokens&&z.length>0)throw new RangeError("The format string mustn't contain `".concat(t,"` and any other token at the same time"));z.push({token:e,fullToken:t});var o=n.run(S,t,P.match,I);if(!o)return{v:new Date(NaN)};T.push(o.setter),S=o.rest}else{if(e.match(Zl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");if("''"===t?t="'":"'"===e&&(t=t.match(Gl)[1].replace(Xl,"'")),0!==S.indexOf(t))return{v:new Date(NaN)};S=S.slice(t.length)}};for(L.s();!(E=L.n()).done;){var F=R();if("object"===t(F))return F.v}}catch(t){L.e(t)}finally{L.f()}if(S.length>0&&Kl.test(S))return new Date(NaN);var N=T.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return T.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),W=n(o);if(isNaN(W.getTime()))return new Date(NaN);var U,H=Zo(W,rs(W)),Y={},q=Fo(N);try{for(q.s();!(U=q.n()).done;){var V=U.value;if(!V.validate(H,I))return new Date(NaN);var $=V.set(H,Y,I);Array.isArray($)?(H=$[0],Jo(Y,$[1])):H=$}}catch(t){q.e(t)}finally{q.f()}return H}(a,i,new Date,this.options):function(t,n){var a;e(1,arguments);var i=r(null!==(a=null==n?void 0:n.additionalDigits)&&void 0!==a?a:2);if(2!==i&&1!==i&&0!==i)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var o,s=function(t){var e,n={},r=t.split(Jl.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?e=r[0]:(n.date=r[0],e=r[1],Jl.timeZoneDelimiter.test(n.date)&&(n.date=t.split(Jl.timeZoneDelimiter)[0],e=t.substr(n.date.length,t.length))),e){var a=Jl.timezone.exec(e);a?(n.time=e.replace(a[1],""),n.timezone=a[1]):n.time=e}return n}(t);if(s.date){var l=function(t,e){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?a:100*i,restDateString:t.slice((r[1]||r[2]).length)}}(s.date,i);o=function(t,e){if(null===e)return new Date(NaN);var n=t.match(tc);if(!n)return new Date(NaN);var r=!!n[4],a=rc(n[1]),i=rc(n[2])-1,o=rc(n[3]),s=rc(n[4]),l=rc(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,s,l)?function(t,e,n){var r=new Date(0);r.setUTCFullYear(t,0,4);var a=7*(e-1)+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}(e,s,l):new Date(NaN);var c=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(ic[e]||(oc(t)?29:28))}(e,i,o)&&function(t,e){return e>=1&&e<=(oc(t)?366:365)}(e,a)?(c.setUTCFullYear(e,i,Math.max(a,o)),c):new Date(NaN)}(l.restDateString,l.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var c,u=o.getTime(),h=0;if(s.time&&(h=function(t){var e=t.match(ec);if(!e)return NaN;var n=ac(e[1]),r=ac(e[2]),a=ac(e[3]);return function(t,e,n){return 24===t?0===e&&0===n:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,a)?n*ks+r*_s+1e3*a:NaN}(s.time),isNaN(h)))return new Date(NaN);if(!s.timezone){var d=new Date(u+h),p=new Date(0);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return c=function(t){if("Z"===t)return 0;var e=t.match(nc);if(!e)return 0;var n="+"===e[1]?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return function(t,e){return e>=0&&e<=59}(0,a)?n*(r*ks+a*_s):NaN}(s.timezone),isNaN(c)?new Date(NaN):new Date(u+h+c)}(a,this.options)),sc(a)?a.getTime():null},format:function(t,a){return function(t,a,i){var o,s,l,c,u,h,d,p,f,g,A,m,b,v,y,C,x,w;e(2,arguments);var _=String(a),k=sl(),S=null!==(o=null!==(s=null==i?void 0:i.locale)&&void 0!==s?s:k.locale)&&void 0!==o?o:Xo,B=r(null!==(l=null!==(c=null!==(u=null!==(h=null==i?void 0:i.firstWeekContainsDate)&&void 0!==h?h:null==i||null===(d=i.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==u?u:k.firstWeekContainsDate)&&void 0!==c?c:null===(f=k.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==l?l:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=r(null!==(A=null!==(m=null!==(b=null!==(v=null==i?void 0:i.weekStartsOn)&&void 0!==v?v:null==i||null===(y=i.locale)||void 0===y||null===(C=y.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==b?b:k.weekStartsOn)&&void 0!==m?m:null===(x=k.locale)||void 0===x||null===(w=x.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==A?A:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var P=n(t);if(!sc(P))throw new RangeError("Invalid time value");var D=Zo(P,rs(P)),M={firstWeekContainsDate:B,weekStartsOn:O,locale:S,_originalDate:P};return _.match(wc).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,ns[e])(t,S.formatLong):t})).join("").match(xc).map((function(e){if("''"===e)return"'";var n,r,o=e[0];if("'"===o)return(r=(n=e).match(_c))?r[1].replace(kc,"'"):n;var s=Cc[o];if(s)return null!=i&&i.useAdditionalWeekYearTokens||!ss(e)||ls(e,a,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!os(e)||ls(e,a,String(t)),s(D,e,S.localize,M);if(o.match(Sc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return e})).join("")}(t,a,this.options)},add:function(t,n,a){switch(a){case"millisecond":return Ko(t,n);case"second":return function(t,n){return e(2,arguments),Ko(t,1e3*r(n))}(t,n);case"minute":return function(t,n){return e(2,arguments),Ko(t,6e4*r(n))}(t,n);case"hour":return function(t,n){return e(2,arguments),Ko(t,36e5*r(n))}(t,n);case"day":return Bc(t,n);case"week":return function(t,n){return e(2,arguments),Bc(t,7*r(n))}(t,n);case"month":return Oc(t,n);case"quarter":return function(t,n){return e(2,arguments),Oc(t,3*r(n))}(t,n);case"year":return function(t,n){return e(2,arguments),Oc(t,12*r(n))}(t,n);default:return t}},diff:function(t,r,a){switch(a){case"millisecond":return Pc(t,r);case"second":return function(t,n,r){e(2,arguments);var a=Pc(t,n)/1e3;return Mc(null==r?void 0:r.roundingMethod)(a)}(t,r);case"minute":return function(t,n,r){e(2,arguments);var a=Pc(t,n)/_s;return Mc(null==r?void 0:r.roundingMethod)(a)}(t,r);case"hour":return function(t,n,r){e(2,arguments);var a=Pc(t,n)/ks;return Mc(null==r?void 0:r.roundingMethod)(a)}(t,r);case"day":return Tc(t,r);case"week":return function(t,n,r){e(2,arguments);var a=Tc(t,n)/7;return Mc(null==r?void 0:r.roundingMethod)(a)}(t,r);case"month":return Rc(t,r);case"quarter":return function(t,n,r){e(2,arguments);var a=Rc(t,n)/3;return Mc(null==r?void 0:r.roundingMethod)(a)}(t,r);case"year":return function(t,r){e(2,arguments);var a=n(t),i=n(r),o=jc(a,i),s=Math.abs(function(t,r){e(2,arguments);var a=n(t),i=n(r);return a.getFullYear()-i.getFullYear()}(a,i));a.setFullYear(1584),i.setFullYear(1584);var l=jc(a,i)===-o,c=o*(s-Number(l));return 0===c?0:c}(t,r);default:return 0}},startOf:function(t,r,a){switch(r){case"second":return function(t){e(1,arguments);var r=n(t);return r.setMilliseconds(0),r}(t);case"minute":return function(t){e(1,arguments);var r=n(t);return r.setSeconds(0,0),r}(t);case"hour":return function(t){e(1,arguments);var r=n(t);return r.setMinutes(0,0,0),r}(t);case"day":return Ec(t);case"week":return Fc(t);case"isoWeek":return Fc(t,{weekStartsOn:+a});case"month":return function(t){e(1,arguments);var r=n(t);return r.setDate(1),r.setHours(0,0,0,0),r}(t);case"quarter":return function(t){e(1,arguments);var r=n(t),a=r.getMonth(),i=a-a%3;return r.setMonth(i,1),r.setHours(0,0,0,0),r}(t);case"year":return function(t){e(1,arguments);var r=n(t),a=new Date(0);return a.setFullYear(r.getFullYear(),0,1),a.setHours(0,0,0,0),a}(t);default:return t}},endOf:function(t,a){switch(a){case"second":return function(t){e(1,arguments);var r=n(t);return r.setMilliseconds(999),r}(t);case"minute":return function(t){e(1,arguments);var r=n(t);return r.setSeconds(59,999),r}(t);case"hour":return function(t){e(1,arguments);var r=n(t);return r.setMinutes(59,59,999),r}(t);case"day":return zc(t);case"week":return function(t,a){var i,o,s,l,c,u,h,d;e(1,arguments);var p=sl(),f=r(null!==(i=null!==(o=null!==(s=null!==(l=null==a?void 0:a.weekStartsOn)&&void 0!==l?l:null==a||null===(c=a.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==s?s:p.weekStartsOn)&&void 0!==o?o:null===(h=p.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==i?i:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=n(t),A=g.getDay(),m=6+(An.right&&(r|=Vc),en.bottom&&(r|=$c),r}function Xc(t,e){var n,r,a=e.anchor,i=t;return e.clamp&&(i=function(t,e){for(var n,r,a,i=t.x0,o=t.y0,s=t.x1,l=t.y1,c=Gc(i,o,e),u=Gc(s,l,e);c|u&&!(c&u);)(n=c||u)&Qc?(r=i+(s-i)*(e.top-o)/(l-o),a=e.top):n&$c?(r=i+(s-i)*(e.bottom-o)/(l-o),a=e.bottom):n&Vc?(a=o+(l-o)*(e.right-i)/(s-i),r=e.right):n&qc&&(a=o+(l-o)*(e.left-i)/(s-i),r=e.left),n===c?c=Gc(i=r,o=a,e):u=Gc(s=r,l=a,e);return{x0:i,x1:s,y0:o,y1:l}}(i,e.area)),"start"===a?(n=i.x0,r=i.y0):"end"===a?(n=i.x1,r=i.y1):(n=(i.x0+i.x1)/2,r=(i.y0+i.y1)/2),function(t,e,n,r,a){switch(a){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:a*=Math.PI/180,n=Math.cos(a),r=Math.sin(a)}return{x:t,y:e,vx:n,vy:r}}(n,r,t.vx,t.vy,e.align)}var Kc=function(t,e){var n=(t.startAngle+t.endAngle)/2,r=Math.cos(n),a=Math.sin(n),i=t.innerRadius,o=t.outerRadius;return Xc({x0:t.x+r*i,y0:t.y+a*i,x1:t.x+r*o,y1:t.y+a*o,vx:r,vy:a},e)},Zc=function(t,e){var n=Hc(t,e.origin),r=n.x*t.options.radius,a=n.y*t.options.radius;return Xc({x0:t.x-r,y0:t.y-a,x1:t.x+r,y1:t.y+a,vx:n.x,vy:n.y},e)},Jc=function(t,e){var n=Hc(t,e.origin),r=t.x,a=t.y,i=0,o=0;return t.horizontal?(r=Math.min(t.x,t.base),i=Math.abs(t.base-t.x)):(a=Math.min(t.y,t.base||0),o=Math.abs(t.base-t.y)),Xc({x0:r,y0:a+o,x1:r+i,y1:a,vx:n.x,vy:n.y},e)},tu=function(t,e){var n=Hc(t,e.origin);return Xc({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:n.x,vy:n.y},e)},eu=function(t){return Math.round(t*Wc)/Wc};function nu(t,e){var n=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return t.horizontal?{x:r,y:null}:{x:null,y:r}}function ru(t,e,n){var r=t.shadowBlur,a=n.stroked,i=eu(n.x),o=eu(n.y),s=eu(n.w);a&&t.strokeText(e,i,o,s),n.filled&&(r&&a&&(t.shadowBlur=0),t.fillText(e,i,o,s),r&&a&&(t.shadowBlur=r))}var au=function(t,e,n,r){var a=this;a._config=t,a._index=r,a._model=null,a._rects=null,a._ctx=e,a._el=n};yt(au.prototype,{_modelize:function(t,e,n,r){var a,i=this,o=i._index,s=Je(tn([n.font,{}],r,o)),l=tn([n.color,Pe.color],r,o);return{align:tn([n.align,"center"],r,o),anchor:tn([n.anchor,"center"],r,o),area:r.chart.chartArea,backgroundColor:tn([n.backgroundColor,null],r,o),borderColor:tn([n.borderColor,null],r,o),borderRadius:tn([n.borderRadius,0],r,o),borderWidth:tn([n.borderWidth,0],r,o),clamp:tn([n.clamp,!1],r,o),clip:tn([n.clip,!1],r,o),color:l,display:t,font:s,lines:e,offset:tn([n.offset,4],r,o),opacity:tn([n.opacity,1],r,o),origin:nu(i._el,r),padding:Ze(tn([n.padding,4],r,o)),positioner:(a=i._el,a instanceof Ga?Kc:a instanceof ii?Zc:a instanceof hi?Jc:tu),rotation:tn([n.rotation,0],r,o)*(Math.PI/180),size:Uc(i._ctx,e,s),textAlign:tn([n.textAlign,"start"],r,o),textShadowBlur:tn([n.textShadowBlur,0],r,o),textShadowColor:tn([n.textShadowColor,l],r,o),textStrokeColor:tn([n.textStrokeColor,l],r,o),textStrokeWidth:tn([n.textStrokeWidth,0],r,o)}},update:function(t){var e,n,r,a=this,i=null,o=null,s=a._index,l=a._config,c=tn([l.display,!0],t,s);c&&(e=t.dataset.data[s],(r=st(n=dt(ft(l.formatter,[e,t]),e))?[]:function(t){var e,n=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?n.unshift.apply(n,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):st(t)||n.unshift(""+e);return n}(n)).length&&(o=function(t){var e=t.borderWidth||0,n=t.padding,r=t.size.height,a=t.size.width,i=-a/2,o=-r/2;return{frame:{x:i-n.left-e,y:o-n.top-e,w:a+n.width+2*e,h:r+n.height+2*e},text:{x:i,y:o,w:a,h:r}}}(i=a._modelize(c,r,l,t)))),a._model=i,a._rects=o},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var n,r,a,i,o=t.ctx,s=this._model,l=this._rects;this.visible()&&(o.save(),s.clip&&(n=s.area,o.beginPath(),o.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),o.clip()),o.globalAlpha=(r=0,a=s.opacity,i=1,Math.max(r,Math.min(a,i))),o.translate(eu(e.x),eu(e.y)),o.rotate(s.rotation),function(t,e,n){var r=n.backgroundColor,a=n.borderColor,i=n.borderWidth;(r||a&&i)&&(t.beginPath(),function(t,e,n,r,a,i){var o=Math.PI/2;if(i){var s=Math.min(i,a/2,r/2),l=e+s,c=n+s,u=e+r-s,h=n+a-s;t.moveTo(e,c),ln.x+n.w+2||t.y>n.y+n.h+2)},intersects:function(t){var e,n,r,a=this._points(),i=t._points(),o=[cu(a[0],a[1]),cu(a[0],a[3])];for(this._rotation!==t._rotation&&o.push(cu(i[0],i[1]),cu(i[0],i[3])),e=0;et.getProps([e],!0)[e]}),i=r.geometry(),o=hu(s,r.model(),i),a._box.update(o,i,r.rotation()));!function(t,e){var n,r,a,i;for(n=t.length-1;n>=0;--n)for(a=t[n].$layout,r=n-1;r>=0&&a._visible;--r)(i=t[r].$layout)._visible&&a._box.intersects(i._box)&&e(a,i)}(t,(function(t,e){var n=t._hidable,r=e._hidable;n&&r||r?e._visible=!1:n&&(t._visible=!1)}))}(t)},lookup:function(t,e){var n,r;for(n=t.length-1;n>=0;--n)if((r=t[n].$layout)&&r._visible&&r._box.contains(e))return t[n];return null},draw:function(t,e){var n,r,a,i,o,s;for(n=0,r=e.length;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function Iu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tu(t){for(var e=1;e=3||2===n&&r>=4||1===n&&r>=10);function i(e,n,r){if(a&&void 0!==r){var i=r[0].__autocomplete_algoliaCredentials,o={"X-Algolia-Application-Id":i.appId,"X-Algolia-API-Key":i.apiKey};t.apply(void 0,[e].concat(Du(n),[{headers:o}]))}else t.apply(void 0,[e].concat(Du(n)))}return{init:function(e,n){t("init",{appId:e,apiKey:n})},setAuthenticatedUserToken:function(e){t("setAuthenticatedUserToken",e)},setUserToken:function(e){t("setUserToken",e)},clickedObjectIDsAfterSearch:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&i("clickedObjectIDsAfterSearch",zu(e),e[0].items)},clickedObjectIDs:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&i("clickedObjectIDs",zu(e),e[0].items)},clickedFilters:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&i("convertedObjectIDsAfterSearch",zu(e),e[0].items)},convertedObjectIDs:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&i("convertedObjectIDs",zu(e),e[0].items)},convertedFilters:function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&t.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&e.reduce((function(t,e){var n=e.items,r=Eu(e,Ou);return[].concat(Du(t),Du(function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r0&&t.apply(void 0,["viewedFilters"].concat(n))}}}function Ru(t){var e=t.items.reduce((function(t,e){var n;return t[e.__autocomplete_indexName]=(null!==(n=t[e.__autocomplete_indexName])&&void 0!==n?n:[]).concat(e),t}),{});return Object.keys(e).map((function(t){return{index:t,items:e[t],algoliaSource:["autocomplete"]}}))}function Fu(t){return t.objectID&&t.__autocomplete_indexName&&t.__autocomplete_queryID}function Nu(t){return Nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(t)}function Wu(t){return function(t){if(Array.isArray(t))return Uu(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Uu(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uu(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uu(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&Qu({onItemsChange:a,items:n,insights:c,state:e}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(t){var e=t.setContext,n=t.onSelect,r=t.onActive,a=!1;function u(t){e({algoliaInsightsPlugin:{__algoliaSearchParameters:Yu(Yu({},s?{clickAnalytics:!0}:{}),t?{userToken:Ku(t)}:{}),insights:c}})}l("addAlgoliaAgent","insights-plugin"),u(),l("onUserTokenChange",(function(t){a||u(t)})),l("getUserToken",null,(function(t,e){a||u(e)})),l("onAuthenticatedUserTokenChange",(function(t){t?(a=!0,u(t)):(a=!1,l("getUserToken",null,(function(t,e){return u(e)})))})),l("getAuthenticatedUserToken",null,(function(t,e){e&&(a=!0,u(e))})),n((function(t){var e=t.item,n=t.state,r=t.event,a=t.source;Fu(e)&&i({state:n,event:r,insights:c,item:e,insightsEvents:[Yu({eventName:"Item Selected"},ku({item:e,items:a.getItems().filter(Fu)}))]})})),r((function(t){var e=t.item,n=t.source,r=t.state,a=t.event;Fu(e)&&o({state:r,event:a,insights:c,item:e,insightsEvents:[Yu({eventName:"Item Active"},ku({item:e,items:n.getItems().filter(Fu)}))]})}))},onStateChange:function(t){var e=t.state;h({state:e})},__autocomplete_pluginOptions:t}}function Xu(){var t,e=arguments.length>1?arguments[1]:void 0;return[].concat(Wu(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),["autocomplete-internal"],Wu(null!==(t=e.algoliaInsightsPlugin)&&void 0!==t&&t.__automaticInsights?["autocomplete-automatic"]:[]))}function Ku(t){return"number"==typeof t?t.toString():t}function Zu(t){return Zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(t)}function Ju(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function th(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Zu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Zu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Zu(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eh(t){return t.reduce((function(t,e){return t.concat(e)}),[])}function nh(t){return nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nh(t)}function rh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ah(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0},reshape:function(t){return t.sources}},t),{},{id:null!==(n=t.id)&&void 0!==n?n:lh(),plugins:a,initialState:Ah({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},t.initialState),onStateChange:function(e){var n;null===(n=t.onStateChange)||void 0===n||n.call(t,e),a.forEach((function(t){var n;return null===(n=t.onStateChange)||void 0===n?void 0:n.call(t,e)}))},onSubmit:function(e){var n;null===(n=t.onSubmit)||void 0===n||n.call(t,e),a.forEach((function(t){var n;return null===(n=t.onSubmit)||void 0===n?void 0:n.call(t,e)}))},onReset:function(e){var n;null===(n=t.onReset)||void 0===n||n.call(t,e),a.forEach((function(t){var n;return null===(n=t.onReset)||void 0===n?void 0:n.call(t,e)}))},getSources:function(n){return Promise.all([].concat((r=a.map((function(t){return t.getSources})),function(t){if(Array.isArray(t))return fh(t)}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return fh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fh(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[t.getSources]).filter(Boolean).map((function(t){return function(t,e){var n=[];return Promise.resolve(t(e)).then((function(t){return Array.isArray(t),Promise.all(t.filter((function(t){return Boolean(t)})).map((function(t){if(t.sourceId,n.includes(t.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(t.sourceId)," is not unique."));n.push(t.sourceId);var e={getItemInputValue:function(t){return t.state.query},getItemUrl:function(){},onSelect:function(t){(0,t.setIsOpen)(!1)},onActive:_u,onResolve:_u};Object.keys(e).forEach((function(t){e[t].__default=!0}));var r=uh(uh({},e),t);return Promise.resolve(r)})))}))}(t,n)}))).then((function(t){return eh(t)})).then((function(t){return t.map((function(t){return Ah(Ah({},t),{},{onSelect:function(n){t.onSelect(n),e.forEach((function(t){var e;return null===(e=t.onSelect)||void 0===e?void 0:e.call(t,n)}))},onActive:function(n){t.onActive(n),e.forEach((function(t){var e;return null===(e=t.onActive)||void 0===e?void 0:e.call(t,n)}))},onResolve:function(n){t.onResolve(n),e.forEach((function(t){var e;return null===(e=t.onResolve)||void 0===e?void 0:e.call(t,n)}))}})}))}));var r},navigator:Ah({navigate:function(t){var e=t.itemUrl;r.location.assign(e)},navigateNewTab:function(t){var e=t.itemUrl,n=r.open(e,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(t){var e=t.itemUrl;r.open(e,"_blank","noopener")}},t.navigator)})}function vh(t){return vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(t)}function yh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ch(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,Lh);Yh&&a.environment.clearTimeout(Yh);var c=l.setCollections,u=l.setIsOpen,h=l.setQuery,d=l.setActiveItemId,p=l.setStatus,f=l.setContext;if(h(i),d(a.defaultActiveItemId),!i&&!1===a.openOnFocus){var g,A=s.getState().collections.map((function(t){return Fh(Fh({},t),{},{items:[]})}));p("idle"),c(A),u(null!==(g=r.isOpen)&&void 0!==g?g:a.shouldPanelOpen({state:s.getState()}));var m=Ih(qh(A).then((function(){return Promise.resolve()})));return s.pendingRequests.add(m)}p("loading"),Yh=a.environment.setTimeout((function(){p("stalled")}),a.stallThreshold);var b=Ih(qh(a.getSources(Fh({query:i,refresh:o,state:s.getState()},l)).then((function(t){return Promise.all(t.map((function(t){return Promise.resolve(t.getItems(Fh({query:i,refresh:o,state:s.getState()},l))).then((function(e){return function(t,e,n){if(a=t,Boolean(null==a?void 0:a.execute)){var r="algolia"===t.requesterId?Object.assign.apply(Object,[{}].concat(Bh(Object.keys(n.context).map((function(t){var e;return null===(e=n.context[t])||void 0===e?void 0:e.__algoliaSearchParameters}))))):{};return kh(kh({},t),{},{requests:t.queries.map((function(n){return{query:"algolia"===t.requesterId?kh(kh({},n),{},{params:kh(kh({},r),n.params)}):n,sourceId:e,transformResponse:t.transformResponse}}))})}var a;return{items:t,sourceId:e}}(e,t.sourceId,s.getState())}))}))).then(Dh).then((function(e){var n,r=e.some((function(t){return e=t.items,!Array.isArray(e)&&Boolean(null==e?void 0:e._automaticInsights);var e}));return r&&f({algoliaInsightsPlugin:Fh(Fh({},(null===(n=s.getState().context)||void 0===n?void 0:n.algoliaInsightsPlugin)||{}),{},{__automaticInsights:r})}),function(t,e,n){return e.map((function(e){var r,a=t.filter((function(t){return t.sourceId===e.sourceId})),i=a.map((function(t){return t.items})),o=a[0].transformResponse,s=o?o({results:r=i,hits:r.map((function(t){return t.hits})).filter(Boolean),facetHits:r.map((function(t){var e;return null===(e=t.facetHits)||void 0===e?void 0:e.map((function(t){return{label:t.value,count:t.count,_highlightResult:{label:{value:t.highlighted}}}}))})).filter(Boolean)}):i;return e.onResolve({source:e,results:i,items:s,state:n.getState()}),Array.isArray(s),s.every(Boolean),'The `getItems` function from source "'.concat(e.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:e,items:s}}))}(e,t,s)})).then((function(t){return function(t){var e=t.props,n=t.state,r=t.collections.reduce((function(t,e){return Ch(Ch({},t),{},xh({},e.source.sourceId,Ch(Ch({},e.source),{},{getItems:function(){return eh(e.items)}})))}),{}),a=e.plugins.reduce((function(t,e){return e.reshape?e.reshape(t):t}),{sourcesBySourceId:r,state:n}).sourcesBySourceId;return eh(e.reshape({sourcesBySourceId:a,sources:Object.values(a),state:n})).filter(Boolean).map((function(t){return{source:t,items:t.getItems()}}))}({collections:t,props:a,state:s.getState()})}))})))).then((function(t){var n;p("idle"),c(t);var h=a.shouldPanelOpen({state:s.getState()});u(null!==(n=r.isOpen)&&void 0!==n?n:a.openOnFocus&&!i&&h||h);var d=jh(s.getState());if(null!==s.getState().activeItemId&&d){var f=d.item,g=d.itemInputValue,A=d.itemUrl,m=d.source;m.onActive(Fh({event:e,item:f,itemInputValue:g,itemUrl:A,refresh:o,source:m,state:s.getState()},l))}})).finally((function(){p("idle"),Yh&&a.environment.clearTimeout(Yh)}));return s.pendingRequests.add(b)}function $h(t,e,n){return[t,null==n?void 0:n.sourceId,e].filter(Boolean).join("-").replace(/\s/g,"")}function Qh(t){return Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qh(t)}var Gh=["event","props","refresh","store"];function Xh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kh(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}function dd(t){var e=t.props,n=t.refresh,r=t.store,a=hd(t,nd);return{getEnvironmentProps:function(t){var n=t.inputElement,a=t.formElement,i=t.panelElement;function o(t){!r.getState().isOpen&&r.pendingRequests.isEmpty()||t.target===n||!1===[a,i].some((function(e){return(n=e)===(r=t.target)||n.contains(r);var n,r}))&&(r.dispatch("blur",null),e.debug||r.pendingRequests.cancelAll())}return cd({onTouchStart:o,onMouseDown:o,onTouchMove:function(t){!1!==r.getState().isOpen&&n===e.environment.document.activeElement&&t.target!==n&&n.blur()}},hd(t,rd))},getRootProps:function(t){return cd({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?r.getState().collections.map((function(t){var n=t.source;return $h(e.id,"list",n)})).join(" "):void 0,"aria-labelledby":$h(e.id,"label")},t)},getFormProps:function(t){return t.inputElement,cd({action:"",noValidate:!0,role:"search",onSubmit:function(i){var o;i.preventDefault(),e.onSubmit(cd({event:i,refresh:n,state:r.getState()},a)),r.dispatch("submit",null),null===(o=t.inputElement)||void 0===o||o.blur()},onReset:function(i){var o;i.preventDefault(),e.onReset(cd({event:i,refresh:n,state:r.getState()},a)),r.dispatch("reset",null),null===(o=t.inputElement)||void 0===o||o.focus()}},hd(t,ad))},getLabelProps:function(t){return cd({htmlFor:$h(e.id,"input"),id:$h(e.id,"label")},t)},getInputProps:function(t){var i;function o(t){(e.openOnFocus||Boolean(r.getState().query))&&Vh(cd({event:t,props:e,query:r.getState().completion||r.getState().query,refresh:n,store:r},a)),r.dispatch("focus",null)}var s,l=t||{},c=(l.inputElement,l.maxLength),u=void 0===c?512:c,h=hd(l,id),d=jh(r.getState()),p=(s=(null===(i=e.environment.navigator)||void 0===i?void 0:i.userAgent)||"",Boolean(s&&s.match(Jh))),f=e.enterKeyHint||(null!=d&&d.itemUrl&&!p?"go":"search");return cd({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?$h(e.id,"item-".concat(r.getState().activeItemId),null==d?void 0:d.source):void 0,"aria-controls":r.getState().isOpen?r.getState().collections.map((function(t){var n=t.source;return $h(e.id,"list",n)})).join(" "):void 0,"aria-labelledby":$h(e.id,"label"),value:r.getState().completion||r.getState().query,id:$h(e.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:e.autoFocus,placeholder:e.placeholder,maxLength:u,type:"search",onChange:function(t){var i=t.currentTarget.value;e.ignoreCompositionEvents&&td(t).isComposing?a.setQuery(i):Vh(cd({event:t,props:e,query:i.slice(0,u),refresh:n,store:r},a))},onCompositionEnd:function(t){Vh(cd({event:t,props:e,query:t.currentTarget.value.slice(0,u),refresh:n,store:r},a))},onKeyDown:function(t){td(t).isComposing||function(t){var e=t.event,n=t.props,r=t.refresh,a=t.store,i=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},i=Object.keys(t);for(r=0;r=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,Gh);if("ArrowUp"===e.key||"ArrowDown"===e.key){var o=function(){var t=jh(a.getState()),e=n.environment.document.getElementById($h(n.id,"item-".concat(a.getState().activeItemId),null==t?void 0:t.source));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},s=function(){var t=jh(a.getState());if(null!==a.getState().activeItemId&&t){var n=t.item,o=t.itemInputValue,s=t.itemUrl,l=t.source;l.onActive(Kh({event:e,item:n,itemInputValue:o,itemUrl:s,refresh:r,source:l,state:a.getState()},i))}};e.preventDefault(),!1===a.getState().isOpen&&(n.openOnFocus||Boolean(a.getState().query))?Vh(Kh({event:e,props:n,query:a.getState().query,refresh:r,store:a},i)).then((function(){a.dispatch(e.key,{nextActiveItemId:n.defaultActiveItemId}),s(),setTimeout(o,0)})):(a.dispatch(e.key,{}),s(),o())}else if("Escape"===e.key)e.preventDefault(),a.dispatch(e.key,null),a.pendingRequests.cancelAll();else if("Tab"===e.key)a.dispatch("blur",null),a.pendingRequests.cancelAll();else if("Enter"===e.key){if(null===a.getState().activeItemId||a.getState().collections.every((function(t){return 0===t.items.length})))return void(n.debug||a.pendingRequests.cancelAll());e.preventDefault();var l=jh(a.getState()),c=l.item,u=l.itemInputValue,h=l.itemUrl,d=l.source;if(e.metaKey||e.ctrlKey)void 0!==h&&(d.onSelect(Kh({event:e,item:c,itemInputValue:u,itemUrl:h,refresh:r,source:d,state:a.getState()},i)),n.navigator.navigateNewTab({itemUrl:h,item:c,state:a.getState()}));else if(e.shiftKey)void 0!==h&&(d.onSelect(Kh({event:e,item:c,itemInputValue:u,itemUrl:h,refresh:r,source:d,state:a.getState()},i)),n.navigator.navigateNewWindow({itemUrl:h,item:c,state:a.getState()}));else if(e.altKey);else{if(void 0!==h)return d.onSelect(Kh({event:e,item:c,itemInputValue:u,itemUrl:h,refresh:r,source:d,state:a.getState()},i)),void n.navigator.navigate({itemUrl:h,item:c,state:a.getState()});Vh(Kh({event:e,nextState:{isOpen:!1},props:n,query:u,refresh:r,store:a},i)).then((function(){d.onSelect(Kh({event:e,item:c,itemInputValue:u,itemUrl:h,refresh:r,source:d,state:a.getState()},i))}))}}}(cd({event:t,props:e,refresh:n,store:r},a))},onFocus:o,onBlur:_u,onClick:function(n){t.inputElement!==e.environment.document.activeElement||r.getState().isOpen||o(n)}},h)},getPanelProps:function(t){return cd({onMouseDown:function(t){t.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},t)},getListProps:function(t){var n=t||{},r=n.source,a=hd(n,od);return cd({role:"listbox","aria-labelledby":$h(e.id,"label"),id:$h(e.id,"list",r)},a)},getItemProps:function(t){var i=t.item,o=t.source,s=hd(t,sd);return cd({id:$h(e.id,"item-".concat(i.__autocomplete_id),o),role:"option","aria-selected":r.getState().activeItemId===i.__autocomplete_id,onMouseMove:function(t){if(i.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",i.__autocomplete_id);var e=jh(r.getState());if(null!==r.getState().activeItemId&&e){var o=e.item,s=e.itemInputValue,l=e.itemUrl,c=e.source;c.onActive(cd({event:t,item:o,itemInputValue:s,itemUrl:l,refresh:n,source:c,state:r.getState()},a))}}},onMouseDown:function(t){t.preventDefault()},onClick:function(t){var s=o.getItemInputValue({item:i,state:r.getState()}),l=o.getItemUrl({item:i,state:r.getState()});(l?Promise.resolve():Vh(cd({event:t,nextState:{isOpen:!1},props:e,query:s,refresh:n,store:r},a))).then((function(){o.onSelect(cd({event:t,item:i,itemInputValue:s,itemUrl:l,refresh:n,source:o,state:r.getState()},a))}))}},s)}}}var pd="1.17.0",fd=[{segment:"autocomplete-core",version:pd}];function gd(t){return gd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gd(t)}function Ad(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function md(t){for(var e=1;e=n?null===r?null:0:a}function xd(t){return xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xd(t)}function wd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _d(t){for(var e=1;e=5&&((a||!t&&5===r)&&(o.push(r,0,a,n),r=6),t&&(o.push(r,t,0,n),r=6)),a=""},l=0;l"===e?(r=1,a=""):a=e+a[0]:i?e===i?i="":a+=e:'"'===e||"'"===e?i=e:">"===e?(s(),r=1):r&&("="===e?(r=5,n=a,a=""):"/"===e&&(r<5||">"===t[l][c+1])?(s(),3===r&&(o=o[0]),r=o,(o=o[0]).push(2,0,r),r=0):" "===e||"\t"===e||"\n"===e||"\r"===e?(s(),r=2):a+=e),3===r&&"!--"===a&&(r=4,o=o[0])}return s(),o}(t)),e),arguments,[])).length>1?e:e[0]}var jd=function(t){var e=t.environment,n=e.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=e.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},zd=function(t){var e=t.environment,n=e.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=e.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},Ld=function(t){var e=t.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return e.setAttribute("class","aa-LoadingIcon"),e.setAttribute("viewBox","0 0 100 100"),e.setAttribute("width","20"),e.setAttribute("height","20"),e.innerHTML='\n \n',e},Rd=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Fd(t,e,n){t[e]=null===n?"":"number"!=typeof n?n:n+"px"}function Nd(t){this._listeners[t.type](t)}function Wd(t,e,n){var r,a,i=t[e];if("style"===e)if("string"==typeof n)t.style=n;else if(null===n)t.style="";else for(e in n)i&&n[e]===i[e]||Fd(t.style,e,n[e]);else"o"===e[0]&&"n"===e[1]?(r=e!==(e=e.replace(/Capture$/,"")),((a=e.toLowerCase())in t||Rd.includes(a))&&(e=a),e=e.slice(2),t._listeners||(t._listeners={}),t._listeners[e]=n,n?i||t.addEventListener(e,Nd,r):t.removeEventListener(e,Nd,r)):"list"!==e&&"tagName"!==e&&"form"!==e&&"type"!==e&&"size"!==e&&"download"!==e&&"href"!==e&&e in t?t[e]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==e&&(null==n||!1===n&&!/^ar/.test(e)?t.removeAttribute(e):t.setAttribute(e,n))}function Ud(t){switch(t){case"onChange":return"onInput";case"onCompositionEnd":return"oncompositionend";default:return t}}function Hd(t,e){for(var n in e)Wd(t,Ud(n),e[n])}function Yd(t,e){for(var n in e)"o"===n[0]&&"n"===n[1]||Wd(t,Ud(n),e[n])}var qd=["children"];function Vd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(n,qd),s=t.document.createElement(e);return Hd(s,o),s.append.apply(s,function(t){if(Array.isArray(t))return Vd(t)}(r=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return Vd(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vd(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s}}function Qd(t){return Qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qd(t)}var Gd=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function Xd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kd(t){for(var e=1;e=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,Gd),l=$d(n)("input",s),c=r(Kd({state:o,props:a({inputElement:l}),inputElement:l},e));return Hd(l,Kd(Kd({},c),{},{onKeyDown:function(t){i&&"Tab"===t.key||c.onKeyDown(t)}})),l};function tp(t){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tp(t)}function ep(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function np(t){for(var e=1;e2&&(o.children=arguments.length>3?ap.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===o[i]&&(o[i]=t.defaultProps[i]);return bp(t,o,r,a,null)}function bp(t,e,n,r,a){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++op:a,__i:-1,__u:0};return null==a&&null!=ip.vnode&&ip.vnode(i),i}function vp(t){return t.children}function yp(t,e){this.props=t,this.context=e}function Cp(t,e){if(null==e)return t.__?Cp(t.__,t.__i+1):null;for(var n;ee&&sp.sort(up));_p.__r=0}function kp(t,e,n,r,a,i,o,s,l,c,u){var h,d,p,f,g,A=r&&r.__k||dp,m=e.length;for(n.__d=l,Sp(n,e,A),l=n.__d,h=0;h0?bp(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=t,a.__b=t.__b+1,s=Op(a,n,o,u),a.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&h--,"function"!=typeof a.type&&(a.__u|=65536)):s!==o&&(s===o+1?h++:s>o?u>l-o?h+=s-o:h--:s(null!=l&&0==(131072&l.__u)?1:0))for(;o>=0||s=0){if((l=e[o])&&0==(131072&l.__u)&&a==l.key&&i===l.type)return o;o--}if(s0&&void 0!==arguments[0]?arguments[0]:[];return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return e.forEach((function(t){var e=t.split(Wp);r.add({value:e[0],isHighlighted:!0}),""!==e[1]&&r.add({value:e[1],isHighlighted:!1})})),r.get()}function Hp(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n",""":'"',"'":"'"},$p=new RegExp(/\w/i),Qp=/&(amp|quot|lt|gt|#39);/g,Gp=RegExp(Qp.source);function Xp(t,e){var n,r,a,i=t[e],o=(null===(n=t[e+1])||void 0===n?void 0:n.isHighlighted)||!0,s=(null===(r=t[e-1])||void 0===r?void 0:r.isHighlighted)||!0;return $p.test((a=i.value)&&Gp.test(a)?a.replace(Qp,(function(t){return Vp[t]})):a)||s!==o?i.isHighlighted:s}function Kp(t){return Kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kp(t)}function Zp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jp(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(t,hf),C="undefined"!=typeof window?window:{},x=lf(C,r);x.tagName;var w=pf(pf({},mf),A),_={Highlight:qp(w),ReverseHighlight:nf(w),ReverseSnippet:of(w),Snippet:sf(w)};return{renderer:{classNames:cf(gf,null!=n?n:{}),container:x,getEnvironmentProps:null!=a?a:function(t){return t.props},getFormProps:null!=i?i:function(t){return t.props},getInputProps:null!=o?o:function(t){return t.props},getItemProps:null!=s?s:function(t){return t.props},getLabelProps:null!=l?l:function(t){return t.props},getListProps:null!=c?c:function(t){return t.props},getPanelProps:null!=u?u:function(t){return t.props},getRootProps:null!=h?h:function(t){return t.props},panelContainer:d?lf(C,d):C.document.body,panelPlacement:null!=p?p:"input-wrapper-width",render:null!=f?f:Af,renderNoResults:g,renderer:w,detachedMediaQuery:null!=m?m:getComputedStyle(C.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:pf(pf({},_),b),translations:pf(pf({},{clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",detachedSearchButtonTitle:"Search",submitButtonTitle:"Submit"}),v)},core:pf(pf({},y),{},{id:null!==(e=y.id)&&void 0!==e?e:lh(),environment:C})}}(u.current)})),p=s((function(){return d.value.core.environment.matchMedia(d.value.renderer.detachedMediaQuery).matches})),f=s((function(){return Md(Lf(Lf({},d.value.core),{},{onStateChange:function(t){var e,n,r;c.current=t.state.collections.some((function(t){return t.source.templates.noResults})),null===(e=h.current)||void 0===e||e.call(h,t),null===(n=(r=d.value.core).onStateChange)||void 0===n||n.call(r,t)},shouldPanelOpen:u.current.shouldPanelOpen||function(t){var e=t.state;if(p.value)return!0;var n=oh(e)>0;if(!d.value.core.openOnFocus&&!e.query)return n;var r=Boolean(c.current||d.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:_f,options:t}}))})),g=Cu(Lf({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},d.value.core.initialState)),A={getEnvironmentProps:d.value.renderer.getEnvironmentProps,getFormProps:d.value.renderer.getFormProps,getInputProps:d.value.renderer.getInputProps,getItemProps:d.value.renderer.getItemProps,getLabelProps:d.value.renderer.getLabelProps,getListProps:d.value.renderer.getListProps,getPanelProps:d.value.renderer.getPanelProps,getRootProps:d.value.renderer.getRootProps},m={setActiveItemId:f.value.setActiveItemId,setQuery:f.value.setQuery,setCollections:f.value.setCollections,setIsOpen:f.value.setIsOpen,setStatus:f.value.setStatus,setContext:f.value.setContext,refresh:f.value.refresh,navigator:f.value.navigator},b=s((function(){return Td.bind(d.value.renderer.renderer.createElement)})),v=s((function(){return function(t){var e=t.autocomplete,n=t.autocompleteScopeApi,r=t.classNames,a=t.environment,i=t.isDetached,o=t.placeholder,s=void 0===o?"Search":o,l=t.propGetters,c=t.setIsModalOpen,u=t.state,h=t.translations,d=$d(a),p=l.getRootProps(np({state:u,props:e.getRootProps({})},n)),f=d("div",np({class:r.root},p)),g=d("div",{class:r.detachedContainer,onMouseDown:function(t){t.stopPropagation()}}),A=d("div",{class:r.detachedOverlay,children:[g],onMouseDown:function(){c(!1),e.setIsOpen(!1)}}),m=l.getLabelProps(np({state:u,props:e.getLabelProps({})},n)),b=d("button",{class:r.submitButton,type:"submit",title:h.submitButtonTitle,children:[jd({environment:a})]}),v=d("label",np({class:r.label,children:[b]},m)),y=d("button",{class:r.clearButton,type:"reset",title:h.clearButtonTitle,children:[zd({environment:a})]}),C=d("div",{class:r.loadingIndicator,children:[Ld({environment:a})]}),x=Jd({class:r.input,environment:a,state:u,getInputProps:l.getInputProps,getInputPropsCore:e.getInputProps,autocompleteScopeApi:n,isDetached:i}),w=d("div",{class:r.inputWrapperPrefix,children:[v,C]}),_=d("div",{class:r.inputWrapperSuffix,children:[y]}),k=d("div",{class:r.inputWrapper,children:[x]}),S=l.getFormProps(np({state:u,props:e.getFormProps({inputElement:x})},n)),B=d("form",np({class:r.form,children:[w,k,_]},S)),O=l.getPanelProps(np({state:u,props:e.getPanelProps({})},n)),P=d("div",np({class:r.panel},O)),D=d("div",{class:r.detachedSearchButtonQuery,textContent:u.query}),M=d("div",{class:r.detachedSearchButtonPlaceholder,hidden:Boolean(u.query),textContent:s});if(i){var E=d("div",{class:r.detachedSearchButtonIcon,children:[jd({environment:a})]}),I=d("button",{type:"button",class:r.detachedSearchButton,title:h.detachedSearchButtonTitle,id:m.id,onClick:function(){c(!0)},children:[E,M,D]}),T=d("button",{type:"button",class:r.detachedCancelButton,textContent:h.detachedCancelButtonText,onTouchStart:function(t){t.stopPropagation()},onClick:function(){e.setIsOpen(!1),c(!1)}}),j=d("div",{class:r.detachedFormContainer,children:[B,T]});g.appendChild(j),f.appendChild(I)}else f.appendChild(B);return{detachedContainer:g,detachedOverlay:A,detachedSearchButtonQuery:D,detachedSearchButtonPlaceholder:M,inputWrapper:k,input:x,root:f,form:B,label:v,submitButton:b,clearButton:y,loadingIndicator:C,panel:P}}({autocomplete:f.value,autocompleteScopeApi:m,classNames:d.value.renderer.classNames,environment:d.value.core.environment,isDetached:p.value,placeholder:d.value.core.placeholder,propGetters:A,setIsModalOpen:w,state:g.current,translations:d.value.renderer.translations})}));function y(){Hd(v.value.panel,{style:p.value?{}:bf({panelPlacement:d.value.renderer.panelPlacement,container:v.value.root,form:v.value.form,environment:d.value.core.environment})})}function C(t){g.current=t;var e={autocomplete:f.value,autocompleteScopeApi:m,classNames:d.value.renderer.classNames,components:d.value.renderer.components,container:d.value.renderer.container,html:b.value,dom:v.value,panelContainer:p.value?v.value.detachedContainer:d.value.renderer.panelContainer,propGetters:A,state:g.current,renderer:d.value.renderer.renderer},n=!oh(t)&&!c.current&&d.value.renderer.renderNoResults||d.value.renderer.render;!function(t){var e=t.autocomplete,n=t.autocompleteScopeApi,r=t.dom,a=t.propGetters,i=t.state;Yd(r.root,a.getRootProps(xf({state:i,props:e.getRootProps({})},n))),Yd(r.input,a.getInputProps(xf({state:i,props:e.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Hd(r.label,{hidden:"stalled"===i.status}),Hd(r.loadingIndicator,{hidden:"stalled"!==i.status}),Hd(r.clearButton,{hidden:!i.query}),Hd(r.detachedSearchButtonQuery,{textContent:i.query}),Hd(r.detachedSearchButtonPlaceholder,{hidden:Boolean(i.query)})}(e),function(t,e){var n=e.autocomplete,r=e.autocompleteScopeApi,a=e.classNames,i=e.html,o=e.dom,s=e.panelContainer,l=e.propGetters,c=e.state,u=e.components,h=e.renderer;if(c.isOpen){s.contains(o.panel)||"loading"===c.status||s.appendChild(o.panel),o.panel.classList.toggle("aa-Panel--stalled","stalled"===c.status);var d=c.collections.filter((function(t){var e=t.source,n=t.items;return e.templates.noResults||n.length>0})).map((function(t,e){var o=t.source,s=t.items;return h.createElement("section",{key:e,className:a.source,"data-autocomplete-source-id":o.sourceId},o.templates.header&&h.createElement("div",{className:a.sourceHeader},o.templates.header({components:u,createElement:h.createElement,Fragment:h.Fragment,items:s,source:o,state:c,html:i})),o.templates.noResults&&0===s.length?h.createElement("div",{className:a.sourceNoResults},o.templates.noResults({components:u,createElement:h.createElement,Fragment:h.Fragment,source:o,state:c,html:i})):h.createElement("ul",yf({className:a.list},l.getListProps(xf({state:c,props:n.getListProps({source:o})},r))),s.map((function(t){var e=n.getItemProps({item:t,source:o});return h.createElement("li",yf({key:e.id,className:a.item},l.getItemProps(xf({state:c,props:e},r))),o.templates.item({components:u,createElement:h.createElement,Fragment:h.Fragment,item:t,state:c,html:i}))}))),o.templates.footer&&h.createElement("div",{className:a.sourceFooter},o.templates.footer({components:u,createElement:h.createElement,Fragment:h.Fragment,items:s,source:o,state:c,html:i})))})),p=h.createElement(h.Fragment,null,h.createElement("div",{className:a.panelLayout},d),h.createElement("div",{className:"aa-GradientBottom"})),f=d.reduce((function(t,e){return t[e.props["data-autocomplete-source-id"]]=e,t}),{});t(xf(xf({children:p,state:c,sections:d,elements:f},h),{},{components:u,html:i},r),o.panel)}else s.contains(o.panel)&&s.removeChild(o.panel)}(n,e)}function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a();var e,n,r=d.value.renderer,o=r.components,s=function(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},i=Object.keys(t);for(r=0;r=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}(r,Tf);u.current=Of(s,d.value.core,{components:(e=o,n=function(t){return!t.value.hasOwnProperty("__autocomplete_componentName")},Object.entries(e).reduce((function(t,e){var r=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,a=t}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return If(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2),a=r[0],i=r[1];return n({key:a,value:i})?Mf(Mf({},t),{},Ef({},a,i)):t}),{})),initialState:g.current},t),l(),i(),f.value.refresh().then((function(){C(g.current)}))}function w(t){t!==d.value.core.environment.document.body.contains(v.value.detachedOverlay)&&(t?(d.value.core.environment.document.body.appendChild(v.value.detachedOverlay),d.value.core.environment.document.body.classList.add("aa-Detached"),v.value.input.focus()):(d.value.core.environment.document.body.removeChild(v.value.detachedOverlay),d.value.core.environment.document.body.classList.remove("aa-Detached")))}return r((function(){var t=f.value.getEnvironmentProps({formElement:v.value.form,panelElement:v.value.panel,inputElement:v.value.input});return Hd(d.value.core.environment,t),function(){Hd(d.value.core.environment,Object.keys(t).reduce((function(t,e){return Lf(Lf({},t),{},Rf({},e,void 0))}),{}))}})),r((function(){var t=p.value?d.value.core.environment.document.body:d.value.renderer.panelContainer,e=p.value?v.value.detachedOverlay:v.value.panel;return p.value&&g.current.isOpen&&w(!0),C(g.current),function(){t.contains(e)&&t.removeChild(e)}})),r((function(){var t=d.value.renderer.container;return t.appendChild(v.value.root),function(){t.removeChild(v.value.root)}})),r((function(){var t=yu((function(t){C(t.state)}),0);return h.current=function(e){var n=e.state,r=e.prevState;p.value&&r.isOpen!==n.isOpen&&w(n.isOpen),p.value||!n.isOpen||r.isOpen||y(),n.query!==r.query&&d.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(t){0!==t.scrollTop&&(t.scrollTop=0)})),t({state:n})},function(){h.current=void 0}})),r((function(){var t=yu((function(){var t=p.value;p.value=d.value.core.environment.matchMedia(d.value.renderer.detachedMediaQuery).matches,t!==p.value?x({}):requestAnimationFrame(y)}),20);return d.value.core.environment.addEventListener("resize",t),function(){d.value.core.environment.removeEventListener("resize",t)}})),r((function(){if(!p.value)return function(){};function t(t){v.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",t)}function e(e){t(e.matches)}var n=d.value.core.environment.matchMedia(getComputedStyle(d.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));t(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",e):n.addListener(e),function(){r?n.removeEventListener("change",e):n.removeListener(e)}})),r((function(){return requestAnimationFrame(y),function(){}})),Lf(Lf({},m),{},{update:x,destroy:function(){a()}})}var Nf=a(873),Wf={};Wf.styleTagTransform=x(),Wf.setAttributes=b(),Wf.insert=A().bind(null,"head"),Wf.domAPI=f(),Wf.insertStyleElement=y(),d()(Nf.Z,Wf),Nf.Z&&Nf.Z.locals&&Nf.Z.locals;const Uf=function(t,e){let n;return function(...t){return n&&clearTimeout(n),new Promise((e=>{n=setTimeout((()=>e((t=>Promise.resolve(t))(...t))),1e3)}))}}();class Hf extends Error{response;status;statusText;constructor(t,e,n){super(e),this.status=t,this.statusText=e,this.response=n}}const Yf="./static/assets/weather-icons-master/production/line/openweathermap/",qf="https://api.openweathermap.org/data/2.5/";async function Vf({url:t,units:e,options:n}){const r=await fetch(t+(e??""),n);if(!r.ok)throw new Hf(r.status,r.statusText,r);return await r.json()}const $f={weather(t){if(!t.lat||!t.lon)throw new Error;return`${qf}weather?lat=${t.lat}&lon=${t.lon}&appid=83dbfe84838bbd717e62e4d1dc48594b`},forecast(t){if(!t.lat||!t.lon)throw new Error;return`${qf}forecast?lat=${t.lat}&lon=${t.lon}&appid=83dbfe84838bbd717e62e4d1dc48594b`},geo:(t="",e="")=>`https://api.openweathermap.org/geo/1.0/direct?q=${t},${e}&appid=83dbfe84838bbd717e62e4d1dc48594b`,geoCities:(t="")=>`https://wft-geo-db.p.rapidapi.com/v1/geo/cities/?sort=-population&namePrefix=${t}&limit=7`,units:(t=u.metric)=>`&units=${t}`};async function Qf(t){return(await Vf({url:$f.geoCities(t),options:{headers:{"X-RapidAPI-Key":"fdd238edc7mshc7ce70a38dec71cp1f8681jsn7a6eaf6f76cd","X-RapidAPI-Host":"wft-geo-db.p.rapidapi.com"}}})).data.map((t=>({label:{name:t.name,region:t.region,country:t.country,countryCode:t.countryCode},coord:{lat:t.latitude,lon:t.longitude}})))}async function Gf(t,e){const n=e?u.imperial:u.metric,r=$f.units(n),a=await Vf({url:$f.forecast(t),units:r}),i=await Vf({url:$f.weather(t),units:r}),h=function(t){const e=[];return t?.list.forEach((t=>{let n={dt:t.dt,date:t.dt_txt,pop:t.pop,temp:t.main.temp,weather:t.weather[0]};t.rain&&(n.rain=t.rain["3h"]),t.snow&&(n.snow=t.snow["3h"]),e.push(n)})),e}(a);console.log(a),async function(t){const e=document.querySelector("#temp-chart1");bu&&bu.destroy(),vu&&vu.destroy(),bu=new Lo(e,{type:"line",plugins:[mu,{afterDatasetUpdate:(t,e)=>{console.log(e.meta.data.map((t=>t.y)),e.index)}}],options:{layout:{padding:{bottom:47.15}},maintainAspectRatio:!1,animation:!1,plugins:{legend:{display:!1}},scales:{x:{adapters:{date:{locale:Go}},grid:{display:!1},type:"time",ticks:{stepSize:3,major:{enabled:!0}},time:{unit:"hour",tooltipFormat:"HH:mm"},position:"top"},yTemp:{ticks:{display:!1},grid:{display:!1},border:{display:!1}},yPop:{display:!1,max:1.1*Math.max(...t.map((t=>(t.rain??0)+(t.snow??0))))},yLev:{display:!1}}},data:{labels:t.map((t=>t.date)),datasets:[{label:"# of Points",data:new Array(40).fill(0),borderWidth:1},{type:"line",label:"temp every 3 hrs",data:t.map((t=>t.temp)),yAxisID:"yTemp",datalabels:{display:!1}},{label:"3h rain level",data:t.map((t=>{const e=(t.rain??0)+(t.snow??0);return console.log(e),e})),yAxisID:"yPop",type:"bar",datalabels:{labels:{description:{anchor:"start",align:"start",font:{size:8.5},formatter:(e,n)=>[...t[n.dataIndex].weather.description.split(" ")]},precipitation:{anchor:"end",align:"end",offset:15,font:{size:8.3,weight:"bold"},formatter:(t,e)=>t?`${t} mm/h`:"",textAlign:"center"},probability:{anchor:"end",align:"end",font:{size:8.3},formatter:(e,n)=>`${(100*t[n.dataIndex].pop).toFixed()}%`,textAlign:"center"}}}}]}});const n=document.querySelector("#temp-chart2");vu=new Lo(n,{type:"line",options:{maintainAspectRatio:!1,layout:{padding:{top:30,bottom:41}},animation:!1,plugins:{legend:{display:!1}},scales:{x:{ticks:{display:!1}},y:{afterFit:t=>{t.width=35},ticks:{callback:t=>`${t} C`}}}},data:{labels:t.map((t=>t.date)),datasets:[{label:"temp every 3 hrs",data:t.map((t=>t.temp))}]}})}(h);const d=function(t){var e;const n=(e="date",function(t){return t.reduce(((t,n)=>{const{[e]:r,...a}=n;return(t[r]||=[]).push(a),t}),{})})(function(t){const e=[];return t.map((t=>{(t=JSON.parse(JSON.stringify(t))).date=t.date.substring(0,10),e.push(t)})),e}(t)),r=(a=n,Object.keys(a));var a;const i={};for(const t of r)i[t]={temp_high:Math.round(s(n[t])).toFixed(1),temp_low:Math.round(l(n[t])).toFixed(1),weather:c(n[t])};return i}(h),p={name:(f=i).name,weather_id:f.weather[0].id,weather_condition:f.weather[0].description,weather_main:f.weather[0].main,weather_icon:f.weather[0].icon,date:o(f.dt).toDateString(),temp:(Math.round(2*f.main.temp)/2).toFixed(1),feels_like:(Math.round(2*f.main.feels_like)/2).toFixed(1),timezone:f.timezone};var f;!function(t,e){const n=O,r=document.createElement("ul");r.classList.add("daily-list");const a=document.querySelector("#daily-template");for(const i in t){const o=document.importNode(a.content,!0),s=t[i].weather,l=new Image;l.src=Yf+`${n[s].image}.svg`,o.querySelector(".date").textContent=i,o.querySelector(".icon").appendChild(l),o.querySelector(".description").textContent=n[s].label,o.querySelector(".high").innerHTML=`${t[i].temp_high}${S(e)}`,o.querySelector(".low").innerHTML=`${t[i].temp_low}${S(e)}`,r.appendChild(o)}document.querySelector("#daily-forecast")?.replaceChildren(r)}(d,n),function(t,e){!function(t){const e=document.querySelector("#output-title");e&&(e.textContent=`${t.name} - ${t.date.substring(4,10)}`)}(t);const n=k("#current-template",HTMLTemplateElement),r=document.importNode(n.content,!0),a=new Image;a.src=Yf+`${t.weather_icon}.svg`,r.querySelector("#temp-output").innerHTML=`${t.temp}`+S(e),r.querySelector("#icon-ctr").appendChild(a),r.querySelector("#description-output").textContent=`${t.weather_condition}`,r.querySelector("#feels-like #temp").innerHTML=`${t.feels_like}`+S(e),document.querySelector("#current-ctr")?.replaceChildren(r)}(p,n)}setInterval((function(){const t=new Date,e=t.toLocaleString("en-CA",{day:"numeric",month:"short",year:"numeric"}),n=t.toLocaleTimeString("en-US",{weekday:"long",hour:"numeric",minute:"2-digit"});k("#user-date",HTMLHeadingElement).textContent=e+" - "+n}),1e3),async function(){let t;const e=k("#unit-toggle",HTMLInputElement);e.addEventListener("change",(n=>{t&&Gf(t,e.checked)})),Ff({container:"#search-form",placeholder:"Location/City...",getSources:()=>Uf([{sourceId:"cities",getItems:({query:t})=>Qf(t),getItemInputValue:({item:t})=>`${t.label.name}, ${t.label.region} - ${t.label.country}`,templates:{item:({item:t})=>`${t.label.name}, ${t.label.region} - ${t.label.countryCode}`},onSelect({item:n}){t={lat:n.coord.lat,lon:n.coord.lon},Gf(t,e.checked)}}])})}()})()})();
+(()=>{var t,e,n={7873:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(7537),a=n.n(r),i=n(3645),o=n.n(i)()(a());o.push([t.id,'/*! @algolia/autocomplete-theme-classic 1.17.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */\n:root{--aa-search-input-height:44px;--aa-input-icon-size:20px;--aa-base-unit:16;--aa-spacing-factor:1;--aa-spacing:calc(var(--aa-base-unit)*var(--aa-spacing-factor)*1px);--aa-spacing-half:calc(var(--aa-spacing)/2);--aa-panel-max-height:650px;--aa-base-z-index:9999;--aa-font-size:calc(var(--aa-base-unit)*1px);--aa-font-family:inherit;--aa-font-weight-medium:500;--aa-font-weight-semibold:600;--aa-font-weight-bold:700;--aa-icon-size:20px;--aa-icon-stroke-width:1.6;--aa-icon-color-rgb:119,119,163;--aa-icon-color-alpha:1;--aa-action-icon-size:20px;--aa-text-color-rgb:38,38,39;--aa-text-color-alpha:1;--aa-primary-color-rgb:62,52,211;--aa-primary-color-alpha:0.2;--aa-muted-color-rgb:128,126,163;--aa-muted-color-alpha:0.6;--aa-panel-border-color-rgb:128,126,163;--aa-panel-border-color-alpha:0.3;--aa-input-border-color-rgb:128,126,163;--aa-input-border-color-alpha:0.8;--aa-background-color-rgb:255,255,255;--aa-background-color-alpha:1;--aa-input-background-color-rgb:255,255,255;--aa-input-background-color-alpha:1;--aa-selected-color-rgb:179,173,214;--aa-selected-color-alpha:0.205;--aa-description-highlight-background-color-rgb:245,223,77;--aa-description-highlight-background-color-alpha:0.5;--aa-detached-media-query:(max-width:680px);--aa-detached-modal-media-query:(min-width:680px);--aa-detached-modal-max-width:680px;--aa-detached-modal-max-height:500px;--aa-overlay-color-rgb:115,114,129;--aa-overlay-color-alpha:0.4;--aa-panel-shadow:0 0 0 1px rgba(35,38,59,0.1),0 6px 16px -4px rgba(35,38,59,0.15);--aa-scrollbar-width:13px;--aa-scrollbar-track-background-color-rgb:234,234,234;--aa-scrollbar-track-background-color-alpha:1;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb);--aa-scrollbar-thumb-background-color-alpha:1}@media (hover:none) and (pointer:coarse){:root{--aa-spacing-factor:1.2;--aa-action-icon-size:22px}}body.dark,body[data-theme=dark]{--aa-text-color-rgb:183,192,199;--aa-primary-color-rgb:146,138,255;--aa-muted-color-rgb:146,138,255;--aa-input-background-color-rgb:0,3,9;--aa-background-color-rgb:21,24,42;--aa-selected-color-rgb:146,138,255;--aa-selected-color-alpha:0.25;--aa-description-highlight-background-color-rgb:0 255 255;--aa-description-highlight-background-color-alpha:0.25;--aa-icon-color-rgb:119,119,163;--aa-panel-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--aa-scrollbar-track-background-color-rgb:44,46,64;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb)}.aa-Autocomplete *,.aa-DetachedFormContainer *,.aa-Panel *{box-sizing:border-box}.aa-Autocomplete,.aa-DetachedFormContainer,.aa-Panel{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-family:inherit;font-family:var(--aa-font-family);font-size:calc(16 * 1px);font-size:var(--aa-font-size);font-weight:400;line-height:1em;margin:0;padding:0;text-align:left}.aa-Form{align-items:center;background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid rgba(128, 126, 163,0.8);border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;display:flex;line-height:1em;margin:0;position:relative;width:100%}.aa-Form:focus-within{border-color:rgba(62, 52, 211,1);border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:rgba(62, 52, 211,0.2) 0 0 0 2px,inset rgba(62, 52, 211,0.2) 0 0 0 2px;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:medium none currentColor}.aa-InputWrapperPrefix{align-items:center;display:flex;flex-shrink:0;height:44px;height:var(--aa-search-input-height);order:1}.aa-Label,.aa-LoadingIndicator{cursor:auto;flex-shrink:0;height:100%;padding:0;text-align:left}.aa-Label svg,.aa-LoadingIndicator svg{color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);height:auto;max-height:20px;max-height:var(--aa-input-icon-size);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-input-icon-size)}.aa-LoadingIndicator,.aa-SubmitButton{height:100%;padding-left:calc((16 * 1 * 1px)*0.75 - 1px);padding-left:calc(calc(16 * 1 * 1px)*0.75 - 1px);padding-left:calc(var(--aa-spacing)*0.75 - 1px);padding-right:calc((16 * 1 * 1px) / 2);padding-right:calc(calc(16 * 1 * 1px) / 2);padding-right:var(--aa-spacing-half);width:calc((16 * 1 * 1px)*1.75 + 20px - 1px);width:calc(calc(16 * 1 * 1px)*1.75 + 20px - 1px);width:calc(var(--aa-spacing)*1.75 + var(--aa-icon-size) - 1px)}@media (hover:none) and (pointer:coarse){.aa-LoadingIndicator,.aa-SubmitButton{padding-left:calc(((16 * 1 * 1px) / 2)/2 - 1px);padding-left:calc(calc(calc(16 * 1 * 1px) / 2)/2 - 1px);padding-left:calc(var(--aa-spacing-half)/2 - 1px);width:calc(20px + (16 * 1 * 1px)*1.25 - 1px);width:calc(20px + calc(16 * 1 * 1px)*1.25 - 1px);width:calc(var(--aa-icon-size) + var(--aa-spacing)*1.25 - 1px)}}.aa-SubmitButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;margin:0}.aa-LoadingIndicator{align-items:center;display:flex;justify-content:center}.aa-LoadingIndicator[hidden]{display:none}.aa-InputWrapper{order:3;position:relative;width:100%}.aa-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font:inherit;height:44px;height:var(--aa-search-input-height);padding:0;width:100%}.aa-Input::-moz-placeholder{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input::placeholder{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input:focus{border-color:none;box-shadow:none;outline:none}.aa-Input::-webkit-search-cancel-button,.aa-Input::-webkit-search-decoration,.aa-Input::-webkit-search-results-button,.aa-Input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.aa-InputWrapperSuffix{align-items:center;display:flex;height:44px;height:var(--aa-search-input-height);order:4}.aa-ClearButton{align-items:center;background:none;border:0;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;height:100%;margin:0;padding:0 calc((16 * 1 * 1px)*0.83333 - .5px);padding:0 calc(calc(16 * 1 * 1px)*0.83333 - .5px);padding:0 calc(var(--aa-spacing)*0.83333 - .5px)}@media (hover:none) and (pointer:coarse){.aa-ClearButton{padding:0 calc((16 * 1 * 1px)*0.66667 - .5px);padding:0 calc(calc(16 * 1 * 1px)*0.66667 - .5px);padding:0 calc(var(--aa-spacing)*0.66667 - .5px)}}.aa-ClearButton:focus,.aa-ClearButton:hover{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}.aa-ClearButton[hidden]{display:none}.aa-ClearButton svg{stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-icon-size)}.aa-Panel{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:calc((16 * 1 * 1px)/4);border-radius:calc(calc(16 * 1 * 1px)/4);border-radius:calc(var(--aa-spacing)/4);box-shadow:0 0 0 1px rgba(35, 38, 59, 0.1),\n 0 6px 16px -4px rgba(35, 38, 59, 0.15);box-shadow:var(--aa-panel-shadow);margin:8px 0 0;overflow:hidden;position:absolute;transition:opacity .2s ease-in,filter .2s ease-in}@media screen and (prefers-reduced-motion){.aa-Panel{transition:none}}.aa-Panel button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;margin:0;padding:0}.aa-PanelLayout{height:100%;margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-y:auto;padding:0;position:relative;text-align:left}.aa-PanelLayoutColumns--twoGolden{display:grid;grid-template-columns:39.2% auto;overflow:hidden;padding:0}.aa-PanelLayoutColumns--two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;padding:0}.aa-PanelLayoutColumns--three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;padding:0}.aa-Panel--stalled .aa-Source{filter:grayscale(1);opacity:.8}.aa-Panel--scrollable{margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-x:hidden;overflow-y:auto;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half);scrollbar-color:rgba(255, 255, 255,1) rgba(234, 234, 234,1);scrollbar-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha)) rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));scrollbar-width:thin}.aa-Panel--scrollable::-webkit-scrollbar{width:13px;width:var(--aa-scrollbar-width)}.aa-Panel--scrollable::-webkit-scrollbar-track{background-color:rgba(234, 234, 234,1);background-color:rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha))}.aa-Panel--scrollable::-webkit-scrollbar-thumb{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha));border-radius:9999px;border:3px solid rgba(234, 234, 234,1);border:3px solid rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));border-right-width:2px}.aa-Source{margin:0;padding:0;position:relative;width:100%}.aa-Source:empty{display:none}.aa-SourceNoResults{font-size:1em;margin:0;padding:calc(16 * 1 * 1px);padding:var(--aa-spacing)}.aa-List{list-style:none;margin:0}.aa-List,.aa-SourceHeader{padding:0;position:relative}.aa-SourceHeader{margin:calc((16 * 1 * 1px) / 2) .5em calc((16 * 1 * 1px) / 2) 0;margin:calc(calc(16 * 1 * 1px) / 2) .5em calc(calc(16 * 1 * 1px) / 2) 0;margin:var(--aa-spacing-half) .5em var(--aa-spacing-half) 0}.aa-SourceHeader:empty{display:none}.aa-SourceHeaderTitle{background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);display:inline-block;font-size:.8em;font-weight:600;font-weight:var(--aa-font-weight-semibold);margin:0;padding:0 calc((16 * 1 * 1px) / 2) 0 0;padding:0 calc(calc(16 * 1 * 1px) / 2) 0 0;padding:0 var(--aa-spacing-half) 0 0;position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-SourceHeaderLine{border-bottom:1px solid rgba(62, 52, 211,1);border-bottom:1px solid rgba(var(--aa-primary-color-rgb),1);display:block;height:2px;left:0;margin:0;opacity:.3;padding:0;position:absolute;right:0;top:calc((16 * 1 * 1px) / 2);top:calc(calc(16 * 1 * 1px) / 2);top:var(--aa-spacing-half);z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-SourceFooterSeeAll{background:linear-gradient(180deg,rgba(255, 255, 255,1),rgba(128,126,163,.14));background:linear-gradient(180deg,rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha)),rgba(128,126,163,.14));border:1px solid rgba(128, 126, 163,0.6);border:1px solid rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));border-radius:5px;box-shadow:inset 0 0 2px #fff,0 2px 2px -1px rgba(76,69,88,.15);color:inherit;font-size:.95em;font-weight:500;font-weight:var(--aa-font-weight-medium);padding:.475em 1em .6em;-webkit-text-decoration:none;text-decoration:none}.aa-SourceFooterSeeAll:focus,.aa-SourceFooterSeeAll:hover{border:1px solid rgba(62, 52, 211,1);border:1px solid rgba(var(--aa-primary-color-rgb),1);color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1)}.aa-Item{align-items:center;border-radius:3px;cursor:pointer;display:grid;min-height:calc((16 * 1 * 1px)*2.5);min-height:calc(calc(16 * 1 * 1px)*2.5);min-height:calc(var(--aa-spacing)*2.5);padding:calc(((16 * 1 * 1px) / 2)/2);padding:calc(calc(calc(16 * 1 * 1px) / 2)/2);padding:calc(var(--aa-spacing-half)/2)}.aa-Item[aria-selected=true]{background-color:rgba(179, 173, 214,0.205);background-color:rgba(var(--aa-selected-color-rgb),var(--aa-selected-color-alpha))}.aa-Item[aria-selected=true] .aa-ActiveOnly,.aa-Item[aria-selected=true] .aa-ItemActionButton{visibility:visible}.aa-ItemIcon{align-items:center;background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:3px;box-shadow:inset 0 0 0 1px rgba(128, 126, 163,0.3);box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));color:rgba(119, 119, 163,1);color:rgba(var(--aa-icon-color-rgb),var(--aa-icon-color-alpha));display:flex;flex-shrink:0;font-size:.7em;height:calc(20px + ((16 * 1 * 1px) / 2));height:calc(20px + calc(calc(16 * 1 * 1px) / 2));height:calc(var(--aa-icon-size) + var(--aa-spacing-half));justify-content:center;overflow:hidden;stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);text-align:center;width:calc(20px + ((16 * 1 * 1px) / 2));width:calc(20px + calc(calc(16 * 1 * 1px) / 2));width:calc(var(--aa-icon-size) + var(--aa-spacing-half))}.aa-ItemIcon img{height:auto;max-height:calc(20px + ((16 * 1 * 1px) / 2) - 8px);max-height:calc(20px + calc(calc(16 * 1 * 1px) / 2) - 8px);max-height:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);max-width:calc(20px + ((16 * 1 * 1px) / 2) - 8px);max-width:calc(20px + calc(calc(16 * 1 * 1px) / 2) - 8px);max-width:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);width:auto}.aa-ItemIcon svg{height:20px;height:var(--aa-icon-size);width:20px;width:var(--aa-icon-size)}.aa-ItemIcon--alignTop{align-self:flex-start}.aa-ItemIcon--noBorder{background:none;box-shadow:none}.aa-ItemIcon--picture{height:96px;width:96px}.aa-ItemIcon--picture img{max-height:100%;max-width:100%;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half)}.aa-ItemContent{align-items:center;cursor:pointer;display:grid;gap:calc((16 * 1 * 1px) / 2);gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:calc((16 * 1 * 1px) / 2);grid-gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;line-height:1.25em;overflow:hidden}.aa-ItemContent:empty{display:none}.aa-ItemContent mark{background:none;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:700;font-weight:var(--aa-font-weight-bold)}.aa-ItemContent--dual{display:flex;flex-direction:column;justify-content:space-between;text-align:left}.aa-ItemContent--dual .aa-ItemContentSubtitle,.aa-ItemContent--dual .aa-ItemContentTitle{display:block}.aa-ItemContent--indented{padding-left:calc(20px + (16 * 1 * 1px));padding-left:calc(20px + calc(16 * 1 * 1px));padding-left:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-ItemContentBody{display:grid;gap:calc(((16 * 1 * 1px) / 2)/2);gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(((16 * 1 * 1px) / 2)/2);grid-gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2)}.aa-ItemContentTitle{display:inline-block;margin:0 .5em 0 0;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.aa-ItemContentSubtitle{font-size:.92em}.aa-ItemContentSubtitleIcon:before{border-color:rgba(128, 126, 163,.64);border-color:rgba(var(--aa-muted-color-rgb),.64);border-style:solid;content:"";display:inline-block;left:1px;position:relative;top:-3px}.aa-ItemContentSubtitle--inline .aa-ItemContentSubtitleIcon:before{border-width:0 0 1.5px;margin-left:calc((16 * 1 * 1px) / 2);margin-left:calc(calc(16 * 1 * 1px) / 2);margin-left:var(--aa-spacing-half);margin-right:calc(((16 * 1 * 1px) / 2)/2);margin-right:calc(calc(calc(16 * 1 * 1px) / 2)/2);margin-right:calc(var(--aa-spacing-half)/2);width:calc(((16 * 1 * 1px) / 2) + 2px);width:calc(calc(calc(16 * 1 * 1px) / 2) + 2px);width:calc(var(--aa-spacing-half) + 2px)}.aa-ItemContentSubtitle--standalone{align-items:center;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));display:grid;gap:calc((16 * 1 * 1px) / 2);gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:calc((16 * 1 * 1px) / 2);grid-gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;justify-content:start}.aa-ItemContentSubtitle--standalone .aa-ItemContentSubtitleIcon:before{border-radius:0 0 0 3px;border-width:0 0 1.5px 1.5px;height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);width:calc((16 * 1 * 1px) / 2);width:calc(calc(16 * 1 * 1px) / 2);width:var(--aa-spacing-half)}.aa-ItemContentSubtitleCategory{color:rgba(128, 126, 163,1);color:rgba(var(--aa-muted-color-rgb),1);font-weight:500}.aa-ItemContentDescription{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-size:.85em;max-width:100%;overflow-x:hidden;text-overflow:ellipsis}.aa-ItemContentDescription:empty{display:none}.aa-ItemContentDescription mark{background:rgba(245, 223, 77,0.5);background:rgba(var(--aa-description-highlight-background-color-rgb),var(--aa-description-highlight-background-color-alpha));color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:500;font-weight:var(--aa-font-weight-medium)}.aa-ItemContentDash{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));display:none;opacity:.4}.aa-ItemContentTag{background-color:rgba(62, 52, 211,0.2);background-color:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha));border-radius:3px;margin:0 .4em 0 0;padding:.08em .3em}.aa-ItemLink,.aa-ItemWrapper{align-items:center;color:inherit;display:grid;gap:calc(((16 * 1 * 1px) / 2)/2);gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(((16 * 1 * 1px) / 2)/2);grid-gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2);grid-auto-flow:column;justify-content:space-between;width:100%}.aa-ItemLink{color:inherit;-webkit-text-decoration:none;text-decoration:none}.aa-ItemActions{display:grid;grid-auto-flow:column;height:100%;justify-self:end;margin:0 calc((16 * 1 * 1px)/-3);margin:0 calc(calc(16 * 1 * 1px)/-3);margin:0 calc(var(--aa-spacing)/-3);padding:0 2px 0 0}.aa-ItemActionButton{align-items:center;background:none;border:0;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;flex-shrink:0;padding:0}.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}@media (hover:none) and (pointer:coarse){.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:inherit}}.aa-ItemActionButton svg{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));margin:0;margin:calc(calc(16 * 1 * 1px)/3);margin:calc(var(--aa-spacing)/3);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-action-icon-size)}.aa-ActiveOnly{visibility:hidden}.aa-PanelHeader{align-items:center;background:rgba(62, 52, 211,1);background:rgba(var(--aa-primary-color-rgb),1);color:#fff;display:grid;height:var(--aa-modal-header-height);margin:0;padding:calc((16 * 1 * 1px) / 2) calc(16 * 1 * 1px);padding:calc(calc(16 * 1 * 1px) / 2) calc(16 * 1 * 1px);padding:var(--aa-spacing-half) var(--aa-spacing);position:relative}.aa-PanelHeader:after{background-image:linear-gradient(rgba(255, 255, 255,1),rgba(255, 255, 255,0));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));bottom:calc(((16 * 1 * 1px) / 2)*-1);bottom:calc(calc(calc(16 * 1 * 1px) / 2)*-1);bottom:calc(var(--aa-spacing-half)*-1);content:"";height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));box-shadow:inset 0 1px 0 rgba(128, 126, 163,0.3);box-shadow:inset 0 1px 0 rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;justify-content:space-between;margin:0;padding:calc(16 * 1 * 1px);padding:var(--aa-spacing);position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter:after{background-image:linear-gradient(rgba(255, 255, 255,0),rgba(128, 126, 163,0.6));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha)));content:"";height:calc(16 * 1 * 1px);height:var(--aa-spacing);left:0;opacity:.12;pointer-events:none;position:absolute;right:0;top:calc((16 * 1 * 1px)*-1);top:calc(calc(16 * 1 * 1px)*-1);top:calc(var(--aa-spacing)*-1);z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-DetachedContainer{background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));bottom:0;box-shadow:0 0 0 1px rgba(35, 38, 59, 0.1),\n 0 6px 16px -4px rgba(35, 38, 59, 0.15);box-shadow:var(--aa-panel-shadow);display:flex;flex-direction:column;left:0;margin:0;overflow:hidden;padding:0;position:fixed;right:0;top:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-DetachedContainer:after{height:32px}.aa-DetachedContainer .aa-SourceHeader{margin:calc((16 * 1 * 1px) / 2) 0 calc((16 * 1 * 1px) / 2) 2px;margin:calc(calc(16 * 1 * 1px) / 2) 0 calc(calc(16 * 1 * 1px) / 2) 2px;margin:var(--aa-spacing-half) 0 var(--aa-spacing-half) 2px}.aa-DetachedContainer .aa-Panel{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:0;box-shadow:none;flex-grow:1;margin:0;padding:0;position:relative}.aa-DetachedContainer .aa-PanelLayout{bottom:0;box-shadow:none;left:0;margin:0;max-height:none;overflow-y:auto;position:absolute;right:0;top:0;width:100%}.aa-DetachedFormContainer{border-bottom:1px solid rgba(128, 126, 163,0.3);border-bottom:1px solid rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;flex-direction:row;justify-content:space-between;margin:0;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half)}.aa-DetachedCancelButton{background:none;border:0;border-radius:3px;color:inherit;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));cursor:pointer;font:inherit;margin:0 0 0 calc((16 * 1 * 1px) / 2);margin:0 0 0 calc(calc(16 * 1 * 1px) / 2);margin:0 0 0 var(--aa-spacing-half);padding:0 calc((16 * 1 * 1px) / 2);padding:0 calc(calc(16 * 1 * 1px) / 2);padding:0 var(--aa-spacing-half)}.aa-DetachedCancelButton:focus,.aa-DetachedCancelButton:hover{box-shadow:inset 0 0 0 1px rgba(128, 126, 163,0.3);box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha))}.aa-DetachedContainer--modal{border-radius:6px;bottom:inherit;height:auto;margin:0 auto;max-width:680px;max-width:var(--aa-detached-modal-max-width);position:absolute;top:3%}.aa-DetachedContainer--modal .aa-PanelLayout{max-height:500px;max-height:var(--aa-detached-modal-max-height);padding-bottom:calc((16 * 1 * 1px) / 2);padding-bottom:calc(calc(16 * 1 * 1px) / 2);padding-bottom:var(--aa-spacing-half);position:static}.aa-DetachedContainer--modal .aa-PanelLayout:empty{display:none}.aa-DetachedSearchButton{align-items:center;background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid rgba(128, 126, 163,0.8);border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;font:inherit;font-family:inherit;font-family:var(--aa-font-family);font-size:calc(16 * 1px);font-size:var(--aa-font-size);height:44px;height:var(--aa-search-input-height);margin:0;padding:0 calc(44px/8);padding:0 calc(var(--aa-search-input-height)/8);position:relative;text-align:left;width:100%}.aa-DetachedSearchButton:focus{border-color:rgba(62, 52, 211,1);border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:rgba(62, 52, 211,0.2) 0 0 0 3px,inset rgba(62, 52, 211,0.2) 0 0 0 2px;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 3px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:medium none currentColor}.aa-DetachedSearchButtonIcon{align-items:center;color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);cursor:auto;display:flex;flex-shrink:0;height:100%;justify-content:center;width:calc(20px + (16 * 1 * 1px));width:calc(20px + calc(16 * 1 * 1px));width:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-DetachedSearchButtonQuery{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),1);line-height:1.25em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aa-DetachedSearchButtonPlaceholder[hidden]{display:none}.aa-Detached{height:100vh;overflow:hidden}.aa-DetachedOverlay{background-color:rgba(115, 114, 129,0.4);background-color:rgba(var(--aa-overlay-color-rgb),var(--aa-overlay-color-alpha));height:100vh;left:0;margin:0;padding:0;position:fixed;right:0;top:0;z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-GradientBottom,.aa-GradientTop{height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-GradientTop{background-image:linear-gradient(rgba(255, 255, 255,1),rgba(255, 255, 255,0));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));top:0}.aa-GradientBottom{background-image:linear-gradient(rgba(255, 255, 255,0),rgba(255, 255, 255,1));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-background-color-rgb),1));border-bottom-left-radius:calc((16 * 1 * 1px)/4);border-bottom-left-radius:calc(calc(16 * 1 * 1px)/4);border-bottom-left-radius:calc(var(--aa-spacing)/4);border-bottom-right-radius:calc((16 * 1 * 1px)/4);border-bottom-right-radius:calc(calc(16 * 1 * 1px)/4);border-bottom-right-radius:calc(var(--aa-spacing)/4);bottom:0}@media (hover:none) and (pointer:coarse){.aa-DesktopOnly{display:none}}@media (hover:hover){.aa-TouchOnly{display:none}}',"",{version:3,sources:["webpack://./node_modules/@algolia/autocomplete-theme-classic/dist/theme.min.css"],names:[],mappings:"AAAA,2IAA2I;AAC3I,MAAM,6BAA6B,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,mEAAmE,CAAC,2CAA2C,CAAC,2BAA2B,CAAC,sBAAsB,CAAC,4CAA4C,CAAC,wBAAwB,CAAC,2BAA2B,CAAC,6BAA6B,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,+BAA+B,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,4BAA4B,CAAC,uBAAuB,CAAC,gCAAgC,CAAC,4BAA4B,CAAC,gCAAgC,CAAC,0BAA0B,CAAC,uCAAuC,CAAC,iCAAiC,CAAC,uCAAuC,CAAC,iCAAiC,CAAC,qCAAqC,CAAC,6BAA6B,CAAC,2CAA2C,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,+BAA+B,CAAC,0DAA0D,CAAC,qDAAqD,CAAC,2CAA2C,CAAC,iDAAiD,CAAC,mCAAmC,CAAC,oCAAoC,CAAC,kCAAkC,CAAC,4BAA4B,CAAC,kFAAkF,CAAC,yBAAyB,CAAC,qDAAqD,CAAC,6CAA6C,CAAC,wEAAwE,CAAC,6CAA6C,CAAC,yCAAyC,MAAM,uBAAuB,CAAC,0BAA0B,CAAC,CAAC,gCAAgC,+BAA+B,CAAC,kCAAkC,CAAC,gCAAgC,CAAC,qCAAqC,CAAC,kCAAkC,CAAC,mCAAmC,CAAC,8BAA8B,CAAC,yDAAyD,CAAC,sDAAsD,CAAC,+BAA+B,CAAC,+DAA+D,CAAC,kDAAkD,CAAC,wEAAwE,CAAC,2DAA2D,qBAAqB,CAAC,qDAAqD,wBAAwB,CAAC,+DAA+D,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,wBAAwB,CAAC,6BAA6B,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,SAAS,kBAAkB,CAAC,sCAAsC,CAAC,kGAAkG,CAAC,wCAAwC,CAAC,0FAA0F,CAAC,iBAAiB,CAAC,YAAY,CAAC,eAAe,CAAC,QAAQ,CAAC,iBAAiB,CAAC,UAAU,CAAC,sBAAsB,gCAAgC,CAAC,gDAAgD,CAAC,gFAAgF,CAAC,oKAAoK,CAAC,gCAAgC,CAAC,uBAAuB,kBAAkB,CAAC,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,oCAAoC,CAAC,OAAO,CAAC,+BAA+B,WAAW,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,uCAAuC,yBAAyB,CAAC,yCAAyC,CAAC,WAAW,CAAC,eAAe,CAAC,oCAAoC,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,UAAU,CAAC,+BAA+B,CAAC,sCAAsC,WAAW,CAAC,4CAA4C,CAAC,gDAAgD,CAAC,+CAA+C,CAAC,sCAAsC,CAAC,0CAA0C,CAAC,oCAAoC,CAAC,4CAA4C,CAAC,gDAAgD,CAAC,8DAA8D,CAAC,yCAAyC,sCAAsC,+CAA+C,CAAC,uDAAuD,CAAC,iDAAiD,CAAC,4CAA4C,CAAC,gDAAgD,CAAC,8DAA8D,CAAC,CAAC,iBAAiB,uBAAuB,CAAC,oBAAoB,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,qBAAqB,kBAAkB,CAAC,YAAY,CAAC,sBAAsB,CAAC,6BAA6B,YAAY,CAAC,iBAAiB,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,UAAU,uBAAuB,CAAC,oBAAoB,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,wBAAwB,CAAC,+DAA+D,CAAC,YAAY,CAAC,WAAW,CAAC,oCAAoC,CAAC,SAAS,CAAC,UAAU,CAAC,4BAA4B,6BAA6B,CAAC,iEAAiE,CAAC,SAAS,CAAC,uBAAuB,6BAA6B,CAAC,iEAAiE,CAAC,SAAS,CAAC,gBAAgB,iBAAiB,CAAC,eAAe,CAAC,YAAY,CAAC,mKAAmK,uBAAuB,CAAC,eAAe,CAAC,uBAAuB,kBAAkB,CAAC,YAAY,CAAC,WAAW,CAAC,oCAAoC,CAAC,OAAO,CAAC,gBAAgB,kBAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,6BAA6B,CAAC,iEAAiE,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,CAAC,QAAQ,CAAC,6CAA6C,CAAC,iDAAiD,CAAC,gDAAgD,CAAC,yCAAyC,gBAAgB,6CAA6C,CAAC,iDAAiD,CAAC,gDAAgD,CAAC,CAAC,4CAA4C,wBAAwB,CAAC,+DAA+D,CAAC,wBAAwB,YAAY,CAAC,oBAAoB,gBAAgB,CAAC,wCAAwC,CAAC,UAAU,CAAC,yBAAyB,CAAC,UAAU,sCAAsC,CAAC,sFAAsF,CAAC,oCAAoC,CAAC,wCAAwC,CAAC,uCAAuC,CAAC;0CACzjO,CAAC,iCAAiC,CAAC,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,iDAAiD,CAAC,2CAA2C,UAAU,eAAe,CAAC,CAAC,iBAAiB,uBAAuB,CAAC,oBAAoB,CAAC,eAAe,CAAC,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,WAAW,CAAC,QAAQ,CAAC,gBAAgB,CAAC,qCAAqC,CAAC,eAAe,CAAC,SAAS,CAAC,iBAAiB,CAAC,eAAe,CAAC,kCAAkC,YAAY,CAAC,gCAAgC,CAAC,eAAe,CAAC,SAAS,CAAC,4BAA4B,YAAY,CAAC,6CAA6C,CAAC,eAAe,CAAC,SAAS,CAAC,8BAA8B,YAAY,CAAC,6CAA6C,CAAC,eAAe,CAAC,SAAS,CAAC,8BAA8B,mBAAmB,CAAC,UAAU,CAAC,sBAAsB,QAAQ,CAAC,gBAAgB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,eAAe,CAAC,gCAAgC,CAAC,oCAAoC,CAAC,8BAA8B,CAAC,2DAA2D,CAAC,2NAA2N,CAAC,oBAAoB,CAAC,yCAAyC,UAAU,CAAC,+BAA+B,CAAC,+CAA+C,sCAAsC,CAAC,sHAAsH,CAAC,+CAA+C,sCAAsC,CAAC,sHAAsH,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,sHAAsH,CAAC,sBAAsB,CAAC,WAAW,QAAQ,CAAC,SAAS,CAAC,iBAAiB,CAAC,UAAU,CAAC,iBAAiB,YAAY,CAAC,oBAAoB,aAAa,CAAC,QAAQ,CAAC,0BAA0B,CAAC,yBAAyB,CAAC,SAAS,eAAe,CAAC,QAAQ,CAAC,0BAA0B,SAAS,CAAC,iBAAiB,CAAC,iBAAiB,+DAA+D,CAAC,uEAAuE,CAAC,2DAA2D,CAAC,uBAAuB,YAAY,CAAC,sBAAsB,gCAAgC,CAAC,gFAAgF,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,oBAAoB,CAAC,cAAc,CAAC,eAAe,CAAC,0CAA0C,CAAC,QAAQ,CAAC,sCAAsC,CAAC,0CAA0C,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,YAAY,CAAC,8BAA8B,CAAC,qBAAqB,2CAA2C,CAAC,2DAA2D,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,iBAAiB,CAAC,OAAO,CAAC,4BAA4B,CAAC,gCAAgC,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,uBAAuB,8EAA8E,CAAC,8HAA8H,CAAC,wCAAwC,CAAC,4EAA4E,CAAC,iBAAiB,CAAC,+DAA+D,CAAC,aAAa,CAAC,eAAe,CAAC,eAAe,CAAC,wCAAwC,CAAC,uBAAuB,CAAC,4BAA4B,CAAC,oBAAoB,CAAC,0DAA0D,oCAAoC,CAAC,oDAAoD,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,SAAS,kBAAkB,CAAC,iBAAiB,CAAC,cAAc,CAAC,YAAY,CAAC,mCAAmC,CAAC,uCAAuC,CAAC,sCAAsC,CAAC,oCAAoC,CAAC,4CAA4C,CAAC,sCAAsC,CAAC,6BAA6B,0CAA0C,CAAC,kFAAkF,CAAC,8FAA8F,kBAAkB,CAAC,aAAa,kBAAkB,CAAC,gCAAgC,CAAC,gFAAgF,CAAC,iBAAiB,CAAC,kDAAkD,CAAC,oGAAoG,CAAC,2BAA2B,CAAC,+DAA+D,CAAC,YAAY,CAAC,aAAa,CAAC,cAAc,CAAC,wCAAwC,CAAC,gDAAgD,CAAC,yDAAyD,CAAC,sBAAsB,CAAC,eAAe,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,iBAAiB,CAAC,uCAAuC,CAAC,+CAA+C,CAAC,wDAAwD,CAAC,iBAAiB,WAAW,CAAC,kDAAkD,CAAC,0DAA0D,CAAC,mEAAmE,CAAC,iDAAiD,CAAC,yDAAyD,CAAC,kEAAkE,CAAC,UAAU,CAAC,iBAAiB,WAAW,CAAC,0BAA0B,CAAC,UAAU,CAAC,yBAAyB,CAAC,uBAAuB,qBAAqB,CAAC,uBAAuB,eAAe,CAAC,eAAe,CAAC,sBAAsB,WAAW,CAAC,UAAU,CAAC,0BAA0B,eAAe,CAAC,cAAc,CAAC,gCAAgC,CAAC,oCAAoC,CAAC,8BAA8B,CAAC,gBAAgB,kBAAkB,CAAC,cAAc,CAAC,YAAY,CAAC,4BAA4B,CAAC,gCAAgC,CAAC,iCAAiC,CAAC,qCAAqC,CAAC,+BAA+B,CAAC,0BAA0B,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,eAAe,CAAC,sBAAsB,YAAY,CAAC,qBAAqB,eAAe,CAAC,wBAAwB,CAAC,+DAA+D,CAAC,iBAAiB,CAAC,eAAe,CAAC,sCAAsC,CAAC,sBAAsB,YAAY,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,eAAe,CAAC,yFAAyF,aAAa,CAAC,0BAA0B,wCAAwC,CAAC,4CAA4C,CAAC,0DAA0D,CAAC,oBAAoB,YAAY,CAAC,gCAAgC,CAAC,wCAAwC,CAAC,qCAAqC,CAAC,6CAA6C,CAAC,uCAAuC,CAAC,kCAAkC,CAAC,qBAAqB,oBAAoB,CAAC,iBAAiB,CAAC,cAAc,CAAC,eAAe,CAAC,SAAS,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,wBAAwB,eAAe,CAAC,mCAAmC,oCAAoC,CAAC,gDAAgD,CAAC,kBAAkB,CAAC,UAAU,CAAC,oBAAoB,CAAC,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,mEAAmE,sBAAsB,CAAC,oCAAoC,CAAC,wCAAwC,CAAC,kCAAkC,CAAC,yCAAyC,CAAC,iDAAiD,CAAC,2CAA2C,CAAC,sCAAsC,CAAC,8CAA8C,CAAC,wCAAwC,CAAC,oCAAoC,kBAAkB,CAAC,wBAAwB,CAAC,+DAA+D,CAAC,YAAY,CAAC,4BAA4B,CAAC,gCAAgC,CAAC,iCAAiC,CAAC,qCAAqC,CAAC,+BAA+B,CAAC,0BAA0B,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,uEAAuE,uBAAuB,CAAC,4BAA4B,CAAC,+BAA+B,CAAC,mCAAmC,CAAC,6BAA6B,CAAC,8BAA8B,CAAC,kCAAkC,CAAC,4BAA4B,CAAC,gCAAgC,2BAA2B,CAAC,uCAAuC,CAAC,eAAe,CAAC,2BAA2B,wBAAwB,CAAC,+DAA+D,CAAC,eAAe,CAAC,cAAc,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,iCAAiC,YAAY,CAAC,gCAAgC,iCAAiC,CAAC,4HAA4H,CAAC,wBAAwB,CAAC,+DAA+D,CAAC,iBAAiB,CAAC,eAAe,CAAC,wCAAwC,CAAC,oBAAoB,6BAA6B,CAAC,iEAAiE,CAAC,YAAY,CAAC,UAAU,CAAC,mBAAmB,sCAAsC,CAAC,gFAAgF,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,6BAA6B,kBAAkB,CAAC,aAAa,CAAC,YAAY,CAAC,gCAAgC,CAAC,wCAAwC,CAAC,qCAAqC,CAAC,6CAA6C,CAAC,uCAAuC,CAAC,kCAAkC,CAAC,qBAAqB,CAAC,6BAA6B,CAAC,UAAU,CAAC,aAAa,aAAa,CAAC,4BAA4B,CAAC,oBAAoB,CAAC,gBAAgB,YAAY,CAAC,qBAAqB,CAAC,WAAW,CAAC,gBAAgB,CAAC,gCAAgC,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,iBAAiB,CAAC,qBAAqB,kBAAkB,CAAC,eAAe,CAAC,QAAQ,CAAC,6BAA6B,CAAC,iEAAiE,CAAC,cAAc,CAAC,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,8DAA8D,wBAAwB,CAAC,+DAA+D,CAAC,yCAAyC,8DAA8D,aAAa,CAAC,CAAC,yBAAyB,6BAA6B,CAAC,iEAAiE,CAAC,QAAQ,CAAC,iCAAiC,CAAC,gCAAgC,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,UAAU,CAAC,gCAAgC,CAAC,eAAe,iBAAiB,CAAC,gBAAgB,kBAAkB,CAAC,8BAA8B,CAAC,8CAA8C,CAAC,UAAU,CAAC,YAAY,CAAC,oCAAoC,CAAC,QAAQ,CAAC,mDAAmD,CAAC,uDAAuD,CAAC,gDAAgD,CAAC,iBAAiB,CAAC,sBAAsB,6EAA6E,CAAC,+GAA+G,CAAC,oCAAoC,CAAC,4CAA4C,CAAC,sCAAsC,CAAC,UAAU,CAAC,+BAA+B,CAAC,mCAAmC,CAAC,6BAA6B,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,CAAC,YAAY,CAAC,8BAA8B,CAAC,gBAAgB,sCAAsC,CAAC,sFAAsF,CAAC,gDAAgD,CAAC,kGAAkG,CAAC,YAAY,CAAC,6BAA6B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,YAAY,CAAC,8BAA8B,CAAC,sBAAsB,+EAA+E,CAAC,oIAAoI,CAAC,UAAU,CAAC,yBAAyB,CAAC,wBAAwB,CAAC,MAAM,CAAC,WAAW,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,CAAC,2BAA2B,CAAC,+BAA+B,CAAC,8BAA8B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,sBAAsB,gCAAgC,CAAC,gFAAgF,CAAC,QAAQ,CAAC;0CACl9a,CAAC,iCAAiC,CAAC,YAAY,CAAC,qBAAqB,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,8BAA8B,CAAC,4BAA4B,WAAW,CAAC,uCAAuC,8DAA8D,CAAC,sEAAsE,CAAC,0DAA0D,CAAC,gCAAgC,sCAAsC,CAAC,sFAAsF,CAAC,eAAe,CAAC,eAAe,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,iBAAiB,CAAC,sCAAsC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,eAAe,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,0BAA0B,+CAA+C,CAAC,iGAAiG,CAAC,YAAY,CAAC,kBAAkB,CAAC,6BAA6B,CAAC,QAAQ,CAAC,gCAAgC,CAAC,oCAAoC,CAAC,8BAA8B,CAAC,yBAAyB,eAAe,CAAC,QAAQ,CAAC,iBAAiB,CAAC,aAAa,CAAC,wBAAwB,CAAC,+DAA+D,CAAC,cAAc,CAAC,YAAY,CAAC,qCAAqC,CAAC,yCAAyC,CAAC,mCAAmC,CAAC,kCAAkC,CAAC,sCAAsC,CAAC,gCAAgC,CAAC,8DAA8D,kDAAkD,CAAC,oGAAoG,CAAC,6BAA6B,iBAAiB,CAAC,cAAc,CAAC,WAAW,CAAC,aAAa,CAAC,eAAe,CAAC,4CAA4C,CAAC,iBAAiB,CAAC,MAAM,CAAC,6CAA6C,gBAAgB,CAAC,8CAA8C,CAAC,uCAAuC,CAAC,2CAA2C,CAAC,qCAAqC,CAAC,eAAe,CAAC,mDAAmD,YAAY,CAAC,yBAAyB,kBAAkB,CAAC,sCAAsC,CAAC,kGAAkG,CAAC,wCAAwC,CAAC,0FAA0F,CAAC,iBAAiB,CAAC,6BAA6B,CAAC,iEAAiE,CAAC,cAAc,CAAC,YAAY,CAAC,YAAY,CAAC,mBAAmB,CAAC,iCAAiC,CAAC,wBAAwB,CAAC,6BAA6B,CAAC,WAAW,CAAC,oCAAoC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,+CAA+C,CAAC,iBAAiB,CAAC,eAAe,CAAC,UAAU,CAAC,+BAA+B,gCAAgC,CAAC,gDAAgD,CAAC,gFAAgF,CAAC,oKAAoK,CAAC,gCAAgC,CAAC,6BAA6B,kBAAkB,CAAC,yBAAyB,CAAC,yCAAyC,CAAC,WAAW,CAAC,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,sBAAsB,CAAC,iCAAiC,CAAC,qCAAqC,CAAC,mDAAmD,CAAC,8BAA8B,wBAAwB,CAAC,sCAAsC,CAAC,kBAAkB,CAAC,eAAe,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,4CAA4C,YAAY,CAAC,aAAa,YAAY,CAAC,eAAe,CAAC,oBAAoB,wCAAwC,CAAC,gFAAgF,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,mCAAmC,+BAA+B,CAAC,mCAAmC,CAAC,6BAA6B,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,CAAC,YAAY,CAAC,8BAA8B,CAAC,gBAAgB,6EAA6E,CAAC,+GAA+G,CAAC,KAAK,CAAC,mBAAmB,6EAA6E,CAAC,+GAA+G,CAAC,gDAAgD,CAAC,oDAAoD,CAAC,mDAAmD,CAAC,iDAAiD,CAAC,qDAAqD,CAAC,oDAAoD,CAAC,QAAQ,CAAC,yCAAyC,gBAAgB,YAAY,CAAC,CAAC,qBAAqB,cAAc,YAAY,CAAC",sourcesContent:['/*! @algolia/autocomplete-theme-classic 1.17.0 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */\n:root{--aa-search-input-height:44px;--aa-input-icon-size:20px;--aa-base-unit:16;--aa-spacing-factor:1;--aa-spacing:calc(var(--aa-base-unit)*var(--aa-spacing-factor)*1px);--aa-spacing-half:calc(var(--aa-spacing)/2);--aa-panel-max-height:650px;--aa-base-z-index:9999;--aa-font-size:calc(var(--aa-base-unit)*1px);--aa-font-family:inherit;--aa-font-weight-medium:500;--aa-font-weight-semibold:600;--aa-font-weight-bold:700;--aa-icon-size:20px;--aa-icon-stroke-width:1.6;--aa-icon-color-rgb:119,119,163;--aa-icon-color-alpha:1;--aa-action-icon-size:20px;--aa-text-color-rgb:38,38,39;--aa-text-color-alpha:1;--aa-primary-color-rgb:62,52,211;--aa-primary-color-alpha:0.2;--aa-muted-color-rgb:128,126,163;--aa-muted-color-alpha:0.6;--aa-panel-border-color-rgb:128,126,163;--aa-panel-border-color-alpha:0.3;--aa-input-border-color-rgb:128,126,163;--aa-input-border-color-alpha:0.8;--aa-background-color-rgb:255,255,255;--aa-background-color-alpha:1;--aa-input-background-color-rgb:255,255,255;--aa-input-background-color-alpha:1;--aa-selected-color-rgb:179,173,214;--aa-selected-color-alpha:0.205;--aa-description-highlight-background-color-rgb:245,223,77;--aa-description-highlight-background-color-alpha:0.5;--aa-detached-media-query:(max-width:680px);--aa-detached-modal-media-query:(min-width:680px);--aa-detached-modal-max-width:680px;--aa-detached-modal-max-height:500px;--aa-overlay-color-rgb:115,114,129;--aa-overlay-color-alpha:0.4;--aa-panel-shadow:0 0 0 1px rgba(35,38,59,0.1),0 6px 16px -4px rgba(35,38,59,0.15);--aa-scrollbar-width:13px;--aa-scrollbar-track-background-color-rgb:234,234,234;--aa-scrollbar-track-background-color-alpha:1;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb);--aa-scrollbar-thumb-background-color-alpha:1}@media (hover:none) and (pointer:coarse){:root{--aa-spacing-factor:1.2;--aa-action-icon-size:22px}}body.dark,body[data-theme=dark]{--aa-text-color-rgb:183,192,199;--aa-primary-color-rgb:146,138,255;--aa-muted-color-rgb:146,138,255;--aa-input-background-color-rgb:0,3,9;--aa-background-color-rgb:21,24,42;--aa-selected-color-rgb:146,138,255;--aa-selected-color-alpha:0.25;--aa-description-highlight-background-color-rgb:0 255 255;--aa-description-highlight-background-color-alpha:0.25;--aa-icon-color-rgb:119,119,163;--aa-panel-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--aa-scrollbar-track-background-color-rgb:44,46,64;--aa-scrollbar-thumb-background-color-rgb:var(--aa-background-color-rgb)}.aa-Autocomplete *,.aa-DetachedFormContainer *,.aa-Panel *{box-sizing:border-box}.aa-Autocomplete,.aa-DetachedFormContainer,.aa-Panel{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-family:inherit;font-family:var(--aa-font-family);font-size:calc(16 * 1px);font-size:var(--aa-font-size);font-weight:400;line-height:1em;margin:0;padding:0;text-align:left}.aa-Form{align-items:center;background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid rgba(128, 126, 163,0.8);border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;display:flex;line-height:1em;margin:0;position:relative;width:100%}.aa-Form:focus-within{border-color:rgba(62, 52, 211,1);border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:rgba(62, 52, 211,0.2) 0 0 0 2px,inset rgba(62, 52, 211,0.2) 0 0 0 2px;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:medium none currentColor}.aa-InputWrapperPrefix{align-items:center;display:flex;flex-shrink:0;height:44px;height:var(--aa-search-input-height);order:1}.aa-Label,.aa-LoadingIndicator{cursor:auto;flex-shrink:0;height:100%;padding:0;text-align:left}.aa-Label svg,.aa-LoadingIndicator svg{color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);height:auto;max-height:20px;max-height:var(--aa-input-icon-size);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-input-icon-size)}.aa-LoadingIndicator,.aa-SubmitButton{height:100%;padding-left:calc((16 * 1 * 1px)*0.75 - 1px);padding-left:calc(calc(16 * 1 * 1px)*0.75 - 1px);padding-left:calc(var(--aa-spacing)*0.75 - 1px);padding-right:calc((16 * 1 * 1px) / 2);padding-right:calc(calc(16 * 1 * 1px) / 2);padding-right:var(--aa-spacing-half);width:calc((16 * 1 * 1px)*1.75 + 20px - 1px);width:calc(calc(16 * 1 * 1px)*1.75 + 20px - 1px);width:calc(var(--aa-spacing)*1.75 + var(--aa-icon-size) - 1px)}@media (hover:none) and (pointer:coarse){.aa-LoadingIndicator,.aa-SubmitButton{padding-left:calc(((16 * 1 * 1px) / 2)/2 - 1px);padding-left:calc(calc(calc(16 * 1 * 1px) / 2)/2 - 1px);padding-left:calc(var(--aa-spacing-half)/2 - 1px);width:calc(20px + (16 * 1 * 1px)*1.25 - 1px);width:calc(20px + calc(16 * 1 * 1px)*1.25 - 1px);width:calc(var(--aa-icon-size) + var(--aa-spacing)*1.25 - 1px)}}.aa-SubmitButton{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;margin:0}.aa-LoadingIndicator{align-items:center;display:flex;justify-content:center}.aa-LoadingIndicator[hidden]{display:none}.aa-InputWrapper{order:3;position:relative;width:100%}.aa-Input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font:inherit;height:44px;height:var(--aa-search-input-height);padding:0;width:100%}.aa-Input::-moz-placeholder{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input::placeholder{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));opacity:1}.aa-Input:focus{border-color:none;box-shadow:none;outline:none}.aa-Input::-webkit-search-cancel-button,.aa-Input::-webkit-search-decoration,.aa-Input::-webkit-search-results-button,.aa-Input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none}.aa-InputWrapperSuffix{align-items:center;display:flex;height:44px;height:var(--aa-search-input-height);order:4}.aa-ClearButton{align-items:center;background:none;border:0;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;height:100%;margin:0;padding:0 calc((16 * 1 * 1px)*0.83333 - .5px);padding:0 calc(calc(16 * 1 * 1px)*0.83333 - .5px);padding:0 calc(var(--aa-spacing)*0.83333 - .5px)}@media (hover:none) and (pointer:coarse){.aa-ClearButton{padding:0 calc((16 * 1 * 1px)*0.66667 - .5px);padding:0 calc(calc(16 * 1 * 1px)*0.66667 - .5px);padding:0 calc(var(--aa-spacing)*0.66667 - .5px)}}.aa-ClearButton:focus,.aa-ClearButton:hover{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}.aa-ClearButton[hidden]{display:none}.aa-ClearButton svg{stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-icon-size)}.aa-Panel{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:calc((16 * 1 * 1px)/4);border-radius:calc(calc(16 * 1 * 1px)/4);border-radius:calc(var(--aa-spacing)/4);box-shadow:0 0 0 1px rgba(35, 38, 59, 0.1),\n 0 6px 16px -4px rgba(35, 38, 59, 0.15);box-shadow:var(--aa-panel-shadow);margin:8px 0 0;overflow:hidden;position:absolute;transition:opacity .2s ease-in,filter .2s ease-in}@media screen and (prefers-reduced-motion){.aa-Panel{transition:none}}.aa-Panel button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;margin:0;padding:0}.aa-PanelLayout{height:100%;margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-y:auto;padding:0;position:relative;text-align:left}.aa-PanelLayoutColumns--twoGolden{display:grid;grid-template-columns:39.2% auto;overflow:hidden;padding:0}.aa-PanelLayoutColumns--two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;padding:0}.aa-PanelLayoutColumns--three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;padding:0}.aa-Panel--stalled .aa-Source{filter:grayscale(1);opacity:.8}.aa-Panel--scrollable{margin:0;max-height:650px;max-height:var(--aa-panel-max-height);overflow-x:hidden;overflow-y:auto;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half);scrollbar-color:rgba(255, 255, 255,1) rgba(234, 234, 234,1);scrollbar-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha)) rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));scrollbar-width:thin}.aa-Panel--scrollable::-webkit-scrollbar{width:13px;width:var(--aa-scrollbar-width)}.aa-Panel--scrollable::-webkit-scrollbar-track{background-color:rgba(234, 234, 234,1);background-color:rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha))}.aa-Panel--scrollable::-webkit-scrollbar-thumb{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-scrollbar-thumb-background-color-rgb),var(--aa-scrollbar-thumb-background-color-alpha));border-radius:9999px;border:3px solid rgba(234, 234, 234,1);border:3px solid rgba(var(--aa-scrollbar-track-background-color-rgb),var(--aa-scrollbar-track-background-color-alpha));border-right-width:2px}.aa-Source{margin:0;padding:0;position:relative;width:100%}.aa-Source:empty{display:none}.aa-SourceNoResults{font-size:1em;margin:0;padding:calc(16 * 1 * 1px);padding:var(--aa-spacing)}.aa-List{list-style:none;margin:0}.aa-List,.aa-SourceHeader{padding:0;position:relative}.aa-SourceHeader{margin:calc((16 * 1 * 1px) / 2) .5em calc((16 * 1 * 1px) / 2) 0;margin:calc(calc(16 * 1 * 1px) / 2) .5em calc(calc(16 * 1 * 1px) / 2) 0;margin:var(--aa-spacing-half) .5em var(--aa-spacing-half) 0}.aa-SourceHeader:empty{display:none}.aa-SourceHeaderTitle{background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);display:inline-block;font-size:.8em;font-weight:600;font-weight:var(--aa-font-weight-semibold);margin:0;padding:0 calc((16 * 1 * 1px) / 2) 0 0;padding:0 calc(calc(16 * 1 * 1px) / 2) 0 0;padding:0 var(--aa-spacing-half) 0 0;position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-SourceHeaderLine{border-bottom:1px solid rgba(62, 52, 211,1);border-bottom:1px solid rgba(var(--aa-primary-color-rgb),1);display:block;height:2px;left:0;margin:0;opacity:.3;padding:0;position:absolute;right:0;top:calc((16 * 1 * 1px) / 2);top:calc(calc(16 * 1 * 1px) / 2);top:var(--aa-spacing-half);z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-SourceFooterSeeAll{background:linear-gradient(180deg,rgba(255, 255, 255,1),rgba(128,126,163,.14));background:linear-gradient(180deg,rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha)),rgba(128,126,163,.14));border:1px solid rgba(128, 126, 163,0.6);border:1px solid rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));border-radius:5px;box-shadow:inset 0 0 2px #fff,0 2px 2px -1px rgba(76,69,88,.15);color:inherit;font-size:.95em;font-weight:500;font-weight:var(--aa-font-weight-medium);padding:.475em 1em .6em;-webkit-text-decoration:none;text-decoration:none}.aa-SourceFooterSeeAll:focus,.aa-SourceFooterSeeAll:hover{border:1px solid rgba(62, 52, 211,1);border:1px solid rgba(var(--aa-primary-color-rgb),1);color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1)}.aa-Item{align-items:center;border-radius:3px;cursor:pointer;display:grid;min-height:calc((16 * 1 * 1px)*2.5);min-height:calc(calc(16 * 1 * 1px)*2.5);min-height:calc(var(--aa-spacing)*2.5);padding:calc(((16 * 1 * 1px) / 2)/2);padding:calc(calc(calc(16 * 1 * 1px) / 2)/2);padding:calc(var(--aa-spacing-half)/2)}.aa-Item[aria-selected=true]{background-color:rgba(179, 173, 214,0.205);background-color:rgba(var(--aa-selected-color-rgb),var(--aa-selected-color-alpha))}.aa-Item[aria-selected=true] .aa-ActiveOnly,.aa-Item[aria-selected=true] .aa-ItemActionButton{visibility:visible}.aa-ItemIcon{align-items:center;background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:3px;box-shadow:inset 0 0 0 1px rgba(128, 126, 163,0.3);box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));color:rgba(119, 119, 163,1);color:rgba(var(--aa-icon-color-rgb),var(--aa-icon-color-alpha));display:flex;flex-shrink:0;font-size:.7em;height:calc(20px + ((16 * 1 * 1px) / 2));height:calc(20px + calc(calc(16 * 1 * 1px) / 2));height:calc(var(--aa-icon-size) + var(--aa-spacing-half));justify-content:center;overflow:hidden;stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);text-align:center;width:calc(20px + ((16 * 1 * 1px) / 2));width:calc(20px + calc(calc(16 * 1 * 1px) / 2));width:calc(var(--aa-icon-size) + var(--aa-spacing-half))}.aa-ItemIcon img{height:auto;max-height:calc(20px + ((16 * 1 * 1px) / 2) - 8px);max-height:calc(20px + calc(calc(16 * 1 * 1px) / 2) - 8px);max-height:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);max-width:calc(20px + ((16 * 1 * 1px) / 2) - 8px);max-width:calc(20px + calc(calc(16 * 1 * 1px) / 2) - 8px);max-width:calc(var(--aa-icon-size) + var(--aa-spacing-half) - 8px);width:auto}.aa-ItemIcon svg{height:20px;height:var(--aa-icon-size);width:20px;width:var(--aa-icon-size)}.aa-ItemIcon--alignTop{align-self:flex-start}.aa-ItemIcon--noBorder{background:none;box-shadow:none}.aa-ItemIcon--picture{height:96px;width:96px}.aa-ItemIcon--picture img{max-height:100%;max-width:100%;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half)}.aa-ItemContent{align-items:center;cursor:pointer;display:grid;gap:calc((16 * 1 * 1px) / 2);gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:calc((16 * 1 * 1px) / 2);grid-gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;line-height:1.25em;overflow:hidden}.aa-ItemContent:empty{display:none}.aa-ItemContent mark{background:none;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:700;font-weight:var(--aa-font-weight-bold)}.aa-ItemContent--dual{display:flex;flex-direction:column;justify-content:space-between;text-align:left}.aa-ItemContent--dual .aa-ItemContentSubtitle,.aa-ItemContent--dual .aa-ItemContentTitle{display:block}.aa-ItemContent--indented{padding-left:calc(20px + (16 * 1 * 1px));padding-left:calc(20px + calc(16 * 1 * 1px));padding-left:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-ItemContentBody{display:grid;gap:calc(((16 * 1 * 1px) / 2)/2);gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(((16 * 1 * 1px) / 2)/2);grid-gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2)}.aa-ItemContentTitle{display:inline-block;margin:0 .5em 0 0;max-width:100%;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap}.aa-ItemContentSubtitle{font-size:.92em}.aa-ItemContentSubtitleIcon:before{border-color:rgba(128, 126, 163,.64);border-color:rgba(var(--aa-muted-color-rgb),.64);border-style:solid;content:"";display:inline-block;left:1px;position:relative;top:-3px}.aa-ItemContentSubtitle--inline .aa-ItemContentSubtitleIcon:before{border-width:0 0 1.5px;margin-left:calc((16 * 1 * 1px) / 2);margin-left:calc(calc(16 * 1 * 1px) / 2);margin-left:var(--aa-spacing-half);margin-right:calc(((16 * 1 * 1px) / 2)/2);margin-right:calc(calc(calc(16 * 1 * 1px) / 2)/2);margin-right:calc(var(--aa-spacing-half)/2);width:calc(((16 * 1 * 1px) / 2) + 2px);width:calc(calc(calc(16 * 1 * 1px) / 2) + 2px);width:calc(var(--aa-spacing-half) + 2px)}.aa-ItemContentSubtitle--standalone{align-items:center;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));display:grid;gap:calc((16 * 1 * 1px) / 2);gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:calc((16 * 1 * 1px) / 2);grid-gap:calc(calc(16 * 1 * 1px) / 2);grid-gap:var(--aa-spacing-half);gap:var(--aa-spacing-half);grid-auto-flow:column;justify-content:start}.aa-ItemContentSubtitle--standalone .aa-ItemContentSubtitleIcon:before{border-radius:0 0 0 3px;border-width:0 0 1.5px 1.5px;height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);width:calc((16 * 1 * 1px) / 2);width:calc(calc(16 * 1 * 1px) / 2);width:var(--aa-spacing-half)}.aa-ItemContentSubtitleCategory{color:rgba(128, 126, 163,1);color:rgba(var(--aa-muted-color-rgb),1);font-weight:500}.aa-ItemContentDescription{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-size:.85em;max-width:100%;overflow-x:hidden;text-overflow:ellipsis}.aa-ItemContentDescription:empty{display:none}.aa-ItemContentDescription mark{background:rgba(245, 223, 77,0.5);background:rgba(var(--aa-description-highlight-background-color-rgb),var(--aa-description-highlight-background-color-alpha));color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));font-style:normal;font-weight:500;font-weight:var(--aa-font-weight-medium)}.aa-ItemContentDash{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));display:none;opacity:.4}.aa-ItemContentTag{background-color:rgba(62, 52, 211,0.2);background-color:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha));border-radius:3px;margin:0 .4em 0 0;padding:.08em .3em}.aa-ItemLink,.aa-ItemWrapper{align-items:center;color:inherit;display:grid;gap:calc(((16 * 1 * 1px) / 2)/2);gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(((16 * 1 * 1px) / 2)/2);grid-gap:calc(calc(calc(16 * 1 * 1px) / 2)/2);grid-gap:calc(var(--aa-spacing-half)/2);gap:calc(var(--aa-spacing-half)/2);grid-auto-flow:column;justify-content:space-between;width:100%}.aa-ItemLink{color:inherit;-webkit-text-decoration:none;text-decoration:none}.aa-ItemActions{display:grid;grid-auto-flow:column;height:100%;justify-self:end;margin:0 calc((16 * 1 * 1px)/-3);margin:0 calc(calc(16 * 1 * 1px)/-3);margin:0 calc(var(--aa-spacing)/-3);padding:0 2px 0 0}.aa-ItemActionButton{align-items:center;background:none;border:0;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;flex-shrink:0;padding:0}.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha))}@media (hover:none) and (pointer:coarse){.aa-ItemActionButton:focus svg,.aa-ItemActionButton:hover svg{color:inherit}}.aa-ItemActionButton svg{color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));margin:0;margin:calc(calc(16 * 1 * 1px)/3);margin:calc(var(--aa-spacing)/3);stroke-width:1.6;stroke-width:var(--aa-icon-stroke-width);width:20px;width:var(--aa-action-icon-size)}.aa-ActiveOnly{visibility:hidden}.aa-PanelHeader{align-items:center;background:rgba(62, 52, 211,1);background:rgba(var(--aa-primary-color-rgb),1);color:#fff;display:grid;height:var(--aa-modal-header-height);margin:0;padding:calc((16 * 1 * 1px) / 2) calc(16 * 1 * 1px);padding:calc(calc(16 * 1 * 1px) / 2) calc(16 * 1 * 1px);padding:var(--aa-spacing-half) var(--aa-spacing);position:relative}.aa-PanelHeader:after{background-image:linear-gradient(rgba(255, 255, 255,1),rgba(255, 255, 255,0));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));bottom:calc(((16 * 1 * 1px) / 2)*-1);bottom:calc(calc(calc(16 * 1 * 1px) / 2)*-1);bottom:calc(var(--aa-spacing-half)*-1);content:"";height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));box-shadow:inset 0 1px 0 rgba(128, 126, 163,0.3);box-shadow:inset 0 1px 0 rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;justify-content:space-between;margin:0;padding:calc(16 * 1 * 1px);padding:var(--aa-spacing);position:relative;z-index:9999;z-index:var(--aa-base-z-index)}.aa-PanelFooter:after{background-image:linear-gradient(rgba(255, 255, 255,0),rgba(128, 126, 163,0.6));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha)));content:"";height:calc(16 * 1 * 1px);height:var(--aa-spacing);left:0;opacity:.12;pointer-events:none;position:absolute;right:0;top:calc((16 * 1 * 1px)*-1);top:calc(calc(16 * 1 * 1px)*-1);top:calc(var(--aa-spacing)*-1);z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-DetachedContainer{background:rgba(255, 255, 255,1);background:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));bottom:0;box-shadow:0 0 0 1px rgba(35, 38, 59, 0.1),\n 0 6px 16px -4px rgba(35, 38, 59, 0.15);box-shadow:var(--aa-panel-shadow);display:flex;flex-direction:column;left:0;margin:0;overflow:hidden;padding:0;position:fixed;right:0;top:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-DetachedContainer:after{height:32px}.aa-DetachedContainer .aa-SourceHeader{margin:calc((16 * 1 * 1px) / 2) 0 calc((16 * 1 * 1px) / 2) 2px;margin:calc(calc(16 * 1 * 1px) / 2) 0 calc(calc(16 * 1 * 1px) / 2) 2px;margin:var(--aa-spacing-half) 0 var(--aa-spacing-half) 2px}.aa-DetachedContainer .aa-Panel{background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-background-color-rgb),var(--aa-background-color-alpha));border-radius:0;box-shadow:none;flex-grow:1;margin:0;padding:0;position:relative}.aa-DetachedContainer .aa-PanelLayout{bottom:0;box-shadow:none;left:0;margin:0;max-height:none;overflow-y:auto;position:absolute;right:0;top:0;width:100%}.aa-DetachedFormContainer{border-bottom:1px solid rgba(128, 126, 163,0.3);border-bottom:1px solid rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha));display:flex;flex-direction:row;justify-content:space-between;margin:0;padding:calc((16 * 1 * 1px) / 2);padding:calc(calc(16 * 1 * 1px) / 2);padding:var(--aa-spacing-half)}.aa-DetachedCancelButton{background:none;border:0;border-radius:3px;color:inherit;color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),var(--aa-text-color-alpha));cursor:pointer;font:inherit;margin:0 0 0 calc((16 * 1 * 1px) / 2);margin:0 0 0 calc(calc(16 * 1 * 1px) / 2);margin:0 0 0 var(--aa-spacing-half);padding:0 calc((16 * 1 * 1px) / 2);padding:0 calc(calc(16 * 1 * 1px) / 2);padding:0 var(--aa-spacing-half)}.aa-DetachedCancelButton:focus,.aa-DetachedCancelButton:hover{box-shadow:inset 0 0 0 1px rgba(128, 126, 163,0.3);box-shadow:inset 0 0 0 1px rgba(var(--aa-panel-border-color-rgb),var(--aa-panel-border-color-alpha))}.aa-DetachedContainer--modal{border-radius:6px;bottom:inherit;height:auto;margin:0 auto;max-width:680px;max-width:var(--aa-detached-modal-max-width);position:absolute;top:3%}.aa-DetachedContainer--modal .aa-PanelLayout{max-height:500px;max-height:var(--aa-detached-modal-max-height);padding-bottom:calc((16 * 1 * 1px) / 2);padding-bottom:calc(calc(16 * 1 * 1px) / 2);padding-bottom:var(--aa-spacing-half);position:static}.aa-DetachedContainer--modal .aa-PanelLayout:empty{display:none}.aa-DetachedSearchButton{align-items:center;background-color:rgba(255, 255, 255,1);background-color:rgba(var(--aa-input-background-color-rgb),var(--aa-input-background-color-alpha));border:1px solid rgba(128, 126, 163,0.8);border:1px solid rgba(var(--aa-input-border-color-rgb),var(--aa-input-border-color-alpha));border-radius:3px;color:rgba(128, 126, 163,0.6);color:rgba(var(--aa-muted-color-rgb),var(--aa-muted-color-alpha));cursor:pointer;display:flex;font:inherit;font-family:inherit;font-family:var(--aa-font-family);font-size:calc(16 * 1px);font-size:var(--aa-font-size);height:44px;height:var(--aa-search-input-height);margin:0;padding:0 calc(44px/8);padding:0 calc(var(--aa-search-input-height)/8);position:relative;text-align:left;width:100%}.aa-DetachedSearchButton:focus{border-color:rgba(62, 52, 211,1);border-color:rgba(var(--aa-primary-color-rgb),1);box-shadow:rgba(62, 52, 211,0.2) 0 0 0 3px,inset rgba(62, 52, 211,0.2) 0 0 0 2px;box-shadow:rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 3px,inset rgba(var(--aa-primary-color-rgb),var(--aa-primary-color-alpha)) 0 0 0 2px;outline:medium none currentColor}.aa-DetachedSearchButtonIcon{align-items:center;color:rgba(62, 52, 211,1);color:rgba(var(--aa-primary-color-rgb),1);cursor:auto;display:flex;flex-shrink:0;height:100%;justify-content:center;width:calc(20px + (16 * 1 * 1px));width:calc(20px + calc(16 * 1 * 1px));width:calc(var(--aa-icon-size) + var(--aa-spacing))}.aa-DetachedSearchButtonQuery{color:rgba(38, 38, 39,1);color:rgba(var(--aa-text-color-rgb),1);line-height:1.25em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aa-DetachedSearchButtonPlaceholder[hidden]{display:none}.aa-Detached{height:100vh;overflow:hidden}.aa-DetachedOverlay{background-color:rgba(115, 114, 129,0.4);background-color:rgba(var(--aa-overlay-color-rgb),var(--aa-overlay-color-alpha));height:100vh;left:0;margin:0;padding:0;position:fixed;right:0;top:0;z-index:calc(9999 - 1);z-index:calc(var(--aa-base-z-index) - 1)}.aa-GradientBottom,.aa-GradientTop{height:calc((16 * 1 * 1px) / 2);height:calc(calc(16 * 1 * 1px) / 2);height:var(--aa-spacing-half);left:0;pointer-events:none;position:absolute;right:0;z-index:9999;z-index:var(--aa-base-z-index)}.aa-GradientTop{background-image:linear-gradient(rgba(255, 255, 255,1),rgba(255, 255, 255,0));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),1),rgba(var(--aa-background-color-rgb),0));top:0}.aa-GradientBottom{background-image:linear-gradient(rgba(255, 255, 255,0),rgba(255, 255, 255,1));background-image:linear-gradient(rgba(var(--aa-background-color-rgb),0),rgba(var(--aa-background-color-rgb),1));border-bottom-left-radius:calc((16 * 1 * 1px)/4);border-bottom-left-radius:calc(calc(16 * 1 * 1px)/4);border-bottom-left-radius:calc(var(--aa-spacing)/4);border-bottom-right-radius:calc((16 * 1 * 1px)/4);border-bottom-right-radius:calc(calc(16 * 1 * 1px)/4);border-bottom-right-radius:calc(var(--aa-spacing)/4);bottom:0}@media (hover:none) and (pointer:coarse){.aa-DesktopOnly{display:none}}@media (hover:hover){.aa-TouchOnly{display:none}}'],sourceRoot:""}]);const s=o},2602:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(7537),a=n.n(r),i=n(3645),o=n.n(i)()(a());o.push([t.id,"/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */\n\n/*\nDocument\n========\n*/\n\n/**\nUse a better box model (opinionated).\n*/\n\n*,\n::before,\n::after {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\t/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */\n\tfont-family:\n\t\tsystem-ui,\n\t\t'Segoe UI',\n\t\tRoboto,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\t'Apple Color Emoji',\n\t\t'Segoe UI Emoji';\n\tline-height: 1.15; /* 1. Correct the line height in all browsers. */\n\t-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */\n\t-moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */\n\ttab-size: 4; /* 3 */\n}\n\n/*\nSections\n========\n*/\n\nbody {\n\tmargin: 0; /* Remove the margin in all browsers. */\n}\n\n/*\nGrouping content\n================\n*/\n\n/**\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n*/\n\nhr {\n\theight: 0; /* 1 */\n\tcolor: inherit; /* 2 */\n}\n\n/*\nText-level semantics\n====================\n*/\n\n/**\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr[title] {\n\ttext-decoration: underline dotted;\n}\n\n/**\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n\tfont-weight: bolder;\n}\n\n/**\n1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)\n2. Correct the odd 'em' font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n\tfont-family:\n\t\tui-monospace,\n\t\tSFMono-Regular,\n\t\tConsolas,\n\t\t'Liberation Mono',\n\t\tMenlo,\n\t\tmonospace; /* 1 */\n\tfont-size: 1em; /* 2 */\n}\n\n/**\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n\tfont-size: 80%;\n}\n\n/**\nPrevent 'sub' and 'sup' elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n\tfont-size: 75%;\n\tline-height: 0;\n\tposition: relative;\n\tvertical-align: baseline;\n}\n\nsub {\n\tbottom: -0.25em;\n}\n\nsup {\n\ttop: -0.5em;\n}\n\n/*\nTabular data\n============\n*/\n\n/**\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n*/\n\ntable {\n\ttext-indent: 0; /* 1 */\n\tborder-color: inherit; /* 2 */\n}\n\n/*\nForms\n=====\n*/\n\n/**\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n\tfont-family: inherit; /* 1 */\n\tfont-size: 100%; /* 1 */\n\tline-height: 1.15; /* 1 */\n\tmargin: 0; /* 2 */\n}\n\n/**\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n\ttext-transform: none;\n}\n\n/**\nCorrect the inability to style clickable types in iOS and Safari.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n\t-webkit-appearance: button;\n}\n\n/**\nRemove the inner border and padding in Firefox.\n*/\n\n::-moz-focus-inner {\n\tborder-style: none;\n\tpadding: 0;\n}\n\n/**\nRestore the focus styles unset by the previous rule.\n*/\n\n:-moz-focusring {\n\toutline: 1px dotted ButtonText;\n}\n\n/**\nRemove the additional ':invalid' styles in Firefox.\nSee: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737\n*/\n\n:-moz-ui-invalid {\n\tbox-shadow: none;\n}\n\n/**\nRemove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.\n*/\n\nlegend {\n\tpadding: 0;\n}\n\n/**\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n\tvertical-align: baseline;\n}\n\n/**\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n\theight: auto;\n}\n\n/**\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n\t-webkit-appearance: textfield; /* 1 */\n\toutline-offset: -2px; /* 2 */\n}\n\n/**\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n\t-webkit-appearance: none;\n}\n\n/**\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to 'inherit' in Safari.\n*/\n\n::-webkit-file-upload-button {\n\t-webkit-appearance: button; /* 1 */\n\tfont: inherit; /* 2 */\n}\n\n/*\nInteractive\n===========\n*/\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n\tdisplay: list-item;\n}\n","",{version:3,sources:["webpack://./node_modules/modern-normalize/modern-normalize.css"],names:[],mappings:"AAAA,8FAA8F;;AAE9F;;;CAGC;;AAED;;CAEC;;AAED;;;CAGC,sBAAsB;AACvB;;AAEA;CACC,sHAAsH;CACtH;;;;;;;;kBAQiB;CACjB,iBAAiB,EAAE,gDAAgD;CACnE,8BAA8B,EAAE,0EAA0E;CAC1G,gBAAgB,EAAE,mDAAmD;CACrE,WAAW,EAAE,MAAM;AACpB;;AAEA;;;CAGC;;AAED;CACC,SAAS,EAAE,uCAAuC;AACnD;;AAEA;;;CAGC;;AAED;;;CAGC;;AAED;CACC,SAAS,EAAE,MAAM;CACjB,cAAc,EAAE,MAAM;AACvB;;AAEA;;;CAGC;;AAED;;CAEC;;AAED;CACC,iCAAiC;AAClC;;AAEA;;CAEC;;AAED;;CAEC,mBAAmB;AACpB;;AAEA;;;CAGC;;AAED;;;;CAIC;;;;;;WAMU,EAAE,MAAM;CAClB,cAAc,EAAE,MAAM;AACvB;;AAEA;;CAEC;;AAED;CACC,cAAc;AACf;;AAEA;;CAEC;;AAED;;CAEC,cAAc;CACd,cAAc;CACd,kBAAkB;CAClB,wBAAwB;AACzB;;AAEA;CACC,eAAe;AAChB;;AAEA;CACC,WAAW;AACZ;;AAEA;;;CAGC;;AAED;;;CAGC;;AAED;CACC,cAAc,EAAE,MAAM;CACtB,qBAAqB,EAAE,MAAM;AAC9B;;AAEA;;;CAGC;;AAED;;;CAGC;;AAED;;;;;CAKC,oBAAoB,EAAE,MAAM;CAC5B,eAAe,EAAE,MAAM;CACvB,iBAAiB,EAAE,MAAM;CACzB,SAAS,EAAE,MAAM;AAClB;;AAEA;;CAEC;;AAED;;CAEC,oBAAoB;AACrB;;AAEA;;CAEC;;AAED;;;;CAIC,0BAA0B;AAC3B;;AAEA;;CAEC;;AAED;CACC,kBAAkB;CAClB,UAAU;AACX;;AAEA;;CAEC;;AAED;CACC,8BAA8B;AAC/B;;AAEA;;;CAGC;;AAED;CACC,gBAAgB;AACjB;;AAEA;;CAEC;;AAED;CACC,UAAU;AACX;;AAEA;;CAEC;;AAED;CACC,wBAAwB;AACzB;;AAEA;;CAEC;;AAED;;CAEC,YAAY;AACb;;AAEA;;;CAGC;;AAED;CACC,6BAA6B,EAAE,MAAM;CACrC,oBAAoB,EAAE,MAAM;AAC7B;;AAEA;;CAEC;;AAED;CACC,wBAAwB;AACzB;;AAEA;;;CAGC;;AAED;CACC,0BAA0B,EAAE,MAAM;CAClC,aAAa,EAAE,MAAM;AACtB;;AAEA;;;CAGC;;AAED;;CAEC;;AAED;CACC,kBAAkB;AACnB",sourcesContent:["/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */\n\n/*\nDocument\n========\n*/\n\n/**\nUse a better box model (opinionated).\n*/\n\n*,\n::before,\n::after {\n\tbox-sizing: border-box;\n}\n\nhtml {\n\t/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */\n\tfont-family:\n\t\tsystem-ui,\n\t\t'Segoe UI',\n\t\tRoboto,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\t'Apple Color Emoji',\n\t\t'Segoe UI Emoji';\n\tline-height: 1.15; /* 1. Correct the line height in all browsers. */\n\t-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */\n\t-moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */\n\ttab-size: 4; /* 3 */\n}\n\n/*\nSections\n========\n*/\n\nbody {\n\tmargin: 0; /* Remove the margin in all browsers. */\n}\n\n/*\nGrouping content\n================\n*/\n\n/**\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n*/\n\nhr {\n\theight: 0; /* 1 */\n\tcolor: inherit; /* 2 */\n}\n\n/*\nText-level semantics\n====================\n*/\n\n/**\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr[title] {\n\ttext-decoration: underline dotted;\n}\n\n/**\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n\tfont-weight: bolder;\n}\n\n/**\n1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)\n2. Correct the odd 'em' font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n\tfont-family:\n\t\tui-monospace,\n\t\tSFMono-Regular,\n\t\tConsolas,\n\t\t'Liberation Mono',\n\t\tMenlo,\n\t\tmonospace; /* 1 */\n\tfont-size: 1em; /* 2 */\n}\n\n/**\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n\tfont-size: 80%;\n}\n\n/**\nPrevent 'sub' and 'sup' elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n\tfont-size: 75%;\n\tline-height: 0;\n\tposition: relative;\n\tvertical-align: baseline;\n}\n\nsub {\n\tbottom: -0.25em;\n}\n\nsup {\n\ttop: -0.5em;\n}\n\n/*\nTabular data\n============\n*/\n\n/**\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n*/\n\ntable {\n\ttext-indent: 0; /* 1 */\n\tborder-color: inherit; /* 2 */\n}\n\n/*\nForms\n=====\n*/\n\n/**\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n\tfont-family: inherit; /* 1 */\n\tfont-size: 100%; /* 1 */\n\tline-height: 1.15; /* 1 */\n\tmargin: 0; /* 2 */\n}\n\n/**\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n\ttext-transform: none;\n}\n\n/**\nCorrect the inability to style clickable types in iOS and Safari.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n\t-webkit-appearance: button;\n}\n\n/**\nRemove the inner border and padding in Firefox.\n*/\n\n::-moz-focus-inner {\n\tborder-style: none;\n\tpadding: 0;\n}\n\n/**\nRestore the focus styles unset by the previous rule.\n*/\n\n:-moz-focusring {\n\toutline: 1px dotted ButtonText;\n}\n\n/**\nRemove the additional ':invalid' styles in Firefox.\nSee: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737\n*/\n\n:-moz-ui-invalid {\n\tbox-shadow: none;\n}\n\n/**\nRemove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.\n*/\n\nlegend {\n\tpadding: 0;\n}\n\n/**\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n\tvertical-align: baseline;\n}\n\n/**\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n\theight: auto;\n}\n\n/**\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n\t-webkit-appearance: textfield; /* 1 */\n\toutline-offset: -2px; /* 2 */\n}\n\n/**\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n\t-webkit-appearance: none;\n}\n\n/**\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to 'inherit' in Safari.\n*/\n\n::-webkit-file-upload-button {\n\t-webkit-appearance: button; /* 1 */\n\tfont: inherit; /* 2 */\n}\n\n/*\nInteractive\n===========\n*/\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n\tdisplay: list-item;\n}\n"],sourceRoot:""}]);const s=o},5346:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var r=n(7537),a=n.n(r),i=n(3645),o=n.n(i)()(a());o.push([t.id,'/***\n The new CSS reset - version 1.11.2 (last updated 15.11.2023)\n GitHub page: https://github.com/elad2412/the-new-css-reset\n***/\n\n/*\n Remove all the styles of the "User-Agent-Stylesheet", except for the \'display\' property\n - The "symbol *" part is to solve Firefox SVG sprite bug\n - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)\n */\n*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {\n all: unset;\n display: revert;\n}\n\n/* Preferred box-sizing value */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Fix mobile Safari increase font-size on landscape mode */\nhtml {\n -moz-text-size-adjust: none;\n -webkit-text-size-adjust: none;\n text-size-adjust: none;\n}\n\n/* Reapply the pointer cursor for anchor tags */\na, button {\n cursor: revert;\n}\n\n/* Remove list styles (bullets/numbers) */\nol, ul, menu, summary {\n list-style: none;\n}\n\n/* For images to not be able to exceed their container */\nimg {\n max-inline-size: 100%;\n max-block-size: 100%;\n}\n\n/* removes spacing between cells in tables */\ntable {\n border-collapse: collapse;\n}\n\n/* Safari - solving issue when using user-select:none on the text input doesn\'t working */\ninput, textarea {\n -webkit-user-select: auto;\n}\n\n/* revert the \'white-space\' property for textarea elements on Safari */\ntextarea {\n white-space: revert;\n}\n\n/* minimum style to allow to style meter element */\nmeter {\n -webkit-appearance: revert;\n appearance: revert;\n}\n\n/* preformatted text - use only for this feature */\n:where(pre) {\n all: revert;\n box-sizing: border-box;\n}\n\n/* reset default text opacity of input placeholder */\n::placeholder {\n color: unset;\n}\n\n/* fix the feature of \'hidden\' attribute.\n display:revert; revert to element instead of attribute */\n:where([hidden]) {\n display: none;\n}\n\n/* revert for bug in Chromium browsers\n - fix for the content editable attribute will work properly.\n - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/\n:where([contenteditable]:not([contenteditable="false"])) {\n -moz-user-modify: read-write;\n -webkit-user-modify: read-write;\n overflow-wrap: break-word;\n -webkit-line-break: after-white-space;\n -webkit-user-select: auto;\n}\n\n/* apply back the draggable feature - exist only in Chromium and Safari */\n:where([draggable="true"]) {\n -webkit-user-drag: element;\n}\n\n/* Revert Modal native behavior */\n:where(dialog:modal) {\n all: revert;\n box-sizing: border-box;\n}\n\n/* Remove details summary webkit styles */\n::-webkit-details-marker {\n display: none;\n}\n',"",{version:3,sources:["webpack://./node_modules/the-new-css-reset/css/reset.css"],names:[],mappings:"AAAA;;;GAGG;;AAEH;;;;EAIE;AACF;IACI,UAAU;IACV,eAAe;AACnB;;AAEA,+BAA+B;AAC/B;;;IAGI,sBAAsB;AAC1B;;AAEA,2DAA2D;AAC3D;IACI,2BAA2B;IAC3B,8BAA8B;IAC9B,sBAAsB;AAC1B;;AAEA,+CAA+C;AAC/C;IACI,cAAc;AAClB;;AAEA,yCAAyC;AACzC;IACI,gBAAgB;AACpB;;AAEA,wDAAwD;AACxD;IACI,qBAAqB;IACrB,oBAAoB;AACxB;;AAEA,4CAA4C;AAC5C;IACI,yBAAyB;AAC7B;;AAEA,gGAAgG;AAChG;IACI,yBAAyB;AAC7B;;AAEA,sEAAsE;AACtE;IACI,mBAAmB;AACvB;;AAEA,kDAAkD;AAClD;IACI,0BAA0B;IAC1B,kBAAkB;AACtB;;AAEA,kDAAkD;AAClD;IACI,WAAW;IACX,sBAAsB;AAC1B;;AAEA,oDAAoD;AACpD;IACI,YAAY;AAChB;;AAEA;2DAC2D;AAC3D;IACI,aAAa;AACjB;;AAEA;;qGAEqG;AACrG;IACI,4BAA4B;IAC5B,+BAA+B;IAC/B,yBAAyB;IACzB,qCAAqC;IACrC,yBAAyB;AAC7B;;AAEA,yEAAyE;AACzE;IACI,0BAA0B;AAC9B;;AAEA,iCAAiC;AACjC;IACI,WAAW;IACX,sBAAsB;AAC1B;;AAEA,yCAAyC;AACzC;IACI,aAAa;AACjB",sourcesContent:['/***\n The new CSS reset - version 1.11.2 (last updated 15.11.2023)\n GitHub page: https://github.com/elad2412/the-new-css-reset\n***/\n\n/*\n Remove all the styles of the "User-Agent-Stylesheet", except for the \'display\' property\n - The "symbol *" part is to solve Firefox SVG sprite bug\n - The "html" element is excluded, otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)\n */\n*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {\n all: unset;\n display: revert;\n}\n\n/* Preferred box-sizing value */\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* Fix mobile Safari increase font-size on landscape mode */\nhtml {\n -moz-text-size-adjust: none;\n -webkit-text-size-adjust: none;\n text-size-adjust: none;\n}\n\n/* Reapply the pointer cursor for anchor tags */\na, button {\n cursor: revert;\n}\n\n/* Remove list styles (bullets/numbers) */\nol, ul, menu, summary {\n list-style: none;\n}\n\n/* For images to not be able to exceed their container */\nimg {\n max-inline-size: 100%;\n max-block-size: 100%;\n}\n\n/* removes spacing between cells in tables */\ntable {\n border-collapse: collapse;\n}\n\n/* Safari - solving issue when using user-select:none on the text input doesn\'t working */\ninput, textarea {\n -webkit-user-select: auto;\n}\n\n/* revert the \'white-space\' property for textarea elements on Safari */\ntextarea {\n white-space: revert;\n}\n\n/* minimum style to allow to style meter element */\nmeter {\n -webkit-appearance: revert;\n appearance: revert;\n}\n\n/* preformatted text - use only for this feature */\n:where(pre) {\n all: revert;\n box-sizing: border-box;\n}\n\n/* reset default text opacity of input placeholder */\n::placeholder {\n color: unset;\n}\n\n/* fix the feature of \'hidden\' attribute.\n display:revert; revert to element instead of attribute */\n:where([hidden]) {\n display: none;\n}\n\n/* revert for bug in Chromium browsers\n - fix for the content editable attribute will work properly.\n - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/\n:where([contenteditable]:not([contenteditable="false"])) {\n -moz-user-modify: read-write;\n -webkit-user-modify: read-write;\n overflow-wrap: break-word;\n -webkit-line-break: after-white-space;\n -webkit-user-select: auto;\n}\n\n/* apply back the draggable feature - exist only in Chromium and Safari */\n:where([draggable="true"]) {\n -webkit-user-drag: element;\n}\n\n/* Revert Modal native behavior */\n:where(dialog:modal) {\n all: revert;\n box-sizing: border-box;\n}\n\n/* Remove details summary webkit styles */\n::-webkit-details-marker {\n display: none;\n}\n'],sourceRoot:""}]);const s=o},5426:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),a=n.n(r),i=n(3645),o=n.n(i),s=n(2602),l=n(5346),c=o()(a());c.i(s.Z),c.i(l.Z),c.push([t.id,"* {\n margin: 0;\n padding: 0;\n /* border: 1px solid black; */\n}\n/* html {\n height: 100vh;\n} */\nh1 {\n font-size: 1.5rem;\n}\nh2 {\n font-size: 1.3rem;\n}\n\nh3 {\n font-size: 1.05rem;\n}\nbody {\n margin: 0 0.5rem;\n height: 100vh;\n display: grid;\n grid-template: 1fr /1fr 5fr;\n}\n#side-panel {\n grid-area: 1/1/2/2;\n max-height: 100%;\n padding: 1rem;\n display: grid;\n grid-template: 1fr 1fr / 1fr;\n}\n\n#main-panel {\n grid-area: 1/2/2/3;\n\n height: 100vh;\n width: 100%;\n}\nheader {\n grid-area: 1/1/2/4;\n display: flex;\n justify-content: space-between;\n}\n\nheader h1 {\n align-self: center;\n}\n\n/* TOP PANEL */\n#top-panel {\n display: grid;\n grid-template: 1fr 8fr /1fr;\n}\n\n/* CURRENT-WEATHER */\n\n#current-ctr {\n display: grid;\n grid-template: 1fr 1fr 1.5fr/ 1fr 1fr;\n align-content: start;\n}\n\n#date-ctr {\n grid-area: 1/1/2/3;\n display: flex;\n justify-content: space-between;\n}\n\n#current-ctr #icon-ctr {\n grid-area: 2/1/3/2;\n align-self: center;\n height: 7rem;\n width: 7rem;\n}\n\n#temp-output {\n font-size: 4rem;\n align-self: center;\n grid-area: 2/2/3/3;\n}\n\n#feels-ctr {\n grid-area: 3/1/4/3;\n display: grid;\n grid-template: 1fr 3fr/ 1fr;\n}\n#feels-ctr .row {\n grid-area: 1/1/2/2;\n display: flex;\n align-items: center;\n}\n\n#feels-ctr h3 {\n}\n#feels-ctr img {\n height: 2.5rem;\n width: 2.5rem;\n}\n#feels-like {\n grid-area: 2/1/3/2;\n font-size: 2rem;\n}\n/*DAILY FORECAST*/\n\n#daily-forecast {\n display: flex;\n flex-direction: column;\n gap: 10px;\n grid-area: 2/1/3/2;\n}\n\n.card {\n display: flex;\n}\n.daily-list {\n /* height: 100%; */\n display: grid;\n grid-auto-flow: row;\n grid-auto-row: 1fr;\n}\n\n.icon img {\n height: 3rem;\n width: 3rem;\n}\n\n/* SEARCH FORM */\n#search-form {\n grid-area: 1/1/2/2;\n margin-bottom: 1%;\n}\n.ais-search-box {\n max-width: none;\n}\n/* UNIT TOGGLE*/\n#toggle-ctr {\n display: flex;\n}\n\n#toggle-ctr img {\n}\n.switch {\n position: relative;\n display: inline-flex;\n align-self: center;\n align-items: center;\n width: 60px;\n height: 34px;\n}\n\n#unit-toggle {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 34px;\n}\n\n.slider:before {\n align-self: center;\n vertical-align: middle;\n position: absolute;\n content: '';\n height: 26px;\n width: 26px;\n left: 4px;\n bottom: 4px;\n background-color: whitesmoke;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 50%;\n}\n\n#unit-toggle:checked + .slider {\n background-color: #2196f3;\n}\n\n#unit-toggle:focus + .slider {\n box-shadow: 0 0 1px #2196f3;\n}\n\n#unit-toggle:checked + .slider:before {\n -webkit-transform: translateX(26px);\n -ms-transform: translateX(26px);\n transform: translateX(26px);\n}\n\ninput {\n font-size: 1.5rem;\n width: 80%;\n height: 100%;\n}\n\ninput::placeholder {\n opacity: 0.5;\n}\nbutton {\n width: 3rem;\n height: 100%;\n cursor: pointer;\n}\n\n#output-overlay {\n border: 1px solid black;\n /* max-height: 100%; */\n padding: 1rem;\n height: 100%;\n grid-area: 3/1/4/4;\n display: grid;\n\n grid-template: 0.8fr 1fr 1fr 1fr / 1fr 1fr 1fr;\n}\n/* WEATHER HIGHLIGHTS */\n#current-highlights {\n grid-area: 2/1/3/3;\n display: flex;\n}\n#current-highlights ul {\n display: grid;\n grid-template: 1fr 1fr / repeat(4, 1fr);\n align-self: center;\n}\n\n#current-highlights li {\n display: grid;\n grid-template: 1fr 1fr/1fr 3fr;\n}\n#current-highlights label {\n font-size: 0.9rem;\n}\n#current-highlights img {\n height: 3rem;\n width: 3rem;\n grid-area: 1/1/3/2;\n}\n\n#description-output {\n font-size: 2rem;\n margin-left: 3rem;\n}\n\n#charts-ctr {\n grid-area: 3/1/5/4;\n height: 100%;\n width: 100%;\n}\n\n.chart-ctr {\n border: none;\n width: 90%;\n display: flex;\n height: 100%;\n}\n\n.colSmall {\n border: none;\n\n width: 35px;\n}\n\n.colLarge {\n border: none;\n max-width: 100%;\n overflow-x: scroll;\n}\n.box {\n border: none;\n width: calc(1000px - 28px);\n height: 100%;\n}\ncanvas {\n border: none;\n}\n","",{version:3,sources:["webpack://./src/style.css"],names:[],mappings:"AAEA;EACE,SAAS;EACT,UAAU;EACV,6BAA6B;AAC/B;AACA;;GAEG;AACH;EACE,iBAAiB;AACnB;AACA;EACE,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;AACpB;AACA;EACE,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,2BAA2B;AAC7B;AACA;EACE,kBAAkB;EAClB,gBAAgB;EAChB,aAAa;EACb,aAAa;EACb,4BAA4B;AAC9B;;AAEA;EACE,kBAAkB;;EAElB,aAAa;EACb,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,kBAAkB;AACpB;;AAEA,cAAc;AACd;EACE,aAAa;EACb,2BAA2B;AAC7B;;AAEA,oBAAoB;;AAEpB;EACE,aAAa;EACb,qCAAqC;EACrC,oBAAoB;AACtB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,8BAA8B;AAChC;;AAEA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,eAAe;EACf,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;EAClB,aAAa;EACb,2BAA2B;AAC7B;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;AACrB;;AAEA;AACA;AACA;EACE,cAAc;EACd,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,eAAe;AACjB;AACA,iBAAiB;;AAEjB;EACE,aAAa;EACb,sBAAsB;EACtB,SAAS;EACT,kBAAkB;AACpB;;AAEA;EACE,aAAa;AACf;AACA;EACE,kBAAkB;EAClB,aAAa;EACb,mBAAmB;EACnB,kBAAkB;AACpB;;AAEA;EACE,YAAY;EACZ,WAAW;AACb;;AAEA,iBAAiB;AACjB;EACE,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,eAAe;AACjB;AACA,eAAe;AACf;EACE,aAAa;AACf;;AAEA;AACA;AACA;EACE,kBAAkB;EAClB,oBAAoB;EACpB,kBAAkB;EAClB,mBAAmB;EACnB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,UAAU;EACV,QAAQ;EACR,SAAS;AACX;;AAEA;EACE,kBAAkB;EAClB,eAAe;EACf,MAAM;EACN,OAAO;EACP,QAAQ;EACR,SAAS;EACT,sBAAsB;EACtB,wBAAwB;EACxB,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,kBAAkB;EAClB,sBAAsB;EACtB,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,WAAW;EACX,SAAS;EACT,WAAW;EACX,4BAA4B;EAC5B,wBAAwB;EACxB,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,yBAAyB;AAC3B;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,mCAAmC;EACnC,+BAA+B;EAC/B,2BAA2B;AAC7B;;AAEA;EACE,iBAAiB;EACjB,UAAU;EACV,YAAY;AACd;;AAEA;EACE,YAAY;AACd;AACA;EACE,WAAW;EACX,YAAY;EACZ,eAAe;AACjB;;AAEA;EACE,uBAAuB;EACvB,sBAAsB;EACtB,aAAa;EACb,YAAY;EACZ,kBAAkB;EAClB,aAAa;;EAEb,8CAA8C;AAChD;AACA,wBAAwB;AACxB;EACE,kBAAkB;EAClB,aAAa;AACf;AACA;EACE,aAAa;EACb,uCAAuC;EACvC,kBAAkB;AACpB;;AAEA;EACE,aAAa;EACb,8BAA8B;AAChC;AACA;EACE,iBAAiB;AACnB;AACA;EACE,YAAY;EACZ,WAAW;EACX,kBAAkB;AACpB;;AAEA;EACE,eAAe;EACf,iBAAiB;AACnB;;AAEA;EACE,kBAAkB;EAClB,YAAY;EACZ,WAAW;AACb;;AAEA;EACE,YAAY;EACZ,UAAU;EACV,aAAa;EACb,YAAY;AACd;;AAEA;EACE,YAAY;;EAEZ,WAAW;AACb;;AAEA;EACE,YAAY;EACZ,eAAe;EACf,kBAAkB;AACpB;AACA;EACE,YAAY;EACZ,0BAA0B;EAC1B,YAAY;AACd;AACA;EACE,YAAY;AACd",sourcesContent:["@import '~modern-normalize/modern-normalize.css';\n@import '~the-new-css-reset/css/reset.css';\n* {\n margin: 0;\n padding: 0;\n /* border: 1px solid black; */\n}\n/* html {\n height: 100vh;\n} */\nh1 {\n font-size: 1.5rem;\n}\nh2 {\n font-size: 1.3rem;\n}\n\nh3 {\n font-size: 1.05rem;\n}\nbody {\n margin: 0 0.5rem;\n height: 100vh;\n display: grid;\n grid-template: 1fr /1fr 5fr;\n}\n#side-panel {\n grid-area: 1/1/2/2;\n max-height: 100%;\n padding: 1rem;\n display: grid;\n grid-template: 1fr 1fr / 1fr;\n}\n\n#main-panel {\n grid-area: 1/2/2/3;\n\n height: 100vh;\n width: 100%;\n}\nheader {\n grid-area: 1/1/2/4;\n display: flex;\n justify-content: space-between;\n}\n\nheader h1 {\n align-self: center;\n}\n\n/* TOP PANEL */\n#top-panel {\n display: grid;\n grid-template: 1fr 8fr /1fr;\n}\n\n/* CURRENT-WEATHER */\n\n#current-ctr {\n display: grid;\n grid-template: 1fr 1fr 1.5fr/ 1fr 1fr;\n align-content: start;\n}\n\n#date-ctr {\n grid-area: 1/1/2/3;\n display: flex;\n justify-content: space-between;\n}\n\n#current-ctr #icon-ctr {\n grid-area: 2/1/3/2;\n align-self: center;\n height: 7rem;\n width: 7rem;\n}\n\n#temp-output {\n font-size: 4rem;\n align-self: center;\n grid-area: 2/2/3/3;\n}\n\n#feels-ctr {\n grid-area: 3/1/4/3;\n display: grid;\n grid-template: 1fr 3fr/ 1fr;\n}\n#feels-ctr .row {\n grid-area: 1/1/2/2;\n display: flex;\n align-items: center;\n}\n\n#feels-ctr h3 {\n}\n#feels-ctr img {\n height: 2.5rem;\n width: 2.5rem;\n}\n#feels-like {\n grid-area: 2/1/3/2;\n font-size: 2rem;\n}\n/*DAILY FORECAST*/\n\n#daily-forecast {\n display: flex;\n flex-direction: column;\n gap: 10px;\n grid-area: 2/1/3/2;\n}\n\n.card {\n display: flex;\n}\n.daily-list {\n /* height: 100%; */\n display: grid;\n grid-auto-flow: row;\n grid-auto-row: 1fr;\n}\n\n.icon img {\n height: 3rem;\n width: 3rem;\n}\n\n/* SEARCH FORM */\n#search-form {\n grid-area: 1/1/2/2;\n margin-bottom: 1%;\n}\n.ais-search-box {\n max-width: none;\n}\n/* UNIT TOGGLE*/\n#toggle-ctr {\n display: flex;\n}\n\n#toggle-ctr img {\n}\n.switch {\n position: relative;\n display: inline-flex;\n align-self: center;\n align-items: center;\n width: 60px;\n height: 34px;\n}\n\n#unit-toggle {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n.slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 34px;\n}\n\n.slider:before {\n align-self: center;\n vertical-align: middle;\n position: absolute;\n content: '';\n height: 26px;\n width: 26px;\n left: 4px;\n bottom: 4px;\n background-color: whitesmoke;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n border-radius: 50%;\n}\n\n#unit-toggle:checked + .slider {\n background-color: #2196f3;\n}\n\n#unit-toggle:focus + .slider {\n box-shadow: 0 0 1px #2196f3;\n}\n\n#unit-toggle:checked + .slider:before {\n -webkit-transform: translateX(26px);\n -ms-transform: translateX(26px);\n transform: translateX(26px);\n}\n\ninput {\n font-size: 1.5rem;\n width: 80%;\n height: 100%;\n}\n\ninput::placeholder {\n opacity: 0.5;\n}\nbutton {\n width: 3rem;\n height: 100%;\n cursor: pointer;\n}\n\n#output-overlay {\n border: 1px solid black;\n /* max-height: 100%; */\n padding: 1rem;\n height: 100%;\n grid-area: 3/1/4/4;\n display: grid;\n\n grid-template: 0.8fr 1fr 1fr 1fr / 1fr 1fr 1fr;\n}\n/* WEATHER HIGHLIGHTS */\n#current-highlights {\n grid-area: 2/1/3/3;\n display: flex;\n}\n#current-highlights ul {\n display: grid;\n grid-template: 1fr 1fr / repeat(4, 1fr);\n align-self: center;\n}\n\n#current-highlights li {\n display: grid;\n grid-template: 1fr 1fr/1fr 3fr;\n}\n#current-highlights label {\n font-size: 0.9rem;\n}\n#current-highlights img {\n height: 3rem;\n width: 3rem;\n grid-area: 1/1/3/2;\n}\n\n#description-output {\n font-size: 2rem;\n margin-left: 3rem;\n}\n\n#charts-ctr {\n grid-area: 3/1/5/4;\n height: 100%;\n width: 100%;\n}\n\n.chart-ctr {\n border: none;\n width: 90%;\n display: flex;\n height: 100%;\n}\n\n.colSmall {\n border: none;\n\n width: 35px;\n}\n\n.colLarge {\n border: none;\n max-width: 100%;\n overflow-x: scroll;\n}\n.box {\n border: none;\n width: calc(1000px - 28px);\n height: 100%;\n}\ncanvas {\n border: none;\n}\n"],sourceRoot:""}]);const u=c},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,a,i){"string"==typeof t&&(t=[[null,t,void 0]]);var o={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),a&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=a):u[4]="".concat(a)),e.push(u))}},e}},7537:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(a," */");return[e].concat([i]).join("\n")}return[e].join("\n")}},7394:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},t.exports=e.default},6420:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,a.default)({},t)};var a=r(n(8609));t.exports=e.default},7561:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(2512)).default;e.default=a,t.exports=e.default},8729:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultOptions=function(){return n},e.setDefaultOptions=function(t){n=t};var n={}},7100:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(1603)),i=r(n(1354)),o=r(n(1370)),s=r(n(623)),l=r(n(6226)),c=r(n(7394)),u=r(n(2699));function d(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);var o=e||"";return n+String(a)+o+(0,c.default)(i,2)}function h(t,e){return t%60==0?(t>0?"-":"+")+(0,c.default)(Math.abs(t)/60,2):f(t,e)}function f(t,e){var n=e||"",r=t>0?"-":"+",a=Math.abs(t);return r+(0,c.default)(Math.floor(a/60),2)+n+(0,c.default)(a%60,2)}var p={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return u.default.y(t,e)},Y:function(t,e,n,r){var a=(0,l.default)(t,r),i=a>0?a:1-a;if("YY"===e){var o=i%100;return(0,c.default)(o,2)}return"Yo"===e?n.ordinalNumber(i,{unit:"year"}):(0,c.default)(i,e.length)},R:function(t,e){var n=(0,o.default)(t);return(0,c.default)(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return(0,c.default)(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return(0,c.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return(0,c.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return u.default.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return(0,c.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var a=(0,s.default)(t,r);return"wo"===e?n.ordinalNumber(a,{unit:"week"}):(0,c.default)(a,e.length)},I:function(t,e,n){var r=(0,i.default)(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):(0,c.default)(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):u.default.d(t,e)},D:function(t,e,n){var r=(0,a.default)(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):(0,c.default)(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return(0,c.default)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var a=t.getUTCDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return(0,c.default)(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),a=0===r?7:r;switch(e){case"i":return String(a);case"ii":return(0,c.default)(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,a=t.getUTCHours();switch(r=12===a?"noon":0===a?"midnight":a/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,a=t.getUTCHours();switch(r=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.default.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):u.default.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):(0,c.default)(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):u.default.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):u.default.s(t,e)},S:function(t,e){return u.default.S(t,e)},X:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();if(0===a)return"Z";switch(e){case"X":return h(a);case"XXXX":case"XX":return f(a);default:return f(a,":")}},x:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return h(a);case"xxxx":case"xx":return f(a);default:return f(a,":")}},O:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+d(a,":");default:return"GMT"+f(a,":")}},z:function(t,e,n,r){var a=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+d(a,":");default:return"GMT"+f(a,":")}},t:function(t,e,n,r){var a=r._originalDate||t,i=Math.floor(a.getTime()/1e3);return(0,c.default)(i,e.length)},T:function(t,e,n,r){var a=(r._originalDate||t).getTime();return(0,c.default)(a,e.length)}};e.default=p,t.exports=e.default},2699:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(7394)),i={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return(0,a.default)("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):(0,a.default)(n+1,2)},d:function(t,e){return(0,a.default)(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return(0,a.default)(t.getUTCHours()%12||12,e.length)},H:function(t,e){return(0,a.default)(t.getUTCHours(),e.length)},m:function(t,e){return(0,a.default)(t.getUTCMinutes(),e.length)},s:function(t,e){return(0,a.default)(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return(0,a.default)(i,e.length)}};e.default=i,t.exports=e.default},5209:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},r=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},a={p:r,P:function(t,e){var a,i=t.match(/(P+)(p+)?/)||[],o=i[1],s=i[2];if(!s)return n(t,e);switch(o){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"})}return a.replace("{{date}}",n(o,e)).replace("{{time}}",r(s,e))}};e.default=a,t.exports=e.default},3561:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()},t.exports=e.default},1603:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=(0,a.default)(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=n-e.getTime();return Math.floor(r/o)+1};var a=r(n(1171)),i=r(n(8734)),o=864e5;t.exports=e.default},1354:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,s.default)(1,arguments);var e=(0,a.default)(t),n=(0,i.default)(e).getTime()-(0,o.default)(e).getTime();return Math.round(n/l)+1};var a=r(n(1171)),i=r(n(79)),o=r(n(4275)),s=r(n(8734)),l=6048e5;t.exports=e.default},1370:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=(0,a.default)(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var s=(0,o.default)(r),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var c=(0,o.default)(l);return e.getTime()>=s.getTime()?n+1:e.getTime()>=c.getTime()?n:n-1};var a=r(n(1171)),i=r(n(8734)),o=r(n(79));t.exports=e.default},623:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,s.default)(1,arguments);var n=(0,a.default)(t),r=(0,i.default)(n,e).getTime()-(0,o.default)(n,e).getTime();return Math.round(r/l)+1};var a=r(n(1171)),i=r(n(9209)),o=r(n(4118)),s=r(n(8734)),l=6048e5;t.exports=e.default},6226:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r,c,u,d,h,f,p;(0,i.default)(1,arguments);var g=(0,a.default)(t),m=g.getUTCFullYear(),A=(0,l.getDefaultOptions)(),b=(0,s.default)(null!==(n=null!==(r=null!==(c=null!==(u=null==e?void 0:e.firstWeekContainsDate)&&void 0!==u?u:null==e||null===(d=e.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:A.firstWeekContainsDate)&&void 0!==r?r:null===(f=A.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(m+1,0,b),v.setUTCHours(0,0,0,0);var y=(0,o.default)(v,e),C=new Date(0);C.setUTCFullYear(m,0,b),C.setUTCHours(0,0,0,0);var x=(0,o.default)(C,e);return g.getTime()>=y.getTime()?m+1:g.getTime()>=x.getTime()?m:m-1};var a=r(n(1171)),i=r(n(8734)),o=r(n(9209)),s=r(n(2084)),l=n(8729);t.exports=e.default},6736:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isProtectedDayOfYearToken=function(t){return-1!==n.indexOf(t)},e.isProtectedWeekYearToken=function(t){return-1!==r.indexOf(t)},e.throwProtectedError=function(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var n=["D","DD"],r=["YY","YYYY"]},8734:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")},t.exports=e.default},79:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=(0,a.default)(t),n=e.getUTCDay(),r=(n<1?7:0)+n-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e};var a=r(n(1171)),i=r(n(8734));t.exports=e.default},4275:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,o.default)(1,arguments);var e=(0,a.default)(t),n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),(0,i.default)(n)};var a=r(n(1370)),i=r(n(79)),o=r(n(8734));t.exports=e.default},9209:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r,l,c,u,d,h,f;(0,i.default)(1,arguments);var p=(0,s.getDefaultOptions)(),g=(0,o.default)(null!==(n=null!==(r=null!==(l=null!==(c=null==e?void 0:e.weekStartsOn)&&void 0!==c?c:null==e||null===(u=e.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:p.weekStartsOn)&&void 0!==r?r:null===(h=p.locale)||void 0===h||null===(f=h.options)||void 0===f?void 0:f.weekStartsOn)&&void 0!==n?n:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=(0,a.default)(t),A=m.getUTCDay(),b=(A{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,r,c,u,d,h,f,p;(0,i.default)(1,arguments);var g=(0,l.getDefaultOptions)(),m=(0,s.default)(null!==(n=null!==(r=null!==(c=null!==(u=null==e?void 0:e.firstWeekContainsDate)&&void 0!==u?u:null==e||null===(d=e.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==c?c:g.firstWeekContainsDate)&&void 0!==r?r:null===(f=g.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==n?n:1),A=(0,a.default)(t,e),b=new Date(0);return b.setUTCFullYear(A,0,m),b.setUTCHours(0,0,0,0),(0,o.default)(b,e)};var a=r(n(6226)),i=r(n(8734)),o=r(n(9209)),s=r(n(2084)),l=n(8729);t.exports=e.default},2084:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)},t.exports=e.default},5065:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,o.default)(2,arguments);var n=(0,i.default)(t).getTime(),r=(0,a.default)(e);return new Date(n+r)};var a=r(n(2084)),i=r(n(1171)),o=r(n(8734));t.exports=e.default},5616:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,y,C,x,w,_,k,S,B,O,M,D,P,E,T,I,j,z;(0,h.default)(2,arguments);var L=String(e),F=(0,f.getDefaultOptions)(),R=null!==(r=null!==(y=null==n?void 0:n.locale)&&void 0!==y?y:F.locale)&&void 0!==r?r:p.default,N=(0,d.default)(null!==(C=null!==(x=null!==(w=null!==(_=null==n?void 0:n.firstWeekContainsDate)&&void 0!==_?_:null==n||null===(k=n.locale)||void 0===k||null===(S=k.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==w?w:F.firstWeekContainsDate)&&void 0!==x?x:null===(B=F.locale)||void 0===B||null===(O=B.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==C?C:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=(0,d.default)(null!==(M=null!==(D=null!==(P=null!==(E=null==n?void 0:n.weekStartsOn)&&void 0!==E?E:null==n||null===(T=n.locale)||void 0===T||null===(I=T.options)||void 0===I?void 0:I.weekStartsOn)&&void 0!==P?P:F.weekStartsOn)&&void 0!==D?D:null===(j=F.locale)||void 0===j||null===(z=j.options)||void 0===z?void 0:z.weekStartsOn)&&void 0!==M?M:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!R.localize)throw new RangeError("locale must contain localize property");if(!R.formatLong)throw new RangeError("locale must contain formatLong property");var U=(0,o.default)(t);if(!(0,a.default)(U))throw new RangeError("Invalid time value");var Y=(0,c.default)(U),H=(0,i.default)(U,Y),q={firstWeekContainsDate:N,weekStartsOn:W,locale:R,_originalDate:U};return L.match(m).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,l.default[e])(t,R.formatLong):t})).join("").match(g).map((function(r){if("''"===r)return"'";var a,i,o=r[0];if("'"===o)return(i=(a=r).match(A))?i[1].replace(b,"'"):a;var l=s.default[o];if(l)return null!=n&&n.useAdditionalWeekYearTokens||!(0,u.isProtectedWeekYearToken)(r)||(0,u.throwProtectedError)(r,e,String(t)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,u.isProtectedDayOfYearToken)(r)||(0,u.throwProtectedError)(r,e,String(t)),l(H,r,R.localize,q);if(o.match(v))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")};var a=r(n(9989)),i=r(n(3239)),o=r(n(1171)),s=r(n(7100)),l=r(n(5209)),c=r(n(3561)),u=n(6736),d=r(n(2084)),h=r(n(8734)),f=n(8729),p=r(n(7561)),g=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,b=/''/g,v=/[a-zA-Z]/;t.exports=e.default},2382:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(1,arguments),t instanceof Date||"object"===(0,a.default)(t)&&"[object Date]"===Object.prototype.toString.call(t)};var a=r(n(8698)),i=r(n(8734));t.exports=e.default},9989:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if((0,o.default)(1,arguments),!(0,a.default)(t)&&"number"!=typeof t)return!1;var e=(0,i.default)(t);return!isNaN(Number(e))};var a=r(n(2382)),i=r(n(1171)),o=r(n(8734));t.exports=e.default},289:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}},t.exports=e.default},6245:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,i=null!=n&&n.width?String(n.width):a;r=t.formattingValues[i]||t.formattingValues[a]}else{var o=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(e):e]}},t.exports=e.default},3421:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;var o,s=i[0],l=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?function(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(t.matchPattern);if(!r)return null;var a=r[0],i=e.match(t.parsePattern);if(!i)return null;var o=t.valueCallback?t.valueCallback(i[0]):i[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:e.slice(a.length)}}},t.exports=e.default},1924:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};e.default=function(t,e,r){var a,i=n[t];return a="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a},t.exports=e.default},5062:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(289)),i={date:(0,a.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,a.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,a.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};e.default=i,t.exports=e.default},5102:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};e.default=function(t,e,r,a){return n[t]},t.exports=e.default},7839:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(6245)),i={ordinalNumber:function(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,a.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,a.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:(0,a.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,a.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,a.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};e.default=i,t.exports=e.default},9796:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(3421)),i={ordinalNumber:(0,r(n(8926)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:(0,a.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,a.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,a.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,a.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,a.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};e.default=i,t.exports=e.default},2512:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n(1924)),i=r(n(5062)),o=r(n(5102)),s=r(n(7839)),l=r(n(9796)),c={code:"en-US",formatDistance:a.default,formatLong:i.default,formatRelative:o.default,localize:s.default,match:l.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.default=c,t.exports=e.default},3239:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,i.default)(2,arguments);var n=(0,o.default)(e);return(0,a.default)(t,-n)};var a=r(n(5065)),i=r(n(8734)),o=r(n(2084));t.exports=e.default},1171:(t,e,n)=>{"use strict";var r=n(4836).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,i.default)(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===(0,a.default)(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var a=r(n(8698)),i=r(n(8734));t.exports=e.default},3379:t=>{"use strict";var e=[];function n(t){for(var n=-1,r=0;r{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var a=void 0!==n.layer;a&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,a&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,exports:{}};return n[t](i,i.exports,a),i.exports}a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&r&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>n[t]));return o.default=()=>n,a.d(i,o),i},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nc=void 0;var i={};(()=>{"use strict";function t(t){return t.reduce(((t,e)=>tt{let n=e.weather.id;return t[n]=(t[n]||0)+1,t}),{});return Object.keys(e).reduce(((t,n)=>e[t]>e[n]?t:n))}var r,o;a.d(i,{gT:()=>Dg,H8:()=>Sg,ZM:()=>Pg}),function(t){t.metric="metric",t.imperial="imperial"}(r||(r={})),function(t){t[t.N=0]="N",t[t.NNE=1]="NNE",t[t.NE=2]="NE",t[t.ENE=3]="ENE",t[t.E=4]="E",t[t.ESE=5]="ESE",t[t.SE=6]="SE",t[t.SSE=7]="SSE",t[t.S=8]="S",t[t.SSW=9]="SSW",t[t.SW=10]="SW",t[t.WSW=11]="WSW",t[t.W=12]="W",t[t.WNW=13]="WNW",t[t.NW=14]="NW",t[t.NNW=15]="NNW"}(o||(o={}));var s=a(3379),l=a.n(s),c=a(7795),u=a.n(c),d=a(569),h=a.n(d),f=a(3565),p=a.n(f),g=a(9216),m=a.n(g),A=a(4589),b=a.n(A),v=a(5426),y={};function C(t,e){const n=document.querySelector(t);if(!(n instanceof e))throw new Error("Element does not exist");return n}function x(t){return t==r.metric?"°C":"°F"}function w(t){if((t>=3600||t<=-3600)&&(t>=-9e4||t<=9e4))return t>0?"+"+new Date(1e3*t).toISOString().substring(11,16):"-"+new Date(1e3*t).toISOString().substring(11,16);throw Error("Number has to be more than 3600 and less than 90000 to maintain HH:MM format")}y.styleTagTransform=b(),y.setAttributes=p(),y.insert=h().bind(null,"head"),y.domAPI=u(),y.insertStyleElement=m(),l()(v.Z,y),v.Z&&v.Z.locals&&v.Z.locals;const _=JSON.parse('{"200":{"label":"thunderstorm with light rain","icon":"storm-showers","image":"11d"},"201":{"label":"thunderstorm with rain","icon":"storm-showers","image":"11d"},"202":{"label":"thunderstorm with heavy rain","icon":"storm-showers","image":"11d"},"210":{"label":"light thunderstorm","icon":"storm-showers","image":"11d"},"211":{"label":"thunderstorm","icon":"thunderstorm","image":"11d"},"212":{"label":"heavy thunderstorm","icon":"thunderstorm","image":"11d"},"221":{"label":"ragged thunderstorm","icon":"thunderstorm","image":"11d"},"230":{"label":"thunderstorm with light drizzle","icon":"storm-showers","image":"11d"},"231":{"label":"thunderstorm with drizzle","icon":"storm-showers","image":"11d"},"232":{"label":"thunderstorm with heavy drizzle","icon":"storm-showers","image":"11d"},"300":{"label":"light intensity drizzle","icon":"sprinkle","image":"09d"},"301":{"label":"drizzle","icon":"sprinkle","image":"09d"},"302":{"label":"heavy intensity drizzle","icon":"sprinkle","image":"09d"},"310":{"label":"light intensity drizzle rain","icon":"sprinkle","image":"09d"},"311":{"label":"drizzle rain","icon":"sprinkle","image":"09d"},"312":{"label":"heavy intensity drizzle rain","icon":"sprinkle","image":"09d"},"313":{"label":"shower rain and drizzle","icon":"sprinkle","image":"09d"},"314":{"label":"heavy shower rain and drizzle","icon":"sprinkle","image":"09d"},"321":{"label":"shower drizzle","icon":"sprinkle","image":"09d"},"500":{"label":"light rain","icon":"rain","image":"10d"},"501":{"label":"moderate rain","icon":"rain","image":"10d"},"502":{"label":"heavy intensity rain","icon":"rain","image":"10d"},"503":{"label":"very heavy rain","icon":"rain","image":"10d"},"504":{"label":"extreme rain","icon":"rain","image":"10d"},"511":{"label":"freezing rain","icon":"rain-mix","image":"10d"},"520":{"label":"light intensity shower rain","icon":"showers","image":"10d"},"521":{"label":"shower rain","icon":"showers","image":"10d"},"522":{"label":"heavy intensity shower rain","icon":"showers","image":"10d"},"531":{"label":"ragged shower rain","icon":"showers","image":"10d"},"600":{"label":"light snow","icon":"snow","image":"13d"},"601":{"label":"snow","icon":"snow","image":"13d"},"602":{"label":"heavy snow","icon":"snow","image":"13d"},"611":{"label":"sleet","icon":"sleet","image":"13d"},"612":{"label":"shower sleet","icon":"sleet","image":"13d"},"615":{"label":"light rain and snow","icon":"rain-mix","image":"13d"},"616":{"label":"rain and snow","icon":"rain-mix","image":"13d"},"620":{"label":"light shower snow","icon":"rain-mix","image":"13d"},"621":{"label":"shower snow","icon":"rain-mix","image":"13d"},"622":{"label":"heavy shower snow","icon":"rain-mix","image":"13d"},"701":{"label":"mist","icon":"sprinkle","image":"50d"},"711":{"label":"smoke","icon":"smoke","image":"50d"},"721":{"label":"haze","icon":"day-haze","image":"50d"},"731":{"label":"sand, dust whirls","icon":"cloudy-gusts","image":"50d"},"741":{"label":"fog","icon":"fog","image":"50d"},"751":{"label":"sand","icon":"cloudy-gusts","image":"50d"},"761":{"label":"dust","icon":"dust","image":"50d"},"762":{"label":"volcanic ash","icon":"smog","image":"50d"},"771":{"label":"squalls","icon":"day-windy","image":"50d"},"781":{"label":"tornado","icon":"tornado","image":"50d"},"800":{"label":"clear sky","icon":"sunny","image":"01d"},"801":{"label":"few clouds","icon":"cloudy","image":"02d"},"802":{"label":"scattered clouds","icon":"cloudy","image":"03d"},"803":{"label":"broken clouds","icon":"cloudy","image":"04d"},"804":{"label":"overcast clouds","icon":"cloudy","image":"04d"}}');var k=a.t(_,2),S=a(6420),B=a(5616);function O(t,e,n){var r=function(t,e,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:e,timeZoneName:t})}(t,n.timeZone,n.locale);return r.formatToParts?function(t,e){for(var n=t.formatToParts(e),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,e):function(t,e){var n=t.format(e).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,e)}var M={year:0,month:1,day:2,hour:3,minute:4,second:5},D={};function P(t,e,n,r,a,i,o){var s=new Date(0);return s.setUTCFullYear(t,e,n),s.setUTCHours(r,a,i,o),s}var E=36e5,T=6e4,I={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function j(t,e,n){var r,a,i;if(!t)return 0;if(r=I.timezoneZ.exec(t))return 0;if(r=I.timezoneHH.exec(t))return L(i=parseInt(r[1],10))?-i*E:NaN;if(r=I.timezoneHHMM.exec(t)){i=parseInt(r[2],10);var o=parseInt(r[3],10);return L(i,o)?(a=Math.abs(i)*E+o*T,"+"===r[1]?-a:a):NaN}if(function(t){if(F[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),F[t]=!0,!0}catch(t){return!1}}(t)){e=new Date(e||Date.now());var s=n?e:function(t){return P(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}(e),l=z(s,t),c=n?l:function(t,e,n){var r=t.getTime()-e,a=z(new Date(r),n);if(e===a)return e;r-=a-e;var i=z(new Date(r),n);return a===i?a:Math.max(a,i)}(e,l,t);return-c}return NaN}function z(t,e){var n=function(t,e){var n=function(t){if(!D[t]){var e=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===e||"06/25/2014 00:00:00"===e;D[t]=n?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return D[t]}(e);return n.formatToParts?function(t,e){try{for(var n=t.formatToParts(e),r=[],a=0;a=0&&(r[i]=parseInt(n[a].value,10))}return r}catch(t){if(t instanceof RangeError)return[NaN];throw t}}(n,t):function(t,e){var n=t.format(e),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,t)}(t,e),r=P(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=t.getTime(),i=a%1e3;return r-(a-(i>=0?i:1e3+i))}function L(t,e){return-23<=t&&t<=23&&(null==e||0<=e&&e<=59)}var F={},R={X:function(t,e,n,r){var a=N(r.timeZone,t);if(0===a)return"Z";switch(e){case"X":return Y(a);case"XXXX":case"XX":return U(a);default:return U(a,":")}},x:function(t,e,n,r){var a=N(r.timeZone,t);switch(e){case"x":return Y(a);case"xxxx":case"xx":return U(a);default:return U(a,":")}},O:function(t,e,n,r){var a=N(r.timeZone,t);switch(e){case"O":case"OO":case"OOO":return"GMT"+function(t,e){var n=t>0?"-":"+",r=Math.abs(t),a=Math.floor(r/60),i=r%60;if(0===i)return n+String(a);return n+String(a)+":"+W(i,2)}(a);default:return"GMT"+U(a,":")}},z:function(t,e,n,r){switch(e){case"z":case"zz":case"zzz":return O("short",t,r);default:return O("long",t,r)}}};function N(t,e){var n=t?j(t,e,!0)/6e4:e.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+t);return n}function W(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length0?"-":"+",a=Math.abs(t);return r+W(Math.floor(a/60),2)+n+W(Math.floor(a%60),2)}function Y(t,e){return t%60==0?(t>0?"-":"+")+W(Math.abs(t)/60,2):U(t,e)}const H=R;var q=a(2084),V=a(3561),$=36e5,Q=6e4,G=2,X={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Z(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);var n=e||{},r=null==n.additionalDigits?G:q(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"==typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var a=function(t){var e,n={},r=X.dateTimePattern.exec(t);if(r?(n.date=r[1],e=r[3]):(r=X.datePattern.exec(t))?(n.date=r[1],e=r[2]):(n.date=null,e=t),e){var a=X.timeZone.exec(e);a?(n.time=e.replace(a[1],""),n.timeZone=a[1].trim()):n.time=e}return n}(t),i=function(t,e){var n,r=X.YYY[e],a=X.YYYYY[e];if(n=X.YYYY.exec(t)||a.exec(t)){var i=n[1];return{year:parseInt(i,10),restDateString:t.slice(i.length)}}if(n=X.YY.exec(t)||r.exec(t)){var o=n[1];return{year:100*parseInt(o,10),restDateString:t.slice(o.length)}}return{year:null}}(a.date,r),o=i.year,s=function(t,e){if(null===e)return null;var n,r,a,i;if(0===t.length)return(r=new Date(0)).setUTCFullYear(e),r;if(n=X.MM.exec(t))return r=new Date(0),nt(e,a=parseInt(n[1],10)-1)?(r.setUTCFullYear(e,a),r):new Date(NaN);if(n=X.DDD.exec(t)){r=new Date(0);var o=parseInt(n[1],10);return function(t,e){if(e<1)return!1;var n=et(t);return!(n&&e>366)&&!(!n&&e>365)}(e,o)?(r.setUTCFullYear(e,0,o),r):new Date(NaN)}if(n=X.MMDD.exec(t)){r=new Date(0),a=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return nt(e,a,s)?(r.setUTCFullYear(e,a,s),r):new Date(NaN)}if(n=X.Www.exec(t))return rt(0,i=parseInt(n[1],10)-1)?K(e,i):new Date(NaN);if(n=X.WwwD.exec(t)){i=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return rt(0,i,l)?K(e,i,l):new Date(NaN)}return null}(i.restDateString,o);if(isNaN(s))return new Date(NaN);if(s){var l,c=s.getTime(),u=0;if(a.time&&(u=function(t){var e,n,r;if(e=X.HH.exec(t))return at(n=parseFloat(e[1].replace(",",".")))?n%24*$:NaN;if(e=X.HHMM.exec(t))return at(n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")))?n%24*$+r*Q:NaN;if(e=X.HHMMSS.exec(t)){n=parseInt(e[1],10),r=parseInt(e[2],10);var a=parseFloat(e[3].replace(",","."));return at(n,r,a)?n%24*$+r*Q+1e3*a:NaN}return null}(a.time),isNaN(u)))return new Date(NaN);if(a.timeZone||n.timeZone){if(l=j(a.timeZone||n.timeZone,new Date(c+u)),isNaN(l))return new Date(NaN)}else l=V(new Date(c+u)),l=V(new Date(c+u+l));return new Date(c+u+l)}return new Date(NaN)}function K(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var a=7*e+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}var J=[31,28,31,30,31,30,31,31,30,31,30,31],tt=[31,29,31,30,31,30,31,31,30,31,30,31];function et(t){return t%400==0||t%4==0&&t%100!=0}function nt(t,e,n){if(e<0||e>11)return!1;if(null!=n){if(n<1)return!1;var r=et(t);if(r&&n>tt[e])return!1;if(!r&&n>J[e])return!1}return!0}function rt(t,e,n){return!(e<0||e>52||null!=n&&(n<0||n>6))}function at(t,e,n){return!(null!=t&&(t<0||t>=25)||null!=e&&(e<0||e>=60)||null!=n&&(n<0||n>=60))}var it=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function ot(t,e,n,r){var a=S(r);return a.timeZone=e,a.originalDate=t,function(t,e,n){var r=String(e),a=n||{},i=r.match(it);if(i){var o=Z(a.originalDate||t,a);r=i.reduce((function(t,e){if("'"===e[0])return t;var n=t.indexOf(e),r="'"===t[n-1],i=t.replace(e,"'"+H[e[0]](o,e,null,a)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),r)}return B(t,r,a)}(function(t,e,n){var r=Z(t,void 0),a=j(e,r,!0),i=new Date(r.getTime()-a),o=new Date(0);return o.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),o.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),o}(t,e),n,a)}function st(t){return t+.5|0}const lt=(t,e,n)=>Math.max(Math.min(t,n),e);function ct(t){return lt(st(2.55*t),0,255)}function ut(t){return lt(st(255*t),0,255)}function dt(t){return lt(st(t/2.55)/100,0,1)}function ht(t){return lt(st(100*t),0,100)}const ft={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},pt=[..."0123456789ABCDEF"],gt=t=>pt[15&t],mt=t=>pt[(240&t)>>4]+pt[15&t],At=t=>(240&t)>>4==(15&t);const bt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function vt(t,e,n){const r=e*Math.min(n,1-n),a=(e,a=(e+t/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function yt(t,e,n){const r=(r,a=(r+t/60)%6)=>n-n*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function Ct(t,e,n){const r=vt(t,1,.5);let a;for(e+n>1&&(a=1/(e+n),e*=a,n*=a),a=0;a<3;a++)r[a]*=1-e-n,r[a]+=e;return r}function xt(t){const e=t.r/255,n=t.g/255,r=t.b/255,a=Math.max(e,n,r),i=Math.min(e,n,r),o=(a+i)/2;let s,l,c;return a!==i&&(c=a-i,l=o>.5?c/(2-a-i):c/(a+i),s=function(t,e,n,r,a){return t===a?(e-n)/r+(et<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Pt=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Et(t,e,n){if(t){let r=xt(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=_t(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Tt(t,e){return t?Object.assign(e||{},t):t}function It(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=ut(t[3]))):(e=Tt(t,{r:0,g:0,b:0,a:1})).a=ut(e.a),e}function jt(t){return"r"===t.charAt(0)?function(t){const e=Mt.exec(t);let n,r,a,i=255;if(e){if(e[7]!==n){const t=+e[7];i=e[8]?ct(t):lt(255*t,0,255)}return n=+e[1],r=+e[3],a=+e[5],n=255&(e[2]?ct(n):lt(n,0,255)),r=255&(e[4]?ct(r):lt(r,0,255)),a=255&(e[6]?ct(a):lt(a,0,255)),{r:n,g:r,b:a,a:i}}}(t):function(t){const e=bt.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?ct(+e[5]):ut(+e[5]));const a=kt(+e[2]),i=+e[3]/100,o=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return wt(Ct,t,e,n)}(a,i,o):"hsv"===e[1]?function(t,e,n){return wt(yt,t,e,n)}(a,i,o):_t(a,i,o),{r:n[0],g:n[1],b:n[2],a:r}}(t)}class zt{constructor(t){if(t instanceof zt)return t;const e=typeof t;let n;var r,a,i;"object"===e?n=It(t):"string"===e&&(i=(r=t).length,"#"===r[0]&&(4===i||5===i?a={r:255&17*ft[r[1]],g:255&17*ft[r[2]],b:255&17*ft[r[3]],a:5===i?17*ft[r[4]]:255}:7!==i&&9!==i||(a={r:ft[r[1]]<<4|ft[r[2]],g:ft[r[3]]<<4|ft[r[4]],b:ft[r[5]]<<4|ft[r[6]],a:9===i?ft[r[7]]<<4|ft[r[8]]:255})),n=a||function(t){Ot||(Ot=function(){const t={},e=Object.keys(Bt),n=Object.keys(St);let r,a,i,o,s;for(r=0;r>16&255,i>>8&255,255&i]}return t}(),Ot.transparent=[0,0,0,0]);const e=Ot[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||jt(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Tt(this._rgb);return t&&(t.a=dt(t.a)),t}set rgb(t){this._rgb=It(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${dt(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function(t){var e=(t=>At(t.r)&&At(t.g)&&At(t.b)&&At(t.a))(t)?gt:mt;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=xt(t),n=e[0],r=ht(e[1]),a=ht(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${a}%, ${dt(t.a)})`:`hsl(${n}, ${r}%, ${a}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let a;const i=e===a?.5:e,o=2*i-1,s=n.a-r.a,l=((o*s==-1?o:(o+s)/(1+o*s))+1)/2;a=1-l,n.r=255&l*n.r+a*r.r+.5,n.g=255&l*n.g+a*r.g+.5,n.b=255&l*n.b+a*r.b+.5,n.a=i*n.a+(1-i)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=Pt(dt(t.r)),a=Pt(dt(t.g)),i=Pt(dt(t.b));return{r:ut(Dt(r+n*(Pt(dt(e.r))-r))),g:ut(Dt(a+n*(Pt(dt(e.g))-a))),b:ut(Dt(i+n*(Pt(dt(e.b))-i))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new zt(this.rgb)}alpha(t){return this._rgb.a=ut(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=st(.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 Et(this._rgb,2,t),this}darken(t){return Et(this._rgb,2,-t),this}saturate(t){return Et(this._rgb,1,t),this}desaturate(t){return Et(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=xt(t);n[0]=kt(n[0]+e),n=_t(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Lt(){}const Ft=(()=>{let t=0;return()=>t++})();function Rt(t){return null==t}function Nt(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 Wt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Ut(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Yt(t,e){return Ut(t)?t:e}function Ht(t,e){return void 0===t?e:t}const qt=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Vt(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function $t(t,e,n,r){let a,i,o;if(Nt(t))if(i=t.length,r)for(a=i-1;a>=0;a--)e.call(n,t[a],a);else for(a=0;at,x:t=>t.x,y:t=>t.y};function ne(t,e){const n=ee[e]||(ee[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const t of e)r+=t,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function re(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ae=t=>void 0!==t,ie=t=>"function"==typeof t,oe=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},se=Math.PI,le=2*se,ce=le+se,ue=Number.POSITIVE_INFINITY,de=se/180,he=se/2,fe=se/4,pe=2*se/3,ge=Math.log10,me=Math.sign;function Ae(t,e,n){return Math.abs(t-e)l&&c=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Pe(t,e,n){n=n||(n=>t[n]1;)r=i+a>>1,n(r)?i=r:a=r;return{lo:i,hi:a}}const Ee=(t,e,n,r)=>Pe(t,n,r?r=>{const a=t[r][e];return at[r][e]Pe(t,n,(r=>t[r][e]>=n)),Ie=["push","pop","shift","splice","unshift"];function je(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,a=r.indexOf(e);-1!==a&&r.splice(a,1),r.length>0||(Ie.forEach((e=>{delete t[e]})),delete t._chartjs)}function ze(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Le="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Fe(t,e){let n=[],r=!1;return function(...a){n=a,r||(r=!0,Le.call(window,(()=>{r=!1,t.apply(e,n)})))}}const Re=t=>"start"===t?"left":"end"===t?"right":"center",Ne=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function We(t,e,n){const r=e.length;let a=0,i=r;if(t._sorted){const{iScale:o,_parsed:s}=t,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(a=Me(Math.min(Ee(s,l,c).lo,n?r:Ee(e,l,o.getPixelForValue(c)).lo),0,r-1)),i=h?Me(Math.max(Ee(s,o.axis,u,!0).hi+1,n?0:Ee(e,l,o.getPixelForValue(u),!0).hi+1),a,r)-a:r-a}return{start:a,count:i}}function Ue(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,a={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=a,!0;const i=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,a),i}const Ye=t=>0===t||1===t,He=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*le/n),qe=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*le/n)+1,Ve={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*he),easeOutSine:t=>Math.sin(t*he),easeInOutSine:t=>-.5*(Math.cos(se*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=>Ye(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=>Ye(t)?t:He(t,.075,.3),easeOutElastic:t=>Ye(t)?t:qe(t,.075,.3),easeInOutElastic(t){const e=.1125;return Ye(t)?t:t<.5?.5*He(2*t,e,.45):.5+.5*qe(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-Ve.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*Ve.easeInBounce(2*t):.5*Ve.easeOutBounce(2*t-1)+.5};function $e(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Qe(t){return $e(t)?t:new zt(t)}function Ge(t){return $e(t)?t:new zt(t).saturate(.5).darken(.1).hexString()}const Xe=["x","y","borderWidth","radius","tension"],Ze=["color","borderColor","backgroundColor"],Ke=new Map;function Je(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Ke.get(n);return r||(r=new Intl.NumberFormat(t,e),Ke.set(n,r)),r}(e,n).format(t)}const tn={values:t=>Nt(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let a,i=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)&&(a="scientific"),i=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const o=ge(Math.abs(i)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:a,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Je(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(ge(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?tn.numeric.call(this,t,e,n):""}};var en={formatters:tn};const nn=Object.create(null),rn=Object.create(null);function an(t,e){if(!e)return t;const n=e.split(".");for(let e=0,r=n.length;et.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)=>Ge(e.backgroundColor),this.hoverBorderColor=(t,e)=>Ge(e.borderColor),this.hoverColor=(t,e)=>Ge(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 on(this,t,e)}get(t){return an(this,t)}describe(t,e){return on(rn,t,e)}override(t,e){return on(nn,t,e)}route(t,e,n,r){const a=an(this,t),i=an(this,n),o="_"+e;Object.defineProperties(a,{[o]:{value:a[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[o],e=i[r];return Wt(t)?Object.assign({},e,t):Ht(t,e)},set(t){this[o]=t}}})}apply(t){t.forEach((t=>t(this)))}}var ln=new sn({_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:Ze},numbers:{type:"number",properties:Xe}}),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:en.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 cn(t,e,n,r,a){let i=e[a];return i||(i=e[a]=t.measureText(a).width,n.push(a)),i>r&&(r=i),r}function un(t,e,n,r){let a=(r=r||{}).data=r.data||{},i=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(a=r.data={},i=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let o=0;const s=n.length;let l,c,u,d,h;for(l=0;ln.length){for(l=0;l0&&t.stroke()}}function gn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&""!==i.strokeColor;let l,c;for(t.save(),t.font=a.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Rt(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,i),l=0;l+t||0;function On(t,e){const n={},r=Wt(e),a=r?Object.keys(e):e,i=Wt(t)?r?n=>Ht(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of a)n[t]=Bn(i(t));return n}function Mn(t){return On(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Dn(t){return On(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pn(t){const e=Mn(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function En(t,e){t=t||{},e=e||ln.font;let n=Ht(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=Ht(t.style,e.style);r&&!(""+r).match(kn)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const a={family:Ht(t.family,e.family),lineHeight:Sn(Ht(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:Ht(t.weight,e.weight),string:""};return a.string=function(t){return!t||Rt(t.size)||Rt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(a),a}function Tn(t,e,n,r){let a,i,o,s=!0;for(a=0,i=t.length;at[0])){const i=n||t;void 0===r&&(r=Vn("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:a,override:n=>jn([n,...t],e,i,r)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Nn(n,r,(()=>function(t,e,n,r){let a;for(const i of e)if(a=Vn(Fn(i,t),n),void 0!==a)return Rn(t,a)?Hn(n,r,t,a):a}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>$n(t).includes(e),ownKeys:t=>$n(t),set(t,e,n){const r=t._storage||(t._storage=a());return t[e]=r[e]=n,delete t._keys,!0}})}function zn(t,e,n,r){const a={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Ln(t,r),setContext:e=>zn(t,e,n,r),override:a=>zn(t.override(a),e,n,r)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Nn(t,e,(()=>function(t,e,n){const{_proxy:r,_context:a,_subProxy:i,_descriptors:o}=t;let s=r[e];return ie(s)&&o.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:a,_context:i,_subProxy:o,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(i,o||r);return s.delete(t),Rn(t,l)&&(l=Hn(a._scopes,a,t,l)),l}(e,s,t,n)),Nt(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:a,_context:i,_subProxy:o,_descriptors:s}=n;if(void 0!==i.index&&r(t))return e[i.index%e.length];if(Wt(e[0])){const n=e,r=a._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Hn(r,a,t,l);e.push(zn(n,i,o&&o[t],s))}}return e}(e,s,t,o.isIndexable)),Rn(e,s)&&(s=zn(s,a,i&&i[e],o)),s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Ln(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:a=e.allKeys}=t;return{allKeys:a,scriptable:n,indexable:r,isScriptable:ie(n)?n:()=>n,isIndexable:ie(r)?r:()=>r}}const Fn=(t,e)=>t?t+re(e):e,Rn=(t,e)=>Wt(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Nn(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const r=n();return t[e]=r,r}function Wn(t,e,n){return ie(t)?t(e,n):t}const Un=(t,e)=>!0===t?e:"string"==typeof t?ne(e,t):void 0;function Yn(t,e,n,r,a){for(const i of e){const e=Un(n,i);if(e){t.add(e);const i=Wn(e._fallback,n,a);if(void 0!==i&&i!==n&&i!==r)return i}else if(!1===e&&void 0!==r&&n!==r)return null}return!1}function Hn(t,e,n,r){const a=e._rootScopes,i=Wn(e._fallback,n,r),o=[...t,...a],s=new Set;s.add(r);let l=qn(s,o,n,i||n,r);return null!==l&&(void 0===i||i===n||(l=qn(s,o,i,l,r),null!==l))&&jn(Array.from(s),[""],a,i,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const a=r[e];return Nt(a)&&Wt(n)?n:a||{}}(e,n,r)))}function qn(t,e,n,r,a){for(;n;)n=Yn(t,e,n,r,a);return n}function Vn(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function $n(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 Qn(t,e,n,r){const{iScale:a}=t,{key:i="r"}=this._parsing,o=new Array(r);let s,l,c,u;for(s=0,l=r;se"x"===t?"y":"x";function Kn(t,e,n,r){const a=t.skip?e:t,i=e,o=n.skip?e:n,s=ke(i,a),l=ke(o,i);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,h=r*u;return{previous:{x:i.x-d*(o.x-a.x),y:i.y-d*(o.y-a.y)},next:{x:i.x+h*(o.x-a.x),y:i.y+h*(o.y-a.y)}}}function Jn(t,e,n){return Math.max(Math.min(t,n),e)}function tr(t,e,n,r,a){let i,o,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const n=Zn(e),r=t.length,a=Array(r).fill(0),i=Array(r);let o,s,l,c=Xn(t,0);for(o=0;ot.ownerDocument.defaultView.getComputedStyle(t,null),ir=["top","right","bottom","left"];function or(t,e,n){const r={};n=n?"-"+n:"";for(let a=0;a<4;a++){const i=ir[a];r[i]=parseFloat(t[e+"-"+i+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const sr=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function lr(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,a=ar(n),i="border-box"===a.boxSizing,o=or(a,"padding"),s=or(a,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:a,offsetY:i}=r;let o,s,l=!1;if(sr(a,i,t.target))o=a,s=i;else{const t=e.getBoundingClientRect();o=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:o,y:s,box:l}}(t,n),d=o.left+(u&&s.left),h=o.top+(u&&s.top);let{width:f,height:p}=e;return i&&(f-=o.width+s.width,p-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/p*n.height/r)}}const cr=t=>Math.round(10*t)/10;function ur(t,e,n){const r=e||1,a=Math.floor(t.height*r),i=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||o.height!==a||o.width!==i)&&(t.currentDevicePixelRatio=r,o.height=a,o.width=i,t.ctx.setTransform(r,0,0,r,0,0),!0)}const dr=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};er()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function hr(t,e){const n=function(t,e){return ar(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function fr(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function pr(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function gr(t,e,n,r){const a={x:t.cp2x,y:t.cp2y},i={x:e.cp1x,y:e.cp1y},o=fr(t,a,n),s=fr(a,i,n),l=fr(i,e,n),c=fr(o,s,n),u=fr(s,l,n);return fr(c,u,n)}function mr(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Ar(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function br(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function vr(t){return"angle"===t?{between:Oe,compare:Se,normalize:Be}:{between:De,compare:(t,e)=>t-e,normalize:t=>t}}function yr({start:t,end:e,count:n,loop:r,style:a}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:a}}function Cr(t,e,n){if(!n)return[t];const{property:r,start:a,end:i}=n,o=e.length,{compare:s,between:l,normalize:c}=vr(r),{start:u,end:d,loop:h,style:f}=function(t,e,n){const{property:r,start:a,end:i}=n,{between:o,normalize:s}=vr(r),l=e.length;let c,u,{start:d,end:h,loop:f}=t;if(f){for(d+=l,h+=l,c=0,u=l;cr({chart:t,initial:e.initial,numSteps:i,currentStep:Math.min(n-e.start,i)})))}_refresh(){this._request||(this._running=!0,this._request=Le.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const a=n.items;let i,o=a.length-1,s=!1;for(;o>=0;--o)i=a[o],i._active?(i._total>n.duration&&(n.duration=i._total),i.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),a.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=a.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 r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Sr=new kr;const Br="transparent",Or={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=Qe(t||Br),a=r.valid&&Qe(e||Br);return a&&a.valid?a.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Mr{constructor(t,e,n,r){const a=e[n];r=Tn([t.to,r,a,t.from]);const i=Tn([t.from,a,r]);this._active=!0,this._fn=t.fn||Or[t.type||typeof i],this._easing=Ve[t.easing]||Ve.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=i,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],a=n-this._start,i=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(i,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Tn([t.to,e,r,t.from]),this._from=Tn([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,r=this._prop,a=this._from,i=this._loop,o=this._to;let s;if(this._active=a!==o&&(i||e1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(a,o,s))}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{const a=t[r];if(!Wt(a))return;const i={};for(const t of e)i[t]=a[t];(Nt(a.properties)&&a.properties||[r]).forEach((t=>{t!==r&&n.has(t)||n.set(t,i)}))}))}_animateOptions(t,e){const n=e.options,r=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(!r)return[];const a=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let e=0;e{t.options=n}),(()=>{})),a}_createAnimations(t,e){const n=this._properties,r=[],a=t.$animations||(t.$animations={}),i=Object.keys(e),o=Date.now();let s;for(s=i.length-1;s>=0;--s){const l=i[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const c=e[l];let u=a[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(a[l]=u=new Mr(d,t,l,c),r.push(u)):t[l]=c}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Sr.add(this._chart,n),!0):void 0}}function Pr(t,e){const n=t&&t.options||{},r=n.reverse,a=void 0===n.min?e:0,i=void 0===n.max?e:0;return{start:r?i:a,end:r?a:i}}function Er(t,e){const n=[],r=t._getSortedDatasetMetas(e);let a,i;for(a=0,i=r.length;a0||!n&&e<0)return a.index}return null}function Lr(t,e){const{chart:n,_cachedMeta:r}=t,a=n._stacks||(n._stacks={}),{iScale:i,vScale:o,index:s}=r,l=i.axis,c=o.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(i,o,r),d=e.length;let h;for(let t=0;tn[t].axis===e)).shift()}function Rr(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[n]&&delete e[r]._visualValues[n]}}}const Nr=t=>"reset"===t||"none"===t,Wr=(t,e)=>e?t:Object.assign({},t);class Ur{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=Ir(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&&Rr(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,a=e.xAxisID=Ht(n.xAxisID,Fr(t,"x")),i=e.yAxisID=Ht(n.yAxisID,Fr(t,"y")),o=e.rAxisID=Ht(n.rAxisID,Fr(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,a,i,o),c=e.vAxisID=r(s,i,a,o);e.xScale=this.getScaleForId(a),e.yScale=this.getScaleForId(i),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}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&&je(this._data,this),t._stacked&&Rr(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Wt(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let r,a,i;for(r=0,a=e.length;r{const e="_onData"+re(t),n=r[t];Object.defineProperty(r,t,{configurable:!0,enumerable:!1,value(...t){const a=n.apply(this,t);return r._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),a}})})))),this._syncList=[],this._data=e}var r}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const a=e._stacked;e._stacked=Ir(e.vScale,e),e.stack!==n.stack&&(r=!0,Rr(e),e.stack=n.stack),this._resyncElements(t),(r||a!==e._stacked)&&Lr(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:a,_stacked:i}=n,o=a.axis;let s,l,c,u=0===t&&e===r.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=Nt(r[t])?this.parseArrayData(n,r,t,e):Wt(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const a=()=>null===l[o]||d&&l[o]t&&!e.hidden&&e._stacked&&{keys:Er(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:r,maxDefined:a}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}(o);let d,h;function f(){h=r[d];const e=h[o.axis];return!Ut(h[t.axis])||c>e||u=0;--d)if(!f()){this.updateRangeFromParsed(l,t,h,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,a,i;for(r=0,a=e.length;r=0&&tthis.getContext(n,r,e)),u);return f.$shared&&(f.$shared=s,a[i]=Object.freeze(Wr(f,s))),f}_resolveAnimations(t,e,n){const r=this.chart,a=this._cachedDataOpts,i=`animation-${e}`,o=a[i];if(o)return o;let s;if(!1!==r.options.animation){const r=this.chart.config,a=r.datasetAnimationScopeKeys(this._type,e),i=r.getOptionScopes(this.getDataset(),a);s=r.createResolver(i,this.getContext(t,n,e))}const l=new Dr(r,s&&s.animations);return s&&s._cacheable&&(a[i]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Nr(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,a=this.getSharedOptions(n),i=this.includeOptions(e,a)||a!==r;return this.updateSharedOptions(a,e,n),{sharedOptions:a,includeOptions:i}}updateElement(t,e,n,r){Nr(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!Nr(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const a=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(a)||a})}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 r=n.length,a=e.length,i=Math.min(a,r);i&&this.parse(0,i),a>r?this._insertElements(r,a-r,t):a{for(t.length+=e,o=t.length-1;o>=i;o--)t[o]=t[o-e]};for(s(a),o=t;ot-e)))}return t._cache.$bar}(e,t.type);let r,a,i,o,s=e._length;const l=()=>{32767!==i&&-32768!==i&&(ae(o)&&(s=Math.min(s,Math.abs(i-o)||s)),o=i)};for(r=0,a=n.length;rMath.abs(s)&&(l=s,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:a,end:i,min:o,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function qr(t,e,n,r){const a=t.iScale,i=t.vScale,o=a.getLabels(),s=a===i,l=[];let c,u,d,h;for(c=n,u=n+r;ct.x,n="left",r="right"):(e=t.base"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map(((e,a)=>{const i=t.getDatasetMeta(0).controller.getStyle(a);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let a,i,o=t=>+n[t];if(Wt(n[t])){const{key:t="value"}=this._parsing;o=e=>+ne(n[e],t)}for(a=t,i=t+e;aOe(t,s,l,!0)?1:Math.max(e,e*n,r,r*n),p=(t,e,r)=>Oe(t,s,l,!0)?-1:Math.min(e,e*n,r,r*n),g=f(0,c,d),m=f(he,u,h),A=p(se,c,d),b=p(se+he,u,h);r=(g-A)/2,a=(m-b)/2,i=-(g+A)/2,o=-(m+b)/2}return{ratioX:r,ratioY:a,offsetX:i,offsetY:o}}(h,d,s),A=(n.width-i)/f,b=(n.height-i)/p,v=Math.max(Math.min(A,b)/2,0),y=qt(this.options.radius,v),C=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*y,this.offsetY=m*y,r.total=this.calculateTotal(),this.outerRadius=y-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*u,0),this.updateElements(a,0,a.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,a=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*a/le)}updateElements(t,e,n,r){const a="reset"===r,i=this.chart,o=i.chartArea,s=i.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=a&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:f,includeOptions:p}=this._getSharedOptions(e,r);let g,m=this._getRotation();for(g=0;g0&&!isNaN(t)?le*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=Je(e._parsed[t],n.options.locale);return{label:r[t]||"",value:a}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,a,i,o,s;if(!t)for(r=0,a=n.data.datasets.length;r{const i=t.getDatasetMeta(0).controller.getStyle(a);return{text:e,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,fontColor:r,lineWidth:i.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(a),index:a}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=Je(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:a}}parseObjectData(t,e,n,r){return Qn.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(re.max&&(e.max=r))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),a=Math.max(r/2,0),i=(a-Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=a-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(t,e,n,r){const a="reset"===r,i=this.chart,o=i.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*se;let d,h=u;const f=360/this.countVisibleElements();for(d=0;d{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Ce(this.resolveDataElementOptions(t,e).angle||n):0}}var Jr=Object.freeze({__proto__:null,BarController:class extends Ur{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,r){return qr(t,e,n,r)}parseArrayData(t,e,n,r){return qr(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:a,vScale:i}=t,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l="x"===a.axis?o:s,c="x"===i.axis?o:s,u=[];let d,h,f,p;for(d=n,h=n+r;dt.controller.options.grouped)),a=n.options.stacked,i=[],o=t=>{const n=t.controller.getParsed(e),r=n&&n[t.vScale.axis];if(Rt(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!o(n))&&((!1===a||-1===i.indexOf(n.stack)||void 0===a&&void 0===n.stack)&&i.push(n.stack),n.index===t))break;return i.length||i.push(void 0),i}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const r=this._getStacks(t,n),a=void 0!==e?r.indexOf(e):-1;return-1===a?r.length-1:a}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let a,i;for(a=0,i=e.data.length;a=n?1:-1)}(d,e,o)*i,h===o&&(m-=d/2);const t=e.getPixelForDecimal(0),a=e.getPixelForDecimal(1),l=Math.min(t,a),f=Math.max(t,a);m=Math.max(Math.min(m,f),l),u=m+d,n&&!c&&(s._stacks[e.axis]._visualValues[r]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(o)){const t=me(d)*e.getLineWidthForValue(o)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,a=r.skipNull,i=Ht(r.maxBarThickness,1/0);let o,s;if(e.grouped){const n=a?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,r){const a=e.pixels,i=a[t];let o=t>0?a[t-1]:null,s=t=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:a}=e,i=this.getParsed(t),o=r.getLabelForValue(i.x),s=a.getLabelForValue(i.y),l=i._custom;return{label:n[t]||"",value:"("+o+", "+s+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,r){const a="reset"===r,{iScale:i,vScale:o}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,r),c=i.axis,u=o.axis;for(let d=e;d0&&this.getParsed(e-1);for(let n=0;n=A){b.skip=!0;continue}const y=this.getParsed(n),C=Rt(y[h]),x=b[d]=i.getPixelForValue(y[d],n),w=b[h]=a||C?o.getBasePixel():o.getPixelForValue(s?this.applyStack(o,y,s):y[h],n);b.skip=isNaN(x)||isNaN(w)||C,b.stop=n>0&&Math.abs(y[d]-v[d])>g,p&&(b.parsed=y,b.raw=l.data[n]),u&&(b.options=c||this.resolveDataElementOptions(n,f.active?"active":r)),m||this.updateElement(f,n,b,r),v=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const a=r[0].size(this.resolveDataElementOptions(0)),i=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,a,i)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Zr{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Kr,RadarController:class extends Ur{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,r){return Qn.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta,n=e.dataset,r=e.data||[],a=e.iScale.getLabels();if(n.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const i={_loop:!0,_fullLoop:a.length===r.length,options:e};this.updateElement(n,void 0,i,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,n,r){const a=this._cachedMeta.rScale,i="reset"===r;for(let o=e;o0&&this.getParsed(e-1);for(let c=e;c0&&Math.abs(n[h]-b[h])>m,g&&(p.parsed=n,p.raw=l.data[c]),d&&(p.options=u||this.resolveDataElementOptions(c,e.active?"active":r)),A||this.updateElement(e,c,p,r),b=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!e.length)return r;const a=e[0].size(this.resolveDataElementOptions(0)),i=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,a,i)/2}}});function ta(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ea{static override(t){Object.assign(ea.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return ta()}parse(){return ta()}format(){return ta()}add(){return ta()}diff(){return ta()}startOf(){return ta()}endOf(){return ta()}}var na={_date:ea};function ra(t,e,n,r){const{controller:a,data:i,_sorted:o}=t,s=a._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&o&&i.length){const t=s._reversePixels?Te:Ee;if(!r)return t(i,e,n);if(a._sharedOptions){const r=i[0],a="function"==typeof r.getRange&&r.getRange(e);if(a){const r=t(i,e,n-a),o=t(i,e,n+a);return{lo:r.lo,hi:o.hi}}}}return{lo:0,hi:i.length-1}}function aa(t,e,n,r,a){const i=t.getSortedVisibleDatasetMetas(),o=n[e];for(let t=0,n=i.length;t{t[o](e[n],a)&&(i.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,a))})),r&&!s?[]:i}var la={evaluateInteractionItems:aa,modes:{index(t,e,n,r){const a=lr(e,t),i=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?ia(t,a,i,r,o):oa(t,a,i,!1,r,o),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[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 a=lr(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?ia(t,a,i,r,o):oa(t,a,i,!1,r,o);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;tia(t,lr(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const a=lr(e,t),i=n.axis||"xy",o=n.includeInvisible||!1;return oa(t,a,i,n.intersect,r,o)},x:(t,e,n,r)=>sa(t,lr(e,t),"x",n.intersect,r),y:(t,e,n,r)=>sa(t,lr(e,t),"y",n.intersect,r)}};const ca=["left","top","right","bottom"];function ua(t,e){return t.filter((t=>t.pos===e))}function da(t,e){return t.filter((t=>-1===ca.indexOf(t.pos)&&t.box.axis===e))}function ha(t,e){return t.sort(((t,n)=>{const r=e?n:t,a=e?t:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight}))}function fa(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function pa(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 ga(t,e,n,r){const{pos:a,box:i}=n,o=t.maxPadding;if(!Wt(a)){n.size&&(t[a]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?i.height:i.width),n.size=e.size/e.count,t[a]+=n.size}i.getPadding&&pa(o,i.getPadding());const s=Math.max(0,e.outerWidth-fa(o,t,"left","right")),l=Math.max(0,e.outerHeight-fa(o,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function ma(t,e){const n=e.maxPadding;return function(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{r[t]=Math.max(e[t],n[t])})),r}(t?["left","right"]:["top","bottom"])}function Aa(t,e,n,r){const a=[];let i,o,s,l,c,u;for(i=0,o=t.length,c=0;it.box.fullSize)),!0),r=ha(ua(e,"left"),!0),a=ha(ua(e,"right")),i=ha(ua(e,"top"),!0),o=ha(ua(e,"bottom")),s=da(e,"x"),l=da(e,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:a.concat(l).concat(o).concat(s),chartArea:ua(e,"chartArea"),vertical:r.concat(a).concat(l),horizontal:i.concat(o).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;$t(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,d=Object.freeze({outerWidth:e,outerHeight:n,padding:a,availableWidth:i,availableHeight:o,vBoxMaxWidth:i/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},a);pa(h,Pn(r));const f=Object.assign({maxPadding:h,w:i,h:o,x:a.left,y:a.top},a),p=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:a}=n;if(!t||!ca.includes(r))continue;const i=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=a}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:a}=e;let i,o,s;for(i=0,o=t.length;i{const n=e.box;Object.assign(n,t.chartArea),n.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Ca{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class xa extends Ca{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const wa="$chartjs",_a={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},ka=t=>null===t||""===t,Sa=!!dr&&{passive:!0};function Ba(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Sa)}function Oa(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ma(t,e,n){const r=t.canvas,a=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Oa(n.addedNodes,r),e=e&&!Oa(n.removedNodes,r);e&&n()}));return a.observe(document,{childList:!0,subtree:!0}),a}function Da(t,e,n){const r=t.canvas,a=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Oa(n.removedNodes,r),e=e&&!Oa(n.addedNodes,r);e&&n()}));return a.observe(document,{childList:!0,subtree:!0}),a}const Pa=new Map;let Ea=0;function Ta(){const t=window.devicePixelRatio;t!==Ea&&(Ea=t,Pa.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Ia(t,e,n){const r=t.canvas,a=r&&nr(r);if(!a)return;const i=Fe(((t,e)=>{const r=a.clientWidth;n(t,e),r{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||i(n,r)}));return o.observe(a),function(t,e){Pa.size||window.addEventListener("resize",Ta),Pa.set(t,e)}(t,i),o}function ja(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Pa.delete(t),Pa.size||window.removeEventListener("resize",Ta)}(t)}function za(t,e,n){const r=t.canvas,a=Fe((e=>{null!==t.ctx&&n(function(t,e){const n=_a[t.type]||t.type,{x:r,y:a}=lr(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==a?a:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Sa)}(r,e,a),a}class La extends Ca{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"),a=t.getAttribute("width");if(t[wa]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",ka(a)){const e=hr(t,"width");void 0!==e&&(t.width=e)}if(ka(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=hr(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[wa])return!1;const n=e[wa].initial;["height","width"].forEach((t=>{const r=n[t];Rt(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[wa],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),a={attach:Ma,detach:Da,resize:Ia}[e]||za;r[e]=a(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];r&&(({attach:ja,detach:ja,resize:ja}[e]||Ba)(t,e,r),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return function(t,e,n,r){const a=ar(t),i=or(a,"margin"),o=rr(a.maxWidth,t,"clientWidth")||ue,s=rr(a.maxHeight,t,"clientHeight")||ue,l=function(t,e,n){let r,a;if(void 0===e||void 0===n){const i=nr(t);if(i){const t=i.getBoundingClientRect(),o=ar(i),s=or(o,"border","width"),l=or(o,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=rr(o.maxWidth,i,"clientWidth"),a=rr(o.maxHeight,i,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||ue,maxHeight:a||ue}}(t,e,n);let{width:c,height:u}=l;if("content-box"===a.boxSizing){const t=or(a,"border","width"),e=or(a,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-i.width),u=Math.max(0,r?c/r:u-i.height),c=cr(Math.min(c,o,l.maxWidth)),u=cr(Math.min(u,s,l.maxHeight)),c&&!u&&(u=cr(c/2)),(void 0!==e||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=cr(Math.floor(u*r))),{width:c,height:u}}(t,e,n,r)}isAttached(t){const e=nr(t);return!(!e||!e.isConnected)}}class Fa{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 ve(this.x)&&ve(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach((t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),r}}function Ra(t,e,n,r,a){const i=Ht(r,0),o=Math.min(Ht(a,t.length),t.length);let s,l,c,u=0;for(n=Math.ceil(n),a&&(s=a-r,n=s/Math.floor(s/n)),c=i;c<0;)u++,c=Math.round(i+u*n);for(l=Math.max(i,0);l"top"===e||"left"===e?t[e]+n:t[e]-n,Wa=(t,e)=>Math.min(e||t,t);function Ua(t,e){const n=[],r=t.length/e,a=t.length;let i=0;for(;io+s)))return c}function Ha(t){return t.drawTicks?t.tickLength:0}function qa(t,e){if(!t.display)return 0;const n=En(t.font,e),r=Pn(t.padding);return(Nt(t.text)?t.text.length:1)*n.lineHeight+r.height}function Va(t,e,n){let r=Re(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class $a extends Fa{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=Yt(t,Number.POSITIVE_INFINITY),e=Yt(e,Number.NEGATIVE_INFINITY),n=Yt(n,Number.POSITIVE_INFINITY),r=Yt(r,Number.NEGATIVE_INFINITY),{min:Yt(t,n),max:Yt(e,r),minDefined:Ut(t),maxDefined:Ut(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:a,maxDefined:i}=this.getUserBounds();if(a&&i)return{min:n,max:r};const o=this.getMatchingVisibleMetas();for(let s=0,l=o.length;sr?r:n,r=a&&n>r?n:r,{min:Yt(n,Yt(r,n)),max:Yt(r,Yt(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(){Vt(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:a,ticks:i}=this.options,o=i.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=function(t,e,n){const{min:r,max:a}=t,i=qt(e,(a-r)/2),o=(t,e)=>n&&0===t?0:t+e;return{min:o(r,-Math.abs(i)),max:o(a,i)}}(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=oa)return function(t,e,n,r){let a,i=0,o=n[0];for(r=Math.ceil(r),a=0;at-e)).pop(),e}(r);for(let t=0,e=i.length-1;ta)return e}return Math.max(a,1)}(i,e,a);if(o>0){let t,n;const r=o>1?Math.round((l-s)/(o-1)):null;for(Ra(e,c,u,Rt(r)?0:s-r,s),t=0,n=o-1;t=a||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Me(this.chart.width-u,0,this.maxWidth);i=t.offset?this.maxWidth/n:h/(n-1),u+6>i&&(i=h/(n-(t.offset?.5:1)),o=this.maxHeight-Ha(t.grid)-e.padding-qa(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=xe(Math.min(Math.asin(Me((c.highest.height+6)/i,-1,1)),Math.asin(Me(o/s,-1,1))-Math.asin(Me(d/s,-1,1)))),l=Math.max(r,Math.min(a,l))),this.labelRotation=l}afterCalculateLabelRotation(){Vt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Vt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:a}}=this,i=this._isVisible(),o=this.isHorizontal();if(i){const i=qa(r,e.options.font);if(o?(t.width=this.maxWidth,t.height=Ha(a)+i):(t.height=this.maxHeight,t.width=Ha(a)+i),n.display&&this.ticks.length){const{first:e,last:r,widest:a,highest:i}=this._getLabelSizes(),s=2*n.padding,l=Ce(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const e=n.mirror?0:u*a.width+c*i.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*a.width+u*i.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,u,c)}}this._handleMargins(),o?(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,r){const{ticks:{align:a,padding:i},position:o}=this.options,s=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*t.width,d=n*e.height):(u=n*t.height,d=r*e.width):"start"===a?d=e.width:"end"===a?u=t.width:"inner"!==a&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-o+i)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+i)*this.width/(this.width-c),0)}else{let n=e.height/2,r=t.height/2;"start"===a?(n=0,r=t.height):"end"===a&&(n=e.height,r=0),this.paddingTop=n+i,this.paddingBottom=r+i}}_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(){Vt(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