jira-ai-fixer/frontend_build/assets/index-Be0hyHsH.js

473 lines
760 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var Ib=e=>{throw TypeError(e)};var sp=(e,t,r)=>t.has(e)||Ib("Cannot "+r);var k=(e,t,r)=>(sp(e,t,"read from private field"),r?r.call(e):t.get(e)),re=(e,t,r)=>t.has(e)?Ib("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Q=(e,t,r,n)=>(sp(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),de=(e,t,r)=>(sp(e,t,"access private method"),r);var ic=(e,t,r,n)=>({set _(i){Q(e,t,i,r)},get _(){return k(e,t,n)}});function hT(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var ac=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yj={exports:{}},zd={},Jj={exports:{}},pe={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fu=Symbol.for("react.element"),pT=Symbol.for("react.portal"),mT=Symbol.for("react.fragment"),yT=Symbol.for("react.strict_mode"),vT=Symbol.for("react.profiler"),gT=Symbol.for("react.provider"),bT=Symbol.for("react.context"),xT=Symbol.for("react.forward_ref"),wT=Symbol.for("react.suspense"),ST=Symbol.for("react.memo"),OT=Symbol.for("react.lazy"),Rb=Symbol.iterator;function jT(e){return e===null||typeof e!="object"?null:(e=Rb&&e[Rb]||e["@@iterator"],typeof e=="function"?e:null)}var Zj={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},e_=Object.assign,t_={};function Ss(e,t,r){this.props=e,this.context=t,this.refs=t_,this.updater=r||Zj}Ss.prototype.isReactComponent={};Ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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,e,t,"setState")};Ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function r_(){}r_.prototype=Ss.prototype;function hg(e,t,r){this.props=e,this.context=t,this.refs=t_,this.updater=r||Zj}var pg=hg.prototype=new r_;pg.constructor=hg;e_(pg,Ss.prototype);pg.isPureReactComponent=!0;var Db=Array.isArray,n_=Object.prototype.hasOwnProperty,mg={current:null},i_={key:!0,ref:!0,__self:!0,__source:!0};function a_(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)n_.call(t,n)&&!i_.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Fu,type:e,key:a,ref:o,props:i,_owner:mg.current}}function _T(e,t){return{$$typeof:Fu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fu}function PT(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Lb=/\/+/g;function lp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?PT(""+e.key):t.toString(36)}function Uc(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Fu:case pT:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+lp(o,0):n,Db(i)?(r="",e!=null&&(r=e.replace(Lb,"$&/")+"/"),Uc(i,t,r,"",function(u){return u})):i!=null&&(yg(i)&&(i=_T(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Lb,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Db(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+lp(a,s);o+=Uc(a,t,r,l,i)}else if(l=jT(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+lp(a,s++),o+=Uc(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function oc(e,t,r){if(e==null)return e;var n=[],i=0;return Uc(e,n,"","",function(a){return t.call(r,a,i++)}),n}function AT(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Lt={current:null},Wc={transition:null},kT={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:Wc,ReactCurrentOwner:mg};function o_(){throw Error("act(...) is not supported in production builds of React.")}pe.Children={map:oc,forEach:function(e,t,r){oc(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return oc(e,function(){t++}),t},toArray:function(e){return oc(e,function(t){return t})||[]},only:function(e){if(!yg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};pe.Component=Ss;pe.Fragment=mT;pe.Profiler=vT;pe.PureComponent=hg;pe.StrictMode=yT;pe.Suspense=wT;pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kT;pe.act=o_;pe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=e_({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=mg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)n_.call(t,l)&&!i_.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:Fu,type:e.type,key:i,ref:a,props:n,_owner:o}};pe.createContext=function(e){return e={$$typeof:bT,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:gT,_context:e},e.Consumer=e};pe.createElement=a_;pe.createFactory=function(e){var t=a_.bind(null,e);return t.type=e,t};pe.createRef=function(){return{current:null}};pe.forwardRef=function(e){return{$$typeof:xT,render:e}};pe.isValidElement=yg;pe.lazy=function(e){return{$$typeof:OT,_payload:{_status:-1,_result:e},_init:AT}};pe.memo=function(e,t){return{$$typeof:ST,type:e,compare:t===void 0?null:t}};pe.startTransition=function(e){var t=Wc.transition;Wc.transition={};try{e()}finally{Wc.transition=t}};pe.unstable_act=o_;pe.useCallback=function(e,t){return Lt.current.useCallback(e,t)};pe.useContext=function(e){return Lt.current.useContext(e)};pe.useDebugValue=function(){};pe.useDeferredValue=function(e){return Lt.current.useDeferredValue(e)};pe.useEffect=function(e,t){return Lt.current.useEffect(e,t)};pe.useId=function(){return Lt.current.useId()};pe.useImperativeHandle=function(e,t,r){return Lt.current.useImperativeHandle(e,t,r)};pe.useInsertionEffect=function(e,t){return Lt.current.useInsertionEffect(e,t)};pe.useLayoutEffect=function(e,t){return Lt.current.useLayoutEffect(e,t)};pe.useMemo=function(e,t){return Lt.current.useMemo(e,t)};pe.useReducer=function(e,t,r){return Lt.current.useReducer(e,t,r)};pe.useRef=function(e){return Lt.current.useRef(e)};pe.useState=function(e){return Lt.current.useState(e)};pe.useSyncExternalStore=function(e,t,r){return Lt.current.useSyncExternalStore(e,t,r)};pe.useTransition=function(){return Lt.current.useTransition()};pe.version="18.3.1";Jj.exports=pe;var E=Jj.exports;const A=_e(E),ET=hT({__proto__:null,default:A},[E]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var NT=E,TT=Symbol.for("react.element"),CT=Symbol.for("react.fragment"),$T=Object.prototype.hasOwnProperty,MT=NT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,IT={key:!0,ref:!0,__self:!0,__source:!0};function s_(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)$T.call(t,n)&&!IT.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:TT,type:e,key:a,ref:o,props:i,_owner:MT.current}}zd.Fragment=CT;zd.jsx=s_;zd.jsxs=s_;Yj.exports=zd;var h=Yj.exports,gm={},l_={exports:{}},cr={},u_={exports:{}},c_={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(T,B){var U=T.length;T.push(B);e:for(;0<U;){var K=U-1>>>1,H=T[K];if(0<i(H,B))T[K]=B,T[U]=H,U=K;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var B=T[0],U=T.pop();if(U!==B){T[0]=U;e:for(var K=0,H=T.length,X=H>>>1;K<X;){var ie=2*(K+1)-1,be=T[ie],ze=ie+1,we=T[ze];if(0>i(be,U))ze<H&&0>i(we,be)?(T[K]=we,T[ze]=U,K=ze):(T[K]=be,T[ie]=U,K=ie);else if(ze<H&&0>i(we,U))T[K]=we,T[ze]=U,K=ze;else break e}}return B}function i(T,B){var U=T.sortIndex-B.sortIndex;return U!==0?U:T.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,d=3,p=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(T){for(var B=r(u);B!==null;){if(B.callback===null)n(u);else if(B.startTime<=T)n(u),B.sortIndex=B.expirationTime,t(l,B);else break;B=r(u)}}function S(T){if(y=!1,x(T),!m)if(r(l)!==null)m=!0,D(w);else{var B=r(u);B!==null&&F(S,B.startTime-T)}}function w(T,B){m=!1,y&&(y=!1,g(_),_=-1),p=!0;var U=d;try{for(x(B),c=r(l);c!==null&&(!(c.expirationTime>B)||T&&!$());){var K=c.callback;if(typeof K=="function"){c.callback=null,d=c.priorityLevel;var H=K(c.expirationTime<=B);B=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(l)&&n(l),x(B)}else n(l);c=r(l)}if(c!==null)var X=!0;else{var ie=r(u);ie!==null&&F(S,ie.startTime-B),X=!1}return X}finally{c=null,d=U,p=!1}}var O=!1,j=null,_=-1,P=5,N=-1;function $(){return!(e.unstable_now()-N<P)}function C(){if(j!==null){var T=e.unstable_now();N=T;var B=!0;try{B=j(!0,T)}finally{B?L():(O=!1,j=null)}}else O=!1}var L;if(typeof b=="function")L=function(){b(C)};else if(typeof MessageChannel<"u"){var R=new MessageChannel,I=R.port2;R.port1.onmessage=C,L=function(){I.postMessage(null)}}else L=function(){v(C,0)};function D(T){j=T,O||(O=!0,L())}function F(T,B){_=v(function(){T(e.unstable_now())},B)}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,D(w))},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"):P=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var B=3;break;default:B=d}var U=d;d=B;try{return T()}finally{d=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,B){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var U=d;d=T;try{return B()}finally{d=U}},e.unstable_scheduleCallback=function(T,B,U){var K=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?K+U:K):U=K,T){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=U+H,T={id:f++,callback:B,priorityLevel:T,startTime:U,expirationTime:H,sortIndex:-1},U>K?(T.sortIndex=U,t(u,T),r(l)===null&&T===r(u)&&(y?(g(_),_=-1):y=!0,F(S,U-K))):(T.sortIndex=H,t(l,T),m||p||(m=!0,D(w))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var B=d;return function(){var U=d;d=B;try{return T.apply(this,arguments)}finally{d=U}}}})(c_);u_.exports=c_;var RT=u_.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var DT=E,ur=RT;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f_=new Set,$l={};function Ba(e,t){Uo(e,t),Uo(e+"Capture",t)}function Uo(e,t){for($l[e]=t,e=0;e<t.length;e++)f_.add(t[e])}var Tn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bm=Object.prototype.hasOwnProperty,LT=/^[: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]*$/,zb={},Bb={};function zT(e){return bm.call(Bb,e)?!0:bm.call(zb,e)?!1:LT.test(e)?Bb[e]=!0:(zb[e]=!0,!1)}function BT(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FT(e,t,r,n){if(t===null||typeof t>"u"||BT(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var St={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){St[e]=new zt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];St[t]=new zt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){St[e]=new zt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){St[e]=new zt(e,2,!1,e,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(e){St[e]=new zt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){St[e]=new zt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){St[e]=new zt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){St[e]=new zt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){St[e]=new zt(e,5,!1,e.toLowerCase(),null,!1,!1)});var vg=/[\-:]([a-z])/g;function gg(e){return e[1].toUpperCase()}"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(e){var t=e.replace(vg,gg);St[t]=new zt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(vg,gg);St[t]=new zt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(vg,gg);St[t]=new zt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!1,!1)});St.xlinkHref=new zt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){St[e]=new zt(e,1,!1,e.toLowerCase(),null,!0,!0)});function bg(e,t,r,n){var i=St.hasOwnProperty(t)?St[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FT(t,r,i,n)&&(r=null),n||i===null?zT(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Ln=DT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sc=Symbol.for("react.element"),to=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),xg=Symbol.for("react.strict_mode"),xm=Symbol.for("react.profiler"),d_=Symbol.for("react.provider"),h_=Symbol.for("react.context"),wg=Symbol.for("react.forward_ref"),wm=Symbol.for("react.suspense"),Sm=Symbol.for("react.suspense_list"),Sg=Symbol.for("react.memo"),Gn=Symbol.for("react.lazy"),p_=Symbol.for("react.offscreen"),Fb=Symbol.iterator;function Hs(e){return e===null||typeof e!="object"?null:(e=Fb&&e[Fb]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,up;function cl(e){if(up===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);up=t&&t[1]||""}return`
`+up+e}var cp=!1;function fp(e,t){if(!e||cp)return"";cp=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),a=n.stack.split(`
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{cp=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?cl(e):""}function UT(e){switch(e.tag){case 5:return cl(e.type);case 16:return cl("Lazy");case 13:return cl("Suspense");case 19:return cl("SuspenseList");case 0:case 2:case 15:return e=fp(e.type,!1),e;case 11:return e=fp(e.type.render,!1),e;case 1:return e=fp(e.type,!0),e;default:return""}}function Om(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case to:return"Portal";case xm:return"Profiler";case xg:return"StrictMode";case wm:return"Suspense";case Sm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h_:return(e.displayName||"Context")+".Consumer";case d_:return(e._context.displayName||"Context")+".Provider";case wg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sg:return t=e.displayName||null,t!==null?t:Om(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return Om(e(t))}catch{}}return null}function WT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Om(t);case 8:return t===xg?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _i(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function m_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function HT(e){var t=m_(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){e._valueTracker||(e._valueTracker=HT(e))}function y_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=m_(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function sf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jm(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ub(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=_i(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function v_(e,t){t=t.checked,t!=null&&bg(e,"checked",t,!1)}function _m(e,t){v_(e,t);var r=_i(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Pm(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pm(e,t.type,_i(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wb(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Pm(e,t,r){(t!=="number"||sf(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var fl=Array.isArray;function bo(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+_i(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Am(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Hb(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(q(92));if(fl(r)){if(1<r.length)throw Error(q(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:_i(r)}}function g_(e,t){var r=_i(t.value),n=_i(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Vb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function b_(e){switch(e){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 km(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?b_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var uc,x_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(uc=uc||document.createElement("div"),uc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ml(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var yl={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},VT=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){VT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yl[t]=yl[e]})});function w_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||yl.hasOwnProperty(e)&&yl[e]?(""+t).trim():t+"px"}function S_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=w_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var qT=He({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 Em(e,t){if(t){if(qT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Nm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 Tm=null;function Og(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cm=null,xo=null,wo=null;function qb(e){if(e=Hu(e)){if(typeof Cm!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Hd(t),Cm(e.stateNode,e.type,t))}}function O_(e){xo?wo?wo.push(e):wo=[e]:xo=e}function j_(){if(xo){var e=xo,t=wo;if(wo=xo=null,qb(e),t)for(e=0;e<t.length;e++)qb(t[e])}}function __(e,t){return e(t)}function P_(){}var dp=!1;function A_(e,t,r){if(dp)return e(t,r);dp=!0;try{return __(e,t,r)}finally{dp=!1,(xo!==null||wo!==null)&&(P_(),j_())}}function Il(e,t){var r=e.stateNode;if(r===null)return null;var n=Hd(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(q(231,t,typeof r));return r}var $m=!1;if(Tn)try{var Vs={};Object.defineProperty(Vs,"passive",{get:function(){$m=!0}}),window.addEventListener("test",Vs,Vs),window.removeEventListener("test",Vs,Vs)}catch{$m=!1}function KT(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var vl=!1,lf=null,uf=!1,Mm=null,GT={onError:function(e){vl=!0,lf=e}};function XT(e,t,r,n,i,a,o,s,l){vl=!1,lf=null,KT.apply(GT,arguments)}function QT(e,t,r,n,i,a,o,s,l){if(XT.apply(this,arguments),vl){if(vl){var u=lf;vl=!1,lf=null}else throw Error(q(198));uf||(uf=!0,Mm=u)}}function Fa(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function k_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Kb(e){if(Fa(e)!==e)throw Error(q(188))}function YT(e){var t=e.alternate;if(!t){if(t=Fa(e),t===null)throw Error(q(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Kb(i),e;if(a===n)return Kb(i),t;a=a.sibling}throw Error(q(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(q(189))}}if(r.alternate!==n)throw Error(q(190))}if(r.tag!==3)throw Error(q(188));return r.stateNode.current===r?e:t}function E_(e){return e=YT(e),e!==null?N_(e):null}function N_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=N_(e);if(t!==null)return t;e=e.sibling}return null}var T_=ur.unstable_scheduleCallback,Gb=ur.unstable_cancelCallback,JT=ur.unstable_shouldYield,ZT=ur.unstable_requestPaint,Xe=ur.unstable_now,eC=ur.unstable_getCurrentPriorityLevel,jg=ur.unstable_ImmediatePriority,C_=ur.unstable_UserBlockingPriority,cf=ur.unstable_NormalPriority,tC=ur.unstable_LowPriority,$_=ur.unstable_IdlePriority,Bd=null,Zr=null;function rC(e){if(Zr&&typeof Zr.onCommitFiberRoot=="function")try{Zr.onCommitFiberRoot(Bd,e,void 0,(e.current.flags&128)===128)}catch{}}var zr=Math.clz32?Math.clz32:aC,nC=Math.log,iC=Math.LN2;function aC(e){return e>>>=0,e===0?32:31-(nC(e)/iC|0)|0}var cc=64,fc=4194304;function dl(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ff(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=dl(s):(a&=o,a!==0&&(n=dl(a)))}else o=r&~i,o!==0?n=dl(o):a!==0&&(n=dl(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-zr(t),i=1<<r,n|=e[r],t&=~i;return n}function oC(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sC(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-zr(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=oC(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Im(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function M_(){var e=cc;return cc<<=1,!(cc&4194240)&&(cc=64),e}function hp(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Uu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zr(t),e[t]=r}function lC(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-zr(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function _g(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-zr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var je=0;function I_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var R_,Pg,D_,L_,z_,Rm=!1,dc=[],pi=null,mi=null,yi=null,Rl=new Map,Dl=new Map,Yn=[],uC="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 Xb(e,t){switch(e){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":Rl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dl.delete(t.pointerId)}}function qs(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Hu(t),t!==null&&Pg(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cC(e,t,r,n,i){switch(t){case"focusin":return pi=qs(pi,e,t,r,n,i),!0;case"dragenter":return mi=qs(mi,e,t,r,n,i),!0;case"mouseover":return yi=qs(yi,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Rl.set(a,qs(Rl.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Dl.set(a,qs(Dl.get(a)||null,e,t,r,n,i)),!0}return!1}function B_(e){var t=ea(e.target);if(t!==null){var r=Fa(t);if(r!==null){if(t=r.tag,t===13){if(t=k_(r),t!==null){e.blockedOn=t,z_(e.priority,function(){D_(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Dm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Tm=n,r.target.dispatchEvent(n),Tm=null}else return t=Hu(r),t!==null&&Pg(t),e.blockedOn=r,!1;t.shift()}return!0}function Qb(e,t,r){Hc(e)&&r.delete(t)}function fC(){Rm=!1,pi!==null&&Hc(pi)&&(pi=null),mi!==null&&Hc(mi)&&(mi=null),yi!==null&&Hc(yi)&&(yi=null),Rl.forEach(Qb),Dl.forEach(Qb)}function Ks(e,t){e.blockedOn===t&&(e.blockedOn=null,Rm||(Rm=!0,ur.unstable_scheduleCallback(ur.unstable_NormalPriority,fC)))}function Ll(e){function t(i){return Ks(i,e)}if(0<dc.length){Ks(dc[0],e);for(var r=1;r<dc.length;r++){var n=dc[r];n.blockedOn===e&&(n.blockedOn=null)}}for(pi!==null&&Ks(pi,e),mi!==null&&Ks(mi,e),yi!==null&&Ks(yi,e),Rl.forEach(t),Dl.forEach(t),r=0;r<Yn.length;r++)n=Yn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Yn.length&&(r=Yn[0],r.blockedOn===null);)B_(r),r.blockedOn===null&&Yn.shift()}var So=Ln.ReactCurrentBatchConfig,df=!0;function dC(e,t,r,n){var i=je,a=So.transition;So.transition=null;try{je=1,Ag(e,t,r,n)}finally{je=i,So.transition=a}}function hC(e,t,r,n){var i=je,a=So.transition;So.transition=null;try{je=4,Ag(e,t,r,n)}finally{je=i,So.transition=a}}function Ag(e,t,r,n){if(df){var i=Dm(e,t,r,n);if(i===null)Op(e,t,n,hf,r),Xb(e,n);else if(cC(i,e,t,r,n))n.stopPropagation();else if(Xb(e,n),t&4&&-1<uC.indexOf(e)){for(;i!==null;){var a=Hu(i);if(a!==null&&R_(a),a=Dm(e,t,r,n),a===null&&Op(e,t,n,hf,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else Op(e,t,n,null,r)}}var hf=null;function Dm(e,t,r,n){if(hf=null,e=Og(n),e=ea(e),e!==null)if(t=Fa(e),t===null)e=null;else if(r=t.tag,r===13){if(e=k_(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hf=e,null}function F_(e){switch(e){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(eC()){case jg:return 1;case C_:return 4;case cf:case tC:return 16;case $_:return 536870912;default:return 16}default:return 16}}var ui=null,kg=null,Vc=null;function U_(){if(Vc)return Vc;var e,t=kg,r=t.length,n,i="value"in ui?ui.value:ui.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return Vc=i.slice(e,1<n?1-n:void 0)}function qc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hc(){return!0}function Yb(){return!1}function fr(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?hc:Yb,this.isPropagationStopped=Yb,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=hc)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=hc)},persist:function(){},isPersistent:hc}),t}var Os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eg=fr(Os),Wu=He({},Os,{view:0,detail:0}),pC=fr(Wu),pp,mp,Gs,Fd=He({},Wu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ng,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Gs&&(Gs&&e.type==="mousemove"?(pp=e.screenX-Gs.screenX,mp=e.screenY-Gs.screenY):mp=pp=0,Gs=e),pp)},movementY:function(e){return"movementY"in e?e.movementY:mp}}),Jb=fr(Fd),mC=He({},Fd,{dataTransfer:0}),yC=fr(mC),vC=He({},Wu,{relatedTarget:0}),yp=fr(vC),gC=He({},Os,{animationName:0,elapsedTime:0,pseudoElement:0}),bC=fr(gC),xC=He({},Os,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wC=fr(xC),SC=He({},Os,{data:0}),Zb=fr(SC),OC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jC={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"},_C={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_C[e])?!!t[e]:!1}function Ng(){return PC}var AC=He({},Wu,{key:function(e){if(e.key){var t=OC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ng,charCode:function(e){return e.type==="keypress"?qc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kC=fr(AC),EC=He({},Fd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ex=fr(EC),NC=He({},Wu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ng}),TC=fr(NC),CC=He({},Os,{propertyName:0,elapsedTime:0,pseudoElement:0}),$C=fr(CC),MC=He({},Fd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),IC=fr(MC),RC=[9,13,27,32],Tg=Tn&&"CompositionEvent"in window,gl=null;Tn&&"documentMode"in document&&(gl=document.documentMode);var DC=Tn&&"TextEvent"in window&&!gl,W_=Tn&&(!Tg||gl&&8<gl&&11>=gl),tx=" ",rx=!1;function H_(e,t){switch(e){case"keyup":return RC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function V_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var no=!1;function LC(e,t){switch(e){case"compositionend":return V_(t);case"keypress":return t.which!==32?null:(rx=!0,tx);case"textInput":return e=t.data,e===tx&&rx?null:e;default:return null}}function zC(e,t){if(no)return e==="compositionend"||!Tg&&H_(e,t)?(e=U_(),Vc=kg=ui=null,no=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return W_&&t.locale!=="ko"?null:t.data;default:return null}}var BC={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 nx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BC[e.type]:t==="textarea"}function q_(e,t,r,n){O_(n),t=pf(t,"onChange"),0<t.length&&(r=new Eg("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var bl=null,zl=null;function FC(e){nP(e,0)}function Ud(e){var t=oo(e);if(y_(t))return e}function UC(e,t){if(e==="change")return t}var K_=!1;if(Tn){var vp;if(Tn){var gp="oninput"in document;if(!gp){var ix=document.createElement("div");ix.setAttribute("oninput","return;"),gp=typeof ix.oninput=="function"}vp=gp}else vp=!1;K_=vp&&(!document.documentMode||9<document.documentMode)}function ax(){bl&&(bl.detachEvent("onpropertychange",G_),zl=bl=null)}function G_(e){if(e.propertyName==="value"&&Ud(zl)){var t=[];q_(t,zl,e,Og(e)),A_(FC,t)}}function WC(e,t,r){e==="focusin"?(ax(),bl=t,zl=r,bl.attachEvent("onpropertychange",G_)):e==="focusout"&&ax()}function HC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ud(zl)}function VC(e,t){if(e==="click")return Ud(t)}function qC(e,t){if(e==="input"||e==="change")return Ud(t)}function KC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ur=typeof Object.is=="function"?Object.is:KC;function Bl(e,t){if(Ur(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!bm.call(t,i)||!Ur(e[i],t[i]))return!1}return!0}function ox(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sx(e,t){var r=ox(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ox(r)}}function X_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?X_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Q_(){for(var e=window,t=sf();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=sf(e.document)}return t}function Cg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function GC(e){var t=Q_(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&X_(r.ownerDocument.documentElement,r)){if(n!==null&&Cg(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=sx(r,a);var o=sx(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var XC=Tn&&"documentMode"in document&&11>=document.documentMode,io=null,Lm=null,xl=null,zm=!1;function lx(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;zm||io==null||io!==sf(n)||(n=io,"selectionStart"in n&&Cg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),xl&&Bl(xl,n)||(xl=n,n=pf(Lm,"onSelect"),0<n.length&&(t=new Eg("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=io)))}function pc(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ao={animationend:pc("Animation","AnimationEnd"),animationiteration:pc("Animation","AnimationIteration"),animationstart:pc("Animation","AnimationStart"),transitionend:pc("Transition","TransitionEnd")},bp={},Y_={};Tn&&(Y_=document.createElement("div").style,"AnimationEvent"in window||(delete ao.animationend.animation,delete ao.animationiteration.animation,delete ao.animationstart.animation),"TransitionEvent"in window||delete ao.transitionend.transition);function Wd(e){if(bp[e])return bp[e];if(!ao[e])return e;var t=ao[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Y_)return bp[e]=t[r];return e}var J_=Wd("animationend"),Z_=Wd("animationiteration"),eP=Wd("animationstart"),tP=Wd("transitionend"),rP=new Map,ux="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 Ci(e,t){rP.set(e,t),Ba(t,[e])}for(var xp=0;xp<ux.length;xp++){var wp=ux[xp],QC=wp.toLowerCase(),YC=wp[0].toUpperCase()+wp.slice(1);Ci(QC,"on"+YC)}Ci(J_,"onAnimationEnd");Ci(Z_,"onAnimationIteration");Ci(eP,"onAnimationStart");Ci("dblclick","onDoubleClick");Ci("focusin","onFocus");Ci("focusout","onBlur");Ci(tP,"onTransitionEnd");Uo("onMouseEnter",["mouseout","mouseover"]);Uo("onMouseLeave",["mouseout","mouseover"]);Uo("onPointerEnter",["pointerout","pointerover"]);Uo("onPointerLeave",["pointerout","pointerover"]);Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="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(" "),JC=new Set("cancel close invalid load scroll toggle".split(" ").concat(hl));function cx(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,QT(n,t,void 0,e),e.currentTarget=null}function nP(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;cx(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;cx(i,s,u),a=l}}}if(uf)throw e=Mm,uf=!1,Mm=null,e}function Ie(e,t){var r=t[Hm];r===void 0&&(r=t[Hm]=new Set);var n=e+"__bubble";r.has(n)||(iP(t,e,2,!1),r.add(n))}function Sp(e,t,r){var n=0;t&&(n|=4),iP(r,e,n,t)}var mc="_reactListening"+Math.random().toString(36).slice(2);function Fl(e){if(!e[mc]){e[mc]=!0,f_.forEach(function(r){r!=="selectionchange"&&(JC.has(r)||Sp(r,!1,e),Sp(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mc]||(t[mc]=!0,Sp("selectionchange",!1,t))}}function iP(e,t,r,n){switch(F_(t)){case 1:var i=dC;break;case 4:i=hC;break;default:i=Ag}r=i.bind(null,t,r,e),i=void 0,!$m||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Op(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ea(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}A_(function(){var u=a,f=Og(r),c=[];e:{var d=rP.get(e);if(d!==void 0){var p=Eg,m=e;switch(e){case"keypress":if(qc(r)===0)break e;case"keydown":case"keyup":p=kC;break;case"focusin":m="focus",p=yp;break;case"focusout":m="blur",p=yp;break;case"beforeblur":case"afterblur":p=yp;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Jb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=yC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=TC;break;case J_:case Z_:case eP:p=bC;break;case tP:p=$C;break;case"scroll":p=pC;break;case"wheel":p=IC;break;case"copy":case"cut":case"paste":p=wC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ex}var y=(t&4)!==0,v=!y&&e==="scroll",g=y?d!==null?d+"Capture":null:d;y=[];for(var b=u,x;b!==null;){x=b;var S=x.stateNode;if(x.tag===5&&S!==null&&(x=S,g!==null&&(S=Il(b,g),S!=null&&y.push(Ul(b,S,x)))),v)break;b=b.return}0<y.length&&(d=new p(d,m,null,r,f),c.push({event:d,listeners:y}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&r!==Tm&&(m=r.relatedTarget||r.fromElement)&&(ea(m)||m[Cn]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=u,m=m?ea(m):null,m!==null&&(v=Fa(m),m!==v||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=Jb,S="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(y=ex,S="onPointerLeave",g="onPointerEnter",b="pointer"),v=p==null?d:oo(p),x=m==null?d:oo(m),d=new y(S,b+"leave",p,r,f),d.target=v,d.relatedTarget=x,S=null,ea(f)===u&&(y=new y(g,b+"enter",m,r,f),y.target=x,y.relatedTarget=v,S=y),v=S,p&&m)t:{for(y=p,g=m,b=0,x=y;x;x=Qa(x))b++;for(x=0,S=g;S;S=Qa(S))x++;for(;0<b-x;)y=Qa(y),b--;for(;0<x-b;)g=Qa(g),x--;for(;b--;){if(y===g||g!==null&&y===g.alternate)break t;y=Qa(y),g=Qa(g)}y=null}else y=null;p!==null&&fx(c,d,p,y,!1),m!==null&&v!==null&&fx(c,v,m,y,!0)}}e:{if(d=u?oo(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var w=UC;else if(nx(d))if(K_)w=qC;else{w=HC;var O=WC}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=VC);if(w&&(w=w(e,u))){q_(c,w,r,f);break e}O&&O(e,d,u),e==="focusout"&&(O=d._wrapperState)&&O.controlled&&d.type==="number"&&Pm(d,"number",d.value)}switch(O=u?oo(u):window,e){case"focusin":(nx(O)||O.contentEditable==="true")&&(io=O,Lm=u,xl=null);break;case"focusout":xl=Lm=io=null;break;case"mousedown":zm=!0;break;case"contextmenu":case"mouseup":case"dragend":zm=!1,lx(c,r,f);break;case"selectionchange":if(XC)break;case"keydown":case"keyup":lx(c,r,f)}var j;if(Tg)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else no?H_(e,r)&&(_="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(_="onCompositionStart");_&&(W_&&r.locale!=="ko"&&(no||_!=="onCompositionStart"?_==="onCompositionEnd"&&no&&(j=U_()):(ui=f,kg="value"in ui?ui.value:ui.textContent,no=!0)),O=pf(u,_),0<O.length&&(_=new Zb(_,e,null,r,f),c.push({event:_,listeners:O}),j?_.data=j:(j=V_(r),j!==null&&(_.data=j)))),(j=DC?LC(e,r):zC(e,r))&&(u=pf(u,"onBeforeInput"),0<u.length&&(f=new Zb("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:u}),f.data=j))}nP(c,t)})}function Ul(e,t,r){return{instance:e,listener:t,currentTarget:r}}function pf(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Il(e,r),a!=null&&n.unshift(Ul(e,a,i)),a=Il(e,t),a!=null&&n.push(Ul(e,a,i))),e=e.return}return n}function Qa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fx(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=Il(r,a),l!=null&&o.unshift(Ul(r,l,s))):i||(l=Il(r,a),l!=null&&o.push(Ul(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var ZC=/\r\n?/g,e$=/\u0000|\uFFFD/g;function dx(e){return(typeof e=="string"?e:""+e).replace(ZC,`
`).replace(e$,"")}function yc(e,t,r){if(t=dx(t),dx(e)!==t&&r)throw Error(q(425))}function mf(){}var Bm=null,Fm=null;function Um(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wm=typeof setTimeout=="function"?setTimeout:void 0,t$=typeof clearTimeout=="function"?clearTimeout:void 0,hx=typeof Promise=="function"?Promise:void 0,r$=typeof queueMicrotask=="function"?queueMicrotask:typeof hx<"u"?function(e){return hx.resolve(null).then(e).catch(n$)}:Wm;function n$(e){setTimeout(function(){throw e})}function jp(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Ll(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Ll(t)}function vi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function px(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var js=Math.random().toString(36).slice(2),Qr="__reactFiber$"+js,Wl="__reactProps$"+js,Cn="__reactContainer$"+js,Hm="__reactEvents$"+js,i$="__reactListeners$"+js,a$="__reactHandles$"+js;function ea(e){var t=e[Qr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Cn]||r[Qr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=px(e);e!==null;){if(r=e[Qr])return r;e=px(e)}return t}e=r,r=e.parentNode}return null}function Hu(e){return e=e[Qr]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function oo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function Hd(e){return e[Wl]||null}var Vm=[],so=-1;function $i(e){return{current:e}}function Le(e){0>so||(e.current=Vm[so],Vm[so]=null,so--)}function $e(e,t){so++,Vm[so]=e.current,e.current=t}var Pi={},Nt=$i(Pi),Gt=$i(!1),ja=Pi;function Wo(e,t){var r=e.type.contextTypes;if(!r)return Pi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xt(e){return e=e.childContextTypes,e!=null}function yf(){Le(Gt),Le(Nt)}function mx(e,t,r){if(Nt.current!==Pi)throw Error(q(168));$e(Nt,t),$e(Gt,r)}function aP(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,WT(e)||"Unknown",i));return He({},r,n)}function vf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,ja=Nt.current,$e(Nt,e),$e(Gt,Gt.current),!0}function yx(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=aP(e,t,ja),n.__reactInternalMemoizedMergedChildContext=e,Le(Gt),Le(Nt),$e(Nt,e)):Le(Gt),$e(Gt,r)}var yn=null,Vd=!1,_p=!1;function oP(e){yn===null?yn=[e]:yn.push(e)}function o$(e){Vd=!0,oP(e)}function Mi(){if(!_p&&yn!==null){_p=!0;var e=0,t=je;try{var r=yn;for(je=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}yn=null,Vd=!1}catch(i){throw yn!==null&&(yn=yn.slice(e+1)),T_(jg,Mi),i}finally{je=t,_p=!1}}return null}var lo=[],uo=0,gf=null,bf=0,gr=[],br=0,_a=null,wn=1,Sn="";function Gi(e,t){lo[uo++]=bf,lo[uo++]=gf,gf=e,bf=t}function sP(e,t,r){gr[br++]=wn,gr[br++]=Sn,gr[br++]=_a,_a=e;var n=wn;e=Sn;var i=32-zr(n)-1;n&=~(1<<i),r+=1;var a=32-zr(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,wn=1<<32-zr(t)+i|r<<i|n,Sn=a+e}else wn=1<<a|r<<i|n,Sn=e}function $g(e){e.return!==null&&(Gi(e,1),sP(e,1,0))}function Mg(e){for(;e===gf;)gf=lo[--uo],lo[uo]=null,bf=lo[--uo],lo[uo]=null;for(;e===_a;)_a=gr[--br],gr[br]=null,Sn=gr[--br],gr[br]=null,wn=gr[--br],gr[br]=null}var sr=null,or=null,Be=!1,Dr=null;function lP(e,t){var r=wr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function vx(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,sr=e,or=vi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,sr=e,or=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=_a!==null?{id:wn,overflow:Sn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=wr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,sr=e,or=null,!0):!1;default:return!1}}function qm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Km(e){if(Be){var t=or;if(t){var r=t;if(!vx(e,t)){if(qm(e))throw Error(q(418));t=vi(r.nextSibling);var n=sr;t&&vx(e,t)?lP(n,r):(e.flags=e.flags&-4097|2,Be=!1,sr=e)}}else{if(qm(e))throw Error(q(418));e.flags=e.flags&-4097|2,Be=!1,sr=e}}}function gx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;sr=e}function vc(e){if(e!==sr)return!1;if(!Be)return gx(e),Be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Um(e.type,e.memoizedProps)),t&&(t=or)){if(qm(e))throw uP(),Error(q(418));for(;t;)lP(e,t),t=vi(t.nextSibling)}if(gx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){or=vi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}or=null}}else or=sr?vi(e.stateNode.nextSibling):null;return!0}function uP(){for(var e=or;e;)e=vi(e.nextSibling)}function Ho(){or=sr=null,Be=!1}function Ig(e){Dr===null?Dr=[e]:Dr.push(e)}var s$=Ln.ReactCurrentBatchConfig;function Xs(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(q(309));var n=r.stateNode}if(!n)throw Error(q(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(q(284));if(!r._owner)throw Error(q(290,e))}return e}function gc(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bx(e){var t=e._init;return t(e._payload)}function cP(e){function t(g,b){if(e){var x=g.deletions;x===null?(g.deletions=[b],g.flags|=16):x.push(b)}}function r(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function n(g,b){for(g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function i(g,b){return g=wi(g,b),g.index=0,g.sibling=null,g}function a(g,b,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<b?(g.flags|=2,b):x):(g.flags|=2,b)):(g.flags|=1048576,b)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,b,x,S){return b===null||b.tag!==6?(b=Cp(x,g.mode,S),b.return=g,b):(b=i(b,x),b.return=g,b)}function l(g,b,x,S){var w=x.type;return w===ro?f(g,b,x.props.children,S,x.key):b!==null&&(b.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Gn&&bx(w)===b.type)?(S=i(b,x.props),S.ref=Xs(g,b,x),S.return=g,S):(S=Zc(x.type,x.key,x.props,null,g.mode,S),S.ref=Xs(g,b,x),S.return=g,S)}function u(g,b,x,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=$p(x,g.mode,S),b.return=g,b):(b=i(b,x.children||[]),b.return=g,b)}function f(g,b,x,S,w){return b===null||b.tag!==7?(b=xa(x,g.mode,S,w),b.return=g,b):(b=i(b,x),b.return=g,b)}function c(g,b,x){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Cp(""+b,g.mode,x),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case sc:return x=Zc(b.type,b.key,b.props,null,g.mode,x),x.ref=Xs(g,null,b),x.return=g,x;case to:return b=$p(b,g.mode,x),b.return=g,b;case Gn:var S=b._init;return c(g,S(b._payload),x)}if(fl(b)||Hs(b))return b=xa(b,g.mode,x,null),b.return=g,b;gc(g,b)}return null}function d(g,b,x,S){var w=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:s(g,b,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case sc:return x.key===w?l(g,b,x,S):null;case to:return x.key===w?u(g,b,x,S):null;case Gn:return w=x._init,d(g,b,w(x._payload),S)}if(fl(x)||Hs(x))return w!==null?null:f(g,b,x,S,null);gc(g,x)}return null}function p(g,b,x,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(x)||null,s(b,g,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case sc:return g=g.get(S.key===null?x:S.key)||null,l(b,g,S,w);case to:return g=g.get(S.key===null?x:S.key)||null,u(b,g,S,w);case Gn:var O=S._init;return p(g,b,x,O(S._payload),w)}if(fl(S)||Hs(S))return g=g.get(x)||null,f(b,g,S,w,null);gc(b,S)}return null}function m(g,b,x,S){for(var w=null,O=null,j=b,_=b=0,P=null;j!==null&&_<x.length;_++){j.index>_?(P=j,j=null):P=j.sibling;var N=d(g,j,x[_],S);if(N===null){j===null&&(j=P);break}e&&j&&N.alternate===null&&t(g,j),b=a(N,b,_),O===null?w=N:O.sibling=N,O=N,j=P}if(_===x.length)return r(g,j),Be&&Gi(g,_),w;if(j===null){for(;_<x.length;_++)j=c(g,x[_],S),j!==null&&(b=a(j,b,_),O===null?w=j:O.sibling=j,O=j);return Be&&Gi(g,_),w}for(j=n(g,j);_<x.length;_++)P=p(j,g,_,x[_],S),P!==null&&(e&&P.alternate!==null&&j.delete(P.key===null?_:P.key),b=a(P,b,_),O===null?w=P:O.sibling=P,O=P);return e&&j.forEach(function($){return t(g,$)}),Be&&Gi(g,_),w}function y(g,b,x,S){var w=Hs(x);if(typeof w!="function")throw Error(q(150));if(x=w.call(x),x==null)throw Error(q(151));for(var O=w=null,j=b,_=b=0,P=null,N=x.next();j!==null&&!N.done;_++,N=x.next()){j.index>_?(P=j,j=null):P=j.sibling;var $=d(g,j,N.value,S);if($===null){j===null&&(j=P);break}e&&j&&$.alternate===null&&t(g,j),b=a($,b,_),O===null?w=$:O.sibling=$,O=$,j=P}if(N.done)return r(g,j),Be&&Gi(g,_),w;if(j===null){for(;!N.done;_++,N=x.next())N=c(g,N.value,S),N!==null&&(b=a(N,b,_),O===null?w=N:O.sibling=N,O=N);return Be&&Gi(g,_),w}for(j=n(g,j);!N.done;_++,N=x.next())N=p(j,g,_,N.value,S),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?_:N.key),b=a(N,b,_),O===null?w=N:O.sibling=N,O=N);return e&&j.forEach(function(C){return t(g,C)}),Be&&Gi(g,_),w}function v(g,b,x,S){if(typeof x=="object"&&x!==null&&x.type===ro&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case sc:e:{for(var w=x.key,O=b;O!==null;){if(O.key===w){if(w=x.type,w===ro){if(O.tag===7){r(g,O.sibling),b=i(O,x.props.children),b.return=g,g=b;break e}}else if(O.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Gn&&bx(w)===O.type){r(g,O.sibling),b=i(O,x.props),b.ref=Xs(g,O,x),b.return=g,g=b;break e}r(g,O);break}else t(g,O);O=O.sibling}x.type===ro?(b=xa(x.props.children,g.mode,S,x.key),b.return=g,g=b):(S=Zc(x.type,x.key,x.props,null,g.mode,S),S.ref=Xs(g,b,x),S.return=g,g=S)}return o(g);case to:e:{for(O=x.key;b!==null;){if(b.key===O)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){r(g,b.sibling),b=i(b,x.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=$p(x,g.mode,S),b.return=g,g=b}return o(g);case Gn:return O=x._init,v(g,b,O(x._payload),S)}if(fl(x))return m(g,b,x,S);if(Hs(x))return y(g,b,x,S);gc(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(r(g,b.sibling),b=i(b,x),b.return=g,g=b):(r(g,b),b=Cp(x,g.mode,S),b.return=g,g=b),o(g)):r(g,b)}return v}var Vo=cP(!0),fP=cP(!1),xf=$i(null),wf=null,co=null,Rg=null;function Dg(){Rg=co=wf=null}function Lg(e){var t=xf.current;Le(xf),e._currentValue=t}function Gm(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Oo(e,t){wf=e,Rg=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qt=!0),e.firstContext=null)}function _r(e){var t=e._currentValue;if(Rg!==e)if(e={context:e,memoizedValue:t,next:null},co===null){if(wf===null)throw Error(q(308));co=e,wf.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return t}var ta=null;function zg(e){ta===null?ta=[e]:ta.push(e)}function dP(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,zg(t)):(r.next=i.next,i.next=r),t.interleaved=r,$n(e,n)}function $n(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Xn=!1;function Bg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hP(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gi(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,ge&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,$n(e,r)}return i=n.interleaved,i===null?(t.next=t,zg(n)):(t.next=i.next,i.next=t),n.interleaved=t,$n(e,r)}function Kc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,_g(e,r)}}function xx(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Sf(e,t,r,n){var i=e.updateQueue;Xn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(a!==null){var c=i.baseState;o=0,f=u=l=null,s=a;do{var d=s.lane,p=s.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(d=t,p=r,y.tag){case 1:if(m=y.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=He({},c,d);break e;case 2:Xn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=p,l=c):f=f.next=p,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Aa|=o,e.lanes=o,e.memoizedState=c}}function wx(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(q(191,i));i.call(n)}}}var Vu={},en=$i(Vu),Hl=$i(Vu),Vl=$i(Vu);function ra(e){if(e===Vu)throw Error(q(174));return e}function Fg(e,t){switch($e(Vl,t),$e(Hl,e),$e(en,Vu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:km(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=km(t,e)}Le(en),$e(en,t)}function qo(){Le(en),Le(Hl),Le(Vl)}function pP(e){ra(Vl.current);var t=ra(en.current),r=km(t,e.type);t!==r&&($e(Hl,e),$e(en,r))}function Ug(e){Hl.current===e&&(Le(en),Le(Hl))}var Ue=$i(0);function Of(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pp=[];function Wg(){for(var e=0;e<Pp.length;e++)Pp[e]._workInProgressVersionPrimary=null;Pp.length=0}var Gc=Ln.ReactCurrentDispatcher,Ap=Ln.ReactCurrentBatchConfig,Pa=0,We=null,ot=null,pt=null,jf=!1,wl=!1,ql=0,l$=0;function Ot(){throw Error(q(321))}function Hg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Ur(e[r],t[r]))return!1;return!0}function Vg(e,t,r,n,i,a){if(Pa=a,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gc.current=e===null||e.memoizedState===null?d$:h$,e=r(n,i),wl){a=0;do{if(wl=!1,ql=0,25<=a)throw Error(q(301));a+=1,pt=ot=null,t.updateQueue=null,Gc.current=p$,e=r(n,i)}while(wl)}if(Gc.current=_f,t=ot!==null&&ot.next!==null,Pa=0,pt=ot=We=null,jf=!1,t)throw Error(q(300));return e}function qg(){var e=ql!==0;return ql=0,e}function qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?We.memoizedState=pt=e:pt=pt.next=e,pt}function Pr(){if(ot===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=ot.next;var t=pt===null?We.memoizedState:pt.next;if(t!==null)pt=t,ot=e;else{if(e===null)throw Error(q(310));ot=e,e={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},pt===null?We.memoizedState=pt=e:pt=pt.next=e}return pt}function Kl(e,t){return typeof t=="function"?t(e):t}function kp(e){var t=Pr(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=ot,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var f=u.lane;if((Pa&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,o=n):l=l.next=c,We.lanes|=f,Aa|=f}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Ur(n,t.memoizedState)||(qt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,We.lanes|=a,Aa|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ep(e){var t=Pr(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ur(a,t.memoizedState)||(qt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function mP(){}function yP(e,t){var r=We,n=Pr(),i=t(),a=!Ur(n.memoizedState,i);if(a&&(n.memoizedState=i,qt=!0),n=n.queue,Kg(bP.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,Gl(9,gP.bind(null,r,n,i,t),void 0,null),yt===null)throw Error(q(349));Pa&30||vP(r,t,i)}return i}function vP(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function gP(e,t,r,n){t.value=r,t.getSnapshot=n,xP(t)&&wP(e)}function bP(e,t,r){return r(function(){xP(t)&&wP(e)})}function xP(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ur(e,r)}catch{return!0}}function wP(e){var t=$n(e,1);t!==null&&Br(t,e,1,-1)}function Sx(e){var t=qr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kl,lastRenderedState:e},t.queue=e,e=e.dispatch=f$.bind(null,We,e),[t.memoizedState,e]}function Gl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=We.updateQueue,t===null?(t={lastEffect:null,stores:null},We.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function SP(){return Pr().memoizedState}function Xc(e,t,r,n){var i=qr();We.flags|=e,i.memoizedState=Gl(1|t,r,void 0,n===void 0?null:n)}function qd(e,t,r,n){var i=Pr();n=n===void 0?null:n;var a=void 0;if(ot!==null){var o=ot.memoizedState;if(a=o.destroy,n!==null&&Hg(n,o.deps)){i.memoizedState=Gl(t,r,a,n);return}}We.flags|=e,i.memoizedState=Gl(1|t,r,a,n)}function Ox(e,t){return Xc(8390656,8,e,t)}function Kg(e,t){return qd(2048,8,e,t)}function OP(e,t){return qd(4,2,e,t)}function jP(e,t){return qd(4,4,e,t)}function _P(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function PP(e,t,r){return r=r!=null?r.concat([e]):null,qd(4,4,_P.bind(null,t,e),r)}function Gg(){}function AP(e,t){var r=Pr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Hg(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function kP(e,t){var r=Pr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Hg(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function EP(e,t,r){return Pa&21?(Ur(r,t)||(r=M_(),We.lanes|=r,Aa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qt=!0),e.memoizedState=r)}function u$(e,t){var r=je;je=r!==0&&4>r?r:4,e(!0);var n=Ap.transition;Ap.transition={};try{e(!1),t()}finally{je=r,Ap.transition=n}}function NP(){return Pr().memoizedState}function c$(e,t,r){var n=xi(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},TP(e))CP(t,r);else if(r=dP(e,t,r,n),r!==null){var i=Dt();Br(r,e,n,i),$P(r,t,n)}}function f$(e,t,r){var n=xi(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(TP(e))CP(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Ur(s,o)){var l=t.interleaved;l===null?(i.next=i,zg(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=dP(e,t,i,n),r!==null&&(i=Dt(),Br(r,e,n,i),$P(r,t,n))}}function TP(e){var t=e.alternate;return e===We||t!==null&&t===We}function CP(e,t){wl=jf=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function $P(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,_g(e,r)}}var _f={readContext:_r,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},d$={readContext:_r,useCallback:function(e,t){return qr().memoizedState=[e,t===void 0?null:t],e},useContext:_r,useEffect:Ox,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Xc(4194308,4,_P.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Xc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xc(4,2,e,t)},useMemo:function(e,t){var r=qr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=qr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=c$.bind(null,We,e),[n.memoizedState,e]},useRef:function(e){var t=qr();return e={current:e},t.memoizedState=e},useState:Sx,useDebugValue:Gg,useDeferredValue:function(e){return qr().memoizedState=e},useTransition:function(){var e=Sx(!1),t=e[0];return e=u$.bind(null,e[1]),qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=We,i=qr();if(Be){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),yt===null)throw Error(q(349));Pa&30||vP(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ox(bP.bind(null,n,a,e),[e]),n.flags|=2048,Gl(9,gP.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=qr(),t=yt.identifierPrefix;if(Be){var r=Sn,n=wn;r=(n&~(1<<32-zr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ql++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=l$++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},h$={readContext:_r,useCallback:AP,useContext:_r,useEffect:Kg,useImperativeHandle:PP,useInsertionEffect:OP,useLayoutEffect:jP,useMemo:kP,useReducer:kp,useRef:SP,useState:function(){return kp(Kl)},useDebugValue:Gg,useDeferredValue:function(e){var t=Pr();return EP(t,ot.memoizedState,e)},useTransition:function(){var e=kp(Kl)[0],t=Pr().memoizedState;return[e,t]},useMutableSource:mP,useSyncExternalStore:yP,useId:NP,unstable_isNewReconciler:!1},p$={readContext:_r,useCallback:AP,useContext:_r,useEffect:Kg,useImperativeHandle:PP,useInsertionEffect:OP,useLayoutEffect:jP,useMemo:kP,useReducer:Ep,useRef:SP,useState:function(){return Ep(Kl)},useDebugValue:Gg,useDeferredValue:function(e){var t=Pr();return ot===null?t.memoizedState=e:EP(t,ot.memoizedState,e)},useTransition:function(){var e=Ep(Kl)[0],t=Pr().memoizedState;return[e,t]},useMutableSource:mP,useSyncExternalStore:yP,useId:NP,unstable_isNewReconciler:!1};function Cr(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Xm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Kd={isMounted:function(e){return(e=e._reactInternals)?Fa(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=xi(e),a=Pn(n,i);a.payload=t,r!=null&&(a.callback=r),t=gi(e,a,i),t!==null&&(Br(t,e,i,n),Kc(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dt(),i=xi(e),a=Pn(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=gi(e,a,i),t!==null&&(Br(t,e,i,n),Kc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dt(),n=xi(e),i=Pn(r,n);i.tag=2,t!=null&&(i.callback=t),t=gi(e,i,n),t!==null&&(Br(t,e,n,r),Kc(t,e,n))}};function jx(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Bl(r,n)||!Bl(i,a):!0}function MP(e,t,r){var n=!1,i=Pi,a=t.contextType;return typeof a=="object"&&a!==null?a=_r(a):(i=Xt(t)?ja:Nt.current,n=t.contextTypes,a=(n=n!=null)?Wo(e,i):Pi),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Kd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function _x(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Kd.enqueueReplaceState(t,t.state,null)}function Qm(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Bg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=_r(a):(a=Xt(t)?ja:Nt.current,i.context=Wo(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Xm(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Kd.enqueueReplaceState(i,i.state,null),Sf(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ko(e,t){try{var r="",n=t;do r+=UT(n),n=n.return;while(n);var i=r}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Np(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ym(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var m$=typeof WeakMap=="function"?WeakMap:Map;function IP(e,t,r){r=Pn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Af||(Af=!0,sy=n),Ym(e,t)},r}function RP(e,t,r){r=Pn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Ym(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Ym(e,t),typeof n!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Px(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new m$;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=E$.bind(null,e,t,r),t.then(e,e))}function Ax(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function kx(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Pn(-1,1),t.tag=2,gi(r,t,1))),r.lanes|=1),e)}var y$=Ln.ReactCurrentOwner,qt=!1;function Ct(e,t,r,n){t.child=e===null?fP(t,null,r,n):Vo(t,e.child,r,n)}function Ex(e,t,r,n,i){r=r.render;var a=t.ref;return Oo(t,i),n=Vg(e,t,r,n,a,i),r=qg(),e!==null&&!qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mn(e,t,i)):(Be&&r&&$g(t),t.flags|=1,Ct(e,t,n,i),t.child)}function Nx(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!r0(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,DP(e,t,a,n,i)):(e=Zc(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Bl,r(o,n)&&e.ref===t.ref)return Mn(e,t,i)}return t.flags|=1,e=wi(a,n),e.ref=t.ref,e.return=t,t.child=e}function DP(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Bl(a,n)&&e.ref===t.ref)if(qt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(qt=!0);else return t.lanes=e.lanes,Mn(e,t,i)}return Jm(e,t,r,n,i)}function LP(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(ho,nr),nr|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(ho,nr),nr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,$e(ho,nr),nr|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,$e(ho,nr),nr|=n;return Ct(e,t,i,r),t.child}function zP(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Jm(e,t,r,n,i){var a=Xt(r)?ja:Nt.current;return a=Wo(t,a),Oo(t,i),r=Vg(e,t,r,n,a,i),n=qg(),e!==null&&!qt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Mn(e,t,i)):(Be&&n&&$g(t),t.flags|=1,Ct(e,t,r,i),t.child)}function Tx(e,t,r,n,i){if(Xt(r)){var a=!0;vf(t)}else a=!1;if(Oo(t,i),t.stateNode===null)Qc(e,t),MP(t,r,n),Qm(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=_r(u):(u=Xt(r)?ja:Nt.current,u=Wo(t,u));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&_x(t,o,n,u),Xn=!1;var d=t.memoizedState;o.state=d,Sf(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Gt.current||Xn?(typeof f=="function"&&(Xm(t,r,f,n),l=t.memoizedState),(s=Xn||jx(t,r,s,n,d,l,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,hP(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Cr(t.type,s),o.props=u,c=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=_r(l):(l=Xt(r)?ja:Nt.current,l=Wo(t,l));var p=r.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==l)&&_x(t,o,n,l),Xn=!1,d=t.memoizedState,o.state=d,Sf(t,n,o,i);var m=t.memoizedState;s!==c||d!==m||Gt.current||Xn?(typeof p=="function"&&(Xm(t,r,p,n),m=t.memoizedState),(u=Xn||jx(t,r,u,n,d,m,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Zm(e,t,r,n,a,i)}function Zm(e,t,r,n,i,a){zP(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&yx(t,r,!1),Mn(e,t,a);n=t.stateNode,y$.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Vo(t,e.child,null,a),t.child=Vo(t,null,s,a)):Ct(e,t,s,a),t.memoizedState=n.state,i&&yx(t,r,!0),t.child}function BP(e){var t=e.stateNode;t.pendingContext?mx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mx(e,t.context,!1),Fg(e,t.containerInfo)}function Cx(e,t,r,n,i){return Ho(),Ig(i),t.flags|=256,Ct(e,t,r,n),t.child}var ey={dehydrated:null,treeContext:null,retryLane:0};function ty(e){return{baseLanes:e,cachePool:null,transitions:null}}function FP(e,t,r){var n=t.pendingProps,i=Ue.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),$e(Ue,i&1),e===null)return Km(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=Qd(o,n,0,null),e=xa(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ty(r),t.memoizedState=ey,e):Xg(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return v$(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=wi(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=wi(s,a):(a=xa(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?ty(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=ey,n}return a=e.child,e=a.sibling,n=wi(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Xg(e,t){return t=Qd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bc(e,t,r,n){return n!==null&&Ig(n),Vo(t,e.child,null,r),e=Xg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function v$(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Np(Error(q(422))),bc(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=Qd({mode:"visible",children:n.children},i,0,null),a=xa(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Vo(t,e.child,null,o),t.child.memoizedState=ty(o),t.memoizedState=ey,a);if(!(t.mode&1))return bc(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(q(419)),n=Np(a,n,void 0),bc(e,t,o,n)}if(s=(o&e.childLanes)!==0,qt||s){if(n=yt,n!==null){switch(o&-o){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}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,$n(e,i),Br(n,e,i,-1))}return t0(),n=Np(Error(q(421))),bc(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=N$.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,or=vi(i.nextSibling),sr=t,Be=!0,Dr=null,e!==null&&(gr[br++]=wn,gr[br++]=Sn,gr[br++]=_a,wn=e.id,Sn=e.overflow,_a=t),t=Xg(t,n.children),t.flags|=4096,t)}function $x(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Gm(e.return,t,r)}function Tp(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function UP(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Ct(e,t,n.children,r),n=Ue.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$x(e,r,t);else if(e.tag===19)$x(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if($e(Ue,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Of(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Tp(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Of(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Tp(t,!0,r,null,a);break;case"together":Tp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Mn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Aa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,r=wi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=wi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function g$(e,t,r){switch(t.tag){case 3:BP(t),Ho();break;case 5:pP(t);break;case 1:Xt(t.type)&&vf(t);break;case 4:Fg(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;$e(xf,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?($e(Ue,Ue.current&1),t.flags|=128,null):r&t.child.childLanes?FP(e,t,r):($e(Ue,Ue.current&1),e=Mn(e,t,r),e!==null?e.sibling:null);$e(Ue,Ue.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return UP(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),$e(Ue,Ue.current),n)break;return null;case 22:case 23:return t.lanes=0,LP(e,t,r)}return Mn(e,t,r)}var WP,ry,HP,VP;WP=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ry=function(){};HP=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ra(en.current);var a=null;switch(r){case"input":i=jm(e,i),n=jm(e,n),a=[];break;case"select":i=He({},i,{value:void 0}),n=He({},n,{value:void 0}),a=[];break;case"textarea":i=Am(e,i),n=Am(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=mf)}Em(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&($l.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&($l.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ie("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};VP=function(e,t,r,n){r!==n&&(t.flags|=4)};function Qs(e,t){if(!Be)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function jt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function b$(e,t,r){var n=t.pendingProps;switch(Mg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(t),null;case 1:return Xt(t.type)&&yf(),jt(t),null;case 3:return n=t.stateNode,qo(),Le(Gt),Le(Nt),Wg(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(vc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Dr!==null&&(cy(Dr),Dr=null))),ry(e,t),jt(t),null;case 5:Ug(t);var i=ra(Vl.current);if(r=t.type,e!==null&&t.stateNode!=null)HP(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(q(166));return jt(t),null}if(e=ra(en.current),vc(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Qr]=t,n[Wl]=a,e=(t.mode&1)!==0,r){case"dialog":Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":case"embed":Ie("load",n);break;case"video":case"audio":for(i=0;i<hl.length;i++)Ie(hl[i],n);break;case"source":Ie("error",n);break;case"img":case"image":case"link":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"input":Ub(n,a),Ie("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ie("invalid",n);break;case"textarea":Hb(n,a),Ie("invalid",n)}Em(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&yc(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&yc(n.textContent,s,e),i=["children",""+s]):$l.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ie("scroll",n)}switch(r){case"input":lc(n),Wb(n,a,!0);break;case"textarea":lc(n),Vb(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=mf)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=b_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Qr]=t,e[Wl]=n,WP(e,t,!1,!1),t.stateNode=e;e:{switch(o=Nm(r,n),r){case"dialog":Ie("cancel",e),Ie("close",e),i=n;break;case"iframe":case"object":case"embed":Ie("load",e),i=n;break;case"video":case"audio":for(i=0;i<hl.length;i++)Ie(hl[i],e);i=n;break;case"source":Ie("error",e),i=n;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),i=n;break;case"details":Ie("toggle",e),i=n;break;case"input":Ub(e,n),i=jm(e,n),Ie("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=He({},n,{value:void 0}),Ie("invalid",e);break;case"textarea":Hb(e,n),i=Am(e,n),Ie("invalid",e);break;default:i=n}Em(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?S_(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&x_(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ml(e,l):typeof l=="number"&&Ml(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&($l.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Ie("scroll",e):l!=null&&bg(e,a,l,o))}switch(r){case"input":lc(e),Wb(e,n,!1);break;case"textarea":lc(e),Vb(e);break;case"option":n.value!=null&&e.setAttribute("value",""+_i(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?bo(e,!!n.multiple,a,!1):n.defaultValue!=null&&bo(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=mf)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jt(t),null;case 6:if(e&&t.stateNode!=null)VP(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(q(166));if(r=ra(Vl.current),ra(en.current),vc(t)){if(n=t.stateNode,r=t.memoizedProps,n[Qr]=t,(a=n.nodeValue!==r)&&(e=sr,e!==null))switch(e.tag){case 3:yc(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yc(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Qr]=t,t.stateNode=n}return jt(t),null;case 13:if(Le(Ue),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Be&&or!==null&&t.mode&1&&!(t.flags&128))uP(),Ho(),t.flags|=98560,a=!1;else if(a=vc(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[Qr]=t}else Ho(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jt(t),a=!1}else Dr!==null&&(cy(Dr),Dr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ue.current&1?ut===0&&(ut=3):t0())),t.updateQueue!==null&&(t.flags|=4),jt(t),null);case 4:return qo(),ry(e,t),e===null&&Fl(t.stateNode.containerInfo),jt(t),null;case 10:return Lg(t.type._context),jt(t),null;case 17:return Xt(t.type)&&yf(),jt(t),null;case 19:if(Le(Ue),a=t.memoizedState,a===null)return jt(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Qs(a,!1);else{if(ut!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Of(e),o!==null){for(t.flags|=128,Qs(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $e(Ue,Ue.current&1|2),t.child}e=e.sibling}a.tail!==null&&Xe()>Go&&(t.flags|=128,n=!0,Qs(a,!1),t.lanes=4194304)}else{if(!n)if(e=Of(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Be)return jt(t),null}else 2*Xe()-a.renderingStartTime>Go&&r!==1073741824&&(t.flags|=128,n=!0,Qs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Xe(),t.sibling=null,r=Ue.current,$e(Ue,n?r&1|2:r&1),t):(jt(t),null);case 22:case 23:return e0(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?nr&1073741824&&(jt(t),t.subtreeFlags&6&&(t.flags|=8192)):jt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function x$(e,t){switch(Mg(t),t.tag){case 1:return Xt(t.type)&&yf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qo(),Le(Gt),Le(Nt),Wg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ug(t),null;case 13:if(Le(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Le(Ue),null;case 4:return qo(),null;case 10:return Lg(t.type._context),null;case 22:case 23:return e0(),null;case 24:return null;default:return null}}var xc=!1,At=!1,w$=typeof WeakSet=="function"?WeakSet:Set,Y=null;function fo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ke(e,t,n)}else r.current=null}function ny(e,t,r){try{r()}catch(n){Ke(e,t,n)}}var Mx=!1;function S$(e,t){if(Bm=df,e=Q_(),Cg(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(s=o+i),c!==a||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++f===n&&(l=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Fm={focusedElem:e,selectionRange:r},df=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Cr(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(S){Ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return m=Mx,Mx=!1,m}function Sl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ny(t,r,a)}i=i.next}while(i!==n)}}function Gd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function iy(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function qP(e){var t=e.alternate;t!==null&&(e.alternate=null,qP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qr],delete t[Wl],delete t[Hm],delete t[i$],delete t[a$])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function KP(e){return e.tag===5||e.tag===3||e.tag===4}function Ix(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||KP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ay(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=mf));else if(n!==4&&(e=e.child,e!==null))for(ay(e,t,r),e=e.sibling;e!==null;)ay(e,t,r),e=e.sibling}function oy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(oy(e,t,r),e=e.sibling;e!==null;)oy(e,t,r),e=e.sibling}var xt=null,Ir=!1;function Hn(e,t,r){for(r=r.child;r!==null;)GP(e,t,r),r=r.sibling}function GP(e,t,r){if(Zr&&typeof Zr.onCommitFiberUnmount=="function")try{Zr.onCommitFiberUnmount(Bd,r)}catch{}switch(r.tag){case 5:At||fo(r,t);case 6:var n=xt,i=Ir;xt=null,Hn(e,t,r),xt=n,Ir=i,xt!==null&&(Ir?(e=xt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):xt.removeChild(r.stateNode));break;case 18:xt!==null&&(Ir?(e=xt,r=r.stateNode,e.nodeType===8?jp(e.parentNode,r):e.nodeType===1&&jp(e,r),Ll(e)):jp(xt,r.stateNode));break;case 4:n=xt,i=Ir,xt=r.stateNode.containerInfo,Ir=!0,Hn(e,t,r),xt=n,Ir=i;break;case 0:case 11:case 14:case 15:if(!At&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ny(r,t,o),i=i.next}while(i!==n)}Hn(e,t,r);break;case 1:if(!At&&(fo(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ke(r,t,s)}Hn(e,t,r);break;case 21:Hn(e,t,r);break;case 22:r.mode&1?(At=(n=At)||r.memoizedState!==null,Hn(e,t,r),At=n):Hn(e,t,r);break;default:Hn(e,t,r)}}function Rx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new w$),t.forEach(function(n){var i=T$.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Nr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:xt=s.stateNode,Ir=!1;break e;case 3:xt=s.stateNode.containerInfo,Ir=!0;break e;case 4:xt=s.stateNode.containerInfo,Ir=!0;break e}s=s.return}if(xt===null)throw Error(q(160));GP(a,o,i),xt=null,Ir=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ke(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)XP(t,e),t=t.sibling}function XP(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Nr(t,e),Vr(e),n&4){try{Sl(3,e,e.return),Gd(3,e)}catch(y){Ke(e,e.return,y)}try{Sl(5,e,e.return)}catch(y){Ke(e,e.return,y)}}break;case 1:Nr(t,e),Vr(e),n&512&&r!==null&&fo(r,r.return);break;case 5:if(Nr(t,e),Vr(e),n&512&&r!==null&&fo(r,r.return),e.flags&32){var i=e.stateNode;try{Ml(i,"")}catch(y){Ke(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&v_(i,a),Nm(s,o);var u=Nm(s,a);for(o=0;o<l.length;o+=2){var f=l[o],c=l[o+1];f==="style"?S_(i,c):f==="dangerouslySetInnerHTML"?x_(i,c):f==="children"?Ml(i,c):bg(i,f,c,u)}switch(s){case"input":_m(i,a);break;case"textarea":g_(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?bo(i,!!a.multiple,p,!1):d!==!!a.multiple&&(a.defaultValue!=null?bo(i,!!a.multiple,a.defaultValue,!0):bo(i,!!a.multiple,a.multiple?[]:"",!1))}i[Wl]=a}catch(y){Ke(e,e.return,y)}}break;case 6:if(Nr(t,e),Vr(e),n&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(y){Ke(e,e.return,y)}}break;case 3:if(Nr(t,e),Vr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(y){Ke(e,e.return,y)}break;case 4:Nr(t,e),Vr(e);break;case 13:Nr(t,e),Vr(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Jg=Xe())),n&4&&Rx(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(At=(u=At)||f,Nr(t,e),At=u):Nr(t,e),Vr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Y=e,f=e.child;f!==null;){for(c=Y=f;Y!==null;){switch(d=Y,p=d.child,d.tag){case 0:case 11:case 14:case 15:Sl(4,d,d.return);break;case 1:fo(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Ke(n,r,y)}}break;case 5:fo(d,d.return);break;case 22:if(d.memoizedState!==null){Lx(c);continue}}p!==null?(p.return=d,Y=p):Lx(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=w_("display",o))}catch(y){Ke(e,e.return,y)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Ke(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Nr(t,e),Vr(e),n&4&&Rx(e);break;case 21:break;default:Nr(t,e),Vr(e)}}function Vr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(KP(r)){var n=r;break e}r=r.return}throw Error(q(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Ml(i,""),n.flags&=-33);var a=Ix(e);oy(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=Ix(e);ay(e,s,o);break;default:throw Error(q(161))}}catch(l){Ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function O$(e,t,r){Y=e,QP(e)}function QP(e,t,r){for(var n=(e.mode&1)!==0;Y!==null;){var i=Y,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||xc;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||At;s=xc;var u=At;if(xc=o,(At=l)&&!u)for(Y=i;Y!==null;)o=Y,l=o.child,o.tag===22&&o.memoizedState!==null?zx(i):l!==null?(l.return=o,Y=l):zx(i);for(;a!==null;)Y=a,QP(a),a=a.sibling;Y=i,xc=s,At=u}Dx(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Y=a):Dx(e)}}function Dx(e){for(;Y!==null;){var t=Y;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:At||Gd(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!At)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Cr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&wx(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}wx(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&Ll(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}At||t.flags&512&&iy(t)}catch(d){Ke(t,t.return,d)}}if(t===e){Y=null;break}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function Lx(e){for(;Y!==null;){var t=Y;if(t===e){Y=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Y=r;break}Y=t.return}}function zx(e){for(;Y!==null;){var t=Y;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Gd(4,t)}catch(l){Ke(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ke(t,i,l)}}var a=t.return;try{iy(t)}catch(l){Ke(t,a,l)}break;case 5:var o=t.return;try{iy(t)}catch(l){Ke(t,o,l)}}}catch(l){Ke(t,t.return,l)}if(t===e){Y=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Y=s;break}Y=t.return}}var j$=Math.ceil,Pf=Ln.ReactCurrentDispatcher,Qg=Ln.ReactCurrentOwner,Or=Ln.ReactCurrentBatchConfig,ge=0,yt=null,Ze=null,wt=0,nr=0,ho=$i(0),ut=0,Xl=null,Aa=0,Xd=0,Yg=0,Ol=null,Ht=null,Jg=0,Go=1/0,pn=null,Af=!1,sy=null,bi=null,wc=!1,ci=null,kf=0,jl=0,ly=null,Yc=-1,Jc=0;function Dt(){return ge&6?Xe():Yc!==-1?Yc:Yc=Xe()}function xi(e){return e.mode&1?ge&2&&wt!==0?wt&-wt:s$.transition!==null?(Jc===0&&(Jc=M_()),Jc):(e=je,e!==0||(e=window.event,e=e===void 0?16:F_(e.type)),e):1}function Br(e,t,r,n){if(50<jl)throw jl=0,ly=null,Error(q(185));Uu(e,r,n),(!(ge&2)||e!==yt)&&(e===yt&&(!(ge&2)&&(Xd|=r),ut===4&&Jn(e,wt)),Qt(e,n),r===1&&ge===0&&!(t.mode&1)&&(Go=Xe()+500,Vd&&Mi()))}function Qt(e,t){var r=e.callbackNode;sC(e,t);var n=ff(e,e===yt?wt:0);if(n===0)r!==null&&Gb(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Gb(r),t===1)e.tag===0?o$(Bx.bind(null,e)):oP(Bx.bind(null,e)),r$(function(){!(ge&6)&&Mi()}),r=null;else{switch(I_(n)){case 1:r=jg;break;case 4:r=C_;break;case 16:r=cf;break;case 536870912:r=$_;break;default:r=cf}r=iA(r,YP.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function YP(e,t){if(Yc=-1,Jc=0,ge&6)throw Error(q(327));var r=e.callbackNode;if(jo()&&e.callbackNode!==r)return null;var n=ff(e,e===yt?wt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ef(e,n);else{t=n;var i=ge;ge|=2;var a=ZP();(yt!==e||wt!==t)&&(pn=null,Go=Xe()+500,ba(e,t));do try{A$();break}catch(s){JP(e,s)}while(!0);Dg(),Pf.current=a,ge=i,Ze!==null?t=0:(yt=null,wt=0,t=ut)}if(t!==0){if(t===2&&(i=Im(e),i!==0&&(n=i,t=uy(e,i))),t===1)throw r=Xl,ba(e,0),Jn(e,n),Qt(e,Xe()),r;if(t===6)Jn(e,n);else{if(i=e.current.alternate,!(n&30)&&!_$(i)&&(t=Ef(e,n),t===2&&(a=Im(e),a!==0&&(n=a,t=uy(e,a))),t===1))throw r=Xl,ba(e,0),Jn(e,n),Qt(e,Xe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(q(345));case 2:Xi(e,Ht,pn);break;case 3:if(Jn(e,n),(n&130023424)===n&&(t=Jg+500-Xe(),10<t)){if(ff(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Dt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wm(Xi.bind(null,e,Ht,pn),t);break}Xi(e,Ht,pn);break;case 4:if(Jn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-zr(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Xe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*j$(n/1960))-n,10<n){e.timeoutHandle=Wm(Xi.bind(null,e,Ht,pn),n);break}Xi(e,Ht,pn);break;case 5:Xi(e,Ht,pn);break;default:throw Error(q(329))}}}return Qt(e,Xe()),e.callbackNode===r?YP.bind(null,e):null}function uy(e,t){var r=Ol;return e.current.memoizedState.isDehydrated&&(ba(e,t).flags|=256),e=Ef(e,t),e!==2&&(t=Ht,Ht=r,t!==null&&cy(t)),e}function cy(e){Ht===null?Ht=e:Ht.push.apply(Ht,e)}function _$(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Ur(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jn(e,t){for(t&=~Yg,t&=~Xd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-zr(t),n=1<<r;e[r]=-1,t&=~n}}function Bx(e){if(ge&6)throw Error(q(327));jo();var t=ff(e,0);if(!(t&1))return Qt(e,Xe()),null;var r=Ef(e,t);if(e.tag!==0&&r===2){var n=Im(e);n!==0&&(t=n,r=uy(e,n))}if(r===1)throw r=Xl,ba(e,0),Jn(e,t),Qt(e,Xe()),r;if(r===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xi(e,Ht,pn),Qt(e,Xe()),null}function Zg(e,t){var r=ge;ge|=1;try{return e(t)}finally{ge=r,ge===0&&(Go=Xe()+500,Vd&&Mi())}}function ka(e){ci!==null&&ci.tag===0&&!(ge&6)&&jo();var t=ge;ge|=1;var r=Or.transition,n=je;try{if(Or.transition=null,je=1,e)return e()}finally{je=n,Or.transition=r,ge=t,!(ge&6)&&Mi()}}function e0(){nr=ho.current,Le(ho)}function ba(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,t$(r)),Ze!==null)for(r=Ze.return;r!==null;){var n=r;switch(Mg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&yf();break;case 3:qo(),Le(Gt),Le(Nt),Wg();break;case 5:Ug(n);break;case 4:qo();break;case 13:Le(Ue);break;case 19:Le(Ue);break;case 10:Lg(n.type._context);break;case 22:case 23:e0()}r=r.return}if(yt=e,Ze=e=wi(e.current,null),wt=nr=t,ut=0,Xl=null,Yg=Xd=Aa=0,Ht=Ol=null,ta!==null){for(t=0;t<ta.length;t++)if(r=ta[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}ta=null}return e}function JP(e,t){do{var r=Ze;try{if(Dg(),Gc.current=_f,jf){for(var n=We.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}jf=!1}if(Pa=0,pt=ot=We=null,wl=!1,ql=0,Qg.current=null,r===null||r.return===null){ut=1,Xl=t,Ze=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=wt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=Ax(o);if(p!==null){p.flags&=-257,kx(p,o,s,a,t),p.mode&1&&Px(a,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){Px(a,u,t),t0();break e}l=Error(q(426))}}else if(Be&&s.mode&1){var v=Ax(o);if(v!==null){!(v.flags&65536)&&(v.flags|=256),kx(v,o,s,a,t),Ig(Ko(l,s));break e}}a=l=Ko(l,s),ut!==4&&(ut=2),Ol===null?Ol=[a]:Ol.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var g=IP(a,l,t);xx(a,g);break e;case 1:s=l;var b=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof b.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(bi===null||!bi.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=RP(a,s,t);xx(a,S);break e}}a=a.return}while(a!==null)}tA(r)}catch(w){t=w,Ze===r&&r!==null&&(Ze=r=r.return);continue}break}while(!0)}function ZP(){var e=Pf.current;return Pf.current=_f,e===null?_f:e}function t0(){(ut===0||ut===3||ut===2)&&(ut=4),yt===null||!(Aa&268435455)&&!(Xd&268435455)||Jn(yt,wt)}function Ef(e,t){var r=ge;ge|=2;var n=ZP();(yt!==e||wt!==t)&&(pn=null,ba(e,t));do try{P$();break}catch(i){JP(e,i)}while(!0);if(Dg(),ge=r,Pf.current=n,Ze!==null)throw Error(q(261));return yt=null,wt=0,ut}function P$(){for(;Ze!==null;)eA(Ze)}function A$(){for(;Ze!==null&&!JT();)eA(Ze)}function eA(e){var t=nA(e.alternate,e,nr);e.memoizedProps=e.pendingProps,t===null?tA(e):Ze=t,Qg.current=null}function tA(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=x$(r,t),r!==null){r.flags&=32767,Ze=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ut=6,Ze=null;return}}else if(r=b$(r,t,nr),r!==null){Ze=r;return}if(t=t.sibling,t!==null){Ze=t;return}Ze=t=e}while(t!==null);ut===0&&(ut=5)}function Xi(e,t,r){var n=je,i=Or.transition;try{Or.transition=null,je=1,k$(e,t,r,n)}finally{Or.transition=i,je=n}return null}function k$(e,t,r,n){do jo();while(ci!==null);if(ge&6)throw Error(q(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(lC(e,a),e===yt&&(Ze=yt=null,wt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||wc||(wc=!0,iA(cf,function(){return jo(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Or.transition,Or.transition=null;var o=je;je=1;var s=ge;ge|=4,Qg.current=null,S$(e,r),XP(r,e),GC(Fm),df=!!Bm,Fm=Bm=null,e.current=r,O$(r),ZT(),ge=s,je=o,Or.transition=a}else e.current=r;if(wc&&(wc=!1,ci=e,kf=i),a=e.pendingLanes,a===0&&(bi=null),rC(r.stateNode),Qt(e,Xe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Af)throw Af=!1,e=sy,sy=null,e;return kf&1&&e.tag!==0&&jo(),a=e.pendingLanes,a&1?e===ly?jl++:(jl=0,ly=e):jl=0,Mi(),null}function jo(){if(ci!==null){var e=I_(kf),t=Or.transition,r=je;try{if(Or.transition=null,je=16>e?16:e,ci===null)var n=!1;else{if(e=ci,ci=null,kf=0,ge&6)throw Error(q(331));var i=ge;for(ge|=4,Y=e.current;Y!==null;){var a=Y,o=a.child;if(Y.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Y=u;Y!==null;){var f=Y;switch(f.tag){case 0:case 11:case 15:Sl(8,f,a)}var c=f.child;if(c!==null)c.return=f,Y=c;else for(;Y!==null;){f=Y;var d=f.sibling,p=f.return;if(qP(f),f===u){Y=null;break}if(d!==null){d.return=p,Y=d;break}Y=p}}}var m=a.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(y!==null)}}Y=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,Y=o;else e:for(;Y!==null;){if(a=Y,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Sl(9,a,a.return)}var g=a.sibling;if(g!==null){g.return=a.return,Y=g;break e}Y=a.return}}var b=e.current;for(Y=b;Y!==null;){o=Y;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,Y=x;else e:for(o=b;Y!==null;){if(s=Y,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Gd(9,s)}}catch(w){Ke(s,s.return,w)}if(s===o){Y=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,Y=S;break e}Y=s.return}}if(ge=i,Mi(),Zr&&typeof Zr.onPostCommitFiberRoot=="function")try{Zr.onPostCommitFiberRoot(Bd,e)}catch{}n=!0}return n}finally{je=r,Or.transition=t}}return!1}function Fx(e,t,r){t=Ko(r,t),t=IP(e,t,1),e=gi(e,t,1),t=Dt(),e!==null&&(Uu(e,1,t),Qt(e,t))}function Ke(e,t,r){if(e.tag===3)Fx(e,e,r);else for(;t!==null;){if(t.tag===3){Fx(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(bi===null||!bi.has(n))){e=Ko(r,e),e=RP(t,e,1),t=gi(t,e,1),e=Dt(),t!==null&&(Uu(t,1,e),Qt(t,e));break}}t=t.return}}function E$(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Dt(),e.pingedLanes|=e.suspendedLanes&r,yt===e&&(wt&r)===r&&(ut===4||ut===3&&(wt&130023424)===wt&&500>Xe()-Jg?ba(e,0):Yg|=r),Qt(e,t)}function rA(e,t){t===0&&(e.mode&1?(t=fc,fc<<=1,!(fc&130023424)&&(fc=4194304)):t=1);var r=Dt();e=$n(e,t),e!==null&&(Uu(e,t,r),Qt(e,r))}function N$(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),rA(e,r)}function T$(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),rA(e,r)}var nA;nA=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Gt.current)qt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return qt=!1,g$(e,t,r);qt=!!(e.flags&131072)}else qt=!1,Be&&t.flags&1048576&&sP(t,bf,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qc(e,t),e=t.pendingProps;var i=Wo(t,Nt.current);Oo(t,r),i=Vg(null,t,n,e,i,r);var a=qg();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Xt(n)?(a=!0,vf(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Bg(t),i.updater=Kd,t.stateNode=i,i._reactInternals=t,Qm(t,n,e,r),t=Zm(null,t,n,!0,a,r)):(t.tag=0,Be&&a&&$g(t),Ct(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=$$(n),e=Cr(n,e),i){case 0:t=Jm(null,t,n,e,r);break e;case 1:t=Tx(null,t,n,e,r);break e;case 11:t=Ex(null,t,n,e,r);break e;case 14:t=Nx(null,t,n,Cr(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Cr(n,i),Jm(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Cr(n,i),Tx(e,t,n,i,r);case 3:e:{if(BP(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,hP(e,t),Sf(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ko(Error(q(423)),t),t=Cx(e,t,n,r,i);break e}else if(n!==i){i=Ko(Error(q(424)),t),t=Cx(e,t,n,r,i);break e}else for(or=vi(t.stateNode.containerInfo.firstChild),sr=t,Be=!0,Dr=null,r=fP(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ho(),n===i){t=Mn(e,t,r);break e}Ct(e,t,n,r)}t=t.child}return t;case 5:return pP(t),e===null&&Km(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Um(n,i)?o=null:a!==null&&Um(n,a)&&(t.flags|=32),zP(e,t),Ct(e,t,o,r),t.child;case 6:return e===null&&Km(t),null;case 13:return FP(e,t,r);case 4:return Fg(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Vo(t,null,n,r):Ct(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Cr(n,i),Ex(e,t,n,i,r);case 7:return Ct(e,t,t.pendingProps,r),t.child;case 8:return Ct(e,t,t.pendingProps.children,r),t.child;case 12:return Ct(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,$e(xf,n._currentValue),n._currentValue=o,a!==null)if(Ur(a.value,o)){if(a.children===i.children&&!Gt.current){t=Mn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Pn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Gm(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Gm(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ct(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Oo(t,r),i=_r(i),n=n(i),t.flags|=1,Ct(e,t,n,r),t.child;case 14:return n=t.type,i=Cr(n,t.pendingProps),i=Cr(n.type,i),Nx(e,t,n,i,r);case 15:return DP(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Cr(n,i),Qc(e,t),t.tag=1,Xt(n)?(e=!0,vf(t)):e=!1,Oo(t,r),MP(t,n,i),Qm(t,n,i,r),Zm(null,t,n,!0,e,r);case 19:return UP(e,t,r);case 22:return LP(e,t,r)}throw Error(q(156,t.tag))};function iA(e,t){return T_(e,t)}function C$(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(e,t,r,n){return new C$(e,t,r,n)}function r0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $$(e){if(typeof e=="function")return r0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wg)return 11;if(e===Sg)return 14}return 2}function wi(e,t){var r=e.alternate;return r===null?(r=wr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Zc(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")r0(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ro:return xa(r.children,i,a,t);case xg:o=8,i|=8;break;case xm:return e=wr(12,r,t,i|2),e.elementType=xm,e.lanes=a,e;case wm:return e=wr(13,r,t,i),e.elementType=wm,e.lanes=a,e;case Sm:return e=wr(19,r,t,i),e.elementType=Sm,e.lanes=a,e;case p_:return Qd(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case d_:o=10;break e;case h_:o=9;break e;case wg:o=11;break e;case Sg:o=14;break e;case Gn:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=wr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function xa(e,t,r,n){return e=wr(7,e,n,t),e.lanes=r,e}function Qd(e,t,r,n){return e=wr(22,e,n,t),e.elementType=p_,e.lanes=r,e.stateNode={isHidden:!1},e}function Cp(e,t,r){return e=wr(6,e,null,t),e.lanes=r,e}function $p(e,t,r){return t=wr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function M$(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hp(0),this.expirationTimes=hp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hp(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function n0(e,t,r,n,i,a,o,s,l){return e=new M$(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=wr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bg(a),e}function I$(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:to,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function aA(e){if(!e)return Pi;e=e._reactInternals;e:{if(Fa(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Xt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var r=e.type;if(Xt(r))return aP(e,r,t)}return t}function oA(e,t,r,n,i,a,o,s,l){return e=n0(r,n,!0,e,i,a,o,s,l),e.context=aA(null),r=e.current,n=Dt(),i=xi(r),a=Pn(n,i),a.callback=t??null,gi(r,a,i),e.current.lanes=i,Uu(e,i,n),Qt(e,n),e}function Yd(e,t,r,n){var i=t.current,a=Dt(),o=xi(i);return r=aA(r),t.context===null?t.context=r:t.pendingContext=r,t=Pn(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=gi(i,t,o),e!==null&&(Br(e,i,o,a),Kc(e,i,o)),o}function Nf(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ux(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function i0(e,t){Ux(e,t),(e=e.alternate)&&Ux(e,t)}function R$(){return null}var sA=typeof reportError=="function"?reportError:function(e){console.error(e)};function a0(e){this._internalRoot=e}Jd.prototype.render=a0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));Yd(e,t,null,null)};Jd.prototype.unmount=a0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ka(function(){Yd(null,e,null,null)}),t[Cn]=null}};function Jd(e){this._internalRoot=e}Jd.prototype.unstable_scheduleHydration=function(e){if(e){var t=L_();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Yn.length&&t!==0&&t<Yn[r].priority;r++);Yn.splice(r,0,e),r===0&&B_(e)}};function o0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wx(){}function D$(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=Nf(o);a.call(u)}}var o=oA(t,n,e,0,null,!1,!1,"",Wx);return e._reactRootContainer=o,e[Cn]=o.current,Fl(e.nodeType===8?e.parentNode:e),ka(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Nf(l);s.call(u)}}var l=n0(e,0,!1,null,null,!1,!1,"",Wx);return e._reactRootContainer=l,e[Cn]=l.current,Fl(e.nodeType===8?e.parentNode:e),ka(function(){Yd(t,l,r,n)}),l}function eh(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=Nf(o);s.call(l)}}Yd(t,o,e,i)}else o=D$(r,t,e,i,n);return Nf(o)}R_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dl(t.pendingLanes);r!==0&&(_g(t,r|1),Qt(t,Xe()),!(ge&6)&&(Go=Xe()+500,Mi()))}break;case 13:ka(function(){var n=$n(e,1);if(n!==null){var i=Dt();Br(n,e,1,i)}}),i0(e,1)}};Pg=function(e){if(e.tag===13){var t=$n(e,134217728);if(t!==null){var r=Dt();Br(t,e,134217728,r)}i0(e,134217728)}};D_=function(e){if(e.tag===13){var t=xi(e),r=$n(e,t);if(r!==null){var n=Dt();Br(r,e,t,n)}i0(e,t)}};L_=function(){return je};z_=function(e,t){var r=je;try{return je=e,t()}finally{je=r}};Cm=function(e,t,r){switch(t){case"input":if(_m(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Hd(n);if(!i)throw Error(q(90));y_(n),_m(n,i)}}}break;case"textarea":g_(e,r);break;case"select":t=r.value,t!=null&&bo(e,!!r.multiple,t,!1)}};__=Zg;P_=ka;var L$={usingClientEntryPoint:!1,Events:[Hu,oo,Hd,O_,j_,Zg]},Ys={findFiberByHostInstance:ea,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},z$={bundleType:Ys.bundleType,version:Ys.version,rendererPackageName:Ys.rendererPackageName,rendererConfig:Ys.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ln.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=E_(e),e===null?null:e.stateNode},findFiberByHostInstance:Ys.findFiberByHostInstance||R$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sc.isDisabled&&Sc.supportsFiber)try{Bd=Sc.inject(z$),Zr=Sc}catch{}}cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L$;cr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o0(t))throw Error(q(200));return I$(e,t,null,r)};cr.createRoot=function(e,t){if(!o0(e))throw Error(q(299));var r=!1,n="",i=sA;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=n0(e,1,!1,null,null,r,!1,n,i),e[Cn]=t.current,Fl(e.nodeType===8?e.parentNode:e),new a0(t)};cr.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=E_(t),e=e===null?null:e.stateNode,e};cr.flushSync=function(e){return ka(e)};cr.hydrate=function(e,t,r){if(!Zd(t))throw Error(q(200));return eh(null,e,t,!0,r)};cr.hydrateRoot=function(e,t,r){if(!o0(e))throw Error(q(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=sA;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=oA(t,null,e,1,r??null,i,!1,a,o),e[Cn]=t.current,Fl(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Jd(t)};cr.render=function(e,t,r){if(!Zd(t))throw Error(q(200));return eh(null,e,t,!1,r)};cr.unmountComponentAtNode=function(e){if(!Zd(e))throw Error(q(40));return e._reactRootContainer?(ka(function(){eh(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1};cr.unstable_batchedUpdates=Zg;cr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zd(r))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return eh(e,t,r,!1,n)};cr.version="18.3.1-next-f1338f8080-20240426";function lA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lA)}catch(e){console.error(e)}}lA(),l_.exports=cr;var B$=l_.exports,Hx=B$;gm.createRoot=Hx.createRoot,gm.hydrateRoot=Hx.hydrateRoot;/**
* @remix-run/router v1.23.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Ql(){return Ql=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ql.apply(this,arguments)}var fi;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(fi||(fi={}));const Vx="popstate";function F$(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return fy("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Tf(i)}return W$(t,r,null,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function s0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function U$(){return Math.random().toString(36).substr(2,8)}function qx(e,t){return{usr:e.state,key:e.key,idx:t}}function fy(e,t,r,n){return r===void 0&&(r=null),Ql({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_s(t):t,{state:r,key:t&&t.key||n||U$()})}function Tf(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function _s(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function W$(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=fi.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(Ql({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=fi.Pop;let v=f(),g=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:g})}function d(v,g){s=fi.Push;let b=fy(y.location,v,g);u=f()+1;let x=qx(b,u),S=y.createHref(b);try{o.pushState(x,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(S)}a&&l&&l({action:s,location:y.location,delta:1})}function p(v,g){s=fi.Replace;let b=fy(y.location,v,g);u=f();let x=qx(b,u),S=y.createHref(b);o.replaceState(x,"",S),a&&l&&l({action:s,location:y.location,delta:0})}function m(v){let g=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof v=="string"?v:Tf(v);return b=b.replace(/ $/,"%20"),Qe(g,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,g)}let y={get action(){return s},get location(){return e(i,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Vx,c),l=v,()=>{i.removeEventListener(Vx,c),l=null}},createHref(v){return t(i,v)},createURL:m,encodeLocation(v){let g=m(v);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:p,go(v){return o.go(v)}};return y}var Kx;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kx||(Kx={}));function H$(e,t,r){return r===void 0&&(r="/"),V$(e,t,r)}function V$(e,t,r,n){let i=typeof t=="string"?_s(t):t,a=l0(i.pathname||"/",r);if(a==null)return null;let o=uA(e);q$(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=iM(a);s=tM(o[l],u)}return s}function uA(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(Qe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Si([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(Qe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),uA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:Z$(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of cA(a.path))i(a,o,l)}),t}function cA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=cA(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function q$(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:eM(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const K$=/^:[\w-]+$/,G$=3,X$=2,Q$=1,Y$=10,J$=-2,Gx=e=>e==="*";function Z$(e,t){let r=e.split("/"),n=r.length;return r.some(Gx)&&(n+=J$),t&&(n+=X$),r.filter(i=>!Gx(i)).reduce((i,a)=>i+(K$.test(a)?G$:a===""?Q$:Y$),n)}function eM(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function tM(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,f=a==="/"?t:t.slice(a.length)||"/",c=rM({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),d=l.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:Si([a,c.pathname]),pathnameBase:uM(Si([a,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(a=Si([a,c.pathnameBase]))}return o}function rM(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=nM(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,f,c)=>{let{paramName:d,isOptional:p}=f;if(d==="*"){let y=s[c]||"";o=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const m=s[c];return p&&!m?u[d]=void 0:u[d]=(m||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function nM(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),s0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function iM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return s0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function l0(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const aM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oM=e=>aM.test(e);function sM(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?_s(e):e,a;if(r)if(oM(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),s0(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=Xx(r.substring(1),"/"):a=Xx(r,t)}else a=t;return{pathname:a,search:cM(n),hash:fM(i)}}function Xx(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function Mp(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function lM(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function u0(e,t){let r=lM(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function c0(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=_s(e):(i=Ql({},e),Qe(!i.pathname||!i.pathname.includes("?"),Mp("?","pathname","search",i)),Qe(!i.pathname||!i.pathname.includes("#"),Mp("#","pathname","hash",i)),Qe(!i.search||!i.search.includes("#"),Mp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=sM(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Si=e=>e.join("/").replace(/\/\/+/g,"/"),uM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),cM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fA=["post","put","patch","delete"];new Set(fA);const hM=["get",...fA];new Set(hM);/**
* React Router v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yl.apply(this,arguments)}const f0=E.createContext(null),pM=E.createContext(null),Ii=E.createContext(null),th=E.createContext(null),ln=E.createContext({outlet:null,matches:[],isDataRoute:!1}),dA=E.createContext(null);function mM(e,t){let{relative:r}=t===void 0?{}:t;Ps()||Qe(!1);let{basename:n,navigator:i}=E.useContext(Ii),{hash:a,pathname:o,search:s}=pA(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Si([n,o])),i.createHref({pathname:l,search:s,hash:a})}function Ps(){return E.useContext(th)!=null}function As(){return Ps()||Qe(!1),E.useContext(th).location}function hA(e){E.useContext(Ii).static||E.useLayoutEffect(e)}function Ua(){let{isDataRoute:e}=E.useContext(ln);return e?TM():yM()}function yM(){Ps()||Qe(!1);let e=E.useContext(f0),{basename:t,future:r,navigator:n}=E.useContext(Ii),{matches:i}=E.useContext(ln),{pathname:a}=As(),o=JSON.stringify(u0(i,r.v7_relativeSplatPath)),s=E.useRef(!1);return hA(()=>{s.current=!0}),E.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=c0(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Si([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}const vM=E.createContext(null);function gM(e){let t=E.useContext(ln).outlet;return t&&E.createElement(vM.Provider,{value:e},t)}function bM(){let{matches:e}=E.useContext(ln),t=e[e.length-1];return t?t.params:{}}function pA(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=E.useContext(Ii),{matches:i}=E.useContext(ln),{pathname:a}=As(),o=JSON.stringify(u0(i,n.v7_relativeSplatPath));return E.useMemo(()=>c0(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function xM(e,t){return wM(e,t)}function wM(e,t,r,n){Ps()||Qe(!1);let{navigator:i}=E.useContext(Ii),{matches:a}=E.useContext(ln),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=As(),f;if(t){var c;let v=typeof t=="string"?_s(t):t;l==="/"||(c=v.pathname)!=null&&c.startsWith(l)||Qe(!1),f=v}else f=u;let d=f.pathname||"/",p=d;if(l!=="/"){let v=l.replace(/^\//,"").split("/");p="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=H$(e,{pathname:p}),y=PM(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Si([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Si([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),a,r,n);return t&&y?E.createElement(th.Provider,{value:{location:Yl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:fi.Pop}},y):y}function SM(){let e=NM(),t=dM(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),r?E.createElement("pre",{style:i},r):null,null)}const OM=E.createElement(SM,null);class jM extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?E.createElement(ln.Provider,{value:this.props.routeContext},E.createElement(dA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function _M(e){let{routeContext:t,match:r,children:n}=e,i=E.useContext(f0);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(ln.Provider,{value:t},n)}function PM(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||Qe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f<o.length;f++){let c=o[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:d,errors:p}=r,m=c.route.loader&&d[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||m){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let p,m=!1,y=null,v=null;r&&(p=s&&c.route.id?s[c.route.id]:void 0,y=c.route.errorElement||OM,l&&(u<0&&d===0?(CM("route-fallback"),m=!0,v=null):u===d&&(m=!0,v=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,d+1)),b=()=>{let x;return p?x=y:m?x=v:c.route.Component?x=E.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,E.createElement(_M,{match:c,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?E.createElement(jM,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):b()},null)}var mA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mA||{}),yA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(yA||{});function AM(e){let t=E.useContext(f0);return t||Qe(!1),t}function kM(e){let t=E.useContext(pM);return t||Qe(!1),t}function EM(e){let t=E.useContext(ln);return t||Qe(!1),t}function vA(e){let t=EM(),r=t.matches[t.matches.length-1];return r.route.id||Qe(!1),r.route.id}function NM(){var e;let t=E.useContext(dA),r=kM(),n=vA();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function TM(){let{router:e}=AM(mA.UseNavigateStable),t=vA(yA.UseNavigateStable),r=E.useRef(!1);return hA(()=>{r.current=!0}),E.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Yl({fromRouteId:t},a)))},[e,t])}const Qx={};function CM(e,t,r){Qx[e]||(Qx[e]=!0)}function $M(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function dy(e){let{to:t,replace:r,state:n,relative:i}=e;Ps()||Qe(!1);let{future:a,static:o}=E.useContext(Ii),{matches:s}=E.useContext(ln),{pathname:l}=As(),u=Ua(),f=c0(t,u0(s,a.v7_relativeSplatPath),l,i==="path"),c=JSON.stringify(f);return E.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:i}),[u,c,i,r,n]),null}function MM(e){return gM(e.context)}function tr(e){Qe(!1)}function IM(e){let{basename:t="/",children:r=null,location:n,navigationType:i=fi.Pop,navigator:a,static:o=!1,future:s}=e;Ps()&&Qe(!1);let l=t.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:a,static:o,future:Yl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=_s(n));let{pathname:f="/",search:c="",hash:d="",state:p=null,key:m="default"}=n,y=E.useMemo(()=>{let v=l0(f,l);return v==null?null:{location:{pathname:v,search:c,hash:d,state:p,key:m},navigationType:i}},[l,f,c,d,p,m,i]);return y==null?null:E.createElement(Ii.Provider,{value:u},E.createElement(th.Provider,{children:r,value:y}))}function RM(e){let{children:t,location:r}=e;return xM(hy(t),r)}new Promise(()=>{});function hy(e,t){t===void 0&&(t=[]);let r=[];return E.Children.forEach(e,(n,i)=>{if(!E.isValidElement(n))return;let a=[...t,i];if(n.type===E.Fragment){r.push.apply(r,hy(n.props.children,a));return}n.type!==tr&&Qe(!1),!n.props.index||!n.props.children||Qe(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=hy(n.props.children,a)),r.push(o)}),r}/**
* React Router DOM v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},py.apply(this,arguments)}function DM(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function LM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zM(e,t){return e.button===0&&(!t||t==="_self")&&!LM(e)}const BM=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FM="6";try{window.__reactRouterVersion=FM}catch{}const UM="startTransition",Yx=ET[UM];function WM(e){let{basename:t,children:r,future:n,window:i}=e,a=E.useRef();a.current==null&&(a.current=F$({window:i,v5Compat:!0}));let o=a.current,[s,l]=E.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=E.useCallback(c=>{u&&Yx?Yx(()=>l(c)):l(c)},[l,u]);return E.useLayoutEffect(()=>o.listen(f),[o,f]),E.useEffect(()=>$M(n),[n]),E.createElement(IM,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const HM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=E.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,d=DM(t,BM),{basename:p}=E.useContext(Ii),m,y=!1;if(typeof u=="string"&&VM.test(u)&&(m=u,HM))try{let x=new URL(window.location.href),S=u.startsWith("//")?new URL(x.protocol+u):new URL(u),w=l0(S.pathname,p);S.origin===x.origin&&w!=null?u=w+S.search+S.hash:y=!0}catch{}let v=mM(u,{relative:i}),g=qM(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function b(x){n&&n(x),x.defaultPrevented||g(x)}return E.createElement("a",py({},d,{href:m||v,onClick:y||a?n:b,ref:r,target:l}))});var Jx;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Jx||(Jx={}));var Zx;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Zx||(Zx={}));function qM(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=Ua(),u=As(),f=pA(e,{relative:o});return E.useCallback(c=>{if(zM(c,r)){c.preventDefault();let d=n!==void 0?n:Tf(u)===Tf(f);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}var ks=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ei,dg,Bj,GM=(Bj=class{constructor(){re(this,ei,KM);re(this,dg,!1)}setTimeoutProvider(e){Q(this,ei,e)}setTimeout(e,t){return k(this,ei).setTimeout(e,t)}clearTimeout(e){k(this,ei).clearTimeout(e)}setInterval(e,t){return k(this,ei).setInterval(e,t)}clearInterval(e){k(this,ei).clearInterval(e)}},ei=new WeakMap,dg=new WeakMap,Bj),na=new GM;function XM(e){setTimeout(e,0)}var Na=typeof window>"u"||"Deno"in globalThis;function $t(){}function QM(e,t){return typeof e=="function"?e(t):e}function my(e){return typeof e=="number"&&e>=0&&e!==1/0}function gA(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Oi(e,t){return typeof e=="function"?e(t):e}function vr(e,t){return typeof e=="function"?e(t):e}function e1(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==d0(o,t.options))return!1}else if(!Jl(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function t1(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Ta(t.options.mutationKey)!==Ta(a))return!1}else if(!Jl(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function d0(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ta)(e)}function Ta(e){return JSON.stringify(e,(t,r)=>yy(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Jl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Jl(e[r],t[r])):!1}var YM=Object.prototype.hasOwnProperty;function bA(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=r1(e)&&r1(t);if(!n&&!(yy(e)&&yy(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=n?f:o[f],d=e[c],p=t[c];if(d===p){l[c]=d,(n?f<a:YM.call(e,c))&&u++;continue}if(d===null||p===null||typeof d!="object"||typeof p!="object"){l[c]=p;continue}const m=bA(d,p,r+1);l[c]=m,m===d&&u++}return a===s&&u===a?e:l}function Cf(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function r1(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yy(e){if(!n1(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!n1(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function n1(e){return Object.prototype.toString.call(e)==="[object Object]"}function JM(e){return new Promise(t=>{na.setTimeout(t,e)})}function vy(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?bA(e,t):t}function ZM(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function eI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var h0=Symbol();function xA(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===h0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function p0(e,t){return typeof e=="function"?e(...t):!!e}function tI(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var ca,ti,No,Fj,rI=(Fj=class extends ks{constructor(){super();re(this,ca);re(this,ti);re(this,No);Q(this,No,t=>{if(!Na&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,ti)||this.setEventListener(k(this,No))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ti))==null||t.call(this),Q(this,ti,void 0))}setEventListener(t){var r;Q(this,No,t),(r=k(this,ti))==null||r.call(this),Q(this,ti,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){k(this,ca)!==t&&(Q(this,ca,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof k(this,ca)=="boolean"?k(this,ca):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ca=new WeakMap,ti=new WeakMap,No=new WeakMap,Fj),m0=new rI;function gy(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var nI=XM;function iI(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=nI;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var st=iI(),To,ri,Co,Uj,aI=(Uj=class extends ks{constructor(){super();re(this,To,!0);re(this,ri);re(this,Co);Q(this,Co,t=>{if(!Na&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){k(this,ri)||this.setEventListener(k(this,Co))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,ri))==null||t.call(this),Q(this,ri,void 0))}setEventListener(t){var r;Q(this,Co,t),(r=k(this,ri))==null||r.call(this),Q(this,ri,t(this.setOnline.bind(this)))}setOnline(t){k(this,To)!==t&&(Q(this,To,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return k(this,To)}},To=new WeakMap,ri=new WeakMap,Co=new WeakMap,Uj),$f=new aI;function oI(e){return Math.min(1e3*2**e,3e4)}function wA(e){return(e??"online")==="online"?$f.isOnline():!0}var by=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function SA(e){let t=!1,r=0,n;const i=gy(),a=()=>i.status!=="pending",o=y=>{var v;if(!a()){const g=new by(y);d(g),(v=e.onCancel)==null||v.call(e,g)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>m0.isFocused()&&(e.networkMode==="always"||$f.isOnline())&&e.canRun(),f=()=>wA(e.networkMode)&&e.canRun(),c=y=>{a()||(n==null||n(),i.resolve(y))},d=y=>{a()||(n==null||n(),i.reject(y))},p=()=>new Promise(y=>{var v;n=g=>{(a()||u())&&y(g)},(v=e.onPause)==null||v.call(e)}).then(()=>{var y;n=void 0,a()||(y=e.onContinue)==null||y.call(e)}),m=()=>{if(a())return;let y;const v=r===0?e.initialPromise:void 0;try{y=v??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var O;if(a())return;const b=e.retry??(Na?0:3),x=e.retryDelay??oI,S=typeof x=="function"?x(r,g):x,w=b===!0||typeof b=="number"&&r<b||typeof b=="function"&&b(r,g);if(t||!w){d(g);return}r++,(O=e.onFail)==null||O.call(e,r,g),JM(S).then(()=>u()?void 0:p()).then(()=>{t?d(g):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?m():p().then(m),i)}}var fa,Wj,OA=(Wj=class{constructor(){re(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),my(this.gcTime)&&Q(this,fa,na.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Na?1/0:5*60*1e3))}clearGcTimeout(){k(this,fa)&&(na.clearTimeout(k(this,fa)),Q(this,fa,void 0))}},fa=new WeakMap,Wj),da,$o,yr,ha,dt,Ru,pa,$r,hn,Hj,sI=(Hj=class extends OA{constructor(t){super();re(this,$r);re(this,da);re(this,$o);re(this,yr);re(this,ha);re(this,dt);re(this,Ru);re(this,pa);Q(this,pa,!1),Q(this,Ru,t.defaultOptions),this.setOptions(t.options),this.observers=[],Q(this,ha,t.client),Q(this,yr,k(this,ha).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Q(this,da,a1(this.options)),this.state=t.state??k(this,da),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,dt))==null?void 0:t.promise}setOptions(t){if(this.options={...k(this,Ru),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=a1(this.options);r.data!==void 0&&(this.setState(i1(r.data,r.dataUpdatedAt)),Q(this,da,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,yr).remove(this)}setData(t,r){const n=vy(this.state.data,t,this.options);return de(this,$r,hn).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){de(this,$r,hn).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=k(this,dt))==null?void 0:n.promise;return(i=k(this,dt))==null||i.cancel(t),r?r.then($t).catch($t):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,da))}isActive(){return this.observers.some(t=>vr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===h0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Oi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!gA(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,dt))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=k(this,dt))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,yr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(k(this,dt)&&(k(this,pa)?k(this,dt).cancel({revert:!0}):k(this,dt).cancelRetry()),this.scheduleGc()),k(this,yr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,$r,hn).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,f,c,d,p,m,y,v,g,b,x;if(this.state.fetchStatus!=="idle"&&((l=k(this,dt))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,dt))return k(this,dt).continueRetry(),k(this,dt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(w=>w.options.queryFn);S&&this.setOptions(S.options)}const n=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Q(this,pa,!0),n.signal)})},a=()=>{const S=xA(this.options,r),O=(()=>{const j={client:k(this,ha),queryKey:this.queryKey,meta:this.meta};return i(j),j})();return Q(this,pa,!1),this.options.persister?this.options.persister(S,O,this):S(O)},s=(()=>{const S={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,ha),state:this.state,fetchFn:a};return i(S),S})();(u=this.options.behavior)==null||u.onFetch(s,this),Q(this,$o,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&de(this,$r,hn).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),Q(this,dt,SA({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:S=>{S instanceof by&&S.revert&&this.setState({...k(this,$o),fetchStatus:"idle"}),n.abort()},onFail:(S,w)=>{de(this,$r,hn).call(this,{type:"failed",failureCount:S,error:w})},onPause:()=>{de(this,$r,hn).call(this,{type:"pause"})},onContinue:()=>{de(this,$r,hn).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const S=await k(this,dt).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(d=k(this,yr).config).onSuccess)==null||p.call(d,S,this),(y=(m=k(this,yr).config).onSettled)==null||y.call(m,S,this.state.error,this),S}catch(S){if(S instanceof by){if(S.silent)return k(this,dt).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw de(this,$r,hn).call(this,{type:"error",error:S}),(g=(v=k(this,yr).config).onError)==null||g.call(v,S,this),(x=(b=k(this,yr).config).onSettled)==null||x.call(b,this.state.data,S,this),S}finally{this.scheduleGc()}}},da=new WeakMap,$o=new WeakMap,yr=new WeakMap,ha=new WeakMap,dt=new WeakMap,Ru=new WeakMap,pa=new WeakMap,$r=new WeakSet,hn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...jA(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...i1(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Q(this,$o,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),k(this,yr).notify({query:this,type:"updated",action:t})})},Hj);function jA(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:wA(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function i1(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function a1(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Ft,me,Du,Tt,ma,Mo,vn,ni,Lu,Io,Ro,ya,va,ii,Do,Oe,pl,xy,wy,Sy,Oy,jy,_y,Py,_A,Vj,lI=(Vj=class extends ks{constructor(t,r){super();re(this,Oe);re(this,Ft);re(this,me);re(this,Du);re(this,Tt);re(this,ma);re(this,Mo);re(this,vn);re(this,ni);re(this,Lu);re(this,Io);re(this,Ro);re(this,ya);re(this,va);re(this,ii);re(this,Do,new Set);this.options=r,Q(this,Ft,t),Q(this,ni,null),Q(this,vn,gy()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,me).addObserver(this),o1(k(this,me),this.options)?de(this,Oe,pl).call(this):this.updateResult(),de(this,Oe,Oy).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ay(k(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ay(k(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,de(this,Oe,jy).call(this),de(this,Oe,_y).call(this),k(this,me).removeObserver(this)}setOptions(t){const r=this.options,n=k(this,me);if(this.options=k(this,Ft).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vr(this.options.enabled,k(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");de(this,Oe,Py).call(this),k(this,me).setOptions(this.options),r._defaulted&&!Cf(this.options,r)&&k(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,me),observer:this});const i=this.hasListeners();i&&s1(k(this,me),n,this.options,r)&&de(this,Oe,pl).call(this),this.updateResult(),i&&(k(this,me)!==n||vr(this.options.enabled,k(this,me))!==vr(r.enabled,k(this,me))||Oi(this.options.staleTime,k(this,me))!==Oi(r.staleTime,k(this,me)))&&de(this,Oe,xy).call(this);const a=de(this,Oe,wy).call(this);i&&(k(this,me)!==n||vr(this.options.enabled,k(this,me))!==vr(r.enabled,k(this,me))||a!==k(this,ii))&&de(this,Oe,Sy).call(this,a)}getOptimisticResult(t){const r=k(this,Ft).getQueryCache().build(k(this,Ft),t),n=this.createResult(r,t);return cI(this,n)&&(Q(this,Tt,n),Q(this,Mo,this.options),Q(this,ma,k(this,me).state)),n}getCurrentResult(){return k(this,Tt)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,vn).status==="pending"&&k(this,vn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){k(this,Do).add(t)}getCurrentQuery(){return k(this,me)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=k(this,Ft).defaultQueryOptions(t),n=k(this,Ft).getQueryCache().build(k(this,Ft),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return de(this,Oe,pl).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Tt)))}createResult(t,r){var P;const n=k(this,me),i=this.options,a=k(this,Tt),o=k(this,ma),s=k(this,Mo),u=t!==n?t.state:k(this,Du),{state:f}=t;let c={...f},d=!1,p;if(r._optimisticResults){const N=this.hasListeners(),$=!N&&o1(t,r),C=N&&s1(t,n,r,i);($||C)&&(c={...c,...jA(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:m,errorUpdatedAt:y,status:v}=c;p=c.data;let g=!1;if(r.placeholderData!==void 0&&p===void 0&&v==="pending"){let N;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(N=a.data,g=!0):N=typeof r.placeholderData=="function"?r.placeholderData((P=k(this,Ro))==null?void 0:P.state.data,k(this,Ro)):r.placeholderData,N!==void 0&&(v="success",p=vy(a==null?void 0:a.data,N,r),d=!0)}if(r.select&&p!==void 0&&!g)if(a&&p===(o==null?void 0:o.data)&&r.select===k(this,Lu))p=k(this,Io);else try{Q(this,Lu,r.select),p=r.select(p),p=vy(a==null?void 0:a.data,p,r),Q(this,Io,p),Q(this,ni,null)}catch(N){Q(this,ni,N)}k(this,ni)&&(m=k(this,ni),p=k(this,Io),y=Date.now(),v="error");const b=c.fetchStatus==="fetching",x=v==="pending",S=v==="error",w=x&&b,O=p!==void 0,_={status:v,fetchStatus:c.fetchStatus,isPending:x,isSuccess:v==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:c.dataUpdatedAt,error:m,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:S&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:S&&O,isStale:y0(t,r),refetch:this.refetch,promise:k(this,vn),isEnabled:vr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=_.data!==void 0,$=_.status==="error"&&!N,C=I=>{$?I.reject(_.error):N&&I.resolve(_.data)},L=()=>{const I=Q(this,vn,_.promise=gy());C(I)},R=k(this,vn);switch(R.status){case"pending":t.queryHash===n.queryHash&&C(R);break;case"fulfilled":($||_.data!==R.value)&&L();break;case"rejected":(!$||_.error!==R.reason)&&L();break}}return _}updateResult(){const t=k(this,Tt),r=this.createResult(k(this,me),this.options);if(Q(this,ma,k(this,me).state),Q(this,Mo,this.options),k(this,ma).data!==void 0&&Q(this,Ro,k(this,me)),Cf(r,t))return;Q(this,Tt,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!k(this,Do).size)return!0;const o=new Set(a??k(this,Do));return this.options.throwOnError&&o.add("error"),Object.keys(k(this,Tt)).some(s=>{const l=s;return k(this,Tt)[l]!==t[l]&&o.has(l)})};de(this,Oe,_A).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&de(this,Oe,Oy).call(this)}},Ft=new WeakMap,me=new WeakMap,Du=new WeakMap,Tt=new WeakMap,ma=new WeakMap,Mo=new WeakMap,vn=new WeakMap,ni=new WeakMap,Lu=new WeakMap,Io=new WeakMap,Ro=new WeakMap,ya=new WeakMap,va=new WeakMap,ii=new WeakMap,Do=new WeakMap,Oe=new WeakSet,pl=function(t){de(this,Oe,Py).call(this);let r=k(this,me).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch($t)),r},xy=function(){de(this,Oe,jy).call(this);const t=Oi(this.options.staleTime,k(this,me));if(Na||k(this,Tt).isStale||!my(t))return;const n=gA(k(this,Tt).dataUpdatedAt,t)+1;Q(this,ya,na.setTimeout(()=>{k(this,Tt).isStale||this.updateResult()},n))},wy=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,me)):this.options.refetchInterval)??!1},Sy=function(t){de(this,Oe,_y).call(this),Q(this,ii,t),!(Na||vr(this.options.enabled,k(this,me))===!1||!my(k(this,ii))||k(this,ii)===0)&&Q(this,va,na.setInterval(()=>{(this.options.refetchIntervalInBackground||m0.isFocused())&&de(this,Oe,pl).call(this)},k(this,ii)))},Oy=function(){de(this,Oe,xy).call(this),de(this,Oe,Sy).call(this,de(this,Oe,wy).call(this))},jy=function(){k(this,ya)&&(na.clearTimeout(k(this,ya)),Q(this,ya,void 0))},_y=function(){k(this,va)&&(na.clearInterval(k(this,va)),Q(this,va,void 0))},Py=function(){const t=k(this,Ft).getQueryCache().build(k(this,Ft),this.options);if(t===k(this,me))return;const r=k(this,me);Q(this,me,t),Q(this,Du,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},_A=function(t){st.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(k(this,Tt))}),k(this,Ft).getQueryCache().notify({query:k(this,me),type:"observerResultsUpdated"})})},Vj);function uI(e,t){return vr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function o1(e,t){return uI(e,t)||e.state.data!==void 0&&Ay(e,t,t.refetchOnMount)}function Ay(e,t,r){if(vr(t.enabled,e)!==!1&&Oi(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&y0(e,t)}return!1}function s1(e,t,r,n){return(e!==t||vr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&y0(e,r)}function y0(e,t){return vr(t.enabled,e)!==!1&&e.isStaleByTime(Oi(t.staleTime,e))}function cI(e,t){return!Cf(e.getCurrentResult(),t)}function l1(e){return{onFetch:(t,r)=>{var f,c,d,p,m;const n=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,a=((p=t.state.data)==null?void 0:p.pages)||[],o=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const v=x=>{tI(x,()=>t.signal,()=>y=!0)},g=xA(t.options,t.fetchOptions),b=async(x,S,w)=>{if(y)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const j=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};return v($),$})(),_=await g(j),{maxPages:P}=t.options,N=w?eI:ZM;return{pages:N(x.pages,_,P),pageParams:N(x.pageParams,S,P)}};if(i&&a.length){const x=i==="backward",S=x?fI:u1,w={pages:a,pageParams:o},O=S(n,w);s=await b(w,O,x)}else{const x=e??a.length;do{const S=l===0?o[0]??n.initialPageParam:u1(n,s);if(l>0&&S==null)break;s=await b(s,S),l++}while(l<x)}return s};t.options.persister?t.fetchFn=()=>{var y,v;return(v=(y=t.options).persister)==null?void 0:v.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function u1(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function fI(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var zu,Kr,_t,ga,Gr,qn,qj,dI=(qj=class extends OA{constructor(t){super();re(this,Gr);re(this,zu);re(this,Kr);re(this,_t);re(this,ga);Q(this,zu,t.client),this.mutationId=t.mutationId,Q(this,_t,t.mutationCache),Q(this,Kr,[]),this.state=t.state||PA(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Kr).includes(t)||(k(this,Kr).push(t),this.clearGcTimeout(),k(this,_t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Q(this,Kr,k(this,Kr).filter(r=>r!==t)),this.scheduleGc(),k(this,_t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Kr).length||(this.state.status==="pending"?this.scheduleGc():k(this,_t).remove(this))}continue(){var t;return((t=k(this,ga))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,u,f,c,d,p,m,y,v,g,b,x,S,w,O,j;const r=()=>{de(this,Gr,qn).call(this,{type:"continue"})},n={client:k(this,zu),meta:this.options.meta,mutationKey:this.options.mutationKey};Q(this,ga,SA({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{de(this,Gr,qn).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{de(this,Gr,qn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,_t).canRun(this)}));const i=this.state.status==="pending",a=!k(this,ga).canStart();try{if(i)r();else{de(this,Gr,qn).call(this,{type:"pending",variables:t,isPaused:a}),k(this,_t).config.onMutate&&await k(this,_t).config.onMutate(t,this,n);const P=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,n));P!==this.state.context&&de(this,Gr,qn).call(this,{type:"pending",context:P,variables:t,isPaused:a})}const _=await k(this,ga).start();return await((u=(l=k(this,_t).config).onSuccess)==null?void 0:u.call(l,_,t,this.state.context,this,n)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,_,t,this.state.context,n)),await((p=(d=k(this,_t).config).onSettled)==null?void 0:p.call(d,_,null,this.state.variables,this.state.context,this,n)),await((y=(m=this.options).onSettled)==null?void 0:y.call(m,_,null,t,this.state.context,n)),de(this,Gr,qn).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(v=k(this,_t).config).onError)==null?void 0:g.call(v,_,t,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((x=(b=this.options).onError)==null?void 0:x.call(b,_,t,this.state.context,n))}catch(P){Promise.reject(P)}try{await((w=(S=k(this,_t).config).onSettled)==null?void 0:w.call(S,void 0,_,this.state.variables,this.state.context,this,n))}catch(P){Promise.reject(P)}try{await((j=(O=this.options).onSettled)==null?void 0:j.call(O,void 0,_,t,this.state.context,n))}catch(P){Promise.reject(P)}throw de(this,Gr,qn).call(this,{type:"error",error:_}),_}finally{k(this,_t).runNext(this)}}},zu=new WeakMap,Kr=new WeakMap,_t=new WeakMap,ga=new WeakMap,Gr=new WeakSet,qn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),st.batch(()=>{k(this,Kr).forEach(n=>{n.onMutationUpdate(t)}),k(this,_t).notify({mutation:this,type:"updated",action:t})})},qj);function PA(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var gn,Mr,Bu,Kj,hI=(Kj=class extends ks{constructor(t={}){super();re(this,gn);re(this,Mr);re(this,Bu);this.config=t,Q(this,gn,new Set),Q(this,Mr,new Map),Q(this,Bu,0)}build(t,r,n){const i=new dI({client:t,mutationCache:this,mutationId:++ic(this,Bu)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){k(this,gn).add(t);const r=Oc(t);if(typeof r=="string"){const n=k(this,Mr).get(r);n?n.push(t):k(this,Mr).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(k(this,gn).delete(t)){const r=Oc(t);if(typeof r=="string"){const n=k(this,Mr).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&k(this,Mr).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=Oc(t);if(typeof r=="string"){const n=k(this,Mr).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=Oc(t);if(typeof r=="string"){const i=(n=k(this,Mr).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){st.batch(()=>{k(this,gn).forEach(t=>{this.notify({type:"removed",mutation:t})}),k(this,gn).clear(),k(this,Mr).clear()})}getAll(){return Array.from(k(this,gn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>t1(r,n))}findAll(t={}){return this.getAll().filter(r=>t1(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return st.batch(()=>Promise.all(t.map(r=>r.continue().catch($t))))}},gn=new WeakMap,Mr=new WeakMap,Bu=new WeakMap,Kj);function Oc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var bn,ai,Ut,xn,Nn,ef,ky,Gj,pI=(Gj=class extends ks{constructor(r,n){super();re(this,Nn);re(this,bn);re(this,ai);re(this,Ut);re(this,xn);Q(this,bn,r),this.setOptions(n),this.bindMethods(),de(this,Nn,ef).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=k(this,bn).defaultMutationOptions(r),Cf(this.options,n)||k(this,bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ut),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ta(n.mutationKey)!==Ta(this.options.mutationKey)?this.reset():((i=k(this,Ut))==null?void 0:i.state.status)==="pending"&&k(this,Ut).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Ut))==null||r.removeObserver(this)}onMutationUpdate(r){de(this,Nn,ef).call(this),de(this,Nn,ky).call(this,r)}getCurrentResult(){return k(this,ai)}reset(){var r;(r=k(this,Ut))==null||r.removeObserver(this),Q(this,Ut,void 0),de(this,Nn,ef).call(this),de(this,Nn,ky).call(this)}mutate(r,n){var i;return Q(this,xn,n),(i=k(this,Ut))==null||i.removeObserver(this),Q(this,Ut,k(this,bn).getMutationCache().build(k(this,bn),this.options)),k(this,Ut).addObserver(this),k(this,Ut).execute(r)}},bn=new WeakMap,ai=new WeakMap,Ut=new WeakMap,xn=new WeakMap,Nn=new WeakSet,ef=function(){var n;const r=((n=k(this,Ut))==null?void 0:n.state)??PA();Q(this,ai,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},ky=function(r){st.batch(()=>{var n,i,a,o,s,l,u,f;if(k(this,xn)&&this.hasListeners()){const c=k(this,ai).variables,d=k(this,ai).context,p={client:k(this,bn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=k(this,xn)).onSuccess)==null||i.call(n,r.data,c,d,p)}catch(m){Promise.reject(m)}try{(o=(a=k(this,xn)).onSettled)==null||o.call(a,r.data,null,c,d,p)}catch(m){Promise.reject(m)}}else if((r==null?void 0:r.type)==="error"){try{(l=(s=k(this,xn)).onError)==null||l.call(s,r.error,c,d,p)}catch(m){Promise.reject(m)}try{(f=(u=k(this,xn)).onSettled)==null||f.call(u,void 0,r.error,c,d,p)}catch(m){Promise.reject(m)}}}this.listeners.forEach(c=>{c(k(this,ai))})})},Gj),Xr,Xj,mI=(Xj=class extends ks{constructor(t={}){super();re(this,Xr);this.config=t,Q(this,Xr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??d0(i,r);let o=this.get(a);return o||(o=new sI({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,Xr).has(t.queryHash)||(k(this,Xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=k(this,Xr).get(t.queryHash);r&&(t.destroy(),r===t&&k(this,Xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Xr).get(t)}getAll(){return[...k(this,Xr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>e1(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>e1(t,n)):r}notify(t){st.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){st.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Xr=new WeakMap,Xj),qe,oi,si,Lo,zo,li,Bo,Fo,Qj,yI=(Qj=class{constructor(e={}){re(this,qe);re(this,oi);re(this,si);re(this,Lo);re(this,zo);re(this,li);re(this,Bo);re(this,Fo);Q(this,qe,e.queryCache||new mI),Q(this,oi,e.mutationCache||new hI),Q(this,si,e.defaultOptions||{}),Q(this,Lo,new Map),Q(this,zo,new Map),Q(this,li,0)}mount(){ic(this,li)._++,k(this,li)===1&&(Q(this,Bo,m0.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,qe).onFocus())})),Q(this,Fo,$f.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,qe).onOnline())})))}unmount(){var e,t;ic(this,li)._--,k(this,li)===0&&((e=k(this,Bo))==null||e.call(this),Q(this,Bo,void 0),(t=k(this,Fo))==null||t.call(this),Q(this,Fo,void 0))}isFetching(e){return k(this,qe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,oi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,qe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=k(this,qe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Oi(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return k(this,qe).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=k(this,qe).get(n.queryHash),a=i==null?void 0:i.state.data,o=QM(t,a);if(o!==void 0)return k(this,qe).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return st.batch(()=>k(this,qe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=k(this,qe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=k(this,qe);st.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=k(this,qe);return st.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=st.batch(()=>k(this,qe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then($t).catch($t)}invalidateQueries(e,t={}){return st.batch(()=>(k(this,qe).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=st.batch(()=>k(this,qe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch($t)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then($t)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=k(this,qe).build(this,t);return r.isStaleByTime(Oi(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($t).catch($t)}fetchInfiniteQuery(e){return e.behavior=l1(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($t).catch($t)}ensureInfiniteQueryData(e){return e.behavior=l1(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $f.isOnline()?k(this,oi).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,qe)}getMutationCache(){return k(this,oi)}getDefaultOptions(){return k(this,si)}setDefaultOptions(e){Q(this,si,e)}setQueryDefaults(e,t){k(this,Lo).set(Ta(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Lo).values()],r={};return t.forEach(n=>{Jl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){k(this,zo).set(Ta(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,zo).values()],r={};return t.forEach(n=>{Jl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,si).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=d0(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===h0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,si).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,qe).clear(),k(this,oi).clear()}},qe=new WeakMap,oi=new WeakMap,si=new WeakMap,Lo=new WeakMap,zo=new WeakMap,li=new WeakMap,Bo=new WeakMap,Fo=new WeakMap,Qj),AA=E.createContext(void 0),rh=e=>{const t=E.useContext(AA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vI=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(AA.Provider,{value:e,children:t})),kA=E.createContext(!1),gI=()=>E.useContext(kA);kA.Provider;function bI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xI=E.createContext(bI()),wI=()=>E.useContext(xI),SI=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?p0(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},OI=e=>{E.useEffect(()=>{e.clearReset()},[e])},jI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||p0(r,[e.error,n])),_I=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},PI=(e,t)=>e.isLoading&&e.isFetching&&!t,AI=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,c1=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function kI(e,t,r){var d,p,m,y;const n=gI(),i=wI(),a=rh(),o=a.defaultQueryOptions(e);(p=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||p.call(d,o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",_I(o),SI(o,i,s),OI(i);const l=!a.getQueryCache().get(o.queryHash),[u]=E.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),c=!n&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(v=>{const g=c?u.subscribe(st.batchCalls(v)):$t;return u.updateResult(),g},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),E.useEffect(()=>{u.setOptions(o)},[o,u]),AI(o,f))throw c1(o,u,i);if(jI({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((y=(m=a.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||y.call(m,o,f),o.experimental_prefetchInRender&&!Na&&PI(f,n)){const v=l?c1(o,u,i):s==null?void 0:s.promise;v==null||v.catch($t).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function Ai(e,t){return kI(e,lI)}function Mf(e,t){const r=rh(),[n]=E.useState(()=>new pI(r,e));E.useEffect(()=>{n.setOptions(e)},[n,e]);const i=E.useSyncExternalStore(E.useCallback(o=>n.subscribe(st.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=E.useCallback((o,s)=>{n.mutate(o,s).catch($t)},[n]);if(i.error&&p0(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function EA(e,t){return function(){return e.apply(t,arguments)}}const{toString:EI}=Object.prototype,{getPrototypeOf:v0}=Object,{iterator:nh,toStringTag:NA}=Symbol,ih=(e=>t=>{const r=EI.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Wr=e=>(e=e.toLowerCase(),t=>ih(t)===e),ah=e=>t=>typeof t===e,{isArray:Es}=Array,Xo=ah("undefined");function qu(e){return e!==null&&!Xo(e)&&e.constructor!==null&&!Xo(e.constructor)&&Yt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const TA=Wr("ArrayBuffer");function NI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&TA(e.buffer),t}const TI=ah("string"),Yt=ah("function"),CA=ah("number"),Ku=e=>e!==null&&typeof e=="object",CI=e=>e===!0||e===!1,tf=e=>{if(ih(e)!=="object")return!1;const t=v0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(NA in e)&&!(nh in e)},$I=e=>{if(!Ku(e)||qu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},MI=Wr("Date"),II=Wr("File"),RI=Wr("Blob"),DI=Wr("FileList"),LI=e=>Ku(e)&&Yt(e.pipe),zI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Yt(e.append)&&((t=ih(e))==="formdata"||t==="object"&&Yt(e.toString)&&e.toString()==="[object FormData]"))},BI=Wr("URLSearchParams"),[FI,UI,WI,HI]=["ReadableStream","Request","Response","Headers"].map(Wr),VI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),Es(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(qu(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function $A(e,t){if(qu(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,MA=e=>!Xo(e)&&e!==ia;function Ey(){const{caseless:e,skipUndefined:t}=MA(this)&&this||{},r={},n=(i,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const o=e&&$A(r,a)||a;tf(r[o])&&tf(i)?r[o]=Ey(r[o],i):tf(i)?r[o]=Ey({},i):Es(i)?r[o]=i.slice():(!t||!Xo(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Gu(arguments[i],n);return r}const qI=(e,t,r,{allOwnKeys:n}={})=>(Gu(t,(i,a)=>{r&&Yt(i)?Object.defineProperty(e,a,{value:EA(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),KI=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GI=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},XI=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&v0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},QI=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},YI=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!CA(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},JI=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&v0(Uint8Array)),ZI=(e,t)=>{const n=(e&&e[nh]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},eR=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},tR=Wr("HTMLFormElement"),rR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),f1=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),nR=Wr("RegExp"),IA=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Gu(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},iR=e=>{IA(e,(t,r)=>{if(Yt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Yt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},aR=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return Es(e)?n(e):n(String(e).split(t)),r},oR=()=>{},sR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function lR(e){return!!(e&&Yt(e.append)&&e[NA]==="FormData"&&e[nh])}const uR=e=>{const t=new Array(10),r=(n,i)=>{if(Ku(n)){if(t.indexOf(n)>=0)return;if(qu(n))return n;if(!("toJSON"in n)){t[i]=n;const a=Es(n)?[]:{};return Gu(n,(o,s)=>{const l=r(o,i+1);!Xo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},cR=Wr("AsyncFunction"),fR=e=>e&&(Ku(e)||Yt(e))&&Yt(e.then)&&Yt(e.catch),RA=((e,t)=>e?setImmediate:t?((r,n)=>(ia.addEventListener("message",({source:i,data:a})=>{i===ia&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ia.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Yt(ia.postMessage)),dR=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||RA,hR=e=>e!=null&&Yt(e[nh]),M={isArray:Es,isArrayBuffer:TA,isBuffer:qu,isFormData:zI,isArrayBufferView:NI,isString:TI,isNumber:CA,isBoolean:CI,isObject:Ku,isPlainObject:tf,isEmptyObject:$I,isReadableStream:FI,isRequest:UI,isResponse:WI,isHeaders:HI,isUndefined:Xo,isDate:MI,isFile:II,isBlob:RI,isRegExp:nR,isFunction:Yt,isStream:LI,isURLSearchParams:BI,isTypedArray:JI,isFileList:DI,forEach:Gu,merge:Ey,extend:qI,trim:VI,stripBOM:KI,inherits:GI,toFlatObject:XI,kindOf:ih,kindOfTest:Wr,endsWith:QI,toArray:YI,forEachEntry:ZI,matchAll:eR,isHTMLForm:tR,hasOwnProperty:f1,hasOwnProp:f1,reduceDescriptors:IA,freezeMethods:iR,toObjectSet:aR,toCamelCase:rR,noop:oR,toFiniteNumber:sR,findKey:$A,global:ia,isContextDefined:MA,isSpecCompliantForm:lR,toJSONObject:uR,isAsyncFn:cR,isThenable:fR,setImmediate:RA,asap:dR,isIterable:hR};let se=class DA extends Error{static from(t,r,n,i,a,o){const s=new DA(t.message,r||t.code,n,i,a);return s.cause=t,s.name=t.name,o&&Object.assign(s,o),s}constructor(t,r,n,i,a){super(t),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";se.ERR_BAD_OPTION="ERR_BAD_OPTION";se.ECONNABORTED="ECONNABORTED";se.ETIMEDOUT="ETIMEDOUT";se.ERR_NETWORK="ERR_NETWORK";se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";se.ERR_DEPRECATED="ERR_DEPRECATED";se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";se.ERR_CANCELED="ERR_CANCELED";se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";se.ERR_INVALID_URL="ERR_INVALID_URL";const pR=null;function Ny(e){return M.isPlainObject(e)||M.isArray(e)}function LA(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function d1(e,t,r){return e?e.concat(t).map(function(i,a){return i=LA(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function mR(e){return M.isArray(e)&&!e.some(Ny)}const yR=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function oh(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!M.isUndefined(v[y])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(M.isDate(m))return m.toISOString();if(M.isBoolean(m))return m.toString();if(!l&&M.isBlob(m))throw new se("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(m)||M.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,y,v){let g=m;if(m&&!v&&typeof m=="object"){if(M.endsWith(y,"{}"))y=n?y:y.slice(0,-2),m=JSON.stringify(m);else if(M.isArray(m)&&mR(m)||(M.isFileList(m)||M.endsWith(y,"[]"))&&(g=M.toArray(m)))return y=LA(y),g.forEach(function(x,S){!(M.isUndefined(x)||x===null)&&t.append(o===!0?d1([y],S,a):o===null?y:y+"[]",u(x))}),!1}return Ny(m)?!0:(t.append(d1(v,y,a),u(m)),!1)}const c=[],d=Object.assign(yR,{defaultVisitor:f,convertValue:u,isVisitable:Ny});function p(m,y){if(!M.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));c.push(m),M.forEach(m,function(g,b){(!(M.isUndefined(g)||g===null)&&i.call(t,g,M.isString(b)?b.trim():b,y,d))===!0&&p(g,y?y.concat(b):[b])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return p(e),t}function h1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function g0(e,t){this._pairs=[],e&&oh(e,this,t)}const zA=g0.prototype;zA.append=function(t,r){this._pairs.push([t,r])};zA.toString=function(t){const r=t?function(n){return t.call(this,n,h1)}:h1;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function vR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function BA(e,t,r){if(!t)return e;const n=r&&r.encode||vR,i=M.isFunction(r)?{serialize:r}:r,a=i&&i.serialize;let o;if(a?o=a(t,i):o=M.isURLSearchParams(t)?t.toString():new g0(t,i).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class p1{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const b0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},gR=typeof URLSearchParams<"u"?URLSearchParams:g0,bR=typeof FormData<"u"?FormData:null,xR=typeof Blob<"u"?Blob:null,wR={isBrowser:!0,classes:{URLSearchParams:gR,FormData:bR,Blob:xR},protocols:["http","https","file","blob","url","data"]},x0=typeof window<"u"&&typeof document<"u",Ty=typeof navigator=="object"&&navigator||void 0,SR=x0&&(!Ty||["ReactNative","NativeScript","NS"].indexOf(Ty.product)<0),OR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jR=x0&&window.location.href||"http://localhost",_R=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:x0,hasStandardBrowserEnv:SR,hasStandardBrowserWebWorkerEnv:OR,navigator:Ty,origin:jR},Symbol.toStringTag,{value:"Module"})),Et={..._R,...wR};function PR(e,t){return oh(e,new Et.classes.URLSearchParams,{visitor:function(r,n,i,a){return Et.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function AR(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kR(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function FA(e){function t(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&M.isArray(i[o])&&(i[o]=kR(i[o])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,i)=>{t(AR(n),i,r,0)}),r}return null}function ER(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Xu={transitional:b0,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(FA(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return PR(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oh(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),ER(t)):t}],transformResponse:[function(t){const r=this.transitional||Xu.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?se.from(s,se.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Et.classes.FormData,Blob:Et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{Xu.headers[e]={}});const NR=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TR=e=>{const t={};let r,n,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&NR[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},m1=Symbol("internals");function Js(e){return e&&String(e).trim().toLowerCase()}function rf(e){return e===!1||e==null?e:M.isArray(e)?e.map(rf):String(e)}function CR(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const $R=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ip(e,t,r,n,i){if(M.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function MR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function IR(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=Js(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=rf(s))}const o=(s,l)=>M.forEach(s,(u,f)=>a(u,f,l));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(M.isString(t)&&(t=t.trim())&&!$R(t))o(TR(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},l,u;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?M.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=Js(t),t){const n=M.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return CR(i);if(M.isFunction(r))return r.call(this,i,n);if(M.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Js(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Ip(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=Js(o),o){const s=M.findKey(n,o);s&&(!r||Ip(n,n[s],s,r))&&(delete n[s],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Ip(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return M.forEach(this,(i,a)=>{const o=M.findKey(n,a);if(o){r[o]=rf(i),delete r[a];return}const s=t?MR(a):String(a).trim();s!==a&&delete r[a],r[s]=rf(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[m1]=this[m1]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=Js(o);n[s]||(IR(i,o),n[s]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Jt);function Rp(e,t){const r=this||Xu,n=t||r,i=Jt.from(n.headers);let a=n.data;return M.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function UA(e){return!!(e&&e.__CANCEL__)}let Qu=class extends se{constructor(t,r,n){super(t??"canceled",se.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function WA(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new se("Request failed with status code "+r.status,[se.ERR_BAD_REQUEST,se.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function RR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function DR(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,d=0;for(;c!==i;)d+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const p=f&&u-f;return p?Math.round(d*1e3/p):void 0}}function LR(e,t){let r=0,n=1e3/t,i,a;const o=(u,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const If=(e,t,r=3)=>{let n=0;const i=DR(50,250);return LR(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},y1=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},v1=e=>(...t)=>M.asap(()=>e(...t)),zR=Et.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Et.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Et.origin),Et.navigator&&/(msie|trident)/i.test(Et.navigator.userAgent)):()=>!0,BR=Et.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function FR(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function HA(e,t,r){let n=!FR(t);return e&&(n||r==!1)?UR(e,t):t}const g1=e=>e instanceof Jt?{...e}:e;function Ca(e,t){t=t||{};const r={};function n(u,f,c,d){return M.isPlainObject(u)&&M.isPlainObject(f)?M.merge.call({caseless:d},u,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(u,f,c,d){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u,c,d)}else return n(u,f,c,d)}function a(u,f){if(!M.isUndefined(f))return n(void 0,f)}function o(u,f){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(g1(u),g1(f),c,!0)};return M.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const c=M.hasOwnProp(l,f)?l[f]:i,d=c(e[f],t[f],f);M.isUndefined(d)&&c!==s||(r[f]=d)}),r}const VA=e=>{const t=Ca({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Jt.from(o),t.url=BA(HA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(Et.hasStandardBrowserEnv||Et.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(Et.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&zR(t.url))){const l=i&&a&&BR.read(a);l&&o.set(i,l)}return t},WR=typeof XMLHttpRequest<"u",HR=WR&&function(e){return new Promise(function(r,n){const i=VA(e);let a=i.data;const o=Jt.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,d,p,m;function y(){p&&p(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let v=new XMLHttpRequest;v.open(i.method.toUpperCase(),i.url,!0),v.timeout=i.timeout;function g(){if(!v)return;const x=Jt.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};WA(function(j){r(j),y()},function(j){n(j),y()},w),v=null}"onloadend"in v?v.onloadend=g:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(g)},v.onabort=function(){v&&(n(new se("Request aborted",se.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const w=S&&S.message?S.message:"Network Error",O=new se(w,se.ERR_NETWORK,e,v);O.event=S||null,n(O),v=null},v.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||b0;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),n(new se(S,w.clarifyTimeoutError?se.ETIMEDOUT:se.ECONNABORTED,e,v)),v=null},a===void 0&&o.setContentType(null),"setRequestHeader"in v&&M.forEach(o.toJSON(),function(S,w){v.setRequestHeader(w,S)}),M.isUndefined(i.withCredentials)||(v.withCredentials=!!i.withCredentials),s&&s!=="json"&&(v.responseType=i.responseType),u&&([d,m]=If(u,!0),v.addEventListener("progress",d)),l&&v.upload&&([c,p]=If(l),v.upload.addEventListener("progress",c),v.upload.addEventListener("loadend",p)),(i.cancelToken||i.signal)&&(f=x=>{v&&(n(!x||x.type?new Qu(null,e,v):x),v.abort(),v=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const b=RR(i.url);if(b&&Et.protocols.indexOf(b)===-1){n(new se("Unsupported protocol "+b+":",se.ERR_BAD_REQUEST,e));return}v.send(a||null)})},VR=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof se?f:new Qu(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new se(`timeout of ${t}ms exceeded`,se.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>M.asap(s),l}},qR=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},KR=async function*(e,t){for await(const r of GR(e))yield*qR(r,t)},GR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},b1=(e,t,r,n)=>{const i=KR(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let d=a+=c;r(d)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},x1=64*1024,{isFunction:jc}=M,XR=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:w1,TextEncoder:S1}=M.global,O1=(e,...t)=>{try{return!!e(...t)}catch{return!1}},QR=e=>{e=M.merge.call({skipUndefined:!0},XR,e);const{fetch:t,Request:r,Response:n}=e,i=t?jc(t):typeof fetch=="function",a=jc(r),o=jc(n);if(!i)return!1;const s=i&&jc(w1),l=i&&(typeof S1=="function"?(m=>y=>m.encode(y))(new S1):async m=>new Uint8Array(await new r(m).arrayBuffer())),u=a&&s&&O1(()=>{let m=!1;const y=new r(Et.origin,{body:new w1,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!y}),f=o&&s&&O1(()=>M.isReadableStream(new n("").body)),c={stream:f&&(m=>m.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!c[m]&&(c[m]=(y,v)=>{let g=y&&y[m];if(g)return g.call(y);throw new se(`Response type '${m}' is not supported`,se.ERR_NOT_SUPPORT,v)})});const d=async m=>{if(m==null)return 0;if(M.isBlob(m))return m.size;if(M.isSpecCompliantForm(m))return(await new r(Et.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(M.isArrayBufferView(m)||M.isArrayBuffer(m))return m.byteLength;if(M.isURLSearchParams(m)&&(m=m+""),M.isString(m))return(await l(m)).byteLength},p=async(m,y)=>{const v=M.toFiniteNumber(m.getContentLength());return v??d(y)};return async m=>{let{url:y,method:v,data:g,signal:b,cancelToken:x,timeout:S,onDownloadProgress:w,onUploadProgress:O,responseType:j,headers:_,withCredentials:P="same-origin",fetchOptions:N}=VA(m),$=t||fetch;j=j?(j+"").toLowerCase():"text";let C=VR([b,x&&x.toAbortSignal()],S),L=null;const R=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let I;try{if(O&&u&&v!=="get"&&v!=="head"&&(I=await p(_,g))!==0){let K=new r(y,{method:"POST",body:g,duplex:"half"}),H;if(M.isFormData(g)&&(H=K.headers.get("content-type"))&&_.setContentType(H),K.body){const[X,ie]=y1(I,If(v1(O)));g=b1(K.body,x1,X,ie)}}M.isString(P)||(P=P?"include":"omit");const D=a&&"credentials"in r.prototype,F={...N,signal:C,method:v.toUpperCase(),headers:_.normalize().toJSON(),body:g,duplex:"half",credentials:D?P:void 0};L=a&&new r(y,F);let T=await(a?$(L,N):$(y,F));const B=f&&(j==="stream"||j==="response");if(f&&(w||B&&R)){const K={};["status","statusText","headers"].forEach(be=>{K[be]=T[be]});const H=M.toFiniteNumber(T.headers.get("content-length")),[X,ie]=w&&y1(H,If(v1(w),!0))||[];T=new n(b1(T.body,x1,X,()=>{ie&&ie(),R&&R()}),K)}j=j||"text";let U=await c[M.findKey(c,j)||"text"](T,m);return!B&&R&&R(),await new Promise((K,H)=>{WA(K,H,{data:U,headers:Jt.from(T.headers),status:T.status,statusText:T.statusText,config:m,request:L})})}catch(D){throw R&&R(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new se("Network Error",se.ERR_NETWORK,m,L,D&&D.response),{cause:D.cause||D}):se.from(D,D&&D.code,m,L,D&&D.response)}}},YR=new Map,qA=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,s=o,l,u,f=YR;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:QR(t)),f=u;return u};qA();const w0={http:pR,xhr:HR,fetch:{get:qA}};M.forEach(w0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const j1=e=>`- ${e}`,JR=e=>M.isFunction(e)||e===null||e===!1;function ZR(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o<r;o++){n=e[o];let s;if(i=n,!JR(n)&&(i=w0[(s=String(n)).toLowerCase()],i===void 0))throw new se(`Unknown adapter '${s}'`);if(i&&(M.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
`+o.map(j1).join(`
`):" "+j1(o[0]):"as no adapter specified";throw new se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const KA={getAdapter:ZR,adapters:w0};function Dp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Qu(null,e)}function _1(e){return Dp(e),e.headers=Jt.from(e.headers),e.data=Rp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),KA.getAdapter(e.adapter||Xu.adapter,e)(e).then(function(n){return Dp(e),n.data=Rp.call(e,e.transformResponse,n),n.headers=Jt.from(n.headers),n},function(n){return UA(n)||(Dp(e),n&&n.response&&(n.response.data=Rp.call(e,e.transformResponse,n.response),n.response.headers=Jt.from(n.response.headers))),Promise.reject(n)})}const GA="1.13.5",sh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{sh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const P1={};sh.transitional=function(t,r,n){function i(a,o){return"[Axios v"+GA+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new se(i(o," has been removed"+(r?" in "+r:"")),se.ERR_DEPRECATED);return r&&!P1[o]&&(P1[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};sh.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function eD(e,t,r){if(typeof e!="object")throw new se("options must be an object",se.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new se("option "+a+" must be "+l,se.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new se("Unknown option "+a,se.ERR_BAD_OPTION)}}const nf={assertOptions:eD,validators:sh},dr=nf.validators;let wa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new p1,response:new p1}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ca(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&nf.assertOptions(n,{silentJSONParsing:dr.transitional(dr.boolean),forcedJSONParsing:dr.transitional(dr.boolean),clarifyTimeoutError:dr.transitional(dr.boolean),legacyInterceptorReqResOrdering:dr.transitional(dr.boolean)},!1),i!=null&&(M.isFunction(i)?r.paramsSerializer={serialize:i}:nf.assertOptions(i,{encode:dr.function,serialize:dr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),nf.assertOptions(r,{baseUrl:dr.spelling("baseURL"),withXsrfToken:dr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),r.headers=Jt.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;l=l&&y.synchronous;const v=r.transitional||b0;v&&v.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let f,c=0,d;if(!l){const m=[_1.bind(this),void 0];for(m.unshift(...s),m.push(...u),d=m.length,f=Promise.resolve(r);c<d;)f=f.then(m[c++],m[c++]);return f}d=s.length;let p=r;for(;c<d;){const m=s[c++],y=s[c++];try{p=m(p)}catch(v){y.call(this,v);break}}try{f=_1.call(this,p)}catch(m){return Promise.reject(m)}for(c=0,d=u.length;c<d;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=Ca(this.defaults,t);const r=HA(t.baseURL,t.url,t.allowAbsoluteUrls);return BA(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){wa.prototype[t]=function(r,n){return this.request(Ca(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(Ca(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}wa.prototype[t]=r(),wa.prototype[t+"Form"]=r(!0)});let tD=class XA{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new Qu(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new XA(function(i){t=i}),cancel:t}}};function rD(e){return function(r){return e.apply(null,r)}}function nD(e){return M.isObject(e)&&e.isAxiosError===!0}const Cy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cy).forEach(([e,t])=>{Cy[t]=e});function QA(e){const t=new wa(e),r=EA(wa.prototype.request,t);return M.extend(r,wa.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return QA(Ca(e,i))},r}const Ye=QA(Xu);Ye.Axios=wa;Ye.CanceledError=Qu;Ye.CancelToken=tD;Ye.isCancel=UA;Ye.VERSION=GA;Ye.toFormData=oh;Ye.AxiosError=se;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=rD;Ye.isAxiosError=nD;Ye.mergeConfig=Ca;Ye.AxiosHeaders=Jt;Ye.formToJSON=e=>FA(M.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=KA.getAdapter;Ye.HttpStatusCode=Cy;Ye.default=Ye;const{Axios:Dse,AxiosError:Lse,CanceledError:zse,isCancel:Bse,CancelToken:Fse,VERSION:Use,all:Wse,Cancel:Hse,isAxiosError:Vse,spread:qse,toFormData:Kse,AxiosHeaders:Gse,HttpStatusCode:Xse,formToJSON:Qse,getAdapter:Yse,mergeConfig:Jse}=Ye,Ee=Ye.create({baseURL:"/api",headers:{"Content-Type":"application/json"}});Ee.interceptors.request.use(e=>{const t=localStorage.getItem("access_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});Ee.interceptors.response.use(e=>e,async e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),window.location.href="/login"),Promise.reject(e)});const iD={login:(e,t)=>Ee.post("/auth/login",{email:e,password:t}),register:e=>Ee.post("/auth/register",e),refresh:e=>Ee.post("/auth/refresh",{refresh_token:e})},aD={me:()=>Ee.get("/users/me"),updateMe:e=>Ee.patch("/users/me",e)},lh={list:()=>Ee.get("/organizations"),create:e=>Ee.post("/organizations",e),get:e=>Ee.get(`/organizations/${e}`),update:(e,t)=>Ee.patch(`/organizations/${e}`,t),members:e=>Ee.get(`/organizations/${e}/members`),invite:(e,t)=>Ee.post(`/organizations/${e}/members`,t)},Lp={list:e=>Ee.get("/integrations",{params:{org_id:e}}),create:(e,t)=>Ee.post("/integrations",t,{params:{org_id:e}}),get:(e,t)=>Ee.get(`/integrations/${t}`,{params:{org_id:e}}),update:(e,t,r)=>Ee.patch(`/integrations/${t}`,r,{params:{org_id:e}}),delete:(e,t)=>Ee.delete(`/integrations/${t}`,{params:{org_id:e}}),test:(e,t)=>Ee.post(`/integrations/${t}/test`,null,{params:{org_id:e}})},_l={list:(e,t={})=>Ee.get("/issues",{params:{org_id:e,...t}}),stats:e=>Ee.get("/issues/stats",{params:{org_id:e}}),get:(e,t)=>Ee.get(`/issues/${t}`,{params:{org_id:e}}),create:(e,t)=>Ee.post("/issues",t,{params:{org_id:e}}),reanalyze:(e,t)=>Ee.post(`/issues/${t}/reanalyze`,null,{params:{org_id:e}}),addComment:(e,t,r)=>Ee.post(`/issues/${t}/comments`,r,{params:{org_id:e}})},$y={summary:(e,t=30)=>Ee.get("/reports/summary",{params:{org_id:e,days:t}}),exportCsv:(e,t=30)=>Ee.get("/reports/export/csv",{params:{org_id:e,days:t},responseType:"blob"})},YA=E.createContext(null);function oD({children:e}){const[t,r]=E.useState(null),[n,i]=E.useState(!0),[a,o]=E.useState(null);E.useEffect(()=>{localStorage.getItem("access_token")?s():i(!1)},[]);const s=async()=>{try{const c=await aD.me();r(c.data);const d=localStorage.getItem("current_org");d&&o(JSON.parse(d))}catch{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}finally{i(!1)}},l=async(c,d)=>{const p=await iD.login(c,d);localStorage.setItem("access_token",p.data.access_token),localStorage.setItem("refresh_token",p.data.refresh_token),await s()},u=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("current_org"),r(null),o(null)},f=c=>{o(c),localStorage.setItem("current_org",JSON.stringify(c))};return h.jsx(YA.Provider,{value:{user:t,loading:n,login:l,logout:u,currentOrg:a,selectOrg:f},children:e})}const Zt=()=>E.useContext(YA);function JA(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=JA(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function fe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=JA(e))&&(n&&(n+=" "),n+=t);return n}const sD=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},lD=(e,t)=>({classGroupId:e,validator:t}),ZA=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Rf="-",A1=[],uD="arbitrary..",cD=e=>{const t=dD(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return fD(o);const s=o.split(Rf),l=s[0]===""&&s.length>1?1:0;return e2(s,l,t)},getConflictingClassGroupIds:(o,s)=>{if(s){const l=n[o],u=r[o];return l?u?sD(u,l):l:u||A1}return r[o]||A1}}},e2=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const i=e[t],a=r.nextPart.get(i);if(a){const u=e2(e,t+1,a);if(u)return u}const o=r.validators;if(o===null)return;const s=t===0?e.join(Rf):e.slice(t).join(Rf),l=o.length;for(let u=0;u<l;u++){const f=o[u];if(f.validator(s))return f.classGroupId}},fD=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?uD+n:void 0})(),dD=e=>{const{theme:t,classGroups:r}=e;return hD(r,t)},hD=(e,t)=>{const r=ZA();for(const n in e){const i=e[n];S0(i,r,n,t)}return r},S0=(e,t,r,n)=>{const i=e.length;for(let a=0;a<i;a++){const o=e[a];pD(o,t,r,n)}},pD=(e,t,r,n)=>{if(typeof e=="string"){mD(e,t,r);return}if(typeof e=="function"){yD(e,t,r,n);return}vD(e,t,r,n)},mD=(e,t,r)=>{const n=e===""?t:t2(t,e);n.classGroupId=r},yD=(e,t,r,n)=>{if(gD(e)){S0(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(lD(r,e))},vD=(e,t,r,n)=>{const i=Object.entries(e),a=i.length;for(let o=0;o<a;o++){const[s,l]=i[o];S0(l,t2(t,s),r,n)}},t2=(e,t)=>{let r=e;const n=t.split(Rf),i=n.length;for(let a=0;a<i;a++){const o=n[a];let s=r.nextPart.get(o);s||(s=ZA(),r.nextPart.set(o,s)),r=s}return r},gD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(a,o)=>{r[a]=o,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let o=r[a];if(o!==void 0)return o;if((o=n[a])!==void 0)return i(a,o),o},set(a,o){a in r?r[a]=o:i(a,o)}}},My="!",k1=":",xD=[],E1=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),wD=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const a=[];let o=0,s=0,l=0,u;const f=i.length;for(let y=0;y<f;y++){const v=i[y];if(o===0&&s===0){if(v===k1){a.push(i.slice(l,y)),l=y+1;continue}if(v==="/"){u=y;continue}}v==="["?o++:v==="]"?o--:v==="("?s++:v===")"&&s--}const c=a.length===0?i:i.slice(l);let d=c,p=!1;c.endsWith(My)?(d=c.slice(0,-1),p=!0):c.startsWith(My)&&(d=c.slice(1),p=!0);const m=u&&u>l?u-l:void 0;return E1(a,p,d,m)};if(t){const i=t+k1,a=n;n=o=>o.startsWith(i)?a(o.slice(i.length)):E1(xD,!1,o,void 0,!0)}if(r){const i=n;n=a=>r({className:a,parseClassName:i})}return n},SD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let a=0;a<r.length;a++){const o=r[a],s=o[0]==="[",l=t.has(o);s||l?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},OD=e=>({cache:bD(e.cacheSize),parseClassName:wD(e),sortModifiers:SD(e),...cD(e)}),jD=/\s+/,_D=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(jD);let l="";for(let u=s.length-1;u>=0;u-=1){const f=s[u],{isExternal:c,modifiers:d,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(f);if(c){l=f+(l.length>0?" "+l:l);continue}let v=!!y,g=n(v?m.substring(0,y):m);if(!g){if(!v){l=f+(l.length>0?" "+l:l);continue}if(g=n(m),!g){l=f+(l.length>0?" "+l:l);continue}v=!1}const b=d.length===0?"":d.length===1?d[0]:a(d).join(":"),x=p?b+My:b,S=x+g;if(o.indexOf(S)>-1)continue;o.push(S);const w=i(g,v);for(let O=0;O<w.length;++O){const j=w[O];o.push(x+j)}l=f+(l.length>0?" "+l:l)}return l},PD=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=r2(r))&&(i&&(i+=" "),i+=n);return i},r2=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=r2(e[n]))&&(r&&(r+=" "),r+=t);return r},AD=(e,...t)=>{let r,n,i,a;const o=l=>{const u=t.reduce((f,c)=>c(f),e());return r=OD(u),n=r.cache.get,i=r.cache.set,a=s,s(l)},s=l=>{const u=n(l);if(u)return u;const f=_D(l,r);return i(l,f),f};return a=o,(...l)=>a(PD(...l))},kD=[],nt=e=>{const t=r=>r[e]||kD;return t.isThemeGetter=!0,t},n2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,i2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ED=/^\d+\/\d+$/,ND=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,TD=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,CD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$D=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ya=e=>ED.test(e),he=e=>!!e&&!Number.isNaN(Number(e)),Vn=e=>!!e&&Number.isInteger(Number(e)),zp=e=>e.endsWith("%")&&he(e.slice(0,-1)),fn=e=>ND.test(e),a2=()=>!0,ID=e=>TD.test(e)&&!CD.test(e),O0=()=>!1,RD=e=>$D.test(e),DD=e=>MD.test(e),LD=e=>!Z(e)&&!ee(e),zD=e=>Ri(e,l2,O0),Z=e=>n2.test(e),Hi=e=>Ri(e,u2,ID),N1=e=>Ri(e,KD,he),BD=e=>Ri(e,f2,a2),FD=e=>Ri(e,c2,O0),T1=e=>Ri(e,o2,O0),UD=e=>Ri(e,s2,DD),_c=e=>Ri(e,d2,RD),ee=e=>i2.test(e),Zs=e=>Wa(e,u2),WD=e=>Wa(e,c2),C1=e=>Wa(e,o2),HD=e=>Wa(e,l2),VD=e=>Wa(e,s2),Pc=e=>Wa(e,d2,!0),qD=e=>Wa(e,f2,!0),Ri=(e,t,r)=>{const n=n2.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Wa=(e,t,r=!1)=>{const n=i2.exec(e);return n?n[1]?t(n[1]):r:!1},o2=e=>e==="position"||e==="percentage",s2=e=>e==="image"||e==="url",l2=e=>e==="length"||e==="size"||e==="bg-size",u2=e=>e==="length",KD=e=>e==="number",c2=e=>e==="family-name",f2=e=>e==="number"||e==="weight",d2=e=>e==="shadow",GD=()=>{const e=nt("color"),t=nt("font"),r=nt("text"),n=nt("font-weight"),i=nt("tracking"),a=nt("leading"),o=nt("breakpoint"),s=nt("container"),l=nt("spacing"),u=nt("radius"),f=nt("shadow"),c=nt("inset-shadow"),d=nt("text-shadow"),p=nt("drop-shadow"),m=nt("blur"),y=nt("perspective"),v=nt("aspect"),g=nt("ease"),b=nt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...S(),ee,Z],O=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],_=()=>[ee,Z,l],P=()=>[Ya,"full","auto",..._()],N=()=>[Vn,"none","subgrid",ee,Z],$=()=>["auto",{span:["full",Vn,ee,Z]},Vn,ee,Z],C=()=>[Vn,"auto",ee,Z],L=()=>["auto","min","max","fr",ee,Z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",..._()],F=()=>[Ya,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],T=()=>[e,ee,Z],B=()=>[...S(),C1,T1,{position:[ee,Z]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",HD,zD,{size:[ee,Z]}],H=()=>[zp,Zs,Hi],X=()=>["","none","full",u,ee,Z],ie=()=>["",he,Zs,Hi],be=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],we=()=>[he,zp,C1,T1],gt=()=>["","none",m,ee,Z],G=()=>["none",he,ee,Z],le=()=>["none",he,ee,Z],ue=()=>[he,ee,Z],W=()=>[Ya,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fn],breakpoint:[fn],color:[a2],container:[fn],"drop-shadow":[fn],ease:["in","out","in-out"],font:[LD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fn],shadow:[fn],spacing:["px",he],text:[fn],"text-shadow":[fn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ya,Z,ee,v]}],container:["container"],columns:[{columns:[he,Z,ee,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:P()}],"inset-x":[{"inset-x":P()}],"inset-y":[{"inset-y":P()}],start:[{start:P()}],end:[{end:P()}],top:[{top:P()}],right:[{right:P()}],bottom:[{bottom:P()}],left:[{left:P()}],visibility:["visible","invisible","collapse"],z:[{z:[Vn,"auto",ee,Z]}],basis:[{basis:[Ya,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[he,Ya,"auto","initial","none",Z]}],grow:[{grow:["",he,ee,Z]}],shrink:[{shrink:["",he,ee,Z]}],order:[{order:[Vn,"first","last","none",ee,Z]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[s,"screen",...F()]}],"min-w":[{"min-w":[s,"screen","none",...F()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[o]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",r,Zs,Hi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,qD,BD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zp,Z]}],"font-family":[{font:[WD,FD,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,ee,Z]}],"line-clamp":[{"line-clamp":[he,"none",ee,N1]}],leading:[{leading:[a,..._()]}],"list-image":[{"list-image":["none",ee,Z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,Z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...be(),"wavy"]}],"text-decoration-thickness":[{decoration:[he,"from-font","auto",ee,Hi]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[he,"auto",ee,Z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Vn,ee,Z],radial:["",ee,Z],conic:[Vn,ee,Z]},VD,UD]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...be(),"hidden","none"]}],"divide-style":[{divide:[...be(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...be(),"none","hidden"]}],"outline-offset":[{"outline-offset":[he,ee,Z]}],"outline-w":[{outline:["",he,Zs,Hi]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",f,Pc,_c]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",c,Pc,_c]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[he,Hi]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",d,Pc,_c]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[he,ee,Z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[he]}],"mask-image-linear-from-pos":[{"mask-linear-from":we()}],"mask-image-linear-to-pos":[{"mask-linear-to":we()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":we()}],"mask-image-t-to-pos":[{"mask-t-to":we()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":we()}],"mask-image-r-to-pos":[{"mask-r-to":we()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":we()}],"mask-image-b-to-pos":[{"mask-b-to":we()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":we()}],"mask-image-l-to-pos":[{"mask-l-to":we()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":we()}],"mask-image-x-to-pos":[{"mask-x-to":we()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":we()}],"mask-image-y-to-pos":[{"mask-y-to":we()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[ee,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":we()}],"mask-image-radial-to-pos":[{"mask-radial-to":we()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[he]}],"mask-image-conic-from-pos":[{"mask-conic-from":we()}],"mask-image-conic-to-pos":[{"mask-conic-to":we()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,Z]}],filter:[{filter:["","none",ee,Z]}],blur:[{blur:gt()}],brightness:[{brightness:[he,ee,Z]}],contrast:[{contrast:[he,ee,Z]}],"drop-shadow":[{"drop-shadow":["","none",p,Pc,_c]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",he,ee,Z]}],"hue-rotate":[{"hue-rotate":[he,ee,Z]}],invert:[{invert:["",he,ee,Z]}],saturate:[{saturate:[he,ee,Z]}],sepia:[{sepia:["",he,ee,Z]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,Z]}],"backdrop-blur":[{"backdrop-blur":gt()}],"backdrop-brightness":[{"backdrop-brightness":[he,ee,Z]}],"backdrop-contrast":[{"backdrop-contrast":[he,ee,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",he,ee,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[he,ee,Z]}],"backdrop-invert":[{"backdrop-invert":["",he,ee,Z]}],"backdrop-opacity":[{"backdrop-opacity":[he,ee,Z]}],"backdrop-saturate":[{"backdrop-saturate":[he,ee,Z]}],"backdrop-sepia":[{"backdrop-sepia":["",he,ee,Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,Z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[he,"initial",ee,Z]}],ease:[{ease:["linear","initial",g,ee,Z]}],delay:[{delay:[he,ee,Z]}],animate:[{animate:["none",b,ee,Z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,ee,Z]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ee,Z,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:W()}],"translate-x":[{"translate-x":W()}],"translate-y":[{"translate-y":W()}],"translate-z":[{"translate-z":W()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,Z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,Z]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[he,Zs,Hi,N1]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},XD=AD(GD);function ke(...e){return XD(fe(e))}/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h2=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QD=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YD=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase());/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $1=e=>{const t=YD(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var JD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZD=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e3=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:o,...s},l)=>E.createElement("svg",{ref:l,...JD,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:h2("lucide",i),...!a&&!ZD(s)&&{"aria-hidden":"true"},...s},[...o.map(([u,f])=>E.createElement(u,f)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const te=(e,t)=>{const r=E.forwardRef(({className:n,...i},a)=>E.createElement(e3,{ref:a,iconNode:t,className:h2(`lucide-${QD($1(e))}`,`lucide-${e}`,n),...i}));return r.displayName=$1(e),r};/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t3=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],r3=te("arrow-left",t3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],uh=te("arrow-right",n3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i3=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],p2=te("bell",i3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a3=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],M1=te("brain",a3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o3=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],$a=te("building-2",o3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const s3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],l3=te("calendar",s3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],m2=te("chart-column",u3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],f3=te("check",c3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Iy=te("chevron-right",d3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const h3=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],p3=te("chevrons-up-down",h3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const m3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Ry=te("circle-alert",m3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ki=te("circle-check",y3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const v3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],j0=te("circle-x",v3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],ch=te("clock",g3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b3=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],Dy=te("code-xml",b3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x3=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ly=te("copy",x3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const w3=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],S3=te("crown",w3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const O3=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],j3=te("download",O3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _3=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],P3=te("ellipsis-vertical",_3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const A3=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],I1=te("external-link",A3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k3=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],y2=te("eye",k3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const E3=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],N3=te("eye-off",E3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T3=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],C3=te("file-code",T3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $3=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],M3=te("folder-tree",$3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const I3=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],fh=te("git-pull-request",I3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],v2=te("globe",R3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D3=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],g2=te("key",D3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const L3=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],z3=te("layout-dashboard",L3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const B3=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],F3=te("lightbulb",B3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const U3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],nn=te("loader-circle",U3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W3=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],b2=te("lock",W3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const H3=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],V3=te("log-out",H3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const q3=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],dh=te("mail",q3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K3=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],G3=te("message-square",K3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Q3=te("panel-left-close",X3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Y3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],J3=te("panel-left-open",Y3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Z3=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],e4=te("plug",Z3);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t4=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ei=te("plus",t4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r4=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],n4=te("refresh-cw",r4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i4=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],R1=te("save",i4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a4=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],af=te("search",a4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const o4=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],s4=te("send",o4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const l4=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],x2=te("settings",l4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const u4=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],w2=te("shield",u4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const c4=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],f4=te("sliders-horizontal",c4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const d4=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],h4=te("tag",d4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const p4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],m4=te("target",p4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const y4=[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]],v4=te("test-tube",y4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const g4=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_0=te("ticket-check",g4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const b4=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],S2=te("trash-2",b4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x4=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],w4=te("trending-down",x4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const S4=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],O4=te("trending-up",S4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const j4=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_4=te("triangle-alert",j4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const P4=[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],A4=te("user-cog",P4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k4=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],E4=te("user",k4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const N4=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],O2=te("users",N4);/**
* @license lucide-react v0.574.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T4=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Zl=te("zap",T4),C4=[{label:"Main",items:[{path:"/",label:"Dashboard",icon:z3},{path:"/issues",label:"Issues",icon:_0}]},{label:"Management",items:[{path:"/integrations",label:"Integrations",icon:e4},{path:"/team",label:"Team",icon:O2},{path:"/reports",label:"Reports",icon:m2}]},{label:"System",items:[{path:"/settings",label:"Settings",icon:x2}]}],$4={"/":"Dashboard","/issues":"Issues","/integrations":"Integrations","/team":"Team","/reports":"Reports","/settings":"Settings"};function M4(){var x,S,w,O;const{user:e,logout:t,currentOrg:r,selectOrg:n}=Zt(),i=As(),a=Ua(),[o,s]=E.useState(!1),[l,u]=E.useState(!1),[f,c]=E.useState(!1),[d,p]=E.useState(!1),[m,y]=E.useState(""),{data:v}=Ai({queryKey:["organizations"],queryFn:()=>lh.list()});E.useEffect(()=>{const j=_=>{(_.metaKey||_.ctrlKey)&&_.key==="k"&&(_.preventDefault(),c(P=>!P)),_.key==="Escape"&&(c(!1),u(!1))};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[]);const g=()=>{const j=i.pathname.split("/").filter(Boolean);if(j.length===0)return[{label:"Dashboard",path:"/"}];const _=[];let P="";for(const N of j)P+=`/${N}`,_.push({label:$4[P]||N.charAt(0).toUpperCase()+N.slice(1),path:P});return _},b=j=>j==="/"?i.pathname==="/":i.pathname.startsWith(j);return h.jsxs("div",{className:"min-h-screen flex bg-gray-950 text-gray-200",children:[f&&h.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>c(!1),children:[h.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm"}),h.jsx("div",{className:"relative w-full max-w-lg mx-4 animate-slide-up",onClick:j=>j.stopPropagation(),children:h.jsxs("div",{className:"card border-gray-700 shadow-2xl",children:[h.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b border-gray-800",children:[h.jsx(af,{size:18,className:"text-gray-500"}),h.jsx("input",{autoFocus:!0,value:m,onChange:j=>y(j.target.value),placeholder:"Search issues, projects, settings...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),h.jsx("kbd",{className:"kbd",children:"ESC"})]}),h.jsxs("div",{className:"p-2 max-h-80 overflow-auto",children:[["Dashboard","Issues","Integrations","Team","Reports","Settings"].filter(j=>j.toLowerCase().includes(m.toLowerCase())).map(j=>h.jsxs("button",{className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm text-gray-300 hover:bg-gray-800 transition-colors",onClick:()=>{a(`/${j.toLowerCase()==="dashboard"?"":j.toLowerCase()}`),c(!1),y("")},children:[h.jsx(Iy,{size:14,className:"text-gray-600"}),j]},j)),m&&h.jsxs("div",{className:"px-3 py-6 text-center text-sm text-gray-500",children:['Press Enter to search for "',m,'"']})]})]})})]}),h.jsxs("aside",{className:ke("fixed top-0 left-0 h-full flex flex-col border-r border-gray-800/50 bg-gray-950 z-40 transition-all duration-300",o?"w-[68px]":"w-[260px]"),children:[h.jsx("div",{className:ke("h-14 flex items-center border-b border-gray-800/50 px-4",o&&"justify-center px-0"),children:o?h.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center",children:h.jsx(Zl,{size:16,className:"text-white"})}):h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/20",children:h.jsx(Zl,{size:16,className:"text-white"})}),h.jsxs("div",{children:[h.jsx("h1",{className:"text-sm font-semibold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-[10px] text-gray-500 font-medium",children:"Enterprise v2.0"})]})]})}),!o&&h.jsxs("div",{className:"px-3 py-3 border-b border-gray-800/50 relative",children:[h.jsxs("button",{onClick:()=>u(!l),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg bg-gray-900/60 hover:bg-gray-800/80 border border-gray-800/50 transition-all",children:[h.jsx("div",{className:"w-6 h-6 rounded bg-indigo-600/20 flex items-center justify-center flex-shrink-0",children:h.jsx($a,{size:12,className:"text-indigo-400"})}),h.jsx("span",{className:"flex-1 text-left text-sm truncate",children:(r==null?void 0:r.name)||"Select org"}),h.jsx(p3,{size:14,className:"text-gray-500"})]}),l&&(v==null?void 0:v.data)&&h.jsxs("div",{className:"absolute left-3 right-3 top-full mt-1 bg-gray-900 border border-gray-700 rounded-lg shadow-xl z-50 animate-slide-up",children:[v.data.map(j=>h.jsxs("button",{onClick:()=>{n(j),u(!1)},className:ke("w-full flex items-center gap-2.5 px-3 py-2 text-sm hover:bg-gray-800 first:rounded-t-lg last:rounded-b-lg transition-colors",(r==null?void 0:r.id)===j.id&&"bg-indigo-600/10 text-indigo-400"),children:[h.jsx($a,{size:14}),j.name]},j.id)),h.jsxs("button",{onClick:()=>{a("/settings"),u(!1)},className:"w-full flex items-center gap-2.5 px-3 py-2 text-sm text-indigo-400 hover:bg-gray-800 border-t border-gray-800 rounded-b-lg",children:[h.jsx(Ei,{size:14}),"New organization"]})]})]}),!o&&h.jsx("div",{className:"px-3 pt-3",children:h.jsxs("button",{onClick:()=>c(!0),className:"w-full flex items-center gap-2.5 px-3 py-2 rounded-lg text-gray-500 hover:text-gray-300 bg-gray-900/40 hover:bg-gray-800/60 border border-gray-800/30 transition-all text-sm",children:[h.jsx(af,{size:14}),h.jsx("span",{className:"flex-1 text-left",children:"Search..."}),h.jsxs("div",{className:"flex items-center gap-0.5",children:[h.jsx("kbd",{className:"kbd",children:"⌘"}),h.jsx("kbd",{className:"kbd",children:"K"})]})]})}),h.jsx("nav",{className:"flex-1 overflow-auto px-3 py-4 space-y-5",children:C4.map(j=>h.jsxs("div",{children:[!o&&h.jsx("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-gray-600 px-3 mb-1.5",children:j.label}),h.jsx("div",{className:"space-y-0.5",children:j.items.map(_=>{const P=_.icon,N=b(_.path);return h.jsxs(Ea,{to:_.path,title:o?_.label:void 0,className:ke("sidebar-item",N?"sidebar-item-active":"sidebar-item-inactive",o&&"justify-center px-0"),children:[h.jsx(P,{size:18,strokeWidth:N?2:1.5}),!o&&h.jsx("span",{children:_.label})]},_.path)})})]},j.label))}),h.jsx("div",{className:"px-3 py-2 border-t border-gray-800/50",children:h.jsxs("button",{onClick:()=>s(!o),className:ke("sidebar-item sidebar-item-inactive w-full",o&&"justify-center px-0"),children:[o?h.jsx(J3,{size:18}):h.jsx(Q3,{size:18}),!o&&h.jsx("span",{children:"Collapse"})]})}),h.jsx("div",{className:ke("px-3 py-3 border-t border-gray-800/50",o&&"px-2"),children:h.jsxs("div",{className:ke("flex items-center gap-2.5",o&&"justify-center"),children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((S=(x=e==null?void 0:e.full_name)==null?void 0:x[0])==null?void 0:S.toUpperCase())||((O=(w=e==null?void 0:e.email)==null?void 0:w[0])==null?void 0:O.toUpperCase())||"?"}),!o&&h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium truncate",children:(e==null?void 0:e.full_name)||(e==null?void 0:e.email)}),h.jsxs("button",{onClick:t,className:"text-xs text-gray-500 hover:text-red-400 transition-colors flex items-center gap-1",children:[h.jsx(V3,{size:10}),"Sign out"]})]})]})})]}),h.jsxs("div",{className:ke("flex-1 flex flex-col transition-all duration-300",o?"ml-[68px]":"ml-[260px]"),children:[h.jsxs("header",{className:"h-14 flex items-center justify-between px-6 border-b border-gray-800/50 bg-gray-950/80 backdrop-blur-md sticky top-0 z-30",children:[h.jsx("div",{className:"flex items-center gap-1.5 text-sm",children:g().map((j,_)=>h.jsxs("div",{className:"flex items-center gap-1.5",children:[_>0&&h.jsx(Iy,{size:12,className:"text-gray-600"}),h.jsx(Ea,{to:j.path,className:ke("hover:text-white transition-colors",_===g().length-1?"text-white font-medium":"text-gray-400"),children:j.label})]},j.path))}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("button",{onClick:()=>c(!0),className:"btn-ghost btn-icon rounded-lg",children:h.jsx(af,{size:16})}),h.jsxs("button",{onClick:()=>p(!d),className:"btn-ghost btn-icon rounded-lg relative",children:[h.jsx(p2,{size:16}),h.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 rounded-full bg-indigo-500"})]})]})]}),h.jsx("main",{className:"flex-1 overflow-auto",children:h.jsx(MM,{})})]})]})}function I4(){const[e,t]=E.useState(""),[r,n]=E.useState(""),[i,a]=E.useState(""),[o,s]=E.useState(!1),{login:l}=Zt(),u=Ua(),f=async c=>{var d,p;c.preventDefault(),a(""),s(!0);try{await l(e,r),u("/")}catch(m){a(((p=(d=m.response)==null?void 0:d.data)==null?void 0:p.detail)||"Invalid email or password")}finally{s(!1)}};return h.jsxs("div",{className:"min-h-screen flex bg-gray-950",children:[h.jsxs("div",{className:"hidden lg:flex lg:w-1/2 relative overflow-hidden",children:[h.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-indigo-600 via-indigo-700 to-purple-800"}),h.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 2px 2px, white 1px, transparent 0)",backgroundSize:"32px 32px"}}),h.jsxs("div",{className:"relative z-10 flex flex-col justify-center px-16",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[h.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/10 backdrop-blur flex items-center justify-center",children:h.jsx(Zl,{size:24,className:"text-white"})}),h.jsxs("div",{children:[h.jsx("h1",{className:"text-2xl font-bold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-sm text-indigo-200",children:"Enterprise v2.0"})]})]}),h.jsxs("h2",{className:"text-4xl font-bold text-white leading-tight mb-4",children:["AI-Powered Issue",h.jsx("br",{}),"Analysis & Resolution"]}),h.jsx("p",{className:"text-lg text-indigo-200 max-w-md",children:"Automatically analyze issues from JIRA, ServiceNow, GitHub and more. Get root cause analysis and automated Pull Requests."}),h.jsx("div",{className:"mt-12 grid grid-cols-3 gap-6",children:[{value:"95%",label:"Accuracy"},{value:"10x",label:"Faster Resolution"},{value:"24/7",label:"Automated"}].map(c=>h.jsxs("div",{children:[h.jsx("p",{className:"text-3xl font-bold text-white",children:c.value}),h.jsx("p",{className:"text-sm text-indigo-300 mt-1",children:c.label})]},c.label))})]})]}),h.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:h.jsxs("div",{className:"w-full max-w-sm",children:[h.jsx("div",{className:"lg:hidden text-center mb-8",children:h.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:h.jsx(Zl,{size:20,className:"text-white"})}),h.jsxs("div",{className:"text-left",children:[h.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-2xl font-bold text-white",children:"Welcome back"}),h.jsx("p",{className:"text-gray-400 mt-1",children:"Sign in to your account to continue"})]}),h.jsxs("form",{onSubmit:f,className:"space-y-4",children:[i&&h.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:i}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),h.jsxs("div",{className:"relative",children:[h.jsx(dh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"email",value:e,onChange:c=>t(c.target.value),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(b2,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"password",value:r,onChange:c=>n(c.target.value),className:"input pl-10",placeholder:"••••••••",required:!0})]})]}),h.jsx("button",{type:"submit",disabled:o,className:"btn btn-primary w-full h-11 justify-center mt-2",children:o?h.jsx(nn,{size:16,className:"animate-spin"}):h.jsxs(h.Fragment,{children:["Sign in",h.jsx(uh,{size:16})]})})]}),h.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Don't have an account?"," ",h.jsx(Ea,{to:"/register",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Create account"})]})]})})]})}function R4(){const[e,t]=E.useState({email:"",password:"",full_name:""}),[r,n]=E.useState(""),[i,a]=E.useState(!1),{register:o}=Zt(),s=Ua(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{await o(e),s("/")}catch(d){n(((c=(f=d.response)==null?void 0:f.data)==null?void 0:c.detail)||"Registration failed")}finally{a(!1)}};return h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:h.jsxs("div",{className:"w-full max-w-sm",children:[h.jsx("div",{className:"text-center mb-8",children:h.jsxs("div",{className:"inline-flex items-center gap-2.5",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl bg-indigo-600 flex items-center justify-center shadow-lg shadow-indigo-500/25",children:h.jsx(Zl,{size:20,className:"text-white"})}),h.jsxs("div",{className:"text-left",children:[h.jsx("h1",{className:"text-lg font-bold text-white",children:"JIRA AI Fixer"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Enterprise v2.0"})]})]})}),h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-2xl font-bold text-white",children:"Create account"}),h.jsx("p",{className:"text-gray-400 mt-1",children:"Get started with AI-powered issue analysis"})]}),h.jsxs("form",{onSubmit:l,className:"space-y-4",children:[r&&h.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Full Name"}),h.jsxs("div",{className:"relative",children:[h.jsx(E4,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"text",value:e.full_name,onChange:u=>t({...e,full_name:u.target.value}),className:"input pl-10",placeholder:"John Doe",required:!0})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Email"}),h.jsxs("div",{className:"relative",children:[h.jsx(dh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"email",value:e.email,onChange:u=>t({...e,email:u.target.value}),className:"input pl-10",placeholder:"you@company.com",required:!0})]})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Password"}),h.jsxs("div",{className:"relative",children:[h.jsx(b2,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{type:"password",value:e.password,onChange:u=>t({...e,password:u.target.value}),className:"input pl-10",placeholder:"••••••••",minLength:8,required:!0})]})]}),h.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center mt-2",children:i?h.jsx(nn,{size:16,className:"animate-spin"}):h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"Create account"}),h.jsx(uh,{size:16})]})})]}),h.jsxs("p",{className:"text-center mt-6 text-sm text-gray-500",children:["Already have an account?"," ",h.jsx(Ea,{to:"/login",className:"text-indigo-400 hover:text-indigo-300 transition-colors",children:"Sign in"})]})]})})}function D4(){const[e,t]=E.useState([]),[r,n]=E.useState(!0),[i,a]=E.useState(""),{selectOrg:o}=Zt(),s=Ua();E.useEffect(()=>{l()},[]);const l=async()=>{var f,c;try{const d=await lh.list();t(d.data),d.data.length===1&&u(d.data[0])}catch(d){a(((c=(f=d.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to load organizations")}finally{n(!1)}},u=f=>{o(f),s("/")};return r?h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950",children:h.jsx(nn,{size:32,className:"text-indigo-400 animate-spin"})}):e.length===0?(s("/create-organization"),null):h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:h.jsxs("div",{className:"w-full max-w-2xl",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:h.jsx($a,{size:32,className:"text-indigo-400"})}),h.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Select Organization"}),h.jsx("p",{className:"text-gray-400",children:"Choose which organization you want to work with"})]}),i&&h.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 mb-6 animate-fade-in",children:i}),h.jsx("div",{className:"grid gap-3 mb-6",children:e.map(f=>h.jsx("button",{onClick:()=>u(f),className:"card hover:bg-gray-800/50 transition-colors p-6 text-left group",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-4",children:[h.jsx("div",{className:"w-12 h-12 rounded-xl bg-indigo-600/10 border border-indigo-500/20 flex items-center justify-center",children:h.jsx($a,{size:24,className:"text-indigo-400"})}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold text-white mb-1",children:f.name}),h.jsxs("p",{className:"text-sm text-gray-500",children:[f.member_count||0," ",f.member_count===1?"member":"members"]})]})]}),h.jsx(uh,{size:20,className:"text-gray-600 group-hover:text-indigo-400 transition-colors"})]})},f.id))}),h.jsxs("button",{onClick:()=>s("/create-organization"),className:"btn btn-secondary w-full h-11 justify-center",children:[h.jsx(Ei,{size:16}),"Create New Organization"]})]})})}function L4(){const[e,t]=E.useState(""),[r,n]=E.useState(""),[i,a]=E.useState(!1),{selectOrg:o}=Zt(),s=Ua(),l=async u=>{var f,c;u.preventDefault(),n(""),a(!0);try{const d=await lh.create({name:e});o(d.data),s("/")}catch(d){n(((c=(f=d.response)==null?void 0:f.data)==null?void 0:c.detail)||"Failed to create organization")}finally{a(!1)}};return h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-950 px-6",children:h.jsxs("div",{className:"w-full max-w-md",children:[h.jsxs("div",{className:"text-center mb-8",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl bg-indigo-600/10 border border-indigo-500/20 mb-4",children:h.jsx($a,{size:32,className:"text-indigo-400"})}),h.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Create Your Organization"}),h.jsx("p",{className:"text-gray-400",children:"Get started by creating your first organization"})]}),h.jsx("div",{className:"card",children:h.jsxs("form",{onSubmit:l,className:"space-y-6",children:[r&&h.jsx("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-lg text-sm text-red-400 animate-fade-in",children:r}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-2 uppercase tracking-wide",children:"Organization Name"}),h.jsx("input",{type:"text",value:e,onChange:u=>t(u.target.value),className:"input",placeholder:"Acme Inc.",required:!0,autoFocus:!0}),h.jsx("p",{className:"mt-2 text-xs text-gray-500",children:"You can change this later in settings"})]}),h.jsx("button",{type:"submit",disabled:i,className:"btn btn-primary w-full h-11 justify-center",children:i?h.jsx(nn,{size:16,className:"animate-spin"}):h.jsxs(h.Fragment,{children:["Create Organization",h.jsx(uh,{size:16})]})})]})}),h.jsx("p",{className:"text-center mt-6 text-xs text-gray-500",children:"You can invite team members after creating your organization"})]})})}var z4=Array.isArray,er=z4,B4=typeof ac=="object"&&ac&&ac.Object===Object&&ac,j2=B4,F4=j2,U4=typeof self=="object"&&self&&self.Object===Object&&self,W4=F4||U4||Function("return this")(),un=W4,H4=un,V4=H4.Symbol,Yu=V4,D1=Yu,_2=Object.prototype,q4=_2.hasOwnProperty,K4=_2.toString,el=D1?D1.toStringTag:void 0;function G4(e){var t=q4.call(e,el),r=e[el];try{e[el]=void 0;var n=!0}catch{}var i=K4.call(e);return n&&(t?e[el]=r:delete e[el]),i}var X4=G4,Q4=Object.prototype,Y4=Q4.toString;function J4(e){return Y4.call(e)}var Z4=J4,L1=Yu,eL=X4,tL=Z4,rL="[object Null]",nL="[object Undefined]",z1=L1?L1.toStringTag:void 0;function iL(e){return e==null?e===void 0?nL:rL:z1&&z1 in Object(e)?eL(e):tL(e)}var zn=iL;function aL(e){return e!=null&&typeof e=="object"}var Bn=aL,oL=zn,sL=Bn,lL="[object Symbol]";function uL(e){return typeof e=="symbol"||sL(e)&&oL(e)==lL}var Ns=uL,cL=er,fL=Ns,dL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hL=/^\w*$/;function pL(e,t){if(cL(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||fL(e)?!0:hL.test(e)||!dL.test(e)||t!=null&&e in Object(t)}var P0=pL;function mL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Di=mL;const Ts=_e(Di);var yL=zn,vL=Di,gL="[object AsyncFunction]",bL="[object Function]",xL="[object GeneratorFunction]",wL="[object Proxy]";function SL(e){if(!vL(e))return!1;var t=yL(e);return t==bL||t==xL||t==gL||t==wL}var A0=SL;const oe=_e(A0);var OL=un,jL=OL["__core-js_shared__"],_L=jL,Bp=_L,B1=function(){var e=/[^.]+$/.exec(Bp&&Bp.keys&&Bp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function PL(e){return!!B1&&B1 in e}var AL=PL,kL=Function.prototype,EL=kL.toString;function NL(e){if(e!=null){try{return EL.call(e)}catch{}try{return e+""}catch{}}return""}var P2=NL,TL=A0,CL=AL,$L=Di,ML=P2,IL=/[\\^$.*+?()[\]{}|]/g,RL=/^\[object .+?Constructor\]$/,DL=Function.prototype,LL=Object.prototype,zL=DL.toString,BL=LL.hasOwnProperty,FL=RegExp("^"+zL.call(BL).replace(IL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function UL(e){if(!$L(e)||CL(e))return!1;var t=TL(e)?FL:RL;return t.test(ML(e))}var WL=UL;function HL(e,t){return e==null?void 0:e[t]}var VL=HL,qL=WL,KL=VL;function GL(e,t){var r=KL(e,t);return qL(r)?r:void 0}var Ha=GL,XL=Ha,QL=XL(Object,"create"),hh=QL,F1=hh;function YL(){this.__data__=F1?F1(null):{},this.size=0}var JL=YL;function ZL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var e5=ZL,t5=hh,r5="__lodash_hash_undefined__",n5=Object.prototype,i5=n5.hasOwnProperty;function a5(e){var t=this.__data__;if(t5){var r=t[e];return r===r5?void 0:r}return i5.call(t,e)?t[e]:void 0}var o5=a5,s5=hh,l5=Object.prototype,u5=l5.hasOwnProperty;function c5(e){var t=this.__data__;return s5?t[e]!==void 0:u5.call(t,e)}var f5=c5,d5=hh,h5="__lodash_hash_undefined__";function p5(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=d5&&t===void 0?h5:t,this}var m5=p5,y5=JL,v5=e5,g5=o5,b5=f5,x5=m5;function Cs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Cs.prototype.clear=y5;Cs.prototype.delete=v5;Cs.prototype.get=g5;Cs.prototype.has=b5;Cs.prototype.set=x5;var w5=Cs;function S5(){this.__data__=[],this.size=0}var O5=S5;function j5(e,t){return e===t||e!==e&&t!==t}var k0=j5,_5=k0;function P5(e,t){for(var r=e.length;r--;)if(_5(e[r][0],t))return r;return-1}var ph=P5,A5=ph,k5=Array.prototype,E5=k5.splice;function N5(e){var t=this.__data__,r=A5(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():E5.call(t,r,1),--this.size,!0}var T5=N5,C5=ph;function $5(e){var t=this.__data__,r=C5(t,e);return r<0?void 0:t[r][1]}var M5=$5,I5=ph;function R5(e){return I5(this.__data__,e)>-1}var D5=R5,L5=ph;function z5(e,t){var r=this.__data__,n=L5(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var B5=z5,F5=O5,U5=T5,W5=M5,H5=D5,V5=B5;function $s(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$s.prototype.clear=F5;$s.prototype.delete=U5;$s.prototype.get=W5;$s.prototype.has=H5;$s.prototype.set=V5;var mh=$s,q5=Ha,K5=un,G5=q5(K5,"Map"),E0=G5,U1=w5,X5=mh,Q5=E0;function Y5(){this.size=0,this.__data__={hash:new U1,map:new(Q5||X5),string:new U1}}var J5=Y5;function Z5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ez=Z5,tz=ez;function rz(e,t){var r=e.__data__;return tz(t)?r[typeof t=="string"?"string":"hash"]:r.map}var yh=rz,nz=yh;function iz(e){var t=nz(this,e).delete(e);return this.size-=t?1:0,t}var az=iz,oz=yh;function sz(e){return oz(this,e).get(e)}var lz=sz,uz=yh;function cz(e){return uz(this,e).has(e)}var fz=cz,dz=yh;function hz(e,t){var r=dz(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var pz=hz,mz=J5,yz=az,vz=lz,gz=fz,bz=pz;function Ms(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ms.prototype.clear=mz;Ms.prototype.delete=yz;Ms.prototype.get=vz;Ms.prototype.has=gz;Ms.prototype.set=bz;var N0=Ms,A2=N0,xz="Expected a function";function T0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(xz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(T0.Cache||A2),r}T0.Cache=A2;var k2=T0;const wz=_e(k2);var Sz=k2,Oz=500;function jz(e){var t=Sz(e,function(n){return r.size===Oz&&r.clear(),n}),r=t.cache;return t}var _z=jz,Pz=_z,Az=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kz=/\\(\\)?/g,Ez=Pz(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Az,function(r,n,i,a){t.push(i?a.replace(kz,"$1"):n||r)}),t}),Nz=Ez;function Tz(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var C0=Tz,W1=Yu,Cz=C0,$z=er,Mz=Ns,H1=W1?W1.prototype:void 0,V1=H1?H1.toString:void 0;function E2(e){if(typeof e=="string")return e;if($z(e))return Cz(e,E2)+"";if(Mz(e))return V1?V1.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Iz=E2,Rz=Iz;function Dz(e){return e==null?"":Rz(e)}var N2=Dz,Lz=er,zz=P0,Bz=Nz,Fz=N2;function Uz(e,t){return Lz(e)?e:zz(e,t)?[e]:Bz(Fz(e))}var T2=Uz,Wz=Ns;function Hz(e){if(typeof e=="string"||Wz(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var vh=Hz,Vz=T2,qz=vh;function Kz(e,t){t=Vz(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qz(t[r++])];return r&&r==n?e:void 0}var $0=Kz,Gz=$0;function Xz(e,t,r){var n=e==null?void 0:Gz(e,t);return n===void 0?r:n}var C2=Xz;const lr=_e(C2);function Qz(e){return e==null}var Yz=Qz;const ce=_e(Yz);var Jz=zn,Zz=er,e6=Bn,t6="[object String]";function r6(e){return typeof e=="string"||!Zz(e)&&e6(e)&&Jz(e)==t6}var n6=r6;const Ma=_e(n6);var $2={exports:{}},Pe={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var M0=Symbol.for("react.element"),I0=Symbol.for("react.portal"),gh=Symbol.for("react.fragment"),bh=Symbol.for("react.strict_mode"),xh=Symbol.for("react.profiler"),wh=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),i6=Symbol.for("react.server_context"),Oh=Symbol.for("react.forward_ref"),jh=Symbol.for("react.suspense"),_h=Symbol.for("react.suspense_list"),Ph=Symbol.for("react.memo"),Ah=Symbol.for("react.lazy"),a6=Symbol.for("react.offscreen"),M2;M2=Symbol.for("react.module.reference");function kr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case M0:switch(e=e.type,e){case gh:case xh:case bh:case jh:case _h:return e;default:switch(e=e&&e.$$typeof,e){case i6:case Sh:case Oh:case Ah:case Ph:case wh:return e;default:return t}}case I0:return t}}}Pe.ContextConsumer=Sh;Pe.ContextProvider=wh;Pe.Element=M0;Pe.ForwardRef=Oh;Pe.Fragment=gh;Pe.Lazy=Ah;Pe.Memo=Ph;Pe.Portal=I0;Pe.Profiler=xh;Pe.StrictMode=bh;Pe.Suspense=jh;Pe.SuspenseList=_h;Pe.isAsyncMode=function(){return!1};Pe.isConcurrentMode=function(){return!1};Pe.isContextConsumer=function(e){return kr(e)===Sh};Pe.isContextProvider=function(e){return kr(e)===wh};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===M0};Pe.isForwardRef=function(e){return kr(e)===Oh};Pe.isFragment=function(e){return kr(e)===gh};Pe.isLazy=function(e){return kr(e)===Ah};Pe.isMemo=function(e){return kr(e)===Ph};Pe.isPortal=function(e){return kr(e)===I0};Pe.isProfiler=function(e){return kr(e)===xh};Pe.isStrictMode=function(e){return kr(e)===bh};Pe.isSuspense=function(e){return kr(e)===jh};Pe.isSuspenseList=function(e){return kr(e)===_h};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gh||e===xh||e===bh||e===jh||e===_h||e===a6||typeof e=="object"&&e!==null&&(e.$$typeof===Ah||e.$$typeof===Ph||e.$$typeof===wh||e.$$typeof===Sh||e.$$typeof===Oh||e.$$typeof===M2||e.getModuleId!==void 0)};Pe.typeOf=kr;$2.exports=Pe;var o6=$2.exports,s6=zn,l6=Bn,u6="[object Number]";function c6(e){return typeof e=="number"||l6(e)&&s6(e)==u6}var I2=c6;const f6=_e(I2);var d6=I2;function h6(e){return d6(e)&&e!=+e}var p6=h6;const Is=_e(p6);var Mt=function(t){return t===0?0:t>0?1:-1},aa=function(t){return Ma(t)&&t.indexOf("%")===t.length-1},V=function(t){return f6(t)&&!Is(t)},m6=function(t){return ce(t)},ct=function(t){return V(t)||Ma(t)},y6=0,Rs=function(t){var r=++y6;return"".concat(t||"").concat(r)},It=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(t)&&!Ma(t))return n;var a;if(aa(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Is(a)&&(a=n),i&&a>r&&(a=r),a},Zn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},v6=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Vt=function(t,r){return V(t)&&V(r)?function(n){return t+n*(r-t)}:function(){return r}};function Df(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):lr(n,t))===r})}var g6=function(t,r){return V(t)&&V(r)?t-r:Ma(t)&&Ma(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function _o(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function zy(e){"@babel/helpers - typeof";return zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zy(e)}var b6=["viewBox","children"],x6=["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","colorRendering","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"],q1=["points","pathLength"],Fp={svg:b6,polygon:q1,polyline:q1},R0=["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","onDragCapture","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"],Lf=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(E.isValidElement(t)&&(n=t.props),!Ts(n))return null;var i={};return Object.keys(n).forEach(function(a){R0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},w6=function(t,r,n){return function(i){return t(r,n,i),null}},Ia=function(t,r,n){if(!Ts(t)||zy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];R0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=w6(o,r,n))}),i},S6=["children"],O6=["children"];function K1(e,t){if(e==null)return{};var r=j6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function By(e){"@babel/helpers - typeof";return By=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},By(e)}var G1={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"},An=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},X1=null,Up=null,D0=function e(t){if(t===X1&&Array.isArray(Up))return Up;var r=[];return E.Children.forEach(t,function(n){ce(n)||(o6.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Up=r,X1=t,r};function jr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return An(i)}):n=[An(t)],D0(e).forEach(function(i){var a=lr(i,"type.displayName")||lr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ir(e,t){var r=jr(e,t);return r&&r[0]}var Q1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!V(n)||n<=0||!V(i)||i<=0)},_6=["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"],P6=function(t){return t&&t.type&&Ma(t.type)&&_6.indexOf(t.type)>=0},A6=function(t){return t&&By(t)==="object"&&"clipDot"in t},k6=function(t,r,n,i){var a,o=(a=Fp==null?void 0:Fp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!oe(t)&&(i&&o.includes(r)||x6.includes(r))||n&&R0.includes(r)},ne=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(E.isValidElement(t)&&(i=t.props),!Ts(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;k6((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Fy=function e(t,r){if(t===r)return!0;var n=E.Children.count(t);if(n!==E.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Y1(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Y1(a,o))return!1}return!0},Y1=function(t,r){if(ce(t)&&ce(r))return!0;if(!ce(t)&&!ce(r)){var n=t.props||{},i=n.children,a=K1(n,S6),o=r.props||{},s=o.children,l=K1(o,O6);return i&&s?_o(a,l)&&Fy(i,s):!i&&!s?_o(a,l):!1}return!1},J1=function(t,r){var n=[],i={};return D0(t).forEach(function(a,o){if(P6(a))n.push(a);else if(a){var s=An(a.type),l=r[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var c=u(a,s,o);n.push(c),i[s]=!0}}}),n},E6=function(t){var r=t&&t.type;return r&&G1[r]?G1[r]:null},N6=function(t,r){return D0(r).indexOf(t)},T6=["children","width","height","viewBox","className","style","title","desc"];function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uy.apply(this,arguments)}function C6(e,t){if(e==null)return{};var r=$6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Wy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=C6(e,T6),f=i||{width:r,height:n,x:0,y:0},c=fe("recharts-surface",a);return A.createElement("svg",Uy({},ne(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),A.createElement("title",null,s),A.createElement("desc",null,l),t)}var M6=["children","className"];function Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hy.apply(this,arguments)}function I6(e,t){if(e==null)return{};var r=R6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ye=A.forwardRef(function(e,t){var r=e.children,n=e.className,i=I6(e,M6),a=fe("recharts-layer",n);return A.createElement("g",Hy({className:a},ne(i,!0),{ref:t}),r)}),Fr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function D6(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var L6=D6,z6=L6;function B6(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:z6(e,t,r)}var F6=B6,U6="\\ud800-\\udfff",W6="\\u0300-\\u036f",H6="\\ufe20-\\ufe2f",V6="\\u20d0-\\u20ff",q6=W6+H6+V6,K6="\\ufe0e\\ufe0f",G6="\\u200d",X6=RegExp("["+G6+U6+q6+K6+"]");function Q6(e){return X6.test(e)}var R2=Q6;function Y6(e){return e.split("")}var J6=Y6,D2="\\ud800-\\udfff",Z6="\\u0300-\\u036f",eB="\\ufe20-\\ufe2f",tB="\\u20d0-\\u20ff",rB=Z6+eB+tB,nB="\\ufe0e\\ufe0f",iB="["+D2+"]",Vy="["+rB+"]",qy="\\ud83c[\\udffb-\\udfff]",aB="(?:"+Vy+"|"+qy+")",L2="[^"+D2+"]",z2="(?:\\ud83c[\\udde6-\\uddff]){2}",B2="[\\ud800-\\udbff][\\udc00-\\udfff]",oB="\\u200d",F2=aB+"?",U2="["+nB+"]?",sB="(?:"+oB+"(?:"+[L2,z2,B2].join("|")+")"+U2+F2+")*",lB=U2+F2+sB,uB="(?:"+[L2+Vy+"?",Vy,z2,B2,iB].join("|")+")",cB=RegExp(qy+"(?="+qy+")|"+uB+lB,"g");function fB(e){return e.match(cB)||[]}var dB=fB,hB=J6,pB=R2,mB=dB;function yB(e){return pB(e)?mB(e):hB(e)}var vB=yB,gB=F6,bB=R2,xB=vB,wB=N2;function SB(e){return function(t){t=wB(t);var r=bB(t)?xB(t):void 0,n=r?r[0]:t.charAt(0),i=r?gB(r,1).join(""):t.slice(1);return n[e]()+i}}var OB=SB,jB=OB,_B=jB("toUpperCase"),PB=_B;const kh=_e(PB);function Ce(e){return function(){return e}}const W2=Math.cos,zf=Math.sin,Hr=Math.sqrt,Bf=Math.PI,Eh=2*Bf,Ky=Math.PI,Gy=2*Ky,Qi=1e-6,AB=Gy-Qi;function H2(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function kB(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return H2;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class EB{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?H2:kB(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,f=o-t,c=s-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Qi)if(!(Math.abs(c*l-u*f)>Qi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-s,y=l*l+u*u,v=p*p+m*m,g=Math.sqrt(y),b=Math.sqrt(d),x=a*Math.tan((Ky-Math.acos((y+d-v)/(2*g*b)))/2),S=x/b,w=x/g;Math.abs(S-1)>Qi&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+w*l},${this._y1=r+w*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Qi||Math.abs(this._y1-f)>Qi)&&this._append`L${u},${f}`,n&&(d<0&&(d=d%Gy+Gy),d>AB?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:d>Qi&&this._append`A${n},${n},0,${+(d>=Ky)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function L0(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new EB(t)}function z0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function V2(e){this._context=e}V2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Nh(e){return new V2(e)}function q2(e){return e[0]}function K2(e){return e[1]}function G2(e,t){var r=Ce(!0),n=null,i=Nh,a=null,o=L0(s);e=typeof e=="function"?e:e===void 0?q2:Ce(e),t=typeof t=="function"?t:t===void 0?K2:Ce(t);function s(l){var u,f=(l=z0(l)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=f;++u)!(u<f&&r(c=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,u,l),+t(c,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ce(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ce(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ce(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Ac(e,t,r){var n=null,i=Ce(!0),a=null,o=Nh,s=null,l=L0(u);e=typeof e=="function"?e:e===void 0?q2:Ce(+e),t=typeof t=="function"?t:Ce(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?K2:Ce(+r);function u(c){var d,p,m,y=(c=z0(c)).length,v,g=!1,b,x=new Array(y),S=new Array(y);for(a==null&&(s=o(b=l())),d=0;d<=y;++d){if(!(d<y&&i(v=c[d],d,c))===g)if(g=!g)p=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=d-1;m>=p;--m)s.point(x[m],S[m]);s.lineEnd(),s.areaEnd()}g&&(x[d]=+e(v,d,c),S[d]=+t(v,d,c),s.point(n?+n(v,d,c):x[d],r?+r(v,d,c):S[d]))}if(b)return s=null,b+""||null}function f(){return G2().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ce(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ce(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ce(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ce(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ce(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ce(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Ce(!!c),u):i},u.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),u):o},u.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),u):a},u}class X2{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function NB(e){return new X2(e,!0)}function TB(e){return new X2(e,!1)}const B0={draw(e,t){const r=Hr(t/Bf);e.moveTo(r,0),e.arc(0,0,r,0,Eh)}},CB={draw(e,t){const r=Hr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Q2=Hr(1/3),$B=Q2*2,MB={draw(e,t){const r=Hr(t/$B),n=r*Q2;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},IB={draw(e,t){const r=Hr(t),n=-r/2;e.rect(n,n,r,r)}},RB=.8908130915292852,Y2=zf(Bf/10)/zf(7*Bf/10),DB=zf(Eh/10)*Y2,LB=-W2(Eh/10)*Y2,zB={draw(e,t){const r=Hr(t*RB),n=DB*r,i=LB*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Eh*a/5,s=W2(o),l=zf(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Wp=Hr(3),BB={draw(e,t){const r=-Hr(t/(Wp*3));e.moveTo(0,r*2),e.lineTo(-Wp*r,-r),e.lineTo(Wp*r,-r),e.closePath()}},hr=-.5,pr=Hr(3)/2,Xy=1/Hr(12),FB=(Xy/2+1)*3,UB={draw(e,t){const r=Hr(t/FB),n=r/2,i=r*Xy,a=n,o=r*Xy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(hr*n-pr*i,pr*n+hr*i),e.lineTo(hr*a-pr*o,pr*a+hr*o),e.lineTo(hr*s-pr*l,pr*s+hr*l),e.lineTo(hr*n+pr*i,hr*i-pr*n),e.lineTo(hr*a+pr*o,hr*o-pr*a),e.lineTo(hr*s+pr*l,hr*l-pr*s),e.closePath()}};function WB(e,t){let r=null,n=L0(i);e=typeof e=="function"?e:Ce(e||B0),t=typeof t=="function"?t:Ce(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ce(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ce(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ff(){}function Uf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function J2(e){this._context=e}J2.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:Uf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:Uf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function HB(e){return new J2(e)}function Z2(e){this._context=e}Z2.prototype={areaStart:Ff,areaEnd:Ff,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Uf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VB(e){return new Z2(e)}function ek(e){this._context=e}ek.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Uf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qB(e){return new ek(e)}function tk(e){this._context=e}tk.prototype={areaStart:Ff,areaEnd:Ff,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function KB(e){return new tk(e)}function Z1(e){return e<0?-1:1}function ew(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Z1(a)+Z1(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function tw(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Hp(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Wf(e){this._context=e}Wf.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:Hp(this,this._t0,tw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Hp(this,tw(this,r=ew(this,e,t)),r);break;default:Hp(this,this._t0,r=ew(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function rk(e){this._context=new nk(e)}(rk.prototype=Object.create(Wf.prototype)).point=function(e,t){Wf.prototype.point.call(this,t,e)};function nk(e){this._context=e}nk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function GB(e){return new Wf(e)}function XB(e){return new rk(e)}function ik(e){this._context=e}ik.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=rw(e),i=rw(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function rw(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function QB(e){return new ik(e)}function Th(e,t){this._context=e,this._t=t}Th.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function YB(e){return new Th(e,.5)}function JB(e){return new Th(e,0)}function ZB(e){return new Th(e,1)}function Qo(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Qy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function eF(e,t){return e[t]}function tF(e){const t=[];return t.key=e,t}function rF(){var e=Ce([]),t=Qy,r=Qo,n=eF;function i(a){var o=Array.from(e.apply(this,arguments),tF),s,l=o.length,u=-1,f;for(const c of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(c,o[s].key,u,a)]).data=c;for(s=0,f=z0(t(o));s<l;++s)o[f[s]].index=s;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ce(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ce(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Qy:typeof a=="function"?a:Ce(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Qo,i):r},i}function nF(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Qo(e,t)}}function iF(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Qo(e,t)}}function aF(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var f=e[t[s]],c=f[n][1]||0,d=f[n-1][1]||0,p=(c-d)/2,m=0;m<s;++m){var y=e[t[m]],v=y[n][1]||0,g=y[n-1][1]||0;p+=v-g}l+=c,u+=p*c}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Qo(e,t)}}function eu(e){"@babel/helpers - typeof";return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eu(e)}var oF=["type","size","sizeType"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(r),!0).forEach(function(n){sF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sF(e,t,r){return t=lF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lF(e){var t=uF(e,"string");return eu(t)=="symbol"?t:t+""}function uF(e,t){if(eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cF(e,t){if(e==null)return{};var r=fF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ak={symbolCircle:B0,symbolCross:CB,symbolDiamond:MB,symbolSquare:IB,symbolStar:zB,symbolTriangle:BB,symbolWye:UB},dF=Math.PI/180,hF=function(t){var r="symbol".concat(kh(t));return ak[r]||B0},pF=function(t,r,n){if(r==="area")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 i=18*dF;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},mF=function(t,r){ak["symbol".concat(kh(t))]=r},F0=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=cF(t,oF),u=iw(iw({},l),{},{type:n,size:a,sizeType:s}),f=function(){var v=hF(n),g=WB().type(v).size(pF(a,s,n));return g()},c=u.className,d=u.cx,p=u.cy,m=ne(u,!0);return d===+d&&p===+p&&a===+a?A.createElement("path",Yy({},m,{className:fe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};F0.registerSymbol=mF;function Yo(e){"@babel/helpers - typeof";return Yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yo(e)}function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aw(Object(r),!0).forEach(function(n){tu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sk(n.key),n)}}function bF(e,t,r){return t&&gF(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xF(e,t,r){return t=Hf(t),wF(e,ok()?Reflect.construct(t,r||[],Hf(e).constructor):t.apply(e,r))}function wF(e,t){if(t&&(Yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SF(e)}function SF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ok(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ok=function(){return!!e})()}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hf(e)}function OF(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function tu(e,t,r){return t=sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sk(e){var t=jF(e,"string");return Yo(t)=="symbol"?t:t+""}function jF(e,t){if(Yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mr=32,U0=function(e){function t(){return vF(this,t),xF(this,t,arguments)}return OF(t,e),bF(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=mr/2,o=mr/6,s=mr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:mr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
H`).concat(mr,"M").concat(2*s,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(mr/8,"h").concat(mr,"v").concat(mr*3/4,"h").concat(-mr,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=yF({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(F0,{fill:l,cx:a,cy:a,size:mr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:mr,height:mr},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var y=p.formatter||l,v=fe(tu(tu({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=oe(p.value)?null:p.value;Fr(!oe(p.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 b=p.inactive?u:p.color;return A.createElement("li",Jy({className:v,style:c,key:"legend-item-".concat(m)},Ia(n.props,p,m)),A.createElement(Wy,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(g,p,m):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(E.PureComponent);tu(U0,"displayName","Legend");tu(U0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var _F=mh;function PF(){this.__data__=new _F,this.size=0}var AF=PF;function kF(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var EF=kF;function NF(e){return this.__data__.get(e)}var TF=NF;function CF(e){return this.__data__.has(e)}var $F=CF,MF=mh,IF=E0,RF=N0,DF=200;function LF(e,t){var r=this.__data__;if(r instanceof MF){var n=r.__data__;if(!IF||n.length<DF-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new RF(n)}return r.set(e,t),this.size=r.size,this}var zF=LF,BF=mh,FF=AF,UF=EF,WF=TF,HF=$F,VF=zF;function Ds(e){var t=this.__data__=new BF(e);this.size=t.size}Ds.prototype.clear=FF;Ds.prototype.delete=UF;Ds.prototype.get=WF;Ds.prototype.has=HF;Ds.prototype.set=VF;var lk=Ds,qF="__lodash_hash_undefined__";function KF(e){return this.__data__.set(e,qF),this}var GF=KF;function XF(e){return this.__data__.has(e)}var QF=XF,YF=N0,JF=GF,ZF=QF;function Vf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new YF;++t<r;)this.add(e[t])}Vf.prototype.add=Vf.prototype.push=JF;Vf.prototype.has=ZF;var uk=Vf;function e8(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ck=e8;function t8(e,t){return e.has(t)}var fk=t8,r8=uk,n8=ck,i8=fk,a8=1,o8=2;function s8(e,t,r,n,i,a){var o=r&a8,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,p=r&o8?new r8:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var m=e[c],y=t[c];if(n)var v=o?n(y,m,c,t,e,a):n(m,y,c,e,t,a);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!n8(t,function(g,b){if(!i8(p,b)&&(m===g||i(m,g,r,n,a)))return p.push(b)})){d=!1;break}}else if(!(m===y||i(m,y,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var dk=s8,l8=un,u8=l8.Uint8Array,c8=u8;function f8(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var d8=f8;function h8(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var W0=h8,ow=Yu,sw=c8,p8=k0,m8=dk,y8=d8,v8=W0,g8=1,b8=2,x8="[object Boolean]",w8="[object Date]",S8="[object Error]",O8="[object Map]",j8="[object Number]",_8="[object RegExp]",P8="[object Set]",A8="[object String]",k8="[object Symbol]",E8="[object ArrayBuffer]",N8="[object DataView]",lw=ow?ow.prototype:void 0,Vp=lw?lw.valueOf:void 0;function T8(e,t,r,n,i,a,o){switch(r){case N8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E8:return!(e.byteLength!=t.byteLength||!a(new sw(e),new sw(t)));case x8:case w8:case j8:return p8(+e,+t);case S8:return e.name==t.name&&e.message==t.message;case _8:case A8:return e==t+"";case O8:var s=y8;case P8:var l=n&g8;if(s||(s=v8),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=b8,o.set(e,t);var f=m8(s(e),s(t),n,i,a,o);return o.delete(e),f;case k8:if(Vp)return Vp.call(e)==Vp.call(t)}return!1}var C8=T8;function $8(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var hk=$8,M8=hk,I8=er;function R8(e,t,r){var n=t(e);return I8(e)?n:M8(n,r(e))}var D8=R8;function L8(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var z8=L8;function B8(){return[]}var F8=B8,U8=z8,W8=F8,H8=Object.prototype,V8=H8.propertyIsEnumerable,uw=Object.getOwnPropertySymbols,q8=uw?function(e){return e==null?[]:(e=Object(e),U8(uw(e),function(t){return V8.call(e,t)}))}:W8,K8=q8;function G8(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var X8=G8,Q8=zn,Y8=Bn,J8="[object Arguments]";function Z8(e){return Y8(e)&&Q8(e)==J8}var eU=Z8,cw=eU,tU=Bn,pk=Object.prototype,rU=pk.hasOwnProperty,nU=pk.propertyIsEnumerable,iU=cw(function(){return arguments}())?cw:function(e){return tU(e)&&rU.call(e,"callee")&&!nU.call(e,"callee")},H0=iU,qf={exports:{}};function aU(){return!1}var oU=aU;qf.exports;(function(e,t){var r=un,n=oU,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(qf,qf.exports);var mk=qf.exports,sU=9007199254740991,lU=/^(?:0|[1-9]\d*)$/;function uU(e,t){var r=typeof e;return t=t??sU,!!t&&(r=="number"||r!="symbol"&&lU.test(e))&&e>-1&&e%1==0&&e<t}var V0=uU,cU=9007199254740991;function fU(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cU}var q0=fU,dU=zn,hU=q0,pU=Bn,mU="[object Arguments]",yU="[object Array]",vU="[object Boolean]",gU="[object Date]",bU="[object Error]",xU="[object Function]",wU="[object Map]",SU="[object Number]",OU="[object Object]",jU="[object RegExp]",_U="[object Set]",PU="[object String]",AU="[object WeakMap]",kU="[object ArrayBuffer]",EU="[object DataView]",NU="[object Float32Array]",TU="[object Float64Array]",CU="[object Int8Array]",$U="[object Int16Array]",MU="[object Int32Array]",IU="[object Uint8Array]",RU="[object Uint8ClampedArray]",DU="[object Uint16Array]",LU="[object Uint32Array]",Re={};Re[NU]=Re[TU]=Re[CU]=Re[$U]=Re[MU]=Re[IU]=Re[RU]=Re[DU]=Re[LU]=!0;Re[mU]=Re[yU]=Re[kU]=Re[vU]=Re[EU]=Re[gU]=Re[bU]=Re[xU]=Re[wU]=Re[SU]=Re[OU]=Re[jU]=Re[_U]=Re[PU]=Re[AU]=!1;function zU(e){return pU(e)&&hU(e.length)&&!!Re[dU(e)]}var BU=zU;function FU(e){return function(t){return e(t)}}var yk=FU,Kf={exports:{}};Kf.exports;(function(e,t){var r=j2,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Kf,Kf.exports);var UU=Kf.exports,WU=BU,HU=yk,fw=UU,dw=fw&&fw.isTypedArray,VU=dw?HU(dw):WU,vk=VU,qU=X8,KU=H0,GU=er,XU=mk,QU=V0,YU=vk,JU=Object.prototype,ZU=JU.hasOwnProperty;function e7(e,t){var r=GU(e),n=!r&&KU(e),i=!r&&!n&&XU(e),a=!r&&!n&&!i&&YU(e),o=r||n||i||a,s=o?qU(e.length,String):[],l=s.length;for(var u in e)(t||ZU.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||QU(u,l)))&&s.push(u);return s}var t7=e7,r7=Object.prototype;function n7(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||r7;return e===r}var i7=n7;function a7(e,t){return function(r){return e(t(r))}}var gk=a7,o7=gk,s7=o7(Object.keys,Object),l7=s7,u7=i7,c7=l7,f7=Object.prototype,d7=f7.hasOwnProperty;function h7(e){if(!u7(e))return c7(e);var t=[];for(var r in Object(e))d7.call(e,r)&&r!="constructor"&&t.push(r);return t}var p7=h7,m7=A0,y7=q0;function v7(e){return e!=null&&y7(e.length)&&!m7(e)}var Ju=v7,g7=t7,b7=p7,x7=Ju;function w7(e){return x7(e)?g7(e):b7(e)}var Ch=w7,S7=D8,O7=K8,j7=Ch;function _7(e){return S7(e,j7,O7)}var P7=_7,hw=P7,A7=1,k7=Object.prototype,E7=k7.hasOwnProperty;function N7(e,t,r,n,i,a){var o=r&A7,s=hw(e),l=s.length,u=hw(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:E7.call(t,d)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var y=!0;a.set(e,t),a.set(t,e);for(var v=o;++c<l;){d=s[c];var g=e[d],b=t[d];if(n)var x=o?n(b,g,d,t,e,a):n(g,b,d,e,t,a);if(!(x===void 0?g===b||i(g,b,r,n,a):x)){y=!1;break}v||(v=d=="constructor")}if(y&&!v){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(y=!1)}return a.delete(e),a.delete(t),y}var T7=N7,C7=Ha,$7=un,M7=C7($7,"DataView"),I7=M7,R7=Ha,D7=un,L7=R7(D7,"Promise"),z7=L7,B7=Ha,F7=un,U7=B7(F7,"Set"),bk=U7,W7=Ha,H7=un,V7=W7(H7,"WeakMap"),q7=V7,ev=I7,tv=E0,rv=z7,nv=bk,iv=q7,xk=zn,Ls=P2,pw="[object Map]",K7="[object Object]",mw="[object Promise]",yw="[object Set]",vw="[object WeakMap]",gw="[object DataView]",G7=Ls(ev),X7=Ls(tv),Q7=Ls(rv),Y7=Ls(nv),J7=Ls(iv),Yi=xk;(ev&&Yi(new ev(new ArrayBuffer(1)))!=gw||tv&&Yi(new tv)!=pw||rv&&Yi(rv.resolve())!=mw||nv&&Yi(new nv)!=yw||iv&&Yi(new iv)!=vw)&&(Yi=function(e){var t=xk(e),r=t==K7?e.constructor:void 0,n=r?Ls(r):"";if(n)switch(n){case G7:return gw;case X7:return pw;case Q7:return mw;case Y7:return yw;case J7:return vw}return t});var Z7=Yi,qp=lk,e9=dk,t9=C8,r9=T7,bw=Z7,xw=er,ww=mk,n9=vk,i9=1,Sw="[object Arguments]",Ow="[object Array]",kc="[object Object]",a9=Object.prototype,jw=a9.hasOwnProperty;function o9(e,t,r,n,i,a){var o=xw(e),s=xw(t),l=o?Ow:bw(e),u=s?Ow:bw(t);l=l==Sw?kc:l,u=u==Sw?kc:u;var f=l==kc,c=u==kc,d=l==u;if(d&&ww(e)){if(!ww(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new qp),o||n9(e)?e9(e,t,r,n,i,a):t9(e,t,l,r,n,i,a);if(!(r&i9)){var p=f&&jw.call(e,"__wrapped__"),m=c&&jw.call(t,"__wrapped__");if(p||m){var y=p?e.value():e,v=m?t.value():t;return a||(a=new qp),i(y,v,r,n,a)}}return d?(a||(a=new qp),r9(e,t,r,n,i,a)):!1}var s9=o9,l9=s9,_w=Bn;function wk(e,t,r,n,i){return e===t?!0:e==null||t==null||!_w(e)&&!_w(t)?e!==e&&t!==t:l9(e,t,r,n,wk,i)}var K0=wk,u9=lk,c9=K0,f9=1,d9=2;function h9(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new u9;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?c9(f,u,f9|d9,n,c):d))return!1}}return!0}var p9=h9,m9=Di;function y9(e){return e===e&&!m9(e)}var Sk=y9,v9=Sk,g9=Ch;function b9(e){for(var t=g9(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,v9(i)]}return t}var x9=b9;function w9(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Ok=w9,S9=p9,O9=x9,j9=Ok;function _9(e){var t=O9(e);return t.length==1&&t[0][2]?j9(t[0][0],t[0][1]):function(r){return r===e||S9(r,e,t)}}var P9=_9;function A9(e,t){return e!=null&&t in Object(e)}var k9=A9,E9=T2,N9=H0,T9=er,C9=V0,$9=q0,M9=vh;function I9(e,t,r){t=E9(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=M9(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&$9(i)&&C9(o,i)&&(T9(e)||N9(e)))}var R9=I9,D9=k9,L9=R9;function z9(e,t){return e!=null&&L9(e,t,D9)}var B9=z9,F9=K0,U9=C2,W9=B9,H9=P0,V9=Sk,q9=Ok,K9=vh,G9=1,X9=2;function Q9(e,t){return H9(e)&&V9(t)?q9(K9(e),t):function(r){var n=U9(r,e);return n===void 0&&n===t?W9(r,e):F9(t,n,G9|X9)}}var Y9=Q9;function J9(e){return e}var zs=J9;function Z9(e){return function(t){return t==null?void 0:t[e]}}var eW=Z9,tW=$0;function rW(e){return function(t){return tW(t,e)}}var nW=rW,iW=eW,aW=nW,oW=P0,sW=vh;function lW(e){return oW(e)?iW(sW(e)):aW(e)}var uW=lW,cW=P9,fW=Y9,dW=zs,hW=er,pW=uW;function mW(e){return typeof e=="function"?e:e==null?dW:typeof e=="object"?hW(e)?fW(e[0],e[1]):cW(e):pW(e)}var cn=mW;function yW(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var jk=yW;function vW(e){return e!==e}var gW=vW;function bW(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var xW=bW,wW=jk,SW=gW,OW=xW;function jW(e,t,r){return t===t?OW(e,t,r):wW(e,SW,r)}var _W=jW,PW=_W;function AW(e,t){var r=e==null?0:e.length;return!!r&&PW(e,t,0)>-1}var kW=AW;function EW(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var NW=EW;function TW(){}var CW=TW,Kp=bk,$W=CW,MW=W0,IW=1/0,RW=Kp&&1/MW(new Kp([,-0]))[1]==IW?function(e){return new Kp(e)}:$W,DW=RW,LW=uk,zW=kW,BW=NW,FW=fk,UW=DW,WW=W0,HW=200;function VW(e,t,r){var n=-1,i=zW,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=BW;else if(a>=HW){var u=t?null:UW(e);if(u)return WW(u);o=!1,i=FW,l=new LW}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var qW=VW,KW=cn,GW=qW;function XW(e,t){return e&&e.length?GW(e,KW(t)):[]}var QW=XW;const Pw=_e(QW);function _k(e,t,r){return t===!0?Pw(e,r):oe(t)?Pw(e,t):e}function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}var YW=["ref"];function Aw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aw(Object(r),!0).forEach(function(n){$h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ak(n.key),n)}}function ZW(e,t,r){return t&&kw(e.prototype,t),r&&kw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eH(e,t,r){return t=Gf(t),tH(e,Pk()?Reflect.construct(t,r||[],Gf(e).constructor):t.apply(e,r))}function tH(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rH(e)}function rH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pk=function(){return!!e})()}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gf(e)}function nH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&av(e,t)}function av(e,t){return av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},av(e,t)}function $h(e,t,r){return t=Ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ak(e){var t=iH(e,"string");return Jo(t)=="symbol"?t:t+""}function iH(e,t){if(Jo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function aH(e,t){if(e==null)return{};var r=oH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sH(e){return e.value}function lH(e,t){if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return A.createElement(e,t);t.ref;var r=aH(t,YW);return A.createElement(U0,r)}var Ew=1,Po=function(e){function t(){var r;JW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=eH(this,t,[].concat(i)),$h(r,"lastBoundingBox",{width:-1,height:-1}),r}return nH(t,e),ZW(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Ew||Math.abs(i.height-this.lastBoundingBox.height)>Ew)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?dn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return dn(dn({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=dn(dn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},lH(a,dn(dn({},this.props),{},{payload:_k(f,u,sH)})))}}],[{key:"getWithHeight",value:function(n,i){var a=dn(dn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&V(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(E.PureComponent);$h(Po,"displayName","Legend");$h(Po,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Nw=Yu,uH=H0,cH=er,Tw=Nw?Nw.isConcatSpreadable:void 0;function fH(e){return cH(e)||uH(e)||!!(Tw&&e&&e[Tw])}var dH=fH,hH=hk,pH=dH;function kk(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=pH),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?kk(s,t-1,r,n,i):hH(i,s):n||(i[i.length]=s)}return i}var Ek=kk;function mH(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var yH=mH,vH=yH,gH=vH(),bH=gH,xH=bH,wH=Ch;function SH(e,t){return e&&xH(e,t,wH)}var Nk=SH,OH=Ju;function jH(e,t){return function(r,n){if(r==null)return r;if(!OH(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var _H=jH,PH=Nk,AH=_H,kH=AH(PH),G0=kH,EH=G0,NH=Ju;function TH(e,t){var r=-1,n=NH(e)?Array(e.length):[];return EH(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Tk=TH;function CH(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var $H=CH,Cw=Ns;function MH(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=Cw(e),o=t!==void 0,s=t===null,l=t===t,u=Cw(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var IH=MH,RH=IH;function DH(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=RH(i[n],a[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var LH=DH,Gp=C0,zH=$0,BH=cn,FH=Tk,UH=$H,WH=yk,HH=LH,VH=zs,qH=er;function KH(e,t,r){t.length?t=Gp(t,function(a){return qH(a)?function(o){return zH(o,a.length===1?a[0]:a)}:a}):t=[VH];var n=-1;t=Gp(t,WH(BH));var i=FH(e,function(a,o,s){var l=Gp(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return UH(i,function(a,o){return HH(a,o,r)})}var GH=KH;function XH(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var QH=XH,YH=QH,$w=Math.max;function JH(e,t,r){return t=$w(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=$w(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),YH(e,this,s)}}var ZH=JH;function eV(e){return function(){return e}}var tV=eV,rV=Ha,nV=function(){try{var e=rV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ck=nV,iV=tV,Mw=Ck,aV=zs,oV=Mw?function(e,t){return Mw(e,"toString",{configurable:!0,enumerable:!1,value:iV(t),writable:!0})}:aV,sV=oV,lV=800,uV=16,cV=Date.now;function fV(e){var t=0,r=0;return function(){var n=cV(),i=uV-(n-r);if(r=n,i>0){if(++t>=lV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dV=fV,hV=sV,pV=dV,mV=pV(hV),yV=mV,vV=zs,gV=ZH,bV=yV;function xV(e,t){return bV(gV(e,t,vV),e+"")}var wV=xV,SV=k0,OV=Ju,jV=V0,_V=Di;function PV(e,t,r){if(!_V(r))return!1;var n=typeof t;return(n=="number"?OV(r)&&jV(t,r.length):n=="string"&&t in r)?SV(r[t],e):!1}var Mh=PV,AV=Ek,kV=GH,EV=wV,Iw=Mh,NV=EV(function(e,t){if(e==null)return[];var r=t.length;return r>1&&Iw(e,t[0],t[1])?t=[]:r>2&&Iw(t[0],t[1],t[2])&&(t=[t[0]]),kV(e,AV(t,1),[])}),TV=NV;const X0=_e(TV);function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ov.apply(this,arguments)}function CV(e,t){return RV(e)||IV(e,t)||MV(e,t)||$V()}function $V(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MV(e,t){if(e){if(typeof e=="string")return Rw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rw(e,t)}}function Rw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IV(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function RV(e){if(Array.isArray(e))return e}function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(n){DV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DV(e,t,r){return t=LV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LV(e){var t=zV(e,"string");return ru(t)=="symbol"?t:t+""}function zV(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BV(e){return Array.isArray(e)&&ct(e[0])&&ct(e[1])?e.join(" ~ "):e}var FV=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,y=t.label,v=t.labelFormatter,g=t.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(f&&f.length){var C={padding:0,margin:0},L=(d?X0(f,d):f).map(function(R,I){if(R.type==="none")return null;var D=Xp({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},s),F=R.formatter||c||BV,T=R.value,B=R.name,U=T,K=B;if(F&&U!=null&&K!=null){var H=F(T,B,R,I,f);if(Array.isArray(H)){var X=CV(H,2);U=X[0],K=X[1]}else U=H}return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:D},ct(K)?A.createElement("span",{className:"recharts-tooltip-item-name"},K):null,ct(K)?A.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,A.createElement("span",{className:"recharts-tooltip-item-value"},U),A.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:C},L)}return null},S=Xp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=Xp({margin:0},u),O=!ce(y),j=O?y:"",_=fe("recharts-default-tooltip",p),P=fe("recharts-tooltip-label",m);O&&v&&f!==void 0&&f!==null&&(j=v(y,f));var N=b?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",ov({className:_,style:S},N),A.createElement("p",{className:P,style:w},A.isValidElement(j)?j:"".concat(j)),x())};function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function Ec(e,t,r){return t=UV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UV(e){var t=WV(e,"string");return nu(t)=="symbol"?t:t+""}function WV(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tl="recharts-tooltip-wrapper",HV={visibility:"hidden"};function VV(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return fe(tl,Ec(Ec(Ec(Ec({},"".concat(tl,"-right"),V(r)&&t&&V(t.x)&&r>=t.x),"".concat(tl,"-left"),V(r)&&t&&V(t.x)&&r<t.x),"".concat(tl,"-bottom"),V(n)&&t&&V(t.y)&&n>=t.y),"".concat(tl,"-top"),V(n)&&t&&V(t.y)&&n<t.y))}function Lw(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&V(a[n]))return a[n];var f=r[n]-s-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var d=f,p=l[n];return d<p?Math.max(c,l[n]):Math.max(f,l[n])}var m=c+s,y=l[n]+u;return m>y?Math.max(f,l[n]):Math.max(c,l[n])}function qV(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function KV(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return o.height>0&&o.width>0&&r?(f=Lw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=Lw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=qV({translateX:f,translateY:c,useTranslate3d:s})):u=HV,{cssProperties:u,cssClasses:VV({translateX:f,translateY:c,coordinate:r})}}function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){lv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mk(n.key),n)}}function QV(e,t,r){return t&&XV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YV(e,t,r){return t=Xf(t),JV(e,$k()?Reflect.construct(t,r||[],Xf(e).constructor):t.apply(e,r))}function JV(e,t){if(t&&(Zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZV(e)}function ZV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($k=function(){return!!e})()}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xf(e)}function eq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sv(e,t)}function lv(e,t,r){return t=Mk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mk(e){var t=tq(e,"string");return Zo(t)=="symbol"?t:t+""}function tq(e,t){if(Zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fw=1,rq=function(e){function t(){var r;GV(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=YV(this,t,[].concat(i)),lv(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),lv(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),r}return eq(t,e),QV(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Fw||Math.abs(n.height-this.state.lastBoundingBox.height)>Fw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,y=i.reverseDirection,v=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=KV({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:g}),S=x.cssClasses,w=x.cssProperties,O=Bw(Bw({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},b);return A.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(_){n.wrapperNode=_}},u)}}])}(E.PureComponent),nq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Va={isSsr:nq()};function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ww(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(r),!0).forEach(function(n){Q0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rk(n.key),n)}}function oq(e,t,r){return t&&aq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sq(e,t,r){return t=Qf(t),lq(e,Ik()?Reflect.construct(t,r||[],Qf(e).constructor):t.apply(e,r))}function lq(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uq(e)}function uq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ik(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ik=function(){return!!e})()}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qf(e)}function cq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uv(e,t)}function uv(e,t){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uv(e,t)}function Q0(e,t,r){return t=Rk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rk(e){var t=fq(e,"string");return es(t)=="symbol"?t:t+""}function fq(e,t){if(es(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(es(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dq(e){return e.dataKey}function hq(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(FV,t)}var Wt=function(e){function t(){return iq(this,t),sq(this,t,arguments)}return cq(t,e),oq(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,m=i.payload,y=i.payloadUniqBy,v=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,S=i.wrapperStyle,w=m??[];c&&w.length&&(w=_k(m.filter(function(j){return j.value!=null&&(j.hide!==!0||n.props.includeHidden)}),y,dq));var O=w.length>0;return A.createElement(rq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:f,hasPayload:O,offset:p,position:v,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:S},hq(u,Ww(Ww({},this.props),{},{payload:w})))}}])}(E.PureComponent);Q0(Wt,"displayName","Tooltip");Q0(Wt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Va.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:{}});var pq=un,mq=function(){return pq.Date.now()},yq=mq,vq=/\s/;function gq(e){for(var t=e.length;t--&&vq.test(e.charAt(t)););return t}var bq=gq,xq=bq,wq=/^\s+/;function Sq(e){return e&&e.slice(0,xq(e)+1).replace(wq,"")}var Oq=Sq,jq=Oq,Hw=Di,_q=Ns,Vw=NaN,Pq=/^[-+]0x[0-9a-f]+$/i,Aq=/^0b[01]+$/i,kq=/^0o[0-7]+$/i,Eq=parseInt;function Nq(e){if(typeof e=="number")return e;if(_q(e))return Vw;if(Hw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Hw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jq(e);var r=Aq.test(e);return r||kq.test(e)?Eq(e.slice(2),r?2:8):Pq.test(e)?Vw:+e}var Dk=Nq,Tq=Di,Qp=yq,qw=Dk,Cq="Expected a function",$q=Math.max,Mq=Math.min;function Iq(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Cq);t=qw(t)||0,Tq(r)&&(f=!!r.leading,c="maxWait"in r,a=c?$q(qw(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(O){var j=n,_=i;return n=i=void 0,u=O,o=e.apply(_,j),o}function m(O){return u=O,s=setTimeout(g,t),f?p(O):o}function y(O){var j=O-l,_=O-u,P=t-j;return c?Mq(P,a-_):P}function v(O){var j=O-l,_=O-u;return l===void 0||j>=t||j<0||c&&_>=a}function g(){var O=Qp();if(v(O))return b(O);s=setTimeout(g,y(O))}function b(O){return s=void 0,d&&n?p(O):(n=i=void 0,o)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function S(){return s===void 0?o:b(Qp())}function w(){var O=Qp(),j=v(O);if(n=arguments,i=this,l=O,j){if(s===void 0)return m(l);if(c)return clearTimeout(s),s=setTimeout(g,t),p(l)}return s===void 0&&(s=setTimeout(g,t)),o}return w.cancel=x,w.flush=S,w}var Rq=Iq,Dq=Rq,Lq=Di,zq="Expected a function";function Bq(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(zq);return Lq(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Dq(e,t,{leading:n,maxWait:t,trailing:i})}var Fq=Bq;const Lk=_e(Fq);function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function Kw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(r),!0).forEach(function(n){Uq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uq(e,t,r){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wq(e){var t=Hq(e,"string");return iu(t)=="symbol"?t:t+""}function Hq(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vq(e,t){return Xq(e)||Gq(e,t)||Kq(e,t)||qq()}function qq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kq(e,t){if(e){if(typeof e=="string")return Gw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gw(e,t)}}function Gw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Xq(e){if(Array.isArray(e))return e}var Pl=E.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,d=e.maxHeight,p=e.children,m=e.debounce,y=m===void 0?0:m,v=e.id,g=e.className,b=e.onResize,x=e.style,S=x===void 0?{}:x,w=E.useRef(null),O=E.useRef();O.current=b,E.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var j=E.useState({containerWidth:i.width,containerHeight:i.height}),_=Vq(j,2),P=_[0],N=_[1],$=E.useCallback(function(L,R){N(function(I){var D=Math.round(L),F=Math.round(R);return I.containerWidth===D&&I.containerHeight===F?I:{containerWidth:D,containerHeight:F}})},[]);E.useEffect(function(){var L=function(B){var U,K=B[0].contentRect,H=K.width,X=K.height;$(H,X),(U=O.current)===null||U===void 0||U.call(O,H,X)};y>0&&(L=Lk(L,y,{trailing:!0,leading:!1}));var R=new ResizeObserver(L),I=w.current.getBoundingClientRect(),D=I.width,F=I.height;return $(D,F),R.observe(w.current),function(){R.disconnect()}},[$,y]);var C=E.useMemo(function(){var L=P.containerWidth,R=P.containerHeight;if(L<0||R<0)return null;Fr(aa(o)||aa(l),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,o,l),Fr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=aa(o)?L:o,D=aa(l)?R:l;r&&r>0&&(I?D=I/r:D&&(I=D*r),d&&D>d&&(D=d)),Fr(I>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,I,D,o,l,f,c,r);var F=!Array.isArray(p)&&An(p.type).endsWith("Chart");return A.Children.map(p,function(T){return A.isValidElement(T)?E.cloneElement(T,Nc({width:I,height:D},F?{style:Nc({height:"100%",width:"100%",maxHeight:D,maxWidth:I},T.props.style)}:{})):T})},[r,p,l,d,c,f,P,o]);return A.createElement("div",{id:v?"".concat(v):void 0,className:fe("recharts-responsive-container",g),style:Nc(Nc({},S),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:w},C)}),Ih=function(t){return null};Ih.displayName="Cell";function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function Xw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(r),!0).forEach(function(n){Qq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qq(e,t,r){return t=Yq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yq(e){var t=Jq(e,"string");return au(t)=="symbol"?t:t+""}function Jq(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ja={widthCache:{},cacheCount:0},Zq=2e3,eK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Qw="recharts_measurement_span";function tK(e){var t=cv({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Al=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Va.isSsr)return{width:0,height:0};var n=tK(r),i=JSON.stringify({text:t,copyStyle:n});if(Ja.widthCache[i])return Ja.widthCache[i];try{var a=document.getElementById(Qw);a||(a=document.createElement("span"),a.setAttribute("id",Qw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=cv(cv({},eK),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ja.widthCache[i]=l,++Ja.cacheCount>Zq&&(Ja.cacheCount=0,Ja.widthCache={}),l}catch{return{width:0,height:0}}},rK=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function Yf(e,t){return oK(e)||aK(e,t)||iK(e,t)||nK()}function nK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iK(e,t){if(e){if(typeof e=="string")return Yw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(e,t)}}function Yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function oK(e){if(Array.isArray(e))return e}function sK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uK(n.key),n)}}function lK(e,t,r){return t&&Jw(e.prototype,t),r&&Jw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uK(e){var t=cK(e,"string");return ou(t)=="symbol"?t:t+""}function cK(e,t){if(ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,eS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,fK=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,dK=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,zk={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},hK=Object.keys(zk),po="NaN";function pK(e,t){return e*zk[t]}var Tc=function(){function e(t,r){sK(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!fK.test(r)&&(this.num=NaN,this.unit=""),hK.includes(r)&&(this.num=pK(t,r),this.unit="px")}return lK(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=dK.exec(r))!==null&&n!==void 0?n:[],a=Yf(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function Bk(e){if(e.includes(po))return po;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Zw.exec(t))!==null&&r!==void 0?r:[],i=Yf(n,4),a=i[1],o=i[2],s=i[3],l=Tc.parse(a??""),u=Tc.parse(s??""),f=o==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return po;t=t.replace(Zw,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=eS.exec(t))!==null&&c!==void 0?c:[],p=Yf(d,4),m=p[1],y=p[2],v=p[3],g=Tc.parse(m??""),b=Tc.parse(v??""),x=y==="+"?g.add(b):g.subtract(b);if(x.isNaN())return po;t=t.replace(eS,x.toString())}return t}var tS=/\(([^()]*)\)/;function mK(e){for(var t=e;t.includes("(");){var r=tS.exec(t),n=Yf(r,2),i=n[1];t=t.replace(tS,Bk(i))}return t}function yK(e){var t=e.replace(/\s+/g,"");return t=mK(t),t=Bk(t),t}function vK(e){try{return yK(e)}catch{return po}}function Yp(e){var t=vK(e.slice(5,-1));return t===po?"":t}var gK=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],bK=["dx","dy","angle","className","breakAll"];function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fv.apply(this,arguments)}function rS(e,t){if(e==null)return{};var r=xK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nS(e,t){return jK(e)||OK(e,t)||SK(e,t)||wK()}function wK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SK(e,t){if(e){if(typeof e=="string")return iS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iS(e,t)}}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function jK(e){if(Array.isArray(e))return e}var Fk=/[ \f\n\r\t\v\u2028\u2029]+/,Uk=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ce(r)||(n?a=r.toString().split(""):a=r.toString().split(Fk));var o=a.map(function(l){return{word:l,width:Al(l,i).width}}),s=n?0:Al(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},_K=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=V(o),c=s,d=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(D,F){var T=F.word,B=F.width,U=D[D.length-1];if(U&&(i==null||a||U.width+B+n<Number(i)))U.words.push(T),U.width+=B+n;else{var K={words:[T],width:B};D.push(K)}return D},[])},p=d(r),m=function(I){return I.reduce(function(D,F){return D.width>F.width?D:F})};if(!f)return p;for(var y="…",v=function(I){var D=c.slice(0,I),F=Uk({breakAll:u,style:l,children:D+y}).wordsWithComputedWidth,T=d(F),B=T.length>o||m(T).width>Number(i);return[B,T]},g=0,b=c.length-1,x=0,S;g<=b&&x<=c.length-1;){var w=Math.floor((g+b)/2),O=w-1,j=v(O),_=nS(j,2),P=_[0],N=_[1],$=v(w),C=nS($,1),L=C[0];if(!P&&!L&&(g=w+1),P&&L&&(b=w-1),!P&&L){S=N;break}x++}return S||p},aS=function(t){var r=ce(t)?[]:t.toString().split(Fk);return[{words:r}]},PK=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Va.isSsr){var l,u,f=Uk({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return aS(i);return _K({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return aS(i)},oS="#808080",Ra=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,y=m===void 0?"end":m,v=t.fill,g=v===void 0?oS:v,b=rS(t,gK),x=E.useMemo(function(){return PK({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:c,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,c,b.style,b.width]),S=b.dx,w=b.dy,O=b.angle,j=b.className,_=b.breakAll,P=rS(b,bK);if(!ct(n)||!ct(a))return null;var N=n+(V(S)?S:0),$=a+(V(w)?w:0),C;switch(y){case"start":C=Yp("calc(".concat(u,")"));break;case"middle":C=Yp("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:C=Yp("calc(".concat(x.length-1," * -").concat(s,")"));break}var L=[];if(c){var R=x[0].width,I=b.width;L.push("scale(".concat((V(I)?I/R:1)/R,")"))}return O&&L.push("rotate(".concat(O,", ").concat(N,", ").concat($,")")),L.length&&(P.transform=L.join(" ")),A.createElement("text",fv({},ne(P,!0),{x:N,y:$,className:fe("recharts-text",j),textAnchor:p,fill:g.includes("url")?oS:g}),x.map(function(D,F){var T=D.words.join(_?"":" ");return A.createElement("tspan",{x:N,dy:F===0?C:s,key:"".concat(T,"-").concat(F)},T)}))};function ji(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function AK(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Y0(e){let t,r,n;e.length!==2?(t=ji,r=(s,l)=>ji(e(s),l),n=(s,l)=>e(s)-l):(t=e===ji||e===AK?e:kK,r=e,n=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:o,right:a}}function kK(){return 0}function Wk(e){return e===null?NaN:+e}function*EK(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const NK=Y0(ji),Zu=NK.right;Y0(Wk).center;class sS extends Map{constructor(t,r=$K){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(lS(this,t))}has(t){return super.has(lS(this,t))}set(t,r){return super.set(TK(this,t),r)}delete(t){return super.delete(CK(this,t))}}function lS({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function TK({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function CK({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function $K(e){return e!==null&&typeof e=="object"?e.valueOf():e}function MK(e=ji){if(e===ji)return Hk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Hk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const IK=Math.sqrt(50),RK=Math.sqrt(10),DK=Math.sqrt(2);function Jf(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=IK?10:a>=RK?5:a>=DK?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?Jf(e,t,r*2):[s,l,u]}function dv(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Jf(t,e,r):Jf(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function hv(e,t,r){return t=+t,e=+e,r=+r,Jf(e,t,r)[2]}function pv(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?hv(t,e,r):hv(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function uS(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function cS(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Vk(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Hk:MK(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*c/l+d)),m=Math.min(n,Math.floor(t+(l-u)*c/l+d));Vk(e,t,p,m,i)}const a=e[t];let o=r,s=n;for(rl(e,r,t),i(e[n],a)>0&&rl(e,r,n);o<s;){for(rl(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?rl(e,r,s):(++s,rl(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function rl(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function LK(e,t,r){if(e=Float64Array.from(EK(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return cS(e);if(t>=1)return uS(e);var n,i=(n-1)*t,a=Math.floor(i),o=uS(Vk(e,a).subarray(0,a+1)),s=cS(e.subarray(a+1));return o+(s-o)*(i-a)}}function zK(e,t,r=Wk){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function BK(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Er(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Fn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const mv=Symbol("implicit");function J0(){var e=new sS,t=[],r=[],n=mv;function i(a){let o=e.get(a);if(o===void 0){if(n!==mv)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new sS;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return J0(t,r).unknown(n)},Er.apply(i,arguments),i}function su(){var e=J0().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<n,m=p?i:n,y=p?n:i;a=(y-m)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),m+=(y-m-a*(d-l))*f,o=a*(1-l),s&&(m=Math.round(m),o=Math.round(o));var v=BK(d).map(function(g){return m+a*g});return r(p?v.reverse():v)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,c()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),c()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),c()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,c()):u},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return su(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},Er.apply(c(),arguments)}function qk(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qk(t())},e}function kl(){return qk(su.apply(null,arguments).paddingInner(1))}function Z0(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Kk(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ec(){}var lu=.7,Zf=1/lu,Ao="\\s*([+-]?\\d+)\\s*",uu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FK=/^#([0-9a-f]{3,8})$/,UK=new RegExp(`^rgb\\(${Ao},${Ao},${Ao}\\)$`),WK=new RegExp(`^rgb\\(${tn},${tn},${tn}\\)$`),HK=new RegExp(`^rgba\\(${Ao},${Ao},${Ao},${uu}\\)$`),VK=new RegExp(`^rgba\\(${tn},${tn},${tn},${uu}\\)$`),qK=new RegExp(`^hsl\\(${uu},${tn},${tn}\\)$`),KK=new RegExp(`^hsla\\(${uu},${tn},${tn},${uu}\\)$`),fS={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};Z0(ec,cu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dS,formatHex:dS,formatHex8:GK,formatHsl:XK,formatRgb:hS,toString:hS});function dS(){return this.rgb().formatHex()}function GK(){return this.rgb().formatHex8()}function XK(){return Gk(this).formatHsl()}function hS(){return this.rgb().formatRgb()}function cu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=FK.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?pS(t):r===3?new Kt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Cc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Cc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=UK.exec(e))?new Kt(t[1],t[2],t[3],1):(t=WK.exec(e))?new Kt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=HK.exec(e))?Cc(t[1],t[2],t[3],t[4]):(t=VK.exec(e))?Cc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qK.exec(e))?vS(t[1],t[2]/100,t[3]/100,1):(t=KK.exec(e))?vS(t[1],t[2]/100,t[3]/100,t[4]):fS.hasOwnProperty(e)?pS(fS[e]):e==="transparent"?new Kt(NaN,NaN,NaN,0):null}function pS(e){return new Kt(e>>16&255,e>>8&255,e&255,1)}function Cc(e,t,r,n){return n<=0&&(e=t=r=NaN),new Kt(e,t,r,n)}function QK(e){return e instanceof ec||(e=cu(e)),e?(e=e.rgb(),new Kt(e.r,e.g,e.b,e.opacity)):new Kt}function yv(e,t,r,n){return arguments.length===1?QK(e):new Kt(e,t,r,n??1)}function Kt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Z0(Kt,yv,Kk(ec,{brighter(e){return e=e==null?Zf:Math.pow(Zf,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?lu:Math.pow(lu,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kt(Sa(this.r),Sa(this.g),Sa(this.b),ed(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:mS,formatHex:mS,formatHex8:YK,formatRgb:yS,toString:yS}));function mS(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}`}function YK(){return`#${oa(this.r)}${oa(this.g)}${oa(this.b)}${oa((isNaN(this.opacity)?1:this.opacity)*255)}`}function yS(){const e=ed(this.opacity);return`${e===1?"rgb(":"rgba("}${Sa(this.r)}, ${Sa(this.g)}, ${Sa(this.b)}${e===1?")":`, ${e})`}`}function ed(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oa(e){return e=Sa(e),(e<16?"0":"")+e.toString(16)}function vS(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Lr(e,t,r,n)}function Gk(e){if(e instanceof Lr)return new Lr(e.h,e.s,e.l,e.opacity);if(e instanceof ec||(e=cu(e)),!e)return new Lr;if(e instanceof Lr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Lr(o,s,l,e.opacity)}function JK(e,t,r,n){return arguments.length===1?Gk(e):new Lr(e,t,r,n??1)}function Lr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Z0(Lr,JK,Kk(ec,{brighter(e){return e=e==null?Zf:Math.pow(Zf,e),new Lr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?lu:Math.pow(lu,e),new Lr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Kt(Jp(e>=240?e-240:e+120,i,n),Jp(e,i,n),Jp(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Lr(gS(this.h),$c(this.s),$c(this.l),ed(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 e=ed(this.opacity);return`${e===1?"hsl(":"hsla("}${gS(this.h)}, ${$c(this.s)*100}%, ${$c(this.l)*100}%${e===1?")":`, ${e})`}`}}));function gS(e){return e=(e||0)%360,e<0?e+360:e}function $c(e){return Math.max(0,Math.min(1,e||0))}function Jp(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const eb=e=>()=>e;function ZK(e,t){return function(r){return e+r*t}}function eG(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function tG(e){return(e=+e)==1?Xk:function(t,r){return r-t?eG(t,r,e):eb(isNaN(t)?r:t)}}function Xk(e,t){var r=t-e;return r?ZK(e,r):eb(isNaN(e)?t:e)}const bS=function e(t){var r=tG(t);function n(i,a){var o=r((i=yv(i)).r,(a=yv(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=Xk(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function rG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function nG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function iG(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Bs(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function aG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function td(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function oG(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Bs(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var vv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zp=new RegExp(vv.source,"g");function sG(e){return function(){return e}}function lG(e){return function(t){return e(t)+""}}function uG(e,t){var r=vv.lastIndex=Zp.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=vv.exec(e))&&(i=Zp.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:td(n,i)})),r=Zp.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?lG(l[0].x):sG(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function Bs(e,t){var r=typeof t,n;return t==null||r==="boolean"?eb(t):(r==="number"?td:r==="string"?(n=cu(t))?(t=n,bS):uG:t instanceof cu?bS:t instanceof Date?aG:nG(t)?rG:Array.isArray(t)?iG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?oG:td)(e,t)}function tb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function cG(e,t){t===void 0&&(t=e,e=Bs);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function fG(e){return function(){return e}}function rd(e){return+e}var xS=[0,1];function Rt(e){return e}function gv(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:fG(isNaN(t)?NaN:.5)}function dG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=gv(i,n),a=r(o,a)):(n=gv(n,i),a=r(a,o)),function(s){return a(n(s))}}function pG(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=gv(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Zu(e,s,1,n)-1;return a[l](i[l](s))}}function tc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rh(){var e=xS,t=xS,r=Bs,n,i,a,o=Rt,s,l,u;function f(){var d=Math.min(e.length,t.length);return o!==Rt&&(o=dG(e[0],e[d-1])),s=d>2?pG:hG,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((u||(u=s(t,e.map(n),td)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,rd),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=tb,f()},c.clamp=function(d){return arguments.length?(o=d?!0:Rt,f()):o!==Rt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function rb(){return Rh()(Rt,Rt)}function mG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nd(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ts(e){return e=nd(Math.abs(e)),e?e[1]:NaN}function yG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function vG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var gG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fu(e){if(!(t=gG.exec(e)))throw new Error("invalid format: "+e);var t;return new nb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}fu.prototype=nb.prototype;function nb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}nb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function bG(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var id;function xG(e,t){var r=nd(e,t);if(!r)return id=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(id=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+nd(e,Math.max(0,t+a-1))[0]}function wS(e,t){var r=nd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const SS={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:mG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wS(e*100,t),r:wS,s:xG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function OS(e){return e}var jS=Array.prototype.map,_S=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wG(e){var t=e.grouping===void 0||e.thousands===void 0?OS:yG(jS.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?OS:vG(jS.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,d){c=fu(c);var p=c.fill,m=c.align,y=c.sign,v=c.symbol,g=c.zero,b=c.width,x=c.comma,S=c.precision,w=c.trim,O=c.type;O==="n"?(x=!0,O="g"):SS[O]||(S===void 0&&(S=12),w=!0,O="g"),(g||p==="0"&&m==="=")&&(g=!0,p="0",m="=");var j=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),_=(v==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),P=SS[O],N=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function $(C){var L=j,R=_,I,D,F;if(O==="c")R=P(C)+R,C="";else{C=+C;var T=C<0||1/C<0;if(C=isNaN(C)?l:P(Math.abs(C),S),w&&(C=bG(C)),T&&+C==0&&y!=="+"&&(T=!1),L=(T?y==="("?y:s:y==="-"||y==="("?"":y)+L,R=(O==="s"&&!isNaN(C)&&id!==void 0?_S[8+id/3]:"")+R+(T&&y==="("?")":""),N){for(I=-1,D=C.length;++I<D;)if(F=C.charCodeAt(I),48>F||F>57){R=(F===46?i+C.slice(I+1):C.slice(I))+R,C=C.slice(0,I);break}}}x&&!g&&(C=t(C,1/0));var B=L.length+C.length+R.length,U=B<b?new Array(b-B+1).join(p):"";switch(x&&g&&(C=t(U+C,U.length?b-R.length:1/0),U=""),m){case"<":C=L+C+R+U;break;case"=":C=L+U+C+R;break;case"^":C=U.slice(0,B=U.length>>1)+L+C+R+U.slice(B);break;default:C=U+L+C+R;break}return a(C)}return $.toString=function(){return c+""},$}function f(c,d){var p=Math.max(-8,Math.min(8,Math.floor(ts(d)/3)))*3,m=Math.pow(10,-p),y=u((c=fu(c),c.type="f",c),{suffix:_S[8+p/3]});return function(v){return y(m*v)}}return{format:u,formatPrefix:f}}var Mc,ib,Qk;SG({thousands:",",grouping:[3],currency:["$",""]});function SG(e){return Mc=wG(e),ib=Mc.format,Qk=Mc.formatPrefix,Mc}function OG(e){return Math.max(0,-ts(Math.abs(e)))}function jG(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ts(t)/3)))*3-ts(Math.abs(e)))}function _G(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ts(t)-ts(e))+1}function Yk(e,t,r,n){var i=pv(e,t,r),a;switch(n=fu(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=jG(i,o))&&(n.precision=a),Qk(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=_G(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=OG(i))&&(n.precision=a-(n.type==="%")*2);break}}return ib(n)}function Li(e){var t=e.domain;return e.ticks=function(r){var n=t();return dv(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Yk(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,f=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);f-- >0;){if(u=hv(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function ad(){var e=rb();return e.copy=function(){return tc(e,ad())},Er.apply(e,arguments),Li(e)}function Jk(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,rd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Jk(e).unknown(t)},e=arguments.length?Array.from(e,rd):[0,1],Li(r)}function Zk(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function PS(e){return Math.log(e)}function AS(e){return Math.exp(e)}function PG(e){return-Math.log(-e)}function AG(e){return-Math.exp(-e)}function kG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function EG(e){return e===10?kG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function NG(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function kS(e){return(t,r)=>-e(-t,r)}function ab(e){const t=e(PS,AS),r=t.domain;let n=10,i,a;function o(){return i=NG(n),a=EG(n),r()[0]<0?(i=kS(i),a=kS(a),e(PG,AG)):e(PS,AS),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let d=i(u),p=i(f),m,y;const v=s==null?10:+s;let g=[];if(!(n%1)&&p-d<v){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<n;++m)if(y=d<0?m/a(-d):m*a(d),!(y<u)){if(y>f)break;g.push(y)}}else for(;d<=p;++d)for(m=n-1;m>=1;--m)if(y=d>0?m/a(-d):m*a(d),!(y<u)){if(y>f)break;g.push(y)}g.length*2<v&&(g=dv(u,f,v))}else g=dv(d,p,Math.min(p-d,v)).map(a);return c?g.reverse():g},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=fu(l)).precision==null&&(l.trim=!0),l=ib(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=u?l(f):""}},t.nice=()=>r(Zk(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function eE(){const e=ab(Rh()).domain([1,10]);return e.copy=()=>tc(e,eE()).base(e.base()),Er.apply(e,arguments),e}function ES(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function NS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ob(e){var t=1,r=e(ES(t),NS(t));return r.constant=function(n){return arguments.length?e(ES(t=+n),NS(t)):t},Li(r)}function tE(){var e=ob(Rh());return e.copy=function(){return tc(e,tE()).constant(e.constant())},Er.apply(e,arguments)}function TS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function TG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CG(e){return e<0?-e*e:e*e}function sb(e){var t=e(Rt,Rt),r=1;function n(){return r===1?e(Rt,Rt):r===.5?e(TG,CG):e(TS(r),TS(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Li(t)}function lb(){var e=sb(Rh());return e.copy=function(){return tc(e,lb()).exponent(e.exponent())},Er.apply(e,arguments),e}function $G(){return lb.apply(null,arguments).exponent(.5)}function CS(e){return Math.sign(e)*e*e}function MG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function rE(){var e=rb(),t=[0,1],r=!1,n;function i(a){var o=MG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(CS(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,rd)).map(CS)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return rE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Er.apply(i,arguments),Li(i)}function nE(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=zK(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Zu(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(ji),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return nE().domain(e).range(t).unknown(n)},Er.apply(a,arguments)}function iE(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Zu(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return iE().domain([e,t]).range(i).unknown(a)},Er.apply(Li(o),arguments)}function aE(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Zu(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return aE().domain(e).range(t).unknown(r)},Er.apply(i,arguments)}const em=new Date,tm=new Date;function ft(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>ft(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(em.setTime(+a),tm.setTime(+o),e(em),e(tm),Math.floor(r(em,tm))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const od=ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);od.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):od);od.range;const On=1e3,Sr=On*60,jn=Sr*60,In=jn*24,ub=In*7,$S=In*30,rm=In*365,sa=ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*On)},(e,t)=>(t-e)/On,e=>e.getUTCSeconds());sa.range;const cb=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*On)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getMinutes());cb.range;const fb=ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getUTCMinutes());fb.range;const db=ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*On-e.getMinutes()*Sr)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getHours());db.range;const hb=ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*jn)},(e,t)=>(t-e)/jn,e=>e.getUTCHours());hb.range;const rc=ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sr)/In,e=>e.getDate()-1);rc.range;const Dh=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/In,e=>e.getUTCDate()-1);Dh.range;const oE=ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/In,e=>Math.floor(e/In));oE.range;function qa(e){return ft(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Sr)/ub)}const Lh=qa(0),sd=qa(1),IG=qa(2),RG=qa(3),rs=qa(4),DG=qa(5),LG=qa(6);Lh.range;sd.range;IG.range;RG.range;rs.range;DG.range;LG.range;function Ka(e){return ft(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ub)}const zh=Ka(0),ld=Ka(1),zG=Ka(2),BG=Ka(3),ns=Ka(4),FG=Ka(5),UG=Ka(6);zh.range;ld.range;zG.range;BG.range;ns.range;FG.range;UG.range;const pb=ft(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());pb.range;const mb=ft(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());mb.range;const Rn=ft(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Rn.range;const Dn=ft(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Dn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ft(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Dn.range;function sE(e,t,r,n,i,a){const o=[[sa,1,On],[sa,5,5*On],[sa,15,15*On],[sa,30,30*On],[a,1,Sr],[a,5,5*Sr],[a,15,15*Sr],[a,30,30*Sr],[i,1,jn],[i,3,3*jn],[i,6,6*jn],[i,12,12*jn],[n,1,In],[n,2,2*In],[r,1,ub],[t,1,$S],[t,3,3*$S],[e,1,rm]];function s(u,f,c){const d=f<u;d&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:l(u,f,c),m=p?p.range(u,+f+1):[];return d?m.reverse():m}function l(u,f,c){const d=Math.abs(f-u)/c,p=Y0(([,,v])=>v).right(o,d);if(p===o.length)return e.every(pv(u/rm,f/rm,c));if(p===0)return od.every(Math.max(pv(u,f,c),1));const[m,y]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return m.every(y)}return[s,l]}const[WG,HG]=sE(Dn,mb,zh,oE,hb,fb),[VG,qG]=sE(Rn,pb,Lh,rc,db,cb);function nm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function im(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function nl(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function KG(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=il(i),f=al(i),c=il(a),d=al(a),p=il(o),m=al(o),y=il(s),v=al(s),g=il(l),b=al(l),x={a:F,A:T,b:B,B:U,c:null,d:zS,e:zS,f:yX,g:PX,G:kX,H:hX,I:pX,j:mX,L:lE,m:vX,M:gX,p:K,q:H,Q:US,s:WS,S:bX,u:xX,U:wX,V:SX,w:OX,W:jX,x:null,X:null,y:_X,Y:AX,Z:EX,"%":FS},S={a:X,A:ie,b:be,B:ze,c:null,d:BS,e:BS,f:$X,g:WX,G:VX,H:NX,I:TX,j:CX,L:cE,m:MX,M:IX,p:we,q:gt,Q:US,s:WS,S:RX,u:DX,U:LX,V:zX,w:BX,W:FX,x:null,X:null,y:UX,Y:HX,Z:qX,"%":FS},w={a:N,A:$,b:C,B:L,c:R,d:DS,e:DS,f:uX,g:RS,G:IS,H:LS,I:LS,j:aX,L:lX,m:iX,M:oX,p:P,q:nX,Q:fX,s:dX,S:sX,u:JG,U:ZG,V:eX,w:YG,W:tX,x:I,X:D,y:RS,Y:IS,Z:rX,"%":cX};x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),S.x=O(r,S),S.X=O(n,S),S.c=O(t,S);function O(G,le){return function(ue){var W=[],Ve=-1,ve=0,tt=G.length,rt,Bt,Wn;for(ue instanceof Date||(ue=new Date(+ue));++Ve<tt;)G.charCodeAt(Ve)===37&&(W.push(G.slice(ve,Ve)),(Bt=MS[rt=G.charAt(++Ve)])!=null?rt=G.charAt(++Ve):Bt=rt==="e"?" ":"0",(Wn=le[rt])&&(rt=Wn(ue,Bt)),W.push(rt),ve=Ve+1);return W.push(G.slice(ve,Ve)),W.join("")}}function j(G,le){return function(ue){var W=nl(1900,void 0,1),Ve=_(W,G,ue+="",0),ve,tt;if(Ve!=ue.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(le&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(ve=im(nl(W.y,0,1)),tt=ve.getUTCDay(),ve=tt>4||tt===0?ld.ceil(ve):ld(ve),ve=Dh.offset(ve,(W.V-1)*7),W.y=ve.getUTCFullYear(),W.m=ve.getUTCMonth(),W.d=ve.getUTCDate()+(W.w+6)%7):(ve=nm(nl(W.y,0,1)),tt=ve.getDay(),ve=tt>4||tt===0?sd.ceil(ve):sd(ve),ve=rc.offset(ve,(W.V-1)*7),W.y=ve.getFullYear(),W.m=ve.getMonth(),W.d=ve.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),tt="Z"in W?im(nl(W.y,0,1)).getUTCDay():nm(nl(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(tt+5)%7:W.w+W.U*7-(tt+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,im(W)):nm(W)}}function _(G,le,ue,W){for(var Ve=0,ve=le.length,tt=ue.length,rt,Bt;Ve<ve;){if(W>=tt)return-1;if(rt=le.charCodeAt(Ve++),rt===37){if(rt=le.charAt(Ve++),Bt=w[rt in MS?le.charAt(Ve++):rt],!Bt||(W=Bt(G,ue,W))<0)return-1}else if(rt!=ue.charCodeAt(W++))return-1}return W}function P(G,le,ue){var W=u.exec(le.slice(ue));return W?(G.p=f.get(W[0].toLowerCase()),ue+W[0].length):-1}function N(G,le,ue){var W=p.exec(le.slice(ue));return W?(G.w=m.get(W[0].toLowerCase()),ue+W[0].length):-1}function $(G,le,ue){var W=c.exec(le.slice(ue));return W?(G.w=d.get(W[0].toLowerCase()),ue+W[0].length):-1}function C(G,le,ue){var W=g.exec(le.slice(ue));return W?(G.m=b.get(W[0].toLowerCase()),ue+W[0].length):-1}function L(G,le,ue){var W=y.exec(le.slice(ue));return W?(G.m=v.get(W[0].toLowerCase()),ue+W[0].length):-1}function R(G,le,ue){return _(G,t,le,ue)}function I(G,le,ue){return _(G,r,le,ue)}function D(G,le,ue){return _(G,n,le,ue)}function F(G){return o[G.getDay()]}function T(G){return a[G.getDay()]}function B(G){return l[G.getMonth()]}function U(G){return s[G.getMonth()]}function K(G){return i[+(G.getHours()>=12)]}function H(G){return 1+~~(G.getMonth()/3)}function X(G){return o[G.getUTCDay()]}function ie(G){return a[G.getUTCDay()]}function be(G){return l[G.getUTCMonth()]}function ze(G){return s[G.getUTCMonth()]}function we(G){return i[+(G.getUTCHours()>=12)]}function gt(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var le=O(G+="",x);return le.toString=function(){return G},le},parse:function(G){var le=j(G+="",!1);return le.toString=function(){return G},le},utcFormat:function(G){var le=O(G+="",S);return le.toString=function(){return G},le},utcParse:function(G){var le=j(G+="",!0);return le.toString=function(){return G},le}}}var MS={"-":"",_:" ",0:"0"},vt=/^\s*\d+/,GG=/^%/,XG=/[\\^$*+?|[\]().{}]/g;function xe(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function QG(e){return e.replace(XG,"\\$&")}function il(e){return new RegExp("^(?:"+e.map(QG).join("|")+")","i")}function al(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function YG(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function JG(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function ZG(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function tX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function IS(e,t,r){var n=vt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function RS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function rX(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nX(e,t,r){var n=vt.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function iX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function DS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function aX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function LS(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function oX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function sX(e,t,r){var n=vt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function lX(e,t,r){var n=vt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function uX(e,t,r){var n=vt.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function cX(e,t,r){var n=GG.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function fX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function dX(e,t,r){var n=vt.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function zS(e,t){return xe(e.getDate(),t,2)}function hX(e,t){return xe(e.getHours(),t,2)}function pX(e,t){return xe(e.getHours()%12||12,t,2)}function mX(e,t){return xe(1+rc.count(Rn(e),e),t,3)}function lE(e,t){return xe(e.getMilliseconds(),t,3)}function yX(e,t){return lE(e,t)+"000"}function vX(e,t){return xe(e.getMonth()+1,t,2)}function gX(e,t){return xe(e.getMinutes(),t,2)}function bX(e,t){return xe(e.getSeconds(),t,2)}function xX(e){var t=e.getDay();return t===0?7:t}function wX(e,t){return xe(Lh.count(Rn(e)-1,e),t,2)}function uE(e){var t=e.getDay();return t>=4||t===0?rs(e):rs.ceil(e)}function SX(e,t){return e=uE(e),xe(rs.count(Rn(e),e)+(Rn(e).getDay()===4),t,2)}function OX(e){return e.getDay()}function jX(e,t){return xe(sd.count(Rn(e)-1,e),t,2)}function _X(e,t){return xe(e.getFullYear()%100,t,2)}function PX(e,t){return e=uE(e),xe(e.getFullYear()%100,t,2)}function AX(e,t){return xe(e.getFullYear()%1e4,t,4)}function kX(e,t){var r=e.getDay();return e=r>=4||r===0?rs(e):rs.ceil(e),xe(e.getFullYear()%1e4,t,4)}function EX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xe(t/60|0,"0",2)+xe(t%60,"0",2)}function BS(e,t){return xe(e.getUTCDate(),t,2)}function NX(e,t){return xe(e.getUTCHours(),t,2)}function TX(e,t){return xe(e.getUTCHours()%12||12,t,2)}function CX(e,t){return xe(1+Dh.count(Dn(e),e),t,3)}function cE(e,t){return xe(e.getUTCMilliseconds(),t,3)}function $X(e,t){return cE(e,t)+"000"}function MX(e,t){return xe(e.getUTCMonth()+1,t,2)}function IX(e,t){return xe(e.getUTCMinutes(),t,2)}function RX(e,t){return xe(e.getUTCSeconds(),t,2)}function DX(e){var t=e.getUTCDay();return t===0?7:t}function LX(e,t){return xe(zh.count(Dn(e)-1,e),t,2)}function fE(e){var t=e.getUTCDay();return t>=4||t===0?ns(e):ns.ceil(e)}function zX(e,t){return e=fE(e),xe(ns.count(Dn(e),e)+(Dn(e).getUTCDay()===4),t,2)}function BX(e){return e.getUTCDay()}function FX(e,t){return xe(ld.count(Dn(e)-1,e),t,2)}function UX(e,t){return xe(e.getUTCFullYear()%100,t,2)}function WX(e,t){return e=fE(e),xe(e.getUTCFullYear()%100,t,2)}function HX(e,t){return xe(e.getUTCFullYear()%1e4,t,4)}function VX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ns(e):ns.ceil(e),xe(e.getUTCFullYear()%1e4,t,4)}function qX(){return"+0000"}function FS(){return"%"}function US(e){return+e}function WS(e){return Math.floor(+e/1e3)}var Za,dE,hE;KX({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"]});function KX(e){return Za=KG(e),dE=Za.format,Za.parse,hE=Za.utcFormat,Za.utcParse,Za}function GX(e){return new Date(e)}function XX(e){return e instanceof Date?+e:+new Date(+e)}function yb(e,t,r,n,i,a,o,s,l,u){var f=rb(),c=f.invert,d=f.domain,p=u(".%L"),m=u(":%S"),y=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),b=u("%b %d"),x=u("%B"),S=u("%Y");function w(O){return(l(O)<O?p:s(O)<O?m:o(O)<O?y:a(O)<O?v:n(O)<O?i(O)<O?g:b:r(O)<O?x:S)(O)}return f.invert=function(O){return new Date(c(O))},f.domain=function(O){return arguments.length?d(Array.from(O,XX)):d().map(GX)},f.ticks=function(O){var j=d();return e(j[0],j[j.length-1],O??10)},f.tickFormat=function(O,j){return j==null?w:u(j)},f.nice=function(O){var j=d();return(!O||typeof O.range!="function")&&(O=t(j[0],j[j.length-1],O??10)),O?d(Zk(j,O)):f},f.copy=function(){return tc(f,yb(e,t,r,n,i,a,o,s,l,u))},f}function QX(){return Er.apply(yb(VG,qG,Rn,pb,Lh,rc,db,cb,sa,dE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function YX(){return Er.apply(yb(WG,HG,Dn,mb,zh,Dh,hb,fb,sa,hE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bh(){var e=0,t=1,r,n,i,a,o=Rt,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:o(i===0?.5:(c=(a(c)-r)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(d){var p,m;return arguments.length?([p,m]=d,o=c(p,m),u):[o(0),o(1)]}}return u.range=f(Bs),u.rangeRound=f(tb),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),u}}function zi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function pE(){var e=Li(Bh()(Rt));return e.copy=function(){return zi(e,pE())},Fn.apply(e,arguments)}function mE(){var e=ab(Bh()).domain([1,10]);return e.copy=function(){return zi(e,mE()).base(e.base())},Fn.apply(e,arguments)}function yE(){var e=ob(Bh());return e.copy=function(){return zi(e,yE()).constant(e.constant())},Fn.apply(e,arguments)}function vb(){var e=sb(Bh());return e.copy=function(){return zi(e,vb()).exponent(e.exponent())},Fn.apply(e,arguments)}function JX(){return vb.apply(null,arguments).exponent(.5)}function vE(){var e=[],t=Rt;function r(n){if(n!=null&&!isNaN(n=+n))return t((Zu(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ji),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>LK(e,a/n))},r.copy=function(){return vE(t).domain(e)},Fn.apply(r,arguments)}function Fh(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Rt,f,c=!1,d;function p(y){return isNaN(y=+y)?d:(y=.5+((y=+f(y))-a)*(n*y<n*a?s:l),u(c?Math.max(0,Math.min(1,y)):y))}p.domain=function(y){return arguments.length?([e,t,r]=y,i=f(e=+e),a=f(t=+t),o=f(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(y){return arguments.length?(c=!!y,p):c},p.interpolator=function(y){return arguments.length?(u=y,p):u};function m(y){return function(v){var g,b,x;return arguments.length?([g,b,x]=v,u=cG(y,[g,b,x]),p):[u(0),u(.5),u(1)]}}return p.range=m(Bs),p.rangeRound=m(tb),p.unknown=function(y){return arguments.length?(d=y,p):d},function(y){return f=y,i=y(e),a=y(t),o=y(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function gE(){var e=Li(Fh()(Rt));return e.copy=function(){return zi(e,gE())},Fn.apply(e,arguments)}function bE(){var e=ab(Fh()).domain([.1,1,10]);return e.copy=function(){return zi(e,bE()).base(e.base())},Fn.apply(e,arguments)}function xE(){var e=ob(Fh());return e.copy=function(){return zi(e,xE()).constant(e.constant())},Fn.apply(e,arguments)}function gb(){var e=sb(Fh());return e.copy=function(){return zi(e,gb()).exponent(e.exponent())},Fn.apply(e,arguments)}function ZX(){return gb.apply(null,arguments).exponent(.5)}const HS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:su,scaleDiverging:gE,scaleDivergingLog:bE,scaleDivergingPow:gb,scaleDivergingSqrt:ZX,scaleDivergingSymlog:xE,scaleIdentity:Jk,scaleImplicit:mv,scaleLinear:ad,scaleLog:eE,scaleOrdinal:J0,scalePoint:kl,scalePow:lb,scaleQuantile:nE,scaleQuantize:iE,scaleRadial:rE,scaleSequential:pE,scaleSequentialLog:mE,scaleSequentialPow:vb,scaleSequentialQuantile:vE,scaleSequentialSqrt:JX,scaleSequentialSymlog:yE,scaleSqrt:$G,scaleSymlog:tE,scaleThreshold:aE,scaleTime:QX,scaleUtc:YX,tickFormat:Yk},Symbol.toStringTag,{value:"Module"}));var eQ=Ns;function tQ(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!eQ(o):r(o,s)))var s=o,l=a}return l}var Uh=tQ;function rQ(e,t){return e>t}var wE=rQ,nQ=Uh,iQ=wE,aQ=zs;function oQ(e){return e&&e.length?nQ(e,aQ,iQ):void 0}var sQ=oQ;const di=_e(sQ);function lQ(e,t){return e<t}var SE=lQ,uQ=Uh,cQ=SE,fQ=zs;function dQ(e){return e&&e.length?uQ(e,fQ,cQ):void 0}var hQ=dQ;const Wh=_e(hQ);var pQ=C0,mQ=cn,yQ=Tk,vQ=er;function gQ(e,t){var r=vQ(e)?pQ:yQ;return r(e,mQ(t))}var bQ=gQ,xQ=Ek,wQ=bQ;function SQ(e,t){return xQ(wQ(e,t),1)}var OQ=SQ;const jQ=_e(OQ);var _Q=K0;function PQ(e,t){return _Q(e,t)}var AQ=PQ;const is=_e(AQ);var Fs=1e9,kQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},xb,Fe=!0,Ar="[DecimalError] ",Oa=Ar+"Invalid argument: ",bb=Ar+"Exponent out of range: ",Us=Math.floor,Ji=Math.pow,EQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ar,ht=1e7,De=7,OE=9007199254740991,ud=Us(OE/De),J={};J.absoluteValue=J.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};J.comparedTo=J.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};J.decimalPlaces=J.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*De;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};J.dividedBy=J.div=function(e){return kn(this,new this.constructor(e))};J.dividedToIntegerBy=J.idiv=function(e){var t=this,r=t.constructor;return Ne(kn(t,new r(e),0,1),r.precision)};J.equals=J.eq=function(e){return!this.cmp(e)};J.exponent=function(){return et(this)};J.greaterThan=J.gt=function(e){return this.cmp(e)>0};J.greaterThanOrEqualTo=J.gte=function(e){return this.cmp(e)>=0};J.isInteger=J.isint=function(){return this.e>this.d.length-2};J.isNegative=J.isneg=function(){return this.s<0};J.isPositive=J.ispos=function(){return this.s>0};J.isZero=function(){return this.s===0};J.lessThan=J.lt=function(e){return this.cmp(e)<0};J.lessThanOrEqualTo=J.lte=function(e){return this.cmp(e)<1};J.logarithm=J.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ar))throw Error(Ar+"NaN");if(r.s<1)throw Error(Ar+(r.s?"NaN":"-Infinity"));return r.eq(ar)?new n(0):(Fe=!1,t=kn(du(r,a),du(e,a),a),Fe=!0,Ne(t,i))};J.minus=J.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?PE(t,e):jE(t,(e.s=-e.s,e))};J.modulo=J.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ar+"NaN");return r.s?(Fe=!1,t=kn(r,e,0,1).times(e),Fe=!0,r.minus(t)):Ne(new n(r),i)};J.naturalExponential=J.exp=function(){return _E(this)};J.naturalLogarithm=J.ln=function(){return du(this)};J.negated=J.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};J.plus=J.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?jE(t,e):PE(t,(e.s=-e.s,e))};J.precision=J.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oa+e);if(t=et(i)+1,n=i.d.length-1,r=n*De+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};J.squareRoot=J.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ar+"NaN")}for(e=et(s),Fe=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Yr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Us((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(kn(s,a,o+2)).times(.5),Yr(a.d).slice(0,o)===(t=Yr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Ne(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fe=!0,Ne(n,r)};J.times=J.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=d.length,u=p.length,l<u&&(a=d,d=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*d[i-n-1]+t,a[i--]=s%ht|0,t=s/ht|0;a[i]=(a[i]+t)%ht|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Fe?Ne(e,c.precision):e};J.toDecimalPlaces=J.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(an(e,0,Fs),t===void 0?t=n.rounding:an(t,0,8),Ne(r,e+et(r)+1,t))};J.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Da(n,!0):(an(e,0,Fs),t===void 0?t=i.rounding:an(t,0,8),n=Ne(new i(n),e+1,t),r=Da(n,!0,e+1)),r};J.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Da(i):(an(e,0,Fs),t===void 0?t=a.rounding:an(t,0,8),n=Ne(new a(i),e+et(i)+1,t),r=Da(n.abs(),!1,e+et(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};J.toInteger=J.toint=function(){var e=this,t=e.constructor;return Ne(new t(e),et(e)+1,t.rounding)};J.toNumber=function(){return+this};J.toPower=J.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(ar);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ar+"Infinity");return s}if(s.eq(ar))return s;if(n=l.precision,e.eq(ar))return Ne(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=OE){for(i=new l(ar),t=Math.ceil(n/De+4),Fe=!1;r%2&&(i=i.times(s),qS(i.d,t)),r=Us(r/2),r!==0;)s=s.times(s),qS(s.d,t);return Fe=!0,e.s<0?new l(ar).div(i):Ne(i,n)}}else if(a<0)throw Error(Ar+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fe=!1,i=e.times(du(s,n+u)),Fe=!0,i=_E(i),i.s=a,i};J.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=et(i),n=Da(i,r<=a.toExpNeg||r>=a.toExpPos)):(an(e,1,Fs),t===void 0?t=a.rounding:an(t,0,8),i=Ne(new a(i),e,t),r=et(i),n=Da(i,e<=r||r<=a.toExpNeg,e)),n};J.toSignificantDigits=J.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(an(e,1,Fs),t===void 0?t=n.rounding:an(t,0,8)),Ne(new n(r),e,t)};J.toString=J.valueOf=J.val=J.toJSON=J[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=et(e),r=e.constructor;return Da(e,t<=r.toExpNeg||t>=r.toExpPos)};function jE(e,t){var r,n,i,a,o,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Fe?Ne(t,c):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(c/De),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ht|0,l[a]%=ht;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Fe?Ne(t,c):t}function an(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Oa+e)}function Yr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=De-n.length,r&&(a+=Qn(r)),a+=n;o=e[t],n=o+"",r=De-n.length,r&&(a+=Qn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var kn=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ht|0,o=a/ht|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ht+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,f,c,d,p,m,y,v,g,b,x,S,w,O,j,_,P=n.constructor,N=n.s==i.s?1:-1,$=n.d,C=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Ar+"Division by zero");for(l=n.e-i.e,j=C.length,w=$.length,p=new P(N),m=p.d=[],u=0;C[u]==($[u]||0);)++u;if(C[u]>($[u]||0)&&--l,a==null?b=a=P.precision:o?b=a+(et(n)-et(i))+1:b=a,b<0)return new P(0);if(b=b/De+2|0,u=0,j==1)for(f=0,C=C[0],b++;(u<w||f)&&b--;u++)x=f*ht+($[u]||0),m[u]=x/C|0,f=x%C|0;else{for(f=ht/(C[0]+1)|0,f>1&&(C=e(C,f),$=e($,f),j=C.length,w=$.length),S=j,y=$.slice(0,j),v=y.length;v<j;)y[v++]=0;_=C.slice(),_.unshift(0),O=C[0],C[1]>=ht/2&&++O;do f=0,s=t(C,y,j,v),s<0?(g=y[0],j!=v&&(g=g*ht+(y[1]||0)),f=g/O|0,f>1?(f>=ht&&(f=ht-1),c=e(C,f),d=c.length,v=y.length,s=t(c,y,d,v),s==1&&(f--,r(c,j<d?_:C,d))):(f==0&&(s=f=1),c=C.slice()),d=c.length,d<v&&c.unshift(0),r(y,c,v),s==-1&&(v=y.length,s=t(C,y,j,v),s<1&&(f++,r(y,j<v?_:C,v))),v=y.length):s===0&&(f++,y=[0]),m[u++]=f,s&&y[0]?y[v++]=$[S]||0:(y=[$[S]],v=1);while((S++<w||y[0]!==void 0)&&b--)}return m[0]||m.shift(),p.e=l,Ne(p,o?a+et(p)+1:a)}}();function _E(e,t){var r,n,i,a,o,s,l=0,u=0,f=e.constructor,c=f.precision;if(et(e)>16)throw Error(bb+et(e));if(!e.s)return new f(ar);for(Fe=!1,s=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Ji(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(ar),f.precision=s;;){if(i=Ne(i.times(e),s),r=r.times(++l),o=a.plus(kn(i,r,s)),Yr(o.d).slice(0,s)===Yr(a.d).slice(0,s)){for(;u--;)a=Ne(a.times(a),s);return f.precision=c,t==null?(Fe=!0,Ne(a,c)):a}a=o}}function et(e){for(var t=e.e*De,r=e.d[0];r>=10;r/=10)t++;return t}function am(e,t,r){if(t>e.LN10.sd())throw Fe=!0,r&&(e.precision=r),Error(Ar+"LN10 precision limit exceeded");return Ne(new e(e.LN10),t)}function Qn(e){for(var t="";e--;)t+="0";return t}function du(e,t){var r,n,i,a,o,s,l,u,f,c=1,d=10,p=e,m=p.d,y=p.constructor,v=y.precision;if(p.s<1)throw Error(Ar+(p.s?"NaN":"-Infinity"));if(p.eq(ar))return new y(0);if(t==null?(Fe=!1,u=v):u=t,p.eq(10))return t==null&&(Fe=!0),am(y,u);if(u+=d,y.precision=u,r=Yr(m),n=r.charAt(0),a=et(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Yr(p.d),n=r.charAt(0),c++;a=et(p),n>1?(p=new y("0."+r),a++):p=new y(n+"."+r.slice(1))}else return l=am(y,u+2,v).times(a+""),p=du(new y(n+"."+r.slice(1)),u-d).plus(l),y.precision=v,t==null?(Fe=!0,Ne(p,v)):p;for(s=o=p=kn(p.minus(ar),p.plus(ar),u),f=Ne(p.times(p),u),i=3;;){if(o=Ne(o.times(f),u),l=s.plus(kn(o,new y(i),u)),Yr(l.d).slice(0,u)===Yr(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(am(y,u+2,v).times(a+""))),s=kn(s,new y(c),u),y.precision=v,t==null?(Fe=!0,Ne(s,v)):s;s=l,i+=2}}function VS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Us(r/De),e.d=[],n=(r+1)%De,r<0&&(n+=De),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=De;n<i;)e.d.push(+t.slice(n,n+=De));t=t.slice(n),n=De-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Fe&&(e.e>ud||e.e<-ud))throw Error(bb+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ne(e,t,r){var n,i,a,o,s,l,u,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=De,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/De),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=De,i=n-De+o}if(r!==void 0&&(a=Ji(10,o-i-1),s=u/a%10|0,l=t<0||c[f+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Ji(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=et(e),c.length=1,t=t-a-1,c[0]=Ji(10,(De-t%De)%De),e.e=Us(-t/De)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=Ji(10,De-n),c[f]=i>0?(u/Ji(10,o-i)%Ji(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==ht&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ht)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Fe&&(e.e>ud||e.e<-ud))throw Error(bb+et(e));return e}function PE(e,t){var r,n,i,a,o,s,l,u,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fe?Ne(t,p):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(f=o<0,f?(r=l,o=-o,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(p/De),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}o=0}for(f&&(r=l,l=c,c=r,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>o;){if(l[--i]<c[i]){for(a=i;a&&l[--a]===0;)l[a]=ht-1;--l[a],l[i]+=ht}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Fe?Ne(t,p):t):new d(0)}function Da(e,t,r){var n,i=et(e),a=Yr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Qn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Qn(-i-1)+a,r&&(n=r-o)>0&&(a+=Qn(n))):i>=o?(a+=Qn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Qn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Qn(n))),e.s<0?"-"+a:a}function qS(e,t){if(e.length>t)return e.length=t,!0}function AE(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Oa+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return VS(o,a.toString())}else if(typeof a!="string")throw Error(Oa+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,EQ.test(a))VS(o,a);else throw Error(Oa+a)}if(i.prototype=J,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=AE,i.config=i.set=NQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function NQ(e){if(!e||typeof e!="object")throw Error(Ar+"Object expected");var t,r,n,i=["precision",1,Fs,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Us(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Oa+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Oa+r+": "+n);return this}var xb=AE(kQ);ar=new xb(1);const Ae=xb;function TQ(e){return IQ(e)||MQ(e)||$Q(e)||CQ()}function CQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $Q(e,t){if(e){if(typeof e=="string")return bv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bv(e,t)}}function MQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function IQ(e){if(Array.isArray(e))return bv(e)}function bv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var RQ=function(t){return t},kE={},EE=function(t){return t===kE},KS=function(t){return function r(){return arguments.length===0||arguments.length===1&&EE(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},DQ=function e(t,r){return t===1?r:KS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==kE}).length;return o>=t?r.apply(void 0,i):e(t-o,KS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(c){return EE(c)?l.shift():c});return r.apply(void 0,TQ(f).concat(l))}))})},Hh=function(t){return DQ(t.length,t)},xv=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},LQ=Hh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),zQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return RQ;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},wv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},NE=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function BQ(e){var t;return e===0?t=1:t=Math.floor(new Ae(e).abs().log(10).toNumber())+1,t}function FQ(e,t,r){for(var n=new Ae(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var UQ=Hh(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),WQ=Hh(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),HQ=Hh(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Vh={rangeStep:FQ,getDigitCount:BQ,interpolateNumber:UQ,uninterpolateNumber:WQ,uninterpolateTruncation:HQ};function Sv(e){return KQ(e)||qQ(e)||TE(e)||VQ()}function VQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function KQ(e){if(Array.isArray(e))return Ov(e)}function hu(e,t){return QQ(e)||XQ(e,t)||TE(e,t)||GQ()}function GQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TE(e,t){if(e){if(typeof e=="string")return Ov(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ov(e,t)}}function Ov(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function QQ(e){if(Array.isArray(e))return e}function CE(e){var t=hu(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function $E(e,t,r){if(e.lte(0))return new Ae(0);var n=Vh.getDigitCount(e.toNumber()),i=new Ae(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ae(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ae(Math.ceil(l))}function YQ(e,t,r){var n=1,i=new Ae(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ae(10).pow(Vh.getDigitCount(e)-1),i=new Ae(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ae(Math.floor(e)))}else e===0?i=new Ae(Math.floor((t-1)/2)):r||(i=new Ae(Math.floor(e)));var o=Math.floor((t-1)/2),s=zQ(LQ(function(l){return i.add(new Ae(l-o).mul(n)).toNumber()}),xv);return s(0,t)}function ME(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Ae(0),tickMin:new Ae(0),tickMax:new Ae(0)};var a=$E(new Ae(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ae(0):(o=new Ae(e).add(t).div(2),o=o.sub(new Ae(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ae(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?ME(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Ae(s).mul(a)),tickMax:o.add(new Ae(l).mul(a))})}function JQ(e){var t=hu(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=CE([r,n]),l=hu(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Sv(xv(0,i-1).map(function(){return 1/0}))):[].concat(Sv(xv(0,i-1).map(function(){return-1/0})),[f]);return r>n?wv(c):c}if(u===f)return YQ(u,i,a);var d=ME(u,f,o,a),p=d.step,m=d.tickMin,y=d.tickMax,v=Vh.rangeStep(m,y.add(new Ae(.1).mul(p)),p);return r>n?wv(v):v}function ZQ(e,t){var r=hu(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=CE([n,i]),s=hu(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=$E(new Ae(u).sub(l).div(f-1),a,0),d=[].concat(Sv(Vh.rangeStep(new Ae(l),new Ae(u).sub(new Ae(.99).mul(c)),c)),[u]);return n>i?wv(d):d}var eY=NE(JQ),tY=NE(ZQ),rY="Invariant failed";function La(e,t){throw new Error(rY)}var nY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function cd(){return cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cd.apply(this,arguments)}function iY(e,t){return lY(e)||sY(e,t)||oY(e,t)||aY()}function aY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oY(e,t){if(e){if(typeof e=="string")return GS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GS(e,t)}}function GS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function lY(e){if(Array.isArray(e))return e}function uY(e,t){if(e==null)return{};var r=cY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DE(n.key),n)}}function hY(e,t,r){return t&&dY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pY(e,t,r){return t=fd(t),mY(e,IE()?Reflect.construct(t,r||[],fd(e).constructor):t.apply(e,r))}function mY(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yY(e)}function yY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IE=function(){return!!e})()}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fd(e)}function vY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jv(e,t)}function jv(e,t){return jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jv(e,t)}function RE(e,t,r){return t=DE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DE(e){var t=gY(e,"string");return as(t)=="symbol"?t:t+""}function gY(e,t){if(as(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(as(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qh=function(e){function t(){return fY(this,t),pY(this,t,arguments)}return vY(t,e),hY(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=uY(n,nY),p=ne(d,!1);this.props.direction==="x"&&f.type!=="number"&&La();var m=l.map(function(y){var v=u(y,s),g=v.x,b=v.y,x=v.value,S=v.errorVal;if(!S)return null;var w=[],O,j;if(Array.isArray(S)){var _=iY(S,2);O=_[0],j=_[1]}else O=j=S;if(a==="vertical"){var P=f.scale,N=b+i,$=N+o,C=N-o,L=P(x-O),R=P(x+j);w.push({x1:R,y1:$,x2:R,y2:C}),w.push({x1:L,y1:N,x2:R,y2:N}),w.push({x1:L,y1:$,x2:L,y2:C})}else if(a==="horizontal"){var I=c.scale,D=g+i,F=D-o,T=D+o,B=I(x-O),U=I(x+j);w.push({x1:F,y1:U,x2:T,y2:U}),w.push({x1:D,y1:B,x2:D,y2:U}),w.push({x1:F,y1:B,x2:T,y2:B})}return A.createElement(ye,cd({className:"recharts-errorBar",key:"bar-".concat(w.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},p),w.map(function(K){return A.createElement("line",cd({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return A.createElement(ye,{className:"recharts-errorBars"},m)}}])}(A.Component);RE(qh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});RE(qh,"displayName","ErrorBar");function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function XS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(r),!0).forEach(function(n){bY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bY(e,t,r){return t=xY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xY(e){var t=wY(e,"string");return pu(t)=="symbol"?t:t+""}function wY(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LE=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ir(r,Po);if(!o)return null;var s=Po.defaultProps,l=s!==void 0?Vi(Vi({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(f,c){var d=c.item,p=c.props,m=p.sectors||p.data||[];return f.concat(m.map(function(y){return{type:o.props.iconType||d.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?Vi(Vi({},d),c.props):{},m=p.dataKey,y=p.name,v=p.legendType,g=p.hide;return{inactive:g,dataKey:m,type:l.iconType||v||"square",color:wb(c),value:y||m,payload:p}}),Vi(Vi(Vi({},l),Po.getWithHeight(o,i)),{},{payload:u,item:o})};function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function QS(e){return _Y(e)||jY(e)||OY(e)||SY()}function SY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OY(e,t){if(e){if(typeof e=="string")return _v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _v(e,t)}}function jY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _Y(e){if(Array.isArray(e))return _v(e)}function _v(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(r),!0).forEach(function(n){ko(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ko(e,t,r){return t=PY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PY(e){var t=AY(e,"string");return mu(t)=="symbol"?t:t+""}function AY(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lt(e,t,r){return ce(e)||ce(t)?r:ct(t)?lr(e,t,r):oe(t)?t(e):r}function El(e,t,r,n){var i=jQ(e,function(s){return lt(s,t)});if(r==="number"){var a=i.filter(function(s){return V(s)||parseFloat(s)});return a.length?[Wh(a),di(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!ce(s)}):i;return o.map(function(s){return ct(s)||s instanceof Date?s:""})}var kY=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(Mt(c-f)!==Mt(d-c)){var m=[];if(Mt(d-c)===Mt(l[1]-l[0])){p=d;var y=c+l[1]-l[0];m[0]=Math.min(y,(y+f)/2),m[1]=Math.max(y,(y+f)/2)}else{p=f;var v=d+l[1]-l[0];m[0]=Math.min(c,(v+c)/2),m[1]=Math.max(c,(v+c)/2)}var g=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>g[0]&&t<=g[1]||t>=m[0]&&t<=m[1]){o=i[u].index;break}}else{var b=Math.min(f,d),x=Math.max(f,d);if(t>(b+c)/2&&t<=(x+c)/2){o=i[u].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},wb=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},EY=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var f=a[s[l]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var m=f[c[d]],y=m.items,v=m.cateAxisId,g=y.filter(function(j){return An(j.type).indexOf("Bar")>=0});if(g&&g.length){var b=g[0].type.defaultProps,x=b!==void 0?Ge(Ge({},b),g[0].props):g[0].props,S=x.barSize,w=x[v];o[w]||(o[w]=[]);var O=ce(S)?r:S;o[w].push({item:g[0],stackList:g.slice(1),barSize:ce(O)?void 0:It(O,n,0)})}}return o},NY=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=It(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/l,m=o.reduce(function(S,w){return S+w.barSize||0},0);m+=(l-1)*u,m>=i&&(m-=(l-1)*u,u=0),m>=i&&p>0&&(d=!0,p*=.9,m=l*p);var y=(i-m)/2>>0,v={offset:y-u,size:0};f=o.reduce(function(S,w){var O={item:w.item,position:{offset:v.offset+v.size+u,size:d?p:w.barSize}},j=[].concat(QS(S),[O]);return v=j[j.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){j.push({item:_,position:v})}),j},c)}else{var g=It(n,i,0,!0);i-2*g-(l-1)*u<=0&&(u=0);var b=(i-2*g-(l-1)*u)/l;b>1&&(b>>=0);var x=s===+s?Math.min(b,s):b;f=o.reduce(function(S,w,O){var j=[].concat(QS(S),[{item:w.item,position:{offset:g+(b+u)*O+(b-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){j.push({item:_,position:j[j.length-1].position})}),j},c)}return f},TY=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=LE({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,p=u.align,m=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&p!=="center"&&V(t[p]))return Ge(Ge({},t),{},ko({},p,t[p]+(c||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&m!=="middle"&&V(t[m]))return Ge(Ge({},t),{},ko({},m,t[m]+(d||0)))}return t},CY=function(t,r,n){return ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},zE=function(t,r,n,i,a){var o=r.props.children,s=jr(o,qh).filter(function(u){return CY(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=lt(f,n);if(ce(c))return u;var d=Array.isArray(c)?[Wh(c),di(c)]:[c,c],p=l.reduce(function(m,y){var v=lt(f,y,0),g=d[0]-Math.abs(Array.isArray(v)?v[0]:v),b=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(g,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},$Y=function(t,r,n,i,a){var o=r.map(function(s){return zE(t,s,n,a,i)}).filter(function(s){return!ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},BE=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&zE(t,l,u,i)||El(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,c=u.length;f<c;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},FE=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},UE=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},_n=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Mt(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+u,value:c,offset:u}});return f.filter(function(c){return!Is(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+u,value:c,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,d){return{coordinate:i(c)+u,value:a?a[c]:c,index:d,offset:u}})},om=new WeakMap,Ic=function(t,r){if(typeof r!="function")return t;om.has(t)||om.set(t,new WeakMap);var n=om.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},WE=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:su(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:ad(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:kl(),realScaleType:"point"}:a==="category"?{scale:su(),realScaleType:"band"}:{scale:ad(),realScaleType:"linear"};if(Ma(i)){var l="scale".concat(kh(i));return{scale:(HS[l]||kl)(),realScaleType:HS[l]?l:"point"}}return oe(i)?{scale:i}:{scale:kl(),realScaleType:"point"}},JS=1e-4,HE=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-JS,o=Math.max(i[0],i[1])+JS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},MY=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},IY=function(t,r){if(!r||r.length!==2||!V(r[0])||!V(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!V(t[0])||t[0]<n)&&(a[0]=n),(!V(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},RY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Is(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},DY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Is(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},LY={sign:RY,expand:nF,none:Qo,silhouette:iF,wiggle:aF,positive:DY},zY=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=LY[n],o=rF().keys(i).value(function(s,l){return+lt(s,l,0)}).order(Qy).offset(a);return o(t)},BY=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(c,d){var p,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ge(Ge({},d.type.defaultProps),d.props):d.props,y=m.stackId,v=m.hide;if(v)return c;var g=m[n],b=c[g]||{hasStack:!1,stackGroups:{}};if(ct(y)){var x=b.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(d),b.hasStack=!0,b.stackGroups[y]=x}else b.stackGroups[Rs("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Ge(Ge({},c),{},ko({},g,b))},l),f={};return Object.keys(u).reduce(function(c,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,v){var g=p.stackGroups[v];return Ge(Ge({},y),{},ko({},v,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:zY(t,g.items,a)}))},m)}return Ge(Ge({},c),{},ko({},d,p))},f)},VE=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=eY(u,a,s);return t.domain([Wh(f),di(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=tY(c,a,s);return{niceTicks:d}}return null};function ZS(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ce(i[t.dataKey])){var s=Df(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=lt(i,ce(o)?t.dataKey:o);return ce(l)?null:t.scale(l)}var eO=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=lt(o,r.dataKey,r.domain[s]);return ce(l)?null:r.scale(l)-a/2+i},FY=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},UY=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(ct(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},WY=function(t){return t.reduce(function(r,n){return[Wh(n.concat([r[0]]).filter(V)),di(n.concat([r[1]]).filter(V))]},[1/0,-1/0])},qE=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var c=WY(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},tO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,rO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Pv=function(t,r,n){if(oe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(V(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(tO.test(t[0])){var a=+tO.exec(t[0])[1];i[0]=r[0]-a}else oe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(V(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(rO.test(t[1])){var o=+rO.exec(t[1])[1];i[1]=r[1]+o}else oe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},dd=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=X0(r,function(c){return c.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],f=a[s-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},nO=function(t,r,n){return!t||!t.length||is(t,lr(n,"type.defaultProps.domain"))?r:t},KE=function(t,r){var n=t.type.defaultProps?Ge(Ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,f=n.hide;return Ge(Ge({},ne(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:wb(t),value:lt(r,i),type:l,payload:r,chartType:u,hide:f})};function yu(e){"@babel/helpers - typeof";return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yu(e)}function iO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iO(Object(r),!0).forEach(function(n){GE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GE(e,t,r){return t=HY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HY(e){var t=VY(e,"string");return yu(t)=="symbol"?t:t+""}function VY(e,t){if(yu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qY(e,t){return QY(e)||XY(e,t)||GY(e,t)||KY()}function KY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GY(e,t){if(e){if(typeof e=="string")return aO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aO(e,t)}}function aO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function QY(e){if(Array.isArray(e))return e}var hd=Math.PI/180,YY=function(t){return t*180/Math.PI},Me=function(t,r,n,i){return{x:t+Math.cos(-hd*i)*n,y:r+Math.sin(-hd*i)*n}},XE=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},JY=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=It(t.cx,o,o/2),c=It(t.cy,s,s/2),d=XE(o,s,n),p=It(t.innerRadius,d,0),m=It(t.outerRadius,d,d*.8),y=Object.keys(r);return y.reduce(function(v,g){var b=r[g],x=b.domain,S=b.reversed,w;if(ce(b.range))i==="angleAxis"?w=[l,u]:i==="radiusAxis"&&(w=[p,m]),S&&(w=[w[1],w[0]]);else{w=b.range;var O=w,j=qY(O,2);l=j[0],u=j[1]}var _=WE(b,a),P=_.realScaleType,N=_.scale;N.domain(x).range(w),HE(N);var $=VE(N,mn(mn({},b),{},{realScaleType:P})),C=mn(mn(mn({},b),$),{},{range:w,radius:m,realScaleType:P,scale:N,cx:f,cy:c,innerRadius:p,outerRadius:m,startAngle:l,endAngle:u});return mn(mn({},v),{},GE({},g,C))},{})},ZY=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},eJ=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=ZY({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:YY(u),angleInRadian:u}},tJ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},rJ=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},oO=function(t,r){var n=t.x,i=t.y,a=eJ({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var f=tJ(r),c=f.startAngle,d=f.endAngle,p=s,m;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;m=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=c}return m?mn(mn({},r),{},{radius:o,angle:rJ(p,r)}):null},QE=function(t){return!E.isValidElement(t)&&!oe(t)&&typeof t!="boolean"?t.className:""};function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}var nJ=["offset"];function iJ(e){return lJ(e)||sJ(e)||oJ(e)||aJ()}function aJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oJ(e,t){if(e){if(typeof e=="string")return Av(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Av(e,t)}}function sJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lJ(e){if(Array.isArray(e))return Av(e)}function Av(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uJ(e,t){if(e==null)return{};var r=cJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(r),!0).forEach(function(n){fJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fJ(e,t,r){return t=dJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dJ(e){var t=hJ(e,"string");return vu(t)=="symbol"?t:t+""}function hJ(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gu(){return gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gu.apply(this,arguments)}var pJ=function(t){var r=t.value,n=t.formatter,i=ce(t.children)?r:t.children;return oe(n)?n(i):i},mJ=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),360);return n*i},yJ=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,f=l.cy,c=l.innerRadius,d=l.outerRadius,p=l.startAngle,m=l.endAngle,y=l.clockWise,v=(c+d)/2,g=mJ(p,m),b=g>=0?1:-1,x,S;i==="insideStart"?(x=p+b*o,S=y):i==="insideEnd"?(x=m-b*o,S=!y):i==="end"&&(x=m+b*o,S=y),S=g<=0?S:!S;var w=Me(u,f,v,x),O=Me(u,f,v,x+(S?1:-1)*359),j="M".concat(w.x,",").concat(w.y,`
A`).concat(v,",").concat(v,",0,1,").concat(S?0:1,`,
`).concat(O.x,",").concat(O.y),_=ce(t.id)?Rs("recharts-radial-line-"):t.id;return A.createElement("text",gu({},n,{dominantBaseline:"central",className:fe("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:_,d:j})),A.createElement("textPath",{xlinkHref:"#".concat(_)},r))},vJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=Me(o,s,u+n,d),m=p.x,y=p.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+u)/2,g=Me(o,s,v,d),b=g.x,x=g.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},gJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",m=c>0?"start":"end",y=u>=0?1:-1,v=y*i,g=y>0?"end":"start",b=y>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:p};return at(at({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var S={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:m};return at(at({},S),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var w={x:s-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return at(at({},w),n?{width:Math.max(w.x-n.x,0),height:f}:{})}if(a==="right"){var O={x:s+u+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"};return at(at({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:f}:{})}var j=n?{width:u,height:f}:{};return a==="insideLeft"?at({x:s+v,y:l+f/2,textAnchor:b,verticalAnchor:"middle"},j):a==="insideRight"?at({x:s+u-v,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},j):a==="insideTop"?at({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:m},j):a==="insideBottom"?at({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:p},j):a==="insideTopLeft"?at({x:s+v,y:l+d,textAnchor:b,verticalAnchor:m},j):a==="insideTopRight"?at({x:s+u-v,y:l+d,textAnchor:g,verticalAnchor:m},j):a==="insideBottomLeft"?at({x:s+v,y:l+f-d,textAnchor:b,verticalAnchor:p},j):a==="insideBottomRight"?at({x:s+u-v,y:l+f-d,textAnchor:g,verticalAnchor:p},j):Ts(a)&&(V(a.x)||aa(a.x))&&(V(a.y)||aa(a.y))?at({x:s+It(a.x,u),y:l+It(a.y,f),textAnchor:"end",verticalAnchor:"end"},j):at({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},j)},bJ=function(t){return"cx"in t&&V(t.cx)};function mt(e){var t=e.offset,r=t===void 0?5:t,n=uJ(e,nJ),i=at({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||ce(s)&&ce(l)&&!E.isValidElement(u)&&!oe(u))return null;if(E.isValidElement(u))return E.cloneElement(u,i);var p;if(oe(u)){if(p=E.createElement(u,i),E.isValidElement(p))return p}else p=pJ(i);var m=bJ(a),y=ne(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return yJ(i,p,y);var v=m?vJ(i):gJ(i);return A.createElement(Ra,gu({className:fe("recharts-label",c)},y,v,{breakAll:d}),p)}mt.displayName="Label";var YE=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,m=t.left,y=t.width,v=t.height,g=t.clockWise,b=t.labelViewBox;if(b)return b;if(V(y)&&V(v)){if(V(c)&&V(d))return{x:c,y:d,width:y,height:v};if(V(p)&&V(m))return{x:p,y:m,width:y,height:v}}return V(c)&&V(d)?{x:c,y:d,width:0,height:0}:V(r)&&V(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},xJ=function(t,r){return t?t===!0?A.createElement(mt,{key:"label-implicit",viewBox:r}):ct(t)?A.createElement(mt,{key:"label-implicit",viewBox:r,value:t}):E.isValidElement(t)?t.type===mt?E.cloneElement(t,{key:"label-implicit",viewBox:r}):A.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):oe(t)?A.createElement(mt,{key:"label-implicit",content:t,viewBox:r}):Ts(t)?A.createElement(mt,gu({viewBox:r},t,{key:"label-implicit"})):null:null},wJ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=YE(t),o=jr(i,mt).map(function(l,u){return E.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=xJ(t.label,r||a);return[s].concat(iJ(o))};mt.parseViewBox=YE;mt.renderCallByParent=wJ;function SJ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var OJ=SJ;const jJ=_e(OJ);function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}var _J=["valueAccessor"],PJ=["data","dataKey","clockWise","id","textBreakAll"];function AJ(e){return TJ(e)||NJ(e)||EJ(e)||kJ()}function kJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EJ(e,t){if(e){if(typeof e=="string")return kv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kv(e,t)}}function NJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TJ(e){if(Array.isArray(e))return kv(e)}function kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pd.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){CJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function CJ(e,t,r){return t=$J(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $J(e){var t=MJ(e,"string");return bu(t)=="symbol"?t:t+""}function MJ(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cO(e,t){if(e==null)return{};var r=IJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var RJ=function(t){return Array.isArray(t.value)?jJ(t.value):t.value};function En(e){var t=e.valueAccessor,r=t===void 0?RJ:t,n=cO(e,_J),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=cO(n,PJ);return!i||!i.length?null:A.createElement(ye,{className:"recharts-label-list"},i.map(function(f,c){var d=ce(a)?r(f,c):lt(f&&f.payload,a),p=ce(s)?{}:{id:"".concat(s,"-").concat(c)};return A.createElement(mt,pd({},ne(f,!0),u,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:mt.parseViewBox(ce(o)?f:uO(uO({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}En.displayName="LabelList";function DJ(e,t){return e?e===!0?A.createElement(En,{key:"labelList-implicit",data:t}):A.isValidElement(e)||oe(e)?A.createElement(En,{key:"labelList-implicit",data:t,content:e}):Ts(e)?A.createElement(En,pd({data:t},e,{key:"labelList-implicit"})):null:null}function LJ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=jr(n,En).map(function(o,s){return E.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=DJ(e.label,t);return[a].concat(AJ(i))}En.renderCallByParent=LJ;function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ev.apply(this,arguments)}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){zJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zJ(e,t,r){return t=BJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BJ(e){var t=FJ(e,"string");return xu(t)=="symbol"?t:t+""}function FJ(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var UJ=function(t,r){var n=Mt(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Rc=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,c=Math.asin(l/f)/hd,d=u?a:a+o*c,p=Me(r,n,f,d),m=Me(r,n,i,d),y=u?a-o*c:a,v=Me(r,n,f*Math.cos(c*hd),y);return{center:p,circleTangency:m,lineTangency:v,theta:c}},JE=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=UJ(o,s),u=o+l,f=Me(r,n,a,o),c=Me(r,n,a,u),d="M ".concat(f.x,",").concat(f.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
`).concat(c.x,",").concat(c.y,`
`);if(i>0){var p=Me(r,n,i,o),m=Me(r,n,i,u);d+="L ".concat(m.x,",").concat(m.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},WJ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Mt(f-u),d=Rc({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),p=d.circleTangency,m=d.lineTangency,y=d.theta,v=Rc({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),g=v.circleTangency,b=v.lineTangency,x=v.theta,S=l?Math.abs(u-f):Math.abs(u-f)-y-x;if(S<0)return s?"M ".concat(m.x,",").concat(m.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):JE({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var w="M ".concat(m.x,",").concat(m.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(g.x,",").concat(g.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(b.x,",").concat(b.y,`
`);if(i>0){var O=Rc({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),j=O.circleTangency,_=O.lineTangency,P=O.theta,N=Rc({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),$=N.circleTangency,C=N.lineTangency,L=N.theta,R=l?Math.abs(u-f):Math.abs(u-f)-P-L;if(R<0&&o===0)return"".concat(w,"L").concat(r,",").concat(n,"Z");w+="L".concat(C.x,",").concat(C.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat($.x,",").concat($.y,`
A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(c>0),",").concat(j.x,",").concat(j.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(r,",").concat(n,"Z");return w},HJ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ZE=function(t){var r=dO(dO({},HJ),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o<a||f===c)return null;var p=fe("recharts-sector",d),m=o-a,y=It(s,m,0,!0),v;return y>0&&Math.abs(f-c)<360?v=WJ({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):v=JE({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),A.createElement("path",Ev({},ne(r,!0),{className:p,d:v,role:"img"}))};function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nv.apply(this,arguments)}function hO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){VJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VJ(e,t,r){return t=qJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qJ(e){var t=KJ(e,"string");return wu(t)=="symbol"?t:t+""}function KJ(e,t){if(wu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mO={curveBasisClosed:VB,curveBasisOpen:qB,curveBasis:HB,curveBumpX:NB,curveBumpY:TB,curveLinearClosed:KB,curveLinear:Nh,curveMonotoneX:GB,curveMonotoneY:XB,curveNatural:QB,curveStep:YB,curveStepAfter:ZB,curveStepBefore:JB},Dc=function(t){return t.x===+t.x&&t.y===+t.y},ol=function(t){return t.x},sl=function(t){return t.y},GJ=function(t,r){if(oe(t))return t;var n="curve".concat(kh(t));return(n==="curveMonotone"||n==="curveBump")&&r?mO["".concat(n).concat(r==="vertical"?"Y":"X")]:mO[n]||Nh},XJ=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=GJ(n,s),c=u?a.filter(function(y){return Dc(y)}):a,d;if(Array.isArray(o)){var p=u?o.filter(function(y){return Dc(y)}):o,m=c.map(function(y,v){return pO(pO({},y),{},{base:p[v]})});return s==="vertical"?d=Ac().y(sl).x1(ol).x0(function(y){return y.base.x}):d=Ac().x(ol).y1(sl).y0(function(y){return y.base.y}),d.defined(Dc).curve(f),d(m)}return s==="vertical"&&V(o)?d=Ac().y(sl).x1(ol).x0(o):V(o)?d=Ac().x(ol).y1(sl).y0(o):d=G2().x(ol).y(sl),d.defined(Dc).curve(f),d(c)},Eo=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?XJ(t):i;return E.createElement("path",Nv({},ne(t,!1),Lf(t),{className:fe("recharts-curve",r),d:o,ref:a}))},eN={exports:{}},QJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YJ=QJ,JJ=YJ;function tN(){}function rN(){}rN.resetWarningCache=tN;var ZJ=function(){function e(n,i,a,o,s,l){if(l!==JJ){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rN,resetWarningCache:tN};return r.PropTypes=r,r};eN.exports=ZJ();var eZ=eN.exports;const Se=_e(eZ),{getOwnPropertyNames:tZ,getOwnPropertySymbols:rZ}=Object,{hasOwnProperty:nZ}=Object.prototype;function sm(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Lc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function iZ(e){return e!=null?e[Symbol.toStringTag]:void 0}function yO(e){return tZ(e).concat(rZ(e))}const aZ=Object.hasOwn||((e,t)=>nZ.call(e,t));function Ga(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const oZ="__v",sZ="__o",lZ="_owner",{getOwnPropertyDescriptor:vO,keys:gO}=Object;function uZ(e,t){return e.byteLength===t.byteLength&&md(new Uint8Array(e),new Uint8Array(t))}function cZ(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function fZ(e,t){return e.byteLength===t.byteLength&&md(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function dZ(e,t){return Ga(e.getTime(),t.getTime())}function hZ(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function pZ(e,t){return e===t}function bO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const d=o.value,p=s.value;if(r.equals(d[0],p[0],l,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const mZ=Ga;function yZ(e,t,r){const n=gO(e);let i=n.length;if(gO(t).length!==i)return!1;for(;i-- >0;)if(!nN(e,t,r,n[i]))return!1;return!0}function ll(e,t,r){const n=yO(e);let i=n.length;if(yO(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!nN(e,t,r,a)||(o=vO(e,a),s=vO(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function vZ(e,t){return Ga(e.valueOf(),t.valueOf())}function gZ(e,t){return e.source===t.source&&e.flags===t.flags}function xO(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function md(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function bZ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function nN(e,t,r,n){return(n===lZ||n===sZ||n===oZ)&&(e.$$typeof||t.$$typeof)?!0:aZ(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const xZ="[object ArrayBuffer]",wZ="[object Arguments]",SZ="[object Boolean]",OZ="[object DataView]",jZ="[object Date]",_Z="[object Error]",PZ="[object Map]",AZ="[object Number]",kZ="[object Object]",EZ="[object RegExp]",NZ="[object Set]",TZ="[object String]",CZ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},$Z="[object URL]",MZ=Object.prototype.toString;function IZ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:m}){return function(v,g,b){if(v===g)return!0;if(v==null||g==null)return!1;const x=typeof v;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?s(v,g,b):x==="function"?a(v,g,b):!1;const S=v.constructor;if(S!==g.constructor)return!1;if(S===Object)return l(v,g,b);if(Array.isArray(v))return t(v,g,b);if(S===Date)return n(v,g,b);if(S===RegExp)return f(v,g,b);if(S===Map)return o(v,g,b);if(S===Set)return c(v,g,b);const w=MZ.call(v);if(w===jZ)return n(v,g,b);if(w===EZ)return f(v,g,b);if(w===PZ)return o(v,g,b);if(w===NZ)return c(v,g,b);if(w===kZ)return typeof v.then!="function"&&typeof g.then!="function"&&l(v,g,b);if(w===$Z)return p(v,g,b);if(w===_Z)return i(v,g,b);if(w===wZ)return l(v,g,b);if(CZ[w])return d(v,g,b);if(w===xZ)return e(v,g,b);if(w===OZ)return r(v,g,b);if(w===SZ||w===AZ||w===TZ)return u(v,g,b);if(m){let O=m[w];if(!O){const j=iZ(v);j&&(O=m[j])}if(O)return O(v,g,b)}return!1}}function RZ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:uZ,areArraysEqual:r?ll:cZ,areDataViewsEqual:fZ,areDatesEqual:dZ,areErrorsEqual:hZ,areFunctionsEqual:pZ,areMapsEqual:r?sm(bO,ll):bO,areNumbersEqual:mZ,areObjectsEqual:r?ll:yZ,arePrimitiveWrappersEqual:vZ,areRegExpsEqual:gZ,areSetsEqual:r?sm(xO,ll):xO,areTypedArraysEqual:r?sm(md,ll):md,areUrlsEqual:bZ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=Lc(n.areArraysEqual),a=Lc(n.areMapsEqual),o=Lc(n.areObjectsEqual),s=Lc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function DZ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function LZ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const zZ=Bi();Bi({strict:!0});Bi({circular:!0});Bi({circular:!0,strict:!0});Bi({createInternalComparator:()=>Ga});Bi({strict:!0,createInternalComparator:()=>Ga});Bi({circular:!0,createInternalComparator:()=>Ga});Bi({circular:!0,createInternalComparator:()=>Ga,strict:!0});function Bi(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=RZ(e),o=IZ(a),s=r?r(o):DZ(o);return LZ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function BZ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function wO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):BZ(i)};requestAnimationFrame(n)}function Tv(e){"@babel/helpers - typeof";return Tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tv(e)}function FZ(e){return VZ(e)||HZ(e)||WZ(e)||UZ()}function UZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WZ(e,t){if(e){if(typeof e=="string")return SO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SO(e,t)}}function SO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VZ(e){if(Array.isArray(e))return e}function qZ(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=FZ(o),l=s[0],u=s.slice(1);if(typeof l=="number"){wO(i.bind(null,u),l);return}i(l),wO(i.bind(null,u));return}Tv(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Su(e){"@babel/helpers - typeof";return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Su(e)}function OO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(r),!0).forEach(function(n){iN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iN(e,t,r){return t=KZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KZ(e){var t=GZ(e,"string");return Su(t)==="symbol"?t:String(t)}function GZ(e,t){if(Su(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Su(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XZ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},QZ=function(t){return t},YZ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Nl=function(t,r){return Object.keys(r).reduce(function(n,i){return jO(jO({},n),{},iN({},i,t(i,r[i])))},{})},_O=function(t,r,n){return t.map(function(i){return"".concat(YZ(i)," ").concat(r,"ms ").concat(n)}).join(",")};function JZ(e,t){return tee(e)||eee(e,t)||aN(e,t)||ZZ()}function ZZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tee(e){if(Array.isArray(e))return e}function ree(e){return aee(e)||iee(e)||aN(e)||nee()}function nee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aN(e,t){if(e){if(typeof e=="string")return Cv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cv(e,t)}}function iee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aee(e){if(Array.isArray(e))return Cv(e)}function Cv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yd=1e-4,oN=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},sN=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},PO=function(t,r){return function(n){var i=oN(t,r);return sN(i,n)}},oee=function(t,r){return function(n){var i=oN(t,r),a=[].concat(ree(i.map(function(o,s){return o*s}).slice(1)),[0]);return sN(a,n)}},AO=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),f=JZ(u,4);i=f[0],a=f[1],o=f[2],s=f[3]}}}var c=PO(i,o),d=PO(a,s),p=oee(i,o),m=function(g){return g>1?1:g<0?0:g},y=function(g){for(var b=g>1?1:g,x=b,S=0;S<8;++S){var w=c(x)-b,O=p(x);if(Math.abs(w-b)<yd||O<yd)return d(x);x=m(x-w/O)}return d(x)};return y.isStepper=!1,y},see=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,c,d){var p=-(f-c)*n,m=d*a,y=d+(p-m)*s/1e3,v=d*s/1e3+f;return Math.abs(v-c)<yd&&Math.abs(y)<yd?[c,0]:[v,y]};return l.isStepper=!0,l.dt=s,l},lee=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return AO(i);case"spring":return see();default:if(i.split("(")[0]==="cubic-bezier")return AO(i)}return typeof i=="function"?i:null};function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function kO(e){return fee(e)||cee(e)||lN(e)||uee()}function uee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fee(e){if(Array.isArray(e))return Mv(e)}function EO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(r),!0).forEach(function(n){$v(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $v(e,t,r){return t=dee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dee(e){var t=hee(e,"string");return Ou(t)==="symbol"?t:String(t)}function hee(e,t){if(Ou(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pee(e,t){return vee(e)||yee(e,t)||lN(e,t)||mee()}function mee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lN(e,t){if(e){if(typeof e=="string")return Mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mv(e,t)}}function Mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function vee(e){if(Array.isArray(e))return e}var vd=function(t,r,n){return t+(r-t)*n},Iv=function(t){var r=t.from,n=t.to;return r!==n},gee=function e(t,r,n){var i=Nl(function(a,o){if(Iv(o)){var s=t(o.from,o.to,o.velocity),l=pee(s,2),u=l[0],f=l[1];return bt(bt({},o),{},{from:u,velocity:f})}return o},r);return n<1?Nl(function(a,o){return Iv(o)?bt(bt({},o),{},{velocity:vd(o.velocity,i[a].velocity,n),from:vd(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const bee=function(e,t,r,n,i){var a=XZ(e,t),o=a.reduce(function(v,g){return bt(bt({},v),{},$v({},g,[e[g],t[g]]))},{}),s=a.reduce(function(v,g){return bt(bt({},v),{},$v({},g,{from:e[g],velocity:0,to:t[g]}))},{}),l=-1,u,f,c=function(){return null},d=function(){return Nl(function(g,b){return b.from},s)},p=function(){return!Object.values(s).filter(Iv).length},m=function(g){u||(u=g);var b=g-u,x=b/r.dt;s=gee(r,s,x),i(bt(bt(bt({},e),t),d())),u=g,p()||(l=requestAnimationFrame(c))},y=function(g){f||(f=g);var b=(g-f)/n,x=Nl(function(w,O){return vd.apply(void 0,kO(O).concat([r(b)]))},o);if(i(bt(bt(bt({},e),t),x)),b<1)l=requestAnimationFrame(c);else{var S=Nl(function(w,O){return vd.apply(void 0,kO(O).concat([r(1)]))},o);i(bt(bt(bt({},e),t),S))}};return c=r.isStepper?m:y,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(e)}var xee=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function wee(e,t){if(e==null)return{};var r=See(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function See(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function lm(e){return Pee(e)||_ee(e)||jee(e)||Oee()}function Oee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jee(e,t){if(e){if(typeof e=="string")return Rv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rv(e,t)}}function _ee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pee(e){if(Array.isArray(e))return Rv(e)}function Rv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){ml(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ml(e,t,r){return t=uN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uN(n.key),n)}}function Eee(e,t,r){return t&&kee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uN(e){var t=Nee(e,"string");return os(t)==="symbol"?t:String(t)}function Nee(e,t){if(os(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(os(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dv(e,t)}function Dv(e,t){return Dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dv(e,t)}function Cee(e){var t=$ee();return function(){var n=gd(e),i;if(t){var a=gd(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Lv(this,i)}}function Lv(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zv(e)}function zv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $ee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gd(e)}var on=function(e){Tee(r,e);var t=Cee(r);function r(n,i){var a;Aee(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(zv(a)),a.changeStyle=a.changeStyle.bind(zv(a)),!s||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Lv(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Lv(a);a.state={style:l?ml({},l,u):u}}else a.state={style:{}};return a}return Eee(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(s){if(!o){var p={style:l?ml({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(p);return}if(!(zZ(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||u?c:i.to;if(this.state&&d){var v={style:l?ml({},l,y):y};(l&&d[l]!==y||!l&&d!==y)&&this.setState(v)}this.runAnimation(Tr(Tr({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=bee(o,s,lee(u),l,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([d,f,m,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,c=u.duration,d=c===void 0?0:c,p=function(y,v,g){if(g===0)return y;var b=v.duration,x=v.easing,S=x===void 0?"ease":x,w=v.style,O=v.properties,j=v.onAnimationEnd,_=g>0?o[g-1]:v,P=O||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(lm(y),[a.runJSAnimation.bind(a,{from:_.style,to:w,duration:b,easing:S}),b]);var N=_O(P,b,S),$=Tr(Tr(Tr({},_.style),w),{},{transition:N});return[].concat(lm(y),[$,b,j]).filter(QZ)};return this.manager.start([l].concat(lm(o.reduce(p,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=qZ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var y=s?ml({},s,l):l,v=_O(Object.keys(y),o,u);m.start([f,a,Tr(Tr({},y),{},{transition:v}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=wee(i,xee),u=E.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var c=function(p){var m=p.props,y=m.style,v=y===void 0?{}:y,g=m.className,b=E.cloneElement(p,Tr(Tr({},l),{},{style:Tr(Tr({},v),f),className:g}));return b};return u===1?c(E.Children.only(a)):A.createElement("div",null,E.Children.map(a,function(d){return c(d)}))}}]),r}(E.PureComponent);on.displayName="Animate";on.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};on.propTypes={from:Se.oneOfType([Se.object,Se.string]),to:Se.oneOfType([Se.object,Se.string]),attributeName:Se.string,duration:Se.number,begin:Se.number,easing:Se.oneOfType([Se.string,Se.func]),steps:Se.arrayOf(Se.shape({duration:Se.number.isRequired,style:Se.object.isRequired,easing:Se.oneOfType([Se.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Se.func]),properties:Se.arrayOf("string"),onAnimationEnd:Se.func})),children:Se.oneOfType([Se.node,Se.func]),isActive:Se.bool,canBegin:Se.bool,onAnimationEnd:Se.func,shouldReAnimate:Se.bool,onAnimationStart:Se.func,onAnimationReStart:Se.func};function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bd.apply(this,arguments)}function Mee(e,t){return Lee(e)||Dee(e,t)||Ree(e,t)||Iee()}function Iee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ree(e,t){if(e){if(typeof e=="string")return TO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TO(e,t)}}function TO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Lee(e){if(Array.isArray(e))return e}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){zee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zee(e,t,r){return t=Bee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bee(e){var t=Fee(e,"string");return ju(t)=="symbol"?t:t+""}function Fee(e,t){if(ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MO=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
`).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
`).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
`).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+s*m,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+l*m,",").concat(r,`
L `).concat(t+n-l*m,",").concat(r,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*m,`
L `).concat(t+n,",").concat(r+i-s*m,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+n-l*m,",").concat(r+i,`
L `).concat(t+l*m,",").concat(r+i,`
A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},Uee=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=d}return!1},Wee={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Sb=function(t){var r=$O($O({},Wee),t),n=E.useRef(),i=E.useState(-1),a=Mee(i,2),o=a[0],s=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var x=fe("recharts-rectangle",p);return b?A.createElement(on,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:y,animationEasing:m,isActive:b},function(S){var w=S.width,O=S.height,j=S.x,_=S.y;return A.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:g,easing:m},A.createElement("path",bd({},ne(r,!0),{className:x,d:MO(j,_,w,O,d),ref:n})))}):A.createElement("path",bd({},ne(r,!0),{className:x,d:MO(l,u,f,c,d)}))},Hee=["points","className","baseLinePoints","connectNulls"];function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mo.apply(this,arguments)}function Vee(e,t){if(e==null)return{};var r=qee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IO(e){return Qee(e)||Xee(e)||Gee(e)||Kee()}function Kee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gee(e,t){if(e){if(typeof e=="string")return Bv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bv(e,t)}}function Xee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qee(e){if(Array.isArray(e))return Bv(e)}function Bv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var RO=function(t){return t&&t.x===+t.x&&t.y===+t.y},Yee=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){RO(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),RO(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Tl=function(t,r){var n=Yee(t);r&&(n=[n.reduce(function(a,o){return[].concat(IO(a),IO(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},Jee=function(t,r,n){var i=Tl(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Tl(r.reverse(),n).slice(1))},Zee=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=Vee(t,Hee);if(!r||!r.length)return null;var s=fe("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=Jee(r,i,a);return A.createElement("g",{className:s},A.createElement("path",mo({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?A.createElement("path",mo({},ne(o,!0),{fill:"none",d:Tl(r,a)})):null,l?A.createElement("path",mo({},ne(o,!0),{fill:"none",d:Tl(i,a)})):null)}var f=Tl(r,a);return A.createElement("path",mo({},ne(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fv.apply(this,arguments)}var Kh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=fe("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",Fv({},ne(t,!1),Lf(t),{className:o,cx:r,cy:n,r:i})):null};function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}var ete=["x","y","top","left","width","height","className"];function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uv.apply(this,arguments)}function DO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){rte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rte(e,t,r){return t=nte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nte(e){var t=ite(e,"string");return _u(t)=="symbol"?t:t+""}function ite(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ate(e,t){if(e==null)return{};var r=ote(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ote(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ste=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},lte=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,y=ate(t,ete),v=tte({x:n,y:a,top:s,left:u,width:c,height:p},y);return!V(n)||!V(a)||!V(c)||!V(p)||!V(s)||!V(u)?null:A.createElement("path",Uv({},ne(v,!0),{className:fe("recharts-cross",m),d:ste(n,a,c,p,s,u)}))},ute=Uh,cte=wE,fte=cn;function dte(e,t){return e&&e.length?ute(e,fte(t),cte):void 0}var hte=dte;const pte=_e(hte);var mte=Uh,yte=cn,vte=SE;function gte(e,t){return e&&e.length?mte(e,yte(t),vte):void 0}var bte=gte;const xte=_e(bte);var wte=["cx","cy","angle","ticks","axisLine"],Ste=["ticks","tick","angle","tickFormatter","stroke"];function ss(e){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(e)}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){Gh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zO(e,t){if(e==null)return{};var r=Ote(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ote(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fN(n.key),n)}}function _te(e,t,r){return t&&BO(e.prototype,t),r&&BO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pte(e,t,r){return t=xd(t),Ate(e,cN()?Reflect.construct(t,r||[],xd(e).constructor):t.apply(e,r))}function Ate(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kte(e)}function kte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cN=function(){return!!e})()}function xd(e){return xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xd(e)}function Ete(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wv(e,t)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wv(e,t)}function Gh(e,t,r){return t=fN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fN(e){var t=Nte(e,"string");return ss(t)=="symbol"?t:t+""}function Nte(e,t){if(ss(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xh=function(e){function t(){return jte(this,t),Pte(this,t,arguments)}return Ete(t,e),_te(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return Me(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=pte(s,function(f){return f.coordinate||0}),u=xte(s,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=zO(n,wte),f=s.reduce(function(m,y){return[Math.min(m[0],y.coordinate),Math.max(m[1],y.coordinate)]},[1/0,-1/0]),c=Me(i,a,f[0],o),d=Me(i,a,f[1],o),p=qi(qi(qi({},ne(u,!1)),{},{fill:"none"},ne(l,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return A.createElement("line",Cl({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=zO(i,Ste),c=this.getTickTextAnchor(),d=ne(f,!1),p=ne(o,!1),m=a.map(function(y,v){var g=n.getTickValueCoord(y),b=qi(qi(qi(qi({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:v},g),{},{payload:y});return A.createElement(ye,Cl({className:fe("recharts-polar-radius-axis-tick",QE(o)),key:"tick-".concat(y.coordinate)},Ia(n.props,y,v)),t.renderTickItem(o,b,l?l(y.value,v):y.value))});return A.createElement(ye,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:A.createElement(ye,{className:fe("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),mt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):oe(n)?o=n(i):o=A.createElement(Ra,Cl({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(E.PureComponent);Gh(Xh,"displayName","PolarRadiusAxis");Gh(Xh,"axisType","radiusAxis");Gh(Xh,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function ls(e){"@babel/helpers - typeof";return ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ls(e)}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zi.apply(this,arguments)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){Qh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hN(n.key),n)}}function Cte(e,t,r){return t&&UO(e.prototype,t),r&&UO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $te(e,t,r){return t=wd(t),Mte(e,dN()?Reflect.construct(t,r||[],wd(e).constructor):t.apply(e,r))}function Mte(e,t){if(t&&(ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ite(e)}function Ite(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dN=function(){return!!e})()}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wd(e)}function Rte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hv(e,t)}function Hv(e,t){return Hv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hv(e,t)}function Qh(e,t,r){return t=hN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hN(e){var t=Dte(e,"string");return ls(t)=="symbol"?t:t+""}function Dte(e,t){if(ls(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lte=Math.PI/180,WO=1e-5,Yh=function(e){function t(){return Tte(this,t),$te(this,t,arguments)}return Rte(t,e),Cte(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,c=Me(a,o,s,n.coordinate),d=Me(a,o,s+(l==="inner"?-1:1)*f,n.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Lte),o;return a>WO?o=i==="outer"?"start":"end":a<-WO?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Ki(Ki({},ne(this.props,!1)),{},{fill:"none"},ne(s,!1));if(l==="circle")return A.createElement(Kh,Zi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return Me(i,a,o,d.coordinate)});return A.createElement(Zee,Zi({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=ne(this.props,!1),c=ne(o,!1),d=Ki(Ki({},f),{},{fill:"none"},ne(s,!1)),p=a.map(function(m,y){var v=n.getTickLineCoord(m),g=n.getTickTextAnchor(m),b=Ki(Ki(Ki({textAnchor:g},f),{},{stroke:"none",fill:u},c),{},{index:y,payload:m,x:v.x2,y:v.y2});return A.createElement(ye,Zi({className:fe("recharts-polar-angle-axis-tick",QE(o)),key:"tick-".concat(m.coordinate)},Ia(n.props,m,y)),s&&A.createElement("line",Zi({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,b,l?l(m.value,y):m.value))});return A.createElement(ye,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:A.createElement(ye,{className:fe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return A.isValidElement(n)?o=A.cloneElement(n,i):oe(n)?o=n(i):o=A.createElement(Ra,Zi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(E.PureComponent);Qh(Yh,"displayName","PolarAngleAxis");Qh(Yh,"axisType","angleAxis");Qh(Yh,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var zte=gk,Bte=zte(Object.getPrototypeOf,Object),Fte=Bte,Ute=zn,Wte=Fte,Hte=Bn,Vte="[object Object]",qte=Function.prototype,Kte=Object.prototype,pN=qte.toString,Gte=Kte.hasOwnProperty,Xte=pN.call(Object);function Qte(e){if(!Hte(e)||Ute(e)!=Vte)return!1;var t=Wte(e);if(t===null)return!0;var r=Gte.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&pN.call(r)==Xte}var Yte=Qte;const Jte=_e(Yte);var Zte=zn,ere=Bn,tre="[object Boolean]";function rre(e){return e===!0||e===!1||ere(e)&&Zte(e)==tre}var nre=rre;const ire=_e(nre);function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sd.apply(this,arguments)}function are(e,t){return ure(e)||lre(e,t)||sre(e,t)||ore()}function ore(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sre(e,t){if(e){if(typeof e=="string")return HO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HO(e,t)}}function HO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lre(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ure(e){if(Array.isArray(e))return e}function VO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(r),!0).forEach(function(n){cre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cre(e,t,r){return t=fre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fre(e){var t=dre(e,"string");return Pu(t)=="symbol"?t:t+""}function dre(e,t){if(Pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KO=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},hre={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},pre=function(t){var r=qO(qO({},hre),t),n=E.useRef(),i=E.useState(-1),a=are(i,2),o=a[0],s=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,p=r.className,m=r.animationEasing,y=r.animationDuration,v=r.animationBegin,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var b=fe("recharts-trapezoid",p);return g?A.createElement(on,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:y,animationEasing:m,isActive:g},function(x){var S=x.upperWidth,w=x.lowerWidth,O=x.height,j=x.x,_=x.y;return A.createElement(on,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,easing:m},A.createElement("path",Sd({},ne(r,!0),{className:b,d:KO(j,_,S,w,O),ref:n})))}):A.createElement("g",null,A.createElement("path",Sd({},ne(r,!0),{className:b,d:KO(l,u,f,c,d)})))},mre=["option","shapeType","propTransformer","activeClassName","isActive"];function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function yre(e,t){if(e==null)return{};var r=vre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Od(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GO(Object(r),!0).forEach(function(n){gre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gre(e,t,r){return t=bre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bre(e){var t=xre(e,"string");return Au(t)=="symbol"?t:t+""}function xre(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wre(e,t){return Od(Od({},t),e)}function Sre(e,t){return e==="symbols"}function XO(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return A.createElement(Sb,r);case"trapezoid":return A.createElement(pre,r);case"sector":return A.createElement(ZE,r);case"symbols":if(Sre(t))return A.createElement(F0,r);break;default:return null}}function Ore(e){return E.isValidElement(e)?e.props:e}function mN(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?wre:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=yre(e,mre),u;if(E.isValidElement(t))u=E.cloneElement(t,Od(Od({},l),Ore(t)));else if(oe(t))u=t(l);else if(Jte(t)&&!ire(t)){var f=i(t,l);u=A.createElement(XO,{shapeType:r,elementProps:f})}else{var c=l;u=A.createElement(XO,{shapeType:r,elementProps:c})}return s?A.createElement(ye,{className:o},u):u}function Jh(e,t){return t!=null&&"trapezoids"in e.props}function Zh(e,t){return t!=null&&"sectors"in e.props}function ku(e,t){return t!=null&&"points"in e.props}function jre(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function _re(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Pre(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Are(e,t){var r;return Jh(e,t)?r=jre:Zh(e,t)?r=_re:ku(e,t)&&(r=Pre),r}function kre(e,t){var r;return Jh(e,t)?r="trapezoids":Zh(e,t)?r="sectors":ku(e,t)&&(r="points"),r}function Ere(e,t){if(Jh(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Zh(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ku(e,t)?t.payload:{}}function Nre(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=kre(r,t),a=Ere(r,t),o=n.filter(function(l,u){var f=is(a,l),c=r.props[i].filter(function(m){var y=Are(r,t);return y(m,t)}),d=r.props[i].indexOf(c[c.length-1]),p=u===d;return f&&p}),s=n.indexOf(o[o.length-1]);return s}var of;function us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yo.apply(this,arguments)}function QO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QO(Object(r),!0).forEach(function(n){xr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vN(n.key),n)}}function Cre(e,t,r){return t&&YO(e.prototype,t),r&&YO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $re(e,t,r){return t=jd(t),Mre(e,yN()?Reflect.construct(t,r||[],jd(e).constructor):t.apply(e,r))}function Mre(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ire(e)}function Ire(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yN=function(){return!!e})()}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jd(e)}function Rre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vv(e,t)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vv(e,t)}function xr(e,t,r){return t=vN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vN(e){var t=Dre(e,"string");return us(t)=="symbol"?t:t+""}function Dre(e,t){if(us(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(us(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Un=function(e){function t(r){var n;return Tre(this,t),n=$re(this,t,[r]),xr(n,"pieRef",null),xr(n,"sectorRefs",[]),xr(n,"id",Rs("recharts-pie-")),xr(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oe(i)&&i()}),xr(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return Rre(t,e),Cre(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,u=a.valueKey,f=ne(this.props,!1),c=ne(o,!1),d=ne(s,!1),p=o&&o.offsetRadius||20,m=n.map(function(y,v){var g=(y.startAngle+y.endAngle)/2,b=Me(y.cx,y.cy,y.outerRadius+p,g),x=Te(Te(Te(Te({},f),y),{},{stroke:"none"},c),{},{index:v,textAnchor:t.getTextAnchor(b.x,y.cx)},b),S=Te(Te(Te(Te({},f),y),{},{fill:"none",stroke:y.fill},d),{},{index:v,points:[Me(y.cx,y.cy,y.outerRadius,g),b]}),w=l;return ce(l)&&ce(u)?w="value":ce(l)&&(w=u),A.createElement(ye,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(v)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(o,x,lt(y,w)))});return A.createElement(ye,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var c=i.isActiveIndex(f),d=l&&i.hasActiveIndex()?l:null,p=c?o:d,m=Te(Te({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return A.createElement(ye,yo({ref:function(v){v&&!i.sectorRefs.includes(v)&&i.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},Ia(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),A.createElement(mN,yo({option:p,isActive:c,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,c=this.state,d=c.prevSectors,p=c.prevIsAnimationActive;return A.createElement(on,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var y=m.t,v=[],g=a&&a[0],b=g.startAngle;return a.forEach(function(x,S){var w=d&&d[S],O=S>0?lr(x,"paddingAngle",0):0;if(w){var j=Vt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),_=Te(Te({},x),{},{startAngle:b+O,endAngle:b+j(y)+O});v.push(_),b=_.endAngle}else{var P=x.endAngle,N=x.startAngle,$=Vt(0,P-N),C=$(y),L=Te(Te({},x),{},{startAngle:b+O,endAngle:b+C+O});v.push(L),b=L.endAngle}}),A.createElement(ye,null,n.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!is(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!V(u)||!V(f)||!V(c)||!V(d))return null;var y=fe("recharts-pie",s);return A.createElement(ye,{tabIndex:this.props.rootTabIndex,className:y,ref:function(g){n.pieRef=g}},this.renderSectors(),l&&this.renderLabels(o),mt.renderCallByParent(this.props,null,!1),(!p||m)&&En.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);if(oe(n))return n(i);var o=fe("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return A.createElement(Eo,yo({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(A.isValidElement(n))return A.cloneElement(n,i);var o=a;if(oe(n)&&(o=n(i),A.isValidElement(o)))return o;var s=fe("recharts-pie-label-text",typeof n!="boolean"&&!oe(n)?n.className:"");return A.createElement(Ra,yo({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(E.PureComponent);of=Un;xr(Un,"displayName","Pie");xr(Un,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Va.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});xr(Un,"parseDeltaAngle",function(e,t){var r=Mt(t-e),n=Math.min(Math.abs(t-e),360);return r*n});xr(Un,"getRealPieData",function(e){var t=e.data,r=e.children,n=ne(e,!1),i=jr(r,Ih);return t&&t.length?t.map(function(a,o){return Te(Te(Te({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Te(Te({},n),a.props)}):[]});xr(Un,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=XE(i,a),s=n+It(e.cx,i,i/2),l=r+It(e.cy,a,a/2),u=It(e.innerRadius,o,0),f=It(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:c}});xr(Un,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Te(Te({},t.type.defaultProps),t.props):t.props,i=of.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,u=n.dataKey,f=n.nameKey,c=n.valueKey,d=n.tooltipType,p=Math.abs(n.minAngle),m=of.parseCoordinateOfPie(n,r),y=of.parseDeltaAngle(o,s),v=Math.abs(y),g=u;ce(u)&&ce(c)?(Fr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),g="value"):ce(u)&&(Fr(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),g=c);var b=i.filter(function(_){return lt(_,g,0)!==0}).length,x=(v>=360?b:b-1)*l,S=v-b*p-x,w=i.reduce(function(_,P){var N=lt(P,g,0);return _+(V(N)?N:0)},0),O;if(w>0){var j;O=i.map(function(_,P){var N=lt(_,g,0),$=lt(_,f,P),C=(V(N)?N:0)/w,L;P?L=j.endAngle+Mt(y)*l*(N!==0?1:0):L=o;var R=L+Mt(y)*((N!==0?p:0)+C*S),I=(L+R)/2,D=(m.innerRadius+m.outerRadius)/2,F=[{name:$,value:N,payload:_,dataKey:g,type:d}],T=Me(m.cx,m.cy,D,I);return j=Te(Te(Te({percent:C,cornerRadius:a,name:$,tooltipPayload:F,midAngle:I,middleRadius:D,tooltipPosition:T},_),m),{},{value:lt(_,g),startAngle:L,endAngle:R,payload:_,paddingAngle:Mt(y)*l}),j})}return Te(Te({},m),{},{sectors:O,data:i})});var Lre=Math.ceil,zre=Math.max;function Bre(e,t,r,n){for(var i=-1,a=zre(Lre((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Fre=Bre,Ure=Dk,JO=1/0,Wre=17976931348623157e292;function Hre(e){if(!e)return e===0?e:0;if(e=Ure(e),e===JO||e===-JO){var t=e<0?-1:1;return t*Wre}return e===e?e:0}var gN=Hre,Vre=Fre,qre=Mh,um=gN;function Kre(e){return function(t,r,n){return n&&typeof n!="number"&&qre(t,r,n)&&(r=n=void 0),t=um(t),r===void 0?(r=t,t=0):r=um(r),n=n===void 0?t<r?1:-1:um(n),Vre(t,r,n,e)}}var Gre=Kre,Xre=Gre,Qre=Xre(),Yre=Qre;const _d=_e(Yre);function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}function ZO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ej(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(r),!0).forEach(function(n){bN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bN(e,t,r){return t=Jre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jre(e){var t=Zre(e,"string");return Eu(t)=="symbol"?t:t+""}function Zre(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ene=["Webkit","Moz","O","ms"],tne=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=ene.reduce(function(a,o){return ej(ej({},a),{},bN({},o+n,r))},{});return i[t]=r,i};function cs(e){"@babel/helpers - typeof";return cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cs(e)}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pd.apply(this,arguments)}function tj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tj(Object(r),!0).forEach(function(n){rr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wN(n.key),n)}}function nne(e,t,r){return t&&rj(e.prototype,t),r&&rj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ine(e,t,r){return t=Ad(t),ane(e,xN()?Reflect.construct(t,r||[],Ad(e).constructor):t.apply(e,r))}function ane(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return one(e)}function one(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xN=function(){return!!e})()}function Ad(e){return Ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ad(e)}function sne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qv(e,t)}function rr(e,t,r){return t=wN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wN(e){var t=lne(e,"string");return cs(t)=="symbol"?t:t+""}function lne(e,t){if(cs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var une=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=kl().domain(_d(0,l)).range([a,a+o-s]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:f}},nj=function(t){return t.changedTouches&&!!t.changedTouches.length},fs=function(e){function t(r){var n;return rne(this,t),n=ine(this,t,[r]),rr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),rr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),rr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),rr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),rr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),rr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),rr(n,"handleSlideDragStart",function(i){var a=nj(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return sne(t,e),nne(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,d);return{startIndex:p-p%l,endIndex:m===f?f:m-m%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=lt(a[n],s,n);return oe(o)?o(l,n):l}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,p=l.endIndex,m=l.onChange,y=n.pageX-a;y>0?y=Math.min(y,u+f-c-s,u+f-c-o):y<0&&(y=Math.max(y,u-o,u-s));var v=this.getIndex({startX:o+y,endX:s+y});(v.startIndex!==d||v.endIndex!==p)&&m&&m(v),this.setState({startX:o+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=nj(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,y=f.gap,v=f.data,g={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,c+d-p-u):b<0&&(b=Math.max(b,c-u)),g[o]=u+b;var x=this.getIndex(g),S=x.startIndex,w=x.endIndex,O=function(){var _=v.length-1;return o==="startX"&&(s>l?S%y===0:w%y===0)||s<l&&w===_||o==="endX"&&(s>l?w%y===0:S%y===0)||s>l&&w===_};this.setState(rr(rr({},o,u+b),"brushMoveStartX",n.pageX),function(){m&&O()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=s.length)){var p=s[d];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(rr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return A.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=E.Children.only(u);return c?A.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,p=l.ariaLabel,m=l.data,y=l.startIndex,v=l.endIndex,g=Math.max(n,this.props.x),b=cm(cm({},ne(this.props,!1)),{},{x:g,y:u,width:f,height:c}),x=p||"Min value: ".concat((a=m[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[v])===null||o===void 0?void 0:o.name);return A.createElement(ye,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),s.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:u};return A.createElement(ye,{className:"recharts-brush-texts"},A.createElement(Ra,Pd({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+s/2},m),this.getTextOfTick(i)),A.createElement(Ra,Pd({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+p,y:o+s/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,y=d.isTextActive,v=d.isSlideMoving,g=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!V(s)||!V(l)||!V(u)||!V(f)||u<=0||f<=0)return null;var x=fe("recharts-brush",a),S=A.Children.count(o)===1,w=tne("userSelect","none");return A.createElement(ye,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(y||v||g||b||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),A.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return A.isValidElement(n)?a=A.cloneElement(n,i):oe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return cm({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?une({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(E.PureComponent);rr(fs,"displayName","Brush");rr(fs,"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 cne=G0;function fne(e,t){var r;return cne(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var dne=fne,hne=ck,pne=cn,mne=dne,yne=er,vne=Mh;function gne(e,t,r){var n=yne(e)?hne:mne;return r&&vne(e,t,r)&&(t=void 0),n(e,pne(t))}var bne=gne;const xne=_e(bne);var rn=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},ij=Ck;function wne(e,t,r){t=="__proto__"&&ij?ij(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Sne=wne,One=Sne,jne=Nk,_ne=cn;function Pne(e,t){var r={};return t=_ne(t),jne(e,function(n,i,a){One(r,i,t(n,i,a))}),r}var Ane=Pne;const kne=_e(Ane);function Ene(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var Nne=Ene,Tne=G0;function Cne(e,t){var r=!0;return Tne(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var $ne=Cne,Mne=Nne,Ine=$ne,Rne=cn,Dne=er,Lne=Mh;function zne(e,t,r){var n=Dne(e)?Mne:Ine;return r&&Lne(e,t,r)&&(t=void 0),n(e,Rne(t))}var Bne=zne;const SN=_e(Bne);var Fne=["x","y"];function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function Kv(){return Kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kv.apply(this,arguments)}function aj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ul(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aj(Object(r),!0).forEach(function(n){Une(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Une(e,t,r){return t=Wne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wne(e){var t=Hne(e,"string");return Nu(t)=="symbol"?t:t+""}function Hne(e,t){if(Nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vne(e,t){if(e==null)return{};var r=qne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Kne(e,t){var r=e.x,n=e.y,i=Vne(e,Fne),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),d=parseInt(c,10);return ul(ul(ul(ul(ul({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function oj(e){return A.createElement(mN,Kv({shapeType:"rectangle",propTransformer:Kne,activeClassName:"recharts-active-bar"},e))}var Gne=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=V(n)||m6(n);return a?t(n,i):(a||La(),r)}},Xne=["value","background"],ON;function ds(e){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ds(e)}function Qne(e,t){if(e==null)return{};var r=Yne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(this,arguments)}function sj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sj(Object(r),!0).forEach(function(n){hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_N(n.key),n)}}function Zne(e,t,r){return t&&lj(e.prototype,t),r&&lj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eie(e,t,r){return t=Ed(t),tie(e,jN()?Reflect.construct(t,r||[],Ed(e).constructor):t.apply(e,r))}function tie(e,t){if(t&&(ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rie(e)}function rie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jN=function(){return!!e})()}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ed(e)}function nie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gv(e,t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gv(e,t)}function hi(e,t,r){return t=_N(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _N(e){var t=iie(e,"string");return ds(t)=="symbol"?t:t+""}function iie(e,t){if(ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fi=function(e){function t(){var r;Jne(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=eie(this,t,[].concat(i)),hi(r,"state",{isAnimationFinished:!1}),hi(r,"id",Rs("recharts-bar-")),hi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),hi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return nie(t,e),Zne(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,f=ne(this.props,!1);return n&&n.map(function(c,d){var p=d===l,m=p?u:o,y=Je(Je(Je({},f),c),{},{isActive:p,option:m,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return A.createElement(ye,kd({className:"recharts-bar-rectangle"},Ia(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),A.createElement(oj,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return A.createElement(on,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,y=a.map(function(v,g){var b=d&&d[g];if(b){var x=Vt(b.x,v.x),S=Vt(b.y,v.y),w=Vt(b.width,v.width),O=Vt(b.height,v.height);return Je(Je({},v),{},{x:x(m),y:S(m),width:w(m),height:O(m)})}if(o==="horizontal"){var j=Vt(0,v.height),_=j(m);return Je(Je({},v),{},{y:v.y+v.height-_,height:_})}var P=Vt(0,v.width),N=P(m);return Je(Je({},v),{},{width:N})});return A.createElement(ye,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!is(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=ne(this.props.background,!1);return a.map(function(u,f){u.value;var c=u.background,d=Qne(u,Xne);if(!c)return null;var p=Je(Je(Je(Je(Je({},d),{},{fill:"#eee"},c),l),Ia(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return A.createElement(oj,kd({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,f=a.children,c=jr(f,qh);if(!c)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,p=function(v,g){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:lt(v,g)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return A.createElement(ye,m,c.map(function(y){return A.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,f=n.top,c=n.width,d=n.height,p=n.isAnimationActive,m=n.background,y=n.id;if(i||!a||!a.length)return null;var v=this.state.isAnimationFinished,g=fe("recharts-bar",o),b=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,S=b||x,w=ce(y)?this.id:y;return A.createElement(ye,{className:g},b||x?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(w)},A.createElement("rect",{x:b?u:u-c/2,y:x?f:f-d/2,width:b?c:c*2,height:x?d:d*2}))):null,A.createElement(ye,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||v)&&En.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(E.PureComponent);ON=Fi;hi(Fi,"displayName","Bar");hi(Fi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Va.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});hi(Fi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=MY(n,r);if(!p)return null;var m=t.layout,y=r.type.defaultProps,v=y!==void 0?Je(Je({},y),r.props):r.props,g=v.dataKey,b=v.children,x=v.minPointSize,S=m==="horizontal"?o:a,w=u?S.scale.domain():null,O=FY({numericAxis:S}),j=jr(b,Ih),_=c.map(function(P,N){var $,C,L,R,I,D;u?$=IY(u[f+N],w):($=lt(P,g),Array.isArray($)||($=[O,$]));var F=Gne(x,ON.defaultProps.minPointSize)($[1],N);if(m==="horizontal"){var T,B=[o.scale($[0]),o.scale($[1])],U=B[0],K=B[1];C=eO({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:P,index:N}),L=(T=K??U)!==null&&T!==void 0?T:void 0,R=p.size;var H=U-K;if(I=Number.isNaN(H)?0:H,D={x:C,y:o.y,width:R,height:o.height},Math.abs(F)>0&&Math.abs(I)<Math.abs(F)){var X=Mt(I||F)*(Math.abs(F)-Math.abs(I));L-=X,I+=X}}else{var ie=[a.scale($[0]),a.scale($[1])],be=ie[0],ze=ie[1];if(C=be,L=eO({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:P,index:N}),R=ze-be,I=p.size,D={x:a.x,y:L,width:a.width,height:I},Math.abs(F)>0&&Math.abs(R)<Math.abs(F)){var we=Mt(R||F)*(Math.abs(F)-Math.abs(R));R+=we}}return Je(Je(Je({},P),{},{x:C,y:L,width:R,height:I,value:u?$:$[1],payload:P,background:D},j&&j[N]&&j[N].props),{},{tooltipPayload:[KE(r,P)],tooltipPosition:{x:C+R/2,y:L+I/2}})});return Je({data:_,layout:m},d)});function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function aie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PN(n.key),n)}}function oie(e,t,r){return t&&uj(e.prototype,t),r&&uj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cj(Object(r),!0).forEach(function(n){ep(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ep(e,t,r){return t=PN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PN(e){var t=sie(e,"string");return Tu(t)=="symbol"?t:t+""}function sie(e,t){if(Tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AN=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!ir(u,Fi);return f.reduce(function(p,m){var y=r[m],v=y.orientation,g=y.domain,b=y.padding,x=b===void 0?{}:b,S=y.mirror,w=y.reversed,O="".concat(v).concat(S?"Mirror":""),j,_,P,N,$;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var C=g[1]-g[0],L=1/0,R=y.categoricalDomain.sort(g6);if(R.forEach(function(ie,be){be>0&&(L=Math.min((ie||0)-(R[be-1]||0),L))}),Number.isFinite(L)){var I=L/C,D=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(j=I*D/2),y.padding==="no-gap"){var F=It(t.barCategoryGap,I*D),T=I*D/2;j=T-F-(T-F)/D*F}}}i==="xAxis"?_=[n.left+(x.left||0)+(j||0),n.left+n.width-(x.right||0)-(j||0)]:i==="yAxis"?_=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(j||0),n.top+n.height-(x.bottom||0)-(j||0)]:_=y.range,w&&(_=[_[1],_[0]]);var B=WE(y,a,d),U=B.scale,K=B.realScaleType;U.domain(g).range(_),HE(U);var H=VE(U,Rr(Rr({},y),{},{realScaleType:K}));i==="xAxis"?($=v==="top"&&!S||v==="bottom"&&S,P=n.left,N=c[O]-$*y.height):i==="yAxis"&&($=v==="left"&&!S||v==="right"&&S,P=c[O]-$*y.width,N=n.top);var X=Rr(Rr(Rr({},y),H),{},{realScaleType:K,x:P,y:N,scale:U,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return X.bandSize=dd(X,H),!y.hide&&i==="xAxis"?c[O]+=($?-1:1)*X.height:y.hide||(c[O]+=($?-1:1)*X.width),Rr(Rr({},p),{},ep({},m,X))},{})},kN=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},lie=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return kN({x:r,y:n},{x:i,y:a})},EN=function(){function e(t){aie(this,e),this.scale=t}return oie(e,[{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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();ep(EN,"EPS",1e-4);var Ob=function(t){var r=Object.keys(t).reduce(function(n,i){return Rr(Rr({},n),{},ep({},i,EN.create(t[i])))},{});return Rr(Rr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return kne(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return SN(i,function(a,o){return r[o].isInRange(a)})}})};function uie(e){return(e%180+180)%180}var cie=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=uie(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},fie=cn,die=Ju,hie=Ch;function pie(e){return function(t,r,n){var i=Object(t);if(!die(t)){var a=fie(r);t=hie(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var mie=pie,yie=gN;function vie(e){var t=yie(e),r=t%1;return t===t?r?t-r:t:0}var gie=vie,bie=jk,xie=cn,wie=gie,Sie=Math.max;function Oie(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:wie(r);return i<0&&(i=Sie(n+i,0)),bie(e,xie(t),i)}var jie=Oie,_ie=mie,Pie=jie,Aie=_ie(Pie),kie=Aie;const Eie=_e(kie);var Nie=wz(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),jb=E.createContext(void 0),_b=E.createContext(void 0),NN=E.createContext(void 0),TN=E.createContext({}),CN=E.createContext(void 0),$N=E.createContext(0),MN=E.createContext(0),fj=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=Nie(a);return A.createElement(jb.Provider,{value:n},A.createElement(_b.Provider,{value:i},A.createElement(TN.Provider,{value:a},A.createElement(NN.Provider,{value:f},A.createElement(CN.Provider,{value:o},A.createElement($N.Provider,{value:u},A.createElement(MN.Provider,{value:l},s)))))))},Tie=function(){return E.useContext(CN)},IN=function(t){var r=E.useContext(jb);r==null&&La();var n=r[t];return n==null&&La(),n},Cie=function(){var t=E.useContext(jb);return Zn(t)},$ie=function(){var t=E.useContext(_b),r=Eie(t,function(n){return SN(n.domain,Number.isFinite)});return r||Zn(t)},RN=function(t){var r=E.useContext(_b);r==null&&La();var n=r[t];return n==null&&La(),n},Mie=function(){var t=E.useContext(NN);return t},Iie=function(){return E.useContext(TN)},Pb=function(){return E.useContext(MN)},Ab=function(){return E.useContext($N)};function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}function Rie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Die(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LN(n.key),n)}}function Lie(e,t,r){return t&&Die(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zie(e,t,r){return t=Nd(t),Bie(e,DN()?Reflect.construct(t,r||[],Nd(e).constructor):t.apply(e,r))}function Bie(e,t){if(t&&(hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fie(e)}function Fie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DN=function(){return!!e})()}function Nd(e){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nd(e)}function Uie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xv(e,t)}function Xv(e,t){return Xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xv(e,t)}function dj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dj(Object(r),!0).forEach(function(n){kb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kb(e,t,r){return t=LN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LN(e){var t=Wie(e,"string");return hs(t)=="symbol"?t:t+""}function Wie(e,t){if(hs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Hie(e,t){return Gie(e)||Kie(e,t)||qie(e,t)||Vie()}function Vie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qie(e,t){if(e){if(typeof e=="string")return pj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pj(e,t)}}function pj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Gie(e){if(Array.isArray(e))return e}function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qv.apply(this,arguments)}var Xie=function(t,r){var n;return A.isValidElement(t)?n=A.cloneElement(t,r):oe(t)?n=t(r):n=A.createElement("line",Qv({},r,{className:"recharts-reference-line-line"})),n},Qie=function(t,r,n,i,a,o,s,l,u){var f=a.x,c=a.y,d=a.width,p=a.height;if(n){var m=u.y,y=t.y.apply(m,{position:o});if(rn(u,"discard")&&!t.y.isInRange(y))return null;var v=[{x:f+d,y},{x:f,y}];return l==="left"?v.reverse():v}if(r){var g=u.x,b=t.x.apply(g,{position:o});if(rn(u,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:c+p},{x:b,y:c}];return s==="top"?x.reverse():x}if(i){var S=u.segment,w=S.map(function(O){return t.apply(O,{position:o})});return rn(u,"discard")&&xne(w,function(O){return!t.isInRange(O)})?null:w}return null};function Yie(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=Tie(),f=IN(i),c=RN(a),d=Mie();if(!u||!d)return null;Fr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Ob({x:f.scale,y:c.scale}),m=ct(t),y=ct(r),v=n&&n.length===2,g=Qie(p,m,y,v,d,e.position,f.orientation,c.orientation,e);if(!g)return null;var b=Hie(g,2),x=b[0],S=x.x,w=x.y,O=b[1],j=O.x,_=O.y,P=rn(e,"hidden")?"url(#".concat(u,")"):void 0,N=hj(hj({clipPath:P},ne(e,!0)),{},{x1:S,y1:w,x2:j,y2:_});return A.createElement(ye,{className:fe("recharts-reference-line",s)},Xie(o,N),mt.renderCallByParent(e,lie({x1:S,y1:w,x2:j,y2:_})))}var Eb=function(e){function t(){return Rie(this,t),zie(this,t,arguments)}return Uie(t,e),Lie(t,[{key:"render",value:function(){return A.createElement(Yie,this.props)}}])}(A.Component);kb(Eb,"displayName","ReferenceLine");kb(Eb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yv.apply(this,arguments)}function ps(e){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ps(e)}function mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mj(Object(r),!0).forEach(function(n){tp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BN(n.key),n)}}function eae(e,t,r){return t&&Zie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tae(e,t,r){return t=Td(t),rae(e,zN()?Reflect.construct(t,r||[],Td(e).constructor):t.apply(e,r))}function rae(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nae(e)}function nae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zN=function(){return!!e})()}function Td(e){return Td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Td(e)}function iae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jv(e,t)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jv(e,t)}function tp(e,t,r){return t=BN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BN(e){var t=aae(e,"string");return ps(t)=="symbol"?t:t+""}function aae(e,t){if(ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oae=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Ob({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return rn(t,"discard")&&!o.isInRange(s)?null:s},rp=function(e){function t(){return Jie(this,t),tae(this,t,arguments)}return iae(t,e),eae(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=ct(i),f=ct(a);if(Fr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=oae(this.props);if(!c)return null;var d=c.x,p=c.y,m=this.props,y=m.shape,v=m.className,g=rn(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=yj(yj({clipPath:g},ne(this.props,!0)),{},{cx:d,cy:p});return A.createElement(ye,{className:fe("recharts-reference-dot",v)},t.renderDot(y,b),mt.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(A.Component);tp(rp,"displayName","ReferenceDot");tp(rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});tp(rp,"renderDot",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):oe(e)?r=e(t):r=A.createElement(Kh,Yv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zv.apply(this,arguments)}function ms(e){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(e)}function vj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vj(Object(r),!0).forEach(function(n){np(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UN(n.key),n)}}function uae(e,t,r){return t&&lae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cae(e,t,r){return t=Cd(t),fae(e,FN()?Reflect.construct(t,r||[],Cd(e).constructor):t.apply(e,r))}function fae(e,t){if(t&&(ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dae(e)}function dae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FN=function(){return!!e})()}function Cd(e){return Cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cd(e)}function hae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function np(e,t,r){return t=UN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UN(e){var t=pae(e,"string");return ms(t)=="symbol"?t:t+""}function pae(e,t){if(ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mae=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var d=Ob({x:f.scale,y:c.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return rn(a,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:kN(p,m)},ip=function(e){function t(){return sae(this,t),cae(this,t,arguments)}return hae(t,e),uae(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,f=n.clipPathId;Fr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=ct(i),d=ct(a),p=ct(o),m=ct(s),y=this.props.shape;if(!c&&!d&&!p&&!m&&!y)return null;var v=mae(c,d,p,m,this.props);if(!v&&!y)return null;var g=rn(this.props,"hidden")?"url(#".concat(f,")"):void 0;return A.createElement(ye,{className:fe("recharts-reference-area",l)},t.renderRect(y,gj(gj({clipPath:g},ne(this.props,!0)),v)),mt.renderCallByParent(this.props,v))}}])}(A.Component);np(ip,"displayName","ReferenceArea");np(ip,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});np(ip,"renderRect",function(e,t){var r;return A.isValidElement(e)?r=A.cloneElement(e,t):oe(e)?r=e(t):r=A.createElement(Sb,Zv({},t,{className:"recharts-reference-area-rect"})),r});function WN(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function yae(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return cie(n,r)}function vae(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function $d(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function gae(e,t){return WN(e,t+1)}function bae(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var m=n==null?void 0:n[l];if(m===void 0)return{v:WN(n,u)};var y=l,v,g=function(){return v===void 0&&(v=r(m,y)),v},b=m.coordinate,x=l===0||$d(e,b,g,f,s);x||(l=0,f=o,u+=1),x&&(f=b+e*(g()/2+i),l+=u)},d;u<=a.length;)if(d=c(),d)return d.v;return[]}function Cu(e){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cu(e)}function bj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bj(Object(r),!0).forEach(function(n){xae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xae(e,t,r){return t=wae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wae(e){var t=Sae(e,"string");return Cu(t)=="symbol"?t:t+""}function Sae(e,t){if(Cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oae(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var p=a[d],m,y=function(){return m===void 0&&(m=r(p,d)),m};if(d===o-1){var v=e*(p.coordinate+e*y()/2-l);a[d]=p=Pt(Pt({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else a[d]=p=Pt(Pt({},p),{},{tickCoord:p.coordinate});var g=$d(e,p.tickCoord,y,s,l);g&&(l=p.tickCoord-e*(y()/2+i),a[d]=Pt(Pt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function jae(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),d=e*(f.coordinate+e*c/2-u);o[s-1]=f=Pt(Pt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=$d(e,f.tickCoord,function(){return c},l,u);p&&(u=f.tickCoord-e*(c/2+i),o[s-1]=Pt(Pt({},f),{},{isShow:!0}))}for(var m=a?s-1:s,y=function(b){var x=o[b],S,w=function(){return S===void 0&&(S=r(x,b)),S};if(b===0){var O=e*(x.coordinate-e*w()/2-l);o[b]=x=Pt(Pt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[b]=x=Pt(Pt({},x),{},{tickCoord:x.coordinate});var j=$d(e,x.tickCoord,w,l,u);j&&(l=x.tickCoord+e*(w()/2+i),o[b]=Pt(Pt({},x),{},{isShow:!0}))},v=0;v<m;v++)y(v);return o}function Nb(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(V(l)||Va.isSsr)return gae(i,typeof l=="number"&&V(l)?l:0);var d=[],p=s==="top"||s==="bottom"?"width":"height",m=f&&p==="width"?Al(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(x,S){var w=oe(u)?u(x.value,S):x.value;return p==="width"?yae(Al(w,{fontSize:t,letterSpacing:r}),m,c):Al(w,{fontSize:t,letterSpacing:r})[p]},v=i.length>=2?Mt(i[1].coordinate-i[0].coordinate):1,g=vae(a,v,p);return l==="equidistantPreserveStart"?bae(v,g,y,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=jae(v,g,y,i,o,l==="preserveStartEnd"):d=Oae(v,g,y,i,o),d.filter(function(b){return b.isShow}))}var _ae=["viewBox"],Pae=["viewBox"],Aae=["ticks"];function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vo.apply(this,arguments)}function xj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xj(Object(r),!0).forEach(function(n){Tb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fm(e,t){if(e==null)return{};var r=kae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Eae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VN(n.key),n)}}function Nae(e,t,r){return t&&wj(e.prototype,t),r&&wj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tae(e,t,r){return t=Md(t),Cae(e,HN()?Reflect.construct(t,r||[],Md(e).constructor):t.apply(e,r))}function Cae(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ae(e)}function $ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HN=function(){return!!e})()}function Md(e){return Md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Md(e)}function Mae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tg(e,t)}function Tb(e,t,r){return t=VN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VN(e){var t=Iae(e,"string");return ys(t)=="symbol"?t:t+""}function Iae(e,t){if(ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ws=function(e){function t(r){var n;return Eae(this,t),n=Tae(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Mae(t,e),Nae(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=fm(n,_ae),s=this.props,l=s.viewBox,u=fm(s,Pae);return!_o(a,l)||!_o(o,u)||!_o(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,m,y,v,g,b,x=c?-1:1,S=n.tickSize||f,w=V(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=m=n.coordinate,v=o+ +!c*l,y=v-x*S,b=y-x*d,g=w;break;case"left":y=v=n.coordinate,m=a+ +!c*s,p=m-x*S,g=p-x*d,b=w;break;case"right":y=v=n.coordinate,m=a+ +c*s,p=m+x*S,g=p+x*d,b=w;break;default:p=m=n.coordinate,v=o+ +c*l,y=v+x*S,b=y+x*d,g=w;break}return{line:{x1:p,y1:y,x2:m,y2:v},tick:{x:g,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,f=n.axisLine,c=it(it(it({},ne(this.props,!1)),ne(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);c=it(it({},c),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);c=it(it({},c),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return A.createElement("line",vo({},c,{className:fe("recharts-cartesian-axis-line",lr(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,c=s.tickFormatter,d=s.unit,p=Nb(it(it({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),v=ne(this.props,!1),g=ne(f,!1),b=it(it({},v),{},{fill:"none"},ne(l,!1)),x=p.map(function(S,w){var O=o.getTickLineCoord(S),j=O.line,_=O.tick,P=it(it(it(it({textAnchor:m,verticalAnchor:y},v),{},{stroke:"none",fill:u},g),_),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:c});return A.createElement(ye,vo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Ia(o.props,S,w)),l&&A.createElement("line",vo({},b,j,{className:fe("recharts-cartesian-axis-tick-line",lr(l,"className"))})),f&&t.renderTickItem(f,P,"".concat(oe(c)?c(S.value,w):S.value).concat(d||"")))});return A.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=fm(c,Aae),m=d;return oe(l)&&(m=d&&d.length>0?l(this.props):l(p)),o<=0||s<=0||!m||!m.length?null:A.createElement(ye,{className:fe("recharts-cartesian-axis",u),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=fe(i.className,"recharts-cartesian-axis-tick-value");return A.isValidElement(n)?o=A.cloneElement(n,it(it({},i),{},{className:s})):oe(n)?o=n(it(it({},i),{},{className:s})):o=A.createElement(Ra,vo({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(E.Component);Tb(Ws,"displayName","CartesianAxis");Tb(Ws,"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"});var Rae=["x1","y1","x2","y2","key"],Dae=["offset"];function za(e){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(e)}function Sj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sj(Object(r),!0).forEach(function(n){Lae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lae(e,t,r){return t=zae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zae(e){var t=Bae(e,"string");return za(t)=="symbol"?t:t+""}function Bae(e,t){if(za(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(za(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function la(){return la=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},la.apply(this,arguments)}function Oj(e,t){if(e==null)return{};var r=Fae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Uae=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return A.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function qN(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Oj(t,Rae),u=ne(l,!1);u.offset;var f=Oj(u,Dae);r=A.createElement("line",la({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function Wae(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return qN(i,u)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Hae(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=kt(kt({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return qN(i,u)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Vae(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var f=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],y=m?i+o-d:f[p+1]-d;if(y<=0)return null;var v=p%t.length;return A.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:y,width:a,stroke:"none",fill:t[v],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function qae(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var f=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],y=m?a+s-d:f[p+1]-d;if(y<=0)return null;var v=p%n.length;return A.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:y,height:l,stroke:"none",fill:n[v],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var Kae=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return UE(Nb(kt(kt(kt({},Ws.defaultProps),n),{},{ticks:_n(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Gae=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return UE(Nb(kt(kt(kt({},Ws.defaultProps),n),{},{ticks:_n(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},eo={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function $u(e){var t,r,n,i,a,o,s=Pb(),l=Ab(),u=Iie(),f=kt(kt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:eo.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:eo.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:eo.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:eo.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:eo.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:eo.verticalFill,x:V(e.x)?e.x:u.left,y:V(e.y)?e.y:u.top,width:V(e.width)?e.width:u.width,height:V(e.height)?e.height:u.height}),c=f.x,d=f.y,p=f.width,m=f.height,y=f.syncWithTicks,v=f.horizontalValues,g=f.verticalValues,b=Cie(),x=$ie();if(!V(p)||p<=0||!V(m)||m<=0||!V(c)||c!==+c||!V(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||Kae,w=f.horizontalCoordinatesGenerator||Gae,O=f.horizontalPoints,j=f.verticalPoints;if((!O||!O.length)&&oe(w)){var _=v&&v.length,P=w({yAxis:x?kt(kt({},x),{},{ticks:_?v:x.ticks}):void 0,width:s,height:l,offset:u},_?!0:y);Fr(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(za(P),"]")),Array.isArray(P)&&(O=P)}if((!j||!j.length)&&oe(S)){var N=g&&g.length,$=S({xAxis:b?kt(kt({},b),{},{ticks:N?g:b.ticks}):void 0,width:s,height:l,offset:u},N?!0:y);Fr(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(za($),"]")),Array.isArray($)&&(j=$)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(Uae,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),A.createElement(Wae,la({},f,{offset:u,horizontalPoints:O,xAxis:b,yAxis:x})),A.createElement(Hae,la({},f,{offset:u,verticalPoints:j,xAxis:b,yAxis:x})),A.createElement(Vae,la({},f,{horizontalPoints:O})),A.createElement(qae,la({},f,{verticalPoints:j})))}$u.displayName="CartesianGrid";var Xae=["layout","type","stroke","connectNulls","isRange","ref"],Qae=["key"],KN;function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function GN(e,t){if(e==null)return{};var r=Yae(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Yae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ua.apply(this,arguments)}function jj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jj(Object(r),!0).forEach(function(n){Jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QN(n.key),n)}}function Zae(e,t,r){return t&&_j(e.prototype,t),r&&_j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eoe(e,t,r){return t=Id(t),toe(e,XN()?Reflect.construct(t,r||[],Id(e).constructor):t.apply(e,r))}function toe(e,t){if(t&&(vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return roe(e)}function roe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XN=function(){return!!e})()}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Id(e)}function noe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rg(e,t)}function Jr(e,t,r){return t=QN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QN(e){var t=ioe(e,"string");return vs(t)=="symbol"?t:t+""}function ioe(e,t){if(vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sn=function(e){function t(){var r;Jae(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=eoe(this,t,[].concat(i)),Jr(r,"state",{isAnimationFinished:!0}),Jr(r,"id",Rs("recharts-area-")),Jr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),oe(o)&&o()}),Jr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),oe(o)&&o()}),r}return noe(t,e),Zae(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,f=l.points,c=l.dataKey,d=ne(this.props,!1),p=ne(u,!0),m=f.map(function(v,g){var b=Kn(Kn(Kn({key:"dot-".concat(g),r:3},d),p),{},{index:g,cx:v.x,cy:v.y,dataKey:c,value:v.value,payload:v.payload,points:f});return t.renderDotItem(u,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return A.createElement(ye,ua({className:"recharts-area-dots"},y),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,f=n*Math.abs(l-u),c=di(o.map(function(d){return d.y||0}));return V(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(di(a.map(function(d){return d.y||0})),c)),V(c)?A.createElement("rect",{x:l<u?l:l-f,y:0,width:f,height:Math.floor(c+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,f=n*Math.abs(l-u),c=di(o.map(function(d){return d.x||0}));return V(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(di(a.map(function(d){return d.x||0})),c)),V(c)?A.createElement("rect",{x:0,y:l<u?l:l-f,width:c+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,f=s.stroke,c=s.connectNulls,d=s.isRange;s.ref;var p=GN(s,Xae);return A.createElement(ye,{clipPath:a?"url(#clipPath-".concat(o,")"):null},A.createElement(Eo,ua({},ne(p,!0),{points:n,connectNulls:c,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&A.createElement(Eo,ua({},ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:c,fill:"none",points:n})),f!=="none"&&d&&A.createElement(Eo,ua({},ne(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:c,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,m=this.state,y=m.prevPoints,v=m.prevBaseLine;return A.createElement(on,{begin:f,duration:c,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var b=g.t;if(y){var x=y.length/s.length,S=s.map(function(_,P){var N=Math.floor(P*x);if(y[N]){var $=y[N],C=Vt($.x,_.x),L=Vt($.y,_.y);return Kn(Kn({},_),{},{x:C(b),y:L(b)})}return _}),w;if(V(l)&&typeof l=="number"){var O=Vt(v,l);w=O(b)}else if(ce(l)||Is(l)){var j=Vt(v,0);w=j(b)}else w=l.map(function(_,P){var N=Math.floor(P*x);if(v[N]){var $=v[N],C=Vt($.x,_.x),L=Vt($.y,_.y);return Kn(Kn({},_),{},{x:C(b),y:L(b)})}return _});return a.renderAreaStatically(S,w,n,i)}return A.createElement(ye,null,A.createElement("defs",null,A.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),A.createElement(ye,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,f=u.prevPoints,c=u.prevBaseLine,d=u.totalLength;return l&&o&&o.length&&(!f&&d>0||!is(f,o)||!is(c,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,f=i.left,c=i.xAxis,d=i.yAxis,p=i.width,m=i.height,y=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,b=s.length===1,x=fe("recharts-area",l),S=c&&c.allowDataOverflow,w=d&&d.allowDataOverflow,O=S||w,j=ce(v)?this.id:v,_=(n=ne(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=_.r,N=P===void 0?3:P,$=_.strokeWidth,C=$===void 0?2:$,L=A6(o)?o:{},R=L.clipDot,I=R===void 0?!0:R,D=N*2+C;return A.createElement(ye,{className:x},S||w?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(j)},A.createElement("rect",{x:S?f:f-p/2,y:w?u:u-m/2,width:S?p:p*2,height:w?m:m*2})),!I&&A.createElement("clipPath",{id:"clipPath-dots-".concat(j)},A.createElement("rect",{x:f-D/2,y:u-D/2,width:p+D,height:m+D}))):null,b?null:this.renderArea(O,j),(o||b)&&this.renderDots(O,I,j),(!y||g)&&En.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(E.PureComponent);KN=sn;Jr(sn,"displayName","Area");Jr(sn,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Va.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Jr(sn,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(V(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var f=Math.max(u[0],u[1]),c=Math.min(u[0],u[1]);return s==="dataMin"?c:s==="dataMax"||f<0?f:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Jr(sn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=t.layout,m=u&&u.length,y=KN.getBaseValue(t,r,n,i),v=p==="horizontal",g=!1,b=c.map(function(S,w){var O;m?O=u[f+w]:(O=lt(S,l),Array.isArray(O)?g=!0:O=[y,O]);var j=O[1]==null||m&&lt(S,l)==null;return v?{x:ZS({axis:n,ticks:a,bandSize:s,entry:S,index:w}),y:j?null:i.scale(O[1]),value:O,payload:S}:{x:j?null:n.scale(O[1]),y:ZS({axis:i,ticks:o,bandSize:s,entry:S,index:w}),value:O,payload:S}}),x;return m||g?x=b.map(function(S){var w=Array.isArray(S.value)?S.value[0]:null;return v?{x:S.x,y:w!=null&&S.y!=null?i.scale(w):null}:{x:w!=null?n.scale(w):null,y:S.y}}):x=v?i.scale(y):n.scale(y),Kn({points:b,baseLine:x,layout:p,isRange:g},d)});Jr(sn,"renderDotItem",function(e,t){var r;if(A.isValidElement(e))r=A.cloneElement(e,t);else if(oe(e))r=e(t);else{var n=fe("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=GN(t,Qae);r=A.createElement(Kh,ua({},a,{key:i,className:n}))}return r});function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function aoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ooe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZN(n.key),n)}}function soe(e,t,r){return t&&ooe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function loe(e,t,r){return t=Rd(t),uoe(e,YN()?Reflect.construct(t,r||[],Rd(e).constructor):t.apply(e,r))}function uoe(e,t){if(t&&(gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return coe(e)}function coe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YN=function(){return!!e})()}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rd(e)}function foe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ng(e,t)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ng(e,t)}function JN(e,t,r){return t=ZN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZN(e){var t=doe(e,"string");return gs(t)=="symbol"?t:t+""}function doe(e,t){if(gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}function hoe(e){var t=e.xAxisId,r=Pb(),n=Ab(),i=IN(t);return i==null?null:E.createElement(Ws,ig({},i,{className:fe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return _n(o,!0)}}))}var Ni=function(e){function t(){return aoe(this,t),loe(this,t,arguments)}return foe(t,e),soe(t,[{key:"render",value:function(){return E.createElement(hoe,this.props)}}])}(E.Component);JN(Ni,"displayName","XAxis");JN(Ni,"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});function bs(e){"@babel/helpers - typeof";return bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(e)}function poe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function moe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rT(n.key),n)}}function yoe(e,t,r){return t&&moe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function voe(e,t,r){return t=Dd(t),goe(e,eT()?Reflect.construct(t,r||[],Dd(e).constructor):t.apply(e,r))}function goe(e,t){if(t&&(bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return boe(e)}function boe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eT=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}function xoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ag(e,t)}function ag(e,t){return ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ag(e,t)}function tT(e,t,r){return t=rT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rT(e){var t=woe(e,"string");return bs(t)=="symbol"?t:t+""}function woe(e,t){if(bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},og.apply(this,arguments)}var Soe=function(t){var r=t.yAxisId,n=Pb(),i=Ab(),a=RN(r);return a==null?null:E.createElement(Ws,og({},a,{className:fe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return _n(s,!0)}}))},Ti=function(e){function t(){return poe(this,t),voe(this,t,arguments)}return xoe(t,e),yoe(t,[{key:"render",value:function(){return E.createElement(Soe,this.props)}}])}(E.Component);tT(Ti,"displayName","YAxis");tT(Ti,"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});function Pj(e){return Poe(e)||_oe(e)||joe(e)||Ooe()}function Ooe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function joe(e,t){if(e){if(typeof e=="string")return sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sg(e,t)}}function _oe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Poe(e){if(Array.isArray(e))return sg(e)}function sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var lg=function(t,r,n,i,a){var o=jr(t,Eb),s=jr(t,rp),l=[].concat(Pj(o),Pj(s)),u=jr(t,ip),f="".concat(i,"Id"),c=i[0],d=r;if(l.length&&(d=l.reduce(function(y,v){if(v.props[f]===n&&rn(v.props,"extendDomain")&&V(v.props[c])){var g=v.props[c];return[Math.min(y[0],g),Math.max(y[1],g)]}return y},d)),u.length){var p="".concat(c,"1"),m="".concat(c,"2");d=u.reduce(function(y,v){if(v.props[f]===n&&rn(v.props,"extendDomain")&&V(v.props[p])&&V(v.props[m])){var g=v.props[p],b=v.props[m];return[Math.min(y[0],g,b),Math.max(y[1],g,b)]}return y},d)}return a&&a.length&&(d=a.reduce(function(y,v){return V(v)?[Math.min(y[0],v),Math.max(y[1],v)]:y},d)),d},nT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function a(l,u,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||l,d),m=r?r+u:u;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=r?r+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,m=new Array(p);d<p;d++)m[d]=c[d].fn;return m},s.prototype.listenerCount=function(u){var f=r?r+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,d,p,m){var y=r?r+u:u;if(!this._events[y])return!1;var v=this._events[y],g=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),g){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,f),!0;case 3:return v.fn.call(v.context,f,c),!0;case 4:return v.fn.call(v.context,f,c,d),!0;case 5:return v.fn.call(v.context,f,c,d,p),!0;case 6:return v.fn.call(v.context,f,c,d,p,m),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var S=v.length,w;for(x=0;x<S;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),g){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,f);break;case 3:v[x].fn.call(v[x].context,f,c);break;case 4:v[x].fn.call(v[x].context,f,c,d);break;default:if(!b)for(w=1,b=new Array(g-1);w<g;w++)b[w-1]=arguments[w];v[x].fn.apply(v[x].context,b)}}return!0},s.prototype.on=function(u,f,c){return a(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return a(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,d){var p=r?r+u:u;if(!this._events[p])return this;if(!f)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!d||m.once)&&(!c||m.context===c)&&o(this,p);else{for(var y=0,v=[],g=m.length;y<g;y++)(m[y].fn!==f||d&&!m[y].once||c&&m[y].context!==c)&&v.push(m[y]);v.length?this._events[p]=v.length===1?v[0]:v:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(nT);var Aoe=nT.exports;const koe=_e(Aoe);var dm=new koe,hm="recharts.syncMouseEvents";function Mu(e){"@babel/helpers - typeof";return Mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mu(e)}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Noe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iT(n.key),n)}}function Toe(e,t,r){return t&&Noe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pm(e,t,r){return t=iT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iT(e){var t=Coe(e,"string");return Mu(t)=="symbol"?t:t+""}function Coe(e,t){if(Mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $oe=function(){function e(){Eoe(this,e),pm(this,"activeIndex",0),pm(this,"coordinateList",[]),pm(this,"layout","horizontal")}return Toe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??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(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+l+u,d=o+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function Moe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&V(n)&&V(i))return!0}return!1}function Ioe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function aT(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Me(t,r,n,i),s=Me(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Roe(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,d=Me(s,l,u,c),p=Me(s,l,f,c);n=d.x,i=d.y,a=p.x,o=p.y}else return aT(t);return[{x:n,y:i},{x:a,y:o}]}function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function Aj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Aj(Object(r),!0).forEach(function(n){Doe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Aj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Doe(e,t,r){return t=Loe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Loe(e){var t=zoe(e,"string");return Iu(t)=="symbol"?t:t+""}function zoe(e,t){if(Iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Boe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,y=Eo;if(d==="ScatterChart")m=o,y=lte;else if(d==="BarChart")m=Ioe(c,o,l,f),y=Sb;else if(c==="radial"){var v=aT(o),g=v.cx,b=v.cy,x=v.radius,S=v.startAngle,w=v.endAngle;m={cx:g,cy:b,startAngle:S,endAngle:w,innerRadius:x,outerRadius:x},y=ZE}else m={points:Roe(c,o,l)},y=Eo;var O=zc(zc(zc(zc({stroke:"#ccc",pointerEvents:"none"},l),m),ne(p,!1)),{},{payload:s,payloadIndex:u,className:fe("recharts-tooltip-cursor",p.className)});return E.isValidElement(p)?E.cloneElement(p,O):E.createElement(y,O)}var Foe=["item"],Uoe=["children","className","width","height","style","compact","title","desc"];function xs(e){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(e)}function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},go.apply(this,arguments)}function kj(e,t){return Voe(e)||Hoe(e,t)||sT(e,t)||Woe()}function Woe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hoe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Voe(e){if(Array.isArray(e))return e}function Ej(e,t){if(e==null)return{};var r=qoe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qoe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Goe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lT(n.key),n)}}function Xoe(e,t,r){return t&&Goe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qoe(e,t,r){return t=Ld(t),Yoe(e,oT()?Reflect.construct(t,r||[],Ld(e).constructor):t.apply(e,r))}function Yoe(e,t){if(t&&(xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Joe(e)}function Joe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oT=function(){return!!e})()}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ld(e)}function Zoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ug(e,t)}function ws(e){return rse(e)||tse(e)||sT(e)||ese()}function ese(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sT(e,t){if(e){if(typeof e=="string")return cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cg(e,t)}}function tse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rse(e){if(Array.isArray(e))return cg(e)}function cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nj(Object(r),!0).forEach(function(n){ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ae(e,t,r){return t=lT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lT(e){var t=nse(e,"string");return xs(t)=="symbol"?t:t+""}function nse(e,t){if(xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ise={xAxis:["bottom","top"],yAxis:["left","right"]},ase={width:"100%",height:"100%"},uT={x:0,y:0};function Bc(e){return e}var ose=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},sse=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return z(z(z({},i),Me(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return z(z(z({},i),Me(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return uT},ap=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(ws(s),ws(u)):s},[]);return o.length>0?o:t&&t.length&&V(i)&&V(a)?t.slice(i,a+1):[]};function cT(e){return e==="number"?[0,"auto"]:void 0}var fg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=ap(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?s:c;d=Df(p,o.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(ws(l),[KE(u,d)]):l},[])},Tj=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=ose(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=kY(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=fg(t,r,f,c),p=sse(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},lse=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=FE(f,a);return n.reduce(function(m,y){var v,g=y.type.defaultProps!==void 0?z(z({},y.type.defaultProps),y.props):y.props,b=g.type,x=g.dataKey,S=g.allowDataOverflow,w=g.allowDuplicatedCategory,O=g.scale,j=g.ticks,_=g.includeHidden,P=g[o];if(m[P])return m;var N=ap(t.data,{graphicalItems:i.filter(function(H){var X,ie=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===P}),dataStartIndex:l,dataEndIndex:u}),$=N.length,C,L,R;Moe(g.domain,S,b)&&(C=Pv(g.domain,null,S),p&&(b==="number"||O!=="auto")&&(R=El(N,x,"category")));var I=cT(b);if(!C||C.length===0){var D,F=(D=g.domain)!==null&&D!==void 0?D:I;if(x){if(C=El(N,x,b),b==="category"&&p){var T=v6(C);w&&T?(L=C,C=_d(0,$)):w||(C=nO(F,C,y).reduce(function(H,X){return H.indexOf(X)>=0?H:[].concat(ws(H),[X])},[]))}else if(b==="category")w?C=C.filter(function(H){return H!==""&&!ce(H)}):C=nO(F,C,y).reduce(function(H,X){return H.indexOf(X)>=0||X===""||ce(X)?H:[].concat(ws(H),[X])},[]);else if(b==="number"){var B=$Y(N,i.filter(function(H){var X,ie,be=o in H.props?H.props[o]:(X=H.type.defaultProps)===null||X===void 0?void 0:X[o],ze="hide"in H.props?H.props.hide:(ie=H.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return be===P&&(_||!ze)}),x,a,f);B&&(C=B)}p&&(b==="number"||O!=="auto")&&(R=El(N,x,"category"))}else p?C=_d(0,$):s&&s[P]&&s[P].hasStack&&b==="number"?C=d==="expand"?[0,1]:qE(s[P].stackGroups,l,u):C=BE(N,i.filter(function(H){var X=o in H.props?H.props[o]:H.type.defaultProps[o],ie="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return X===P&&(_||!ie)}),b,f,!0);if(b==="number")C=lg(c,C,P,a,j),F&&(C=Pv(F,C,S));else if(b==="category"&&F){var U=F,K=C.every(function(H){return U.indexOf(H)>=0});K&&(C=U)}}return z(z({},m),{},ae({},P,z(z({},g),{},{axisType:a,domain:C,categoricalDomain:R,duplicateDomain:L,originalDomain:(v=g.domain)!==null&&v!==void 0?v:I,isCategorical:p,layout:f})))},{})},use=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=ap(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=d.length,m=FE(f,a),y=-1;return n.reduce(function(v,g){var b=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,x=b[o],S=cT("number");if(!v[x]){y++;var w;return m?w=_d(0,p):s&&s[x]&&s[x].hasStack?(w=qE(s[x].stackGroups,l,u),w=lg(c,w,x,a)):(w=Pv(S,BE(d,n.filter(function(O){var j,_,P=o in O.props?O.props[o]:(j=O.type.defaultProps)===null||j===void 0?void 0:j[o],N="hide"in O.props?O.props.hide:(_=O.type.defaultProps)===null||_===void 0?void 0:_.hide;return P===x&&!N}),"number",f),i.defaultProps.allowDataOverflow),w=lg(c,w,x,a)),z(z({},v),{},ae({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:lr(ise,"".concat(a,".").concat(y%2),null),domain:w,originalDomain:S,isCategorical:m,layout:f})))}return v},{})},cse=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=jr(f,a),p={};return d&&d.length?p=lse(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=use(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},fse=function(t){var r=Zn(t),n=_n(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:X0(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:dd(r,n)}},Cj=function(t){var r=t.children,n=t.defaultShowTooltip,i=ir(r,fs),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},dse=function(t){return!t||!t.length?!1:t.some(function(r){var n=An(r&&r.type);return n&&n.indexOf("Bar")>=0})},$j=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},hse=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,d=n.margin||{},p=ir(c,fs),m=ir(c,Po),y=Object.keys(l).reduce(function(w,O){var j=l[O],_=j.orientation;return!j.mirror&&!j.hide?z(z({},w),{},ae({},_,w[_]+j.width)):w},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(w,O){var j=o[O],_=j.orientation;return!j.mirror&&!j.hide?z(z({},w),{},ae({},_,lr(w,"".concat(_))+j.height)):w},{top:d.top||0,bottom:d.bottom||0}),g=z(z({},v),y),b=g.bottom;p&&(g.bottom+=p.props.height||fs.defaultProps.height),m&&r&&(g=TY(g,i,n,r));var x=u-g.left-g.right,S=f-g.top-g.bottom;return z(z({brushBottom:b},g),{},{width:Math.max(x,0),height:Math.max(S,0)})},pse=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Cb=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(g,b){var x=b.graphicalItems,S=b.stackGroups,w=b.offset,O=b.updateId,j=b.dataStartIndex,_=b.dataEndIndex,P=g.barSize,N=g.layout,$=g.barGap,C=g.barCategoryGap,L=g.maxBarSize,R=$j(N),I=R.numericAxisName,D=R.cateAxisName,F=dse(x),T=[];return x.forEach(function(B,U){var K=ap(g.data,{graphicalItems:[B],dataStartIndex:j,dataEndIndex:_}),H=B.type.defaultProps!==void 0?z(z({},B.type.defaultProps),B.props):B.props,X=H.dataKey,ie=H.maxBarSize,be=H["".concat(I,"Id")],ze=H["".concat(D,"Id")],we={},gt=l.reduce(function(Ui,Wi){var op=b["".concat(Wi.axisType,"Map")],$b=H["".concat(Wi.axisType,"Id")];op&&op[$b]||Wi.axisType==="zAxis"||La();var Mb=op[$b];return z(z({},Ui),{},ae(ae({},Wi.axisType,Mb),"".concat(Wi.axisType,"Ticks"),_n(Mb)))},we),G=gt[D],le=gt["".concat(D,"Ticks")],ue=S&&S[be]&&S[be].hasStack&&UY(B,S[be].stackGroups),W=An(B.type).indexOf("Bar")>=0,Ve=dd(G,le),ve=[],tt=F&&EY({barSize:P,stackGroups:S,totalSize:pse(gt,D)});if(W){var rt,Bt,Wn=ce(ie)?L:ie,Xa=(rt=(Bt=dd(G,le,!0))!==null&&Bt!==void 0?Bt:Wn)!==null&&rt!==void 0?rt:0;ve=NY({barGap:$,barCategoryGap:C,bandSize:Xa!==Ve?Xa:Ve,sizeList:tt[ze],maxBarSize:Wn}),Xa!==Ve&&(ve=ve.map(function(Ui){return z(z({},Ui),{},{position:z(z({},Ui.position),{},{offset:Ui.position.offset-Xa/2})})}))}var nc=B&&B.type&&B.type.getComposedData;nc&&T.push({props:z(z({},nc(z(z({},gt),{},{displayedData:K,props:g,dataKey:X,item:B,bandSize:Ve,barPosition:ve,offset:w,stackedData:ue,layout:N,dataStartIndex:j,dataEndIndex:_}))),{},ae(ae(ae({key:B.key||"item-".concat(U)},I,gt[I]),D,gt[D]),"animationId",O)),childIndex:N6(B,g.children),item:B})}),T},p=function(g,b){var x=g.props,S=g.dataStartIndex,w=g.dataEndIndex,O=g.updateId;if(!Q1({props:x}))return null;var j=x.children,_=x.layout,P=x.stackOffset,N=x.data,$=x.reverseStackOrder,C=$j(_),L=C.numericAxisName,R=C.cateAxisName,I=jr(j,n),D=BY(N,I,"".concat(L,"Id"),"".concat(R,"Id"),P,$),F=l.reduce(function(H,X){var ie="".concat(X.axisType,"Map");return z(z({},H),{},ae({},ie,cse(x,z(z({},X),{},{graphicalItems:I,stackGroups:X.axisType===L&&D,dataStartIndex:S,dataEndIndex:w}))))},{}),T=hse(z(z({},F),{},{props:x,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(F).forEach(function(H){F[H]=f(x,F[H],T,H.replace("Map",""),r)});var B=F["".concat(R,"Map")],U=fse(B),K=d(x,z(z({},F),{},{dataStartIndex:S,dataEndIndex:w,updateId:O,graphicalItems:I,stackGroups:D,offset:T}));return z(z({formattedGraphicalItems:K,graphicalItems:I,offset:T,stackGroups:D},U),F)},m=function(v){function g(b){var x,S,w;return Koe(this,g),w=Qoe(this,g,[b]),ae(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(w,"accessibilityManager",new $oe),ae(w,"handleLegendBBoxUpdate",function(O){if(O){var j=w.state,_=j.dataStartIndex,P=j.dataEndIndex,N=j.updateId;w.setState(z({legendBBox:O},p({props:w.props,dataStartIndex:_,dataEndIndex:P,updateId:N},z(z({},w.state),{},{legendBBox:O}))))}}),ae(w,"handleReceiveSyncEvent",function(O,j,_){if(w.props.syncId===O){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(j)}}),ae(w,"handleBrushChange",function(O){var j=O.startIndex,_=O.endIndex;if(j!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var P=w.state.updateId;w.setState(function(){return z({dataStartIndex:j,dataEndIndex:_},p({props:w.props,dataStartIndex:j,dataEndIndex:_,updateId:P},w.state))}),w.triggerSyncEvent({dataStartIndex:j,dataEndIndex:_})}}),ae(w,"handleMouseEnter",function(O){var j=w.getMouseInfo(O);if(j){var _=z(z({},j),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var P=w.props.onMouseEnter;oe(P)&&P(_,O)}}),ae(w,"triggeredAfterMouseMove",function(O){var j=w.getMouseInfo(O),_=j?z(z({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var P=w.props.onMouseMove;oe(P)&&P(_,O)}),ae(w,"handleItemMouseEnter",function(O){w.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ae(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(w,"handleMouseMove",function(O){O.persist(),w.throttleTriggeredAfterMouseMove(O)}),ae(w,"handleMouseLeave",function(O){w.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};w.setState(j),w.triggerSyncEvent(j);var _=w.props.onMouseLeave;oe(_)&&_(j,O)}),ae(w,"handleOuterEvent",function(O){var j=E6(O),_=lr(w.props,"".concat(j));if(j&&oe(_)){var P,N;/.*touch.*/i.test(j)?N=w.getMouseInfo(O.changedTouches[0]):N=w.getMouseInfo(O),_((P=N)!==null&&P!==void 0?P:{},O)}}),ae(w,"handleClick",function(O){var j=w.getMouseInfo(O);if(j){var _=z(z({},j),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var P=w.props.onClick;oe(P)&&P(_,O)}}),ae(w,"handleMouseDown",function(O){var j=w.props.onMouseDown;if(oe(j)){var _=w.getMouseInfo(O);j(_,O)}}),ae(w,"handleMouseUp",function(O){var j=w.props.onMouseUp;if(oe(j)){var _=w.getMouseInfo(O);j(_,O)}}),ae(w,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ae(w,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseDown(O.changedTouches[0])}),ae(w,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseUp(O.changedTouches[0])}),ae(w,"handleDoubleClick",function(O){var j=w.props.onDoubleClick;if(oe(j)){var _=w.getMouseInfo(O);j(_,O)}}),ae(w,"handleContextMenu",function(O){var j=w.props.onContextMenu;if(oe(j)){var _=w.getMouseInfo(O);j(_,O)}}),ae(w,"triggerSyncEvent",function(O){w.props.syncId!==void 0&&dm.emit(hm,w.props.syncId,O,w.eventEmitterSymbol)}),ae(w,"applySyncEvent",function(O){var j=w.props,_=j.layout,P=j.syncMethod,N=w.state.updateId,$=O.dataStartIndex,C=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)w.setState(z({dataStartIndex:$,dataEndIndex:C},p({props:w.props,dataStartIndex:$,dataEndIndex:C,updateId:N},w.state)));else if(O.activeTooltipIndex!==void 0){var L=O.chartX,R=O.chartY,I=O.activeTooltipIndex,D=w.state,F=D.offset,T=D.tooltipTicks;if(!F)return;if(typeof P=="function")I=P(T,O);else if(P==="value"){I=-1;for(var B=0;B<T.length;B++)if(T[B].value===O.activeLabel){I=B;break}}var U=z(z({},F),{},{x:F.left,y:F.top}),K=Math.min(L,U.x+U.width),H=Math.min(R,U.y+U.height),X=T[I]&&T[I].value,ie=fg(w.state,w.props.data,I),be=T[I]?{x:_==="horizontal"?T[I].coordinate:K,y:_==="horizontal"?H:T[I].coordinate}:uT;w.setState(z(z({},O),{},{activeLabel:X,activeCoordinate:be,activePayload:ie,activeTooltipIndex:I}))}else w.setState(O)}),ae(w,"renderCursor",function(O){var j,_=w.state,P=_.isTooltipActive,N=_.activeCoordinate,$=_.activePayload,C=_.offset,L=_.activeTooltipIndex,R=_.tooltipAxisBandSize,I=w.getTooltipEventType(),D=(j=O.props.active)!==null&&j!==void 0?j:P,F=w.props.layout,T=O.key||"_recharts-cursor";return A.createElement(Boe,{key:T,activeCoordinate:N,activePayload:$,activeTooltipIndex:L,chartName:r,element:O,isActive:D,layout:F,offset:C,tooltipAxisBandSize:R,tooltipEventType:I})}),ae(w,"renderPolarAxis",function(O,j,_){var P=lr(O,"type.axisType"),N=lr(w.state,"".concat(P,"Map")),$=O.type.defaultProps,C=$!==void 0?z(z({},$),O.props):O.props,L=N&&N[C["".concat(P,"Id")]];return E.cloneElement(O,z(z({},L),{},{className:fe(P,L.className),key:O.key||"".concat(j,"-").concat(_),ticks:_n(L,!0)}))}),ae(w,"renderPolarGrid",function(O){var j=O.props,_=j.radialLines,P=j.polarAngles,N=j.polarRadius,$=w.state,C=$.radiusAxisMap,L=$.angleAxisMap,R=Zn(C),I=Zn(L),D=I.cx,F=I.cy,T=I.innerRadius,B=I.outerRadius;return E.cloneElement(O,{polarAngles:Array.isArray(P)?P:_n(I,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(N)?N:_n(R,!0).map(function(U){return U.coordinate}),cx:D,cy:F,innerRadius:T,outerRadius:B,key:O.key||"polar-grid",radialLines:_})}),ae(w,"renderLegend",function(){var O=w.state.formattedGraphicalItems,j=w.props,_=j.children,P=j.width,N=j.height,$=w.props.margin||{},C=P-($.left||0)-($.right||0),L=LE({children:_,formattedGraphicalItems:O,legendWidth:C,legendContent:u});if(!L)return null;var R=L.item,I=Ej(L,Foe);return E.cloneElement(R,z(z({},I),{},{chartWidth:P,chartHeight:N,margin:$,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),ae(w,"renderTooltip",function(){var O,j=w.props,_=j.children,P=j.accessibilityLayer,N=ir(_,Wt);if(!N)return null;var $=w.state,C=$.isTooltipActive,L=$.activeCoordinate,R=$.activePayload,I=$.activeLabel,D=$.offset,F=(O=N.props.active)!==null&&O!==void 0?O:C;return E.cloneElement(N,{viewBox:z(z({},D),{},{x:D.left,y:D.top}),active:F,label:I,payload:F?R:[],coordinate:L,accessibilityLayer:P})}),ae(w,"renderBrush",function(O){var j=w.props,_=j.margin,P=j.data,N=w.state,$=N.offset,C=N.dataStartIndex,L=N.dataEndIndex,R=N.updateId;return E.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Ic(w.handleBrushChange,O.props.onChange),data:P,x:V(O.props.x)?O.props.x:$.left,y:V(O.props.y)?O.props.y:$.top+$.height+$.brushBottom-(_.bottom||0),width:V(O.props.width)?O.props.width:$.width,startIndex:C,endIndex:L,updateId:"brush-".concat(R)})}),ae(w,"renderReferenceElement",function(O,j,_){if(!O)return null;var P=w,N=P.clipPathId,$=w.state,C=$.xAxisMap,L=$.yAxisMap,R=$.offset,I=O.type.defaultProps||{},D=O.props,F=D.xAxisId,T=F===void 0?I.xAxisId:F,B=D.yAxisId,U=B===void 0?I.yAxisId:B;return E.cloneElement(O,{key:O.key||"".concat(j,"-").concat(_),xAxis:C[T],yAxis:L[U],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:N})}),ae(w,"renderActivePoints",function(O){var j=O.item,_=O.activePoint,P=O.basePoint,N=O.childIndex,$=O.isRange,C=[],L=j.props.key,R=j.item.type.defaultProps!==void 0?z(z({},j.item.type.defaultProps),j.item.props):j.item.props,I=R.activeDot,D=R.dataKey,F=z(z({index:N,dataKey:D,cx:_.x,cy:_.y,r:4,fill:wb(j.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},ne(I,!1)),Lf(I));return C.push(g.renderActiveDot(I,F,"".concat(L,"-activePoint-").concat(N))),P?C.push(g.renderActiveDot(I,z(z({},F),{},{cx:P.x,cy:P.y}),"".concat(L,"-basePoint-").concat(N))):$&&C.push(null),C}),ae(w,"renderGraphicChild",function(O,j,_){var P=w.filterFormatItem(O,j,_);if(!P)return null;var N=w.getTooltipEventType(),$=w.state,C=$.isTooltipActive,L=$.tooltipAxis,R=$.activeTooltipIndex,I=$.activeLabel,D=w.props.children,F=ir(D,Wt),T=P.props,B=T.points,U=T.isRange,K=T.baseLine,H=P.item.type.defaultProps!==void 0?z(z({},P.item.type.defaultProps),P.item.props):P.item.props,X=H.activeDot,ie=H.hide,be=H.activeBar,ze=H.activeShape,we=!!(!ie&&C&&F&&(X||be||ze)),gt={};N!=="axis"&&F&&F.props.trigger==="click"?gt={onClick:Ic(w.handleItemMouseEnter,O.props.onClick)}:N!=="axis"&&(gt={onMouseLeave:Ic(w.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Ic(w.handleItemMouseEnter,O.props.onMouseEnter)});var G=E.cloneElement(O,z(z({},P.props),gt));function le(Wi){return typeof L.dataKey=="function"?L.dataKey(Wi.payload):null}if(we)if(R>=0){var ue,W;if(L.dataKey&&!L.allowDuplicatedCategory){var Ve=typeof L.dataKey=="function"?le:"payload.".concat(L.dataKey.toString());ue=Df(B,Ve,I),W=U&&K&&Df(K,Ve,I)}else ue=B==null?void 0:B[R],W=U&&K&&K[R];if(ze||be){var ve=O.props.activeIndex!==void 0?O.props.activeIndex:R;return[E.cloneElement(O,z(z(z({},P.props),gt),{},{activeIndex:ve})),null,null]}if(!ce(ue))return[G].concat(ws(w.renderActivePoints({item:P,activePoint:ue,basePoint:W,childIndex:R,isRange:U})))}else{var tt,rt=(tt=w.getItemByXY(w.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:G},Bt=rt.graphicalItem,Wn=Bt.item,Xa=Wn===void 0?O:Wn,nc=Bt.childIndex,Ui=z(z(z({},P.props),gt),{},{activeIndex:nc});return[E.cloneElement(Xa,Ui),null,null]}return U?[G,null,null]:[G,null]}),ae(w,"renderCustomized",function(O,j,_){return E.cloneElement(O,z(z({key:"recharts-customized-".concat(_)},w.props),w.state))}),ae(w,"renderMap",{CartesianGrid:{handler:Bc,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Bc},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Bc},YAxis:{handler:Bc},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:Rs("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=Lk(w.triggeredAfterMouseMove,(S=b.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return Zoe(g,v),Xoe(g,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,w=x.data,O=x.height,j=x.layout,_=ir(S,Wt);if(_){var P=_.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,$=fg(this.state,w,P,N),C=this.state.tooltipTicks[P].coordinate,L=(this.state.offset.top+O)/2,R=j==="horizontal",I=R?{x:C,y:L}:{y:C,x:L},D=this.state.formattedGraphicalItems.find(function(T){var B=T.item;return B.type.name==="Scatter"});D&&(I=z(z({},I),D.props.points[P].tooltipPosition),$=D.props.points[P].tooltipPayload);var F={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:N,activePayload:$,activeCoordinate:I};this.setState(F),this.renderCursor(_),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,O;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){Fy([ir(x.children,Wt)],[ir(this.props.children,Wt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=ir(this.props.children,Wt);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),O=rK(w),j={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},_=w.width/S.offsetWidth||1,P=this.inRange(j.chartX,j.chartY,_);if(!P)return null;var N=this.state,$=N.xAxisMap,C=N.yAxisMap,L=this.getTooltipEventType(),R=Tj(this.state,this.props.data,this.props.layout,P);if(L!=="axis"&&$&&C){var I=Zn($).scale,D=Zn(C).scale,F=I&&I.invert?I.invert(j.chartX):null,T=D&&D.invert?D.invert(j.chartY):null;return z(z({},j),{},{xValue:F,yValue:T},R)}return R?z(z({},j),R):null}},{key:"inRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,j=x/w,_=S/w;if(O==="horizontal"||O==="vertical"){var P=this.state.offset,N=j>=P.left&&j<=P.left+P.width&&_>=P.top&&_<=P.top+P.height;return N?{x:j,y:_}:null}var $=this.state,C=$.angleAxisMap,L=$.radiusAxisMap;if(C&&L){var R=Zn(C);return oO({x:j,y:_},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),w=ir(x,Wt),O={};w&&S==="axis"&&(w.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var j=Lf(this.props,this.handleOuterEvent);return z(z({},j),O)}},{key:"addListener",value:function(){dm.on(hm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){dm.removeListener(hm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,w){for(var O=this.state.formattedGraphicalItems,j=0,_=O.length;j<_;j++){var P=O[j];if(P.item===x||P.props.key===x.key||S===An(P.item.type)&&w===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,w=S.left,O=S.top,j=S.height,_=S.width;return A.createElement("defs",null,A.createElement("clipPath",{id:x},A.createElement("rect",{x:w,y:O,height:j,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,w){var O=kj(w,2),j=O[0],_=O[1];return z(z({},S),{},ae({},j,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,w){var O=kj(w,2),j=O[0],_=O[1];return z(z({},S),{},ae({},j,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,w=S.formattedGraphicalItems,O=S.activeItem;if(w&&w.length)for(var j=0,_=w.length;j<_;j++){var P=w[j],N=P.props,$=P.item,C=$.type.defaultProps!==void 0?z(z({},$.type.defaultProps),$.props):$.props,L=An($.type);if(L==="Bar"){var R=(N.data||[]).find(function(T){return Uee(x,T)});if(R)return{graphicalItem:P,payload:R}}else if(L==="RadialBar"){var I=(N.data||[]).find(function(T){return oO(x,T)});if(I)return{graphicalItem:P,payload:I}}else if(Jh(P,O)||Zh(P,O)||ku(P,O)){var D=Nre({graphicalItem:P,activeTooltipItem:O,itemData:C.data}),F=C.activeIndex===void 0?D:C.activeIndex;return{graphicalItem:z(z({},P),{},{childIndex:F}),payload:ku(P,O)?C.data[D]:P.props.data[D]}}}return null}},{key:"render",value:function(){var x=this;if(!Q1(this))return null;var S=this.props,w=S.children,O=S.className,j=S.width,_=S.height,P=S.style,N=S.compact,$=S.title,C=S.desc,L=Ej(S,Uoe),R=ne(L,!1);if(N)return A.createElement(fj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement(Wy,go({},R,{width:j,height:_,title:$,desc:C}),this.renderClipPath(),J1(w,this.renderMap)));if(this.props.accessibilityLayer){var I,D;R.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,R.role=(D=this.props.role)!==null&&D!==void 0?D:"application",R.onKeyDown=function(T){x.accessibilityManager.keyboardEvent(T)},R.onFocus=function(){x.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return A.createElement(fj,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},A.createElement("div",go({className:fe("recharts-wrapper",O),style:z({position:"relative",cursor:"default",width:j,height:_},P)},F,{ref:function(B){x.container=B}}),A.createElement(Wy,go({},R,{width:j,height:_,title:$,desc:C,style:ase}),this.renderClipPath(),J1(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(E.Component);ae(m,"displayName",r),ae(m,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(m,"getDerivedStateFromProps",function(v,g){var b=v.dataKey,x=v.data,S=v.children,w=v.width,O=v.height,j=v.layout,_=v.stackOffset,P=v.margin,N=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var C=Cj(v);return z(z(z({},C),{},{updateId:0},p(z(z({props:v},C),{},{updateId:0}),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:O,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:S})}if(b!==g.prevDataKey||x!==g.prevData||w!==g.prevWidth||O!==g.prevHeight||j!==g.prevLayout||_!==g.prevStackOffset||!_o(P,g.prevMargin)){var L=Cj(v),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},I=z(z({},Tj(g,x,j)),{},{updateId:g.updateId+1}),D=z(z(z({},L),R),I);return z(z(z({},D),p(z({props:v},D),g)),{},{prevDataKey:b,prevData:x,prevWidth:w,prevHeight:O,prevLayout:j,prevStackOffset:_,prevMargin:P,prevChildren:S})}if(!Fy(S,g.prevChildren)){var F,T,B,U,K=ir(S,fs),H=K&&(F=(T=K.props)===null||T===void 0?void 0:T.startIndex)!==null&&F!==void 0?F:N,X=K&&(B=(U=K.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:$,ie=H!==N||X!==$,be=!ce(x),ze=be&&!ie?g.updateId:g.updateId+1;return z(z({updateId:ze},p(z(z({props:v},g),{},{updateId:ze,dataStartIndex:H,dataEndIndex:X}),g)),{},{prevChildren:S,dataStartIndex:H,dataEndIndex:X})}return null}),ae(m,"renderActiveDot",function(v,g,b){var x;return E.isValidElement(v)?x=E.cloneElement(v,g):oe(v)?x=v(g):x=A.createElement(Kh,g),A.createElement(ye,{className:"recharts-active-dot",key:b},x)});var y=E.forwardRef(function(g,b){return A.createElement(m,go({},g,{ref:b}))});return y.displayName=m.displayName,y},fT=Cb({chartName:"BarChart",GraphicalChild:Fi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ti}],formatAxisMap:AN}),mse=Cb({chartName:"PieChart",GraphicalChild:Un,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Yh},{axisType:"radiusAxis",AxisComp:Xh}],formatAxisMap:JY,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),dT=Cb({chartName:"AreaChart",GraphicalChild:sn,axisComponents:[{axisType:"xAxis",AxisComp:Ni},{axisType:"yAxis",AxisComp:Ti}],formatAxisMap:AN});const Mj=["#6366f1","#22c55e","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],yse=()=>h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("div",{className:"skeleton h-3 w-20"}),h.jsx("div",{className:"skeleton h-8 w-16"})]}),h.jsx("div",{className:"skeleton h-10 w-10 rounded-lg"})]})}),mm=()=>h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("div",{className:"skeleton h-4 w-32"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"skeleton h-56 w-full rounded-lg"})})]}),ym=({active:e,payload:t,label:r})=>!e||!t?null:h.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[h.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>h.jsxs("p",{className:"text-white font-medium",children:[h.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function vse(){const{currentOrg:e}=Zt(),{data:t,isLoading:r}=Ai({queryKey:["issues-stats",e==null?void 0:e.id],queryFn:()=>_l.stats(e.id),enabled:!!e}),{data:n,isLoading:i}=Ai({queryKey:["report-summary",e==null?void 0:e.id],queryFn:()=>$y.summary(e.id,14),enabled:!!e});if(!e)return h.jsx("div",{className:"flex-1 flex items-center justify-center p-8",children:h.jsxs("div",{className:"text-center max-w-md",children:[h.jsx("div",{className:"w-16 h-16 rounded-2xl bg-indigo-600/10 flex items-center justify-center mx-auto mb-4",children:h.jsx($a,{size:28,className:"text-indigo-400"})}),h.jsx("h2",{className:"text-xl font-semibold text-white mb-2",children:"Select an organization"}),h.jsx("p",{className:"text-gray-400 text-sm",children:"Choose an organization from the sidebar to view your dashboard and manage issues."})]})});const a=(t==null?void 0:t.data)||{},o=(n==null?void 0:n.data)||{},s=r||i,l=[{label:"Total Issues",value:a.total||0,icon:_0,color:"text-blue-400",bg:"bg-blue-500/10",trend:"+12%",up:!0},{label:"Analyzed",value:a.analyzed||0,icon:ki,color:"text-emerald-400",bg:"bg-emerald-500/10",trend:"+8%",up:!0},{label:"PRs Created",value:a.pr_created||0,icon:fh,color:"text-purple-400",bg:"bg-purple-500/10",trend:"+15%",up:!0},{label:"Avg Confidence",value:a.avg_confidence?`${(a.avg_confidence*100).toFixed(0)}%`:"N/A",icon:m4,color:"text-amber-400",bg:"bg-amber-500/10",trend:"+3%",up:!0}],u=[{name:"Pending",value:a.pending||0},{name:"Analyzing",value:a.analyzing||0},{name:"Analyzed",value:a.analyzed||0},{name:"PR Created",value:a.pr_created||0},{name:"Error",value:a.error||0}].filter(c=>c.value>0),f=Object.entries(a.by_source||{}).map(([c,d])=>({name:c.replace("_"," ").replace(/\b\w/g,p=>p.toUpperCase()),value:d}));return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Dashboard"}),h.jsx("p",{className:"page-subtitle",children:"Overview of your issue analysis pipeline"})]}),h.jsx("div",{className:"flex items-center gap-2",children:h.jsxs("span",{className:"badge badge-green",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),"System operational"]})})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s?Array(4).fill(0).map((c,d)=>h.jsx(yse,{},d)):l.map(c=>{const d=c.icon;return h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:c.label}),h.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:c.value}),h.jsxs("div",{className:ke("flex items-center gap-1 mt-1.5 text-xs font-medium",c.up?"text-emerald-400":"text-red-400"),children:[c.up?h.jsx(O4,{size:12}):h.jsx(w4,{size:12}),c.trend,h.jsx("span",{className:"text-gray-500 font-normal ml-0.5",children:"vs last week"})]})]}),h.jsx("div",{className:ke("w-11 h-11 rounded-xl flex items-center justify-center",c.bg),children:h.jsx(d,{size:20,className:c.color})})]})},c.label)})}),h.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 mb-6",children:s?h.jsxs(h.Fragment,{children:[h.jsx(mm,{}),h.jsx(mm,{})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"card",children:[h.jsxs("div",{className:"card-header",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Issues Trend"}),h.jsx("span",{className:"badge badge-gray text-[10px]",children:"Last 14 days"})]}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-56",children:h.jsx(Pl,{width:"100%",height:"100%",children:h.jsxs(dT,{data:o.daily_breakdown||[],children:[h.jsxs("defs",{children:[h.jsxs("linearGradient",{id:"colorTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),h.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]}),h.jsxs("linearGradient",{id:"colorAnalyzed",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"5%",stopColor:"#22c55e",stopOpacity:.3}),h.jsx("stop",{offset:"95%",stopColor:"#22c55e",stopOpacity:0})]})]}),h.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),h.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ti,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(ym,{})}),h.jsx(sn,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#colorTotal)",strokeWidth:2,name:"Total"}),h.jsx(sn,{type:"monotone",dataKey:"analyzed",stroke:"#22c55e",fill:"url(#colorAnalyzed)",strokeWidth:2,name:"Analyzed"})]})})})})]}),h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Status Distribution"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-56 flex items-center",children:u.length>0?h.jsx(Pl,{width:"100%",height:"100%",children:h.jsxs(mse,{children:[h.jsx(Un,{data:u,cx:"50%",cy:"50%",innerRadius:55,outerRadius:80,paddingAngle:4,dataKey:"value",label:({name:c,percent:d})=>`${c} ${(d*100).toFixed(0)}%`,children:u.map((c,d)=>h.jsx(Ih,{fill:Mj[d%Mj.length]},c.name))}),h.jsx(Wt,{content:h.jsx(ym,{})})]})}):h.jsxs("div",{className:"w-full text-center",children:[h.jsx(Ry,{size:24,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"})]})})})]})]})}),s?h.jsx(mm,{}):h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Issues by Source"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-56",children:f.length>0?h.jsx(Pl,{width:"100%",height:"100%",children:h.jsxs(fT,{data:f,layout:"vertical",children:[h.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),h.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ti,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(ym,{})}),h.jsx(Fi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:24,name:"Issues"})]})}):h.jsx("div",{className:"h-full flex items-center justify-center",children:h.jsxs("div",{className:"text-center",children:[h.jsx(Ry,{size:24,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No data yet"}),h.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Connect an integration to start tracking"})]})})})})]})]})}const Fc={pending:{badge:"badge-yellow",icon:ch,label:"Pending"},analyzing:{badge:"badge-blue",icon:nn,label:"Analyzing"},analyzed:{badge:"badge-green",icon:ki,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:fh,label:"PR Created"},completed:{badge:"badge-gray",icon:ki,label:"Completed"},error:{badge:"badge-red",icon:j0,label:"Error"}},Ij={critical:{badge:"badge-red",label:"Critical"},high:{badge:"badge-yellow",label:"High"},medium:{badge:"badge-blue",label:"Medium"},low:{badge:"badge-green",label:"Low"}},gse={jira_cloud:"🔵",servicenow:"⚙️",zendesk:"💚",github:"🐙",gitlab:"🦊",tickethub:"🎫",generic:"📝"},bse=()=>h.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[h.jsx("div",{className:"skeleton h-4 w-20"}),h.jsxs("div",{className:"flex-1 space-y-1.5",children:[h.jsx("div",{className:"skeleton h-4 w-3/4"}),h.jsx("div",{className:"skeleton h-3 w-1/4"})]}),h.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function xse(){var c,d;const{currentOrg:e}=Zt(),[t,r]=E.useState({status:"",source:""}),[n,i]=E.useState(""),[a,o]=E.useState(!1),{data:s,isLoading:l}=Ai({queryKey:["issues",e==null?void 0:e.id,t],queryFn:()=>_l.list(e.id,t),enabled:!!e});if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const u=((s==null?void 0:s.data)||[]).filter(p=>{var m,y;return!n||((m=p.title)==null?void 0:m.toLowerCase().includes(n.toLowerCase()))||((y=p.external_key)==null?void 0:y.toLowerCase().includes(n.toLowerCase()))}),f={};return((s==null?void 0:s.data)||[]).forEach(p=>{f[p.status]=(f[p.status]||0)+1}),h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Issues"}),h.jsxs("p",{className:"page-subtitle",children:[((c=s==null?void 0:s.data)==null?void 0:c.length)||0," total issues"]})]}),h.jsxs("button",{className:"btn btn-primary",children:[h.jsx(Ei,{size:16}),"New Issue"]})]}),h.jsxs("div",{className:"flex items-center gap-1 mb-4 overflow-x-auto pb-1",children:[h.jsxs("button",{onClick:()=>r({...t,status:""}),className:ke("badge cursor-pointer transition-all",t.status?"badge-gray hover:bg-gray-700/50":"badge-indigo"),children:["All ",((d=s==null?void 0:s.data)==null?void 0:d.length)||0]}),Object.entries(Fc).map(([p,m])=>{const y=f[p]||0;return!y&&p!=="pending"?null:h.jsxs("button",{onClick:()=>r({...t,status:t.status===p?"":p}),className:ke("badge cursor-pointer transition-all",t.status===p?m.badge:"badge-gray hover:bg-gray-700/50"),children:[m.label," ",y]},p)})]}),h.jsxs("div",{className:"card mb-4",children:[h.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[h.jsx(af,{size:16,className:"text-gray-500"}),h.jsx("input",{value:n,onChange:p=>i(p.target.value),placeholder:"Search issues by title or key...",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-gray-500"}),h.jsxs("button",{onClick:()=>o(!a),className:ke("btn btn-sm btn-ghost",a&&"text-indigo-400"),children:[h.jsx(f4,{size:14}),"Filters"]})]}),a&&h.jsxs("div",{className:"px-4 py-3 border-t border-gray-800/50 flex items-center gap-3 animate-slide-up",children:[h.jsxs("select",{value:t.status,onChange:p=>r({...t,status:p.target.value}),className:"input-sm input w-36",children:[h.jsx("option",{value:"",children:"All Status"}),Object.entries(Fc).map(([p,m])=>h.jsx("option",{value:p,children:m.label},p))]}),h.jsxs("select",{value:t.source,onChange:p=>r({...t,source:p.target.value}),className:"input-sm input w-36",children:[h.jsx("option",{value:"",children:"All Sources"}),h.jsx("option",{value:"jira_cloud",children:"JIRA"}),h.jsx("option",{value:"servicenow",children:"ServiceNow"}),h.jsx("option",{value:"zendesk",children:"Zendesk"}),h.jsx("option",{value:"github",children:"GitHub"}),h.jsx("option",{value:"gitlab",children:"GitLab"}),h.jsx("option",{value:"tickethub",children:"TicketHub"})]}),(t.status||t.source)&&h.jsx("button",{onClick:()=>r({status:"",source:""}),className:"btn btn-sm btn-ghost text-red-400",children:"Clear"})]})]}),h.jsxs("div",{className:"card overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[h.jsx("div",{className:"w-24",children:"Key"}),h.jsx("div",{className:"flex-1",children:"Title"}),h.jsx("div",{className:"w-24",children:"Status"}),h.jsx("div",{className:"w-20",children:"Priority"}),h.jsx("div",{className:"w-20",children:"Confidence"}),h.jsx("div",{className:"w-8"})]}),l?Array(5).fill(0).map((p,m)=>h.jsx(bse,{},m)):u.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:h.jsx(_0,{size:24,className:"text-gray-600"})}),h.jsx("p",{className:"text-gray-400 font-medium",children:"No issues found"}),h.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Issues from your integrations will appear here"})]}):u.map(p=>{var g;const m=Fc[p.status]||Fc.pending,y=Ij[p.priority]||Ij.medium,v=m.icon;return h.jsxs(Ea,{to:`/issues/${p.id}`,className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[h.jsx("div",{className:"w-24",children:h.jsx("span",{className:"font-mono text-xs text-indigo-400",children:p.external_key||`#${p.id}`})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium truncate group-hover:text-white transition-colors",children:p.title}),h.jsx("p",{className:"text-xs text-gray-500 mt-0.5 flex items-center gap-2",children:h.jsxs("span",{children:[gse[p.source]||"📝"," ",(g=p.source)==null?void 0:g.replace("_"," ")]})})]}),h.jsx("div",{className:"w-24",children:h.jsxs("span",{className:ke("badge text-[10px]",m.badge),children:[h.jsx(v,{size:10,className:p.status==="analyzing"?"animate-spin":""}),m.label]})}),h.jsx("div",{className:"w-20",children:h.jsx("span",{className:ke("badge text-[10px]",y.badge),children:y.label})}),h.jsx("div",{className:"w-20",children:p.confidence?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex-1 bg-gray-800 rounded-full h-1.5",children:h.jsx("div",{className:"bg-indigo-500 h-1.5 rounded-full transition-all",style:{width:`${p.confidence*100}%`}})}),h.jsxs("span",{className:"text-[10px] text-gray-400 font-mono w-7 text-right",children:[(p.confidence*100).toFixed(0),"%"]})]}):h.jsx("span",{className:"text-xs text-gray-600",children:"—"})}),h.jsx("div",{className:"w-8",children:h.jsx(Iy,{size:14,className:"text-gray-600 group-hover:text-gray-400 transition-colors"})})]},p.id)})]})]})}const Rj={pending:{badge:"badge-yellow",icon:ch,label:"Pending"},analyzing:{badge:"badge-blue",icon:nn,label:"Analyzing"},analyzed:{badge:"badge-green",icon:ki,label:"Analyzed"},pr_created:{badge:"badge-purple",icon:fh,label:"PR Created"},completed:{badge:"badge-gray",icon:ki,label:"Completed"},error:{badge:"badge-red",icon:j0,label:"Error"}},wse=()=>h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsx("div",{className:"skeleton h-4 w-24 mb-6"}),h.jsxs("div",{className:"flex items-start justify-between mb-6",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"skeleton h-6 w-20"}),h.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]}),h.jsx("div",{className:"skeleton h-7 w-96"}),h.jsx("div",{className:"skeleton h-4 w-48"})]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"}),h.jsx("div",{className:"skeleton h-9 w-28 rounded-lg"})]})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[h.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})}),h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-48 w-full rounded-lg"})})]}),h.jsxs("div",{className:"space-y-5",children:[h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-24 w-full rounded-lg"})}),h.jsx("div",{className:"card card-body",children:h.jsx("div",{className:"skeleton h-32 w-full rounded-lg"})})]})]})]});function Sse(){var S,w,O,j;const{id:e}=bM(),{currentOrg:t}=Zt(),r=rh(),[n,i]=E.useState("analysis"),[a,o]=E.useState(""),[s,l]=E.useState(!1),{data:u,isLoading:f}=Ai({queryKey:["issue",t==null?void 0:t.id,e],queryFn:()=>_l.get(t.id,e),enabled:!!t}),c=Mf({mutationFn:()=>_l.reanalyze(t.id,e),onSuccess:()=>r.invalidateQueries(["issue",t==null?void 0:t.id,e])}),d=Mf({mutationFn:_=>_l.addComment(t.id,e,{content:_}),onSuccess:()=>{r.invalidateQueries(["issue",t==null?void 0:t.id,e]),o("")}}),p=_=>{navigator.clipboard.writeText(_),l(!0),setTimeout(()=>l(!1),2e3)};if(!t)return null;if(f)return h.jsx(wse,{});const m=u==null?void 0:u.data;if(!m)return h.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[h.jsx(Ry,{size:40,className:"text-gray-600 mb-3"}),h.jsx("p",{className:"text-gray-400 font-medium",children:"Issue not found"}),h.jsx(Ea,{to:"/issues",className:"text-indigo-400 text-sm mt-2 hover:underline",children:"← Back to Issues"})]});const y=Rj[m.status]||Rj.pending,v=y.icon,g=m.confidence?(m.confidence*100).toFixed(0):null,b=m.confidence>.8?"text-emerald-400":m.confidence>.5?"text-amber-400":"text-red-400",x=[{id:"analysis",label:"Analysis",icon:M1},{id:"code",label:"Suggested Fix",icon:Dy},{id:"comments",label:"Comments",icon:G3}];return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs(Ea,{to:"/issues",className:"inline-flex items-center gap-1.5 text-sm text-gray-400 hover:text-white transition-colors mb-5",children:[h.jsx(r3,{size:14}),"Back to Issues"]}),h.jsxs("div",{className:"flex items-start justify-between mb-6",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[h.jsx("span",{className:"font-mono text-lg text-indigo-400 font-semibold",children:m.external_key||`#${m.id}`}),h.jsxs("span",{className:ke("badge",y.badge),children:[h.jsx(v,{size:12,className:m.status==="analyzing"?"animate-spin":""}),y.label]}),m.priority&&h.jsx("span",{className:ke("badge",m.priority==="critical"?"badge-red":m.priority==="high"?"badge-yellow":m.priority==="medium"?"badge-blue":"badge-green"),children:m.priority})]}),h.jsx("h1",{className:"text-xl font-semibold text-white",children:m.title}),h.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-gray-500",children:[h.jsxs("span",{className:"flex items-center gap-1",children:[h.jsx(l3,{size:12})," ",new Date(m.created_at).toLocaleDateString()]}),h.jsxs("span",{children:["Source: ",(S=m.source)==null?void 0:S.replace("_"," ")]})]})]}),h.jsxs("div",{className:"flex gap-2",children:[m.external_url&&h.jsxs("a",{href:m.external_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-secondary btn-sm",children:[h.jsx(I1,{size:14}),"Original"]}),h.jsxs("button",{onClick:()=>c.mutate(),disabled:c.isPending,className:"btn btn-primary btn-sm",children:[c.isPending?h.jsx(nn,{size:14,className:"animate-spin"}):h.jsx(n4,{size:14}),"Re-analyze"]})]})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[h.jsxs("div",{className:"lg:col-span-2 space-y-5",children:[h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(C3,{size:14,className:"text-gray-500"}),"Description"]})}),h.jsx("div",{className:"card-body",children:h.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.description||"No description provided."})})]}),h.jsxs("div",{className:"card overflow-hidden",children:[h.jsx("div",{className:"flex items-center gap-0 border-b border-gray-800/50 px-1",children:x.map(_=>{const P=_.icon;return h.jsxs("button",{onClick:()=>i(_.id),className:ke("flex items-center gap-2 px-4 py-3 text-sm font-medium border-b-2 transition-all -mb-px",n===_.id?"border-indigo-500 text-indigo-400":"border-transparent text-gray-500 hover:text-gray-300"),children:[h.jsx(P,{size:14}),_.label]},_.id)})}),h.jsxs("div",{className:"card-body",children:[n==="analysis"&&h.jsx("div",{className:"space-y-4 animate-fade-in",children:m.root_cause?h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/5 border border-emerald-500/10",children:[h.jsxs("h4",{className:"text-sm font-semibold text-emerald-400 mb-2 flex items-center gap-2",children:[h.jsx(F3,{size:14}),"Root Cause Analysis"]}),h.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-sans leading-relaxed",children:m.root_cause})]}),((w=m.affected_files)==null?void 0:w.length)>0&&h.jsxs("div",{children:[h.jsxs("h4",{className:"text-sm font-semibold text-gray-300 mb-2 flex items-center gap-2",children:[h.jsx(M3,{size:14,className:"text-gray-500"}),"Affected Files"]}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.affected_files.map(_=>h.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:_},_))})]})]}):h.jsxs("div",{className:"text-center py-8",children:[h.jsx(M1,{size:28,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No analysis available yet"}),h.jsx("p",{className:"text-gray-600 text-xs mt-1",children:'Click "Re-analyze" to start AI analysis'})]})}),n==="code"&&h.jsx("div",{className:"animate-fade-in",children:m.suggested_fix?h.jsxs("div",{className:"relative",children:[h.jsx("button",{onClick:()=>p(m.suggested_fix),className:"absolute top-2 right-2 btn btn-ghost btn-sm text-gray-500",children:s?h.jsx(f3,{size:14,className:"text-emerald-400"}):h.jsx(Ly,{size:14})}),h.jsx("pre",{className:"whitespace-pre-wrap text-sm text-gray-300 font-mono bg-gray-950 p-4 rounded-lg border border-gray-800 overflow-x-auto leading-relaxed",children:m.suggested_fix})]}):h.jsxs("div",{className:"text-center py-8",children:[h.jsx(Dy,{size:28,className:"text-gray-600 mx-auto mb-2"}),h.jsx("p",{className:"text-gray-500 text-sm",children:"No suggested fix available"})]})}),n==="comments"&&h.jsxs("div",{className:"space-y-4 animate-fade-in",children:[((O=m.comments)==null?void 0:O.length)>0?m.comments.map((_,P)=>{var N,$;return h.jsxs("div",{className:"flex gap-3",children:[h.jsx("div",{className:"w-7 h-7 rounded-lg bg-gray-800 flex items-center justify-center flex-shrink-0 text-xs font-medium text-gray-400",children:(($=(N=_.author)==null?void 0:N[0])==null?void 0:$.toUpperCase())||"?"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[h.jsx("span",{className:"text-sm font-medium text-gray-300",children:_.author||"System"}),h.jsx("span",{className:"text-xs text-gray-600",children:new Date(_.created_at).toLocaleString()})]}),h.jsx("p",{className:"text-sm text-gray-400",children:_.content})]})]},P)}):h.jsx("p",{className:"text-sm text-gray-500 text-center py-4",children:"No comments yet"}),h.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-gray-800/50",children:[h.jsx("input",{value:a,onChange:_=>o(_.target.value),placeholder:"Add a comment...",className:"input flex-1",onKeyDown:_=>_.key==="Enter"&&a.trim()&&d.mutate(a)}),h.jsx("button",{onClick:()=>a.trim()&&d.mutate(a),disabled:!a.trim()||d.isPending,className:"btn btn-primary btn-sm",children:d.isPending?h.jsx(nn,{size:14,className:"animate-spin"}):h.jsx(s4,{size:14})})]})]})]})]})]}),h.jsxs("div",{className:"space-y-5",children:[g&&h.jsxs("div",{className:"card card-body text-center",children:[h.jsxs("div",{className:"relative w-24 h-24 mx-auto mb-3",children:[h.jsxs("svg",{className:"w-full h-full -rotate-90",viewBox:"0 0 36 36",children:[h.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"#1e1e2a",strokeWidth:"2.5"}),h.jsx("circle",{cx:"18",cy:"18",r:"16",fill:"none",stroke:"currentColor",className:b,strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:`${m.confidence*100}, 100`})]}),h.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:h.jsxs("span",{className:ke("text-xl font-bold",b),children:[g,"%"]})})]}),h.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:"AI Confidence"})]}),m.pr_url&&h.jsxs("div",{className:"card overflow-hidden",children:[h.jsx("div",{className:"card-header bg-purple-500/5",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2 text-purple-400",children:[h.jsx(fh,{size:14}),"Pull Request"]})}),h.jsxs("div",{className:"card-body space-y-3",children:[m.pr_branch&&h.jsxs("div",{children:[h.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Branch"}),h.jsx("span",{className:"badge badge-gray font-mono text-[11px]",children:m.pr_branch})]}),h.jsxs("a",{href:m.pr_url,target:"_blank",rel:"noopener noreferrer",className:"btn btn-primary w-full btn-sm",children:[h.jsx(I1,{size:14}),"View Pull Request"]})]})]}),((j=m.labels)==null?void 0:j.length)>0&&h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(h4,{size:14,className:"text-gray-500"}),"Labels"]})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"flex flex-wrap gap-1.5",children:m.labels.map(_=>h.jsx("span",{className:"badge badge-indigo",children:_},_))})})]}),h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsxs("h3",{className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(ch,{size:14,className:"text-gray-500"}),"Timeline"]})}),h.jsxs("div",{className:"card-body space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-indigo-500"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-xs text-gray-400",children:"Created"}),h.jsx("p",{className:"text-sm",children:new Date(m.created_at).toLocaleString()})]})]}),m.analysis_completed_at&&h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-xs text-gray-400",children:"Analyzed"}),h.jsx("p",{className:"text-sm",children:new Date(m.analysis_completed_at).toLocaleString()})]})]}),m.pr_url&&h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-purple-500"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-xs text-gray-400",children:"PR Created"}),h.jsx("p",{className:"text-sm",children:"Pull request generated"})]})]})]})]})]})]})]})}const Dj={jira_cloud:{name:"JIRA Cloud",color:"from-blue-600 to-blue-700",icon:"🔵",desc:"Atlassian JIRA Cloud integration"},servicenow:{name:"ServiceNow",color:"from-emerald-600 to-emerald-700",icon:"⚙️",desc:"ServiceNow ITSM platform"},github:{name:"GitHub",color:"from-gray-700 to-gray-800",icon:"🐙",desc:"GitHub issues and repositories"},gitlab:{name:"GitLab",color:"from-orange-600 to-orange-700",icon:"🦊",desc:"GitLab issues and merge requests"},zendesk:{name:"Zendesk",color:"from-green-600 to-green-700",icon:"💚",desc:"Zendesk support tickets"},slack:{name:"Slack",color:"from-purple-600 to-purple-700",icon:"💬",desc:"Slack notifications and alerts"}};function Ose(){const{currentOrg:e}=Zt(),t=rh(),[r,n]=E.useState(!1),{data:i,isLoading:a}=Ai({queryKey:["integrations",e==null?void 0:e.id],queryFn:()=>Lp.list(e.id),enabled:!!e}),o=Mf({mutationFn:u=>Lp.test(e.id,u)}),s=Mf({mutationFn:u=>Lp.delete(e.id,u),onSuccess:()=>t.invalidateQueries(["integrations"])});if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const l=(i==null?void 0:i.data)||[];return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Integrations"}),h.jsx("p",{className:"page-subtitle",children:"Connect your tools to start analyzing issues"})]}),h.jsxs("button",{onClick:()=>n(!r),className:"btn btn-primary",children:[h.jsx(Ei,{size:16})," Add Integration"]})]}),l.length>0&&h.jsxs("div",{className:"mb-8",children:[h.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Active Connections"}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:l.map(u=>{const f=Dj[u.platform]||{name:u.platform,color:"from-gray-600 to-gray-700",icon:"🔌"};return h.jsxs("div",{className:"card overflow-hidden",children:[h.jsx("div",{className:ke("h-1.5 bg-gradient-to-r",f.color)}),h.jsxs("div",{className:"p-5",children:[h.jsxs("div",{className:"flex items-start justify-between mb-3",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("span",{className:"text-2xl",children:f.icon}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold text-white",children:u.name||f.name}),h.jsx("p",{className:"text-xs text-gray-500",children:f.name})]})]}),h.jsx("span",{className:ke("badge",u.is_active?"badge-green":"badge-red"),children:u.is_active?h.jsxs(h.Fragment,{children:[h.jsx(ki,{size:10})," Active"]}):h.jsxs(h.Fragment,{children:[h.jsx(j0,{size:10})," Inactive"]})})]}),u.base_url&&h.jsx("p",{className:"text-xs text-gray-500 font-mono mb-3 truncate",children:u.base_url}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("button",{onClick:()=>o.mutate(u.id),disabled:o.isPending,className:"btn btn-secondary btn-sm flex-1",children:[o.isPending?h.jsx(nn,{size:12,className:"animate-spin"}):h.jsx(v4,{size:12}),"Test"]}),h.jsxs("button",{className:"btn btn-secondary btn-sm flex-1",children:[h.jsx(x2,{size:12})," Configure"]}),h.jsx("button",{onClick:()=>s.mutate(u.id),className:"btn btn-danger btn-sm btn-icon",children:h.jsx(S2,{size:12})})]})]})]},u.id)})})]}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-sm font-semibold text-gray-400 uppercase tracking-wide mb-3",children:"Available Platforms"}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Object.entries(Dj).map(([u,f])=>{const c=l.some(d=>d.platform===u);return h.jsxs("div",{className:"card-hover p-5",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[h.jsx("div",{className:ke("w-10 h-10 rounded-xl bg-gradient-to-br flex items-center justify-center text-lg",f.color),children:f.icon}),h.jsxs("div",{children:[h.jsx("h3",{className:"font-semibold text-white",children:f.name}),h.jsx("p",{className:"text-xs text-gray-500",children:f.desc})]})]}),h.jsx("button",{className:ke("btn w-full btn-sm",c?"btn-secondary":"btn-primary"),children:c?h.jsxs(h.Fragment,{children:[h.jsx(ki,{size:14})," Connected"]}):h.jsxs(h.Fragment,{children:[h.jsx(Ei,{size:14})," Connect"]})})]},u)})})]})]})}const vm={owner:{label:"Owner",badge:"badge-yellow",icon:S3},admin:{label:"Admin",badge:"badge-red",icon:w2},member:{label:"Member",badge:"badge-blue",icon:A4},viewer:{label:"Viewer",badge:"badge-gray",icon:y2}},jse=()=>h.jsxs("div",{className:"flex items-center gap-4 px-5 py-4 table-row",children:[h.jsx("div",{className:"skeleton w-9 h-9 rounded-lg"}),h.jsxs("div",{className:"flex-1 space-y-1.5",children:[h.jsx("div",{className:"skeleton h-4 w-32"}),h.jsx("div",{className:"skeleton h-3 w-48"})]}),h.jsx("div",{className:"skeleton h-5 w-16 rounded-md"})]});function _se(){const{currentOrg:e}=Zt(),{data:t,isLoading:r}=Ai({queryKey:["org-members",e==null?void 0:e.id],queryFn:()=>lh.members(e.id),enabled:!!e});if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const n=(t==null?void 0:t.data)||[],i={};return n.forEach(a=>{const o=a.role||"member";i[o]||(i[o]=[]),i[o].push(a)}),h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Team"}),h.jsxs("p",{className:"page-subtitle",children:[n.length," member",n.length!==1?"s":""," in ",e.name]})]}),h.jsxs("button",{className:"btn btn-primary",children:[h.jsx(Ei,{size:16})," Invite Member"]})]}),h.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:Object.entries(vm).map(([a,o])=>{var u;const s=o.icon,l=((u=i[a])==null?void 0:u.length)||0;return h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[h.jsxs("div",{children:[h.jsxs("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:[o.label,"s"]}),h.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:l})]}),h.jsx(s,{size:18,className:"text-gray-600"})]})},a)})}),h.jsxs("div",{className:"card overflow-hidden",children:[h.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 border-b border-gray-800/50 text-xs font-medium text-gray-500 uppercase tracking-wide",children:[h.jsx("div",{className:"w-9"}),h.jsx("div",{className:"flex-1",children:"Member"}),h.jsx("div",{className:"w-24",children:"Role"}),h.jsx("div",{className:"w-32",children:"Joined"}),h.jsx("div",{className:"w-8"})]}),r?Array(3).fill(0).map((a,o)=>h.jsx(jse,{},o)):n.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center py-16",children:[h.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gray-800/50 flex items-center justify-center mb-3",children:h.jsx(O2,{size:24,className:"text-gray-600"})}),h.jsx("p",{className:"text-gray-400 font-medium",children:"No team members"}),h.jsx("p",{className:"text-gray-600 text-sm mt-1",children:"Invite your team to collaborate"})]}):n.map(a=>{var l,u,f,c;const o=vm[a.role]||vm.member,s=o.icon;return h.jsxs("div",{className:"flex items-center gap-4 px-5 py-3.5 table-row group",children:[h.jsx("div",{className:"w-9 h-9 rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center text-xs font-semibold text-white flex-shrink-0",children:((u=(l=a.full_name)==null?void 0:l[0])==null?void 0:u.toUpperCase())||((c=(f=a.email)==null?void 0:f[0])==null?void 0:c.toUpperCase())||"?"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium text-gray-200 truncate",children:a.full_name||"Unnamed"}),h.jsxs("p",{className:"text-xs text-gray-500 flex items-center gap-1",children:[h.jsx(dh,{size:10})," ",a.email]})]}),h.jsx("div",{className:"w-24",children:h.jsxs("span",{className:ke("badge text-[10px]",o.badge),children:[h.jsx(s,{size:10}),o.label]})}),h.jsx("div",{className:"w-32 text-xs text-gray-500",children:a.joined_at?new Date(a.joined_at).toLocaleDateString():"—"}),h.jsx("div",{className:"w-8",children:h.jsx("button",{className:"btn btn-ghost btn-icon opacity-0 group-hover:opacity-100",children:h.jsx(P3,{size:14})})})]},a.id||a.user_id)})]})]})}const Lj=({active:e,payload:t,label:r})=>!e||!t?null:h.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-lg px-3 py-2 shadow-xl text-xs",children:[h.jsx("p",{className:"text-gray-400 mb-1",children:r}),t.map((n,i)=>h.jsxs("p",{className:"text-white font-medium",children:[h.jsx("span",{className:"inline-block w-2 h-2 rounded-full mr-1.5",style:{backgroundColor:n.color}}),n.name,": ",n.value]},i))]});function Pse(){const{currentOrg:e}=Zt(),[t,r]=E.useState(30),{data:n,isLoading:i}=Ai({queryKey:["report-summary",e==null?void 0:e.id,t],queryFn:()=>$y.summary(e.id,t),enabled:!!e}),a=async()=>{try{const l=await $y.exportCsv(e.id,t),u=URL.createObjectURL(new Blob([l.data])),f=document.createElement("a");f.href=u,f.download=`report-${e.name}-${t}days.csv`,f.click(),URL.revokeObjectURL(u)}catch(l){console.error(l)}};if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const o=(n==null?void 0:n.data)||{},s=[{label:"Total Processed",value:o.total_issues||0,icon:m2,color:"text-indigo-400",bg:"bg-indigo-500/10"},{label:"Success Rate",value:o.success_rate?`${(o.success_rate*100).toFixed(0)}%`:"N/A",icon:ki,color:"text-emerald-400",bg:"bg-emerald-500/10"},{label:"Avg Resolution",value:o.avg_resolution_hours?`${o.avg_resolution_hours.toFixed(1)}h`:"N/A",icon:ch,color:"text-amber-400",bg:"bg-amber-500/10"},{label:"Error Rate",value:o.error_rate?`${(o.error_rate*100).toFixed(1)}%`:"0%",icon:_4,color:"text-red-400",bg:"bg-red-500/10"}];return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsxs("div",{className:"page-header",children:[h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Reports & Analytics"}),h.jsx("p",{className:"page-subtitle",children:"Performance metrics and insights"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex items-center gap-1 bg-gray-900 border border-gray-800 rounded-lg p-0.5",children:[7,14,30,90].map(l=>h.jsxs("button",{onClick:()=>r(l),className:ke("px-3 py-1.5 rounded-md text-xs font-medium transition-all",t===l?"bg-indigo-600 text-white":"text-gray-400 hover:text-white"),children:[l,"d"]},l))}),h.jsxs("button",{onClick:a,className:"btn btn-secondary btn-sm",children:[h.jsx(j3,{size:14})," Export CSV"]})]})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:s.map(l=>{const u=l.icon;return h.jsx("div",{className:"stat-card",children:h.jsxs("div",{className:"flex items-center justify-between relative z-10",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-gray-400 uppercase tracking-wide",children:l.label}),h.jsx("p",{className:"text-2xl font-bold text-white mt-1",children:i?"—":l.value})]}),h.jsx("div",{className:ke("w-11 h-11 rounded-xl flex items-center justify-center",l.bg),children:h.jsx(u,{size:20,className:l.color})})]})},l.label)})}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Daily Volume"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-64",children:i?h.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):h.jsx(Pl,{width:"100%",height:"100%",children:h.jsxs(dT,{data:o.daily_breakdown||[],children:[h.jsx("defs",{children:h.jsxs("linearGradient",{id:"rptTotal",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{offset:"5%",stopColor:"#6366f1",stopOpacity:.3}),h.jsx("stop",{offset:"95%",stopColor:"#6366f1",stopOpacity:0})]})}),h.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a"}),h.jsx(Ni,{dataKey:"date",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ti,{tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(Lj,{})}),h.jsx(sn,{type:"monotone",dataKey:"total",stroke:"#6366f1",fill:"url(#rptTotal)",strokeWidth:2,name:"Issues"})]})})})})]}),h.jsxs("div",{className:"card",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Resolution by Source"})}),h.jsx("div",{className:"card-body",children:h.jsx("div",{className:"h-64",children:i?h.jsx("div",{className:"skeleton h-full w-full rounded-lg"}):h.jsx(Pl,{width:"100%",height:"100%",children:h.jsxs(fT,{data:Object.entries(o.by_source||{}).map(([l,u])=>({name:l.replace("_"," ").replace(/\b\w/g,f=>f.toUpperCase()),value:u})),layout:"vertical",children:[h.jsx($u,{strokeDasharray:"3 3",stroke:"#1e1e2a",horizontal:!1}),h.jsx(Ni,{type:"number",tick:{fill:"#5a5a70",fontSize:11},tickLine:!1,axisLine:!1}),h.jsx(Ti,{type:"category",dataKey:"name",tick:{fill:"#8888a0",fontSize:12},width:100,tickLine:!1,axisLine:!1}),h.jsx(Wt,{content:h.jsx(Lj,{})}),h.jsx(Fi,{dataKey:"value",fill:"#6366f1",radius:[0,6,6,0],barSize:20,name:"Issues"})]})})})})]})]})]})}const Ase=[{id:"general",label:"General",icon:$a},{id:"notifications",label:"Notifications",icon:p2},{id:"security",label:"Security",icon:w2},{id:"api",label:"API Keys",icon:g2},{id:"webhooks",label:"Webhooks",icon:v2}];function kse(){const{currentOrg:e}=Zt(),[t,r]=E.useState("general"),[n,i]=E.useState(!1),[a,o]=E.useState(!1);if(!e)return h.jsx("div",{className:"flex items-center justify-center h-full p-8",children:h.jsx("p",{className:"text-gray-500",children:"Select an organization"})});const s=async()=>{i(!0),await new Promise(l=>setTimeout(l,1e3)),i(!1)};return h.jsxs("div",{className:"p-6 animate-fade-in",children:[h.jsx("div",{className:"page-header",children:h.jsxs("div",{children:[h.jsx("h1",{className:"page-title",children:"Settings"}),h.jsx("p",{className:"page-subtitle",children:"Manage your organization settings"})]})}),h.jsxs("div",{className:"flex gap-6",children:[h.jsx("div",{className:"w-52 flex-shrink-0",children:h.jsx("div",{className:"space-y-0.5",children:Ase.map(l=>{const u=l.icon;return h.jsxs("button",{onClick:()=>r(l.id),className:ke("w-full sidebar-item",t===l.id?"sidebar-item-active":"sidebar-item-inactive"),children:[h.jsx(u,{size:16}),h.jsx("span",{children:l.label})]},l.id)})})}),h.jsxs("div",{className:"flex-1 max-w-2xl",children:[t==="general"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Organization Details"})}),h.jsxs("div",{className:"card-body space-y-5",children:[h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Organization Name"}),h.jsx("input",{defaultValue:e.name,className:"input",placeholder:"My Organization"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Slug"}),h.jsx("input",{defaultValue:e.slug||"",className:"input font-mono",placeholder:"my-org"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Default AI Model"}),h.jsxs("select",{className:"input",children:[h.jsx("option",{children:"Claude 3.5 Sonnet (recommended)"}),h.jsx("option",{children:"GPT-4o"}),h.jsx("option",{children:"Llama 3.3 70B"}),h.jsx("option",{children:"Gemini Pro"})]})]}),h.jsx("div",{className:"pt-3 border-t border-gray-800",children:h.jsxs("button",{onClick:s,disabled:n,className:"btn btn-primary",children:[n?h.jsx(nn,{size:14,className:"animate-spin"}):h.jsx(R1,{size:14}),"Save Changes"]})})]})]}),t==="notifications"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Notification Preferences"})}),h.jsxs("div",{className:"card-body space-y-4",children:[[{label:"New issue received",desc:"When a new issue arrives from an integration"},{label:"Analysis completed",desc:"When AI finishes analyzing an issue"},{label:"PR created",desc:"When a Pull Request is automatically generated"},{label:"Analysis error",desc:"When AI fails to analyze an issue"},{label:"Daily digest",desc:"Summary of daily activity"}].map(l=>h.jsxs("div",{className:"flex items-center justify-between py-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-200",children:l.label}),h.jsx("p",{className:"text-xs text-gray-500",children:l.desc})]}),h.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[h.jsx("input",{type:"checkbox",defaultChecked:!0,className:"sr-only peer"}),h.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]},l.label)),h.jsxs("div",{className:"pt-3 border-t border-gray-800",children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"Notification Email"}),h.jsxs("div",{className:"flex gap-2",children:[h.jsxs("div",{className:"relative flex-1",children:[h.jsx(dh,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-500"}),h.jsx("input",{className:"input pl-10",placeholder:"team@company.com"})]}),h.jsx("button",{className:"btn btn-primary btn-sm",children:h.jsx(R1,{size:14})})]})]})]})]}),t==="security"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsx("div",{className:"card-header",children:h.jsx("h3",{className:"text-sm font-semibold",children:"Security Settings"})}),h.jsxs("div",{className:"card-body space-y-5",children:[h.jsxs("div",{className:"flex items-center justify-between py-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-200",children:"Two-Factor Authentication"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Require 2FA for all organization members"})]}),h.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[h.jsx("input",{type:"checkbox",className:"sr-only peer"}),h.jsx("div",{className:"w-9 h-5 bg-gray-700 rounded-full peer peer-checked:bg-indigo-600 after:content-[''] after:absolute after:top-0.5 after:left-0.5 after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-4"})]})]}),h.jsxs("div",{className:"flex items-center justify-between py-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-200",children:"SSO / SAML"}),h.jsx("p",{className:"text-xs text-gray-500",children:"Enable Single Sign-On with your identity provider"})]}),h.jsx("span",{className:"badge badge-gray",children:"Enterprise"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-xs font-medium text-gray-400 mb-1.5 uppercase tracking-wide",children:"IP Allowlist"}),h.jsx("textarea",{className:"input h-20 resize-none font-mono text-xs",placeholder:`192.168.1.0/24
10.0.0.0/8`}),h.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"One CIDR per line. Leave empty to allow all."})]})]})]}),t==="api"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsxs("div",{className:"card-header",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"API Keys"}),h.jsxs("button",{className:"btn btn-primary btn-sm",children:[h.jsx(Ei,{size:14})," Create Key"]})]}),h.jsxs("div",{className:"card-body",children:[h.jsx("div",{className:"space-y-3",children:h.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gray-900/50 rounded-lg border border-gray-800/50",children:[h.jsx(g2,{size:16,className:"text-gray-500"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium",children:"Production API Key"}),h.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[h.jsx("code",{className:"text-xs text-gray-500 font-mono",children:a?"jaf_live_sk_a1b2c3d4e5f6...":"jaf_live_sk_••••••••••••..."}),h.jsx("button",{onClick:()=>o(!a),className:"text-gray-500 hover:text-gray-300",children:a?h.jsx(N3,{size:12}):h.jsx(y2,{size:12})}),h.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:h.jsx(Ly,{size:12})})]})]}),h.jsx("span",{className:"badge badge-green text-[10px]",children:"Active"}),h.jsx("button",{className:"btn btn-danger btn-sm btn-icon",children:h.jsx(S2,{size:12})})]})}),h.jsxs("div",{className:"mt-4 p-4 bg-gray-950 rounded-lg border border-gray-800",children:[h.jsxs("h4",{className:"text-xs font-semibold text-gray-400 mb-2 flex items-center gap-1.5",children:[h.jsx(Dy,{size:12})," Quick Start"]}),h.jsx("pre",{className:"text-xs text-gray-400 font-mono overflow-x-auto",children:`curl -X POST https://jira-fixer.startdata.com.br/api/issues \\
-H "Authorization: Bearer YOUR_API_KEY" \\
-H "Content-Type: application/json" \\
-d '{"title": "Bug fix needed", "source": "api"}'`})]})]})]}),t==="webhooks"&&h.jsxs("div",{className:"card animate-fade-in",children:[h.jsxs("div",{className:"card-header",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Webhook Endpoints"}),h.jsxs("button",{className:"btn btn-primary btn-sm",children:[h.jsx(Ei,{size:14})," Add Endpoint"]})]}),h.jsxs("div",{className:"card-body",children:[h.jsxs("div",{className:"p-4 bg-gray-900/50 rounded-lg border border-gray-800/50 mb-4",children:[h.jsx("h4",{className:"text-xs font-semibold text-gray-400 mb-2",children:"Incoming Webhook URLs"}),h.jsx("div",{className:"space-y-2",children:["jira","servicenow","github","gitlab"].map(l=>h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("span",{className:"text-xs text-gray-500 w-20 capitalize",children:[l,":"]}),h.jsxs("code",{className:"text-xs text-indigo-400 font-mono flex-1 truncate",children:["https://jira-fixer.startdata.com.br/api/webhooks/",l]}),h.jsx("button",{className:"text-gray-500 hover:text-gray-300",children:h.jsx(Ly,{size:12})})]},l))})]}),h.jsxs("div",{className:"text-center py-6 text-gray-500",children:[h.jsx(v2,{size:24,className:"mx-auto mb-2 text-gray-600"}),h.jsx("p",{className:"text-sm",children:"No outgoing webhook endpoints configured"}),h.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Add endpoints to receive event notifications"})]})]})]})]})]})]})}function zj({children:e}){const{user:t,loading:r}=Zt();return r?h.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?e:h.jsx(dy,{to:"/login"})}function Ese({children:e}){const{user:t,currentOrg:r,loading:n}=Zt();return n?h.jsx("div",{className:"flex items-center justify-center h-screen",children:"Loading..."}):t?r?e:h.jsx(dy,{to:"/select-organization"}):h.jsx(dy,{to:"/login"})}function Nse(){return h.jsxs(RM,{children:[h.jsx(tr,{path:"/login",element:h.jsx(I4,{})}),h.jsx(tr,{path:"/register",element:h.jsx(R4,{})}),h.jsx(tr,{path:"/select-organization",element:h.jsx(zj,{children:h.jsx(D4,{})})}),h.jsx(tr,{path:"/create-organization",element:h.jsx(zj,{children:h.jsx(L4,{})})}),h.jsxs(tr,{path:"/",element:h.jsx(Ese,{children:h.jsx(M4,{})}),children:[h.jsx(tr,{index:!0,element:h.jsx(vse,{})}),h.jsx(tr,{path:"issues",element:h.jsx(xse,{})}),h.jsx(tr,{path:"issues/:id",element:h.jsx(Sse,{})}),h.jsx(tr,{path:"integrations",element:h.jsx(Ose,{})}),h.jsx(tr,{path:"team",element:h.jsx(_se,{})}),h.jsx(tr,{path:"reports",element:h.jsx(Pse,{})}),h.jsx(tr,{path:"settings",element:h.jsx(kse,{})})]})]})}const Tse=new yI({defaultOptions:{queries:{staleTime:3e4,retry:1}}});gm.createRoot(document.getElementById("root")).render(h.jsx(A.StrictMode,{children:h.jsx(vI,{client:Tse,children:h.jsx(WM,{children:h.jsx(oD,{children:h.jsx(Nse,{})})})})}));