1/*! For license information please see 303.ed99fb0f.js.LICENSE.txt */ 2(self.webpackChunk=self.webpackChunk||[]).push([[303],{89:(t,e,n)=>{"use strict";n.d(e,{K:()=>Ae,QS:()=>Pe}),function(t){function e(t,e,n){throw new t("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+e+".",n)}"function"!=typeof t.requestSubmit&&(t.requestSubmit=function(t){t?(!function(t,n){t instanceof HTMLElement||e(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==t.type||e(TypeError,"The specified element is not a submit button"),t.form==n||e(DOMException,"The specified element is not owned by this form element","NotFoundError")}(t,this),t.click()):((t=document.createElement("input")).type="submit",t.hidden=!0,this.appendChild(t),t.click(),this.removeChild(t))})}(HTMLFormElement.prototype);const r=new WeakMap;function i(t){const e=function(t){const e=t instanceof Element?t:t instanceof Node?t.parentElement:null,n=e?e.closest("input, button"):null;return"submit"==n?.type?n:null}(t.target);e&&e.form&&r.set(e.form,e)}!function(){if("submitter"in Event.prototype)return;let t=window.Event.prototype;if("SubmitEvent"in window){const e=window.SubmitEvent.prototype;if(!/Apple Computer/.test(navigator.vendor)||"submitter"in e)return;t=e}addEventListener("click",i,!0),Object.defineProperty(t,"submitter",{get(){if("submit"==this.type&&this.target instanceof HTMLFormElement)return r.get(this.target)}})}();const o="eager",a="lazy";class s extends HTMLElement{static delegateConstructor=void 0;loaded=Promise.resolve();static get observedAttributes(){return["disabled","loading","src"]}constructor(){super(),this.delegate=new s.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(t){"loading"==t?this.delegate.loadingStyleChanged():"src"==t?this.delegate.sourceURLChanged():"disabled"==t&&this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(t){t?this.setAttribute("src",t):this.removeAttribute("src")}get refresh(){return this.getAttribute("refresh")}set refresh(t){t?this.setAttribute("refresh",t):this.removeAttribute("refresh")}get shouldReloadWithMorph(){return this.src&&"morph"===this.refresh}get loading(){return function(t){if("lazy"===t.toLowerCase())return a;return o}(this.getAttribute("loading")||"")}set loading(t){t?this.setAttribute("loading",t):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(t){t?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){return this.ownerDocument?.documentElement?.hasAttribute("data-turbo-preview")}}const l={enabled:!0,progressBarDelay:500,unvisitableExtensions:new Set([".7z",".aac",".apk",".avi",".bmp",".bz2",".css",".csv",".deb",".dmg",".doc",".docx",".exe",".gif",".gz",".heic",".heif",".ico",".iso",".jpeg",".jpg",".js",".json",".m4a",".mkv",".mov",".mp3",".mp4",".mpeg",".mpg",".msi",".ogg",".ogv",".pdf",".pkg",".png",".ppt",".pptx",".rar",".rtf",".svg",".tar",".tif",".tiff",".txt",".wav",".webm",".webp",".wma",".wmv",".xls",".xlsx",".xml",".zip"])};function c(t){if("false"==t.getAttribute("data-turbo-eval"))return t;{const e=document.createElement("script"),n=_();return n&&(e.nonce=n),e.textContent=t.textContent,e.async=!1,function(t,e){for(const{name:n,value:r}of e.attributes)t.setAttribute(n,r)}(e,t),e}}function u(t,{target:e,cancelable:n,detail:r}={}){const i=new CustomEvent(t,{cancelable:n,bubbles:!0,composed:!0,detail:r});return e&&e.isConnected?e.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function h(t){t.preventDefault(),t.stopImmediatePropagation()}function f(){return"hidden"===document.visibilityState?p():d()}function d(){return new Promise((t=>requestAnimationFrame((()=>t()))))}function p(){return new Promise((t=>setTimeout((()=>t()),0)))}function m(t=""){return(new DOMParser).parseFromString(t,"text/html")}function g(t,...e){const n=function(t,e){return t.reduce(((t,n,r)=>t+n+(null==e[r]?"":e[r])),"")}(t,e).replace(/^\n/,"").split("\n"),r=n[0].match(/^\s+/),i=r?r[0].length:0;return n.map((t=>t.slice(i))).join("\n")}function v(){return Array.from({length:36}).map(((t,e)=>8==e||13==e||18==e||23==e?"-":14==e?"4":19==e?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16))).join("")}function y(t,...e){for(const n of e.map((e=>e?.getAttribute(t))))if("string"==typeof n)return n;return null}function b(...t){for(const e of t)"turbo-frame"==e.localName&&e.setAttribute("busy",""),e.setAttribute("aria-busy","true")}function x(...t){for(const e of t)"turbo-frame"==e.localName&&e.removeAttribute("busy"),e.removeAttribute("aria-busy")}function w(t,e=2e3){return new Promise((n=>{const r=()=>{t.removeEventListener("error",r),t.removeEventListener("load",r),n()};t.addEventListener("load",r,{once:!0}),t.addEventListener("error",r,{once:!0}),setTimeout(n,e)}))}function S(t){switch(t){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function O(...t){const e=y("data-turbo-action",...t);return function(t){return"advance"==t||"replace"==t||"restore"==t}(e)?e:null}function k(t){return document.querySelector(`meta[name="${t}"]`)}function E(t){const e=k(t);return e&&e.content}function _(){const t=k("csp-nonce");if(t){const{nonce:e,content:n}=t;return""==e?n:e}}function A(t,e){if(t instanceof Element)return t.closest(e)||A(t.assignedSlot||t.getRootNode()?.host,e)}function P(t){return!!t&&null==t.closest("[inert], :disabled, [hidden], details:not([open]), dialog:not([open])")&&"function"==typeof t.focus}function M(t){return Array.from(t.querySelectorAll("[autofocus]")).find(P)}function C(t){if("_blank"===t)return!1;if(t){for(const e of document.getElementsByName(t))if(e instanceof HTMLIFrameElement)return!1;return!0}return!0}function T(t){return A(t,"a[href]:not([target^=_]):not([download])")}function j(t){return R(t.getAttribute("href")||"")}const I={"aria-disabled":{beforeSubmit:t=>{t.setAttribute("aria-disabled","true"),t.addEventListener("click",h)},afterSubmit:t=>{t.removeAttribute("aria-disabled"),t.removeEventListener("click",h)}},disabled:{beforeSubmit:t=>t.disabled=!0,afterSubmit:t=>t.disabled=!1}};const L=new class{#t=null;constructor(t){Object.assign(this,t)}get submitter(){return this.#t}set submitter(t){this.#t=I[t]||t}}({mode:"on",submitter:"disabled"}),D={drive:l,forms:L};function R(t){return new URL(t.toString(),document.baseURI)}function N(t){let e;return t.hash?t.hash.slice(1):(e=t.href.match(/#(.*)$/))?e[1]:void 0}function F(t,e){return R(e?.getAttribute("formaction")||t.getAttribute("action")||t.action)}function B(t){return(function(t){return function(t){return t.pathname.split("/").slice(1)}(t).slice(-1)[0]}(t).match(/\.[^.]*$/)||[])[0]||""}function z(t,e){const n=function(t){return e=t.origin+t.pathname,e.endsWith("/")?e:e+"/";var e}(e);return t.href===R(n).href||t.href.startsWith(n)}function H(t,e){return z(t,e)&&!D.drive.unvisitableExtensions.has(B(t))}function V(t){const e=N(t);return null!=e?t.href.slice(0,-(e.length+1)):t.href}function W(t){return V(t)}class U{constructor(t){this.response=t}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return R(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(t){return this.response.headers.get(t)}}class $ extends Set{constructor(t){super(),this.maxSize=t}add(t){if(this.size>=this.maxSize){const t=this.values().next().value;this.delete(t)}super.add(t)}}const q=new $(20),Y=window.fetch;function K(t,e={}){const n=new Headers(e.headers||{}),r=v();return q.add(r),n.append("X-Turbo-Request-Id",r),Y(t,{...e,headers:n})}function X(t){switch(t.toLowerCase()){case"get":return G.get;case"post":return G.post;case"put":return G.put;case"patch":return G.patch;case"delete":return G.delete}}const G={get:"get",post:"post",put:"put",patch:"patch",delete:"delete"};const Q={urlEncoded:"application/x-www-form-urlencoded",multipart:"multipart/form-data",plain:"text/plain"};class J{abortController=new AbortController;#e=t=>{};
2constructor(t,e,n,r=new URLSearchParams,i=null,o=Q.urlEncoded){const[a,s]=tt(R(n),e,r,o);this.delegate=t,this.url=a,this.target=i,this.fetchOptions={credentials:"same-origin",redirect:"follow",method:e.toUpperCase(),headers:{...this.defaultHeaders},body:s,signal:this.abortSignal,referrer:this.delegate.referrer?.href},this.enctype=o}get method(){return this.fetchOptions.method}set method(t){const e=this.isSafe?this.url.searchParams:this.fetchOptions.body||new FormData,n=X(t)||G.get;this.url.search="";const[r,i]=tt(this.url,n,e,this.enctype);this.url=r,this.fetchOptions.body=i,this.fetchOptions.method=n.toUpperCase()}get headers(){return this.fetchOptions.headers}set headers(t){this.fetchOptions.headers=t}get body(){return this.isSafe?this.url.searchParams:this.fetchOptions.body}set body(t){this.fetchOptions.body=t}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){const{fetchOptions:t}=this;this.delegate.prepareRequest(this);const e=await this.#n(t);try{this.delegate.requestStarted(this),e.detail.fetchRequest?this.response=e.detail.fetchRequest.response:this.response=K(this.url.href,t);const n=await this.response;return await this.receive(n)}catch(t){if("AbortError"!==t.name)throw this.#r(t)&&this.delegate.requestErrored(this,t),t}finally{this.delegate.requestFinished(this)}}async receive(t){const e=new U(t);return u("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:e},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,e):e.succeeded?this.delegate.requestSucceededWithResponse(this,e):this.delegate.requestFailedWithResponse(this,e),e}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return Z(this.method)}get abortSignal(){return this.abortController.signal}acceptResponseType(t){this.headers.Accept=[t,this.headers.Accept].join(", ")}async#n(t){const e=new Promise((t=>this.#e=t)),n=u("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:t,url:this.url,resume:this.#e},target:this.target});return this.url=n.detail.url,n.defaultPrevented&&await e,n}#r(t){return!u("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:t}}).defaultPrevented}}function Z(t){return X(t)==G.get}function tt(t,e,n,r){const i=Array.from(n).length>0?new URLSearchParams(et(n)):t.searchParams;return Z(e)?[nt(t,i),null]:r==Q.urlEncoded?[t,i]:[t,n]}function et(t){const e=[];for(const[n,r]of t)r instanceof File||e.push([n,r]);return e}function nt(t,e){const n=new URLSearchParams(et(e));return t.search=n.toString(),t}class rt{started=!1;constructor(t,e){this.delegate=t,this.element=e,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}intersect=t=>{const e=t.slice(-1)[0];e?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)}}class it{static contentType="text/vnd.turbo-stream.html";static wrap(t){return"string"==typeof t?new this(function(t){const e=document.createElement("template");return e.innerHTML=t,e.content}(t)):t}constructor(t){this.fragment=function(t){for(const e of t.querySelectorAll("turbo-stream")){const t=document.importNode(e,!0);for(const e of t.templateElement.content.querySelectorAll("script"))e.replaceWith(c(e));e.replaceWith(t)}return t}(t)}}const ot=new class{#i=null;#o=null;get(t){if(this.#o&&this.#o.url===t&&this.#o.expire>Date.now())return this.#o.request}setLater(t,e,n){this.clear(),this.#i=setTimeout((()=>{e.perform(),this.set(t,e,n),this.#i=null}),100)}set(t,e,n){this.#o={url:t,request:e,expire:new Date((new Date).getTime()+n)}}clear(){this.#i&&clearTimeout(this.#i),this.#o=null}},at={initialized:"initialized",requesting:"requesting",waiting:"waiting",receiving:"receiving",stopping:"stopping",stopped:"stopped"};class st{state=at.initialized;static confirmMethod(t){return Promise.resolve(confirm(t))}constructor(t,e,n,r=!1){const i=function(t,e){const n=e?.getAttribute("formmethod")||t.getAttribute("method")||"";return X(n.toLowerCase())||G.get}(e,n),o=function(t,e){const n=R(t);Z(e)&&(n.search="");return n}(function(t,e){const n="string"==typeof t.action?t.action:null;return e?.hasAttribute("formaction")?e.getAttribute("formaction")||"":t.getAttribute("action")||n||""}(e,n),i),a=function(t,e){const n=new FormData(t),r=e?.getAttribute("name"),i=e?.getAttribute("value");r&&n.append(r,i||"");return n}
2(e,n),s=function(t,e){return function(t){switch(t.toLowerCase()){case Q.multipart:return Q.multipart;case Q.plain:return Q.plain;default:return Q.urlEncoded}}(e?.getAttribute("formenctype")||t.enctype)}(e,n);this.delegate=t,this.formElement=e,this.submitter=n,this.fetchRequest=new J(this,i,o,a,e,s),this.mustRedirect=r}get method(){return this.fetchRequest.method}set method(t){this.fetchRequest.method=t}get action(){return this.fetchRequest.url.toString()}set action(t){this.fetchRequest.url=R(t)}get body(){return this.fetchRequest.body}get enctype(){return this.fetchRequest.enctype}get isSafe(){return this.fetchRequest.isSafe}get location(){return this.fetchRequest.url}async start(){const{initialized:t,requesting:e}=at,n=y("data-turbo-confirm",this.submitter,this.formElement);if("string"==typeof n){const t="function"==typeof D.forms.confirm?D.forms.confirm:st.confirmMethod;if(!await t(n,this.formElement,this.submitter))return}if(this.state==t)return this.state=e,this.fetchRequest.perform()}stop(){const{stopping:t,stopped:e}=at;if(this.state!=t&&this.state!=e)return this.state=t,this.fetchRequest.cancel(),!0}prepareRequest(t){if(!t.isSafe){const e=function(t){if(null!=t){const e=(document.cookie?document.cookie.split("; "):[]).find((e=>e.startsWith(t)));if(e){const t=e.split("=").slice(1).join("=");return t?decodeURIComponent(t):void 0}}}(E("csrf-param"))||E("csrf-token");e&&(t.headers["X-CSRF-Token"]=e)}this.requestAcceptsTurboStreamResponse(t)&&t.acceptResponseType(it.contentType)}requestStarted(t){this.state=at.waiting,this.submitter&&D.forms.submitter.beforeSubmit(this.submitter),this.setSubmitsWith(),b(this.formElement),u("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(t,e){ot.clear(),this.result={success:e.succeeded,fetchResponse:e}}requestSucceededWithResponse(t,e){if(e.clientError||e.serverError)this.delegate.formSubmissionFailedWithResponse(this,e);else if(ot.clear(),this.requestMustRedirect(t)&&function(t){return 200==t.statusCode&&!t.redirected}(e)){const t=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,t)}else this.state=at.receiving,this.result={success:!0,fetchResponse:e},this.delegate.formSubmissionSucceededWithResponse(this,e)}requestFailedWithResponse(t,e){this.result={success:!1,fetchResponse:e},this.delegate.formSubmissionFailedWithResponse(this,e)}requestErrored(t,e){this.result={success:!1,error:e},this.delegate.formSubmissionErrored(this,e)}requestFinished(t){this.state=at.stopped,this.submitter&&D.forms.submitter.afterSubmit(this.submitter),this.resetSubmitterText(),x(this.formElement),u("turbo:submit-end",{target:this.formElement,detail:{formSubmission:this,...this.result}}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(this.submitter&&this.submitsWith)if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){const t=this.submitter;this.originalSubmitText=t.value,t.value=this.submitsWith}}resetSubmitterText(){if(this.submitter&&this.originalSubmitText)if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){this.submitter.value=this.originalSubmitText}}requestMustRedirect(t){return!t.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(t){return!t.isSafe||function(t,...e){return e.some((e=>e&&e.hasAttribute(t)))}("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){return this.submitter?.getAttribute("data-turbo-submits-with")}}class lt{constructor(t){this.element=t}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(t){return null!=this.getElementForAnchor(t)}getElementForAnchor(t){return t?this.element.querySelector(`[id='${t}'], a[name='${t}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){return M(this.element)}get permanentElements(){return ut(this.element)}getPermanentElementById(t){return ct(this.element,t)}getPermanentElementMapForSnapshot(t){const e={};for(const n of this.permanentElements){const{id:r}=n,i=t.getPermanentElementById(r);i&&(e[r]=[n,i])}return e}}function ct(t,e){return t.querySelector(`#${e}[data-turbo-permanent]`)}function ut(t){return t.querySelectorAll("[id][data-turbo-permanent]")}class ht{started=!1;constructor(t,e){this.delegate=t,this.eventTarget=e}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)};submitBubbled=t=>{if(!t.defaultPrevented){const e=t.target instanceof HTMLFormElement?t.target:void 0,n=t.submitter||void 0;e&&function(t,e){const n=e?.getAttribute("formmethod")||t.getAttribute("method");return"dialog"!=n}(e,n)&&function(t,e){const n=e?.getAttribute("formtarget")||t.getAttribute("target");return C(n)}(e,n)&&this.delegate.willSubmitForm(e,n)&&(t.preventDefault(),t.stopImmediatePropagation(),this.delegate.formSubmitted(e,n))}}}class ft{#a=t=>{};#s=t=>{};constructor(t,e){this.delegate=t,this.element=e}scrollToAnchor(t){const e=this.snapshot.getElementForAnchor(t);e?(this.scrollToElement(e),this.focusElement(e)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(t){this.scrollToAnchor(N(t))}scrollToElement(t){t.scrollIntoView()}focusElement(t){t instanceof HTMLElement&&(t.hasAttribute("tabindex")?t.focus():(t.setAttribute("tabindex","-1"),t.focu
2s(),t.removeAttribute("tabindex")))}scrollToPosition({x:t,y:e}){this.scrollRoot.scrollTo(t,e)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(t){const{isPreview:e,shouldRender:n,willRender:r,newSnapshot:i}=t,o=r;if(n)try{this.renderPromise=new Promise((t=>this.#a=t)),this.renderer=t,await this.prepareToRenderSnapshot(t);const n=new Promise((t=>this.#s=t)),r={resume:this.#s,render:this.renderer.renderElement,renderMethod:this.renderer.renderMethod};this.delegate.allowsImmediateRender(i,r)||await n,await this.renderSnapshot(t),this.delegate.viewRenderedSnapshot(i,e,this.renderer.renderMethod),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(t)}finally{delete this.renderer,this.#a(void 0),delete this.renderPromise}else o&&this.invalidate(t.reloadReason)}invalidate(t){this.delegate.viewInvalidated(t)}async prepareToRenderSnapshot(t){this.markAsPreview(t.isPreview),await t.prepareToRender()}markAsPreview(t){t?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}markVisitDirection(t){this.element.setAttribute("data-turbo-visit-direction",t)}unmarkVisitDirection(){this.element.removeAttribute("data-turbo-visit-direction")}async renderSnapshot(t){await t.render()}finishRenderingSnapshot(t){t.finishRendering()}}class dt extends ft{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new lt(this.element)}}class pt{constructor(t,e){this.delegate=t,this.element=e}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}clickBubbled=t=>{this.clickEventIsSignificant(t)?this.clickEvent=t:delete this.clickEvent};linkClicked=t=>{this.clickEvent&&this.clickEventIsSignificant(t)&&this.delegate.shouldInterceptLinkClick(t.target,t.detail.url,t.detail.originalEvent)&&(this.clickEvent.preventDefault(),t.preventDefault(),this.delegate.linkClickIntercepted(t.target,t.detail.url,t.detail.originalEvent)),delete this.clickEvent};willVisit=t=>{delete this.clickEvent};clickEventIsSignificant(t){const e=t.composed?t.target?.parentElement:t.target,n=T(e)||e;return n instanceof Element&&n.closest("turbo-frame, html")==this.element}}class mt{started=!1;constructor(t,e){this.delegate=t,this.eventTarget=e}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)};clickBubbled=t=>{if(t instanceof MouseEvent&&this.clickEventIsSignificant(t)){const e=T(t.composedPath&&t.composedPath()[0]||t.target);if(e&&C(e.target)){const n=j(e);this.delegate.willFollowLinkToLocation(e,n,t)&&(t.preventDefault(),this.delegate.followedLinkToLocation(e,n))}}};clickEventIsSignificant(t){return!(t.target&&t.target.isContentEditable||t.defaultPrevented||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)}}class gt{constructor(t,e){this.delegate=t,this.linkInterceptor=new mt(this,e)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}canPrefetchRequestToLocation(t,e){return!1}prefetchAndCacheRequestToLocation(t,e){}willFollowLinkToLocation(t,e,n){return this.delegate.willSubmitFormLinkToLocation(t,e,n)&&(t.hasAttribute("data-turbo-method")||t.hasAttribute("data-turbo-stream"))}followedLinkToLocation(t,e){const n=document.createElement("form");for(const[t,r]of e.searchParams)n.append(Object.assign(document.createElement("input"),{type:"hidden",name:t,value:r}));const r=Object.assign(e,{search:""});n.setAttribute("data-turbo","true"),n.setAttribute("action",r.href),n.setAttribute("hidden","");const i=t.getAttribute("data-turbo-method");i&&n.setAttribute("method",i);const o=t.getAttribute("data-turbo-frame");o&&n.setAttribute("data-turbo-frame",o);const a=O(t);a&&n.setAttribute("data-turbo-action",a);const s=t.getAttribute("data-turbo-confirm");s&&n.setAttribute("data-turbo-confirm",s);t.hasAttribute("data-turbo-stream")&&n.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(t,e,n),document.body.appendChild(n),n.addEventListener("turbo:submit-end",(()=>n.remove()),{once:!0}),requestAnimationFrame((()=>n.requestSubmit()))}}class vt{static async preservingPermanentElements(t,e,n){const r=new this(t,e);r.enter(),await n(),r.leave()}constructor(t,e){this.delegate=t,this.permanentElementMap=e}enter(){for(const t in this.permanentElementMap){const[e,n]=this.permanentElementMap[t];this.delegate.enteringBardo(e,n),this.replaceNewPermanentElementWithPlaceholder(n)}}leave(){for(const t in this.permanentElementMap){const[e]=this.permanentElementMap[t];this.replaceCurrentPermanentElementWithClone(e),this.replacePlaceholderWithPermanentElement(e),this.delegate.leavingBardo(e)}}replaceNewPermanentElementWithPlaceholder(t){const e=function(t){const e=document.createElement("meta");return e.setAttribute("name","turbo-permanent-placeholder"),e.setAttribute("content",t.id),e}(t);t.replaceWith(e)}replaceCurrentPermanentElementWithClone(t){const e=t.cloneNode(!0);t.replaceWith(e)}replacePlaceholderWithPermanentElement(t){const e=this.getPlaceholderById(t.id);e?.replaceWith(t)}getPlaceholderById(t){return this.placeholders.find((e=>e.content==t))}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}}class yt{#l=null;static renderElement(t,e){}
2constructor(t,e,n,r=!0){this.currentSnapshot=t,this.newSnapshot=e,this.isPreview=n,this.willRender=r,this.renderElement=this.constructor.renderElement,this.promise=new Promise(((t,e)=>this.resolvingFunctions={resolve:t,reject:e}))}get shouldRender(){return!0}get shouldAutofocus(){return!0}get reloadReason(){}prepareToRender(){}render(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(t){await vt.preservingPermanentElements(this,this.permanentElementMap,t)}focusFirstAutofocusableElement(){if(this.shouldAutofocus){const t=this.connectedSnapshot.firstAutofocusableElement;t&&t.focus()}}enteringBardo(t){this.#l||t.contains(this.currentSnapshot.activeElement)&&(this.#l=this.currentSnapshot.activeElement)}leavingBardo(t){t.contains(this.#l)&&this.#l instanceof HTMLElement&&(this.#l.focus(),this.#l=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}get renderMethod(){return"replace"}}class bt extends yt{static renderElement(t,e){const n=document.createRange();n.selectNodeContents(t),n.deleteContents();const r=e,i=r.ownerDocument?.createRange();i&&(i.selectNodeContents(r),t.appendChild(i.extractContents()))}constructor(t,e,n,r,i,o=!0){super(e,n,r,i,o),this.delegate=t}get shouldRender(){return!0}async render(){await f(),this.preservingPermanentElements((()=>{this.loadFrameElement()})),this.scrollFrameIntoView(),await f(),this.focusFirstAutofocusableElement(),await f(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){const n=this.currentElement.firstElementChild,r=(t=this.currentElement.getAttribute("data-autoscroll-block"),e="end","end"==t||"start"==t||"center"==t||"nearest"==t?t:e),i=function(t,e){return"auto"==t||"smooth"==t?t:e}(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(n)return n.scrollIntoView({block:r,behavior:i}),!0}var t,e;return!1}activateScriptElements(){for(const t of this.newScriptElements){const e=c(t);t.replaceWith(e)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}}var xt=function(){const t=()=>{},e={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:t,afterNodeAdded:t,beforeNodeMorphed:t,afterNodeMorphed:t,beforeNodeRemoved:t,afterNodeRemoved:t,beforeAttributeUpdated:t},head:{style:"merge",shouldPreserve:t=>"true"===t.getAttribute("im-preserve"),shouldReAppend:t=>"true"===t.getAttribute("im-re-append"),shouldRemove:t,afterHeadMorphed:t},restoreFocus:!0};const n=function(){function t(t,e,n,i){if(!1===i.callbacks.beforeNodeAdded(e))return null;if(i.idMap.has(e)){const o=document.createElement(e.tagName);return t.insertBefore(o,n),r(o,e,i),i.callbacks.afterNodeAdded(o),o}{const r=document.importNode(e,!0);return t.insertBefore(r,n),i.callbacks.afterNodeAdded(r),r}}const e=function(){function t(t,e,n){let r=t.idMap.get(e),i=t.idMap.get(n);if(!i||!r)return!1;for(const t of r)if(i.has(t))return!0;return!1}function e(t,e){const n=t,r=e;return n.nodeType===r.nodeType&&n.tagName===r.tagName&&(!n.id||n.id===r.id)}return function(n,r,i,o){let a=null,s=r.nextSibling,l=0,c=i;for(;c&&c!=o;){if(e(c,r)){if(t(n,c,r))return c;null===a&&(n.idMap.has(c)||(a=c))}if(null===a&&s&&e(c,s)&&(l++,s=s.nextSibling,l>=2&&(a=void 0)),c.contains(document.activeElement))break;c=c.nextSibling}return a||null}}();function n(t,e){if(t.idMap.has(e))a(t.pantry,e,null);else{if(!1===t.callbacks.beforeNodeRemoved(e))return;e.parentNode?.removeChild(e),t.callbacks.afterNodeRemoved(e)}}function i(t,e,r){let i=e;for(;i&&i!==r;){let e=i;i=i.nextSibling,n(t,e)}return i}function o(t,e,n,r){const i=r.target.querySelector(`#${e}`)||r.pantry.querySelector(`#${e}`);return function(t,e){const n=t.id;for(;t=t.parentNode;){let r=e.idMap.get(t);
2r&&(r.delete(n),r.size||e.idMap.delete(t))}}(i,r),a(t,i,n),i}function a(t,e,n){if(t.moveBefore)try{t.moveBefore(e,n)}catch(r){t.insertBefore(e,n)}else t.insertBefore(e,n)}return function(a,s,l,c=null,u=null){s instanceof HTMLTemplateElement&&l instanceof HTMLTemplateElement&&(s=s.content,l=l.content),c||=s.firstChild;for(const n of l.childNodes){if(c&&c!=u){const t=e(a,n,c,u);if(t){t!==c&&i(a,c,t),r(t,n,a),c=t.nextSibling;continue}}if(n instanceof Element&&a.persistentIds.has(n.id)){const t=o(s,n.id,c,a);r(t,n,a),c=t.nextSibling;continue}const l=t(s,n,c,a);l&&(c=l.nextSibling)}for(;c&&c!=u;){const t=c;c=c.nextSibling,n(a,t)}}}(),r=function(){function t(t,n,r,i){const o=n[r];if(o!==t[r]){const a=e(r,t,"update",i);a||(t[r]=n[r]),o?a||t.setAttribute(r,""):e(r,t,"remove",i)||t.removeAttribute(r)}}function e(t,e,n,r){return!("value"!==t||!r.ignoreActiveValue||e!==document.activeElement)||!1===r.callbacks.beforeAttributeUpdated(t,e,n)}function r(t,e){return!!e.ignoreActiveValue&&t===document.activeElement&&t!==document.body}return function(o,a,s){return s.ignoreActive&&o===document.activeElement?null:(!1===s.callbacks.beforeNodeMorphed(o,a)||(o instanceof HTMLHeadElement&&s.head.ignore||(o instanceof HTMLHeadElement&&"morph"!==s.head.style?i(o,a,s):(!function(n,i,o){let a=i.nodeType;if(1===a){const a=n,s=i,l=a.attributes,c=s.attributes;for(const t of c)e(t.name,a,"update",o)||a.getAttribute(t.name)!==t.value&&a.setAttribute(t.name,t.value);for(let t=l.length-1;0<=t;t--){const n=l[t];if(n&&!s.hasAttribute(n.name)){if(e(n.name,a,"remove",o))continue;a.removeAttribute(n.name)}}r(a,o)||function(n,r,i){if(n instanceof HTMLInputElement&&r instanceof HTMLInputElement&&"file"!==r.type){let o=r.value,a=n.value;t(n,r,"checked",i),t(n,r,"disabled",i),r.hasAttribute("value")?a!==o&&(e("value",n,"update",i)||(n.setAttribute("value",o),n.value=o)):e("value",n,"remove",i)||(n.value="",n.removeAttribute("value"))}else if(n instanceof HTMLOptionElement&&r instanceof HTMLOptionElement)t(n,r,"selected",i);else if(n instanceof HTMLTextAreaElement&&r instanceof HTMLTextAreaElement){let t=r.value,o=n.value;if(e("value",n,"update",i))return;t!==o&&(n.value=t),n.firstChild&&n.firstChild.nodeValue!==t&&(n.firstChild.nodeValue=t)}}(a,s,o)}8!==a&&3!==a||n.nodeValue!==i.nodeValue&&(n.nodeValue=i.nodeValue)}(o,a,s),r(o,s)||n(s,o,a))),s.callbacks.afterNodeMorphed(o,a)),o)}}();function i(t,e,n){let r=[],i=[],o=[],a=[],s=new Map;for(const t of e.children)s.set(t.outerHTML,t);for(const e of t.children){let t=s.has(e.outerHTML),r=n.head.shouldReAppend(e),l=n.head.shouldPreserve(e);t||l?r?i.push(e):(s.delete(e.outerHTML),o.push(e)):"append"===n.head.style?r&&(i.push(e),a.push(e)):!1!==n.head.shouldRemove(e)&&i.push(e)}a.push(...s.values());let l=[];for(const e of a){let i=document.createRange().createContextualFragment(e.outerHTML).firstChild;if(!1!==n.callbacks.beforeNodeAdded(i)){if("href"in i&&i.href||"src"in i&&i.src){let t,e=new Promise((function(e){t=e}));i.addEventListener("load",(function(){t()})),l.push(e)}t.appendChild(i),n.callbacks.afterNodeAdded(i),r.push(i)}}for(const e of i)!1!==n.callbacks.beforeNodeRemoved(e)&&(t.removeChild(e),n.callbacks.afterNodeRemoved(e));return n.head.afterHeadMorphed(t,{added:r,kept:o,removed:i}),l}const o=function(){function t(){const t=document.createElement("div");return t.hidden=!0,document.body.insertAdjacentElement("afterend",t),t}function n(t){let e=Array.from(t.querySelectorAll("[id]"));return t.id&&e.push(t),e}function r(t,e,n,r){for(const i of r)if(e.has(i.id)){let e=i;for(;e;){let r=t.get(e);if(null==r&&(r=new Set,t.set(e,r)),r.add(i.id),e===n)break;e=e.parentElement}}}return function(i,o,a){const{persistentIds:s,idMap:l}=function(t,e){const i=n(t),o=n(e),a=function(t,e){let n=new Set,r=new Map;for(const{id:e,tagName:i}of t)r.has(e)?n.add(e):r.set(e,i);let i=new Set;for(const{id:t,tagName:o}of e)i.has(t)?n.add(t):r.get(t)===o&&i.add(t);for(const t of n)i.delete(t);return i}(i,o);let s=new Map;r(s,a,t,i);const l=e.__idiomorphRoot||e;return r(s,a,l,o),{persistentIds:a,idMap:s}}(i,o),c=function(t){let n=Object.assign({},e);return Object.assign(n,t),n.callbacks=Object.assign({},e.callbacks,t.callbacks),n.head=Object.assign({},e.head,t.head),n}(a),u=c.morphStyle||"outerHTML";if(!["innerHTML","outerHTML"].includes(u))throw`Do not understand how to morph style ${u}`;return{target:i,newContent:o,config:c,morphStyle:u,ignoreActive:c.ignoreActive,ignoreActiveValue:c.ignoreActiveValue,restoreFocus:c.restoreFocus,idMap:l,persistentIds:s,pantry:t(),callbacks:c.callbacks,head:c.head}}}(),{normalizeElement:a,normalizeParent:s}=function(){const t=new WeakSet;return{normalizeElement:function(t){return t instanceof Document?t.documentElement:t},normalizeParent:function e(n){if(null==n)return document.createElement("div");if("string"==typeof n)return e(function(e){let n=new DOMParser,r=e.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(r.match(/<\/html>/)||r.match(/<\/head>/)||r.match(/<\/body>/)){let i=n.parseFromString(e,"text/html");if(r.match(/<\/html>/))return t.add(i),i;{let e=i.firstChild;return e&&t.add(e),e}}{let r=n.parseFromString("<body><template>"+e+"</template></body>","text/html").body.querySelector("template").content;return t.add(r),r}}(n));if(t.has(n))return n;if(n instanceof Node){if(n.parentNode)return function(t){return{childNodes:[t],querySelectorAll:e=>{const n=t.querySelectorAll(e);return t.matches(e)?[t,...n]:n}
2,insertBefore:(e,n)=>t.parentNode.insertBefore(e,n),moveBefore:(e,n)=>t.parentNode.moveBefore(e,n),get __idiomorphRoot(){return t}}}(n);{const t=document.createElement("div");return t.append(n),t}}{const t=document.createElement("div");for(const e of[...n])t.append(e);return t}}}}();return{morph:function(t,e,r={}){t=a(t);const l=s(e),c=o(t,l,r),u=function(t,e){if(!t.config.restoreFocus)return e();let n=document.activeElement;if(!(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement))return e();const{id:r,selectionStart:i,selectionEnd:o}=n,a=e();r&&r!==document.activeElement?.id&&(n=t.target.querySelector(`#${r}`),n?.focus());n&&!n.selectionEnd&&o&&n.setSelectionRange(i,o);return a}(c,(()=>function(t,e,n,r){if(t.head.block){const o=e.querySelector("head"),a=n.querySelector("head");if(o&&a){const e=i(o,a,t);return Promise.all(e).then((()=>{const e=Object.assign(t,{head:{block:!1,ignore:!0}});return r(e)}))}}return r(t)}(c,t,l,(e=>"innerHTML"===e.morphStyle?(n(e,t,l),Array.from(t.childNodes)):function(t,e,r){const i=s(e);let o=Array.from(i.childNodes);const a=o.indexOf(e),l=o.length-(a+1);return n(t,i,r,e,e.nextSibling),o=Array.from(i.childNodes),o.slice(a,o.length-l)}(e,t,l)))));return c.pantry.remove(),u},defaults:e}}();function wt(t,e,{callbacks:n,...r}={}){xt.morph(t,e,{...r,callbacks:new Ot(n)})}function St(t,e){wt(t,e.childNodes,{morphStyle:"innerHTML"})}class Ot{#c;constructor({beforeNodeMorphed:t}={}){this.#c=t||(()=>!0)}beforeNodeAdded=t=>!(t.id&&t.hasAttribute("data-turbo-permanent")&&document.getElementById(t.id));beforeNodeMorphed=(t,e)=>{if(t instanceof Element){if(!t.hasAttribute("data-turbo-permanent")&&this.#c(t,e)){return!u("turbo:before-morph-element",{cancelable:!0,target:t,detail:{currentElement:t,newElement:e}}).defaultPrevented}return!1}};beforeAttributeUpdated=(t,e,n)=>!u("turbo:before-morph-attribute",{cancelable:!0,target:e,detail:{attributeName:t,mutationType:n}}).defaultPrevented;beforeNodeRemoved=t=>this.beforeNodeMorphed(t);afterNodeMorphed=(t,e)=>{t instanceof Element&&u("turbo:morph-element",{target:t,detail:{currentElement:t,newElement:e}})}}class kt extends bt{static renderElement(t,e){u("turbo:before-frame-morph",{target:t,detail:{currentElement:t,newElement:e}}),St(t,e)}async preservingPermanentElements(t){return await t()}}class Et{static animationDuration=300;static get defaultCSS(){return g` 3 .turbo-progress-bar { 4 position: fixed; 5 display: block; 6 top: 0; 7 left: 0; 8 height: 3px; 9 background: #0076ff; 10 z-index: 2147483647; 11 transition: 12 width ${Et.animationDuration}ms ease-out, 13 opacity ${Et.animationDuration/2}ms ${Et.animationDuration/2}ms ease-in; 14 transform: translate3d(0, 0, 0); 15 } 16 `}hiding=!1;value=0;visible=!1;constructor(){this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement((()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1})))}setValue(t){this.value=t,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(t){this.progressElement.style.opacity="0",setTimeout(t,1.5*Et.animationDuration)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,Et.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}trickle=()=>{this.setValue(this.value+Math.random()/100)};refresh(){requestAnimationFrame((()=>{this.progressElement.style.width=10+90*this.value+"%"}))}createStylesheetElement(){const t=document.createElement("style");t.type="text/css",t.textContent=Et.defaultCSS;const e=_();return e&&(t.nonce=e),t}createProgressElement(){const t=document.createElement("div");return t.className="turbo-progress-bar",t}}class _t extends lt{detailsByOuterHTML=this.children.filter((t=>!function(t){const e=t.localName;return"noscript"==e}(t))).map((t=>function(t){t.hasAttribute("nonce")&&t.setAttribute("nonce","");return t}(t))).reduce(((t,e)=>{const{outerHTML:n}=e,r=n in t?t[n]:{type:At(e),tracked:Pt(e),elements:[]};
16return{...t,[n]:{...r,elements:[...r.elements,e]}}}),{});get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter((t=>this.detailsByOuterHTML[t].tracked)).join("")}getScriptElementsNotInSnapshot(t){return this.getElementsMatchingTypeNotInSnapshot("script",t)}getStylesheetElementsNotInSnapshot(t){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",t)}getElementsMatchingTypeNotInSnapshot(t,e){return Object.keys(this.detailsByOuterHTML).filter((t=>!(t in e.detailsByOuterHTML))).map((t=>this.detailsByOuterHTML[t])).filter((({type:e})=>e==t)).map((({elements:[t]})=>t))}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce(((t,e)=>{const{type:n,tracked:r,elements:i}=this.detailsByOuterHTML[e];return null!=n||r?i.length>1?[...t,...i.slice(1)]:t:[...t,...i]}),[])}getMetaValue(t){const e=this.findMetaElementByName(t);return e?e.getAttribute("content"):null}findMetaElementByName(t){return Object.keys(this.detailsByOuterHTML).reduce(((e,n)=>{const{elements:[r]}=this.detailsByOuterHTML[n];return function(t,e){const n=t.localName;return"meta"==n&&t.getAttribute("name")==e}(r,t)?r:e}),0)}}function At(t){return function(t){const e=t.localName;return"script"==e}(t)?"script":function(t){const e=t.localName;return"style"==e||"link"==e&&"stylesheet"==t.getAttribute("rel")}(t)?"stylesheet":void 0}function Pt(t){return"reload"==t.getAttribute("data-turbo-track")}class Mt extends lt{static fromHTMLString(t=""){return this.fromDocument(m(t))}static fromElement(t){return this.fromDocument(t.ownerDocument)}static fromDocument({documentElement:t,body:e,head:n}){return new this(t,e,new _t(n))}constructor(t,e,n){super(e),this.documentElement=t,this.headSnapshot=n}clone(){const t=this.element.cloneNode(!0),e=this.element.querySelectorAll("select"),n=t.querySelectorAll("select");for(const[t,r]of e.entries()){const e=n[t];for(const t of e.selectedOptions)t.selected=!1;for(const t of r.selectedOptions)e.options[t.index].selected=!0}for(const e of t.querySelectorAll('input[type="password"]'))e.value="";return new Mt(this.documentElement,t,this.headSnapshot)}get lang(){return this.documentElement.getAttribute("lang")}get headElement(){return this.headSnapshot.element}get rootLocation(){return R(this.getSetting("root")??"/")}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return"no-preview"!=this.cacheControlValue}get isCacheable(){return"no-cache"!=this.cacheControlValue}get isVisitable(){return"reload"!=this.getSetting("visit-control")}get prefersViewTransitions(){return"same-origin"===this.headSnapshot.getMetaValue("view-transition")}get shouldMorphPage(){return"morph"===this.getSetting("refresh-method")}get shouldPreserveScrollPosition(){return"preserve"===this.getSetting("refresh-scroll")}getSetting(t){return this.headSnapshot.getMetaValue(`turbo-${t}`)}}class Ct{#u=!1;#h=Promise.resolve();renderChange(t,e){return t&&this.viewTransitionsAvailable&&!this.#u?(this.#u=!0,this.#h=this.#h.then((async()=>{await document.startViewTransition(e).finished}))):this.#h=this.#h.then(e),this.#h}get viewTransitionsAvailable(){return document.startViewTransition}}const Tt={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1},jt="visitStart",It="requestStart",Lt="requestEnd",Dt="visitEnd",Rt="initialized",Nt="started",Ft="canceled",Bt="failed",zt="completed",Ht=0,Vt=-1,Wt=-2,Ut={advance:"forward",restore:"back",replace:"none"};class $t{identifier=v();timingMetrics={};followedRedirect=!1;historyChanged=!1;scrolled=!1;shouldCacheSnapshot=!0;acceptsStreamResponse=!1;snapshotCached=!1;state=Rt;viewTransitioner=new Ct;constructor(t,e,n,r={}){this.delegate=t,this.location=e,this.restorationIdentifier=n||v();const{action:i,historyChanged:o,referrer:a,snapshot:s,snapshotHTML:l,response:c,visitCachedSnapshot:u,willRender:h,updateHistory:f,shouldCacheSnapshot:d,acceptsStreamResponse:p,direction:m}={...Tt,...r};this.action=i,this.historyChanged=o,this.referrer=a,this.snapshot=s,this.snapshotHTML=l,this.response=c,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.isPageRefresh=this.view.isPageRefresh(this),this.visitCachedSnapshot=u,this.willRender=h,this.updateHistory=f,this.scrolled=!h,this.shouldCacheSnapshot=d,this.acceptsStreamResponse=p,this.direction=m||Ut[i]}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}get silent(){return this.isSamePage}start(){this.state==Rt&&(this.recordTimingMetric(jt),this.state=Nt,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==Nt&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=Ft)}complete(){this.state==Nt&&(this.recordTimingMetric(Dt),this.adapter.visitCompleted(this),this.state=zt,this.followRedirect(),this.followedRedirect||this.delegate.visitCompleted(this))}fail(){this.state==Nt&&(this.state=Bt,this.adapter.visitFailed(this),this.delegate.visitCompleted(this))}changeHistory(){if(!this.historyChanged&&this.updateHistory){const t=S(this.location.href===this.referrer?.href?"replace":this.action);this.history.update(t,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new J(this,G.get,this.location),this.request.perform())}
16simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(It),this.adapter.visitRequestStarted(this)}recordResponse(t=this.response){if(this.response=t,t){const{statusCode:e}=t;qt(e)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,e)}}finishRequest(){this.recordTimingMetric(Lt),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){const{statusCode:t,responseHTML:e}=this.response;this.render((async()=>{if(this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,qt(t)&&null!=e){const t=Mt.fromHTMLString(e);await this.renderPageSnapshot(t,!1),this.adapter.visitRendered(this),this.complete()}else await this.view.renderError(Mt.fromHTMLString(e),this),this.adapter.visitRendered(this),this.fail()}))}}getCachedSnapshot(){const t=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(t&&(!N(this.location)||t.hasAnchor(N(this.location)))&&("restore"==this.action||t.isPreviewable))return t}getPreloadedSnapshot(){if(this.snapshotHTML)return Mt.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return null!=this.getCachedSnapshot()}loadCachedSnapshot(){const t=this.getCachedSnapshot();if(t){const e=this.shouldIssueRequest();this.render((async()=>{this.cacheSnapshot(),this.isSamePage||this.isPageRefresh?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.renderPageSnapshot(t,e),this.adapter.visitRendered(this),e||this.complete())}))}}followRedirect(){this.redirectedToLocation&&!this.followedRedirect&&this.response?.redirected&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}goToSamePageAnchor(){this.isSamePage&&this.render((async()=>{this.cacheSnapshot(),this.performScroll(),this.changeHistory(),this.adapter.visitRendered(this)}))}prepareRequest(t){this.acceptsStreamResponse&&t.acceptResponseType(it.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(t,e){}async requestSucceededWithResponse(t,e){const n=await e.responseHTML,{redirected:r,statusCode:i}=e;null==n?this.recordResponse({statusCode:Wt,redirected:r}):(this.redirectedToLocation=e.redirected?e.location:void 0,this.recordResponse({statusCode:i,responseHTML:n,redirected:r}))}async requestFailedWithResponse(t,e){const n=await e.responseHTML,{redirected:r,statusCode:i}=e;null==n?this.recordResponse({statusCode:Wt,redirected:r}):this.recordResponse({statusCode:i,responseHTML:n,redirected:r})}requestErrored(t,e){this.recordResponse({statusCode:Ht,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){this.scrolled||this.view.forceReloaded||this.view.shouldPreserveScrollPosition(this)||("restore"==this.action?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}scrollToRestoredPosition(){const{scrollPosition:t}=this.restorationData;if(t)return this.view.scrollToPosition(t),!0}scrollToAnchor(){const t=N(this.location);if(null!=t)return this.view.scrollToAnchor(t),!0}recordTimingMetric(t){this.timingMetrics[t]=(new Date).getTime()}getTimingMetrics(){return{...this.timingMetrics}}hasPreloadedResponse(){return"object"==typeof this.response}shouldIssueRequest(){return!this.isSamePage&&("restore"==this.action?!this.hasCachedSnapshot():this.willRender)}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then((t=>t&&this.visitCachedSnapshot(t))),this.snapshotCached=!0)}async render(t){this.cancelRender(),await new Promise((t=>{this.frame="hidden"===document.visibilityState?setTimeout((()=>t()),0):requestAnimationFrame((()=>t()))})),await t(),delete this.frame}async renderPageSnapshot(t,e){await this.viewTransitioner.renderChange(this.view.shouldTransitionTo(t),(async()=>{await this.view.renderPage(t,e,this.willRender,this),this.performScroll()}))}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}}function qt(t){return t>=200&&t<300}class Yt{progressBar=new Et;constructor(t){this.session=t}visitProposedToLocation(t,e){H(t,this.navigator.rootLocation)?this.navigator.startVisit(t,e?.restorationIdentifier||v(),e):window.location.href=t.toString()}visitStarted(t){this.location=t.location,t.loadCachedSnapshot(),t.issueRequest(),t.goToSamePageAnchor()}visitRequestStarted(t){this.progressBar.setValue(0),t.hasCachedSnapshot()||"restore"!=t.action?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(t){t.loadResponse()}visitRequestFailedWithStatusCode(t,e){switch(e){case Ht:case Vt:case Wt:return this.reload({reason:"request_failed",context:{statusCode:e}});default:return t.loadResponse()}}visitRequestFinished(t){}visitCompleted(t){this.progressBar.setValue(1),this.hideVisitProgressBar()}pageInvalidated(t){this.reload(t)}visitFailed(t){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitRendered(t){}linkPrefetchingIsEnabledForLocation(t){return!0}
16formSubmissionStarted(t){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(t){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),null!=this.visitProgressBarTimeout&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){null==this.formProgressBarTimeout&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),null!=this.formProgressBarTimeout&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}showProgressBar=()=>{this.progressBar.show()};reload(t){u("turbo:reload",{detail:t}),window.location.href=this.location?.toString()||window.location.href}get navigator(){return this.session.navigator}}class Kt{selector="[data-turbo-temporary]";deprecatedSelector="[data-turbo-cache=false]";started=!1;start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}removeTemporaryElements=t=>{for(const t of this.temporaryElements)t.remove()};get temporaryElements(){return[...document.querySelectorAll(this.selector),...this.temporaryElementsWithDeprecation]}get temporaryElementsWithDeprecation(){const t=document.querySelectorAll(this.deprecatedSelector);return t.length&&console.warn(`The ${this.deprecatedSelector} selector is deprecated and will be removed in a future version. Use ${this.selector} instead.`),[...t]}}class Xt{constructor(t,e){this.session=t,this.element=e,this.linkInterceptor=new pt(this,e),this.formSubmitObserver=new ht(this,e)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(t,e,n){return this.#f(t)}linkClickIntercepted(t,e,n){const r=this.#d(t);r&&r.delegate.linkClickIntercepted(t,e,n)}willSubmitForm(t,e){return null==t.closest("turbo-frame")&&this.#p(t,e)&&this.#f(t,e)}formSubmitted(t,e){const n=this.#d(t,e);n&&n.delegate.formSubmitted(t,e)}#p(t,e){const n=F(t,e),r=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),i=R(r?.content??"/");return this.#f(t,e)&&H(n,i)}#f(t,e){if(t instanceof HTMLFormElement?this.session.submissionIsNavigatable(t,e):this.session.elementIsNavigatable(t)){const n=this.#d(t,e);return!!n&&n!=t.closest("turbo-frame")}return!1}#d(t,e){const n=e?.getAttribute("data-turbo-frame")||t.getAttribute("data-turbo-frame");if(n&&"_top"!=n){const t=this.element.querySelector(`#${n}:not([disabled])`);if(t instanceof s)return t}}}class Gt{location;restorationIdentifier=v();restorationData={};started=!1;pageLoaded=!1;currentIndex=0;constructor(t){this.delegate=t}start(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.currentIndex=history.state?.turbo?.restorationIndex||0,this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}push(t,e){this.update(history.pushState,t,e)}replace(t,e){this.update(history.replaceState,t,e)}update(t,e,n=v()){t===history.pushState&&++this.currentIndex;const r={turbo:{restorationIdentifier:n,restorationIndex:this.currentIndex}};t.call(history,r,"",e.href),this.location=e,this.restorationIdentifier=n}getRestorationDataForIdentifier(t){return this.restorationData[t]||{}}updateRestorationData(t){const{restorationIdentifier:e}=this,n=this.restorationData[e];this.restorationData[e]={...n,...t}}assumeControlOfScrollRestoration(){this.previousScrollRestoration||(this.previousScrollRestoration=history.scrollRestoration??"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}onPopState=t=>{if(this.shouldHandlePopState()){const{turbo:e}=t.state||{};if(e){this.location=new URL(window.location.href);const{restorationIdentifier:t,restorationIndex:n}=e;this.restorationIdentifier=t;const r=n>this.currentIndex?"forward":"back";this.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(this.location,t,r),this.currentIndex=n}}};onPageLoad=async t=>{await Promise.resolve(),this.pageLoaded=!0};shouldHandlePopState(){return this.pageIsLoaded()}pageIsLoaded(){return this.pageLoaded||"complete"==document.readyState}}class Qt{started=!1;#m=null;constructor(t,e){this.delegate=t,this.eventTarget=e}start(){this.started||("loading"===this.eventTarget.readyState?this.eventTarget.addEventListener("DOMContentLoaded",this.#g,{once:!0}):this.#g())}stop(){this.started&&(this.eventTarget.removeEventListener("mouseenter",this.#v,{capture:!0,passive:!0}
16),this.eventTarget.removeEventListener("mouseleave",this.#y,{capture:!0,passive:!0}),this.eventTarget.removeEventListener("turbo:before-fetch-request",this.#b,!0),this.started=!1)}#g=()=>{this.eventTarget.addEventListener("mouseenter",this.#v,{capture:!0,passive:!0}),this.eventTarget.addEventListener("mouseleave",this.#y,{capture:!0,passive:!0}),this.eventTarget.addEventListener("turbo:before-fetch-request",this.#b,!0),this.started=!0};#v=t=>{if("false"===E("turbo-prefetch"))return;const e=t.target;if(e.matches&&e.matches("a[href]:not([target^=_]):not([download])")&&this.#x(e)){const t=e,n=j(t);if(this.delegate.canPrefetchRequestToLocation(t,n)){this.#m=t;const r=new J(this,G.get,n,new URLSearchParams,e);ot.setLater(n.toString(),r,this.#w)}}};#y=t=>{t.target===this.#m&&this.#S()};#S=()=>{ot.clear(),this.#m=null};#b=t=>{if("FORM"!==t.target.tagName&&"GET"===t.detail.fetchOptions.method){const e=ot.get(t.detail.url.toString());e&&(t.detail.fetchRequest=e),ot.clear()}};prepareRequest(t){const e=t.target;t.headers["X-Sec-Purpose"]="prefetch";const n=e.closest("turbo-frame"),r=e.getAttribute("data-turbo-frame")||n?.getAttribute("target")||n?.id;r&&"_top"!==r&&(t.headers["Turbo-Frame"]=r)}requestSucceededWithResponse(){}requestStarted(t){}requestErrored(t){}requestFinished(t){}requestPreventedHandlingResponse(t,e){}requestFailedWithResponse(t,e){}get#w(){return Number(E("turbo-prefetch-cache-time"))||1e4}#x(t){return!!t.getAttribute("href")&&(!Jt(t)&&(!Zt(t)&&(!te(t)&&(!ee(t)&&!re(t)))))}}const Jt=t=>t.origin!==document.location.origin||!["http:","https:"].includes(t.protocol)||t.hasAttribute("target"),Zt=t=>t.pathname+t.search===document.location.pathname+document.location.search||t.href.startsWith("#"),te=t=>{if("false"===t.getAttribute("data-turbo-prefetch"))return!0;if("false"===t.getAttribute("data-turbo"))return!0;const e=A(t,"[data-turbo-prefetch]");return!(!e||"false"!==e.getAttribute("data-turbo-prefetch"))},ee=t=>{const e=t.getAttribute("data-turbo-method");return!(!e||"get"===e.toLowerCase())||(!!ne(t)||(!!t.hasAttribute("data-turbo-confirm")||!!t.hasAttribute("data-turbo-stream")))},ne=t=>t.hasAttribute("data-remote")||t.hasAttribute("data-behavior")||t.hasAttribute("data-confirm")||t.hasAttribute("data-method"),re=t=>u("turbo:before-prefetch",{target:t,cancelable:!0}).defaultPrevented;class ie{constructor(t){this.delegate=t}proposeVisit(t,e={}){this.delegate.allowsVisitingLocationWithAction(t,e.action)&&this.delegate.visitProposedToLocation(t,e)}startVisit(t,e,n={}){this.stop(),this.currentVisit=new $t(this,R(t),e,{referrer:this.location,...n}),this.currentVisit.start()}submitForm(t,e){this.stop(),this.formSubmission=new st(this,t,e,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get rootLocation(){return this.view.snapshot.rootLocation}get history(){return this.delegate.history}formSubmissionStarted(t){"function"==typeof this.adapter.formSubmissionStarted&&this.adapter.formSubmissionStarted(t)}async formSubmissionSucceededWithResponse(t,e){if(t==this.formSubmission){const n=await e.responseHTML;if(n){const r=t.isSafe;r||this.view.clearSnapshotCache();const{statusCode:i,redirected:o}=e,a={action:this.#O(t,e),shouldCacheSnapshot:r,response:{statusCode:i,responseHTML:n,redirected:o}};this.proposeVisit(e.location,a)}}}async formSubmissionFailedWithResponse(t,e){const n=await e.responseHTML;if(n){const t=Mt.fromHTMLString(n);e.serverError?await this.view.renderError(t,this.currentVisit):await this.view.renderPage(t,!1,!0,this.currentVisit),t.shouldPreserveScrollPosition||this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(t,e){console.error(e)}formSubmissionFinished(t){"function"==typeof this.adapter.formSubmissionFinished&&this.adapter.formSubmissionFinished(t)}linkPrefetchingIsEnabledForLocation(t){return"function"!=typeof this.adapter.linkPrefetchingIsEnabledForLocation||this.adapter.linkPrefetchingIsEnabledForLocation(t)}visitStarted(t){this.delegate.visitStarted(t)}visitCompleted(t){this.delegate.visitCompleted(t),delete this.currentVisit}locationWithActionIsSamePage(t,e){const n=N(t),r=N(this.view.lastRenderedLocation),i="restore"===e&&void 0===n;return"replace"!==e&&V(t)===V(this.view.lastRenderedLocation)&&(i||null!=n&&n!==r)}visitScrolledToSamePageLocation(t,e){this.delegate.visitScrolledToSamePageLocation(t,e)}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}#O(t,e){const{submitter:n,formElement:r}=t;return O(n,r)||this.#k(e)}#k(t){return t.redirected&&t.location.href===this.location?.href?"replace":"advance"}}const oe=0,ae=1,se=2,le=3;class ce{stage=oe;started=!1;constructor(t){this.delegate=t}start(){this.started||(this.stage==oe&&(this.stage=ae),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}interpretReadyState=()=>{const{readyState:t}=this;
16"interactive"==t?this.pageIsInteractive():"complete"==t&&this.pageIsComplete()};pageIsInteractive(){this.stage==ae&&(this.stage=se,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==se&&(this.stage=le,this.delegate.pageLoaded())}pageWillUnload=()=>{this.delegate.pageWillUnload()};get readyState(){return document.readyState}}class ue{started=!1;constructor(t){this.delegate=t}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})};updatePosition(t){this.delegate.scrollPositionChanged(t)}}class he{render({fragment:t}){vt.preservingPermanentElements(this,function(t){const e=ut(document.documentElement),n={};for(const r of e){const{id:e}=r;for(const i of t.querySelectorAll("turbo-stream")){const t=ct(i.templateElement.content,e);t&&(n[e]=[r,t])}}return n}(t),(()=>{!async function(t,e){const n=`turbo-stream-autofocus-${v()}`,r=t.querySelectorAll("turbo-stream"),i=function(t){for(const e of t){const t=M(e.templateElement.content);if(t)return t}return null}(r);let o=null;i&&(o=i.id?i.id:n,i.id=o);e(),await f();if((null==document.activeElement||document.activeElement==document.body)&&o){const t=document.getElementById(o);P(t)&&t.focus(),t&&t.id==n&&t.removeAttribute("id")}}(t,(()=>{!async function(t){const[e,n]=await async function(t,e){const n=e();return t(),await d(),[n,e()]}(t,(()=>document.activeElement)),r=e&&e.id;if(r){const t=document.getElementById(r);P(t)&&t!=n&&t.focus()}}((()=>{document.documentElement.appendChild(t)}))}))}))}enteringBardo(t,e){e.replaceWith(t.cloneNode(!0))}leavingBardo(){}}class fe{sources=new Set;#E=!1;constructor(t){this.delegate=t}start(){this.#E||(this.#E=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.#E&&(this.#E=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(t){this.streamSourceIsConnected(t)||(this.sources.add(t),t.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(t){this.streamSourceIsConnected(t)&&(this.sources.delete(t),t.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(t){return this.sources.has(t)}inspectFetchResponse=t=>{const e=function(t){const e=t.detail?.fetchResponse;if(e instanceof U)return e}(t);e&&function(t){const e=t.contentType??"";return e.startsWith(it.contentType)}(e)&&(t.preventDefault(),this.receiveMessageResponse(e))};receiveMessageEvent=t=>{this.#E&&"string"==typeof t.data&&this.receiveMessageHTML(t.data)};async receiveMessageResponse(t){const e=await t.responseHTML;e&&this.receiveMessageHTML(e)}receiveMessageHTML(t){this.delegate.receivedMessageFromStream(it.wrap(t))}}class de extends yt{static renderElement(t,e){const{documentElement:n,body:r}=document;n.replaceChild(e,r)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){const{documentElement:t,head:e}=document;t.replaceChild(this.newHead,e),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(const t of this.scriptElements){const e=t.parentNode;if(e){const n=c(t);e.replaceChild(n,t)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}}class pe extends yt{static renderElement(t,e){document.body&&e instanceof HTMLBodyElement?document.body.replaceWith(e):document.documentElement.appendChild(e)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){return this.newSnapshot.isVisitable?this.trackedElementsAreIdentical?void 0:{reason:"tracked_element_mismatch"}:{reason:"turbo_visit_control_is_reload"}}async prepareToRender(){this.#_(),await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}
16get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}#_(){const{documentElement:t}=this.currentSnapshot,{lang:e}=this.newSnapshot;e?t.setAttribute("lang",e):t.removeAttribute("lang")}async mergeHead(){const t=this.mergeProvisionalElements(),e=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await t,await e,this.willRender&&this.removeUnusedDynamicStylesheetElements()}async replaceBody(){await this.preservingPermanentElements((async()=>{this.activateNewBody(),await this.assignNewBody()}))}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){const t=[];for(const e of this.newHeadStylesheetElements)t.push(w(e)),document.head.appendChild(e);await Promise.all(t)}copyNewHeadScriptElements(){for(const t of this.newHeadScriptElements)document.head.appendChild(c(t))}removeUnusedDynamicStylesheetElements(){for(const t of this.unusedDynamicStylesheetElements)document.head.removeChild(t)}async mergeProvisionalElements(){const t=[...this.newHeadProvisionalElements];for(const e of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(e,t)||document.head.removeChild(e);for(const e of t)document.head.appendChild(e)}isCurrentElementInElementList(t,e){for(const[n,r]of e.entries()){if("TITLE"==t.tagName){if("TITLE"!=r.tagName)continue;if(t.innerHTML==r.innerHTML)return e.splice(n,1),!0}if(r.isEqualNode(t))return e.splice(n,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(const t of this.currentHeadProvisionalElements)document.head.removeChild(t)}copyNewHeadProvisionalElements(){for(const t of this.newHeadProvisionalElements)document.head.appendChild(t)}activateNewBody(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}activateNewBodyScriptElements(){for(const t of this.newBodyScriptElements){const e=c(t);t.replaceWith(e)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get unusedDynamicStylesheetElements(){return this.oldHeadStylesheetElements.filter((t=>"dynamic"===t.getAttribute("data-turbo-track")))}get oldHeadStylesheetElements(){return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}}class me extends pe{static renderElement(t,e){wt(t,e,{callbacks:{beforeNodeMorphed:t=>!ge(t)}});for(const e of t.querySelectorAll("turbo-frame"))ge(e)&&e.reload();u("turbo:morph",{detail:{currentElement:t,newElement:e}})}async preservingPermanentElements(t){return await t()}get renderMethod(){return"morph"}get shouldAutofocus(){return!1}}function ge(t){return t instanceof s&&t.src&&"morph"===t.refresh&&!t.closest("[data-turbo-permanent]")}class ve{keys=[];snapshots={};constructor(t){this.size=t}has(t){return W(t)in this.snapshots}get(t){if(this.has(t)){const e=this.read(t);return this.touch(t),e}}put(t,e){return this.write(t,e),this.touch(t),e}clear(){this.snapshots={}}read(t){return this.snapshots[W(t)]}write(t,e){this.snapshots[W(t)]=e}touch(t){const e=W(t),n=this.keys.indexOf(e);n>-1&&this.keys.splice(n,1),this.keys.unshift(e),this.trim()}trim(){for(const t of this.keys.splice(this.size))delete this.snapshots[t]}}class ye extends ft{snapshotCache=new ve(10);lastRenderedLocation=new URL(location.href);forceReloaded=!1;shouldTransitionTo(t){return this.snapshot.prefersViewTransitions&&t.prefersViewTransitions}renderPage(t,e=!1,n=!0,r){const i=new(this.isPageRefresh(r)&&this.snapshot.shouldMorphPage?me:pe)(this.snapshot,t,e,n);return i.shouldRender?r?.changeHistory():this.forceReloaded=!0,this.render(i)}renderError(t,e){e?.changeHistory();const n=new de(this.snapshot,t,!1);return this.render(n)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(t=this.snapshot){if(t.isCacheable){this.delegate.viewWillCacheSnapshot();const{lastRenderedLocation:e}=this;await p();const n=t.clone();return this.snapshotCache.put(e,n),n}}getCachedSnapshotForLocation(t){return this.snapshotCache.get(t)}isPageRefresh(t){return!t||this.lastRenderedLocation.pathname===t.location.pathname&&"replace"===t.action}shouldPreserveScrollPosition(t){return this.isPageRefresh(t)&&this.snapshot.shouldPreserveScrollPosition}
16get snapshot(){return Mt.fromElement(this.element)}}class be{selector="a[data-turbo-preload]";constructor(t,e){this.delegate=t,this.snapshotCache=e}start(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",this.#A):this.preloadOnLoadLinksForView(document.body)}stop(){document.removeEventListener("DOMContentLoaded",this.#A)}preloadOnLoadLinksForView(t){for(const e of t.querySelectorAll(this.selector))this.delegate.shouldPreloadLink(e)&&this.preloadURL(e)}async preloadURL(t){const e=new URL(t.href);if(this.snapshotCache.has(e))return;const n=new J(this,G.get,e,new URLSearchParams,t);await n.perform()}prepareRequest(t){t.headers["X-Sec-Purpose"]="prefetch"}async requestSucceededWithResponse(t,e){try{const n=await e.responseHTML,r=Mt.fromHTMLString(n);this.snapshotCache.put(t.url,r)}catch(t){}}requestStarted(t){}requestErrored(t){}requestFinished(t){}requestPreventedHandlingResponse(t,e){}requestFailedWithResponse(t,e){}#A=()=>{this.preloadOnLoadLinksForView(document.body)}}class xe{constructor(t){this.session=t}clear(){this.session.clearCache()}resetCacheControl(){this.#P("")}exemptPageFromCache(){this.#P("no-cache")}exemptPageFromPreview(){this.#P("no-preview")}#P(t){!function(t,e){let n=k(t);n||(n=document.createElement("meta"),n.setAttribute("name",t),document.head.appendChild(n)),n.setAttribute("content",e)}("turbo-cache-control",t)}}function we(t){Object.defineProperties(t,Se)}const Se={absoluteURL:{get(){return this.toString()}}},Oe=new class{navigator=new ie(this);history=new Gt(this);view=new ye(this,document.documentElement);adapter=new Yt(this);pageObserver=new ce(this);cacheObserver=new Kt;linkPrefetchObserver=new Qt(this,document);linkClickObserver=new mt(this,window);formSubmitObserver=new ht(this,document);scrollObserver=new ue(this);streamObserver=new fe(this);formLinkClickObserver=new gt(this,document.documentElement);frameRedirector=new Xt(this,document.documentElement);streamMessageRenderer=new he;cache=new xe(this);enabled=!0;started=!1;#M=150;constructor(t){this.recentRequests=t,this.preloader=new be(this,this.view.snapshotCache),this.debouncedRefresh=this.refresh,this.pageRefreshDebouncePeriod=this.pageRefreshDebouncePeriod}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.linkPrefetchObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.linkPrefetchObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.preloader.stop(),this.started=!1)}registerAdapter(t){this.adapter=t}visit(t,e={}){const n=e.frame?document.getElementById(e.frame):null;if(n instanceof s){const r=e.action||O(n);n.delegate.proposeVisitIfNavigatedWithAction(n,r),n.src=t.toString()}else this.navigator.proposeVisit(R(t),e)}refresh(t,e){const n=e&&this.recentRequests.has(e),r=t===document.baseURI;n||this.navigator.currentVisit||!r||this.visit(t,{action:"replace",shouldCacheSnapshot:!1})}connectStreamSource(t){this.streamObserver.connectStreamSource(t)}disconnectStreamSource(t){this.streamObserver.disconnectStreamSource(t)}renderStreamMessage(t){this.streamMessageRenderer.render(it.wrap(t))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(t){console.warn("Please replace `session.setProgressBarDelay(delay)` with `session.progressBarDelay = delay`. The function is deprecated and will be removed in a future version of Turbo.`"),this.progressBarDelay=t}set progressBarDelay(t){D.drive.progressBarDelay=t}get progressBarDelay(){return D.drive.progressBarDelay}set drive(t){D.drive.enabled=t}get drive(){return D.drive.enabled}set formMode(t){D.forms.mode=t}get formMode(){return D.forms.mode}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}get pageRefreshDebouncePeriod(){return this.#M}set pageRefreshDebouncePeriod(t){this.refresh=function(t,e){let n=null;return(...r)=>{clearTimeout(n),n=setTimeout((()=>t.apply(this,r)),e)}}(this.debouncedRefresh.bind(this),t),this.#M=t}shouldPreloadLink(t){const e=t.hasAttribute("data-turbo-method"),n=t.hasAttribute("data-turbo-stream"),r=t.getAttribute("data-turbo-frame"),i="_top"==r?null:d
16ocument.getElementById(r)||A(t,"turbo-frame:not([disabled])");if(e||n||i instanceof s)return!1;{const e=new URL(t.href);return this.elementIsNavigatable(t)&&H(e,this.snapshot.rootLocation)}}historyPoppedToLocationWithRestorationIdentifierAndDirection(t,e,n){this.enabled?this.navigator.startVisit(t,e,{action:"restore",historyChanged:!0,direction:n}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}scrollPositionChanged(t){this.history.updateRestorationData({scrollPosition:t})}willSubmitFormLinkToLocation(t,e){return this.elementIsNavigatable(t)&&H(e,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}canPrefetchRequestToLocation(t,e){return this.elementIsNavigatable(t)&&H(e,this.snapshot.rootLocation)&&this.navigator.linkPrefetchingIsEnabledForLocation(e)}willFollowLinkToLocation(t,e,n){return this.elementIsNavigatable(t)&&H(e,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(t,e,n)}followedLinkToLocation(t,e){const n=this.getActionForLink(t),r=t.hasAttribute("data-turbo-stream");this.visit(e.href,{action:n,acceptsStreamResponse:r})}allowsVisitingLocationWithAction(t,e){return this.locationWithActionIsSamePage(t,e)||this.applicationAllowsVisitingLocation(t)}visitProposedToLocation(t,e){we(t),this.adapter.visitProposedToLocation(t,e)}visitStarted(t){t.acceptsStreamResponse||(b(document.documentElement),this.view.markVisitDirection(t.direction)),we(t.location),t.silent||this.notifyApplicationAfterVisitingLocation(t.location,t.action)}visitCompleted(t){this.view.unmarkVisitDirection(),x(document.documentElement),this.notifyApplicationAfterPageLoad(t.getTimingMetrics())}locationWithActionIsSamePage(t,e){return this.navigator.locationWithActionIsSamePage(t,e)}visitScrolledToSamePageLocation(t,e){this.notifyApplicationAfterVisitingSamePageLocation(t,e)}willSubmitForm(t,e){const n=F(t,e);return this.submissionIsNavigatable(t,e)&&H(R(n),this.snapshot.rootLocation)}formSubmitted(t,e){this.navigator.submitForm(t,e)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(t){this.renderStreamMessage(t)}viewWillCacheSnapshot(){this.navigator.currentVisit?.silent||this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:t},e){const n=this.notifyApplicationBeforeRender(t,e),{defaultPrevented:r,detail:{render:i}}=n;return this.view.renderer&&i&&(this.view.renderer.renderElement=i),!r}viewRenderedSnapshot(t,e,n){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender(n)}preloadOnLoadLinksForView(t){this.preloader.preloadOnLoadLinksForView(t)}viewInvalidated(t){this.adapter.pageInvalidated(t)}frameLoaded(t){this.notifyApplicationAfterFrameLoad(t)}frameRendered(t,e){this.notifyApplicationAfterFrameRender(t,e)}applicationAllowsFollowingLinkToLocation(t,e,n){return!this.notifyApplicationAfterClickingLinkToLocation(t,e,n).defaultPrevented}applicationAllowsVisitingLocation(t){return!this.notifyApplicationBeforeVisitingLocation(t).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(t,e,n){return u("turbo:click",{target:t,detail:{url:e.href,originalEvent:n},cancelable:!0})}notifyApplicationBeforeVisitingLocation(t){return u("turbo:before-visit",{detail:{url:t.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(t,e){return u("turbo:visit",{detail:{url:t.href,action:e}})}notifyApplicationBeforeCachingSnapshot(){return u("turbo:before-cache")}notifyApplicationBeforeRender(t,e){return u("turbo:before-render",{detail:{newBody:t,...e},cancelable:!0})}notifyApplicationAfterRender(t){return u("turbo:render",{detail:{renderMethod:t}})}notifyApplicationAfterPageLoad(t={}){return u("turbo:load",{detail:{url:this.location.href,timing:t}})}notifyApplicationAfterVisitingSamePageLocation(t,e){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:t.toString(),newURL:e.toString()}))}notifyApplicationAfterFrameLoad(t){return u("turbo:frame-load",{target:t})}notifyApplicationAfterFrameRender(t,e){return u("turbo:frame-render",{detail:{fetchResponse:t},target:e,cancelable:!0})}submissionIsNavigatable(t,e){if("off"==D.forms.mode)return!1;{const n=!e||this.elementIsNavigatable(e);return"optin"==D.forms.mode?n&&null!=t.closest('[data-turbo="true"]'):n&&this.elementIsNavigatable(t)}}elementIsNavigatable(t){const e=A(t,"[data-turbo]"),n=A(t,"turbo-frame");return D.drive.enabled||n?!e||"false"!=e.getAttribute("data-turbo"):!!e&&"true"==e.getAttribute("data-turbo")}getActionForLink(t){return O(t)||"advance"}get snapshot(){return this.view.snapshot}}(q),{cache:ke,navigator:Ee}=Oe;function _e(){Oe.start()}function Ae(t){Oe.connectStreamSource(t)}function Pe(t){Oe.disconnectStreamSource(t)}var Me=Object.freeze({__proto__:null,navigator:Ee,session:Oe,cache:ke,PageRenderer:pe,PageSnapshot:Mt,FrameRenderer:bt,fetch:K,config:D,start:_e,registerAdapter
16:function(t){Oe.registerAdapter(t)},visit:function(t,e){Oe.visit(t,e)},connectStreamSource:Ae,disconnectStreamSource:Pe,renderStreamMessage:function(t){Oe.renderStreamMessage(t)},clearCache:function(){console.warn("Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),Oe.clearCache()},setProgressBarDelay:function(t){console.warn("Please replace `Turbo.setProgressBarDelay(delay)` with `Turbo.config.drive.progressBarDelay = delay`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),D.drive.progressBarDelay=t},setConfirmMethod:function(t){console.warn("Please replace `Turbo.setConfirmMethod(confirmMethod)` with `Turbo.config.forms.confirm = confirmMethod`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),D.forms.confirm=t},setFormMode:function(t){console.warn("Please replace `Turbo.setFormMode(mode)` with `Turbo.config.forms.mode = mode`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),D.forms.mode=t}});class Ce extends Error{}function Te(t){if(null!=t){const e=document.getElementById(t);if(e instanceof s)return e}}function je(t,e){if(t){const r=t.getAttribute("src");if(null!=r&&null!=e&&(n=e,R(r).href==R(n).href))throw new Error(`Matching <turbo-frame id="${t.id}"> element has a source URL which references itself`);if(t.ownerDocument!==document&&(t=document.importNode(t,!0)),t instanceof s)return t.connectedCallback(),t.disconnectedCallback(),t}var n}const Ie={after(){this.targetElements.forEach((t=>t.parentElement?.insertBefore(this.templateContent,t.nextSibling)))},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((t=>t.append(this.templateContent)))},before(){this.targetElements.forEach((t=>t.parentElement?.insertBefore(this.templateContent,t)))},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((t=>t.prepend(this.templateContent)))},remove(){this.targetElements.forEach((t=>t.remove()))},replace(){const t=this.getAttribute("method");this.targetElements.forEach((e=>{"morph"===t?wt(e,this.templateContent):e.replaceWith(this.templateContent)}))},update(){const t=this.getAttribute("method");this.targetElements.forEach((e=>{"morph"===t?St(e,this.templateContent):(e.innerHTML="",e.append(this.templateContent))}))},refresh(){Oe.refresh(this.baseURI,this.requestId)}};class Le extends HTMLElement{static async renderElement(t){await t.performAction()}async connectedCallback(){try{await this.render()}catch(t){console.error(t)}finally{this.disconnect()}}async render(){return this.renderPromise??=(async()=>{const t=this.beforeRenderEvent;this.dispatchEvent(t)&&(await f(),await t.detail.render(this))})()}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach((t=>t.remove()))}get duplicateChildren(){const t=this.targetElements.flatMap((t=>[...t.children])).filter((t=>!!t.getAttribute("id"))),e=[...this.templateContent?.children||[]].filter((t=>!!t.getAttribute("id"))).map((t=>t.getAttribute("id")));return t.filter((t=>e.includes(t.getAttribute("id"))))}get performAction(){if(this.action){const t=Ie[this.action];if(t)return t;this.#C("unknown action")}this.#C("action attribute is missing")}get targetElements(){return this.target?this.targetElementsById:this.targets?this.targetElementsByQuery:void this.#C("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(null===this.firstElementChild){const t=this.ownerDocument.createElement("template");return this.appendChild(t),t}if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.#C("first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}get requestId(){return this.getAttribute("request-id")}#C(t){throw new Error(`${this.description}: ${t}`)}get description(){return(this.outerHTML.match(/<[^>]+>/)??[])[0]??"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:Le.renderElement}})}get targetElementsById(){const t=this.ownerDocument?.getElementById(this.target);return null!==t?[t]:[]}get targetElementsByQuery(){const t=this.ownerDocument?.querySelectorAll(this.targets);return 0!==t.length?Array.prototype.slice.call(t):[]}}class De extends HTMLElement{streamSource=null;connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),Ae(this.streamSource)}disconnectedCallback(){this.streamSource&&(this.streamSource.close(),Pe(this.streamSource))}get src(){return this.getAttribute("src")||""}}s.delegateConstructor=class{fetchResponseLoaded=t=>Promise.resolve();#T=null;#j=()=>{};#I=!1;#L=!1;#D=new Set;#R=!1;action=null;constructor(t){this.element=t,this.view=new dt(this,this.element),this.appearanceObserver=new rt(this,this.element),this.formLinkClickObserver=new gt(this,this.element),this.linkInterceptor=new pt(this,this.element),this.restorationIdentifier=v(),this.formSubmitObserver=new ht(this,this.element)}connect(){this.#I||(this.#I=!0,this.loadingStyle==a?this.appearanceObserver.start():this.#N(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){this.#I&&(this.#I=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop())}disabledChanged(){this.loadingStyle==o&&this.#N()}sourceURLChanged(){this.#F("src")||(this.element.isConnected&&(this.complete=!1),(this.loadingStyle==o||this.#L)&&this.#N())}sourceURLReloaded(){const{refresh:t,src:e}=this.element;return this.#R=e&&"morph"===t,this.element.removeAttribute("complete"),this.element.src=null,this.element.src=e,this.element.loaded}loadingStyleChanged(){this.loadingStyle==a?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.#N())}async#N(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=this.#B(R(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.#L=!0)}async loadResponse(t){(t.redirected||t.succeeded&&t.isHTML)&&(this.sourceURL=t.response.url);try{const e=await t.responseHTML;if(e){const n=m(e);Mt.fromDocument(n).isVisitable?await this.#z(t,n):await this.#H(t)}}finally{this.#R=!1,this.fetchResponseLoaded=()=>Promise.resolve()}}elementAppearedInViewport(t){this.proposeVisitIfNavigatedWithAction(t,O(t)),this.#N()}willSubmitFormLinkToLocation(t){return this.#V(t)}submittedFormLinkToLocation(t,e,n){const r=this.#d(t);r&&n.setAttribute("data-turbo-frame",r.id)}shouldInterceptLinkClick(t,e,n){return this.#V(t)}linkClickIntercepted(t,e){this.#W(t,e)}willSubmitForm(t,e){return t.closest("turbo-frame")==this.element&&this.#V(t,e)}formSubmitted(t,e){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new st(this,t,e);const{fetchRequest:n}=this.formSubmission;this.prepareRequest(n),this.formSubmission.start()}prepareRequest(t){t.headers["Turbo-Frame"]=this.id,this.currentNavigationElement?.hasAttribute("data-turbo-stream")&&t.acceptResponseType(it.contentType)}requestStarted(t){b(this.element)}requestPreventedHandlingResponse(t,e){this.#j()}async requestSucceededWithResponse(t,e){await this.loadResponse(e),this.#j()}async requestFailedWithResponse(t,e){await this.loadResponse(e),this.#j()}requestErrored(t,e){console.error(e),this.#j()}requestFinished(t){x(this.element)}formSubmissionStarted({formElement:t}){b(t,this.#d(t))}formSubmissionSucceededWithResponse(t,e){const n=this.#d(t.formElement,t.submitter);n.delegate.proposeVisitIfNavigatedWithAction(n,O(t.submitter,t.formElement,n)),n.delegate.loadResponse(e),t.isSafe||Oe.clearCache()}formSubmissionFailedWithResponse(t,e){this.element.delegate.loadResponse(e),Oe.clearCache()}formSubmissionErrored(t,e){console.error(e)}formSubmissionFinished({formElement:t}){x(t,this.#d(t))}allowsImmediateRender({element:t},e){const n=u("turbo:before-frame-render",{target:this.element,detail
16:{newFrame:t,...e},cancelable:!0}),{defaultPrevented:r,detail:{render:i}}=n;return this.view.renderer&&i&&(this.view.renderer.renderElement=i),!r}viewRenderedSnapshot(t,e,n){}preloadOnLoadLinksForView(t){Oe.preloadOnLoadLinksForView(t)}viewInvalidated(){}willRenderFrame(t,e){this.previousFrameElement=t.cloneNode(!0)}visitCachedSnapshot=({element:t})=>{const e=t.querySelector("#"+this.element.id);e&&this.previousFrameElement&&e.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement};async#z(t,e){const n=await this.extractForeignFrameElement(e.body),r=this.#R?kt:bt;if(n){const e=new lt(n),i=new r(this,this.view.snapshot,e,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(i),this.complete=!0,Oe.frameRendered(t,this.element),Oe.frameLoaded(this.element),await this.fetchResponseLoaded(t)}else this.#U(t)&&this.#$(t)}async#B(t){const e=new J(this,G.get,t,new URLSearchParams,this.element);return this.#T?.cancel(),this.#T=e,new Promise((t=>{this.#j=()=>{this.#j=()=>{},this.#T=null,t()},e.perform()}))}#W(t,e,n){const r=this.#d(t,n);r.delegate.proposeVisitIfNavigatedWithAction(r,O(n,t,r)),this.#q(t,(()=>{r.src=e}))}proposeVisitIfNavigatedWithAction(t,e=null){if(this.action=e,this.action){const e=Mt.fromElement(t).clone(),{visitCachedSnapshot:n}=t.delegate;t.delegate.fetchResponseLoaded=async r=>{if(t.src){const{statusCode:i,redirected:o}=r,a={response:{statusCode:i,redirected:o,responseHTML:await r.responseHTML},visitCachedSnapshot:n,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:e};this.action&&(a.action=this.action),Oe.visit(t.src,a)}}}}changeHistory(){if(this.action){const t=S(this.action);Oe.history.update(t,R(this.element.src||""),this.restorationIdentifier)}}async#H(t){console.warn(`The response (${t.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await this.#Y(t.response)}#U(t){this.element.setAttribute("complete","");const e=t.response;return!u("turbo:frame-missing",{target:this.element,detail:{response:e,visit:async(t,e)=>{t instanceof Response?this.#Y(t):Oe.visit(t,e)}},cancelable:!0}).defaultPrevented}#$(t){this.view.missing(),this.#K(t)}#K(t){const e=`The response (${t.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new Ce(e)}async#Y(t){const e=new U(t),n=await e.responseHTML,{location:r,redirected:i,statusCode:o}=e;return Oe.visit(r,{response:{redirected:i,statusCode:o,responseHTML:n}})}#d(t,e){return Te(y("data-turbo-frame",e,t)||this.element.getAttribute("target"))??this.element}async extractForeignFrameElement(t){let e;const n=CSS.escape(this.id);try{if(e=je(t.querySelector(`turbo-frame#${n}`),this.sourceURL),e)return e;if(e=je(t.querySelector(`turbo-frame[src][recurse~=${n}]`),this.sourceURL),e)return await e.loaded,await this.extractForeignFrameElement(e)}catch(t){return console.error(t),new s}return null}#X(t,e){return H(R(F(t,e)),this.rootLocation)}#V(t,e){const n=y("data-turbo-frame",e,t)||this.element.getAttribute("target");if(t instanceof HTMLFormElement&&!this.#X(t,e))return!1;if(!this.enabled||"_top"==n)return!1;if(n){const t=Te(n);if(t)return!t.disabled}return!!Oe.elementIsNavigatable(t)&&!(e&&!Oe.elementIsNavigatable(e))}get id(){return this.element.id}get enabled(){return!this.element.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(t){this.#G("src",(()=>{this.element.src=t??null}))}get loadingStyle(){return this.element.loading}get isLoading(){return void 0!==this.formSubmission||void 0!==this.#j()}get complete(){return this.element.hasAttribute("complete")}set complete(t){t?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")}get isActive(){return this.element.isActive&&this.#I}get rootLocation(){const t=this.element.ownerDocument.querySelector('meta[name="turbo-root"]');return R(t?.content??"/")}#F(t){return this.#D.has(t)}#G(t,e){this.#D.add(t),e(),this.#D.delete(t)}#q(t,e){this.currentNavigationElement=t,e(),delete this.currentNavigationElement}},void 0===customElements.get("turbo-frame")&&customElements.define("turbo-frame",s),void 0===customElements.get("turbo-stream")&&customElements.define("turbo-stream",Le),void 0===customElements.get("turbo-stream-source")&&customElements.define("turbo-stream-source",De),(()=>{let t=document.currentScript;if(t&&!t.hasAttribute("data-turbo-suppress-warning"))for(t=t.parentElement;t;){if(t==document.body)return console.warn(g` 17 You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do! 18 19 Load your applicationâs JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change. 20 21 For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements 22 23 ââ 24 Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s 25 `,t.outerHTML);t=t.parentElement}})(),window.Turbo={...Me,StreamActions:Ie},_e()},655:(t,e,n)=>{"use strict";var r=n(36955),i=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}}
vendor: 3,461 bytes, line 25
25,659:(t,e,n)=>{var r=n(51873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},1103:t=>{"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},1469:(t,e,n)=>{"use strict";var r=n(87433);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},1625:(t,e,n)=>{"use strict";var r=n(79504);t.exports=r({}.isPrototypeOf)},1767:t=>{"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1882:(t,e,n)=>{var r=n(72552),i=n(23805);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1951:(t,e,n)=>{"use strict";var r=n(78227);e.f=r},2008:(t,e,n)=>{"use strict";var r=n(46518),i=n(59213).filter;r({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},2259:(t,e,n)=>{"use strict";n(70511)("iterator")},2293:(t,e,n)=>{"use strict";var r=n(28551),i=n(35548),o=n(64117),a=n(78227)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||o(n=r(s)[a])?e:i(n)}},2360:(t,e,n)=>{"use strict";var r,i=n(28551),o=n(96801),a=n(88727),s=n(30421),l=n(20397),c=n(4055),u=n(66119),h="prototype",f="script",d=u("IE_PROTO"),p=function(){},m=function(t){return"<"+f+">"+t+"</"+f+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v="undefined"!=typeof document?document.domain&&r?g(r):(e=c("iframe"),n="java"+f+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(r);for(var i=a.length;i--;)delete v[h][a[i]];return v()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(p[h]=i(t),n=new p,p[h]=null,n[d]=t):n=v(),void 0===e?n:o.f(n,e)}},2404:(t,e,n)=>{var r=n(60270);t.exports=function(t,e){return r(t,e)}},2478:(t,e,n)=>{"use strict";var r=n(79504),i=n(48981),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,f){var d=n+t.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=c),s(f,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,d);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var f=o(u/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},2523:t=>{t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},2694:(t,e,n)=>{"use strict";var r=n(6925);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i}
25;return n.PropTypes=n,n}},2892:(t,e,n)=>{"use strict";var r=n(46518),i=n(96395),o=n(43724),a=n(44576),s=n(19167),l=n(79504),c=n(92796),u=n(39297),h=n(23167),f=n(1625),d=n(10757),p=n(72777),m=n(79039),g=n(38480).f,v=n(77347).f,y=n(24913).f,b=n(31240),x=n(43802).trim,w="Number",S=a[w],O=s[w],k=S.prototype,E=a.TypeError,_=l("".slice),A=l("".charCodeAt),P=function(t){var e,n,r,i,o,a,s,l,c=p(t,"number");if(d(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(e=A(c,0))||45===e){if(88===(n=A(c,2))||120===n)return NaN}else if(48===e){switch(A(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=_(c,2)).length,s=0;s<a;s++)if((l=A(o,s))<48||l>i)return NaN;return parseInt(o,r)}return+c},M=c(w,!S(" 0o1")||!S("0b1")||S("+0x1")),C=function(t){var e,n=arguments.length<1?0:S(function(t){var e=p(t,"number");return"bigint"==typeof e?e:P(e)}(t));return f(k,e=this)&&m((function(){b(e)}))?h(Object(n),this,C):n};C.prototype=k,M&&!i&&(k.constructor=C),r({global:!0,constructor:!0,wrap:!0,forced:M},{Number:C});var T=function(t,e){for(var n,r=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)u(e,n=r[i])&&!u(t,n)&&y(t,n,v(e,n))};i&&O&&T(s[w],O),(M||i)&&T(s[w],S)},3066:(t,e,n)=>{"use strict";n.d(e,{E:()=>a});var r=n(52891),i=n(43689);function o(t){return t.keys().map((e=>function(t,e){const n=function(t){const e=(t.match(/^(?:\.\/)?(.+)(?:[_-]controller\..+?)$/)||[])[1];if(e)return e.replace(/_/g,"-").replace(/\//g,"--")}(e);if(n)return function(t,e){const n=t.default;if("function"==typeof n)return{identifier:e,controllerConstructor:n}}(t(e),n)}(t,e))).filter((t=>t))}function a(t){const e=r.lg.start();t&&e.load(o(t));for(const t in i.A)i.A.hasOwnProperty(t)&&e.register(t,i.A[t]);return e}},3296:(t,e,n)=>{"use strict";n(45806)},3335:t=>{t.exports=function(t,e){return t>e}},3362:(t,e,n)=>{"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},3451:(t,e,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(30421),a=n(20034),s=n(39297),l=n(24913).f,c=n(38480),u=n(10298),h=n(34124),f=n(33392),d=n(92744),p=!1,m=f("meta"),g=0,v=function(t){l(t,m,{value:{objectID:"O"+g++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=c.f,e=i([].splice),n={};n[m]=1,t(n).length&&(c.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===m){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,m)){if(!h(t))return"F";if(!e)return"E";v(t)}return t[m].objectID},getWeakData:function(t,e){if(!s(t,m)){if(!h(t))return!0;if(!e)return!1;v(t)}return t[m].weakData},onFreeze:function(t){return d&&p&&h(t)&&!s(t,m)&&v(t),t}};o[m]=!0},3470:t=>{"use strict";t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},3650:(t,e,n)=>{var r=n(74335)(Object.keys,Object);t.exports=r},3656:(t,e,n)=>{t=n.nmd(t);var r=n(9325),i=n(89935),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;t.exports=l},3717:(t,e,n)=>{"use strict";var r=n(79504),i=2147483647,o=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",l=RangeError,c=r(a.exec),u=Math.floor,h=String.fromCharCode,f=r("".charCodeAt),d=r([].join),p=r([].push),m=r("".replace),g=r("".split),v=r("".toLowerCase),y=function(t){return t+22+75*(t<26)},b=function(t,e,n){var r=0;for(t=n?u(t/700):t>>1,t+=u(t/e);t>455;)t=u(t/35),r+=36;return u(r+36*t/(t+38))},x=function(t){var e=[];t=function(t){for(var e=[],n=0,r=t.length;n<r;){var i=f(t,n++);if(i>=55296&&i<=56319&&n<r){var o=f(t,n++);56320==(64512&o)?p(e,((1023&i)<<10)+(1023&o)+65536):(p(e,i),n--)}else p(e,i)}return e}(t);var n,r,o=t.length,a=128,c=0,m=72;for(n=0;n<t.length;n++)(r=t[n])<128&&p(e,h(r));var g=e.length,v=g;for(g&&p(e,"-");v<o;){var x=i;for(n=0;n<t.length;n++)(r=t[n])>=a&&r<x&&(x=r);var w=v+1;if(x-a>u((i-c)/w))throw new l(s);for(c+=(x-a)*w,a=x,n=0;n<t.length;n++){if((r=t[n])<a&&++c>i)throw new l(s);if(r===a){for(var S=c,O=36;;){var k=O<=m?1:O>=m+26?26:O-m;if(S<k)break;var E=S-k,_=36-k;p(e,h(y(k+E%_))),S=u(E/_),O+=36}p(e,h(y(S))),m=b(c,w,v===g),c=0,v++}}c++,a++}return d(e,"")};t.exports=function(t){var e,n,r=[],i=g(m(v(t),a,"."),".");for(e=0;e<i.length;e++)n=i[e],p(r,c(o,n)?"xn--"+x(n):n);return d(r,".")}},3949:(t,e,n)=>{"use strict";n(7588)},4055:(t,e,n)=>{"use strict";var r=n(44576),i=n(20034),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},4495:(t,e,n)=>{"use strict";var r=n(39519),i=n(79039),o=n(44576).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4509:(t,e,n)=>{var r=n(12651);t.exports=function(t){return r(this,t).has(t)}},4664:(t,e,n)=>{var r=n(79770),i=n(63345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},4901:(t,e,n)=>{var r=n(72552),i=n(30294),o=n(40346),a={};
25a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},5128:(t,e,n)=>{var r=n(80909),i=n(64894);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,(function(t,r,i){o[++n]=e(t,r,i)})),o}},5240:(t,e,n)=>{"use strict";n(16468)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(91625))},5305:(t,e,n)=>{"use strict";n.d(e,{x:()=>i});var r=n(43329);function i(t,...e){const n=r.w.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(n)}},5506:(t,e,n)=>{"use strict";var r=n(46518),i=n(32357).entries;r({target:"Object",stat:!0},{entries:function(t){return i(t)}})},5556:(t,e,n)=>{t.exports=n(2694)()},5614:(t,e,n)=>{"use strict";n.d(e,{Z:()=>A});var r=n(96540),i=n(69843),o=n.n(i),a=n(23805),s=n.n(a),l=n(1882),c=n.n(l),u=n(68090),h=n.n(u),f=n(91706),d=n(86069),p=n(94501),m=n(63036);function g(t){return g="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},g(t)}var v=["valueAccessor"],y=["data","dataKey","clockWise","id","textBreakAll"];function b(t){return function(t){if(Array.isArray(t))return x(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)return;if("string"==typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(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 x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w.apply(this,arguments)}function S(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 O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e,n){var r;return r=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==g(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var _=function(t){return Array.isArray(t.value)?h()(t.value):t.value};function A(t){var e=t.valueAccessor,n=void 0===e?_:e,i=E(t,v),a=i.data,s=i.dataKey,l=i.clockWise,c=i.id,u=i.textBreakAll,h=E(i,y);return a&&a.length?r.createElement(d.W,{className:"recharts-label-list"},a.map((function(t,e){var i=o()(s)?n(t,e):(0,m.kr)(t&&t.payload,s),a=o()(c)?{}:{id:"".concat(c,"-").concat(e)};return r.createElement(f.J,w({},(0,p.J9)(t,!0),h,a,{parentViewBox:t.parentViewBox,value:i,textBreakAll:u,viewBox:f.J.parseViewBox(o()(l)?t:O(O({},t),{},{clockWise:l})),key:"label-".concat(e),index:e}))}))):null}A.displayName="LabelList",A.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=(0,p.aS)(i,A).map((function(t,n){return(0,r.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?r.createElement(A,{key:"labelList-implicit",data:e}):r.isValidElement(t)||c()(t)?r.createElement(A,{key:"labelList-implicit",data:e,content:t}):s()(t)?r.createElement(A,w({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(b(o)):o}},5746:(t,e,n)=>{"use strict";var r=n(69565),i=n(89228),o=n(28551),a=n(20034),s=n(67750),l=n(3470),c=n(655),u=n(55966),h=n(56682);i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?u(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=o(this),i=c(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);
25var u=h(r,i);return l(r.lastIndex,s)||(r.lastIndex=s),null===u?-1:u.index}]}))},5861:(t,e,n)=>{var r=n(55580),i=n(68223),o=n(32804),a=n(76545),s=n(28303),l=n(72552),c=n(47473),u="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",m=c(r),g=c(i),v=c(o),y=c(a),b=c(s),x=l;(r&&x(new r(new ArrayBuffer(1)))!=p||i&&x(new i)!=u||o&&x(o.resolve())!=h||a&&x(new a)!=f||s&&x(new s)!=d)&&(x=function(t){var e=l(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case m:return p;case g:return u;case v:return h;case y:return f;case b:return d}return e}),t.exports=x},6463:(t,e,n)=>{"use strict";n.d(e,{o:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in);return n.setHours(0,0,0,0),n}},6469:(t,e,n)=>{"use strict";var r=n(78227),i=n(2360),o=n(24913).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},6634:(t,e,n)=>{"use strict";n.d(e,{R:()=>r});var r=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i]}},6761:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(69565),a=n(79504),s=n(96395),l=n(43724),c=n(4495),u=n(79039),h=n(39297),f=n(1625),d=n(28551),p=n(25397),m=n(56969),g=n(655),v=n(6980),y=n(2360),b=n(71072),x=n(38480),w=n(10298),S=n(33717),O=n(77347),k=n(24913),E=n(96801),_=n(48773),A=n(36840),P=n(62106),M=n(25745),C=n(66119),T=n(30421),j=n(33392),I=n(78227),L=n(1951),D=n(70511),R=n(58242),N=n(10687),F=n(91181),B=n(59213).forEach,z=C("hidden"),H="Symbol",V="prototype",W=F.set,U=F.getterFor(H),$=Object[V],q=i.Symbol,Y=q&&q[V],K=i.RangeError,X=i.TypeError,G=i.QObject,Q=O.f,J=k.f,Z=w.f,tt=_.f,et=a([].push),nt=M("symbols"),rt=M("op-symbols"),it=M("wks"),ot=!G||!G[V]||!G[V].findChild,at=function(t,e,n){var r=Q($,e);r&&delete $[e],J(t,e,n),r&&t!==$&&J($,e,r)},st=l&&u((function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?at:J,lt=function(t,e){var n=nt[t]=y(Y);return W(n,{type:H,tag:t,description:e}),l||(n.description=e),n},ct=function(t,e,n){t===$&&ct(rt,e,n),d(t);var r=m(e);return d(n),h(nt,r)?(n.enumerable?(h(t,z)&&t[z][r]&&(t[z][r]=!1),n=y(n,{enumerable:v(0,!1)})):(h(t,z)||J(t,z,v(1,y(null))),t[z][r]=!0),st(t,r,n)):J(t,r,n)},ut=function(t,e){d(t);var n=p(e),r=b(n).concat(pt(n));return B(r,(function(e){l&&!o(ht,n,e)||ct(t,e,n[e])})),t},ht=function(t){var e=m(t),n=o(tt,this,e);return!(this===$&&h(nt,e)&&!h(rt,e))&&(!(n||!h(this,e)||!h(nt,e)||h(this,z)&&this[z][e])||n)},ft=function(t,e){var n=p(t),r=m(e);if(n!==$||!h(nt,r)||h(rt,r)){var i=Q(n,r);return!i||!h(nt,r)||h(n,z)&&n[z][r]||(i.enumerable=!0),i}},dt=function(t){var e=Z(p(t)),n=[];return B(e,(function(t){h(nt,t)||h(T,t)||et(n,t)})),n},pt=function(t){var e=t===$,n=Z(e?rt:p(t)),r=[];return B(n,(function(t){!h(nt,t)||e&&!h($,t)||et(r,nt[t])})),r};c||(A(Y=(q=function(){if(f(Y,this))throw new X("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=j(t),n=function(t){var r=void 0===this?i:this;r===$&&o(n,rt,t),h(r,z)&&h(r[z],e)&&(r[z][e]=!1);var a=v(1,t);try{st(r,e,a)}catch(t){if(!(t instanceof K))throw t;at(r,e,a)}};return l&&ot&&st($,e,{configurable:!0,set:n}),lt(e,t)})[V],"toString",(function(){return U(this).tag})),A(q,"withoutSetter",(function(t){return lt(j(t),t)})),_.f=ht,k.f=ct,E.f=ut,O.f=ft,x.f=w.f=dt,S.f=pt,L.f=function(t){return lt(I(t),t)},l&&(P(Y,"description",{configurable:!0,get:function(){return U(this).description}}),s||A($,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),B(b(it),(function(t){D(t)})),r({target:H,stat:!0,forced:!c},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(t,e){return void 0===e?y(t):ut(y(t),e)},defineProperty:ct,defineProperties:ut,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:dt}),R(),N(q,H),T[z]=!0},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6980:t=>{"use strict";
vendor: 4,464 bytes, line 25
25t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:(t,e,n)=>{"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7309:(t,e,n)=>{var r=n(62006)(n(24713));t.exports=r},7350:(t,e,n)=>{var r=n(38221),i=n(23805);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},7463:(t,e)=>{"use strict";function n(t,e){var n=t.length;t.push(e);t:for(;0<n;){var r=n-1>>>1,i=t[r];if(!(0<o(i,e)))break t;t[r]=e,t[n]=i,n=r}}function r(t){return 0===t.length?null:t[0]}function i(t){if(0===t.length)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=t[s],c=s+1,u=t[c];if(0>o(l,n))c<i&&0>o(u,l)?(t[r]=u,t[c]=n,r=c):(t[r]=l,t[s]=n,r=s);else{if(!(c<i&&0>o(u,n)))break t;t[r]=u,t[c]=n,r=c}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],u=[],h=1,f=null,d=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(t){for(var e=r(u);null!==e;){if(null===e.callback)i(u);else{if(!(e.startTime<=t))break;i(u),e.sortIndex=e.expirationTime,n(c,e)}e=r(u)}}function w(t){if(g=!1,x(t),!m)if(null!==r(c))m=!0,I(S);else{var e=r(u);null!==e&&L(w,e.startTime-t)}}function S(t,n){m=!1,g&&(g=!1,y(_),_=-1),p=!0;var o=d;try{for(x(n),f=r(c);null!==f&&(!(f.expirationTime>n)||t&&!M());){var a=f.callback;if("function"==typeof a){f.callback=null,d=f.priorityLevel;var s=a(f.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?f.callback=s:f===r(c)&&i(c),x(n)}else i(c);f=r(c)}if(null!==f)var l=!0;else{var h=r(u);null!==h&&L(w,h.startTime-n),l=!1}return l}finally{f=null,d=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var O,k=!1,E=null,_=-1,A=5,P=-1;function M(){return!(e.unstable_now()-P<A)}function C(){if(null!==E){var t=e.unstable_now();P=t;var n=!0;try{n=E(!0,t)}finally{n?O():(k=!1,E=null)}}else k=!1}if("function"==typeof b)O=function(){b(C)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,j=T.port2;T.port1.onmessage=C,O=function(){j.postMessage(null)}}else O=function(){v(C,0)};function I(t){E=t,k||(k=!0,O())}function L(t,n){_=v((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,I(S))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(c)},e.unstable_next=function(t){switch(d){case 1:case 2:case 3:var e=3;break;default:e=d}var n=d;d=e;try{return t()}finally{d=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=d;d=t;try{return e()}finally{d=n}},e.unstable_scheduleCallback=function(t,i,o){var a=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,t){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return t={id:h++,callback:i,priorityLevel:t,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(t.sortIndex=o,n(u,t),null===r(c)&&t===r(u)&&(g?(y(_),_=-1):g=!0,L(w,o-a))):(t.sortIndex=s,n(c,t),m||p||(m=!0,I(S))),t},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(t){var e=d;return function(){var n=d;d=e;try{return t.apply(this,arguments)}finally{d=n}}}},7588:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549)("forEac
25h",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(u)return i(u,this,t);var e=l(this),n=0;o(e,(function(e){t(e,n++)}),{IS_RECORD:!0})}})},7743:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{race:function(t){var e=this,n=a.f(e),r=n.reject,c=s((function(){var a=o(e.resolve);l(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},7860:(t,e,n)=>{"use strict";var r=n(82839);t.exports=/web0s(?!.*chrome)/i.test(r)},8872:(t,e,n)=>{"use strict";n(18237)},9325:(t,e,n)=>{var r=n(34840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},9539:(t,e,n)=>{"use strict";var r=n(69565),i=n(28551),o=n(55966);t.exports=function(t,e,n){var a,s;i(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=r(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return i(a),n}},10124:(t,e,n)=>{var r=n(9325);t.exports=function(){return r.Date.now()}},10134:(t,e,n)=>{"use strict";n.d(e,{GP:()=>et});const r={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 i(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({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:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,i=n?.width?String(n.width):e;r=t.formattingValues[i]||t.formattingValues[e]}else{const e=t.defaultWidth,i=n?.width?String(n.width):t.defaultWidth;r=t.values[i]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function l(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;const a=o[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n;return}(s,(t=>t.test(a))):function(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n;return}(s,(t=>t.test(a)));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:e.slice(a.length)}}}var c;const u={code:"en-US",formatDistance:(t,e,n)=>{let i;const o=r[t];return i="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:(t,e,n,r)=>a[t],localize:{ordinalNumber:(t,e)=>{const 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:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:s({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:s({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","Frid
25ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({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"})},match:{ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const n=t.match(c.matchPattern);if(!n)return null;const r=n[0],i=t.match(c.parsePattern);if(!i)return null;let o=c.valueCallback?c.valueCallback(i[0]):i[0];return o=e.valueCallback?e.valueCallback(o):o,{value:o,rest:t.slice(r.length)}}),era:l({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:l({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:t=>t+1}),month:l({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:l({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:l({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};let h={};function f(){return h}var d=n(29407);function p(t){const e=(0,d.a)(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}var m=n(5305),g=n(61501),v=n(6463);function y(t,e,n){const[r,i]=(0,m.x)(n?.in,t,e),o=(0,v.o)(r),a=(0,v.o)(i),s=+o-p(o),l=+a-p(a);return Math.round((s-l)/g.w4)}function b(t,e){const n=(0,d.a)(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function x(t,e){const n=(0,d.a)(t,e?.in);return y(n,b(n))+1}function w(t,e){const n=f(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=(0,d.a)(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function S(t,e){return w(t,{...e,weekStartsOn:1})}var O=n(43329);function k(t,e){const n=(0,d.a)(t,e?.in),r=n.getFullYear(),i=(0,O.w)(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=S(i),a=(0,O.w)(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=S(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function E(t,e){const n=k(t,e),r=(0,O.w)(e?.in||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),S(r)}function _(t,e){const n=(0,d.a)(t,e?.in),r=+S(n)-+E(n);return Math.round(r/g.my)+1}function A(t,e){const n=(0,d.a)(t,e?.in),r=n.getFullYear(),i=f(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=(0,O.w
vendor: 5,745 bytes, line 25
25)(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=w(a,e),l=(0,O.w)(e?.in||t,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=w(l,e);return+n>=+s?r+1:+n>=+c?r:r-1}function P(t,e){const n=f(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=A(t,e),o=(0,O.w)(e?.in||t,0);o.setFullYear(i,0,r),o.setHours(0,0,0,0);return w(o,e)}function M(t,e){const n=(0,d.a)(t,e?.in),r=+w(n,e)-+P(n,e);return Math.round(r/g.my)+1}function C(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const T={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return C("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):C(n+1,2)},d:(t,e)=>C(t.getDate(),e.length),a(t,e){const n=t.getHours()/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:(t,e)=>C(t.getHours()%12||12,e.length),H:(t,e)=>C(t.getHours(),e.length),m:(t,e)=>C(t.getMinutes(),e.length),s:(t,e)=>C(t.getSeconds(),e.length),S(t,e){const n=e.length,r=t.getMilliseconds();return C(Math.trunc(r*Math.pow(10,n-3)),e.length)}},j="midnight",I="noon",L="morning",D="afternoon",R="evening",N="night",F={G:function(t,e,n){const r=t.getFullYear()>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){const e=t.getFullYear(),r=e>0?e:1-e;return n.ordinalNumber(r,{unit:"year"})}return T.y(t,e)},Y:function(t,e,n,r){const i=A(t,r),o=i>0?i:1-i;if("YY"===e){return C(o%100,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):C(o,e.length)},R:function(t,e){return C(k(t),e.length)},u:function(t,e){return C(t.getFullYear(),e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return C(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){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return C(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){const r=t.getMonth();switch(e){case"M":case"MM":return T.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){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return C(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){const i=M(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):C(i,e.length)},I:function(t,e,n){const r=_(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):C(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):T.d(t,e)},D:function(t,e,n){const r=x(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):C(r,e.length)},E:function(t,e,n){const r=t.getDay();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){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return C(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return C(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return C(i,e.length);case"io":return n.ordinalNumber(i,{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){const r=t.getHours()/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){const r=t.getHours();let i;switch(i=12===r?I:0===r?j:r/12>
25=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(i=r>=17?R:r>=12?D:r>=4?L:N,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return T.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):T.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):C(r,e.length)},k:function(t,e,n){let r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):C(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):T.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):T.s(t,e)},S:function(t,e){return T.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return z(r);case"XXXX":case"XX":return H(r);default:return H(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return z(r);case"xxxx":case"xx":return H(r);default:return H(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+B(r,":");default:return"GMT"+H(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+B(r,":");default:return"GMT"+H(r,":")}},t:function(t,e,n){return C(Math.trunc(+t/1e3),e.length)},T:function(t,e,n){return C(+t,e.length)}};function B(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+C(o,2)}function z(t,e){if(t%60==0){return(t>0?"-":"+")+C(Math.abs(t)/60,2)}return H(t,e)}function H(t,e=""){const n=t>0?"-":"+",r=Math.abs(t);return n+C(Math.trunc(r/60),2)+e+C(r%60,2)}const V=(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"})}},W=(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"})}},U={p:W,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return V(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"})}return o.replace("{{date}}",V(r,e)).replace("{{time}}",W(i,e))}},$=/^D+$/,q=/^Y+$/,Y=["D","DD","YY","YYYY"];function K(t){return t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t)}function X(t){return!(!K(t)&&"number"!=typeof t||isNaN(+(0,d.a)(t)))}const G=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Q=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J=/^'([^]*?)'?$/,Z=/''/g,tt=/[a-zA-Z]/;function et(t,e,n){const r=f(),i=n?.locale??r.locale??u,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=(0,d.a)(t,n?.in);if(!X(s))throw new RangeError("Invalid time value");let l=e.match(Q).map((t=>{const e=t[0];if("p"===e||"P"===e){return(0,U[e])(t,i.formatLong)}return t})).join("").match(G).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:nt(t)};if(F[e])return{isToken:!0,value:t};if(e.match(tt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;(!n?.useAdditionalWeekYearTokens&&function(t){return q.test(t)}(o)||!n?.useAdditionalDayOfYearTokens&&function(t){return $.test(t)}(o))&&function(t,e,n){const r=function(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,n);if(console.warn(r),Y.includes(t))throw new RangeError(r)}(o,e,String(t));return(0,F[o[0]])(s,o,i.localize,c)})).join("")}function nt(t){const e=t.match(J);return e?e[1].replace(Z,"'"):t}},10287:(t,e,n)=>{"use strict";n(46518)({target:"Object",stat:!0},{setPrototypeOf:n(52967)})},10298:(t,e,n)=>{"use strict";var r=n(22195),i=n(25397),o=n(38480).f,a=n(67680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"===r(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(i(t))}},10350:(t,e,n)=>{"use strict";var r=n(43724),i=n(39297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},10392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},10436:(t,e,n)=>{"use strict";var r,i,o,a,s=n(46518),l=n(96395),c=n(38574),u=n(44576),h=n(19167),f=n(69565),d=n(36840),p=n(52967),m=n(10687),g=n(87633),v=n(79306),y=n(94901),b=n(20034),x=n(90679),w=n(2293),S=n(59225).set,O=n(91955),k=n(90757),E=n(1103),_=n(18265),A=n(91181),P=n(80550),M=n(10916),C=n(36043),T="Promise",j=M.CONSTRUCTOR,I=M.REJECTION_EVENT,L=M.SUBCLASSING,D=A.getterFor(T),R=A.set,N=P&&P.prototype,F=P,B=N,z=u.TypeError,H=u.document,V=u.process,W=C.f,U=W,$=!!(H&&H.createEvent&&u.dispatchEvent),q="unhandledrejection",Y=function(t){var e;return!(!b(t)||!y(e=t.then))&&e},K=function(t,e){var n,r,i,o=e.value,a=1===e.state,s=a?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(a||(2===e.rejection&&Z(e),e.rejection=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),i=!0)),n===t.promise?c(new z("Promise-chain cycle")):(r=Y(n))?f(r,n,l,c):l(n)):c(o)}catch(t){u&&!i&&u.exit(),c(t)}},X=function(t,e){t.notified||(t.notified=!0,O((function(){for(var n,r=t.reactions;n=r.get();)K(n,t);t.notified=!1,e&&!t.rejection&&Q(t)})))},G=function(t,e,n){var r,i;$?((r=H.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},!I&&(i=u["on"+t])?i(r):t===q&&k("Unhandled promise rejection",n)},Q=function(t){f(S,u,(function(){var e,n=t.facade,r=t.value;if(J(t)&&(e=E((function(){c?V.emit("unhandledRejection",r,n):G(q,n,r)})),t.rejection=c||J(t)?2:1,e.error))throw e.value}))},J=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){f(S,u,(function(){var e=t.facade;c?V.emit("rejectionHandled",e):G("rejectionhandled",e,t.value)}))},tt=function(t,e,n){return function(r){t(e,r,n)}},et=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,X(t,!0))},nt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);
25try{if(t.facade===e)throw new z("Promise can't be resolved itself");var r=Y(e);r?O((function(){var n={done:!1};try{f(r,e,tt(nt,n,t),tt(et,n,t))}catch(e){et(n,e,t)}})):(t.value=e,t.state=1,X(t,!1))}catch(e){et({done:!1},e,t)}}};if(j&&(B=(F=function(t){x(this,B),v(t),f(r,this);var e=D(this);try{t(tt(nt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(r=function(t){R(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=d(B,"then",(function(t,e){var n=D(this),r=W(w(this,F));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=c?V.domain:void 0,0===n.state?n.reactions.add(r):O((function(){K(r,n)})),r.promise})),i=function(){var t=new r,e=D(t);this.promise=t,this.resolve=tt(nt,e),this.reject=tt(et,e)},C.f=W=function(t){return t===F||t===o?new i(t):U(t)},!l&&y(P)&&N!==Object.prototype)){a=N.then,L||d(N,"then",(function(t,e){var n=this;return new F((function(t,e){f(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete N.constructor}catch(t){}p&&p(N,B)}s({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:F}),o=h.Promise,m(F,T,!1,!0),g(T)},10687:(t,e,n)=>{"use strict";var r=n(24913).f,i=n(39297),o=n(78227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,o)&&r(t,o,{configurable:!0,value:e})}},10757:(t,e,n)=>{"use strict";var r=n(97751),i=n(94901),o=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},10776:(t,e,n)=>{var r=n(30756),i=n(95950);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},10916:(t,e,n)=>{"use strict";var r=n(44576),i=n(80550),o=n(94901),a=n(92796),s=n(33706),l=n(78227),c=n(84215),u=n(96395),h=n(39519),f=i&&i.prototype,d=l("species"),p=!1,m=o(r.PromiseRejectionEvent),g=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===h)return!0;if(u&&(!f.catch||!f.finally))return!0;if(!h||h<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))};if((n.constructor={})[d]=r,!(p=n.then((function(){}))instanceof r))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||m)}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:p}},11056:(t,e,n)=>{"use strict";var r=n(24913).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},11331:(t,e,n)=>{var r=n(72552),i=n(28879),o=n(40346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},11509:(t,e,n)=>{"use strict";n.d(e,{i:()=>c});const r=Math.PI,i=2*r,o=1e-6,a=i-o;function s(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class l{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?s:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return s;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,i,a){if(t=+t,e=+e,n=+n,i=+i,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,c=n-t,u=i-e,h=s-t,f=l-e,d=h*h+f*f;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>o)if(Math.abs(f*c-u*h)>o&&a){let p=n-s,m=i-l,g=c*c+u*u,v=p*p+m*m,y=Math.sqrt(g),b=Math.sqrt(d),x=a*Math.tan((r-Math.acos((g+d-v)/(2*y*b)))/2),w=x/b,S=x/y;Math.abs(w-1)>o&&this._append`L${t+w*h},${e+w*f}`,this._append`A${a},${a},0,0,${+(f*p>h*m)},${this._x1=t+S*c},${this._y1=e+S*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,s,l,c){if(t=+t,e=+e,c=!!c,(n=+n)<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(s),h=n*Math.sin(s),f=t+u,d=e+h,p=1^c,m=c?s-l:l-s;null===this._x1?this._append`M${f},${d}`:(Math.abs(this._x1-f)>o||Math.abs(this._y1-d)>o)&&this._append`L${f},${d}`,n&&(m<0&&(m=m%i+i),m>a?this._append`A${n},${n},0,1,${p}
25,${t-u},${e-h}A${n},${n},0,1,${p},${this._x1=f},${this._y1=d}`:m>o&&this._append`A${n},${n},0,${+(m>=r)},${p},${this._x1=t+n*Math.cos(l)},${this._y1=e+n*Math.sin(l)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new l(e)}l.prototype},11561:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=!0,i="Invariant failed";function o(t,e){if(!t){if(r)throw new Error(i);var n="function"==typeof e?e():e,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},11580:(t,e,n)=>{"use strict";n.d(e,{p:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}},11741:(t,e,n)=>{var r=n(98023);t.exports=function(t){return r(t)&&t!=+t}},12211:(t,e,n)=>{"use strict";var r=n(79039);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},12217:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,h:()=>c});class r extends Map{constructor(t,e=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(i(this,t))}has(t){return super.has(i(this,t))}set(t,e){return super.set(o(this,t),e)}delete(t){return super.delete(a(this,t))}}Set;function i({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function o({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function a({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function s(t){return null!==t&&"object"==typeof t?t.valueOf():t}var l=n(99065);const c=Symbol("implicit");function u(){var t=new r,e=[],n=[],i=c;function o(r){let o=t.get(r);if(void 0===o){if(i!==c)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return u(e,n).unknown(i)},l.C.apply(o,arguments),o}},12507:(t,e,n)=>{var r=n(28754),i=n(49698),o=n(63912),a=n(13222);t.exports=function(t){return function(e){e=a(e);var n=i(e)?o(e):void 0,s=n?n[0]:e.charAt(0),l=n?r(n,1).join(""):e.slice(1);return s[t]()+l}}},12532:(t,e,n)=>{"use strict";n.d(e,{g:()=>u});var r=n(97018),i=n(63036),o=n(94501);function a(t){return a="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},a(t)}function s(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 l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){var r;return r=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){var e=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,s=t.legendContent,c=(0,o.BU)(e,r.s);if(!c)return null;var u,h=r.s.defaultProps,f=void 0!==h?l(l({},h),c.props):{};return u=c.props&&c.props.payload?c.props&&c.props.payload:"children"===s?(n||[]).reduce((function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map((function(t){return{type:c.props.iconType||n.props.legendT
25ype,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,n=e.type.defaultProps,r=void 0!==n?l(l({},n),e.props):{},o=r.dataKey,a=r.name,s=r.legendType;return{inactive:r.hide,dataKey:o,type:f.iconType||s||"square",color:(0,i.Ps)(e),value:a||o,payload:r}})),l(l(l({},f),r.s.getWithHeight(c,a)),{},{payload:u,item:c})}},12651:(t,e,n)=>{var r=n(74218);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},12749:(t,e,n)=>{var r=n(81042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},13222:(t,e,n)=>{var r=n(77556);t.exports=function(t){return null==t?"":r(t)}},13579:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549)("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(u)return i(u,this,t);var e=l(this),n=0;return o(e,(function(e,r){if(t(e,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},13925:(t,e,n)=>{"use strict";var r=n(20034);t.exports=function(t){return r(t)||null===t}},14040:(t,e,n)=>{"use strict";n.d(e,{IZ:()=>c,Kg:()=>s,yy:()=>f});n(69843),n(96540),n(1882);function r(t){return r="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},r(t)}function i(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 o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){var i;return i=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==r(i)?i:i+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=Math.PI/180,l=function(t){return 180*t/Math.PI},c=function(t,e,n,r){return{x:t+Math.cos(-s*r)*n,y:e+Math.sin(-s*r)*n}},u=function(t,e){var n,r,i,o,a,s,c=t.x,u=t.y,h=e.cx,f=e.cy,d=(r={x:h,y:f},i=(n={x:c,y:u}).x,o=n.y,a=r.x,s=r.y,Math.sqrt(Math.pow(i-a,2)+Math.pow(o-s,2)));if(d<=0)return{radius:d};var p=(c-h)/d,m=Math.acos(p);return u>f&&(m=2*Math.PI-m),{radius:d,angle:l(m),angleInRadian:m}},h=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},f=function(t,e){var n=t.x,r=t.y,i=u({x:n,y:r},e),a=i.radius,s=i.angle,l=e.innerRadius,c=e.outerRadius;if(a<l||a>c)return!1;if(0===a)return!0;var f,d=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),p=d.startAngle,m=d.endAngle,g=s;if(p<=m){for(;g>m;)g-=360;for(;g<p;)g+=360;f=g>=p&&g<=m}else{for(;g>p;)g-=360;for(;g<m;)g+=360;f=g>=m&&g<=p}return f?o(o({},e),{},{radius:a,angle:h(g,e)}):null}},14248:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},14528:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},14601:(t,e,n)=>{"use strict";var r=n(97751),i=n(39297),o=n(66699),a=n(1625),s=n(52967),l=n(77740),c=n(11056),u=n(23167),h=n(32603),f=n(77584),d=n(80747),p=n(43724),m=n(96395);t.exports=function(t,e,n,g){var v="stackTraceLimit",y=g?2:1,b=t.split("."),x=b[b.length-1],w=r.apply(null,b);if(w){var S=w.prototype;if(!m&&i(S,"cause")&&delete S.cause,!n)return w;var O=r("Error"),k=e((function(t,e){var n=h(g?e:t,void 0),r=g?new w(t):new w;return void 0!==n&&o(r,"message",n),d(r,k,r.stack,2),this&&a(S,this)&&u(r,this,k),arguments.length>y&&f(r,arguments[y]),r}));if(k.prototype=S,"Error"!==x?s?s(k,O):l(k,O,{name:!0}):p&&v in w&&(c(k,w,v),c(k,w,"prepareStackTrace")),l(k,w),!m)try{S.name!==x&&o(S,"name",x),S.constructor=k}catch(t){}return k}}},15079:(t,e,n)=>{"use strict";n.d(e,{yp:()=>N,GG:()=>U,NE:()=>F,nZ:()=>
25B,xQ:()=>z});var r=n(96540),i=n(1882),o=n.n(i),a=n(11331),s=n.n(a),l=n(53812),c=n.n(l),u=n(2404),h=n.n(u),f=n(34723),d=n(34164),p=n(16473),m=n(94501);function g(t){return g="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},g(t)}function v(){return v=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v.apply(this,arguments)}function y(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(t,e)}(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.")}()}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function x(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 w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){var r;return r=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==g(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var O=function(t,e,n,r,i){var o,a=n-r;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+n,",").concat(e),o+="L ".concat(t+n-a/2,",").concat(e+i),o+="L ".concat(t+n-a/2-r,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},k={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},E=function(t){var e=w(w({},k),t),n=(0,r.useRef)(),i=y((0,r.useState)(-1),2),o=i[0],a=i[1];(0,r.useEffect)((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&a(t)}catch(t){}}),[]);var s=e.x,l=e.y,c=e.upperWidth,u=e.lowerWidth,h=e.height,f=e.className,g=e.animationEasing,b=e.animationDuration,x=e.animationBegin,S=e.isUpdateAnimationActive;if(s!==+s||l!==+l||c!==+c||u!==+u||h!==+h||0===c&&0===u||0===h)return null;var E=(0,d.A)("recharts-trapezoid",f);return S?r.createElement(p.Ay,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:l},to:{upperWidth:c,lowerWidth:u,height:h,x:s,y:l},duration:b,animationEasing:g,isActive:S},(function(t){var i=t.upperWidth,a=t.lowerWidth,s=t.height,l=t.x,c=t.y;return r.createElement(p.Ay,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:b,easing:g},r.createElement("path",v({},(0,m.J9)(e,!0),{className:E,d:O(l,c,i,a,s),ref:n})))})):r.createElement("g",null,r.createElement("path",v({},(0,m.J9)(e,!0),{className:E,d:O(s,l,c,u,h)})))},_=n(58522),A=n(86069),P=n(90706),M=["option","shapeType","propTransformer","activeClassName","isActive"];function C(t){return C="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},C(t)}function T(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function j(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 I(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?j(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function L(t,e,n){var r;return r=function(t,e){if("object"!=C(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==C(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(t,e){return I(I({},e),t)}function R(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return r.createElement(f.M,n);case"trapezoid":return r.createElement(E,n);case"sector":return r.createElement(_.h,n);case"symbols":if(function(t){return"symbols"===t}(e))return r.createElement(P.i,n);break;default:return null}}function N(t){var e,n=t.option,i=t.shapeType,a=t.propTransformer,l=void 0===a?D:a,u=t.activeClassName,h=void 0===u?"recharts-active-shape":u,f=t.isActive,d=T(t,M);if((0,r.isValidElement)(n))e=(0,r.cloneElement)(n,I(I({},d),function(t){return(0,r.isValidElement)(t)?t.props:t}(n)));else if(o()(n))e=n(d);else if(s()(n)&&!c()(n)){var p=l(n,d);e=r.createElement(R,{shapeType:i,elementProps:p})}else{var m=d;e=r.createElement(R,{shapeType:i,elementProps:m})}return f?r.createElement(A.W,{className:h},e):e}function F(t,e){return null!=e&&"trapezoids"in t.props}function B(t,e){return null!=e&&"sectors"in t.props}function z(t,e){return null!=e&&"points"in t.props}function H(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function V(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function W(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function U(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=function(t,e){var n;return F(t,e)?n="trapezoids":B(t,e)?n="sectors":z(t,e)&&(n="points"),n}(n,e),o=function(t,e){var n,r;return F(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:B(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:z(t,e)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=h()(o,t),s=n.props[i].filter((function(t){var r=function(t,e){var n;return F(t,e)?n=H:B(t,e)?n=V:z(t,e)&&(n=W),n}(n,e);return r(t,e)})),l=n.props[i].indexOf(s[s.length-1]);return a&&r===l}));return r.indexOf(a[a.length-1])}},15086:(t,e,n)=>{"use strict";var r=n(46518),i=n(59213).some;r({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},15287:(t,e)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||p}function y(){}function b(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},v.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},y.prototype=v.prototype;var x=b.prototype=new y;x.constructor=b,m(x,v.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(t,e,r){var i,o={},a=null,s=null;
vendor: 3,099 bytes, line 25
25if(null!=e)for(i in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)S.call(e,i)&&!k.hasOwnProperty(i)&&(o[i]=e[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:n,type:t,key:a,ref:s,props:o,_owner:O.current}}function _(t){return"object"==typeof t&&null!==t&&t.$$typeof===n}var A=/\/+/g;function P(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,(function(t){return e[t]}))}(""+t.key):e.toString(36)}function M(t,e,i,o,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=t),t=""===o?"."+P(l,0):o,w(a)?(i="",null!=t&&(i=t.replace(A,"$&/")+"/"),M(a,e,i,"",(function(t){return t}))):null!=a&&(_(a)&&(a=function(t,e){return{$$typeof:n,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(A,"$&/")+"/")+t)),e.push(a)),1;if(l=0,o=""===o?".":o+":",w(t))for(var c=0;c<t.length;c++){var u=o+P(s=t[c],c);l+=M(s,e,i,u,a)}else if(u=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=d&&t[d]||t["@@iterator"])?t:null}(t),"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=M(s=s.value,e,i,u=o+P(s,c++),a);else if("object"===s)throw e=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return l}function C(t,e,n){if(null==t)return t;var r=[],i=0;return M(t,r,"","",(function(t){return e.call(n,t,i++)})),r}function T(t){if(-1===t._status){var e=t._result;(e=e()).then((function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)}),(function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)})),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var j={current:null},I={transition:null},L={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:I,ReactCurrentOwner:O};function D(){throw Error("act(...) is not supported in production builds of React.")}e.Children={map:C,forEach:function(t,e,n){C(t,(function(){e.apply(this,arguments)}),n)},count:function(t){var e=0;return C(t,(function(){e++})),e},toArray:function(t){return C(t,(function(t){return t}))||[]},only:function(t){if(!_(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},e.Component=v,e.Fragment=i,e.Profiler=a,e.PureComponent=b,e.StrictMode=o,e.Suspense=u,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,e.act=D,e.cloneElement=function(t,e,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=m({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=e){if(void 0!==e.ref&&(a=e.ref,s=O.current),void 0!==e.ke
25y&&(o=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)S.call(e,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:t.type,key:o,ref:a,props:i,_owner:s}},e.createContext=function(t){return(t={$$typeof:l,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},e.createElement=E,e.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:c,render:t}},e.isValidElement=_,e.lazy=function(t){return{$$typeof:f,_payload:{_status:-1,_result:t},_init:T}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.startTransition=function(t){var e=I.transition;I.transition={};try{t()}finally{I.transition=e}},e.unstable_act=D,e.useCallback=function(t,e){return j.current.useCallback(t,e)},e.useContext=function(t){return j.current.useContext(t)},e.useDebugValue=function(){},e.useDeferredValue=function(t){return j.current.useDeferredValue(t)},e.useEffect=function(t,e){return j.current.useEffect(t,e)},e.useId=function(){return j.current.useId()},e.useImperativeHandle=function(t,e,n){return j.current.useImperativeHandle(t,e,n)},e.useInsertionEffect=function(t,e){return j.current.useInsertionEffect(t,e)},e.useLayoutEffect=function(t,e){return j.current.useLayoutEffect(t,e)},e.useMemo=function(t,e){return j.current.useMemo(t,e)},e.useReducer=function(t,e,n){return j.current.useReducer(t,e,n)},e.useRef=function(t){return j.current.useRef(t)},e.useState=function(t){return j.current.useState(t)},e.useSyncExternalStore=function(t,e,n){return j.current.useSyncExternalStore(t,e,n)},e.useTransition=function(){return j.current.useTransition()},e.version="18.3.1"},15325:(t,e,n)=>{var r=n(96131);t.exports=function(t,e){return!!(null==t?0:t.length)&&r(t,e,0)>-1}},15389:(t,e,n)=>{var r=n(93663),i=n(87978),o=n(83488),a=n(56449),s=n(50583);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},15472:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(10687);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},15575:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},15652:(t,e,n)=>{"use strict";var r=n(79039);t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},16034:(t,e,n)=>{"use strict";var r=n(46518),i=n(32357).values;r({target:"Object",stat:!0},{values:function(t){return i(t)}})},16193:(t,e,n)=>{"use strict";var r=n(79504),i=Error,o=r("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=o(t,s,"");return t}},16280:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(18745),a=n(14601),s="WebAssembly",l=i[s],c=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},16349:(t,e,n)=>{"use strict";function r(t){return t+.5|0}n.d(e,{Ay:()=>Pa});const i=(t,e,n)=>Math.max(Math.min(t,n),e);function o(t){return i(r(2.55*t),0,255)}function a(t){return i(r(255*t),0,255)}function s(t){return i(r(t/2.55)/100,0,1)}
vendor: 16,143 bytes, line 25
25function l(t){return i(r(100*t),0,100)}const c={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},u=[..."0123456789ABCDEF"],h=t=>u[15&t],f=t=>u[(240&t)>>4]+u[15&t],d=t=>(240&t)>>4==(15&t);function p(t){var e=(t=>d(t.r)&&d(t.g)&&d(t.b)&&d(t.a))(t)?h:f;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const m=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function g(t,e,n){const r=e*Math.min(n,1-n),i=(e,i=(e+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function v(t,e,n){const r=(r,i=(r+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function y(t,e,n){const r=g(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function b(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=function(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}(e,n,r,c,i),s=60*s+.5),[0|s,l||0,a]}function x(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(a)}function w(t,e,n){return x(g,t,e,n)}function S(t){return(t%360+360)%360}function O(t){const e=m.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?o(+e[5]):a(+e[5]));const i=S(+e[2]),s=+e[3]/100,l=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return x(y,t,e,n)}(i,s,l):"hsv"===e[1]?function(t,e,n){return x(v,t,e,n)}(i,s,l):w(i,s,l),{r:n[0],g:n[1],b:n[2],a:r}}const k={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},E={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let _;function A(t){_||(_=function(){const t={},e=Object.keys(E),n=Object.keys(k);let r,i,o,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,k[o]);o=parseInt(E[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),_.transparent=[0,0,0,0]);const e=_[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const P=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const M=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,C=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function T(t,e,n){if(t){let r=b(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=w(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function j(t,e){return t?Object.assign(e||{},t):t}function I(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=a(t[3]))):(e=j(t,{r:0,g:0,b:0,a:1})).a=a(e.a),e}function L(t){return"r"===t.charAt(0)?function(t){const e=P.exec(t);let n,r,a,s=255;if(e){if(e[7]!==n){const t=+e[7];s=e[8]?o(t):i(255*t,0,255)}return n=+e[1],r=+e[3],a=+e[5],n=255&(e[2]?o(n):i(n,0,255)),r=255&(e[4]?o(r):i(r,0,255)),a=255&(e[6]?o(a):i(a,0,255)),{r:n,g:r,b:a,a:s}}}(t):O(t)}class D{constructor(t){if(t instanceof D)return t;const e=typeof t;let n;var r,i,o;"object"===e?n=I(t):"string"===e&&(o=(r=t).length,"#"===r[0]&&(4===o||5===o?i={r:255&17*c[r[1]],g:255&17*c[r[2]],b:255&17*c[r[3]],a:5===o?17*c[r[4]]:255}:7!==o&&9!==o||(i={r:c[r[1]]<<4|c[r[2]],g:c[r[3]]<<4|c[r[4]],b:c[r[5]]<<4|c[r[6]],a:9===o?c[r[7]]<<4|c[r[8]]:255})),n=i||A(t)||L(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=j(this._rgb);return t&&(t.a=s(t.a)),t}set rgb(t){this._rgb=I(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${s(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?p(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=b(t),n=e[0],r=l(e[1]),i=l(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${s(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let i;const o=e===i?.5:e,a=2*o-1,s=n.a-r.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=C(s(t.r)),i=C(s(t.g)),o=C(s(t.b));return{r:a(M(r+n*(C(s(e.r))-r))),g:a(M(i+n*(C(s(e.g))-i))),b:a(M(o+n*(C(s(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new D(this.rgb)}alpha(t){return this._rgb.a=a(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=r(.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 T(this._rgb,2,t),this}darken(t){return T(this._rgb,2,-t),this}saturate(t){return T(this._rgb,1,t),this}desaturate(t){return T(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=b(t);n[0]=S(n[0]+e),n=w(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function R(){}const N=(()=>{let t=0;return()=>t++})();function F(t){return null==t}function B(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 z(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function H(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function V(t,e){return H(t)?t:e}function W(t,e){return void 0===t?e:t}const U=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function $(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function q(t,e,n,r){let i,o,a;if(B(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(z(t))for(a=Object.keys(t),o=a.length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])}function Y(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function K(t){if(B(t))return t.map(K);if(z(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=K(t[n[i]]);return e}return t}function X(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function G(t,e,n,r){if(!X(t))return;const i=e[t],o=n[t];z(i)&&z(o)?Q(i,o,r):e[t]=K(o)}function Q(t,e,n){const r=B(e)?e:[e],i=r.length;if(!z(t))return t;const o=(n=n||{}).merger||G;let a;for(let e=0;e<i;++e){if(a=r[e],!z(a))continue;const i=Object.keys(a);for(let e=0,r=i.length;e<r;++e)o(i[e],t,a,n)}return t}function J(t,e){return Q(t,e,{merger:Z})}function Z(t,e,n){if(!X(t))return;const r=e[t],i=n[t];z(r)&&z(i)?J(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=K(i))}const tt={"":t=>t,x:t=>t.x,y:t=>t.y};function et(t,e){const n=tt[e]||(tt[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 nt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const rt=t=>void 0!==t,it=t=>"function"==typeof t,ot=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const at=Math.PI,st=2*at,lt=st+at,ct=Number.POSITIVE_INFINITY,ut=at/180,ht=at/2,ft=at/4,dt=2*at/3,pt=Math.log10,mt=Math.sign;function gt(t,e,n){return Math.abs(t-e)<n}function vt(t){const e=Math.round(t);t=gt(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(pt(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function yt(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function bt(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function xt(t){return t*(at/180)}function wt(t){return t*(180/at)}function St(t){if(!H(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Ot(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*at&&(o+=st),{angle:o,distance:i}}function kt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Et(t,e){return(t-e+lt)%st-at}function _t(t){return(t%st+st)%st}function At(t,e,n,r){const i=_t(t),o=_t(e),a=_t(n),s=_t(o-i),l=_t(a-i),c=_t(i-o),u=_t(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function Pt(t,e,n){return Math.max(e,Math.min(n,t))}function Mt(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function Ct(t,e,n){n=n||(n=>t[n]<e);let r,i=t.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const Tt=(t,e,n,r)=>Ct(t,n,r?r=>{const i=t[r][e];return i<n||i===n&&t[r+1][e]===n}:r=>t[r][e]<n),jt=(t,e,n)=>Ct(t,n,(r=>t[r][e]>=n));const It=["push","pop","shift","splice","unshift"];function Lt(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(It.forEach((e=>{delete t[e]})),delete t._chartjs)}function Dt(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Rt="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Nt(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Rt.call(window,(()=>{r=!1,t.apply(e,n)})))}}const Ft=t=>"start"===t?"left":"end"===t?"right":"center",Bt=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function zt(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:a,vScale:s,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=a.axis,{min:h,max:f,minDefined:d,maxDefined:p}=a.getUserBounds();if(d){if(i=Math.min(Tt(l,u,h).lo,n?r:Tt(e,u,a.getPixelForValue(h)).lo),c){const t=l.slice(0,i+1).reverse().findIndex((t=>!F(t[s.axis])));i-=Math.max(0,t)}i=Pt(i,0,r-1)}if(p){let t=Math.max(Tt(l,a.axis,f,!0).hi+1,n?0:Tt(e,u,a.getPixelForValue(f),!0).hi+1);if(c){const e=l.slice(t-1).findIndex((t=>!F(t[s.axis])));t+=Math.max(0,e)}o=Pt(t,i,r)-i}else o=r-i}return{start:i,count:o}}function Ht(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Vt=t=>0===t||1===t,Wt=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*st/n),Ut=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*st/n)+1,$t={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*ht),easeOutSine:t=>Math.sin(t*ht),easeInOutSine:t=>-.5*(Math.cos(at*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=>Vt(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=>Vt(t)?t:Wt(t,.075,.3),easeOutElastic:t=>Vt(t)?t:Ut(t,.075,.3),easeInOutElastic(t){const e=.1125;return Vt(t)?t:t<.5?.5*Wt(2*t,e,.45):.5+.5*Ut(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-$t.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*$t.easeInBounce(2*t):.5*$t.easeOutBounce(2*t-1)+.5};function qt(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Yt(t){return qt(t)?t:new D(t)}function Kt(t){return qt(t)?t:new D(t).saturate(.5).darken(.1).hexString()}const Xt=["x","y","borderWidth","radius","tension"],Gt=["color","borderColor","backgroundColor"];const Qt=new Map;function Jt(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=Qt.get(n);return r||(r=new Intl.NumberFormat(t,e),Qt.set(n,r)),r}(e,n).format(t)}const Zt={values:t=>B(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(i="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=pt(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Jt(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(pt(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?Zt.numeric.call(this,t,e,n):""}};var te={formatters:Zt};const ee=Object.create(null),ne=Object.create(null);function re(t,e){if(!e)return t;const n=e.split(".");for(let e=0,r=n.length;e<r;++e){const r=n[e];t=t[r]||(t[r]=Object.create(null))}return t}function ie(t,e,n){return"string"==typeof e?Q(re(t,e),n):Q(re(t,""),e)}class oe{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 3,242 bytes, line 25
25,this.hoverBackgroundColor=(t,e)=>Kt(e.backgroundColor),this.hoverBorderColor=(t,e)=>Kt(e.borderColor),this.hoverColor=(t,e)=>Kt(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 ie(this,t,e)}get(t){return re(this,t)}describe(t,e){return ie(ne,t,e)}override(t,e){return ie(ee,t,e)}route(t,e,n,r){const i=re(this,t),o=re(this,n),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[r];return z(t)?Object.assign({},e,t):W(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var ae=new oe({_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:Gt},numbers:{type:"number",properties:Xt}}),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:te.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 se(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function le(t,e,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,u,h,f;for(l=0;l<s;
vendor: 22,995 bytes, line 25
25l++)if(h=n[l],null==h||B(h)){if(B(h))for(c=0,u=h.length;c<u;c++)f=h[c],null==f||B(f)||(a=se(t,i,o,a,f))}else a=se(t,i,o,a,h);t.restore();const d=o.length/2;if(d>n.length){for(l=0;l<d;l++)delete i[o[l]];o.splice(0,d)}return a}function ce(t,e,n){const r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function ue(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function he(t,e,n,r){fe(t,e,n,r,null)}function fe(t,e,n,r,i){let o,a,s,l,c,u,h,f;const d=e.pointStyle,p=e.rotation,m=e.radius;let g=(p||0)*ut;if(d&&"object"==typeof d&&(o=d.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,r),t.rotate(g),t.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void t.restore();if(!(isNaN(m)||m<=0)){switch(t.beginPath(),d){default:i?t.ellipse(n,r,i/2,m,0,0,st):t.arc(n,r,m,0,st),t.closePath();break;case"triangle":u=i?i/2:m,t.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=dt,t.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=dt,t.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),t.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+ft)*l,h=Math.cos(g+ft)*(i?i/2-c:l),s=Math.sin(g+ft)*l,f=Math.sin(g+ft)*(i?i/2-c:l),t.arc(n-h,r-s,c,g-at,g-ht),t.arc(n+f,r-a,c,g-ht,g),t.arc(n+h,r+s,c,g,g+ht),t.arc(n-f,r+a,c,g+ht,g+at),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*m,u=i?i/2:l,t.rect(n-u,r-l,2*u,2*l);break}g+=ft;case"rectRot":h=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),t.moveTo(n-h,r-s),t.lineTo(n+f,r-a),t.lineTo(n+h,r+s),t.lineTo(n-f,r+a),t.closePath();break;case"crossRot":g+=ft;case"cross":h=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+f,r-a),t.lineTo(n-f,r+a);break;case"star":h=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+f,r-a),t.lineTo(n-f,r+a),g+=ft,h=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,f=Math.sin(g)*(i?i/2:m),t.moveTo(n-h,r-s),t.lineTo(n+h,r+s),t.moveTo(n+f,r-a),t.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function de(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function pe(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function me(t){t.restore()}function ge(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if("middle"===i){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===i!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function ve(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ye(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function be(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function xe(t,e,n,r,i,o={}){const a=B(e)?e:[e],s=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=i.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),F(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&be(t,o.backdrop),s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),F(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,r,o.maxWidth)),t.fillText(c,n,r,o.maxWidth),ye(t,n,r,c,o),r+=Number(i.lineHeight);t.restore()}function we(t,e){const{x:n,y:r,w:i,h:o,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*at,at,!0),t.lineTo(n,r+o-a.bottomLeft),t.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,at,ht,!0),t.lineTo(n+i-a.bottomRight,r+o),t.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,ht,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-ht,!0),t.lineTo(n+a.topLeft,r)}const Se=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Oe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ke(t,e){const n=(""+t).match(Se);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Ee(t,e){const n={},r=z(e),i=r?Object.keys(e):e,o=z(t)?r?n=>W(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of i)n[t]=+o(t)||0;return n}function _e(t){return Ee(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Ae(t){return Ee(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Pe(t){const e=_e(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Me(t,e){t=t||{},e=e||ae.font;let n=W(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=W(t.style,e.style);r&&!(""+r).match(Oe)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:W(t.family,e.family),lineHeight:ke(W(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:W(t.weight,e.weight),string:""};return i.string=function(t){return!t||F(t.size)||F(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function Ce(t,e,n,r){let i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(a=t[i],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&B(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function Te(t,e){return Object.assign(Object.create(t),e)}function je(t,e=[""],n,r,i=()=>t[0]){const o=n||t;void 0===r&&(r=We("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>je([n,...t],e,o,r)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>Ne(n,r,(()=>function(t,e,n,r){let i;for(const o of e)if(i=We(De(o,t),n),void 0!==i)return Re(t,i)?He(n,r,t,i):i}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ue(t).includes(e),ownKeys:t=>Ue(t),set(t,e,n){const r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function Ie(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Le(t,r),setContext:e=>Ie(t,e,n,r),override:i=>Ie(t.override(i),e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Ne(t,e,(()=>function(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=t;let s=r[e];it(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(o,a||r);s.delete(t),Re(t,l)&&(l=He(i._scopes,i,t,l));return l}(e,s,t,n));B(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(void 0!==o.index&&r(t))return e[o.index%e.length];if(z(e[0])){const n=e,r=i._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=He(r,i,t,l);e.push(Ie(n,o,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Re(e,s)&&(s=Ie(s,i,o&&o[e],a));return 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 Le(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:it(n)?n:()=>n,isIndexable:it(r)?r:()=>r}}const De=(t,e)=>t?t+nt(e):e,Re=(t,e)=>z(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Ne(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const r=n();return t[e]=r,r}function Fe(t,e,n){return it(t)?t(e,n):t}const Be=(t,e)=>!0===t?e:"string"==typeof t?et(e,t):void 0;function ze(t,e,n,r,i){for(const o of e){const e=Be(n,o);if(e){t.add(e);const o=Fe(e._fallback,n,i);if(void 0!==o&&o!==n&&o!==r)return o}else if(!1===e&&void 0!==r&&n!==r)return null}return!1}function He(t,e,n,r){const i=e._rootScopes,o=Fe(e._fallback,n,r),a=[...t,...i],s=new Set;s.add(r);let l=Ve(s,a,n,o||n,r);return null!==l&&((void 0===o||o===n||(l=Ve(s,a,o,l,r),null!==l))&&je(Array.from(s),[""],i,o,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];if(B(i)&&z(n))return n;return i||{}}(e,n,r))))}function Ve(t,e,n,r,i){for(;n;)n=ze(t,e,n,r,i);return n}function We(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Ue(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 $e(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={r:i.parse(et(u,o),c)};return a}const qe=Number.EPSILON||1e-14,Ye=(t,e)=>e<t.length&&!t[e].skip&&t[e],Ke=t=>"x"===t?"y":"x";function Xe(t,e,n,r){const i=t.skip?e:t,o=e,a=n.skip?e:n,s=kt(o,i),l=kt(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const h=r*c,f=r*u;return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}}function Ge(t,e="x"){const n=Ke(e),r=t.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=Ye(t,0);for(a=0;a<r;++a)if(s=l,l=c,c=Ye(t,a+1),l){if(c){const t=c[e]-l[e];i[a]=0!==t?(c[n]-l[n])/t:0}o[a]=s?c?mt(i[a-1])!==mt(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}!function(t,e,n){const r=t.length;let i,o,a,s,l,c=Ye(t,0);for(let u=0;u<r-1;++u)l=c,c=Ye(t,u+1),l&&c&&(gt(e[u],0,qe)?n[u]=n[u+1]=0:(i=n[u]/e[u],o=n[u+1]/e[u],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[u]=i*a*e[u],n[u+1]=o*a*e[u])))}(t,i,o),function(t,e,n="x"){const r=Ke(n),i=t.length;let o,a,s,l=Ye(t,0);for(let c=0;c<i;++c){if(a=s,s=l,l=Ye(t,c+1),!s)continue;const i=s[n],u=s[r];a&&(o=(i-a[n])/3,s[`cp1${n}`]=i-o,s[`cp1${r}`]=u-o*e[c]),l&&(o=(l[n]-i)/3,s[`cp2${n}`]=i+o,s[`cp2${r}`]=u+o*e[c])}}(t,o,e)}function Qe(t,e,n){return Math.max(Math.min(t,n),e)}function Je(t,e,n,r,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)Ge(t,i);else{let n=r?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)s=t[o],l=Xe(n,s,t[Math.min(o+1,a-(r?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,r,i,o,a,s=de(t[0],e);for(n=0,r=t.length;n<r;++n)a=o,o=s,s=n<r-1&&de(t[n+1],e),o&&(i=t[n],a&&(i.cp1x=Qe(i.cp1x,e.left,e.right),i.cp1y=Qe(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=Qe(i.cp2x,e.left,e.right),i.cp2y=Qe(i.cp2y,e.top,e.bottom)))}(t,n)}function Ze(){return"undefined"!=typeof window&&"undefined"!=typeof document}function tn(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function en(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}const nn=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const rn=["top","right","bottom","left"];function on(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=rn[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function an(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=nn(n),o="border-box"===i.boxSizing,a=on(i,"padding"),s=on(i,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,o,t.target))a=i,s=o;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),h=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:d,height:p}=e;return o&&(d-=a.width+s.width,p-=a.height+s.height),{x:Math.round((l-h)/d*n.width/r),y:Math.round((c-f)/p*n.height/r)}}const sn=t=>Math.round(10*t)/10;function ln(t,e,n,r){const i=nn(t),o=on(i,"margin"),a=en(i.maxWidth,t,"clientWidth")||ct,s=en(i.maxHeight,t,"clientHeight")||ct,l=function(t,e,n){let r,i;if(void 0===e||void 0===n){const o=t&&tn(t);if(o){const t=o.getBoundingClientRect(),a=nn(o),s=on(a,"border","width"),l=on(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=en(a.maxWidth,o,"clientWidth"),i=en(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||ct,maxHeight:i||ct}}(t,e,n);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const t=on(i,"border","width"),e=on(i,"padding");c-=e.width+t.width,u-=e.height+t.height}c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=sn(Math.min(c,a,l.maxWidth)),u=sn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=sn(c/2));return(void 0!==e||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=sn(Math.floor(u*r))),{width:c,height:u}}function cn(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const un=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Ze()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function hn(t,e){const n=function(t,e){return nn(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function fn(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function dn(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 pn(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=fn(t,i,n),s=fn(i,o,n),l=fn(o,e,n),c=fn(a,s,n),u=fn(s,l,n);return fn(c,u,n)}function mn(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 gn(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 vn(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function yn(t){return"angle"===t?{between:At,compare:Et,normalize:_t}:{between:Mt,compare:(t,e)=>t-e,normalize:t=>t}}function bn({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:i}}function xn(t,e,n){if(!n)return[t];const{property:r,start:i,end:o}=n,a=e.length,{compare:s,between:l,normalize:c}=yn(r),{start:u,end:h,loop:f,style:d}=function(t,e,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=yn(r),l=e.length;let c,u,{start:h,end:f,loop:d}=t;if(d){for(h+=l,f+=l,c=0,u=l;c<u&&a(s(e[h%l][r]),i,o);++c)h--,f--;h%=l,f%=l}return f<h&&(f+=l),{start:h,end:f,loop:d,style:t.style}}(t,e,n),p=[];let m,g,v,y=!1,b=null;const x=()=>y||l(i,v,m)&&0!==s(i,v),w=()=>!y||0===s(o,m)||l(o,v,m);for(let t=u,n=u;t<=h;++t)g=e[t%a],g.skip||(m=c(g[r]),m!==v&&(y=l(m,i,o),null===b&&x()&&(b=0===s(m,i)?t:n),null!==b&&w()&&(p.push(bn({start:b,end:t,loop:f,count:a,style:d})),b=null),n=t,v=m));return null!==b&&p.push(bn({start:b,end:h,loop:f,count:a,style:d})),p}function wn(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const o=xn(r[i],t.points,e);o.length&&n.push(...o)}return n}function Sn(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const i=t._chart.getContext(),o=On(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let u=o,h=e[0].start,f=h;function d(t,e,r,i){const o=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:r,style:i}),u=i,h=e%l)}}for(const t of e){h=s?h:t.start;let e,o=n[h%l];for(f=h+1;f<=t.end;f++){const s=n[f%l];e=On(r.setContext(Te(i,{type:"segment",p0:o,p1:s,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),kn(e,u)&&d(h,f-1,t.loop,u),o=s,u=e}h<f-1&&d(h,f-1,t.loop,u)}return c}(t,e,n,r):e}function On(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function kn(t,e){if(!e)return!1;const n=[],r=function(t,e){return qt(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,r)!==JSON.stringify(e,r)}function En(t,e,n){return t.options.clip?t[n]:e[n]}function _n(t,e){const n=e._clip;if(n.disabled)return!1;const r=function(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:En(n,e,"left"),right:En(n,e,"right"),top:En(r,e,"top"),bottom:En(r,e,"bottom")}:e}(e,t.chartArea);return{left:!1===n.left?0:r.left-(!0===n.left?0:n.left),right:!1===n.right?t.width:r.right+(!0===n.right?0:n.right),top:!1===n.top?0:r.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?t.height:r.bottom+(!0===n.bottom?0:n.bottom)}}class An{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const i=e.listeners[r],o=e.duration;i.forEach((r=>r({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Rt.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 i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),i.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=i.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 Pn=new An;const Mn="transparent",Cn={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=Yt(t||Mn),i=r.valid&&Yt(e||Mn);return i&&i.valid?i.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Tn{constructor(t,e,n,r){const i=e[n];r=Ce([t.to,r,i,t.from]);const o=Ce([t.from,i,r]);this._active=!0,this._fn=t.fn||Cn[t.type||typeof o],this._easing=$t[t.easing]||$t.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Ce([t.to,e,r,t.from]),this._from=Ce([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,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=i:(s=e/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,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<n.length;t++)n[t][e]()}}class jn{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!z(t))return;const e=Object.keys(ae.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((r=>{const i=t[r];if(!z(i))return;const o={};for(const t of e)o[t]=i[t];(B(i.properties)&&i.properties||[r]).forEach((t=>{t!==r&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,r=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const i=t[r[e]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),i}_createAnimations(t,e){const n=this._properties,r=[],i=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const c=e[l];let u=i[l];const h=n.get(l);if(u){if(h&&u.active()){u.update(h,c,a);continue}u.cancel()}h&&h.duration?(i[l]=u=new Tn(h,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?(Pn.add(this._chart,n),!0):void 0}}function In(t,e){const n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function Ln(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function Dn(t,e,n,r={}){const i=t.keys,o="single"===r.mode;let a,s,l,c;if(null===e)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=t.values[l],H(c)&&(o||0===e||mt(e)===mt(c))&&(e+=c)}return u||r.all?e:0}function Rn(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Nn(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Fn(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const e=t[i.index];if(n&&e>0||!n&&e<0)return i.index}return null}function Bn(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=function(t,e,n){return`${t.id}
25.${e.id}.${n.stack||n.type}`}(o,a,r),h=e.length;let f;for(let t=0;t<h;++t){const n=e[t],{[l]:o,[c]:h}=n;f=(n._stacks||(n._stacks={}))[c]=Nn(i,u,o),f[s]=h,f._top=Fn(f,a,!0,r.type),f._bottom=Fn(f,a,!1,r.type);(f._visualValues||(f._visualValues={}))[s]=h}}function zn(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Hn(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 Vn=t=>"reset"===t||"none"===t,Wn=(t,e)=>e?t:Object.assign({},t);class Un{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=Rn(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&&Hn(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,i=e.xAxisID=W(n.xAxisID,zn(t,"x")),o=e.yAxisID=W(n.yAxisID,zn(t,"y")),a=e.rAxisID=W(n.rAxisID,zn(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,i,o,a),c=e.vAxisID=r(s,o,i,a);e.xScale=this.getScaleForId(i),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),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&&Lt(this._data,this),t._stacked&&Hn(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(z(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:r}=e,i="x"===n.axis?"x":"y",o="x"===r.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:t[u]};return s}(e,t)}else if(n!==e){if(n){Lt(n,this);const t=this._cachedMeta;Hn(t),t._parsed=[]}e&&Object.isExtensible(e)&&(i=this,(r=e)._chartjs?r._chartjs.listeners.push(i):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),It.forEach((t=>{const e="_onData"+nt(t),n=r[t];Object.defineProperty(r,t,{configurable:!0,enumerable:!1,value(...t){const i=n.apply(this,t);return r._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),i}})})))),this._syncList=[],this._data=e}var r,i}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 i=e._stacked;e._stacked=Rn(e.vScale,e),e.stack!==n.stack&&(r=!0,Hn(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&(Bn(this,e._parsed),e._stacked=Rn(e.vScale,e))}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:i,_stacked:o}=n,a=i.axis;let s,l,c,u=0===t&&e===r.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=B(r[t])?this.parseArrayData(n,r,t,e):z(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const i=()=>null===l[a]||h&&l[a]<h[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],u&&(i()&&(u=!1),h=l);n._sorted=u}o&&Bn(this,c)}parsePrimitiveData(t,e,n,r){const{iScale:i,vScale:o}=t,a=i.axis,s=o.axis,l=i.getLabels(),c=i===o,u=new Array(r);let h,f,d;for(h=0,f=r;h<f;
vendor: 5,070 bytes, line 25
25++h)d=h+n,u[h]={[a]:c||i.parse(l[d],d),[s]:o.parse(e[d],d)};return u}parseArrayData(t,e,n,r){const{xScale:i,yScale:o}=t,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={x:i.parse(u[0],c),y:o.parse(u[1],c)};return a}parseObjectData(t,e,n,r){const{xScale:i,yScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,h,f;for(c=0,u=r;c<u;++c)h=c+n,f=e[h],l[c]={x:i.parse(et(f,a),h),y:o.parse(et(f,s),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,i=this._cachedMeta,o=e[t.axis];return Dn({keys:Ln(r,!0),values:e._stacks[t.axis]._visualValues},o,i.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const i=n[e.axis];let o=null===i?NaN:i;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,o=Dn(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,i=n._sorted&&t===n.iScale,o=r.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ln(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:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(a);let h,f;function d(){f=r[h];const e=f[a.axis];return!H(f[t.axis])||c>e||u<e}for(h=0;h<o&&(d()||(this.updateRangeFromParsed(l,t,f,s),!i));++h);if(i)for(h=o-1;h>=0;--h)if(!d()){this.updateRangeFromParsed(l,t,f,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r][t.axis],H(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,r,i;return z(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:!1===t}}(W(this.options.clip,function(t,e,n){if(!1===n)return!1;const r=In(t,n),i=In(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],i=e.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,i,a,s),c=a;c<a+s;++c){const e=r[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,i))}for(c=0;c<o.length;++c)o[c].draw(t,i)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const r=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];i=e.$context||(e.$context=function(t,e,n){return Te(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),i.parsed=this.getParsed(t),i.raw=r.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=function(t,e){return Te(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!e,i.mode=n,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const r="active"===e,i=this._cachedDataOpts,o=t+"-"+e,a=i[o],s=this.enableOptionSharing&&rt(n);if(a)return Wn(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),f=Object.keys(ae.elements[t]),d=l.resolveNamedOptions(h,f,(()=>this.getContext(n,r,e)),u);return d.$shared&&(d.$shared=s,i[o]=Object.freeze(Wn(d,s))),d}_resolveAnimations(t,e,n){const r=this.chart,i=this._cachedDataOpts,o=`animation-${e}`,a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,e),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(t,n,e))}const l=new jn(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Vn(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:o}}updateElement(t,e,n,r){Vn(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!Vn(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const i=this.getStyle(e,r);
vendor: 4,476 bytes, line 25
25this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}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,i=e.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,e,n=!0){const r=this._cachedMeta,i=r.data,o=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(s(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(i,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&Hn(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function $n(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,i=n.length;e<i;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Dt(r.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let r,i,o,a,s=e._length;const l=()=>{32767!==o&&-32768!==o&&(rt(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(r=0,i=n.length;r<i;++r)o=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,i=e.ticks.length;r<i;++r)o=e.getPixelForTick(r),l();return s}function qn(t,e,n,r){return B(t)?function(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function Yn(t,e,n,r){const i=t.iScale,o=t.vScale,a=i.getLabels(),s=i===o,l=[];let c,u,h,f;for(c=n,u=n+r;c<u;++c)f=e[c],h={},h[i.axis]=s||i.parse(a[c],c),l.push(qn(f,h,o,c));return l}function Kn(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Xn(t,e,n,r){let i=e.borderSkipped;const o={};if(!i)return void(t.borderSkipped=o);if(!0===i)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}(t);"middle"===i&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[Gn(u,a,s,l)]=!0,i=c)),o[Gn(i,a,s,l)]=!0,t.borderSkipped=o}function Gn(t,e,n,r){var i,o,a;return r?(a=n,t=Qn(t=(i=t)===(o=e)?a:i===a?o:i,n,e)):t=Qn(t,e,n),t}function Qn(t,e,n){return"start"===t?e:"end"===t?n:t}function Jn(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class Zn extends Un{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update(
vendor: 4,846 bytes, line 25
25)}}}};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 i,o,a=t=>+n[t];if(z(n[t])){const{key:t="value"}=this._parsing;a=e=>+et(n[e],t)}for(i=t,o=t+e;i<o;++i)r._parsed[i]=a(i)}}_getRotation(){return xt(this.options.rotation-90)}_getCircumference(){return xt(this.options.circumference)}_getRotationExtents(){let t=st,e=-st;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();t=Math.min(t,i),e=Math.max(e,i+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,r=this._cachedMeta,i=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-o)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:h,rotation:f}=this._getRotationExtents(),{ratioX:d,ratioY:p,offsetX:m,offsetY:g}=function(t,e,n){let r=1,i=1,o=0,a=0;if(e<st){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),h=Math.cos(l),f=Math.sin(l),d=(t,e,r)=>At(t,s,l,!0)?1:Math.max(e,e*n,r,r*n),p=(t,e,r)=>At(t,s,l,!0)?-1:Math.min(e,e*n,r,r*n),m=d(0,c,h),g=d(ht,u,f),v=p(at,c,h),y=p(at+ht,u,f);r=(m-v)/2,i=(g-y)/2,o=-(m+v)/2,a=-(g+y)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}(f,h,s),v=(n.width-o)/d,y=(n.height-o)/p,b=Math.max(Math.min(v,y)/2,0),x=U(this.options.radius,b),w=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,r.total=this.calculateTotal(),this.outerRadius=x-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,i=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]*i/st)}updateElements(t,e,n,r){const i="reset"===r,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=i&&s.animateScale,h=u?0:this.innerRadius,f=u?0:this.outerRadius,{sharedOptions:d,includeOptions:p}=this._getSharedOptions(e,r);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,i);for(m=e;m<e+n;++m){const e=this._circumference(m,i),n=t[m],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:f,innerRadius:h};p&&(o.options=d||this.resolveDataElementOptions(m,n.active?"active":r)),g+=e,this.updateElement(n,m,o,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const i=t._parsed[n];null===i||isNaN(i)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(i))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?st*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Jt(e._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,i,o,a,s;if(!t)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){o=n.getDatasetMeta(r),t=o.data,a=o.controller;break}if(!t)return 0;for(r=0,i=t.length;r<i;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(W(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class tr extends Un{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};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,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update(
vendor: 27,685 bytes, line 25
25)}}},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||[],i=Jt(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:i}}parseObjectData(t,e,n,r){return $e.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)&&(r<e.min&&(e.min=r),r>e.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),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,r){const i="reset"===r,o=this.chart,a=o.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*at;let h,f=u;const d=360/this.countVisibleElements();for(h=0;h<e;++h)f+=this._computeAngle(h,r,d);for(h=e;h<e+n;h++){const e=t[h];let n=f,p=f+this._computeAngle(h,r,d),m=o.getDataVisibility(h)?s.getDistanceFromCenterForValue(this.getParsed(h).r):0;f=p,i&&(a.animateScale&&(m=0),a.animateRotate&&(n=p=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:p,options:this.resolveDataElementOptions(h,e.active?"active":r)};this.updateElement(e,h,g,r)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?xt(this.resolveDataElementOptions(t,e).angle||n):0}}var er=Object.freeze({__proto__:null,BarController:class extends Un{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 Yn(t,e,n,r)}parseArrayData(t,e,n,r){return Yn(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:i,vScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===i.axis?a:s,c="x"===o.axis?a:s,u=[];let h,f,d,p;for(h=n,f=n+r;h<f;++h)p=e[h],d={},d[i.axis]=i.parse(et(p,l),h),u.push(qn(et(p,c),d,o,h));return u}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const i=n._custom;i&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:r}=e,i=this.getParsed(t),o=i._custom,a=Kn(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const i="reset"===r,{index:o,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:h}=this._getSharedOptions(e,r);for(let f=e;f<e+n;f++){const e=this.getParsed(f),n=i||F(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),d=this._calculateBarIndexPixels(f,c),p=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!p||Kn(e._custom)||o===p._top||o===p._bottom,x:l?n.head:d.center,y:l?d.center:n.head,height:l?d.size:Math.abs(n.size),width:l?Math.abs(n.size):d.size};h&&(m.options=u||this.resolveDataElementOptions(f,t[f].active?"active":r));const g=m.options||t[f].options;Xn(m,g,p,o),Jn(m,g,c.ratio),this.updateElement(t[f],f,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),i=n.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===s)),r=e&&e[t.vScale.axis];if(F(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!l(n))&&((!1===i||-1===o.indexOf(n.stack)||void 0===i&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter((n=>t[n].axis===e)).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)t[W("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,n){const r=this._getStacks(t,n),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let i,o;for(i=0,o=e.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));const a=t.barThickness;return{min:a||$n(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:i,minBarLength:o}}=this,a=i||0,s=this.getParsed(t),l=s._custom,c=Kn(l);let u,h,f=s[e.axis],d=0,p=n?this.applyStack(e,s,n):f;p!==f&&(d=p-f,p=f),c&&(f=l.barStart,p=l.barEnd-l.barStart,0!==f&&mt(f)!==mt(l.barEnd)&&(d=0),d+=f);const m=F(i)||c?d:i;let g=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(d+p):g,h=u-g,Math.abs(h)<o){h=function(t,e,n){return 0!==t?mt(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(h,e,a)*o,f===a&&(g-=h/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),l=Math.min(t,i),d=Math.max(t,i);g=Math.max(Math.min(g,d),l),u=g+h,n&&!c&&(s._stacks[e.axis]._visualValues[r]=e.getValueForPixel(u)-e.getValueForPixel(g))}if(g===e.getPixelForValue(a)){const t=mt(h)*e.getLineWidthForValue(a)/2;g+=t,h-=t}return{size:h,base:g,head:u,center:u+h/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,i=r.skipNull,o=W(r.maxBarThickness,1/0);let a,s;const l=this._getAxisCount();if(e.grouped){const n=i?this._getStackCount(t):e.stackCount,c="flex"===r.barThickness?function(t,e,n,r){const i=e.pixels,o=i[t];let a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(t,e,r,n*l):function(t,e,n,r){const i=n.barThickness;let o,a;return F(i)?(o=e.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:e.pixels[t]-o/2}}(t,e,r,n*l),u="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(W(u,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0)+h;a=c.start+c.chunk*f+c.chunk/2,s=Math.min(o,c.chunk*c.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(o,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let i=0;for(;i<r;++i)null===this.getParsed(i)[e.axis]||n[i].hidden||n[i].draw(this._ctx)}},BubbleController:class extends Un{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,r){const i=super.parsePrimitiveData(t,e,n,r);for(let t=0;t<i.length;t++)i[t]._custom=this.resolveDataElementOptions(t+n).radius;return i}parseArrayData(t,e,n,r){const i=super.parseArrayData(t,e,n,r);for(let t=0;t<i.length;t++){const r=e[n+t];i[t]._custom=W(r[2],this.resolveDataElementOptions(t+n).radius)}return i}parseObjectData(t,e,n,r){const i=super.parseObjectData(t,e,n,r);for(let t=0;t<i.length;t++){const r=e[n+t];i[t]._custom=W(r&&r.r&&+r.r,this.resolveDataElementOptions(t+n).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=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:i}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y),l=o._custom;return{label:n[t]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,r),c=o.axis,u=a.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!i&&this.getParsed(h),f={},d=f[c]=i?o.getPixelForDecimal(.5):o.getPixelForValue(n[c]),p=f[u]=i?a.getBasePixel():a.getPixelForValue(n[u]);f.skip=isNaN(d)||isNaN(p),l&&(f.options=s||this.resolveDataElementOptions(h,e.active?"active":r),i&&(f.options.radius=0)),this.updateElement(e,h,f,r)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const i=r.radius;return"active"!==e&&(r.radius=0),r.radius+=W(n&&n._custom,i),r}},DoughnutController:Zn,LineController:class extends Un{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=e,o=this.chart._animationsDisabled;let{start:a,count:s}=zt(e,r,o);this._drawStart=a,this._drawCount=s,Ht(e)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},t),this.updateElements(r,a,s,t)}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,r),h=o.axis,f=a.axis,{spanGaps:d,segment:p}=this.options,m=yt(d)?d:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||i||"none"===r,v=e+n,y=t.length;let b=e>0&&this.getParsed(e-1);for(let n=0;n<y;++n){const d=t[n],y=g?d:{};if(n<e||n>=v){y.skip=!0;continue}const x=this.getParsed(n),w=F(x[f]),S=y[h]=o.getPixelForValue(x[h],n),O=y[f]=i||w?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[f],n);y.skip=isNaN(S)||isNaN(O)||w,y.stop=n>0&&Math.abs(x[h]-b[h])>m,p&&(y.parsed=x,y.raw=l.data[n]),u&&(y.options=c||this.resolveDataElementOptions(n,d.active?"active":r)),g||this.updateElement(d,n,y,r),b=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Zn{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:tr,RadarController:class extends Un{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 $e.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta,n=e.dataset,r=e.data||[],i=e.iScale.getLabels();if(n.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,n,r){const i=this._cachedMeta.rScale,o="reset"===r;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":r),s=i.getPointPositionForValue(a,this.getParsed(a).r),l=o?i.xCenter:s.x,c=o?i.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,a,u,r)}}},ScatterController:class extends Un{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y);return{label:n[t]||"",value:"("+a+", "+s+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,r=this.chart._animationsDisabled;let{start:i,count:o}=zt(e,n,r);if(this._drawStart=i,this._drawCount=o,Ht(e)&&(i=0,o=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:i,_dataset:o}=e;i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,i,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,r),u=this.getSharedOptions(c),h=this.includeOptions(r,u),f=o.axis,d=a.axis,{spanGaps:p,segment:m}=this.options,g=yt(p)?p:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||i||"none"===r;let y=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),p=v?e:{},b=F(n[d]),x=p[f]=o.getPixelForValue(n[f],c),w=p[d]=i||b?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[d],c);p.skip=isNaN(x)||isNaN(w)||b,p.stop=c>0&&Math.abs(n[f]-y[f])>g,m&&(p.parsed=n,p.raw=l.data[c]),h&&(p.options=u||this.resolveDataElementOptions(c,e.active?"active":r)),v||this.updateElement(e,c,p,r),y=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 i=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,i,o)/2}}});function nr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class rr{static override(t){Object.assign(rr.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return nr()}parse(){return nr()}format(){return nr()}add(){return nr()}diff(){return nr()}startOf(){return nr()}endOf(){return nr()}}var ir=rr;function or(t,e,n,r){const{controller:i,data:o,_sorted:a}=t,s=i._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(s&&e===s.axis&&"r"!==e&&a&&o.length){const a=s._reversePixels?jt:Tt;if(!r){const r=a(o,e,n);if(l){const{vScale:e}=i._cachedMeta,{_parsed:n}=t,o=n.slice(0,r.lo+1).reverse().findIndex((t=>!F(t[e.axis])));r.lo-=Math.max(0,o);const a=n.slice(r.hi).findIndex((t=>!F(t[e.axis])));r.hi+=Math.max(0,a)}return r}if(i._sharedOptions){const t=o[0],r="function"==typeof t.getRange&&t.getRange(e);if(r){const t=a(o,e,n-r),i=a(o,e,n+r);return{lo:t.lo,hi:i.hi}}}}return{lo:0,hi:o.length-1}}function ar(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:s}=o[t],{lo:l,hi:c}=or(o[t],e,a,i);for(let t=l;t<=c;++t){const e=s[t];e.skip||r(e,n,t)}}}function sr(t,e,n,r,i){const o=[];if(!i&&!t.isPointInArea(e))return o;return ar(t,n,e,(function(n,a,s){(i||de(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&o.push({element:n,datasetIndex:a,index:s})}),!0),o}function lr(t,e,n,r,i,o){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return ar(t,n,e,(function(n,c,u){const h=n.inRange(e.x,e.y,i);if(r&&!h)return;const f=n.getCenterPoint(i);if(!(!!o||t.isPointInArea(f))&&!h)return;const d=s(e,f);d<l?(a=[{element:n,datasetIndex:c,index:u}],l=d):d===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function cr(t,e,n,r,i,o){return o||t.isPointInArea(e)?"r"!==n||r?lr(t,e,n,r,i,o):function(t,e,n,r){let i=[];return ar(t,n,e,(function(t,n,o){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],r),{angle:l}=Ot(t,{x:e.x,y:e.y});At(l,a,s)&&i.push({element:t,datasetIndex:n,index:o})})),i}(t,e,n,i):[]}function ur(t,e,n,r,i){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return ar(t,n,e,((t,r,l)=>{t[a]&&t[a](e[n],i)&&(o.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,i))})),r&&!s?[]:o}var hr={evaluateInteractionItems:ar,modes:{index(t,e,n,r){const i=an(e,t),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?sr(t,i,o,r,a):cr(t,i,o,!1,r,a),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 i=an(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?sr(t,i,o,r,a):cr(t,i,o,!1,r,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,r)=>sr(t,an(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const i=an(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;return cr(t,i,o,n.intersect,r,a)},x:(t,e,n,r)=>ur(t,an(e,t),"x",n.intersect,r),y:(t,e,n,r)=>ur(t,an(e,t),"y",n.intersect,r)}};const fr=["left","top","right","bottom"];function dr(t,e){return t.filter((t=>t.pos===e))}function pr(t,e){return t.filter((t=>-1===fr.indexOf(t.pos)&&t.box.axis===e))}function mr(t,e){return t.sort(((t,n)=>{const r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function gr(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:i}=n;if(!t||!fr.includes(r))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,a,s;for(o=0,a=t.length;o<a;++o){s=t[o];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&e.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:a&&e.availableHeight)}return n}function vr(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function yr(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 br(t,e,n,r){const{pos:i,box:o}=n,a=t.maxPadding;if(!z(i)){n.size&&(t[i]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[i]+=n.size}o.getPadding&&yr(a,o.getPadding());const s=Math.max(0,e.outerWidth-vr(a,t,"left","right")),l=Math.max(0,e.outerHeight-vr(a,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 xr(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{r[t]=Math.max(e[t],n[t])})),r}return r(t?["left","right"]:["top","bottom"])}function wr(t,e,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=t.length,c=0;o<a;++o){s=t[o],l=s.box,l.update(s.width||e.w,s.height||e.h,xr(s.horizontal,e));const{same:a,other:h}=br(e,n,s,r);c|=a&&i.length,u=u||h,l.fullSize||i.push(s)}return c&&wr(i,e,n,r)||u}function Sr(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function Or(t,e,n,r){const i=n.padding;let{x:o,y:a}=e;for(const s of t){const t=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=e.w*c,o=l.size||t.height;rt(l.start)&&(a=l.start),t.fullSize?Sr(t,i.left,a,n.outerWidth-i.right-i.left,o):Sr(t,e.left+l.placed,a,r,o),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*c,a=l.size||t.width;rt(l.start)&&(o=l.start),t.fullSize?Sr(t,o,i.top,a,n.outerHeight-i.bottom-i.top):Sr(t,o,e.top+l.placed,a,r),l.start=o,l.placed+=r,o=t.right}}e.x=o,e.y=a}var kr={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=Pe(t.options.layout.padding),o=Math.max(e-i.width,0),a=Math.max(n-i.height,0),s=function(t){const e=function(t){const e=[];let n,r,i,o,a,s;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],({position:o,options:{stack:a,stackWeight:s=1}}=i),e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return e}(t),n=mr(e.filter((t=>t.box.fullSize)),!0),r=mr(dr(e,"left"),!0),i=mr(dr(e,"right")),o=mr(dr(e,"top"),!0),a=mr(dr(e,"bottom")),s=pr(e,"x"),l=pr(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:dr(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;q(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,h=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},i);yr(f,Pe(r));const d=Object.assign({maxPadding:f,w:o,h:a,x:i.left,y:i.top},i),p=gr(l.concat(c),h);wr(s.fullSize,d,h,p),wr(l,d,h,p),wr(c,d,h,p)&&wr(l,d,h,p),function(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(d),Or(s.leftAndTop,d,h,p),d.x+=d.w,d.y+=d.h,Or(s.rightAndBottom,d,h,p),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},q(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})}))}};class Er{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 _r extends Er{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ar="$chartjs",Pr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mr=t=>null===t||""===t;const Cr=!!un&&{passive:!0};function Tr(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Cr)}function jr(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ir(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||jr(n.addedNodes,r),e=e&&!jr(n.removedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function Lr(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||jr(n.removedNodes,r),e=e&&!jr(n.addedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}const Dr=new Map;let Rr=0;function Nr(){const t=window.devicePixelRatio;t!==Rr&&(Rr=t,Dr.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Fr(t,e,n){const r=t.canvas,i=r&&tn(r);if(!i)return;const o=Nt(((t,e)=>{const r=i.clientWidth;n(t,e),r<i.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||o(n,r)}));return a.observe(i),function(t,e){Dr.size||window.addEventListener("resize",Nr),Dr.set(t,e)}(t,o),a}function Br(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Dr.delete(t),Dr.size||window.removeEventListener("resize",Nr)}(t)}function zr(t,e,n){const r=t.canvas,i=Nt((e=>{null!==t.ctx&&n(function(t,e){const n=Pr[t.type]||t.type,{x:r,y:i}=an(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==i?i:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Cr)}(r,e,i),i}class Hr extends Er{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"),i=t.getAttribute("width");if(t[Ar]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Mr(i)){const e=hn(t,"width");void 0!==e&&(t.width=e)}if(Mr(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=hn(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ar])return!1;const n=e[Ar].initial;["height","width"].forEach((t=>{const r=n[t];F(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[Ar],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),i={attach:Ir,detach:Lr,resize:Fr}[e]||zr;r[e]=i(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:Br,detach:Br,resize:Br}[e]||Tr)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return ln(t,e,n,r)}isAttached(t){const e=t&&tn(t);return!(!e||!e.isConnected)}}class Vr{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 yt(this.x)&&yt(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 Wr(t,e){const n=t.options.ticks,r=function(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?function(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return function(t,e,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<t.length;i++)i===a&&(e.push(t[i]),o++,a=n[o*r])}(e,c,o,a/i),c;const u=function(t,e,n){const r=function(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}(t),i=e.length/n;if(!r)return Math.max(i,1);const o=function(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r==0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(r);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];
vendor: 8,283 bytes, line 25
25if(e>i)return e}return Math.max(i,1)}(o,e,i);if(a>0){let t,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(Ur(e,c,u,F(r)?0:s-r,s),t=0,n=a-1;t<n;t++)Ur(e,c,u,o[t],o[t+1]);return Ur(e,c,u,l,F(r)?e.length:l+r),c}return Ur(e,c,u),c}function Ur(t,e,n,r,i){const o=W(r,0),a=Math.min(W(i,t.length),t.length);let s,l,c,u=0;for(n=Math.ceil(n),i&&(s=i-r,n=s/Math.floor(s/n)),c=o;c<0;)u++,c=Math.round(o+u*n);for(l=Math.max(o,0);l<a;l++)l===c&&(e.push(t[l]),u++,c=Math.round(o+u*n))}const $r=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,qr=(t,e)=>Math.min(e||t,t);function Yr(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function Kr(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(i);if(!(n&&(l=1===r?Math.max(c-o,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(i-1))/2,c+=i<e?l:-l,c<o-s||c>a+s)))return c}function Xr(t){return t.drawTicks?t.tickLength:0}function Gr(t,e){if(!t.display)return 0;const n=Me(t.font,e),r=Pe(t.padding);return(B(t.text)?t.text.length:1)*n.lineHeight+r.height}function Qr(t,e,n){let r=Ft(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class Jr extends Vr{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=V(t,Number.POSITIVE_INFINITY),e=V(e,Number.NEGATIVE_INFINITY),n=V(n,Number.POSITIVE_INFINITY),r=V(r,Number.NEGATIVE_INFINITY),{min:V(t,n),max:V(e,r),minDefined:H(t),maxDefined:H(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),i||(n=Math.min(n,e.min)),o||(r=Math.max(r,e.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:V(n,V(r,n)),max:V(r,V(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(){$(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:i,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:r,max:i}=t,o=U(e,(i-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(o)),max:a(i,o)}}(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?Yr(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=Wr(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){$(this.options.afterUpdate,[this])}beforeSetDimensions(){$(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){$(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),$(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){$(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,i;for(n=0,r=t.length;n<r;n++)i=t[n],i.label=$(e.callback,[i.value,n,t],this)}afterTickToLabelConversion(){$(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){$(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=qr(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,i=e.maxRotation;let o,a,s,l=r;if(!this._isVisible()||!e.display||r>=i||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,h=c.highest.height,f=Pt(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(t.offset?.5:1)),a=this.maxHeight-Xr(t.grid)-e.padding-Gr(t.title,this.chart.options.font),s=Math.sqrt(u*u+h*h),l=wt(Math.min(Math.asin(Pt((c.highest.height+6)/o,-1,1)),Math.asin(Pt(a/s,-1,1))-Math.asin(Pt(h/s,-1,1)))),l=Math.max(r,Math.min(i,l))),this.labelRotation=l}afterCalculateLabelRotation(){$(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){$(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:i}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=Gr(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=Xr(i)+o):(t.height=this.maxHeight,t.width=Xr(i)+o),n.display&&this.ticks.length){const{first:e,last:r,widest:i,highest:o}=this._getLabelSizes(),s=2*n.padding,l=xt(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*i.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*i.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,u,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,r){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,h=0;s?l?(u=r*t.width,h=n*e.height):(u=n*t.height,h=r*e.width):"start"===i?h=e.width:"end"===i?u=t.width:"inner"!==i&&(u=t.width/2,h=e.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((h-c+o)*this.width/(this.width-c),0)}
vendor: 12,963 bytes, line 25
25else{let n=e.height/2,r=t.height/2;"start"===i?(n=0,r=t.height):"end"===i&&(n=e.height,r=0),this.paddingTop=n+o,this.paddingBottom=r+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){$(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)F(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Yr(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:i}=this,o=[],a=[],s=Math.floor(e/qr(e,n));let l,c,u,h,f,d,p,m,g,v,y,b=0,x=0;for(l=0;l<e;l+=s){if(h=t[l].label,f=this._resolveTickFontOptions(l),r.font=d=f.string,p=i[d]=i[d]||{data:{},gc:[]},m=f.lineHeight,g=v=0,F(h)||B(h)){if(B(h))for(c=0,u=h.length;c<u;++c)y=h[c],F(y)||B(y)||(g=se(r,p.data,p.gc,g,y),v+=m)}else g=se(r,p.data,p.gc,g,h),v=m;o.push(g),a.push(v),b=Math.max(g,b),x=Math.max(v,x)}!function(t,e){q(t,(t=>{const n=t.gc,r=n.length/2;let i;if(r>e){for(i=0;i<r;++i)delete t.data[n[i]];n.splice(0,r)}}))}(i,e);const w=o.indexOf(b),S=a.indexOf(x),O=t=>({width:o[t]||0,height:a[t]||0});return{first:O(0),last:O(e-1),widest:O(w),highest:O(S),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Pt(this._alignToPixels?ce(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return Te(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Te(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=xt(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),i=this._getLabelSizes(),o=t.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:i,position:o,border:a}=r,s=i.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=Xr(i),h=[],f=a.setContext(this.getContext()),d=f.display?f.width:0,p=d/2,m=function(t){return ce(n,t,d)};let g,v,y,b,x,w,S,O,k,E,_,A;if("top"===o)g=m(this.bottom),w=this.bottom-u,O=g-p,E=m(t.top)+p,A=t.bottom;else if("bottom"===o)g=m(this.top),E=t.top,A=m(t.bottom)-p,w=g+p,O=this.top+u;else if("left"===o)g=m(this.right),x=this.right-u,S=g-p,k=m(t.left)+p,_=t.right;else if("right"===o)g=m(this.left),k=t.left,_=m(t.right)-p,x=g+p,S=this.left+u;else if("x"===e){if("center"===o)g=m((t.top+t.bottom)/2+.5);else if(z(o)){const t=Object.keys(o)[0],e=o[t];g=m(this.chart.scales[t].getPixelForValue(e))}E=t.top,A=t.bottom,w=g+p,O=w+u}else if("y"===e){if("center"===o)g=m((t.left+t.right)/2);else if(z(o)){const t=Object.keys(o)[0],e=o[t];g=m(this.chart.scales[t].getPixelForValue(e))}x=g-p,S=x-u,k=t.left,_=t.right}const P=W(r.ticks.maxTicksLimit,c),M=Math.max(1,Math.ceil(c/P));for(v=0;v<c;v+=M){const t=this.getContext(v),e=i.setContext(t),r=a.setContext(t),o=e.lineWidth,c=e.color,u=r.dash||[],f=r.dashOffset,d=e.tickWidth,p=e.tickColor,m=e.tickBorderDash||[],g=e.tickBorderDashOffset;y=Kr(this,v,s),void 0!==y&&(b=ce(n,y,o),l?x=S=k=_=b:w=O=E=A=b,h.push({tx1:x,ty1:w,tx2:S,ty2:O,x1:k,y1:E,x2:_,y2:A,width:o,color:c,borderDash:u,borderDashOffset:f,tickWidth:d,tickColor:p,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,h}_computeLabelItems(t){const e=this.axis,n=this.options,{position:r,ticks:i}=n,o=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=i,h=Xr(n.grid),f=h+c,d=u?-c:f,p=-xt(this.labelRotation),m=[];let g,v,y,b,x,w,S,O,k,E,_,A,P="middle";if("top"===r)w=this.bottom-d,S=this._getXAxisLabelAlignment();else if("bottom"===r)w=this.top+d,S=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(h);S=t.textAlign,x=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(h);S=t.textAlign,x=t.x}else if("x"===e){if("center"===r)w=(t.top+t.bottom)/2+f;else if(z(r)){const t=Object.keys(r)[0],e=r[t];w=this.chart.scales[t].getPixelForValue(e)+f}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)x=(t.left+t.right)/2-f;else if(z(r)){const t=Object.keys(r)[0],e=r[t];x=this.chart.scales[t].getPixelForValue(e)}S=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===s?P="top":"end"===s&&(P="bottom"));const M=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){y=a[g],b=y.label;const t=i.setContext(this.getContext(g));O=this.getPixelForTick(g)+i.labelOffset,k=this._resolveTickFontOptions(g),E=k.lineHeight,_=B(b)?b.length:1;const e=_/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let h,f=S;if(o?(x=O,"inner"===S&&(f=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),A="top"===r?"near"===l||0!==p?-_*E+E/2:"center"===l?-M.highest.height/2-e*E+E:-M.highest.height+E/2:"near"===l||0!==p?E/2:"center"===l?M.highest.height/2-e*E:M.highest.height-_*E,u&&(A*=-1),0===p||t.showLabelBackdrop||(x+=E/2*Math.sin(p))):(w=O,A=(1-_)*E/2),t.showLabelBackdrop){const e=Pe(t.backdropPadding),n=M.heights[g],r=M.widths[g];let i=A-e.top,o=0-e.left;switch(P){case"middle":i-=n/2;break;case"bottom":i-=n}switch(S){case"center":o-=r/2;break;case"right":o-=r;break;case"inner":g===v-1?o-=r:g>0&&(o-=r/2)}h={left:o,top:i,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:b,font:k,textOffset:A,options:{rotation:p,color:n,strokeColor:s,strokeWidth:c,textAlign:f,textBaseline:P,translation:[x,w],backdrop:h}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-xt(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,o=t+i,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?r?(l=this.right+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?r?(l=this.left+i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:r,width:i,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(i=0,o=r.length;i<o;++i){const t=r[i];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),o=n.display?i.width:0;if(!o)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,h;this.isHorizontal()?(l=ce(t,this.left,o)-o/2,c=ce(t,this.right,a)+a/2,u=h=s):(u=ce(t,this.top,o)-o/2,h=ce(t,this.bottom,a)+a/2,l=c=s),e.save(),e.lineWidth=i.width,e.strokeStyle=i.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&pe(e,n);const r=this.getLabelItems(t);for(const t of r){const n=t.options,r=t.font;xe(e,t.label,0,t.textOffset,r,n)}n&&me(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const i=Me(n.font),o=Pe(n.padding),a=n.align;let s=i.lineHeight/2;"bottom"===e||"center"===e||z(e)?(s+=o.bottom,B(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=o.top;const{titleX:l,titleY:c,maxWidth:u,rotation:h}=function(t,e,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let h,f,d,p=0;const m=a-i,g=s-o;if(t.isHorizontal()){if(f=Bt(r,o,s),z(n)){const t=Object.keys(n)[0],r=n[t];d=u[t].getPixelForValue(r)+m-e}else d="center"===n?(c.bottom+c.top)/2+m-e:$r(t,n,e);h=s-o}else{if(z(n)){const t=Object.keys(n)[0],r=n[t];f=u[t].getPixelForValue(r)-g+e}else f="center"===n?(c.left+c.right)/2-g+e:$r(t,n,e);d=Bt(r,a,i),p="left"===n?-ht:ht}return{titleX:f,titleY:d,maxWidth:h,rotation:p}}(this,s,e,a);xe(t,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:h,textAlign:Qr(a,e,r),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=W(t.grid&&t.grid.z,-1),r=W(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Jr.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];o[n]!==this.id||t&&o.type!==t||r.push(o)}return r}_resolveTickFontOptions(t){return Me(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Zr{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const r=this.items,i=t.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,function(t,e,n){const r=Q(Object.create(null),[n?ae.get(n):{},ae.get(e),t.defaults]);ae.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");ae.route(o,i,l,s)}))}(e,t.defaultRoutes);t.descriptors&&ae.describe(e,t.descriptors)}(t,o,n),this.override&&ae.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in ae[r]&&(delete ae[r][n],this.override&&delete ee[n])}}class ti{constructor(){this.controllers=new Zr(Un,"datasets",!0),this.elements=new Zr(Vr,"elements"),this.plugins=new Zr(Object,"plugins"),this.scales=new Zr(Jr,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}
vendor: 8,978 bytes, line 25
25removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):q(e,(e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)}))}))}_exec(t,e,n){const r=nt(t);$(n["before"+r],[],n),e[t](n),$(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var ei=new ti;class ni{constructor(){this._init=[]}notify(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(i,t,e,n);return"afterDestroy"===e&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,r){r=r||{};for(const i of t){const t=i.plugin;if(!1===$(t[n],[e,r,i.options],t)&&r.cancelable)return!1}return!0}invalidate(){F(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=W(n.options&&n.options.plugins,{}),i=function(t){const e={},n=[],r=Object.keys(ei.plugins.items);for(let t=0;t<r.length;t++)n.push(ei.getPlugin(r[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const r=i[t];-1===n.indexOf(r)&&(n.push(r),e[r.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,{plugins:e,localIds:n},r,i){const o=[],a=t.getContext();for(const s of e){const e=s.id,l=ri(r[e],i);null!==l&&o.push({plugin:s,options:ii(t.config,{plugin:s,local:n[e]},l,a)})}return o}(t,i,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function ri(t,e){return e||!1!==t?!0===t?{}:t:null}function ii(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(r,o);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function oi(t,e){const n=ae.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function ai(t){if("x"===t||"y"===t||"r"===t)return t}function si(t,...e){if(ai(t))return t;for(const r of e){const e=r.axis||("top"===(n=r.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&ai(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function li(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function ci(t,e){const n=ee[t.type]||{scales:{}},r=e.scales||{},i=oi(t.type,e),o=Object.create(null);return Object.keys(r).forEach((e=>{const a=r[e];if(!z(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=si(e,a,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return li(t,"x",n[0])||li(t,"y",n[0])}return{}}(e,t),ae.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(s,i),c=n.scales||{};o[e]=J(Object.create(null),[{axis:s},a,c[s],c[l]])})),t.data.datasets.forEach((n=>{const i=n.type||t.type,a=n.indexAxis||oi(i,e),s=(ee[i]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),i=n[e+"AxisID"]||e;o[i]=o[i]||Object.create(null),J(o[i],[{axis:e},r[i],s[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];J(e,[ae.scales[e.type],ae.scale])})),o}function ui(t){const e=t.options||(t.options={});e.plugins=W(e.plugins,{}),e.scales=ci(t,e)}function hi(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const fi=new Map,di=new Set;function pi(t,e){let n=fi.get(t);return n||(n=e(),fi.set(t,n),di.add(n)),n}const mi=(t,e,n)=>{const r=et(e,n);void 0!==r&&t.add(r)};class gi{constructor(t){this._config=function(t){return(t=t||{}).data=hi(t.data),ui(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=hi(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ui(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return pi(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return pi(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return pi(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return pi(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:r,type:i}=this,o=this._cachedScopes(t,n),a=o.get(e);if(a)return a;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>mi(s,t,e)))),e.forEach((t=>mi(s,r,t))),e.forEach((t=>mi(s,ee[i]||{},t))),e.forEach((t=>mi(s,ae,t))),e.forEach((t=>mi(s,ne,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),di.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,ee[e]||{},ae.datasets[e]||{},{type:e},ae,ne]}resolveNamedOptions(t,e,n,r=[""]){const i={$shared:!0},{resolver:o,subPrefixes:a}=vi(this._resolverCache,t,r);let s=o;if(function(t,e){const{isScriptable:n,isIndexable:r}=Le(t);for(const i of e){const e=n(i),o=r(i),a=(o||e)&&t[i];if(e&&(it(a)||yi(a))||o&&B(a))return!0}return!1}(o,e)){i.$shared=!1;s=Ie(o,n=it(n)?n():n,this.createResolver(t,n,a))}for(const t of e)i[t]=s[t];return i}createResolver(t,e,n=[""],r){const{resolver:i}=vi(this._resolverCache,t,n);return z(e)?Ie(i,e,void 0,r):i}}function vi(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);if(!o){o={resolver:je(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},r.set(i,o)}return o}const yi=t=>z(t)&&Object.getOwnPropertyNames(t).some((e=>it(t[e])));const bi=["top","bottom","left","right","chartArea"];function xi(t,e){return"top"===t||"bottom"===t||-1===bi.indexOf(t)&&"x"===e}function wi(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Si(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),$(n&&n.onComplete,[t],e)}function Oi(t){const e=t.chart,n=e.options.animation;$(n&&n.onProgress,[t],e)}function ki(t){return Ze()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Ei={},_i=t=>{const e=ki(t);return Object.values(Ei).filter((t=>t.canvas===e)).pop()};function Ai(t,e,n){const r=Object.keys(t);for(const i of r){const r=+i;if(r>=e){const o=t[i];delete t[i],(n>0||r>e)&&(t[r+n]=o)}}}class Pi{static defaults=ae;static instances=Ei;static overrides=ee;static registry=ei;static version="4.5.0";static getChart=_i;static register(...t){ei.add(...t),Mi()}static unregister(...t){ei.remove(...t),Mi()}constructor(t,e){const n=this.config=new gi(e),r=ki(t),i=_i(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Ze()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?_r:Hr}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,o.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=N(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ni,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Ei[this.id]=this,a&&s?(Pn.listen(this,"complete",
vendor: 80,429 bytes, line 25
25Si),Pn.listen(this,"progress",Oi),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:i}=this;return F(t)?e&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ei}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ue(this.canvas,this.ctx),this}stop(){return Pn.stop(this),this}resize(t,e){Pn.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,cn(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),$(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){q(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let i=[];e&&(i=i.concat(Object.keys(e).map((t=>{const n=e[t],r=si(t,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),q(i,(e=>{const i=e.options,o=i.id,a=si(o,i),s=W(i.type,e.dtype);void 0!==i.position&&xi(i.position,a)===xi(e.dposition)||(i.position=e.dposition),r[o]=!0;let l=null;if(o in n&&n[o].type===s)l=n[o];else{l=new(ei.getScale(s))({id:o,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(i,t)})),q(r,((t,e)=>{t||delete n[e]})),q(n,(t=>{kr.configure(this,t,t.options),kr.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(wi("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[n];let i=this.getDatasetMeta(n);const o=r.type||this.config.type;if(i.type&&i.type!==o&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=o,i.indexAxis=r.indexAxis||oi(o,this.options),i.order=r.order||0,i.index=n,i.label=""+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{const e=ei.getController(o),{datasetElementType:r,dataElementType:a}=ae.datasets[o];Object.assign(e,{dataElementType:ei.getElement(a),datasetElementType:r&&ei.getElement(r)}),i.controller=new e(this,n),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){q(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===i.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||q(i,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(wi("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){q(this.scales,(t=>{kr.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);ot(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of e){Ai(t,r,"_removeElements"===n?-i:i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),r=n(0);for(let t=1;t<e;t++)if(!ot(r,n(t)))return;return Array.from(r).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;kr.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],q(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,it(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Pn.has(this)?this.attached&&!Pn.running(this)&&Pn.start(this):(this.draw(),Si({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let r,i;for(r=0,i=e.length;r<i;++r){const i=e[r];t&&!i.visible||n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=_n(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(r&&pe(e,r),t.controller.draw(),r&&me(e),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return de(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const i=hr.modes[e];return"function"==typeof i?i(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter((t=>t&&t._dataset===e)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Te(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",i=this.getDatasetMeta(t),o=i.controller._resolveAnimations(void 0,r);rt(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(i,{visible:n}),this.update((e=>e.datasetIndex===t?r:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Pn.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ue(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Ei[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};q(this.options.events,(t=>n(t,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},i=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){q(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},q(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===e&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Y(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const r=this.options.hover,i=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=i(e,t),a=n?t:i(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:i}=this,o=e,a=this._getActiveElements(t,r,n,o),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,$(i.onHover,[t,a,this],this),s&&$(i.onClick,[t,a,this],this));const c=!Y(a,r);return(c||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}function Mi(){return q(Pi.instances,(t=>t._plugins.invalidate()))}function Ci(t,e,n,r){const i=Ee(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(n-e)/2,a=Math.min(o,r*e/2),s=t=>{const e=(n-Math.min(o,t))*r/2;return Pt(t,0,Math.min(o,e))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Pt(i.innerStart,0,a),innerEnd:Pt(i.innerEnd,0,a)}}function Ti(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function ji(t,e,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=e,h=Math.max(e.outerRadius+r+n-c,0),f=u>0?u+r+n+c:0;let d=0;const p=i-l;if(r){const t=((u>0?u-r:0)+(h>0?h-r:0))/2;d=(p-(0!==t?p*t/(t+r):p))/2}const m=(p-Math.max(.001,p*h-n/at)/h)/2,g=l+m+d,v=i-m-d,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:w}=Ci(e,f,h,v-g),S=h-y,O=h-b,k=g+y/S,E=v-b/O,_=f+x,A=f+w,P=g+x/_,M=v-w/A;if(t.beginPath(),o){const e=(k+E)/2;if(t.arc(a,s,h,k,e),t.arc(a,s,h,e,E),b>0){const e=Ti(O,E,a,s);t.arc(e.x,e.y,b,E,v+ht)}const n=Ti(A,v,a,s);if(t.lineTo(n.x,n.y),w>0){const e=Ti(A,M,a,s);t.arc(e.x,e.y,w,v+ht,M+Math.PI)}const r=(v-w/f+(g+x/f))/2;if(t.arc(a,s,f,v-w/f,r,!0),t.arc(a,s,f,r,g+x/f,!0),x>0){const e=Ti(_,P,a,s);t.arc(e.x,e.y,x,P+Math.PI,g-ht)}const i=Ti(S,g,a,s);if(t.lineTo(i.x,i.y),y>0){const e=Ti(S,k,a,s);t.arc(e.x,e.y,y,g-ht,k)}}else{t.moveTo(a,s);const e=Math.cos(k)*h+a,n=Math.sin(k)*h+s;t.lineTo(e,n);const r=Math.cos(E)*h+a,i=Math.sin(E)*h+s;t.lineTo(r,i)}t.closePath()}function Ii(t,e,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:h,borderDashOffset:f,borderRadius:d}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(h||[]),t.lineDashOffset=f,p?(t.lineWidth=2*c,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let m=e.endAngle;if(o){ji(t,e,n,r,m,i);for(let e=0;e<o;++e)t.stroke();isNaN(s)||(m=a+(s%st||st))}p&&function(t,e,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=e;let c=i/s;t.beginPath(),t.arc(o,a,s,r-c,n+c),l>i?(c=i/l,t.arc(o,a,l,n+c,r-c,!0)):t.arc(o,a,i,n+ht,r-ht),t.closePath(),t.clip()}(t,e,m),l.selfJoin&&m-a>=at&&0===d&&"miter"!==u&&function(t,e,n){const{startAngle:r,x:i,y:o,outerRadius:a,innerRadius:s,options:l}=e,{borderWidth:c,borderJoinStyle:u}=l,h=Math.min(c/a,_t(r-n));if(t.beginPath(),t.arc(i,o,a-c/2,r+h/2,n-h/2),s>0){const e=Math.min(c/s,_t(r-n));t.arc(i,o,s+c/2,n-e/2,r+e/2,!0)}else{const e=Math.min(c/2,a*_t(r-n));if("round"===u)t.arc(i,o,e,n-at/2,r+at/2,!0);else if("bevel"===u){const a=2*e*e,s=-a*Math.cos(n+at/2)+i,l=-a*Math.sin(n+at/2)+o,c=a*Math.cos(r+at/2)+i,u=a*Math.sin(r+at/2)+o;t.lineTo(s,l),t.lineTo(c,u)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,m),o||(ji(t,e,n,r,m,i),t.stroke())}function Li(t,e,n=e){t.lineCap=W(n.borderCapStyle,e.borderCapStyle),t.setLineDash(W(n.borderDash,e.borderDash)),t.lineDashOffset=W(n.borderDashOffset,e.borderDashOffset),t.lineJoin=W(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=W(n.borderWidth,e.borderWidth),t.strokeStyle=W(n.borderColor,e.borderColor)}function Di(t,e,n){t.lineTo(n.x,n.y)}function Ri(t,e,n={}){const r=t.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=e,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:e.loop,ilen:c<l&&!u?r+c-l:c-l}}function Ni(t,e,n,r){const{points:i,options:o}=e,{count:a,start:s,loop:l,ilen:c}=Ri(i,n,r),u=function(t){return t.stepped?ge:t.tension||"monotone"===t.cubicInterpolationMode?ve:Di}(o);let h,f,d,{move:p=!0,reverse:m}=r||{};for(h=0;h<=c;++h)f=i[(s+(m?c-h:h))%a],f.skip||(p?(t.moveTo(f.x,f.y),p=!1):u(t,d,f,m,o.stepped),d=f);return l&&(f=i[(s+(m?c:0))%a],u(t,d,f,m,o.stepped)),!!l}function Fi(t,e,n,r){const i=e.points,{count:o,start:a,ilen:s}=Ri(i,n,r),{move:l=!0,reverse:c}=r||{};let u,h,f,d,p,m,g=0,v=0;const y=t=>(a+(c?s-t:t))%o,b=()=>{d!==p&&(t.lineTo(g,p),t.lineTo(g,d),t.lineTo(g,m))};for(l&&(h=i[y(0)],t.moveTo(h.x,h.y)),u=0;u<=s;++u){if(h=i[y(u)],h.skip)continue;const e=h.x,n=h.y,r=0|e;r===f?(n<d?d=n:n>p&&(p=n),g=(v*g+e)/++v):(b(),t.lineTo(e,n),f=r,v=0,d=p=n),m=n}b()}function Bi(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?Fi:Ni}const zi="function"==typeof Path2D;function Hi(t,e,n,r){zi&&!e.options.segment?function(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),Li(t,e.options),t.stroke(i)}(t,e,n,r):function(t,e,n,r){const{segments:i,options:o}=e,a=Bi(e);for(const s of i)Li(t,o,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}(t,e,n,r)}class Vi extends Vr{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;Je(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,i=n.length;if(!i)return[];const o=!!t._loop,{start:a,end:s}=function(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}(n,i,o,r);return Sn(t,!0===r?[{start:a,end:s,loop:o}]:function(t,e,n,r){const i=t.length,o=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:e%i,end:(a-1)%i,loop:r}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&o.push({start:e%i,end:s%i,loop:r}),o}(n,a,s<a?s+i:s,!!t._fullLoop&&0===a&&s===i-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,r=t[e],i=this.points,o=wn(this,{property:e,start:r,end:r});if(!o.length)return;const a=[],s=function(t){return t.stepped?dn:t.tension||"monotone"===t.cubicInterpolationMode?pn:fn}(n);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:u}=o[l],h=i[c],f=i[u];if(h===f){a.push(h);continue}const d=s(h,f,Math.abs((r-h[e])/(f[e]-h[e])),n.stepped);d[e]=t[e],a.push(d)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return Bi(this)(t,this,e,n)}path(t,e,n){const r=this.segments,i=Bi(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const a of r)o&=i(t,this,a,{start:e,end:e+n-1});return!!o}draw(t,e,n,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),Hi(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Wi(t,e,n,r){const i=t.options,{[n]:o}=t.getProps([n],r);return Math.abs(e-o)<i.radius+i.hitRadius}function Ui(t,e){const{x:n,y:r,base:i,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,h;return t.horizontal?(h=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-h,u=r+h):(h=o/2,s=n-h,l=n+h,c=Math.min(r,i),u=Math.max(r,i)),{left:s,top:c,right:l,bottom:u}}function $i(t,e,n,r){return t?0:Pt(e,n,r)}function qi(t){const e=Ui(t),n=e.right-e.left,r=e.bottom-e.top,i=function(t,e,n){const r=t.options.borderWidth,i=t.borderSkipped,o=_e(r);return{t:$i(i.top,o.top,0,n),r:$i(i.right,o.right,0,e),b:$i(i.bottom,o.bottom,0,n),l:$i(i.left,o.left,0,e)}}(t,n/2,r/2),o=function(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,o=Ae(i),a=Math.min(e,n),s=t.borderSkipped,l=r||z(i);return{topLeft:$i(!l||s.top||s.left,o.topLeft,0,a),topRight:$i(!l||s.top||s.right,o.topRight,0,a),bottomLeft:$i(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:$i(!l||s.bottom||s.right,o.bottomRight,0,a)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:o},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Yi(t,e,n,r){const i=null===e,o=null===n,a=t&&!(i&&o)&&Ui(t,r);return a&&(i||Mt(e,a.left,a.right))&&(o||Mt(n,a.top,a.bottom))}function Ki(t,e){t.rect(e.x,e.y,e.w,e.h)}function Xi(t,e,n={}){const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+a,radius:t.radius}}var Gi=Object.freeze({__proto__:null,ArcElement:class extends Vr{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.getProps(["x","y"],n),{angle:i,distance:o}=Ot(r,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=(this.options.spacing+this.options.borderWidth)/2,f=W(u,s-a),d=At(i,a,s)&&a!==s,p=f>=st||d,m=Mt(o,l+h,c+h);return p&&m}getCenterPoint(t){const{x:e,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,c=(r+i)/2,u=(o+a+l+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/4,i=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>st?Math.floor(n/st):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(at,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=e;let l=e.endAngle;if(o){ji(t,e,n,r,l,i);for(let e=0;e<o;++e)t.fill();isNaN(s)||(l=a+(s%st||st))}ji(t,e,n,r,l,i),t.fill()}(t,this,s,i,o),Ii(t,this,s,i,o),t.restore()}},BarElement:class extends Vr{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:o}=qi(this),a=(s=o.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?we:Ki;var s;t.save(),o.w===i.w&&o.h===i.h||(t.beginPath(),a(t,Xi(o,e,i)),t.clip(),a(t,Xi(i,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,Xi(i,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return Yi(this,t,e,n)}inXRange(t,e){return Yi(this,t,null,e)}inYRange(t,e){return Yi(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(e+r)/2:e,y:i?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:Vi,PointElement:class extends Vr{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(t-i,2)+Math.pow(e-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return Wi(this,t,"x",e)}inYRange(t,e){return Wi(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!de(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,he(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});const Qi=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Ji=Qi.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Zi(t){return Qi[t%Qi.length]}function to(t){return Ji[t%Ji.length]}function eo(t){let e=0;return(n,r)=>{const i=t.getDatasetMeta(r).controller;i instanceof Zn?e=function(t,e){return t.backgroundColor=t.data.map((()=>Zi(e++))),e}(n,e):i instanceof tr?e=function(t,e){return t.backgroundColor=t.data.map((()=>to(e++))),e}(n,e):i&&(e=function(t,e){return t.borderColor=Zi(e),t.backgroundColor=to(e),++e}(n,e))}}function no(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var ro={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=t.config,{elements:o}=i,a=no(r)||(s=i)&&(s.borderColor||s.backgroundColor)||o&&no(o)||"rgba(0,0,0,0.1)"!==ae.borderColor||"rgba(0,0,0,0.1)"!==ae.backgroundColor;var s;if(!n.forceOverride&&a)return;const l=eo(t);r.forEach(l)}};function io(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 oo(t){t.data.datasets.forEach((t=>{io(t)}))}var ao={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void oo(t);const r=t.width;t.data.datasets.forEach(((e,i)=>{const{_data:o,indexAxis:a}=e,s=t.getDatasetMeta(i),l=o||e.data;if("y"===Ce([a,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{start:u,count:h}=function(t,e){const n=e.length;let r,i=0;const{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Pt(Tt(e,o.axis,a).lo,0,n-1)),r=c?Pt(Tt(e,o.axis,s).hi+1,i,n)-i:n-i,{start:i,count:r}}(s,l);if(h<=(n.threshold||4*r))return void io(e);let f;switch(F(o)&&(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":f=function(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(o-2);let l=0;const c=e+n-1;let u,h,f,d,p,m=e;for(a[l++]=t[m],u=0;u<o-2;u++){let r,i=0,o=0;const c=Math.floor((u+1)*s)+1+e,g=Math.min(Math.floor((u+2)*s)+1,n)+e,v=g-c;for(r=c;r<g;r++)i+=t[r].x,o+=t[r].y;i/=v,o/=v;const y=Math.floor(u*s)+1+e,b=Math.min(Math.floor((u+1)*s)+1,n)+e,{x,y:w}=t[m];for(f=d=-1,r=y;r<b;r++)d=.5*Math.abs((x-i)*(t[r].y-w)-(x-t[r].x)*(o-w)),d>f&&(f=d,h=t[r],p=r);a[l++]=h,m=p}return a[l++]=t[c],a}(l,u,h,r,n);break;case"min-max":f=function(t,e,n,r){let i,o,a,s,l,c,u,h,f,d,p=0,m=0;const g=[],v=e+n-1,y=t[e].x,b=t[v].x-y;for(i=e;i<e+n;++i){o=t[i],a=(o.x-y)/b*r,s=o.y;const e=0|a;if(e===l)s<f?(f=s,c=i):s>d&&(d=s,u=i),p=(m*p+o.x)/++m;else{const n=i-1;if(!F(c)&&!F(u)){const e=Math.min(c,u),r=Math.max(c,u);e!==h&&e!==n&&g.push({...t[e],x:p}),r!==h&&r!==n&&g.push({...t[r],x:p})}i>0&&n!==h&&g.push(t[n]),g.push(o),l=e,m=0,f=d=s,c=u=h=i}}return g}(l,u,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=f}))},destroy(t){oo(t)}};function so(t,e,n,r){if(r)return;let i=e[t],o=n[t];return"angle"===t&&(i=_t(i),o=_t(o)),{property:t,start:i,end:o}}function lo(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function co(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function uo(t,e){let n=[],r=!1;return B(t)?(r=!0,n=t):n=function(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=lo(t,e,i);const a=i[t],s=i[e];null!==r?(o.push({x:a.x,y:r}),o.push({x:s.x,y:r})):null!==n&&(o.push({x:n,y:a.y}),o.push({x:n,y:s.y}))})),o}(t,e),n.length?new Vi({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function ho(t){return t&&!1!==t.fill}function fo(t,e,n){let r=t[e].fill;const i=[e];let o;if(!n)return r;for(;!1!==r&&-1===i.indexOf(r);){if(!H(r))return r;if(o=t[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function po(t,e,n){const r=function(t){const e=t.options,n=e.fill;let r=W(n&&n.target,n);void 0===r&&(r=!!e.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(t);if(z(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return H(i)&&Math.floor(i)===i?function(t,e,n,r){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=r)return!1;return n}(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function mo(t,e,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=go(o,e,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(t.push(l),!s)break}t.push(...r)}function go(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const i=r[n],o=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],r=a[e.start][n],c=a[e.end][n];if(Mt(i,r,c)){s=i===r,l=i===c;break}}return{first:s,last:l,point:r}}class vo{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:r,y:i,radius:o}=this;return e=e||{start:0,end:st},t.arc(r,i,o,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:r}=this,i=t.angle;return{x:e+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function yo(t){const{chart:e,fill:n,line:r}=t;if(H(n))return function(t,e){const n=t.getDatasetMeta(e),r=n&&t.isDatasetVisible(e);return r?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:r}=t,i=[],o=r.segments,a=r.points,s=function(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let t=0;t<r.length;t++){const i=r[t];if(i.index===e)break;i.hidden||n.unshift(i.dataset)}return n}(e,n);s.push(uo({x:null,y:e.bottom},r));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)mo(i,a[t],s)}return new Vi({points:i,options:{}})}(t);if("shape"===n)return!0;const i=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,r=e.options,i=e.getLabels().length,o=r.reverse?e.max:e.min,a=function(t,e,n){let r;return r="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:z(t)?t.value:e.getBaseValue(),r}(n,e,o),s=[];if(r.grid.circular){const t=e.getPointPositionForValue(0,o);return new vo({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<i;++t)s.push(e.getPointPositionForValue(t,a));return s}(t);return function(t){const{scale:e={},fill:n}=t,r=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:z(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(H(r)){const t=e.isHorizontal();return{x:t?r:null,y:t?null:r}}return null}(t)}(t);return i instanceof vo?i:uo(i,r)}function bo(t,e,n){const r=yo(e),{chart:i,index:o,line:a,scale:s,axis:l}=e,c=a.options,u=c.fill,h=c.backgroundColor,{above:f=h,below:d=h}=u||{},p=i.getDatasetMeta(o),m=_n(i,p);r&&a.points.length&&(pe(t,n),function(t,e){const{line:n,target:r,above:i,below:o,area:a,scale:s,clip:l}=e,c=n._loop?"angle":e.axis;t.save();let u=o;o!==i&&("x"===c?(xo(t,r,a.top),So(t,{line:n,target:r,color:i,scale:s,property:c,clip:l}),t.restore(),t.save(),xo(t,r,a.bottom)):"y"===c&&(wo(t,r,a.left),So(t,{line:n,target:r,color:o,scale:s,property:c,clip:l}),t.restore(),t.save(),wo(t,r,a.right),u=i));So(t,{line:n,target:r,color:u,scale:s,property:c,clip:l}),t.restore()}(t,{line:a,target:r,above:f,below:d,area:n,scale:s,axis:l,clip:m}),me(t))}function xo(t,e,n){const{segments:r,points:i}=e;let o=!0,a=!1;t.beginPath();for(const s of r){const{start:r,end:l}=s,c=i[r],u=i[lo(r,l,i)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function wo(t,e,n){const{segments:r,points:i}=e;let o=!0,a=!1;t.beginPath();for(const s of r){const{start:r,end:l}=s,c=i[r],u=i[lo(r,l,i)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(n,c.y),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(n,u.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function So(t,e){const{line:n,target:r,property:i,color:o,scale:a,clip:s}=e,l=function(t,e,n){const r=t.segments,i=t.points,o=e.points,a=[];for(const t of r){let{start:r,end:s}=t;s=lo(r,s,i);const l=so(n,i[r],i[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:i[r],end:i[s]});continue}const c=wn(e,l);for(const e of c){const r=so(n,o[e.start],o[e.end],e.loop),s=xn(t,i,r);for(const t of s)a.push({source:t,target:e,start:{[n]:co(l,r,"start",Math.max)},end:{[n]:co(l,r,"end",Math.min)}})}}return a}(n,r,i);for(const{source:e,target:c,start:u,end:h}of l){const{style:{backgroundColor:l=o}={}}=e,f=!0!==r;t.save(),t.fillStyle=l,Oo(t,a,s,f&&so(i,u,h)),t.beginPath();const d=!!n.pathSegment(t,e);let p;if(f){d?t.closePath():ko(t,r,h,i);const e=!!r.pathSegment(t,c,{move:d,reverse:!0});p=d&&e,p||ko(t,r,u,i)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function Oo(t,e,n,r){const i=e.chart.chartArea,{property:o,start:a,end:s}=r||{};if("x"===o||"y"===o){let e,r,l,c;"x"===o?(e=a,r=i.top,l=s,c=i.bottom):(e=i.left,r=a,l=i.right,c=s),t.beginPath(),n&&(e=Math.max(e,n.left),l=Math.min(l,n.right),r=Math.max(r,n.top),c=Math.min(c,n.bottom)),t.rect(e,r,l-e,c-r),t.clip()}}function ko(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var Eo={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=t.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof Vi&&(l={visible:t.isDatasetVisible(a),index:a,fill:po(s,a,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],l&&!1!==l.fill&&(l.fill=fo(i,a,n.propagate))},beforeDraw(t,e,n){const r="beforeDraw"===n.drawTime,i=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),r&&n.fill&&bo(t.ctx,n,o))}},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;ho(n)&&bo(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;ho(r)&&"beforeDatasetDraw"===n.drawTime&&bo(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const _o=(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 Ao extends Vr{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=$(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=Me(n.font),i=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=_o(n,i);let l,c;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,i,a,s)+10):(c=this.maxHeight,l=this._fitCols(o,r,a,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:i,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=t;i.textAlign="left",i.textBaseline="middle";let h=-1,f=-c;return this.legendItems.forEach(((t,d)=>{const p=n+e/2+i.measureText(t.text).width;(0===d||l[l.length-1]+p+2*a>o)&&(u+=c,l[l.length-(d>0?0:1)]=0,f+=c,h++),s[d]={left:0,top:f,row:h,width:p,height:r},l[l.length-1]+=p+a})),u}_fitCols(t,e,n,r){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let u=a,h=0,f=0,d=0,p=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:m,itemHeight:g}=function(t,e,n,r,i){const o=function(t,e,n,r){let i=t.text;i&&"string"!=typeof i&&(i=i.reduce(((t,e)=>t.length>e.length?t:e)));return e+n.size/2+r.measureText(i).width}(r,t,e,n),a=function(t,e,n){let r=t;"string"!=typeof e.text&&(r=Po(e,n));return r}(i,r,e.lineHeight);return{itemWidth:o,itemHeight:a}}(n,e,i,t,r);o>0&&f+g+2*a>c&&(u+=h+a,l.push({width:h,height:f}),d+=h+a,p++,h=f=0),s[o]={left:d,top:f,col:p,width:m,height:g},h=Math.max(h,m),f+=g+a})),u+=h,l.push({width:h,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:i}}=this,o=mn(i,this.left,this.width);if(this.isHorizontal()){let i=0,a=Bt(n,this.left+r,this.right-this.lineWidths[i]);for(const s of e)i!==s.row&&(i=s.row,a=Bt(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+t+r,s.left=o.leftForLtr(o.x(a),s.width),a+=s.width+r}else{let i=0,a=Bt(n,this.top+t+r,this.bottom-this.columnSizes[i].height);for(const s of e)s.col!==i&&(i=s.col,a=Bt(n,this.top+t+r,this.bottom-this.columnSizes[i].height)),s.top=a,s.left+=this.left+r,s.left=o.leftForLtr(o.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;pe(t,this),this._draw(),me(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:i,labels:o}=t,a=ae.color,s=mn(t.rtl,this.left,this.width),l=Me(o.font),{padding:c}=o,u=l.size,h=u/2;let f;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:d,boxHeight:p,itemHeight:m}=_o(o,u),g=this.isHorizontal(),v=this._computeTitleHeight();f=g?{x:Bt(i,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Bt(i,this.top+v+c,this.bottom-e[0].height),line:0},gn(this.ctx,t.textDirection);const y=m+c;this.legendItems.forEach(((b,x)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const w=r.measureText(b.text).width,S=s.textAlign(b.textAlign||(b.textAlign=o.textAlign)),O=d+h+w;let k=f.x,E=f.y;s.setWidth(this.width),g?x>0&&k+O+c>this.right&&(E=f.y+=y,f.line++,k=f.x=Bt(i,this.left+c,this.right-n[f.line])):x>0&&E+y>this.bottom&&(k=f.x=k+e[f.line].width+c,f.line++,E=f.y=Bt(i,this.top+v+c,this.bottom-e[f.line].height));if(function(t,e,n){if(isNaN(d)||d<=0||isNaN(p)||p<0)return;r.save();const i=W(n.lineWidth,1);if(r.fillStyle=W(n.fillStyle,a),r.lineCap=W(n.lineCap,"butt"),r.lineDashOffset=W(n.lineDashOffset,0),r.lineJoin=W(n.lineJoin,"miter"),r.lineWidth=i,r.strokeStyle=W(n.strokeStyle,a),r.setLineDash(W(n.lineDash,[])),o.usePointStyle){const a={radius:p*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},l=s.xPlus(t,d/2);fe(r,a,l,e+h,o.pointStyleWidth&&d)}else{const o=e+Math.max((u-p)/2,0),a=s.leftForLtr(t,d),l=Ae(n.borderRadius);r.beginPath(),Object.values(l).some((t=>0!==t))?we(r,{x:a,y:o,w:d,h:p,radius:l}):r.rect(a,o,d,p),r.fill(),0!==i&&r.stroke()}r.restore()}(s.x(k),E,b),k=((t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e)(S,k+d+h,g?k+O:this.right,t.rtl),function(t,e,n){xe(r,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),E,b),g)f.x+=O+c;else if("string"!=typeof b.text){const t=l.lineHeight;f.y+=Po(b,t)+c}else f.y+=y})),vn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Me(e.font),r=Pe(e.padding);if(!e.display)return;const i=mn(t.rtl,this.left,this.width),o=this.ctx,a=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=Bt(t.align,u,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+Bt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const f=Bt(a,u,u+h);o.textAlign=i.textAlign(Ft(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,xe(o,e.text,f,c,n)}_computeTitleHeight(){const t=this.options.title,e=Me(t.font),n=Pe(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,i;if(Mt(t,this.left,this.right)&&Mt(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],Mt(t,r.left,r.left+r.width)&&Mt(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(i=n,null!==(r=o)&&null!==i&&r.datasetIndex===i.datasetIndex&&r.index===i.index);o&&!a&&$(e.onLeave,[t,o,this],this),this._hoveredItem=n,n&&!a&&$(e.onHover,[t,n,this],this)}else n&&$(e.onClick,[t,n,this],this);var r,i}}function Po(t,e){return e*(t.text?t.text.length:0)}var Mo={id:"legend",_element:Ao,start(t,e,n){const r=t.legend=new Ao({ctx:t.ctx,options:n,chart:t});kr.configure(t,r,n),kr.addBox(t,r)},stop(t){kr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;kr.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,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.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:i,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),c=Pe(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:i||l.textAlign,borderRadius:a&&(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 Co extends Vr{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=B(n.text)?n.text.length:1;this._padding=Pe(n.padding);const i=r*Me(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:r,right:i,options:o}=this,a=o.align;let s,l,c,u=0;return this.isHorizontal()?(l=Bt(a,n,i),c=e+t,s=i-n):("left"===o.position?(l=n+t,c=Bt(a,r,e),u=-.5*at):(l=i-t,c=Bt(a,e,r),u=.5*at),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=Me(e.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:o,maxWidth:a,rotation:s}=this._drawArgs(r);xe(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:s,textAlign:Ft(e.align),textBaseline:"middle",translation:[i,o]})}}var To={id:"title",_element:Co,start(t,e,n){!function(t,e){const n=new Co({ctx:t.ctx,options:e,chart:t});kr.configure(t,n,e),kr.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;kr.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;kr.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 jo=new WeakMap;var Io={id:"subtitle",start(t,e,n){const r=new Co({ctx:t.ctx,options:n,chart:t});kr.configure(t,r,n),kr.addBox(t,r),jo.set(t,r)},stop(t){kr.removeBox(t,jo.get(t)),jo.delete(t)},beforeUpdate(t,e,n){const r=jo.get(t);kr.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 Lo={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r.add(t.x),i+=t.y,++o}}if(0===o||0===r.size)return!1;return{x:[...r].reduce(((t,e)=>t+e))/r.size,y:i/o}},nearest(t,e){if(!t.length)return!1;let n,r,i,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=kt(e,r.getCenterPoint());t<s&&(s=t,i=r)}}if(i){const t=i.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Do(t,e){return e&&(B(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Ro(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function No(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:t,label:a,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Fo(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:a,boxHeight:s}=e,l=Me(e.bodyFont),c=Me(e.titleFont),u=Me(e.footerFont),h=o.length,f=i.length,d=r.length,p=Pe(e.padding);let m=p.height,g=0,v=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),v){m+=d*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-d)*l.lineHeight+(v-1)*e.bodySpacing}f&&(m+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let y=0;const b=function(t){g=Math.max(g,n.measureText(t).width+y)};return n.save(),n.font=c.string,q(t.title,b),n.font=l.string,q(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?a+2+e.boxPadding:0,q(r,(t=>{q(t.before,b),q(t.lines,b),q(t.after,b)})),y=0,n.font=u.string,q(t.footer,b),n.restore(),g+=p.width,{width:g,height:m}}function Bo(t,e,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===r?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(t,e,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===t&&i+o+a>e.width||"right"===t&&i-o-a<0||void 0}(c,t,e,n)&&(c="center"),c}function zo(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||Bo(t,e,n,r),yAlign:r}}function Ho(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:d}=Ae(a);let p=function(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s);const m=function(t,e,n){let{y:r,height:i}=t;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,l,c);return"center"===l?"left"===s?p+=c:"right"===s&&(p-=c):"left"===s?p-=Math.max(u,f)+i:"right"===s&&(p+=Math.max(h,d)+i),{x:Pt(p,0,r.width-e.width),y:Pt(m,0,r.height-e.height)}}function Vo(t,e,n){const r=Pe(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function Wo(t){return Do([],Ro(t))}function Uo(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const $o={beforeTitle:R,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<r)return n[e.dataIndex]}return""},afterTitle:R,beforeBody:R,beforeLabel:R,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return F(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:R,afterBody:R,beforeFooter:R,footer:R,afterFooter:R};function qo(t,e,n,r){const i=t[e].call(n,r);return void 0===i?$o[e].call(n,r):i}class Yo extends Vr{static positioners=Lo;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new jn(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Te(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,r=qo(n,"beforeTitle",this,t),i=qo(n,"title",this,t),o=qo(n,"afterTitle",this,t);let a=[];return a=Do(a,Ro(r)),a=Do(a,Ro(i)),a=Do(a,Ro(o)),a}getBeforeBody(t,e){return Wo(qo(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,r=[];return q(t,(t=>{const e={before:[],lines:[],after:[]},i=Uo(n,t);Do(e.before,Ro(qo(i,"beforeLabel",this,t))),Do(e.lines,qo(i,"label",this,t)),Do(e.after,Ro(qo(i,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return Wo(qo(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=qo(n,"beforeFooter",this,t),i=qo(n,"footer",this,t),o=qo(n,"afterFooter",this,t);let a=[];return a=Do(a,Ro(r)),a=Do(a,Ro(i)),a=Do(a,Ro(o)),a}_createItems(t){const e=this._active,n=this.chart.data,r=[],i=[],o=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(No(this.chart,e[a]));return t.filter&&(l=l.filter(((e,r,i)=>t.filter(e,r,i,n)))),t.itemSort&&(l=l.sort(((e,r)=>t.itemSort(e,r,n)))),q(l,(e=>{const n=Uo(t.callbacks,e);r.push(qo(n,"labelColor",this,e)),i.push(qo(n,"labelPointStyle",this,e)),o.push(qo(n,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const t=Lo[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=Fo(this,n),a=Object.assign({},t,e),s=zo(this.chart,n,a),l=Ho(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const i=this.getCaretPosition(t,n,r);e.lineTo(i.x1,i.y1),e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:i}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Ae(a),{x:h,y:f}=t,{width:d,height:p}=e;let m,g,v,y,b,x;return"center"===i?(b=f+p/2,"left"===r?(m=h,g=m-o,y=b+o,x=b-o):(m=h+d,g=m+o,y=b-o,x=b+o),v=m):(g="left"===r?h+Math.max(s,c)+o:"right"===r?h+d-Math.max(l,u)-o:this.caretX,"top"===i?(y=f,b=y-o,m=g-o,v=g+o):(y=f+p,b=y+o,m=g+o,v=g-o),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(t,e,n){const r=this.title,i=r.length;let o,a,s;if(i){const l=mn(n.rtl,this.x,this.width);for(t.x=Vo(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",o=Me(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,s=0;s<i;++s)e.fillText(r[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,s+1===i&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,i){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=i,c=Me(i.bodyFont),u=Vo(this,"left",i),h=r.x(u),f=s<c.lineHeight?(c.lineHeight-s)/2:0,d=e.y+f;if(i.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(h,l)+l/2,c=d+s/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,he(t,e,n,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,he(t,e,n,c)}else{t.lineWidth=z(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=r.leftForLtr(h,l),n=r.leftForLtr(r.xPlus(h,1),l-2),a=Ae(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=i.multiKeyBackground,we(t,{x:e,y:d,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),we(t,{x:n,y:d+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(e,d,l,s),t.strokeRect(e,d,l,s),t.fillStyle=o.backgroundColor,t.fillRect(n,d+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=Me(n.bodyFont);let h=u.lineHeight,f=0;const d=mn(n.rtl,this.x,this.width),p=function(n){e.fillText(n,d.x(t.x+f),t.y+h/2),t.y+=h+i},m=d.textAlign(o);let g,v,y,b,x,w,S;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=Vo(this,m,n),e.fillStyle=n.bodyColor,q(this.beforeBody,p),f=a&&"right"!==m?"center"===o?l/2+c:l+2+c:0,b=0,w=r.length;b<w;++b){for(g=r[b],v=this.labelTextColors[b],e.fillStyle=v,q(g.before,p),y=g.lines,a&&y.length&&(this._drawColorBox(e,t,b,d,n),h=Math.max(u.lineHeight,s)),x=0,S=y.length;x<S;++x)p(y[x]),h=u.lineHeight;q(g.after,p)}f=0,h=u.lineHeight,q(this.afterBody,p),t.y-=i}drawFooter(t,e,n){const r=this.footer,i=r.length;let o,a;if(i){const s=mn(n.rtl,this.x,this.width);for(t.x=Vo(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",o=Me(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,a=0;a<i;++a)e.fillText(r[a],s.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:i,yAlign:o}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:d}=Ae(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l-h,s),e.quadraticCurveTo(a+l,s,a+l,s+h),"center"===o&&"right"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+l,s+c-d),e.quadraticCurveTo(a+l,s+c,a+l-d,s+c),"bottom"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+f,s+c),e.quadraticCurveTo(a,s+c,a,s+c-f),"center"===o&&"left"===i&&this.drawCaret(t,e,n,r),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=Lo[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=Fo(this,t),a=Object.assign({},n,this._size),s=zo(e,t,a),l=Ho(t,a,s,e);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.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},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=Pe(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,e),gn(t,e.textDirection),i.y+=o.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),vn(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}})),i=!Y(n,r),o=this._positionChanged(r,e);(i||o)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],o=this._getActiveElements(t,i,e,n),a=this._positionChanged(o,t),s=e||!Y(o,i)||a;return s&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const i=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 o=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:r,options:i}=this,o=Lo[i.position].call(this,t,e);return!1!==o&&(n!==o.x||r!==o.y)}}var Ko={id:"tooltip",_element:Yo,positioners:Lo,afterInit(t,e,n){n&&(t.tooltip=new Yo({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:$o},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"]},Xo=Object.freeze({__proto__:null,Colors:ro,Decimation:ao,Filler:Eo,Legend:Mo,SubTitle:Io,Title:To,Tooltip:Ko});function Go(t,e,n,r){const i=t.indexOf(e);if(-1===i)return((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);return i!==t.lastIndexOf(e)?n:i}function Qo(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function Jo(t,e){const n=[],{bounds:r,step:i,min:o,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:h}=t,f=i||1,d=c-1,{min:p,max:m}=e,g=!F(o),v=!F(a),y=!F(l),b=(m-p)/(u+1);let x,w,S,O,k=vt((m-p)/d/f)*f;if(k<1e-14&&!g&&!v)return[{value:p},{value:m}];O=Math.ceil(m/k)-Math.floor(p/k),O>d&&(k=vt(O*k/d/f)*f),F(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===r?(w=Math.floor(p/k)*k,S=Math.ceil(m/k)*k):(w=p,S=m),g&&v&&i&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-o)/i,k/1e3)?(O=Math.round(Math.min((a-o)/k,c)),k=(a-o)/O,w=o,S=a):y?(w=g?o:w,S=v?a:S,O=l-1,k=(S-w)/O):(O=(S-w)/k,O=gt(O,Math.round(O),k/1e3)?Math.round(O):Math.ceil(O));const E=Math.max(St(k),St(w));x=Math.pow(10,F(s)?E:s),w=Math.round(w*x)/x,S=Math.round(S*x)/x;let _=0;for(g&&(h&&w!==o?(n.push({value:o}),w<o&&_++,gt(Math.round((w+_*k)*x)/x,o,Zo(o,b,t))&&_++):w<o&&_++);_<O;++_){const t=Math.round((w+_*k)*x)/x;if(v&&t>a)break;n.push({value:t})}return v&&h&&S!==a?n.length&>(n[n.length-1].value,a,Zo(a,b,t))?n[n.length-1].value=a:n.push({value:a}):v&&S!==a||n.push({value:S}),n}function Zo(t,e,{horizontal:n,minRotation:r}){const i=xt(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class ta extends Jr{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return F(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this;const o=t=>r=e?r:t,a=t=>i=n?i:t;if(t){const t=mt(r),e=mt(i);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(r===i){let e=0===i?1:Math.abs(.05*i);a(i+e),t||o(r-e)}this.min=r,this.max=i}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=Jo({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&&bt(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 Jt(t,this.chart.options.locale,this.options.ticks.format)}}class ea extends ta{static id="linear";static defaults={ticks:{callback:te.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=H(t)?t:0,this.max=H(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=xt(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.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 na=t=>Math.floor(pt(t)),ra=(t,e)=>Math.pow(10,na(t)+e);function ia(t){return 1===t/Math.pow(10,na(t))}function oa(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function aa(t,{min:e,max:n}){e=V(t.min,e);const r=[],i=na(e);let o=function(t,e){let n=na(e-t);for(;oa(t,e,n)>10;)n++;for(;oa(t,e,n)<10;)n--;return Math.min(n,na(t))}(e,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((e-l)*a)/a,u=Math.floor((e-l)/s/10)*s*10;let h=Math.floor((c-u)/Math.pow(10,o)),f=V(t.min,Math.round((l+u+h*Math.pow(10,o))*a)/a);for(;f<n;)r.push({value:f,major:ia(f),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,a=o>=0?1:a),f=Math.round((l+u+h*Math.pow(10,o))*a)/a;const d=V(t.max,f);return r.push({value:d,major:ia(d),significand:h}),r}class sa extends Jr{static id="logarithmic";static defaults={ticks:{callback:te.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=ta.prototype.parse.apply(this,[t,e]);if(0!==n)return H(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=H(t)?Math.max(0,t):null,this.max=H(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!H(this._userMin)&&(this.min=t===ra(this.min,0)?ra(this.min,-1):ra(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,r=this.max;const i=e=>n=t?n:e,o=t=>r=e?r:t;n===r&&(n<=0?(i(1),o(10)):(i(ra(n,-1)),o(ra(r,1)))),n<=0&&i(ra(r,-1)),r<=0&&o(ra(n,1)),this.min=n,this.max=r}buildTicks(){const t=this.options,e=aa({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&bt(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":Jt(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=pt(t),this._valueRange=pt(this.max)-pt(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(pt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function la(t){const e=t.ticks;if(e.display&&t.display){const t=Pe(e.backdropPadding);return W(e.font&&e.font.size,ae.font.size)+t.height}return 0}function ca(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function ua(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=[],i=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?at/o:0;for(let h=0;h<o;h++){const o=a.setContext(t.getPointLabelContext(h));i[h]=o.padding;const f=t.getPointPosition(h,t.drawingArea+i[h],s),d=Me(o.font),p=(l=t.ctx,c=d,u=B(u=t._pointLabels[h])?u:[u],{w:le(l,c.string,u),h:u.length*c.lineHeight});r[h]=p;const m=_t(t.getIndexAngle(h)+s),g=Math.round(wt(m));ha(n,e,m,ca(g,f.x,p.w,0,180),ca(g,f.y,p.h,90,270))}var l,c,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:la(o)/2,additionalAngle:a?at/i:0};let c;for(let o=0;o<i;o++){l.padding=n[o],l.size=e[o];const i=fa(t,o,l);r.push(i),"auto"===s&&(i.visible=da(i,c),i.visible&&(c=i))}return r}(t,r,i)}function ha(t,e,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<e.l?(s=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function fa(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:o,padding:a,size:s}=n,l=t.getPointPosition(e,r+i+a,o),c=Math.round(wt(_t(l.angle+ht))),u=function(t,e,n){90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e);return t}(l.y,s.h,c),h=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),f=function(t,e,n){"right"===n?t-=e:"center"===n&&(t-=e/2);return t}(l.x,s.w,h);return{visible:!0,x:l.x,y:u,textAlign:h,left:f,top:u,right:f+s.w,bottom:u+s.h}}function da(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:o}=t;return!(de({x:n,y:r},e)||de({x:n,y:o},e)||de({x:i,y:r},e)||de({x:i,y:o},e))}function pa(t,e,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:s}=e;if(!F(s)){const n=Ae(e.borderRadius),l=Pe(e.backdropPadding);t.fillStyle=s;const c=r-l.left,u=i-l.top,h=o-r+l.width,f=a-i+l.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),we(t,{x:c,y:u,w:h,h:f,radius:n}),t.fill()):t.fillRect(c,u,h,f)}}function ma(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,st);else{let n=t.getPointPosition(0,e);i.moveTo(n.x,n.y);for(let o=1;o<r;o++)n=t.getPointPosition(o,e),i.lineTo(n.x,n.y)}}class ga extends ta{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:te.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,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=Pe(la(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=H(t)&&!isNaN(t)?t:0,this.max=H(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/la(this.options))}generateTickLabels(t){ta.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=$(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?ua(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}getIndexAngle(t){return _t(t*(st/(this._pointLabels.length||1))+xt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(F(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(F(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Te(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const r=this.getIndexAngle(t)-ht+n;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:r,bottom:i}=this._pointLabelItems[t];return{left:e,top:n,right:r,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),ma(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:r,border:i}=e,o=this._pointLabels.length;let a,s,l;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const e=t._pointLabelItems[i];if(!e.visible)continue;const o=r.setContext(t.getPointLabelContext(i));pa(n,o,e);const a=Me(o.font),{x:s,y:l,textAlign:c}=e;xe(n,t._pointLabels[i],s,l+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),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),a=r.setContext(n),l=i.setContext(n);!function(t,e,n,r,i){const o=t.ctx,a=e.circular,{color:s,lineWidth:l}=e;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash||[]),o.lineDashOffset=i.dashOffset,o.beginPath(),ma(t,n,a,r),o.closePath(),o.stroke(),o.restore())}(this,a,s,o,l)}})),n.display){for(t.save(),a=o-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),{color:i,lineWidth:o}=r;o&&i&&(t.lineWidth=o,t.strokeStyle=i,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(a,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 i,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=Me(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,o=t.measureText(r.label).width,t.fillStyle=s.backdropColor;const e=Pe(s.backdropPadding);t.fillRect(-o/2-e.left,-i-l.size/2-e.top,o+e.width,l.size+e.height)}xe(t,r.label,0,-i,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),t.restore()}drawTitle(){}}const va={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}},ya=Object.keys(va);function ba(t,e){return t-e}function xa(t,e){if(F(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),H(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(i&&(a="week"!==i||!yt(o)&&!0!==o?n.startOf(a,i):n.startOf(a,"isoWeek",o)),+a)}function wa(t,e,n,r){const i=ya.length;for(let o=ya.indexOf(t);o<i-1;++o){const t=va[ya[o]],i=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(i*t.size))<=r)return ya[o]}return ya[i-1]}function Sa(t,e,n){if(n){if(n.length){const{lo:r,hi:i}=Ct(n,e);t[n[r]>=e?n[r]:n[i]]=!0}}else t[e]=!0}function Oa(t,e,n){const r=[],i={},o=e.length;let a,s;for(a=0;a<o;++a)s=e[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?function(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}(t,r,i,n):r}class ka extends Jr{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 ir(t.adapters.date);r.init(e),J(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:xa(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:i,minDefined:o,maxDefined:a}=this.getUserBounds();function s(t){o||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(i=Math.max(i,t.max))}o&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),r=H(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),i=H(i)&&!isNaN(i)?i:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_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 i=this.min,o=function(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}(r,i,this.max);return this._unit=e.unit||(n.autoSkip?wa(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(let o=ya.length-1;o>=ya.indexOf(n);o--){const n=ya[o];if(va[n].common&&t._adapter.diff(i,r,n)>=e-1)return n}return ya[n?ya.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=ya.indexOf(t)+1,n=ya.length;e<n;++e)if(va[ya[e]].common)return ya[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&o.reverse(),Oa(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,r=0,i=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]),i=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;r=Pt(r,0,o),i=Pt(i,0,o),this._offsets={start:r,end:i,factor:1/(r+1+i)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,i=r.time,o=i.unit||wa(i.minUnit,e,n,this._getLabelCapacity(e)),a=W(r.ticks.stepSize,1),s="week"===o&&i.isoWeekday,l=yt(s)||!0===s,c={};let u,h,f=e;if(l&&(f=+t.startOf(f,"isoWeek",s)),f=+t.startOf(f,l?"day":o),t.diff(n,e,o)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+o);const d="data"===r.ticks.source&&this.getDataTimestamps();for(u=f,h=0;u<n;u=+t.add(u,a,o),h++)Sa(c,u,d);
25return u!==n&&"ticks"!==r.bounds&&1!==h||Sa(c,u,d),Object.keys(c).sort(ba).map((t=>+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,i=e||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,e,n,r){const i=this.options,o=i.ticks.callback;if(o)return $(o,[t,e,n],this);const a=i.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&a[s],u=l&&a[l],h=n[e],f=l&&u&&h&&h.major;return this._adapter.format(t,r||(f?u:c))}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,r=xt(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*o,h:n*o+a*i}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,i=this._tickFormatFunction(t,0,Oa(this,[t],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a: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<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(xa(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Dt(t.sort(ba))}}function Ea(t,e,n){let r,i,o,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Tt(t,"pos",e)),({pos:r,time:o}=t[s]),({pos:i,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Tt(t,"time",e)),({time:r,pos:o}=t[s]),({time:i,pos:a}=t[l]));const c=i-r;return c?o+(a-o)*(e-r)/c:o}var _a=Object.freeze({__proto__:null,CategoryScale:class extends Jr{static id="category";static defaults={ticks:{callback:Qo}};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(F(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Pt(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:Go(n,t,W(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 i=this.getLabels();i=0===t&&e===i.length-1?i:i.slice(t,e+1),this._valueRange=Math.max(i.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 Qo.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:ea,LogarithmicScale:sa,RadialLinearScale:ga,TimeScale:ka,TimeSeriesScale:class extends ka{static id="timeseries";static defaults=ka.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=Ea(e,this.min),this._tableRange=Ea(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],i=[];let o,a,s,l,c;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)c=r[o+1],s=r[o-1],l=r[o],Math.round((c+s)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort(((t,e)=>t-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(Ea(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Ea(this._table,n*this._tableRange+this._minPos,!0)}}});const Aa=[er,Gi,Xo,_a];Pi.register(...Aa);const Pa=Pi},16468:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(79504),a=n(92796),s=n(36840),l=n(3451),c=n(72652),u=n(90679),h=n(94901),f=n(64117),d=n(20034),p=n(79039),m=n(84428),g=n(10687),v=n(23167);t.exports=function(t,e,n){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=y?"set":"add",w=i[t],S=w&&w.prototype,O=w,k={},E=function(t){var e=o(S[t]);s(S,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})};
25if(a(t,!h(w)||!(b||S.forEach&&!p((function(){(new w).entries().next()})))))O=n.getConstructor(e,t,y,x),l.enable();else if(a(t,!0)){var _=new O,A=_[x](b?{}:-0,1)!==_,P=p((function(){_.has(1)})),M=m((function(t){new w(t)})),C=!b&&p((function(){for(var t=new w,e=5;e--;)t[x](e,e);return!t.has(-0)}));M||((O=e((function(t,e){u(t,S);var n=v(new w,t,O);return f(e)||c(e,n[x],{that:n,AS_ENTRIES:y}),n}))).prototype=S,S.constructor=O),(P||C)&&(E("delete"),E("has"),y&&E("get")),(C||A)&&E(x),b&&S.clear&&delete S.clear}return k[t]=O,r({global:!0,constructor:!0,forced:O!==w},k),g(O,t),b||n.setStrong(O,t,y),O}},16473:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>jt});var r=n(96540),i=n(5556),o=n.n(i),a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty;function c(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function u(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var s=t(e,n,r);return i.delete(e),i.delete(n),s}}function h(t){return a(t).concat(s(t))}var f=Object.hasOwn||function(t,e){return l.call(t,e)};function d(t,e){return t===e||!t&&!e&&t!=t&&e!=e}var p=Object.getOwnPropertyDescriptor,m=Object.keys;function g(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function v(t,e){return d(t.getTime(),e.getTime())}function y(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function b(t,e){return t===e}function x(t,e,n){var r=t.size;if(r!==e.size)return!1;if(!r)return!0;for(var i,o,a=new Array(r),s=t.entries(),l=0;(i=s.next())&&!i.done;){for(var c=e.entries(),u=!1,h=0;(o=c.next())&&!o.done;)if(a[h])h++;else{var f=i.value,d=o.value;if(n.equals(f[0],d[0],l,h,t,e,n)&&n.equals(f[1],d[1],f[0],d[0],t,e,n)){u=a[h]=!0;break}h++}if(!u)return!1;l++}return!0}var w=d;function S(t,e,n){var r=m(t),i=r.length;if(m(e).length!==i)return!1;for(;i-- >0;)if(!M(t,e,n,r[i]))return!1;return!0}function O(t,e,n){var r,i,o,a=h(t),s=a.length;if(h(e).length!==s)return!1;for(;s-- >0;){if(!M(t,e,n,r=a[s]))return!1;if(i=p(t,r),o=p(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function k(t,e){return d(t.valueOf(),e.valueOf())}function E(t,e){return t.source===e.source&&t.flags===e.flags}function _(t,e,n){var r=t.size;if(r!==e.size)return!1;if(!r)return!0;for(var i,o,a=new Array(r),s=t.values();(i=s.next())&&!i.done;){for(var l=e.values(),c=!1,u=0;(o=l.next())&&!o.done;){if(!a[u]&&n.equals(i.value,o.value,i.value,o.value,t,e,n)){c=a[u]=!0;break}u++}if(!c)return!1}return!0}function A(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function P(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function M(t,e,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!t.$$typeof&&!e.$$typeof)||f(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}var C=Array.isArray,T="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,j=Object.assign,I=Object.prototype.toString.call.bind(Object.prototype.toString);var L=D();D({strict:!0}),D({circular:!0}),D({circular:!0,strict:!0}),D({createInternalComparator:function(){return d}}),D({strict:!0,createInternalComparator:function(){return d}}),D({circular:!0,createInternalComparator:function(){return d}}),D({circular:!0,createInternalComparator:function(){return d},strict:!0});function D(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,i=t.createInternalComparator,o=t.createState,a=t.strict,s=void 0!==a&&a,l=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?O:g,areDatesEqual:v,areErrorsEqual:y,areFunctionsEqual:b,areMapsEqual:r?c(x,O):x,areNumbersEqual:w,areObjectsEqual:r?O:S,arePrimitiveWrappersEqual:k,areRegExpsEqual:E,areSetsEqual:r?c(_,O):_,areTypedArraysEqual:r?O:A,areUrlsEqual:P};if(n&&(i=j({},i,n(i))),e){var o=u(i.areArraysEqual),a=u(i.areMapsEqual),s=u(i.areObjectsEqual),l=u(i.areSetsEqual);i=j({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}(t),h=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areErrorsEqual,i=t.areFunctionsEqual,o=t.areMapsEqual,a=t.areNumbersEqual,s=t.areObjectsEqual,l=t.arePrimitiveWrappersEqual,c=t.areRegExpsEqual,u=t.areSetsEqual,h=t.areTypedArraysEqual,f=t.areUrlsEqual;return function(t,d,p){if(t===d)return!0;
25if(null==t||null==d)return!1;var m=typeof t;if(m!==typeof d)return!1;if("object"!==m)return"number"===m?a(t,d,p):"function"===m&&i(t,d,p);var g=t.constructor;if(g!==d.constructor)return!1;if(g===Object)return s(t,d,p);if(C(t))return e(t,d,p);if(null!=T&&T(t))return h(t,d,p);if(g===Date)return n(t,d,p);if(g===RegExp)return c(t,d,p);if(g===Map)return o(t,d,p);if(g===Set)return u(t,d,p);var v=I(t);return"[object Date]"===v?n(t,d,p):"[object RegExp]"===v?c(t,d,p):"[object Map]"===v?o(t,d,p):"[object Set]"===v?u(t,d,p):"[object Object]"===v?"function"!=typeof t.then&&"function"!=typeof d.then&&s(t,d,p):"[object URL]"===v?f(t,d,p):"[object Error]"===v?r(t,d,p):"[object Arguments]"===v?s(t,d,p):("[object Boolean]"===v||"[object Number]"===v||"[object String]"===v)&&l(t,d,p)}}(l);return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var s=r(),l=s.cache,c=void 0===l?e?new WeakMap:void 0:l,u=s.meta;return n(t,a,{cache:c,equals:i,meta:u,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:r,comparator:h,createState:o,equals:i?i(h):(e=h,function(t,n,r,i,o,a,s){return e(t,n,s)}),strict:s})}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(r)}))}function N(t){return N="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},N(t)}function F(t){return function(t){if(Array.isArray(t))return 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)return;if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B(t,e)}(t)||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.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function z(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=F(r),o=i[0],a=i.slice(1);return"number"==typeof o?void R(n.bind(null,a),o):(n(o),void R(n.bind(null,a)))}"object"===N(r)&&t(r),"function"==typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function H(t){return H="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},H(t)}function V(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 W(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?V(Object(n),!0).forEach((function(e){U(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function U(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==H(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==H(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===H(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $=function(t){return t},q=function(t,e){return Object.keys(e).reduce((function(n,r){return W(W({},n),{},U({},r,t(r,e[r])))}),{})},Y=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")};function K(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
25finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||G(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.")}()}function X(t){return function(t){if(Array.isArray(t))return Q(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||G(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 G(t,e){if(t){if("string"==typeof t)return Q(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)?Q(t,e):void 0}}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var J=1e-4,Z=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},tt=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},et=function(t,e){return function(n){var r=Z(t,e);return tt(r,n)}},nt=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:var s=e[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var l=K(s[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),4);r=l[0],i=l[1],o=l[2],a=l[3]}}[r,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1}));var c,u,h=et(r,o),f=et(i,a),d=(c=r,u=o,function(t){var e=Z(c,u),n=[].concat(X(e.map((function(t,e){return t*e})).slice(1)),[0]);return tt(n,t)}),p=function(t){for(var e,n=t>1?1:t,r=n,i=0;i<8;++i){var o=h(r)-n,a=d(r);if(Math.abs(o-n)<J||a<J)return f(r);r=(e=r-o/a)>1?1:e<0?0:e}return f(r)};return p.isStepper=!1,p},rt=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return nt(r);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,s=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,s=r*a/1e3+t;return Math.abs(s-e)<J&&Math.abs(o)<J?[e,0]:[s,o]};return s.isStepper=!0,s.dt=a,s}();default:if("cubic-bezier"===r.split("(")[0])return nt(r)}return"function"==typeof r?r:null};function it(t){return it="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},it(t)}function ot(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ut(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 at(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 st(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?at(Object(n),!0).forEach((function(e){lt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==it(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
25(t,"string");return"symbol"===it(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||ut(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.")}()}function ut(t,e){if(t){if("string"==typeof t)return ht(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)?ht(t,e):void 0}}function ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ft=function(t,e,n){return t+(e-t)*n},dt=function(t){return t.from!==t.to},pt=function t(e,n,r){var i=q((function(t,n){if(dt(n)){var r=ct(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return st(st({},n),{},{from:i,velocity:o})}return n}),n);return r<1?q((function(t,e){return dt(e)?st(st({},e),{},{velocity:ft(e.velocity,i[t].velocity,r),from:ft(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)};const mt=function(t,e,n,r,i){var o,a,s,l,c=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),u=c.reduce((function(n,r){return st(st({},n),{},lt({},r,[t[r],e[r]]))}),{}),h=c.reduce((function(n,r){return st(st({},n),{},lt({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),f=-1,d=function(){return null};return d=n.isStepper?function(r){s||(s=r);var o=(r-s)/n.dt;h=pt(n,h,o),i(st(st(st({},t),e),q((function(t,e){return e.from}),h))),s=r,Object.values(h).filter(dt).length&&(f=requestAnimationFrame(d))}:function(o){l||(l=o);var a=(o-l)/r,s=q((function(t,e){return ft.apply(void 0,ot(e).concat([n(a)]))}),u);if(i(st(st(st({},t),e),s)),a<1)f=requestAnimationFrame(d);else{var c=q((function(t,e){return ft.apply(void 0,ot(e).concat([n(1)]))}),u);i(st(st(st({},t),e),c))}},function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(f)}}};function gt(t){return gt="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},gt(t)}var vt=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function yt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function bt(t){return function(t){if(Array.isArray(t))return xt(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)return;if("string"==typeof t)return xt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xt(t,e)}(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 xt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wt(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 St(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
vendor: 6,182 bytes, line 25
25e%2?wt(Object(n),!0).forEach((function(e){Ot(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ot(t,e,n){return(e=Et(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Et(r.key),r)}}function Et(t){var e=function(t,e){if("object"!==gt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===gt(e)?e:String(e)}function _t(t,e){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_t(t,e)}function At(t){var e=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 n,r=Ct(t);if(e){var i=Ct(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Pt(this,n)}}function Pt(t,e){if(e&&("object"===gt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Mt(t)}function Mt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ct(t){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ct(t)}var Tt=function(t){!function(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&&_t(t,e)}(a,t);var e,n,i,o=At(a);function a(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var r=(n=o.call(this,t,e)).props,i=r.isActive,s=r.attributeName,l=r.from,c=r.to,u=r.steps,h=r.children,f=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(Mt(n)),n.changeStyle=n.changeStyle.bind(Mt(n)),!i||f<=0)return n.state={style:{}},"function"==typeof h&&(n.state={style:c}),Pt(n);if(u&&u.length)n.state={style:u[0].style};else if(l){if("function"==typeof h)return n.state={style:l},Pt(n);n.state={style:s?Ot({},s,l):l}}else n.state={style:{}};return n}return e=a,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,s=e.from,l=this.state.style;if(r)if(n){if(!(L(t.to,a)&&t.canBegin&&t.isActive)){var c=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||o?s:t.to;if(this.state&&l){var h={style:i?Ot({},i,u):u};(i&&l[i]!==u||!i&&l!==u)&&this.setState(h)}this.runAnimation(St(St({},this.props),{},{from:u,begin:0}))}}else{var f={style:i?Ot({},i,a):a};this.state&&l&&(i&&l[i]!==a||!i&&l!==a)&&this.setState(f)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,a=t.begin,s=t.onAnimationEnd,l=t.onAnimationStart,c=mt(n,r,rt(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=c()},i,s])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],a=o.style,s=o.duration,l=void 0===s?0:s;return this.manager.start([i].concat(bt(n.reduce((function(t,r,i){if(0===i)return t;var o=r.duration,a=r.easing,s=void 0===a?"ease":a,l=r.style,c=r.properties,u=r.onAnimationEnd,h=i>0?n[i-1]:r,f=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(bt(t),[e.runJSAnimation.bind(e,{from:h.style,to:l,duration:o,easing:s}),o]);var d=Y(f,o,s),p=St(St(St({},h.style),l),{},{transition:d});return[].concat(bt(t),[p,o,u]).filter($)}),[a,Math.max(l,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=z());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,s=t.onAnimationEnd,l=t.steps,c=t.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof c&&"spring"!==o)if(l.length>1)this.runStepAnimation(t);else{var h=r?Ot({},r,i):i,f=Y(Object.keys(h),n,o);u.start([a,e,St(St({},h),{},{transition:f}),n,s])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,yt(t,vt)),a=r.Children.count(e),s=this.state.style;if("function"==typeof e)return e(s);if(!i||0===a||n<=0)return e;var l=function(t){var e=t.props,n=e.style,i=void 0===n?{}:n,a=e.className;return(0,r.cloneElement)(t,St(St({},o),{},{style:St(St({},i),s),className:a}))};return 1===a?l(r.Children.only(e)):r.createElement("div",null,r.Children.map(e,(function(t){return l(t)})))}}])&&kt(e.prototype,n),i&&kt(e,i),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.PureComponent);Tt.displayName="Animate",Tt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}}
25,Tt.propTypes={from:o().oneOfType([o().object,o().string]),to:o().oneOfType([o().object,o().string]),attributeName:o().string,duration:o().number,begin:o().number,easing:o().oneOfType([o().string,o().func]),steps:o().arrayOf(o().shape({duration:o().number.isRequired,style:o().object.isRequired,easing:o().oneOfType([o().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),o().func]),properties:o().arrayOf("string"),onAnimationEnd:o().func})),children:o().oneOfType([o().node,o().func]),isActive:o().bool,canBegin:o().bool,onAnimationEnd:o().func,shouldReAnimate:o().bool,onAnimationStart:o().func,onAnimationReStart:o().func};const jt=Tt},16499:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(36043),s=n(1103),l=n(72652);r({target:"Promise",stat:!0,forced:n(90537)},{all:function(t){var e=this,n=a.f(e),r=n.resolve,c=n.reject,u=s((function(){var n=o(e.resolve),a=[],s=0,u=1;l(t,(function(t){var o=s++,l=!1;u++,i(n,e,t).then((function(t){l||(l=!0,a[o]=t,--u||r(a))}),c)})),--u||r(a)}));return u.error&&c(u.value),n.promise}})},16575:(t,e,n)=>{"use strict";var r=n(39297);t.exports=function(t){return void 0!==t&&(r(t,"value")||r(t,"writable"))}},16823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},17255:(t,e,n)=>{var r=n(47422);t.exports=function(t){return function(e){return r(e,t)}}},17277:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}},17400:(t,e,n)=>{var r=n(99374),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},17670:(t,e,n)=>{var r=n(12651);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},18014:(t,e,n)=>{"use strict";var r=n(91291),i=Math.min;t.exports=function(t){var e=r(t);return e>0?i(e,9007199254740991):0}},18111:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(90679),a=n(28551),s=n(94901),l=n(42787),c=n(62106),u=n(97040),h=n(79039),f=n(39297),d=n(78227),p=n(57657).IteratorPrototype,m=n(43724),g=n(96395),v="constructor",y="Iterator",b=d("toStringTag"),x=TypeError,w=i[y],S=g||!s(w)||w.prototype!==p||!h((function(){w({})})),O=function(){if(o(this,p),l(this)===p)throw new x("Abstract class Iterator not directly constructable")},k=function(t,e){m?c(p,t,{configurable:!0,get:function(){return e},set:function(e){if(a(this),this===p)throw new x("You can't redefine this property");f(this,t)?this[t]=e:u(this,t,e)}}):p[t]=e};f(p,b)||k(b,y),!S&&f(p,v)&&p[v]!==Object||k(v,O),O.prototype=p,r({global:!0,constructor:!0,forced:S},{Iterator:O})},18237:(t,e,n)=>{"use strict";var r=n(46518),i=n(72652),o=n(79306),a=n(28551),s=n(1767),l=n(9539),c=n(84549),u=n(18745),h=n(79039),f=TypeError,d=h((function(){[].keys().reduce((function(){}),void 0)})),p=!d&&c("reduce",f);r({target:"Iterator",proto:!0,real:!0,forced:d||p},{reduce:function(t){a(this);try{o(t)}catch(t){l(this,"throw",t)}var e=arguments.length<2,n=e?void 0:arguments[1];if(p)return u(p,this,e?[t]:[t,n]);var r=s(this),c=0;if(i(r,(function(r){e?(e=!1,n=r):n=t(n,r,c),c++}),{IS_RECORD:!0}),e)throw new f("Reduce of empty iterator with no initial value");return n}})},18265:t=>{"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},18745:(t,e,n)=>{"use strict";var r=n(40616),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},18814:(t,e,n)=>{"use strict";var r=n(79039),i=n(44576).RegExp;t.exports=r((function(){var t=i("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},19167:(t,e,n)=>{"use strict";var r=n(44576);t.exports=r},19219:t=>{t.exports=function(t,e){return t.has(e)}},19462:(t,e,n)=>{"use strict";var r=n(69565),i=n(2360),o=n(66699),a=n(56279),s=n(78227),l=n(91181),c=n(55966),u=n(57657).IteratorPrototype,h=n(62529),f=n(9539),d=n(91385),p=s("toStringTag"),m="IteratorHelper",g="WrapForValidIterator",v="normal",y="throw",b=l.set,x=function(t){var e=l.getterFor(t?g:m);return a(i(u),{next:function(){var n=e(this);if(t)return n.nextHandler();if(n.done)return h(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:h(r,n.done)}catch(t){throw n.done=!0,t}},return:function(){var n=e(this),i=n.iterator;if(n.done=!0,t){var o=c(i,"return");return o?r(o,i):h(void 0,!0)}if(n.inner)try{f(n.inner.iterator,v)}catch(t){return f(i,y,t)}if(n.openIters)try{d(n.openIters,v)}catch(t){return f(i,y,t)}return i&&f(i,v),h(void 0,!0)}})},w=x(!0),S=x(!1);o(S,p,"Iterator Helper"),t.exports=function(t,e,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=e?g:m,i.returnHandlerResult=!!n,i.nextHandler=t,i.counter=0,i.done=!1,b(this,i)};return r.prototype=e?w:S,r}},19570:(t,e,n)=>{var r=n(37334),i=n(93243),o=n(83488),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},19617:(t,e,n)=>{"use strict";var r=n(25397),i=n(35610),o=n(26198),a=function(t){return function(e,n,a){var s=r(e),l=o(s);if(0===l)return!t&&-1;var c,u=i(a,l);if(t&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((t||u in s)&&s[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},19730:(t,e,n)=>{"use strict";n.d(e,{P2:()=>ot,pr:()=>et,bx:()=>at,vh:()=>rt,sl:()=>nt});var r=n(73916),i=n.n(r),o=n(19747),a=n.n(o),s=n(63036),l=n(94501),c=n(59744),u=n(96540),h=n(34164),f=n(16473),d=n(2404),p=n.n(d),m=n(69843),g=n.n(m),v=n(86069),y=n(51738),b=function(t){return null};b.displayName="Cell";var x=n(5614),w=n(59938),S=n(98940),O=n(11561),k=n(15079),E=["x","y"];function _(t){return _="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)}function A(){return A=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},A.apply(this,arguments)}function P(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 M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?P(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function C(t,e,n){var r;return r=function(t,e){if("object"!=_(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==_(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function j(t,e){var n=t.x,r=t.y,i=T(t,E),o="".concat(n),a=parseInt(o,10),s="".concat(r),l=parseInt(s,10),c="".concat(e.height||i.height),u=parseInt(c,10),h="".concat(e.width||i.width),f=parseInt(h,10);return M(M(M(M(M({},e),i),a?{x:a}:{}),l?{y:l}:{}),{},{height:u,width:f,name:e.name,radius:e.radius})}function I(t){return u.createElement(k.yp,A({shapeType:"rectangle",propTransformer:j,activeClassName:"recharts-active-bar"},t))}var L,D=["value","background"];function R(t){return R="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},R(t)}function N(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function F(){return F=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},F.apply(this,arguments)}function B(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 z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?B(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Y(r.key),r)}}function V(t,e,n){return e=U(e),function(t,e){if(e&&("object"===R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,W()?Reflect.construct(e,n||[],U(t).constructor):e.apply(t,n))}function W(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(W=function(){return!!t})()}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}function q(t,e,n){return(e=Y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
25(t,"string");return"symbol"==R(e)?e:e+""}var K=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return q(t=V(this,e,[].concat(r)),"state",{isAnimationFinished:!1}),q(t,"id",(0,c.NF)("recharts-bar-")),q(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),q(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return function(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&&$(t,e)}(e,t),n=e,i=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],(r=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.dataKey,o=n.activeIndex,a=n.activeBar,s=(0,l.J9)(this.props,!1);return t&&t.map((function(t,n){var l=n===o,c=l?a:r,h=z(z(z({},s),t),{},{isActive:l,option:c,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return u.createElement(v.W,F({className:"recharts-bar-rectangle"},(0,S.XC)(e.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(n)}),u.createElement(I,h))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,s=e.animationEasing,l=e.animationId,h=this.state.prevData;return u.createElement(f.Ay,{begin:o,duration:a,isActive:i,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=n.map((function(t,e){var n=h&&h[e];if(n){var o=(0,c.Dj)(n.x,t.x),a=(0,c.Dj)(n.y,t.y),s=(0,c.Dj)(n.width,t.width),l=(0,c.Dj)(n.height,t.height);return z(z({},t),{},{x:o(i),y:a(i),width:s(i),height:l(i)})}if("horizontal"===r){var u=(0,c.Dj)(0,t.height)(i);return z(z({},t),{},{y:t.y+t.height-u,height:u})}var f=(0,c.Dj)(0,t.width)(i);return z(z({},t),{},{width:f})}));return u.createElement(v.W,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&p()(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,r=e.dataKey,i=e.activeIndex,o=(0,l.J9)(this.props.background,!1);return n.map((function(e,n){e.value;var a=e.background,s=N(e,D);if(!a)return null;var l=z(z(z(z(z({},s),{},{fill:"#eee"},a),o),(0,S.XC)(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,className:"recharts-bar-background-rectangle"});return u.createElement(I,F({key:"background-bar-".concat(n),option:t.props.background,isActive:n===i},l))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,a=n.layout,c=n.children,h=(0,l.aS)(c,y.u);if(!h)return null;var f="vertical"===a?r[0].height/2:r[0].width/2,d=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:(0,s.kr)(t,e)}},p={clipPath:t?"url(#clipPath-".concat(e,")"):null};return u.createElement(v.W,p,h.map((function(t){return u.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,offset:f,dataPointFormatter:d})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,o=t.yAxis,a=t.left,s=t.top,l=t.width,c=t.height,f=t.isAnimationActive,d=t.background,p=t.id;if(e||!n||!n.length)return null;var m=this.state.isAnimationFinished,y=(0,h.A)("recharts-bar",r),b=i&&i.allowDataOverflow,w=o&&o.allowDataOverflow,S=b||w,O=g
25()(p)?this.id:p;return u.createElement(v.W,{className:y},b||w?u.createElement("defs",null,u.createElement("clipPath",{id:"clipPath-".concat(O)},u.createElement("rect",{x:b?a:a-l/2,y:w?s:s-c/2,width:b?l:2*l,height:w?c:2*c}))):null,u.createElement(v.W,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(O,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,O),(!f||m)&&x.Z.renderCallByParent(this.props,n))}}])&&H(n.prototype,r),i&&H(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(u.PureComponent);function X(t){return X="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},X(t)}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tt(r.key),r)}}function Q(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 J(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(n),!0).forEach((function(e){Z(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Z(t,e,n){return(e=tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t){var e=function(t,e){if("object"!=X(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=X(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==X(e)?e:e+""}L=K,q(K,"displayName","Bar"),q(K,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!w.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),q(K,"getComposedData",(function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,u=t.xAxisTicks,h=t.yAxisTicks,f=t.stackedData,d=t.dataStartIndex,p=t.displayedData,m=t.offset,g=(0,s.xi)(r,n);if(!g)return null;var v=e.layout,y=n.type.defaultProps,x=void 0!==y?z(z({},y),n.props):n.props,w=x.dataKey,S=x.children,k=x.minPointSize,E="horizontal"===v?a:o,_=f?E.scale.domain():null,A=(0,s.DW)({numericAxis:E}),P=(0,l.aS)(S,b),M=p.map((function(t,e){var r,l,p,m,y,b;f?r=(0,s._f)(f[d+e],_):(r=(0,s.kr)(t,w),Array.isArray(r)||(r=[A,r]));var x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof t)return t;var i=(0,c.Et)(n)||(0,c.uy)(n);return i?t(n,r):(i||(0,O.A)(!1),e)}}(k,L.defaultProps.minPointSize)(r[1],e);if("horizontal"===v){var S,E=[a.scale(r[0]),a.scale(r[1])],M=E[0],C=E[1];l=(0,s.y2)({axis:o,ticks:u,bandSize:i,offset:g.offset,entry:t,index:e}),p=null!==(S=null!=C?C:M)&&void 0!==S?S:void 0,m=g.size;var T=M-C;if(y=Number.isNaN(T)?0:T,b={x:l,y:a.y,width:m,height:a.height},Math.abs(x)>0&&Math.abs(y)<Math.abs(x)){var j=(0,c.sA)(y||x)*(Math.abs(x)-Math.abs(y));p-=j,y+=j}}else{var I=[o.scale(r[0]),o.scale(r[1])],D=I[0],R=I[1];if(l=D,p=(0,s.y2)({axis:a,ticks:h,bandSize:i,offset:g.offset,entry:t,index:e}),m=R-D,y=g.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(x)>0&&Math.abs(m)<Math.abs(x))m+=(0,c.sA)(m||x)*(Math.abs(x)-Math.abs(m))}return z(z(z({},t),{},{x:l,y:p,width:m,height:y,value:f?r:r[1],payload:t,background:b},P&&P[e]&&P[e].props),{},{tooltipPayload:[(0,s.zb)(n,t)],tooltipPosition:{x:l+m/2,y:p+y/2}})}));return z({data:M,layout:v},m)}));var et=function(t,e,n,r,i){var o=t.width,a=t.height,u=t.layout,h=t.children,f=Object.keys(e),d={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},p=!!(0,l.BU)(h,K);return f.reduce((function(o,a){var l,h,f,m,g,v=e[a],y=v.orientation,b=v.domain,x=v.padding,w=void 0===x?{}:x,S=v.mirror,O=v.reversed,k="".concat(y).concat(S?"Mirror":"");
25if("number"===v.type&&("gap"===v.padding||"no-gap"===v.padding)){var E=b[1]-b[0],_=1/0,A=v.categoricalDomain.sort(c.ck);if(A.forEach((function(t,e){e>0&&(_=Math.min((t||0)-(A[e-1]||0),_))})),Number.isFinite(_)){var P=_/E,M="vertical"===v.layout?n.height:n.width;if("gap"===v.padding&&(l=P*M/2),"no-gap"===v.padding){var C=(0,c.F4)(t.barCategoryGap,P*M),T=P*M/2;l=T-C-(T-C)/M*C}}}h="xAxis"===r?[n.left+(w.left||0)+(l||0),n.left+n.width-(w.right||0)-(l||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(l||0),n.top+n.height-(w.bottom||0)-(l||0)]:v.range,O&&(h=[h[1],h[0]]);var j=(0,s.W7)(v,i,p),I=j.scale,L=j.realScaleType;I.domain(b).range(h),(0,s.YB)(I);var D=(0,s.w7)(I,J(J({},v),{},{realScaleType:L}));"xAxis"===r?(g="top"===y&&!S||"bottom"===y&&S,f=n.left,m=d[k]-g*v.height):"yAxis"===r&&(g="left"===y&&!S||"right"===y&&S,f=d[k]-g*v.width,m=n.top);var R=J(J(J({},v),D),{},{realScaleType:L,x:f,y:m,scale:I,width:"xAxis"===r?n.width:v.width,height:"yAxis"===r?n.height:v.height});return R.bandSize=(0,s.Hj)(R,D),v.hide||"xAxis"!==r?v.hide||(d[k]+=(g?-1:1)*R.width):d[k]+=(g?-1:1)*R.height,J(J({},o),{},Z({},a,R))}),{})},nt=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},rt=function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return nt({x:e,y:n},{x:r,y:i})},it=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}return e=t,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&G(e.prototype,n),r&&G(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();Z(it,"EPS",1e-4);var ot=function(t){var e=Object.keys(t).reduce((function(e,n){return J(J({},e),{},Z({},n,it.create(t[n])))}),{});return J(J({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return i()(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:o})}))},isInRange:function(t){return a()(t,(function(t,n){return e[n].isInRange(t)}))}})};var at=function(t){var e=t.width,n=t.height,r=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=r*Math.PI/180,o=Math.atan(n/e),a=i>o&&i<Math.PI-o?n/Math.sin(i):e/Math.cos(i);return Math.abs(a)}},19747:(t,e,n)=>{var r=n(17277),i=n(23777),o=n(15389),a=n(56449),s=n(36800);t.exports=function(t,e,n){var l=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),l(t,o(e,3))}},20034:(t,e,n)=>{"use strict";var r=n(94901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}
25},20116:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(t){s(this);try{a(t)}catch(t){c(this,"throw",t)}if(u)return i(u,this,t);var e=l(this),n=0;return o(e,(function(e,r){if(t(e,n++))return r(e)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},20317:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},20397:(t,e,n)=>{"use strict";var r=n(97751);t.exports=r("document","documentElement")},21549:(t,e,n)=>{var r=n(22032),i=n(63862),o=n(66721),a=n(12749),s=n(35749);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},21699:(t,e,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(60511),a=n(67750),s=n(655),l=n(41436),c=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~c(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},21986:(t,e,n)=>{var r=n(51873),i=n(37828),o=n(75288),a=n(25911),s=n(20317),l=n(84247),c=r?r.prototype:void 0,u=c?c.valueOf
25:void 0;t.exports=function(t,e,n,r,c,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!h(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=l),t.size!=e.size&&!p)return!1;var m=f.get(t);if(m)return m==e;r|=2,f.set(t,e);var g=a(d(t),d(e),r,c,h,f);return f.delete(t),g;case"[object Symbol]":if(u)return u.call(t)==u.call(e)}return!1}},22032:(t,e,n)=>{var r=n(81042);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},22195:(t,e,n)=>{"use strict";var r=n(79504),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},22489:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),l=n(19462),c=n(96319),u=n(96395),h=n(9539),f=n(30684),d=n(84549),p=!u&&!f("filter",(function(){})),m=!u&&!p&&d("filter",TypeError),g=u||p||m,v=l((function(){for(var t,e,n=this.iterator,r=this.predicate,o=this.next;;){if(t=a(i(o,n)),this.done=!!t.done)return;if(e=t.value,c(n,r,[e,this.counter++],!0))return e}}));r({target:"Iterator",proto:!0,real:!0,forced:g},{filter:function(t){a(this);try{o(t)}catch(t){h(this,"throw",t)}return m?i(m,this,t):new v(s(this),{predicate:t})}})},22551:(t,e,n)=>{"use strict";var r=n(96540),i=n(69982);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(t,e){c(t,e),c(t+"Capture",e)}function c(t,e){for(s[t]=e,t=0;t<e.length;t++)a.add(e[t])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),h=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function m(t,e,n,r,i,o,a){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){g[t]=new m(t,0,!1,t,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];g[e]=new m(e,1,!1,t[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){g[t]=new m(t,2,!1,t.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){g[t]=new m(t,2,!1,t,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){g[t]=new m(t,3,!1,t.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(t){g[t]=new m(t,3,!0,t,null,!1,!1)})),["capture","download"].forEach((function(t){g[t]=new m(t,4,!1,t,null,!1,!1)})),["cols","rows","size","span"].forEach((function(t){g[t]=new m(t,6,!1,t,null,!1,!1)})),["rowSpan","start"].forEach((function(t){g[t]=new m(t,5,!1,t.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(t){return t[1].toUpperCase()}function b(t,e,n,r){var i=g.hasOwnProperty(e)?g[e]:null;(null!==i?0!==i.type:r||!(2<e.length)||"o"!==e[0]&&"O"!==e[0]||"n"!==e[1]&&"N"!==e[1])&&(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;
vendor: 4,105 bytes, line 25
25if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!h.call(p,t)||!h.call(d,t)&&(f.test(t)?p[t]=!0:(d[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(v,y);g[e]=new m(e,1,!1,t,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(v,y);g[e]=new m(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(v,y);g[e]=new m(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(t){g[t]=new m(t,1,!1,t.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(t){g[t]=new m(t,1,!1,t.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),A=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function D(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=L&&t[L]||t["@@iterator"])?t:null}var R,N=Object.assign;function F(t){if(void 0===R)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);R=e&&e[1]||""}return"\n"+R+t}var B=!1;function z(t,e){if(!t||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(e,[])}catch(t){var r=t}Reflect.construct(t,[],e)}else{try{e.call()}catch(t){r=t}t.call(e.prototype)}else{try{throw Error()}catch(t){r=t}t()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}}while(1<=a&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}
vendor: 7,427 bytes, line 25
25return(t=t?t.displayName||t.name:"")?F(t):""}function H(t){switch(t.tag){case 5:return F(t.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return t=z(t.type,!1);case 11:return t=z(t.type.render,!1);case 1:return t=z(t.type,!0);default:return""}}function V(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case O:return"Fragment";case S:return"Portal";case E:return"Profiler";case k:return"StrictMode";case M:return"Suspense";case C:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case A:return(t.displayName||"Context")+".Consumer";case _:return(t._context.displayName||"Context")+".Provider";case P:var e=t.render;return(t=t.displayName)||(t=""!==(t=e.displayName||e.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case T:return null!==(e=t.displayName||null)?e:V(t.type)||"Memo";case j:e=t._payload,t=t._init;try{return V(t(e))}catch(t){}}return null}function W(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=(t=e.render).displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(e);case 8:return e===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e}return null}function U(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":case"object":return t;default:return""}}function $(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function q(t){t._valueTracker||(t._valueTracker=function(t){var e=$(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Y(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=$(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function K(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function X(t,e){var n=e.checked;return N({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function G(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=U(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function Q(t,e){null!=(e=e.checked)&&b(t,"checked",e,!1)}function J(t,e){Q(t,e);var n=U(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&tt(t,e.type,U(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Z(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function tt(t,e,n){"number"===e&&K(t.ownerDocument)===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var et=Array.isArray;function nt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+U(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function rt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(o(91));return N({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function it(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(o(92));if(et(n)){if(1<n.length)throw Error(o(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:U(n)}}function ot(t,e){var n=U(e.value),r=U(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function at(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?st(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ct,ut,ht=(ut=function(t,e){if("http://www.w3.org/2000/svg"!==t.namespaceURI||"innerHTML"in t)t.innerHTML=e;else{for((ct=ct||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ct.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return ut(t,e)}))}:ut);function ft(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var dt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pt=["Webkit","ms","Moz","O"];function mt(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||dt.hasOwnProperty(t)&&dt[t]?(""+e).trim():e+"px"}function gt(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=mt(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(dt).forEach((function(t){pt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),dt[e]=dt[t]}))}
vendor: 4,754 bytes, line 25
25));var vt=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yt(t,e){if(e){if(vt[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(o(137,t));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(o(60));if("object"!=typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=e.style&&"object"!=typeof e.style)throw Error(o(62))}}function bt(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=null;function wt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var St=null,Ot=null,kt=null;function Et(t){if(t=bi(t)){if("function"!=typeof St)throw Error(o(280));var e=t.stateNode;e&&(e=wi(e),St(t.stateNode,t.type,e))}}function _t(t){Ot?kt?kt.push(t):kt=[t]:Ot=t}function At(){if(Ot){var t=Ot,e=kt;if(kt=Ot=null,Et(t),e)for(t=0;t<e.length;t++)Et(e[t])}}function Pt(t,e){return t(e)}function Mt(){}var Ct=!1;function Tt(t,e,n){if(Ct)return t(e,n);Ct=!0;try{return Pt(t,e,n)}finally{Ct=!1,(null!==Ot||null!==kt)&&(Mt(),At())}}function jt(t,e){var n=t.stateNode;if(null===n)return null;var r=wi(n);if(null===r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!=typeof n)throw Error(o(231,e,typeof n));return n}var It=!1;if(u)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){It=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(ut){It=!1}function Dt(t,e,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(t){this.onError(t)}}var Rt=!1,Nt=null,Ft=!1,Bt=null,zt={onError:function(t){Rt=!0,Nt=t}};function Ht(t,e,n,r,i,o,a,s,l){Rt=!1,Nt=null,Dt.apply(zt,arguments)}function Vt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{!!(4098&(e=t).flags)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function Wt(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function Ut(t){if(Vt(t)!==t)throw Error(o(188))}function $t(t){return null!==(t=function(t){var e=t.alternate;if(!e){if(null===(e=Vt(t)))throw Error(o(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ut(i),t;if(a===r)return Ut(i),e;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?t:e}(t))?qt(t):null}function qt(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var e=qt(t);if(null!==e)return e;t=t.sibling}return null}var Yt=i.unstable_scheduleCallback,Kt=i.unstable_cancelCallback,Xt=i.unstable_shouldYield,Gt=i.unstable_requestPaint,Qt=i.unstable_now,Jt=i.unstable_getCurrentPriorityLevel,Zt=i.unstable_ImmediatePriority,te=i.unstable_UserBlockingPriority,ee=i.unstable_NormalPriority,ne=i.unstable_LowPriority,re=i.unstable_IdlePriority,ie=null,oe=null;var ae=Math.clz32?Math.clz32:function(t){return t>>>=0,0===t?32:31-(se(t)/le|0)|0},se=Math.log,le=Math.LN2;var ce=64,ue=4194304;function he(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&t;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&t;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function fe(t,e){var n=t.pendingLanes;if(0===n)return 0;var r=0,i=t.suspendedLanes,o=t.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;
vendor: 2,069 bytes, line 25
250!==s?r=he(s):0!==(o&=a)&&(r=he(o))}else 0!==(a=n&~i)?r=he(a):0!==o&&(r=he(o));if(0===r)return 0;if(0!==e&&e!==r&&!(e&i)&&((i=r&-r)>=(o=e&-e)||16===i&&4194240&o))return e;if(4&r&&(r|=16&n),0!==(e=t.entangledLanes))for(t=t.entanglements,e&=r;0<e;)i=1<<(n=31-ae(e)),r|=t[n],e&=~i;return r}function de(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;default:return-1}}function pe(t){return 0!==(t=-1073741825&t.pendingLanes)?t:1073741824&t?1073741824:0}function me(){var t=ce;return!(4194240&(ce<<=1))&&(ce=64),t}function ge(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ve(t,e,n){t.pendingLanes|=e,536870912!==e&&(t.suspendedLanes=0,t.pingedLanes=0),(t=t.eventTimes)[e=31-ae(e)]=n}function ye(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-ae(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var be=0;function xe(t){return 1<(t&=-t)?4<t?268435455&t?16:536870912:4:1}var we,Se,Oe,ke,Ee,_e=!1,Ae=[],Pe=null,Me=null,Ce=null,Te=new Map,je=new Map,Ie=[],Le="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function De(t,e){switch(t){case"focusin":case"focusout":Pe=null;break;case"dragenter":case"dragleave":Me=null;break;case"mouseover":case"mouseout":Ce=null;break;case"pointerover":case"pointerout":Te.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":je.delete(e.pointerId)}}function Re(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==e&&(null!==(e=bi(e))&&Se(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,null!==i&&-1===e.indexOf(i)&&e.push(i),t)}function Ne(t){var e=yi(t.target);if(null!==e){var n=Vt(e);
vendor: 6,942 bytes, line 25
25if(null!==n)if(13===(e=n.tag)){if(null!==(e=Wt(n)))return t.blockedOn=e,void Ee(t.priority,(function(){Oe(n)}))}else if(3===e&&n.stateNode.current.memoizedState.isDehydrated)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Fe(t){if(null!==t.blockedOn)return!1;for(var e=t.targetContainers;0<e.length;){var n=Xe(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(null!==n)return null!==(e=bi(n))&&Se(e),t.blockedOn=n,!1;var r=new(n=t.nativeEvent).constructor(n.type,n);xt=r,n.target.dispatchEvent(r),xt=null,e.shift()}return!0}function Be(t,e,n){Fe(t)&&n.delete(e)}function ze(){_e=!1,null!==Pe&&Fe(Pe)&&(Pe=null),null!==Me&&Fe(Me)&&(Me=null),null!==Ce&&Fe(Ce)&&(Ce=null),Te.forEach(Be),je.forEach(Be)}function He(t,e){t.blockedOn===e&&(t.blockedOn=null,_e||(_e=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ze)))}function Ve(t){function e(e){return He(e,t)}if(0<Ae.length){He(Ae[0],t);for(var n=1;n<Ae.length;n++){var r=Ae[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==Pe&&He(Pe,t),null!==Me&&He(Me,t),null!==Ce&&He(Ce,t),Te.forEach(e),je.forEach(e),n=0;n<Ie.length;n++)(r=Ie[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Ie.length&&null===(n=Ie[0]).blockedOn;)Ne(n),null===n.blockedOn&&Ie.shift()}var We=x.ReactCurrentBatchConfig,Ue=!0;function $e(t,e,n,r){var i=be,o=We.transition;We.transition=null;try{be=1,Ye(t,e,n,r)}finally{be=i,We.transition=o}}function qe(t,e,n,r){var i=be,o=We.transition;We.transition=null;try{be=4,Ye(t,e,n,r)}finally{be=i,We.transition=o}}function Ye(t,e,n,r){if(Ue){var i=Xe(t,e,n,r);if(null===i)Ur(t,e,r,Ke,n),De(t,r);else if(function(t,e,n,r,i){switch(e){case"focusin":return Pe=Re(Pe,t,e,n,r,i),!0;case"dragenter":return Me=Re(Me,t,e,n,r,i),!0;case"mouseover":return Ce=Re(Ce,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Te.set(o,Re(Te.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,je.set(o,Re(je.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r))r.stopPropagation();else if(De(t,r),4&e&&-1<Le.indexOf(t)){for(;null!==i;){var o=bi(i);if(null!==o&&we(o),null===(o=Xe(t,e,n,r))&&Ur(t,e,r,Ke,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Ur(t,e,r,null,n)}}var Ke=null;function Xe(t,e,n,r){if(Ke=null,null!==(t=yi(t=wt(r))))if(null===(e=Vt(t)))t=null;else if(13===(n=e.tag)){if(null!==(t=Wt(e)))return t;t=null}else if(3===n){if(e.stateNode.current.memoizedState.isDehydrated)return 3===e.tag?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Ke=t,null}function Ge(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Jt()){case Zt:return 1;case te:return 4;case ee:case ne:return 16;case re:return 536870912;default:return 16}default:return 16}}var Qe=null,Je=null,Ze=null;function tn(){if(Ze)return Ze;var t,e,n=Je,r=n.length,i="value"in Qe?Qe.value:Qe.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Ze=i.slice(t,1<e?1-e:void 0)}function en(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function nn(){return!0}function rn(){return!1}function on(t){function e(e,n,r,i,o){for(var a in this._reactName=e,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,t)t.hasOwnProperty(a)&&(e=t[a],this[a]=e?e(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),e}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),hn=N({},cn,{view:0,detail:0}),fn=on(hn),dn=N({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(t){return void 0===t.relatedTarget?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ln&&(ln&&"mousemove"===t.type?(an=t.screenX-ln.screenX,sn=t.screenY-ln.screenY):sn=an=0,ln=t),an)},movementY:function(t){return"movementY"in t?t.movementY:sn}}),pn=on(dn),mn=on(N({},dn,{dataTransfer:0})),gn=on(N({},hn,{relatedTarget:0})),vn=on(N({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=N({},cn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(N({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=On[t])&&!!e[t]}function En(){return kn}var _n=N({},hn,{key:function(t){if(t.key){var e=wn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=en(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"ke
25yup"===t.type?Sn[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(t){return"keypress"===t.type?en(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?en(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),An=on(_n),Pn=on(N({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Mn=on(N({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Cn=on(N({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=N({},dn,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),jn=on(Tn),In=[9,13,27,32],Ln=u&&"CompositionEvent"in window,Dn=null;u&&"documentMode"in document&&(Dn=document.documentMode);var Rn=u&&"TextEvent"in window&&!Dn,Nn=u&&(!Ln||Dn&&8<Dn&&11>=Dn),Fn=String.fromCharCode(32),Bn=!1;function zn(t,e){switch(t){case"keyup":return-1!==In.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Vn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Wn[t.type]:"textarea"===e}function $n(t,e,n,r){_t(r),0<(e=qr(e,"onChange")).length&&(n=new un("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var qn=null,Yn=null;function Kn(t){Fr(t,0)}function Xn(t){if(Y(xi(t)))return t}function Gn(t,e){if("change"===t)return e}var Qn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),Zn="function"==typeof tr.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function er(){qn&&(qn.detachEvent("onpropertychange",nr),Yn=qn=null)}function nr(t){if("value"===t.propertyName&&Xn(Yn)){var e=[];$n(e,Yn,t,wt(t)),Tt(Kn,e)}}function rr(t,e,n){"focusin"===t?(er(),Yn=n,(qn=e).attachEvent("onpropertychange",nr)):"focusout"===t&&er()}function ir(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Xn(Yn)}function or(t,e){if("click"===t)return Xn(e)}function ar(t,e){if("input"===t||"change"===t)return Xn(e)}var sr="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e};function lr(t,e){if(sr(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!h.call(e,i)||!sr(t[i],e[i]))return!1}return!0}function cr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ur(t,e){var n,r=cr(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=cr(r)}}function hr(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?hr(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function fr(){for(var t=window,e=K();e instanceof t.HTMLIFrameElement;){try{var n="string"==typeof e.contentWindow.location.href}catch(t){n=!1}if(!n)break;e=K((t=e.contentWindow).document)}return e}function dr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}function pr(t){var e=fr(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(e=r.start,void 0===(t=r.end)&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if((t=(e=n.ownerDocument||document)&&e.defaultView||window).getSelection){t=t.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!t.extend&&o>r&&(i=r,r=o,o=i),i=ur(n,o);var a=ur(n,r);i&&a&&(1!==t.rangeCount||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&((e=e.createRange()).setStart(i.node,i.offset),t.removeAllRanges(),o>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<e.length;n++)(t=e[n]).element.scrollLeft=t.left,t.element.scrollTop=t.top}}var mr=u&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(t,e,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==K(r)||("selectionStart"in(r=gr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 10,428 bytes, line 25
25sNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(e=new un("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=gr)))}function wr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Or={},kr={};function Er(t){if(Or[t])return Or[t];if(!Sr[t])return t;var e,n=Sr[t];for(e in n)if(n.hasOwnProperty(e)&&e in kr)return Or[t]=n[e];return t}u&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Er("animationend"),Ar=Er("animationiteration"),Pr=Er("animationstart"),Mr=Er("transitionend"),Cr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jr(t,e){Cr.set(t,e),l(e,[t])}for(var Ir=0;Ir<Tr.length;Ir++){var Lr=Tr[Ir];jr(Lr.toLowerCase(),"on"+(Lr[0].toUpperCase()+Lr.slice(1)))}jr(_r,"onAnimationEnd"),jr(Ar,"onAnimationIteration"),jr(Pr,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(Mr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Nr(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,function(t,e,n,r,i,a,s,l,c){if(Ht.apply(this,arguments),Rt){if(!Rt)throw Error(o(198));var u=Nt;Rt=!1,Nt=null,Ft||(Ft=!0,Bt=u)}}(r,e,void 0,t),t.currentTarget=null}function Fr(t,e){e=!!(4&e);for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;t:{var o=void 0;if(e)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break t;Nr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break t;Nr(i,s,c),o=l}}}if(Ft)throw t=Bt,Ft=!1,Bt=null,t}function Br(t,e){var n=e[mi];void 0===n&&(n=e[mi]=new Set);var r=t+"__bubble";n.has(r)||(Wr(e,t,2,!1),n.add(r))}function zr(t,e,n){var r=0;e&&(r|=4),Wr(n,t,r,e)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Vr(t){if(!t[Hr]){t[Hr]=!0,a.forEach((function(e){"selectionchange"!==e&&(Rr.has(e)||zr(e,!1,t),zr(e,!0,t))}));var e=9===t.nodeType?t:t.ownerDocument;null===e||e[Hr]||(e[Hr]=!0,zr("selectionchange",!1,e))}}function Wr(t,e,n,r){switch(Ge(e)){case 1:var i=$e;break;case 4:i=qe;break;default:i=Ye}n=i.bind(null,e,n,t),i=void 0,!It||"touchstart"!==e&&"touchmove"!==e&&"wheel"!==e||(i=!0),r?void 0!==i?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):void 0!==i?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Ur(t,e,n,r,i){var o=r;if(!(1&e||2&e||null===r))t:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=yi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue t}s=s.parentNode}}r=r.return}Tt((function(){var r=o,i=wt(n),a=[];t:{var s=Cr.get(t);if(void 0!==s){var l=un,c=t;switch(t){case"keypress":if(0===en(n))break t;case"keydown":case"keyup":l=An;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Mn;break;case _r:case Ar:case Pr:l=vn;break;case Mr:l=Cn;break;case"scroll":l=fn;break;case"wheel":l=jn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var u=!!(4&e),h=!u&&"scroll"===t,f=u?null!==s?s+"Capture":null:s;u=[];for(var d,p=r;null!==p;){var m=(d=p).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==f&&(null!=(m=jt(p,f))&&u.push($r(p,m,d)))),h)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&e)){if(l="mouseout"===t||"pointerout"===t,(!(s="mouseover"===t||"pointerover"===t)||n===xt||!(c=n.relatedTarget||n.fromElement)||!yi(c)&&!c[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?yi(c):null)&&(c!==(h=Vt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==t&&"pointerover"!==t||(u=Pn,m="onPointerLeave",f="onPointerEnter",p="pointer"),h=null==l?s:xi(l),d=null==c?s:xi(c),(s=new u(m,p+"leave",l,n,i)).target=h,s.relatedTarget=d,m=null,yi(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=d,u.relatedTarget=h,m=u),h=m,l&&c)t:{for(f=c,p=0,d=u=l;d;d=Yr(d))p++;for(d=0,m=f;m;m=Yr(m))d++;for(;0<p-d;)u=Yr(u),p--;for(;0<d-p;)f=Yr(f),d--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break t;u=Yr(u),f=Yr(f)}u=null}else u=null;null!==l&&Kr(a,s,l,u,!1),null!==c&&null!==h&&Kr(a,h,c,u,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Gn;else if(Un(s))if(Qn)g=ar;else{g=ir;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(t,r))?$n(a,g,n,i):(v&&v(t,s,r),"focusout"===t&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&tt(s,"number",s.value)),v=r?xi(r):window,t){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,i)}var y;if(Ln)t:{switch(t){case"compositionstart":var b="onCompositionStart";break t;case"compositionend":b="onCompositionEnd";break t;case"compositionupdate":b="onCompositionUpdate";break t}b=void 0}else Vn?zn(t,n)&&(b="onCompositionEnd"):"keydown"===t&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=tn()):(Je="value"in(Qe=i)?Qe.value:Qe.textContent,Vn=!0)),0<(v=qr(r,b)).length&&(b=new xn(b,t,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=Hn(n))&&(b.data=y))),(y=Rn?function(t,e){switch(t){case"compositionend":return Hn(e);case"keypress":return 32!==e.which?null:(Bn=!0,Fn);case"textInput":return(t=e.data)===Fn&&Bn?null:t;default:return null}}(t,n):function(t,e){if(Vn)return"compositionend"===t||!Ln&&zn(t,e)?(t=tn(),Ze=Je=Qe=null,Vn=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Nn&&"ko"!==e.locale?null:e.data}}(t,n))&&(0<(r=qr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Fr(a,e)}))}function $r(t,e,n){return{instance:t,listener:e,currentTarget:n}}function qr(t,e){for(var n=e+"Capture",r=[];null!==t;){var i=t,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=jt(t,n))&&r.unshift($r(t,o,i)),null!=(o=jt(t,e))&&r.push($r(t,o,i))),t=t.return}return r}function Yr(t){if(null===t)return null;do{t=t.return}while(t&&5!==t.tag);return t||null}function Kr(t,e,n,r,i){for(var o=e._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=jt(n,o))&&a.unshift($r(n,l,s)):i||null!=(l=jt(n,o))&&a.push($r(n,l,s))),n=n.return}0!==a.length&&t.push({event:e,listeners:a})}var Xr=/\r\n?/g,Gr=/\u0000|\uFFFD/g;function Qr(t){return("string"==typeof t?t:""+t).replace(Xr,"\n").replace(Gr,"")}function Jr(t,e,n){if(e=Qr(e),Qr(t)!==e&&n)throw Error(o(425))}function Zr(){}var ti=null,ei=null;function ni(t,e){return"textarea"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var ri="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,oi="function"==typeof Promise?Promise:void 0,ai="function"==typeof queueMicrotask?queueMicrotask:void 0!==oi?function(t){return oi.resolve(null).then(t).cat
vendor: 29,266 bytes, line 25
25ch(si)}:ri;function si(t){setTimeout((function(){throw t}))}function li(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return t.removeChild(i),void Ve(e);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ve(e)}function ci(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break;if(8===e){if("$"===(e=t.data)||"$!"===e||"$?"===e)break;if("/$"===e)return null}}return t}function ui(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var hi=Math.random().toString(36).slice(2),fi="__reactFiber$"+hi,di="__reactProps$"+hi,pi="__reactContainer$"+hi,mi="__reactEvents$"+hi,gi="__reactListeners$"+hi,vi="__reactHandles$"+hi;function yi(t){var e=t[fi];if(e)return e;for(var n=t.parentNode;n;){if(e=n[pi]||n[fi]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=ui(t);null!==t;){if(n=t[fi])return n;t=ui(t)}return e}n=(t=n).parentNode}return null}function bi(t){return!(t=t[fi]||t[pi])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function xi(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(o(33))}function wi(t){return t[di]||null}var Si=[],Oi=-1;function ki(t){return{current:t}}function Ei(t){0>Oi||(t.current=Si[Oi],Si[Oi]=null,Oi--)}function _i(t,e){Oi++,Si[Oi]=t.current,t.current=e}var Ai={},Pi=ki(Ai),Mi=ki(!1),Ci=Ai;function Ti(t,e){var n=t.type.contextTypes;if(!n)return Ai;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function ji(t){return null!=(t=t.childContextTypes)}function Ii(){Ei(Mi),Ei(Pi)}function Li(t,e,n){if(Pi.current!==Ai)throw Error(o(168));_i(Pi,e),_i(Mi,n)}function Di(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(o(108,W(t)||"Unknown",i));return N({},n,r)}function Ri(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Ai,Ci=Pi.current,_i(Pi,t),_i(Mi,Mi.current),!0}function Ni(t,e,n){var r=t.stateNode;if(!r)throw Error(o(169));n?(t=Di(t,e,Ci),r.__reactInternalMemoizedMergedChildContext=t,Ei(Mi),Ei(Pi),_i(Pi,t)):Ei(Mi),_i(Mi,n)}var Fi=null,Bi=!1,zi=!1;function Hi(t){null===Fi?Fi=[t]:Fi.push(t)}function Vi(){if(!zi&&null!==Fi){zi=!0;var t=0,e=be;try{var n=Fi;for(be=1;t<n.length;t++){var r=n[t];do{r=r(!0)}while(null!==r)}Fi=null,Bi=!1}catch(e){throw null!==Fi&&(Fi=Fi.slice(t+1)),Yt(Zt,Vi),e}finally{be=e,zi=!1}}return null}var Wi=[],Ui=0,$i=null,qi=0,Yi=[],Ki=0,Xi=null,Gi=1,Qi="";function Ji(t,e){Wi[Ui++]=qi,Wi[Ui++]=$i,$i=t,qi=e}function Zi(t,e,n){Yi[Ki++]=Gi,Yi[Ki++]=Qi,Yi[Ki++]=Xi,Xi=t;var r=Gi;t=Qi;var i=32-ae(r)-1;r&=~(1<<i),n+=1;var o=32-ae(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Gi=1<<32-ae(e)+i|n<<i|r,Qi=o+t}else Gi=1<<o|n<<i|r,Qi=t}function to(t){null!==t.return&&(Ji(t,1),Zi(t,1,0))}function eo(t){for(;t===$i;)$i=Wi[--Ui],Wi[Ui]=null,qi=Wi[--Ui],Wi[Ui]=null;for(;t===Xi;)Xi=Yi[--Ki],Yi[Ki]=null,Qi=Yi[--Ki],Yi[Ki]=null,Gi=Yi[--Ki],Yi[Ki]=null}var no=null,ro=null,io=!1,oo=null;function ao(t,e){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,null===(e=t.deletions)?(t.deletions=[n],t.flags|=16):e.push(n)}function so(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,no=t,ro=ci(e.firstChild),!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,no=t,ro=null,!0);case 13:return null!==(e=8!==e.nodeType?null:e)&&(n=null!==Xi?{id:Gi,overflow:Qi}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=e,n.return=t,t.child=n,no=t,ro=null,!0);default:return!1}}function lo(t){return!(!(1&t.mode)||128&t.flags)}function co(t){if(io){var e=ro;if(e){var n=e;if(!so(t,e)){if(lo(t))throw Error(o(418));e=ci(n.nextSibling);var r=no;e&&so(t,e)?ao(r,n):(t.flags=-4097&t.flags|2,io=!1,no=t)}}else{if(lo(t))throw Error(o(418));t.flags=-4097&t.flags|2,io=!1,no=t}}}function uo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;no=t}function ho(t){if(t!==no)return!1;if(!io)return uo(t),io=!0,!1;var e;if((e=3!==t.tag)&&!(e=5!==t.tag)&&(e="head"!==(e=t.type)&&"body"!==e&&!ni(t.type,t.memoizedProps)),e&&(e=ro)){if(lo(t))throw fo(),Error(o(418));for(;e;)ao(t,e),e=ci(e.nextSibling)}if(uo(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(o(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){ro=ci(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}ro=null}}else ro=no?ci(t.stateNode.nextSibling):null;return!0}function fo(){for(var t=ro;t;)t=ci(t.nextSibling)}function po(){ro=no=null,io=!1}function mo(t){null===oo?oo=[t]:oo.push(t)}var go=x.ReactCurrentBatchConfig;function vo(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,t));var i=r,a=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===a?e.ref:(e=function(t){var e=i.refs;null===t?delete e[a]:e[a]=t},e._stringRef=a,e)}if("string"!=typeof t)throw Error(o(284));if(!n._owner)throw Error(o(290,t))}return t}function yo(t,e){throw t=Object.prototype.toString.call(e),Error(o(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function bo(t){return(0,t._init)(t._payload)}function xo(t){function e(e,n){if(t){var r=e.deletions;null===r?(e.deletions=[n],e.flags|=16):r.push(n)}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Ic(t,e)).index=0,t.sibling=null,t}function a(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.flags|=2,n):r:(e.flags|=2,n):(e.flags|=1048576,n)}function s(e){return t&&null===e.alternate&&(e.flags|=2),e}function l(t,e,n,r){return null===e||6!==e.tag?((e=Nc(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function c(t,e,n,r){var o=n.type;return o===O?h(t,e,n.props.children,r,n.key):null!==e&&(e.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===j&&bo(o)===e.type)?((r=i(e,n.props)).ref=vo(t,e,n),r.return=t,r):((r=Lc(n.type,n.key,n.props,null,t.mode,r)).ref=vo(t,e,n),r.return=t,r)}function u(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Fc(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function h(t,e,n,r,o){return null===e||7!==e.tag?((e=Dc(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function f(t,e,n){if("string"==typeof e&&""!==e||"number"==typeof e)return(e=Nc(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case w:return(n=Lc(e.type,e.key,e.props,null,t.mode,n)).ref=vo(t,null,e),n.return=t,n;case S:return(e=Fc(e,t.mode,n)).return=t,e;case j:return f(t,(0,e._init)(e._payload),n)}if(et(e)||D(e))return(e=Dc(e,t.mode,n,null)).return=t,e;yo(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(t,e,n,r):null;case S:return n.key===i?u(t,e,n,r):null;case j:return d(t,e,(i=n._init)(n._payload),r)}if(et(n)||D(n))return null!==i?null:h(t,e,n,r,null);yo(t,n)}return null}function p(t,e,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i);case S:return u(e,t=t.get(null===r.key?n:r.key)||null,r,i);case j:return p(t,e,n,(0,r._init)(r._payload),i)}if(et(r)||D(r))return h(e,t=t.get(n)||null,r,i,null);yo(e,r)}return null}function m(i,o,s,l){for(var c=null,u=null,h=o,m=o=0,g=null;null!==h&&m<s.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=d(i,h,s[m],l);if(null===v){null===h&&(h=g);break}t&&h&&null===v.alternate&&e(i,h),o=a(v,o,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===s.length)return n(i,h),io&&Ji(i,m),c;if(null===h){for(;m<s.length;m++)null!==(h=f(i,s[m],l))&&(o=a(h,o,m),null===u?c=h:u.sibling=h,u=h);return io&&Ji(i,m),c}for(h=r(i,h);m<s.length;m++)null!==(g=p(h,i,m,s[m],l))&&(t&&null!==g.alternate&&h.delete(null===g.key?m:g.key),o=a(g,o,m),null===u?c=g:u.sibling=g,u=g);return t&&h.forEach((function(t){return e(i,t)})),io&&Ji(i,m),c}function g(i,s,l,c){var u=D(l);if("function"!=typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var h=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=d(i,m,y.value,c);if(null===b){null===m&&(m=v);break}t&&m&&null===b.alternate&&e(i,m),s=a(b,s,g),null===h?u=b:h.sibling=b,h=b,m=v}if(y.done)return n(i,m),io&&Ji(i,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=a(y,s,g),null===h?u=y:h.sibling=y,h=y);return io&&Ji(i,g),u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=p(m,i,g,y.value,c))&&(t&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===h?u=y:h.sibling=y,h=y);return t&&m.forEach((function(t){return e(i,t)})),io&&Ji(i,g),u}return function t(r,o,a,l){if("object"==typeof a&&null!==a&&a.type===O&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:t:{for(var c=a.key,u=o;null!==u;){if(u.key===c){if((c=a.type)===O){if(7===u.tag){n(r,u.sibling),(o=i(u,a.props.children)).return=r,r=o;break t}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===j&&bo(c)===u.type){n(r,u.sibling),(o=i(u,a.props)).ref=vo(r,u,a),o.return=r,r=o;break t}n(r,u);break}e(r,u),u=u.sibling}a.type===O?((o=Dc(a.props.children,r.mode,l,a.key)).return=r,r=o):((l=Lc(a.type,a.key,a.props,null,r.mode,l)).ref=vo(r,o,a),l.return=r,r=l)}return s(r);case S:t:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break t}n(r,o);break}e(r,o),o=o.sibling}(o=Fc(a,r.mode,l)).return=r,r=o}return s(r);case j:return t(r,o,(u=a._init)(a._payload),l)}if(et(a))return m(r,o,a,l);if(D(a))return g(r,o,a,l);yo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Nc(a,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=xo(!0),So=xo(!1),Oo=ki(null),ko=null,Eo=null,_o=null;function Ao(){_o=Eo=ko=null}function Po(t){var e=Oo.current;Ei(Oo),t._currentValue=e}function Mo(t,e,n){for(;null!==t;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,null!==r&&(r.childLanes|=e)):null!==r&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Co(t,e){ko=t,_o=Eo=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(!!(t.lanes&e)&&(bs=!0),t.firstContext=null)}function To(t){var e=t._currentValue;if(_o!==t)if(t={context:t,memoizedValue:e,next:null},null===Eo){if(null===ko)throw Error(o(308));Eo=t,ko.dependencies={lanes:0,firstContext:t}}else Eo=Eo.next=t;return e}var jo=null;function Io(t){null===jo?jo=[t]:jo.push(t)}function Lo(t,e,n,r){var i=e.interleaved;return null===i?(n.next=n,Io(e)):(n.next=i.next,i.next=n),e.interleaved=n,Do(t,r)}function Do(t,e){t.lanes|=e;var n=t.alternate;for(null!==n&&(n.lanes|=e),n=t,t=t.return;null!==t;)t.childLanes|=e,null!==(n=t.alternate)&&(n.childLanes|=e),n=t,t=t.return;return 3===n.tag?n.stateNode:null}var Ro=!1;function No(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Bo(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function zo(t,e,n){var r=t.updateQueue;if(null===r)return null;if(r=r.shared,2&Pl){var i=r.pending;return null===i?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Do(t,n)}return null===(i=r.interleaved)?(e.next=e,Io(r)):(e.next=i.next,i.next=e),r.interleaved=e,Do(t,n)}function Ho(t,e,n){if(null!==(e=e.updateQueue)&&(e=e.shared,4194240&n)){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,ye(t,n)}}function Vo(t,e){var n=t.updateQueue,r=t.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=e:o=o.next=e}else i=o=e;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(t.updateQueue=n)}null===(t=n.lastBaseUpdate)?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Wo(t,e,n,r){var i=t.updateQueue;Ro=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=t.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var h=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,d=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});t:{var p=t,m=s;switch(f=e,d=n,m.tag){case 1:if("function"==typeof(p=m.payload)){h=p.call(d,h,f);break t}h=p;break t;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(d,h,f):p))break t;h=N({},h,f);break t;case 2:Ro=!0}}null!==s.callback&&0!==s.lane&&(t.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else d={eventTime:d,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=d,l=h):u=u.next=d,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(e=i.shared.interleaved)){i=e;do{a|=i.lane,i=i.next}while(i!==e)}else null===o&&(i.shared.lanes=0);Rl|=a,t.lanes=a,t.memoizedState=h}}function Uo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var $o={},qo=ki($o),Yo=ki($o),Ko=ki($o);function Xo(t){if(t===$o)throw Error(o(174));return t}function Go(t,e){switch(_i(Ko,e),_i(Yo,t),_i(qo,$o),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:lt(null,"");break;default:e=lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}Ei(qo),_i(qo,e)}function Qo(){Ei(qo),Ei(Yo),Ei(Ko)}function Jo(t){Xo(Ko.current);var e=Xo(qo.current),n=lt(e,t.type);e!==n&&(_i(Yo,t),_i(qo,n))}function Zo(t){Yo.current===t&&(Ei(qo),Ei(Yo))}var ta=ki(0);function ea(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(128&e.flags)return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var na=[];function ra(){for(var t=0;t<na.length;t++)na[t]._workInProgressVersionPrimary=null;na.length=0}var ia=x.ReactCurrentDispatcher,oa=x.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,ha=!1,fa=0,da=0;function pa(){throw Error(o(321))}function ma(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!sr(t[n],e[n]))return!1;return!0}function ga(t,e,n,r,i,a){if(aa=a,sa=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ia.current=null===t||null===t.memoizedState?Za:ts,t=n(r,i),ha){a=0;do{if(ha=!1,fa=0,25<=a)throw Error(o(301));a+=1,ca=la=null,e.updateQueue=null,ia.current=es,t=n(r,i)}while(ha)}if(ia.current=Ja,e=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,e)throw Error(o(300));return t}function va(){var t=0!==fa;return fa=0,t}function ya(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=t:ca=ca.next=t,ca}function ba(){if(null===la){var t=sa.alternate;t=null!==t?t.memoizedState:null}else t=la.next;var e=null===ca?sa.memoizedState:ca.next;if(null!==e)ca=e,la=t;else{if(null===t)throw Error(o(310));t={memoizedState:(la=t).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=t:ca=ca.next=t}return ca}function xa(t,e){return"function"==typeof e?e(t):e}function wa(t){var e=ba(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var r=la,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var l=s=null,c=null,u=a;do{var h=u.lane;if((aa&h)===h)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var f={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=h,Rl|=h}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,e.memoizedState)||(bs=!0),e.memoizedState=r,e.baseState=s,e.baseQueue=c,n.lastRenderedState=r}if(null!==(t=n.interleaved)){i=t;do{a=i.lane,sa.lanes|=a,Rl|=a,i=i.next}while(i!==t)}else null===i&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Sa(t){var e=ba(),n=e.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=t(a,s.action),s=s.next}while(s!==i);sr(a,e.memoizedState)||(bs=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function Oa(){}function ka(t,e){var n=sa,r=ba(),i=e(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,bs=!0),r=r.queue,Ra(Aa.bind(null,n,r,t),[t]),r.getSnapshot!==e||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Ta(9,_a.bind(null,n,r,i,e),void 0,null),null===Ml)throw Error(o(349));30&aa||Ea(n,e,i)}return i}function Ea(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},null===(e=sa.updateQueue)?(e={lastEffect:null,stores:null},sa.updateQueue=e,e.stores=[t]):null===(n=e.stores)?e.stores=[t]:n.push(t)}function _a(t,e,n,r){e.value=n,e.getSnapshot=r,Pa(e)&&Ma(t)}function Aa(t,e,n){return n((function(){Pa(e)&&Ma(t)}))}function Pa(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!sr(t,n)}catch(t){return!0}}function Ma(t){var e=Do(t,1);null!==e&&nc(e,t,1,-1)}function Ca(t){var e=ya();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:t},e.queue=t,t=t.dispatch=Ka.bind(null,sa,t),[e.memoizedState,t]}function Ta(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=sa.updateQueue)?(e={lastEffect:null,stores:null},sa.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ja(){return ba().memoizedState}function Ia(t,e,n,r){var i=ya();sa.flags|=t,i.memoizedState=Ta(1|e,n,void 0,void 0===r?null:r)}function La(t,e,n,r){var i=ba();r=void 0===r?null:r;var o=void 0;if(null!==la){var a=la.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Ta(e,n,o,r))}sa.flags|=t,i.memoizedState=Ta(1|e,n,o,r)}function Da(t,e){return Ia(8390656,8,t,e)}function Ra(t,e){return La(2048,8,t,e)}function Na(t,e){return La(4,2,t,e)}function Fa(t,e){return La(4,4,t,e)}function Ba(t,e){return"function"==typeof e?(t=t(),e(t),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function za(t,e,n){return n=null!=n?n.concat([t]):null,La(4,4,Ba.bind(null,e,t),n)}function Ha(){}function Va(t,e){var n=ba();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&ma(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Wa(t,e){var n=ba();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&ma(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Ua(t,e,n){return 21&aa?(sr(n,e)||(n=me(),sa.lanes|=n,Rl|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,bs=!0),t.memoizedState=n)}function $a(t,e){var n=be;be=0!==n&&4>n?n:4,t(!0);var r=oa.transition;oa.transition={};try{t(!1),e()}finally{be=n,oa.transition=r}}function qa(){return ba().memoizedState}function Ya(t,e,n){var r=ec(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xa(t))Ga(e,n);else if(null!==(n=Lo(t,e,n,r))){nc(n,t,r,tc()),Qa(n,e,r)}}function Ka(t,e,n){var r=ec(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xa(t))Ga(e,i);else{var o=t.alternate;if(0===t.lanes&&(null===o||0===o.lanes)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var l=e.interleaved;return null===l?(i.next=i,Io(e)):(i.next=l.next,l.next=i),void(e.interleaved=i)}}catch(t){}null!==(n=Lo(t,e,i,r))&&(nc(n,t,r,i=tc()),Qa(n,e,r))}}function Xa(t){var e=t.alternate;return t===sa||null!==e&&e===sa}function Ga(t,e){ha=ua=!0;var n=t.pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Qa(t,e,n){if(4194240&n){var r=e.lanes;n|=r&=t.pendingLanes,e.lanes=n,ye(t,n)}}var Ja={readContext:To,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Za={readContext:To,useCallback:function(t,e){return ya().memoizedState=[t,void 0===e?null:e],t},useContext:To,useEffect:Da,useImperativeHandle:function(t,e,n){return n=null!=n?n.concat([t]):null,Ia(4194308,4,Ba.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Ia(4194308,4,t,e)},useInsertionEffect:function(t,e){return Ia(4,2,t,e)},useMemo:function(t,e){var n=ya();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ya();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Ya.bind(null,sa,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},ya().memoizedState=t},useState:Ca,useDebugValue:Ha,useDeferredValue:function(t){return ya().memoizedState=t},useTransition:function(){var t=Ca(!1),e=t[0];return t=$a.bind(null,t[1]),ya().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=sa,i=ya();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=e(),null===Ml)throw Error(o(349));30&aa||Ea(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,Da(Aa.bind(null,r,a,t),[t]),r.flags|=2048,Ta(9,_a.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=ya(),e=Ml.identifierPrefix;if(io){var n=Qi;e=":"+e+"R"+(n=(Gi&~(1<<32-ae(Gi)-1)).toString(32)+n),0<(n=fa++)&&(e+="H"+n.toString(32)),e+=":"}else e=":"+e+"r"+(n=da++).toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},ts={readContext:To,useCallback:Va,useContext:To,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:Na,useLayoutEffect:Fa,useMemo:Wa,useReducer:wa,useRef:ja,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(t){return Ua(ba(),la.memoizedState,t)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:Oa,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1},es={readContext:To,useCallback:Va,useContext:To,useEffect:Ra,useImperativeHandle:za,useInsertionEffect:Na,useLayoutEffect:Fa,useMemo:Wa,useReducer:Sa,useRef:ja,useState:function(){return Sa(xa)},useDebugValue:Ha,useDeferredValue:function(t){var e=ba();return null===la?e.memoizedState=t:Ua(e,la.memoizedState,t)},useTransition:function(){return[Sa(xa)[0],ba().memoizedState]},useMutableSource:Oa,useSyncExternalStore:ka,useId:qa,unstable_isNewReconciler:!1};function ns(t,e){if(t&&t.defaultProps){for(var n in e=N({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}return e}function rs(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:N({},e,n),t.memoizedState=n,0===t.lanes&&(t.updateQueue.baseState=n)}var is={isMounted:function(t){return!!(t=t._reactInternals)&&Vt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=tc(),i=ec(t),o=Bo(r,i);o.payload=e,null!=n&&(o.callback=n),null!==(e=zo(t,o,i))&&(nc(e,t,i,r),Ho(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=tc(),i=ec(t),o=Bo(r,i);o.tag=1,o.payload=e,null!=n&&(o.callback=n),null!==(e=zo(t,o,i))&&(nc(e,t,i,r),Ho(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=tc(),r=ec(t),i=Bo(n,r);i.tag=2,null!=e&&(i.callback=e),null!==(e=zo(t,i,r))&&(nc(e,t,r,n),Ho(e,t,r))}};function os(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,o))}function as(t,e,n){var r=!1,i=Ai,o=e.contextType;return"object"==typeof o&&null!==o?o=To(o):(i=ji(e)?Ci:Pi.current,o=(r=null!=(r=e.contextTypes))?Ti(t,i):Ai),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=is,t.stateNode=e,e._reactInternals=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function ss(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&is.enqueueReplaceState(e,e.state,null)}function ls(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},No(t);var o=e.contextType;"object"==typeof o&&null!==o?i.context=To(o):(o=ji(e)?Ci:Pi.current,i.context=Ti(t,o)),i.state=t.memoizedState,"function"==typeof(o=e.getDerivedStateFromProps)&&(rs(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&is.enqueueReplaceState(i,i.state,null),Wo(t,n,i,r),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308)}function cs(t,e){try{var n="",r=e;do{n+=H(r),r=r.return}while(r);var i=n}catch(t){i="\nError generating stack: "+t.message+"\n"+t.stack}return{value:t,source:e,stack:i,digest:null}}function us(t,e,n){return{value:t,source:null,stack:null!=n?n:null,digest:null!=e?e:null}}function hs(t,e){try{console.error(e.value)}catch(t){setTimeout((function(){throw t}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ds(t,e,n){(n=Bo(-1,n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ul||(Ul=!0,$l=r),hs(0,e)},n}function ps(t,e,n){(n=Bo(-1,n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){hs(0,e)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){hs(0,e),"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var t=e.stack;this.componentDidCatch(e.value,{componentStack:null!==t?t:""})}),n}function ms(t,e,n){var r=t.pingCache;if(null===r){r=t.pingCache=new fs;var i=new Set;r.set(e,i)}else void 0===(i=r.get(e))&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Ec.bind(null,t,e,n),e.then(t,t))}function gs(t){do{var e;if((e=13===t.tag)&&(e=null===(e=t.memoizedState)||null!==e.dehydrated),e)return t;t=t.return}while(null!==t);return null}function vs(t,e,n,r,i){return 1&t.mode?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((e=Bo(-1,1)).tag=2,zo(n,e,1))),n.lanes|=1),t)}var ys=x.ReactCurrentOwner,bs=!1;function xs(t,e,n,r){e.child=null===t?So(e,null,n,r):wo(e,t.child,n,r)}function ws(t,e,n,r,i){n=n.render;var o=e.ref;return Co(e,i),r=ga(t,e,n,r,o,i),n=va(),null===t||bs?(io&&n&&to(e),e.flags|=1,xs(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Us(t,e,i))}function Ss(t,e,n,r,i){if(null===t){var o=n.type;return"function"!=typeof o||jc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Lc(n.type,null,r,e,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=o,Os(t,e,o,r,i))}if(o=t.child,!(t.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&t.ref===e.ref)return Us(t,e,
vendor: 20,107 bytes, line 25
25i)}return e.flags|=1,(t=Ic(o,r)).ref=e.ref,t.return=e,e.child=t}function Os(t,e,n,r,i){if(null!==t){var o=t.memoizedProps;if(lr(o,r)&&t.ref===e.ref){if(bs=!1,e.pendingProps=r=o,!(t.lanes&i))return e.lanes=t.lanes,Us(t,e,i);131072&t.flags&&(bs=!0)}}return _s(t,e,n,r,i)}function ks(t,e,n){var r=e.pendingProps,i=r.children,o=null!==t?t.memoizedState:null;if("hidden"===r.mode)if(1&e.mode){if(!(1073741824&n))return t=null!==o?o.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,_i(Il,jl),jl|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_i(Il,jl),jl|=r}else e.memoizedState={baseLanes:0,cachePool:null,transitions:null},_i(Il,jl),jl|=n;else null!==o?(r=o.baseLanes|n,e.memoizedState=null):r=n,_i(Il,jl),jl|=r;return xs(t,e,i,n),e.child}function Es(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function _s(t,e,n,r,i){var o=ji(n)?Ci:Pi.current;return o=Ti(e,o),Co(e,i),n=ga(t,e,n,r,o,i),r=va(),null===t||bs?(io&&r&&to(e),e.flags|=1,xs(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Us(t,e,i))}function As(t,e,n,r,i){if(ji(n)){var o=!0;Ri(e)}else o=!1;if(Co(e,i),null===e.stateNode)Ws(t,e),as(e,n,r),ls(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=To(c):c=Ti(e,c=ji(n)?Ci:Pi.current);var u=n.getDerivedStateFromProps,h="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;h||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(e,a,r,c),Ro=!1;var f=e.memoizedState;a.state=f,Wo(e,r,a,i),l=e.memoizedState,s!==r||f!==l||Mi.current||Ro?("function"==typeof u&&(rs(e,n,u,r),l=e.memoizedState),(s=Ro||os(e,n,s,r,f,l,c))?(h||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.flags|=4194308)):("function"==typeof a.componentDidMount&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,Fo(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:ns(e.type,s),a.props=c,h=e.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=To(l):l=Ti(e,l=ji(n)?Ci:Pi.current);var d=n.getDerivedStateFromProps;(u="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==h||f!==l)&&ss(e,a,r,l),Ro=!1,f=e.memoizedState,a.state=f,Wo(e,r,a,i);var p=e.memoizedState;s!==h||f!==p||Mi.current||Ro?("function"==typeof d&&(rs(e,n,d,r),p=e.memoizedState),(c=Ro||os(e,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(e.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return Ps(t,e,n,r,o,i)}function Ps(t,e,n,r,i,o){Es(t,e);var a=!!(128&e.flags);if(!r&&!a)return i&&Ni(e,n,!1),Us(t,e,o);r=e.stateNode,ys.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.flags|=1,null!==t&&a?(e.child=wo(e,t.child,null,o),e.child=wo(e,null,s,o)):xs(t,e,s,o),e.memoizedState=r.state,i&&Ni(e,n,!0),e.child}function Ms(t){var e=t.stateNode;e.pendingContext?Li(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Li(0,e.context,!1),Go(t,e.containerInfo)}function Cs(t,e,n,r,i){return po(),mo(i),e.flags|=256,xs(t,e,n,r),e.child}var Ts,js,Is,Ls,Ds={dehydrated:null,treeContext:null,retryLane:0};function Rs(t){return{baseLanes:t,cachePool:null,transitions:null}}function Ns(t,e,n){var r,i=e.pendingProps,a=ta.current,s=!1,l=!!(128&e.flags);if((r=l)||(r=(null===t||null!==t.memoizedState)&&!!(2&a)),r?(s=!0,e.flags&=-129):null!==t&&null===t.memoizedState||(a|=1),_i(ta,1&a),null===t)return co(e),null!==(t=e.memoizedState)&&null!==(t=t.dehydrated)?(1&e.mode?"$!"===t.data?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(l=i.children,t=i.fallback,s?(i=e.mode,s=e.child,l={mode:"hidden",children:l},1&i||null===s?s=Rc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),t=Dc(t,i,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Rs(n),e.memoizedState=Ds,t):Fs(e,l));if(null!==(a=t.memoizedState)&&null!==(r=a.dehydrated))return function(t,e,n,r,i,a,s){if(n)return 256&e.flags?(e.flags&=-257,Bs(t,e,s,r=us(Error(o(422))))):null!==e.memoizedState?(e.child=t.child,e.flags|=128,null):(a=r.fallback,i=e.mode,r=Rc({mode:"visible",children:r.children},i,0,null),(a=Dc(a,i,s,null)).flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,1&e.mode&&wo(e,t.child,null,s),e.child.memoizedState=Rs(s),e.memoizedState=Ds,a);if(!(1&e.mode))return Bs(t,e,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var l=r.dgst;return r=l,Bs(t,e,s,r=us(a=Error(o(419)),r,void 0))}if(l=!!(s&t.childLanes),bs||l){if(null!==(r=Ml)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(r.suspendedLanes|s)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Do(t,i),nc(r,t,i,-1))}return mc(),Bs(t,e,s,r=us(Error(o(421))))}return"$?"===i.data?(e.flags|=128,e.child=t.child,e=Ac.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,ro=ci(i.nextSibling),no=e,io=!0,oo=null,null!==t&&(Yi[Ki++]=Gi,Yi[Ki++]=Qi,Yi[Ki++]=Xi,Gi=t.id,Qi=t.overflow,Xi=e),e=Fs(e,r.children),e.flags|=4096,e)}(t,e,l,i,r,a,n);if(s){s=i.fallback,l=e.mode,r=(a=t.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||e.child===a?(i=Ic(a,c)).subtreeFlags=14680064&a.subtreeFlags:((i=e.child).childLanes=0,i.pendingProps=c,e.deletions=null),null!==r?s=Ic(r,s):(s=Dc(s,l,n,null)).flags|=2,s.return=e,i.return=e,i.sibling=s,e.child=i,i=s,s=e.child,l=null===(l=t.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=t.childLanes&~n,e.memoizedState=Ds,i}return t=(s=t.child).sibling,i=Ic(s,{mode:"visible",children:i.children}),!(1&e.mode)&&(i.lanes=n),i.return=e,i.sibling=null,null!==t&&(null===(n=e.deletions)?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=i,e.memoizedState=null,i}function Fs(t,e){return(e=Rc({mode:"visible",children:e},t.mode,0,null)).return=t,t.child=e}function Bs(t,e,n,r){return null!==r&&mo(r),wo(e,t.child,null,n),(t=Fs(e,e.pendingProps.children)).flags|=2,e.memoizedState=null,t}function zs(t,e,n){t.lanes|=e;var r=t.alternate;null!==r&&(r.lanes|=e),Mo(t.return,e,n)}function Hs(t,e,n,r,i){var o=t.memoizedState;null===o?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Vs(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(xs(t,e,r.children,n),2&(r=ta.current))r=1&r|2,e.flags|=128;else{if(null!==t&&128&t.flags)t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&zs(t,n,e);else if(19===t.tag)zs(t,n,e);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(_i(ta,r),1&e.mode)switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===ea(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Hs(e,!1,i,n,o);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===ea(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Hs(e,!0,n,null,o);break;case"together":Hs(e,!1,null,null,void 0);break;default:e.memoizedState=null}else e.memoizedState=null;return e.child}function Ws(t,e){!(1&e.mode)&&null!==t&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Us(t,e,n){if(null!==t&&(e.dependencies=t.dependencies),Rl|=e.lanes,!(n&e.childLanes))return null;if(null!==t&&e.child!==t.child)throw Error(o(153));if(null!==e.child){for(n=Ic(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Ic(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function $s(t,e){if(!io)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function qs(t){var e=null!==t.alternate&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=t,i=i.sibling;else for(i=t.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Ys(t,e,n){var r=e.pendingProps;switch(eo(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(e),null;case 1:case 17:return ji(e.type)&&Ii(),qs(e),null;case 3:return r=e.stateNode,Qo(),Ei(Mi),Ei(Pi),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==t&&null!==t.child||(ho(e)?e.flags|=4:null===t||t.memoizedState.isDehydrated&&!(256&e.flags)||(e.flags|=1024,null!==oo&&(ac(oo),oo=null))),js(t,e),qs(e),null;case 5:Zo(e);var i=Xo(Ko.current);if(n=e.type,null!==t&&null!=e.stateNode)Is(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(null===e.stateNode)throw Error(o(166));return qs(e),null}if(t=Xo(qo.current),ho(e)){r=e.stateNode,n=e.type;var a=e.memoizedProps;switch(r[fi]=e,r[di]=a,t=!!(1&e.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(i=0;i<Dr.length;i++)Br(Dr[i],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":G(r,a),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Br("invalid",r);break;case"textarea":it(r,a),Br("invalid",r)}for(var l in yt(n,a),i=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,t),i=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Jr(r.textContent,c,t),i=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":q(r),Z(r,a,!0);break;case"textarea":q(r),at(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=i,e.updateQueue=r,null!==r&&(e.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===t&&(t=st(n)),"http://www.w3.org/1999/xhtml"===t?"script"===n?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"==typeof r.is?t=l.createElement(n,{is:r.is}):(t=l.createElement(n),"select"===n&&(l=t,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):t=l.createElementNS(t,n),t[fi]=e,t[di]=r,Ts(t,e,!1,!1),e.stateNode=t;t:{switch(l=bt(n,r),n){case"dialog":Br("cancel",t),Br("close",t),i=r;break;case"iframe":case"object":case"embed":Br("load",t),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Br(Dr[i],t);i=r;break;case"source":Br("error",t),i=r;break;case"img":case"image":case"link":Br("error",t),Br("load",t),i=r;break;case"details":Br("toggle",t),i=r;break;case"input":G(t,r),i=X(t,r),Br("invalid",t);break;case"option":default:i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=N({},r,{value:void 0}),Br("invalid",t);break;case"textarea":it(t,r),i=rt(t,r),Br("invalid",t)}for(a in yt(n,i),c=i)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?gt(t,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&ht(t,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&ft(t,u):"number"==typeof u&&ft(t,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Br("scroll",t):null!=u&&b(t,a,u,l))}switch(n){case"input":q(t),Z(t,r,!1);break;case"textarea":q(t),at(t);break;case"option":null!=r.value&&t.setAttribute("value",""+U(r.value));break;case"select":t.multiple=!!r.multiple,null!=(a=r.value)?nt(t,!!r.multiple,a,!1):null!=r.defaultValue&&nt(t,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(t.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(e.flags|=4)}null!==e.ref&&(e.flags|=512,e.flags|=2097152)}return qs(e),null;case 6:if(t&&null!=e.stateNode)Ls(t,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(o(166));if(n=Xo(Ko.current),Xo(qo.current),ho(e)){if(r=e.stateNode,n=e.memoizedProps,r[fi]=e,(a=r.nodeValue!==n)&&null!==(t=no))switch(t.tag){case 3:Jr(r.nodeValue,n,!!(1&t.mode));break;case 5:!0!==t.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,!!(1&t.mode))}a&&(e.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fi]=e,e.stateNode=r}return qs(e),null;case 13:if(Ei(ta),r=e.memoizedState,null===t||null!==t.memoizedState&&null!==t.memoizedState.dehydrated){if(io&&null!==ro&&1&e.mode&&!(128&e.flags))fo(),po(),e.flags|=98560,a=!1;else if(a=ho(e),null!==r&&null!==r.dehydrated){if(null===t){if(!a)throw Error(o(318));if(!(a=null!==(a=e.memoizedState)?a.dehydrated:null))throw Error(o(317));a[fi]=e}else po(),!(128&e.flags)&&(e.memoizedState=null),e.flags|=4;qs(e),a=!1}else null!==oo&&(ac(oo),oo=null),a=!0;if(!a)return 65536&e.flags?e:null}return 128&e.flags?(e.lanes=n,e):((r=null!==r)!==(null!==t&&null!==t.memoizedState)&&r&&(e.child.flags|=8192,1&e.mode&&(null===t||1&ta.current?0===Ll&&(Ll=3):mc())),null!==e.updateQueue&&(e.flags|=4),qs(e),null);case 4:return Qo(),js(t,e),null===t&&Vr(e.stateNode.containerInfo),qs(e),null;case 10:return Po(e.type._context),qs(e),null;case 19:if(Ei(ta),null===(a=e.memoizedState))return qs(e),null;if(r=!!(128&e.flags),null===(l=a.rendering))if(r)$s(a,!1);else{if(0!==Ll||null!==t&&128&t.flags)for(t=e.child;null!==t;){if(null!==(l=ea(t))){for(e.flags|=128,$s(a,!1),null!==(r=l.updateQueue)&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;null!==n;)t=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=t,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,t=l.dependencies,a.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return _i(ta,1&ta.current|2),e.child}t=t.sibling}null!==a.tail&&Qt()>Vl&&(e.flags|=128,r=!0,$s(a,!1),e.lanes=4194304)}else{if(!r)if(null!==(t=ea(l))){if(e.flags|=128,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.flags|=4),$s(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!io)return qs(e),null}else 2*Qt()-a.renderingStartTime>Vl&&1073741824!==n&&(e.flags|=128,r=!0,$s(a,!1),e.lanes=4194304);a.isBackwards?(l.sibling=e.child,e.child=l):(null!==(n=a.last)?n.sibling=l:e.child=l,a.last=l)}return null!==a.tail?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Qt(),e.sibling=null,n=ta.current,_i(ta,r?1&n|2:1&n),e):(qs(e),null);case 22:case 23:return hc(),r=null!==e.memoizedState,null!==t&&null!==t.memoizedState!==r&&(e.flags|=8192),r&&1&e.mode?!!(1073741824&jl)&&(qs(e),6&e.subtreeFlags&&(e.flags|=8192)):qs(e),null;case 24:case 25:return null}throw Error(o(156,e.tag))}function Ks(t,e){switch(eo(e),e.tag){case 1:return ji(e.type)&&Ii(),65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 3:return Qo(),Ei(Mi),Ei(Pi),ra(),65536&(t=e.flags)&&!(128&t)?(e.flags=-65537&t|128,e):null;case 5:return Zo(e),null;case 13:if(Ei(ta),null!==(t=e.memoizedState)&&null!==t.dehydrated){if(null===e.alternate)throw Error(o(340));po()}return 65536&(t=e.flags)?(e.flags=-65537&t|128,e):null;case 19:return Ei(ta),null;case 4:return Qo(),null;case 10:return Po(e.type._context),null;case 22:case 23:return hc(),null;default:return null}}Ts=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(){},Is=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Xo(qo.current);var o,a=null;switch(n){case"input":i=X(t,i),r=X(t,r),a=[];break;case"select":i=N({},i,{value:void 0}),r=N({},r,{value:void 0}),a=[];break;case"textarea":i=rt(t,i),r=rt(t,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(t.onclick=Zr)}for(u in yt(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",t),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(e.updateQueue=u)&&(e.flags|=4)}},Ls=function(t,e,n,r){n!==r&&(e.flags|=4)};var Xs=!1,Gs=!1,Qs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Zs(t,e){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(t,e,n)}else n.current=null}function tl(t,e,n){try{n()}catch(n){kc(t,e,n)}}var el=!1;function nl(t,e,n){var r=e.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&t)===t){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(e,n,o)}i=i.next}while(i!==r)}}function rl(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function il(t){var e=t.ref;if(null!==e){var n=t.stateNode;t.tag,t=n,"function"==typeof e?e(t):e.current=t}}function ol(t){var e=t.alternate;null!==e&&(t.alternate=null,ol(e)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&(null!==(e=t.stateNode)&&(delete e[fi],delete e[di],delete e[mi],delete e[gi],delete e[vi])
vendor: 13,419 bytes, line 25
25),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function al(t){return 5===t.tag||3===t.tag||4===t.tag}function sl(t){t:for(;;){for(;null===t.sibling;){if(null===t.return||al(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue t;if(null===t.child||4===t.tag)continue t;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function ll(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==e.onclick||(e.onclick=Zr));else if(4!==r&&null!==(t=t.child))for(ll(t,e,n),t=t.sibling;null!==t;)ll(t,e,n),t=t.sibling}function cl(t,e,n){var r=t.tag;if(5===r||6===r)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(cl(t,e,n),t=t.sibling;null!==t;)cl(t,e,n),t=t.sibling}var ul=null,hl=!1;function fl(t,e,n){for(n=n.child;null!==n;)dl(t,e,n),n=n.sibling}function dl(t,e,n){if(oe&&"function"==typeof oe.onCommitFiberUnmount)try{oe.onCommitFiberUnmount(ie,n)}catch(t){}switch(n.tag){case 5:Gs||Zs(n,e);case 6:var r=ul,i=hl;ul=null,fl(t,e,n),hl=i,null!==(ul=r)&&(hl?(t=ul,n=n.stateNode,8===t.nodeType?t.parentNode.removeChild(n):t.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(hl?(t=ul,n=n.stateNode,8===t.nodeType?li(t.parentNode,n):1===t.nodeType&&li(t,n),Ve(t)):li(ul,n.stateNode));break;case 4:r=ul,i=hl,ul=n.stateNode.containerInfo,hl=!0,fl(t,e,n),ul=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Gs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&tl(n,e,a),i=i.next}while(i!==r)}fl(t,e,n);break;case 1:if(!Gs&&(Zs(n,e),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(t){kc(n,e,t)}fl(t,e,n);break;case 21:fl(t,e,n);break;case 22:1&n.mode?(Gs=(r=Gs)||null!==n.memoizedState,fl(t,e,n),Gs=r):fl(t,e,n);break;default:fl(t,e,n)}}function pl(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Qs),e.forEach((function(e){var r=Pc.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}function ml(t,e){var n=e.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=t,s=e,l=s;t:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,hl=!1;break t;case 3:case 4:ul=l.stateNode.containerInfo,hl=!0;break t}l=l.return}if(null===ul)throw Error(o(160));dl(a,s,i),ul=null,hl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(t){kc(i,e,t)}}if(12854&e.subtreeFlags)for(e=e.child;null!==e;)gl(e,t),e=e.sibling}function gl(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(ml(e,t),vl(t),4&r){try{nl(3,t,t.return),rl(3,t)}catch(e){kc(t,t.return,e)}try{nl(5,t,t.return)}catch(e){kc(t,t.return,e)}}break;case 1:ml(e,t),vl(t),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(ml(e,t),vl(t),512&r&&null!==n&&Zs(n,n.return),32&t.flags){var i=t.stateNode;try{ft(i,"")}catch(e){kc(t,t.return,e)}}if(4&r&&null!=(i=t.stateNode)){var a=t.memoizedProps,s=null!==n?n.memoizedProps:a,l=t.type,c=t.updateQueue;if(t.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Q(i,a),bt(l,s);var u=bt(l,a);for(s=0;s<c.length;s+=2){var h=c[s],f=c[s+1];"style"===h?gt(i,f):"dangerouslySetInnerHTML"===h?ht(i,f):"children"===h?ft(i,f):b(i,h,f,u)}switch(l){case"input":J(i,a);break;case"textarea":ot(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?nt(i,!!a.multiple,p,!1):d!==!!a.multiple&&(null!=a.defaultValue?nt(i,!!a.multiple,a.defaultValue,!0):nt(i,!!a.multiple,a.multiple?[]:"",!1))}i[di]=a}catch(e){kc(t,t.return,e)}}break;case 6:if(ml(e,t),vl(t),4&r){if(null===t.stateNode)throw Error(o(162));i=t.stateNode,a=t.memoizedProps;try{i.nodeValue=a}catch(e){kc(t,t.return,e)}}break;case 3:if(ml(e,t),vl(t),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ve(e.containerInfo)}catch(e){kc(t,t.return,e)}break;case 4:default:ml(e,t),vl(t);break;case 13:ml(e,t),vl(t),8192&(i=t.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Hl=Qt())),4&r&&pl(t);break;case 22:if(h=null!==n&&null!==n.memoizedState,1&t.mode?(Gs=(u=Gs)||h,ml(e,t),Gs=u):ml(e,t),vl(t),8192&r){if(u=null!==t.memoizedState,(t.stateNode.isHidden=u)&&!h&&1&t.mode)for(Js=t,h=t.child;null!==h;){for(f=Js=h;null!==Js;){switch(p=(d=Js).child,d.tag){case 0:case 11:case 14:case 15:nl(4,d,d.return);break;case 1:Zs(d,d.return);var m=d.stateNode;if("function"==typeof m.componentWillUnmount){r=d,n=d.return;try{e=r,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(t){kc(r,n,t)}}break;case 5:Zs(d,d.return);break;case 22:if(null!==d.memoizedState){wl(f);continue}}null!==p?(p.return=d,Js=p):wl(f)}h=h.sibling}t:for(h=null,f=t;;){if(5===f.tag){if(null===h){h=f;try{i=f.stateNode,u?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(c=f.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=mt("display",s))}catch(e){kc(t,t.return,e)}}}else if(6===f.tag){if(null===h)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(e){kc(t,t.return,e)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===t)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===t)break t;for(;null===f.sibling;){if(null===f.return||f.return===t)break t;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(e,t),vl(t),4&r&&pl(t);case 21:}}function vl(t){var e=t.flags;if(2&e){try{t:{for(var n=t.return;null!==n;){if(al(n)){var r=n;break t}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(ft(i,""),r.flags&=-33),cl(t,sl(t),i);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(t,sl(t),a);break;default:throw Error(o(161))}}catch(e){kc(t,t.return,e)}t.flags&=-3}4096&e&&(t.flags&=-4097)}function yl(t,e,n){Js=t,bl(t,e,n)}function bl(t,e,n){for(var r=!!(1&t.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Xs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Gs;s=Xs;var c=Gs;if(Xs=a,(Gs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,bl(o,e,n),o=o.sibling;Js=i,Xs=s,Gs=c}xl(t)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):xl(t)}}function xl(t){for(;null!==Js;){var e=Js;if(8772&e.flags){var n=e.alternate;try{if(8772&e.flags)switch(e.tag){case 0:case 11:case 15:Gs||rl(5,e);break;case 1:var r=e.stateNode;if(4&e.flags&&!Gs)if(null===n)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:ns(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;null!==a&&Uo(e,a,r);break;case 3:var s=e.updateQueue;if(null!==s){if(n=null,null!==e.child)switch(e.child.tag){case 5:case 1:n=e.child.stateNode}Uo(e,s,n)}break;case 5:var l=e.stateNode;if(null===n&&4&e.flags){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===e.memoizedState){var u=e.alternate;if(null!==u){var h=u.memoizedState;if(null!==h){var f=h.dehydrated;null!==f&&Ve(f)}}}break;default:throw Error(o(163))}Gs||512&e.flags&&il(e)}catch(t){kc(e,e.return,t)}}if(e===t){Js=null;break}if(null!==(n=e.sibling)){n.return=e.return,Js=n;break}Js=e.return}}function wl(t){for(;null!==Js;){var e=Js;if(e===t){Js=null;break}var n=e.sibling;if(null!==n){n.return=e.return,Js=n;break}Js=e.return}}function Sl(t){for(;null!==Js;){var e=Js;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{rl(4,e)}catch(t){kc(e,n,t)}break;case 1:var r=e.stateNode;if("function"==typeof r.componentDidMount){var i=e.return;try{r.componentDidMount()}catch(t){kc(e,i,t)}}var o=e.return;try{il(e)}catch(t){kc(e,o,t)}break;case 5:var a=e.return;try{il(e)}catch(t){kc(e,a,t)}}}catch(t){kc(e,e.return,t)}if(e===t){Js=null;break}var s=e.sibling;if(null!==s){s.return=e.return,Js=s;break}Js=e.return}}var Ol,kl=Math.ceil,El=x.ReactCurrentDispatcher,_l=x.ReactCurrentOwner,Al=x.ReactCurrentBatchConfig,Pl=0,Ml=null,Cl=null,Tl=0,jl=0,Il=ki(0),Ll=0,Dl=null,Rl=0,Nl=0,Fl=0,Bl=null,zl=null,Hl=0,Vl=1/0,Wl=null,Ul=!1,$l=null,ql=null,Yl=!1,Kl=null,Xl=0,Gl=0,Ql=null,Jl=-1,Zl=0;function tc(){return 6&Pl?Qt():-1!==Jl?Jl:Jl=Qt()}function ec(t){return 1&t.mode?2&Pl&&0!==Tl?Tl&-Tl:null!==go.transition?(0===Zl&&(Zl=me()),Zl):0!==(t=be)?t:t=void 0===(t=window.event)?16:Ge(t.type):1}function nc(t,e,n,r){if(50<Gl)throw Gl=0,Ql=null,Error(o(185));ve(t,n,r),2&Pl&&t===Ml||(t===Ml&&(!(2&Pl)&&(Nl|=n),4===Ll&&sc(t,Tl)),rc(t,r),1===n&&0===Pl&&!(1&e.mode)&&(Vl=Qt()+500,Bi&&Vi()))}function rc(t,e){var n=t.callbackNode;!function(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes;0<o;){var a=31-ae(o),s=1<<a,l=i[a];-1===l?s&n&&!(s&r)||(i[a]=de(s,e)):l<=e&&(t.expiredLanes|=s),o&=~s}}(t,e);var r=fe(t,t===Ml?Tl:0);if(0===r)null!==n&&Kt(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(null!=n&&Kt(n),1===e)0===t.tag?function(t){Bi=!0,Hi(t)}(lc.bind(null,t)):Hi(lc.bind(null,t)),ai((function(){!(6&Pl)&&Vi()})),n=null;else{switch(xe(r)){case 1:n=Zt;break;case 4:n=te;break;case 16:default:n=ee;break;case 536870912:n=re}n=Mc(n,ic.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function ic(t,e){if(Jl=-1,Zl=0,6&Pl)throw Error(o(327));var n=t.callbackNode;if(Sc()&&t.callbackNode!==n)return null;var r=fe(t,t===Ml?Tl:0);if(0===r)return null;if(30&r||r&t.expiredLanes||e)e=gc(t,r);else{e=r;var i=Pl;Pl|=2;var a=pc();for(Ml===t&&Tl===e||(Wl=null,Vl=Qt()+500,fc(t,e));;)try{yc();break}catch(e){dc(t,e)}Ao(),El.current=a,Pl=i,null!==Cl?e=0:(Ml=null,Tl=0,e=Ll)}if(0!==e){if(2===e&&(0!==(i=pe(t))&&(r=i,e=oc(t,i))),1===e)throw n=Dl,fc(t,0),sc(t,r),rc(t,Qt()),n;if(6===e)sc(t,r);else{if(i=t.current.alternate,!(30&r||function(t){for(var e=t;;){if(16384&e.flags){var n=e.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(t){return!1}}}if(n=e.child,16384&e.subtreeFlags&&null!==n)n.return=e,e=n;else{if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}(i)||(e=gc(t,r),2===e&&(a=pe(t),0!==a&&(r=a,e=oc(t,a))),1!==e)))throw n=Dl,fc(t,0),sc(t,r),rc(t,Qt()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(o(345));case 2:case 5:wc(t,zl,Wl);break;case 3:if(sc(t,r),(130023424&r)===r&&10<(e=Hl+500-Qt())){if(0!==fe(t,0))break;if(((i=t.suspendedLanes)&r)!==r){tc(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=ri(wc.bind(null,t,zl,Wl),e);break}wc(t,zl,Wl);break;case 4:if(sc(t,r),(4194240&r)===r)break;for(e=t.eventTimes,i=-1;0<r;){var s=31-ae(r);a=1<<s,(s=e[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Qt()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)){t.timeoutHandle=ri(wc.bind(null,t,zl,Wl),r);break}wc(t,zl,Wl);break;default:throw Error(o(329))}}}return rc(t,Qt()),t.callbackNode===n?ic.bind(null,t):null}function oc(t,e){var n=Bl;return t.current.memoizedState.isDehydrated&&(fc(t,e).flags|=256),2!==(t=gc(t,e))&&(e=zl,zl=n,null!==e&&ac(e)),t}function ac(t){null===zl?zl=t:zl.push.apply(zl,t)}function sc(t,e){for(e&=~Fl,e&=~Nl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-ae(e),r=1<<n;t[n]=-1,e&=~r}}function lc(t){if(6&Pl)throw Error(o(327));Sc();var e=fe(t,0);if(!(1&e))return rc(t,Qt()),null;var n=gc(t,e);if(0!==t.tag&&2===n){var r=pe(t);0!==r&&(e=r,n=oc(t,r))}if(1===n)throw n=Dl,fc(t,0),sc(t,e),rc(t,Qt()),n;if(6===n)throw Error(o(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,wc(t,zl,Wl),rc(t,Qt()),null}function cc(t,e){var n=Pl;Pl|=1;try{return t(e)}finally{0===(Pl=n)&&(Vl=Qt()+500,Bi&&Vi())}}function uc(t){null!==Kl&&0===Kl.tag&&!(6&Pl)&&Sc();var e=Pl;Pl|=1;var n=Al.transition,r=be;try{if(Al.transition=null,be=1,t)return t()}finally{be=r,Al.transition=n,!(6&(Pl=e))&&Vi()}}function hc(){jl=Il.current,Ei(Il)}function fc(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,ii(n)),null!==Cl)for(n=Cl.return;null!==n;){var r=n;switch(eo(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ii();break;case 3:Qo(),Ei(Mi),Ei(Pi),ra();break;case 5:Zo(r);break;case 4:Qo();break;case 13:case 19:Ei(ta);break;case 10:Po(r.type._context);break;case 22:case 23:hc()}n=n.return}if(Ml=t,Cl=t=Ic(t.current,null),Tl=jl=e,Ll=0,Dl=null,Fl=Nl=Rl=0,zl=Bl=null,null!==jo){for(e=0;e<jo.length;e++)if(null!==(r=(n=jo[e]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}jo=null}return t}function dc(t,e){for(;;){var n=Cl;try{if(Ao(),ia.current=Ja,ua){for(var r=sa.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ua=!1}
vendor: 4,470 bytes, line 25
25if(aa=0,ca=la=sa=null,ha=!1,fa=0,_l.current=null,null===n||null===n.return){Ll=1,Dl=e,Cl=null;break}t:{var a=t,s=n.return,l=n,c=e;if(e=Tl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,h=l,f=h.tag;if(!(1&h.mode||0!==f&&11!==f&&15!==f)){var d=h.alternate;d?(h.updateQueue=d.updateQueue,h.memoizedState=d.memoizedState,h.lanes=d.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=gs(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,e),1&p.mode&&ms(a,u,e),c=u;var m=(e=p).updateQueue;if(null===m){var g=new Set;g.add(c),e.updateQueue=g}else m.add(c);break t}if(!(1&e)){ms(a,u,e),mc();break t}c=Error(o(426))}else if(io&&1&l.mode){var v=gs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,e),mo(cs(c,l));break t}}a=c=cs(c,l),4!==Ll&&(Ll=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e,Vo(a,ds(0,c,e));break t;case 1:l=c;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==ql&&ql.has(b)))){a.flags|=65536,e&=-e,a.lanes|=e,Vo(a,ps(a,l,e));break t}}a=a.return}while(null!==a)}xc(n)}catch(t){e=t,Cl===n&&null!==n&&(Cl=n=n.return);continue}break}}function pc(){var t=El.current;return El.current=Ja,null===t?Ja:t}function mc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Ml||!(268435455&Rl)&&!(268435455&Nl)||sc(Ml,Tl)}function gc(t,e){var n=Pl;Pl|=2;var r=pc();for(Ml===t&&Tl===e||(Wl=null,fc(t,e));;)try{vc();break}catch(e){dc(t,e)}if(Ao(),Pl=n,El.current=r,null!==Cl)throw Error(o(261));return Ml=null,Tl=0,Ll}function vc(){for(;null!==Cl;)bc(Cl)}function yc(){for(;null!==Cl&&!Xt();)bc(Cl)}function bc(t){var e=Ol(t.alternate,t,jl);t.memoizedProps=t.pendingProps,null===e?xc(t):Cl=e,_l.current=null}function xc(t){var e=t;do{var n=e.alternate;if(t=e.return,32768&e.flags){if(null!==(n=Ks(n,e)))return n.flags&=32767,void(Cl=n);if(null===t)return Ll=6,void(Cl=null);t.flags|=32768,t.subtreeFlags=0,t.deletions=null}else if(null!==(n=Ys(n,e,jl)))return void(Cl=n);if(null!==(e=e.sibling))return void(Cl=e);Cl=e=t}while(null!==e);0===Ll&&(Ll=5)}function wc(t,e,n){var r=be,i=Al.transition;try{Al.transition=null,be=1,function(t,e,n,r){do{Sc()}while(null!==Kl);if(6&Pl)throw Error(o(327));n=t.finishedWork;var i=t.finishedLanes;if(null===n)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(o(177));t.callbackNode=null,t.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-ae(n),o=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~o}}(t,a),t===Ml&&(Cl=Ml=null,Tl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yl||(Yl=!0,Mc(ee,(function(){return Sc(),null}))),a=!!(15990&n.flags),!!(15990&n.subtreeFlags)||a){a=Al.transition,Al.transition=null;var s=be;be=1;var l=Pl;Pl|=4,_l.current=null,function(t,e){if(ti=Ue,dr(t=fr())){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{var r=(n=(n=t.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(t){n=null;break t}var s=0,l=-1,c=-1,u=0,h=0,f=t,d=null;e:for(;;){for(var p;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)d=f,f=p;for(;;){if(f===t)break e;if(d===n&&++u===i&&(l=s),d===a&&++h===r&&(c=s),null!==(p=f.nextSibling))break;d=(f=d).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ei={focusedElem:t,selectionRange:n},Ue=!1,Js=e;null!==Js;)if(t=(e=Js).child,1028&e.subtreeFlags&&null!==t)t.return=e,Js=t;else for(;null!==Js;){e=Js;try{var m=e.alternate;if(1024&e.flags)switch(e.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:ns(e.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=e.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(o(163))}}catch(t){kc(e,e.return,t)}if(null!==(t=e.sibling)){t.return=e.return,Js=t;break}Js=e.return}m=el,el=!1}
vendor: 6,993 bytes, line 25
25(t,n),gl(n,t),pr(ei),Ue=!!ti,ei=ti=null,t.current=n,yl(n,t,i),Gt(),Pl=l,be=s,Al.transition=a}else t.current=n;if(Yl&&(Yl=!1,Kl=t,Xl=i),a=t.pendingLanes,0===a&&(ql=null),function(t){if(oe&&"function"==typeof oe.onCommitFiberRoot)try{oe.onCommitFiberRoot(ie,t,void 0,!(128&~t.current.flags))}catch(t){}}(n.stateNode),rc(t,Qt()),null!==e)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ul)throw Ul=!1,t=$l,$l=null,t;!!(1&Xl)&&0!==t.tag&&Sc(),a=t.pendingLanes,1&a?t===Ql?Gl++:(Gl=0,Ql=t):Gl=0,Vi()}(t,e,n,r)}finally{Al.transition=i,be=r}return null}function Sc(){if(null!==Kl){var t=xe(Xl),e=Al.transition,n=be;try{if(Al.transition=null,be=16>t?16:t,null===Kl)var r=!1;else{if(t=Kl,Kl=null,Xl=0,6&Pl)throw Error(o(331));var i=Pl;for(Pl|=4,Js=t.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var h=Js;switch(h.tag){case 0:case 11:case 15:nl(8,h,a)}var f=h.child;if(null!==f)f.return=h,Js=f;else for(;null!==Js;){var d=(h=Js).sibling,p=h.return;if(ol(h),h===u){Js=null;break}if(null!==d){d.return=p,Js=d;break}Js=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else t:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break t}Js=a.return}}var b=t.current;for(Js=b;null!==Js;){var x=(s=Js).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Js=x;else t:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(t){kc(l,l.return,t)}if(l===s){Js=null;break t}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break t}Js=l.return}}if(Pl=i,Vi(),oe&&"function"==typeof oe.onPostCommitFiberRoot)try{oe.onPostCommitFiberRoot(ie,t)}catch(t){}r=!0}return r}finally{be=n,Al.transition=e}}return!1}function Oc(t,e,n){t=zo(t,e=ds(0,e=cs(n,e),1),1),e=tc(),null!==t&&(ve(t,1,e),rc(t,e))}function kc(t,e,n){if(3===t.tag)Oc(t,t,n);else for(;null!==e;){if(3===e.tag){Oc(e,t,n);break}if(1===e.tag){var r=e.stateNode;if("function"==typeof e.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){e=zo(e,t=ps(e,t=cs(n,t),1),1),t=tc(),null!==e&&(ve(e,1,t),rc(e,t));break}}e=e.return}}function Ec(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),e=tc(),t.pingedLanes|=t.suspendedLanes&n,Ml===t&&(Tl&n)===n&&(4===Ll||3===Ll&&(130023424&Tl)===Tl&&500>Qt()-Hl?fc(t,0):Fl|=n),rc(t,e)}function _c(t,e){0===e&&(1&t.mode?(e=ue,!(130023424&(ue<<=1))&&(ue=4194304)):e=1);var n=tc();null!==(t=Do(t,e))&&(ve(t,e,n),rc(t,n))}function Ac(t){var e=t.memoizedState,n=0;null!==e&&(n=e.retryLane),_c(t,n)}function Pc(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(e),_c(t,n)}function Mc(t,e){return Yt(t,e)}function Cc(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(t,e,n,r){return new Cc(t,e,n,r)}function jc(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Ic(t,e){var n=t.alternate;return null===n?((n=Tc(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&t.flags,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Lc(t,e,n,r,i,a){var s=2;if(r=t,"function"==typeof t)jc(t)&&(s=1);else if("string"==typeof t)s=5;else t:switch(t){case O:return Dc(n.children,i,a,e);case k:s=8,i|=8;break;case E:return(t=Tc(12,n,e,2|i)).elementType=E,t.lanes=a,t;case M:return(t=Tc(13,n,e,i)).elementType=M,t.lanes=a,t;case C:return(t=Tc(19,n,e,i)).elementType=C,t.lanes=a,t;case I:return Rc(n,i,a,e);default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case _:s=10;break t;case A:s=9;break t;case P:s=11;break t;case T:s=14;break t;case j:s=16,r=null;break t}throw Error(o(130,null==t?t:typeof t,""))}return(e=Tc(s,n,e,i)).elementType=t,e.type=r,e.lanes=a,e}function Dc(t,e,n,r){return(t=Tc(7,t,r,e)).lanes=n,t}function Rc(t,e,n,r){return(t=Tc(22,t,r,e)).elementType=I,t.lanes=n,t.stateNode={isHidden:!1},t}function Nc(t,e,n){return(t=Tc(6,t,null,e)).lanes=n,t}function Fc(t,e,n){return(e=Tc(4,null!==t.children?t.children:[],t.key,e)).lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Bc(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ge(0),this.expirationTimes=ge(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ge(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zc(t,e,n,r,i,o,a,s,l){return t=new Bc(t,e,n,s,l),1===e?(e=1,!0===o&&(e|=8)):e=0,o=Tc(3,null,null,e),t.current=o,o.stateNode=t,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),t}function Hc(t){if(!t)return Ai;t:{if(Vt(t=t._reactInternals)!==t||1!==t.tag)throw Error(o(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(ji(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(null!==e);throw Error(o(171))}if(1===t.tag){var n=t.type;if(ji(n))return Di(t,n,e)}return e}function Vc(t,e,n,r,i,o,a,s,l){return(t=zc(n,r,!0,t,0,o,0,s,l)).context=Hc(null),n=t.current,(o=Bo(r=tc(),i=ec(n))).callback=null!=e?e:null,zo(n,o,i),t.current.lanes=i,ve(t,i,r),rc(t,r),t}function Wc(t,e,n,r){var i=e.current,o=tc(),a=ec(i);return n=Hc(n),null===e.context?e.context=n:e.pendingContext=n,(e=Bo(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),null!==(t=zo(i,e,a))&&(nc(t,i,a,o),Ho(t,i,a)),a}function Uc(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function $c(t,e){if(null!==(t=t.memoizedState)&&null!==t.dehydrated){var n=t.retryLane;t.retryLane=0!==n&&n<e?n:e}}function qc(t,e){$c(t,e),(t=t.alternate)&&$c(t,e)}Ol=function(t,e,n){if(null!==t)if(t.memoizedProps!==e.pendingProps||Mi.
vendor: 8,852 bytes, line 25
25current)bs=!0;else{if(!(t.lanes&n||128&e.flags))return bs=!1,function(t,e,n){switch(e.tag){case 3:Ms(e),po();break;case 5:Jo(e);break;case 1:ji(e.type)&&Ri(e);break;case 4:Go(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;_i(Oo,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=e.memoizedState))return null!==r.dehydrated?(_i(ta,1&ta.current),e.flags|=128,null):n&e.child.childLanes?Ns(t,e,n):(_i(ta,1&ta.current),null!==(t=Us(t,e,n))?t.sibling:null);_i(ta,1&ta.current);break;case 19:if(r=!!(n&e.childLanes),128&t.flags){if(r)return Vs(t,e,n);e.flags|=128}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),_i(ta,ta.current),r)break;return null;case 22:case 23:return e.lanes=0,ks(t,e,n)}return Us(t,e,n)}(t,e,n);bs=!!(131072&t.flags)}else bs=!1,io&&1048576&e.flags&&Zi(e,qi,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Ws(t,e),t=e.pendingProps;var i=Ti(e,Pi.current);Co(e,n),i=ga(null,e,r,t,i,n);var a=va();return e.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(e.tag=1,e.memoizedState=null,e.updateQueue=null,ji(r)?(a=!0,Ri(e)):a=!1,e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,No(e),i.updater=is,e.stateNode=i,i._reactInternals=e,ls(e,r,t,n),e=Ps(null,e,r,!0,a,n)):(e.tag=0,io&&a&&to(e),xs(null,e,i,n),e=e.child),e;case 16:r=e.elementType;t:{switch(Ws(t,e),t=e.pendingProps,r=(i=r._init)(r._payload),e.type=r,i=e.tag=function(t){if("function"==typeof t)return jc(t)?1:0;if(null!=t){if((t=t.$$typeof)===P)return 11;if(t===T)return 14}return 2}(r),t=ns(r,t),i){case 0:e=_s(null,e,r,t,n);break t;case 1:e=As(null,e,r,t,n);break t;case 11:e=ws(null,e,r,t,n);break t;case 14:e=Ss(null,e,r,ns(r.type,t),n);break t}throw Error(o(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,_s(t,e,r,i=e.elementType===r?i:ns(r,i),n);case 1:return r=e.type,i=e.pendingProps,As(t,e,r,i=e.elementType===r?i:ns(r,i),n);case 3:t:{if(Ms(e),null===t)throw Error(o(387));r=e.pendingProps,i=(a=e.memoizedState).element,Fo(t,e),Wo(e,r,null,n);var s=e.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=a,e.memoizedState=a,256&e.flags){e=Cs(t,e,r,n,i=cs(Error(o(423)),e));break t}if(r!==i){e=Cs(t,e,r,n,i=cs(Error(o(424)),e));break t}for(ro=ci(e.stateNode.containerInfo.firstChild),no=e,io=!0,oo=null,n=So(e,null,r,n),e.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===i){e=Us(t,e,n);break t}xs(t,e,r,n)}e=e.child}return e;case 5:return Jo(e),null===t&&co(e),r=e.type,i=e.pendingProps,a=null!==t?t.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(e.flags|=32),Es(t,e),xs(t,e,s,n),e.child;case 6:return null===t&&co(e),null;case 13:return Ns(t,e,n);case 4:return Go(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=wo(e,null,r,n):xs(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,ws(t,e,r,i=e.elementType===r?i:ns(r,i),n);case 7:return xs(t,e,e.pendingProps,n),e.child;case 8:case 12:return xs(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,s=i.value,_i(Oo,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Mi.current){e=Us(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bo(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var h=(u=u.shared).pending;null===h?c.next=c:(c.next=h.next,h.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Mo(a.return,n,e),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===e.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Mo(s,n,e),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===e){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Co(e,n),r=r(i=To(i)),e.flags|=1,xs(t,e,r,n),e.child;case 14:return i=ns(r=e.type,e.pendingProps),Ss(t,e,r,i=ns(r.type,i),n);case 15:return Os(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:ns(r,i),Ws(t,e),e.tag=1,ji(r)?(t=!0,Ri(e)):t=!1,Co(e,n),as(e,r,i),ls(e,r,i,n),Ps(null,e,r,!0,t,n);case 19:return Vs(t,e,n);case 22:return ks(t,e,n)}throw Error(o(156,e.tag))};var Yc="function"==typeof reportError?reportError:function(t){console.error(t)};function Kc(t){this._internalRoot=t}function Xc(t){this._internalRoot=t}function Gc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)}function Qc(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Jc(){}function Zc(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var t=Uc(a);s.call(t)}}Wc(e,a,t,i)}else a=function(t,e,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var t=Uc(a);o.call(t)}}var a=Vc(e,r,t,0,null,!1,0,"",Jc);return t._reactRootContainer=a,t[pi]=a.current,Vr(8===t.nodeType?t.parentNode:t),uc(),a}for(;i=t.lastChild;)t.removeChild(i);if("function"==typeof r){var s=r;r=function(){var t=Uc(l);s.call(t)}}var l=zc(t,0,!1,null,0,!1,0,"",Jc);return t._reactRootContainer=l,t[pi]=l.current,Vr(8===t.nodeType?t.parentNode:t),uc((function(){Wc(e,l,n,r)})),l}(n,e,t,i,r);return Uc(a)}Xc.prototype.render=Kc.prototype.render=function(t){var e=this._internalRoot;if(null===e)throw Error(o(409));Wc(t,e,null,null)},Xc.prototype.unmount=Kc.prototype.unmount=function(){var t=this._internalRoot;if(null!==t){this._internalRoot=null;var e=t.containerInfo;uc((function(){Wc(null,t,null,null)})),e[pi]=null}},Xc.prototype.unstable_scheduleHydration=function(t){if(t){var e=ke();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ie.length&&0!==e&&e<Ie[n].priority;n++);Ie.splice(n,0,t),0===n&&Ne(t)}},we=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=he(e.pendingLanes);0!==n&&(ye(e,1|n),rc(e,Qt()),!(6&Pl)&&(Vl=Qt()+500,Vi()))}break;case 13:uc((function(){var e=Do(t,1);if(null!==e){var n=tc();nc(e,t,1,n)}})),qc(t,1)}},Se=function(t){if(13===t.tag){var e=Do(t,134217728);if(null!==e)nc(e,t,134217728,tc());qc(t,134217728)}},Oe=function(t){if(13===t.tag){var e=ec(t),n=Do(t,e);if(null!==n)nc(n,t,e,tc());qc(t,e)}},ke=function(){return be},Ee=function(t,e){var n=be;try{return be=t,e()}finally{be=n}},St=function(t,e,n){switch(e){case"input":if(J(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=wi(r);if(!i)throw Error(o(90));Y(r),J(r,i)}}}break;case"textarea":ot(t,n);break;case"select":null!=(e=n.value)&&nt(t,!!n.multiple,e,!1)}},Pt=cc,Mt=uc;var tu={usingClientEntryPoint:!1,Events:[bi,xi,wi,_t,At,cc]},eu={findFiberByHostInstance:yi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=$t(t))?null:t.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ie=ru.inject(nu),oe=ru}catch(ut){}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,e.createPortal=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gc(e))throw Error(o(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)},e.createRoot=function(t,e){if(!Gc(t))throw Error(o(299));var n=!1,r="",i=Yc;return null!=e&&(!0===e.unstable_strictMode&&(n=!0),void 0!==e.identifierPrefix&&(r=e.identifierPrefix),void 0!==e.onRecoverableError&&(i=e.onRecoverableError)),e=zc(t,1,!1,null,0,n,0,r,i),t[pi]=e.current,Vr(8===t.nodeType?t.parentNode:t),new
25Kc(e)},e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternals;if(void 0===e){if("function"==typeof t.render)throw Error(o(188));throw t=Object.keys(t).join(","),Error(o(268,t))}return t=null===(t=$t(e))?null:t.stateNode},e.flushSync=function(t){return uc(t)},e.hydrate=function(t,e,n){if(!Qc(e))throw Error(o(200));return Zc(null,t,e,!0,n)},e.hydrateRoot=function(t,e,n){if(!Gc(t))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Yc;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),e=Vc(e,null,t,1,null!=n?n:null,i,0,a,s),t[pi]=e.current,Vr(t),r)for(t=0;t<r.length;t++)i=(i=(n=r[t])._getVersion)(n._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Xc(e)},e.render=function(t,e,n){if(!Qc(e))throw Error(o(200));return Zc(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Qc(t))throw Error(o(40));return!!t._reactRootContainer&&(uc((function(){Zc(null,null,t,!1,(function(){t._reactRootContainer=null,t[pi]=null}))})),!0)},e.unstable_batchedUpdates=cc,e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Qc(n))throw Error(o(200));if(null==t||void 0===t._reactInternals)throw Error(o(38));return Zc(t,e,n,!1,r)},e.version="18.3.1-next-f1338f8080-20240426"},22799:(t,e)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case o:case s:case a:case f:case d:return t;default:switch(t=t&&t.$$typeof){case u:case c:case h:case m:case p:case l:return t;default:return e}}case i:return e}}}n=Symbol.for("react.module.reference"),e.isFragment=function(t){return v(t)===o}},22812:t=>{"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},23167:(t,e,n)=>{"use strict";var r=n(94901),i=n(20034),o=n(52967);t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},23181:(t,e,n)=>{var r=n(85508)();t.exports=r},23288:(t,e,n)=>{"use strict";var r=n(79504),i=n(36840),o=Date.prototype,a="Invalid Date",s="toString",l=r(o[s]),c=r(o.getTime);String(new Date(NaN))!==a&&i(o,s,(function(){var t=c(this);return t==t?l(this):a}))},23418:(t,e,n)=>{"use strict";var r=n(46518),i=n(97916);r({target:"Array",stat:!0,forced:!n(84428)((function(t){Array.from(t)}))},{from:i})},23495:(t,e,n)=>{"use strict";n.d(e,{h:()=>y});var r=n(96540),i=n(34164),o=n(47429),a=n(99582),s=n(63036);function l(t){return l="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},l(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function u(t,e,n){return e=f(e),function(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}
25function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}function g(){return g=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g.apply(this,arguments)}var v=function(t){var e=t.yAxisId,n=(0,o.yi)(),l=(0,o.rY)(),c=(0,o.Nk)(e);return null==c?null:r.createElement(a.u,g({},c,{className:(0,i.A)("recharts-".concat(c.axisType," ").concat(c.axisType),c.className),viewBox:{x:0,y:0,width:n,height:l},ticksGenerator:function(t){return(0,s.Rh)(t,!0)}}))},y=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(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&&d(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){return r.createElement(v,this.props)}}])&&c(n.prototype,i),o&&c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);p(y,"displayName","YAxis"),p(y,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1})},23500:(t,e,n)=>{"use strict";var r=n(44576),i=n(67400),o=n(79296),a=n(90235),s=n(66699),l=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var c in i)i[c]&&l(r[c]&&r[c].prototype);l(o)},23521:(t,e,n)=>{"use strict";function r(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}n.d(e,{b:()=>r})},23777:(t,e,n)=>{var r=n(80909);t.exports=function(t,e){var n=!0;return r(t,(function(t,r,i){return n=!!e(t,r,i)})),n}},23792:(t,e,n)=>{"use strict";var r=n(25397),i=n(6469),o=n(26269),a=n(91181),s=n(24913).f,l=n(51088),c=n(62529),u=n(96395),h=n(43724),f="Array Iterator",d=a.set,p=a.getterFor(f);t.exports=l(Array,"Array",(function(t,e){d(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var m=o.Arguments=o.Array;
25if(i("keys"),i("values"),i("entries"),!u&&h&&"values"!==m.name)try{s(m,"name",{value:"values"})}catch(t){}},23805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},24599:(t,e,n)=>{"use strict";var r=n(46518),i=n(44576),o=n(79472)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},24659:(t,e,n)=>{"use strict";var r=n(79039),i=n(6980);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},24713:(t,e,n)=>{var r=n(2523),i=n(15389),o=n(61489),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(t,i(e,3),l)}},24739:(t,e,n)=>{var r=n(26025);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},24913:(t,e,n)=>{"use strict";var r=n(43724),i=n(35917),o=n(48686),a=n(28551),s=n(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=u(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},25160:t=>{t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},25276:(t,e,n)=>{"use strict";var r=n(46518),i=n(27476),o=n(19617).indexOf,a=n(34598),s=i([].indexOf),l=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:l||!a("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?s(this,t,e)||0:o(this,t,e)}})},25397:(t,e,n)=>{"use strict";var r=n(47055),i=n(67750);t.exports=function(t){return r(i(t))}},25440:(t,e,n)=>{"use strict";var r=n(18745),i=n(69565),o=n(79504),a=n(89228),s=n(79039),l=n(28551),c=n(94901),u=n(20034),h=n(91291),f=n(18014),d=n(655),p=n(67750),m=n(57829),g=n(55966),v=n(2478),y=n(61034),b=n(56682),x=n(78227)("replace"),w=Math.max,S=Math.min,O=o([].concat),k=o([].push),E=o("".indexOf),_=o("".slice),A="$0"==="a".replace(/./,"$0"),P=!!/./[x]&&""===/./[x]("a","$0");a("replace",(function(t,e,n){var o=P?"$":"$0";return[function(t,n){var r=p(this),o=u(t)?g(t,x):void 0;return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=l(this),s=d(t);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var u=n(e,a,s,i);if(u.done)return u.value}var p=c(i);p||(i=d(i));var g,x=d(y(a)),A=-1!==E(x,"g");A&&(g=-1!==E(x,"u"),a.lastIndex=0);for(var P,M=[];null!==(P=b(a,s))&&(k(M,P),A);){""===d(P[0])&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var C,T="",j=0,I=0;I<M.length;I++){for(var L,D=d((P=M[I])[0]),R=w(S(h(P.index),s.length),0),N=[],F=1;F<P.length;F++)k(N,void 0===(C=P[F])?C:String(C));var B=P.groups;if(p){var z=O([D],N,R,s);void 0!==B&&k(z,B),L=d(r(i,void 0,z))}else L=v(D,s,R,N,B,i);R>=j&&(T+=_(s,j,R)+L,j=R+D.length)}return T+_(s,j)}]}),!!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!A||P)},25745:(t,e,n)=>{"use strict";var r=n(77629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},25843:(t,e,n)=>{"use strict";var r=n(46518),i=n(52703);r({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},25911:(t,e,n)=>{var r=n(38859),i=n(14248),o=n(19219);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,h=e.length;if(u!=h&&!(c&&h>u))return!1;var f=l.get(t),d=l.get(e);if(f&&d)return f==e&&d==t;var p=-1,m=!0,g=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++p<u;){var v=t[p],y=e[p];if(a)var b=c?a(y,v,p,e,t,l):a(v,y,p,t,e,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!i(e,(function(t,e){if(!o(g,e)&&(v===t||s(v,t,n,a,l)))return g.push(e)}))){m=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){m=!1;break}}return l.delete(t),l.delete(e),m}},26025:(t,e,n)=>{var r=n(75288);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},26099:(t,e,n)=>{"use strict";var r=n(92140),i=n(36840),o=n(53179);r||i(Object.prototype,"toString",o,{unsafe:!0})},26198:(t,e,n)=>{"use strict";var r=n(18014);t.exports=function(t){return r(t.length)}},26269:t=>{"use strict";
25t.exports={}},27208:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},27301:t=>{t.exports=function(t){return function(e){return t(e)}}},27337:(t,e,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(35610),a=RangeError,s=String.fromCharCode,l=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,i=0;r>i;){if(e=+arguments[i++],o(e,1114111)!==e)throw new a(e+" is not a valid code point");n[i]=e<65536?s(e):s(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},27476:(t,e,n)=>{"use strict";var r=n(22195),i=n(79504);t.exports=function(t){if("Function"===r(t))return i(t)}},27495:(t,e,n)=>{"use strict";var r=n(46518),i=n(57323);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},27534:(t,e,n)=>{var r=n(72552),i=n(40346);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},27763:(t,e,n)=>{"use strict";n.d(e,{w:()=>i});var r=n(29407);function i(t,e){const n=(0,r.a)(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}},28077:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},28303:(t,e,n)=>{var r=n(56110)(n(9325),"WeakMap");t.exports=r},28551:(t,e,n)=>{"use strict";var r=n(20034),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not an object")}},28586:(t,e,n)=>{var r=n(56449),i=n(44394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},28706:(t,e,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(34376),a=n(20034),s=n(48981),l=n(26198),c=n(96837),u=n(97040),h=n(1469),f=n(70597),d=n(78227),p=n(39519),m=d("isConcatSpreadable"),g=p>=51||!i((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),v=function(t){if(!a(t))return!1;var e=t[m];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,arity:1,forced:!g||!f("concat")},{concat:function(t){var e,n,r,i,o,a=s(this),f=h(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(v(o=-1===e?a:arguments[e]))for(i=l(o),c(d+i),n=0;n<i;n++,d++)n in o&&u(f,d,o[n]);else c(d+1),u(f,d++,o);return f.length=d,f}})},28754:(t,e,n)=>{var r=n(25160);t.exports=function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:r(t,e,n)}},28879:(t,e,n)=>{var r=n(74335)(Object.getPrototypeOf,Object);t.exports=r},29407:(t,e,n)=>{"use strict";n.d(e,{a:()=>i});var r=n(43329);function i(t,e){return(0,r.w)(e||t,t)}},29705:(t,e,n)=>{"use strict";n.d(e,{I:()=>K});var r=n(96540);function i(){}function o(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function a(t){this._context=t}function s(t){this._context=t}function l(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},s.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class c{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function u(t){this._context=t}function h(t){this._context=t}function f(t){return new h(t)}function d(t){return t<0?-1:1}function p(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);
vendor: 4,649 bytes, line 25
25return(d(o)+d(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function m(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function g(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function v(t){this._context=t}function y(t){this._context=new b(t)}function b(t){this._context=t}function x(t){this._context=t}function w(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function S(t,e){this._context=t,this._t=e}u.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:g(this,this._t0,m(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,g(this,m(this,n=p(this,t,e)),n);break;default:g(this,this._t0,n=p(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(y.prototype=Object.create(v.prototype)).point=function(t,e){v.prototype.point.call(this,e,t)},b.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},x.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=w(t),i=w(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var O=n(45917),k=n(48946),E=n(11509);function _(t){return t[0]}function A(t){return t[1]}function P(t,e){var n=(0,k.A)(!0),r=null,i=f,o=null,a=(0,E.i)(s);function s(s){var l,c,u,h=(s=(0,O.A)(s)).length,f=!1;for(null==r&&(o=i(u=a())),l=0;l<=h;++l)!(l<h&&n(c=s[l],l,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(c,l,s),+e(c,l,s));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?_:(0,k.A)(t),e="function"==typeof e?e:void 0===e?A:(0,k.A)(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,k.A)(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,k.A)(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:(0,k.A)(!!t),s):n}
25,s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}function M(t,e,n){var r=null,i=(0,k.A)(!0),o=null,a=f,s=null,l=(0,E.i)(c);function c(c){var u,h,f,d,p,m=(c=(0,O.A)(c)).length,g=!1,v=new Array(m),y=new Array(m);for(null==o&&(s=a(p=l())),u=0;u<=m;++u){if(!(u<m&&i(d=c[u],u,c))===g)if(g=!g)h=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=h;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}g&&(v[u]=+t(d,u,c),y[u]=+e(d,u,c),s.point(r?+r(d,u,c):v[u],n?+n(d,u,c):y[u]))}if(p)return s=null,p+""||null}function u(){return P().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?_:(0,k.A)(+t),e="function"==typeof e?e:void 0===e?(0,k.A)(0):(0,k.A)(+e),n="function"==typeof n?n:void 0===n?A:(0,k.A)(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,k.A)(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,k.A)(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,k.A)(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,k.A)(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,k.A)(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,k.A)(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,k.A)(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}var C=n(55808),T=n.n(C),j=n(1882),I=n.n(j),L=n(34164),D=n(98940),R=n(94501),N=n(59744);function F(t){return F="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},F(t)}function B(){return B=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},B.apply(this,arguments)}function z(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 H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?z(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e,n){var r;return r=function(t,e){if("object"!=F(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==F(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var W={curveBasisClosed:function(t){return new s(t)},curveBasisOpen:function(t){return new l(t)},curveBasis:function(t){return new a(t)},curveBumpX:function(t){return new c(t,!0)},curveBumpY:function(t){return new c(t,!1)},curveLinearClosed:function(t){return new u(t)},curveLinear:f,curveMonotoneX:function(t){return new v(t)},curveMonotoneY:function(t){return new y(t)},curveNatural:function(t){return new x(t)},curveStep:function(t){return new S(t,.5)},curveStepAfter:function(t){return new S(t,1)},curveStepBefore:function(t){return new S(t,0)}},U=function(t){return t.x===+t.x&&t.y===+t.y},$=function(t){return t.x},q=function(t){return t.y},Y=function(t){var e,n=t.type,r=void 0===n?"linear":n,i=t.points,o=void 0===i?[]:i,a=t.baseLine,s=t.layout,l=t.connectNulls,c=void 0!==l&&l,u=function(t,e){if(I()(t))return t;var n="curve".concat(T()(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?W[n]||f:W["".concat(n).concat("vertical"===e?"Y":"X")]}(r,s),h=c?o.filter((function(t){return U(t)})):o;if(Array.isArray(a)){var d=c?a.filter((function(t){return U(t)})):a,p=h.map((function(t,e){return H(H({},t),{},{base:d[e]})}));return(e="vertical"===s?M().y(q).x1($).x0((function(t){return t.base.x})):M().x($).y1(q).y0((function(t){return t.base.y}))).defined(U).curve(u),e(p)}return(e="vertical"===s&&(0,N.Et)(a)?M().y(q).x1($).x0(a):(0,N.Et)(a)?M().x($).y1(q).y0(a):P().x($).y(q)).defined(U).curve(u),e(h)},K=function(t){var e=t.className,n=t.points,i=t.path,o=t.pathRef;if(!(n&&n.length||i))return null;var a=n&&n.length?Y(t):i;return r.createElement("path",B({},(0,R.J9)(t,!1),(0,D._U)(t),{className:(0,L.A)("recharts-curve",e),d:a,ref:o}))}},29817:t=>{t.exports=function(t){return this.__data__.has(t)}},29905:t=>{t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},30228:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||t,a),l=n?n+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},s.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},s.prototype.emit=function(t,e,r,i,o,a){var s=n?n+t:t;if(!this._events[s])return!1;var l,c,u=this._events[s],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,i),!0;case 5:return u.fn.call(u.context,e,r,i,o),!0;case 6:return u.fn.call(u.context,e,r,i,o,a),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,d=u.length;for(c=0;c<d;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,r);break;case 4:u[c].fn.call(u[c].context,e,r,i);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},s.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},s.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==e||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==e||i&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,t.exp
25orts=s},30294:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},30361:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},30421:t=>{"use strict";t.exports={}},30566:(t,e,n)=>{"use strict";var r=n(79504),i=n(79306),o=n(20034),a=n(39297),s=n(67680),l=n(40616),c=Function,u=r([].concat),h=r([].join),f={};t.exports=l?c.bind:function(t){var e=i(this),n=e.prototype,r=s(arguments,1),l=function(){var n=u(r,s(arguments));return this instanceof l?function(t,e,n){if(!a(f,e)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";f[e]=c("C,a","return new C("+h(r,",")+")")}return f[e](t,n)}(e,n.length,n):e.apply(t,n)};return o(n)&&(l.prototype=n),l}},30641:(t,e,n)=>{var r=n(86649),i=n(95950);t.exports=function(t,e){return t&&r(t,e,i)}},30684:t=>{"use strict";t.exports=function(t,e){var n="function"==typeof Iterator&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch(t){return!0}}},30756:(t,e,n)=>{var r=n(23805);t.exports=function(t){return t==t&&!r(t)}},30958:(t,e,n)=>{"use strict";n(5240)},31175:(t,e,n)=>{var r=n(26025);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},31240:(t,e,n)=>{"use strict";var r=n(79504);t.exports=r(1.1.valueOf)},31380:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},31415:(t,e,n)=>{"use strict";n(92405)},31684:(t,e,n)=>{var r=n(93599),i=n(56176),o=n(83488);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},31769:(t,e,n)=>{var r=n(56449),i=n(28586),o=n(61802),a=n(13222);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},31800:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},32357:(t,e,n)=>{"use strict";var r=n(43724),i=n(79039),o=n(79504),a=n(42787),s=n(71072),l=n(25397),c=o(n(48773).f),u=o([].push),h=r&&i((function(){var t=Object.create(null);return t[2]=2,!c(t,2)})),f=function(t){return function(e){for(var n,i=l(e),o=s(i),f=h&&null===a(i),d=o.length,p=0,m=[];d>p;)n=o[p++],r&&!(f?n in i:c(i,n))||u(m,t?[n,i[n]]:i[n]);return m}};t.exports={entries:f(!0),values:f(!1)}},32603:(t,e,n)=>{"use strict";var r=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},32804:(t,e,n)=>{var r=n(56110)(n(9325),"Promise");t.exports=r},32865:(t,e,n)=>{var r=n(19570),i=n(51811)(r);t.exports=i},33031:(t,e,n)=>{var r=n(83120),i=n(46155),o=n(69302),a=n(36800),s=o((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])}));t.exports=s},33110:(t,e,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(69565),s=n(79504),l=n(79039),c=n(94901),u=n(10757),h=n(67680),f=n(66933),d=n(4495),p=String,m=i("JSON","stringify"),g=s(/./.exec),v=s("".charAt),y=s("".charCodeAt),b=s("".replace),x=s(1.1.toString),w=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,k=!d||l((function(){var t=i("Symbol")("stringify detection");return"[null]"!==m([t])||"{}"!==m({a:t})||"{}"!==m(Object(t))})),E=l((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),_=function(t,e){var n=h(arguments),r=f(e);if(c(r)||void 0!==t&&!u(t))return n[1]=function(t,e){if(c(r)&&(e=a(r,this,p(t),e)),!u(e))return e},o(m,null,n)},A=function(t,e,n){var r=v(n,e-1),i=v(n,e+1);return g(S,t)&&!g(O,i)||g(O,t)&&!g(S,r)?"\\u"+x(y(t,0),16):t};m&&r({target:"JSON",stat:!0,arity:3,forced:k||E},{stringify:function(t,e,n){var r=h(arguments),i=o(k?_:m,null,r);return E&&"string"==typeof i?b(i,w,A):i}})},33392:(t,e,n)=>{"use strict";var r=n(79504),i=0,o=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},33517:(t,e,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(36955),s=n(97751),l=n(33706),c=function(){},u=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),d=!h.test(c),p=function(t){if(!o(t))return!1;try{return u(c,[],t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(h,l(t))}catch(t){return!0}};
25m.sham=!0,t.exports=!u||i((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?m:p},33706:(t,e,n)=>{"use strict";var r=n(79504),i=n(94901),o=n(77629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},33717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},33994:(t,e,n)=>{"use strict";var r=n(57657).IteratorPrototype,i=n(2360),o=n(6980),a=n(10687),s=n(26269),l=function(){return this};t.exports=function(t,e,n,c){var u=e+" Iterator";return t.prototype=i(r,{next:o(+!c,n)}),a(t,u,!1,!0),s[u]=l,t}},34124:(t,e,n)=>{"use strict";var r=n(79039),i=n(20034),o=n(22195),a=n(15652),s=Object.isExtensible,l=r((function(){s(1)}));t.exports=l||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!==o(t))&&(!s||s(t)))}:s},34164:(t,e,n)=>{"use strict";function r(t){var e,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=r(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}n.d(e,{A:()=>i});const i=function(){for(var t,e,n=0,i="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=r(t))&&(i&&(i+=" "),i+=e);return i}},34376:(t,e,n)=>{"use strict";var r=n(22195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},34527:(t,e,n)=>{"use strict";var r=n(43724),i=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},34598:(t,e,n)=>{"use strict";var r=n(79039);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},34723:(t,e,n)=>{"use strict";n.d(e,{J:()=>m,M:()=>v});var r=n(96540),i=n(34164),o=n(16473),a=n(94501);function s(t){return s="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},s(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function c(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(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.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],h=0;h<4;h++)u[h]=i[h]>a?a:i[h];o="M".concat(t,",").concat(e+s*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(t+l*u[0],",").concat(e)),o+="L ".concat(t+n-l*u[1],",").concat(e),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(t+n,",").concat(e+s*u[1])),o+="L ".concat(t+n,",").concat(e+r-s*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(t+n-l*u[2],",").concat(e+r)),o+="L ".concat(t+l*u[3],",").concat(e+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+r-s*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var f=Math.min(a,i);o="M ".concat(t,",").concat(e+s*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+l*f,",").concat(e,"\n L ").concat(t+n-l*f,",").concat(e,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+n,",").concat(e+s*f,"\n L ").concat(t+n,",").concat(e+r-s*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t+n-l*f,",").concat(e+r,"\n L ").concat(t+l*f,",").concat(e+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(c,",").concat(t,",").concat(e+r-s*f," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},m=function(t,e){if(!t||!e)return!1;
25var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,s=e.height;if(Math.abs(a)>0&&Math.abs(s)>0){var l=Math.min(i,i+a),c=Math.max(i,i+a),u=Math.min(o,o+s),h=Math.max(o,o+s);return n>=l&&n<=c&&r>=u&&r<=h}return!1},g={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},v=function(t){var e=f(f({},g),t),n=(0,r.useRef)(),s=c((0,r.useState)(-1),2),u=s[0],h=s[1];(0,r.useEffect)((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&h(t)}catch(t){}}),[]);var d=e.x,m=e.y,v=e.width,y=e.height,b=e.radius,x=e.className,w=e.animationEasing,S=e.animationDuration,O=e.animationBegin,k=e.isAnimationActive,E=e.isUpdateAnimationActive;if(d!==+d||m!==+m||v!==+v||y!==+y||0===v||0===y)return null;var _=(0,i.A)("recharts-rectangle",x);return E?r.createElement(o.Ay,{canBegin:u>0,from:{width:v,height:y,x:d,y:m},to:{width:v,height:y,x:d,y:m},duration:S,animationEasing:w,isActive:E},(function(t){var i=t.width,s=t.height,c=t.x,h=t.y;return r.createElement(o.Ay,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:O,duration:S,isActive:k,easing:w}
vendor: 4,442 bytes, line 25
25,r.createElement("path",l({},(0,a.J9)(e,!0),{className:_,d:p(c,h,i,s,b),ref:n})))})):r.createElement("path",l({},(0,a.J9)(e,!0),{className:_,d:p(d,m,v,y,b)}))}},34782:(t,e,n)=>{"use strict";var r=n(46518),i=n(34376),o=n(33517),a=n(20034),s=n(35610),l=n(26198),c=n(25397),u=n(97040),h=n(78227),f=n(70597),d=n(67680),p=f("slice"),m=h("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,h,f=c(this),p=l(f),y=s(t,p),b=s(void 0===e?p:e,p);if(i(f)&&(n=f.constructor,(o(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return d(f,y,b);for(r=new(void 0===n?g:n)(v(b-y,0)),h=0;y<b;y++,h++)y in f&&u(r,h,f[y]);return r.length=h,r}})},34840:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},34932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},35031:(t,e,n)=>{"use strict";var r=n(97751),i=n(79504),o=n(38480),a=n(33717),s=n(28551),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},35548:(t,e,n)=>{"use strict";var r=n(33517),i=n(16823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a constructor")}},35610:(t,e,n)=>{"use strict";var r=n(91291),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},35749:(t,e,n)=>{var r=n(81042);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},35917:(t,e,n)=>{"use strict";var r=n(43724),i=n(79039),o=n(4055);t.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},36033:(t,e,n)=>{"use strict";n(48523)},36043:(t,e,n)=>{"use strict";var r=n(79306),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw new i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},36800:(t,e,n)=>{var r=n(75288),i=n(64894),o=n(30361),a=n(23805);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},36840:(t,e,n)=>{"use strict";var r=n(94901),i=n(24913),o=n(50283),a=n(39433);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(r(n)&&o(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},36955:(t,e,n)=>{"use strict";var r=n(92140),i=n(94901),o=n(22195),a=n(78227)("toStringTag"),s=Object,l="Arguments"===o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:l?o(e):"Object"===(r=o(e))&&i(e.callee)?"Arguments":r}},37167:(t,e,n)=>{var r=n(4901),i=n(27301),o=n(86009),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},37217:(t,e,n)=>{var r=n(80079),i=n(51420),o=n(90938),a=n(63605),s=n(29817),l=n(80945);function c(t){var e=this.__data__=new r(t);this.size=e.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,t.exports=c},37334:t=>{t.exports=function(t){return function(){return t}}},37550:(t,e,n)=>{"use strict";n(13579)},37828:(t,e,n)=>{var r=n(9325).Uint8Array;t.exports=r},38221:(t,e,n)=>{var r=n(23805),i=n(10124),o=n(99374),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l,c,u,h,f,d,p=0,m=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function y(e){var n=l,r=c;return l=c=void 0,p=e,h=t.apply(r,n)}function b(t){var n=t-d;return void 0===d||n>=e||n<0||g&&t-p>=u}function x(){var t=i();if(b(t))return w(t);f=setTimeout(x,function(t){var n=e-(t-d);return g?s(n,u-(t-p)):n}(t))}function w(t){return f=void 0,v&&l?y(t):(l=c=void 0,h)}function S(){var t=i(),n=b(t);if(l=arguments,c=this,d=t,n){if(void 0===f)return function(t){return p=t,f=setTimeout(x,e),m?y(t):h}(d);if(g)return clearTimeout(f),f=setTimeout(x,e),y(d)}return void 0===f&&(f=setTimeout(x,e)),h}return e=o(e)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?a(o(n.maxWait)||0,e):u,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=d=c=f=void 0},S.flush=function(){return void 0===f?h:w(i())},S}},38329:(t,e,n)=>{var r=n(64894);
vendor: 4,181 bytes, line 25
25t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},38351:function(t,e,n){var r;!function(){"use strict";var i,o=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s=!0,l="[DecimalError] ",c=l+"Invalid argument: ",u=l+"Exponent out of range: ",h=Math.floor,f=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=1e7,m=9007199254740991,g=h(1286742750677284.5),v={};function y(t,e){var n,r,i,o,a,l,c,u,h=t.constructor,f=h.precision;if(!t.s||!e.s)return e.s||(e=new h(t)),s?P(e,f):e;if(c=t.d,u=e.d,a=t.e,i=e.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,l=u.length):(r=u,i=a,l=c.length),o>(l=(a=Math.ceil(f/7))>l?a+1:l+1)&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((l=c.length)-(o=u.length)<0&&(o=l,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/p|0,c[o]%=p;for(n&&(c.unshift(n),++i),l=c.length;0==c[--l];)c.pop();return e.d=c,e.e=i,s?P(e,f):e}function b(t,e,n){if(t!==~~t||t<e||t>n)throw Error(c+t)}function x(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)(n=7-(r=t[e]+"").length)&&(o+=E(n)),o+=r;(n=7-(r=(a=t[e])+"").length)&&(o+=E(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}v.absoluteValue=v.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},v.comparedTo=v.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},v.decimalPlaces=v.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(t){return w(this,new this.constructor(t))},v.dividedToIntegerBy=v.idiv=function(t){var e=this.constructor;return P(w(this,new e(t),0,1),e.precision)},v.equals=v.eq=function(t){return!this.cmp(t)},v.exponent=function(){return O(this)},v.greaterThan=v.gt=function(t){return this.cmp(t)>0},v.greaterThanOrEqualTo=v.gte=function(t){return this.cmp(t)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(t){return this.cmp(t)<0},v.lessThanOrEqualTo=v.lte=function(t){return this.cmp(t)<1},v.logarithm=v.log=function(t){var e,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(s=!1,e=w(_(n,a),_(t,a),a),s=!0,P(e,o))},v.minus=v.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?M(e,t):y(e,(t.s=-t.s,t))},v.modulo=v.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(l+"NaN");return n.s?(s=!1,e=w(n,t,0,1).times(t),s=!0,n.minus(e)):P(new r(n),i)},v.naturalExponential=v.exp=function(){return S(this)},v.naturalLogarithm=v.ln=function(){return _(this)},v.negated=v.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},v.plus=v.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?y(e,t):M(e,(t.s=-t.s,t))},v.precision=v.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(c+t);if(e=O(i)+1,n=7*(r=i.d.length-1)+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},v.squareRoot=v.sqrt=function(){var t,e,n,r,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(l+"NaN")}for(t=O(c),s=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=x(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=h((t+1)/2)-(t<0||t%2),r=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new u(i.toString()),i=a=(n=u.precision)+3;;)if(r=(o=r).plus(w(c,o,a+2)).times(.5),x(o.d).slice(0,a)===(e=x(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(P(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=e)break;a+=4}return s=!0,P(r,n)}
vendor: 8,043 bytes, line 25
25,v.times=v.mul=function(t){var e,n,r,i,o,a,l,c,u,h=this,f=h.constructor,d=h.d,m=(t=new f(t)).d;if(!h.s||!t.s)return new f(0);for(t.s*=h.s,n=h.e+t.e,(c=d.length)<(u=m.length)&&(o=d,d=m,m=o,a=c,c=u,u=a),o=[],r=a=c+u;r--;)o.push(0);for(r=u;--r>=0;){for(e=0,i=c+r;i>r;)l=o[i]+m[r]*d[i-r-1]+e,o[i--]=l%p|0,e=l/p|0;o[i]=(o[i]+e)%p|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,s?P(t,f.precision):t},v.toDecimalPlaces=v.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(b(t,0,o),void 0===e?e=r.rounding:b(e,0,8),P(n,t+O(n)+1,e))},v.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=C(r,!0):(b(t,0,o),void 0===e?e=i.rounding:b(e,0,8),n=C(r=P(new i(r),t+1,e),!0,t+1)),n},v.toFixed=function(t,e){var n,r,i=this,a=i.constructor;return void 0===t?C(i):(b(t,0,o),void 0===e?e=a.rounding:b(e,0,8),n=C((r=P(new a(i),t+O(i)+1,e)).abs(),!1,t+O(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var t=this,e=t.constructor;return P(new e(t),O(t)+1,e.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(t){var e,n,r,o,a,c,u=this,f=u.constructor,d=+(t=new f(t));if(!t.s)return new f(i);if(!(u=new f(u)).s){if(t.s<1)throw Error(l+"Infinity");return u}if(u.eq(i))return u;if(r=f.precision,t.eq(i))return P(u,r);if(c=(e=t.e)>=(n=t.d.length-1),a=u.s,c){if((n=d<0?-d:d)<=m){for(o=new f(i),e=Math.ceil(r/7+4),s=!1;n%2&&T((o=o.times(u)).d,e),0!==(n=h(n/2));)T((u=u.times(u)).d,e);return s=!0,t.s<0?new f(i).div(o):P(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,u.s=1,s=!1,o=t.times(_(u,r+12)),s=!0,(o=S(o)).s=a,o},v.toPrecision=function(t,e){var n,r,i=this,a=i.constructor;return void 0===t?r=C(i,(n=O(i))<=a.toExpNeg||n>=a.toExpPos):(b(t,1,o),void 0===e?e=a.rounding:b(e,0,8),r=C(i=P(new a(i),t,e),t<=(n=O(i))||n<=a.toExpNeg,t)),r},v.toSignificantDigits=v.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(b(t,1,o),void 0===e?e=n.rounding:b(e,0,8)),P(new n(this),t,e)},v.toString=v.valueOf=v.val=v.toJSON=function(){var t=this,e=O(t),n=t.constructor;return C(t,e<=n.toExpNeg||e>=n.toExpPos)};var w=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%p|0,r=n/p|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*p+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a){var s,c,u,h,f,d,m,g,v,y,b,x,w,S,k,E,_,A,M=r.constructor,C=r.s==i.s?1:-1,T=r.d,j=i.d;if(!r.s)return new M(r);if(!i.s)throw Error(l+"Division by zero");for(c=r.e-i.e,_=j.length,k=T.length,g=(m=new M(C)).d=[],u=0;j[u]==(T[u]||0);)++u;if(j[u]>(T[u]||0)&&--c,(x=null==o?o=M.precision:a?o+(O(r)-O(i))+1:o)<0)return new M(0);if(x=x/7+2|0,u=0,1==_)for(h=0,j=j[0],x++;(u<k||h)&&x--;u++)w=h*p+(T[u]||0),g[u]=w/j|0,h=w%j|0;else{for((h=p/(j[0]+1)|0)>1&&(j=t(j,h),T=t(T,h),_=j.length,k=T.length),S=_,y=(v=T.slice(0,_)).length;y<_;)v[y++]=0;(A=j.slice()).unshift(0),E=j[0],j[1]>=p/2&&++E;do{h=0,(s=e(j,v,_,y))<0?(b=v[0],_!=y&&(b=b*p+(v[1]||0)),(h=b/E|0)>1?(h>=p&&(h=p-1),1==(s=e(f=t(j,h),v,d=f.length,y=v.length))&&(h--,n(f,_<d?A:j,d))):(0==h&&(s=h=1),f=j.slice()),(d=f.length)<y&&f.unshift(0),n(v,f,y),-1==s&&(s=e(j,v,_,y=v.length))<1&&(h++,n(v,_<y?A:j,y)),y=v.length):0===s&&(h++,v=[0]),g[u++]=h,s&&v[0]?v[y++]=T[S]||0:(v=[T[S]],y=1)}while((S++<k||void 0!==v[0])&&x--)}return g[0]||g.shift(),m.e=c,P(m,a?o+O(m)+1:o)}}();function S(t,e){var n,r,o,a,l,c=0,h=0,d=t.constructor,p=d.precision;if(O(t)>16)throw Error(u+O(t));if(!t.s)return new d(i);for(null==e?(s=!1,l=p):l=e,a=new d(.03125);t.abs().gte(.1);)t=t.times(a),h+=5;for(l+=Math.log(f(2,h))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=l;;){if(r=P(r.times(t),l),n=n.times(++c),x((a=o.plus(w(r,n,l))).d).slice(0,l)===x(o.d).slice(0,l)){for(;h--;)o=P(o.times(o),l);return d.precision=p,null==e?(s=!0,P(o,p)):o}o=a}}function O(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function k(t,e,n){if(e>t.LN10.sd())throw s=!0,n&&(t.precision=n),Error(l+"LN10 precision limit exceeded");return P(new t(t.LN10),e)}function E(t){for(var e="";t--;)e+="0";return e}function _(t,e){var n,r,o,a,c,u,h,f,d,p=1,m=t,g=m.d,v=m.constructor,y=v.precision;if(m.s<1)throw Error(l+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new v(0);if(null==e?(s=!1,f=y):f=e,m.eq(10))return null==e&&(s=!0),k(v,f);if(f+=10,v.precision=f,r=(n=x(g)).charAt(0),a=O(m),!(Math.abs(a)<15e14))return h=k(v,f+2,y).times(a+""),m=_(new v(r+"."+n.slice(1)),f-10).plus(h),v.precision=y,null==e?(s=!0,P(m,y)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=x((m=m.times(t)).d)).charAt(0),p++;for(a=O(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1)),u=c=m=w(m.minus(i),m.plus(i),f),d=P(m.times(m),f),o=3;;){if(c=P(c.times(d),f),x((h=u.plus(w(c,new v(o),f))).d).slice(0,f)===x(u.d).slice(0,f))return u=u.times(2),0!==a&&(u=u.plus(k(v,f+2,y).times(a+""))),u=w(u,new v(p),f),v.precision=y,null==e?(s=!0,P(u,y)):u;u=h,o+=2}}function A(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=h(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=7;r<i;)t.d.push(+e.slice(r,r+=7));r=7-(e=e.slice(r)).length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),s&&(t.e>g||t.e<-g))throw Error(u+n)}else t.s=0,t.e=0,t.d=[0];return t}function P(t,e,n){var r,i,o,a,l,c,d,m,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,d=v[m=0];else{if((m=Math.ceil((r+1)/7))>=(o=v.length))return t;for(d=o=v[m],a=1;o>=10;o/=10)a++;i=(r%=7)-7+a}if(void 0!==n&&(l=d/(o=f(10,a-i-1))%10|0,c=e<0||void 0!==v[m+1]||d%o,c=n<4?(l||c)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?i>0?d/f(10,a-i):0:v[m-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return c?(o=O(t),v.length=1,e=e-o-1,v[0]=f(10,(7-e%7)%7),t.e=h(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=m,o=1,m--):(v.length=m+1,o=f(10,7-r),v[m]=i>0?(d/f(10,a-i)%f(10,i)|0)*o:0),c)for(;;){if(0==m){(v[0]+=o)==p&&(v[0]=1,++t.e);break}if(v[m]+=o,v[m]!=p)break;v[m--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(s&&(t.e>g||t.e<-g))throw Error(u+O(t));return t}function M(t,e){var n,r,i,o,a,l,c,u,h,f,d=t.constructor,m=d.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new d(t),s?P(e,m):e;if(c=t.d,f=e.d,r=e.e,u=t.e,c=c.slice(),a=u-r){for((h=a<0)?(n=c,a=-a,l=f.length):(n=f,r=u,l=c.length),a>(i=Math.max(Math.ceil(m/7),l)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((h=(i=c.length)<(l=f.length))&&(l=i),i=0;i<l;i++)if(c[i]!=f[i]){h=c[i]<f[i];break}a=0}for(h&&(n=c,c=f,f=n,e.s=-e.s),l=c.length,i=f.length-l;i>0;--i)c[l++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=p-1;--c[o],c[i]+=p}c[i]-=f[i]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(e.d=c,e.e=r,s?P(e,m):e):new d(0)}function C(t,e,n){var r,i=O(t),o=x(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+E(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+E(-i-1)+o,n&&(r=n-a)>0&&(o+=E(r))):i>=a?(o+=E(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+E(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=E(r))),t.s<0?"-"+o:o}function T(t,e){if(t.length>e)return t.length=e,!0}function j(t){if(!t||"object"!=typeof t)throw Error(l+"Object expected");var e,n,r,i=["precision",1,o,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(h(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}a=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(c+t);
25if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):A(e,t.toString())}if("string"!=typeof t)throw Error(c+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(c+t);A(e,t)}if(o.prototype=v,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=j,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(a),a.default=a.Decimal=a,i=new a(1),void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()},38480:(t,e,n)=>{"use strict";var r=n(61828),i=n(88727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},38574:(t,e,n)=>{"use strict";var r=n(84215);t.exports="NODE"===r},38781:(t,e,n)=>{"use strict";var r=n(10350).PROPER,i=n(36840),o=n(28551),a=n(655),s=n(79039),l=n(61034),c="toString",u=RegExp.prototype,h=u[c],f=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),d=r&&h.name!==c;(f||d)&&i(u,c,(function(){var t=o(this);return"/"+a(t.source)+"/"+a(l(t))}),{unsafe:!0})},38859:(t,e,n)=>{var r=n(53661),i=n(31380),o=n(51459);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},39072:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,z:()=>s});var r=n(99065),i=n(12217);function o(){var t,e,n=(0,i.A)().unknown(void 0),a=n.domain,s=n.range,l=0,c=1,u=!1,h=0,f=0,d=.5;function p(){var n=a().length,r=c<l,i=r?c:l,o=r?l:c;t=(o-i)/Math.max(1,n-h+2*f),u&&(t=Math.floor(t)),i+=(o-i-t*(n-h))*d,e=t*(1-h),u&&(i=Math.round(i),e=Math.round(e));var p=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return i+t*e}));return s(r?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),p()):a()},n.range=function(t){return arguments.length?([l,c]=t,l=+l,c=+c,p()):[l,c]},n.rangeRound=function(t){return[l,c]=t,l=+l,c=+c,u=!0,p()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,p()):u},n.padding=function(t){return arguments.length?(h=Math.min(1,f=+t),p()):h},n.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),p()):h},n.paddingOuter=function(t){return arguments.length?(f=+t,p()):f},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),p()):d},n.copy=function(){return o(a(),[l,c]).round(u).paddingInner(h).paddingOuter(f).align(d)},r.C.apply(p(),arguments)}function a(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return a(e())},t}function s(){return a(o.apply(null,arguments).paddingInner(1))}},39297:(t,e,n)=>{"use strict";var r=n(79504),i=n(48981),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},39433:(t,e,n)=>{"use strict";var r=n(44576),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},39519:(t,e,n)=>{"use strict";var r,i,o=n(44576),a=n(82839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},40150:(t,e,n)=>{"use strict";n(46518)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},40280:(t,e,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(96395),a=n(80550),s=n(10916).CONSTRUCTOR,l=n(93438),c=i("Promise"),u=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return l(u&&this===c?a:this,t)}})},40346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},40455:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(52891),i=n(52752);const o=class extends r.xI{initialize(){this.hide=this.hide.bind(this)}connect(){(0,i.pn)(this),!1===this.hiddenValue&&this.show()}show(){this.enter(),this.timeout=setTimeout(this.hide,this.delayValue)}async hide(){this.timeout&&clearTimeout(this.timeout),await this.leave(),this.element.remove()}};o.values={delay:{type:Number,default:3e3},hidden:{type:Boolean,default:!1}};let a=o},40616:(t,e,n)=>{"use strict";var r=n(79039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},40875:(t,e,n)=>{"use strict";
25var r=n(46518),i=n(79039),o=n(48981),a=n(42787),s=n(12211);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},40888:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(20034),a=n(28551),s=n(16575),l=n(77347),c=n(42787);r({target:"Reflect",stat:!0},{get:function t(e,n){var r,u,h=arguments.length<3?e:arguments[2];return a(e)===h?e[n]:(r=l.f(e,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,h):o(u=c(e))?t(u,n,h):void 0}})},40961:(t,e,n)=>{"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(22551)},41436:(t,e,n)=>{"use strict";var r=n(78227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,"/./"[t](e)}catch(t){}}return!1}},41799:(t,e,n)=>{var r=n(37217),i=n(60270);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],h=t[u],f=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var d=new r;if(o)var p=o(h,f,u,t,e,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},42054:t=>{var e="\\ud800-\\udfff",n="["+e+"]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^"+e+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?",u=c+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")"+c+l+")*"),h="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+h+u,"g");t.exports=function(t){return t.match(f)||[]}},42426:(t,e,n)=>{var r=n(14248),i=n(15389),o=n(90916),a=n(56449),s=n(36800);t.exports=function(t,e,n){var l=a(t)?r:o;return n&&s(t,e,n)&&(e=void 0),l(t,i(e,3))}},42762:(t,e,n)=>{"use strict";var r=n(46518),i=n(43802).trim;r({target:"String",proto:!0,forced:n(60706)("trim")},{trim:function(){return i(this)}})},42787:(t,e,n)=>{"use strict";var r=n(39297),i=n(94901),o=n(48981),a=n(66119),s=n(12211),l=a("IE_PROTO"),c=Object,u=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=o(t);if(r(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof c?u:null}},43329:(t,e,n)=>{"use strict";n.d(e,{w:()=>i});var r=n(61501);function i(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&r._P in t?t[r._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},43360:(t,e,n)=>{var r=n(93243);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},43714:(t,e,n)=>{var r=n(53730);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},43724:(t,e,n)=>{"use strict";var r=n(79039);t.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},43802:(t,e,n)=>{"use strict";var r=n(79504),i=n(67750),o=n(655),a=n(47452),s=r("".replace),l=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),u=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,l,"")),2&t&&(n=s(n,c,"$1")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},44114:(t,e,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(34527),s=n(96837);r({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var l=0;l<r;l++)e[n]=arguments[l],n++;return a(e,n),n}})},44209:(t,e,n)=>{"use strict";var r=n(78227),i=n(26269),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},44213:(t,e,n)=>{"use strict";var r=n(43724),i=n(79504),o=n(69565),a=n(79039),s=n(71072),l=n(33717),c=n(48773),u=n(48981),h=n(47055),f=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!==f({},t)[n]||s(f({},e)).join("")!==i}))?function(t,e){for(var n=u(t),i=arguments.length,a=1,f=l.f,d=c.f;i>a;)for(var m,g=h(arguments[a++]),v=f?p(s(g),f(g)):s(g),y=v.length,b=0;y>b;)m=v[b++],r&&!o(d,g,m)||(n[m]=g[m]);return n}:f},44265:(t,e,n)=>{"use strict";var r=n(82839);t.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},44363:(t,e,n)=>{"use strict";
25t.exports=n(22799)},44394:(t,e,n)=>{var r=n(72552),i=n(40346);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},44517:(t,e,n)=>{var r=n(76545),i=n(63950),o=n(84247),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},44576:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},44653:(t,e,n)=>{"use strict";n.d(e,{u:()=>g});var r=n(34164),i=n(96540),o=n(7350),a=n.n(o),s=n(59744),l=n(6634),c=n(94501);function u(t){return u="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},u(t)}function h(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(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.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var g=(0,i.forwardRef)((function(t,e){var n=t.aspect,o=t.initialDimension,u=void 0===o?{width:-1,height:-1}:o,h=t.width,d=void 0===h?"100%":h,m=t.height,g=void 0===m?"100%":m,v=t.minWidth,y=void 0===v?0:v,b=t.minHeight,x=t.maxHeight,w=t.children,S=t.debounce,O=void 0===S?0:S,k=t.id,E=t.className,_=t.onResize,A=t.style,P=void 0===A?{}:A,M=(0,i.useRef)(null),C=(0,i.useRef)();C.current=_,(0,i.useImperativeHandle)(e,(function(){return Object.defineProperty(M.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),M.current},configurable:!0})}));var T=p((0,i.useState)({containerWidth:u.width,containerHeight:u.height}),2),j=T[0],I=T[1],L=(0,i.useCallback)((function(t,e){I((function(n){var r=Math.round(t),i=Math.round(e);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}}))}),[]);(0,i.useEffect)((function(){var t=function(t){var e,n=t[0].contentRect,r=n.width,i=n.height;L(r,i),null===(e=C.current)||void 0===e||e.call(C,r,i)};O>0&&(t=a()(t,O,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=M.current.getBoundingClientRect(),r=n.width,i=n.height;return L(r,i),e.observe(M.current),function(){e.disconnect()}}),[L,O]);var D=(0,i.useMemo)((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;(0,l.R)((0,s._3)(d)||(0,s._3)(g),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",d,g),(0,l.R)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,s._3)(d)?t:d,o=(0,s._3)(g)?e:g;n&&n>0&&(r?o=r/n:o&&(r=o*n),x&&o>x&&(o=x)),(0,l.R)(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,d,g,y,b,n);var a=!Array.isArray(w)&&(0,c.Mn)(w.type).endsWith("Chart");return i.Children.map(w,(function(t){return i.isValidElement(t)?(0,i.cloneElement)(t,f({width:r,height:o},a?{style:f({height:"100%",width:"100%",maxHeight:o,maxWidth:r},t.props.style)}:{})):t}))}),[n,w,g,x,b,y,j,d]);return i.createElement("div",{id:k?"".concat(k):void 0,className:(0,r.A)("recharts-responsive-container",E),style:f(f({},P),{},{width:d,height:g,minWidth:y,minHeight:b,maxHeight:x}),ref:M},D)}))},45083:(t,e,n)=>{var r=n(1882),i=n(87296),o=n(23805),a=n(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,f=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?f:s).test(a(t))}},45700:(t,e,n)=>{"use strict";var r=n(70511),i=n(58242);r("toPrimitive"),i()},45806:(t,e,n)=>{"use strict";n(47764);var r,i=n(46518),o=n(43724),a=n(67416),s=n(44576),l=n(76080),c=n(79504),u=n(36840),h=n(62106),f=n(90679),d=n(39297),p=n(44213),m=n(97916),g=n(67680),v=n(68183).codeAt,y=n(3717),b=n(655),x=n(10687),w=n(22812),S=n(98406),O=n(91181),k=O.set,E=O.getterFor("URL"),_=S.URLSearchParams,A=S.getState,P=s.URL,M=s.TypeError,C=s.parseInt,T=Math.floor,j=Math.pow,I=c("".charAt),L=c(/./.exec),D=c([].join),R=c(1.1.toString),N=c([].pop),F=c([].push),B=c("".replace),z=c([].shift),H=c("".split),V=c("".slice),W=c("".toLowerCase),U=c([].unshift),$="Invalid scheme",q="Invalid host",Y="Invalid port",K=/[a-z]/i,X=/[\d+-.a-z]/i,G=/\d/,Q=/^0x/i,J=/^[0-7]+$/,Z=/^\d+$/,tt=/^[\da-f]+$/i,et=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,it=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ot=/[\t\n\r]/g,at=function(t){var e,n,r,i;if("number"==typeof t){for(e=[],n=0;n<4;n++)U(e,t%256),t=T(t/256);return D(e,".")}if("object"==typeof t){for(e="",r=function(t){for(var e=null,n=1,r=null,i=0,o=0;o<8;o++)0!==t[o]?(i>n&&(e=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:e}(t),n=0;n<8;n++)i&&0===t[n]||(i&&(i=!1),r===n?(e+=n?":":"::",i=!0):(e+=R(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},st={},lt=p({},st,{" ":1,'"':1,"<":1,">":1,"`":1}),ct=p({},lt,{"#":1,"?":1,"{":1,"}":1}),ut=p({},ct,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(t,e){var n=v(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},ft={ftp:21,file:null,http:80,https:443,ws:80,wss:443},dt=function(t,e){var n;return 2===t.length&&L(K,I(t,0))&&(":"===(n=I(t,1))||!e&&"|"===n)},pt=function(t){var e;return t.length>1&&dt(V(t,0,2))&&(2===t.length||"/"===(e=I(t,2))||"\\"===e||"?"===e||"#"===e)},mt=function(t){return"."===t||"%2e"===W(t)},gt={},vt={},yt={},bt={},xt={},wt={},St={},Ot={},kt={},Et={},_t={},At={},Pt={},Mt={},Ct={},Tt={},jt={},It={},Lt={},Dt={},Rt={},Nt=function(t,e,n){var r,i,o,a=b(t);if(e){if(i=this.parse(a))throw new M(i);this.searchParams=null}else{if(void 0!==n&&(r=new Nt(n,!0)),i=this.parse(a,null,r))throw new M(i);(o=A(new _)).bindURL(this),this.searchParams=o}};Nt.prototype={type:"URL",parse:function(t,e,n){var i,o,a,s,l,c=this,u=e||gt,h=0,f="",p=!1,v=!1,y=!1;for(t=b(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=B(t,rt,""),t=B(t,it,"$1")),t=B(t,ot,""),i=m(t);h<=i.length;
vendor: 7,709 bytes, line 25
25){switch(o=i[h],u){case gt:if(!o||!L(K,o)){if(e)return $;u=yt;continue}f+=W(o),u=vt;break;case vt:if(o&&(L(X,o)||"+"===o||"-"===o||"."===o))f+=W(o);else{if(":"!==o){if(e)return $;f="",u=yt,h=0;continue}if(e&&(c.isSpecial()!==d(ft,f)||"file"===f&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=f,e)return void(c.isSpecial()&&ft[c.scheme]===c.port&&(c.port=null));f="","file"===c.scheme?u=Mt:c.isSpecial()&&n&&n.scheme===c.scheme?u=bt:c.isSpecial()?u=Ot:"/"===i[h+1]?(u=xt,h++):(c.cannotBeABaseURL=!0,F(c.path,""),u=Lt)}break;case yt:if(!n||n.cannotBeABaseURL&&"#"!==o)return $;if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Rt;break}u="file"===n.scheme?Mt:wt;continue;case bt:if("/"!==o||"/"!==i[h+1]){u=wt;continue}u=kt,h++;break;case xt:if("/"===o){u=Et;break}u=It;continue;case wt:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())u=St;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",u=Dt;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,u=It;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",u=Rt}break;case St:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=It;continue}u=Et}else u=kt;break;case Ot:if(u=kt,"/"!==o||"/"!==I(f,h+1))continue;h++;break;case kt:if("/"!==o&&"\\"!==o){u=Et;continue}break;case Et:if("@"===o){p&&(f="%40"+f),p=!0,a=m(f);for(var x=0;x<a.length;x++){var w=a[x];if(":"!==w||y){var S=ht(w,ut);y?c.password+=S:c.username+=S}else y=!0}f=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(p&&""===f)return"Invalid authority";h-=m(f).length+1,f="",u=_t}else f+=o;break;case _t:case At:if(e&&"file"===c.scheme){u=Tt;continue}if(":"!==o||v){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===f)return q;if(e&&""===f&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(f))return s;if(f="",u=jt,e)return;continue}"["===o?v=!0:"]"===o&&(v=!1),f+=o}else{if(""===f)return q;if(s=c.parseHost(f))return s;if(f="",u=Pt,e===At)return}break;case Pt:if(!L(G,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||e){if(""!==f){var O=C(f,10);if(O>65535)return Y;c.port=c.isSpecial()&&O===ft[c.scheme]?null:O,f=""}if(e)return;u=jt;continue}return Y}f+=o;break;case Mt:if(c.scheme="file","/"===o||"\\"===o)u=Ct;else{if(!n||"file"!==n.scheme){u=It;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",u=Dt;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",u=Rt;break;default:pt(D(g(i,h),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),u=It;continue}}break;case Ct:if("/"===o||"\\"===o){u=Tt;break}n&&"file"===n.scheme&&!pt(D(g(i,h),""))&&(dt(n.path[0],!0)?F(c.path,n.path[0]):c.host=n.host),u=It;continue;case Tt:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&dt(f))u=It;else if(""===f){if(c.host="",e)return;u=jt}else{if(s=c.parseHost(f))return s;if("localhost"===c.host&&(c.host=""),e)return;f="",u=jt}continue}f+=o;break;case jt:if(c.isSpecial()){if(u=It,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==r&&(u=It,"/"!==o))continue}else c.fragment="",u=Rt;else c.query="",u=Dt;break;case It:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!e&&("?"===o||"#"===o)){if(".."===(l=W(l=f))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||F(c.path,"")):mt(f)?"/"===o||"\\"===o&&c.isSpecial()||F(c.path,""):("file"===c.scheme&&!c.path.length&&dt(f)&&(c.host&&(c.host=""),f=I(f,0)+":"),F(c.path,f)),f="","file"===c.scheme&&(o===r||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)z(c.path);"?"===o?(c.query="",u=Dt):"#"===o&&(c.fragment="",u=Rt)}else f+=ht(o,ct);break;case Lt:"?"===o?(c.query="",u=Dt):"#"===o?(c.fragment="",u=Rt):o!==r&&(c.path[0]+=ht(o,st));break;case Dt:e||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ht(o,st)):(c.fragment="",u=Rt);break;case Rt:o!==r&&(c.fragment+=ht(o,lt))}h++}},parseHost:function(t){var e,n,r;if("["===I(t,0)){if("]"!==I(t,t.length-1))return q;if(e=function(t){var e,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,h=0,f=function(){return I(t,h)};if(":"===f()){if(":"!==I(t,1))return;h+=2,u=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=n=0;n<4&&L(tt,f());)e=16*e+C(f(),16),h++,n++;if("."===f()){if(0===n)return;if(h-=n,c>6)return;for(r=0;f();){if(i=null,r>0){if(!("."===f()&&r<4))return;h++}if(!L(G,f()))return;for(;L(G,f());){if(o=C(f(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;h++}l[c]=256*l[c]+i,2!=++r&&4!==r||c++}if(4!==r)return;break}if(":"===f()){if(h++,!f())return}else if(f())return;l[c++]=e}else{if(null!==u)return;h++,u=++c}}if(null!==u)for(a=c-u,c=7;0!==c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!==c)return;return l}(V(t,1,-1)),!e)return q;this.host=e}else if(this.isSpecial()){if(t=y(t),L(et,t))return q;if(e=function(t){var e,n,r,i,o,a,s,l=H(t,".");if(l.length&&""===l[l.length-1]&&l.length--,(e=l.length)>4)return t;for(n=[],r=0;r<e;r++){if(""===(i=l[r]))return t;if(o=10,i.length>1&&"0"===I(i,0)&&(o=L(Q,i)?16:8,i=V(i,8===o?1:2)),""===i)a=0;else{if(!L(10===o?Z:8===o?J:tt,i))return t;a=C(i,o)}F(n,a)}for(r=0;r<e;r++)if(a=n[r],r===e-1){if(a>=j(256,5-e))return null}else if(a>255)return null;for(s=N(n),r=0;r<n.length;r++)s+=n[r]*j(256,3-r);return s}(t),null===e)return q;this.host=e}else{if(L(nt,t))return q;for(e="",n=m(t),r=0;r<n.length;r++)e+=ht(n[r],st);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return d(ft,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&dt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,r=t.password,i=t.host,o=t.port,a=t.path,s=t.query,l=t.fragment,c=e+":";return null!==i?(c+="//",t.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=at(i),null!==o&&(c+=":"+o)):"file"===e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+D(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(t){var e=this.parse(t);if(e)throw new M(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ft(t.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",gt)},getUsername:function(){return this.username},setUsername:function(t){var e=m(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=ht(e[n],ut)}},getPassword:function(){return this.password},setPassword:function(t){var e=m(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=ht(e[n],ut)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,_t)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,At)},getPort:function(){var t=this.port;return null===t?"":b(t)}
25,setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Pt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+D(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,jt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===I(t,0)&&(t=V(t,1)),this.query="",this.parse(t,Dt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===I(t,0)&&(t=V(t,1)),this.fragment="",this.parse(t,Rt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ft=function(t){var e=f(this,Bt),n=w(arguments.length,1)>1?arguments[1]:void 0,r=k(e,new Nt(t,!1,n));o||(e.href=r.serialize(),e.origin=r.getOrigin(),e.protocol=r.getProtocol(),e.username=r.getUsername(),e.password=r.getPassword(),e.host=r.getHost(),e.hostname=r.getHostname(),e.port=r.getPort(),e.pathname=r.getPathname(),e.search=r.getSearch(),e.searchParams=r.getSearchParams(),e.hash=r.getHash())},Bt=Ft.prototype,zt=function(t,e){return{get:function(){return E(this)[t]()},set:e&&function(t){return E(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(h(Bt,"href",zt("serialize","setHref")),h(Bt,"origin",zt("getOrigin")),h(Bt,"protocol",zt("getProtocol","setProtocol")),h(Bt,"username",zt("getUsername","setUsername")),h(Bt,"password",zt("getPassword","setPassword")),h(Bt,"host",zt("getHost","setHost")),h(Bt,"hostname",zt("getHostname","setHostname")),h(Bt,"port",zt("getPort","setPort")),h(Bt,"pathname",zt("getPathname","setPathname")),h(Bt,"search",zt("getSearch","setSearch")),h(Bt,"searchParams",zt("getSearchParams")),h(Bt,"hash",zt("getHash","setHash"))),u(Bt,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),u(Bt,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),P){var Ht=P.createObjectURL,Vt=P.revokeObjectURL;Ht&&u(Ft,"createObjectURL",l(Ht,P)),Vt&&u(Ft,"revokeObjectURL",l(Vt,P))}x(Ft,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Ft})},45891:(t,e,n)=>{var r=n(51873),i=n(72428),o=n(56449),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},45917:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});Array.prototype.slice;function r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}},46155:(t,e,n)=>{var r=n(34932),i=n(47422),o=n(15389),a=n(5128),s=n(73937),l=n(27301),c=n(43714),u=n(83488),h=n(56449);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(o));var d=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(d,(function(t,e){return c(t,e,n)}))}},46518:(t,e,n)=>{"use strict";var r=n(44576),i=n(77347).f,o=n(66699),a=n(36840),s=n(39433),l=n(77740),c=n(92796);t.exports=function(t,e){var n,u,h,f,d,p=t.target,m=t.global,g=t.stat;if(n=m?r:g?r[p]||s(p,{}):r[p]&&r[p].prototype)for(u in e){if(f=e[u],h=t.dontCallGetSet?(d=i(n,u))&&d.value:n[u],!c(m?u:p+(g?".":"#")+u,t.forced)&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(t.sham||h&&h.sham)&&o(f,"sham",!0),a(n,u,f,t)}}},46706:(t,e,n)=>{"use strict";var r=n(79504),i=n(79306);t.exports=function(t,e,n){try{return r(i(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},47055:(t,e,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(22195),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},47237:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},47307:(t,e,n)=>{var r=n(83120),i=n(55378);t.exports=function(t,e){return r(i(t,e),1)}},47422:(t,e,n)=>{var r=n(31769),i=n(77797);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},47429:(t,e,n)=>{"use strict";n.d(e,{DR:()=>b,pj:()=>S,rY:()=>P,yi:()=>A,Yp:()=>x,hj:()=>_,sk:()=>E,AF:()=>w,Nk:()=>k,$G:()=>O});var r=n(96540),i=n(11561),o=n(7309),a=n.n(o),s=n(19747),l=n.n(s),c=n(50104),u=n.n(c)()((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")})),h=n(59744);var f=(0,r.createContext)(void 0),d=(0,r.createContext)(void 0),p=(0,r.createContext)(void 0),m=(0,r.createContext)({}),g=(0,r.createContext)(void 0),v=(0,r.createContext)(0),y=(0,r.createContext)(0),b=function(t){var e=t.state,n=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=t.clipPathId,s=t.children,l=t.width,c=t.height,h=u(o);return r.createElement(f.Provider,{value:n},r.createElement(d.Provider,{value:i},r.createElement(m.Provider,{value:o},r.createElement(p.Provider,{value:h},r.createElement(g.Provider,{value:a},r.createElement(v.Provider,{value:c},r.createElement(y.Provider,{value:l},s)))))))},x=function(){return(0,r.useContext)(g)};var w=function(t){var e=(0,r.useContext)(f);null==e&&(0,i.A)(!1);var n=e[t];return null==n&&(0,i.A)(!1),n},S=function(){var t=(0,r.useContext)(f);return(0,h.lX)(t)},O=function(){var t=(0,r.useContext)(d);return a()(t,(function(t){return l()(t.domain,Number.isFinite)}))||(0,h.lX)(t)},k=function(t){var e=(0,r.useContext)(d);null==e&&(0,i.A)(!1);var n=e[t];return null==n&&(0,i.A)(!1),n},E=function(){return(0,r.useContext)(p)},_=function(){return(0,r.useContext)(m)},A=function(){return(0,r.useContext)(y)},P=function(){return(0,r.useContext)(v)}},47452:t=>{"use strict";
25t.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},47473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},47764:(t,e,n)=>{"use strict";var r=n(68183).charAt,i=n(655),o=n(91181),a=n(51088),s=n(62529),l="String Iterator",c=o.set,u=o.getterFor(l);a(String,"String",(function(t){c(this,{type:l,string:i(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},48408:(t,e,n)=>{"use strict";n(98406)},48523:(t,e,n)=>{"use strict";n(16468)("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},48598:(t,e,n)=>{"use strict";var r=n(46518),i=n(79504),o=n(47055),a=n(25397),s=n(34598),l=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(t){return l(a(this),void 0===t?",":t)}})},48655:(t,e,n)=>{var r=n(26025);t.exports=function(t){return r(this.__data__,t)>-1}},48686:(t,e,n)=>{"use strict";var r=n(43724),i=n(79039);t.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48773:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},48946:(t,e,n)=>{"use strict";function r(t){return function(){return t}}n.d(e,{A:()=>r})},48981:(t,e,n)=>{"use strict";var r=n(67750),i=Object;t.exports=function(t){return i(r(t))}},49303:(t,e,n)=>{"use strict";n.d(e,{u:()=>c});var r=n(96540),i=n(34164),o=n(94501),a=["children","width","height","viewBox","className","style","title","desc"];function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){var e=t.children,n=t.width,c=t.height,u=t.viewBox,h=t.className,f=t.style,d=t.title,p=t.desc,m=l(t,a),g=u||{width:n,height:c,x:0,y:0},v=(0,i.A)("recharts-surface",h);return r.createElement("svg",s({},(0,o.J9)(m,!0,"svg"),{className:v,width:n,height:c,style:f,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),r.createElement("title",null,d),r.createElement("desc",null,p),e)}},49326:(t,e,n)=>{var r=n(31769),i=n(72428),o=n(56449),a=n(30361),s=n(30294),l=n(77797);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,h=!1;++c<u;){var f=l(e[c]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},49698:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},49773:(t,e,n)=>{"use strict";var r=n(46518),i=n(4495),o=n(79039),a=n(33717),s=n(48981);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},50002:(t,e,n)=>{var r=n(82199),i=n(4664),o=n(95950);t.exports=function(t){return r(t,o,i)}},50014:(t,e,n)=>{var r=n(15389),i=n(55765);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},50104:(t,e,n)=>{var r=n(53661);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},50113:(t,e,n)=>{"use strict";var r=n(46518),i=n(59213).find,o=n(6469),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},50283:(t,e,n)=>{"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(39297),s=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),h=u.enforce,f=u.get,d=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,n){"Symbol("===m(d(e),0,7)&&(e="["+g(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&a(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=h(t);return a(r,"source")||(r.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return o(this)&&f(this).source||c(this)}),"toString")},50583:(t,e,n)=>{var r=n(47237),i=n(17255),o=n(28586),a=n(77797);t.exports=function(t){return o(t)?r(a(t)):i(t)}},50689:(t,e,n)=>{var r=n(50002),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var h=u;h--;){var f=c[h];if(!(l?f in e:i.call(e,f)))return!1}var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var m=!0;s.set(t,e),s.set(e,t);for(var g=l;++h<u;){var v=t[f=c[h]],y=e[f];if(o)var b=l?o(y,v,f,e,t,s):o(v,y,f,t,e,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var x=t.constructor,w=e.constructor;x==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(t),s.delete(e),m}},50851:(t,e,n)=>{"use strict";var r=n(36955),i=n(55966),o=n(64117),a=n(26269),s=n(78227)("iterator");t.exports=function(t){if(!o(t))return i(t,s)||i(t,"@@iterator")||a[r(t)]}},51088:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(96395),a=n(10350),s=n(94901),l=n(33994),c=n(42787),u=n(52967),h=n(10687),f=n(66699),d=n(36840),p=n(78227),m=n(26269),g=n(57657),v=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",O="values",k="entries",E=function(){return this};t.exports=function(t,e,n,a,p,g,_){l(n,e,a);var A,P,M,C=function(t){if(t===p&&D)return D;if(!x&&t&&t in I)return I[t];switch(t){case S:case O:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",j=!1,I=t.prototype,L=I[w]||I["@@iterator"]||p&&I[p],D=!x&&L||C(p),R="Array"===e&&I.entries||L;if(R&&(A=c(R.call(new t)))!==Object.prototype&&A.next&&(o||c(A)===b||(u?u(A,b):s(A[w])||d(A,w,E)),h(A,T,!0,!0),o&&(m[T]=E)),v&&p===O&&L&&L.name!==O&&(!o&&y?f(I,"name",O):(j=!0,D=function(){return i(L,this)})),p)if(P={values:C(O),keys:g?D:C(S),entries:C(k)},_)for(M in P)(x||j||!(M in I))&&d(I,M,P[M]);else r({target:e,proto:!0,forced:x||j},P);return o&&!_||I[w]===D||d(I,w,D,{name:p}),m[e]=D,P}},51420:(t,e,n)=>{var r=n(80079);t.exports=function(){this.__data__=new r,this.size=0}},51459:t=>{t.exports=function(t){return this.__data__.has(t)}},51481:(t,e,n)=>{"use strict";var r=n(46518),i=n(36043);r({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(t){var e=i.f(this);return(0,e.reject)(t),e.promise}})},51629:(t,e,n)=>{"use strict";var r=n(46518),i=n(90235);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i}
25)},51738:(t,e,n)=>{"use strict";n.d(e,{u:()=>x});var r=n(96540),i=n(11561),o=n(86069),a=n(94501),s=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function l(t){return l="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},l(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function u(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(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.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function p(t,e,n){return e=g(e),function(t,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,m()?Reflect.construct(e,n||[],g(t).constructor):e.apply(t,n))}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(m=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function y(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}var x=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,e,arguments)}return function(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&&v(t,e)}(e,t),n=e,(l=[{key:"render",value:function(){var t=this.props,e=t.offset,n=t.layout,l=t.width,h=t.dataKey,d=t.data,p=t.dataPointFormatter,m=t.xAxis,g=t.yAxis,v=f(t,s),y=(0,a.J9)(v,!1);"x"===this.props.direction&&"number"!==m.type&&(0,i.A)(!1);var b=d.map((function(t){var i=p(t,h),a=i.x,s=i.y,f=i.value,d=i.errorVal;if(!d)return null;var v,b,x=[];if(Array.isArray(d)){var w=u(d,2);v=w[0],b=w[1]}else v=b=d;if("vertical"===n){var S=m.scale,O=s+e,k=O+l,E=O-l,_=S(f-v),A=S(f+b);
25x.push({x1:A,y1:k,x2:A,y2:E}),x.push({x1:_,y1:O,x2:A,y2:O}),x.push({x1:_,y1:k,x2:_,y2:E})}else if("horizontal"===n){var P=g.scale,M=a+e,C=M-l,T=M+l,j=P(f-v),I=P(f+b);x.push({x1:C,y1:I,x2:T,y2:I}),x.push({x1:M,y1:j,x2:M,y2:I}),x.push({x1:C,y1:j,x2:T,y2:j})}return r.createElement(o.W,c({className:"recharts-errorBar",key:"bar-".concat(x.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},y),x.map((function(t){return r.createElement("line",c({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return r.createElement(o.W,{className:"recharts-errorBars"},b)}}])&&d(n.prototype,l),h&&d(n,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l,h}(r.Component);y(x,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),y(x,"displayName","ErrorBar")},51811:t=>{var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},51873:(t,e,n)=>{var r=n(9325).Symbol;t.exports=r},52675:(t,e,n)=>{"use strict";n(6761),n(81510),n(97812),n(33110),n(49773)},52703:(t,e,n)=>{"use strict";var r=n(44576),i=n(79039),o=n(79504),a=n(655),s=n(43802).trim,l=n(47452),c=r.parseInt,u=r.Symbol,h=u&&u.iterator,f=/^[+-]?0x/i,d=o(f.exec),p=8!==c(l+"08")||22!==c(l+"0x16")||h&&!i((function(){c(Object(h))}));t.exports=p?function(t,e){var n=s(a(t));return c(n,e>>>0||(d(f,n)?16:10))}:c},52752:(t,e,n)=>{"use strict";n.d(e,{Ls:()=>s,pn:()=>f});var r=n(52891);const i=(t,e,n)=>{let r=t;return!0===n?r=`${e.identifier}:${t}`:"string"==typeof n&&(r=`${n}:${t}`),r},o=(t,e,n)=>{const{bubbles:r,cancelable:i,composed:o}=e||{bubbles:!0,cancelable:!0,composed:!0};e&&Object.assign(n,{originalEvent:e});return new CustomEvent(t,{bubbles:r,cancelable:i,composed:o,detail:n})};console;r.xI;const a={events:["click","touchend"],onlyVisible:!0,dispatchEvent:!0,eventPrefix:!0},s=(t,e={})=>{const n=t,{onlyVisible:r,dispatchEvent:s,events:l,eventPrefix:c}=Object.assign({},a,e),u=t=>{const a=(null==e?void 0:e.element)||n.element;if(!(a.contains(t.target)||!function(t){const e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth,i=e.top<=n&&e.top+e.height>0,o=e.left<=r&&e.left+e.width>0;return i&&o}(a)&&r)&&(n.clickOutside&&n.clickOutside(t),s)){const e=i("click:outside",n,c),r=o(e,t,{controller:n});a.dispatchEvent(r)}},h=()=>{null==l||l.forEach((t=>{window.addEventListener(t,u,!0)}))},f=()=>{null==l||l.forEach((t=>{window.removeEventListener(t,u,!0)}))},d=n.disconnect.bind(n);return Object.assign(n,{disconnect(){f(),d()}}),h(),[h,f]};r.xI;class l extends r.xI{}l.debounces=[];r.xI;r.xI;r.xI;r.xI;r.xI;r.xI;r.xI;class c extends r.xI{}c.throttles=[];const u={enterFromClass:"enter",enterActiveClass:"enterStart",enterToClass:"enterEnd",leaveFromClass:"leave",leaveActiveClass:"leaveStart",leaveToClass:"leaveEnd"},h={transitioned:!1,hiddenClass:"hidden",preserveOriginalClass:!0,removeToClasses:!0},f=(t,e={})=>{var n,r,i;const o=t,a=o.element.dataset.transitionTarget;let s;a&&(s=o[`${a}Target`]);const l=(null==e?void 0:e.element)||s||o.element;if(!(l instanceof HTMLElement||l instanceof SVGElement))return;const c=l.dataset,u=parseInt(c.leaveAfter||"")||e.leaveAfter||0,{transitioned:f,hiddenClass:p,preserveOriginalClass:m,removeToClasses:g}=Object.assign({},h,e),v=null===(n=o.enter)||void 0===n?void 0:n.bind(o),y=null===(r=o.leave)||void 0===r?void 0:r.bind(o),b=null===(i=o.toggleTransition)||void 0===i?void 0:i.bind(o);async function x(t){if(o.transitioned)return;o.transitioned=!0,v&&v(t);const n=d("enterFrom",e,c),r=d("enterActive",e,c),i=d("enterTo",e,c),a=d("leaveTo",e,c);p&&l.classList.remove(p),g||E(l,a),await O(l,n,r,i,p,m,g),u>0&&setTimeout((()=>{w(t)}),u)}async function w(t){if(!o.transitioned)return;o.transitioned=!1,y&&y(t);const n=d("leaveFrom",e,c),r=d("leaveActive",e,c),i=d("leaveTo",e,c),a=d("enterTo",e,c);g||E(l,a),await O(l,n,r,i,p,m,g),p&&l.classList.add(p)}function S(t){b&&b(t),o.transitioned?w():x()}async function O(t,e,n,r,i,o,a){const s=[];o&&(e.forEach((e=>
25t.classList.contains(e)&&e!==i&&s.push(e))),n.forEach((e=>t.classList.contains(e)&&e!==i&&s.push(e))),r.forEach((e=>t.classList.contains(e)&&e!==i&&s.push(e)))),k(t,e),E(t,s),k(t,n),await async function(){return new Promise((t=>{requestAnimationFrame((()=>{requestAnimationFrame(t)}))}))}(),E(t,e),k(t,r),await async function(t){return new Promise((e=>{const n=1e3*Number(getComputedStyle(t).transitionDuration.split(",")[0].replace("s",""));setTimeout((()=>{e(n)}),n)}))}(t),E(t,n),a&&E(t,r),k(t,s)}function k(t,e){e.length>0&&t.classList.add(...e)}function E(t,e){e.length>0&&t.classList.remove(...e)}return o.transitioned=f,f?(p&&l.classList.remove(p),x()):(p&&l.classList.add(p),w()),Object.assign(o,{enter:x,leave:w,toggleTransition:S}),[x,w,S]};function d(t,e,n){const r=`transition${t[0].toUpperCase()}${t.substr(1)}`,i=u[t],o=e[t]||n[r]||n[i]||" ";return 0!==(a=o).length&&a.trim()?o.split(" "):[];var a}r.xI;r.xI;r.xI;r.xI},52891:(t,e,n)=>{"use strict";n.d(e,{lg:()=>Z,xI:()=>ct});class r{constructor(t,e,n){this.eventTarget=t,this.eventName=e,this.eventOptions=n,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(t){this.unorderedBindings.add(t)}bindingDisconnected(t){this.unorderedBindings.delete(t)}handleEvent(t){const e=function(t){if("immediatePropagationStopped"in t)return t;{const{stopImmediatePropagation:e}=t;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,e.call(this)}})}}(t);for(const t of this.bindings){if(e.immediatePropagationStopped)break;t.handleEvent(e)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort(((t,e)=>{const n=t.index,r=e.index;return n<r?-1:n>r?1:0}))}}class i{constructor(t){this.application=t,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEach((t=>t.connect())))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach((t=>t.disconnect())))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce(((t,e)=>t.concat(Array.from(e.values()))),[])}bindingConnected(t){this.fetchEventListenerForBinding(t).bindingConnected(t)}bindingDisconnected(t,e=!1){this.fetchEventListenerForBinding(t).bindingDisconnected(t),e&&this.clearEventListenersForBinding(t)}handleError(t,e,n={}){this.application.handleError(t,`Error ${e}`,n)}clearEventListenersForBinding(t){const e=this.fetchEventListenerForBinding(t);e.hasBindings()||(e.disconnect(),this.removeMappedEventListenerFor(t))}removeMappedEventListenerFor(t){const{eventTarget:e,eventName:n,eventOptions:r}=t,i=this.fetchEventListenerMapForEventTarget(e),o=this.cacheKey(n,r);i.delete(o),0==i.size&&this.eventListenerMaps.delete(e)}fetchEventListenerForBinding(t){const{eventTarget:e,eventName:n,eventOptions:r}=t;return this.fetchEventListener(e,n,r)}fetchEventListener(t,e,n){const r=this.fetchEventListenerMapForEventTarget(t),i=this.cacheKey(e,n);let o=r.get(i);return o||(o=this.createEventListener(t,e,n),r.set(i,o)),o}createEventListener(t,e,n){const i=new r(t,e,n);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(t){let e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e}cacheKey(t,e){const n=[t];return Object.keys(e).sort().forEach((t=>{n.push(`${e[t]?"":"!"}${t}`)})),n.join(":")}}const o={stop:({event:t,value:e})=>(e&&t.stopPropagation(),!0),prevent:({event:t,value:e})=>(e&&t.preventDefault(),!0),self:({event:t,value:e,element:n})=>!e||n===t.target},a=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function s(t){return"window"==t?window:"document"==t?document:void 0}function l(t){return t.replace(/(?:[_-])([a-z0-9])/g,((t,e)=>e.toUpperCase()))}function c(t){return l(t.replace(/--/g,"-").replace(/__/g,"_"))}function u(t){return t.charAt(0).toUpperCase()+t.slice(1)}function h(t){return t.replace(/([A-Z])/g,((t,e)=>
vendor: 4,125 bytes, line 25
25`-${e.toLowerCase()}`))}function f(t){return null!=t}function d(t,e){return Object.prototype.hasOwnProperty.call(t,e)}const p=["meta","ctrl","alt","shift"];class m{constructor(t,e,n,r){this.element=t,this.index=e,this.eventTarget=n.eventTarget||t,this.eventName=n.eventName||function(t){const e=t.tagName.toLowerCase();if(e in g)return g[e](t)}(t)||v("missing event name"),this.eventOptions=n.eventOptions||{},this.identifier=n.identifier||v("missing identifier"),this.methodName=n.methodName||v("missing method name"),this.keyFilter=n.keyFilter||"",this.schema=r}static forToken(t,e){return new this(t.element,t.index,function(t){const e=t.trim().match(a)||[];let n=e[2],r=e[3];return r&&!["keydown","keyup","keypress"].includes(n)&&(n+=`.${r}`,r=""),{eventTarget:s(e[4]),eventName:n,eventOptions:e[7]?(i=e[7],i.split(":").reduce(((t,e)=>Object.assign(t,{[e.replace(/^!/,"")]:!/^!/.test(e)})),{})):{},identifier:e[5],methodName:e[6],keyFilter:e[1]||r};var i}(t.content),e)}toString(){const t=this.keyFilter?`.${this.keyFilter}`:"",e=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${t}${e}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(t){if(!this.keyFilter)return!1;const e=this.keyFilter.split("+");if(this.keyFilterDissatisfied(t,e))return!0;const n=e.filter((t=>!p.includes(t)))[0];return!!n&&(d(this.keyMappings,n)||v(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[n].toLowerCase()!==t.key.toLowerCase())}shouldIgnoreMouseEvent(t){if(!this.keyFilter)return!1;const e=[this.keyFilter];return!!this.keyFilterDissatisfied(t,e)}get params(){const t={},e=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:n,value:r}of Array.from(this.element.attributes)){const i=n.match(e),o=i&&i[1];o&&(t[l(o)]=y(r))}return t}get eventTargetName(){return(t=this.eventTarget)==window?"window":t==document?"document":void 0;var t}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(t,e){const[n,r,i,o]=p.map((t=>e.includes(t)));return t.metaKey!==n||t.ctrlKey!==r||t.altKey!==i||t.shiftKey!==o}}const g={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:t=>"submit"==t.getAttribute("type")?"click":"input",select:()=>"change",textarea:()=>"input"};function v(t){throw new Error(t)}function y(t){try{return JSON.parse(t)}catch(e){return t}}class b{constructor(t,e){this.context=t,this.action=e}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}get identifier(){return this.context.identifier}handleEvent(t){const e=this.prepareActionEvent(t);this.willBeInvokedByEvent(t)&&this.applyEventModifiers(e)&&this.invokeWithEvent(e)}get eventName(){return this.action.eventName}get method(){const t=this.controller[this.methodName];if("function"==typeof t)return t;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(t){const{element:e}=this.action,{actionDescriptorFilters:n}=this.context.application,{controller:r}=this.context;let i=!0;for(const[o,a]of Object.entries(this.eventOptions))if(o in n){const s=n[o];i=i&&s({name:o,value:a,event:t,element:e,controller:r})}return i}prepareActionEvent(t){return Object.assign(t,{params:this.action.params})}invokeWithEvent(t){const{target:e,currentTarget:n}=t;try{this.method.call(this.controller,t),this.context.logDebugActivity(this.methodName,{event:t,target:e,currentTarget:n,action:this.methodName})}catch(e){const{identifier:n,controller:r,element:i,index:o}=this,a={identifier:n,controller:r,element:i,index:o,event:t};this.context.handleError(e,`invoking action "${this.action}"`,a)}}willBeInvokedByEvent(t){const e=t.target;return!(t instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(t))&&(!(t instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(t))&&(this.element===e||(e instanceof Element&&this.element.contains(e)?this.scope.containsElement(e):this.scope.containsElement(this.action.element))))}get controller(){return this.context.controller}get methodName(){return this.action.methodName}
25get element(){return this.scope.element}get scope(){return this.context.scope}}class x{constructor(t,e){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=t,this.started=!1,this.delegate=e,this.elements=new Set,this.mutationObserver=new MutationObserver((t=>this.processMutations(t)))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(t){this.started&&(this.mutationObserver.disconnect(),this.started=!1),t(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const t=new Set(this.matchElementsInTree());for(const e of Array.from(this.elements))t.has(e)||this.removeElement(e);for(const e of Array.from(t))this.addElement(e)}}processMutations(t){if(this.started)for(const e of t)this.processMutation(e)}processMutation(t){"attributes"==t.type?this.processAttributeChange(t.target,t.attributeName):"childList"==t.type&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))}processAttributeChange(t,e){this.elements.has(t)?this.delegate.elementAttributeChanged&&this.matchElement(t)?this.delegate.elementAttributeChanged(t,e):this.removeElement(t):this.matchElement(t)&&this.addElement(t)}processRemovedNodes(t){for(const e of Array.from(t)){const t=this.elementFromNode(e);t&&this.processTree(t,this.removeElement)}}processAddedNodes(t){for(const e of Array.from(t)){const t=this.elementFromNode(e);t&&this.elementIsActive(t)&&this.processTree(t,this.addElement)}}matchElement(t){return this.delegate.matchElement(t)}matchElementsInTree(t=this.element){return this.delegate.matchElementsInTree(t)}processTree(t,e){for(const n of this.matchElementsInTree(t))e.call(this,n)}elementFromNode(t){if(t.nodeType==Node.ELEMENT_NODE)return t}elementIsActive(t){return t.isConnected==this.element.isConnected&&this.element.contains(t)}addElement(t){this.elements.has(t)||this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))}removeElement(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))}}class w{constructor(t,e,n){this.attributeName=e,this.delegate=n,this.elementObserver=new x(t,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(t){this.elementObserver.pause(t)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(t){return t.hasAttribute(this.attributeName)}matchElementsInTree(t){const e=this.matchElement(t)?[t]:[],n=Array.from(t.querySelectorAll(this.selector));return e.concat(n)}elementMatched(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)}elementUnmatched(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)}elementAttributeChanged(t,e){this.delegate.elementAttributeValueChanged&&this.attributeName==e&&this.delegate.elementAttributeValueChanged(t,e)}}function S(t,e,n){k(t,e).add(n)}function O(t,e,n){k(t,e).delete(n),function(t,e){const n=t.get(e);null!=n&&0==n.size&&t.delete(e)}(t,e)}function k(t,e){let n=t.get(e);return n||(n=new Set,t.set(e,n)),n}class E{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce(((t,e)=>t.concat(Array.from(e))),[])}get size(){return Array.from(this.valuesByKey.values()).reduce(((t,e)=>t+e.size),0)}add(t,e){S(this.valuesByKey,t,e)}delete(t,e){O(this.valuesByKey,t,e)}has(t,e){const n=this.valuesByKey.get(t);return null!=n&&n.has(e)}hasKey(t){return this.valuesByKey.has(t)}hasValue(t){return Array.from(this.valuesByKey.values()).some((e=>e.has(t)))}getValuesForKey(t){const e=this.valuesByKey.get(t);return e?Array.from(e):[]}getKeysForValue(t){return Array.from(this.valuesByKey).filter((([e,n])=>n.has(t))).map((([t,e])=>t))}}class _{constructor(t,e,n,r){this._selector=e,this.details=r,this.elementObserver=new x(t,this),this.delegate=n,this.matchesByElement=new E}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(t){this._selector=t,this.refresh()}start(){this.elementObserver.start()}pause(t){this.elementObserver.pause(t)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}
25get element(){return this.elementObserver.element}matchElement(t){const{selector:e}=this;if(e){const n=t.matches(e);return this.delegate.selectorMatchElement?n&&this.delegate.selectorMatchElement(t,this.details):n}return!1}matchElementsInTree(t){const{selector:e}=this;if(e){const n=this.matchElement(t)?[t]:[],r=Array.from(t.querySelectorAll(e)).filter((t=>this.matchElement(t)));return n.concat(r)}return[]}elementMatched(t){const{selector:e}=this;e&&this.selectorMatched(t,e)}elementUnmatched(t){const e=this.matchesByElement.getKeysForValue(t);for(const n of e)this.selectorUnmatched(t,n)}elementAttributeChanged(t,e){const{selector:n}=this;if(n){const e=this.matchElement(t),r=this.matchesByElement.has(n,t);e&&!r?this.selectorMatched(t,n):!e&&r&&this.selectorUnmatched(t,n)}}selectorMatched(t,e){this.delegate.selectorMatched(t,e,this.details),this.matchesByElement.add(e,t)}selectorUnmatched(t,e){this.delegate.selectorUnmatched(t,e,this.details),this.matchesByElement.delete(e,t)}}class A{constructor(t,e){this.element=t,this.delegate=e,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver((t=>this.processMutations(t)))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const t of this.knownAttributeNames)this.refreshAttribute(t,null)}processMutations(t){if(this.started)for(const e of t)this.processMutation(e)}processMutation(t){const e=t.attributeName;e&&this.refreshAttribute(e,t.oldValue)}refreshAttribute(t,e){const n=this.delegate.getStringMapKeyForAttribute(t);if(null!=n){this.stringMap.has(t)||this.stringMapKeyAdded(n,t);const r=this.element.getAttribute(t);if(this.stringMap.get(t)!=r&&this.stringMapValueChanged(r,n,e),null==r){const e=this.stringMap.get(t);this.stringMap.delete(t),e&&this.stringMapKeyRemoved(n,t,e)}else this.stringMap.set(t,r)}}stringMapKeyAdded(t,e){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,e)}stringMapValueChanged(t,e,n){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,e,n)}stringMapKeyRemoved(t,e,n){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,e,n)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map((t=>t.name))}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class P{constructor(t,e,n){this.attributeObserver=new w(t,e,this),this.delegate=n,this.tokensByElement=new E}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(t){this.attributeObserver.pause(t)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(t){this.tokensMatched(this.readTokensForElement(t))}elementAttributeValueChanged(t){const[e,n]=this.refreshTokensForElement(t);this.tokensUnmatched(e),this.tokensMatched(n)}elementUnmatchedAttribute(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))}tokensMatched(t){t.forEach((t=>this.tokenMatched(t)))}tokensUnmatched(t){t.forEach((t=>this.tokenUnmatched(t)))}tokenMatched(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)}tokenUnmatched(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)}refreshTokensForElement(t){const e=this.tokensByElement.getValuesForKey(t),n=this.readTokensForElement(t),r=function(t,e){const n=Math.max(t.length,e.length);return Array.from({length:n},((n,r)=>[t[r],e[r]]))}(e,n).findIndex((([t,e])=>{return r=e,!((n=t)&&r&&n.index==r.index&&n.content==r.content);var n,r}));return-1==r?[[],[]]:[e.slice(r),n.slice(r)]}readTokensForElement(t){const e=this.attributeName;return function(t,e,n){return t.trim().split(/\s+/).filter((t=>t.length)).map(((t,r)=>({element:e,attributeName:n,content:t,index:r})))}(t.getAttribute(e)||"",t,e)}}class M{constructor(t,e,n){this.tokenListObserver=new P(t,e,this),this.delegate=n,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}
vendor: 1,657 bytes, line 25
25get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(t){const{element:e}=t,{value:n}=this.fetchParseResultForToken(t);n&&(this.fetchValuesByTokenForElement(e).set(t,n),this.delegate.elementMatchedValue(e,n))}tokenUnmatched(t){const{element:e}=t,{value:n}=this.fetchParseResultForToken(t);n&&(this.fetchValuesByTokenForElement(e).delete(t),this.delegate.elementUnmatchedValue(e,n))}fetchParseResultForToken(t){let e=this.parseResultsByToken.get(t);return e||(e=this.parseToken(t),this.parseResultsByToken.set(t,e)),e}fetchValuesByTokenForElement(t){let e=this.valuesByTokenByElement.get(t);return e||(e=new Map,this.valuesByTokenByElement.set(t,e)),e}parseToken(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(t){return{error:t}}}}class C{constructor(t,e){this.context=t,this.delegate=e,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new M(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(t){const e=new b(this.context,t);this.bindingsByAction.set(t,e),this.delegate.bindingConnected(e)}disconnectAction(t){const e=this.bindingsByAction.get(t);e&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(e))}
25disconnectAllActions(){this.bindings.forEach((t=>this.delegate.bindingDisconnected(t,!0))),this.bindingsByAction.clear()}parseValueForToken(t){const e=m.forToken(t,this.schema);if(e.identifier==this.identifier)return e}elementMatchedValue(t,e){this.connectAction(e)}elementUnmatchedValue(t,e){this.disconnectAction(e)}}class T{constructor(t,e){this.context=t,this.receiver=e,this.stringMapObserver=new A(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name}stringMapKeyAdded(t,e){const n=this.valueDescriptorMap[e];this.hasValue(t)||this.invokeChangedCallback(t,n.writer(this.receiver[t]),n.writer(n.defaultValue))}stringMapValueChanged(t,e,n){const r=this.valueDescriptorNameMap[e];null!==t&&(null===n&&(n=r.writer(r.defaultValue)),this.invokeChangedCallback(e,t,n))}stringMapKeyRemoved(t,e,n){const r=this.valueDescriptorNameMap[t];this.hasValue(t)?this.invokeChangedCallback(t,r.writer(this.receiver[t]),n):this.invokeChangedCallback(t,r.writer(r.defaultValue),n)}invokeChangedCallbacksForDefaultValues(){for(const{key:t,name:e,defaultValue:n,writer:r}of this.valueDescriptors)null==n||this.controller.data.has(t)||this.invokeChangedCallback(e,r(n),void 0)}invokeChangedCallback(t,e,n){const r=`${t}Changed`,i=this.receiver[r];if("function"==typeof i){const r=this.valueDescriptorNameMap[t];try{const t=r.reader(e);let o=n;n&&(o=r.reader(n)),i.call(this.receiver,t,o)}catch(t){throw t instanceof TypeError&&(t.message=`Stimulus Value "${this.context.identifier}.${r.name}" - ${t.message}`),t}}}get valueDescriptors(){const{valueDescriptorMap:t}=this;return Object.keys(t).map((e=>t[e]))}get valueDescriptorNameMap(){const t={};return Object.keys(this.valueDescriptorMap).forEach((e=>{const n=this.valueDescriptorMap[e];t[n.name]=n})),t}hasValue(t){const e=`has${u(this.valueDescriptorNameMap[t].name)}`;return this.receiver[e]}}class j{constructor(t,e){this.context=t,this.delegate=e,this.targetsByName=new E}start(){this.tokenListObserver||(this.tokenListObserver=new P(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:t,content:e}){this.scope.containsElement(t)&&this.connectTarget(t,e)}tokenUnmatched({element:t,content:e}){this.disconnectTarget(t,e)}connectTarget(t,e){var n;this.targetsByName.has(e,t)||(this.targetsByName.add(e,t),null===(n=this.tokenListObserver)||void 0===n||n.pause((()=>this.delegate.targetConnected(t,e))))}disconnectTarget(t,e){var n;this.targetsByName.has(e,t)&&(this.targetsByName.delete(e,t),null===(n=this.tokenListObserver)||void 0===n||n.pause((()=>this.delegate.targetDisconnected(t,e))))}disconnectAllTargets(){for(const t of this.targetsByName.keys)for(const e of this.targetsByName.getValuesForKey(t))this.disconnectTarget(e,t)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function I(t,e){const n=D(t);return Array.from(n.reduce(((t,n)=>(function(t,e){const n=t[e];return Array.isArray(n)?n:[]}(n,e).forEach((e=>t.add(e))),t)),new Set))}function L(t,e){return D(t).reduce(((t,n)=>(t.push(...function(t,e){const n=t[e];return n?Object.keys(n).map((t=>[t,n[t]])):[]}(n,e)),t)),[])}function D(t){const e=[];for(;t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}class R{constructor(t,e){this.started=!1,this.context=t,this.delegate=e,this.outletsByName=new E,this.outletElementsByName=new E,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach((t=>{this.setupSelectorObserverForOutlet(t),this.setupAttributeObserverForOutlet(t)}
25)),this.started=!0,this.dependentContexts.forEach((t=>t.refresh())))}refresh(){this.selectorObserverMap.forEach((t=>t.refresh())),this.attributeObserverMap.forEach((t=>t.refresh()))}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach((t=>t.stop())),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach((t=>t.stop())),this.attributeObserverMap.clear())}selectorMatched(t,e,{outletName:n}){const r=this.getOutlet(t,n);r&&this.connectOutlet(r,t,n)}selectorUnmatched(t,e,{outletName:n}){const r=this.getOutletFromMap(t,n);r&&this.disconnectOutlet(r,t,n)}selectorMatchElement(t,{outletName:e}){const n=this.selector(e),r=this.hasOutlet(t,e),i=t.matches(`[${this.schema.controllerAttribute}~=${e}]`);return!!n&&(r&&i&&t.matches(n))}elementMatchedAttribute(t,e){const n=this.getOutletNameFromOutletAttributeName(e);n&&this.updateSelectorObserverForOutlet(n)}elementAttributeValueChanged(t,e){const n=this.getOutletNameFromOutletAttributeName(e);n&&this.updateSelectorObserverForOutlet(n)}elementUnmatchedAttribute(t,e){const n=this.getOutletNameFromOutletAttributeName(e);n&&this.updateSelectorObserverForOutlet(n)}connectOutlet(t,e,n){var r;this.outletElementsByName.has(n,e)||(this.outletsByName.add(n,t),this.outletElementsByName.add(n,e),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause((()=>this.delegate.outletConnected(t,e,n))))}disconnectOutlet(t,e,n){var r;this.outletElementsByName.has(n,e)&&(this.outletsByName.delete(n,t),this.outletElementsByName.delete(n,e),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause((()=>this.delegate.outletDisconnected(t,e,n))))}disconnectAllOutlets(){for(const t of this.outletElementsByName.keys)for(const e of this.outletElementsByName.getValuesForKey(t))for(const n of this.outletsByName.getValuesForKey(t))this.disconnectOutlet(n,e,t)}updateSelectorObserverForOutlet(t){const e=this.selectorObserverMap.get(t);e&&(e.selector=this.selector(t))}setupSelectorObserverForOutlet(t){const e=this.selector(t),n=new _(document.body,e,this,{outletName:t});this.selectorObserverMap.set(t,n),n.start()}setupAttributeObserverForOutlet(t){const e=this.attributeNameForOutletName(t),n=new w(this.scope.element,e,this);this.attributeObserverMap.set(t,n),n.start()}selector(t){return this.scope.outlets.getSelectorForOutletName(t)}attributeNameForOutletName(t){return this.scope.schema.outletAttributeForScope(this.identifier,t)}getOutletNameFromOutletAttributeName(t){return this.outletDefinitions.find((e=>this.attributeNameForOutletName(e)===t))}get outletDependencies(){const t=new E;return this.router.modules.forEach((e=>{I(e.definition.controllerConstructor,"outlets").forEach((n=>t.add(n,e.identifier)))})),t}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const t=this.dependentControllerIdentifiers;return this.router.contexts.filter((e=>t.includes(e.identifier)))}hasOutlet(t,e){return!!this.getOutlet(t,e)||!!this.getOutletFromMap(t,e)}getOutlet(t,e){return this.application.getControllerForElementAndIdentifier(t,e)}getOutletFromMap(t,e){return this.outletsByName.getValuesForKey(e).find((e=>e.element===t))}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class N{constructor(t,e){this.logDebugActivity=(t,e={})=>{const{identifier:n,controller:r,element:i}=this;e=Object.assign({identifier:n,controller:r,element:i},e),this.application.logDebugActivity(this.identifier,t,e)},this.module=t,this.scope=e,this.controller=new t.controllerConstructor(this),this.bindingObserver=new C(this,this.dispatcher),this.valueObserver=new T(this,this.controller),this.targetObserver=new j(this,this),this.outletObserver=new R(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(t){this.handleError(t,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(t){this.handleError(t,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(t){this.handleError(t,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}
25get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(t,e,n={}){const{identifier:r,controller:i,element:o}=this;n=Object.assign({identifier:r,controller:i,element:o},n),this.application.handleError(t,`Error ${e}`,n)}targetConnected(t,e){this.invokeControllerMethod(`${e}TargetConnected`,t)}targetDisconnected(t,e){this.invokeControllerMethod(`${e}TargetDisconnected`,t)}outletConnected(t,e,n){this.invokeControllerMethod(`${c(n)}OutletConnected`,t,e)}outletDisconnected(t,e,n){this.invokeControllerMethod(`${c(n)}OutletDisconnected`,t,e)}invokeControllerMethod(t,...e){const n=this.controller;"function"==typeof n[t]&&n[t](...e)}}function F(t){return function(t,e){const n=z(t),r=function(t,e){return B(e).reduce(((n,r)=>{const i=function(t,e,n){const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!("value"in r)){const t=Object.getOwnPropertyDescriptor(e,n).value;return r&&(t.get=r.get||t.get,t.set=r.set||t.set),t}}(t,e,r);return i&&Object.assign(n,{[r]:i}),n}),{})}(t.prototype,e);return Object.defineProperties(n.prototype,r),n}(t,function(t){const e=I(t,"blessings");return e.reduce(((e,n)=>{const r=n(t);for(const t in r){const n=e[t]||{};e[t]=Object.assign(n,r[t])}return e}),{})}(t))}const B="function"==typeof Object.getOwnPropertySymbols?t=>[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)]:Object.getOwnPropertyNames,z=(()=>{function t(t){function e(){return Reflect.construct(t,arguments,new.target)}return e.prototype=Object.create(t.prototype,{constructor:{value:e}}),Reflect.setPrototypeOf(e,t),e}try{return function(){const e=t((function(){this.a.call(this)}));e.prototype.a=function(){},new e}(),t}catch(t){return t=>class extends t{}}})();class H{constructor(t,e){this.application=t,this.definition=function(t){return{identifier:t.identifier,controllerConstructor:F(t.controllerConstructor)}}(e),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(t){const e=this.fetchContextForScope(t);this.connectedContexts.add(e),e.connect()}disconnectContextForScope(t){const e=this.contextsByScope.get(t);e&&(this.connectedContexts.delete(e),e.disconnect())}fetchContextForScope(t){let e=this.contextsByScope.get(t);return e||(e=new N(this,t),this.contextsByScope.set(t,e)),e}}class V{constructor(t){this.scope=t}has(t){return this.data.has(this.getDataKey(t))}get(t){return this.getAll(t)[0]}getAll(t){const e=this.data.get(this.getDataKey(t))||"";return e.match(/[^\s]+/g)||[]}getAttributeName(t){return this.data.getAttributeNameForKey(this.getDataKey(t))}getDataKey(t){return`${t}-class`}get data(){return this.scope.data}}class W{constructor(t){this.scope=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(t){const e=this.getAttributeNameForKey(t);return this.element.getAttribute(e)}set(t,e){const n=this.getAttributeNameForKey(t);return this.element.setAttribute(n,e),this.get(t)}has(t){const e=this.getAttributeNameForKey(t);return this.element.hasAttribute(e)}delete(t){if(this.has(t)){const e=this.getAttributeNameForKey(t);return this.element.removeAttribute(e),!0}return!1}getAttributeNameForKey(t){return`data-${this.identifier}-${h(t)}`}}class U{constructor(t){this.warnedKeysByObject=new WeakMap,this.logger=t}warn(t,e,n){let r=this.warnedKeysByObject.get(t);r||(r=new Set,this.warnedKeysByObject.set(t,r)),r.has(e)||(r.add(e),this.logger.warn(n,t))}}function $(t,e){return`[${t}~="${e}"]`}class q{constructor(t){this.scope=t}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(t){return null!=this.find(t)}find(...t){return t.reduce(((t,e)=>t||this.findTarget(e)||this.findLegacyTarget(e)),void 0)}findAll(...t){return t.reduce(((t,e)=>[...t,...this.findAllTargets(e),...this.findAllLegacyTargets(e)]),[])}findTarget(t){const e=this.getSelectorForTargetName(t);return this.scope.findElement(e)}findAllTargets(t){const e=this.getSelectorForTargetName(t);return this.scope.findAllElements(e)}getSelectorForTargetName(t){return $(this.schema.targetAttributeForScope(this.identifier),t)}findLegacyTarget(t){const e=this.getLegacySelectorForTargetName(t);return this.deprecate(this.scope.findElement(e),t)}findAllLegacyTargets(t){const e=this.getLegacySelectorForTargetName(t);return this.scope.findAllElements(e).map((e=>this.deprecate(e,t)))}getLegacySelectorForTargetName(t){const e=`${this.identifier}.${t}`;return $(this.schema.targetAttribute,e)}deprecate(t,e){if(t){const{identifier:n}=this,r=this.schema.targetAttribute,i=this.schema.targetAttributeForScope(n);this.guide.warn(t,`target:${e}`,`Please replace ${r}="${n}.${e}" with ${i}="${e}". The ${r} attribute is deprecated and will be removed in a future version of Stimulus.`)}return t}get guide(){return this.scope.guide}}class Y{constructor(t,e){this.scope=t,this.controllerElement=e}
25get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(t){return null!=this.find(t)}find(...t){return t.reduce(((t,e)=>t||this.findOutlet(e)),void 0)}findAll(...t){return t.reduce(((t,e)=>[...t,...this.findAllOutlets(e)]),[])}getSelectorForOutletName(t){const e=this.schema.outletAttributeForScope(this.identifier,t);return this.controllerElement.getAttribute(e)}findOutlet(t){const e=this.getSelectorForOutletName(t);if(e)return this.findElement(e,t)}findAllOutlets(t){const e=this.getSelectorForOutletName(t);return e?this.findAllElements(e,t):[]}findElement(t,e){return this.scope.queryElements(t).filter((n=>this.matchesElement(n,t,e)))[0]}findAllElements(t,e){return this.scope.queryElements(t).filter((n=>this.matchesElement(n,t,e)))}matchesElement(t,e,n){const r=t.getAttribute(this.scope.schema.controllerAttribute)||"";return t.matches(e)&&r.split(" ").includes(n)}}class K{constructor(t,e,n,r){this.targets=new q(this),this.classes=new V(this),this.data=new W(this),this.containsElement=t=>t.closest(this.controllerSelector)===this.element,this.schema=t,this.element=e,this.identifier=n,this.guide=new U(r),this.outlets=new Y(this.documentScope,e)}findElement(t){return this.element.matches(t)?this.element:this.queryElements(t).find(this.containsElement)}findAllElements(t){return[...this.element.matches(t)?[this.element]:[],...this.queryElements(t).filter(this.containsElement)]}queryElements(t){return Array.from(this.element.querySelectorAll(t))}get controllerSelector(){return $(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new K(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class X{constructor(t,e,n){this.element=t,this.schema=e,this.delegate=n,this.valueListObserver=new M(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(t){const{element:e,content:n}=t;return this.parseValueForElementAndIdentifier(e,n)}parseValueForElementAndIdentifier(t,e){const n=this.fetchScopesByIdentifierForElement(t);let r=n.get(e);return r||(r=this.delegate.createScopeForElementAndIdentifier(t,e),n.set(e,r)),r}elementMatchedValue(t,e){const n=(this.scopeReferenceCounts.get(e)||0)+1;this.scopeReferenceCounts.set(e,n),1==n&&this.delegate.scopeConnected(e)}elementUnmatchedValue(t,e){const n=this.scopeReferenceCounts.get(e);n&&(this.scopeReferenceCounts.set(e,n-1),1==n&&this.delegate.scopeDisconnected(e))}fetchScopesByIdentifierForElement(t){let e=this.scopesByIdentifierByElement.get(t);return e||(e=new Map,this.scopesByIdentifierByElement.set(t,e)),e}}class G{constructor(t){this.application=t,this.scopeObserver=new X(this.element,this.schema,this),this.scopesByIdentifier=new E,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce(((t,e)=>t.concat(e.contexts)),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(t){this.unloadIdentifier(t.identifier);const e=new H(this.application,t);this.connectModule(e);const n=t.controllerConstructor.afterLoad;n&&n.call(t.controllerConstructor,t.identifier,this.application)}unloadIdentifier(t){const e=this.modulesByIdentifier.get(t);e&&this.disconnectModule(e)}getContextForElementAndIdentifier(t,e){const n=this.modulesByIdentifier.get(e);if(n)return n.contexts.find((e=>e.element==t))}proposeToConnectScopeForElementAndIdentifier(t,e){const n=this.scopeObserver.parseValueForElementAndIdentifier(t,e);n?this.scopeObserver.elementMatchedValue(n.element,n):console.error(`Couldn't find or create scope for identifier: "${e}" and element:`,t)}handleError(t,e,n){this.application.handleError(t,e,n)}createScopeForElementAndIdentifier(t,e){return new K(this.schema,t,e,this.logger)}scopeConnected(t){this.scopesByIdentifier.add(t.identifier,t);const e=this.modulesByIdentifier.get(t.identifier);e&&e.connectContextForScope(t)}scopeDisconnected(t){this.scopesByIdentifier.delete(t.identifier,t);const e=this.modulesByIdentifier.get(t.identifier);e&&e.disconnectContextForScope(t)}
25connectModule(t){this.modulesByIdentifier.set(t.identifier,t);this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((e=>t.connectContextForScope(e)))}disconnectModule(t){this.modulesByIdentifier.delete(t.identifier);this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((e=>t.disconnectContextForScope(e)))}}const Q={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:t=>`data-${t}-target`,outletAttributeForScope:(t,e)=>`data-${t}-${e}-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},J("abcdefghijklmnopqrstuvwxyz".split("").map((t=>[t,t])))),J("0123456789".split("").map((t=>[t,t]))))};function J(t){return t.reduce(((t,[e,n])=>Object.assign(Object.assign({},t),{[e]:n})),{})}class Z{constructor(t=document.documentElement,e=Q){this.logger=console,this.debug=!1,this.logDebugActivity=(t,e,n={})=>{this.debug&&this.logFormattedMessage(t,e,n)},this.element=t,this.schema=e,this.dispatcher=new i(this),this.router=new G(this),this.actionDescriptorFilters=Object.assign({},o)}static start(t,e){const n=new this(t,e);return n.start(),n}async start(){await new Promise((t=>{"loading"==document.readyState?document.addEventListener("DOMContentLoaded",(()=>t())):t()})),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(t,e){this.load({identifier:t,controllerConstructor:e})}registerActionOption(t,e){this.actionDescriptorFilters[t]=e}load(t,...e){(Array.isArray(t)?t:[t,...e]).forEach((t=>{t.controllerConstructor.shouldLoad&&this.router.loadDefinition(t)}))}unload(t,...e){(Array.isArray(t)?t:[t,...e]).forEach((t=>this.router.unloadIdentifier(t)))}get controllers(){return this.router.contexts.map((t=>t.controller))}getControllerForElementAndIdentifier(t,e){const n=this.router.getContextForElementAndIdentifier(t,e);return n?n.controller:null}handleError(t,e,n){var r;this.logger.error("%s\n\n%o\n\n%o",e,t,n),null===(r=window.onerror)||void 0===r||r.call(window,e,"",0,0,t)}logFormattedMessage(t,e,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${t} #${e}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}}function tt(t,e,n){return t.application.getControllerForElementAndIdentifier(e,n)}function et(t,e,n){let r=tt(t,e,n);return r||(t.application.router.proposeToConnectScopeForElementAndIdentifier(e,n),r=tt(t,e,n),r||void 0)}function nt([t,e],n){return function(t){const{token:e,typeDefinition:n}=t,r=`${h(e)}-value`,i=function(t){const{controller:e,token:n,typeDefinition:r}=t,i={controller:e,token:n,typeObject:r},o=function(t){const{controller:e,token:n,typeObject:r}=t,i=f(r.type),o=f(r.default),a=i&&o,s=i&&!o,l=!i&&o,c=rt(r.type),u=it(t.typeObject.default);if(s)return c;if(l)return u;if(c!==u){throw new Error(`The specified default value for the Stimulus Value "${e?`${e}.${n}`:n}" must match the defined type "${c}". The provided default value of "${r.default}" is of type "${u}".`)}if(a)return c}(i),a=it(r),s=rt(r),l=o||a||s;if(l)return l;const c=e?`${e}.${r}`:n;throw new Error(`Unknown value type "${c}" for "${n}" value`)}(t);return{type:i,key:r,name:l(r),get defaultValue(){return function(t){const e=rt(t);if(e)return ot[e];const n=d(t,"default"),r=d(t,"type"),i=t;if(n)return i.default;if(r){const{type:t}=i,e=rt(t);if(e)return ot[e]}return t}(n)},get hasCustomDefaultValue(){return void 0!==it(n)},reader:at[i],writer:st[i]||st.default}}({controller:n,token:t,typeDefinition:e})}function rt(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function it(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(t)?"array":"[object Object]"===Object.prototype.toString.call(t)?"object":void 0}const ot={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},at={array(t){const e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError(`expected value of type "array" but instead got value "${t}" of type "${it(e)}"`);return e},boolean:t=>!("0"==t||"false"==String(t).toLowerCase()),number:t=>Number(t.replace(/_/g,"")),object(t){const e=JSON.parse(t);if(null===e||"object"!=typeof e||Array.isArray(e))throw new TypeError(`expected value of type "object" but instead got value "${t}" of type "${it(e)}"`);return e},string:t=>t},st={default:function(t){return`${t}`},array:lt,object:lt};function lt(t){return JSON.stringify(t)}class ct{constructor(t){this.context=t}static get shouldLoad(){return!0}static afterLoad(t,e){}get application(){return this.context.application}get scope(){return this.context.scope}
25get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(t,{target:e=this.element,detail:n={},prefix:r=this.identifier,bubbles:i=!0,cancelable:o=!0}={}){const a=new CustomEvent(r?`${r}:${t}`:t,{detail:n,bubbles:i,cancelable:o});return e.dispatchEvent(a),a}}ct.blessings=[function(t){return I(t,"classes").reduce(((t,e)=>{return Object.assign(t,(n=e,{[`${n}Class`]:{get(){const{classes:t}=this;if(t.has(n))return t.get(n);{const e=t.getAttributeName(n);throw new Error(`Missing attribute "${e}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${u(n)}Class`]:{get(){return this.classes.has(n)}}}));var n}),{})},function(t){return I(t,"targets").reduce(((t,e)=>{return Object.assign(t,(n=e,{[`${n}Target`]:{get(){const t=this.targets.find(n);if(t)return t;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${u(n)}Target`]:{get(){return this.targets.has(n)}}}));var n}),{})},function(t){const e=L(t,"values"),n={valueDescriptorMap:{get(){return e.reduce(((t,e)=>{const n=nt(e,this.identifier),r=this.data.getAttributeNameForKey(n.key);return Object.assign(t,{[r]:n})}),{})}}};return e.reduce(((t,e)=>Object.assign(t,function(t,e){const n=nt(t,e),{key:r,name:i,reader:o,writer:a}=n;return{[i]:{get(){const t=this.data.get(r);return null!==t?o(t):n.defaultValue},set(t){void 0===t?this.data.delete(r):this.data.set(r,a(t))}},[`has${u(i)}`]:{get(){return this.data.has(r)||n.hasCustomDefaultValue}}}}(e))),n)},function(t){return I(t,"outlets").reduce(((t,e)=>Object.assign(t,function(t){const e=c(t);return{[`${e}Outlet`]:{get(){const e=this.outlets.find(t),n=this.outlets.getSelectorForOutletName(t);if(e){const n=et(this,e,t);if(n)return n;throw new Error(`The provided outlet element is missing an outlet controller "${t}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${t}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${e}Outlets`]:{get(){const e=this.outlets.findAll(t);return e.length>0?e.map((e=>{const n=et(this,e,t);if(n)return n;console.warn(`The provided outlet element is missing an outlet controller "${t}" instance for host controller "${this.identifier}"`,e)})).filter((t=>t)):[]}},[`${e}OutletElement`]:{get(){const e=this.outlets.find(t),n=this.outlets.getSelectorForOutletName(t);if(e)return e;throw new Error(`Missing outlet element "${t}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${e}OutletElements`]:{get(){return this.outlets.findAll(t)}},[`has${u(e)}Outlet`]:{get(){return this.outlets.has(t)}}}}(e))),{})}],ct.targets=[],ct.outlets=[],ct.values={}}
25,52967:(t,e,n)=>{"use strict";var r=n(46706),i=n(20034),o=n(67750),a=n(73506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return o(n),a(r),i(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},53179:(t,e,n)=>{"use strict";var r=n(92140),i=n(36955);t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},53640:(t,e,n)=>{"use strict";var r=n(28551),i=n(84270),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},53661:(t,e,n)=>{var r=n(63040),i=n(17670),o=n(90289),a=n(4509),s=n(72949);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},53730:(t,e,n)=>{var r=n(44394);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},53812:(t,e,n)=>{var r=n(72552),i=n(40346);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},54128:(t,e,n)=>{var r=n(31800),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},54520:(t,e,n)=>{"use strict";n(22489)},54554:(t,e,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(35610),a=n(91291),s=n(26198),l=n(34527),c=n(96837),u=n(1469),h=n(97040),f=n(84606),d=n(70597)("splice"),p=Math.max,m=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,d,g,v,y,b=i(this),x=s(b),w=o(t,x),S=arguments.length;for(0===S?n=r=0:1===S?(n=0,r=x-w):(n=S-2,r=m(p(a(e),0),x-w)),c(x+n-r),d=u(b,r),g=0;g<r;g++)(v=w+g)in b&&h(d,g,b[v]);if(d.length=r,n<r){for(g=w;g<x-r;g++)y=g+n,(v=g+r)in b?b[y]=b[v]:f(b,y);for(g=x;g>x-r+n;g--)f(b,g-1)}else if(n>r)for(g=x-r;g>w;g--)y=g+n-1,(v=g+r-1)in b?b[y]=b[v]:f(b,y);for(g=0;g<n;g++)b[g+w]=arguments[g+2];return l(b,x-r+n),d}})},55378:(t,e,n)=>{var r=n(34932),i=n(15389),o=n(5128),a=n(56449);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},55481:(t,e,n)=>{var r=n(9325)["__core-js_shared__"];t.exports=r},55527:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},55580:(t,e,n)=>{var r=n(56110)(n(9325),"DataView");t.exports=r},55765:(t,e,n)=>{var r=n(38859),i=n(15325),o=n(29905),a=n(19219),s=n(44517),l=n(84247);t.exports=function(t,e,n){var c=-1,u=i,h=t.length,f=!0,d=[],p=d;if(n)f=!1,u=o;else if(h>=200){var m=e?null:s(t);if(m)return l(m);f=!1,u=a,p=new r}else p=e?[]:d;t:for(;++c<h;){var g=t[c],v=e?e(g):g;if(g=n||0!==g?g:0,f&&v==v){for(var y=p.length;y--;)if(p[y]===v)continue t;e&&p.push(v),d.push(g)}else u(p,v,n)||(p!==d&&p.push(v),d.push(g))}return d}},55808:(t,e,n)=>{var r=n(12507)("toUpperCase");t.exports=r},55966:(t,e,n)=>{"use strict";var r=n(79306),i=n(64117);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},56110:(t,e,n)=>{var r=n(45083),i=n(10392);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},56176:t=>{t.exports=function(t,e){return t<e}},56279:(t,e,n)=>{"use strict";var r=n(36840);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},56449:t=>{var e=Array.isArray;t.exports=e},56682:(t,e,n)=>{"use strict";var r=n(69565),i=n(28551),o=n(94901),a=n(22195),s=n(57323),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var c=r(n,t,e);return null!==c&&i(c),c}if("RegExp"===a(t))return r(s,t,e);throw new l("RegExp#exec called on incompatible receiver")}},56757:(t,e,n)=>{var r=n(91033),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(l),r(t,this,c)}}},56969:(t,e,n)=>{"use strict";var r=n(72777),i=n(10757);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},57323:(t,e,n)=>{"use strict";var r,i,o=n(69565),a=n(79504),s=n(655),l=n(67979),c=n(58429),u=n(25745),h=n(2360),f=n(91181).get,d=n(83635),p=n(18814),m=u("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,y=a("".charAt),b=a("".indexOf),x=a("".replace),w=a("".slice),S=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),O=c.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||O||d||p)&&(v=function(t){var e,n,r,i,a,c,u,d=this,p=f(d),E=s(t),_=p.raw;if(_)return _.lastIndex=d.lastIndex,e=o(v,_,E),d.lastIndex=_.lastIndex,e;var A=p.groups,P=O&&d.sticky,M=o(l,d),C=d.source,T=0,j=E;
25if(P&&(M=x(M,"y",""),-1===b(M,"g")&&(M+="g"),j=w(E,d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==y(E,d.lastIndex-1))&&(C="(?: "+C+")",j=" "+j,T++),n=new RegExp("^(?:"+C+")",M)),k&&(n=new RegExp("^"+C+"$(?!\\s)",M)),S&&(r=d.lastIndex),i=o(g,P?n:d,j),P?i?(i.input=w(i.input,T),i[0]=w(i[0],T),i.index=d.lastIndex,d.lastIndex+=i[0].length):d.lastIndex=0:S&&i&&(d.lastIndex=d.global?i.index+i[0].length:r),k&&i&&i.length>1&&o(m,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&A)for(i.groups=c=h(null),a=0;a<A.length;a++)c[(u=A[a])[0]]=i[u[1]];return i}),t.exports=v},57657:(t,e,n)=>{"use strict";var r,i,o,a=n(79039),s=n(94901),l=n(20034),c=n(2360),u=n(42787),h=n(36840),f=n(78227),d=n(96395),p=f("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):m=!0),!l(r)||a((function(){var t={};return r[p].call(t)!==t}))?r={}:d&&(r=c(r)),s(r[p])||h(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:m}},57829:(t,e,n)=>{"use strict";var r=n(68183).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},58156:(t,e,n)=>{var r=n(47422);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},58242:(t,e,n)=>{"use strict";var r=n(69565),i=n(97751),o=n(78227),a=n(36840);t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},58429:(t,e,n)=>{"use strict";var r=n(79039),i=n(44576).RegExp,o=r((function(){var t=i("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var t=i("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},58522:(t,e,n)=>{"use strict";n.d(e,{h:()=>g});var r=n(96540),i=n(34164),o=n(94501),a=n(14040),s=n(59744);function l(t){return l="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},l(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function u(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 h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){var r;return r=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==l(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+r,h=Math.asin(l/u)/a.Kg,f=c?i:i+o*h,d=c?i-o*h:i;return{center:(0,a.IZ)(e,n,u,f),circleTangency:(0,a.IZ)(e,n,r,f),lineTangency:(0,a.IZ)(e,n,u*Math.cos(h*a.Kg),d),theta:h}},p=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=function(t,e){return(0,s.sA)(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+l,u=(0,a.IZ)(e,n,i,o),h=(0,a.IZ)(e,n,i,c),f="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(o>c),",\n ").concat(h.x,",").concat(h.y,"\n ");if(r>0){var d=(0,a.IZ)(e,n,r,o),p=(0,a.IZ)(e,n,r,c);f+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(o<=c),",\n ").concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(e,",").concat(n," Z");return f},m={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},g=function(t){var e=h(h({},m),t),n=e.cx,a=e.cy,l=e.innerRadius,u=e.outerRadius,f=e.cornerRadius,g=e.forceCornerRadius,v=e.cornerIsExternal,y=e.startAngle,b=e.endAngle,x=e.className;if(u<l||y===b)return null;var w,S=(0,i.A)("recharts-sector",x),O=u-l,k=(0,s.F4)(f,O,0,!0);return w=k>0&&Math.abs(y-b)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,h=(0,s.sA)(u-c),f=d({cx:e,cy:n,radius:i,angle:c,sign:h,cornerRadius:o,cornerIsExternal:l}),m=f.circleTangency,g=f.lineTangency,v=f.theta,y=d({cx:e,cy:n,radius:i,angle:u,sign:-h,cornerRadius:o,cornerIsExternal:l}),b=y.circleTangency,x=y.lineTangency,w=y.theta,S=l?Math.abs(c-u):Math.abs(c-u)-v-w;if(S<0)return a?"M ".concat(g.x,",").concat(g.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):p({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:u});var O="M ".concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(m.x,",").concat(m.y,"\n A").concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(h<0),",").concat(b.x,",").concat(b.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,"\n ");if(r>0){var k=d({cx:e,cy:n,radius:r,angle:c,sign:h,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),E=k.circleTangency,_=k.lineTangency,A=k.theta,P=d({cx:e,cy:n,radius:r,angle:u,sign:-h,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=P.circleTangency,C=P.lineTangency,T=P.theta,j=l?Math.abs(c-u):Math.abs(c-u)-A-T;if(j<0&&0===o)return"".concat(O,"L").concat(e,",").concat(n,"Z");O+="L".concat(C.x,",").concat(C.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(h>0),",").concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(h<0),",").concat(_.x,",").concat(_.y,"Z")}else O+="L".concat(e,",").concat(n,"Z");return O}({cx:n,cy:a,innerRadius:l,outerRadius:u,cornerRadius:Math.min(k,O/2),forceCornerRadius:g,cornerIsExternal:v,startAngle:y,endAngle:b}):p({cx:n,cy:a,innerRadius:l,outerRadius:u,startAngle:y,endAngle:b}),r.createElement("path",c({},(0,o.J9)(e,!0),{className:S,d:w,role:"img"}))}},58622:(t,e,n)=>{"use strict";var r=n(44576),i=n(94901),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},58940:(t,e,n)=>{"use strict";var r=n(46518),i=n(52703);r({global:!0,forced:parseInt!==i},{parseInt:i})},59089:(t,e,n)=>{"use strict";var r=n(46518),i=n(79504),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},59213:(t,e,n)=>{"use strict";
vendor: 1,908 bytes, line 25
25var r=n(76080),i=n(79504),o=n(47055),a=n(48981),s=n(26198),l=n(1469),c=i([].push),u=function(t){var e=1===t,n=2===t,i=3===t,u=4===t,h=6===t,f=7===t,d=5===t||h;return function(p,m,g,v){for(var y,b,x=a(p),w=o(x),S=s(w),O=r(m,g),k=0,E=v||l,_=e?E(p,S):n||f?E(p,0):void 0;S>k;k++)if((d||k in w)&&(b=O(y=w[k],k,x),t))if(e)_[k]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:c(_,y)}else switch(t){case 4:return!1;case 7:c(_,y)}return h?-1:i||u?u:_}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},59225:(t,e,n)=>{"use strict";var r,i,o,a,s=n(44576),l=n(18745),c=n(76080),u=n(94901),h=n(39297),f=n(79039),d=n(20397),p=n(67680),m=n(4055),g=n(22812),v=n(89544),y=n(38574),b=s.setImmediate,x=s.clearImmediate,w=s.process,S=s.Dispatch,O=s.Function,k=s.MessageChannel,E=s.String,_=0,A={},P="onreadystatechange";f((function(){r=s.location}));var M=function(t){if(h(A,t)){var e=A[t];delete A[t],e()}},C=function(t){return function(){M(t)}},T=function(t){M(t.data)},j=function(t){s.postMessage(E(t),r.protocol+"//"+r.host)};b&&x||(b=function(t){g(arguments.length,1);var e=u(t)?t:O(t),n=p(arguments,1);return A[++_]=function(){l(e,void 0,n)},i(_),_},x=function(t){delete A[t]},y?i=function(t){w.nextTick(C(t))}:S&&S.now?i=function(t){S.now(C(t))}:k&&!v?(a=(o=new k).port2,o.port1.onmessage=T,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(j)?(i=j,s.addEventListener("message",T,!1)):i=P in m("script")?function(t){d.appendChild(m("script"))[P]=function(){d.removeChild(this),M(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:b,clear:x}},59350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},59744:(t,e,n)=>{"use strict";n.d(e,{CG:()=>S,Dj:()=>O,Et:()=>m,F4:()=>x,NF:()=>b,_3:()=>p,ck:()=>E,eP:()=>k,lX:()=>w,sA:()=>d,uy:()=>g,vh:()=>v});
25var r=n(85015),i=n.n(r),o=n(11741),a=n.n(o),s=n(58156),l=n.n(s),c=n(98023),u=n.n(c),h=n(69843),f=n.n(h),d=function(t){return 0===t?0:t>0?1:-1},p=function(t){return i()(t)&&t.indexOf("%")===t.length-1},m=function(t){return u()(t)&&!a()(t)},g=function(t){return f()(t)},v=function(t){return m(t)||i()(t)},y=0,b=function(t){var e=++y;return"".concat(t||"").concat(e)},x=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!m(t)&&!i()(t))return r;if(p(t)){var s=t.indexOf("%");n=e*parseFloat(t.slice(0,s))/100}else n=+t;return a()(n)&&(n=r),o&&n>e&&(n=e),n},w=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},S=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1},O=function(t,e){return m(t)&&m(e)?function(n){return t+n*(e-t)}:function(){return e}};function k(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):l()(t,e))===n})):null}var E=function(t,e){return m(t)&&m(e)?t-e:i()(t)&&i()(e)?t.localeCompare(e):t instanceof Date&&e instanceof Date?t.getTime()-e.getTime():String(t).localeCompare(String(e))}},59904:(t,e,n)=>{"use strict";n(46518)({target:"Object",stat:!0,sham:!n(43724)},{create:n(2360)})},59938:(t,e,n)=>{"use strict";n.d(e,{m:()=>r});var r={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return r[t]},set:function(t,e){if("string"==typeof t)r[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){r[e]=t[e]}))}}}},60207:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(52891);const i=class extends r.xI{check(){const t=this.inputTargets.some((t=>"checkbox"===t.type?!1===t.checked:t.dataset.confirmationContent!==t.value));this.itemTargets.forEach((e=>{e.disabled=t}))}inputTargetConnected(){this.check()}inputTargetDisconnected(){this.check()}};i.targets=["input","item"];let o=i},60270:(t,e,n)=>{var r=n(87068),i=n(40346);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},60511:(t,e,n)=>{"use strict";var r=n(60788),i=TypeError;t.exports=function(t){if(r(t))throw new i("The method doesn't accept regular expressions");return t}},60706:(t,e,n)=>{"use strict";var r=n(10350).PROPER,i=n(79039),o=n(47452);t.exports=function(t){return i((function(){return!!o[t]()||"âÂ
á "!=="âÂ
á "[t]()||r&&o[t].name!==t}))}},60739:(t,e,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(48981),a=n(72777);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},60788:(t,e,n)=>{"use strict";var r=n(20034),i=n(22195),o=n(78227)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===i(t))}},60825:(t,e,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(18745),a=n(30566),s=n(35548),l=n(28551),c=n(20034),u=n(2360),h=n(79039),f=i("Reflect","construct"),d=Object.prototype,p=[].push,m=h((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),g=!h((function(){f((function(){}))})),v=m||g;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){s(t),l(e);var n=arguments.length<3?t:s(arguments[2]);if(g&&!m)return f(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return o(p,r,e),new(o(a,t,r))}var i=n.prototype,h=u(c(i)?i:d),v=o(t,h,e);return c(v)?v:h}})},61034:(t,e,n)=>{"use strict";var r=n(69565),i=n(39297),o=n(1625),a=n(65213),s=n(67979),l=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!o(l,t)||i(t,"flags")?t.flags:r(s,t)}},61074:t=>{t.exports=function(t){return t.split("")}},61489:(t,e,n)=>{var r=n(17400);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},61501:(t,e,n)=>{"use strict";n.d(e,{_P:()=>o,my:()=>r,w4:()=>i});Math.pow(10,8);const r=6048e5,i=864e5,o=Symbol.for("constructDateFrom")},61701:(t,e,n)=>{"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),l=n(19462),c=n(96319),u=n(9539),h=n(30684),f=n(84549),d=n(96395),p=!d&&!h("map",(function(){})),m=!d&&!p&&f("map",TypeError),g=d||p||m,v=l((function(){var t=this.iterator,e=a(i(this.next,t));if(!(this.done=!!e.done))return c(t,this.mapper,[e.value,this.counter++],!0)}));r({target:"Iterator",proto:!0,real:!0,forced:g},{map:function(t){a(this);try{o(t)}catch(t){u(this,"throw",t)}return m?i(m,this,t):new v(s(this),{mapper:t})}})},61802:(t,e,n)=>{var r=n(62224),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},61828:(t,e,n)=>{"use strict";var r=n(79504),i=n(39297),o=n(25397),a=n(19617).indexOf,s=n(30421),l=r([].push);t.exports=function(t,e){var n,r=o(t),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);for(;e.length>c;)i(r,n=e[c++])&&(~a(u,n)||l(u,n));return u}},62006:(t,e,n)=>{var r=n(15389),i=n(64894),o=n(95950);t.exports=function(t){return function(e,n,a){var s=Object(e);
25if(!i(e)){var l=r(n,3);e=o(e),n=function(t){return l(s[t],t,s)}}var c=t(e,n,a);return c>-1?s[l?e[c]:c]:void 0}}},62010:(t,e,n)=>{"use strict";var r=n(43724),i=n(10350).EXISTS,o=n(79504),a=n(62106),s=Function.prototype,l=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(t){return""}}})},62062:(t,e,n)=>{"use strict";var r=n(46518),i=n(59213).map;r({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},62106:(t,e,n)=>{"use strict";var r=n(50283),i=n(24913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},62224:(t,e,n)=>{var r=n(50104);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},62529:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},62953:(t,e,n)=>{"use strict";var r=n(44576),i=n(67400),o=n(79296),a=n(23792),s=n(66699),l=n(10687),c=n(78227)("iterator"),u=a.values,h=function(t,e){if(t){if(t[c]!==u)try{s(t,c,u)}catch(e){t[c]=u}if(l(t,e,!0),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(o,"DOMTokenList")},63036:(t,e,n)=>{"use strict";n.d(e,{s0:()=>wo,gH:()=>vo,YB:()=>jo,HQ:()=>Mo,xi:()=>Io,Hj:()=>Yo,BX:()=>xo,tA:()=>bo,DW:()=>Ho,y2:()=>zo,nb:()=>Bo,PW:()=>_o,Ay:()=>go,vf:()=>ko,Mk:()=>Wo,Ps:()=>yo,Mn:()=>No,kA:()=>Vo,Rh:()=>Ao,w7:()=>Fo,zb:()=>Xo,kr:()=>mo,_L:()=>Eo,KC:()=>Ko,A1:()=>Oo,W7:()=>Co,AQ:()=>qo,_f:()=>Lo});var r={};n.r(r),n.d(r,{scaleBand:()=>i.A,scaleDiverging:()=>Zr,scaleDivergingLog:()=>ti,scaleDivergingPow:()=>ni,scaleDivergingSqrt:()=>ri,scaleDivergingSymlog:()=>ei,scaleIdentity:()=>$t,scaleImplicit:()=>oe.h,scaleLinear:()=>Ut,scaleLog:()=>te,scaleOrdinal:()=>oe.A,scalePoint:()=>i.z,scalePow:()=>ue,scaleQuantile:()=>Se,scaleQuantize:()=>Oe,scaleRadial:()=>de,scaleSequential:()=>qr,scaleSequentialLog:()=>Yr,scaleSequentialPow:()=>Xr,scaleSequentialQuantile:()=>Qr,scaleSequentialSqrt:()=>Gr,scaleSequentialSymlog:()=>Kr,scaleSqrt:()=>he,scaleSymlog:()=>ie,scaleThreshold:()=>ke,scaleTime:()=>Vr,scaleUtc:()=>Wr,tickFormat:()=>Vt});var i=n(39072);const o=Math.sqrt(50),a=Math.sqrt(10),s=Math.sqrt(2);function l(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),c=r/Math.pow(10,i),u=c>=o?10:c>=a?5:c>=s?2:1;let h,f,d;return i<0?(d=Math.pow(10,-i)/u,h=Math.round(t*d),f=Math.round(e*d),h/d<t&&++h,f/d>e&&--f,d=-d):(d=Math.pow(10,i)*u,h=Math.round(t/d),f=Math.round(e/d),h*d<t&&++h,f*d>e&&--f),f<h&&.5<=n&&n<2?l(t,e,2*n):[h,f,d]}function c(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?l(e,t,n):l(t,e,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)c[t]=(o-t)/-a;else for(let t=0;t<s;++t)c[t]=(o-t)*a;else if(a<0)for(let t=0;t<s;++t)c[t]=(i+t)/-a;else for(let t=0;t<s;++t)c[t]=(i+t)*a;return c}function u(t,e,n){return l(t=+t,e=+e,n=+n)[2]}function h(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?u(e,t,n):u(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function f(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function d(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function p(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=f,n=(e,n)=>f(t(e),n),r=(e,n)=>t(e)-n):(e=t===f||t===d?t:m,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function m(){return 0}function g(t){return null===t?NaN:+t}const v=p(f),y=v.right,b=(v.left,p(g).center,y);function x(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function w(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function S(){}var O=.7,k=1/O,E="\\s*([+-]?\\d+)\\s*",_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P=/^#([0-9a-f]{3,8})$/,M=new RegExp(`^rgb\\(${E},${E},${E}\\)$`),C=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),T=new RegExp(`^rgba\\(${E},${E},${E},${_}\\)$`),j=new RegExp(`^rgba\\(${A},${A},${A},${_}\\)$`),I=new RegExp(`^hsl\\(${_},${A},${A}\\)$`),L=new RegExp(`^hsla\\(${_},${A},${A},${_}\\)$`),D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function R(){return this.rgb().formatHex()}function N(){return this.rgb().formatRgb()}function F(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=P.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?B(e):3===n?
vendor: 6,399 bytes, line 25
25new V(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?z(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?z(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=M.exec(t))?new V(e[1],e[2],e[3],1):(e=C.exec(t))?new V(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=T.exec(t))?z(e[1],e[2],e[3],e[4]):(e=j.exec(t))?z(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=I.exec(t))?K(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?K(e[1],e[2]/100,e[3]/100,e[4]):D.hasOwnProperty(t)?B(D[t]):"transparent"===t?new V(NaN,NaN,NaN,0):null}function B(t){return new V(t>>16&255,t>>8&255,255&t,1)}function z(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function H(t,e,n,r){return 1===arguments.length?((i=t)instanceof S||(i=F(i)),i?new V((i=i.rgb()).r,i.g,i.b,i.opacity):new V):new V(t,e,n,null==r?1:r);var i}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function W(){return`#${Y(this.r)}${Y(this.g)}${Y(this.b)}`}function U(){const t=$(this.opacity);return`${1===t?"rgb(":"rgba("}${q(this.r)}, ${q(this.g)}, ${q(this.b)}${1===t?")":`, ${t})`}`}function $(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function q(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Y(t){return((t=q(t))<16?"0":"")+t.toString(16)}function K(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new G(t,e,n,r)}function X(t){if(t instanceof G)return new G(t.h,t.s,t.l,t.opacity);if(t instanceof S||(t=F(t)),!t)return new G;if(t instanceof G)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new G(a,s,l,t.opacity)}function G(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Q(t){return(t=(t||0)%360)<0?t+360:t}function J(t){return Math.max(0,Math.min(1,t||0))}function Z(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function tt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}x(S,F,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:R,formatHex:R,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return X(this).formatHsl()},formatRgb:N,toString:N}),x(V,H,w(S,{brighter(t){return t=null==t?k:Math.pow(k,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?O:Math.pow(O,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new V(q(this.r),q(this.g),q(this.b),$(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W,formatHex:W,formatHex8:function(){return`#${Y(this.r)}${Y(this.g)}${Y(this.b)}${Y(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:U,toString:U})),x(G,(function(t,e,n,r){return 1===arguments.length?X(t):new G(t,e,n,null==r?1:r)}),w(S,{brighter(t){return t=null==t?k:Math.pow(k,t),new G(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?O:Math.pow(O,t),new G(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new V(Z(t>=240?t-240:t+120,i,r),Z(t,i,r),Z(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new G(Q(this.h),J(this.s),J(this.l),$(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$(this.opacity);return`${1===t?"hsl(":"hsla("}${Q(this.h)}, ${100*J(this.s)}%, ${100*J(this.l)}%${1===t?")":`, ${t})`}`}}));const et=t=>()=>t;function nt(t,e){return function(n){return t+n*e}}function rt(t){return 1==(t=+t)?it:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):et(isNaN(e)?n:e)}}function it(t,e){var n=e-t;return n?nt(t,n):et(isNaN(t)?e:t)}const ot=function t(e){var n=rt(e);function r(t,e){var r=n((t=H(t)).r,(e=H(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=it(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function at(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=H(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}at((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return tt((n-r/e)*e,a,i,o,s)}})),at((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return tt((n-r/e)*e,i,o,a,s)}}));function st(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=mt(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function lt(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ct(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function ut(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=mt(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var ht=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ft=new RegExp(ht.source,"g");function dt(t,e){var n,r,i,o=ht.lastIndex=ft.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=ht.exec(t))&&(r=ft.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:ct(n,r)})),o=ft.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function pt(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function mt(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?et(e):("number"===i?ct:"string"===i?(n=F(e))?(e=n,ot):dt:e instanceof F?ot:e instanceof Date?lt:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?
vendor: 4,796 bytes, line 25
25st:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ut:ct:pt))(t,e)}function gt(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function vt(t){return+t}var yt=[0,1];function bt(t){return t}function xt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function wt(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=xt(i,r),o=n(a,o)):(r=xt(r,i),o=n(o,a)),function(t){return o(r(t))}}function St(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=xt(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=b(t,e,1,r)-1;return o[n](i[n](e))}}function Ot(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function kt(){var t,e,n,r,i,o,a=yt,s=yt,l=mt,c=bt;function u(){var t,e,n,l=Math.min(a.length,s.length);return c!==bt&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?St:wt,i=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),ct)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,vt),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=gt,u()},h.clamp=function(t){return arguments.length?(c=!!t||bt,u()):c!==bt},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,u()}}function Et(){return kt()(bt,bt)}var _t,At=n(99065),Pt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mt(t){if(!(e=Pt.exec(t)))throw new Error("invalid format: "+t);var e;return new Ct({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Ct(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Tt(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function jt(t){return(t=Tt(Math.abs(t)))?t[1]:NaN}function It(t,e){var n=Tt(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Mt.prototype=Ct.prototype,Ct.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Lt={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>It(100*t,e),r:It,s:function(t,e){var n=Tt(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(_t=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Tt(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Dt(t){return t}var Rt,Nt,Ft,Bt=Array.prototype.map,zt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ht(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Dt:(e=Bt.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?Dt:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Bt.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"â":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Mt(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,m=t.comma,g=t.precision,v=t.trim,y=t.type;"n"===y?(m=!0,y="g"):Lt[y]||(void 0===g&&(g=12),v=!0,y="g"),(d||"0"===e&&"="===n)&&(d=!0,e="
250",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===f?o:/[%p]/.test(y)?l:"",w=Lt[y],S=/[defgprs%]/.test(y);function O(t){var i,o,l,f=b,O=x;if("c"===y)O=w(t)+O,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),k&&0==+t&&"+"!==h&&(k=!1),f=(k?"("===h?h:c:"-"===h||"("===h?"":h)+f,O=("s"===y?zt[8+_t/3]:"")+O+(k&&"("===h?")":""),S)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){O=(46===l?a+t.slice(i+1):t.slice(i))+O,t=t.slice(0,i);break}}m&&!d&&(t=r(t,1/0));var E=f.length+t.length+O.length,_=E<p?new Array(p-E+1).join(e):"";switch(m&&d&&(t=r(_+t,_.length?p-O.length:1/0),_=""),n){case"<":t=f+t+O+_;break;case"=":t=f+_+t+O;break;case"^":t=_.slice(0,E=_.length>>1)+f+t+O+_.slice(E);break;default:t=_+f+t+O}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return t+""},O}return{format:h,formatPrefix:function(t,e){var n=h(((t=Mt(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(jt(e)/3))),i=Math.pow(10,-r),o=zt[8+r/3];return function(t){return n(i*t)+o}}}}function Vt(t,e,n,r){var i,o=h(t,e,n);switch((r=Mt(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(jt(e)/3)))-jt(Math.abs(t)))}(o,a))||(r.precision=i),Ft(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,jt(e)-jt(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-jt(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Nt(r)}function Wt(t){var e=t.domain;return t.ticks=function(t){var n=e();return c(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Vt(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,l=o[a],c=o[s],h=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);h-- >0;){if((i=u(l,c,n))===r)return o[a]=l,o[s]=c,e(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function Ut(){var t=Et();return t.copy=function(){return Ot(t,Ut())},At.C.apply(t,arguments),Wt(t)}function $t(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,vt),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return $t(t).unknown(e)},t=arguments.length?Array.from(t,vt):[0,1],Wt(n)}function qt(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function Yt(t){return Math.log(t)}function Kt(t){return Math.exp(t)}function Xt(t){return-Math.log(-t)}function Gt(t){return-Math.exp(-t)}function Qt(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Jt(t){return(e,n)=>-t(-e,n)}function Zt(t){const e=t(Yt,Kt),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?Qt:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=Jt(r),i=Jt(i),t(Xt,Gt)):t(Yt,Kt),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],s=e[e.length-1];const l=s<a;l&&([a,s]=[s,a]);let u,h,f=r(a),d=r(s);const p=null==t?10:+t;let m=[];if(!(o%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(u=1;u<o;++u)if(h=f<0?u/i(-f):u*i(f),!(h<a)){if(h>s)break;m.push(h)}}else for(;f<=d;++f)for(u=o-1;u>=1;--u)if(h=f>0?u/i(-f):u*i(f),!(h<a)){if(h>s)break;m.push(h)}2*m.length<p&&(m=c(a,s,p))}else m=c(f,d,Math.min(d-f,p)).map(i);return l?m.reverse():m},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=Mt(n)).precision||(n.trim=!0),n=Nt(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(qt(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function te(){const t=Zt(kt()).domain([1,10]);return t.copy=()=>Ot(t,te()).base(t.base()),At.C.apply(t,arguments),t}function ee(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ne(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function re(t){var e=1,n=t(ee(e),ne(e));return n.constant=function(n){return arguments.length?t(ee(e=+n),ne(e)):e},Wt(n)}
vendor: 5,104 bytes, line 25
25function ie(){var t=re(kt());return t.copy=function(){return Ot(t,ie()).constant(t.constant())},At.C.apply(t,arguments)}Rt=Ht({thousands:",",grouping:[3],currency:["$",""]}),Nt=Rt.format,Ft=Rt.formatPrefix;var oe=n(12217);function ae(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function se(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function le(t){return t<0?-t*t:t*t}function ce(t){var e=t(bt,bt),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(bt,bt):.5===n?t(se,le):t(ae(n),ae(1/n)):n},Wt(e)}function ue(){var t=ce(kt());return t.copy=function(){return Ot(t,ue()).exponent(t.exponent())},At.C.apply(t,arguments),t}function he(){return ue.apply(null,arguments).exponent(.5)}function fe(t){return Math.sign(t)*t*t}function de(){var t,e=Et(),n=[0,1],r=!1;function i(n){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(e(n));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return e.invert(fe(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((n=Array.from(t,vt)).map(fe)),i):n.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return de(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},At.C.apply(i,arguments),Wt(i)}function pe(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function me(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ge(t=f){if(t===f)return ve;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}function ve(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function ye(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?ve:ge(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);ye(t,e,Math.max(n,Math.floor(e-a*l/o+c)),Math.min(r,Math.floor(e+(o-a)*l/o+c)),i)}const o=t[e];let a=n,s=r;for(be(t,n,e),i(t[r],o)>0&&be(t,n,r);a<s;){for(be(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[n],o)?be(t,n,s):(++s,be(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function be(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function xe(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),(r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return me(t);if(e>=1)return pe(t);var r,i=(r-1)*e,o=Math.floor(i),a=pe(ye(t,o).subarray(0,o+1));return a+(me(t.subarray(o+1))-a)*(i-o)}}function we(t,e,n=g){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function Se(){var t,e=[],n=[],r=[];function i(){var t=0,i=Math.max(1,n.length);for(r=new Array(i-1);++t<i;)r[t-1]=we(e,t/i);return o}function o(e){return null==e||isNaN(e=+e)?t:n[b(r,e)]}return o.invertExtent=function(t){var i=n.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:e[0],i<r.length?r[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(f),i()},o.range=function(t){return arguments.length?(n=Array.from(t),i()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Se().domain(e).range(n).unknown(t)},At.C.apply(o,arguments)}function Oe(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[b(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Oe().domain([e,n]).range(o).unknown(t)},At.C.apply(Wt(a),arguments)}function ke(){var t,e=[.5],n=[0,1],r=1;function i(i){return null!=i&&i<=i?n[b(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t}
vendor: 6,130 bytes, line 25
25,i.copy=function(){return ke().domain(e).range(n).unknown(t)},At.C.apply(i,arguments)}const Ee=1e3,_e=6e4,Ae=36e5,Pe=864e5,Me=6048e5,Ce=2592e6,Te=31536e6,je=new Date,Ie=new Date;function Le(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),e(n,o),t(n)}while(s<n&&n<r);return a},i.filter=n=>Le((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(je.setTime(+e),Ie.setTime(+r),t(je),t(Ie),Math.floor(n(je,Ie))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const De=Le((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));De.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Le((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):De:null);De.range;const Re=Le((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ee)}),((t,e)=>(e-t)/Ee),(t=>t.getUTCSeconds())),Ne=(Re.range,Le((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ee)}),((t,e)=>{t.setTime(+t+e*_e)}),((t,e)=>(e-t)/_e),(t=>t.getMinutes()))),Fe=(Ne.range,Le((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*_e)}),((t,e)=>(e-t)/_e),(t=>t.getUTCMinutes()))),Be=(Fe.range,Le((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ee-t.getMinutes()*_e)}),((t,e)=>{t.setTime(+t+e*Ae)}),((t,e)=>(e-t)/Ae),(t=>t.getHours()))),ze=(Be.range,Le((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Ae)}),((t,e)=>(e-t)/Ae),(t=>t.getUTCHours()))),He=(ze.range,Le((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_e)/Pe),(t=>t.getDate()-1))),Ve=(He.range,Le((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Pe),(t=>t.getUTCDate()-1))),We=(Ve.range,Le((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Pe),(t=>Math.floor(t/Pe))));We.range;function Ue(t){return Le((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_e)/Me))}const $e=Ue(0),qe=Ue(1),Ye=Ue(2),Ke=Ue(3),Xe=Ue(4),Ge=Ue(5),Qe=Ue(6);$e.range,qe.range,Ye.range,Ke.range,Xe.range,Ge.range,Qe.range;function Je(t){return Le((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Me))}const Ze=Je(0),tn=Je(1),en=Je(2),nn=Je(3),rn=Je(4),on=Je(5),an=Je(6),sn=(Ze.range,tn.range,en.range,nn.range,rn.range,on.range,an.range,Le((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),ln=(sn.range,Le((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),cn=(ln.range,Le((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));cn.every=t=>isFinite(t=Math.floor(t))&&t>0?Le((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null;cn.range;const un=Le((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));un.every=t=>isFinite(t=Math.floor(t))&&t>0?Le((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null;un.range;function hn(t,e,n,r,i,o){const a=[[Re,1,Ee],[Re,5,5e3],[Re,15,15e3],[Re,30,3e4],[o,1,_e],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Ae],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Pe],[r,2,1728e5],[n,1,Me],[e,1,Ce],[e,3,7776e6],[t,1,Te]];function s(e,n,r){const i=Math.abs(n-e)/r,o=p((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(h(e/Te,n/Te,r));if(0===o)return De.every(Math.max(h(e,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:s(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},s]}const[fn,dn]=hn(un,ln,Ze,We,ze,Fe),[pn,mn]=hn(cn,sn,$e,He,Be,Ne);function gn(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vn(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yn(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var bn,xn,wn,Sn={"-":"",_:" ",0:"0"},On=/^\s*\d+/,kn=/^%/,En=/[\\^$*+?|[\]().{}]/g;function _n(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function An(t){return t.replace(En,"\\$&")}function Pn(t){return new RegExp("^(?:"+t.map(An).join("|")+")","i")}function Mn(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Cn(t,e,n){var r=On.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tn(t,e,n){var r=On.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function jn(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function In(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ln(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Dn(t,e,n){var r=On.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Rn(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}
vendor: 5,806 bytes, line 25
25function Nn(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Fn(t,e,n){var r=On.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Bn(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function zn(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Hn(t,e,n){var r=On.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Vn(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Wn(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Un(t,e,n){var r=On.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function $n(t,e,n){var r=On.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function qn(t,e,n){var r=On.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yn(t,e,n){var r=kn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Kn(t,e,n){var r=On.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Xn(t,e,n){var r=On.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Gn(t,e){return _n(t.getDate(),e,2)}function Qn(t,e){return _n(t.getHours(),e,2)}function Jn(t,e){return _n(t.getHours()%12||12,e,2)}function Zn(t,e){return _n(1+He.count(cn(t),t),e,3)}function tr(t,e){return _n(t.getMilliseconds(),e,3)}function er(t,e){return tr(t,e)+"000"}function nr(t,e){return _n(t.getMonth()+1,e,2)}function rr(t,e){return _n(t.getMinutes(),e,2)}function ir(t,e){return _n(t.getSeconds(),e,2)}function or(t){var e=t.getDay();return 0===e?7:e}function ar(t,e){return _n($e.count(cn(t)-1,t),e,2)}function sr(t){var e=t.getDay();return e>=4||0===e?Xe(t):Xe.ceil(t)}function lr(t,e){return t=sr(t),_n(Xe.count(cn(t),t)+(4===cn(t).getDay()),e,2)}function cr(t){return t.getDay()}function ur(t,e){return _n(qe.count(cn(t)-1,t),e,2)}function hr(t,e){return _n(t.getFullYear()%100,e,2)}function fr(t,e){return _n((t=sr(t)).getFullYear()%100,e,2)}function dr(t,e){return _n(t.getFullYear()%1e4,e,4)}function pr(t,e){var n=t.getDay();return _n((t=n>=4||0===n?Xe(t):Xe.ceil(t)).getFullYear()%1e4,e,4)}function mr(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+_n(e/60|0,"0",2)+_n(e%60,"0",2)}function gr(t,e){return _n(t.getUTCDate(),e,2)}function vr(t,e){return _n(t.getUTCHours(),e,2)}function yr(t,e){return _n(t.getUTCHours()%12||12,e,2)}function br(t,e){return _n(1+Ve.count(un(t),t),e,3)}function xr(t,e){return _n(t.getUTCMilliseconds(),e,3)}function wr(t,e){return xr(t,e)+"000"}function Sr(t,e){return _n(t.getUTCMonth()+1,e,2)}function Or(t,e){return _n(t.getUTCMinutes(),e,2)}function kr(t,e){return _n(t.getUTCSeconds(),e,2)}function Er(t){var e=t.getUTCDay();return 0===e?7:e}function _r(t,e){return _n(Ze.count(un(t)-1,t),e,2)}function Ar(t){var e=t.getUTCDay();return e>=4||0===e?rn(t):rn.ceil(t)}function Pr(t,e){return t=Ar(t),_n(rn.count(un(t),t)+(4===un(t).getUTCDay()),e,2)}function Mr(t){return t.getUTCDay()}function Cr(t,e){return _n(tn.count(un(t)-1,t),e,2)}function Tr(t,e){return _n(t.getUTCFullYear()%100,e,2)}function jr(t,e){return _n((t=Ar(t)).getUTCFullYear()%100,e,2)}function Ir(t,e){return _n(t.getUTCFullYear()%1e4,e,4)}function Lr(t,e){var n=t.getUTCDay();return _n((t=n>=4||0===n?rn(t):rn.ceil(t)).getUTCFullYear()%1e4,e,4)}function Dr(){return"+0000"}function Rr(){return"%"}function Nr(t){return+t}function Fr(t){return Math.floor(+t/1e3)}function Br(t){return new Date(t)}function zr(t){return t instanceof Date?+t:+new Date(+t)}function Hr(t,e,n,r,i,o,a,s,l,c){var u=Et(),h=u.invert,f=u.domain,d=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),b=c("%B"),x=c("%Y");function w(t){return(l(t)<t?d:s(t)<t?p:a(t)<t?m:o(t)<t?g:r(t)<t?i(t)<t?v:y:n(t)<t?b:x)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?f(Array.from(t,zr)):f().map(Br)},u.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?w:c(e)},u.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(qt(n,t)):u},u.copy=function(){return Ot(u,Hr(t,e,n,r,i,o,a,s,l,c))},u}function Vr(){return At.C.apply(Hr(pn,mn,cn,sn,$e,He,Be,Ne,Re,xn).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Wr(){return At.C.apply(Hr(fn,dn,un,ln,Ze,Ve,ze,Fe,Re,wn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ur(){var t,e,n,r,i,o=0,a=1,s=bt,l=!1;function c(e){return null==e||isNaN(e=+e)?i:s(0===n?.5:(e=(r(e)-t)*n,l?Math.max(0,Math.min(1,e)):e))}function u(t){return function(e){var n,r;return arguments.length?([n,r]=e,s=t(n,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),c):[o,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(mt),c.rangeRound=u(gt),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),c}}function $r(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function qr(){var t=Wt(Ur()(bt));return t.copy=function(){return $r(t,qr())},At.K.apply(t,arguments)}function Yr(){var t=Zt(Ur()).domain([1,10]);return t.copy=function(){return $r(t,Yr()).base(t.base())},At.K.apply(t,arguments)}function Kr(){var t=re(Ur());return t.copy=function(){return $r(t,Kr()).constant(t.constant())},At.K.apply(t,arguments)}function Xr(){var t=ce(Ur());return t.copy=function(){return $r(t,Xr()).exponent(t.exponent())},At.K.apply(t,arguments)}function Gr(){return Xr.apply(null,arguments).exponent(.5)}function Qr(){var t=[],e=bt;
vendor: 3,761 bytes, line 25
25function n(n){if(null!=n&&!isNaN(n=+n))return e((b(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(f),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>xe(t,r/e)))},n.copy=function(){return Qr(e).domain(t)},At.K.apply(n,arguments)}function Jr(){var t,e,n,r,i,o,a,s=0,l=.5,c=1,u=1,h=bt,f=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(u*t<u*e?r:i),h(f?Math.max(0,Math.min(1,t)):t))}function p(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,h=function(t,e){void 0===e&&(e=t,t=mt);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}(t,[n,r,i]),d):[h(0),h(.5),h(1)]}}return d.domain=function(a){return arguments.length?([s,l,c]=a,t=o(s=+s),e=o(l=+l),n=o(c=+c),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),u=e<t?-1:1,d):[s,l,c]},d.clamp=function(t){return arguments.length?(f=!!t,d):f},d.interpolator=function(t){return arguments.length?(h=t,d):h},d.range=p(mt),d.rangeRound=p(gt),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(s),e=a(l),n=a(c),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),u=e<t?-1:1,d}}function Zr(){var t=Wt(Jr()(bt));return t.copy=function(){return $r(t,Zr())},At.K.apply(t,arguments)}function ti(){var t=Zt(Jr()).domain([.1,1,10]);return t.copy=function(){return $r(t,ti()).base(t.base())},At.K.apply(t,arguments)}function ei(){var t=re(Jr());return t.copy=function(){return $r(t,ei()).constant(t.constant())},At.K.apply(t,arguments)}function ni(){var t=ce(Jr());return t.copy=function(){return $r(t,ni()).exponent(t.exponent())},At.K.apply(t,arguments)}function ri(){return ni.apply(null,arguments).exponent(.5)}function ii(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}!function(t){bn=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=Pn(i),u=Mn(i),h=Pn(o),f=Mn(o),d=Pn(a),p=Mn(a),m=Pn(s),g=Mn(s),v=Pn(l),y=Mn(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Gn,e:Gn,f:er,g:fr,G:pr,H:Qn,I:Jn,j:Zn,L:tr,m:nr,M:rr,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Nr,s:Fr,S:ir,u:or,U:ar,V:lr,w:cr,W:ur,x:null,X:null,y:hr,Y:dr,Z:mr,"%":Rr},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:gr,e:gr,f:wr,g:jr,G:Lr,H:vr,I:yr,j:br,L:xr,m:Sr,M:Or,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Nr,s:Fr,S:kr,u:Er,U:_r,V:Pr,w:Mr,W:Cr,x:null,X:null,y:Tr,Y:Ir,Z:Dr,"%":Rr},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return k(t,e,n,r)},d:zn,e:zn,f:qn,g:Rn,G:Dn,H:Vn,I:Vn,j:Hn,L:$n,m:Bn,M:Wn,p:function(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:Fn,Q:Kn,s:Xn,S:Un,u:Tn,U:jn,V:In,w:Cn,W:Ln,x:function(t,e,r){return k(t,
25n,e,r)},X:function(t,e,n){return k(t,r,e,n)},y:Rn,Y:Dn,Z:Nn,"%":Yn};function S(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=Sn[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function O(t,e){return function(n){var r,i,o=yn(1900,void 0,1);if(k(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=vn(yn(o.y,0,1))).getUTCDay(),r=i>4||0===i?tn.ceil(r):tn(r),r=Ve.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=gn(yn(o.y,0,1))).getDay(),r=i>4||0===i?qe.ceil(r):qe(r),r=He.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?vn(yn(o.y,0,1)).getUTCDay():gn(yn(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vn(o)):gn(o)}}function k(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in Sn?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(e,b),x.x=S(n,x),x.X=S(r,x),x.c=S(e,x),{format:function(t){var e=S(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=S(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}(t),xn=bn.format,bn.parse,wn=bn.utcFormat,bn.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var oi=n(45917),ai=n(48946);function si(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function li(t,e){return t[e]}function ci(t){const e=[];return e.key=t,e}var ui=n(94506),hi=n.n(ui),fi=n(31684),di=n.n(fi),pi=n(69843),mi=n.n(pi),gi=n(1882),vi=n.n(gi),yi=n(85015),bi=n.n(yi),xi=n(58156),wi=n.n(xi),Si=n(47307),Oi=n.n(Si),ki=n(11741),Ei=n.n(ki),_i=n(55808),Ai=n.n(_i),Pi=n(2404),Mi=n.n(Pi),Ci=n(33031),Ti=n.n(Ci),ji=n(38351),Ii=n.n(ji);function Li(t){return function(t){if(Array.isArray(t))return Di(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Di(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Di(t,e)}(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 Di(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ri=function(t){return t},Ni={"@@functional/placeholder":!0},Fi=function(t){return t===Ni},Bi=function(t){return function e(){return 0===arguments.length||1===arguments.length&&Fi(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},zi=function t(e,n){return 1===e?n:Bi((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==Ni})).length;return a>=e?n.apply(void 0,i):t(e-a,Bi((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=i.map((function(t){return Fi(t)?e.shift():t}));return n.apply(void 0,Li(o).concat(e))})))}))},Hi=function(t){return zi(t.length,t)},Vi=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},Wi=Hi((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),Ui=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return Ri;var r=e.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},$i=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qi=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every((function(t,n){return t===e[n]}))?n:(e=i,n=t.apply(void 0,i))}};const Yi={rangeStep:function(t,e,n){for(var r=new(Ii())(t),i=0,o=[];r.lt(e)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new(Ii())(t).abs().log(10).toNumber())+1},interpolateNumber:Hi((function(t,e,n){var r=+t;return r+n*(+e-r)})),uninterpolateNumber:Hi((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),uninterpolateTruncation:Hi((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))}))};function Ki(t){return function(t){if(Array.isArray(t))return Qi(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Gi(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 Xi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||Gi(t,e)||function(){throw new TypeError("Invalid attempt to de
25structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gi(t,e){if(t){if("string"==typeof t)return Qi(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)?Qi(t,e):void 0}}function Qi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ji(t){var e=Xi(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Zi(t,e,n){if(t.lte(0))return new(Ii())(0);var r=Yi.getDigitCount(t.toNumber()),i=new(Ii())(10).pow(r),o=t.div(i),a=1!==r?.05:.1,s=new(Ii())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?s:new(Ii())(Math.ceil(s))}function to(t,e,n){var r=1,i=new(Ii())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(Ii())(10).pow(Yi.getDigitCount(t)-1),i=new(Ii())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(Ii())(Math.floor(t)))}else 0===t?i=new(Ii())(Math.floor((e-1)/2)):n||(i=new(Ii())(Math.floor(t)));var a=Math.floor((e-1)/2);return Ui(Wi((function(t){return i.add(new(Ii())(t-a).mul(r)).toNumber()})),Vi)(0,e)}function eo(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(Ii())(0),tickMin:new(Ii())(0),tickMax:new(Ii())(0)};var o,a=Zi(new(Ii())(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new(Ii())(0):(o=new(Ii())(t).add(e).div(2)).sub(new(Ii())(o).mod(a));var s=Math.ceil(o.sub(t).div(a).toNumber()),l=Math.ceil(new(Ii())(e).sub(o).div(a).toNumber()),c=s+l+1;return c>n?eo(t,e,n,r,i+1):(c<n&&(l=e>0?l+(n-c):l,s=e>0?s:s+(n-c)),{step:a,tickMin:o.sub(new(Ii())(s).mul(a)),tickMax:o.add(new(Ii())(l).mul(a))})}var no=qi((function(t){var e=Xi(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=Xi(Ji([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0){var u=c===1/0?[l].concat(Ki(Vi(0,i-1).map((function(){return 1/0})))):[].concat(Ki(Vi(0,i-1).map((function(){return-1/0}))),[c]);return n>r?$i(u):u}if(l===c)return to(l,i,o);var h=eo(l,c,a,o),f=h.step,d=h.tickMin,p=h.tickMax,m=Yi.rangeStep(d,p.add(new(Ii())(.1).mul(f)),f);return n>r?$i(m):m})),ro=(qi((function(t){var e=Xi(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),s=Xi(Ji([n,r]),2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,r];if(l===c)return to(l,i,o);var u=Zi(new(Ii())(c).sub(l).div(a-1),o,0),h=Ui(Wi((function(t){return new(Ii())(l).add(new(Ii())(t).mul(u)).toNumber()})),Vi)(0,a).filter((function(t){return t>=l&&t<=c}));return n>r?$i(h):h})),qi((function(t,e){var n=Xi(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Xi(Ji([r,i]),2),s=a[0],l=a[1];if(s===-1/0||l===1/0)return[r,i];if(s===l)return[s];var c=Math.max(e,2),u=Zi(new(Ii())(l).sub(s).div(c-1),o,0),h=[].concat(Ki(Yi.rangeStep(new(Ii())(s),new(Ii())(l).sub(new(Ii())(.99).mul(u)),u)),[l]);return r>i?$i(h):h}))),io=n(51738),oo=n(59744),ao=n(94501),so=n(12532);function lo(t){return lo="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},lo(t)}function co(t){return function(t){if(Array.isArray(t))return uo(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)return;if("string"==typeof t)return uo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uo(t,e)}(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 uo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ho(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 fo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?ho(Object(n),!0).forEach((function(e){po(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function po(t,e,n){var r;return r=function(t,e){if("object"!=lo(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==lo(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mo(t,e,n){return mi()(t)||mi()(e)?n:(0,oo.vh)(e)?wi()(t,e,n):vi()(e)?e(t):n}function go(t,e,n,r){var i=Oi()(t,(function(t){return mo(t,e)}));if("number"===n){var o=i.filter((function(t){return(0,oo.Et)(t)||parseFloat(t)}));return o.length?[di()(o),hi()(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!mi()(t)})):i).map((function(t){return(0,oo.vh)(t)||t instanceof Date?t:""}))}var vo=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,l=0;l<a;l++){var c=l>0?r[l-1].coordinate:r[a-1].coordinate,u=r[l].coordinate,h=l>=a-1?r[0].coordinate:r[l+1].coordinate,f=void 0;if((0,oo.sA)(u-c)!==(0,oo.sA)(h-u)){var d=[];if((0,oo.sA)(h-u)===(0,oo.sA)(s[1]-s[0])){f=h;var p=u+s[1]-s[0];d[0]=Math.min(p,(p+c)/2),d[1]=Math.max(p,(p+c)/2)}else{f=c;var m=h+s[1]-s[0];d[0]=Math.min(u,(m+u)/2),d[1]=Math.max(u,(m+u)/2)}var g=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(t>g[0]&&t<=g[1]||t>=d[0]&&t<=d[1]){o=r[l].index;break}}else{var v=Math.min(c,h),y=Math.max(c,h);if(t>(v+u)/2&&t<=(y+u)/2){o=r[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o},yo=function(t){var e,n,r=t.type.displayName,i=null!==(e=t.type)&&void 0!==e&&e.defaultProps?fo(fo({},t.type.defaultProps),t.props):t.props,o=i.stroke,a=i.fill;switch(r){case"Line":n=o;break;case"Area":case"Radar":n=o&&"none"!==o?o:a;break;default:n=a}return n},bo=function(t){var e=t.barSize,n=t.totalSize,r=t.stackGroups,i=void 0===r?{}:r;if(!i)return{};for(var o={},a=Object.keys(i),s=0,l=a.length;s<l;s++)for(var c=i[a[s]].stackGroups,u=Object.keys(c),h=0,f=u.length;h<f;h++){var d=c[u[h]],p=d.items,m=d.cateAxisId,g=p.filter((function(t){return(0,ao.Mn)(t.type).indexOf("Bar")>=0}));if(g&&g.length){var v=g[0].type.defaultProps,y=void 0!==v?fo(fo({},v),g[0].props):g[0].props,b=y.barSize,x=y[m];o[x]||(o[x]=[]);var w=mi()(b)?e:b;o[x].push({item:g[0],stackList:g.slice(1),barSize:mi()(w)?void 0:(0,oo.F4)(w,n,0)})}}return o},xo=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,s=o.length;if(s<1)return null;var l,c=(0,oo.F4)(e,r,0,!0),u=[];if(o[0].barSize===+o[0].barSize){var h=!1,f=r/s,d=o.reduce((function(t,e){return t+e.barSize||0}),0);(d+=(s-1)*c)>=r&&(d-=(s-1)*c,c=0),d>=r&&f>0&&(h=!0,d=s*(f*=.9));var p={offset:((r-d)/2|0)-c,size:0};l=o.reduce((function(t,e){var n={item:e.item,position:{offset:p.offset+p.size+c,size:h?f:e.barSize}},r=[].concat(co(t),[n]);return p=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:p})})),r}),u)}else{var m=(0,oo.F4)(n,r,0,!0);r-2*m-(s-1)*c<=0&&(c=0);var g=(r-2*m-(s-1)*c)/s;g>1&&(g>>=0);var v=a===+a?Math.min(g,a):g;l=o.reduce((function(t,e,n){var r=[].concat(co(t),[{item:e.item,position:{offset:m+(g+c)*n+(g-v)/2,size:v}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),u)}return l},wo=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,s=o-(a.left||0)-(a.right||0),l=(0,so.g)({children:i,legendWidth:s});if(l){var c=r||{},u=c.width,h=c.height,f=l.align,d=l.verticalAlign,p=l.layout;if(("vertical"===p||"horizontal"===p&&"middle"===d)&&"center"!==f&&(0,oo.Et)(t[f]))return fo(fo({},t),{},po({},f,t[f]+(u||0)));if(("horizontal"===p||"vertical"===p&&"center"===f)&&"middle"!==d&&(0,oo.Et)(t[d]))return fo(fo({},t),{},po({},d,t[d]+(h||0)))}return t},So=function(t,e,n,r,i){var o=e.props.children,a=(0,ao.aS)(o,io.u).filter((function(t){return function(t,e,n){return!!mi()(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===n?"xAxis"===e:"y"!==n||"yAxis"===e)}(r,i,t.props.direction)}));if(a&&a.length){var s=a.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=mo(e,n);if(mi()(r))return t;var i=Array.isArray(r)?[di()(r),hi()(r)]:[r,r],o=s.reduce((function(t,n){var r=mo(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},Oo=function(t,e,n,r,i){var o=e.map((function(e){return So(t,e,n,i,r)})).filter((function(t){return!mi()(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},ko=function(t,e,n,r,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&So(t,e,o,r)||go(t,o,n,i)}));if("number"===n)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)a[e[n]]||(a[e[n]]=!0,t.push(e[n]));return t}),[])},Eo=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},_o=function(t,e,n,r){if(r)return t.map((function(t){return t.coordinate}));var i,o,a=t.map((function(t){return t.coordinate===e&&(i=!0),t.coordinate===n&&(o=!0),t.coordinate}));return i||a.push(e),o||a.push(n),a},Ao=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,s="scaleBand"===t.realScaleType?r.bandwidth()/2:2,l=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/s:0;return l="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*(0,oo.sA)(a[0]-a[1])*l:l,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+l,value:t,offset:l}})).filter((function(t){return!Ei()(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+l,value:t,index:e,offset:l}}
25)):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+l,value:t,offset:l}})):r.domain().map((function(t,e){return{coordinate:r(t)+l,value:i?i[t]:t,index:e,offset:l}}))},Po=new WeakMap,Mo=function(t,e){if("function"!=typeof e)return t;Po.has(t)||Po.set(t,new WeakMap);var n=Po.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},Co=function(t,e,n){var o=t.scale,a=t.type,s=t.layout,l=t.axisType;if("auto"===o)return"radial"===s&&"radiusAxis"===l?{scale:i.A(),realScaleType:"band"}:"radial"===s&&"angleAxis"===l?{scale:Ut(),realScaleType:"linear"}:"category"===a&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:i.z(),realScaleType:"point"}:"category"===a?{scale:i.A(),realScaleType:"band"}:{scale:Ut(),realScaleType:"linear"};if(bi()(o)){var c="scale".concat(Ai()(o));return{scale:(r[c]||i.z)(),realScaleType:r[c]?c:"point"}}return vi()(o)?{scale:o}:{scale:i.z(),realScaleType:"point"}},To=1e-4,jo=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-To,o=Math.max(r[0],r[1])+To,a=t(e[0]),s=t(e[n-1]);(a<i||a>o||s<i||s>o)&&t.domain([e[0],e[n-1]])}},Io=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null},Lo=function(t,e){if(!e||2!==e.length||!(0,oo.Et)(e[0])||!(0,oo.Et)(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!(0,oo.Et)(t[0])||t[0]<n)&&(i[0]=n),(!(0,oo.Et)(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Do={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,a=0;a<e;++a){var s=Ei()(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=i,t[a][n][1]=i+s,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}ii(t,e)}},none:ii,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}ii(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[e[s]],h=u[a][1]||0,f=(h-(u[a-1][1]||0))/2,d=0;d<s;++d){var p=t[e[d]];f+=(p[a][1]||0)-(p[a-1][1]||0)}l+=h,c+=f*h}n[a-1][1]+=n[a-1][0]=o,l&&(o-=c/l)}n[a-1][1]+=n[a-1][0]=o,ii(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0;o<e;++o){var a=Ei()(t[o][n][1])?t[o][n][0]:t[o][n][1];a>=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},Ro=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=Do[n],o=function(){var t=(0,ai.A)([]),e=si,n=ii,r=li;function i(i){var o,a,s=Array.from(t.apply(this,arguments),ci),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=(0,oi.A)(e(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:(0,ai.A)(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:(0,ai.A)(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?si:"function"==typeof t?t:(0,ai.A)(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?ii:t,i):n},i}().keys(r).value((function(t,e){return+mo(t,e,0)})).order(si).offset(i);return o(t)},No=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i,o=null!==(i=e.type)&&void 0!==i&&i.defaultProps?fo(fo({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var s=o[n],l=t[s]||{hasStack:!1,stackGroups:{}};if((0,oo.vh)(a)){var c=l.stackGroups[a]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(e),l.hasStack=!0,l.stackGroups[a]=c}else l.stackGroups[(0,oo.NF)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return fo(fo({},t),{},po({},s,l))}),{});return Object.keys(a).reduce((function(e,o){var s=a[o];if(s.hasStack){s.stackGroups=Object.keys(s.stackGroups).reduce((function(e,o){var a=s.stackGroups[o];return fo(fo({},e),{},po({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Ro(t,a.items,i)}))}),{})}return fo(fo({},e),{},po({},o,s))}),{})},Fo=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,s=n||e.scale;if("auto"!==s&&"linear"!==s)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var l=t.domain();if(!l.length)return null;var c=no(l,i,a);return t.domain([di()(c),hi()(c)]),{niceTicks:c}}if(i&&"number"===r){var u=t.domain();return{niceTicks:ro(u,i,a)}}return null};
25function Bo(t){var e=t.axis,n=t.ticks,r=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!mi()(i[e.dataKey])){var s=(0,oo.eP)(n,"value",i[e.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var l=mo(i,mi()(a)?e.dataKey:a);return mi()(l)?null:e.scale(l)}var zo=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var s=mo(o,e.dataKey,e.domain[a]);return mi()(s)?null:e.scale(s)-i/2+r},Ho=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Vo=function(t,e){var n,r=(null!==(n=t.type)&&void 0!==n&&n.defaultProps?fo(fo({},t.type.defaultProps),t.props):t.props).stackId;if((0,oo.vh)(r)){var i=e[r];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},Wo=function(t,e,n){return Object.keys(t).reduce((function(r,i){var o=t[i].stackedData.reduce((function(t,r){var i=r.slice(e,n+1).reduce((function(t,e){return[di()(e.concat([t[0]]).filter(oo.Et)),hi()(e.concat([t[1]]).filter(oo.Et))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},Uo=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$o=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qo=function(t,e,n){if(vi()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if((0,oo.Et)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(Uo.test(t[0])){var i=+Uo.exec(t[0])[1];r[0]=e[0]-i}else vi()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,oo.Et)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if($o.test(t[1])){var o=+$o.exec(t[1])[1];r[1]=e[1]+o}else vi()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Yo=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=Ti()(e,(function(t){return t.coordinate})),o=1/0,a=1,s=i.length;a<s;a++){var l=i[a],c=i[a-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Ko=function(t,e,n){return t&&t.length?Mi()(t,wi()(n,"type.defaultProps.domain"))?e:t:e},Xo=function(t,e){var n=t.type.defaultProps?fo(fo({},t.type.defaultProps),t.props):t.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,s=n.tooltipType,l=n.chartType,c=n.hide;return fo(fo({},(0,ao.J9)(t,!1)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:yo(t),value:mo(e,r),type:s,payload:e,chartType:l,hide:c})}},63040:(t,e,n)=>{var r=n(21549),i=n(80079),o=n(68223);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},63345:t=>{t.exports=function(){return[]}},63605:t=>{t.exports=function(t){return this.__data__.get(t)}},63702:t=>{t.exports=function(){this.__data__=[],this.size=0}},63862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},63912:(t,e,n)=>{var r=n(61074),i=n(49698),o=n(42054);t.exports=function(t){return i(t)?o(t):r(t)}},63950:t=>{t.exports=function(){}},64117:t=>{"use strict";t.exports=function(t){return null==t}},64346:(t,e,n)=>{"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},64487:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(52891);const i=class extends r.xI{async show(t){const e=t.currentTarget;let n=null;if(n=this.hasContentTarget?this.contentTarget.innerHTML:await this.fetch(),!n)return;const r=document.createRange().createContextualFragment(n);e.appendChild(r)}hide(){this.hasCardTarget&&this.cardTarget.remove()}async fetch(){if(!this.remoteContent){if(!this.hasUrlValue)return void console.error("[stimulus-popover] You need to pass an url to fetch the popover content.");const t=await fetch(this.urlValue);this.remoteContent=await t.text()}return this.remoteContent}};i.targets=["card","content"],i.values={url:String};let o=i},64894:(t,e,n)=>{var r=n(1882),i=n(30294);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},65213:(t,e,n)=>{"use strict";var r=n(44576),i=n(79039),o=r.RegExp,a=!i((function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==r||n!==r}));t.exports={correct:a}},65746:(t,e,n)=>{"use strict";var r,i=n(92744),o=n(44576),a=n(79504),s=n(56279),l=n(3451),c=n(16468),u=n(91625),h=n(20034),f=n(91181).enforce,d=n(79039),p=n(58622),m=Object,g=Array.isArray,v=m.isExtensible,y=m.isFrozen,b=m.isSealed,x=m.freeze,w=m.seal,S=!o.ActiveXObject&&"ActiveXObject"in o,O=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},k=c("WeakMap",O,u),E=k.prototype,_=a(E.set);if(p)if(S){r=u.getConstructor(O,"WeakMap",!0),l.enable();var A=a(E.delete),P=a(E.has),M=a(E.get);s(E,{delete:function(t){if(h(t)&&!v(t)){var e=f(this);return e.frozen||(e.frozen=new r),A(this,t)||e.frozen.delete(t)}return A(this,t)},has:function(t){if(h(t)&&!v(t)){var e=f(this);return e.frozen||(e.frozen=new r),P(this,t)||e.frozen.has(t)}return P(this,t)},get:function(t){if(h(t)&&!v(t)){var e=f(this);return e.frozen||(e.frozen=new r),P(this,t)?M(this,t):e.frozen.get(t)}return M(this,t)}
25,set:function(t,e){if(h(t)&&!v(t)){var n=f(this);n.frozen||(n.frozen=new r),P(this,t)?_(this,t,e):n.frozen.set(t,e)}else _(this,t,e);return this}})}else i&&d((function(){var t=x([]);return _(new k,t,1),!y(t)}))&&s(E,{set:function(t,e){var n;return g(t)&&(y(t)?n=x:b(t)&&(n=w)),_(this,t,e),n&&n(t),this}})},66119:(t,e,n)=>{"use strict";var r=n(25745),i=n(33392),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},66304:(t,e,n)=>{"use strict";n.d(e,{P:()=>o});var r=n(43329),i=n(29407);function o(t,e,n){const o=(0,i.a)(t,n?.in);if(isNaN(e))return(0,r.w)(n?.in||t,NaN);if(!e)return o;const a=o.getDate(),s=(0,r.w)(n?.in||t,o.getTime());s.setMonth(o.getMonth()+e+1,0);return a>=s.getDate()?s:(o.setFullYear(s.getFullYear(),s.getMonth(),a),o)}},66613:(t,e,n)=>{"use strict";n.d(e,{c:()=>l});var r=n(96540),i=n(34164),o=n(98940),a=n(94501);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}var l=function(t){var e=t.cx,n=t.cy,l=t.r,c=t.className,u=(0,i.A)("recharts-dot",c);return e===+e&&n===+n&&l===+l?r.createElement("circle",s({},(0,a.J9)(t,!1),(0,o._U)(t),{className:u,cx:e,cy:n,r:l})):null}},66699:(t,e,n)=>{"use strict";var r=n(43724),i=n(24913),o=n(6980);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},66721:(t,e,n)=>{var r=n(81042),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},66933:(t,e,n)=>{"use strict";var r=n(79504),i=n(34376),o=n(94901),a=n(22195),s=n(655),l=r([].push);t.exports=function(t){if(o(t))return t;if(i(t)){for(var e=t.length,n=[],r=0;r<e;r++){var c=t[r];"string"==typeof c?l(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||l(n,s(c))}var u=n.length,h=!0;return function(t,e){if(h)return h=!1,e;if(i(this))return e;for(var r=0;r<u;r++)if(n[r]===t)return e}}}},67197:t=>{t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},67400:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},67416:(t,e,n)=>{"use strict";var r=n(79039),i=n(78227),o=n(43724),a=n(96395),s=i("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),n.delete("a",2),n.delete("b",void 0),a&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(a||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://ÑеÑÑ").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==r||"x"!==new URL("https://x",void 0).host}))},67670:(t,e,n)=>{"use strict";n.d(e,{k:()=>o});var r=n(5305);var i=n(43329);function o(t,e){const{start:n,end:o}=function(t,e){const[n,i]=(0,r.x)(t,e.start,e.end);return{start:n,end:i}}(e?.in,t);let a=+n>+o;const s=a?+n:+o,l=a?o:n;l.setHours(0,0,0,0);let c=e?.step??1;if(!c)return[];c<0&&(c=-c,a=!a);const u=[];for(;+l<=s;)u.push((0,i.w)(n,l)),l.setDate(l.getDate()+c),l.setHours(0,0,0,0);return a?u.reverse():u}},67680:(t,e,n)=>{"use strict";var r=n(79504);t.exports=r([].slice)},67750:(t,e,n)=>{"use strict";var r=n(64117),i=TypeError;t.exports=function(t){if(r(t))throw new i("Can't call method on "+t);return t}},67945:(t,e,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(96801).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},67947:(t,e,n)=>{"use strict";n.d(e,{Q:()=>hn});var r=n(96540),i=n(69843),o=n.n(i),a=n(1882),s=n.n(a),l=n(23181),c=n.n(l),u=n(58156),h=n.n(u),f=n(33031),d=n.n(f),p=n(7350),m=n.n(p),g=n(34164),v=n(11561),y=n(49303),b=n(86069),x=n(78687),w=n(97018),S=n(66613),O=n(34723),k=n(94501),E=n(39072),_=n(81174),A=n(63036),P=n(59744);function M(t){return M="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},M(t)}function C(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 T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?C(Object(n),!0).forEach((function(e){j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e,n){var r;return r=function(t,e){if("object"!=M(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==M(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var I=["Webkit","Moz","O","ms"];function L(t){return L="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},L(t)}function D(){return D=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},D.apply(this,arguments)}function R(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 N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach((function(e){W(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,U(r.key),r)}}function B(t,e,n){return e=H(e),function(t,e){if(e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,z()?Reflect.construct(e,n||[],H(t).constructor):e.apply(t,n))}function z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(z=function(){return!!t})()}function H(t){return H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H(t)}function V(t,e){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},V(t,e)}function W(t,e,n){return(e=U(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(t){var e=function(t,e){if("object"!=L(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==L(e)?e:e+""}var $=function(t){return t.changedTouches&&!!t.changedTouches.length},q=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),W(n=B(this,e,[t]),"handleDrag",(function(t){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(t):n.state.isSlideMoving&&n.handleSlideDrag(t)})),W(n,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&n.handleDrag(t.changedTouches[0])})),W(n,"handleDragEnd",(function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=n.props,e=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:e,startIndex:i})})),n.detachDragEndListener()})),W(n,"handleLeaveWrapper",(function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))})),W(n,"handleEnterSlideOrTraveller",(function(){n.setState({isTextActive:!0})}
25)),W(n,"handleLeaveSlideOrTraveller",(function(){n.setState({isTextActive:!1})})),W(n,"handleSlideDragStart",(function(t){var e=$(t)?t.changedTouches[0]:t;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),n.attachDragEndListener()})),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(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&&V(t,e)}(e,t),n=e,o=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,i=t.width,o=t.height,a=t.stroke,s=Math.floor(n+o/2)-1;return r.createElement(r.Fragment,null,r.createElement("rect",{x:e,y:n,width:i,height:o,fill:a,stroke:"none"}),r.createElement("line",{x1:e+1,y1:s,x2:e+i-1,y2:s,fill:"none",stroke:"#fff"}),r.createElement("line",{x1:e+1,y1:s+2,x2:e+i-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return r.isValidElement(t)?r.cloneElement(t,n):s()(t)?t(n):e.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,s=t.startIndex,l=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return N({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var s=e.length,l=(0,E.z)().domain(c()(0,s)).range([i,i+o-a]),u=l.domain().map((function(t){return l(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:u}}({data:n,width:r,x:i,travellerWidth:o,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var u=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:u}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],(i=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var n=t.startX,r=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,s=o.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=e.getIndexInRange(i,l),h=e.getIndexInRange(i,c);return{startIndex:u-u%a,endIndex:h===s?s:h-h%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=(0,A.kr)(n[t],i,t);return s()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,s=o.width,l=o.travellerWidth,c=o.startIndex,u=o.endIndex,h=o.onChange,f=t.pageX-n;f>0?f=Math.min(f,a+s-l-i,a+s-l-r):f<0&&(f=Math.max(f,a-r,a-i));var d=this.getIndex({startX:r+f,endX:i+f});d.startIndex===c&&d.endIndex===u||!h||h(d),this.setState({startX:r+f,endX:i+f,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=$(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,n=e.brushMoveStartX,r=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,h=s.onChange,f
25=s.gap,d=s.data,p={startX:this.state.startX,endX:this.state.endX},m=t.pageX-n;m>0?m=Math.min(m,l+c-u-a):m<0&&(m=Math.max(m,l-a)),p[r]=a+m;var g=this.getIndex(p),v=g.startIndex,y=g.endIndex;this.setState(W(W({},r,a+m),"brushMoveStartX",t.pageX),(function(){var t;h&&(t=d.length-1,("startX"===r&&(i>o?v%f==0:y%f==0)||i<o&&y===t||"endX"===r&&(i>o?y%f==0:v%f==0)||i>o&&y===t)&&h(g))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,s=this.state[e],l=i.indexOf(s);if(-1!==l){var c=l+t;if(!(-1===c||c>=i.length)){var u=i[c];"startX"===e&&u>=a||"endX"===e&&u<=o||this.setState(W({},e,u),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.fill,s=t.stroke;return r.createElement("rect",{stroke:s,fill:a,x:e,y:n,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.data,s=t.children,l=t.padding,c=r.Children.only(s);return c?r.cloneElement(c,{x:e,y:n,width:i,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,n){var i,o,a=this,s=this.props,l=s.y,c=s.travellerWidth,u=s.height,h=s.traveller,f=s.ariaLabel,d=s.data,p=s.startIndex,m=s.endIndex,g=Math.max(t,this.props.x),v=N(N({},(0,k.J9)(this.props,!1)),{},{x:g,y:l,width:c,height:u}),y=f||"Min value: ".concat(null===(i=d[p])||void 0===i?void 0:i.name,", Max value: ").concat(null===(o=d[m])||void 0===o?void 0:o.name);return r.createElement(b.W,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(h,v))}},{key:"renderSlide",value:function(t,e){var n=this.props,i=n.y,o=n.height,a=n.stroke,s=n.travellerWidth,l=Math.min(t,e)+s,c=Math.max(Math.abs(e-t)-s,0);return r.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:i,width:c,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,s=t.stroke,l=this.state,c=l.startX,u=l.endX,h={pointerEvents:"none",fill:s};return r.createElement(b.W,{className:"recharts-brush-texts"},r.createElement(_.E,D({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:i+o/2},h),this.getTextOfTick(e)),r.createElement(_.E,D({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+a+5,y:i+o/2},h),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,i=t.children,o=t.x,a=t.y,s=t.width,l=t.height,c=t.alwaysShowText,u=this.state,h=u.startX,f=u.endX,d=u.isTextActive,p=u.isSlideMoving,m=u.isTravellerMoving,v=u.isTravellerFocused;if(!e||!e.length||!(0,P.Et)(o)||!(0,P.Et)(a)||!(0,P.Et)(s)||!(0,P.Et)(l)||s<=0||l<=0)return null;var y=(0,g.A)("recharts-brush",n),x=1===r.Children.count(i),w=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=I.reduce((function(t,r){return T(T({},t),{},j({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return r.createElement(b.W,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(h,f),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(f,"endX"),(d||p||m||v||c)&&this.renderText())}}
25])&&F(n.prototype,i),o&&F(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.PureComponent);W(q,"displayName","Brush"),W(q,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y=n(81636),K=n(12532),X=n(91706),G=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},Q=n(19730),J=n(6634);function Z(){return Z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Z.apply(this,arguments)}function tt(t){return tt="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},tt(t)}function et(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 nt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?et(Object(n),!0).forEach((function(e){lt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ct(r.key),r)}}function it(t,e,n){return e=at(e),function(t,e){if(e&&("object"===tt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,ot()?Reflect.construct(e,n||[],at(t).constructor):e.apply(t,n))}function ot(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(ot=function(){return!!t})()}function at(t){return at=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},at(t)}function st(t,e){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},st(t,e)}function lt(t,e,n){return(e=ct(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ct(t){var e=function(t,e){if("object"!=tt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tt(e)?e:e+""}var ut=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),it(this,e,arguments)}return function(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&&st(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){var t=this.props,n=t.x,i=t.y,o=t.r,a=t.alwaysShow,s=t.clipPathId,l=(0,P.vh)(n),c=(0,P.vh)(i);if((0,J.R)(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var u=function(t){var e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=(0,Q.P2)({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return G(t,"discard")&&!o.isInRange(a)?null:a}(this.props);if(!u)return null;var h=u.x,f=u.y,d=this.props,p=d.shape,m=d.className,v=nt(nt({clipPath:G(this.props,"hidden")?"url(#".concat(s,")"):void 0},(0,k.J9)(this.props,!0)),{},{cx:h,cy:f});return r.createElement(b.W,{className:(0,g.A)("recharts-reference-dot",m)},e.renderDot(p,v),X.J.renderCallByParent(this.props,{x:h-o,y:f-o,width:2*o,height:2*o}))}}
25])&&rt(n.prototype,i),o&&rt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);lt(ut,"displayName","ReferenceDot"),lt(ut,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),lt(ut,"renderDot",(function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):s()(t)?t(e):r.createElement(S.c,Z({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))}));var ht=n(42426),ft=n.n(ht),dt=n(47429);function pt(t){return pt="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},pt(t)}function mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ot(r.key),r)}}function gt(t,e,n){return e=yt(e),function(t,e){if(e&&("object"===pt(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,vt()?Reflect.construct(e,n||[],yt(t).constructor):e.apply(t,n))}function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vt=function(){return!!t})()}function yt(t){return yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yt(t)}function bt(t,e){return bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bt(t,e)}function xt(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 wt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){St(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function St(t,e,n){return(e=Ot(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ot(t){var e=function(t,e){if("object"!=pt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pt(e)?e:e+""}function kt(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(t,e)}(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.")}()}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _t(){return _t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_t.apply(this,arguments)}function At(t){var e=t.x,n=t.y,i=t.segment,o=t.xAxisId,a=t.yAxisId,l=t.shape,c=t.className,u=t.alwaysShow,h=(0,dt.Yp)(),f=(0,dt.AF)(o),d=(0,dt.Nk)(a),p=(0,dt.sk)();if(!h||!p)return null;(0,J.R)(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=function(t,e,n,r,i,o,a,s,l){var c=i.x,u=i.y,h=i.width,f=i.height;
25if(n){var d=l.y,p=t.y.apply(d,{position:o});if(G(l,"discard")&&!t.y.isInRange(p))return null;var m=[{x:c+h,y:p},{x:c,y:p}];return"left"===s?m.reverse():m}if(e){var g=l.x,v=t.x.apply(g,{position:o});if(G(l,"discard")&&!t.x.isInRange(v))return null;var y=[{x:v,y:u+f},{x:v,y:u}];return"top"===a?y.reverse():y}if(r){var b=l.segment.map((function(e){return t.apply(e,{position:o})}));return G(l,"discard")&&ft()(b,(function(e){return!t.isInRange(e)}))?null:b}return null}((0,Q.P2)({x:f.scale,y:d.scale}),(0,P.vh)(e),(0,P.vh)(n),i&&2===i.length,p,t.position,f.orientation,d.orientation,t);if(!m)return null;var v=kt(m,2),y=v[0],x=y.x,w=y.y,S=v[1],O=S.x,E=S.y,_=wt(wt({clipPath:G(t,"hidden")?"url(#".concat(h,")"):void 0},(0,k.J9)(t,!0)),{},{x1:x,y1:w,x2:O,y2:E});return r.createElement(b.W,{className:(0,g.A)("recharts-reference-line",c)},function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):s()(t)?t(e):r.createElement("line",_t({},e,{className:"recharts-reference-line-line"}))}(l,_),X.J.renderCallByParent(t,(0,Q.vh)({x1:x,y1:w,x2:O,y2:E})))}var Pt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),gt(this,e,arguments)}return function(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&&bt(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){return r.createElement(At,this.props)}}])&&mt(n.prototype,i),o&&mt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);function Mt(){return Mt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Mt.apply(this,arguments)}function Ct(t){return Ct="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},Ct(t)}function Tt(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 jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(n),!0).forEach((function(e){Ft(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function It(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Bt(r.key),r)}}function Lt(t,e,n){return e=Rt(e),function(t,e){if(e&&("object"===Ct(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Dt()?Reflect.construct(e,n||[],Rt(t).constructor):e.apply(t,n))}function Dt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Dt=function(){return!!t})()}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rt(t)}function Nt(t,e){return Nt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nt(t,e)}function Ft(t,e,n){return(e=Bt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bt(t){var e=function(t,e){if("object"!=Ct(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Ct(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
25(t,"string");return"symbol"==Ct(e)?e:e+""}St(Pt,"displayName","ReferenceLine"),St(Pt,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var zt=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Lt(this,e,arguments)}return function(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&&Nt(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){var t=this.props,n=t.x1,i=t.x2,o=t.y1,a=t.y2,s=t.className,l=t.alwaysShow,c=t.clipPathId;(0,J.R)(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=(0,P.vh)(n),h=(0,P.vh)(i),f=(0,P.vh)(o),d=(0,P.vh)(a),p=this.props.shape;if(!(u||h||f||d||p))return null;var m=function(t,e,n,r,i){var o=i.x1,a=i.x2,s=i.y1,l=i.y2,c=i.xAxis,u=i.yAxis;if(!c||!u)return null;var h=(0,Q.P2)({x:c.scale,y:u.scale}),f={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(s,{position:"start"}):h.y.rangeMin},d={x:e?h.x.apply(a,{position:"end"}):h.x.rangeMax,y:r?h.y.apply(l,{position:"end"}):h.y.rangeMax};return!G(i,"discard")||h.isInRange(f)&&h.isInRange(d)?(0,Q.sl)(f,d):null}(u,h,f,d,this.props);if(!m&&!p)return null;var v=G(this.props,"hidden")?"url(#".concat(c,")"):void 0;return r.createElement(b.W,{className:(0,g.A)("recharts-reference-area",s)},e.renderRect(p,jt(jt({clipPath:v},(0,k.J9)(this.props,!0)),m)),X.J.renderCallByParent(this.props,m))}}])&&It(n.prototype,i),o&&It(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);function Ht(t){return function(t){if(Array.isArray(t))return Vt(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)return;if("string"==typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(t,e)}(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 Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Ft(zt,"displayName","ReferenceArea"),Ft(zt,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Ft(zt,"renderRect",(function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):s()(t)?t(e):r.createElement(O.M,Mt({},e,{className:"recharts-reference-area-rect"}))}));var Wt=function(t,e,n,r,i){var o=(0,k.aS)(t,Pt),a=(0,k.aS)(t,ut),s=[].concat(Ht(o),Ht(a)),l=(0,k.aS)(t,zt),c="".concat(r,"Id"),u=r[0],h=e;if(s.length&&(h=s.reduce((function(t,e){if(e.props[c]===n&&G(e.props,"extendDomain")&&(0,P.Et)(e.props[u])){var r=e.props[u];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),h)),l.length){var f="".concat(u,"1"),d="".concat(u,"2");h=l.reduce((function(t,e){if(e.props[c]===n&&G(e.props,"extendDomain")&&(0,P.Et)(e.props[f])&&(0,P.Et)(e.props[d])){var r=e.props[f],i=e.props[d];return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t}),h)}return i&&i.length&&(h=i.reduce((function(t,e){return(0,P.Et)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),h)),h},Ut=n(14040),$t=n(23521),qt=n(30228),Yt=new(n.n(qt)()),Kt="recharts.syncMouseEvents",Xt=n(98940);function Gt(t){return Gt="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},Gt(t)}function Qt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Zt(r.key),r)}}function Jt(t,e,n){return(e=Zt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zt(t){var e=function(t,e){if("object"!=Gt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
25(t,"string");return"symbol"==Gt(e)?e:e+""}var te=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Jt(this,"activeIndex",0),Jt(this,"coordinateList",[]),Jt(this,"layout","horizontal")},(e=[{key:"setDetails",value:function(t){var e,n=t.coordinateList,r=void 0===n?null:n,i=t.container,o=void 0===i?null:i,a=t.layout,s=void 0===a?null:a,l=t.offset,c=void 0===l?null:l,u=t.mouseHandlerCallback,h=void 0===u?null:u;this.coordinateList=null!==(e=null!=r?r:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=h?h:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,i=n.y,o=n.height,a=this.coordinateList[this.activeIndex].coordinate,s=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,l=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,c=r+a+s,u=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}])&&Qt(t.prototype,e),n&&Qt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();var ee=n(15079),ne=n(29705);function re(t){return re="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},re(t)}var ie=["x","y","top","left","width","height","className"];function oe(){return oe=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},oe.apply(this,arguments)}function ae(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 se(t,e,n){var r;return r=function(t,e){if("object"!=re(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==re(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function le(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var ce=function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)},ue=function(t){var e=t.x,n=void 0===e?0:e,i=t.y,o=void 0===i?0:i,a=t.top,s=void 0===a?0:a,l=t.left,c=void 0===l?0:l,u=t.width,h=void 0===u?0:u,f=t.height,d=void 0===f?0:f,p=t.className,m=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach((function(e){se(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({x:n,y:o,top:s,left:c,width:h,height:d},le(t,ie));return(0,P.Et)(n)&&(0,P.Et)(o)&&(0,P.Et)(h)&&(0,P.Et)(d)&&(0,P.Et)(s)&&(0,P.Et)(c)?r.createElement("path",oe({},(0,k.J9)(m,!0),{className:(0,g.A)("recharts-cross",p),d:ce(n,o,h,d,s,c)})):null};function he(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[(0,Ut.IZ)(e,n,r,i),(0,Ut.IZ)(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}var fe=n(58522);function de(t,e,n){var r,i,o,a;if("horizontal"===t)o=r=e.x,i=n.top,a=n.top+n.height;else if("vertical"===t)a=i=e.y,r=n.left,o=n.left+n.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return he(e);var s=e.cx,l=e.cy,c=e.innerRadius,u=e.outerRadius,h=e.angle,f=(0,Ut.IZ)(s,l,c,h),d=(0,Ut.IZ)(s,l,u,h);r=f.x,i=f.y,o=d.x,a=d.y}return[{x:r,y:i},{x:o,y:a}]}function pe(t){return pe="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},pe(t)}function me(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 ge(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?me(Object(n),!0).forEach((function(e){ve(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ve(t,e,n){var r;return r=function(t,e){if("object"!=pe(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==pe(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ye(t){var e,n,i,o=t.element,a=t.tooltipEventType,s=t.isActive,l=t.activeCoordinate,c=t.activePayload,u=t.offset,h=t.activeTooltipIndex,f=t.tooltipAxisBandSize,d=t.layout,p=t.chartName,m=null!==(e=o.props.cursor)&&void 0!==e?e:null===(n=o.type.defaultProps)||void 0===n?void 0:n.cursor;if(!o||!m||!s||!l||"ScatterChart"!==p&&"axis"!==a)return null;var v=ne.I;if("ScatterChart"===p)i=l,v=ue;else if("BarChart"===p)i=function(t,e,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:n.left+.5,y:"horizontal"===t?n.top+.5:e.y-i,width:"horizontal"===t?r:n.width-1,height:"horizontal"===t?n.height-1:r}}(d,l,u,f),v=O.M;else if("radial"===d){var y=he(l),b=y.cx,x=y.cy,w=y.radius;i={cx:b,cy:x,startAngle:y.startAngle,endAngle:y.endAngle,innerRadius:w,outerRadius:w},v=fe.h}else i={points:de(d,l,u)},v=ne.I;var S=ge(ge(ge(ge({stroke:"#ccc",pointerEvents:"none"},u),i),(0,k.J9)(m,!1)),{},{payload:c,payloadIndex:h,className:(0,g.A)("recharts-tooltip-cursor",m.className)});return(0,r.isValidElement)(m)?(0,r.cloneElement)(m,S):(0,r.createElement)(v,S)}var be=["item"],xe=["children","className","width","height","style","compact","title","desc"];function we(t){return we="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},we(t)}function Se(){return Se=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Se.apply(this,arguments)}function Oe(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Te(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.")}()}function ke(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ee(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Re(r.key),r)}}function _e(t,e,n){return e=Pe(e),function(t,e){if(e&&("object"===we(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Ae()?Reflect.construct(e,n||[],Pe(t).constructor):e.apply(t,n))}function Ae(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ae=function(){return!!t})()}function Pe(t){return Pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pe(t)}function Me(t,e){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Me(t,e)}function Ce(t){return function(t){if(Array.isArray(t))return je(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Te(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 Te(t,e){if(t){if("string"==typeof t)return je(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)?je(t,e):void 0}}function je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ie(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 Le(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?Ie(Object(n),!0).forEach((function(e){De(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function De(t,e,n){return(e=Re(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Re(t){var e=function(t,e){if("object"!=we(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==we(e)?e:e+""}var Ne={xAxis:["bottom","top"],yAxis:["left","right"]},Fe={width:"100%",height:"100%"},Be={x:0,y:0};function ze(t){return t}var He=function(t,e){var n=e.graphicalItems,r=e.dataStartIndex,i=e.dataEndIndex,o=(null!=n?n:[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(Ce(t),Ce(n)):t}),[]);return o.length>0?o:t&&t.length&&(0,P.Et)(r)&&(0,P.Et)(i)?t.slice(r,i+1):[]};function Ve(t){return"number"===t?[0,"auto"]:void 0}var We=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=He(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(i,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:e;if(u&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(u=u.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory){var h=void 0===u?a:u;c=(0,P.eP)(h,o.dataKey,r)}else c=u&&u[n]||a[n];return c?[].concat(Ce(i),[(0,A.zb)(s,c)]):i}),[])},Ue=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,n),a=t.orderedTooltipTicks,s=t.tooltipAxis,l=t.tooltipTicks,c=(0,A.gH)(o,a,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,h=We(t,e,c,u),f=function(t,e,n,r){var i=e.find((function(t){return t&&t.index===n}));if(i){if("horizontal"===t)return{x:i.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=r.radius;return Le(Le(Le({},r),(0,Ut.IZ)(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var s=i.coordinate,l=r.angle;return Le(Le(Le({},r),(0,Ut.IZ)(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return Be}(n,a,c,i);return{activeTooltipIndex:c,activeLabel:u,activePayload:h,activeCoordinate:f}}return null},$e=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,a=e.axisIdKey,s=e.stackGroups,l=e.dataStartIndex,u=e.dataEndIndex,h=t.layout,f=t.children,d=t.stackOffset,p=(0,A._L)(h,i);return n.reduce((function(e,n){var m,g=void 0!==n.type.defaultProps?Le(Le({},n.type.defaultProps),n.props):n.props,v=g.type,y=g.dataKey,b=g.allowDataOverflow,x=g.allowDuplicatedCategory,w=g.scale,S=g.ticks,O=g.includeHidden,k=g[a];if(e[k])return e;var E,_,M,C=He(t.data,{graphicalItems:r.filter((function(t){var e;return(a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a])===k})),dataStartIndex:l,dataEndIndex:u}),T=C.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&(0,P.Et)(r)&&(0,P.Et)(i))return!0}return!1})(g.domain,b,v)&&(E=(0,A.AQ)(g.domain,null,b),!p||"number"!==v&&"auto"===w||(M=(0,A.Ay)(C,y,"category")));var j=Ve(v);if(!E||0===E.length){var I,L=null!==(I=g.domain)&&void 0!==I?I:j;if(y){if(E=(0,A.Ay)(C,y,v),"category"===v&&p){var D=(0,P.CG)(E);x&&D?(_=E,E=c()(0,T)):x||(E=(0,A.KC)(L,E,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(Ce(t),[e])}),[]))}else if("category"===v)E=x?E.filter((function(t){return""!==t&&!o()(t)})):(0,A.KC)(L,E,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||o()(e)?t:[].concat(Ce(t),[e])}),[]);else if("number"===v){var R=(0,A.A1)(C,r.filter((function(t){var e,n,r=a in t.props?t.props[a]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[a],i="hide"in t.props?t.props.hide:null===(n=t.type.defaultProps)||void 0===n?void 0:n.hide;return r===k&&(O||!i)})),y,i,h);R&&(E=R)}!p||"number"!==v&&"auto"===w||(M=(0,A.Ay)(C,y,"category"))}else E=p?c()(0,T):s&&s[k]&&s[k].hasStack&&"number"===v?"expand"===d?[0,1]:(0,A.Mk)(s[k].stackGroups,l,u):(0,A.vf)(C,r.filter((function(t){var e=a in t.props?t.props[a]:t.type.defaultProps[a],n="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===k&&(O||!n)})),v,h,!0);if("number"===v)E=Wt(f,E,k,i,S),L&&(E=(0,A.AQ)(L,E,b));else if("category"===v&&L){var N=L;E.every((function(t){return N.indexOf(t)>=0}))&&(E=N)}}return Le(Le({},e),{},De({},k,Le(Le({},g),{},{axisType:i,domain:E,categoricalDomain:M,duplicateDomain:_,originalDomain:null!==(m=g.domain)&&void 0!==m?m:j,isCategorical:p,layout:h})))}),{})},qe=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,u=t.children,f="".concat(r,"Id"),d=(0,k.aS)(u,i),p={};return d&&d.length?p=$e(t,{axes:d,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l}):o&&o.length&&(p=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,l=e.dataEndIndex,u=t.layout,f=t.children,d=He(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,m=(0,A._L)(u,i),g=-1;return n.reduce((function(t,e){var v,y=(void 0!==e.type.defaultProps?Le(Le({},e.type.defaultProps),e.props):e.props)[o],b=Ve("number");return t[y]?t:(g++,m?v=c()(0,p):a&&a[y]&&a[y].hasStack?(v=(0,A.Mk)(a[y].stackGroups,s,l),v=Wt(f,v,y,i)):(v=(0,A.AQ)(b,(0,A.vf)(d,n.filter((function(t){var e,n,r=o in t.props?t.props[o]:null===(e=t.type.defaultProps)||void 0===e?void 0:e[o],i="hide"in t.props?t.props.hide:null===(n=t.type.defaultProps)||void 0===n?void 0:n.hide;return r===y&&!i})),"number",u),r.defaultProps.allowDataOverflow),v=Wt(f,v,y,i)),Le(Le({},t),{},De({},y,Le(Le({axisType:i},r.defaultProps),{},{hide:!0,orientation:h()(Ne,"".concat(i,".").concat(g%2),null),domain:v,originalDomain:b,isCategorical:m,layout:u}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:f,stackGroups:a,dataStartIndex:s,dataEndIndex:l})),p},Ye=function(t){var e=t.children,n=t.defaultShowTooltip,r=(0,k.BU)(e,q),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},Ke=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Xe=function(t,e){return"xAxis"===e?t[e].width:"yAxis"===e?t[e].height:void 0}
25,Ge=n(84124),Qe=n(99582);function Je(t){return Je="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},Je(t)}function Ze(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,an(r.key),r)}}function tn(t,e,n){return e=nn(e),function(t,e){if(e&&("object"===Je(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,en()?Reflect.construct(e,n||[],nn(t).constructor):e.apply(t,n))}function en(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(en=function(){return!!t})()}function nn(t){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nn(t)}function rn(t,e){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rn(t,e)}function on(t,e,n){return(e=an(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function an(t){var e=function(t,e){if("object"!=Je(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Je(e)?e:e+""}function sn(){return sn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},sn.apply(this,arguments)}function ln(t){var e=t.xAxisId,n=(0,dt.yi)(),i=(0,dt.rY)(),o=(0,dt.AF)(e);return null==o?null:r.createElement(Qe.u,sn({},o,{className:(0,g.A)("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(t){return(0,A.Rh)(t,!0)}}))}var cn=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),tn(this,e,arguments)}return function(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&&rn(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){return r.createElement(ln,this.props)}}])&&Ze(n.prototype,i),o&&Ze(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);on(cn,"displayName","XAxis"),on(cn,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var un=n(23495),hn=function(t){var e=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=void 0===i?"axis":i,l=t.validateTooltipEventTypes,c=void 0===l?["axis"]:l,u=t.axisComponents,f=t.legendContent,p=t.formatAxisMap,E=t.defaultProps,_=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,a=e.updateId,s=e.dataStartIndex,l=e.dataEndIndex,c=t.barSize,h=t.layout,f=t.barGap,d=t.barCategoryGap,p=t.maxBarSize,m=Ke(h),g=m.numericAxisName,y=m.cateAxisName,b=function(t){return!(!t||!t.length)&&t.some((function(t){var e=(0,k.Mn)(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),x=[];return n.forEach((function(n,m){var w=He(t.data,{graphicalItems:[n],dataStartIndex:s,dataEndIndex:l}),S=void 0!==n.type.defaultProps?Le(Le({},n.type.defaultProps),n.props):n.props,O=S.dataKey,E=S.maxBarSize,_=S["".concat(g,"Id")],P=S["".concat(y,"Id")],M=u.reduce((function(t,n){var r=e["".concat(n.axisType,"Map")],i=S["".concat(n.axisType,"Id")];r&&r[i]||"zAxis"===n.axisType||(0,v.A)(!1);var o=r[i];return Le(Le({},t),{},De(De({},n.axisType,o),"".concat(n.axisType,"Ticks"),(0,A.Rh)(o)))}),{}),C=M[y],T=M["".concat(y,"Ticks")],j=r&&r[_]&&r[_].hasStack&&(0,A.kA)(n,r[_].stackGroups),I=(0,k.Mn)(n.type).indexOf("Bar")>=0,L=(0,A.Hj)(C,T),D=[],R=b&&(0,A.tA)({barSize:c,stackGroups:r,totalSize:Xe(M,y)});if(I){var N,F,B=o()(E)?p:E,z=null!==(N=null!==(F=(0,A.Hj)(C,T,!0))&&void 0!==F?F:B)&&void 0!==N?N:0;D=(0,A.BX)({barGap:f,barCategoryGap:d,bandSize:z!==L?z:L,sizeList:R[P],maxBarSize:B}),z!==L&&(D=D.map((function(t){return Le(Le({},t),{},{position:Le(Le({},t.position),{},{offset:t.position.offset-z/2})})})))}var H=n&&n.type&&n.type.getComposedData;H&&x.push({props:Le(Le({},H(Le(Le({},M),{},{displayedData:w,props:t,dataKey:O,item:n,bandSize:L,barPosition:D,offset:i,stackedData:j,layout:h,dataStartIndex:s,dataEndIndex:l}))),{},De(De(De({key:n.key||"item-".concat(m)},g,M[g]),y,M[y]),"animationId",a)),childIndex:(0,k.AW)(n,t.children),item:n})}
25)),x},M=function(t,r){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,s=t.updateId;if(!(0,k.Me)({props:i}))return null;var l=i.children,c=i.layout,f=i.stackOffset,m=i.data,g=i.reverseStackOrder,v=Ke(c),y=v.numericAxisName,b=v.cateAxisName,x=(0,k.aS)(l,n),S=(0,A.Mn)(m,x,"".concat(y,"Id"),"".concat(b,"Id"),f,g),O=u.reduce((function(t,e){var n="".concat(e.axisType,"Map");return Le(Le({},t),{},De({},n,qe(i,Le(Le({},e),{},{graphicalItems:x,stackGroups:e.axisType===y&&S,dataStartIndex:o,dataEndIndex:a}))))}),{}),E=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,s=void 0===a?{}:a,l=n.width,c=n.height,u=n.children,f=n.margin||{},d=(0,k.BU)(u,q),p=(0,k.BU)(u,w.s),m=Object.keys(s).reduce((function(t,e){var n=s[e],r=n.orientation;return n.mirror||n.hide?t:Le(Le({},t),{},De({},r,t[r]+n.width))}),{left:f.left||0,right:f.right||0}),g=Object.keys(o).reduce((function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:Le(Le({},t),{},De({},r,h()(t,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),v=Le(Le({},g),m),y=v.bottom;d&&(v.bottom+=d.props.height||q.defaultProps.height),p&&e&&(v=(0,A.s0)(v,r,n,e));var b=l-v.left-v.right,x=c-v.top-v.bottom;return Le(Le({brushBottom:y},v),{},{width:Math.max(b,0),height:Math.max(x,0)})}(Le(Le({},O),{},{props:i,graphicalItems:x}),null==r?void 0:r.legendBBox);Object.keys(O).forEach((function(t){O[t]=p(i,O[t],E,t.replace("Map",""),e)}));var M,C,T,j=O["".concat(b,"Map")],I=(M=j,C=(0,P.lX)(M),{tooltipTicks:T=(0,A.Rh)(C,!1,!0),orderedTooltipTicks:d()(T,(function(t){return t.coordinate})),tooltipAxis:C,tooltipAxisBandSize:(0,A.Hj)(C,T)}),L=_(i,Le(Le({},O),{},{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:x,stackGroups:S,offset:E}));return Le(Le({formattedGraphicalItems:L,graphicalItems:x,offset:E,stackGroups:S},I),O)},C=function(t){function n(t){var i,a,l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),De(l=_e(this,n,[t]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),De(l,"accessibilityManager",new te),De(l,"handleLegendBBoxUpdate",(function(t){if(t){var e=l.state,n=e.dataStartIndex,r=e.dataEndIndex,i=e.updateId;l.setState(Le({legendBBox:t},M({props:l.props,dataStartIndex:n,dataEndIndex:r,updateId:i},Le(Le({},l.state),{},{legendBBox:t}))))}})),De(l,"handleReceiveSyncEvent",(function(t,e,n){if(l.props.syncId===t){if(n===l.eventEmitterSymbol&&"function"!=typeof l.props.syncMethod)return;l.applySyncEvent(e)}})),De(l,"handleBrushChange",(function(t){var e=t.startIndex,n=t.endIndex;if(e!==l.state.dataStartIndex||n!==l.state.dataEndIndex){var r=l.state.updateId;l.setState((function(){return Le({dataStartIndex:e,dataEndIndex:n},M({props:l.props,dataStartIndex:e,dataEndIndex:n,updateId:r},l.state))})),l.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),De(l,"handleMouseEnter",(function(t){var e=l.getMouseInfo(t);if(e){var n=Le(Le({},e),{},{isTooltipActive:!0});l.setState(n),l.triggerSyncEvent(n);var r=l.props.onMouseEnter;s()(r)&&r(n,t)}})),De(l,"triggeredAfterMouseMove",(function(t){var e=l.getMouseInfo(t),n=e?Le(Le({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};l.setState(n),l.triggerSyncEvent(n);var r=l.props.onMouseMove;s()(r)&&r(n,t)})),De(l,"handleItemMouseEnter",(function(t){l.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),De(l,"handleItemMouseLeave",(function(){l.setState((function(){return{isTooltipActive:!1}}))})),De(l,"handleMouseMove",(function(t){t.persist(),l.throttleTriggeredAfterMouseMove(t)})),De(l,"handleMouseLeave",(function(t){l.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};l.setState(e),l.triggerSyncEvent(e);var n=l.props.onMouseLeave;s()(n)&&n(e,t)})),De(l,"handleOuterEvent",(function(t){var e,n=(0,k.X_)(t),r=h()(l.props,"".concat(n));n&&s()(r)&&r(null!==(e=/.*touch.*/i.test(n)?l.getMouseInfo(t.changedTouches[0]):l.getMouseInfo(t))&&void 0!==e?e:{},t)})),De(l,"handleClick",(function(t){var e=l.getMouseInfo(t);if(e){var n=Le(Le({},e),{},{isTooltipActive:!0});l.setState(n),l.triggerSyncEvent(n);var r=l.props.onClick;s()(r)&&r(n,t)}})),De(l,"handleMouseDown",(function(t){var e=l.props.onMouseDown;s()(e)&&e(l.getMouseInfo(t),t)})),De(l,"handleMouseUp",(function(t){var e=l.props.onMouseUp;s()(e)&&e(l.getMouseInfo(t),t)})),De(l,"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),De(l,"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.handleMouseDown(t.changedTouches[0])})),De(l,"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&l.handleMouseUp(t.changedTouches[0])})),De(l,"handleDoubleClick",(function(t){var e=l.props.onDoubleClick;s()(e)&&e(l.getMouseInfo(t),t)})),De(l,"handleContextMenu",(function(t){var e=l.props.onContextMenu;s()(e)&&e(l.getMouseInfo(t),t)})),De(l,"triggerSyncEvent",(function(t){void 0!==l.props.syncId&&Yt.emit(Kt,l.props.syncId,t,l.eventEmitterSymbol)})),De(l,"applySyncEvent",(function(t){var e=l.props,n=e.layout,r=e.syncMethod,i=l.state.updateId,o=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)l.setState(Le({dataStartIndex:o,dataEndIndex:a},M({props:l.props,dataStartIndex:o,dataEndIndex:a,updateId:i},l.state)));else if(void 0!==t.activeTooltipIndex){var s=t.chartX,c=t.chartY,u=t.activeTooltipIndex,h=l.state,f=h.offset,d=h.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(d,t);else if("value"===r){u=-1;for(var p=0;p<d.length;p++)if(d[p].value===t.activeLabel){u=p;break}}var m=Le(Le({},f),{},{x:f.left,y:f.top}),g=Math.min(s,m.x+m.width),v=Math.min(c,m.y+m.height),y=d[u]&&d[u].value,b=We(l.state,l.props.data,u),x=d[u]?{x:"horizontal"===n?d[u].coordinate:g,y:"horizontal"===n?v:d[u].coordinate}:Be;l.setState(Le(Le({},t),{},{activeLabel:y,activeCoordinate:x,activePayload:b,activeTooltipIndex:u}))}else l.setState(t)})),De(l,"renderCursor",(function(t){var n,i=l.state,o=i.isTooltipActive,a=i.activeCoordinate,
25s=i.activePayload,c=i.offset,u=i.activeTooltipIndex,h=i.tooltipAxisBandSize,f=l.getTooltipEventType(),d=null!==(n=t.props.active)&&void 0!==n?n:o,p=l.props.layout,m=t.key||"_recharts-cursor";return r.createElement(ye,{key:m,activeCoordinate:a,activePayload:s,activeTooltipIndex:u,chartName:e,element:t,isActive:d,layout:p,offset:c,tooltipAxisBandSize:h,tooltipEventType:f})})),De(l,"renderPolarAxis",(function(t,e,n){var i=h()(t,"type.axisType"),o=h()(l.state,"".concat(i,"Map")),a=t.type.defaultProps,s=void 0!==a?Le(Le({},a),t.props):t.props,c=o&&o[s["".concat(i,"Id")]];return(0,r.cloneElement)(t,Le(Le({},c),{},{className:(0,g.A)(i,c.className),key:t.key||"".concat(e,"-").concat(n),ticks:(0,A.Rh)(c,!0)}))})),De(l,"renderPolarGrid",(function(t){var e=t.props,n=e.radialLines,i=e.polarAngles,o=e.polarRadius,a=l.state,s=a.radiusAxisMap,c=a.angleAxisMap,u=(0,P.lX)(s),h=(0,P.lX)(c),f=h.cx,d=h.cy,p=h.innerRadius,m=h.outerRadius;return(0,r.cloneElement)(t,{polarAngles:Array.isArray(i)?i:(0,A.Rh)(h,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:(0,A.Rh)(u,!0).map((function(t){return t.coordinate})),cx:f,cy:d,innerRadius:p,outerRadius:m,key:t.key||"polar-grid",radialLines:n})})),De(l,"renderLegend",(function(){var t=l.state.formattedGraphicalItems,e=l.props,n=e.children,i=e.width,o=e.height,a=l.props.margin||{},s=i-(a.left||0)-(a.right||0),c=(0,K.g)({children:n,formattedGraphicalItems:t,legendWidth:s,legendContent:f});if(!c)return null;var u=c.item,h=ke(c,be);return(0,r.cloneElement)(u,Le(Le({},h),{},{chartWidth:i,chartHeight:o,margin:a,onBBoxUpdate:l.handleLegendBBoxUpdate}))})),De(l,"renderTooltip",(function(){var t,e=l.props,n=e.children,i=e.accessibilityLayer,o=(0,k.BU)(n,x.m);if(!o)return null;var a=l.state,s=a.isTooltipActive,c=a.activeCoordinate,u=a.activePayload,h=a.activeLabel,f=a.offset,d=null!==(t=o.props.active)&&void 0!==t?t:s;return(0,r.cloneElement)(o,{viewBox:Le(Le({},f),{},{x:f.left,y:f.top}),active:d,label:h,payload:d?u:[],coordinate:c,accessibilityLayer:i})})),De(l,"renderBrush",(function(t){var e=l.props,n=e.margin,i=e.data,o=l.state,a=o.offset,s=o.dataStartIndex,c=o.dataEndIndex,u=o.updateId;return(0,r.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,A.HQ)(l.handleBrushChange,t.props.onChange),data:i,x:(0,P.Et)(t.props.x)?t.props.x:a.left,y:(0,P.Et)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:(0,P.Et)(t.props.width)?t.props.width:a.width,startIndex:s,endIndex:c,updateId:"brush-".concat(u)})})),De(l,"renderReferenceElement",(function(t,e,n){if(!t)return null;var i=l.clipPathId,o=l.state,a=o.xAxisMap,s=o.yAxisMap,c=o.offset,u=t.type.defaultProps||{},h=t.props,f=h.xAxisId,d=void 0===f?u.xAxisId:f,p=h.yAxisId,m=void 0===p?u.yAxisId:p;return(0,r.cloneElement)(t,{key:t.key||"".concat(e,"-").concat(n),xAxis:a[d],yAxis:s[m],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})})),De(l,"renderActivePoints",(function(t){var e=t.item,r=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,s=[],l=e.props.key,c=void 0!==e.item.type.defaultProps?Le(Le({},e.item.type.defaultProps),e.item.props):e.item.props,u=c.activeDot,h=Le(Le({index:o,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:(0,A.Ps)(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},(0,k.J9)(u,!1)),(0,Xt._U)(u));return s.push(n.renderActiveDot(u,h,"".concat(l,"-activePoint-").concat(o))),i?s.push(n.renderActiveDot(u,Le(Le({},h),{},{cx:i.x,cy:i.y}),"".concat(l,"-basePoint-").concat(o))):a&&s.push(null),s})),De(l,"renderGraphicChild",(function(t,e,n){var i=l.filterFormatItem(t,e,n);if(!i)return null;var a=l.getTooltipEventType(),s=l.state,c=s.isTooltipActive,u=s.tooltipAxis,h=s.activeTooltipIndex,f=s.activeLabel,d=l.props.children,p=(0,k.BU)(d,x.m),m=i.props,g=m.points,v=m.isRange,y=m.baseLine,b=void 0!==i.item.type.defaultProps?Le(Le({},i.item.type.defaultProps),i.item.props):i.item.props,w=b.activeDot,S=b.hide,O=b.activeBar,E=b.activeShape,_=Boolean(!S&&c&&p&&(w||O||E)),M={};"axis"!==a&&p&&"click"===p.props.trigger?M={onClick:(0,A.HQ)(l.handleItemMouseEnter,t.props.onClick)}:"axis"!==a&&(M={onMouseLeave:(0,A.HQ)(l.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:(0,A.HQ)(l.handleItemMouseEnter,t.props.onMouseEnter)});var C=(0,r.cloneElement)(t,Le(Le({},i.props),M));if(_){if(!(h>=0)){var T,j=(null!==(T=l.getItemByXY(l.state.activeCoordinate))&&void 0!==T?T:{graphicalItem:C}).graphicalItem,I=j.item,L=void 0===I?t:I,D=j.childIndex,R=Le(Le(Le({},i.props),M),{},{activeIndex:D});return[(0,r.cloneElement)(L,R),null,null]}var N,F;
25if(u.dataKey&&!u.allowDuplicatedCategory){var B="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());N=(0,P.eP)(g,B,f),F=v&&y&&(0,P.eP)(y,B,f)}else N=null==g?void 0:g[h],F=v&&y&&y[h];if(E||O){var z=void 0!==t.props.activeIndex?t.props.activeIndex:h;return[(0,r.cloneElement)(t,Le(Le(Le({},i.props),M),{},{activeIndex:z})),null,null]}if(!o()(N))return[C].concat(Ce(l.renderActivePoints({item:i,activePoint:N,basePoint:F,childIndex:h,isRange:v})))}return v?[C,null,null]:[C,null]})),De(l,"renderCustomized",(function(t,e,n){return(0,r.cloneElement)(t,Le(Le({key:"recharts-customized-".concat(n)},l.props),l.state))})),De(l,"renderMap",{CartesianGrid:{handler:ze,once:!0},ReferenceArea:{handler:l.renderReferenceElement},ReferenceLine:{handler:ze},ReferenceDot:{handler:l.renderReferenceElement},XAxis:{handler:ze},YAxis:{handler:ze},Brush:{handler:l.renderBrush,once:!0},Bar:{handler:l.renderGraphicChild},Line:{handler:l.renderGraphicChild},Area:{handler:l.renderGraphicChild},Radar:{handler:l.renderGraphicChild},RadialBar:{handler:l.renderGraphicChild},Scatter:{handler:l.renderGraphicChild},Pie:{handler:l.renderGraphicChild},Funnel:{handler:l.renderGraphicChild},Tooltip:{handler:l.renderCursor,once:!0},PolarGrid:{handler:l.renderPolarGrid,once:!0},PolarAngleAxis:{handler:l.renderPolarAxis},PolarRadiusAxis:{handler:l.renderPolarAxis},Customized:{handler:l.renderCustomized}}),l.clipPathId="".concat(null!==(i=t.id)&&void 0!==i?i:(0,P.NF)("recharts"),"-clip"),l.throttleTriggeredAfterMouseMove=m()(l.triggeredAfterMouseMove,null!==(a=t.throttleDelay)&&void 0!==a?a:1e3/60),l.state={},l}return function(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&&Me(t,e)}(n,t),i=n,l=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,n=t.data,r=t.height,i=t.layout,o=(0,k.BU)(e,x.m);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=We(this.state,n,a,s),c=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+r)/2,h="horizontal"===i?{x:c,y:u}:{y:c,x:u},f=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));f&&(h=Le(Le({},h),f.props.points[a].tooltipPosition),l=f.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:h};this.setState(d),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(t){(0,k.OV)([(0,k.BU)(t.children,x.m)],[(0,k.BU)(this.props.children,x.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,k.BU)(this.props.children,x.m);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:a}return a}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r=(0,Y.A3)(n),i={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},o=n.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var s=this.state,l=s.xAxisMap,c=s.yAxisMap,u=this.getTooltipEventType(),h=Ue(this.state,this.props.data,this.props.layout,a);if("axis"!==u&&l&&c){var f=(0,P.lX)(l).scale,d=(0,P.lX)(c).scale,p=f&&f.invert?f.invert(i.chartX):null,m=d&&d.invert?d.invert(i.chartY):null;return Le(Le({},i),{},{xValue:p,yValue:m},h)}return h?Le(Le({},i),h):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=(0,P.lX)(l);return(0,Ut.yy)({x:i,y:o},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,k.BU)(t,x.m),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),Le(Le({},(0,Xt._U)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){Yt.on(Kt,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Yt.removeListener(Kt,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===t||a.props.key===t.key||e===(0,k.Mn)(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,i=e.top,o=e.height,a=e.width;return r.createElement("defs",null,r.createElement("clipPath",{id:t},r.createElement("rect",{x:n,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=Oe(e,2),r=n[0],i=n[1];return Le(Le({},t),{},De({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=Oe(e,2),r=n[0],i=n[1];return Le(Le({},t),{},De({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,n=e.formattedGraphicalItems,r=e.activeItem;if(n&&n.length)for(var i=0,o=n.length;i<o;i++){var a=n[i],s=a.props,l=a.item,c=void 0!==l.type.defaultProps?Le(Le({},l.type.defaultProps),l.props):l.props,u=(0,k.Mn)(l.type);if("Bar"===u){var h=(s.data||[]).find((function(e){return(0,O.J)(t,e)}));if(h)return{graphicalItem:a,payload:h}}else if("RadialBar"===u){var f=(s.data||[]).find((function(e){return(0,Ut.yy)(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if((0,ee.NE)(a,r)||(0,ee.nZ)(a,r)||(0,ee.xQ)(a,r)){var d=(0,ee.GG)({graphicalItem:a,activeTooltipItem:r,itemData:c.data}),p=void 0===c.activeIndex?d:c.activeIndex;return{graphicalItem:Le(Le({},a),{},{childIndex:p}),payload:(0,ee.xQ)(a,r)?c.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t=this;if(!(0,k.Me)(this))return null;var e,n,i=this.props,o=i.children,a=i.className,s=i.width,l=i.height,c=i.style,u=i.compact,h=i.title,f=i.desc,d=ke(i,xe),p=(0,k.J9)(d,!1);if(u)return r.createElement(dt.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r.createElement(y.u,Se({},p,{width:s,height:l,title:h,desc:f}),this.renderClipPath(),(0,k.ee)(o,this.renderMap)));this.props.accessibilityLayer&&(p.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,p.role=null!==(n=this.props.role)&&void 0!==n?n:"application",p.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},p.onFocus=function(){t.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return r.createElement(dt.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},r.createElement("div",Se({className:(0,g.A)("recharts-wrapper",a),style:Le({position:"relative",curs
25or:"default",width:s,height:l},c)},m,{ref:function(e){t.container=e}}),r.createElement(y.u,Se({},p,{width:s,height:l,title:h,desc:f,style:Fe}),this.renderClipPath(),(0,k.ee)(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],l&&Ee(i.prototype,l),u&&Ee(i,u),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,l,u}(r.Component);De(C,"displayName",e),De(C,"defaultProps",Le({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},E)),De(C,"getDerivedStateFromProps",(function(t,e){var n=t.dataKey,r=t.data,i=t.children,a=t.width,s=t.height,l=t.layout,c=t.stackOffset,u=t.margin,h=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var d=Ye(t);return Le(Le(Le({},d),{},{updateId:0},M(Le(Le({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:s,prevLayout:l,prevStackOffset:c,prevMargin:u,prevChildren:i})}if(n!==e.prevDataKey||r!==e.prevData||a!==e.prevWidth||s!==e.prevHeight||l!==e.prevLayout||c!==e.prevStackOffset||!(0,$t.b)(u,e.prevMargin)){var p=Ye(t),m={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},g=Le(Le({},Ue(e,r,l)),{},{updateId:e.updateId+1}),v=Le(Le(Le({},p),m),g);return Le(Le(Le({},v),M(Le({props:t},v),e)),{},{prevDataKey:n,prevData:r,prevWidth:a,prevHeight:s,prevLayout:l,prevStackOffset:c,prevMargin:u,prevChildren:i})}if(!(0,k.OV)(i,e.prevChildren)){var y,b,x,w,S=(0,k.BU)(i,q),O=S&&null!==(y=null===(b=S.props)||void 0===b?void 0:b.startIndex)&&void 0!==y?y:h,E=S&&null!==(x=null===(w=S.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,_=O!==h||E!==f,A=!o()(r)&&!_?e.updateId:e.updateId+1;return Le(Le({updateId:A},M(Le(Le({props:t},e),{},{updateId:A,dataStartIndex:O,dataEndIndex:E}),e)),{},{prevChildren:i,dataStartIndex:O,dataEndIndex:E})}return null})),De(C,"renderActiveDot",(function(t,e,n){var i;return i=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,e):s()(t)?t(e):r.createElement(S.c,e),r.createElement(b.W,{className:"recharts-active-dot",key:n},i)}));var T=(0,r.forwardRef)((function(t,e){return r.createElement(C,Se({},t,{ref:e}))}));return T.displayName=C.displayName,T}({chartName:"AreaChart",GraphicalChild:Ge.G,axisComponents:[{axisType:"xAxis",AxisComp:cn},{axisType:"yAxis",AxisComp:un.h}],formatAxisMap:Q.pr})},67979:(t,e,n)=>{"use strict";var r=n(28551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},68090:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},68183:(t,e,n)=>{"use strict";
25var r=n(79504),i=n(91291),o=n(655),a=n(67750),s=r("".charAt),l=r("".charCodeAt),c=r("".slice),u=function(t){return function(e,n){var r,u,h=o(a(e)),f=i(n),d=h.length;return f<0||f>=d?t?"":void 0:(r=l(h,f))<55296||r>56319||f+1===d||(u=l(h,f+1))<56320||u>57343?t?s(h,f):r:t?c(h,f,f+2):u-56320+(r-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},68223:(t,e,n)=>{var r=n(56110)(n(9325),"Map");t.exports=r},69085:(t,e,n)=>{"use strict";var r=n(46518),i=n(44213);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},69107:(t,e,n)=>{"use strict";n.d(e,{d:()=>C});var r=n(96540),i=n(1882),o=n.n(i),a=n(6634),s=n(59744),l=n(94501),c=n(63036),u=n(92896),h=n(99582),f=n(47429),d=["x1","y1","x2","y2","key"],p=["offset"];function m(t){return m="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},m(t)}function g(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 v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?g(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){var r;return r=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(){return b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},b.apply(this,arguments)}function x(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var w=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,l=t.ry;return r.createElement("rect",{x:i,y:o,ry:l,width:a,height:s,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function S(t,e){var n;if(r.isValidElement(t))n=r.cloneElement(t,e);else if(o()(t))n=t(e);else{var i=e.x1,a=e.y1,s=e.x2,c=e.y2,u=e.key,h=x(e,d),f=(0,l.J9)(h,!1),m=(f.offset,x(f,p));n=r.createElement("line",b({},m,{x1:i,y1:a,x2:s,y2:c,fill:"none",key:u}))}return n}function O(t){var e=t.x,n=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var s=a.map((function(r,i){var a=v(v({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(i),index:i});return S(o,a)}));return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function k(t){var e=t.y,n=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var s=a.map((function(r,i){var a=v(v({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(i),index:i});return S(o,a)}));return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function E(t){var e=t.horizontalFill,n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,l=t.horizontalPoints,c=t.horizontal;if(!(void 0===c||c)||!e||!e.length)return null;var u=l.map((function(t){return Math.round(t+o-o)})).sort((function(t,e){return t-e}));o!==u[0]&&u.unshift(0);var h=u.map((function(t,l){var c=!u[l+1]?o+s-t:u[l+1]-t;if(c<=0)return null;var h=l%e.length;return r.createElement("rect",{key:"react-".concat(l),y:t,x:i,height:c,width:a,stroke:"none",fill:e[h],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function _(t){var e=t.vertical,n=void 0===e||e,i=t.verticalFill,o=t.fillOpacity,a=t.x,s=t.y,l=t.width,c=t.height,u=t.verticalPoints;if(!n||!i||!i.length)return null;var h=u.map((function(t){return Math.round(t+a-a)})).sort((function(t,e){return t-e}));a!==h[0]&&h.unshift(0);var f=h.map((function(t,e){var n=!h[e+1]?a+l-t:h[e+1]-t;if(n<=0)return null;var u=e%i.length;return r.createElement("rect",{key:"react-".concat(e),x:t,y:s,width:n,height:c,stroke:"none",fill:i[u],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var A=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return(0,c.PW)((0,u.f)(v(v(v({},h.u.defaultProps),n),{}
25,{ticks:(0,c.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},P=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return(0,c.PW)((0,u.f)(v(v(v({},h.u.defaultProps),n),{},{ticks:(0,c.Rh)(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},M={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function C(t){var e,n,i,l,c,u,h=(0,f.yi)(),d=(0,f.rY)(),p=(0,f.hj)(),g=v(v({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:M.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:M.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:M.horizontal,horizontalFill:null!==(l=t.horizontalFill)&&void 0!==l?l:M.horizontalFill,vertical:null!==(c=t.vertical)&&void 0!==c?c:M.vertical,verticalFill:null!==(u=t.verticalFill)&&void 0!==u?u:M.verticalFill,x:(0,s.Et)(t.x)?t.x:p.left,y:(0,s.Et)(t.y)?t.y:p.top,width:(0,s.Et)(t.width)?t.width:p.width,height:(0,s.Et)(t.height)?t.height:p.height}),y=g.x,x=g.y,S=g.width,C=g.height,T=g.syncWithTicks,j=g.horizontalValues,I=g.verticalValues,L=(0,f.pj)(),D=(0,f.$G)();if(!(0,s.Et)(S)||S<=0||!(0,s.Et)(C)||C<=0||!(0,s.Et)(y)||y!==+y||!(0,s.Et)(x)||x!==+x)return null;var R=g.verticalCoordinatesGenerator||A,N=g.horizontalCoordinatesGenerator||P,F=g.horizontalPoints,B=g.verticalPoints;if((!F||!F.length)&&o()(N)){var z=j&&j.length,H=N({yAxis:D?v(v({},D),{},{ticks:z?j:D.ticks}):void 0,width:h,height:d,offset:p},!!z||T);(0,a.R)(Array.isArray(H),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(m(H),"]")),Array.isArray(H)&&(F=H)}if((!B||!B.length)&&o()(R)){var V=I&&I.length,W=R({xAxis:L?v(v({},L),{},{ticks:V?I:L.ticks}):void 0,width:h,height:d,offset:p},!!V||T);(0,a.R)(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(m(W),"]")),Array.isArray(W)&&(B=W)}return r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(w,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),r.createElement(O,b({},g,{offset:p,horizontalPoints:F,xAxis:L,yAxis:D})),r.createElement(k,b({},g,{offset:p,verticalPoints:B,xAxis:L,yAxis:D})),r.createElement(E,b({},g,{horizontalPoints:F})),r.createElement(_,b({},g,{verticalPoints:B})))}C.displayName="CartesianGrid"},69302:(t,e,n)=>{var r=n(83488),i=n(56757),o=n(32865);t.exports=function(t,e){return o(i(t,e,r),t+"")}},69565:(t,e,n)=>{"use strict";var r=n(40616),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},69843:t=>{t.exports=function(t){return null==t}},69982:(t,e,n)=>{"use strict";t.exports=n(7463)},70080:(t,e,n)=>{var r=n(26025),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},70081:(t,e,n)=>{"use strict";var r=n(69565),i=n(79306),o=n(28551),a=n(16823),s=n(50851),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw new l(a(t)+" is not iterable")}},70511:(t,e,n)=>{"use strict";var r=n(19167),i=n(39297),o=n(1951),a=n(24913).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},70597:(t,e,n)=>{"use strict";var r=n(79039),i=n(78227),o=n(39519),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},70695:(t,e,n)=>{var r=n(78096),i=n(72428),o=n(56449),a=n(3656),s=n(30361),l=n(37167),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),u=!n&&i(t),h=!n&&!u&&a(t),f=!n&&!u&&!h&&l(t),d=n||u||h||f,p=d?r(t.length,String):[],m=p.length;for(var g in t)!e&&!c.call(t,g)||d&&("length"==g||h&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||p.push(g);return p}},71072:(t,e,n)=>{"use strict";var r=n(61828),i=n(88727);t.exports=Object.keys||function(t){return r(t,i)}},71761:(t,e,n)=>{"use strict";var r=n(69565),i=n(79504),o=n(89228),a=n(28551),s=n(20034),l=n(18014),c=n(655),u=n(67750),h=n(55966),f=n(57829),d=n(61034),p=n(56682),m=i("".indexOf);o("match",(function(t,e,n){return[function(e){var n=u(this),i=s(e)?h(e,t):void 0;return i?r(i,e,n):new RegExp(e)[t](c(n))},function(t){var r=a(this),i=c(t),o=n(e,r,i);if(o.done)return o.value;var s=c(d(r));if(-1===m(s,"g"))return p(r,i);var u=-1!==m(s,"u");r.lastIndex=0;for(var h,g=[],v=0;null!==(h=p(r,i));){var y=c(h[0]);g[v]=y,""===y&&(r.lastIndex=f(i,l(r.lastIndex),u)),v++}return 0===v?null:g}]}))},72428:(t,e,n)=>{var r=n(27534),i=n(40346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=l},72552:(t,e,n)=>{var r=n(51873),i=n(659),o=n(59350),a=r?r.toStringTag:void 0;
25t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},72577:(t,e,n)=>{"use strict";n(20116)},72652:(t,e,n)=>{"use strict";var r=n(76080),i=n(69565),o=n(28551),a=n(16823),s=n(44209),l=n(26198),c=n(1625),u=n(70081),h=n(50851),f=n(9539),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},m=p.prototype;t.exports=function(t,e,n){var g,v,y,b,x,w,S,O=n&&n.that,k=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_RECORD),_=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),P=r(e,O),M=function(t){return g&&f(g,"normal"),new p(!0,t)},C=function(t){return k?(o(t),A?P(t[0],t[1],M):P(t[0],t[1])):A?P(t,M):P(t)};if(E)g=t.iterator;else if(_)g=t;else{if(!(v=h(t)))throw new d(a(t)+" is not iterable");if(s(v)){for(y=0,b=l(t);b>y;y++)if((x=C(t[y]))&&c(m,x))return x;return new p(!1)}g=u(t,v)}for(w=E?t.next:g.next;!(S=i(w,g)).done;){try{x=C(S.value)}catch(t){f(g,"throw",t)}if("object"==typeof x&&x&&c(m,x))return x}return new p(!1)}},72712:(t,e,n)=>{"use strict";var r=n(46518),i=n(80926).left,o=n(34598),a=n(39519);r({target:"Array",proto:!0,forced:!n(38574)&&a>79&&a<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},72777:(t,e,n)=>{"use strict";var r=n(69565),i=n(20034),o=n(10757),a=n(55966),s=n(84270),l=n(78227),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},72949:(t,e,n)=>{var r=n(12651);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},73506:(t,e,n)=>{"use strict";var r=n(13925),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},73772:(t,e,n)=>{"use strict";n(65746)},73916:(t,e,n)=>{var r=n(43360),i=n(30641),o=n(15389);t.exports=function(t,e){var n={};return e=o(e,3),i(t,(function(t,i,o){r(n,i,e(t,i,o))})),n}},73937:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},74218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},74335:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},74423:(t,e,n)=>{"use strict";var r=n(46518),i=n(19617).includes,o=n(79039),a=n(6469);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},74488:(t,e,n)=>{"use strict";var r=n(67680),i=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var a,s,l=1;l<n;){for(s=l,a=t[l];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==l++&&(t[s]=a)}else for(var c=i(n/2),u=o(r(t,0,c),e),h=o(r(t,c),e),f=u.length,d=h.length,p=0,m=0;p<f||m<d;)t[p+m]=p<f&&m<d?e(u[p],h[m])<=0?u[p++]:h[m++]:p<f?u[p++]:h[m++];return t};t.exports=o},75288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},76031:(t,e,n)=>{"use strict";n(15575),n(24599)},76080:(t,e,n)=>{"use strict";var r=n(27476),i=n(79306),o=n(40616),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},76545:(t,e,n)=>{var r=n(56110)(n(9325),"Set");t.exports=r},76918:(t,e,n)=>{"use strict";var r=n(36840),i=n(77536),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},76959:t=>{t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},77347:(t,e,n)=>{"use strict";var r=n(43724),i=n(69565),o=n(48773),a=n(6980),s=n(25397),l=n(56969),c=n(39297),u=n(35917),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return a(!i(o.f,t,e),t[e])}},77536:(t,e,n)=>{"use strict";var r=n(43724),i=n(79039),o=n(28551),a=n(32603),s=Error.prototype.toString,l=i((function(){if(r){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==s.call(t))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));t.exports=l?function(){var t=o(this),e=a(t.name,"Error"),n=a(t.message);return e?n?e+": "+n:e:n}:s},77556:(t,e,n)=>{var r=n(51873),i=n(34932),o=n(56449),a=n(44394),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},77584:(t,e,n)=>{"use strict";var r=n(20034),i=n(66699);t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},77629:(t,e,n)=>{"use strict";var r=n(96395),i=n(44576),o=n(39433),a="__core-js_shared__",s=t.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.45.1",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},77740:(t,e,n)=>{"use strict";var r=n(39297),i=n(35031),o=n(77347),a=n(24913);t.exports=function(t,e,n){for(var s=i(e),l=a.f,c=o.f,u=0;u<s.length;u++){var h=s[u];r(t,h)||n&&r(n,h)||l(t,h,c(e,h))}}},77797:(t,e,n)=>{var r=n(44394);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},78096:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},78227:(t,e,n)=>{"use strict";var r=n(44576),i=n(25745),o=n(39297),a=n(33392),s=n(4495),l=n(7040),c=r.Symbol,u=i("wks"),h=l?c.for||c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(c,t)?c[t]:h("Symbol."+t)),u[t]}},78687:(t,e,n)=>{"use strict";n.d(e,{m:()=>X});var r=n(96540),i=n(33031),o=n.n(i),a=n(69843),s=n.n(a),l=n(34164),c=n(59744);function u(t){return u="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},u(t)}function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h.apply(this,arguments)}function f(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
25finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(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.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(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 m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){var r;return r=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==u(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){return Array.isArray(t)&&(0,c.vh)(t[0])&&(0,c.vh)(t[1])?t.join(" ~ "):t}var y=function(t){var e=t.separator,n=void 0===e?" : ":e,i=t.contentStyle,a=void 0===i?{}:i,u=t.itemStyle,d=void 0===u?{}:u,p=t.labelStyle,g=void 0===p?{}:p,y=t.payload,b=t.formatter,x=t.itemSorter,w=t.wrapperClassName,S=t.labelClassName,O=t.label,k=t.labelFormatter,E=t.accessibilityLayer,_=void 0!==E&&E,A=m({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),P=m({margin:0},g),M=!s()(O),C=M?O:"",T=(0,l.A)("recharts-default-tooltip",w),j=(0,l.A)("recharts-tooltip-label",S);M&&k&&null!=y&&(C=k(O,y));var I=_?{role:"status","aria-live":"assertive"}:{};return r.createElement("div",h({className:T,style:A},I),r.createElement("p",{className:j,style:P},r.isValidElement(C)?C:"".concat(C)),function(){if(y&&y.length){var t=(x?o()(y,x):y).map((function(t,e){if("none"===t.type)return null;var i=m({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},d),o=t.formatter||b||v,a=t.value,s=t.name,l=a,u=s;if(o&&null!=l&&null!=u){var h=o(a,s,t,e,y);if(Array.isArray(h)){var p=f(h,2);l=p[0],u=p[1]}else l=h}return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:i},(0,c.vh)(u)?r.createElement("span",{className:"recharts-tooltip-item-name"},u):null,(0,c.vh)(u)?r.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,r.createElement("span",{className:"recharts-tooltip-item-value"},l),r.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function b(t){return b="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},b(t)}function x(t,e,n){var r;return r=function(t,e){if("object"!=b(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==b(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w="recharts-tooltip-wrapper",S={visibility:"hidden"};function O(t){var e=t.coordinate,n=t.translateX,r=t.translateY;return(0,l.A)(w,x(x(x(x({},"".concat(w,"-right"),(0,c.Et)(n)&&e&&(0,c.Et)(e.x)&&n>=e.x),"".concat(w,"-left"),(0,c.Et)(n)&&e&&(0,c.Et)(e.x)&&n<e.x),"".concat(w,"-bottom"),(0,c.Et)(r)&&e&&(0,c.Et)(e.y)&&r>=e.y),"".concat(w,"-top"),(0,c.Et)(r)&&e&&(0,c.Et)(e.y)&&r<e.y))}function k(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,s=t.tooltipDimension,l=t.viewBox,u=t.viewBoxDimension;if(o&&(0,c.Et)(o[r]))return o[r];var h=n[r]-s-i,f=n[r]+i;return e[r]?a[r]?h:f:a[r]?h<l[r]?Math.max(f,l[r]):Math.max(h,l[r]):f+s>l[r]+u?Math.max(h,l[r]):Math.max(f,l[r])}function E(t){return 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},E(t)}function _(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 A(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
vendor: 1,105 bytes, line 25
25e%2?_(Object(n),!0).forEach((function(e){I(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,L(r.key),r)}}function M(t,e,n){return e=T(e),function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,C()?Reflect.construct(e,n||[],T(t).constructor):e.apply(t,n))}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}
vendor: 4,727 bytes, line 25
25function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}function I(t,e,n){return(e=L(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}var D=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return I(t=M(this,e,[].concat(r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),I(t,"handleKeyDown",(function(e){var n,r,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=t.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}return function(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&&j(t,e)}(e,t),n=e,(i=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,i=e.allowEscapeViewBox,o=e.animationDuration,a=e.animationEasing,s=e.children,l=e.coordinate,c=e.hasPayload,u=e.isAnimationActive,h=e.offset,f=e.position,d=e.reverseDirection,p=e.useTranslate3d,m=e.viewBox,g=e.wrapperStyle,v=function(t){var e,n,r=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,s=t.reverseDirection,l=t.tooltipBox,c=t.useTranslate3d,u=t.viewBox;return{cssProperties:l.height>0&&l.width>0&&i?function(t){var e=t.translateX,n=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")}}({translateX:e=k({allowEscapeViewBox:r,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:s,tooltipDimension:l.width,viewBox:u,viewBoxDimension:u.width}),translateY:n=k({allowEscapeViewBox:r,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:s,tooltipDimension:l.height,viewBox:u,viewBoxDimension:u.height}),useTranslate3d:c}):S,cssClasses:O({translateX:e,translateY:n,coordinate:i})}}({allowEscapeViewBox:i,coordinate:l,offsetTopLeft:h,position:f,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:m}),y=v.cssClasses,b=v.cssProperties,x=A(A({transition:u&&n?"transform ".concat(o,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&c?"visible":"hidden",position:"absolute",top:0,left:0},g);return r.createElement("div",{tabIndex:-1,className:y,style:x,ref:function(e){t.wrapperNode=e}},s)}}])&&P(n.prototype,i),o&&P(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.PureComponent),R=n(59938),N=n(79799);function F(t){return F="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},F(t)}function B(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 z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?B(Object(n),!0).forEach((function(e){q(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Y(r.key),r)}}function V(t,e,n){return e=U(e),function(t,e){if(e&&("object"===F(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,W()?Reflect.construct(e,n||[],U(t).constructor):e.apply(t,n))}function W(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(W=function(){return!!t})()}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}function q(t,e,n){return(e=Y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Y(t){var e=function(t,e){if("object"!=F(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=F(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==F(e)?e:e+""}function K(t){return t.dataKey}var X=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),V(this,e,arguments)}return function(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&&$(t,e)}(e,t),n=e,(i=[{key:"render",value:function(){var t=this,e=this.props,n=e.active,i=e.allowEscapeViewBox,o=e.animationDuration,a=e.animationEasing,s=e.content,l=e.coordinate,c=e.filterNull,u=e.isAnimationActive,h=e.offset,f=e.payload,d=e.payloadUniqBy,p=e.position,m=e.reverseDirection,g=e.useTranslate3d,v=e.viewBox,b=e.wrapperStyle,x=null!=f?f:[];c&&x.length&&(x=(0,N.s)(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),d,K));var w=x.length>0;return r.createElement(D,{allowEscapeViewBox:i,animationDuration:o,animationEasing:a,isAnimationActive:u,active:n,coordinate:l,hasPayload:w,offset:h,position:p,reverseDirection:m,useTranslate3d:g,viewBox:v,wrapperStyle:b},function(t,e){return r.isValidElement(t)?r.cloneElement(t,e):"function"==typeof t?r.createElement(t,e):r.createElement(y,e)}(s,z(z({},this.props),{},{payload:x})))}}])&&H(n.prototype,i),o&&H(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.PureComponent);q(X,"displayName","Tooltip"),q(X,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!R.m.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}})},79039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},79296:(t,e,n)=>{"use strict";var r=n(4055)("span").classList,i=r&&r.constructor&&r.constructor.prototype;t.exports=i===Object.prototype?void 0:i},79306:(t,e,n)=>{"use strict";var r=n(94901),i=n(16823),o=TypeError;t.exports=function(t){if(r(t))return t;throw new o(i(t)+" is not a function")}},79432:(t,e,n)=>{"use strict";var r=n(46518),i=n(48981),o=n(71072);r({target:"Object",stat:!0,forced:n(79039)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},79472:(t,e,n)=>{"use strict";var r,i=n(44576),o=n(18745),a=n(94901),s=n(84215),l=n(82839),c=n(67680),u=n(22812),h=i.Function,f=/MSIE .\./.test(l)||"BUN"===s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));t.exports=function(t,e){var n=e?2:1;return f?function(r,i){var s=u(arguments.length,1)>n,l=a(r)?r:h(r),f=s?c(arguments,n):[],d=s?function(){o(l,this,f)}:l;return e?t(d,i):t(d)}:t}},79504:(t,e,n)=>{"use strict";var r=n(40616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);t.exports=r?a:function(t){return function(){return o.apply(t,arguments)}}},79770:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},79799:(t,e,n)=>{"use strict";n.d(e,{s:()=>s});var r=n(50014),i=n.n(r),o=n(1882),a=n.n(o);function s(t,e,n){return!0===e?i()(t,n):a()(e)?i()(t,e):t}},80079:(t,e,n)=>{var r=n(63702),i=n(70080),o=n(24739),a=n(48655),s=n(31175);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exp
25orts=l},80550:(t,e,n)=>{"use strict";var r=n(44576);t.exports=r.Promise},80631:(t,e,n)=>{var r=n(28077),i=n(49326);t.exports=function(t,e){return null!=t&&i(t,e,r)}},80741:t=>{"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},80747:(t,e,n)=>{"use strict";var r=n(66699),i=n(16193),o=n(24659),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):r(t,"stack",i(n,s)))}},80909:(t,e,n)=>{var r=n(30641),i=n(38329)(r);t.exports=i},80926:(t,e,n)=>{"use strict";var r=n(79306),i=n(48981),o=n(47055),a=n(26198),s=TypeError,l="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,u){var h=i(e),f=o(h),d=a(h);if(r(n),0===d&&c<2)throw new s(l);var p=t?d-1:0,m=t?-1:1;if(c<2)for(;;){if(p in f){u=f[p],p+=m;break}if(p+=m,t?p<0:d<=p)throw new s(l)}for(;t?p>=0:d>p;p+=m)p in f&&(u=n(u,f[p],p,h));return u}};t.exports={left:c(!1),right:c(!0)}},80945:(t,e,n)=>{var r=n(80079),i=n(68223),o=n(53661);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},81042:(t,e,n)=>{var r=n(56110)(Object,"create");t.exports=r},81174:(t,e,n)=>{"use strict";n.d(e,{E:()=>B});var r=n(96540),i=n(69843),o=n.n(i),a=n(34164),s=n(59744),l=n(59938),c=n(94501),u=n(81636);function h(t){return h="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},h(t)}function f(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(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.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}var g=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,v=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,y=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,b=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,x={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},w=Object.keys(x),S="NaN";var O=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),""===n||y.test(n)||(this.num=NaN,this.unit=""),w.includes(n)&&(this.num=function(t,e){return t*x[e]}(e,n),this.unit="px")}return e=t,r=[{key:"parse",value:function(e){var n,r=f(null!==(n=b.exec(e))&&void 0!==n?n:[],3),i=r[1],o=r[2];return new t(parseFloat(i),null!=o?o:"")}}],(n=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}();function k(t){if(t.includes(S))return S;for(var e=t;e.includes("*")||e.includes("/");){var n,r=f(null!==(n=g.exec(e))&&void 0!==n?n:[],4),i=r[1],o=r[2],a=r[3],s=O.parse(null!=i?i:""),l=O.parse(null!=a?a:""),c="*"===o?s.multiply(l):s.divide(l);if(c.isNaN())return S;e=e.replace(g,c.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var u,h=f(null!==(u=v.exec(e))&&void 0!==u?u:[],4),d=h[1],p=h[2],m=h[3],y=O.parse(null!=d?d:""),b=O.parse(null!=m?m:""),x="+"===p?y.add(b):y.subtract(b);if(x.isNaN())return S;e=e.replace(v,x.toString())}return e}var E=/\(([^()]*)\)/;function _(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=f(E.exec(e),2)[1];e=e.replace(E,k(n))}return e}(e),e=k(e)}function A(t){var e=function(t){try{return _(t)}catch(t){return S}}(t.slice(5,-1));return e===S?"":e}var P=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],M=["dx","dy","angle","className","breakAll"];function C(){return C=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},C.apply(this,arguments)}function T(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function j(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,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}
25finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(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.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var L=/[ \f\n\r\t\v\u2028\u2029]+/,D=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var i=[];return o()(e)||(i=n?e.toString().split(""):e.toString().split(L)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:(0,u.Pu)(t,r).width}})),spaceWidth:n?0:(0,u.Pu)(" ",r).width}}catch(t){return null}},R=function(t){return[{words:o()(t)?[]:t.toString().split(L)}]},N=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!l.m.isSsr){var c=D({breakAll:o,children:r,style:i});return c?function(t,e,n,r,i){var o=t.maxLines,a=t.children,l=t.style,c=t.breakAll,u=(0,s.Et)(o),h=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,s=t[t.length-1];if(s&&(null==r||i||s.width+a+n<Number(r)))s.words.push(o),s.width+=a+n;else{var l={words:[o],width:a};t.push(l)}return t}),[])},d=f(e);if(!u)return d;for(var p,m=function(t){var e=h.slice(0,t),n=D({breakAll:c,style:l,children:e+"â¦"}).wordsWithComputedWidth,i=f(n),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(r);return[a,i]},g=0,v=h.length-1,y=0;g<=v&&y<=h.length-1;){var b=Math.floor((g+v)/2),x=j(m(b-1),2),w=x[0],S=x[1],O=j(m(b),1)[0];if(w||O||(g=b+1),w&&O&&(v=b-1),!w&&O){p=S;break}y++}return p||d}({breakAll:o,children:r,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,n):R(r)}return R(r)},F="#808080",B=function(t){var e=t.x,n=void 0===e?0:e,i=t.y,o=void 0===i?0:i,l=t.lineHeight,u=void 0===l?"1em":l,h=t.capHeight,f=void 0===h?"0.71em":h,d=t.scaleToFit,p=void 0!==d&&d,m=t.textAnchor,g=void 0===m?"start":m,v=t.verticalAnchor,y=void 0===v?"end":v,b=t.fill,x=void 0===b?F:b,w=T(t,P),S=(0,r.useMemo)((function(){return N({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:p,style:w.style,width:w.width})}),[w.breakAll,w.children,w.maxLines,p,w.style,w.width]),O=w.dx,k=w.dy,E=w.angle,_=w.className,j=w.breakAll,I=T(w,M);if(!(0,s.vh)(n)||!(0,s.vh)(o))return null;var L,D=n+((0,s.Et)(O)?O:0),R=o+((0,s.Et)(k)?k:0);switch(y){case"start":L=A("calc(".concat(f,")"));break;case"middle":L=A("calc(".concat((S.length-1)/2," * -").concat(u," + (").concat(f," / 2))"));break;default:L=A("calc(".concat(S.length-1," * -").concat(u,")"))}var B=[];if(p){var z=S[0].width,H=w.width;B.push("scale(".concat(((0,s.Et)(H)?H/z:1)/z,")"))}return E&&B.push("rotate(".concat(E,", ").concat(D,", ").concat(R,")")),B.length&&(I.transform=B.join(" ")),r.createElement("text",C({},(0,c.J9)(I,!0),{x:D,y:R,className:(0,a.A)("recharts-text",_),textAnchor:g,fill:x.includes("url")?F:x}),S.map((function(t,e){var n=t.words.join(j?"":" ");return r.createElement("tspan",{x:D,dy:0===e?L:u,key:"".concat(n,"-").concat(e)},n)})))}},81278:(t,e,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(35031),a=n(25397),s=n(77347),l=n(97040);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),i=s.f,c=o(r),u={},h=0;c.length>h;)void 0!==(n=i(r,e=c[h++]))&&l(u,e,n);return u}})},81454:(t,e,n)=>{"use strict";n(61701)},81510:(t,e,n)=>{"use strict";var r=n(46518),i=n(97751),o=n(39297),a=n(655),s=n(25745),l=n(91296),c=s("string-to-symbol-registry"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=a(t);if(o(c,e))return c[e];var n=i("Symbol")(e);return c[e]=n,u[n]=e,n}})},81636:(t,e,n)=>{"use strict";n.d(e,{A3:()=>f,Pu:()=>h});var r=n(59938);function i(t){return i="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},i(t)}function o(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 a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?o(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){var r;return r=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==i(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={widthCache:{},cacheCount:0},c={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},u="recharts_measurement_span";var h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||r.m.isSsr)return{width:0,height:0};var n,i=(n=a({},e),Object.keys(n).forEach((function(t){n[t]||delete n[t]})),n),o=JSON.stringify({text:t,copyStyle:i});if(l.widthCache[o])return l.widthCache[o];try{var s=document.getElementById(u);s||((s=document.createElement("span")).setAttribute("id",u),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var h=a(a({},c),i);Object.assign(s.style,h),s.textContent="".concat(t);var f=s.getBoundingClientRect(),d={width:f.width,height:f.height};return l.widthCache[o]=d,++l.cacheCount>2e3&&(l.cacheCount=0,l.widthCache={}),d}catch(t){return{width:0,height:0}}},f=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}}},82003:(t,e,n)=>{"use strict";var r=n(46518),i=n(96395),o=n(10916).CONSTRUCTOR,a=n(80550),s=n(97751),l=n(94901),c=n(36840),u=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&l(a)){var h=s("Promise").prototype.catch;u.catch!==h&&c(u,"catch",h,{unsafe:!0})}},82199:(t,e,n)=>{var r=n(14528),i=n(56449);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},82839:(t,e,n)=>{"use strict";var r=n(44576).navigator,i=r&&r.userAgent;t.exports=i?String(i):""},83120:(t,e,n)=>{var r=n(14528),i=n(45891);t.exports=function t(e,n,o,a,s){var l=-1,c=e.length;for(o||(o=i),s||(s=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},83221:t=>{t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(!1===n(o[l],l,o))break}return e}}},83488:t=>{t.exports=function(t){return t}},83635:(t,e,n)=>{"use strict";var r=n(79039),i=n(44576).RegExp;t.exports=r((function(){var t=i(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},83851:(t,e,n)=>{"use strict";var r=n(46518),i=n(79039),o=n(25397),a=n(77347).f,s=n(43724);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},84124:(t,e,n)=>{"use strict";n.d(e,{G:()=>B});var r,i=n(96540),o=n(34164),a=n(16473),s=n(1882),l=n.n(s),c=n(94506),u=n.n(c),h=n(69843),f=n.n(h),d=n(11741),p=n.n(d),m=n(2404),g=n.n(m),v=n(29705),y=n(66613),b=n(86069),x=n(5614),w=n(59938),S=n(59744),O=n(63036),k=n(94501),E=["layout","type","stroke","connectNulls","isRange","ref"],_=["key"];function A(t){return A="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},A(t)}function P(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function M(){return M=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},M.apply(this,arguments)}function C(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 T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?C(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,F(r.key),r)}}function I(t,e,n){return e=D(e),function(t,e){if(e&&("object"===A(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,L()?Reflect.construct(e,n||[],D(t).constructor):e.apply(t,n))}function L(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(L=function(){return!!t})()}function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function R(t,e){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R(t,e)}function N(t,e,n){return(e=F(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t){var e=function(t,e){if("object"!=A(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==A(e)?e:e+""}var B=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return N(t=I(this,e,[].concat(r)),"state",{isAnimationFinished:!0}),N(t,"id",(0,S.NF)("recharts-area-")),N(t,"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),l()(e)&&e()})),N(t,"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),l()(e)&&e()})),t}return function(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&&R(t,e)}(e,t),n=e,s=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],(r=[{key:"renderDots",value:function(t,n,r){var o=this.props.isAnimationActive,a=this.state.isAnimationFinished;if(o&&!a)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,h=(0,k.J9)(this.props,!1),f=(0,k.J9)(l,!0),d=c.map((function(t,n){var r=T(T(T({key:"dot-".concat(n),r:3},h),f),{},{index:n,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:c});return e.renderDotItem(l,r)})),p={clipPath:t?"url(#clipPath-".concat(n?"":"dots-").concat(r,")"):null};return i.createElement(b.W,M({className:"recharts-area-dots"},p),d)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,o=e.strokeWidth,a=r[0].x,s=r[r.length-1].x,l=t*Math.abs(a-s),c=u()(r.map((function(t){return t.y||0}
25)));return(0,S.Et)(n)&&"number"==typeof n?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(u()(n.map((function(t){return t.y||0}))),c)),(0,S.Et)(c)?i.createElement("rect",{x:a<s?a:a-l,y:0,width:l,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,o=e.strokeWidth,a=r[0].y,s=r[r.length-1].y,l=t*Math.abs(a-s),c=u()(r.map((function(t){return t.x||0})));return(0,S.Et)(n)&&"number"==typeof n?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(u()(n.map((function(t){return t.x||0}))),c)),(0,S.Et)(c)?i.createElement("rect",{x:0,y:a<s?a:a-l,width:c+(o?parseInt("".concat(o),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n,r){var o=this.props,a=o.layout,s=o.type,l=o.stroke,c=o.connectNulls,u=o.isRange,h=(o.ref,P(o,E));return i.createElement(b.W,{clipPath:n?"url(#clipPath-".concat(r,")"):null},i.createElement(v.I,M({},(0,k.J9)(h,!0),{points:t,connectNulls:c,type:s,baseLine:e,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==l&&i.createElement(v.I,M({},(0,k.J9)(this.props,!1),{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:t})),"none"!==l&&u&&i.createElement(v.I,M({},(0,k.J9)(this.props,!1),{className:"recharts-area-curve",layout:a,type:s,connectNulls:c,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,r=this.props,o=r.points,s=r.baseLine,l=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,h=r.animationEasing,d=r.animationId,m=this.state,g=m.prevPoints,v=m.prevBaseLine;return i.createElement(a.Ay,{begin:c,duration:u,isActive:l,easing:h,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(g){var l,c=g.length/o.length,u=o.map((function(t,e){var n=Math.floor(e*c);if(g[n]){var r=g[n],i=(0,S.Dj)(r.x,t.x),o=(0,S.Dj)(r.y,t.y);return T(T({},t),{},{x:i(a),y:o(a)})}return t}));return l=(0,S.Et)(s)&&"number"==typeof s?(0,S.Dj)(v,s)(a):f()(s)||p()(s)?(0,S.Dj)(v,0)(a):s.map((function(t,e){var n=Math.floor(e*c);if(v[n]){var r=v[n],i=(0,S.Dj)(r.x,t.x),o=(0,S.Dj)(r.y,t.y);return T(T({},t),{},{x:i(a),y:o(a)})}return t})),n.renderAreaStatically(u,l,t,e)}return i.createElement(b.W,null,i.createElement("defs",null,i.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(a))),i.createElement(b.W,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(o,s,t,e)))}))}},{key:"renderArea",value:function(t,e){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,s=a.prevPoints,l=a.prevBaseLine,c=a.totalLength;return o&&r&&r.length&&(!s&&c>0||!g()(s,r)||!g()(l,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,a=e.points,s=e.className,l=e.top,c=e.left,u=e.xAxis,h=e.yAxis,d=e.width,p=e.height,m=e.isAnimationActive,g=e.id;if(n||!a||!a.length)return null;var v=this.state.isAnimationFinished,y=1===a.length,w=(0,o.A)("recharts-area",s),S=u&&u.allowDataOverflow,O=h&&h.allowDataOverflow,E=S||O,_=f()(g)?this.id:g,A=null!==(t=(0,k.J9)(r,!1))&&void 0!==t?t:{r:3,strokeWidth:2},P=A.r,M=void 0===P?3:P,C=A.strokeWidth,T=void 0===C?2:C,j=((0,k.sT)(r)?r:{}).clipDot,I=void 0===j||j,L=2*M+T;return i.createElement(b.W,{className:w},S||O?i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath-".concat(_)},i.createElement("rect",{x:S?c:c-d/2,y:O?l:l-p/2,width:S?d:2*d,height:O?p:2*p})),!I&&i.createElement("clipPath",{id:"clipPath-dots-".concat(_)},i.createElement("rect",{x:c-L/2,y:l-L/2,width:d+L,height:p+L}))):null,y?null:this.renderArea(E,_),(r||y)&&this.renderDots(E,I,_),(!m||v)&&x.Z.renderCallByParent(this.props,a))}}])&&j(n.prototype,r),s&&j(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(i.PureComponent);r=B,N(B,"displayName","Area"),N(B,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendT
25ype:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!w.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),N(B,"getBaseValue",(function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,s=null!=a?a:o;if((0,S.Et)(s)&&"number"==typeof s)return s;var l="horizontal"===i?r:n,c=l.scale.domain();if("number"===l.type){var u=Math.max(c[0],c[1]),h=Math.min(c[0],c[1]);return"dataMin"===s?h:"dataMax"===s||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]})),N(B,"getComposedData",(function(t){var e,n=t.props,i=t.item,o=t.xAxis,a=t.yAxis,s=t.xAxisTicks,l=t.yAxisTicks,c=t.bandSize,u=t.dataKey,h=t.stackedData,f=t.dataStartIndex,d=t.displayedData,p=t.offset,m=n.layout,g=h&&h.length,v=r.getBaseValue(n,i,o,a),y="horizontal"===m,b=!1,x=d.map((function(t,e){var n;g?n=h[f+e]:(n=(0,O.kr)(t,u),Array.isArray(n)?b=!0:n=[v,n]);var r=null==n[1]||g&&null==(0,O.kr)(t,u);return y?{x:(0,O.nb)({axis:o,ticks:s,bandSize:c,entry:t,index:e}),y:r?null:a.scale(n[1]),value:n,payload:t}:{x:r?null:o.scale(n[1]),y:(0,O.nb)({axis:a,ticks:l,bandSize:c,entry:t,index:e}),value:n,payload:t}}));return e=g||b?x.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return y?{x:t.x,y:null!=e&&null!=t.y?a.scale(e):null}:{x:null!=e?o.scale(e):null,y:t.y}})):y?a.scale(v):o.scale(v),T({points:x,baseLine:e,layout:m,isRange:b},p)})),N(B,"renderDotItem",(function(t,e){var n;if(i.isValidElement(t))n=i.cloneElement(t,e);else if(l()(t))n=t(e);else{var r=(0,o.A)("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,s=P(e,_);n=i.createElement(y.c,M({},s,{key:a,className:r}))}return n}))},84185:(t,e,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(24913).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},84215:(t,e,n)=>{"use strict";var r=n(44576),i=n(82839),o=n(22195),a=function(t){return i.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},84247:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},84270:(t,e,n)=>{"use strict";var r=n(69565),i=n(94901),o=n(20034),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},84428:(t,e,n)=>{"use strict";var r=n(78227)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!i)return!1}catch(t){return!1}var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},84549:(t,e,n)=>{"use strict";var r=n(44576);t.exports=function(t,e){var n=r.Iterator,i=n&&n.prototype,o=i&&i[t],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(t){t instanceof e||(a=!1)}if(!a)return o}},84606:(t,e,n)=>{"use strict";var r=n(16823),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},85015:(t,e,n)=>{var r=n(72552),i=n(56449),o=n(40346);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},85463:t=>{t.exports=function(t){return t!=t}},85508:(t,e,n)=>{var r=n(86151),i=n(36800),o=n(17400);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?e<n?1:-1:o(a),r(e,n,a,t)}}},86009:(t,e,n)=>{t=n.nmd(t);var r=n(34840),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},86069:(t,e,n)=>{"use strict";n.d(e,{W:()=>c});var r=n(96540),i=n(34164),o=n(94501),a=["children","className"];function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function l(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c=r.forwardRef((function(t,e){var n=t.children,c=t.className,u=l(t,a),h=(0,i.A)("recharts-layer",c);return r.createElement("g",s({className:h},(0,o.J9)(u,!0),{ref:e}),n)}))},86151:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=n(e((r-t)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=i;return l}},86649:(t,e,n)=>{var r=n(83221)();t.exports=r},86938:(t,e,n)=>{"use strict";var r=n(2360),i=n(62106),o=n(56279),a=n(76080),s=n(90679),l=n(64117),c=n(72652),u=n(51088),h=n(62529),f=n(87633),d=n(43724),p=n(3451).fastKey,m=n(91181),g=m.set,v=m.getterFor;t.exports={getConstructor:function(t,e,n,u){var h=t((function(t,i){s(t,f),g(t,{type:e,index:r(null),first:null,last:null,size:0}),d||(t.size=0),l(i)||c(i,t[u],{that:t,AS_ENTRIES:n})})),f=h.prototype,m=v(e),y=function(t,e,n){var r,i,o=m(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,
25next:null,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=m(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return o(f,{clear:function(){for(var t=m(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=r(null),d?t.size=0:this.size=0},delete:function(t){var e=this,n=m(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=m(this),r=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),o(f,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),d&&i(f,"size",{configurable:!0,get:function(){return m(this).size}}),h},setStrong:function(t,e,n){var r=e+" Iterator",i=v(e),o=v(r);u(t,e,(function(t,e){g(this,{type:r,target:t,state:i(t),kind:e,last:null})}),(function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?h("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,h(void 0,!0))}),n?"entries":"values",!n,!0),f(e)}}},87068:(t,e,n)=>{var r=n(37217),i=n(25911),o=n(21986),a=n(50689),s=n(5861),l=n(56449),c=n(3656),u=n(37167),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,g,v){var y=l(t),b=l(e),x=y?f:s(t),w=b?f:s(e),S=(x=x==h?d:x)==d,O=(w=w==h?d:w)==d,k=x==w;if(k&&c(t)){if(!c(e))return!1;y=!0,S=!1}if(k&&!S)return v||(v=new r),y||u(t)?i(t,e,n,m,g,v):o(t,e,x,n,m,g,v);if(!(1&n)){var E=S&&p.call(t,"__wrapped__"),_=O&&p.call(e,"__wrapped__");
vendor: 3,123 bytes, line 25
25if(E||_){var A=E?t.value():t,P=_?e.value():e;return v||(v=new r),g(A,P,n,m,v)}}return!!k&&(v||(v=new r),a(t,e,n,m,g,v))}},87296:(t,e,n)=>{var r,i=n(55481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},87433:(t,e,n)=>{"use strict";var r=n(34376),i=n(33517),o=n(20034),a=n(78227)("species"),s=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===s||r(e.prototype))||o(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},87633:(t,e,n)=>{"use strict";var r=n(97751),i=n(62106),o=n(78227),a=n(43724),s=o("species");t.exports=function(t){var e=r(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},87978:(t,e,n)=>{var r=n(60270),i=n(58156),o=n(80631),a=n(28586),s=n(30756),l=n(67197),c=n(77797);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},88431:(t,e,n)=>{"use strict";var r=n(46518),i=n(59213).every;r({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},88652:(t,e,n)=>{"use strict";n.d(e,{r:()=>o});var r=n(5305),i=n(6463);function o(t,e,n){const[o,a]=(0,r.x)(n?.in,t,e);return+(0,i.o)(o)==+(0,i.o)(a)}},88727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88984:(t,e,n)=>{var r=n(55527),i=n(3650),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},89228:(t,e,n)=>{"use strict";n(27495);var r=n(69565),i=n(36840),o=n(57323),a=n(79039),s=n(78227),l=n(66699),c=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,h){var f=s(t),d=!a((function(){var e={};return e[f]=function(){return 7},7!==""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!p||n){var m=/./[f],g=e(f,""[t],(function(t,e,n,i,a){var s=e.exec;return s===o||s===u.exec?d&&!a?{done:!0,value:r(m,e,n,i)}:{done:!0,value:r(t,n,e,i)}:{done:!1}}));i(String.prototype,t,g[0]),i(u,f,g[1])}h&&l(u[f],"sham",!0)}},89463:(t,e,n)=>{"use strict";var r=n(46518),i=n(43724),o=n(44576),a=n(79504),s=n(39297),l=n(94901),c=n(1625),u=n(655),h=n(62106),f=n(77740),d=o.Symbol,p=d&&d.prototype;if(i&&l(d)&&(!("description"in p)||void 0!==d().description)){var m={},g=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=c(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(m[e]=!0),e};f(g,d),g.prototype=p,p.constructor=g;var v="Symbol(description detection)"===String(d("description detection")),y=a(p.valueOf),b=a(p.toString),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),S=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=y(this);if(s(m,t))return"";var e=b(t),n=v?S(e,7,-1):w(e,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},89544:(t,e,n)=>{"use strict";var r=n(82839);
25t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},89572:(t,e,n)=>{"use strict";var r=n(39297),i=n(36840),o=n(53640),a=n(78227)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},89935:t=>{t.exports=function(){return!1}},90235:(t,e,n)=>{"use strict";var r=n(59213).forEach,i=n(34598)("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},90289:(t,e,n)=>{var r=n(12651);t.exports=function(t){return r(this,t).get(t)}},90537:(t,e,n)=>{"use strict";var r=n(80550),i=n(84428),o=n(10916).CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},90679:(t,e,n)=>{"use strict";var r=n(1625),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new i("Incorrect invocation")}},90706:(t,e,n)=>{"use strict";n.d(e,{i:()=>H});var r=n(96540),i=n(55808),o=n.n(i);Math.abs,Math.atan2;const a=Math.cos,s=(Math.max,Math.min,Math.sin),l=Math.sqrt,c=Math.PI,u=2*c;const h={draw(t,e){const n=l(e/c);t.moveTo(n,0),t.arc(0,0,n,0,u)}},f={draw(t,e){const n=l(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},d=l(1/3),p=2*d,m={draw(t,e){const n=l(e/p),r=n*d;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},g={draw(t,e){const n=l(e),r=-n/2;t.rect(r,r,n,n)}},v=s(c/10)/s(7*c/10),y=s(u/10)*v,b=-a(u/10)*v,x={draw(t,e){const n=l(.8908130915292852*e),r=y*n,i=b*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=u*e/5,l=a(o),c=s(o);t.lineTo(c*n,-l*n),t.lineTo(l*r-c*i,c*r+l*i)}t.closePath()}},w=l(3),S={draw(t,e){const n=-l(e/(3*w));t.moveTo(0,2*n),t.lineTo(-w*n,-n),t.lineTo(w*n,-n),t.closePath()}},O=-.5,k=l(3)/2,E=1/l(12),_=3*(E/2+1),A={draw(t,e){const n=l(e/_),r=n/2,i=n*E,o=r,a=n*E+n,s=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,c),t.lineTo(O*r-k*i,k*r+O*i),t.lineTo(O*o-k*a,k*o+O*a),t.lineTo(O*s-k*c,k*s+O*c),t.lineTo(O*r+k*i,O*i-k*r),t.lineTo(O*o+k*a,O*a-k*o),t.lineTo(O*s+k*c,O*c-k*s),t.closePath()}};var P=n(48946),M=n(11509);l(3),l(3);var C=n(34164),T=n(94501);function j(t){return j="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},j(t)}var I=["type","size","sizeType"];function L(){return L=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},L.apply(this,arguments)}function D(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 R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){N(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function N(t,e,n){var r;return r=function(t,e){if("object"!=j(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==j(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function F(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var B={symbolCircle:h,symbolCross:f,symbolDiamond:m,symbolSquare:g,symbolStar:x,symbolTriangle:S,symbolWye:A},z=Math.PI/180,H=function(t){var e,n,i=t.type,a=void 0===i?"circle":i,s=t.size,l=void 0===s?64:s,
25c=t.sizeType,u=void 0===c?"area":c,f=R(R({},F(t,I)),{},{type:a,size:l,sizeType:u}),d=f.className,p=f.cx,m=f.cy,g=(0,T.J9)(f,!0);return p===+p&&m===+m&&l===+l?r.createElement("path",L({},g,{className:(0,C.A)("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(m,")"),d:(e=function(t){var e="symbol".concat(o()(t));return B[e]||h}(a),n=function(t,e){let n=null,r=(0,M.i)(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:(0,P.A)(t||h),e="function"==typeof e?e:(0,P.A)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,P.A)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,P.A)(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i}().type(e).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*z;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(l,u,a)),n())})):null};H.registerSymbol=function(t,e){B["symbol".concat(o()(t))]=e}},90757:t=>{"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},90906:(t,e,n)=>{"use strict";n(27495);var r,i,o=n(46518),a=n(69565),s=n(94901),l=n(28551),c=n(655),u=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),h=/./.test;o({target:"RegExp",proto:!0,forced:!u},{test:function(t){var e=l(this),n=c(t),r=e.exec;if(!s(r))return a(h,e,n);var i=a(r,e,n);return null!==i&&(l(i),!0)}})},90916:(t,e,n)=>{var r=n(80909);t.exports=function(t,e){var n;return r(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}},90938:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},91033:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},91181:(t,e,n)=>{"use strict";var r,i,o,a=n(58622),s=n(44576),l=n(20034),c=n(66699),u=n(39297),h=n(77629),f=n(66119),d=n(30421),p="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||h.state){var v=h.state||(h.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,r=function(t,e){if(v.has(t))throw new m(p);return e.facade=t,v.set(t,e),e},i=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var y=f("state");d[y]=!0,r=function(t,e){if(u(t,y))throw new m(p);return e.facade=t,c(t,y,e),e},i=function(t){return u(t,y)?t[y]:{}},o=function(t){return u(t,y)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=i(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}}}},91291:(t,e,n)=>{"use strict";var r=n(80741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},91296:(t,e,n)=>{"use strict";var r=n(4495);t.exports=r&&!!Symbol.for&&!!Symbol.keyFor},91385:(t,e,n)=>{"use strict";var r=n(9539);t.exports=function(t,e,n){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{n=r(t[i].iterator,e,n)}catch(t){e="throw",n=t}if("throw"===e)throw n;return n}},91625:(t,e,n)=>{"use strict";var r=n(79504),i=n(56279),o=n(3451).getWeakData,a=n(90679),s=n(28551),l=n(64117),c=n(20034),u=n(72652),h=n(59213),f=n(39297),d=n(91181),p=d.set,m=d.getterFor,g=h.find,v=h.findIndex,y=r([].splice),b=0,x=function(t){return t.frozen||(t.frozen=new w)},w=function(){this.entries=[]},S=function(t,e){return g(t.entries,(function(t){return t[0]===e}))};w.prototype={get:function(t){var e=S(this,t);if(e)return e[1]},has:function(t){return!!S(this,t)},set:function(t,e){var n=S(this,t);n?n[1]=e:this.entries.push([t,e])},delete:function(t){var e=v(this.entries,(function(e){return e[0]===t}));return~e&&y(this.entries,e,1),!!~e}},t.exports={getConstructor:function(t,e,n,r){var h=t((function(t,i){a(t,d),p(t,{type:e,id:b++,frozen:null}),l(i)||u(i,t[r],{that:t,AS_ENTRIES:n})})),d=h.prototype,g=m(e),v=function(t,e,n){var r=g(t),i=o(s(e),!0);return!0===i?x(r).set(e,n):i[r.id]=n,t};return i(d,{delete:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?x(e).delete(t):n&&f(n,e.id)&&delete n[e.id]},has:function(t){var e=g(this);if(!c(t))return!1;var n=o(t);return!0===n?x(e).has(t):n&&f(n,e.id)}}),i(d,n?{get:function(t){var e=g(this);if(c(t)){var n=o(t);if(!0===n)return x(e).get(t);if(n)return n[e.id]}},set:function(t,e){return v(this,t,e)}}:{add:function(t){return v(this,t,!0)}}),h}}},91706:(t,e,n)=>{"use strict";n.d(e,{J:()=>M});var r=n(96540),i=n(69843),o=n.n(i),a=n(1882),s=n.n(a),l=n(23805),c=n.n(l),u=n(34164),h=n(81174),f=n(94501),d=n(59744),p=n(14040);function m(t){return m="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},m(t)}
25var g=["offset"];function v(t){return function(t){if(Array.isArray(t))return y(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)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(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 y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function b(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function x(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 w(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){S(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function S(t,e,n){var r;return r=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==m(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}var k=function(t){var e=t.value,n=t.formatter,r=o()(t.children)?e:t.children;return s()(n)?n(r):r},E=function(t,e,n){var i,a,s=t.position,l=t.viewBox,c=t.offset,h=t.className,f=l,m=f.cx,g=f.cy,v=f.innerRadius,y=f.outerRadius,b=f.startAngle,x=f.endAngle,w=f.clockWise,S=(v+y)/2,k=function(t,e){return(0,d.sA)(e-t)*Math.min(Math.abs(e-t),360)}(b,x),E=k>=0?1:-1;"insideStart"===s?(i=b+E*c,a=w):"insideEnd"===s?(i=x-E*c,a=!w):"end"===s&&(i=x+E*c,a=w),a=k<=0?a:!a;var _=(0,p.IZ)(m,g,S,i),A=(0,p.IZ)(m,g,S,i+359*(a?1:-1)),P="M".concat(_.x,",").concat(_.y,"\n A").concat(S,",").concat(S,",0,1,").concat(a?0:1,",\n ").concat(A.x,",").concat(A.y),M=o()(t.id)?(0,d.NF)("recharts-radial-line-"):t.id;return r.createElement("text",O({},n,{dominantBaseline:"central",className:(0,u.A)("recharts-radial-bar-label",h)}),r.createElement("defs",null,r.createElement("path",{id:M,d:P})),r.createElement("textPath",{xlinkHref:"#".concat(M)},e))},_=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e,o=i.cx,a=i.cy,s=i.innerRadius,l=i.outerRadius,c=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=(0,p.IZ)(o,a,l+n,c),h=u.x;return{x:h,y:u.y,textAnchor:h>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=(s+l)/2,d=(0,p.IZ)(o,a,f,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},A=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e,a=o.x,s=o.y,l=o.width,u=o.height,h=u>=0?1:-1,f=h*r,p=h>0?"end":"start",m=h>0?"start":"end",g=l>=0?1:-1,v=g*r,y=g>0?"end":"start",b=g>0?"start":"end";if("top"===i)return w(w({},{x:a+l/2,y:s-h*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:l}:{});if("bottom"===i)return w(w({},{x:a+l/2,y:s+u+f,textAnchor:"middle",verticalAnchor:m}),n?{height:Math.max(n.y+n.height-(s+u),0),width:l}:{});if("left"===i){var x={x:a-v,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return w(w({},x),n?{width:Math.max(x.x-n.x,0),height:u}:{})}if("right"===i){var S={x:a+l+v,y:s+u/2,textAnchor:b,verticalAnchor:"middle"};return w(w({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:u}:{})}var O=n?{width:l,height:u}:{};return"insideLeft"===i?w({x:a+v,y:s+u/2,textAnchor:b,verticalAnchor:"middle"},O):"insideRight"===i?w({x:a+l-v,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},O):"insideTop"===i?w({x:a+l/2,y:s+f,textAnchor:"middle",verticalAnchor:m},O):"insideBottom"===i?w({x:a+l/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},O):"insideTopLeft"===i?w({x:a+v,y:s+f,textAnchor:b,verticalAnchor:m},O):"insideTopRight"===i?w({x:a+l-v,y:s+f,textAnchor:y,verticalAnchor:m},O):"insideBottomLeft"===i?w({x:a+v,y:s+u-f,textAnchor:b,verticalAnchor:p},O):"insideBottomRight"===i?w({x:a+l-v,y:s+u-f,textAnchor:y,verticalAnchor:p},O):c()(i)&&((0,d.Et)(i.x)||(0,d._3)(i.x))&&((0,d.Et)(i.y)||(0,d._3)(i.y))?w({x:a+(0,d.F4)(i.x,l),y:s+(0,d.F4)(i.y,u),textAnchor:"end",verticalAnchor:"end"},O):w({x:a+l/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},O)},P=function(t){return"cx"in t&&(0,d.Et)(t.cx)};function M(t){var e,n=t.offset,i=w({offset:void 0===n?5:n},b(t,g)),a=i.viewBox,l=i.position,c=i.value,d=i.children,p=i.content,m=i.className,v=void 0===m?"":m,y=i.textBreakAll;if(!a||o()(c)&&o()(d)&&!(0,r.isValidElement)(p)&&!s()(p))return null;if((0,r.isValidElement)(p))return(0,r.cloneElement)(p,i);if(s()(p)){if(e=(0,r.createElement)(p,i),(0,r.isValidElement)(e))return e}else e=k(i);var x=P(a),S=(0,f.J9)(i,!0);if(x&&("insideStart"===l||"insideEnd"===l||"end"===l))return E(i,e,S);var M=x?_(i):A(i);return r.createElement(h.E,O({className:(0,u.A)("recharts-label",v)},S,M,{breakAll:y}),e)}M.displayName="Label";var C=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,l=t.innerRadius,c=t.outerRadius,u=t.x,h=t.y,f=t.top,p=t.left,m=t.width,g=t.height,v=t.clockWise,y=t.labelViewBox;if(y)return y;if((0,d.Et)(m)&&(0,d.Et)(g)){if((0,d.Et)(u)&&(0,d.Et)(h))return{x:u,y:h,width:m,height:g};if((0,d.Et)(f)&&(0,d.Et)(p))return{x:f,y:p,width:m,height:g}}return(0,d.Et)(u)&&(0,d.Et)(h)?{x:u,y:h,width:0,height:0}:(0,d.Et)(e)&&(0,d.Et)(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:c||s||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};M.parseViewBox=C,M.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=C(t),a=(0,f.aS)(i,M).map((function(t,n){return(0,r.cloneElement)(t,{viewB
25ox:e||o,key:"label-".concat(n)})}));if(!n)return a;var l=function(t,e){return t?!0===t?r.createElement(M,{key:"label-implicit",viewBox:e}):(0,d.vh)(t)?r.createElement(M,{key:"label-implicit",viewBox:e,value:t}):(0,r.isValidElement)(t)?t.type===M?(0,r.cloneElement)(t,{key:"label-implicit",viewBox:e}):r.createElement(M,{key:"label-implicit",content:t,viewBox:e}):s()(t)?r.createElement(M,{key:"label-implicit",content:t,viewBox:e}):c()(t)?r.createElement(M,O({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||o);return[l].concat(v(a))}},91955:(t,e,n)=>{"use strict";var r,i,o,a,s,l=n(44576),c=n(93389),u=n(76080),h=n(59225).set,f=n(18265),d=n(89544),p=n(44265),m=n(7860),g=n(38574),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,x=l.Promise,w=c("queueMicrotask");if(!w){var S=new f,O=function(){var t,e;for(g&&(t=b.domain)&&t.exit();e=S.get();)try{e()}catch(t){throw S.head&&r(),t}t&&t.enter()};d||g||m||!v||!y?!p&&x&&x.resolve?((a=x.resolve(void 0)).constructor=x,s=u(a.then,a),r=function(){s(O)}):g?r=function(){b.nextTick(O)}:(h=u(h,l),r=function(){h(O)}):(i=!0,o=y.createTextNode(""),new v(O).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(t){S.head||r(),S.add(t)}}t.exports=w},92140:(t,e,n)=>{"use strict";var r={};r[n(78227)("toStringTag")]="z",t.exports="[object z]"===String(r)},92354:(t,e,n)=>{"use strict";function r(t,e){t.split(/\s+/).forEach((t=>{e(t)}))}n.d(e,{A:()=>Lt});class i{constructor(){this._events={}}on(t,e){r(t,(t=>{const n=this._events[t]||[];n.push(e),this._events[t]=n}))}off(t,e){var n=arguments.length;0!==n?r(t,(t=>{if(1===n)return void delete this._events[t];const r=this._events[t];void 0!==r&&(r.splice(r.indexOf(e),1),this._events[t]=r)})):this._events={}}trigger(t,...e){var n=this;r(t,(t=>{const r=n._events[t];void 0!==r&&r.forEach((t=>{t.apply(n,e)}))}))}}const o=t=>(t=t.filter(Boolean)).length<2?t[0]||"":1==u(t)?"["+t.join("")+"]":"(?:"+t.join("|")+")",a=t=>{if(!l(t))return t.join("");let e="",n=0;const r=()=>{n>1&&(e+="{"+n+"}")};return t.forEach(((i,o)=>{i!==t[o-1]?(r(),e+=i,n=1):n++})),r(),e},s=t=>{let e=Array.from(t);return o(e)},l=t=>new Set(t).size!==t.length,c=t=>(t+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),u=t=>t.reduce(((t,e)=>Math.max(t,h(e))),0),h=t=>Array.from(t).length,f=t=>
25{if(1===t.length)return[[t]];let e=[];const n=t.substring(1);return f(n).forEach((function(n){let r=n.slice(0);r[0]=t.charAt(0)+r[0],e.push(r),r=n.slice(0),r.unshift(t.charAt(0)),e.push(r)})),e},d=[[0,65535]];let p,m;const g={},v={"/":"ââ",0:"ß",a:"â±¥ÉÉ",aa:"ê³",ae:"æǽǣ",ao:"êµ",au:"ê·",av:"ê¹ê»",ay:"ê½",b:"ÆÉÆ",c:"ê¿ÆÈ¼â",d:"ÄÉÉá´
Æê®·Ôɦ",e:"ÉÇá´É",f:"ê¼Æ",g:"Ç¥É ê¡áµ¹ê¿É¢",h:"ħⱨⱶɥ",i:"ɨı",j:"ÉÈ·",k:"Æâ±ªêêê
ê£",l:"ÅÆÉ«â±¡êêêÉ",m:"ɱɯϻ",n:"ê¥ÆÉ²êá´Ð»Ô",o:"øǿÉɵêêá´",oe:"Å",oi:"Æ£",oo:"ê",ou:"È£",p:"ƥᵽêêêÏ",q:"êêÉ",r:"Éɽêê§ê",s:"ÃÈ¿ê©ê
Ê",t:"ŧÆÊⱦê",th:"þ",tz:"ê©",u:"Ê",v:"ÊêÊ",vy:"ê¡",w:"â±³",y:"Æ´Éỿ",z:"ƶȥÉⱬê£",hv:"Æ"};for(let t in v){let e=v[t]||"";for(let n=0;n<e.length;n++){let r=e.substring(n,n+1);g[r]=t}}const y=new RegExp(Object.keys(g).join("|")+"|[Ì-ͯ·ʾʼ]","gu"),b=(t,e="NFKD")=>t.normalize(e),x=t=>Array.from(t).reduce(((t,e)=>t+w(e)),""),w=t=>(t=b(t).toLowerCase().replace(y,(t=>g[t]||"")),b(t,"NFC"));const S=t=>{const e={},n=(t,n)=>{const r=e[t]||new Set,i=new RegExp("^"+s(r)+"$","iu");n.match(i)||(r.add(c(n)),e[t]=r)};for(let e of function*(t){for(const[e,n]of t)for(let t=e;t<=n;t++){let e=String.fromCharCode(t),n=x(e);n!=e.toLowerCase()&&(n.length>3||0!=n.length&&(yield{folded:n,composed:e,code_point:t}))}}(t))n(e.folded,e.folded),n(e.folded,e.composed);return e},O=t=>{const e=S(t),n={};let r=[];for(let t in e){let i=e[t];i&&(n[t]=s(i)),t.length>1&&r.push(c(t))}r.sort(((t,e)=>e.length-t.length));const i=o(r);return m=new RegExp("^"+i,"u"),n},k=(t,e=1)=>(e=Math.max(e,t.length-1),o(f(t).map((t=>((t,e=1)=>{let n=0;return t=t.map((t=>(p[t]&&(n+=t.length),p[t]||t))),n>=e?a(t):""})(t,e))))),E=(t,e=!0)=>{let n=t.length>1?1:0;return o(t.map((t=>{let r=[];const i=e?t.length():t.length()-1;for(let e=0;e<i;e++)r.push(k(t.substrs[e]||"",n));return a(r)})))},_=(t,e)=>{for(const n of e){if(n.start!=t.start||n.end!=t.end)continue;if(n.substrs.join("")!==t.substrs.join(""))continue;let e=t.parts;const r=t=>{for(const n of e){if(n.start===t.start&&n.substr===t.substr)return!1;if(1!=t.length&&1!=n.length){if(t.start<n.start&&t.end>n.start)return!0;if(n.start<t.start&&n.end>t.start)return!0}}return!1};if(!(n.parts.filter(r).length>0))return!0}return!1};class A{parts;substrs;start;end;constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(t){t&&(this.parts.push(t),this.substrs.push(t.substr),this.start=Math.min(t.start,this.start),this.end=Math.max(t.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(t,e){let n=new A,r=JSON.parse(JSON.stringify(this.parts)),i=r.pop();for(const t of r)n.add(t);let o=e.substr.substring(0,t-i.start),a=o.length;return n.add({start:i.start,end:i.start+a,length:a,substr:o}),n}}const P=t=>{var e;void 0===p&&(p=O(e||d)),t=x(t);let n="",r=[new A];for(let e=0;e<t.length;e++){let i=t.substring(e).match(m);const o=t.substring(e,e+1),a=i?i[0]:null;let s=[],l=new Set;for(const t of r){const n=t.last();if(!n||1==n.length||n.end<=e)if(a){const n=a.length;t.add({start:e,end:e+n,length:n,substr:a}),l.add("1")}else t.add({start:e,end:e+1,length:1,substr:o}),l.add("2");else if(a){let r=t.clone(e,n);const i=a.length;r.add({start:e,end:e+i,length:i,substr:a}),s.push(r)}else l.add("3")}if(s.length>0){s=s.sort(((t,e)=>t.length()-e.length()));for(let t of s)_(t,r)||r.push(t)}else if(e>0&&1==l.size&&!l.has("3")){n+=E(r,!1);let t=new A;const e=r[0];e&&t.add(e.last()),r=[t]}}return n+=E(r,!0),n},M=(t,e)=>{if(t)return t[e]},C=(t,e)=>{if(t){for(var n,r=e.split(".");(n=r.shift())&&(t=t[n]););return t}},T=(t,e,n)=>{var r,i;return t?(t+="",null==e.regex||-1===(i=t.search(e.regex))?0:(r=e.string.length/t.length,0===i&&(r+=.5),r*n)):0},j=(t,e)=>{var n=t[e];if("function"==typeof n)return n;n&&!Array.isArray(n)&&(t[e]=[n])},I=(t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},L=(t,e)=>"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=x(t+"").toLowerCase())>(e=x(e+"").toLowerCase())?1:e>t?-1:0;class D{items;settings;constructor(t,e){this.items=t,this.settings=e||{diacritics:!0}}tokenize(t,e,n){if(!t||!t.length)return[];const r=[],i=t.split(/\s+/);var o;return n&&(o=new RegExp("^("+Object.keys(n).map(c).join("|")+"):(.*)$")),i.forEac
25h((t=>{let n,i=null,a=null;o&&(n=t.match(o))&&(i=n[1],t=n[2]),t.length>0&&(a=this.settings.diacritics?P(t)||null:c(t),a&&e&&(a="\\b"+a)),r.push({string:t,regex:a?new RegExp(a,"iu"):null,field:i})})),r}getScoreFunction(t,e){var n=this.prepareSearch(t,e);return this._getScoreFunction(n)}_getScoreFunction(t){const e=t.tokens,n=e.length;if(!n)return function(){return 0};const r=t.options.fields,i=t.weights,o=r.length,a=t.getAttrFn;if(!o)return function(){return 1};const s=1===o?function(t,e){const n=r[0].field;return T(a(e,n),t,i[n]||1)}:function(t,e){var n=0;if(t.field){const r=a(e,t.field);!t.regex&&r?n+=1/o:n+=T(r,t,1)}else I(i,((r,i)=>{n+=T(a(e,i),t,r)}));return n/o};return 1===n?function(t){return s(e[0],t)}:"and"===t.options.conjunction?function(t){var r,i=0;for(let n of e){if((r=s(n,t))<=0)return 0;i+=r}return i/n}:function(t){var r=0;return I(e,(e=>{r+=s(e,t)})),r/n}}getSortFunction(t,e){var n=this.prepareSearch(t,e);return this._getSortFunction(n)}_getSortFunction(t){var e,n=[];const r=this,i=t.options,o=!t.query&&i.sort_empty?i.sort_empty:i.sort;if("function"==typeof o)return o.bind(this);const a=function(e,n){return"$score"===e?n.score:t.getAttrFn(r.items[n.id],e)};if(o)for(let e of o)(t.query||"$score"!==e.field)&&n.push(e);if(t.query){e=!0;for(let t of n)if("$score"===t.field){e=!1;break}e&&n.unshift({field:"$score",direction:"desc"})}else n=n.filter((t=>"$score"!==t.field));return n.length?function(t,e){var r,i;for(let o of n){if(i=o.field,r=("desc"===o.direction?-1:1)*L(a(i,t),a(i,e)))return r}return 0}:null}prepareSearch(t,e){const n={};var r=Object.assign({},e);if(j(r,"sort"),j(r,"sort_empty"),r.fields){j(r,"fields");const t=[];r.fields.forEach((e=>{"string"==typeof e&&(e={field:e,weight:1}),t.push(e),n[e.field]="weight"in e?e.weight:1})),r.fields=t}return{options:r,query:t.toLowerCase().trim(),tokens:this.tokenize(t,r.respect_word_boundaries,n),total:0,items:[],weights:n,getAttrFn:r.nesting?C:M}}search(t,e){var n,r,i=this;r=this.prepareSearch(t,e),e=r.options,t=r.query;const o=e.score||i._getScoreFunction(r);t.length?I(i.items,((t,i)=>{n=o(t),(!1===e.filter||n>0)&&r.items.push({score:n,id:i})})):I(i.items,((t,e)=>{r.items.push({score:1,id:e})}));const a=i._getSortFunction(r);return a&&r.items.sort(a),r.total=r.items.length,"number"==typeof e.limit&&(r.items=r.items.slice(0,e.limit)),r}}const R=t=>null==t?null:N(t),N=t=>"boolean"==typeof t?t?"1":"0":t+"",F=t=>(t+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""),B=(t,e)=>{var n;return function(r,i){var o=this;n&&(o.loading=Math.max(o.loading-1,0),clearTimeout(n)),n=setTimeout((function(){n=null,o.loadedSearches[r]=!0,t.call(o,r,i)}),e)}},z=(t,e,n)=>{var r,i=t.trigger,o={};for(r of(t.trigger=function(){var n=arguments[0];if(-1===e.indexOf(n))return i.apply(t,arguments);o[n]=arguments},n.apply(t,[]),t.trigger=i,e))r in o&&i.apply(t,o[r])},H=(t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())},V=(t,e,n,r)=>{t.addEventListener(e,n,r)},W=(t,e)=>!!e&&(!!e[t]&&1===(e.altKey?1:0)+(e.ctrlKey?1:0)+(e.shiftKey?1:0)+(e.metaKey?1:0)),U=(t,e)=>{const n=t.getAttribute("id");return n||(t.setAttribute("id",e),e)},$=t=>t.replace(/[\\"']/g,"\\$&"),q=(t,e)=>{e&&t.append(e)},Y=(t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},K=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(X(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)},X=t=>"string"==typeof t&&t.indexOf("<")>-1,G=(t,e)=>{var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!1),t.dispatchEvent(n)},Q=(t,e)=>{Object.assign(t.style,e)},J=(t,...e)=>{var n=tt(e);(t=et(t)).map((t=>{n.map((e=>{t.classList.add(e)}))}))},Z=(t,...e)=>{var n=tt(e);(t=et(t)).map((t=>{n.map((e=>{t.classList.remove(e)}))}))},tt=t=>{var e=[];return Y(t,(t=>{"string"==typeof t&&(t=t.trim().split(/[\t\n\f\r\s]/)),Array.isArray(t)&&(e=e.concat(t))})),e.filter(Boolean)},et=t=>(Array.isArray(t)||(t=[t]),t),nt=(t,e,n)=>{if(!n||n.contains(t))for(;t&&t.matches;){if(t.matches(e))return t;t=t.parentNode}},rt=(t,e=0)=>e>0?t[t.length-1]:t[0],it=(t,e)=>{if(!t)return-1;e=e||t.nodeName;for(var n=0;t=t.previousElementSibling;)t.matches(e)&&n++;return n},ot=(t,e)=>{Y(e,((e,n)=>{null==e?t.removeAttribute(n):t.setAttribute(n,""+e)}))},at=(t,e)=>{t.parentNode&&t.parentNode.replaceChild(e,t)},st=(t,e)=>{if(null===e)return;if("string"==typeof e){if(!e.length)return;e=new RegExp(e,"i")}const n=t=>3===t.nodeType?(t=>{var n=t.data.match(e);if(n&&t.data.length>0){var r=document.createElement("span");r.className="highlight";var i=t.splitText(n.index);i.splitText(n[0].length);var o=i.cloneNode(!0);return r.appendChild(o),at(i,r),1}return 0})(t):((t=>{1!==t.nodeType||!t.childNodes||/(script|style)/i.test(t.tagName)||"highlight"===t.className&&"SPAN"===t.tagName||Array.from(t.childNodes).forEac
25h((t=>{n(t)}))})(t),0);n(t)},lt="undefined"!=typeof navigator&&/Mac/.test(navigator.userAgent)?"metaKey":"ctrlKey",ct={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,refreshThrottle:300,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:'<input type="text" autocomplete="off" size="1" />',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(t){return t.length>0},render:{}};function ut(t,e){var n=Object.assign({},ct,e),r=n.dataAttr,i=n.labelField,o=n.valueField,a=n.disabledField,s=n.optgroupField,l=n.optgroupLabelField,c=n.optgroupValueField,u=t.tagName.toLowerCase(),h=t.getAttribute("placeholder")||t.getAttribute("data-placeholder");if(!h&&!n.allowEmptyOption){let e=t.querySelector('option[value=""]');e&&(h=e.textContent)}var f={placeholder:h,options:[],optgroups:[],items:[],maxItems:null};return"select"===u?(()=>{var e,u=f.options,h={},d=1;let p=0;var m=t=>{var e=Object.assign({},t.dataset),n=r&&e[r];return"string"==typeof n&&n.length&&(e=Object.assign(e,JSON.parse(n))),e},g=(t,e)=>{var r=R(t.value);if(null!=r&&(r||n.allowEmptyOption)){if(h.hasOwnProperty(r)){if(e){var l=h[r][s];l?Array.isArray(l)?l.push(e):h[r][s]=[l,e]:h[r][s]=e}}else{var c=m(t);c[i]=c[i]||t.textContent,c[o]=c[o]||r,c[a]=c[a]||t.disabled,c[s]=c[s]||e,c.$option=t,c.$order=c.$order||++p,h[r]=c,u.push(c)}t.selected&&f.items.push(r)}};f.maxItems=t.hasAttribute("multiple")?null:1,Y(t.children,(t=>{var n,r,i;"optgroup"===(e=t.tagName.toLowerCase())?((i=m(n=t))[l]=i[l]||n.getAttribute("label")||"",i[c]=i[c]||d++,i[a]=i[a]||n.disabled,i.$order=i.$order||++p,f.optgroups.push(i),r=i[c],Y(n.children,(t=>{g(t,r)}))):"option"===e&&g(t)}))})():(()=>{const e=t.getAttribute(r);if(e)f.options=JSON.parse(e),Y(f.options,(t=>{f.items.push(t[o])}));else{var a=t.value.trim()||"";if(!n.allowEmptyOption&&!a.length)return;const e=a.split(n.delimiter);Y(e,(t=>{const e={};e[i]=t,e[o]=t,f.options.push(e)})),f.items=e}})(),Object.assign({},ct,f,e)}var ht=0;class ft extends(function(t){return t.plugins={},class extends t{constructor(){super(...arguments),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(e,n){t.plugins[e]={name:e,fn:n}}initializePlugins(t){var e,n;const r=this,i=[];if(Array.isArray(t))t.forEach((t=>{"string"==typeof t?i.push(t):(r.plugins.settings[t.name]=t.options,i.push(t.name))}));else if(t)for(e in t)t.hasOwnProperty(e)&&(r.plugins.settings[e]=t[e],i.push(e));for(;n=i.shift();)r.require(n)}loadPlugin(e){var n=this,r=n.plugins,i=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');r.requested[e]=!0,r.loaded[e]=i.fn.apply(n,[n.plugins.settings[e]||{}]),r.names.push(e)}require(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]}}}(i)){constructor(t,e){var n;super(),this.order=0,this.isOpen=!1,this.isDisabled=!1,this.isReadOnly=!1,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],this.refreshTimeout=null,ht++;var r=K(t);if(r.tomselect)throw new Error("Tom Select already initialized on this element");r.tomselect=this,n=(window.getComputedStyle&&window.getComputedStyle(r,null)).getPropertyValue("direction");const i=ut(r,e);this.settings=i,this.input=r,this.tabIndex=r.tabIndex||0,this.is_select_tag="select"===r.tagName.toLowerCase(),this.rtl=/rtl/i.test(n),this.inputId=U(r,"tomselect-"+ht),this.isRequired=r.required,this.sifter=new D(this.options,{diacritics:i.diacritics}),i.mode=i.mode||(1===i.maxItems?"single":"multi"),"boolean"!=typeof i.hideSelected&&(i.hideSelected="multi"===i.mode),"boolean"!=typeof i.hidePlaceholder&&(i.hidePlaceholder="multi"!==i.mode);var o=i.createFilter;
25"function"!=typeof o&&("string"==typeof o&&(o=new RegExp(o)),o instanceof RegExp?i.createFilter=t=>o.test(t):i.createFilter=t=>this.settings.duplicates||!this.options[t]),this.initializePlugins(i.plugins),this.setupCallbacks(),this.setupTemplates();const a=K("<div>"),s=K("<div>"),l=this._render("dropdown"),c=K('<div role="listbox" tabindex="-1">'),u=this.input.getAttribute("class")||"",h=i.mode;var f;if(J(a,i.wrapperClass,u,h),J(s,i.controlClass),q(a,s),J(l,i.dropdownClass,h),i.copyClassesToDropdown&&J(l,u),J(c,i.dropdownContentClass),q(l,c),K(i.dropdownParent||a).appendChild(l),X(i.controlInput)){f=K(i.controlInput);Y(["autocorrect","autocapitalize","autocomplete","spellcheck"],(t=>{r.getAttribute(t)&&ot(f,{[t]:r.getAttribute(t)})})),f.tabIndex=-1,s.appendChild(f),this.focus_node=f}else i.controlInput?(f=K(i.controlInput),this.focus_node=f):(f=K("<input/>"),this.focus_node=s);this.wrapper=a,this.dropdown=l,this.dropdown_content=c,this.control=s,this.control_input=f,this.setup()}setup(){const t=this,e=t.settings,n=t.control_input,r=t.dropdown,i=t.dropdown_content,o=t.wrapper,a=t.control,s=t.input,l=t.focus_node,u={passive:!0},h=t.inputId+"-ts-dropdown";ot(i,{id:h}),ot(l,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":h});const f=U(l,t.inputId+"-ts-control"),d="label[for='"+(t=>t.replace(/['"\\]/g,"\\$&"))(t.inputId)+"']",p=document.querySelector(d),m=t.focus.bind(t);if(p){V(p,"click",m),ot(p,{for:f});const e=U(p,t.inputId+"-ts-label");ot(l,{"aria-labelledby":e}),ot(i,{"aria-labelledby":e})}if(o.style.width=s.style.width,t.plugins.names.length){const e="plugin-"+t.plugins.names.join(" plugin-");J([o,r],e)}(null===e.maxItems||e.maxItems>1)&&t.is_select_tag&&ot(s,{multiple:"multiple"}),e.placeholder&&ot(n,{placeholder:e.placeholder}),!e.splitOn&&e.delimiter&&(e.splitOn=new RegExp("\\s*"+c(e.delimiter)+"+\\s*")),e.load&&e.loadThrottle&&(e.load=B(e.load,e.loadThrottle)),V(r,"mousemove",(()=>{t.ignoreHover=!1})),V(r,"mouseenter",(e=>{var n=nt(e.target,"[data-selectable]",r);n&&t.onOptionHover(e,n)}),{capture:!0}),V(r,"click",(e=>{const n=nt(e.target,"[data-selectable]");n&&(t.onOptionSelect(e,n),H(e,!0))})),V(a,"click",(e=>{var r=nt(e.target,"[data-ts-item]",a);r&&t.onItemSelect(e,r)?H(e,!0):""==n.value&&(t.onClick(),H(e,!0))})),V(l,"keydown",(e=>t.onKeyDown(e))),V(n,"keypress",(e=>t.onKeyPress(e))),V(n,"input",(e=>t.onInput(e))),V(l,"blur",(e=>t.onBlur(e))),V(l,"focus",(e=>t.onFocus(e))),V(n,"paste",(e=>t.onPaste(e)));const g=e=>{const i=e.composedPath()[0];if(!o.contains(i)&&!r.contains(i))return t.isFocused&&t.blur(),void t.inputState();i==n&&t.isOpen?e.stopPropagation():H(e,!0)},v=()=>{t.isOpen&&t.positionDropdown()};V(document,"mousedown",g),V(window,"scroll",v,u),V(window,"resize",v,u),this._destroy=()=>{document.removeEventListener("mousedown",g),window.removeEventListener("scroll",v),window.removeEventListener("resize",v),p&&p.removeEventListener("click",m)},this.revertSettings={innerHTML:s.innerHTML,tabIndex:s.tabIndex},s.tabIndex=-1,s.insertAdjacentElement("afterend",t.wrapper),t.sync(!1),e.items=[],delete e.optgroups,delete e.options,V(s,"invalid",(()=>{t.isValid&&(t.isValid=!1,t.isInvalid=!0,t.refreshState())})),t.updateOriginalInput(),t.refreshItems(),t.close(!1),t.inputState(),t.isSetup=!0,s.disabled?t.disable():s.readOnly?t.setReadOnly(!0):t.enable(),t.on("change",this.onChange),J(s,"tomselected","ts-hidden-accessible"),t.trigger("initialize"),!0===e.preload&&t.preload()}setupOptions(t=[],e=[]){this.addOptions(t),Y(e,(t=>{this.registerOptionGroup(t)}))}setupTemplates(){var t=this,e=t.settings.labelField,n=t.settings.optgroupLabelField,r={optgroup:t=>{let e=document.createElement("div");return e.className="optgroup",e.appendChild(t.options),e},optgroup_header:(t,e)=>'<div class="optgroup-header">'+e(t[n])+"</div>",option:(t,n)=>"<div>"+n(t[e])+"</div>",item:(t,n)=>"<div>"+n(t[e])+"</div>",option_create:(t,e)=>'<div class="create">Add <strong>'+e(t.input)+"</strong>…</div>",no_results:()=>'<div class="no-results">No results found</div>',loading:()=>'<div class="spinner"></div>',not_loading:()=>{},dropdown:()=>"<div></div>"};t.settings.render=Object.assign({},r,t.settings.render)}setupCallbacks(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};
vendor: 10,413 bytes, line 25
25for(t in n)(e=this.settings[n[t]])&&this.on(t,e)}sync(t=!0){const e=this,n=t?ut(e.input,{delimiter:e.settings.delimiter}):e.settings;e.setupOptions(n.options,n.optgroups),e.setValue(n.items||[],!0),e.lastQuery=null}onClick(){var t=this;if(t.activeItems.length>0)return t.clearActiveItems(),void t.focus();t.isFocused&&t.isOpen?t.blur():t.focus()}onMouseDown(){}onChange(){G(this.input,"input"),G(this.input,"change")}onPaste(t){var e=this;e.isInputHidden||e.isLocked?H(t):e.settings.splitOn&&setTimeout((()=>{var t=e.inputValue();if(t.match(e.settings.splitOn)){var n=t.trim().split(e.settings.splitOn);Y(n,(t=>{R(t)&&(this.options[t]?e.addItem(t):e.createItem(t))}))}}),0)}onKeyPress(t){var e=this;if(!e.isLocked){var n=String.fromCharCode(t.keyCode||t.which);return e.settings.create&&"multi"===e.settings.mode&&n===e.settings.delimiter?(e.createItem(),void H(t)):void 0}H(t)}onKeyDown(t){var e=this;if(e.ignoreHover=!0,e.isLocked)9!==t.keyCode&&H(t);else{switch(t.keyCode){case 65:if(W(lt,t)&&""==e.control_input.value)return H(t),void e.selectAll();break;case 27:return e.isOpen&&(H(t,!0),e.close()),void e.clearActiveItems();case 40:if(!e.isOpen&&e.hasOptions)e.open();else if(e.activeOption){let t=e.getAdjacent(e.activeOption,1);t&&e.setActiveOption(t)}return void H(t);case 38:if(e.activeOption){let t=e.getAdjacent(e.activeOption,-1);t&&e.setActiveOption(t)}return void H(t);case 13:return void(e.canSelect(e.activeOption)?(e.onOptionSelect(t,e.activeOption),H(t)):(e.settings.create&&e.createItem()||document.activeElement==e.control_input&&e.isOpen)&&H(t));case 37:return void e.advanceSelection(-1,t);case 39:return void e.advanceSelection(1,t);case 9:return void(e.settings.selectOnTab&&(e.canSelect(e.activeOption)&&(e.onOptionSelect(t,e.activeOption),H(t)),e.settings.create&&e.createItem()&&H(t)));case 8:case 46:return void e.deleteSelection(t)}e.isInputHidden&&!W(lt,t)&&H(t)}}onInput(t){if(this.isLocked)return;const e=this.inputValue();this.lastValue!==e&&(this.lastValue=e,""!=e?(this.refreshTimeout&&window.clearTimeout(this.refreshTimeout),this.refreshTimeout=((t,e)=>e>0?window.setTimeout(t,e):(t.call(null),null))((()=>{this.refreshTimeout=null,this._onInput()}),this.settings.refreshThrottle)):this._onInput())}_onInput(){const t=this.lastValue;this.settings.shouldLoad.call(this,t)&&this.load(t),this.refreshOptions(),this.trigger("type",t)}onOptionHover(t,e){this.ignoreHover||this.setActiveOption(e,!1)}onFocus(t){var e=this,n=e.isFocused;if(e.isDisabled||e.isReadOnly)return e.blur(),void H(t);e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.preload(),n||e.trigger("focus"),e.activeItems.length||(e.inputState(),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())}onBlur(t){if(!1!==document.hasFocus()){var e=this;if(e.isFocused){e.isFocused=!1,e.ignoreFocus=!1;var n=()=>{e.close(),e.setActiveItem(),e.setCaret(e.items.length),e.trigger("blur")};e.settings.create&&e.settings.createOnBlur?e.createItem(null,n):n()}}}onOptionSelect(t,e){var n,r=this;e.parentElement&&e.parentElement.matches("[data-disabled]")||(e.classList.contains("create")?r.createItem(null,(()=>{r.settings.closeAfterSelect&&r.close()})):void 0!==(n=e.dataset.value)&&(r.lastQuery=null,r.addItem(n),r.settings.closeAfterSelect&&r.close(),!r.settings.hideSelected&&t.type&&/click/.test(t.type)&&r.setActiveOption(e)))}canSelect(t){return!!(this.isOpen&&t&&this.dropdown_content.contains(t))}onItemSelect(t,e){var n=this;return!n.isLocked&&"multi"===n.settings.mode&&(H(t),n.setActiveItem(e,t),!0)}canLoad(t){return!!this.settings.load&&!this.loadedSearches.hasOwnProperty(t)}load(t){const e=this;if(!e.canLoad(t))return;J(e.wrapper,e.settings.loadingClass),e.loading++;const n=e.loadCallback.bind(e);e.settings.load.call(e,t,n)}loadCallback(t,e){const n=this;n.loading=Math.max(n.loading-1,0),n.lastQuery=null,n.clearActiveOption(),n.setupOptions(t,e),n.refreshOptions(n.isFocused&&!n.isInputHidden),n.loading||Z(n.wrapper,n.settings.loadingClass),n.trigger("load",t,e)}preload(){var t=this.wrapper.classList;t.contains("preloaded")||(t.add("preloaded"),this.load(""))}setTextboxValue(t=""){var e=this.control_input;e.value!==t&&(e.value=t,G(e,"update"),this.lastValue=t)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(t,e){z(this,e?[]:["change"],(()=>{this.clear(e),this.addItems(t,e)}))}setMaxItems(t){0===t&&(t=null),this.settings.maxItems=t,this.refreshState()}setActiveItem(t,e){var n,r,i,o,a,s,l=this;if("single"!==l.settings.mode){if(!t)return l.clearActiveItems(),void(l.isFocused&&l.inputState());if("click"===(n=e&&e.type.toLowerCase())&&W("shiftKey",e)&&l.activeItems.length){for(s=l.getLastActive(),(i=Array.prototype.indexOf.call(l.control.children,s))>(o=Array.prototype.indexOf.call(l.control.children,t))&&(a=i,i=o,o=a),r=i;r<=o;r++)t=l.control.children[r],-1===l.activeItems.indexOf(t)&&l.setActiveItemClass(t);H(e)}else"click"===n&&W(lt,e)||"keydown"===n&&W("shiftKey",e)?t.classList.contains("active")?l.removeActiveItem(t):l.setActiveItemClass(t):(l.clearActiveItems(),l.setActiveItemClass(t));l.inputState(),l.isFocused||l.focus()}}setActiveItemClass(t){const e=this,n=e.control.querySelector(".last-active");n&&Z(n,"last-active"),J(t,"active last-active"),e.trigger("item_select",t),-1==e.activeItems.indexOf(t)&&e.activeItems.push(t)}removeActiveItem(t){var e=this.activeItems.indexOf(t);this.activeItems.splice(e,1),Z(t,"active")}clearActiveItems(){Z(this.activeItems,"active"),this.activeItems=[]}setActiveOption(t,e=!0){t!==this.activeOption&&(this.clearActiveOption(),t&&(this.activeOption=t,ot(this.focus_node,{"aria-activedescendant":t.getAttribute("id")}),ot(t,{"aria-selected":"true"}),J(t,"active"),e&&this.scrollToOption(t)))}scrollToOption(t,e){if(!t)return;const n=this.dropdown_content,r=n.clientHeight,i=n.scrollTop||0,o=t.offsetHeight,a=t.getBoundingClientRect().top-n.getBoundingClientRect().top+i;a+o>r+i?this.scroll(a-r+o,e):a<i&&this.scroll(a,e)}scroll(t,e){const n=this.dropdown_content;e&&(n.style.scrollBehavior=e),n.scrollTop=t,n.style.scrollBehavior=""}clearActiveOption(){this.activeOption&&(Z(this.activeOption,"active"),ot(this.activeOption,{"aria-selected":null})),this.activeOption=null,ot(this.focus_node,{"aria-activedescendant":null})}selectAll(){const t=this;if("single"===t.settings.mode)return;const e=t.controlChildren();e.length&&(t.inputState(),t.close(),t.activeItems=e,Y(e,(e=>{t.setActiveItemClass(e)})))}inputState(){var t=this;t.control.contains(t.control_input)&&(ot(t.control_input,{placeholder:t.settings.placeholder}),t.activeItems.length>0||!t.isFocused&&t.settings.hidePlaceholder&&t.items.length>0?(t.setTextboxValue(),t.isInputHidden=!0):(t.settings.hidePlaceholder&&t.items.length>0&&ot(t.control_input,{placeholder:""}),t.isInputHidden=!1),t.wrapper.classList.toggle("input-hidden",t.isInputHidden))}inputValue(){return this.control_input.value.trim()}focus(){var t=this;t.isDisabled||t.isReadOnly||(t.ignoreFocus=!0,t.control_input.offsetWidth?t.control_input.focus():t.focus_node.focus(),setTimeout((()=>{t.ignoreFocus=!1,t.onFocus()}),0))}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())}getSearchOptions(){var t=this.settings,e=t.sortField;return"string"==typeof t.sortField&&(e=[{field:t.sortField}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}}search(t){var e,n,r=this,i=this.getSearchOptions();if(r.settings.score&&"function"!=typeof(n=r.settings.score.call(r,t)))throw new Error('Tom Select "score" setting must be a function that returns a function');return t!==r.lastQuery?(r.lastQuery=t,e=r.sifter.search(t,Object.assign(i,{score:n})),r.currentResults=e):e=Object.assign({},r.currentResults),r.settings.hideSelected&&(e.items=e.items.filter((t=>{let e=R(t.id);return!(e&&-1!==r.items.indexOf(e))}))),e}refreshOptions(t=!0){var e,n,r,i,o,a,s,l,c,u;const h={},f=[];var d=this,p=d.inputValue();const m=p===d.lastQuery||""==p&&null==d.lastQuery;var g=d.search(p),v=null,y=d.settings.shouldOpen||!1,b=d.dropdown_content;m&&(v=d.activeOption)&&(c=v.closest("[data-group]")),i=g.items.length,"number"==typeof d.settings.maxOptions&&(i=Math.min(i,d.settings.maxOptions)),i>0&&(y=!0);const x=(t,e)=>{let n=h[t];if(void 0!==n){let t=f[n];if(void 0!==t)return[n,t.fragment]}let r=document.createDocumentFragment();return n=f.length,f.push({fragment:r,order:e,optgroup:t}),[n,r]};for(e=0;e<i;e++){let t=g.items[e];if(!t)continue;let i=t.id,s=d.options[i];if(void 0===s)continue;let l=N(i),u=d.getOption(l,!0);for(d.settings.hideSelected||u.classList.toggle("selected",d.items.includes(l)),o=s[d.settings.optgroupField]||"",n=0,r=(a=Array.isArray(o)?o:[o])&&a.length;n<r;n++){o=a[n];let t=s.$order,e=d.optgroups[o];void 0===e?o="":t=e.$order;const[r,l]=x(o,t);n>0&&(u=u.cloneNode(!0),ot(u,{id:s.$id+"-clone-"+n,"aria-selected":null}),u.classList.add("ts-cloned"),Z(u,"active"),d.activeOption&&d.activeOption.dataset.value==i&&c&&c.dataset.group===o.toString()&&(v=u)),l.appendChild(u),""!=o&&(h[o]=r)}}var w;d.settings.lockOptgroupOrder&&f.sort(((t,e)=>t.order-e.order)),s=document.createDocumentFragment(),Y(f,(t=>{let e=t.fragment,n=t.optgroup;if(!e||!e.children.length)return;let r=d.optgroups[n];if(void 0!==r){let t=document.createDocumentFragment(),n=d.render("optgroup_header",r);q(t,n),q(t,e);let i=d.render("optgroup",{group:r,options:t});q(s,i)}else q(s,e)})),b.innerHTML="",q(b,s),d.settings.highlight&&(w=b.querySelectorAll("span.highlight"),Array.prototype.forEach.call(w,(function(t){var e=t.parentNode;e.replaceChild(t.firstChild,t),e.normalize()})),g.query.length&&g.tokens.length&&Y(g.tokens,(t=>{st(b,t.regex)})));var S=t=>{let e=d.render(t,{input:p});return e&&(y=!0,b.insertBefore(e,b.firstChild)),e};if(d.loading?S("loading"):d.settings.shouldLoad.call(d,p)?0===g.items.length&&S("no_results"):S("not_loading"),(l=d.canCreate(p))&&(u=S("option_create")),d.hasOptions=g.items.length>0||l,y){if(g.items.length>0){if(v||"single"!==d.settings.mode||null==d.items[0]||(v=d.getOption(d.items[0])),!b.contains(v)){let t=0;u&&!d.settings.addPrecedence&&(t=1),v=d.selectable()[t]}}else u&&(v=u);t&&!d.isOpen&&(d.open(),d.scrollToOption(v,"auto")),d.setActiveOption(v)}else d.clearActiveOption(),t&&d.isOpen&&d.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}
vendor: 4,698 bytes, line 25
25addOption(t,e=!1){const n=this;if(Array.isArray(t))return n.addOptions(t,e),!1;const r=R(t[n.settings.valueField]);return null!==r&&!n.options.hasOwnProperty(r)&&(t.$order=t.$order||++n.order,t.$id=n.inputId+"-opt-"+t.$order,n.options[r]=t,n.lastQuery=null,e&&(n.userOptions[r]=e,n.trigger("option_add",r,t)),r)}addOptions(t,e=!1){Y(t,(t=>{this.addOption(t,e)}))}registerOption(t){return this.addOption(t)}registerOptionGroup(t){var e=R(t[this.settings.optgroupValueField]);return null!==e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)}addOptionGroup(t,e){var n;e[this.settings.optgroupValueField]=t,(n=this.registerOptionGroup(e))&&this.trigger("optgroup_add",n,e)}removeOptionGroup(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.clearCache(),this.trigger("optgroup_remove",t))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(t,e){const n=this;var r,i;const o=R(t),a=R(e[n.settings.valueField]);if(null===o)return;const s=n.options[o];if(null==s)return;if("string"!=typeof a)throw new Error("Value must be set in option data");const l=n.getOption(o),c=n.getItem(o);if(e.$order=e.$order||s.$order,delete n.options[o],n.uncacheValue(a),n.options[a]=e,l){if(n.dropdown_content.contains(l)){const t=n._render("option",e);at(l,t),n.activeOption===l&&n.setActiveOption(t)}l.remove()}c&&(-1!==(i=n.items.indexOf(o))&&n.items.splice(i,1,a),r=n._render("item",e),c.classList.contains("active")&&J(r,"active"),at(c,r)),n.lastQuery=null}removeOption(t,e){const n=this;t=N(t),n.uncacheValue(t),delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)}clearOptions(t){const e=(t||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();const n={};Y(this.options,((t,r)=>{e(t,r)&&(n[r]=t)})),this.options=this.sifter.items=n,this.lastQuery=null,this.trigger("option_clear")}clearFilter(t,e){return this.items.indexOf(e)>=0}getOption(t,e=!1){const n=R(t);if(null===n)return null;const r=this.options[n];if(null!=r){if(r.$div)return r.$div;if(e)return this._render("option",r)}return null}getAdjacent(t,e,n="option"){var r;if(!t)return null;r="item"==n?this.controlChildren():this.dropdown_content.querySelectorAll("[data-selectable]");for(let n=0;n<r.length;n++)if(r[n]==t)return e>0?r[n+1]:r[n-1];return null}getItem(t){if("object"==typeof t)return t;var e=R(t);return null!==e?this.control.querySelector(`[data-value="${$(e)}"]`):null}addItems(t,e){var n=this,r=Array.isArray(t)?t:[t];const i=(r=r.filter((t=>-1===n.items.indexOf(t))))[r.length-1];r.forEach((t=>{n.isPending=t!==i,n.addItem(t,e)}))}addItem(t,e){z(this,e?[]:["change","dropdown_close"],(()=>{var n,r;const i=this,o=i.settings.mode,a=R(t);if((!a||-1===i.items.indexOf(a)||("single"===o&&i.close(),"single"!==o&&i.settings.duplicates))&&null!==a&&i.options.hasOwnProperty(a)&&("single"===o&&i.clear(e),"multi"!==o||!i.isFull())){if(n=i._render("item",i.options[a]),i.control.contains(n)&&(n=n.cloneNode(!0)),r=i.isFull(),i.items.splice(i.caretPos,0,a),i.insertAtCaret(n),i.isSetup){if(!i.isPending&&i.settings.hideSelected){let t=i.getOption(a),e=i.getAdjacent(t,1);e&&i.setActiveOption(e)}i.isPending||i.settings.closeAfterSelect||i.refreshOptions(i.isFocused&&"single"!==o),0!=i.settings.closeAfterSelect&&i.isFull()?i.close():i.isPending||i.positionDropdown(),i.trigger("item_add",a,n),i.isPending||i.updateOriginalInput({silent:e})}(!i.isPending||!r&&i.isFull())&&(i.inputState(),i.refreshState())}}))}removeItem(t=null,e){const n=this;if(!(t=n.getItem(t)))return;var r,i;const o=t.dataset.value;r=it(t),t.remove(),t.classList.contains("active")&&(i=n.activeItems.indexOf(t),n.activeItems.splice(i,1),Z(t,"active")),n.items.splice(r,1),n.lastQuery=null,!n.settings.persist&&n.userOptions.hasOwnProperty(o)&&n.removeOption(o,e),r<n.caretPos&&n.setCaret(n.caretPos-1),n.updateOriginalInput({silent:e}),n.refreshState(),n.positionDropdown(),n.trigger("item_remove",o,t)}createItem(t=null,e=()=>{}){3===arguments.length&&(e=arguments[2]),"function"!=typeof e&&(e=()=>{});var n,r=this,i=r.caretPos;if(t=t||r.inputValue(),!r.canCreate(t))return e(),!1;r.lock();var o=!1,a=t=>{if(r.unlock(),!t||"object"!=typeof t)return e();var n=R(t[r.settings.valueField]);if("string"!=typeof n)return e();r.setTextboxValue(),r.addOption(t,!0),r.setCaret(i),r.addItem(n),e(t),o=!0};return n="function"==typeof r.settings.create?r.settings.create.call(this,t,a):{[r.settings.labelField]:t,[r.settings.valueField]:t},o||a(n),!0}refreshItems(){var t=this;t.lastQuery=null,t.isSetup&&t.addItems(t.items),t.updateOriginalInput(),t.refreshState()}refreshState(){const t=this;t.refreshValidityState();
vendor: 5,390 bytes, line 25
25const e=t.isFull(),n=t.isLocked;t.wrapper.classList.toggle("rtl",t.rtl);const r=t.wrapper.classList;var i;r.toggle("focus",t.isFocused),r.toggle("disabled",t.isDisabled),r.toggle("readonly",t.isReadOnly),r.toggle("required",t.isRequired),r.toggle("invalid",!t.isValid),r.toggle("locked",n),r.toggle("full",e),r.toggle("input-active",t.isFocused&&!t.isInputHidden),r.toggle("dropdown-active",t.isOpen),r.toggle("has-options",(i=t.options,0===Object.keys(i).length)),r.toggle("has-items",t.items.length>0)}refreshValidityState(){var t=this;t.input.validity&&(t.isValid=t.input.validity.valid,t.isInvalid=!t.isValid)}isFull(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems}updateOriginalInput(t={}){const e=this;var n,r;const i=e.input.querySelector('option[value=""]');if(e.is_select_tag){const o=[],a=e.input.querySelectorAll("option:checked").length;function s(t,n,r){return t||(t=K('<option value="'+F(n)+'">'+F(r)+"</option>")),t!=i&&e.input.append(t),o.push(t),(t!=i||a>0)&&(t.selected=!0),t}e.input.querySelectorAll("option:checked").forEach((t=>{t.selected=!1})),0==e.items.length&&"single"==e.settings.mode?s(i,"",""):e.items.forEach((t=>{if(n=e.options[t],r=n[e.settings.labelField]||"",o.includes(n.$option)){s(e.input.querySelector(`option[value="${$(t)}"]:not(:checked)`),t,r)}else n.$option=s(n.$option,t,r)}))}else e.input.value=e.getValue();e.isSetup&&(t.silent||e.trigger("change",e.getValue()))}open(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.isOpen=!0,ot(t.focus_node,{"aria-expanded":"true"}),t.refreshState(),Q(t.dropdown,{visibility:"hidden",display:"block"}),t.positionDropdown(),Q(t.dropdown,{visibility:"visible",display:"block"}),t.focus(),t.trigger("dropdown_open",t.dropdown))}close(t=!0){var e=this,n=e.isOpen;t&&(e.setTextboxValue(),"single"===e.settings.mode&&e.items.length&&e.inputState()),e.isOpen=!1,ot(e.focus_node,{"aria-expanded":"false"}),Q(e.dropdown,{display:"none"}),e.settings.hideSelected&&e.clearActiveOption(),e.refreshState(),n&&e.trigger("dropdown_close",e.dropdown)}positionDropdown(){if("body"===this.settings.dropdownParent){var t=this.control,e=t.getBoundingClientRect(),n=t.offsetHeight+e.top+window.scrollY,r=e.left+window.scrollX;Q(this.dropdown,{width:e.width+"px",top:n+"px",left:r+"px"})}}clear(t){var e=this;if(e.items.length){var n=e.controlChildren();Y(n,(t=>{e.removeItem(t,!0)})),e.inputState(),t||e.updateOriginalInput(),e.trigger("clear")}}insertAtCaret(t){const e=this,n=e.caretPos,r=e.control;r.insertBefore(t,r.children[n]||null),e.setCaret(n+1)}deleteSelection(t){var e,n,r,i,o,a=this;e=t&&8===t.keyCode?-1:1,n={start:(o=a.control_input).selectionStart||0,length:(o.selectionEnd||0)-(o.selectionStart||0)};const s=[];if(a.activeItems.length)i=rt(a.activeItems,e),r=it(i),e>0&&r++,Y(a.activeItems,(t=>s.push(t)));else if((a.isFocused||"single"===a.settings.mode)&&a.items.length){const t=a.controlChildren();let r;e<0&&0===n.start&&0===n.length?r=t[a.caretPos-1]:e>0&&n.start===a.inputValue().length&&(r=t[a.caretPos]),void 0!==r&&s.push(r)}if(!a.shouldDelete(s,t))return!1;for(H(t,!0),void 0!==r&&a.setCaret(r);s.length;)a.removeItem(s.pop());return a.inputState(),a.positionDropdown(),a.refreshOptions(!1),!0}shouldDelete(t,e){const n=t.map((t=>t.dataset.value));return!(!n.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete(n,e))}advanceSelection(t,e){var n,r,i=this;i.rtl&&(t*=-1),i.inputValue().length||(W(lt,e)||W("shiftKey",e)?(r=(n=i.getLastActive(t))?n.classList.contains("active")?i.getAdjacent(n,t,"item"):n:t>0?i.control_input.nextElementSibling:i.control_input.previousElementSibling)&&(r.classList.contains("active")&&i.removeActiveItem(n),i.setActiveItemClass(r)):i.moveCaret(t))}moveCaret(t){}getLastActive(t){let e=this.control.querySelector(".last-active");if(e)return e;var n=this.control.querySelectorAll(".active");return n?rt(n,t):void 0}setCaret(t){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.setLocked(!0)}unlock(){this.setLocked(!1)}setLocked(t=this.isReadOnly||this.isDisabled){this.isLocked=t,this.refreshState()}disable(){this.setDisabled(!0),this.close()}enable(){this.setDisabled(!1)}setDisabled(t){this.focus_node.tabIndex=t?-1:this.tabIndex,this.isDisabled=t,this.input.disabled=t,this.control_input.disabled=t,this.setLocked()}setReadOnly(t){this.isReadOnly=t,this.input.readOnly=t,this.control_input.readOnly=t,this.setLocked()}destroy(){var t=this,e=t.revertSettings;t.trigger("destroy"),t.off(),t.wrapper.remove(),t.dropdown.remove(),t.input.innerHTML=e.innerHTML,t.input.tabIndex=e.tabIndex,Z(t.input,"tomselected","ts-hidden-accessible"),t._destroy(),delete t.input.tomselect}render(t,e){var n,r;const i=this;if("function"!=typeof this.settings.render[t])return null;if(!(r=i.settings.render[t].call(this,e,F)))return null;if(r=K(r),"option"===t||"option_create"===t?e[i.settings.disabledField]?ot(r,{"aria-disabled":"true"}):ot(r,{"data-selectable":""}):"optgroup"===t&&(n=e.group[i.settings.optgroupValueField],ot(r,{"data-group":n}),e.group[i.settings.disabledField]&&ot(r,{"data-disabled":""})),"option"===t||"item"===t){const n=N(e[i.settings.valueField]);ot(r,{"data-value":n}),"item"===t?(J(r,i.settings.itemClass),ot(r,{"data-ts-item":""})):(J(r,i.settings.optionClass),ot(r,{role:"option",id:e.$id}
25),e.$div=r,i.options[n]=e)}return r}_render(t,e){const n=this.render(t,e);if(null==n)throw"HTMLElement expected";return n}clearCache(){Y(this.options,(t=>{t.$div&&(t.$div.remove(),delete t.$div)}))}uncacheValue(t){const e=this.getOption(t);e&&e.remove()}canCreate(t){return this.settings.create&&t.length>0&&this.settings.createFilter.call(this,t)}hook(t,e,n){var r=this,i=r[e];r[e]=function(){var e,o;return"after"===t&&(e=i.apply(r,arguments)),o=n.apply(r,arguments),"instead"===t?o:("before"===t&&(e=i.apply(r,arguments)),e)}}}const dt=t=>"boolean"==typeof t?t?"1":"0":t+"",pt=(t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())},mt=t=>"string"==typeof t&&t.indexOf("<")>-1;const gt=t=>"string"==typeof t&&t.indexOf("<")>-1;const vt=(t,e,n,r)=>{t.addEventListener(e,n,r)},yt=t=>"string"==typeof t&&t.indexOf("<")>-1,bt=(t,e)=>{((t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)})(e,((e,n)=>{null==e?t.removeAttribute(n):t.setAttribute(n,""+e)}))};const xt=t=>"string"==typeof t&&t.indexOf("<")>-1;const wt=t=>{var e=[];return((t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)})(t,(t=>{"string"==typeof t&&(t=t.trim().split(/[\t\n\f\r\s]/)),Array.isArray(t)&&(e=e.concat(t))})),e.filter(Boolean)},St=t=>(Array.isArray(t)||(t=[t]),t);const Ot=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(kt(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)},kt=t=>"string"==typeof t&&t.indexOf("<")>-1,Et=t=>{var e=[];return((t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)})(t,(t=>{"string"==typeof t&&(t=t.trim().split(/[\t\n\f\r\s]/)),Array.isArray(t)&&(e=e.concat(t))})),e.filter(Boolean)},_t=t=>(Array.isArray(t)||(t=[t]),t);const At=(t,e,n,r)=>{t.addEventListener(e,n,r)};const Pt=(t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())},Mt=(t,e,n,r)=>{t.addEventListener(e,n,r)},Ct=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(Tt(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)},Tt=t=>"string"==typeof t&&t.indexOf("<")>-1;const jt=t=>{var e=[];return((t,e)=>{if(Array.isArray(t))t.forEach(e);else for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)})(t,(t=>{"string"==typeof t&&(t=t.trim().split(/[\t\n\f\r\s]/)),Array.isArray(t)&&(e=e.concat(t))})),e.filter(Boolean)},It=t=>(Array.isArray(t)||(t=[t]),t);ft.define("change_listener",(function(){var t,e,n,r;t=this.input,e="change",n=()=>{this.sync()},t.addEventListener(e,n,r)})),ft.define("checkbox_options",(function(t){var e=this,n=e.onOptionSelect;e.settings.hideSelected=!1;const r=Object.assign({className:"tomselect-checkbox",checkedClassNames:void 0,uncheckedClassNames:void 0},t);var i=function(t,e){e?(t.checked=!0,r.uncheckedClassNames&&t.classList.remove(...r.uncheckedClassNames),r.checkedClassNames&&t.classList.add(...r.checkedClassNames)):(t.checked=!1,r.checkedClassNames&&t.classList.remove(...r.checkedClassNames),r.uncheckedClassNames&&t.classList.add(...r.uncheckedClassNames))},o=function(t){setTimeout((()=>{var e=t.querySelector("input."+r.className);e instanceof HTMLInputElement&&i(e,t.classList.contains("selected"))}),1)};e.hook("after","setupTemplates",(()=>{var t=e.settings.render.option;e.settings.render.option=(n,o)=>{var a=(t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(mt(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)})(t.call(e,n,o)),s=document.createElement("input");r.className&&s.classList.add(r.className),s.addEventListener("click",(function(t){pt(t)})),s.type="checkbox";const l=null==(c=n[e.settings.valueField])?null:dt(c);var c;return i(s,!!(l&&e.items.indexOf(l)>-1)),a.prepend(s),a}})),e.on("item_remove",(t=>{var n=e.getOption(t);n&&(n.classList.remove("selected"),o(n))})),e.on("item_add",(t=>{var n=e.getOption(t);n&&o(n)})),e.hook("instead","onOptionSelect",((t,r)=>{if(r.classList.contains("selected"))return r.classList.remove("selected"),e.removeItem(r.dataset.value),e.refreshOptions(),void pt(t,!0);n.call(e,t,r),o(r)}))}
25)),ft.define("clear_button",(function(t){const e=this,n=Object.assign({className:"clear-button",title:"Clear All",html:t=>`<div class="${t.className}" title="${t.title}">⨯</div>`},t);e.on("initialize",(()=>{var t=(t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(gt(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)})(n.html(n));t.addEventListener("click",(t=>{e.isLocked||(e.clear(),"single"===e.settings.mode&&e.settings.allowEmptyOption&&e.addItem(""),t.preventDefault(),t.stopPropagation())})),e.control.appendChild(t)}))})),ft.define("drag_drop",(function(){var t=this;if("multi"!==t.settings.mode)return;var e=t.lock,n=t.unlock;let r,i=!0;t.hook("after","setupTemplates",(()=>{var e=t.settings.render.item;t.settings.render.item=(n,o)=>{const a=(t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(yt(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)})(e.call(t,n,o));bt(a,{draggable:"true"});const s=t=>{t.preventDefault(),a.classList.add("ts-drag-over"),l(a,r)},l=(t,e)=>{var n,r,i;void 0!==e&&(((t,e)=>{do{var n;if(t==(e=null==(n=e)?void 0:n.previousElementSibling))return!0}while(e&&e.previousElementSibling);return!1})(e,a)?(r=e,null==(i=(n=t).parentNode)||i.insertBefore(r,n.nextSibling)):((t,e)=>{var n;null==(n=t.parentNode)||n.insertBefore(e,t)})(t,e))};return vt(a,"mousedown",(t=>{i||((t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())})(t),t.stopPropagation()})),vt(a,"dragstart",(t=>{r=a,setTimeout((()=>{a.classList.add("ts-dragging")}),0)})),vt(a,"dragenter",s),vt(a,"dragover",s),vt(a,"dragleave",(()=>{a.classList.remove("ts-drag-over")})),vt(a,"dragend",(()=>{var e;document.querySelectorAll(".ts-drag-over").forEach((t=>t.classList.remove("ts-drag-over"))),null==(e=r)||e.classList.remove("ts-dragging"),r=void 0;var n=[];t.control.querySelectorAll("[data-value]").forEach((t=>{if(t.dataset.value){let e=t.dataset.value;e&&n.push(e)}})),t.setValue(n)})),a}})),t.hook("instead","lock",(()=>(i=!1,e.call(t)))),t.hook("instead","unlock",(()=>(i=!0,n.call(t))))})),ft.define("dropdown_header",(function(t){const e=this,n=Object.assign({title:"Untitled",headerClass:"dropdown-header",titleRowClass:"dropdown-header-title",labelClass:"dropdown-header-label",closeClass:"dropdown-header-close",html:t=>'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a class="'+t.closeClass+'">×</a></div></div>'},t);e.on("initialize",(()=>{var t=(t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(xt(t)){var e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}return document.querySelector(t)})(n.html(n)),r=t.querySelector("."+n.closeClass);r&&r.addEventListener("click",(t=>{((t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())})(t,!0),e.close()})),e.dropdown.insertBefore(t,e.dropdown.firstChild)}))})),ft.define("caret_position",(function(){var t=this;t.hook("instead","setCaret",(e=>{"single"!==t.settings.mode&&t.control.contains(t.control_input)?(e=Math.max(0,Math.min(t.items.length,e)))==t.caretPos||t.isPending||t.controlChildren().forEac
25h(((n,r)=>{r<e?t.control_input.insertAdjacentElement("beforebegin",n):t.control.appendChild(n)})):e=t.items.length,t.caretPos=e})),t.hook("instead","moveCaret",(e=>{if(!t.isFocused)return;const n=t.getLastActive(e);if(n){const r=((t,e)=>{if(!t)return-1;e=e||t.nodeName;for(var n=0;t=t.previousElementSibling;)t.matches(e)&&n++;return n})(n);t.setCaret(e>0?r+1:r),t.setActiveItem(),((t,...e)=>{var n=wt(e);(t=St(t)).map((t=>{n.map((e=>{t.classList.remove(e)}))}))})(n,"last-active")}else t.setCaret(t.caretPos+e)}))})),ft.define("dropdown_input",(function(){const t=this;t.settings.shouldOpen=!0,t.hook("before","setup",(()=>{t.focus_node=t.control,((t,...e)=>{var n=Et(e);(t=_t(t)).map((t=>{n.map((e=>{t.classList.add(e)}))}))})(t.control_input,"dropdown-input");const e=Ot('<div class="dropdown-input-wrap">');e.append(t.control_input),t.dropdown.insertBefore(e,t.dropdown.firstChild);const n=Ot('<input class="items-placeholder" tabindex="-1" />');n.placeholder=t.settings.placeholder||"",t.control.append(n)})),t.on("initialize",(()=>{t.control_input.addEventListener("keydown",(e=>{switch(e.keyCode){case 27:return t.isOpen&&(((t,e=!1)=>{t&&(t.preventDefault(),e&&t.stopPropagation())})(e,!0),t.close()),void t.clearActiveItems();case 9:t.focus_node.tabIndex=-1}return t.onKeyDown.call(t,e)})),t.on("blur",(()=>{t.focus_node.tabIndex=t.isDisabled?-1:t.tabIndex})),t.on("dropdown_open",(()=>{t.control_input.focus()}));const e=t.onBlur;var n,r,i,o;t.hook("instead","onBlur",(n=>{if(!n||n.relatedTarget!=t.control_input)return e.call(t)})),n=t.control_input,r="blur",i=()=>t.onBlur(),n.addEventListener(r,i,o),t.hook("before","close",(()=>{t.isOpen&&t.focus_node.focus({preventScroll:!0})}
25))}))})),ft.define("input_autogrow",(function(){var t=this;t.on("initialize",(()=>{var e=document.createElement("span"),n=t.control_input;e.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",t.wrapper.appendChild(e);for(const t of["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"])e.style[t]=n.style[t];var r=()=>{e.textContent=n.value,n.style.width=e.clientWidth+"px"};r(),t.on("update item_add item_remove",r),At(n,"input",r),At(n,"keyup",r),At(n,"blur",r),At(n,"update",r)}))})),ft.define("no_backspace_delete",(function(){var t=this,e=t.deleteSelection;this.hook("instead","deleteSelection",(n=>!!t.activeItems.length&&e.call(t,n)))})),ft.define("no_active_items",(function(){this.hook("instead","setActiveItem",(()=>{})),this.hook("instead","selectAll",(()=>{}))})),ft.define("optgroup_columns",(function(){var t=this,e=t.onKeyDown;t.hook("instead","onKeyDown",(n=>{var r,i,o,a;if(!t.isOpen||37!==n.keyCode&&39!==n.keyCode)return e.call(t,n);t.ignoreHover=!0,a=((t,e)=>{for(;t&&t.matches;){if(t.matches(e))return t;t=t.parentNode}})(t.activeOption,"[data-group]"),r=((t,e)=>{if(!t)return-1;e=e||t.nodeName;for(var n=0;t=t.previousElementSibling;)t.matches(e)&&n++;return n})(t.activeOption,"[data-selectable]"),a&&(a=37===n.keyCode?a.previousSibling:a.nextSibling)&&(i=(o=a.querySelectorAll("[data-selectable]"))[Math.min(o.length-1,r)])&&t.setActiveOption(i)}))})),ft.define("remove_button",(function(t){const e=Object.assign({label:"×",title:"Remove",className:"remove",append:!0},t);var n=this;if(e.append){var r='<a href="javascript:void(0)" class="'+e.className+'" tabindex="-1" title="'+((e.title+"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")+'">')+e.label+"</a>";n.hook("after","setupTemplates",(()=>{var t=n.settings.render.item;n.settings.render.item=(e,i)=>{var o=Ct(t.call(n,e,i)),a=Ct(r);return o.appendChild(a),Mt(a,"mousedown",(t=>{Pt(t,!0)})),Mt(a,"click",(t=>{n.isLocked||(Pt(t,!0),n.isLocked||n.shouldDelete([o],t)&&(n.removeItem(o),n.refreshOptions(!1),n.inputState()))})),o}}))}})),ft.define("restore_on_backspace",(function(t){const e=this,n=Object.assign({text:t=>t[e.settings.labelField]},t);e.on("item_remove",(function(t){if(e.isFocused&&""===e.control_input.value.trim()){var r=e.options[t];r&&e.setTextboxValue(n.text.call(e,r))}}))})),ft.define("virtual_scroll",(function(){const t=this,e=t.canLoad,n=t.clearActiveOption,r=t.loadCallback;var i,o,a={},s=!1,l=[];if(t.settings.shouldLoadMore||(t.settings.shouldLoadMore=()=>{if(i.clientHeight/(i.scrollHeight-i.scrollTop)>.9)return!0;if(t.activeOption){var e=t.selectable();if(Array.from(e).indexOf(t.activeOption)>=e.length-2)return!0}return!1}),!t.settings.firstUrl)throw"virtual_scroll plugin requires a firstUrl() method";t.settings.sortField=[{field:"$order"},{field:"$score"}];const c=e=>!("number"==typeof t.settings.maxOptions&&i.children.length>
25=t.settings.maxOptions)&&!(!(e in a)||!a[e]),u=(e,n)=>t.items.indexOf(n)>=0||l.indexOf(n)>=0;t.setNextUrl=(t,e)=>{a[t]=e},t.getUrl=e=>{if(e in a){const t=a[e];return a[e]=!1,t}return t.clearPagination(),t.settings.firstUrl.call(t,e)},t.clearPagination=()=>{a={}},t.hook("instead","clearActiveOption",(()=>{if(!s)return n.call(t)})),t.hook("instead","canLoad",(n=>n in a?c(n):e.call(t,n))),t.hook("instead","loadCallback",((e,n)=>{if(s){if(o){const n=e[0];void 0!==n&&(o.dataset.value=n[t.settings.valueField])}}else t.clearOptions(u);r.call(t,e,n),s=!1})),t.hook("after","refreshOptions",(()=>{const e=t.lastValue;var n;c(e)?(n=t.render("loading_more",{query:e}))&&(n.setAttribute("data-selectable",""),o=n):e in a&&!i.querySelector(".no-results")&&(n=t.render("no_more_results",{query:e})),n&&(((t,...e)=>{var n=jt(e);(t=It(t)).map((t=>{n.map((e=>{t.classList.add(e)}))}))})(n,t.settings.optionClass),i.append(n))})),t.on("initialize",(()=>{l=Object.keys(t.options),i=t.dropdown_content,t.settings.render=Object.assign({},{loading_more:()=>'<div class="loading-more-results">Loading more results ... </div>',no_more_results:()=>'<div class="no-more-results">No more results</div>'},t.settings.render),i.addEventListener("scroll",(()=>{t.settings.shouldLoadMore.call(t)&&c(t.lastValue)&&(s||(s=!0,t.load.call(t,t.lastValue)))}))}))}));const Lt=ft},92405:(t,e,n)=>{"use strict";n(16468)("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),n(86938))},92744:(t,e,n)=>{"use strict";var r=n(79039);t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},92796:(t,e,n)=>{"use strict";var r=n(79039),i=n(94901),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n===u||n!==c&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},92896:(t,e,n)=>{"use strict";n.d(e,{f:()=>m});var r=n(1882),i=n.n(r),o=n(59744),a=n(81636),s=n(59938),l=n(19730);function c(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],i=0;i<t.length;i+=e){if(void 0!==n&&!0!==n(t[i]))return;r.push(t[i])}return r}function u(t,e,n,r,i){if(t*e<t*r||t*e>t*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function h(t){return h="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},h(t)}function f(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<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){var r;return r=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==h(r)?r:r+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e,n){var r=t.tick,h=t.ticks,f=t.viewBox,p=t.minTickGap,m=t.orientation,g=t.interval,v=t.tickFormatter,y=t.unit,b=t.angle;if(!h||!h.length||!r)return[];if((0,o.Et)(g)||s.m.isSsr)return function(t,e){return c(t,e+1)}(h,"number"==typeof g&&(0,o.Et)(g)?g:0);var x=[],w="top"===m||"bottom"===m?"width":"height",S=y&&"width"===w?(0,a.Pu)(y,{fontSize:e,letterSpacing:n}):{width:0,height:0},O=function(t,r){var o=i()(v)?v(t.value,r):t.value;return"width"===w?function(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return(0,l.bx)(r,n)}((0,a.Pu)(o,{fontSize:e,letterSpacing:n}),S,b):(0,a.Pu)(o,{fontSize:e,letterSpacing:n})[w]},k=h.length>=2?(0,o.sA)(h[1].coordinate-h[0].coordinate):1,E=function(t,e,n){var r="width"===n,i=t.x,o=t.y,a=t.width,s=t.height;return 1===e?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}(f,k,w);return"equidistantPreserveStart"===g?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),s=e.start,l=e.end,h=0,f=1,d=s,p=function(){var e=null==r?void 0:r[h];if(void 0===e)return{v:c(r,f)};var o,a=h,p=function(){return void 0===o&&(o=n(e,a)),o},m=e.coordinate,g=0===h||u(t,m,p,d,l);g||(h=0,d=s,f+=1),g&&(d=m+t*(p()/2+i),h+=f)};f<=a.length;)if(o=p())return o.v;return[]}(k,E,O,h,p):(x="preserveStart"===g||"preserveStartEnd"===g?function(t,e,n,r,i,o){var a=(r||[]).slice(),s=a.length,l=e.start,c=e.end;if(o){var h=r[s-1],f=n(h,s-1),p=t*(h.coordinate+t*f/2-c);a[s-1]=h=d(d({},h),{},{tickCoord:p>0?h.coordinate-p*t:h.coordinate}),u(t,h.tickCoord,(function(){return f}),l,c)&&(c=h.tickCoord-t*(f/2+i),a[s-1]=d(d({},h),{},{isShow:!0}
25))}for(var m=o?s-1:s,g=function(e){var r,o=a[e],s=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var h=t*(o.coordinate-t*s()/2-l);a[e]=o=d(d({},o),{},{tickCoord:h<0?o.coordinate-h*t:o.coordinate})}else a[e]=o=d(d({},o),{},{tickCoord:o.coordinate});u(t,o.tickCoord,s,l,c)&&(l=o.tickCoord+t*(s()/2+i),a[e]=d(d({},o),{},{isShow:!0}))},v=0;v<m;v++)g(v);return a}(k,E,O,h,p,"preserveStartEnd"===g):function(t,e,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=e.start,l=e.end,c=function(e){var r,c=o[e],h=function(){return void 0===r&&(r=n(c,e)),r};if(e===a-1){var f=t*(c.coordinate+t*h()/2-l);o[e]=c=d(d({},c),{},{tickCoord:f>0?c.coordinate-f*t:c.coordinate})}else o[e]=c=d(d({},c),{},{tickCoord:c.coordinate});u(t,c.tickCoord,h,s,l)&&(l=c.tickCoord-t*(h()/2+i),o[e]=d(d({},c),{},{isShow:!0}))},h=a-1;h>=0;h--)c(h);return o}(k,E,O,h,p),x.filter((function(t){return t.isShow})))}},93243:(t,e,n)=>{var r=n(56110),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},93343:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var r=n(52891);const i=class extends r.xI{connect(){this.hasButtonTarget&&(this.originalContent=this.buttonTarget.innerHTML)}copy(t){t.preventDefault();const e=this.sourceTarget.innerHTML||this.sourceTarget.value;navigator.clipboard.writeText(e).then((()=>this.copied()))}copied(){this.hasButtonTarget&&(this.timeout&&clearTimeout(this.timeout),this.buttonTarget.innerHTML=this.successContentValue,this.timeout=setTimeout((()=>{this.buttonTarget.innerHTML=this.originalContent}),this.successDurationValue))}};i.targets=["button","source"],i.values={successContent:String,successDuration:{type:Number,default:2e3}};let o=i},93389:(t,e,n)=>{"use strict";var r=n(44576),i=n(43724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!i)return r[t];var e=o(r,t);return e&&e.value}},93438:(t,e,n)=>{"use strict";var r=n(28551),i=n(20034),o=n(36043);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},93599:(t,e,n)=>{var r=n(44394);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i<o;){var a=t[i],s=e(a);if(null!=s&&(void 0===l?s==s&&!r(s):n(s,l)))var l=s,c=a}return c}},93663:(t,e,n)=>{var r=n(41799),i=n(10776),o=n(67197);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},94170:(t,e,n)=>{"use strict";var r=n(46518),i=n(30566);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},94501:(t,e,n)=>{"use strict";n.d(e,{AW:()=>F,BU:()=>P,J9:()=>I,Me:()=>M,Mn:()=>O,OV:()=>L,X_:()=>N,aS:()=>A,ee:()=>R,sT:()=>j});var r=n(58156),i=n.n(r),o=n(69843),a=n.n(o),s=n(85015),l=n.n(s),c=n(1882),u=n.n(c),h=n(23805),f=n.n(h),d=n(96540),p=n(44363),m=n(59744),g=n(23521),v=n(98940),y=["children"],b=["children"];function x(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function w(t){return w="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},w(t)}var S={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},O=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},k=null,E=null,_=function t(e){if(e===k&&Array.isArray(E))return E;var n=[];return d.Children.forEach(e,(function(e){a()(e)||((0,p.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),E=n,k=e,n};function A(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return O(t)})):[O(e)],_(t).forEach((function(t){var e=i()(t,"type.displayName")||i()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function P(t,e){var n=A(t,e);return n&&n[0]}var M=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!(0,m.Et)(n)||n<=0||!(0,m.Et)(r)||r<=0)},C=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],T=function(t){return t&&t.type&&l()(t.type)&&C.indexOf(t.type)>=0},j=function(t){return t&&"object"===w(t)&&"clipDot"in t},I=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,d.isValidElement)(t)&&(r=t.props),!f()(r))return null;var i={};return Object.keys(r).forEach((function(t){var o;(function(t,e,n,r){var i,o=null!==(i=null===v.VU||void 0===v.VU?void 0:v.VU[r])&&void 0!==i?i:[];return e.startsWith("data-")||!u()(t)&&(r&&o.includes(e)||v.QQ.includes(e))||n&&v.j2.includes(e)})(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])})),i},L=function t(e,n){if(e===n)return!0;var r=d.Children.count(e);
25if(r!==d.Children.count(n))return!1;if(0===r)return!0;if(1===r)return D(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!D(o,a))return!1}return!0},D=function(t,e){if(a()(t)&&a()(e))return!0;if(!a()(t)&&!a()(e)){var n=t.props||{},r=n.children,i=x(n,y),o=e.props||{},s=o.children,l=x(o,b);return r&&s?(0,g.b)(i,l)&&L(r,s):!r&&!s&&(0,g.b)(i,l)}return!1},R=function(t,e){var n=[],r={};return _(t).forEach((function(t,i){if(T(t))n.push(t);else if(t){var o=O(t.type),a=e[o]||{},s=a.handler,l=a.once;if(s&&(!l||!r[o])){var c=s(t,o,i);n.push(c),r[o]=!0}}})),n},N=function(t){var e=t&&t.type;return e&&S[e]?S[e]:null},F=function(t,e){return _(e).indexOf(t)}},94506:(t,e,n)=>{var r=n(93599),i=n(3335),o=n(83488);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},94901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},95950:(t,e,n)=>{var r=n(70695),i=n(88984),o=n(64894);t.exports=function(t){return o(t)?r(t):i(t)}},96131:(t,e,n)=>{var r=n(2523),i=n(85463),o=n(76959);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},96319:(t,e,n)=>{"use strict";var r=n(28551),i=n(9539);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){i(t,"throw",e)}}},96395:t=>{"use strict";t.exports=!1},96540:(t,e,n)=>{"use strict";t.exports=n(15287)},96801:(t,e,n)=>{"use strict";var r=n(43724),i=n(48686),o=n(24913),a=n(28551),s=n(25397),l=n(71072);e.f=r&&!i?Object.defineProperties:function(t,e){a(t);for(var n,r=s(e),i=l(e),c=i.length,u=0;c>u;)o.f(t,n=i[u++],r[n]);return t}},96837:t=>{"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},97018:(t,e,n)=>{"use strict";n.d(e,{s:()=>F});var r=n(96540),i=n(1882),o=n.n(i),a=n(34164),s=n(6634),l=n(49303),c=n(90706),u=n(98940);function h(t){return h="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},h(t)}function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f.apply(this,arguments)}function d(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 p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function m(t,e,n){return e=v(e),function(t,e){if(e&&("object"===h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],v(t).constructor):e.apply(t,n))}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function v(t){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function b(t,e,n){return(e=x(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t){var e=function(t,e){if("object"!=h(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==h(e)?e:e+""}var w=32,S=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),m(this,e,arguments)}return function(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&&y(t,e)}(e,t),n=e,i=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,i=w/6,o=w/3,a=t.inactive?e:t.color;if("plainline"===t.type)return r.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:w,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return r.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(o,"\n A").concat(i,",").concat(i,",0,1,1,").concat(2*o,",").concat(n,"\n H").concat(w,"M").concat(2*o,",").concat(n,"\n A").concat(i,",").concat(i,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return r.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(w,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(r.isValidElement(t.legendIcon)){var s=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
25e%2?d(Object(n),!0).forEach((function(e){b(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete s.legendIcon,r.cloneElement(t.legendIcon,s)}return r.createElement(c.i,{fill:a,cx:n,cy:n,size:w,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,i=e.iconSize,c=e.layout,h=e.formatter,d=e.inactiveColor,p={x:0,y:0,width:w,height:w},m={display:"horizontal"===c?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var c=e.formatter||h,v=(0,a.A)(b(b({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",e.inactive));if("none"===e.type)return null;var y=o()(e.value)?null:e.value;(0,s.R)(!o()(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var x=e.inactive?d:e.color;return r.createElement("li",f({className:v,style:m,key:"legend-item-".concat(n)},(0,u.XC)(t.props,e,n)),r.createElement(l.u,{width:i,height:i,viewBox:p,style:g},t.renderIcon(e)),r.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},c?c(y,e,n):y))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,i=t.align;if(!e||!e.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?i:"left"};return r.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],i&&p(n.prototype,i),h&&p(n,h),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,h}(r.PureComponent);b(S,"displayName","Legend"),b(S,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var O=n(59744),k=n(79799);function E(t){return 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},E(t)}var _=["ref"];function A(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 P(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?A(Object(n),!0).forEach((function(e){L(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,D(r.key),r)}}function C(t,e,n){return e=j(e),function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,T()?Reflect.construct(e,n||[],j(t).constructor):e.apply(t,n))}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(T=function(){return!!t})()}
25function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function I(t,e){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},I(t,e)}function L(t,e,n){return(e=D(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}function R(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function N(t){return t.value}var F=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return L(t=C(this,e,[].concat(r)),"lastBoundingBox",{width:-1,height:-1}),t}return function(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&&I(t,e)}(e,t),n=e,o=[{key:"getWithHeight",value:function(t,e){var n=P(P({},this.defaultProps),t.props).layout;return"vertical"===n&&(0,O.Et)(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(i=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,s=r.margin,l=r.chartWidth,c=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((c||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),P(P({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,i=e.width,o=e.height,a=e.wrapperStyle,s=e.payloadUniqBy,l=e.payload,c=P(P({position:"absolute",width:i||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return r.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(e){t.wrapperNode=e}},function(t,e){if(r.isValidElement(t))return r.cloneElement(t,e);if("function"==typeof t)return r.createElement(t,e);e.ref;var n=R(e,_);return r.createElement(S,n)}(n,P(P({},this.props),{},{payload:(0,k.s)(l,s,N)})))}}])&&M(n.prototype,i),o&&M(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.PureComponent);L(F,"displayName","Legend"),L(F,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},97040:(t,e,n)=>{"use strict";var r=n(43724),i=n(24913),o=n(6980);t.exports=function(t,e,n){r?i.f(t,e,o(0,n)):t[e]=n}},97751:(t,e,n)=>{"use strict";var r=n(44576),i=n(94901);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},97812:(t,e,n)=>{"use strict";var r=n(46518),i=n(39297),o=n(10757),a=n(16823),s=n(25745),l=n(91296),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw new TypeError(a(t)+" is not a symbol");if(i(c,t))return c[t]}})},97916:(t,e,n)=>{"use strict";
vendor: 2,257 bytes, line 25
25var r=n(76080),i=n(69565),o=n(48981),a=n(96319),s=n(44209),l=n(33517),c=n(26198),u=n(97040),h=n(70081),f=n(50851),d=Array;t.exports=function(t){var e=o(t),n=l(this),p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,p>2?arguments[2]:void 0));var v,y,b,x,w,S,O=f(e),k=0;if(!O||this===d&&s(O))for(v=c(e),y=n?new this(v):d(v);v>k;k++)S=g?m(e[k],k):e[k],u(y,k,S);else for(y=n?new this:[],w=(x=h(e,O)).next;!(b=i(w,x)).done;k++)S=g?a(x,m,[b.value,k],!0):b.value,u(y,k,S);return y.length=k,y}},98023:(t,e,n)=>{var r=n(72552),i=n(40346);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},98406:(t,e,n)=>{"use strict";n(23792),n(27337);var r=n(46518),i=n(44576),o=n(93389),a=n(97751),s=n(69565),l=n(79504),c=n(43724),u=n(67416),h=n(36840),f=n(62106),d=n(56279),p=n(10687),m=n(33994),g=n(91181),v=n(90679),y=n(94901),b=n(39297),x=n(76080),w=n(36955),S=n(28551),O=n(20034),k=n(655),E=n(2360),_=n(6980),A=n(70081),P=n(50851),M=n(62529),C=n(22812),T=n(78227),j=n(74488),I=T("iterator"),L="URLSearchParams",D=L+"Iterator",R=g.set,N=g.getterFor(L),F=g.getterFor(D),B=o("fetch"),z=o("Request"),H=o("Headers"),V=z&&z.prototype,W=H&&H.prototype,U=i.TypeError,$=i.encodeURIComponent,q=String.fromCharCode,Y=a("String","fromCodePoint"),K=parseInt,X=l("".charAt),G=l([].join),Q=l([].push),J=l("".replace),Z=l([].shift),tt=l([].splice),et=l("".split),nt=l("".slice),rt=l(/./.exec),it=/\+/g,ot=/^[0-9a-f]+$/i,at=function(t,e){var n=nt(t,e,e+2);return rt(ot,n)?K(n,16):NaN},st=function(t){for(var e=0,n=128;n>0&&t&n;n>>=1)e++;return e},lt=function(t){var e=null;switch(t.length){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return e>1114111?null:e},ct=function(t){for(var e=(t=J(t,it," ")).length,n="",r=0;r<e;){var i=X(t,r);if("%"===i){if("%"===X(t,r+1)||r+3>e){n+="%",r++;continue}var o=at(t,r+1);if(o!=o){n+=i,r++;continue}r+=2;var a=st(o);if(0===a)i=q(o);else{if(1===a||a>4){n+="�",r++;continue}for(var s=[o],l=1;l<a&&!(++r+3>e||"%"!==X(t,r));){var c=at(t,r+1);if(c!=c){r+=3;break}if(c>191||c<128)break;Q(s,c),r+=2,l++}if(s.length!==a){n+="�";continue}var u=lt(s);null===u?n+="�":i=Y(u)}}n+=i,r++}return n}
vendor: 5,592 bytes, line 25
25,ut=/[!'()~]|%20/g,ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ft=function(t){return ht[t]},dt=function(t){return J($(t),ut,ft)},pt=m((function(t,e){R(this,{type:D,target:N(t).entries,index:0,kind:e})}),L,(function(){var t=F(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,M(void 0,!0);var r=e[n];switch(t.kind){case"keys":return M(r.key,!1);case"values":return M(r.value,!1)}return M([r.key,r.value],!1)}),!0),mt=function(t){this.entries=[],this.url=null,void 0!==t&&(O(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===X(t,0)?nt(t,1):t:k(t)))};mt.prototype={type:L,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,r,i,o,a,l,c=this.entries,u=P(t);if(u)for(n=(e=A(t,u)).next;!(r=s(n,e)).done;){if(o=(i=A(S(r.value))).next,(a=s(o,i)).done||(l=s(o,i)).done||!s(o,i).done)throw new U("Expected sequence with length 2");Q(c,{key:k(a.value),value:k(l.value)})}else for(var h in t)b(t,h)&&Q(c,{key:h,value:k(t[h])})},parseQuery:function(t){if(t)for(var e,n,r=this.entries,i=et(t,"&"),o=0;o<i.length;)(e=i[o++]).length&&(n=et(e,"="),Q(r,{key:ct(Z(n)),value:ct(G(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],r=0;r<e.length;)t=e[r++],Q(n,dt(t.key)+"="+dt(t.value));return G(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gt=function(){v(this,vt);var t=R(this,new mt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},vt=gt.prototype;if(d(vt,{append:function(t,e){var n=N(this);C(arguments.length,2),Q(n.entries,{key:k(t),value:k(e)}),c||this.length++,n.updateURL()},delete:function(t){for(var e=N(this),n=C(arguments.length,1),r=e.entries,i=k(t),o=n<2?void 0:arguments[1],a=void 0===o?o:k(o),s=0;s<r.length;){var l=r[s];if(l.key!==i||void 0!==a&&l.value!==a)s++;else if(tt(r,s,1),void 0!==a)break}c||(this.size=r.length),e.updateURL()},get:function(t){var e=N(this).entries;C(arguments.length,1);for(var n=k(t),r=0;r<e.length;r++)if(e[r].key===n)return e[r].value;return null},getAll:function(t){var e=N(this).entries;C(arguments.length,1);for(var n=k(t),r=[],i=0;i<e.length;i++)e[i].key===n&&Q(r,e[i].value);return r},has:function(t){for(var e=N(this).entries,n=C(arguments.length,1),r=k(t),i=n<2?void 0:arguments[1],o=void 0===i?i:k(i),a=0;a<e.length;){var s=e[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(t,e){var n=N(this);C(arguments.length,1);for(var r,i=n.entries,o=!1,a=k(t),s=k(e),l=0;l<i.length;l++)(r=i[l]).key===a&&(o?tt(i,l--,1):(o=!0,r.value=s));o||Q(i,{key:a,value:s}),c||(this.size=i.length),n.updateURL()},sort:function(){var t=N(this);j(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,n=N(this).entries,r=x(t,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((e=n[i++]).value,e.key,this)},keys:function(){return new pt(this,"keys")},values:function(){return new pt(this,"values")},entries:function(){return new pt(this,"entries")}},{enumerable:!0}),h(vt,I,vt.entries,{name:"entries"}),h(vt,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),c&&f(vt,"size",{get:function(){return N(this).entries.length},configurable:!0,enumerable:!0}),p(gt,L),r({global:!0,constructor:!0,forced:!u},{URLSearchParams:gt}),!u&&y(H)){var yt=l(W.has),bt=l(W.set),xt=function(t){if(O(t)){var e,n=t.body;if(w(n)===L)return e=t.headers?new H(t.headers):new H,yt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),E(t,{body:_(0,k(n)),headers:_(0,e)})}return t};if(y(B)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return B(t,arguments.length>1?xt(arguments[1]):{})}}),y(z)){var wt=function(t){return v(this,V),new z(t,arguments.length>1?xt(arguments[1]):{})};V.constructor=wt,wt.prototype=V,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wt})}}t.exports={URLSearchParams:gt,getState:N}},98940:(t,e,n)=>{"use strict";n.d(e,{QQ:()=>s,VU:()=>c,XC:()=>f,_U:()=>h,j2:()=>u});var r=n(96540),i=n(23805),o=n.n(i);function a(t){return a="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},a(t)}var s=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
25dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],l=["points","pathLength"],c={svg:["viewBox","children"],polygon:l,polyline:l},u=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
25Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],h=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,r.isValidElement)(t)&&(n=t.props),!o()(n))return null;var i={};return Object.keys(n).forEach((function(t){u.includes(t)&&(i[t]=e||function(e){return n[t](n,e)})})),i},f=function(t,e,n){if(!o()(t)||"object"!==a(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];u.includes(i)&&"function"==typeof o&&(r||(r={}),r[i]=function(t,e,n){return function(r){return t(e,n,r),null}}(o,e,n))})),r}},98992:(t,e,n)=>{"use strict";n(18111)},99065:(t,e,n)=>{"use strict";function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function i(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}n.d(e,{C:()=>r,K:()=>i})},99374:(t,e,n)=>{var r=n(54128),i=n(23805),o=n(44394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=s.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},99582:(t,e,n)=>{"use strict";n.d(e,{u:()=>j});var r=n(96540),i=n(1882),o=n.n(i),a=n(58156),s=n.n(a),l=n(34164),c=n(23521),u=n(86069),h=n(81174),f=n(91706),d=n(59744),p=n(98940),m=n(94501),g=n(92896),v=["viewBox"],y=["viewBox"],b=["ticks"];function x(t){return x="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},x(t)}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},w.apply(this,arguments)}function S(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 O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach((function(e){C(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function k(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,T(r.key),r)}}function _(t,e,n){return e=P(e),function(t,e){if(e&&("object"===x(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,A()?Reflect.construct(e,n||[],P(t).constructor):e.apply(t,n))}function A(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(A=function(){return!!t})()}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}
25function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function C(t,e,n){return(e=T(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function T(t){var e=function(t,e){if("object"!=x(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==x(e)?e:e+""}var j=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=_(this,e,[t])).state={fontSize:"",letterSpacing:""},n}return function(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&&M(t,e)}(e,t),n=e,a=[{key:"renderTickItem",value:function(t,e,n){var i=(0,l.A)(e.className,"recharts-cartesian-axis-tick-value");return r.isValidElement(t)?r.cloneElement(t,O(O({},e),{},{className:i})):o()(t)?t(O(O({},e),{},{className:i})):r.createElement(h.E,w({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(i=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=k(t,v),i=this.props,o=i.viewBox,a=k(i,y);return!(0,c.b)(n,o)||!(0,c.b)(r,a)||!(0,c.b)(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,s=this.props,l=s.x,c=s.y,u=s.width,h=s.height,f=s.orientation,p=s.tickSize,m=s.mirror,g=s.tickMargin,v=m?-1:1,y=t.tickSize||p,b=(0,d.Et)(t.tickCoord)?t.tickCoord:t.coordinate;switch(f){case"top":e=n=t.coordinate,a=(r=(i=c+ +!m*h)-v*y)-v*g,o=b;break;case"left":r=i=t.coordinate,o=(e=(n=l+ +!m*u)-v*y)-v*g,a=b;break;case"right":r=i=t.coordinate,o=(e=(n=l+ +m*u)+v*y)+v*g,a=b;break;default:e=n=t.coordinate,a=(r=(i=c+ +m*h)+v*y)+v*g,o=b}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,i=t.width,o=t.height,a=t.orientation,c=t.mirror,u=t.axisLine,h=O(O(O({},(0,m.J9)(this.props,!1)),(0,m.J9)(u,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var f=+("top"===a&&!c||"bottom"===a&&c);h=O(O({},h),{},{x1:e,y1:n+f*o,x2:e+i,y2:n+f*o})}else{var d=+("left"===a&&!c||"right"===a&&c);h=O(O({},h),{},{x1:e+d*i,y1:n,x2:e+d*i,y2:n+o})}return r.createElement("line",w({},h,{className:(0,l.A)("recharts-cartesian-axis-line",s()(u,"className"))}))}},{key:"renderTicks",value:function(t,n,i){var a=this,c=this.props,h=c.tickLine,f=c.stroke,d=c.tick,v=c.tickFormatter,y=c.unit,b=(0,g.f)(O(O({},this.props),{},{ticks:t}),n,i),x=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),k=(0,m.J9)(this.props,!1),E=(0,m.J9)(d,!1),_=O(O({},k),{},{fill:"none"},(0,m.J9)(h,!1)),A=b.map((function(t,n){var i=a.getTickLineCoord(t),c=i.line,m=i.tick,g=O(O(O(O({textAnchor:x,verticalAnchor:S},k),{},{stroke:"none",fill:f},E),m),{},{index:n,payload:t,visibleTicksCount:b.length,tickFormatter:v});return r.createElement(u.W,w({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},(0,p.XC)(a.props,t,n)),h&&r.createElement("line",w({},_,c,{className:(0,l.A)("recharts-cartesian-axis-tick-line",s()(h,"className"))})),d&&e.renderTickItem(d,g,"".concat(o()(v)?v(t.value,n):t.value).concat(y||"")))}));return r.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,i=e.width,a=e.height,s=e.ticksGenerator,c=e.className;if(e.hide)return null;var h=this.props,d=h.ticks,p=k(h,b),m=d;return o()(s)&&(m=d&&d.length>0?s(this.props):s(p)),i<=0||a<=0||!m||!m.length?null:r.createElement(u.W,{className:(0,l.A)("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),f.J.renderCallByParent(this.props))}}
25])&&E(n.prototype,i),a&&E(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(r.Component);C(j,"displayName","CartesianAxis"),C(j,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.