@wraps.dev/cli 0.3.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,381 +0,0 @@
1
- function _q(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[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"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Nd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qg={exports:{}},Mu={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var XT;function Eq(){if(XT)return Mu;XT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,l){var s=null;if(l!==void 0&&(s=""+l),i.key!==void 0&&(s=""+i.key),"key"in i){l={};for(var c in i)c!=="key"&&(l[c]=i[c])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:l}}return Mu.Fragment=t,Mu.jsx=n,Mu.jsxs=n,Mu}var QT;function Aq(){return QT||(QT=1,qg.exports=Eq()),qg.exports}var v=Aq(),Ug={exports:{}},je={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var ZT;function Tq(){if(ZT)return je;ZT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=y&&$[y]||$["@@iterator"],typeof $=="function"?$:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function E($,F,Z){this.props=$,this.context=F,this.refs=S,this.updater=Z||O}E.prototype.isReactComponent={},E.prototype.setState=function($,F){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,F,"setState")},E.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function T(){}T.prototype=E.prototype;function A($,F,Z){this.props=$,this.context=F,this.refs=S,this.updater=Z||O}var M=A.prototype=new T;M.constructor=A,w(M,E.prototype),M.isPureReactComponent=!0;var j=Array.isArray;function N(){}var R={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function I($,F,Z){var se=Z.ref;return{$$typeof:e,type:$,key:F,ref:se!==void 0?se:null,props:Z}}function V($,F){return I($.type,F,$.props)}function z($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function B($){var F={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Z){return F[Z]})}var G=/\/+/g;function K($,F){return typeof $=="object"&&$!==null&&$.key!=null?B(""+$.key):F.toString(36)}function X($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(N,N):($.status="pending",$.then(function(F){$.status==="pending"&&($.status="fulfilled",$.value=F)},function(F){$.status==="pending"&&($.status="rejected",$.reason=F)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function D($,F,Z,se,de){var ge=typeof $;(ge==="undefined"||ge==="boolean")&&($=null);var fe=!1;if($===null)fe=!0;else switch(ge){case"bigint":case"string":case"number":fe=!0;break;case"object":switch($.$$typeof){case e:case t:fe=!0;break;case m:return fe=$._init,D(fe($._payload),F,Z,se,de)}}if(fe)return de=de($),fe=se===""?"."+K($,0):se,j(de)?(Z="",fe!=null&&(Z=fe.replace(G,"$&/")+"/"),D(de,F,Z,"",function(me){return me})):de!=null&&(z(de)&&(de=V(de,Z+(de.key==null||$&&$.key===de.key?"":(""+de.key).replace(G,"$&/")+"/")+fe)),F.push(de)),1;fe=0;var pe=se===""?".":se+":";if(j($))for(var ae=0;ae<$.length;ae++)se=$[ae],ge=pe+K(se,ae),fe+=D(se,F,Z,ge,de);else if(ae=x($),typeof ae=="function")for($=ae.call($),ae=0;!(se=$.next()).done;)se=se.value,ge=pe+K(se,ae++),fe+=D(se,F,Z,ge,de);else if(ge==="object"){if(typeof $.then=="function")return D(X($),F,Z,se,de);throw F=String($),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return fe}function U($,F,Z){if($==null)return $;var se=[],de=0;return D($,se,"","",function(ge){return F.call(Z,ge,de++)}),se}function Y($){if($._status===-1){var F=$._result;F=F(),F.then(function(Z){($._status===0||$._status===-1)&&($._status=1,$._result=Z)},function(Z){($._status===0||$._status===-1)&&($._status=2,$._result=Z)}),$._status===-1&&($._status=0,$._result=F)}if($._status===1)return $._result.default;throw $._result}var W=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},oe={map:U,forEach:function($,F,Z){U($,function(){F.apply(this,arguments)},Z)},count:function($){var F=0;return U($,function(){F++}),F},toArray:function($){return U($,function(F){return F})||[]},only:function($){if(!z($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return je.Activity=p,je.Children=oe,je.Component=E,je.Fragment=n,je.Profiler=i,je.PureComponent=A,je.StrictMode=r,je.Suspense=f,je.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,je.__COMPILER_RUNTIME={__proto__:null,c:function($){return R.H.useMemoCache($)}},je.cache=function($){return function(){return $.apply(null,arguments)}},je.cacheSignal=function(){return null},je.cloneElement=function($,F,Z){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var se=w({},$.props),de=$.key;if(F!=null)for(ge in F.key!==void 0&&(de=""+F.key),F)!k.call(F,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&F.ref===void 0||(se[ge]=F[ge]);var ge=arguments.length-2;if(ge===1)se.children=Z;else if(1<ge){for(var fe=Array(ge),pe=0;pe<ge;pe++)fe[pe]=arguments[pe+2];se.children=fe}return I($.type,de,se)},je.createContext=function($){return $={$$typeof:s,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:l,_context:$},$},je.createElement=function($,F,Z){var se,de={},ge=null;if(F!=null)for(se in F.key!==void 0&&(ge=""+F.key),F)k.call(F,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(de[se]=F[se]);var fe=arguments.length-2;if(fe===1)de.children=Z;else if(1<fe){for(var pe=Array(fe),ae=0;ae<fe;ae++)pe[ae]=arguments[ae+2];de.children=pe}if($&&$.defaultProps)for(se in fe=$.defaultProps,fe)de[se]===void 0&&(de[se]=fe[se]);return I($,ge,de)},je.createRef=function(){return{current:null}},je.forwardRef=function($){return{$$typeof:c,render:$}},je.isValidElement=z,je.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:Y}},je.memo=function($,F){return{$$typeof:d,type:$,compare:F===void 0?null:F}},je.startTransition=function($){var F=R.T,Z={};R.T=Z;try{var se=$(),de=R.S;de!==null&&de(Z,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(N,W)}catch(ge){W(ge)}finally{F!==null&&Z.types!==null&&(F.types=Z.types),R.T=F}},je.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},je.use=function($){return R.H.use($)},je.useActionState=function($,F,Z){return R.H.useActionState($,F,Z)},je.useCallback=function($,F){return R.H.useCallback($,F)},je.useContext=function($){return R.H.useContext($)},je.useDebugValue=function(){},je.useDeferredValue=function($,F){return R.H.useDeferredValue($,F)},je.useEffect=function($,F){return R.H.useEffect($,F)},je.useEffectEvent=function($){return R.H.useEffectEvent($)},je.useId=function(){return R.H.useId()},je.useImperativeHandle=function($,F,Z){return R.H.useImperativeHandle($,F,Z)},je.useInsertionEffect=function($,F){return R.H.useInsertionEffect($,F)},je.useLayoutEffect=function($,F){return R.H.useLayoutEffect($,F)},je.useMemo=function($,F){return R.H.useMemo($,F)},je.useOptimistic=function($,F){return R.H.useOptimistic($,F)},je.useReducer=function($,F,Z){return R.H.useReducer($,F,Z)},je.useRef=function($){return R.H.useRef($)},je.useState=function($){return R.H.useState($)},je.useSyncExternalStore=function($,F,Z){return R.H.useSyncExternalStore($,F,Z)},je.useTransition=function(){return R.H.useTransition()},je.version="19.2.0",je}var JT;function xp(){return JT||(JT=1,Ug.exports=Tq()),Ug.exports}var _=xp();const L=lt(_),nS=_q({__proto__:null,default:L},[_]);var Hg={exports:{}},Nu={},Fg={exports:{}},Gg={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var ej;function jq(){return ej||(ej=1,(function(e){function t(D,U){var Y=D.length;D.push(U);e:for(;0<Y;){var W=Y-1>>>1,oe=D[W];if(0<i(oe,U))D[W]=U,D[Y]=oe,Y=W;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var U=D[0],Y=D.pop();if(Y!==U){D[0]=Y;e:for(var W=0,oe=D.length,$=oe>>>1;W<$;){var F=2*(W+1)-1,Z=D[F],se=F+1,de=D[se];if(0>i(Z,Y))se<oe&&0>i(de,Z)?(D[W]=de,D[se]=Y,W=se):(D[W]=Z,D[F]=Y,W=F);else if(se<oe&&0>i(de,Y))D[W]=de,D[se]=Y,W=se;else break e}}return U}function i(D,U){var Y=D.sortIndex-U.sortIndex;return Y!==0?Y:D.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],d=[],m=1,p=null,y=3,x=!1,O=!1,w=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function M(D){for(var U=n(d);U!==null;){if(U.callback===null)r(d);else if(U.startTime<=D)r(d),U.sortIndex=U.expirationTime,t(f,U);else break;U=n(d)}}function j(D){if(w=!1,M(D),!O)if(n(f)!==null)O=!0,N||(N=!0,B());else{var U=n(d);U!==null&&X(j,U.startTime-D)}}var N=!1,R=-1,k=5,I=-1;function V(){return S?!0:!(e.unstable_now()-I<k)}function z(){if(S=!1,N){var D=e.unstable_now();I=D;var U=!0;try{e:{O=!1,w&&(w=!1,T(R),R=-1),x=!0;var Y=y;try{t:{for(M(D),p=n(f);p!==null&&!(p.expirationTime>D&&V());){var W=p.callback;if(typeof W=="function"){p.callback=null,y=p.priorityLevel;var oe=W(p.expirationTime<=D);if(D=e.unstable_now(),typeof oe=="function"){p.callback=oe,M(D),U=!0;break t}p===n(f)&&r(f),M(D)}else r(f);p=n(f)}if(p!==null)U=!0;else{var $=n(d);$!==null&&X(j,$.startTime-D),U=!1}}break e}finally{p=null,y=Y,x=!1}U=void 0}}finally{U?B():N=!1}}}var B;if(typeof A=="function")B=function(){A(z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,K=G.port2;G.port1.onmessage=z,B=function(){K.postMessage(null)}}else B=function(){E(z,0)};function X(D,U){R=E(function(){D(e.unstable_now())},U)}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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(D){switch(y){case 1:case 2:case 3:var U=3;break;default:U=y}var Y=y;y=U;try{return D()}finally{y=Y}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var Y=y;y=D;try{return U()}finally{y=Y}},e.unstable_scheduleCallback=function(D,U,Y){var W=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?W+Y:W):Y=W,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=Y+oe,D={id:m++,callback:U,priorityLevel:D,startTime:Y,expirationTime:oe,sortIndex:-1},Y>W?(D.sortIndex=Y,t(d,D),n(f)===null&&D===n(d)&&(w?(T(R),R=-1):w=!0,X(j,Y-W))):(D.sortIndex=oe,t(f,D),O||x||(O=!0,N||(N=!0,B()))),D},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(D){var U=y;return function(){var Y=y;y=U;try{return D.apply(this,arguments)}finally{y=Y}}}})(Gg)),Gg}var tj;function Cq(){return tj||(tj=1,Fg.exports=jq()),Fg.exports}var Vg={exports:{}},cn={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var nj;function Mq(){if(nj)return cn;nj=1;var e=xp();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function l(f,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:f,containerInfo:d,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,cn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return l(f,d,null,m)},cn.flushSync=function(f){var d=s.T,m=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=d,r.p=m,r.d.f()}},cn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},cn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},cn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},cn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},cn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},cn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},cn.requestFormReset=function(f){r.d.r(f)},cn.unstable_batchedUpdates=function(f,d){return f(d)},cn.useFormState=function(f,d,m){return s.H.useFormState(f,d,m)},cn.useFormStatus=function(){return s.H.useHostTransitionStatus()},cn.version="19.2.0",cn}var rj;function ak(){if(rj)return Vg.exports;rj=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vg.exports=Mq(),Vg.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var aj;function Nq(){if(aj)return Nu;aj=1;var e=Cq(),t=xp(),n=ak();function r(a){var o="https://react.dev/errors/"+a;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var o=a,u=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(u=o.return),a=o.return;while(a)}return o.tag===3?u:null}function s(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function c(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function f(a){if(l(a)!==a)throw Error(r(188))}function d(a){var o=a.alternate;if(!o){if(o=l(a),o===null)throw Error(r(188));return o!==a?null:a}for(var u=a,h=o;;){var g=u.return;if(g===null)break;var b=g.alternate;if(b===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===u)return f(g),a;if(b===h)return f(g),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=b;else{for(var C=!1,P=g.child;P;){if(P===u){C=!0,u=g,h=b;break}if(P===h){C=!0,h=g,u=b;break}P=P.sibling}if(!C){for(P=b.child;P;){if(P===u){C=!0,u=b,h=g;break}if(P===h){C=!0,h=b,u=g;break}P=P.sibling}if(!C)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?a:o}function m(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=m(a),o!==null)return o;a=a.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=z&&a[z]||a["@@iterator"],typeof a=="function"?a:null)}var G=Symbol.for("react.client.reference");function K(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===G?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case N:return"SuspenseList";case I:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case O:return"Portal";case A:return a.displayName||"Context";case T:return(a._context.displayName||"Context")+".Consumer";case M:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return o=a.displayName||null,o!==null?o:K(a.type)||"Memo";case k:o=a._payload,a=a._init;try{return K(a(o))}catch{}}return null}var X=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},W=[],oe=-1;function $(a){return{current:a}}function F(a){0>oe||(a.current=W[oe],W[oe]=null,oe--)}function Z(a,o){oe++,W[oe]=a.current,a.current=o}var se=$(null),de=$(null),ge=$(null),fe=$(null);function pe(a,o){switch(Z(ge,o),Z(de,a),Z(se,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?bT(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=bT(o),a=xT(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}F(se),Z(se,a)}function ae(){F(se),F(de),F(ge)}function me(a){a.memoizedState!==null&&Z(fe,a);var o=se.current,u=xT(o,a.type);o!==u&&(Z(de,a),Z(se,u))}function ye(a){de.current===a&&(F(se),F(de)),fe.current===a&&(F(fe),Au._currentValue=Y)}var re,Ne;function Oe(a){if(re===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);re=o&&o[1]||"",Ne=-1<u.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+re+a+Ne}var Ke=!1;function Fe(a,o){if(!a||Ke)return"";Ke=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(ne){var te=ne}Reflect.construct(a,[],ce)}else{try{ce.call()}catch(ne){te=ne}a.call(ce.prototype)}}else{try{throw Error()}catch(ne){te=ne}(ce=a())&&typeof ce.catch=="function"&&ce.catch(function(){})}}catch(ne){if(ne&&te&&typeof ne.stack=="string")return[ne.stack,te.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),C=b[0],P=b[1];if(C&&P){var q=C.split(`
44
- `),ee=P.split(`
45
- `);for(g=h=0;h<q.length&&!q[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===q.length||g===ee.length)for(h=q.length-1,g=ee.length-1;1<=h&&0<=g&&q[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(q[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||q[h]!==ee[g]){var ie=`
46
- `+q[h].replace(" at new "," at ");return a.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",a.displayName)),ie}while(1<=h&&0<=g);break}}}finally{Ke=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Oe(u):""}function nt(a,o){switch(a.tag){case 26:case 27:case 5:return Oe(a.type);case 16:return Oe("Lazy");case 13:return a.child!==o&&o!==null?Oe("Suspense Fallback"):Oe("Suspense");case 19:return Oe("SuspenseList");case 0:case 15:return Fe(a.type,!1);case 11:return Fe(a.type.render,!1);case 1:return Fe(a.type,!0);case 31:return Oe("Activity");default:return""}}function ln(a){try{var o="",u=null;do o+=nt(a,u),u=a,a=a.return;while(a);return o}catch(h){return`
47
- Error generating stack: `+h.message+`
48
- `+h.stack}}var ft=Object.prototype.hasOwnProperty,zr=e.unstable_scheduleCallback,Dn=e.unstable_cancelCallback,xt=e.unstable_shouldYield,Kn=e.unstable_requestPaint,Gt=e.unstable_now,Lo=e.unstable_getCurrentPriorityLevel,Li=e.unstable_ImmediatePriority,gf=e.unstable_UserBlockingPriority,Ii=e.unstable_NormalPriority,zs=e.unstable_LowPriority,oa=e.unstable_IdlePriority,yf=e.log,Ga=e.unstable_setDisableYieldValue,zi=null,vn=null;function gr(a){if(typeof yf=="function"&&Ga(a),vn&&typeof vn.setStrictMode=="function")try{vn.setStrictMode(zi,a)}catch{}}var sn=Math.clz32?Math.clz32:Br,Mm=Math.log,Bs=Math.LN2;function Br(a){return a>>>=0,a===0?32:31-(Mm(a)/Bs|0)|0}var Io=256,zo=262144,Bi=4194304;function qr(a){var o=a&42;if(o!==0)return o;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Te(a,o,u){var h=a.pendingLanes;if(h===0)return 0;var g=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var P=h&134217727;return P!==0?(h=P&~b,h!==0?g=qr(h):(C&=P,C!==0?g=qr(C):u||(u=P&~a,u!==0&&(g=qr(u))))):(P=h&~b,P!==0?g=qr(P):C!==0?g=qr(C):u||(u=h&~a,u!==0&&(g=qr(u)))),g===0?0:o!==0&&o!==g&&(o&b)===0&&(b=g&-g,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:g}function vt(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Vt(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function un(){var a=Bi;return Bi<<=1,(Bi&62914560)===0&&(Bi=4194304),a}function Va(a){for(var o=[],u=0;31>u;u++)o.push(a);return o}function wt(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function xn(a,o,u,h,g,b){var C=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var P=a.entanglements,q=a.expirationTimes,ee=a.hiddenUpdates;for(u=C&~u;0<u;){var ie=31-sn(u),ce=1<<ie;P[ie]=0,q[ie]=-1;var te=ee[ie];if(te!==null)for(ee[ie]=null,ie=0;ie<te.length;ie++){var ne=te[ie];ne!==null&&(ne.lane&=-536870913)}u&=~ce}h!==0&&qi(a,h,0),b!==0&&g===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~o))}function qi(a,o,u){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-sn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|u&261930}function wn(a,o){var u=a.entangledLanes|=o;for(a=a.entanglements;u;){var h=31-sn(u),g=1<<h;g&o|a[h]&o&&(a[h]|=o),u&=~g}}function Sn(a,o){var u=o&-o;return u=(u&42)!==0?1:Bo(u),(u&(a.suspendedLanes|o))!==0?0:u}function Bo(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function yr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Nm(){var a=U.p;return a!==0?a:(a=window.event,a===void 0?32:HT(a.type))}function i_(a,o){var u=U.p;try{return U.p=a,o()}finally{U.p=u}}var Ya=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Ya,On="__reactProps$"+Ya,qo="__reactContainer$"+Ya,Rm="__reactEvents$"+Ya,hz="__reactListeners$"+Ya,pz="__reactHandles$"+Ya,o_="__reactResources$"+Ya,qs="__reactMarker$"+Ya;function Pm(a){delete a[Zt],delete a[On],delete a[Rm],delete a[hz],delete a[pz]}function Uo(a){var o=a[Zt];if(o)return o;for(var u=a.parentNode;u;){if(o=u[qo]||u[Zt]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(a=TT(a);a!==null;){if(u=a[Zt])return u;a=TT(a)}return o}a=u,u=a.parentNode}return null}function Ho(a){if(a=a[Zt]||a[qo]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Us(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Fo(a){var o=a[o_];return o||(o=a[o_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Yt(a){a[qs]=!0}var l_=new Set,s_={};function Ui(a,o){Go(a,o),Go(a+"Capture",o)}function Go(a,o){for(s_[a]=o,a=0;a<o.length;a++)l_.add(o[a])}var mz=RegExp("^[: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]*$"),u_={},c_={};function vz(a){return ft.call(c_,a)?!0:ft.call(u_,a)?!1:mz.test(a)?c_[a]=!0:(u_[a]=!0,!1)}function bf(a,o,u){if(vz(o))if(u===null)a.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+u)}}function xf(a,o,u){if(u===null)a.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+u)}}function la(a,o,u,h){if(h===null)a.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(o,u,""+h)}}function Xn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function f_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function gz(a,o,u){var h=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var g=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){u=""+C,b.call(this,C)}}),Object.defineProperty(a,o,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Dm(a){if(!a._valueTracker){var o=f_(a)?"checked":"value";a._valueTracker=gz(a,o,""+a[o])}}function d_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=f_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function wf(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var yz=/[\n"\\]/g;function Qn(a){return a.replace(yz,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function km(a,o,u,h,g,b,C,P){a.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.type=C:a.removeAttribute("type"),o!=null?C==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Xn(o)):a.value!==""+Xn(o)&&(a.value=""+Xn(o)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),o!=null?$m(a,C,Xn(o)):u!=null?$m(a,C,Xn(u)):h!=null&&a.removeAttribute("value"),g==null&&b!=null&&(a.defaultChecked=!!b),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+Xn(P):a.removeAttribute("name")}function h_(a,o,u,h,g,b,C,P){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),o!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||o!=null)){Dm(a);return}u=u!=null?""+Xn(u):"",o=o!=null?""+Xn(o):u,P||o===a.value||(a.value=o),a.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=P?a.checked:!!h,a.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.name=C),Dm(a)}function $m(a,o,u){o==="number"&&wf(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Vo(a,o,u,h){if(a=a.options,o){o={};for(var g=0;g<u.length;g++)o["$"+u[g]]=!0;for(u=0;u<a.length;u++)g=o.hasOwnProperty("$"+a[u].value),a[u].selected!==g&&(a[u].selected=g),g&&h&&(a[u].defaultSelected=!0)}else{for(u=""+Xn(u),o=null,g=0;g<a.length;g++){if(a[g].value===u){a[g].selected=!0,h&&(a[g].defaultSelected=!0);return}o!==null||a[g].disabled||(o=a[g])}o!==null&&(o.selected=!0)}}function p_(a,o,u){if(o!=null&&(o=""+Xn(o),o!==a.value&&(a.value=o),u==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=u!=null?""+Xn(u):""}function m_(a,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(X(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=Xn(o),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h),Dm(a)}function Yo(a,o){if(o){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=o;return}}a.textContent=o}var bz=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function v_(a,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":h?a.setProperty(o,u):typeof u!="number"||u===0||bz.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function g_(a,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&u[g]!==h&&v_(a,g,h)}else for(var b in o)o.hasOwnProperty(b)&&v_(a,b,o[b])}function Lm(a){if(a.indexOf("-")===-1)return!1;switch(a){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 xz=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wz=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Sf(a){return wz.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function sa(){}var Im=null;function zm(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Wo=null,Ko=null;function y_(a){var o=Ho(a);if(o&&(a=o.stateNode)){var u=a[On]||null;e:switch(a=o.stateNode,o.type){case"input":if(km(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Qn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==a&&h.form===a.form){var g=h[On]||null;if(!g)throw Error(r(90));km(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===a.form&&d_(h)}break e;case"textarea":p_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Vo(a,!!u.multiple,o,!1)}}}var Bm=!1;function b_(a,o,u){if(Bm)return a(o,u);Bm=!0;try{var h=a(o);return h}finally{if(Bm=!1,(Wo!==null||Ko!==null)&&(ud(),Wo&&(o=Wo,a=Ko,Ko=Wo=null,y_(o),a)))for(o=0;o<a.length;o++)y_(a[o])}}function Hs(a,o){var u=a.stateNode;if(u===null)return null;var h=u[On]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qm=!1;if(ua)try{var Fs={};Object.defineProperty(Fs,"passive",{get:function(){qm=!0}}),window.addEventListener("test",Fs,Fs),window.removeEventListener("test",Fs,Fs)}catch{qm=!1}var Wa=null,Um=null,Of=null;function x_(){if(Of)return Of;var a,o=Um,u=o.length,h,g="value"in Wa?Wa.value:Wa.textContent,b=g.length;for(a=0;a<u&&o[a]===g[a];a++);var C=u-a;for(h=1;h<=C&&o[u-h]===g[b-h];h++);return Of=g.slice(a,1<h?1-h:void 0)}function _f(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function Ef(){return!0}function w_(){return!1}function _n(a){function o(u,h,g,b,C){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=b,this.target=C,this.currentTarget=null;for(var P in a)a.hasOwnProperty(P)&&(u=a[P],this[P]=u?u(b):b[P]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Ef:w_,this.isPropagationStopped=w_,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Ef)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Ef)},persist:function(){},isPersistent:Ef}),o}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Af=_n(Hi),Gs=p({},Hi,{view:0,detail:0}),Sz=_n(Gs),Hm,Fm,Vs,Tf=p({},Gs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vm,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Vs&&(Vs&&a.type==="mousemove"?(Hm=a.screenX-Vs.screenX,Fm=a.screenY-Vs.screenY):Fm=Hm=0,Vs=a),Hm)},movementY:function(a){return"movementY"in a?a.movementY:Fm}}),S_=_n(Tf),Oz=p({},Tf,{dataTransfer:0}),_z=_n(Oz),Ez=p({},Gs,{relatedTarget:0}),Gm=_n(Ez),Az=p({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),Tz=_n(Az),jz=p({},Hi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Cz=_n(jz),Mz=p({},Hi,{data:0}),O_=_n(Mz),Nz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rz={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"},Pz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dz(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Pz[a])?!!o[a]:!1}function Vm(){return Dz}var kz=p({},Gs,{key:function(a){if(a.key){var o=Nz[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=_f(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Rz[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vm,charCode:function(a){return a.type==="keypress"?_f(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?_f(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),$z=_n(kz),Lz=p({},Tf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),__=_n(Lz),Iz=p({},Gs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vm}),zz=_n(Iz),Bz=p({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),qz=_n(Bz),Uz=p({},Tf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Hz=_n(Uz),Fz=p({},Hi,{newState:0,oldState:0}),Gz=_n(Fz),Vz=[9,13,27,32],Ym=ua&&"CompositionEvent"in window,Ys=null;ua&&"documentMode"in document&&(Ys=document.documentMode);var Yz=ua&&"TextEvent"in window&&!Ys,E_=ua&&(!Ym||Ys&&8<Ys&&11>=Ys),A_=" ",T_=!1;function j_(a,o){switch(a){case"keyup":return Vz.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function C_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Xo=!1;function Wz(a,o){switch(a){case"compositionend":return C_(o);case"keypress":return o.which!==32?null:(T_=!0,A_);case"textInput":return a=o.data,a===A_&&T_?null:a;default:return null}}function Kz(a,o){if(Xo)return a==="compositionend"||!Ym&&j_(a,o)?(a=x_(),Of=Um=Wa=null,Xo=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return E_&&o.locale!=="ko"?null:o.data;default:return null}}var Xz={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 M_(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!Xz[a.type]:o==="textarea"}function N_(a,o,u,h){Wo?Ko?Ko.push(h):Ko=[h]:Wo=h,o=vd(o,"onChange"),0<o.length&&(u=new Af("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var Ws=null,Ks=null;function Qz(a){hT(a,0)}function jf(a){var o=Us(a);if(d_(o))return a}function R_(a,o){if(a==="change")return o}var P_=!1;if(ua){var Wm;if(ua){var Km="oninput"in document;if(!Km){var D_=document.createElement("div");D_.setAttribute("oninput","return;"),Km=typeof D_.oninput=="function"}Wm=Km}else Wm=!1;P_=Wm&&(!document.documentMode||9<document.documentMode)}function k_(){Ws&&(Ws.detachEvent("onpropertychange",$_),Ks=Ws=null)}function $_(a){if(a.propertyName==="value"&&jf(Ks)){var o=[];N_(o,Ks,a,zm(a)),b_(Qz,o)}}function Zz(a,o,u){a==="focusin"?(k_(),Ws=o,Ks=u,Ws.attachEvent("onpropertychange",$_)):a==="focusout"&&k_()}function Jz(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return jf(Ks)}function eB(a,o){if(a==="click")return jf(o)}function tB(a,o){if(a==="input"||a==="change")return jf(o)}function nB(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var kn=typeof Object.is=="function"?Object.is:nB;function Xs(a,o){if(kn(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var u=Object.keys(a),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!ft.call(o,g)||!kn(a[g],o[g]))return!1}return!0}function L_(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function I_(a,o){var u=L_(a);a=0;for(var h;u;){if(u.nodeType===3){if(h=a+u.textContent.length,a<=o&&h>=o)return{node:u,offset:o-a};a=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=L_(u)}}function z_(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?z_(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function B_(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=wf(a.document);o instanceof a.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)a=o.contentWindow;else break;o=wf(a.document)}return o}function Xm(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var rB=ua&&"documentMode"in document&&11>=document.documentMode,Qo=null,Qm=null,Qs=null,Zm=!1;function q_(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Zm||Qo==null||Qo!==wf(h)||(h=Qo,"selectionStart"in h&&Xm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Qs&&Xs(Qs,h)||(Qs=h,h=vd(Qm,"onSelect"),0<h.length&&(o=new Af("onSelect","select",null,o,u),a.push({event:o,listeners:h}),o.target=Qo)))}function Fi(a,o){var u={};return u[a.toLowerCase()]=o.toLowerCase(),u["Webkit"+a]="webkit"+o,u["Moz"+a]="moz"+o,u}var Zo={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionrun:Fi("Transition","TransitionRun"),transitionstart:Fi("Transition","TransitionStart"),transitioncancel:Fi("Transition","TransitionCancel"),transitionend:Fi("Transition","TransitionEnd")},Jm={},U_={};ua&&(U_=document.createElement("div").style,"AnimationEvent"in window||(delete Zo.animationend.animation,delete Zo.animationiteration.animation,delete Zo.animationstart.animation),"TransitionEvent"in window||delete Zo.transitionend.transition);function Gi(a){if(Jm[a])return Jm[a];if(!Zo[a])return a;var o=Zo[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in U_)return Jm[a]=o[u];return a}var H_=Gi("animationend"),F_=Gi("animationiteration"),G_=Gi("animationstart"),aB=Gi("transitionrun"),iB=Gi("transitionstart"),oB=Gi("transitioncancel"),V_=Gi("transitionend"),Y_=new Map,ev="abort auxClick beforeToggle 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(" ");ev.push("scrollEnd");function br(a,o){Y_.set(a,o),Ui(o,[a])}var Cf=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Zn=[],Jo=0,tv=0;function Mf(){for(var a=Jo,o=tv=Jo=0;o<a;){var u=Zn[o];Zn[o++]=null;var h=Zn[o];Zn[o++]=null;var g=Zn[o];Zn[o++]=null;var b=Zn[o];if(Zn[o++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}b!==0&&W_(u,g,b)}}function Nf(a,o,u,h){Zn[Jo++]=a,Zn[Jo++]=o,Zn[Jo++]=u,Zn[Jo++]=h,tv|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function nv(a,o,u,h){return Nf(a,o,u,h),Rf(a)}function Vi(a,o){return Nf(a,null,null,o),Rf(a)}function W_(a,o,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var g=!1,b=a.return;b!==null;)b.childLanes|=u,h=b.alternate,h!==null&&(h.childLanes|=u),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(g=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,g&&o!==null&&(g=31-sn(u),a=b.hiddenUpdates,h=a[g],h===null?a[g]=[o]:h.push(o),o.lane=u|536870912),b):null}function Rf(a){if(50<bu)throw bu=0,fg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var el={};function lB(a,o,u,h){this.tag=a,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(a,o,u,h){return new lB(a,o,u,h)}function rv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ca(a,o){var u=a.alternate;return u===null?(u=$n(a.tag,o,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=o,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,o=a.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function K_(a,o){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,o=u.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function Pf(a,o,u,h,g,b){var C=0;if(h=a,typeof a=="function")rv(a)&&(C=1);else if(typeof a=="string")C=dq(a,u,se.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case I:return a=$n(31,u,o,g),a.elementType=I,a.lanes=b,a;case w:return Yi(u.children,g,b,o);case S:C=8,g|=24;break;case E:return a=$n(12,u,o,g|2),a.elementType=E,a.lanes=b,a;case j:return a=$n(13,u,o,g),a.elementType=j,a.lanes=b,a;case N:return a=$n(19,u,o,g),a.elementType=N,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case A:C=10;break e;case T:C=9;break e;case M:C=11;break e;case R:C=14;break e;case k:C=16,h=null;break e}C=29,u=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=$n(C,u,o,g),o.elementType=a,o.type=h,o.lanes=b,o}function Yi(a,o,u,h){return a=$n(7,a,h,o),a.lanes=u,a}function av(a,o,u){return a=$n(6,a,null,o),a.lanes=u,a}function X_(a){var o=$n(18,null,null,0);return o.stateNode=a,o}function iv(a,o,u){return o=$n(4,a.children!==null?a.children:[],a.key,o),o.lanes=u,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var Q_=new WeakMap;function Jn(a,o){if(typeof a=="object"&&a!==null){var u=Q_.get(a);return u!==void 0?u:(o={value:a,source:o,stack:ln(o)},Q_.set(a,o),o)}return{value:a,source:o,stack:ln(o)}}var tl=[],nl=0,Df=null,Zs=0,er=[],tr=0,Ka=null,Ur=1,Hr="";function fa(a,o){tl[nl++]=Zs,tl[nl++]=Df,Df=a,Zs=o}function Z_(a,o,u){er[tr++]=Ur,er[tr++]=Hr,er[tr++]=Ka,Ka=a;var h=Ur;a=Hr;var g=32-sn(h)-1;h&=~(1<<g),u+=1;var b=32-sn(o)+g;if(30<b){var C=g-g%5;b=(h&(1<<C)-1).toString(32),h>>=C,g-=C,Ur=1<<32-sn(o)+g|u<<g|h,Hr=b+a}else Ur=1<<b|u<<g|h,Hr=a}function ov(a){a.return!==null&&(fa(a,1),Z_(a,1,0))}function lv(a){for(;a===Df;)Df=tl[--nl],tl[nl]=null,Zs=tl[--nl],tl[nl]=null;for(;a===Ka;)Ka=er[--tr],er[tr]=null,Hr=er[--tr],er[tr]=null,Ur=er[--tr],er[tr]=null}function J_(a,o){er[tr++]=Ur,er[tr++]=Hr,er[tr++]=Ka,Ur=o.id,Hr=o.overflow,Ka=a}var Jt=null,dt=null,Be=!1,Xa=null,nr=!1,sv=Error(r(519));function Qa(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Js(Jn(o,a)),sv}function eE(a){var o=a.stateNode,u=a.type,h=a.memoizedProps;switch(o[Zt]=a,o[On]=h,u){case"dialog":$e("cancel",o),$e("close",o);break;case"iframe":case"object":case"embed":$e("load",o);break;case"video":case"audio":for(u=0;u<wu.length;u++)$e(wu[u],o);break;case"source":$e("error",o);break;case"img":case"image":case"link":$e("error",o),$e("load",o);break;case"details":$e("toggle",o);break;case"input":$e("invalid",o),h_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":$e("invalid",o);break;case"textarea":$e("invalid",o),m_(o,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||gT(o.textContent,u)?(h.popover!=null&&($e("beforetoggle",o),$e("toggle",o)),h.onScroll!=null&&$e("scroll",o),h.onScrollEnd!=null&&$e("scrollend",o),h.onClick!=null&&(o.onclick=sa),o=!0):o=!1,o||Qa(a,!0)}function tE(a){for(Jt=a.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:nr=!1;return;case 27:case 3:nr=!0;return;default:Jt=Jt.return}}function rl(a){if(a!==Jt)return!1;if(!Be)return tE(a),Be=!0,!1;var o=a.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Ag(a.type,a.memoizedProps)),u=!u),u&&dt&&Qa(a),tE(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));dt=AT(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));dt=AT(a)}else o===27?(o=dt,fi(a.type)?(a=Ng,Ng=null,dt=a):dt=o):dt=Jt?ar(a.stateNode.nextSibling):null;return!0}function Wi(){dt=Jt=null,Be=!1}function uv(){var a=Xa;return a!==null&&(jn===null?jn=a:jn.push.apply(jn,a),Xa=null),a}function Js(a){Xa===null?Xa=[a]:Xa.push(a)}var cv=$(null),Ki=null,da=null;function Za(a,o,u){Z(cv,o._currentValue),o._currentValue=u}function ha(a){a._currentValue=cv.current,F(cv)}function fv(a,o,u){for(;a!==null;){var h=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),a===u)break;a=a.return}}function dv(a,o,u,h){var g=a.child;for(g!==null&&(g.return=a);g!==null;){var b=g.dependencies;if(b!==null){var C=g.child;b=b.firstContext;e:for(;b!==null;){var P=b;b=g;for(var q=0;q<o.length;q++)if(P.context===o[q]){b.lanes|=u,P=b.alternate,P!==null&&(P.lanes|=u),fv(b.return,u,a),h||(C=null);break e}b=P.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=u,b=C.alternate,b!==null&&(b.lanes|=u),fv(C,u,a),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===a){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function al(a,o,u,h){a=null;for(var g=o,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var P=g.type;kn(g.pendingProps.value,C.value)||(a!==null?a.push(P):a=[P])}}else if(g===fe.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(a!==null?a.push(Au):a=[Au])}g=g.return}a!==null&&dv(o,a,u,h),o.flags|=262144}function kf(a){for(a=a.firstContext;a!==null;){if(!kn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Xi(a){Ki=a,da=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function en(a){return nE(Ki,a)}function $f(a,o){return Ki===null&&Xi(a),nE(a,o)}function nE(a,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},da===null){if(a===null)throw Error(r(308));da=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else da=da.next=o;return u}var sB=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(u,h){a.push(h)}};this.abort=function(){o.aborted=!0,a.forEach(function(u){return u()})}},uB=e.unstable_scheduleCallback,cB=e.unstable_NormalPriority,Ct={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hv(){return{controller:new sB,data:new Map,refCount:0}}function eu(a){a.refCount--,a.refCount===0&&uB(cB,function(){a.controller.abort()})}var tu=null,pv=0,il=0,ol=null;function fB(a,o){if(tu===null){var u=tu=[];pv=0,il=gg(),ol={status:"pending",value:void 0,then:function(h){u.push(h)}}}return pv++,o.then(rE,rE),o}function rE(){if(--pv===0&&tu!==null){ol!==null&&(ol.status="fulfilled");var a=tu;tu=null,il=0,ol=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function dB(a,o){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<u.length;g++)(0,u[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var aE=D.S;D.S=function(a,o){qA=Gt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&fB(a,o),aE!==null&&aE(a,o)};var Qi=$(null);function mv(){var a=Qi.current;return a!==null?a:st.pooledCache}function Lf(a,o){o===null?Z(Qi,Qi.current):Z(Qi,o.pool)}function iE(){var a=mv();return a===null?null:{parent:Ct._currentValue,pool:a}}var ll=Error(r(460)),vv=Error(r(474)),If=Error(r(542)),zf={then:function(){}};function oE(a){return a=a.status,a==="fulfilled"||a==="rejected"}function lE(a,o,u){switch(u=a[u],u===void 0?a.push(o):u!==o&&(o.then(sa,sa),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,uE(a),a;default:if(typeof o.status=="string")o.then(sa,sa);else{if(a=st,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,uE(a),a}throw Ji=o,ll}}function Zi(a){try{var o=a._init;return o(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ji=u,ll):u}}var Ji=null;function sE(){if(Ji===null)throw Error(r(459));var a=Ji;return Ji=null,a}function uE(a){if(a===ll||a===If)throw Error(r(483))}var sl=null,nu=0;function Bf(a){var o=nu;return nu+=1,sl===null&&(sl=[]),lE(sl,a,o)}function ru(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function qf(a,o){throw o.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function cE(a){function o(Q,H){if(a){var J=Q.deletions;J===null?(Q.deletions=[H],Q.flags|=16):J.push(H)}}function u(Q,H){if(!a)return null;for(;H!==null;)o(Q,H),H=H.sibling;return null}function h(Q){for(var H=new Map;Q!==null;)Q.key!==null?H.set(Q.key,Q):H.set(Q.index,Q),Q=Q.sibling;return H}function g(Q,H){return Q=ca(Q,H),Q.index=0,Q.sibling=null,Q}function b(Q,H,J){return Q.index=J,a?(J=Q.alternate,J!==null?(J=J.index,J<H?(Q.flags|=67108866,H):J):(Q.flags|=67108866,H)):(Q.flags|=1048576,H)}function C(Q){return a&&Q.alternate===null&&(Q.flags|=67108866),Q}function P(Q,H,J,ue){return H===null||H.tag!==6?(H=av(J,Q.mode,ue),H.return=Q,H):(H=g(H,J),H.return=Q,H)}function q(Q,H,J,ue){var _e=J.type;return _e===w?ie(Q,H,J.props.children,ue,J.key):H!==null&&(H.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===k&&Zi(_e)===H.type)?(H=g(H,J.props),ru(H,J),H.return=Q,H):(H=Pf(J.type,J.key,J.props,null,Q.mode,ue),ru(H,J),H.return=Q,H)}function ee(Q,H,J,ue){return H===null||H.tag!==4||H.stateNode.containerInfo!==J.containerInfo||H.stateNode.implementation!==J.implementation?(H=iv(J,Q.mode,ue),H.return=Q,H):(H=g(H,J.children||[]),H.return=Q,H)}function ie(Q,H,J,ue,_e){return H===null||H.tag!==7?(H=Yi(J,Q.mode,ue,_e),H.return=Q,H):(H=g(H,J),H.return=Q,H)}function ce(Q,H,J){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=av(""+H,Q.mode,J),H.return=Q,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return J=Pf(H.type,H.key,H.props,null,Q.mode,J),ru(J,H),J.return=Q,J;case O:return H=iv(H,Q.mode,J),H.return=Q,H;case k:return H=Zi(H),ce(Q,H,J)}if(X(H)||B(H))return H=Yi(H,Q.mode,J,null),H.return=Q,H;if(typeof H.then=="function")return ce(Q,Bf(H),J);if(H.$$typeof===A)return ce(Q,$f(Q,H),J);qf(Q,H)}return null}function te(Q,H,J,ue){var _e=H!==null?H.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return _e!==null?null:P(Q,H,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case x:return J.key===_e?q(Q,H,J,ue):null;case O:return J.key===_e?ee(Q,H,J,ue):null;case k:return J=Zi(J),te(Q,H,J,ue)}if(X(J)||B(J))return _e!==null?null:ie(Q,H,J,ue,null);if(typeof J.then=="function")return te(Q,H,Bf(J),ue);if(J.$$typeof===A)return te(Q,H,$f(Q,J),ue);qf(Q,J)}return null}function ne(Q,H,J,ue,_e){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Q=Q.get(J)||null,P(H,Q,""+ue,_e);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return Q=Q.get(ue.key===null?J:ue.key)||null,q(H,Q,ue,_e);case O:return Q=Q.get(ue.key===null?J:ue.key)||null,ee(H,Q,ue,_e);case k:return ue=Zi(ue),ne(Q,H,J,ue,_e)}if(X(ue)||B(ue))return Q=Q.get(J)||null,ie(H,Q,ue,_e,null);if(typeof ue.then=="function")return ne(Q,H,J,Bf(ue),_e);if(ue.$$typeof===A)return ne(Q,H,J,$f(H,ue),_e);qf(H,ue)}return null}function we(Q,H,J,ue){for(var _e=null,Ge=null,Se=H,Re=H=0,ze=null;Se!==null&&Re<J.length;Re++){Se.index>Re?(ze=Se,Se=null):ze=Se.sibling;var Ve=te(Q,Se,J[Re],ue);if(Ve===null){Se===null&&(Se=ze);break}a&&Se&&Ve.alternate===null&&o(Q,Se),H=b(Ve,H,Re),Ge===null?_e=Ve:Ge.sibling=Ve,Ge=Ve,Se=ze}if(Re===J.length)return u(Q,Se),Be&&fa(Q,Re),_e;if(Se===null){for(;Re<J.length;Re++)Se=ce(Q,J[Re],ue),Se!==null&&(H=b(Se,H,Re),Ge===null?_e=Se:Ge.sibling=Se,Ge=Se);return Be&&fa(Q,Re),_e}for(Se=h(Se);Re<J.length;Re++)ze=ne(Se,Q,Re,J[Re],ue),ze!==null&&(a&&ze.alternate!==null&&Se.delete(ze.key===null?Re:ze.key),H=b(ze,H,Re),Ge===null?_e=ze:Ge.sibling=ze,Ge=ze);return a&&Se.forEach(function(vi){return o(Q,vi)}),Be&&fa(Q,Re),_e}function Ee(Q,H,J,ue){if(J==null)throw Error(r(151));for(var _e=null,Ge=null,Se=H,Re=H=0,ze=null,Ve=J.next();Se!==null&&!Ve.done;Re++,Ve=J.next()){Se.index>Re?(ze=Se,Se=null):ze=Se.sibling;var vi=te(Q,Se,Ve.value,ue);if(vi===null){Se===null&&(Se=ze);break}a&&Se&&vi.alternate===null&&o(Q,Se),H=b(vi,H,Re),Ge===null?_e=vi:Ge.sibling=vi,Ge=vi,Se=ze}if(Ve.done)return u(Q,Se),Be&&fa(Q,Re),_e;if(Se===null){for(;!Ve.done;Re++,Ve=J.next())Ve=ce(Q,Ve.value,ue),Ve!==null&&(H=b(Ve,H,Re),Ge===null?_e=Ve:Ge.sibling=Ve,Ge=Ve);return Be&&fa(Q,Re),_e}for(Se=h(Se);!Ve.done;Re++,Ve=J.next())Ve=ne(Se,Q,Re,Ve.value,ue),Ve!==null&&(a&&Ve.alternate!==null&&Se.delete(Ve.key===null?Re:Ve.key),H=b(Ve,H,Re),Ge===null?_e=Ve:Ge.sibling=Ve,Ge=Ve);return a&&Se.forEach(function(Oq){return o(Q,Oq)}),Be&&fa(Q,Re),_e}function it(Q,H,J,ue){if(typeof J=="object"&&J!==null&&J.type===w&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case x:e:{for(var _e=J.key;H!==null;){if(H.key===_e){if(_e=J.type,_e===w){if(H.tag===7){u(Q,H.sibling),ue=g(H,J.props.children),ue.return=Q,Q=ue;break e}}else if(H.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===k&&Zi(_e)===H.type){u(Q,H.sibling),ue=g(H,J.props),ru(ue,J),ue.return=Q,Q=ue;break e}u(Q,H);break}else o(Q,H);H=H.sibling}J.type===w?(ue=Yi(J.props.children,Q.mode,ue,J.key),ue.return=Q,Q=ue):(ue=Pf(J.type,J.key,J.props,null,Q.mode,ue),ru(ue,J),ue.return=Q,Q=ue)}return C(Q);case O:e:{for(_e=J.key;H!==null;){if(H.key===_e)if(H.tag===4&&H.stateNode.containerInfo===J.containerInfo&&H.stateNode.implementation===J.implementation){u(Q,H.sibling),ue=g(H,J.children||[]),ue.return=Q,Q=ue;break e}else{u(Q,H);break}else o(Q,H);H=H.sibling}ue=iv(J,Q.mode,ue),ue.return=Q,Q=ue}return C(Q);case k:return J=Zi(J),it(Q,H,J,ue)}if(X(J))return we(Q,H,J,ue);if(B(J)){if(_e=B(J),typeof _e!="function")throw Error(r(150));return J=_e.call(J),Ee(Q,H,J,ue)}if(typeof J.then=="function")return it(Q,H,Bf(J),ue);if(J.$$typeof===A)return it(Q,H,$f(Q,J),ue);qf(Q,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,H!==null&&H.tag===6?(u(Q,H.sibling),ue=g(H,J),ue.return=Q,Q=ue):(u(Q,H),ue=av(J,Q.mode,ue),ue.return=Q,Q=ue),C(Q)):u(Q,H)}return function(Q,H,J,ue){try{nu=0;var _e=it(Q,H,J,ue);return sl=null,_e}catch(Se){if(Se===ll||Se===If)throw Se;var Ge=$n(29,Se,null,Q.mode);return Ge.lanes=ue,Ge.return=Q,Ge}finally{}}}var eo=cE(!0),fE=cE(!1),Ja=!1;function gv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yv(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ei(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ti(a,o,u){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(Xe&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Rf(a),W_(a,null,u),o}return Nf(a,h,o,u),Rf(a)}function au(a,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,wn(a,u)}}function bv(a,o){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var C={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?g=b=C:b=b.next=C,u=u.next}while(u!==null);b===null?g=b=o:b=b.next=o}else g=b=o;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=o:a.next=o,u.lastBaseUpdate=o}var xv=!1;function iu(){if(xv){var a=ol;if(a!==null)throw a}}function ou(a,o,u,h){xv=!1;var g=a.updateQueue;Ja=!1;var b=g.firstBaseUpdate,C=g.lastBaseUpdate,P=g.shared.pending;if(P!==null){g.shared.pending=null;var q=P,ee=q.next;q.next=null,C===null?b=ee:C.next=ee,C=q;var ie=a.alternate;ie!==null&&(ie=ie.updateQueue,P=ie.lastBaseUpdate,P!==C&&(P===null?ie.firstBaseUpdate=ee:P.next=ee,ie.lastBaseUpdate=q))}if(b!==null){var ce=g.baseState;C=0,ie=ee=q=null,P=b;do{var te=P.lane&-536870913,ne=te!==P.lane;if(ne?(Ie&te)===te:(h&te)===te){te!==0&&te===il&&(xv=!0),ie!==null&&(ie=ie.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var we=a,Ee=P;te=o;var it=u;switch(Ee.tag){case 1:if(we=Ee.payload,typeof we=="function"){ce=we.call(it,ce,te);break e}ce=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Ee.payload,te=typeof we=="function"?we.call(it,ce,te):we,te==null)break e;ce=p({},ce,te);break e;case 2:Ja=!0}}te=P.callback,te!==null&&(a.flags|=64,ne&&(a.flags|=8192),ne=g.callbacks,ne===null?g.callbacks=[te]:ne.push(te))}else ne={lane:te,tag:P.tag,payload:P.payload,callback:P.callback,next:null},ie===null?(ee=ie=ne,q=ce):ie=ie.next=ne,C|=te;if(P=P.next,P===null){if(P=g.shared.pending,P===null)break;ne=P,P=ne.next,ne.next=null,g.lastBaseUpdate=ne,g.shared.pending=null}}while(!0);ie===null&&(q=ce),g.baseState=q,g.firstBaseUpdate=ee,g.lastBaseUpdate=ie,b===null&&(g.shared.lanes=0),oi|=C,a.lanes=C,a.memoizedState=ce}}function dE(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function hE(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)dE(u[a],o)}var ul=$(null),Uf=$(0);function pE(a,o){a=Sa,Z(Uf,a),Z(ul,o),Sa=a|o.baseLanes}function wv(){Z(Uf,Sa),Z(ul,ul.current)}function Sv(){Sa=Uf.current,F(ul),F(Uf)}var Ln=$(null),rr=null;function ni(a){var o=a.alternate;Z(At,At.current&1),Z(Ln,a),rr===null&&(o===null||ul.current!==null||o.memoizedState!==null)&&(rr=a)}function Ov(a){Z(At,At.current),Z(Ln,a),rr===null&&(rr=a)}function mE(a){a.tag===22?(Z(At,At.current),Z(Ln,a),rr===null&&(rr=a)):ri()}function ri(){Z(At,At.current),Z(Ln,Ln.current)}function In(a){F(Ln),rr===a&&(rr=null),F(At)}var At=$(0);function Hf(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Cg(u)||Mg(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var pa=0,Ce=null,rt=null,Mt=null,Ff=!1,cl=!1,to=!1,Gf=0,lu=0,fl=null,hB=0;function St(){throw Error(r(321))}function _v(a,o){if(o===null)return!1;for(var u=0;u<o.length&&u<a.length;u++)if(!kn(a[u],o[u]))return!1;return!0}function Ev(a,o,u,h,g,b){return pa=b,Ce=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,D.H=a===null||a.memoizedState===null?ZE:Bv,to=!1,b=u(h,g),to=!1,cl&&(b=gE(o,u,h,g)),vE(a),b}function vE(a){D.H=cu;var o=rt!==null&&rt.next!==null;if(pa=0,Mt=rt=Ce=null,Ff=!1,lu=0,fl=null,o)throw Error(r(300));a===null||Nt||(a=a.dependencies,a!==null&&kf(a)&&(Nt=!0))}function gE(a,o,u,h){Ce=a;var g=0;do{if(cl&&(fl=null),lu=0,cl=!1,25<=g)throw Error(r(301));if(g+=1,Mt=rt=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}D.H=JE,b=o(u,h)}while(cl);return b}function pB(){var a=D.H,o=a.useState()[0];return o=typeof o.then=="function"?su(o):o,a=a.useState()[0],(rt!==null?rt.memoizedState:null)!==a&&(Ce.flags|=1024),o}function Av(){var a=Gf!==0;return Gf=0,a}function Tv(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function jv(a){if(Ff){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Ff=!1}pa=0,Mt=rt=Ce=null,cl=!1,lu=Gf=0,fl=null}function gn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Ce.memoizedState=Mt=a:Mt=Mt.next=a,Mt}function Tt(){if(rt===null){var a=Ce.alternate;a=a!==null?a.memoizedState:null}else a=rt.next;var o=Mt===null?Ce.memoizedState:Mt.next;if(o!==null)Mt=o,rt=a;else{if(a===null)throw Ce.alternate===null?Error(r(467)):Error(r(310));rt=a,a={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},Mt===null?Ce.memoizedState=Mt=a:Mt=Mt.next=a}return Mt}function Vf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function su(a){var o=lu;return lu+=1,fl===null&&(fl=[]),a=lE(fl,a,o),o=Ce,(Mt===null?o.memoizedState:Mt.next)===null&&(o=o.alternate,D.H=o===null||o.memoizedState===null?ZE:Bv),a}function Yf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return su(a);if(a.$$typeof===A)return en(a)}throw Error(r(438,String(a)))}function Cv(a){var o=null,u=Ce.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Ce.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Vf(),Ce.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(a),h=0;h<a;h++)u[h]=V;return o.index++,u}function ma(a,o){return typeof o=="function"?o(a):o}function Wf(a){var o=Tt();return Mv(o,rt,a)}function Mv(a,o,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=a.baseQueue,b=h.pending;if(b!==null){if(g!==null){var C=g.next;g.next=b.next,b.next=C}o.baseQueue=g=b,h.pending=null}if(b=a.baseState,g===null)a.memoizedState=b;else{o=g.next;var P=C=null,q=null,ee=o,ie=!1;do{var ce=ee.lane&-536870913;if(ce!==ee.lane?(Ie&ce)===ce:(pa&ce)===ce){var te=ee.revertLane;if(te===0)q!==null&&(q=q.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),ce===il&&(ie=!0);else if((pa&te)===te){ee=ee.next,te===il&&(ie=!0);continue}else ce={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(P=q=ce,C=b):q=q.next=ce,Ce.lanes|=te,oi|=te;ce=ee.action,to&&u(b,ce),b=ee.hasEagerState?ee.eagerState:u(b,ce)}else te={lane:ce,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},q===null?(P=q=te,C=b):q=q.next=te,Ce.lanes|=ce,oi|=ce;ee=ee.next}while(ee!==null&&ee!==o);if(q===null?C=b:q.next=P,!kn(b,a.memoizedState)&&(Nt=!0,ie&&(u=ol,u!==null)))throw u;a.memoizedState=b,a.baseState=C,a.baseQueue=q,h.lastRenderedState=b}return g===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Nv(a){var o=Tt(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,g=u.pending,b=o.memoizedState;if(g!==null){u.pending=null;var C=g=g.next;do b=a(b,C.action),C=C.next;while(C!==g);kn(b,o.memoizedState)||(Nt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function yE(a,o,u){var h=Ce,g=Tt(),b=Be;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var C=!kn((rt||g).memoizedState,u);if(C&&(g.memoizedState=u,Nt=!0),g=g.queue,Dv(wE.bind(null,h,g,a),[a]),g.getSnapshot!==o||C||Mt!==null&&Mt.memoizedState.tag&1){if(h.flags|=2048,dl(9,{destroy:void 0},xE.bind(null,h,g,u,o),null),st===null)throw Error(r(349));b||(pa&127)!==0||bE(h,o,u)}return u}function bE(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Ce.updateQueue,o===null?(o=Vf(),Ce.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function xE(a,o,u,h){o.value=u,o.getSnapshot=h,SE(o)&&OE(a)}function wE(a,o,u){return u(function(){SE(o)&&OE(a)})}function SE(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!kn(a,u)}catch{return!0}}function OE(a){var o=Vi(a,2);o!==null&&Cn(o,a,2)}function Rv(a){var o=gn();if(typeof a=="function"){var u=a;if(a=u(),to){gr(!0);try{u()}finally{gr(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:a},o}function _E(a,o,u,h){return a.baseState=u,Mv(a,rt,typeof h=="function"?h:ma)}function mB(a,o,u,h,g){if(Qf(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:g,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){b.listeners.push(C)}};D.T!==null?u(!0):b.isTransition=!1,h(b),u=o.pending,u===null?(b.next=o.pending=b,EE(o,b)):(b.next=u.next,o.pending=u.next=b)}}function EE(a,o){var u=o.action,h=o.payload,g=a.state;if(o.isTransition){var b=D.T,C={};D.T=C;try{var P=u(g,h),q=D.S;q!==null&&q(C,P),AE(a,o,P)}catch(ee){Pv(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),D.T=b}}else try{b=u(g,h),AE(a,o,b)}catch(ee){Pv(a,o,ee)}}function AE(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){TE(a,o,h)},function(h){return Pv(a,o,h)}):TE(a,o,u)}function TE(a,o,u){o.status="fulfilled",o.value=u,jE(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,EE(a,u)))}function Pv(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,jE(o),o=o.next;while(o!==h)}a.action=null}function jE(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function CE(a,o){return o}function ME(a,o){if(Be){var u=st.formState;if(u!==null){e:{var h=Ce;if(Be){if(dt){t:{for(var g=dt,b=nr;g.nodeType!==8;){if(!b){g=null;break t}if(g=ar(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){dt=ar(g.nextSibling),h=g.data==="F!";break e}}Qa(h)}h=!1}h&&(o=u[0])}}return u=gn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:CE,lastRenderedState:o},u.queue=h,u=KE.bind(null,Ce,h),h.dispatch=u,h=Rv(!1),b=zv.bind(null,Ce,!1,h.queue),h=gn(),g={state:o,dispatch:null,action:a,pending:null},h.queue=g,u=mB.bind(null,Ce,g,b,u),g.dispatch=u,h.memoizedState=a,[o,u,!1]}function NE(a){var o=Tt();return RE(o,rt,a)}function RE(a,o,u){if(o=Mv(a,o,CE)[0],a=Wf(ma)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=su(o)}catch(C){throw C===ll?If:C}else h=o;o=Tt();var g=o.queue,b=g.dispatch;return u!==o.memoizedState&&(Ce.flags|=2048,dl(9,{destroy:void 0},vB.bind(null,g,u),null)),[h,b,a]}function vB(a,o){a.action=o}function PE(a){var o=Tt(),u=rt;if(u!==null)return RE(o,u,a);Tt(),o=o.memoizedState,u=Tt();var h=u.queue.dispatch;return u.memoizedState=a,[o,h,!1]}function dl(a,o,u,h){return a={tag:a,create:u,deps:h,inst:o,next:null},o=Ce.updateQueue,o===null&&(o=Vf(),Ce.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=a.next=a:(h=u.next,u.next=a,a.next=h,o.lastEffect=a),a}function DE(){return Tt().memoizedState}function Kf(a,o,u,h){var g=gn();Ce.flags|=a,g.memoizedState=dl(1|o,{destroy:void 0},u,h===void 0?null:h)}function Xf(a,o,u,h){var g=Tt();h=h===void 0?null:h;var b=g.memoizedState.inst;rt!==null&&h!==null&&_v(h,rt.memoizedState.deps)?g.memoizedState=dl(o,b,u,h):(Ce.flags|=a,g.memoizedState=dl(1|o,b,u,h))}function kE(a,o){Kf(8390656,8,a,o)}function Dv(a,o){Xf(2048,8,a,o)}function gB(a){Ce.flags|=4;var o=Ce.updateQueue;if(o===null)o=Vf(),Ce.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function $E(a){var o=Tt().memoizedState;return gB({ref:o,nextImpl:a}),function(){if((Xe&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function LE(a,o){return Xf(4,2,a,o)}function IE(a,o){return Xf(4,4,a,o)}function zE(a,o){if(typeof o=="function"){a=a();var u=o(a);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function BE(a,o,u){u=u!=null?u.concat([a]):null,Xf(4,4,zE.bind(null,o,a),u)}function kv(){}function qE(a,o){var u=Tt();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&_v(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function UE(a,o){var u=Tt();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&_v(o,h[1]))return h[0];if(h=a(),to){gr(!0);try{a()}finally{gr(!1)}}return u.memoizedState=[h,o],h}function $v(a,o,u){return u===void 0||(pa&1073741824)!==0&&(Ie&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=HA(),Ce.lanes|=a,oi|=a,u)}function HE(a,o,u,h){return kn(u,o)?u:ul.current!==null?(a=$v(a,u,h),kn(a,o)||(Nt=!0),a):(pa&42)===0||(pa&1073741824)!==0&&(Ie&261930)===0?(Nt=!0,a.memoizedState=u):(a=HA(),Ce.lanes|=a,oi|=a,o)}function FE(a,o,u,h,g){var b=U.p;U.p=b!==0&&8>b?b:8;var C=D.T,P={};D.T=P,zv(a,!1,o,u);try{var q=g(),ee=D.S;if(ee!==null&&ee(P,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var ie=dB(q,h);uu(a,o,ie,qn(a))}else uu(a,o,h,qn(a))}catch(ce){uu(a,o,{then:function(){},status:"rejected",reason:ce},qn())}finally{U.p=b,C!==null&&P.types!==null&&(C.types=P.types),D.T=C}}function yB(){}function Lv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var g=GE(a).queue;FE(a,g,o,Y,u===null?yB:function(){return VE(a),u(h)})}function GE(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:Y},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:u},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function VE(a){var o=GE(a);o.next===null&&(o=a.alternate.memoizedState),uu(a,o.next.queue,{},qn())}function Iv(){return en(Au)}function YE(){return Tt().memoizedState}function WE(){return Tt().memoizedState}function bB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var u=qn();a=ei(u);var h=ti(o,a,u);h!==null&&(Cn(h,o,u),au(h,o,u)),o={cache:hv()},a.payload=o;return}o=o.return}}function xB(a,o,u){var h=qn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Qf(a)?XE(o,u):(u=nv(a,o,u,h),u!==null&&(Cn(u,a,h),QE(u,o,h)))}function KE(a,o,u){var h=qn();uu(a,o,u,h)}function uu(a,o,u,h){var g={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Qf(a))XE(o,g);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var C=o.lastRenderedState,P=b(C,u);if(g.hasEagerState=!0,g.eagerState=P,kn(P,C))return Nf(a,o,g,0),st===null&&Mf(),!1}catch{}finally{}if(u=nv(a,o,g,h),u!==null)return Cn(u,a,h),QE(u,o,h),!0}return!1}function zv(a,o,u,h){if(h={lane:2,revertLane:gg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Qf(a)){if(o)throw Error(r(479))}else o=nv(a,u,h,2),o!==null&&Cn(o,a,2)}function Qf(a){var o=a.alternate;return a===Ce||o!==null&&o===Ce}function XE(a,o){cl=Ff=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function QE(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,wn(a,u)}}var cu={readContext:en,use:Yf,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};cu.useEffectEvent=St;var ZE={readContext:en,use:Yf,useCallback:function(a,o){return gn().memoizedState=[a,o===void 0?null:o],a},useContext:en,useEffect:kE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,Kf(4194308,4,zE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return Kf(4194308,4,a,o)},useInsertionEffect:function(a,o){Kf(4,2,a,o)},useMemo:function(a,o){var u=gn();o=o===void 0?null:o;var h=a();if(to){gr(!0);try{a()}finally{gr(!1)}}return u.memoizedState=[h,o],h},useReducer:function(a,o,u){var h=gn();if(u!==void 0){var g=u(o);if(to){gr(!0);try{u(o)}finally{gr(!1)}}}else g=o;return h.memoizedState=h.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},h.queue=a,a=a.dispatch=xB.bind(null,Ce,a),[h.memoizedState,a]},useRef:function(a){var o=gn();return a={current:a},o.memoizedState=a},useState:function(a){a=Rv(a);var o=a.queue,u=KE.bind(null,Ce,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:kv,useDeferredValue:function(a,o){var u=gn();return $v(u,a,o)},useTransition:function(){var a=Rv(!1);return a=FE.bind(null,Ce,a.queue,!0,!1),gn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,u){var h=Ce,g=gn();if(Be){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),st===null)throw Error(r(349));(Ie&127)!==0||bE(h,o,u)}g.memoizedState=u;var b={value:u,getSnapshot:o};return g.queue=b,kE(wE.bind(null,h,b,a),[a]),h.flags|=2048,dl(9,{destroy:void 0},xE.bind(null,h,b,u,o),null),u},useId:function(){var a=gn(),o=st.identifierPrefix;if(Be){var u=Hr,h=Ur;u=(h&~(1<<32-sn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=Gf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=hB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Iv,useFormState:ME,useActionState:ME,useOptimistic:function(a){var o=gn();o.memoizedState=o.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=zv.bind(null,Ce,!0,u),u.dispatch=o,[a,o]},useMemoCache:Cv,useCacheRefresh:function(){return gn().memoizedState=bB.bind(null,Ce)},useEffectEvent:function(a){var o=gn(),u={impl:a};return o.memoizedState=u,function(){if((Xe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Bv={readContext:en,use:Yf,useCallback:qE,useContext:en,useEffect:Dv,useImperativeHandle:BE,useInsertionEffect:LE,useLayoutEffect:IE,useMemo:UE,useReducer:Wf,useRef:DE,useState:function(){return Wf(ma)},useDebugValue:kv,useDeferredValue:function(a,o){var u=Tt();return HE(u,rt.memoizedState,a,o)},useTransition:function(){var a=Wf(ma)[0],o=Tt().memoizedState;return[typeof a=="boolean"?a:su(a),o]},useSyncExternalStore:yE,useId:YE,useHostTransitionStatus:Iv,useFormState:NE,useActionState:NE,useOptimistic:function(a,o){var u=Tt();return _E(u,rt,a,o)},useMemoCache:Cv,useCacheRefresh:WE};Bv.useEffectEvent=$E;var JE={readContext:en,use:Yf,useCallback:qE,useContext:en,useEffect:Dv,useImperativeHandle:BE,useInsertionEffect:LE,useLayoutEffect:IE,useMemo:UE,useReducer:Nv,useRef:DE,useState:function(){return Nv(ma)},useDebugValue:kv,useDeferredValue:function(a,o){var u=Tt();return rt===null?$v(u,a,o):HE(u,rt.memoizedState,a,o)},useTransition:function(){var a=Nv(ma)[0],o=Tt().memoizedState;return[typeof a=="boolean"?a:su(a),o]},useSyncExternalStore:yE,useId:YE,useHostTransitionStatus:Iv,useFormState:PE,useActionState:PE,useOptimistic:function(a,o){var u=Tt();return rt!==null?_E(u,rt,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Cv,useCacheRefresh:WE};JE.useEffectEvent=$E;function qv(a,o,u,h){o=a.memoizedState,u=u(h,o),u=u==null?o:p({},o,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Uv={enqueueSetState:function(a,o,u){a=a._reactInternals;var h=qn(),g=ei(h);g.payload=o,u!=null&&(g.callback=u),o=ti(a,g,h),o!==null&&(Cn(o,a,h),au(o,a,h))},enqueueReplaceState:function(a,o,u){a=a._reactInternals;var h=qn(),g=ei(h);g.tag=1,g.payload=o,u!=null&&(g.callback=u),o=ti(a,g,h),o!==null&&(Cn(o,a,h),au(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var u=qn(),h=ei(u);h.tag=2,o!=null&&(h.callback=o),o=ti(a,h,u),o!==null&&(Cn(o,a,u),au(o,a,u))}};function eA(a,o,u,h,g,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,C):o.prototype&&o.prototype.isPureReactComponent?!Xs(u,h)||!Xs(g,b):!0}function tA(a,o,u,h){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==a&&Uv.enqueueReplaceState(o,o.state,null)}function no(a,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(a=a.defaultProps){u===o&&(u=p({},u));for(var g in a)u[g]===void 0&&(u[g]=a[g])}return u}function nA(a){Cf(a)}function rA(a){console.error(a)}function aA(a){Cf(a)}function Zf(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function iA(a,o,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Hv(a,o,u){return u=ei(u),u.tag=3,u.payload={element:null},u.callback=function(){Zf(a,o)},u}function oA(a){return a=ei(a),a.tag=3,a}function lA(a,o,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var b=h.value;a.payload=function(){return g(b)},a.callback=function(){iA(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){iA(o,u,h),typeof g!="function"&&(li===null?li=new Set([this]):li.add(this));var P=h.stack;this.componentDidCatch(h.value,{componentStack:P!==null?P:""})})}function wB(a,o,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&al(o,u,g,!0),u=Ln.current,u!==null){switch(u.tag){case 31:case 13:return rr===null?cd():u.alternate===null&&Ot===0&&(Ot=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===zf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),pg(a,h,g)),!1;case 22:return u.flags|=65536,h===zf?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),pg(a,h,g)),!1}throw Error(r(435,u.tag))}return pg(a,h,g),cd(),!1}if(Be)return o=Ln.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==sv&&(a=Error(r(422),{cause:h}),Js(Jn(a,u)))):(h!==sv&&(o=Error(r(423),{cause:h}),Js(Jn(o,u))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,h=Jn(h,u),g=Hv(a.stateNode,h,g),bv(a,g),Ot!==4&&(Ot=2)),!1;var b=Error(r(520),{cause:h});if(b=Jn(b,u),yu===null?yu=[b]:yu.push(b),Ot!==4&&(Ot=2),o===null)return!0;h=Jn(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,a=g&-g,u.lanes|=a,a=Hv(u.stateNode,h,a),bv(u,a),!1;case 1:if(o=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(li===null||!li.has(b))))return u.flags|=65536,g&=-g,u.lanes|=g,g=oA(g),lA(g,a,u,h),bv(u,g),!1}u=u.return}while(u!==null);return!1}var Fv=Error(r(461)),Nt=!1;function tn(a,o,u,h){o.child=a===null?fE(o,null,u,h):eo(o,a.child,u,h)}function sA(a,o,u,h,g){u=u.render;var b=o.ref;if("ref"in h){var C={};for(var P in h)P!=="ref"&&(C[P]=h[P])}else C=h;return Xi(o),h=Ev(a,o,u,C,b,g),P=Av(),a!==null&&!Nt?(Tv(a,o,g),va(a,o,g)):(Be&&P&&ov(o),o.flags|=1,tn(a,o,h,g),o.child)}function uA(a,o,u,h,g){if(a===null){var b=u.type;return typeof b=="function"&&!rv(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,cA(a,o,b,h,g)):(a=Pf(u.type,null,h,o,o.mode,g),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!Zv(a,g)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:Xs,u(C,h)&&a.ref===o.ref)return va(a,o,g)}return o.flags|=1,a=ca(b,h),a.ref=o.ref,a.return=o,o.child=a}function cA(a,o,u,h,g){if(a!==null){var b=a.memoizedProps;if(Xs(b,h)&&a.ref===o.ref)if(Nt=!1,o.pendingProps=h=b,Zv(a,g))(a.flags&131072)!==0&&(Nt=!0);else return o.lanes=a.lanes,va(a,o,g)}return Gv(a,o,u,h,g)}function fA(a,o,u,h){var g=h.children,b=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,a!==null){for(h=o.child=a.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;h=g&~b}else h=0,o.child=null;return dA(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Lf(o,b!==null?b.cachePool:null),b!==null?pE(o,b):wv(),mE(o);else return h=o.lanes=536870912,dA(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(Lf(o,b.cachePool),pE(o,b),ri(),o.memoizedState=null):(a!==null&&Lf(o,null),wv(),ri());return tn(a,o,g,u),o.child}function fu(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function dA(a,o,u,h,g){var b=mv();return b=b===null?null:{parent:Ct._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&Lf(o,null),wv(),mE(o),a!==null&&al(a,o,h,!0),o.childLanes=g,null}function Jf(a,o){return o=td({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function hA(a,o,u){return eo(o,a.child,null,u),a=Jf(o,o.pendingProps),a.flags|=2,In(o),o.memoizedState=null,a}function SB(a,o,u){var h=o.pendingProps,g=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Be){if(h.mode==="hidden")return a=Jf(o,h),o.lanes=536870912,fu(null,a);if(Ov(o),(a=dt)?(a=ET(a,nr),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ka!==null?{id:Ur,overflow:Hr}:null,retryLane:536870912,hydrationErrors:null},u=X_(a),u.return=o,o.child=u,Jt=o,dt=null)):a=null,a===null)throw Qa(o);return o.lanes=536870912,null}return Jf(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(Ov(o),g)if(o.flags&256)o.flags&=-257,o=hA(a,o,u);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Nt||al(a,o,u,!1),g=(u&a.childLanes)!==0,Nt||g){if(h=st,h!==null&&(C=Sn(h,u),C!==0&&C!==b.retryLane))throw b.retryLane=C,Vi(a,C),Cn(h,a,C),Fv;cd(),o=hA(a,o,u)}else a=b.treeContext,dt=ar(C.nextSibling),Jt=o,Be=!0,Xa=null,nr=!1,a!==null&&J_(o,a),o=Jf(o,h),o.flags|=4096;return o}return a=ca(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function ed(a,o){var u=o.ref;if(u===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(o.flags|=4194816)}}function Gv(a,o,u,h,g){return Xi(o),u=Ev(a,o,u,h,void 0,g),h=Av(),a!==null&&!Nt?(Tv(a,o,g),va(a,o,g)):(Be&&h&&ov(o),o.flags|=1,tn(a,o,u,g),o.child)}function pA(a,o,u,h,g,b){return Xi(o),o.updateQueue=null,u=gE(o,h,u,g),vE(a),h=Av(),a!==null&&!Nt?(Tv(a,o,b),va(a,o,b)):(Be&&h&&ov(o),o.flags|=1,tn(a,o,u,b),o.child)}function mA(a,o,u,h,g){if(Xi(o),o.stateNode===null){var b=el,C=u.contextType;typeof C=="object"&&C!==null&&(b=en(C)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Uv,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},gv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?en(C):el,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(qv(o,u,C,h),b.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(C=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),C!==b.state&&Uv.enqueueReplaceState(b,b.state,null),ou(o,h,b,g),iu(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){b=o.stateNode;var P=o.memoizedProps,q=no(u,P);b.props=q;var ee=b.context,ie=u.contextType;C=el,typeof ie=="object"&&ie!==null&&(C=en(ie));var ce=u.getDerivedStateFromProps;ie=typeof ce=="function"||typeof b.getSnapshotBeforeUpdate=="function",P=o.pendingProps!==P,ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(P||ee!==C)&&tA(o,b,h,C),Ja=!1;var te=o.memoizedState;b.state=te,ou(o,h,b,g),iu(),ee=o.memoizedState,P||te!==ee||Ja?(typeof ce=="function"&&(qv(o,u,ce,h),ee=o.memoizedState),(q=Ja||eA(o,u,q,h,te,ee,C))?(ie||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=ee),b.props=h,b.state=ee,b.context=C,h=q):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,yv(a,o),C=o.memoizedProps,ie=no(u,C),b.props=ie,ce=o.pendingProps,te=b.context,ee=u.contextType,q=el,typeof ee=="object"&&ee!==null&&(q=en(ee)),P=u.getDerivedStateFromProps,(ee=typeof P=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==ce||te!==q)&&tA(o,b,h,q),Ja=!1,te=o.memoizedState,b.state=te,ou(o,h,b,g),iu();var ne=o.memoizedState;C!==ce||te!==ne||Ja||a!==null&&a.dependencies!==null&&kf(a.dependencies)?(typeof P=="function"&&(qv(o,u,P,h),ne=o.memoizedState),(ie=Ja||eA(o,u,ie,h,te,ne,q)||a!==null&&a.dependencies!==null&&kf(a.dependencies))?(ee||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,ne,q),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,ne,q)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ne),b.props=h,b.state=ne,b.context=q,h=ie):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=1024),h=!1)}return b=h,ed(a,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,a!==null&&h?(o.child=eo(o,a.child,null,g),o.child=eo(o,null,u,g)):tn(a,o,u,g),o.memoizedState=b.state,a=o.child):a=va(a,o,g),a}function vA(a,o,u,h){return Wi(),o.flags|=256,tn(a,o,u,h),o.child}var Vv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yv(a){return{baseLanes:a,cachePool:iE()}}function Wv(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=Bn),a}function gA(a,o,u){var h=o.pendingProps,g=!1,b=(o.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(At.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,a===null){if(Be){if(g?ni(o):ri(),(a=dt)?(a=ET(a,nr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Ka!==null?{id:Ur,overflow:Hr}:null,retryLane:536870912,hydrationErrors:null},u=X_(a),u.return=o,o.child=u,Jt=o,dt=null)):a=null,a===null)throw Qa(o);return Mg(a)?o.lanes=32:o.lanes=536870912,null}var P=h.children;return h=h.fallback,g?(ri(),g=o.mode,P=td({mode:"hidden",children:P},g),h=Yi(h,g,u,null),P.return=o,h.return=o,P.sibling=h,o.child=P,h=o.child,h.memoizedState=Yv(u),h.childLanes=Wv(a,C,u),o.memoizedState=Vv,fu(null,h)):(ni(o),Kv(o,P))}var q=a.memoizedState;if(q!==null&&(P=q.dehydrated,P!==null)){if(b)o.flags&256?(ni(o),o.flags&=-257,o=Xv(a,o,u)):o.memoizedState!==null?(ri(),o.child=a.child,o.flags|=128,o=null):(ri(),P=h.fallback,g=o.mode,h=td({mode:"visible",children:h.children},g),P=Yi(P,g,u,null),P.flags|=2,h.return=o,P.return=o,h.sibling=P,o.child=h,eo(o,a.child,null,u),h=o.child,h.memoizedState=Yv(u),h.childLanes=Wv(a,C,u),o.memoizedState=Vv,o=fu(null,h));else if(ni(o),Mg(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,Js({value:h,source:null,stack:null}),o=Xv(a,o,u)}else if(Nt||al(a,o,u,!1),C=(u&a.childLanes)!==0,Nt||C){if(C=st,C!==null&&(h=Sn(C,u),h!==0&&h!==q.retryLane))throw q.retryLane=h,Vi(a,h),Cn(C,a,h),Fv;Cg(P)||cd(),o=Xv(a,o,u)}else Cg(P)?(o.flags|=192,o.child=a.child,o=null):(a=q.treeContext,dt=ar(P.nextSibling),Jt=o,Be=!0,Xa=null,nr=!1,a!==null&&J_(o,a),o=Kv(o,h.children),o.flags|=4096);return o}return g?(ri(),P=h.fallback,g=o.mode,q=a.child,ee=q.sibling,h=ca(q,{mode:"hidden",children:h.children}),h.subtreeFlags=q.subtreeFlags&65011712,ee!==null?P=ca(ee,P):(P=Yi(P,g,u,null),P.flags|=2),P.return=o,h.return=o,h.sibling=P,o.child=h,fu(null,h),h=o.child,P=a.child.memoizedState,P===null?P=Yv(u):(g=P.cachePool,g!==null?(q=Ct._currentValue,g=g.parent!==q?{parent:q,pool:q}:g):g=iE(),P={baseLanes:P.baseLanes|u,cachePool:g}),h.memoizedState=P,h.childLanes=Wv(a,C,u),o.memoizedState=Vv,fu(a.child,h)):(ni(o),u=a.child,a=u.sibling,u=ca(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,a!==null&&(C=o.deletions,C===null?(o.deletions=[a],o.flags|=16):C.push(a)),o.child=u,o.memoizedState=null,u)}function Kv(a,o){return o=td({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function td(a,o){return a=$n(22,a,null,o),a.lanes=0,a}function Xv(a,o,u){return eo(o,a.child,null,u),a=Kv(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function yA(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),fv(a.return,o,u)}function Qv(a,o,u,h,g,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g,treeForkCount:b}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=g,C.treeForkCount=b)}function bA(a,o,u){var h=o.pendingProps,g=h.revealOrder,b=h.tail;h=h.children;var C=At.current,P=(C&2)!==0;if(P?(C=C&1|2,o.flags|=128):C&=1,Z(At,C),tn(a,o,h,u),h=Be?Zs:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&yA(a,u,o);else if(a.tag===19)yA(a,u,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(g){case"forwards":for(u=o.child,g=null;u!==null;)a=u.alternate,a!==null&&Hf(a)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),Qv(o,!1,g,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,g=o.child,o.child=null;g!==null;){if(a=g.alternate,a!==null&&Hf(a)===null){o.child=g;break}a=g.sibling,g.sibling=u,u=g,g=a}Qv(o,!0,u,null,b,h);break;case"together":Qv(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function va(a,o,u){if(a!==null&&(o.dependencies=a.dependencies),oi|=o.lanes,(u&o.childLanes)===0)if(a!==null){if(al(a,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,u=ca(a,a.pendingProps),o.child=u,u.return=o;a.sibling!==null;)a=a.sibling,u=u.sibling=ca(a,a.pendingProps),u.return=o;u.sibling=null}return o.child}function Zv(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&kf(a)))}function OB(a,o,u){switch(o.tag){case 3:pe(o,o.stateNode.containerInfo),Za(o,Ct,a.memoizedState.cache),Wi();break;case 27:case 5:me(o);break;case 4:pe(o,o.stateNode.containerInfo);break;case 10:Za(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Ov(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ni(o),o.flags|=128,null):(u&o.child.childLanes)!==0?gA(a,o,u):(ni(o),a=va(a,o,u),a!==null?a.sibling:null);ni(o);break;case 19:var g=(a.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(al(a,o,u,!1),h=(u&o.childLanes)!==0),g){if(h)return bA(a,o,u);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Z(At,At.current),h)break;return null;case 22:return o.lanes=0,fA(a,o,u,o.pendingProps);case 24:Za(o,Ct,a.memoizedState.cache)}return va(a,o,u)}function xA(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Nt=!0;else{if(!Zv(a,u)&&(o.flags&128)===0)return Nt=!1,OB(a,o,u);Nt=(a.flags&131072)!==0}else Nt=!1,Be&&(o.flags&1048576)!==0&&Z_(o,Zs,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=Zi(o.elementType),o.type=a,typeof a=="function")rv(a)?(h=no(a,h),o.tag=1,o=mA(null,o,a,h,u)):(o.tag=0,o=Gv(null,o,a,h,u));else{if(a!=null){var g=a.$$typeof;if(g===M){o.tag=11,o=sA(null,o,a,h,u);break e}else if(g===R){o.tag=14,o=uA(null,o,a,h,u);break e}}throw o=K(a)||a,Error(r(306,o,""))}}return o;case 0:return Gv(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,g=no(h,o.pendingProps),mA(a,o,h,g,u);case 3:e:{if(pe(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;g=b.element,yv(a,o),ou(o,h,null,u);var C=o.memoizedState;if(h=C.cache,Za(o,Ct,h),h!==b.cache&&dv(o,[Ct],u,!0),iu(),h=C.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=vA(a,o,h,u);break e}else if(h!==g){g=Jn(Error(r(424)),o),Js(g),o=vA(a,o,h,u);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(dt=ar(a.firstChild),Jt=o,Be=!0,Xa=null,nr=!0,u=fE(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Wi(),h===g){o=va(a,o,u);break e}tn(a,o,h,u)}o=o.child}return o;case 26:return ed(a,o),a===null?(u=NT(o.type,null,o.pendingProps,null))?o.memoizedState=u:Be||(u=o.type,a=o.pendingProps,h=gd(ge.current).createElement(u),h[Zt]=o,h[On]=a,nn(h,u,a),Yt(h),o.stateNode=h):o.memoizedState=NT(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return me(o),a===null&&Be&&(h=o.stateNode=jT(o.type,o.pendingProps,ge.current),Jt=o,nr=!0,g=dt,fi(o.type)?(Ng=g,dt=ar(h.firstChild)):dt=g),tn(a,o,o.pendingProps.children,u),ed(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Be&&((g=h=dt)&&(h=JB(h,o.type,o.pendingProps,nr),h!==null?(o.stateNode=h,Jt=o,dt=ar(h.firstChild),nr=!1,g=!0):g=!1),g||Qa(o)),me(o),g=o.type,b=o.pendingProps,C=a!==null?a.memoizedProps:null,h=b.children,Ag(g,b)?h=null:C!==null&&Ag(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=Ev(a,o,pB,null,null,u),Au._currentValue=g),ed(a,o),tn(a,o,h,u),o.child;case 6:return a===null&&Be&&((a=u=dt)&&(u=eq(u,o.pendingProps,nr),u!==null?(o.stateNode=u,Jt=o,dt=null,a=!0):a=!1),a||Qa(o)),null;case 13:return gA(a,o,u);case 4:return pe(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=eo(o,null,h,u):tn(a,o,h,u),o.child;case 11:return sA(a,o,o.type,o.pendingProps,u);case 7:return tn(a,o,o.pendingProps,u),o.child;case 8:return tn(a,o,o.pendingProps.children,u),o.child;case 12:return tn(a,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Za(o,o.type,h.value),tn(a,o,h.children,u),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,Xi(o),g=en(g),h=h(g),o.flags|=1,tn(a,o,h,u),o.child;case 14:return uA(a,o,o.type,o.pendingProps,u);case 15:return cA(a,o,o.type,o.pendingProps,u);case 19:return bA(a,o,u);case 31:return SB(a,o,u);case 22:return fA(a,o,u,o.pendingProps);case 24:return Xi(o),h=en(Ct),a===null?(g=mv(),g===null&&(g=st,b=hv(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=u),g=b),o.memoizedState={parent:h,cache:g},gv(o),Za(o,Ct,g)):((a.lanes&u)!==0&&(yv(a,o),ou(o,null,null,u),iu()),g=a.memoizedState,b=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Za(o,Ct,h)):(h=b.cache,Za(o,Ct,h),h!==g.cache&&dv(o,[Ct],u,!0))),tn(a,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function ga(a){a.flags|=4}function Jv(a,o,u,h,g){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(g&335544128)===g)if(a.stateNode.complete)a.flags|=8192;else if(YA())a.flags|=8192;else throw Ji=zf,vv}else a.flags&=-16777217}function wA(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!$T(o))if(YA())a.flags|=8192;else throw Ji=zf,vv}function nd(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?un():536870912,a.lanes|=o,vl|=o)}function du(a,o){if(!Be)switch(a.tailMode){case"hidden":o=a.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function ht(a){var o=a.alternate!==null&&a.alternate.child===a.child,u=0,h=0;if(o)for(var g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=a,g=g.sibling;else for(g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=h,a.childLanes=u,o}function _B(a,o,u){var h=o.pendingProps;switch(lv(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(o),null;case 1:return ht(o),null;case 3:return u=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ha(Ct),ae(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(rl(o)?ga(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,uv())),ht(o),null;case 26:var g=o.type,b=o.memoizedState;return a===null?(ga(o),b!==null?(ht(o),wA(o,b)):(ht(o),Jv(o,g,null,h,u))):b?b!==a.memoizedState?(ga(o),ht(o),wA(o,b)):(ht(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&ga(o),ht(o),Jv(o,g,a,h,u)),null;case 27:if(ye(o),u=ge.current,g=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&ga(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return ht(o),null}a=se.current,rl(o)?eE(o):(a=jT(g,h,u),o.stateNode=a,ga(o))}return ht(o),null;case 5:if(ye(o),g=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&ga(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return ht(o),null}if(b=se.current,rl(o))eE(o);else{var C=gd(ge.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=C.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?C.createElement("select",{is:h.is}):C.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?C.createElement(g,{is:h.is}):C.createElement(g)}}b[Zt]=o,b[On]=h;e:for(C=o.child;C!==null;){if(C.tag===5||C.tag===6)b.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===o)break e;for(;C.sibling===null;){if(C.return===null||C.return===o)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}o.stateNode=b;e:switch(nn(b,g,h),g){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ga(o)}}return ht(o),Jv(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,u),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&ga(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=ge.current,rl(o)){if(a=o.stateNode,u=o.memoizedProps,h=null,g=Jt,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}a[Zt]=o,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||gT(a.nodeValue,u)),a||Qa(o,!0)}else a=gd(a).createTextNode(h),a[Zt]=o,o.stateNode=a}return ht(o),null;case 31:if(u=o.memoizedState,a===null||a.memoizedState!==null){if(h=rl(o),u!==null){if(a===null){if(!h)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Zt]=o}else Wi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),a=!1}else u=uv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return o.flags&256?(In(o),o):(In(o),null);if((o.flags&128)!==0)throw Error(r(558))}return ht(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(g=rl(o),h!==null&&h.dehydrated!==null){if(a===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[Zt]=o}else Wi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),g=!1}else g=uv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(In(o),o):(In(o),null)}return In(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,a=a!==null&&a.memoizedState!==null,u&&(h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==g&&(h.flags|=2048)),u!==a&&u&&(o.child.flags|=8192),nd(o,o.updateQueue),ht(o),null);case 4:return ae(),a===null&&wg(o.stateNode.containerInfo),ht(o),null;case 10:return ha(o.type),ht(o),null;case 19:if(F(At),h=o.memoizedState,h===null)return ht(o),null;if(g=(o.flags&128)!==0,b=h.rendering,b===null)if(g)du(h,!1);else{if(Ot!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=Hf(a),b!==null){for(o.flags|=128,du(h,!1),a=b.updateQueue,o.updateQueue=a,nd(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)K_(u,a),u=u.sibling;return Z(At,At.current&1|2),Be&&fa(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&Gt()>ld&&(o.flags|=128,g=!0,du(h,!1),o.lanes=4194304)}else{if(!g)if(a=Hf(b),a!==null){if(o.flags|=128,g=!0,a=a.updateQueue,o.updateQueue=a,nd(o,a),du(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Be)return ht(o),null}else 2*Gt()-h.renderingStartTime>ld&&u!==536870912&&(o.flags|=128,g=!0,du(h,!1),o.lanes=4194304);h.isBackwards?(b.sibling=o.child,o.child=b):(a=h.last,a!==null?a.sibling=b:o.child=b,h.last=b)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=Gt(),a.sibling=null,u=At.current,Z(At,g?u&1|2:u&1),Be&&fa(o,h.treeForkCount),a):(ht(o),null);case 22:case 23:return In(o),Sv(),h=o.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(ht(o),o.subtreeFlags&6&&(o.flags|=8192)):ht(o),u=o.updateQueue,u!==null&&nd(o,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),a!==null&&F(Qi),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),ha(Ct),ht(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function EB(a,o){switch(lv(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return ha(Ct),ae(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return ye(o),null;case 31:if(o.memoizedState!==null){if(In(o),o.alternate===null)throw Error(r(340));Wi()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(In(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Wi()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return F(At),null;case 4:return ae(),null;case 10:return ha(o.type),null;case 22:case 23:return In(o),Sv(),a!==null&&F(Qi),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return ha(Ct),null;case 25:return null;default:return null}}function SA(a,o){switch(lv(o),o.tag){case 3:ha(Ct),ae();break;case 26:case 27:case 5:ye(o);break;case 4:ae();break;case 31:o.memoizedState!==null&&In(o);break;case 13:In(o);break;case 19:F(At);break;case 10:ha(o.type);break;case 22:case 23:In(o),Sv(),a!==null&&F(Qi);break;case 24:ha(Ct)}}function hu(a,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&a)===a){h=void 0;var b=u.create,C=u.inst;h=b(),C.destroy=h}u=u.next}while(u!==g)}}catch(P){et(o,o.return,P)}}function ai(a,o,u){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var b=g.next;h=b;do{if((h.tag&a)===a){var C=h.inst,P=C.destroy;if(P!==void 0){C.destroy=void 0,g=o;var q=u,ee=P;try{ee()}catch(ie){et(g,q,ie)}}}h=h.next}while(h!==b)}}catch(ie){et(o,o.return,ie)}}function OA(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{hE(o,u)}catch(h){et(a,a.return,h)}}}function _A(a,o,u){u.props=no(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){et(a,o,h)}}function pu(a,o){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var h=a.stateNode;break;case 30:h=a.stateNode;break;default:h=a.stateNode}typeof u=="function"?a.refCleanup=u(h):u.current=h}}catch(g){et(a,o,g)}}function Fr(a,o){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){et(a,o,g)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){et(a,o,g)}else u.current=null}function EA(a){var o=a.type,u=a.memoizedProps,h=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(g){et(a,a.return,g)}}function eg(a,o,u){try{var h=a.stateNode;YB(h,a.type,u,o),h[On]=o}catch(g){et(a,a.return,g)}}function AA(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&fi(a.type)||a.tag===4}function tg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||AA(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&fi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function ng(a,o,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(a),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=sa));else if(h!==4&&(h===27&&fi(a.type)&&(u=a.stateNode,o=null),a=a.child,a!==null))for(ng(a,o,u),a=a.sibling;a!==null;)ng(a,o,u),a=a.sibling}function rd(a,o,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?u.insertBefore(a,o):u.appendChild(a);else if(h!==4&&(h===27&&fi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(rd(a,o,u),a=a.sibling;a!==null;)rd(a,o,u),a=a.sibling}function TA(a){var o=a.stateNode,u=a.memoizedProps;try{for(var h=a.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);nn(o,h,u),o[Zt]=a,o[On]=u}catch(b){et(a,a.return,b)}}var ya=!1,Rt=!1,rg=!1,jA=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function AB(a,o){if(a=a.containerInfo,_g=_d,a=B_(a),Xm(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var C=0,P=-1,q=-1,ee=0,ie=0,ce=a,te=null;t:for(;;){for(var ne;ce!==u||g!==0&&ce.nodeType!==3||(P=C+g),ce!==b||h!==0&&ce.nodeType!==3||(q=C+h),ce.nodeType===3&&(C+=ce.nodeValue.length),(ne=ce.firstChild)!==null;)te=ce,ce=ne;for(;;){if(ce===a)break t;if(te===u&&++ee===g&&(P=C),te===b&&++ie===h&&(q=C),(ne=ce.nextSibling)!==null)break;ce=te,te=ce.parentNode}ce=ne}u=P===-1||q===-1?null:{start:P,end:q}}else u=null}u=u||{start:0,end:0}}else u=null;for(Eg={focusedElem:a,selectionRange:u},_d=!1,Wt=o;Wt!==null;)if(o=Wt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Wt=a;else for(;Wt!==null;){switch(o=Wt,b=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)g=a[u],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=o,g=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var we=no(u.type,g);a=h.getSnapshotBeforeUpdate(we,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Ee){et(u,u.return,Ee)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,u=a.nodeType,u===9)jg(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":jg(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=o.sibling,a!==null){a.return=o.return,Wt=a;break}Wt=o.return}}function CA(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:xa(a,u),h&4&&hu(5,u);break;case 1:if(xa(a,u),h&4)if(a=u.stateNode,o===null)try{a.componentDidMount()}catch(C){et(u,u.return,C)}else{var g=no(u.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(g,o,a.__reactInternalSnapshotBeforeUpdate)}catch(C){et(u,u.return,C)}}h&64&&OA(u),h&512&&pu(u,u.return);break;case 3:if(xa(a,u),h&64&&(a=u.updateQueue,a!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{hE(a,o)}catch(C){et(u,u.return,C)}}break;case 27:o===null&&h&4&&TA(u);case 26:case 5:xa(a,u),o===null&&h&4&&EA(u),h&512&&pu(u,u.return);break;case 12:xa(a,u);break;case 31:xa(a,u),h&4&&RA(a,u);break;case 13:xa(a,u),h&4&&PA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=kB.bind(null,u),tq(a,u))));break;case 22:if(h=u.memoizedState!==null||ya,!h){o=o!==null&&o.memoizedState!==null||Rt,g=ya;var b=Rt;ya=h,(Rt=o)&&!b?wa(a,u,(u.subtreeFlags&8772)!==0):xa(a,u),ya=g,Rt=b}break;case 30:break;default:xa(a,u)}}function MA(a){var o=a.alternate;o!==null&&(a.alternate=null,MA(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Pm(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var gt=null,En=!1;function ba(a,o,u){for(u=u.child;u!==null;)NA(a,o,u),u=u.sibling}function NA(a,o,u){if(vn&&typeof vn.onCommitFiberUnmount=="function")try{vn.onCommitFiberUnmount(zi,u)}catch{}switch(u.tag){case 26:Rt||Fr(u,o),ba(a,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Rt||Fr(u,o);var h=gt,g=En;fi(u.type)&&(gt=u.stateNode,En=!1),ba(a,o,u),Ou(u.stateNode),gt=h,En=g;break;case 5:Rt||Fr(u,o);case 6:if(h=gt,g=En,gt=null,ba(a,o,u),gt=h,En=g,gt!==null)if(En)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(u.stateNode)}catch(b){et(u,o,b)}else try{gt.removeChild(u.stateNode)}catch(b){et(u,o,b)}break;case 18:gt!==null&&(En?(a=gt,OT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),_l(a)):OT(gt,u.stateNode));break;case 4:h=gt,g=En,gt=u.stateNode.containerInfo,En=!0,ba(a,o,u),gt=h,En=g;break;case 0:case 11:case 14:case 15:ai(2,u,o),Rt||ai(4,u,o),ba(a,o,u);break;case 1:Rt||(Fr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&_A(u,o,h)),ba(a,o,u);break;case 21:ba(a,o,u);break;case 22:Rt=(h=Rt)||u.memoizedState!==null,ba(a,o,u),Rt=h;break;default:ba(a,o,u)}}function RA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{_l(a)}catch(u){et(o,o.return,u)}}}function PA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{_l(a)}catch(u){et(o,o.return,u)}}function TB(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new jA),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new jA),o;default:throw Error(r(435,a.tag))}}function ad(a,o){var u=TB(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var g=$B.bind(null,a,h);h.then(g,g)}})}function An(a,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],b=a,C=o,P=C;e:for(;P!==null;){switch(P.tag){case 27:if(fi(P.type)){gt=P.stateNode,En=!1;break e}break;case 5:gt=P.stateNode,En=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,En=!0;break e}P=P.return}if(gt===null)throw Error(r(160));NA(b,C,g),gt=null,En=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)DA(o,a),o=o.sibling}var xr=null;function DA(a,o){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:An(o,a),Tn(a),h&4&&(ai(3,a,a.return),hu(3,a),ai(5,a,a.return));break;case 1:An(o,a),Tn(a),h&512&&(Rt||u===null||Fr(u,u.return)),h&64&&ya&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=xr;if(An(o,a),Tn(a),h&512&&(Rt||u===null||Fr(u,u.return)),h&4){var b=u!==null?u.memoizedState:null;if(h=a.memoizedState,u===null)if(h===null)if(a.stateNode===null){e:{h=a.type,u=a.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":b=g.getElementsByTagName("title")[0],(!b||b[qs]||b[Zt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(h),g.head.insertBefore(b,g.querySelector("head > title"))),nn(b,h,u),b[Zt]=a,Yt(b),h=b;break e;case"link":var C=DT("link","href",g).get(h+(u.href||""));if(C){for(var P=0;P<C.length;P++)if(b=C[P],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){C.splice(P,1);break t}}b=g.createElement(h),nn(b,h,u),g.head.appendChild(b);break;case"meta":if(C=DT("meta","content",g).get(h+(u.content||""))){for(P=0;P<C.length;P++)if(b=C[P],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){C.splice(P,1);break t}}b=g.createElement(h),nn(b,h,u),g.head.appendChild(b);break;default:throw Error(r(468,h))}b[Zt]=a,Yt(b),h=b}a.stateNode=h}else kT(g,a.type,a.stateNode);else a.stateNode=PT(g,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?kT(g,a.type,a.stateNode):PT(g,h,a.memoizedProps)):h===null&&a.stateNode!==null&&eg(a,a.memoizedProps,u.memoizedProps)}break;case 27:An(o,a),Tn(a),h&512&&(Rt||u===null||Fr(u,u.return)),u!==null&&h&4&&eg(a,a.memoizedProps,u.memoizedProps);break;case 5:if(An(o,a),Tn(a),h&512&&(Rt||u===null||Fr(u,u.return)),a.flags&32){g=a.stateNode;try{Yo(g,"")}catch(we){et(a,a.return,we)}}h&4&&a.stateNode!=null&&(g=a.memoizedProps,eg(a,g,u!==null?u.memoizedProps:g)),h&1024&&(rg=!0);break;case 6:if(An(o,a),Tn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,u=a.stateNode;try{u.nodeValue=h}catch(we){et(a,a.return,we)}}break;case 3:if(xd=null,g=xr,xr=yd(o.containerInfo),An(o,a),xr=g,Tn(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{_l(o.containerInfo)}catch(we){et(a,a.return,we)}rg&&(rg=!1,kA(a));break;case 4:h=xr,xr=yd(a.stateNode.containerInfo),An(o,a),Tn(a),xr=h;break;case 12:An(o,a),Tn(a);break;case 31:An(o,a),Tn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ad(a,h)));break;case 13:An(o,a),Tn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(od=Gt()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ad(a,h)));break;case 22:g=a.memoizedState!==null;var q=u!==null&&u.memoizedState!==null,ee=ya,ie=Rt;if(ya=ee||g,Rt=ie||q,An(o,a),Rt=ie,ya=ee,Tn(a),h&8192)e:for(o=a.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(u===null||q||ya||Rt||ro(a)),u=null,o=a;;){if(o.tag===5||o.tag===26){if(u===null){q=u=o;try{if(b=q.stateNode,g)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{P=q.stateNode;var ce=q.memoizedProps.style,te=ce!=null&&ce.hasOwnProperty("display")?ce.display:null;P.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){et(q,q.return,we)}}}else if(o.tag===6){if(u===null){q=o;try{q.stateNode.nodeValue=g?"":q.memoizedProps}catch(we){et(q,q.return,we)}}}else if(o.tag===18){if(u===null){q=o;try{var ne=q.stateNode;g?_T(ne,!0):_T(q.stateNode,!1)}catch(we){et(q,q.return,we)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=a.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,ad(a,u))));break;case 19:An(o,a),Tn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ad(a,h)));break;case 30:break;case 21:break;default:An(o,a),Tn(a)}}function Tn(a){var o=a.flags;if(o&2){try{for(var u,h=a.return;h!==null;){if(AA(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,b=tg(a);rd(a,b,g);break;case 5:var C=u.stateNode;u.flags&32&&(Yo(C,""),u.flags&=-33);var P=tg(a);rd(a,P,C);break;case 3:case 4:var q=u.stateNode.containerInfo,ee=tg(a);ng(a,ee,q);break;default:throw Error(r(161))}}catch(ie){et(a,a.return,ie)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function kA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;kA(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function xa(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)CA(a,o.alternate,o),o=o.sibling}function ro(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:ai(4,o,o.return),ro(o);break;case 1:Fr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&_A(o,o.return,u),ro(o);break;case 27:Ou(o.stateNode);case 26:case 5:Fr(o,o.return),ro(o);break;case 22:o.memoizedState===null&&ro(o);break;case 30:ro(o);break;default:ro(o)}a=a.sibling}}function wa(a,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=a,b=o,C=b.flags;switch(b.tag){case 0:case 11:case 15:wa(g,b,u),hu(4,b);break;case 1:if(wa(g,b,u),h=b,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){et(h,h.return,ee)}if(h=b,g=h.updateQueue,g!==null){var P=h.stateNode;try{var q=g.shared.hiddenCallbacks;if(q!==null)for(g.shared.hiddenCallbacks=null,g=0;g<q.length;g++)dE(q[g],P)}catch(ee){et(h,h.return,ee)}}u&&C&64&&OA(b),pu(b,b.return);break;case 27:TA(b);case 26:case 5:wa(g,b,u),u&&h===null&&C&4&&EA(b),pu(b,b.return);break;case 12:wa(g,b,u);break;case 31:wa(g,b,u),u&&C&4&&RA(g,b);break;case 13:wa(g,b,u),u&&C&4&&PA(g,b);break;case 22:b.memoizedState===null&&wa(g,b,u),pu(b,b.return);break;case 30:break;default:wa(g,b,u)}o=o.sibling}}function ag(a,o){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&eu(u))}function ig(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&eu(a))}function wr(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)$A(a,o,u,h),o=o.sibling}function $A(a,o,u,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:wr(a,o,u,h),g&2048&&hu(9,o);break;case 1:wr(a,o,u,h);break;case 3:wr(a,o,u,h),g&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&eu(a)));break;case 12:if(g&2048){wr(a,o,u,h),a=o.stateNode;try{var b=o.memoizedProps,C=b.id,P=b.onPostCommit;typeof P=="function"&&P(C,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(q){et(o,o.return,q)}}else wr(a,o,u,h);break;case 31:wr(a,o,u,h);break;case 13:wr(a,o,u,h);break;case 23:break;case 22:b=o.stateNode,C=o.alternate,o.memoizedState!==null?b._visibility&2?wr(a,o,u,h):mu(a,o):b._visibility&2?wr(a,o,u,h):(b._visibility|=2,hl(a,o,u,h,(o.subtreeFlags&10256)!==0||!1)),g&2048&&ag(C,o);break;case 24:wr(a,o,u,h),g&2048&&ig(o.alternate,o);break;default:wr(a,o,u,h)}}function hl(a,o,u,h,g){for(g=g&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=a,C=o,P=u,q=h,ee=C.flags;switch(C.tag){case 0:case 11:case 15:hl(b,C,P,q,g),hu(8,C);break;case 23:break;case 22:var ie=C.stateNode;C.memoizedState!==null?ie._visibility&2?hl(b,C,P,q,g):mu(b,C):(ie._visibility|=2,hl(b,C,P,q,g)),g&&ee&2048&&ag(C.alternate,C);break;case 24:hl(b,C,P,q,g),g&&ee&2048&&ig(C.alternate,C);break;default:hl(b,C,P,q,g)}o=o.sibling}}function mu(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=a,h=o,g=h.flags;switch(h.tag){case 22:mu(u,h),g&2048&&ag(h.alternate,h);break;case 24:mu(u,h),g&2048&&ig(h.alternate,h);break;default:mu(u,h)}o=o.sibling}}var vu=8192;function pl(a,o,u){if(a.subtreeFlags&vu)for(a=a.child;a!==null;)LA(a,o,u),a=a.sibling}function LA(a,o,u){switch(a.tag){case 26:pl(a,o,u),a.flags&vu&&a.memoizedState!==null&&hq(u,xr,a.memoizedState,a.memoizedProps);break;case 5:pl(a,o,u);break;case 3:case 4:var h=xr;xr=yd(a.stateNode.containerInfo),pl(a,o,u),xr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=vu,vu=16777216,pl(a,o,u),vu=h):pl(a,o,u));break;default:pl(a,o,u)}}function IA(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function gu(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,BA(h,a)}IA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)zA(a),a=a.sibling}function zA(a){switch(a.tag){case 0:case 11:case 15:gu(a),a.flags&2048&&ai(9,a,a.return);break;case 3:gu(a);break;case 12:gu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,id(a)):gu(a);break;default:gu(a)}}function id(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,BA(h,a)}IA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:ai(8,o,o.return),id(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,id(o));break;default:id(o)}a=a.sibling}}function BA(a,o){for(;Wt!==null;){var u=Wt;switch(u.tag){case 0:case 11:case 15:ai(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:eu(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Wt=h;else e:for(u=a;Wt!==null;){h=Wt;var g=h.sibling,b=h.return;if(MA(h),h===u){Wt=null;break e}if(g!==null){g.return=b,Wt=g;break e}Wt=b}}}var jB={getCacheForType:function(a){var o=en(Ct),u=o.data.get(a);return u===void 0&&(u=a(),o.data.set(a,u)),u},cacheSignal:function(){return en(Ct).controller.signal}},CB=typeof WeakMap=="function"?WeakMap:Map,Xe=0,st=null,ke=null,Ie=0,Je=0,zn=null,ii=!1,ml=!1,og=!1,Sa=0,Ot=0,oi=0,ao=0,lg=0,Bn=0,vl=0,yu=null,jn=null,sg=!1,od=0,qA=0,ld=1/0,sd=null,li=null,zt=0,si=null,gl=null,Oa=0,ug=0,cg=null,UA=null,bu=0,fg=null;function qn(){return(Xe&2)!==0&&Ie!==0?Ie&-Ie:D.T!==null?gg():Nm()}function HA(){if(Bn===0)if((Ie&536870912)===0||Be){var a=zo;zo<<=1,(zo&3932160)===0&&(zo=262144),Bn=a}else Bn=536870912;return a=Ln.current,a!==null&&(a.flags|=32),Bn}function Cn(a,o,u){(a===st&&(Je===2||Je===9)||a.cancelPendingCommit!==null)&&(yl(a,0),ui(a,Ie,Bn,!1)),wt(a,u),((Xe&2)===0||a!==st)&&(a===st&&((Xe&2)===0&&(ao|=u),Ot===4&&ui(a,Ie,Bn,!1)),Gr(a))}function FA(a,o,u){if((Xe&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||vt(a,o),g=h?RB(a,o):hg(a,o,!0),b=h;do{if(g===0){ml&&!h&&ui(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!MB(u)){g=hg(a,o,!1),b=!1;continue}if(g===2){if(b=o,a.errorRecoveryDisabledLanes&b)var C=0;else C=a.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var P=a;g=yu;var q=P.current.memoizedState.isDehydrated;if(q&&(yl(P,C).flags|=256),C=hg(P,C,!1),C!==2){if(og&&!q){P.errorRecoveryDisabledLanes|=b,ao|=b,g=4;break e}b=jn,jn=g,b!==null&&(jn===null?jn=b:jn.push.apply(jn,b))}g=C}if(b=!1,g!==2)continue}}if(g===1){yl(a,0),ui(a,o,0,!0);break}e:{switch(h=a,b=g,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ui(h,o,Bn,!ii);break e;case 2:jn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=od+300-Gt(),10<g)){if(ui(h,o,Bn,!ii),Te(h,0,!0)!==0)break e;Oa=o,h.timeoutHandle=wT(GA.bind(null,h,u,jn,sd,sg,o,Bn,ao,vl,ii,b,"Throttled",-0,0),g);break e}GA(h,u,jn,sd,sg,o,Bn,ao,vl,ii,b,null,-0,0)}}break}while(!0);Gr(a)}function GA(a,o,u,h,g,b,C,P,q,ee,ie,ce,te,ne){if(a.timeoutHandle=-1,ce=o.subtreeFlags,ce&8192||(ce&16785408)===16785408){ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sa},LA(o,b,ce);var we=(b&62914560)===b?od-Gt():(b&4194048)===b?qA-Gt():0;if(we=pq(ce,we),we!==null){Oa=b,a.cancelPendingCommit=we(JA.bind(null,a,o,b,u,h,g,C,P,q,ie,ce,null,te,ne)),ui(a,b,C,!ee);return}}JA(a,o,b,u,h,g,C,P,q)}function MB(a){for(var o=a;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var g=u[h],b=g.getSnapshot;g=g.value;try{if(!kn(b(),g))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ui(a,o,u,h){o&=~lg,o&=~ao,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var g=o;0<g;){var b=31-sn(g),C=1<<b;h[b]=-1,g&=~C}u!==0&&qi(a,u,o)}function ud(){return(Xe&6)===0?(xu(0),!1):!0}function dg(){if(ke!==null){if(Je===0)var a=ke.return;else a=ke,da=Ki=null,jv(a),sl=null,nu=0,a=ke;for(;a!==null;)SA(a.alternate,a),a=a.return;ke=null}}function yl(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,XB(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Oa=0,dg(),st=a,ke=u=ca(a.current,null),Ie=o,Je=0,zn=null,ii=!1,ml=vt(a,o),og=!1,vl=Bn=lg=ao=oi=Ot=0,jn=yu=null,sg=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var g=31-sn(h),b=1<<g;o|=a[g],h&=~b}return Sa=o,Mf(),u}function VA(a,o){Ce=null,D.H=cu,o===ll||o===If?(o=sE(),Je=3):o===vv?(o=sE(),Je=4):Je=o===Fv?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,zn=o,ke===null&&(Ot=1,Zf(a,Jn(o,a.current)))}function YA(){var a=Ln.current;return a===null?!0:(Ie&4194048)===Ie?rr===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?a===rr:!1}function WA(){var a=D.H;return D.H=cu,a===null?cu:a}function KA(){var a=D.A;return D.A=jB,a}function cd(){Ot=4,ii||(Ie&4194048)!==Ie&&Ln.current!==null||(ml=!0),(oi&134217727)===0&&(ao&134217727)===0||st===null||ui(st,Ie,Bn,!1)}function hg(a,o,u){var h=Xe;Xe|=2;var g=WA(),b=KA();(st!==a||Ie!==o)&&(sd=null,yl(a,o)),o=!1;var C=Ot;e:do try{if(Je!==0&&ke!==null){var P=ke,q=zn;switch(Je){case 8:dg(),C=6;break e;case 3:case 2:case 9:case 6:Ln.current===null&&(o=!0);var ee=Je;if(Je=0,zn=null,bl(a,P,q,ee),u&&ml){C=0;break e}break;default:ee=Je,Je=0,zn=null,bl(a,P,q,ee)}}NB(),C=Ot;break}catch(ie){VA(a,ie)}while(!0);return o&&a.shellSuspendCounter++,da=Ki=null,Xe=h,D.H=g,D.A=b,ke===null&&(st=null,Ie=0,Mf()),C}function NB(){for(;ke!==null;)XA(ke)}function RB(a,o){var u=Xe;Xe|=2;var h=WA(),g=KA();st!==a||Ie!==o?(sd=null,ld=Gt()+500,yl(a,o)):ml=vt(a,o);e:do try{if(Je!==0&&ke!==null){o=ke;var b=zn;t:switch(Je){case 1:Je=0,zn=null,bl(a,o,b,1);break;case 2:case 9:if(oE(b)){Je=0,zn=null,QA(o);break}o=function(){Je!==2&&Je!==9||st!==a||(Je=7),Gr(a)},b.then(o,o);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:oE(b)?(Je=0,zn=null,QA(o)):(Je=0,zn=null,bl(a,o,b,7));break;case 5:var C=null;switch(ke.tag){case 26:C=ke.memoizedState;case 5:case 27:var P=ke;if(C?$T(C):P.stateNode.complete){Je=0,zn=null;var q=P.sibling;if(q!==null)ke=q;else{var ee=P.return;ee!==null?(ke=ee,fd(ee)):ke=null}break t}}Je=0,zn=null,bl(a,o,b,5);break;case 6:Je=0,zn=null,bl(a,o,b,6);break;case 8:dg(),Ot=6;break e;default:throw Error(r(462))}}PB();break}catch(ie){VA(a,ie)}while(!0);return da=Ki=null,D.H=h,D.A=g,Xe=u,ke!==null?0:(st=null,Ie=0,Mf(),Ot)}function PB(){for(;ke!==null&&!xt();)XA(ke)}function XA(a){var o=xA(a.alternate,a,Sa);a.memoizedProps=a.pendingProps,o===null?fd(a):ke=o}function QA(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=pA(u,o,o.pendingProps,o.type,void 0,Ie);break;case 11:o=pA(u,o,o.pendingProps,o.type.render,o.ref,Ie);break;case 5:jv(o);default:SA(u,o),o=ke=K_(o,Sa),o=xA(u,o,Sa)}a.memoizedProps=a.pendingProps,o===null?fd(a):ke=o}function bl(a,o,u,h){da=Ki=null,jv(o),sl=null,nu=0;var g=o.return;try{if(wB(a,g,o,u,Ie)){Ot=1,Zf(a,Jn(u,a.current)),ke=null;return}}catch(b){if(g!==null)throw ke=g,b;Ot=1,Zf(a,Jn(u,a.current)),ke=null;return}o.flags&32768?(Be||h===1?a=!0:ml||(Ie&536870912)!==0?a=!1:(ii=a=!0,(h===2||h===9||h===3||h===6)&&(h=Ln.current,h!==null&&h.tag===13&&(h.flags|=16384))),ZA(o,a)):fd(o)}function fd(a){var o=a;do{if((o.flags&32768)!==0){ZA(o,ii);return}a=o.return;var u=_B(o.alternate,o,Sa);if(u!==null){ke=u;return}if(o=o.sibling,o!==null){ke=o;return}ke=o=a}while(o!==null);Ot===0&&(Ot=5)}function ZA(a,o){do{var u=EB(a.alternate,a);if(u!==null){u.flags&=32767,ke=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(a=a.sibling,a!==null)){ke=a;return}ke=a=u}while(a!==null);Ot=6,ke=null}function JA(a,o,u,h,g,b,C,P,q){a.cancelPendingCommit=null;do dd();while(zt!==0);if((Xe&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=tv,xn(a,u,b,C,P,q),a===st&&(ke=st=null,Ie=0),gl=o,si=a,Oa=u,ug=b,cg=g,UA=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,LB(Ii,function(){return aT(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=D.T,D.T=null,g=U.p,U.p=2,C=Xe,Xe|=4;try{AB(a,o,u)}finally{Xe=C,U.p=g,D.T=h}}zt=1,eT(),tT(),nT()}}function eT(){if(zt===1){zt=0;var a=si,o=gl,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=D.T,D.T=null;var h=U.p;U.p=2;var g=Xe;Xe|=4;try{DA(o,a);var b=Eg,C=B_(a.containerInfo),P=b.focusedElem,q=b.selectionRange;if(C!==P&&P&&P.ownerDocument&&z_(P.ownerDocument.documentElement,P)){if(q!==null&&Xm(P)){var ee=q.start,ie=q.end;if(ie===void 0&&(ie=ee),"selectionStart"in P)P.selectionStart=ee,P.selectionEnd=Math.min(ie,P.value.length);else{var ce=P.ownerDocument||document,te=ce&&ce.defaultView||window;if(te.getSelection){var ne=te.getSelection(),we=P.textContent.length,Ee=Math.min(q.start,we),it=q.end===void 0?Ee:Math.min(q.end,we);!ne.extend&&Ee>it&&(C=it,it=Ee,Ee=C);var Q=I_(P,Ee),H=I_(P,it);if(Q&&H&&(ne.rangeCount!==1||ne.anchorNode!==Q.node||ne.anchorOffset!==Q.offset||ne.focusNode!==H.node||ne.focusOffset!==H.offset)){var J=ce.createRange();J.setStart(Q.node,Q.offset),ne.removeAllRanges(),Ee>it?(ne.addRange(J),ne.extend(H.node,H.offset)):(J.setEnd(H.node,H.offset),ne.addRange(J))}}}}for(ce=[],ne=P;ne=ne.parentNode;)ne.nodeType===1&&ce.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<ce.length;P++){var ue=ce[P];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}_d=!!_g,Eg=_g=null}finally{Xe=g,U.p=h,D.T=u}}a.current=o,zt=2}}function tT(){if(zt===2){zt=0;var a=si,o=gl,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=D.T,D.T=null;var h=U.p;U.p=2;var g=Xe;Xe|=4;try{CA(a,o.alternate,o)}finally{Xe=g,U.p=h,D.T=u}}zt=3}}function nT(){if(zt===4||zt===3){zt=0,Kn();var a=si,o=gl,u=Oa,h=UA;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?zt=5:(zt=0,gl=si=null,rT(a,a.pendingLanes));var g=a.pendingLanes;if(g===0&&(li=null),yr(u),o=o.stateNode,vn&&typeof vn.onCommitFiberRoot=="function")try{vn.onCommitFiberRoot(zi,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=D.T,g=U.p,U.p=2,D.T=null;try{for(var b=a.onRecoverableError,C=0;C<h.length;C++){var P=h[C];b(P.value,{componentStack:P.stack})}}finally{D.T=o,U.p=g}}(Oa&3)!==0&&dd(),Gr(a),g=a.pendingLanes,(u&261930)!==0&&(g&42)!==0?a===fg?bu++:(bu=0,fg=a):bu=0,xu(0)}}function rT(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,eu(o)))}function dd(){return eT(),tT(),nT(),aT()}function aT(){if(zt!==5)return!1;var a=si,o=ug;ug=0;var u=yr(Oa),h=D.T,g=U.p;try{U.p=32>u?32:u,D.T=null,u=cg,cg=null;var b=si,C=Oa;if(zt=0,gl=si=null,Oa=0,(Xe&6)!==0)throw Error(r(331));var P=Xe;if(Xe|=4,zA(b.current),$A(b,b.current,C,u),Xe=P,xu(0,!1),vn&&typeof vn.onPostCommitFiberRoot=="function")try{vn.onPostCommitFiberRoot(zi,b)}catch{}return!0}finally{U.p=g,D.T=h,rT(a,o)}}function iT(a,o,u){o=Jn(u,o),o=Hv(a.stateNode,o,2),a=ti(a,o,2),a!==null&&(wt(a,2),Gr(a))}function et(a,o,u){if(a.tag===3)iT(a,a,u);else for(;o!==null;){if(o.tag===3){iT(o,a,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(li===null||!li.has(h))){a=Jn(u,a),u=oA(2),h=ti(o,u,2),h!==null&&(lA(u,h,o,a),wt(h,2),Gr(h));break}}o=o.return}}function pg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new CB;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(u)||(og=!0,g.add(u),a=DB.bind(null,a,o,u),o.then(a,a))}function DB(a,o,u){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,st===a&&(Ie&u)===u&&(Ot===4||Ot===3&&(Ie&62914560)===Ie&&300>Gt()-od?(Xe&2)===0&&yl(a,0):lg|=u,vl===Ie&&(vl=0)),Gr(a)}function oT(a,o){o===0&&(o=un()),a=Vi(a,o),a!==null&&(wt(a,o),Gr(a))}function kB(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),oT(a,u)}function $B(a,o){var u=0;switch(a.tag){case 31:case 13:var h=a.stateNode,g=a.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),oT(a,u)}function LB(a,o){return zr(a,o)}var hd=null,xl=null,mg=!1,pd=!1,vg=!1,ci=0;function Gr(a){a!==xl&&a.next===null&&(xl===null?hd=xl=a:xl=xl.next=a),pd=!0,mg||(mg=!0,zB())}function xu(a,o){if(!vg&&pd){vg=!0;do for(var u=!1,h=hd;h!==null;){if(a!==0){var g=h.pendingLanes;if(g===0)var b=0;else{var C=h.suspendedLanes,P=h.pingedLanes;b=(1<<31-sn(42|a)+1)-1,b&=g&~(C&~P),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,cT(h,b))}else b=Ie,b=Te(h,h===st?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||vt(h,b)||(u=!0,cT(h,b));h=h.next}while(u);vg=!1}}function IB(){lT()}function lT(){pd=mg=!1;var a=0;ci!==0&&KB()&&(a=ci);for(var o=Gt(),u=null,h=hd;h!==null;){var g=h.next,b=sT(h,o);b===0?(h.next=null,u===null?hd=g:u.next=g,g===null&&(xl=u)):(u=h,(a!==0||(b&3)!==0)&&(pd=!0)),h=g}zt!==0&&zt!==5||xu(a),ci!==0&&(ci=0)}function sT(a,o){for(var u=a.suspendedLanes,h=a.pingedLanes,g=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-sn(b),P=1<<C,q=g[C];q===-1?((P&u)===0||(P&h)!==0)&&(g[C]=Vt(P,o)):q<=o&&(a.expiredLanes|=P),b&=~P}if(o=st,u=Ie,u=Te(a,a===o?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,u===0||a===o&&(Je===2||Je===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&Dn(h),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||vt(a,u)){if(o=u&-u,o===a.callbackPriority)return o;switch(h!==null&&Dn(h),yr(u)){case 2:case 8:u=gf;break;case 32:u=Ii;break;case 268435456:u=oa;break;default:u=Ii}return h=uT.bind(null,a),u=zr(u,h),a.callbackPriority=o,a.callbackNode=u,o}return h!==null&&h!==null&&Dn(h),a.callbackPriority=2,a.callbackNode=null,2}function uT(a,o){if(zt!==0&&zt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(dd()&&a.callbackNode!==u)return null;var h=Ie;return h=Te(a,a===st?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(FA(a,h,o),sT(a,Gt()),a.callbackNode!=null&&a.callbackNode===u?uT.bind(null,a):null)}function cT(a,o){if(dd())return null;FA(a,o,!0)}function zB(){QB(function(){(Xe&6)!==0?zr(Li,IB):lT()})}function gg(){if(ci===0){var a=il;a===0&&(a=Io,Io<<=1,(Io&261888)===0&&(Io=256)),ci=a}return ci}function fT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Sf(""+a)}function dT(a,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,a.id&&u.setAttribute("form",a.id),o.parentNode.insertBefore(u,o),a=new FormData(a),u.parentNode.removeChild(u),a}function BB(a,o,u,h,g){if(o==="submit"&&u&&u.stateNode===g){var b=fT((g[On]||null).action),C=h.submitter;C&&(o=(o=C[On]||null)?fT(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var P=new Af("action","action",null,h,g);a.push({event:P,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ci!==0){var q=C?dT(g,C):new FormData(g);Lv(u,{pending:!0,data:q,method:g.method,action:b},null,q)}}else typeof b=="function"&&(P.preventDefault(),q=C?dT(g,C):new FormData(g),Lv(u,{pending:!0,data:q,method:g.method,action:b},b,q))},currentTarget:g}]})}}for(var yg=0;yg<ev.length;yg++){var bg=ev[yg],qB=bg.toLowerCase(),UB=bg[0].toUpperCase()+bg.slice(1);br(qB,"on"+UB)}br(H_,"onAnimationEnd"),br(F_,"onAnimationIteration"),br(G_,"onAnimationStart"),br("dblclick","onDoubleClick"),br("focusin","onFocus"),br("focusout","onBlur"),br(aB,"onTransitionRun"),br(iB,"onTransitionStart"),br(oB,"onTransitionCancel"),br(V_,"onTransitionEnd"),Go("onMouseEnter",["mouseout","mouseover"]),Go("onMouseLeave",["mouseout","mouseover"]),Go("onPointerEnter",["pointerout","pointerover"]),Go("onPointerLeave",["pointerout","pointerover"]),Ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ui("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wu="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(" "),HB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wu));function hT(a,o){o=(o&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],g=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var C=h.length-1;0<=C;C--){var P=h[C],q=P.instance,ee=P.currentTarget;if(P=P.listener,q!==b&&g.isPropagationStopped())break e;b=P,g.currentTarget=ee;try{b(g)}catch(ie){Cf(ie)}g.currentTarget=null,b=q}else for(C=0;C<h.length;C++){if(P=h[C],q=P.instance,ee=P.currentTarget,P=P.listener,q!==b&&g.isPropagationStopped())break e;b=P,g.currentTarget=ee;try{b(g)}catch(ie){Cf(ie)}g.currentTarget=null,b=q}}}}function $e(a,o){var u=o[Rm];u===void 0&&(u=o[Rm]=new Set);var h=a+"__bubble";u.has(h)||(pT(o,a,2,!1),u.add(h))}function xg(a,o,u){var h=0;o&&(h|=4),pT(u,a,h,o)}var md="_reactListening"+Math.random().toString(36).slice(2);function wg(a){if(!a[md]){a[md]=!0,l_.forEach(function(u){u!=="selectionchange"&&(HB.has(u)||xg(u,!1,a),xg(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[md]||(o[md]=!0,xg("selectionchange",!1,o))}}function pT(a,o,u,h){switch(HT(o)){case 2:var g=gq;break;case 8:g=yq;break;default:g=$g}u=g.bind(null,o,u,a),g=void 0,!qm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?a.addEventListener(o,u,{capture:!0,passive:g}):a.addEventListener(o,u,!0):g!==void 0?a.addEventListener(o,u,{passive:g}):a.addEventListener(o,u,!1)}function Sg(a,o,u,h,g){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var P=h.stateNode.containerInfo;if(P===g)break;if(C===4)for(C=h.return;C!==null;){var q=C.tag;if((q===3||q===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;P!==null;){if(C=Uo(P),C===null)return;if(q=C.tag,q===5||q===6||q===26||q===27){h=b=C;continue e}P=P.parentNode}}h=h.return}b_(function(){var ee=b,ie=zm(u),ce=[];e:{var te=Y_.get(a);if(te!==void 0){var ne=Af,we=a;switch(a){case"keypress":if(_f(u)===0)break e;case"keydown":case"keyup":ne=$z;break;case"focusin":we="focus",ne=Gm;break;case"focusout":we="blur",ne=Gm;break;case"beforeblur":case"afterblur":ne=Gm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=S_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=_z;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=zz;break;case H_:case F_:case G_:ne=Tz;break;case V_:ne=qz;break;case"scroll":case"scrollend":ne=Sz;break;case"wheel":ne=Hz;break;case"copy":case"cut":case"paste":ne=Cz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=__;break;case"toggle":case"beforetoggle":ne=Gz}var Ee=(o&4)!==0,it=!Ee&&(a==="scroll"||a==="scrollend"),Q=Ee?te!==null?te+"Capture":null:te;Ee=[];for(var H=ee,J;H!==null;){var ue=H;if(J=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||J===null||Q===null||(ue=Hs(H,Q),ue!=null&&Ee.push(Su(H,ue,J))),it)break;H=H.return}0<Ee.length&&(te=new ne(te,we,null,u,ie),ce.push({event:te,listeners:Ee}))}}if((o&7)===0){e:{if(te=a==="mouseover"||a==="pointerover",ne=a==="mouseout"||a==="pointerout",te&&u!==Im&&(we=u.relatedTarget||u.fromElement)&&(Uo(we)||we[qo]))break e;if((ne||te)&&(te=ie.window===ie?ie:(te=ie.ownerDocument)?te.defaultView||te.parentWindow:window,ne?(we=u.relatedTarget||u.toElement,ne=ee,we=we?Uo(we):null,we!==null&&(it=l(we),Ee=we.tag,we!==it||Ee!==5&&Ee!==27&&Ee!==6)&&(we=null)):(ne=null,we=ee),ne!==we)){if(Ee=S_,ue="onMouseLeave",Q="onMouseEnter",H="mouse",(a==="pointerout"||a==="pointerover")&&(Ee=__,ue="onPointerLeave",Q="onPointerEnter",H="pointer"),it=ne==null?te:Us(ne),J=we==null?te:Us(we),te=new Ee(ue,H+"leave",ne,u,ie),te.target=it,te.relatedTarget=J,ue=null,Uo(ie)===ee&&(Ee=new Ee(Q,H+"enter",we,u,ie),Ee.target=J,Ee.relatedTarget=it,ue=Ee),it=ue,ne&&we)t:{for(Ee=FB,Q=ne,H=we,J=0,ue=Q;ue;ue=Ee(ue))J++;ue=0;for(var _e=H;_e;_e=Ee(_e))ue++;for(;0<J-ue;)Q=Ee(Q),J--;for(;0<ue-J;)H=Ee(H),ue--;for(;J--;){if(Q===H||H!==null&&Q===H.alternate){Ee=Q;break t}Q=Ee(Q),H=Ee(H)}Ee=null}else Ee=null;ne!==null&&mT(ce,te,ne,Ee,!1),we!==null&&it!==null&&mT(ce,it,we,Ee,!0)}}e:{if(te=ee?Us(ee):window,ne=te.nodeName&&te.nodeName.toLowerCase(),ne==="select"||ne==="input"&&te.type==="file")var Ge=R_;else if(M_(te))if(P_)Ge=tB;else{Ge=Jz;var Se=Zz}else ne=te.nodeName,!ne||ne.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Lm(ee.elementType)&&(Ge=R_):Ge=eB;if(Ge&&(Ge=Ge(a,ee))){N_(ce,Ge,u,ie);break e}Se&&Se(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&$m(te,"number",te.value)}switch(Se=ee?Us(ee):window,a){case"focusin":(M_(Se)||Se.contentEditable==="true")&&(Qo=Se,Qm=ee,Qs=null);break;case"focusout":Qs=Qm=Qo=null;break;case"mousedown":Zm=!0;break;case"contextmenu":case"mouseup":case"dragend":Zm=!1,q_(ce,u,ie);break;case"selectionchange":if(rB)break;case"keydown":case"keyup":q_(ce,u,ie)}var Re;if(Ym)e:{switch(a){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Xo?j_(a,u)&&(ze="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(E_&&u.locale!=="ko"&&(Xo||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Xo&&(Re=x_()):(Wa=ie,Um="value"in Wa?Wa.value:Wa.textContent,Xo=!0)),Se=vd(ee,ze),0<Se.length&&(ze=new O_(ze,a,null,u,ie),ce.push({event:ze,listeners:Se}),Re?ze.data=Re:(Re=C_(u),Re!==null&&(ze.data=Re)))),(Re=Yz?Wz(a,u):Kz(a,u))&&(ze=vd(ee,"onBeforeInput"),0<ze.length&&(Se=new O_("onBeforeInput","beforeinput",null,u,ie),ce.push({event:Se,listeners:ze}),Se.data=Re)),BB(ce,a,ee,u,ie)}hT(ce,o)})}function Su(a,o,u){return{instance:a,listener:o,currentTarget:u}}function vd(a,o){for(var u=o+"Capture",h=[];a!==null;){var g=a,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=Hs(a,u),g!=null&&h.unshift(Su(a,g,b)),g=Hs(a,o),g!=null&&h.push(Su(a,g,b))),a.tag===3)return h;a=a.return}return[]}function FB(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function mT(a,o,u,h,g){for(var b=o._reactName,C=[];u!==null&&u!==h;){var P=u,q=P.alternate,ee=P.stateNode;if(P=P.tag,q!==null&&q===h)break;P!==5&&P!==26&&P!==27||ee===null||(q=ee,g?(ee=Hs(u,b),ee!=null&&C.unshift(Su(u,ee,q))):g||(ee=Hs(u,b),ee!=null&&C.push(Su(u,ee,q)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var GB=/\r\n?/g,VB=/\u0000|\uFFFD/g;function vT(a){return(typeof a=="string"?a:""+a).replace(GB,`
49
- `).replace(VB,"")}function gT(a,o){return o=vT(o),vT(a)===o}function at(a,o,u,h,g,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Yo(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Yo(a,""+h);break;case"className":xf(a,"class",h);break;case"tabIndex":xf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":xf(a,u,h);break;case"style":g_(a,h,b);break;case"data":if(o!=="object"){xf(a,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){a.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=Sf(""+h),a.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){a.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(u==="formAction"?(o!=="input"&&at(a,o,"name",g.name,g,null),at(a,o,"formEncType",g.formEncType,g,null),at(a,o,"formMethod",g.formMethod,g,null),at(a,o,"formTarget",g.formTarget,g,null)):(at(a,o,"encType",g.encType,g,null),at(a,o,"method",g.method,g,null),at(a,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=Sf(""+h),a.setAttribute(u,h);break;case"onClick":h!=null&&(a.onclick=sa);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){a.removeAttribute("xlink:href");break}u=Sf(""+h),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,""+h):a.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":h===!0?a.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,h):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(u,h):a.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(u):a.setAttribute(u,h);break;case"popover":$e("beforetoggle",a),$e("toggle",a),bf(a,"popover",h);break;case"xlinkActuate":la(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":la(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":la(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":la(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":la(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":la(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":la(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":la(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":la(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":bf(a,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=xz.get(u)||u,bf(a,u,h))}}function Og(a,o,u,h,g,b){switch(u){case"style":g_(a,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?Yo(a,h):(typeof h=="number"||typeof h=="bigint")&&Yo(a,""+h);break;case"onScroll":h!=null&&$e("scroll",a);break;case"onScrollEnd":h!=null&&$e("scrollend",a);break;case"onClick":h!=null&&(a.onclick=sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!s_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),o=u.slice(2,g?u.length-7:void 0),b=a[On]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(o,b,g),typeof h=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(o,h,g);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):bf(a,u,h)}}}function nn(a,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",a),$e("load",a);var h=!1,g=!1,b;for(b in u)if(u.hasOwnProperty(b)){var C=u[b];if(C!=null)switch(b){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(a,o,b,C,u,null)}}g&&at(a,o,"srcSet",u.srcSet,u,null),h&&at(a,o,"src",u.src,u,null);return;case"input":$e("invalid",a);var P=b=C=g=null,q=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var ie=u[h];if(ie!=null)switch(h){case"name":g=ie;break;case"type":C=ie;break;case"checked":q=ie;break;case"defaultChecked":ee=ie;break;case"value":b=ie;break;case"defaultValue":P=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,o));break;default:at(a,o,h,ie,u,null)}}h_(a,b,P,q,ee,C,g,!1);return;case"select":$e("invalid",a),h=C=b=null;for(g in u)if(u.hasOwnProperty(g)&&(P=u[g],P!=null))switch(g){case"value":b=P;break;case"defaultValue":C=P;break;case"multiple":h=P;default:at(a,o,g,P,u,null)}o=b,u=C,a.multiple=!!h,o!=null?Vo(a,!!h,o,!1):u!=null&&Vo(a,!!h,u,!0);return;case"textarea":$e("invalid",a),b=g=h=null;for(C in u)if(u.hasOwnProperty(C)&&(P=u[C],P!=null))switch(C){case"value":h=P;break;case"defaultValue":g=P;break;case"children":b=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:at(a,o,C,P,u,null)}m_(a,h,g,b);return;case"option":for(q in u)if(u.hasOwnProperty(q)&&(h=u[q],h!=null))switch(q){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:at(a,o,q,h,u,null)}return;case"dialog":$e("beforetoggle",a),$e("toggle",a),$e("cancel",a),$e("close",a);break;case"iframe":case"object":$e("load",a);break;case"video":case"audio":for(h=0;h<wu.length;h++)$e(wu[h],a);break;case"image":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"embed":case"source":case"link":$e("error",a),$e("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(a,o,ee,h,u,null)}return;default:if(Lm(o)){for(ie in u)u.hasOwnProperty(ie)&&(h=u[ie],h!==void 0&&Og(a,o,ie,h,u,void 0));return}}for(P in u)u.hasOwnProperty(P)&&(h=u[P],h!=null&&at(a,o,P,h,u,null))}function YB(a,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,b=null,C=null,P=null,q=null,ee=null,ie=null;for(ne in u){var ce=u[ne];if(u.hasOwnProperty(ne)&&ce!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":q=ce;default:h.hasOwnProperty(ne)||at(a,o,ne,null,h,ce)}}for(var te in h){var ne=h[te];if(ce=u[te],h.hasOwnProperty(te)&&(ne!=null||ce!=null))switch(te){case"type":b=ne;break;case"name":g=ne;break;case"checked":ee=ne;break;case"defaultChecked":ie=ne;break;case"value":C=ne;break;case"defaultValue":P=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:ne!==ce&&at(a,o,te,ne,h,ce)}}km(a,C,P,q,ee,ie,b,g);return;case"select":ne=C=P=te=null;for(b in u)if(q=u[b],u.hasOwnProperty(b)&&q!=null)switch(b){case"value":break;case"multiple":ne=q;default:h.hasOwnProperty(b)||at(a,o,b,null,h,q)}for(g in h)if(b=h[g],q=u[g],h.hasOwnProperty(g)&&(b!=null||q!=null))switch(g){case"value":te=b;break;case"defaultValue":P=b;break;case"multiple":C=b;default:b!==q&&at(a,o,g,b,h,q)}o=P,u=C,h=ne,te!=null?Vo(a,!!u,te,!1):!!h!=!!u&&(o!=null?Vo(a,!!u,o,!0):Vo(a,!!u,u?[]:"",!1));return;case"textarea":ne=te=null;for(P in u)if(g=u[P],u.hasOwnProperty(P)&&g!=null&&!h.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:at(a,o,P,null,h,g)}for(C in h)if(g=h[C],b=u[C],h.hasOwnProperty(C)&&(g!=null||b!=null))switch(C){case"value":te=g;break;case"defaultValue":ne=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==b&&at(a,o,C,g,h,b)}p_(a,te,ne);return;case"option":for(var we in u)if(te=u[we],u.hasOwnProperty(we)&&te!=null&&!h.hasOwnProperty(we))switch(we){case"selected":a.selected=!1;break;default:at(a,o,we,null,h,te)}for(q in h)if(te=h[q],ne=u[q],h.hasOwnProperty(q)&&te!==ne&&(te!=null||ne!=null))switch(q){case"selected":a.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:at(a,o,q,te,h,ne)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in u)te=u[Ee],u.hasOwnProperty(Ee)&&te!=null&&!h.hasOwnProperty(Ee)&&at(a,o,Ee,null,h,te);for(ee in h)if(te=h[ee],ne=u[ee],h.hasOwnProperty(ee)&&te!==ne&&(te!=null||ne!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:at(a,o,ee,te,h,ne)}return;default:if(Lm(o)){for(var it in u)te=u[it],u.hasOwnProperty(it)&&te!==void 0&&!h.hasOwnProperty(it)&&Og(a,o,it,void 0,h,te);for(ie in h)te=h[ie],ne=u[ie],!h.hasOwnProperty(ie)||te===ne||te===void 0&&ne===void 0||Og(a,o,ie,te,h,ne);return}}for(var Q in u)te=u[Q],u.hasOwnProperty(Q)&&te!=null&&!h.hasOwnProperty(Q)&&at(a,o,Q,null,h,te);for(ce in h)te=h[ce],ne=u[ce],!h.hasOwnProperty(ce)||te===ne||te==null&&ne==null||at(a,o,ce,te,h,ne)}function yT(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function WB(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var g=u[h],b=g.transferSize,C=g.initiatorType,P=g.duration;if(b&&P&&yT(C)){for(C=0,P=g.responseEnd,h+=1;h<u.length;h++){var q=u[h],ee=q.startTime;if(ee>P)break;var ie=q.transferSize,ce=q.initiatorType;ie&&yT(ce)&&(q=q.responseEnd,C+=ie*(q<P?1:(P-ee)/(q-ee)))}if(--h,o+=8*(b+C)/(g.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var _g=null,Eg=null;function gd(a){return a.nodeType===9?a:a.ownerDocument}function bT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function xT(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function Ag(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Tg=null;function KB(){var a=window.event;return a&&a.type==="popstate"?a===Tg?!1:(Tg=a,!0):(Tg=null,!1)}var wT=typeof setTimeout=="function"?setTimeout:void 0,XB=typeof clearTimeout=="function"?clearTimeout:void 0,ST=typeof Promise=="function"?Promise:void 0,QB=typeof queueMicrotask=="function"?queueMicrotask:typeof ST<"u"?function(a){return ST.resolve(null).then(a).catch(ZB)}:wT;function ZB(a){setTimeout(function(){throw a})}function fi(a){return a==="head"}function OT(a,o){var u=o,h=0;do{var g=u.nextSibling;if(a.removeChild(u),g&&g.nodeType===8)if(u=g.data,u==="/$"||u==="/&"){if(h===0){a.removeChild(g),_l(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")Ou(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Ou(u);for(var b=u.firstChild;b;){var C=b.nextSibling,P=b.nodeName;b[qs]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&Ou(a.ownerDocument.body);u=g}while(u);_l(o)}function _T(a,o){var u=a;a=0;do{var h=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=h}while(u)}function jg(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":jg(u),Pm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function JB(a,o,u,h){for(;a.nodeType===1;){var g=u;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[qs])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==g.rel||a.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||a.getAttribute("title")!==(g.title==null?null:g.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(g.src==null?null:g.src)||a.getAttribute("type")!==(g.type==null?null:g.type)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=ar(a.nextSibling),a===null)break}return null}function eq(a,o,u){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=ar(a.nextSibling),a===null))return null;return a}function ET(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=ar(a.nextSibling),a===null))return null;return a}function Cg(a){return a.data==="$?"||a.data==="$~"}function Mg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function tq(a,o){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||u.readyState!=="loading")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),a._reactRetry=h}}function ar(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var Ng=null;function AT(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(o===0)return ar(a.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}a=a.nextSibling}return null}function TT(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return a;o--}else u!=="/$"&&u!=="/&"||o++}a=a.previousSibling}return null}function jT(a,o,u){switch(o=gd(u),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Ou(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Pm(a)}var ir=new Map,CT=new Set;function yd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var _a=U.d;U.d={f:nq,r:rq,D:aq,C:iq,L:oq,m:lq,X:uq,S:sq,M:cq};function nq(){var a=_a.f(),o=ud();return a||o}function rq(a){var o=Ho(a);o!==null&&o.tag===5&&o.type==="form"?VE(o):_a.r(a)}var wl=typeof document>"u"?null:document;function MT(a,o,u){var h=wl;if(h&&typeof o=="string"&&o){var g=Qn(o);g='link[rel="'+a+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),CT.has(g)||(CT.add(g),a={rel:a,crossOrigin:u,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),nn(o,"link",a),Yt(o),h.head.appendChild(o)))}}function aq(a){_a.D(a),MT("dns-prefetch",a,null)}function iq(a,o){_a.C(a,o),MT("preconnect",a,o)}function oq(a,o,u){_a.L(a,o,u);var h=wl;if(h&&a&&o){var g='link[rel="preload"][as="'+Qn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+Qn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+Qn(u.imageSizes)+'"]')):g+='[href="'+Qn(a)+'"]';var b=g;switch(o){case"style":b=Sl(a);break;case"script":b=Ol(a)}ir.has(b)||(a=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:a,as:o},u),ir.set(b,a),h.querySelector(g)!==null||o==="style"&&h.querySelector(_u(b))||o==="script"&&h.querySelector(Eu(b))||(o=h.createElement("link"),nn(o,"link",a),Yt(o),h.head.appendChild(o)))}}function lq(a,o){_a.m(a,o);var u=wl;if(u&&a){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Qn(h)+'"][href="'+Qn(a)+'"]',b=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Ol(a)}if(!ir.has(b)&&(a=p({rel:"modulepreload",href:a},o),ir.set(b,a),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Eu(b)))return}h=u.createElement("link"),nn(h,"link",a),Yt(h),u.head.appendChild(h)}}}function sq(a,o,u){_a.S(a,o,u);var h=wl;if(h&&a){var g=Fo(h).hoistableStyles,b=Sl(a);o=o||"default";var C=g.get(b);if(!C){var P={loading:0,preload:null};if(C=h.querySelector(_u(b)))P.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},u),(u=ir.get(b))&&Rg(a,u);var q=C=h.createElement("link");Yt(q),nn(q,"link",a),q._p=new Promise(function(ee,ie){q.onload=ee,q.onerror=ie}),q.addEventListener("load",function(){P.loading|=1}),q.addEventListener("error",function(){P.loading|=2}),P.loading|=4,bd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:P},g.set(b,C)}}}function uq(a,o){_a.X(a,o);var u=wl;if(u&&a){var h=Fo(u).hoistableScripts,g=Ol(a),b=h.get(g);b||(b=u.querySelector(Eu(g)),b||(a=p({src:a,async:!0},o),(o=ir.get(g))&&Pg(a,o),b=u.createElement("script"),Yt(b),nn(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function cq(a,o){_a.M(a,o);var u=wl;if(u&&a){var h=Fo(u).hoistableScripts,g=Ol(a),b=h.get(g);b||(b=u.querySelector(Eu(g)),b||(a=p({src:a,async:!0,type:"module"},o),(o=ir.get(g))&&Pg(a,o),b=u.createElement("script"),Yt(b),nn(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function NT(a,o,u,h){var g=(g=ge.current)?yd(g):null;if(!g)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=Sl(u.href),u=Fo(g).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){a=Sl(u.href);var b=Fo(g).hoistableStyles,C=b.get(a);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=g.querySelector(_u(a)))&&!b._p&&(C.instance=b,C.state.loading=5),ir.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ir.set(a,u),b||fq(g,a,u,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Ol(u),u=Fo(g).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Sl(a){return'href="'+Qn(a)+'"'}function _u(a){return'link[rel="stylesheet"]['+a+"]"}function RT(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function fq(a,o,u,h){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=a.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),nn(o,"link",u),Yt(o),a.head.appendChild(o))}function Ol(a){return'[src="'+Qn(a)+'"]'}function Eu(a){return"script[async]"+a}function PT(a,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+Qn(u.href)+'"]');if(h)return o.instance=h,Yt(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Yt(h),nn(h,"style",g),bd(h,u.precedence,a),o.instance=h;case"stylesheet":g=Sl(u.href);var b=a.querySelector(_u(g));if(b)return o.state.loading|=4,o.instance=b,Yt(b),b;h=RT(u),(g=ir.get(g))&&Rg(h,g),b=(a.ownerDocument||a).createElement("link"),Yt(b);var C=b;return C._p=new Promise(function(P,q){C.onload=P,C.onerror=q}),nn(b,"link",h),o.state.loading|=4,bd(b,u.precedence,a),o.instance=b;case"script":return b=Ol(u.src),(g=a.querySelector(Eu(b)))?(o.instance=g,Yt(g),g):(h=u,(g=ir.get(b))&&(h=p({},u),Pg(h,g)),a=a.ownerDocument||a,g=a.createElement("script"),Yt(g),nn(g,"link",h),a.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,bd(h,u.precedence,a));return o.instance}function bd(a,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,b=g,C=0;C<h.length;C++){var P=h[C];if(P.dataset.precedence===o)b=P;else if(b!==g)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(a,o.firstChild))}function Rg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Pg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var xd=null;function DT(a,o,u){if(xd===null){var h=new Map,g=xd=new Map;g.set(u,h)}else g=xd,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),g=0;g<u.length;g++){var b=u[g];if(!(b[qs]||b[Zt]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var C=b.getAttribute(o)||"";C=a+C;var P=h.get(C);P?P.push(b):h.set(C,[b])}}return h}function kT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function dq(a,o,u){if(u===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function $T(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function hq(a,o,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var g=Sl(h.href),b=o.querySelector(_u(g));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=wd.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Yt(b);return}b=o.ownerDocument||o,h=RT(h),(g=ir.get(g))&&Rg(h,g),b=b.createElement("link"),Yt(b);var C=b;C._p=new Promise(function(P,q){C.onload=P,C.onerror=q}),nn(b,"link",h),u.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=wd.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var Dg=0;function pq(a,o){return a.stylesheets&&a.count===0&&Od(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&Od(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&Dg===0&&(Dg=62500*WB());var g=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Od(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Dg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(g)}}:null}function wd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Od(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Sd=null;function Od(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Sd=new Map,o.forEach(mq,a),Sd=null,wd.call(a))}function mq(a,o){if(!(o.state.loading&4)){var u=Sd.get(a);if(u)var h=u.get(null);else{u=new Map,Sd.set(a,u);for(var g=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var C=g[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),b=u.get(C)||h,b===h&&u.set(null,g),u.set(C,g),this.count++,h=wd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),b?b.parentNode.insertBefore(g,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(g,a.firstChild)),o.state.loading|=4}}var Au={$$typeof:A,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function vq(a,o,u,h,g,b,C,P,q){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function LT(a,o,u,h,g,b,C,P,q,ee,ie,ce){return a=new vq(a,o,u,C,q,ee,ie,ce,P),o=1,b===!0&&(o|=24),b=$n(3,null,null,o),a.current=b,b.stateNode=a,o=hv(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},gv(b),a}function IT(a){return a?(a=el,a):el}function zT(a,o,u,h,g,b){g=IT(g),h.context===null?h.context=g:h.pendingContext=g,h=ei(o),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),u=ti(a,h,o),u!==null&&(Cn(u,a,o),au(u,a,o))}function BT(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function kg(a,o){BT(a,o),(a=a.alternate)&&BT(a,o)}function qT(a){if(a.tag===13||a.tag===31){var o=Vi(a,67108864);o!==null&&Cn(o,a,67108864),kg(a,67108864)}}function UT(a){if(a.tag===13||a.tag===31){var o=qn();o=Bo(o);var u=Vi(a,o);u!==null&&Cn(u,a,o),kg(a,o)}}var _d=!0;function gq(a,o,u,h){var g=D.T;D.T=null;var b=U.p;try{U.p=2,$g(a,o,u,h)}finally{U.p=b,D.T=g}}function yq(a,o,u,h){var g=D.T;D.T=null;var b=U.p;try{U.p=8,$g(a,o,u,h)}finally{U.p=b,D.T=g}}function $g(a,o,u,h){if(_d){var g=Lg(h);if(g===null)Sg(a,o,h,Ed,u),FT(a,h);else if(xq(g,a,o,u,h))h.stopPropagation();else if(FT(a,h),o&4&&-1<bq.indexOf(a)){for(;g!==null;){var b=Ho(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=qr(b.pendingLanes);if(C!==0){var P=b;for(P.pendingLanes|=2,P.entangledLanes|=2;C;){var q=1<<31-sn(C);P.entanglements[1]|=q,C&=~q}Gr(b),(Xe&6)===0&&(ld=Gt()+500,xu(0))}}break;case 31:case 13:P=Vi(b,2),P!==null&&Cn(P,b,2),ud(),kg(b,2)}if(b=Lg(h),b===null&&Sg(a,o,h,Ed,u),b===g)break;g=b}g!==null&&h.stopPropagation()}else Sg(a,o,h,null,u)}}function Lg(a){return a=zm(a),Ig(a)}var Ed=null;function Ig(a){if(Ed=null,a=Uo(a),a!==null){var o=l(a);if(o===null)a=null;else{var u=o.tag;if(u===13){if(a=s(o),a!==null)return a;a=null}else if(u===31){if(a=c(o),a!==null)return a;a=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Ed=a,null}function HT(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lo()){case Li:return 2;case gf:return 8;case Ii:case zs:return 32;case oa:return 268435456;default:return 32}default:return 32}}var zg=!1,di=null,hi=null,pi=null,Tu=new Map,ju=new Map,mi=[],bq="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".split(" ");function FT(a,o){switch(a){case"focusin":case"focusout":di=null;break;case"dragenter":case"dragleave":hi=null;break;case"mouseover":case"mouseout":pi=null;break;case"pointerover":case"pointerout":Tu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ju.delete(o.pointerId)}}function Cu(a,o,u,h,g,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[g]},o!==null&&(o=Ho(o),o!==null&&qT(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),a)}function xq(a,o,u,h,g){switch(o){case"focusin":return di=Cu(di,a,o,u,h,g),!0;case"dragenter":return hi=Cu(hi,a,o,u,h,g),!0;case"mouseover":return pi=Cu(pi,a,o,u,h,g),!0;case"pointerover":var b=g.pointerId;return Tu.set(b,Cu(Tu.get(b)||null,a,o,u,h,g)),!0;case"gotpointercapture":return b=g.pointerId,ju.set(b,Cu(ju.get(b)||null,a,o,u,h,g)),!0}return!1}function GT(a){var o=Uo(a.target);if(o!==null){var u=l(o);if(u!==null){if(o=u.tag,o===13){if(o=s(u),o!==null){a.blockedOn=o,i_(a.priority,function(){UT(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,i_(a.priority,function(){UT(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Ad(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Lg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);Im=h,u.target.dispatchEvent(h),Im=null}else return o=Ho(u),o!==null&&qT(o),a.blockedOn=u,!1;o.shift()}return!0}function VT(a,o,u){Ad(a)&&u.delete(o)}function wq(){zg=!1,di!==null&&Ad(di)&&(di=null),hi!==null&&Ad(hi)&&(hi=null),pi!==null&&Ad(pi)&&(pi=null),Tu.forEach(VT),ju.forEach(VT)}function Td(a,o){a.blockedOn===o&&(a.blockedOn=null,zg||(zg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,wq)))}var jd=null;function YT(a){jd!==a&&(jd=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){jd===a&&(jd=null);for(var o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],g=a[o+2];if(typeof h!="function"){if(Ig(h||u)===null)continue;break}var b=Ho(u);b!==null&&(a.splice(o,3),o-=3,Lv(b,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function _l(a){function o(q){return Td(q,a)}di!==null&&Td(di,a),hi!==null&&Td(hi,a),pi!==null&&Td(pi,a),Tu.forEach(o),ju.forEach(o);for(var u=0;u<mi.length;u++){var h=mi[u];h.blockedOn===a&&(h.blockedOn=null)}for(;0<mi.length&&(u=mi[0],u.blockedOn===null);)GT(u),u.blockedOn===null&&mi.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],b=u[h+1],C=g[On]||null;if(typeof b=="function")C||YT(u);else if(C){var P=null;if(b&&b.hasAttribute("formAction")){if(g=b,C=b[On]||null)P=C.formAction;else if(Ig(g)!==null)continue}else P=C.action;typeof P=="function"?u[h+1]=P:(u.splice(h,3),h-=3),YT(u)}}}function WT(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function o(){g!==null&&(g(),g=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,g=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),g!==null&&(g(),g=null)}}}function Bg(a){this._internalRoot=a}Cd.prototype.render=Bg.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=qn();zT(u,h,a,o,null,null)},Cd.prototype.unmount=Bg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;zT(a.current,2,null,a,null,null),ud(),o[qo]=null}};function Cd(a){this._internalRoot=a}Cd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Nm();a={blockedOn:null,target:a,priority:o};for(var u=0;u<mi.length&&o!==0&&o<mi[u].priority;u++);mi.splice(u,0,a),u===0&&GT(a)}};var KT=t.version;if(KT!=="19.2.0")throw Error(r(527,KT,"19.2.0"));U.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(o),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var Sq={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Md.isDisabled&&Md.supportsFiber)try{zi=Md.inject(Sq),vn=Md}catch{}}return Nu.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",g=nA,b=rA,C=aA;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=LT(a,1,!1,null,null,u,h,null,g,b,C,WT),a[qo]=o.current,wg(a),new Bg(o)},Nu.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,g="",b=nA,C=rA,P=aA,q=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(P=u.onRecoverableError),u.formState!==void 0&&(q=u.formState)),o=LT(a,1,!0,o,u??null,h,g,q,b,C,P,WT),o.context=IT(null),u=o.current,h=qn(),h=Bo(h),g=ei(h),g.callback=null,ti(u,g,h),u=h,o.current.lanes=u,wt(o,u),Gr(o),a[qo]=o.current,wg(a),new Cd(o)},Nu.version="19.2.0",Nu}var ij;function Rq(){if(ij)return Hg.exports;ij=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hg.exports=Nq(),Hg.exports}var Pq=Rq();/**
50
- * react-router v7.9.5
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var oj="popstate";function Dq(e={}){function t(r,i){let{pathname:l,search:s,hash:c}=r.location;return fw("",{pathname:l,search:s,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:ic(i)}return $q(t,n,null,e)}function bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Cr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function kq(){return Math.random().toString(36).substring(2,10)}function lj(e,t){return{usr:e.state,key:e.key,idx:t}}function fw(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ws(t):t,state:n,key:t&&t.key||r||kq()}}function ic({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ws(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function $q(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,c="POP",f=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}function p(){c="POP";let S=m(),E=S==null?null:S-d;d=S,f&&f({action:c,location:w.location,delta:E})}function y(S,E){c="PUSH";let T=fw(w.location,S,E);d=m()+1;let A=lj(T,d),M=w.createHref(T);try{s.pushState(A,"",M)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(M)}l&&f&&f({action:c,location:w.location,delta:1})}function x(S,E){c="REPLACE";let T=fw(w.location,S,E);d=m();let A=lj(T,d),M=w.createHref(T);s.replaceState(A,"",M),l&&f&&f({action:c,location:w.location,delta:0})}function O(S){return Lq(S)}let w={get action(){return c},get location(){return e(i,s)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(oj,p),f=S,()=>{i.removeEventListener(oj,p),f=null}},createHref(S){return t(i,S)},createURL:O,encodeLocation(S){let E=O(S);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:y,replace:x,go(S){return s.go(S)}};return w}function Lq(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),bt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:ic(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function ik(e,t,n="/"){return Iq(e,t,n,!1)}function Iq(e,t,n,r){let i=typeof t=="string"?ws(t):t,l=Da(i.pathname||"/",n);if(l==null)return null;let s=ok(e);zq(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let d=Xq(l);c=Wq(s[f],d,r)}return c}function ok(e,t=[],n=[],r="",i=!1){let l=(s,c,f=i,d)=>{let m={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;bt(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=Ma([r,m.relativePath]),y=n.concat(m);s.children&&s.children.length>0&&(bt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ok(s.children,t,y,p,f)),!(s.path==null&&!s.index)&&t.push({path:p,score:Vq(p,s.index),routesMeta:y})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))l(s,c);else for(let d of lk(s.path))l(s,c,!0,d)}),t}function lk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=lk(r.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),i&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function zq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Bq=/^:[\w-]+$/,qq=3,Uq=2,Hq=1,Fq=10,Gq=-2,sj=e=>e==="*";function Vq(e,t){let n=e.split("/"),r=n.length;return n.some(sj)&&(r+=Gq),t&&(r+=Uq),n.filter(i=>!sj(i)).reduce((i,l)=>i+(Bq.test(l)?qq:l===""?Hq:Fq),r)}function Yq(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wq(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",s=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=l==="/"?t:t.slice(l.length)||"/",p=lh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),y=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=lh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ma([l,p.pathname]),pathnameBase:e8(Ma([l,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(l=Ma([l,p.pathnameBase]))}return s}function lh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Kq(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],s=l.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:p},y)=>{if(m==="*"){let O=c[y]||"";s=l.slice(0,l.length-O.length).replace(/(.)\/+$/,"$1")}const x=c[y];return p&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function Kq(e,t=!1,n=!0){Cr(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 r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Xq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Cr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Da(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Qq(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ws(e):e;return{pathname:n?n.startsWith("/")?n:Zq(n,t):t,search:t8(r),hash:n8(i)}}function Zq(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Yg(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Jq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rS(e){let t=Jq(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function aS(e,t,n,r=!1){let i;typeof e=="string"?i=ws(e):(i={...e},bt(!i.pathname||!i.pathname.includes("?"),Yg("?","pathname","search",i)),bt(!i.pathname||!i.pathname.includes("#"),Yg("#","pathname","hash",i)),bt(!i.search||!i.search.includes("#"),Yg("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,c;if(s==null)c=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}c=p>=0?t[p]:"/"}let f=Qq(i,c),d=s&&s!=="/"&&s.endsWith("/"),m=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Ma=e=>e.join("/").replace(/\/\/+/g,"/"),e8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),t8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,n8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function r8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var sk=["POST","PUT","PATCH","DELETE"];new Set(sk);var a8=["GET",...sk];new Set(a8);var Ss=_.createContext(null);Ss.displayName="DataRouter";var wp=_.createContext(null);wp.displayName="DataRouterState";_.createContext(!1);var uk=_.createContext({isTransitioning:!1});uk.displayName="ViewTransition";var i8=_.createContext(new Map);i8.displayName="Fetchers";var o8=_.createContext(null);o8.displayName="Await";var Pr=_.createContext(null);Pr.displayName="Navigation";var Yc=_.createContext(null);Yc.displayName="Location";var Dr=_.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var iS=_.createContext(null);iS.displayName="RouteError";function l8(e,{relative:t}={}){bt(Os(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(Pr),{hash:i,pathname:l,search:s}=Kc(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ma([n,l])),r.createHref({pathname:c,search:s,hash:i})}function Os(){return _.useContext(Yc)!=null}function ra(){return bt(Os(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Yc).location}var ck="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fk(e){_.useContext(Pr).static||_.useLayoutEffect(e)}function Wc(){let{isDataRoute:e}=_.useContext(Dr);return e?w8():s8()}function s8(){bt(Os(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Ss),{basename:t,navigator:n}=_.useContext(Pr),{matches:r}=_.useContext(Dr),{pathname:i}=ra(),l=JSON.stringify(rS(r)),s=_.useRef(!1);return fk(()=>{s.current=!0}),_.useCallback((f,d={})=>{if(Cr(s.current,ck),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=aS(f,JSON.parse(l),i,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ma([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,l,i,e])}_.createContext(null);function u8(){let{matches:e}=_.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function Kc(e,{relative:t}={}){let{matches:n}=_.useContext(Dr),{pathname:r}=ra(),i=JSON.stringify(rS(n));return _.useMemo(()=>aS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function c8(e,t){return dk(e,t)}function dk(e,t,n,r,i){var T;bt(Os(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=_.useContext(Pr),{matches:s}=_.useContext(Dr),c=s[s.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let A=p&&p.path||"";hk(d,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=ra(),x;if(t){let A=typeof t=="string"?ws(t):t;bt(m==="/"||((T=A.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=y;let O=x.pathname||"/",w=O;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=ik(e,{pathname:w});Cr(p||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Cr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=m8(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Ma([m,l.encodeLocation?l.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Ma([m,l.encodeLocation?l.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),s,n,r,i);return t&&E?_.createElement(Yc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},E):E}function f8(){let e=x8(),t=r8(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:l},"ErrorBoundary")," or"," ",_.createElement("code",{style:l},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,s)}var d8=_.createElement(f8,null),h8=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?_.createElement(Dr.Provider,{value:this.props.routeContext},_.createElement(iS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function p8({routeContext:e,match:t,children:n}){let r=_.useContext(Ss);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Dr.Provider,{value:e},n)}function m8(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=n==null?void 0:n.errors;if(s!=null){let d=l.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);bt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let c=!1,f=-1;if(n)for(let d=0;d<l.length;d++){let m=l[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=d),m.route.id){let{loaderData:p,errors:y}=n,x=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||x){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((d,m,p)=>{let y,x=!1,O=null,w=null;n&&(y=s&&m.route.id?s[m.route.id]:void 0,O=m.route.errorElement||d8,c&&(f<0&&p===0?(hk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===p&&(x=!0,w=m.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,p+1)),E=()=>{let T;return y?T=O:x?T=w:m.route.Component?T=_.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=d,_.createElement(p8,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?_.createElement(h8,{location:n.location,revalidation:n.revalidation,component:O,error:y,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):E()},null)}function oS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v8(e){let t=_.useContext(Ss);return bt(t,oS(e)),t}function g8(e){let t=_.useContext(wp);return bt(t,oS(e)),t}function y8(e){let t=_.useContext(Dr);return bt(t,oS(e)),t}function lS(e){let t=y8(e),n=t.matches[t.matches.length-1];return bt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function b8(){return lS("useRouteId")}function x8(){var r;let e=_.useContext(iS),t=g8("useRouteError"),n=lS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function w8(){let{router:e}=v8("useNavigate"),t=lS("useNavigate"),n=_.useRef(!1);return fk(()=>{n.current=!0}),_.useCallback(async(i,l={})=>{Cr(n.current,ck),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var uj={};function hk(e,t,n){!t&&!uj[e]&&(uj[e]=!0,Cr(!1,n))}_.memo(S8);function S8({routes:e,future:t,state:n,unstable_onError:r}){return dk(e,void 0,n,r,t)}function O8({to:e,replace:t,state:n,relative:r}){bt(Os(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=_.useContext(Pr);Cr(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=_.useContext(Dr),{pathname:s}=ra(),c=Wc(),f=aS(e,rS(l),s,r==="path"),d=JSON.stringify(f);return _.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function kl(e){bt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1}){bt(!Os(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:s,navigator:i,static:l,future:{}}),[s,i,l]);typeof n=="string"&&(n=ws(n));let{pathname:f="/",search:d="",hash:m="",state:p=null,key:y="default"}=n,x=_.useMemo(()=>{let O=Da(f,s);return O==null?null:{location:{pathname:O,search:d,hash:m,state:p,key:y},navigationType:r}},[s,f,d,m,p,y,r]);return Cr(x!=null,`<Router basename="${s}"> is not able to match the URL "${f}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:_.createElement(Pr.Provider,{value:c},_.createElement(Yc.Provider,{children:t,value:x}))}function E8({children:e,location:t}){return c8(dw(e),t)}function dw(e,t=[]){let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let l=[...t,i];if(r.type===_.Fragment){n.push.apply(n,dw(r.props.children,l));return}bt(r.type===kl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),bt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=dw(r.props.children,l)),n.push(s)}),n}var th="get",nh="application/x-www-form-urlencoded";function Sp(e){return e!=null&&typeof e.tagName=="string"}function A8(e){return Sp(e)&&e.tagName.toLowerCase()==="button"}function T8(e){return Sp(e)&&e.tagName.toLowerCase()==="form"}function j8(e){return Sp(e)&&e.tagName.toLowerCase()==="input"}function C8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function M8(e,t){return e.button===0&&(!t||t==="_self")&&!C8(e)}var Rd=null;function N8(){if(Rd===null)try{new FormData(document.createElement("form"),0),Rd=!1}catch{Rd=!0}return Rd}var R8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wg(e){return e!=null&&!R8.has(e)?(Cr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nh}"`),null):e}function P8(e,t){let n,r,i,l,s;if(T8(e)){let c=e.getAttribute("action");r=c?Da(c,t):null,n=e.getAttribute("method")||th,i=Wg(e.getAttribute("enctype"))||nh,l=new FormData(e)}else if(A8(e)||j8(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?Da(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||th,i=Wg(e.getAttribute("formenctype"))||Wg(c.getAttribute("enctype"))||nh,l=new FormData(c,e),!N8()){let{name:d,type:m,value:p}=e;if(m==="image"){let y=d?`${d}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else d&&l.append(d,p)}}else{if(Sp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=th,r=null,i=nh,s=e}return l&&i==="text/plain"&&(s=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function D8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Da(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function k8(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $8(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function L8(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let s=await k8(l,n);return s.links?s.links():[]}return[]}));return q8(r.flat(1).filter($8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function cj(e,t,n,r,i,l){let s=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var m;return n[d].pathname!==f.pathname||((m=n[d].route.path)==null?void 0:m.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return l==="assets"?t.filter((f,d)=>s(f,d)||c(f,d)):l==="data"?t.filter((f,d)=>{var p;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(s(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function I8(e,t,{includeHydrateFallback:n}={}){return z8(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function z8(e){return[...new Set(e)]}function B8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function q8(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(B8(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function pk(){let e=_.useContext(Ss);return sS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function U8(){let e=_.useContext(wp);return sS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var uS=_.createContext(void 0);uS.displayName="FrameworkContext";function mk(){let e=_.useContext(uS);return sS(e,"You must render this element inside a <HydratedRouter> element"),e}function H8(e,t){let n=_.useContext(uS),[r,i]=_.useState(!1),[l,s]=_.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:p}=t,y=_.useRef(null);_.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let w=E=>{E.forEach(T=>{s(T.isIntersecting)})},S=new IntersectionObserver(w,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),_.useEffect(()=>{if(r){let w=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(w)}}},[r]);let x=()=>{i(!0)},O=()=>{i(!1),s(!1)};return n?e!=="intent"?[l,y,{}]:[l,y,{onFocus:Ru(c,x),onBlur:Ru(f,O),onMouseEnter:Ru(d,x),onMouseLeave:Ru(m,O),onTouchStart:Ru(p,x)}]:[!1,y,{}]}function Ru(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function F8({page:e,...t}){let{router:n}=pk(),r=_.useMemo(()=>ik(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(V8,{page:e,matches:r,...t}):null}function G8(e){let{manifest:t,routeModules:n}=mk(),[r,i]=_.useState([]);return _.useEffect(()=>{let l=!1;return L8(e,t,n).then(s=>{l||i(s)}),()=>{l=!0}},[e,t,n]),r}function V8({page:e,matches:t,...n}){let r=ra(),{manifest:i,routeModules:l}=mk(),{basename:s}=pk(),{loaderData:c,matches:f}=U8(),d=_.useMemo(()=>cj(e,t,f,i,r,"data"),[e,t,f,i,r]),m=_.useMemo(()=>cj(e,t,f,i,r,"assets"),[e,t,f,i,r]),p=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let O=new Set,w=!1;if(t.forEach(E=>{var A;let T=i.routes[E.route.id];!T||!T.hasLoader||(!d.some(M=>M.route.id===E.route.id)&&E.route.id in c&&((A=l[E.route.id])!=null&&A.shouldRevalidate)||T.hasClientLoader?w=!0:O.add(E.route.id))}),O.size===0)return[];let S=D8(e,s,"data");return w&&O.size>0&&S.searchParams.set("_routes",t.filter(E=>O.has(E.route.id)).map(E=>E.route.id).join(",")),[S.pathname+S.search]},[s,c,r,i,d,t,e,l]),y=_.useMemo(()=>I8(m,i),[m,i]),x=G8(m);return _.createElement(_.Fragment,null,p.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...n})),y.map(O=>_.createElement("link",{key:O,rel:"modulepreload",href:O,...n})),x.map(({key:O,link:w})=>_.createElement("link",{key:O,nonce:n.nonce,...w})))}function Y8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var vk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{vk&&(window.__reactRouterVersion="7.9.5")}catch{}function W8({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=Dq({window:n,v5Compat:!0}));let i=r.current,[l,s]=_.useState({action:i.action,location:i.location}),c=_.useCallback(f=>{_.startTransition(()=>s(f))},[s]);return _.useLayoutEffect(()=>i.listen(c),[i,c]),_.createElement(_8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i})}var gk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sh=_.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:s,state:c,target:f,to:d,preventScrollReset:m,viewTransition:p,...y},x){let{basename:O}=_.useContext(Pr),w=typeof d=="string"&&gk.test(d),S,E=!1;if(typeof d=="string"&&w&&(S=d,vk))try{let I=new URL(window.location.href),V=d.startsWith("//")?new URL(I.protocol+d):new URL(d),z=Da(V.pathname,O);V.origin===I.origin&&z!=null?d=z+V.search+V.hash:E=!0}catch{Cr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=l8(d,{relative:i}),[A,M,j]=H8(r,y),N=Z8(d,{replace:s,state:c,target:f,preventScrollReset:m,relative:i,viewTransition:p});function R(I){t&&t(I),I.defaultPrevented||N(I)}let k=_.createElement("a",{...y,...j,href:S||T,onClick:E||l?t:R,ref:Y8(x,M),target:f,"data-discover":!w&&n==="render"?"true":void 0});return A&&!w?_.createElement(_.Fragment,null,k,_.createElement(F8,{page:T})):k});sh.displayName="Link";var K8=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:s,viewTransition:c,children:f,...d},m){let p=Kc(s,{relative:d.relative}),y=ra(),x=_.useContext(wp),{navigator:O,basename:w}=_.useContext(Pr),S=x!=null&&r6(p)&&c===!0,E=O.encodeLocation?O.encodeLocation(p).pathname:p.pathname,T=y.pathname,A=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(T=T.toLowerCase(),A=A?A.toLowerCase():null,E=E.toLowerCase()),A&&w&&(A=Da(A,w)||A);const M=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let j=T===E||!i&&T.startsWith(E)&&T.charAt(M)==="/",N=A!=null&&(A===E||!i&&A.startsWith(E)&&A.charAt(E.length)==="/"),R={isActive:j,isPending:N,isTransitioning:S},k=j?t:void 0,I;typeof r=="function"?I=r(R):I=[r,j?"active":null,N?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let V=typeof l=="function"?l(R):l;return _.createElement(sh,{...d,"aria-current":k,className:I,ref:m,style:V,to:s,viewTransition:c},typeof f=="function"?f(R):f)});K8.displayName="NavLink";var X8=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=th,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:p,...y},x)=>{let O=t6(),w=n6(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&gk.test(c),T=A=>{if(f&&f(A),A.defaultPrevented)return;A.preventDefault();let M=A.nativeEvent.submitter,j=(M==null?void 0:M.getAttribute("formmethod"))||s;O(M||A.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:i,state:l,relative:d,preventScrollReset:m,viewTransition:p})};return _.createElement("form",{ref:x,method:S,action:w,onSubmit:r?f:T,...y,"data-discover":!E&&e==="render"?"true":void 0})});X8.displayName="Form";function Q8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yk(e){let t=_.useContext(Ss);return bt(t,Q8(e)),t}function Z8(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:s}={}){let c=Wc(),f=ra(),d=Kc(e,{relative:l});return _.useCallback(m=>{if(M8(m,t)){m.preventDefault();let p=n!==void 0?n:ic(f)===ic(d);c(e,{replace:p,state:r,preventScrollReset:i,relative:l,viewTransition:s})}},[f,c,d,n,r,t,e,i,l,s])}var J8=0,e6=()=>`__${String(++J8)}__`;function t6(){let{router:e}=yk("useSubmit"),{basename:t}=_.useContext(Pr),n=b8();return _.useCallback(async(r,i={})=>{let{action:l,method:s,encType:c,formData:f,body:d}=P8(r,t);if(i.navigate===!1){let m=i.fetcherKey||e6();await e.fetch(m,n,i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||s,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||s,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function n6(e,{relative:t}={}){let{basename:n}=_.useContext(Pr),r=_.useContext(Dr);bt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Kc(e||".",{relative:t})},s=ra();if(e==null){l.search=s.search;let c=new URLSearchParams(l.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(p=>p).forEach(p=>c.append("index",p));let m=c.toString();l.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ma([n,l.pathname])),ic(l)}function r6(e,{relative:t}={}){let n=_.useContext(uk);bt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=yk("useViewTransitionState"),i=Kc(e,{relative:t});if(!n.isTransitioning)return!1;let l=Da(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Da(n.nextLocation.pathname,r)||n.nextLocation.pathname;return lh(i.pathname,s)!=null||lh(i.pathname,l)!=null}var Xc=ak();const bk=lt(Xc);/**
61
- * @license lucide-react v0.462.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const a6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
66
- * @license lucide-react v0.462.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var i6={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"};/**
71
- * @license lucide-react v0.462.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const o6=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:s,...c},f)=>_.createElement("svg",{ref:f,...i6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xk("lucide",i),...c},[...s.map(([d,m])=>_.createElement(d,m)),...Array.isArray(l)?l:[l]]));/**
76
- * @license lucide-react v0.462.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const He=(e,t)=>{const n=_.forwardRef(({className:r,...i},l)=>_.createElement(o6,{ref:l,iconNode:t,className:xk(`lucide-${a6(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
81
- * @license lucide-react v0.462.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const cS=He("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
86
- * @license lucide-react v0.462.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Kg=He("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
91
- * @license lucide-react v0.462.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const l6=He("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
96
- * @license lucide-react v0.462.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const s6=He("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
101
- * @license lucide-react v0.462.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const u6=He("ChartColumn",[["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"}]]);/**
106
- * @license lucide-react v0.462.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const wk=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
111
- * @license lucide-react v0.462.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const _s=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
116
- * @license lucide-react v0.462.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Qc=He("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
121
- * @license lucide-react v0.462.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const c6=He("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
126
- * @license lucide-react v0.462.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const Sk=He("CircleAlert",[["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"}]]);/**
131
- * @license lucide-react v0.462.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const Op=He("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
136
- * @license lucide-react v0.462.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const f6=He("CircleX",[["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"}]]);/**
141
- * @license lucide-react v0.462.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const hw=He("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
146
- * @license lucide-react v0.462.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const d6=He("CodeXml",[["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"}]]);/**
151
- * @license lucide-react v0.462.0 - ISC
152
- *
153
- * This source code is licensed under the ISC license.
154
- * See the LICENSE file in the root directory of this source tree.
155
- */const h6=He("Copy",[["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"}]]);/**
156
- * @license lucide-react v0.462.0 - ISC
157
- *
158
- * This source code is licensed under the ISC license.
159
- * See the LICENSE file in the root directory of this source tree.
160
- */const p6=He("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
161
- * @license lucide-react v0.462.0 - ISC
162
- *
163
- * This source code is licensed under the ISC license.
164
- * See the LICENSE file in the root directory of this source tree.
165
- */const m6=He("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
166
- * @license lucide-react v0.462.0 - ISC
167
- *
168
- * This source code is licensed under the ISC license.
169
- * See the LICENSE file in the root directory of this source tree.
170
- */const v6=He("Globe",[["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"}]]);/**
171
- * @license lucide-react v0.462.0 - ISC
172
- *
173
- * This source code is licensed under the ISC license.
174
- * See the LICENSE file in the root directory of this source tree.
175
- */const g6=He("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
176
- * @license lucide-react v0.462.0 - ISC
177
- *
178
- * This source code is licensed under the ISC license.
179
- * See the LICENSE file in the root directory of this source tree.
180
- */const y6=He("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
181
- * @license lucide-react v0.462.0 - ISC
182
- *
183
- * This source code is licensed under the ISC license.
184
- * See the LICENSE file in the root directory of this source tree.
185
- */const zl=He("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
186
- * @license lucide-react v0.462.0 - ISC
187
- *
188
- * This source code is licensed under the ISC license.
189
- * See the LICENSE file in the root directory of this source tree.
190
- */const b6=He("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
191
- * @license lucide-react v0.462.0 - ISC
192
- *
193
- * This source code is licensed under the ISC license.
194
- * See the LICENSE file in the root directory of this source tree.
195
- */const x6=He("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
196
- * @license lucide-react v0.462.0 - ISC
197
- *
198
- * This source code is licensed under the ISC license.
199
- * See the LICENSE file in the root directory of this source tree.
200
- */const w6=He("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
201
- * @license lucide-react v0.462.0 - ISC
202
- *
203
- * This source code is licensed under the ISC license.
204
- * See the LICENSE file in the root directory of this source tree.
205
- */const fj=He("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
206
- * @license lucide-react v0.462.0 - ISC
207
- *
208
- * This source code is licensed under the ISC license.
209
- * See the LICENSE file in the root directory of this source tree.
210
- */const Ok=He("RefreshCw",[["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"}]]);/**
211
- * @license lucide-react v0.462.0 - ISC
212
- *
213
- * This source code is licensed under the ISC license.
214
- * See the LICENSE file in the root directory of this source tree.
215
- */const S6=He("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
216
- * @license lucide-react v0.462.0 - ISC
217
- *
218
- * This source code is licensed under the ISC license.
219
- * See the LICENSE file in the root directory of this source tree.
220
- */const O6=He("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
221
- * @license lucide-react v0.462.0 - ISC
222
- *
223
- * This source code is licensed under the ISC license.
224
- * See the LICENSE file in the root directory of this source tree.
225
- */const _6=He("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
226
- * @license lucide-react v0.462.0 - ISC
227
- *
228
- * This source code is licensed under the ISC license.
229
- * See the LICENSE file in the root directory of this source tree.
230
- */const E6=He("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
231
- * @license lucide-react v0.462.0 - ISC
232
- *
233
- * This source code is licensed under the ISC license.
234
- * See the LICENSE file in the root directory of this source tree.
235
- */const A6=He("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
236
- * @license lucide-react v0.462.0 - ISC
237
- *
238
- * This source code is licensed under the ISC license.
239
- * See the LICENSE file in the root directory of this source tree.
240
- */const T6=He("TriangleAlert",[["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"}]]);/**
241
- * @license lucide-react v0.462.0 - ISC
242
- *
243
- * This source code is licensed under the ISC license.
244
- * See the LICENSE file in the root directory of this source tree.
245
- */const j6=He("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
246
- * @license lucide-react v0.462.0 - ISC
247
- *
248
- * This source code is licensed under the ISC license.
249
- * See the LICENSE file in the root directory of this source tree.
250
- */const Bl=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function _k(e,t=[]){let n=[];function r(l,s){const c=_.createContext(s);c.displayName=l+"Context";const f=n.length;n=[...n,s];const d=p=>{var E;const{scope:y,children:x,...O}=p,w=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return v.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,y){var w;const x=((w=y==null?void 0:y[e])==null?void 0:w[f])||c,O=_.useContext(x);if(O)return O;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,m]}const i=()=>{const l=n.map(s=>_.createContext(s));return function(c){const f=(c==null?void 0:c[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,C6(i,...t)]}function C6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(l)[`__scope${d}`];return{...c,...p}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Mr(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var It=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{};function dj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Zc(...e){return t=>{let n=!1;const r=e.map(i=>{const l=dj(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():dj(e[i],null)}}}}function Ye(...e){return _.useCallback(Zc(...e),e)}var M6=Symbol.for("react.lazy"),uh=nS[" use ".trim().toString()];function N6(e){return typeof e=="object"&&e!==null&&"then"in e}function Ek(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===M6&&"_payload"in e&&N6(e._payload)}function Ak(e){const t=R6(e),n=_.forwardRef((r,i)=>{let{children:l,...s}=r;Ek(l)&&typeof uh=="function"&&(l=uh(l._payload));const c=_.Children.toArray(l),f=c.find(D6);if(f){const d=f.props.children,m=c.map(p=>p===f?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:p);return v.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return v.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var Co=Ak("Slot");function R6(e){const t=_.forwardRef((n,r)=>{let{children:i,...l}=n;if(Ek(i)&&typeof uh=="function"&&(i=uh(i._payload)),_.isValidElement(i)){const s=$6(i),c=k6(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Zc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P6=Symbol("radix.slottable");function D6(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P6}function k6(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...c)=>{const f=l(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function $6(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var L6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Mo=L6.reduce((e,t)=>{const n=Ak(`Primitive.${t}`),r=_.forwardRef((i,l)=>{const{asChild:s,...c}=i,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Xg={exports:{}},Qg={};/**
251
- * @license React
252
- * use-sync-external-store-shim.production.js
253
- *
254
- * Copyright (c) Meta Platforms, Inc. and affiliates.
255
- *
256
- * This source code is licensed under the MIT license found in the
257
- * LICENSE file in the root directory of this source tree.
258
- */var hj;function I6(){if(hj)return Qg;hj=1;var e=xp();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue;function c(p,y){var x=y(),O=r({inst:{value:x,getSnapshot:y}}),w=O[0].inst,S=O[1];return l(function(){w.value=x,w.getSnapshot=y,f(w)&&S({inst:w})},[p,x,y]),i(function(){return f(w)&&S({inst:w}),p(function(){f(w)&&S({inst:w})})},[p]),s(x),x}function f(p){var y=p.getSnapshot;p=p.value;try{var x=y();return!n(p,x)}catch{return!0}}function d(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Qg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Qg}var pj;function z6(){return pj||(pj=1,Xg.exports=I6()),Xg.exports}var B6=z6();function q6(){return B6.useSyncExternalStore(U6,()=>!0,()=>!1)}function U6(){return()=>{}}var fS="Avatar",[H6]=_k(fS),[F6,Tk]=H6(fS),jk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,l]=_.useState("idle");return v.jsx(F6,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:v.jsx(Mo.span,{...r,ref:t})})});jk.displayName=fS;var Ck="AvatarImage",Mk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...l}=e,s=Tk(Ck,n),c=G6(r,l),f=Mr(d=>{i(d),s.onImageLoadingStatusChange(d)});return It(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?v.jsx(Mo.img,{...l,ref:t,src:r}):null});Mk.displayName=Ck;var Nk="AvatarFallback",Rk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,l=Tk(Nk,n),[s,c]=_.useState(r===void 0);return _.useEffect(()=>{if(r!==void 0){const f=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(f)}},[r]),s&&l.imageLoadingStatus!=="loaded"?v.jsx(Mo.span,{...i,ref:t}):null});Rk.displayName=Nk;function mj(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function G6(e,{referrerPolicy:t,crossOrigin:n}){const r=q6(),i=_.useRef(null),l=r?(i.current||(i.current=new window.Image),i.current):null,[s,c]=_.useState(()=>mj(l,e));return It(()=>{c(mj(l,e))},[l,e]),It(()=>{const f=p=>()=>{c(p)};if(!l)return;const d=f("loaded"),m=f("error");return l.addEventListener("load",d),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof n=="string"&&(l.crossOrigin=n),()=>{l.removeEventListener("load",d),l.removeEventListener("error",m)}},[l,n,t]),s}var V6=jk,Y6=Mk,W6=Rk;function Pk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pk(e))&&(r&&(r+=" "),r+=t);return r}const dS="-",K6=e=>{const t=Q6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const c=s.split(dS);return c[0]===""&&c.length!==1&&c.shift(),Dk(c,t)||X6(s)},getConflictingClassGroupIds:(s,c)=>{const f=n[s]||[];return c&&r[s]?[...f,...r[s]]:f}}},Dk=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Dk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(dS);return(s=t.validators.find(({validator:c})=>c(l)))==null?void 0:s.classGroupId},vj=/^\[(.+)\]$/,X6=e=>{if(vj.test(e)){const t=vj.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Q6=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return J6(Object.entries(e.classGroups),n).forEach(([l,s])=>{pw(s,r,l,t)}),r},pw=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?t:gj(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(Z6(i)){pw(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,s])=>{pw(s,gj(t,l),n,r)})})},gj=(e,t)=>{let n=e;return t.split(dS).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Z6=e=>e.isThemeGetter,J6=(e,t)=>t?e.map(([n,r])=>{const i=r.map(l=>typeof l=="string"?t+l:typeof l=="object"?Object.fromEntries(Object.entries(l).map(([s,c])=>[t+s,c])):l);return[n,i]}):e,eU=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(l,s)=>{n.set(l,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let s=n.get(l);if(s!==void 0)return s;if((s=r.get(l))!==void 0)return i(l,s),s},set(l,s){n.has(l)?n.set(l,s):i(l,s)}}},kk="!",tU=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],l=t.length,s=c=>{const f=[];let d=0,m=0,p;for(let S=0;S<c.length;S++){let E=c[S];if(d===0){if(E===i&&(r||c.slice(S,S+l)===t)){f.push(c.slice(m,S)),m=S+l;continue}if(E==="/"){p=S;continue}}E==="["?d++:E==="]"&&d--}const y=f.length===0?c:c.substring(m),x=y.startsWith(kk),O=x?y.substring(1):y,w=p&&p>m?p-m:void 0;return{modifiers:f,hasImportantModifier:x,baseClassName:O,maybePostfixModifierPosition:w}};return n?c=>n({className:c,parseClassName:s}):s},nU=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},rU=e=>({cache:eU(e.cacheSize),parseClassName:tU(e),...K6(e)}),aU=/\s+/,iU=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,l=[],s=e.trim().split(aU);let c="";for(let f=s.length-1;f>=0;f-=1){const d=s[f],{modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:x}=n(d);let O=!!x,w=r(O?y.substring(0,x):y);if(!w){if(!O){c=d+(c.length>0?" "+c:c);continue}if(w=r(y),!w){c=d+(c.length>0?" "+c:c);continue}O=!1}const S=nU(m).join(":"),E=p?S+kk:S,T=E+w;if(l.includes(T))continue;l.push(T);const A=i(w,O);for(let M=0;M<A.length;++M){const j=A[M];l.push(E+j)}c=d+(c.length>0?" "+c:c)}return c};function oU(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=$k(t))&&(r&&(r+=" "),r+=n);return r}const $k=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=$k(e[r]))&&(n&&(n+=" "),n+=t);return n};function lU(e,...t){let n,r,i,l=s;function s(f){const d=t.reduce((m,p)=>p(m),e());return n=rU(d),r=n.cache.get,i=n.cache.set,l=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=iU(f,n);return i(f,m),m}return function(){return l(oU.apply(null,arguments))}}const pt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Lk=/^\[(?:([a-z-]+):)?(.+)\]$/i,sU=/^\d+\/\d+$/,uU=new Set(["px","full","screen"]),cU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fU=/\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$/,dU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,hU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ea=e=>ql(e)||uU.has(e)||sU.test(e),gi=e=>Es(e,"length",SU),ql=e=>!!e&&!Number.isNaN(Number(e)),Zg=e=>Es(e,"number",ql),Pu=e=>!!e&&Number.isInteger(Number(e)),mU=e=>e.endsWith("%")&&ql(e.slice(0,-1)),Pe=e=>Lk.test(e),yi=e=>cU.test(e),vU=new Set(["length","size","percentage"]),gU=e=>Es(e,vU,Ik),yU=e=>Es(e,"position",Ik),bU=new Set(["image","url"]),xU=e=>Es(e,bU,_U),wU=e=>Es(e,"",OU),Du=()=>!0,Es=(e,t,n)=>{const r=Lk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},SU=e=>fU.test(e)&&!dU.test(e),Ik=()=>!1,OU=e=>hU.test(e),_U=e=>pU.test(e),EU=()=>{const e=pt("colors"),t=pt("spacing"),n=pt("blur"),r=pt("brightness"),i=pt("borderColor"),l=pt("borderRadius"),s=pt("borderSpacing"),c=pt("borderWidth"),f=pt("contrast"),d=pt("grayscale"),m=pt("hueRotate"),p=pt("invert"),y=pt("gap"),x=pt("gradientColorStops"),O=pt("gradientColorStopPositions"),w=pt("inset"),S=pt("margin"),E=pt("opacity"),T=pt("padding"),A=pt("saturate"),M=pt("scale"),j=pt("sepia"),N=pt("skew"),R=pt("space"),k=pt("translate"),I=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Pe,t],B=()=>[Pe,t],G=()=>["",Ea,gi],K=()=>["auto",ql,Pe],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],W=()=>["","0",Pe],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>[ql,Pe];return{cacheSize:500,separator:":",theme:{colors:[Du],spacing:[Ea,gi],blur:["none","",yi,Pe],brightness:$(),borderColor:[e],borderRadius:["none","","full",yi,Pe],borderSpacing:B(),borderWidth:G(),contrast:$(),grayscale:W(),hueRotate:$(),invert:W(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[mU,gi],inset:z(),margin:z(),opacity:$(),padding:B(),saturate:$(),scale:$(),sepia:W(),skew:$(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",Pe]}],container:["container"],columns:[{columns:[yi]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"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"],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:[...X(),Pe]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pu,Pe]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Pe]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",Pu,Pe]}],"grid-cols":[{"grid-cols":[Du]}],"col-start-end":[{col:["auto",{span:["full",Pu,Pe]},Pe]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Du]}],"row-start-end":[{row:["auto",{span:[Pu,Pe]},Pe]}],"row-start":[{"row-start":K()}],"row-end":[{"row-end":K()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Pe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Pe]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Pe,t]}],"min-w":[{"min-w":[Pe,t,"min","max","fit"]}],"max-w":[{"max-w":[Pe,t,"none","full","min","max","fit","prose",{screen:[yi]},yi]}],h:[{h:[Pe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Pe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Pe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",yi,gi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zg]}],"font-family":[{font:[Du]}],"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:["tighter","tight","normal","wide","wider","widest",Pe]}],"line-clamp":[{"line-clamp":["none",ql,Zg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ea,Pe]}],"list-image":[{"list-image":["none",Pe]}],"list-style-type":[{list:["none","disc","decimal",Pe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ea,gi]}],"underline-offset":[{"underline-offset":["auto",Ea,Pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),yU]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gU]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},xU]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[O]}],"gradient-via-pos":[{via:[O]}],"gradient-to-pos":[{to:[O]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:D()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[Ea,Pe]}],"outline-w":[{outline:[Ea,gi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Ea,gi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",yi,wU]}],"shadow-color":[{shadow:[Du]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",yi,Pe]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Pe]}],duration:[{duration:$()}],ease:[{ease:["linear","in","out","in-out",Pe]}],delay:[{delay:$()}],animate:[{animate:["none","spin","ping","pulse","bounce",Pe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Pu,Pe]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Pe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",Pe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"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",Pe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ea,gi,Zg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},AU=lU(EU);function he(...e){return AU(Ue(e))}function yj({className:e,...t}){return v.jsx(V6,{className:he("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function bj({className:e,...t}){return v.jsx(Y6,{className:he("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function xj({className:e,...t}){return v.jsx(W6,{className:he("flex size-full items-center justify-center rounded-full bg-muted",e),"data-slot":"avatar-fallback",...t})}function be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function TU(e,t){const n=_.createContext(t),r=l=>{const{children:s,...c}=l,f=_.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:f,children:s})};r.displayName=e+"Provider";function i(l){const s=_.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,i]}function kr(e,t=[]){let n=[];function r(l,s){const c=_.createContext(s),f=n.length;n=[...n,s];const d=p=>{var E;const{scope:y,children:x,...O}=p,w=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return v.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,y){var w;const x=((w=y==null?void 0:y[e])==null?void 0:w[f])||c,O=_.useContext(x);if(O)return O;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,m]}const i=()=>{const l=n.map(s=>_.createContext(s));return function(c){const f=(c==null?void 0:c[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,jU(i,...t)]}function jU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(l)[`__scope${d}`];return{...c,...p}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var CU=nS[" useInsertionEffect ".trim().toString()]||It;function Ai({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,l,s]=MU({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:i;{const m=_.useRef(e!==void 0);_.useEffect(()=>{const p=m.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const d=_.useCallback(m=>{var p;if(c){const y=NU(m)?m(e):m;y!==e&&((p=s.current)==null||p.call(s,y))}else l(m)},[c,e,l,s]);return[f,d]}function MU({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),l=_.useRef(t);return CU(()=>{l.current=t},[t]),_.useEffect(()=>{var s;i.current!==n&&((s=l.current)==null||s.call(l,n),i.current=n)},[n,i]),[n,r,l]}function NU(e){return typeof e=="function"}function Kl(e){const t=RU(e),n=_.forwardRef((r,i)=>{const{children:l,...s}=r,c=_.Children.toArray(l),f=c.find(PU);if(f){const d=f.props.children,m=c.map(p=>p===f?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:p);return v.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return v.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}function RU(e){const t=_.forwardRef((n,r)=>{const{children:i,...l}=n;if(_.isValidElement(i)){const s=kU(i),c=DU(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Zc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var zk=Symbol("radix.slottable");function Bk(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=zk,t}function PU(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===zk}function DU(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...c)=>{const f=l(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function kU(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var $U=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=$U.reduce((e,t)=>{const n=Kl(`Primitive.${t}`),r=_.forwardRef((i,l)=>{const{asChild:s,...c}=i,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function qk(e,t){e&&Xc.flushSync(()=>e.dispatchEvent(t))}function hS(e){const t=e+"CollectionProvider",[n,r]=kr(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{const{scope:S,children:E}=w,T=L.useRef(null),A=L.useRef(new Map).current;return v.jsx(i,{scope:S,itemMap:A,collectionRef:T,children:E})};s.displayName=t;const c=e+"CollectionSlot",f=Kl(c),d=L.forwardRef((w,S)=>{const{scope:E,children:T}=w,A=l(c,E),M=Ye(S,A.collectionRef);return v.jsx(f,{ref:M,children:T})});d.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",y=Kl(m),x=L.forwardRef((w,S)=>{const{scope:E,children:T,...A}=w,M=L.useRef(null),j=Ye(S,M),N=l(m,E);return L.useEffect(()=>(N.itemMap.set(M,{ref:M,...A}),()=>void N.itemMap.delete(M))),v.jsx(y,{[p]:"",ref:j,children:T})});x.displayName=m;function O(w){const S=l(e+"CollectionConsumer",w);return L.useCallback(()=>{const T=S.collectionRef.current;if(!T)return[];const A=Array.from(T.querySelectorAll(`[${p}]`));return Array.from(S.itemMap.values()).sort((N,R)=>A.indexOf(N.ref.current)-A.indexOf(R.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:d,ItemSlot:x},O,r]}var LU=_.createContext(void 0);function _p(e){const t=_.useContext(LU);return e||t||"ltr"}function IU(e,t=globalThis==null?void 0:globalThis.document){const n=Mr(e);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var zU="DismissableLayer",mw="dismissableLayer.update",BU="dismissableLayer.pointerDownOutside",qU="dismissableLayer.focusOutside",wj,Uk=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jc=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...f}=e,d=_.useContext(Uk),[m,p]=_.useState(null),y=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=_.useState({}),O=Ye(t,R=>p(R)),w=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=w.indexOf(S),T=m?w.indexOf(m):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,M=T>=E,j=FU(R=>{const k=R.target,I=[...d.branches].some(V=>V.contains(k));!M||I||(i==null||i(R),s==null||s(R),R.defaultPrevented||c==null||c())},y),N=GU(R=>{const k=R.target;[...d.branches].some(V=>V.contains(k))||(l==null||l(R),s==null||s(R),R.defaultPrevented||c==null||c())},y);return IU(R=>{T===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},y),_.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(wj=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Sj(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=wj)}},[m,y,n,d]),_.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Sj())},[m,d]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(mw,R),()=>document.removeEventListener(mw,R)},[]),v.jsx(Me.div,{...f,ref:O,style:{pointerEvents:A?M?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,N.onFocusCapture),onBlurCapture:be(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,j.onPointerDownCapture)})});Jc.displayName=zU;var UU="DismissableLayerBranch",HU=_.forwardRef((e,t)=>{const n=_.useContext(Uk),r=_.useRef(null),i=Ye(t,r);return _.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),v.jsx(Me.div,{...e,ref:i})});HU.displayName=UU;function FU(e,t=globalThis==null?void 0:globalThis.document){const n=Mr(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const l=c=>{if(c.target&&!r.current){let f=function(){Hk(BU,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function GU(e,t=globalThis==null?void 0:globalThis.document){const n=Mr(e),r=_.useRef(!1);return _.useEffect(()=>{const i=l=>{l.target&&!r.current&&Hk(qU,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sj(){const e=new CustomEvent(mw);document.dispatchEvent(e)}function Hk(e,t,n,{discrete:r}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?qk(i,l):i.dispatchEvent(l)}var Jg=0;function pS(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Oj()),document.body.insertAdjacentElement("beforeend",e[1]??Oj()),Jg++,()=>{Jg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jg--}},[])}function Oj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ey="focusScope.autoFocusOnMount",ty="focusScope.autoFocusOnUnmount",_j={bubbles:!1,cancelable:!0},VU="FocusScope",Ep=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[c,f]=_.useState(null),d=Mr(i),m=Mr(l),p=_.useRef(null),y=Ye(t,w=>f(w)),x=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let w=function(A){if(x.paused||!c)return;const M=A.target;c.contains(M)?p.current=M:xi(p.current,{select:!0})},S=function(A){if(x.paused||!c)return;const M=A.relatedTarget;M!==null&&(c.contains(M)||xi(p.current,{select:!0}))},E=function(A){if(document.activeElement===document.body)for(const j of A)j.removedNodes.length>0&&xi(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const T=new MutationObserver(E);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),T.disconnect()}}},[r,c,x.paused]),_.useEffect(()=>{if(c){Aj.add(x);const w=document.activeElement;if(!c.contains(w)){const E=new CustomEvent(ey,_j);c.addEventListener(ey,d),c.dispatchEvent(E),E.defaultPrevented||(YU(ZU(Fk(c)),{select:!0}),document.activeElement===w&&xi(c))}return()=>{c.removeEventListener(ey,d),setTimeout(()=>{const E=new CustomEvent(ty,_j);c.addEventListener(ty,m),c.dispatchEvent(E),E.defaultPrevented||xi(w??document.body,{select:!0}),c.removeEventListener(ty,m),Aj.remove(x)},0)}}},[c,d,m,x]);const O=_.useCallback(w=>{if(!n&&!r||x.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,E=document.activeElement;if(S&&E){const T=w.currentTarget,[A,M]=WU(T);A&&M?!w.shiftKey&&E===M?(w.preventDefault(),n&&xi(A,{select:!0})):w.shiftKey&&E===A&&(w.preventDefault(),n&&xi(M,{select:!0})):E===T&&w.preventDefault()}},[n,r,x.paused]);return v.jsx(Me.div,{tabIndex:-1,...s,ref:y,onKeyDown:O})});Ep.displayName=VU;function YU(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xi(r,{select:t}),document.activeElement!==n)return}function WU(e){const t=Fk(e),n=Ej(t,e),r=Ej(t.reverse(),e);return[n,r]}function Fk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ej(e,t){for(const n of e)if(!KU(n,{upTo:t}))return n}function KU(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function XU(e){return e instanceof HTMLInputElement&&"select"in e}function xi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&XU(e)&&t&&e.select()}}var Aj=QU();function QU(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Tj(e,t),e.unshift(t)},remove(t){var n;e=Tj(e,t),(n=e[0])==null||n.resume()}}}function Tj(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function ZU(e){return e.filter(t=>t.tagName!=="A")}var JU=nS[" useId ".trim().toString()]||(()=>{}),eH=0;function cr(e){const[t,n]=_.useState(JU());return It(()=>{n(r=>r??String(eH++))},[e]),e||(t?`radix-${t}`:"")}const tH=["top","right","bottom","left"],Ti=Math.min,Gn=Math.max,ch=Math.round,Pd=Math.floor,Zr=e=>({x:e,y:e}),nH={left:"right",right:"left",bottom:"top",top:"bottom"},rH={start:"end",end:"start"};function vw(e,t,n){return Gn(e,Ti(t,n))}function ka(e,t){return typeof e=="function"?e(t):e}function $a(e){return e.split("-")[0]}function As(e){return e.split("-")[1]}function mS(e){return e==="x"?"y":"x"}function vS(e){return e==="y"?"height":"width"}const aH=new Set(["top","bottom"]);function Xr(e){return aH.has($a(e))?"y":"x"}function gS(e){return mS(Xr(e))}function iH(e,t,n){n===void 0&&(n=!1);const r=As(e),i=gS(e),l=vS(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=fh(s)),[s,fh(s)]}function oH(e){const t=fh(e);return[gw(e),t,gw(t)]}function gw(e){return e.replace(/start|end/g,t=>rH[t])}const jj=["left","right"],Cj=["right","left"],lH=["top","bottom"],sH=["bottom","top"];function uH(e,t,n){switch(e){case"top":case"bottom":return n?t?Cj:jj:t?jj:Cj;case"left":case"right":return t?lH:sH;default:return[]}}function cH(e,t,n,r){const i=As(e);let l=uH($a(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(gw)))),l}function fh(e){return e.replace(/left|right|bottom|top/g,t=>nH[t])}function fH(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gk(e){return typeof e!="number"?fH(e):{top:e,right:e,bottom:e,left:e}}function dh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Mj(e,t,n){let{reference:r,floating:i}=e;const l=Xr(t),s=gS(t),c=vS(s),f=$a(t),d=l==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,y=r[c]/2-i[c]/2;let x;switch(f){case"top":x={x:m,y:r.y-i.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:p};break;case"left":x={x:r.x-i.width,y:p};break;default:x={x:r.x,y:r.y}}switch(As(t)){case"start":x[s]-=y*(n&&d?-1:1);break;case"end":x[s]+=y*(n&&d?-1:1);break}return x}const dH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:s}=n,c=l.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=Mj(d,r,f),y=r,x={},O=0;for(let w=0;w<c.length;w++){const{name:S,fn:E}=c[w],{x:T,y:A,data:M,reset:j}=await E({x:m,y:p,initialPlacement:r,placement:y,strategy:i,middlewareData:x,rects:d,platform:s,elements:{reference:e,floating:t}});m=T??m,p=A??p,x={...x,[S]:{...x[S],...M}},j&&O<=50&&(O++,typeof j=="object"&&(j.placement&&(y=j.placement),j.rects&&(d=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:m,y:p}=Mj(d,y,f)),w=-1)}return{x:m,y:p,placement:y,strategy:i,middlewareData:x}};async function oc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:s,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:x=0}=ka(t,e),O=Gk(x),S=c[y?p==="floating"?"reference":"floating":p],E=dh(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),T=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),M=await(l.isElement==null?void 0:l.isElement(A))?await(l.getScale==null?void 0:l.getScale(A))||{x:1,y:1}:{x:1,y:1},j=dh(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:A,strategy:f}):T);return{top:(E.top-j.top+O.top)/M.y,bottom:(j.bottom-E.bottom+O.bottom)/M.y,left:(E.left-j.left+O.left)/M.x,right:(j.right-E.right+O.right)/M.x}}const hH=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:s,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=ka(e,t)||{};if(d==null)return{};const p=Gk(m),y={x:n,y:r},x=gS(i),O=vS(x),w=await s.getDimensions(d),S=x==="y",E=S?"top":"left",T=S?"bottom":"right",A=S?"clientHeight":"clientWidth",M=l.reference[O]+l.reference[x]-y[x]-l.floating[O],j=y[x]-l.reference[x],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=N?N[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(N)))&&(R=c.floating[A]||l.floating[O]);const k=M/2-j/2,I=R/2-w[O]/2-1,V=Ti(p[E],I),z=Ti(p[T],I),B=V,G=R-w[O]-z,K=R/2-w[O]/2+k,X=vw(B,K,G),D=!f.arrow&&As(i)!=null&&K!==X&&l.reference[O]/2-(K<B?V:z)-w[O]/2<0,U=D?K<B?K-B:K-G:0;return{[x]:y[x]+U,data:{[x]:X,centerOffset:K-X-U,...D&&{alignmentOffset:U}},reset:D}}}),pH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:w=!0,...S}=ka(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=$a(i),T=Xr(c),A=$a(c)===c,M=await(f.isRTL==null?void 0:f.isRTL(d.floating)),j=y||(A||!w?[fh(c)]:oH(c)),N=O!=="none";!y&&N&&j.push(...cH(c,w,O,M));const R=[c,...j],k=await oc(t,S),I=[];let V=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&I.push(k[E]),p){const K=iH(i,s,M);I.push(k[K[0]],k[K[1]])}if(V=[...V,{placement:i,overflows:I}],!I.every(K=>K<=0)){var z,B;const K=(((z=l.flip)==null?void 0:z.index)||0)+1,X=R[K];if(X&&(!(p==="alignment"?T!==Xr(X):!1)||V.every(Y=>Xr(Y.placement)===T?Y.overflows[0]>0:!0)))return{data:{index:K,overflows:V},reset:{placement:X}};let D=(B=V.filter(U=>U.overflows[0]<=0).sort((U,Y)=>U.overflows[1]-Y.overflows[1])[0])==null?void 0:B.placement;if(!D)switch(x){case"bestFit":{var G;const U=(G=V.filter(Y=>{if(N){const W=Xr(Y.placement);return W===T||W==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(W=>W>0).reduce((W,oe)=>W+oe,0)]).sort((Y,W)=>Y[1]-W[1])[0])==null?void 0:G[0];U&&(D=U);break}case"initialPlacement":D=c;break}if(i!==D)return{reset:{placement:D}}}return{}}}};function Nj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Rj(e){return tH.some(t=>e[t]>=0)}const mH=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=ka(e,t);switch(r){case"referenceHidden":{const l=await oc(t,{...i,elementContext:"reference"}),s=Nj(l,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Rj(s)}}}case"escaped":{const l=await oc(t,{...i,altBoundary:!0}),s=Nj(l,n.floating);return{data:{escapedOffsets:s,escaped:Rj(s)}}}default:return{}}}}},Vk=new Set(["left","top"]);async function vH(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=$a(n),c=As(n),f=Xr(n)==="y",d=Vk.has(s)?-1:1,m=l&&f?-1:1,p=ka(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:O}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof O=="number"&&(x=c==="end"?O*-1:O),f?{x:x*m,y:y*d}:{x:y*d,y:x*m}}const gH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:s,middlewareData:c}=t,f=await vH(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:l+f.y,data:{...f,placement:s}}}}},yH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:c={fn:S=>{let{x:E,y:T}=S;return{x:E,y:T}}},...f}=ka(e,t),d={x:n,y:r},m=await oc(t,f),p=Xr($a(i)),y=mS(p);let x=d[y],O=d[p];if(l){const S=y==="y"?"top":"left",E=y==="y"?"bottom":"right",T=x+m[S],A=x-m[E];x=vw(T,x,A)}if(s){const S=p==="y"?"top":"left",E=p==="y"?"bottom":"right",T=O+m[S],A=O-m[E];O=vw(T,O,A)}const w=c.fn({...t,[y]:x,[p]:O});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[y]:l,[p]:s}}}}}},bH=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:s}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=ka(e,t),m={x:n,y:r},p=Xr(i),y=mS(p);let x=m[y],O=m[p];const w=ka(c,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const A=y==="y"?"height":"width",M=l.reference[y]-l.floating[A]+S.mainAxis,j=l.reference[y]+l.reference[A]-S.mainAxis;x<M?x=M:x>j&&(x=j)}if(d){var E,T;const A=y==="y"?"width":"height",M=Vk.has($a(i)),j=l.reference[p]-l.floating[A]+(M&&((E=s.offset)==null?void 0:E[p])||0)+(M?0:S.crossAxis),N=l.reference[p]+l.reference[A]+(M?0:((T=s.offset)==null?void 0:T[p])||0)-(M?S.crossAxis:0);O<j?O=j:O>N&&(O=N)}return{[y]:x,[p]:O}}}},xH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:s,elements:c}=t,{apply:f=()=>{},...d}=ka(e,t),m=await oc(t,d),p=$a(i),y=As(i),x=Xr(i)==="y",{width:O,height:w}=l.floating;let S,E;p==="top"||p==="bottom"?(S=p,E=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,S=y==="end"?"top":"bottom");const T=w-m.top-m.bottom,A=O-m.left-m.right,M=Ti(w-m[S],T),j=Ti(O-m[E],A),N=!t.middlewareData.shift;let R=M,k=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=T),N&&!y){const V=Gn(m.left,0),z=Gn(m.right,0),B=Gn(m.top,0),G=Gn(m.bottom,0);x?k=O-2*(V!==0||z!==0?V+z:Gn(m.left,m.right)):R=w-2*(B!==0||G!==0?B+G:Gn(m.top,m.bottom))}await f({...t,availableWidth:k,availableHeight:R});const I=await s.getDimensions(c.floating);return O!==I.width||w!==I.height?{reset:{rects:!0}}:{}}}};function Ap(){return typeof window<"u"}function Ts(e){return Yk(e)?(e.nodeName||"").toLowerCase():"#document"}function Yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aa(e){var t;return(t=(Yk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yk(e){return Ap()?e instanceof Node||e instanceof Yn(e).Node:!1}function Nr(e){return Ap()?e instanceof Element||e instanceof Yn(e).Element:!1}function ta(e){return Ap()?e instanceof HTMLElement||e instanceof Yn(e).HTMLElement:!1}function Pj(e){return!Ap()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yn(e).ShadowRoot}const wH=new Set(["inline","contents"]);function ef(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!wH.has(i)}const SH=new Set(["table","td","th"]);function OH(e){return SH.has(Ts(e))}const _H=[":popover-open",":modal"];function Tp(e){return _H.some(t=>{try{return e.matches(t)}catch{return!1}})}const EH=["transform","translate","scale","rotate","perspective"],AH=["transform","translate","scale","rotate","perspective","filter"],TH=["paint","layout","strict","content"];function yS(e){const t=bS(),n=Nr(e)?Rr(e):e;return EH.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||AH.some(r=>(n.willChange||"").includes(r))||TH.some(r=>(n.contain||"").includes(r))}function jH(e){let t=ji(e);for(;ta(t)&&!Xl(t);){if(yS(t))return t;if(Tp(t))return null;t=ji(t)}return null}function bS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const CH=new Set(["html","body","#document"]);function Xl(e){return CH.has(Ts(e))}function Rr(e){return Yn(e).getComputedStyle(e)}function jp(e){return Nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ji(e){if(Ts(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Pj(e)&&e.host||aa(e);return Pj(t)?t.host:t}function Wk(e){const t=ji(e);return Xl(t)?e.ownerDocument?e.ownerDocument.body:e.body:ta(t)&&ef(t)?t:Wk(t)}function lc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Wk(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=Yn(i);if(l){const c=yw(s);return t.concat(s,s.visualViewport||[],ef(i)?i:[],c&&n?lc(c):[])}return t.concat(i,lc(i,[],n))}function yw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kk(e){const t=Rr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ta(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=ch(n)!==l||ch(r)!==s;return c&&(n=l,r=s),{width:n,height:r,$:c}}function xS(e){return Nr(e)?e:e.contextElement}function Ul(e){const t=xS(e);if(!ta(t))return Zr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=Kk(t);let s=(l?ch(n.width):n.width)/r,c=(l?ch(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const MH=Zr(0);function Xk(e){const t=Yn(e);return!bS()||!t.visualViewport?MH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function NH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yn(e)?!1:t}function xo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=xS(e);let s=Zr(1);t&&(r?Nr(r)&&(s=Ul(r)):s=Ul(e));const c=NH(l,n,r)?Xk(l):Zr(0);let f=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(l){const y=Yn(l),x=r&&Nr(r)?Yn(r):r;let O=y,w=yw(O);for(;w&&r&&x!==O;){const S=Ul(w),E=w.getBoundingClientRect(),T=Rr(w),A=E.left+(w.clientLeft+parseFloat(T.paddingLeft))*S.x,M=E.top+(w.clientTop+parseFloat(T.paddingTop))*S.y;f*=S.x,d*=S.y,m*=S.x,p*=S.y,f+=A,d+=M,O=Yn(w),w=yw(O)}}return dh({width:m,height:p,x:f,y:d})}function Cp(e,t){const n=jp(e).scrollLeft;return t?t.left+n:xo(aa(e)).left+n}function Qk(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Cp(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function RH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=aa(r),c=t?Tp(t.floating):!1;if(r===s||c&&l)return n;let f={scrollLeft:0,scrollTop:0},d=Zr(1);const m=Zr(0),p=ta(r);if((p||!p&&!l)&&((Ts(r)!=="body"||ef(s))&&(f=jp(r)),ta(r))){const x=xo(r);d=Ul(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const y=s&&!p&&!l?Qk(s,f):Zr(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+m.x+y.x,y:n.y*d.y-f.scrollTop*d.y+m.y+y.y}}function PH(e){return Array.from(e.getClientRects())}function DH(e){const t=aa(e),n=jp(e),r=e.ownerDocument.body,i=Gn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Gn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Cp(e);const c=-n.scrollTop;return Rr(r).direction==="rtl"&&(s+=Gn(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:s,y:c}}const Dj=25;function kH(e,t){const n=Yn(e),r=aa(e),i=n.visualViewport;let l=r.clientWidth,s=r.clientHeight,c=0,f=0;if(i){l=i.width,s=i.height;const m=bS();(!m||m&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Cp(r);if(d<=0){const m=r.ownerDocument,p=m.body,y=getComputedStyle(p),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,O=Math.abs(r.clientWidth-p.clientWidth-x);O<=Dj&&(l-=O)}else d<=Dj&&(l+=d);return{width:l,height:s,x:c,y:f}}const $H=new Set(["absolute","fixed"]);function LH(e,t){const n=xo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=ta(e)?Ul(e):Zr(1),s=e.clientWidth*l.x,c=e.clientHeight*l.y,f=i*l.x,d=r*l.y;return{width:s,height:c,x:f,y:d}}function kj(e,t,n){let r;if(t==="viewport")r=kH(e,n);else if(t==="document")r=DH(aa(e));else if(Nr(t))r=LH(t,n);else{const i=Xk(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return dh(r)}function Zk(e,t){const n=ji(e);return n===t||!Nr(n)||Xl(n)?!1:Rr(n).position==="fixed"||Zk(n,t)}function IH(e,t){const n=t.get(e);if(n)return n;let r=lc(e,[],!1).filter(c=>Nr(c)&&Ts(c)!=="body"),i=null;const l=Rr(e).position==="fixed";let s=l?ji(e):e;for(;Nr(s)&&!Xl(s);){const c=Rr(s),f=yS(s);!f&&c.position==="fixed"&&(i=null),(l?!f&&!i:!f&&c.position==="static"&&!!i&&$H.has(i.position)||ef(s)&&!f&&Zk(e,s))?r=r.filter(m=>m!==s):i=c,s=ji(s)}return t.set(e,r),r}function zH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Tp(t)?[]:IH(t,this._c):[].concat(n),r],c=s[0],f=s.reduce((d,m)=>{const p=kj(t,m,i);return d.top=Gn(p.top,d.top),d.right=Ti(p.right,d.right),d.bottom=Ti(p.bottom,d.bottom),d.left=Gn(p.left,d.left),d},kj(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function BH(e){const{width:t,height:n}=Kk(e);return{width:t,height:n}}function qH(e,t,n){const r=ta(t),i=aa(t),l=n==="fixed",s=xo(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const f=Zr(0);function d(){f.x=Cp(i)}if(r||!r&&!l)if((Ts(t)!=="body"||ef(i))&&(c=jp(t)),r){const x=xo(t,!0,l,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&d();l&&!r&&i&&d();const m=i&&!r&&!l?Qk(i,c):Zr(0),p=s.left+c.scrollLeft-f.x-m.x,y=s.top+c.scrollTop-f.y-m.y;return{x:p,y,width:s.width,height:s.height}}function ny(e){return Rr(e).position==="static"}function $j(e,t){if(!ta(e)||Rr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return aa(e)===n&&(n=n.ownerDocument.body),n}function Jk(e,t){const n=Yn(e);if(Tp(e))return n;if(!ta(e)){let i=ji(e);for(;i&&!Xl(i);){if(Nr(i)&&!ny(i))return i;i=ji(i)}return n}let r=$j(e,t);for(;r&&OH(r)&&ny(r);)r=$j(r,t);return r&&Xl(r)&&ny(r)&&!yS(r)?n:r||jH(e)||n}const UH=async function(e){const t=this.getOffsetParent||Jk,n=this.getDimensions,r=await n(e.floating);return{reference:qH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function HH(e){return Rr(e).direction==="rtl"}const FH={convertOffsetParentRelativeRectToViewportRelativeRect:RH,getDocumentElement:aa,getClippingRect:zH,getOffsetParent:Jk,getElementRects:UH,getClientRects:PH,getDimensions:BH,getScale:Ul,isElement:Nr,isRTL:HH};function e$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function GH(e,t){let n=null,r;const i=aa(e);function l(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const d=e.getBoundingClientRect(),{left:m,top:p,width:y,height:x}=d;if(c||t(),!y||!x)return;const O=Pd(p),w=Pd(i.clientWidth-(m+y)),S=Pd(i.clientHeight-(p+x)),E=Pd(m),A={rootMargin:-O+"px "+-w+"px "+-S+"px "+-E+"px",threshold:Gn(0,Ti(1,f))||1};let M=!0;function j(N){const R=N[0].intersectionRatio;if(R!==f){if(!M)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!e$(d,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(j,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(j,A)}n.observe(e)}return s(!0),l}function VH(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=xS(e),m=i||l?[...d?lc(d):[],...lc(t)]:[];m.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),l&&E.addEventListener("resize",n)});const p=d&&c?GH(d,n):null;let y=-1,x=null;s&&(x=new ResizeObserver(E=>{let[T]=E;T&&T.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let O,w=f?xo(e):null;f&&S();function S(){const E=xo(e);w&&!e$(w,E)&&n(),w=E,O=requestAnimationFrame(S)}return n(),()=>{var E;m.forEach(T=>{i&&T.removeEventListener("scroll",n),l&&T.removeEventListener("resize",n)}),p==null||p(),(E=x)==null||E.disconnect(),x=null,f&&cancelAnimationFrame(O)}}const YH=gH,WH=yH,KH=pH,XH=xH,QH=mH,Lj=hH,ZH=bH,JH=(e,t,n)=>{const r=new Map,i={platform:FH,...n},l={...i.platform,_c:r};return dH(e,t,{...i,platform:l})};var e7=typeof document<"u",t7=function(){},rh=e7?_.useLayoutEffect:t7;function hh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!hh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!hh(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function t$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ij(e,t){const n=t$(e);return Math.round(t*n)/n}function ry(e){const t=_.useRef(e);return rh(()=>{t.current=e}),t}function n7(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,p]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=_.useState(r);hh(y,r)||x(r);const[O,w]=_.useState(null),[S,E]=_.useState(null),T=_.useCallback(Y=>{Y!==N.current&&(N.current=Y,w(Y))},[]),A=_.useCallback(Y=>{Y!==R.current&&(R.current=Y,E(Y))},[]),M=l||O,j=s||S,N=_.useRef(null),R=_.useRef(null),k=_.useRef(m),I=f!=null,V=ry(f),z=ry(i),B=ry(d),G=_.useCallback(()=>{if(!N.current||!R.current)return;const Y={placement:t,strategy:n,middleware:y};z.current&&(Y.platform=z.current),JH(N.current,R.current,Y).then(W=>{const oe={...W,isPositioned:B.current!==!1};K.current&&!hh(k.current,oe)&&(k.current=oe,Xc.flushSync(()=>{p(oe)}))})},[y,t,n,z,B]);rh(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(Y=>({...Y,isPositioned:!1})))},[d]);const K=_.useRef(!1);rh(()=>(K.current=!0,()=>{K.current=!1}),[]),rh(()=>{if(M&&(N.current=M),j&&(R.current=j),M&&j){if(V.current)return V.current(M,j,G);G()}},[M,j,G,V,I]);const X=_.useMemo(()=>({reference:N,floating:R,setReference:T,setFloating:A}),[T,A]),D=_.useMemo(()=>({reference:M,floating:j}),[M,j]),U=_.useMemo(()=>{const Y={position:n,left:0,top:0};if(!D.floating)return Y;const W=Ij(D.floating,m.x),oe=Ij(D.floating,m.y);return c?{...Y,transform:"translate("+W+"px, "+oe+"px)",...t$(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:oe}},[n,c,D.floating,m.x,m.y]);return _.useMemo(()=>({...m,update:G,refs:X,elements:D,floatingStyles:U}),[m,G,X,D,U])}const r7=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Lj({element:r.current,padding:i}).fn(n):{}:r?Lj({element:r,padding:i}).fn(n):{}}}},a7=(e,t)=>({...YH(e),options:[e,t]}),i7=(e,t)=>({...WH(e),options:[e,t]}),o7=(e,t)=>({...ZH(e),options:[e,t]}),l7=(e,t)=>({...KH(e),options:[e,t]}),s7=(e,t)=>({...XH(e),options:[e,t]}),u7=(e,t)=>({...QH(e),options:[e,t]}),c7=(e,t)=>({...r7(e),options:[e,t]});var f7="Arrow",n$=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return v.jsx(Me.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});n$.displayName=f7;var d7=n$;function h7(e){const[t,n]=_.useState(void 0);return It(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let s,c;if("borderBoxSize"in l){const f=l.borderBoxSize,d=Array.isArray(f)?f[0]:f;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var wS="Popper",[r$,js]=kr(wS),[p7,a$]=r$(wS),i$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return v.jsx(p7,{scope:t,anchor:r,onAnchorChange:i,children:n})};i$.displayName=wS;var o$="PopperAnchor",l$=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=a$(o$,n),s=_.useRef(null),c=Ye(t,s),f=_.useRef(null);return _.useEffect(()=>{const d=f.current;f.current=(r==null?void 0:r.current)||s.current,d!==f.current&&l.onAnchorChange(f.current)}),r?null:v.jsx(Me.div,{...i,ref:c})});l$.displayName=o$;var SS="PopperContent",[m7,v7]=r$(SS),s$=_.forwardRef((e,t)=>{var fe,pe,ae,me,ye,re;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:O,...w}=e,S=a$(SS,n),[E,T]=_.useState(null),A=Ye(t,Ne=>T(Ne)),[M,j]=_.useState(null),N=h7(M),R=(N==null?void 0:N.width)??0,k=(N==null?void 0:N.height)??0,I=r+(l!=="center"?"-"+l:""),V=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},z=Array.isArray(d)?d:[d],B=z.length>0,G={padding:V,boundary:z.filter(y7),altBoundary:B},{refs:K,floatingStyles:X,placement:D,isPositioned:U,middlewareData:Y}=n7({strategy:"fixed",placement:I,whileElementsMounted:(...Ne)=>VH(...Ne,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[a7({mainAxis:i+k,alignmentAxis:s}),f&&i7({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?o7():void 0,...G}),f&&l7({...G}),s7({...G,apply:({elements:Ne,rects:Oe,availableWidth:Ke,availableHeight:Fe})=>{const{width:nt,height:ln}=Oe.reference,ft=Ne.floating.style;ft.setProperty("--radix-popper-available-width",`${Ke}px`),ft.setProperty("--radix-popper-available-height",`${Fe}px`),ft.setProperty("--radix-popper-anchor-width",`${nt}px`),ft.setProperty("--radix-popper-anchor-height",`${ln}px`)}}),M&&c7({element:M,padding:c}),b7({arrowWidth:R,arrowHeight:k}),y&&u7({strategy:"referenceHidden",...G})]}),[W,oe]=f$(D),$=Mr(O);It(()=>{U&&($==null||$())},[U,$]);const F=(fe=Y.arrow)==null?void 0:fe.x,Z=(pe=Y.arrow)==null?void 0:pe.y,se=((ae=Y.arrow)==null?void 0:ae.centerOffset)!==0,[de,ge]=_.useState();return It(()=>{E&&ge(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:U?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(me=Y.transformOrigin)==null?void 0:me.x,(ye=Y.transformOrigin)==null?void 0:ye.y].join(" "),...((re=Y.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(m7,{scope:n,placedSide:W,onArrowChange:j,arrowX:F,arrowY:Z,shouldHideArrow:se,children:v.jsx(Me.div,{"data-side":W,"data-align":oe,...w,ref:A,style:{...w.style,animation:U?void 0:"none"}})})})});s$.displayName=SS;var u$="PopperArrow",g7={top:"bottom",right:"left",bottom:"top",left:"right"},c$=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=v7(u$,r),s=g7[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(d7,{...i,ref:n,style:{...i.style,display:"block"}})})});c$.displayName=u$;function y7(e){return e!==null}var b7=e=>({name:"transformOrigin",options:e,fn(t){var S,E,T;const{placement:n,rects:r,middlewareData:i}=t,s=((S=i.arrow)==null?void 0:S.centerOffset)!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[d,m]=f$(n),p={start:"0%",center:"50%",end:"100%"}[m],y=(((E=i.arrow)==null?void 0:E.x)??0)+c/2,x=(((T=i.arrow)==null?void 0:T.y)??0)+f/2;let O="",w="";return d==="bottom"?(O=s?p:`${y}px`,w=`${-f}px`):d==="top"?(O=s?p:`${y}px`,w=`${r.floating.height+f}px`):d==="right"?(O=`${-f}px`,w=s?p:`${x}px`):d==="left"&&(O=`${r.floating.width+f}px`,w=s?p:`${x}px`),{data:{x:O,y:w}}}});function f$(e){const[t,n="center"]=e.split("-");return[t,n]}var OS=i$,_S=l$,ES=s$,AS=c$,x7="Portal",tf=_.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,l]=_.useState(!1);It(()=>l(!0),[]);const s=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?bk.createPortal(v.jsx(Me.div,{...r,ref:t}),s):null});tf.displayName=x7;function w7(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=S7(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),l=Ye(r.ref,O7(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:l}):null};mr.displayName="Presence";function S7(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),l=_.useRef("none"),s=e?"mounted":"unmounted",[c,f]=w7(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const d=Dd(r.current);l.current=c==="mounted"?d:"none"},[c]),It(()=>{const d=r.current,m=i.current;if(m!==e){const y=l.current,x=Dd(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(m&&y!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),It(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,p=x=>{const w=Dd(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(f("ANIMATION_END"),!i.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},y=x=>{x.target===t&&(l.current=Dd(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:_.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Dd(e){return(e==null?void 0:e.animationName)||"none"}function O7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ay="rovingFocusGroup.onEntryFocus",_7={bubbles:!1,cancelable:!0},nf="RovingFocusGroup",[bw,d$,E7]=hS(nf),[A7,Mp]=kr(nf,[E7]),[T7,j7]=A7(nf),h$=_.forwardRef((e,t)=>v.jsx(bw.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(bw.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(C7,{...e,ref:t})})}));h$.displayName=nf;var C7=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...p}=e,y=_.useRef(null),x=Ye(t,y),O=_p(l),[w,S]=Ai({prop:s,defaultProp:c??null,onChange:f,caller:nf}),[E,T]=_.useState(!1),A=Mr(d),M=d$(n),j=_.useRef(!1),[N,R]=_.useState(0);return _.useEffect(()=>{const k=y.current;if(k)return k.addEventListener(ay,A),()=>k.removeEventListener(ay,A)},[A]),v.jsx(T7,{scope:n,orientation:r,dir:O,loop:i,currentTabStopId:w,onItemFocus:_.useCallback(k=>S(k),[S]),onItemShiftTab:_.useCallback(()=>T(!0),[]),onFocusableItemAdd:_.useCallback(()=>R(k=>k+1),[]),onFocusableItemRemove:_.useCallback(()=>R(k=>k-1),[]),children:v.jsx(Me.div,{tabIndex:E||N===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{j.current=!0}),onFocus:be(e.onFocus,k=>{const I=!j.current;if(k.target===k.currentTarget&&I&&!E){const V=new CustomEvent(ay,_7);if(k.currentTarget.dispatchEvent(V),!V.defaultPrevented){const z=M().filter(D=>D.focusable),B=z.find(D=>D.active),G=z.find(D=>D.id===w),X=[B,G,...z].filter(Boolean).map(D=>D.ref.current);v$(X,m)}}j.current=!1}),onBlur:be(e.onBlur,()=>T(!1))})})}),p$="RovingFocusGroupItem",m$=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:s,...c}=e,f=cr(),d=l||f,m=j7(p$,n),p=m.currentTabStopId===d,y=d$(n),{onFocusableItemAdd:x,onFocusableItemRemove:O,currentTabStopId:w}=m;return _.useEffect(()=>{if(r)return x(),()=>O()},[r,x,O]),v.jsx(bw.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:v.jsx(Me.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:be(e.onMouseDown,S=>{r?m.onItemFocus(d):S.preventDefault()}),onFocus:be(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:be(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){m.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const E=R7(S,m.orientation,m.dir);if(E!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let A=y().filter(M=>M.focusable).map(M=>M.ref.current);if(E==="last")A.reverse();else if(E==="prev"||E==="next"){E==="prev"&&A.reverse();const M=A.indexOf(S.currentTarget);A=m.loop?P7(A,M+1):A.slice(M+1)}setTimeout(()=>v$(A))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:w!=null}):s})})});m$.displayName=p$;var M7={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N7(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function R7(e,t,n){const r=N7(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return M7[r]}function v$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function P7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var g$=h$,y$=m$,D7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},El=new WeakMap,kd=new WeakMap,$d={},iy=0,b$=function(e){return e&&(e.host||b$(e.parentNode))},k7=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=b$(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},$7=function(e,t,n,r){var i=k7(t,Array.isArray(e)?e:[e]);$d[n]||($d[n]=new WeakMap);var l=$d[n],s=[],c=new Set,f=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var m=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))m(y);else try{var x=y.getAttribute(r),O=x!==null&&x!=="false",w=(El.get(y)||0)+1,S=(l.get(y)||0)+1;El.set(y,w),l.set(y,S),s.push(y),w===1&&O&&kd.set(y,!0),S===1&&y.setAttribute(n,"true"),O||y.setAttribute(r,"true")}catch(E){console.error("aria-hidden: cannot operate on ",y,E)}})};return m(t),c.clear(),iy++,function(){s.forEach(function(p){var y=El.get(p)-1,x=l.get(p)-1;El.set(p,y),l.set(p,x),y||(kd.has(p)||p.removeAttribute(r),kd.delete(p)),x||p.removeAttribute(n)}),iy--,iy||(El=new WeakMap,El=new WeakMap,kd=new WeakMap,$d={})}},TS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=D7(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),$7(r,i,n,"aria-hidden")):function(){return null}},Kr=function(){return Kr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Kr.apply(this,arguments)};function x$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function L7(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var ah="right-scroll-bar-position",ih="width-before-scroll-bar",I7="with-scroll-bars-hidden",z7="--removed-body-scroll-bar-size";function oy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function B7(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var q7=typeof window<"u"?_.useLayoutEffect:_.useEffect,zj=new WeakMap;function U7(e,t){var n=B7(null,function(r){return e.forEach(function(i){return oy(i,r)})});return q7(function(){var r=zj.get(n);if(r){var i=new Set(r),l=new Set(e),s=n.current;i.forEach(function(c){l.has(c)||oy(c,null)}),l.forEach(function(c){i.has(c)||oy(c,s)})}zj.set(n,e)},[e]),n}function H7(e){return e}function F7(e,t){t===void 0&&(t=H7);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var s=t(l,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(l){for(r=!0;n.length;){var s=n;n=[],s.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(l),s=n}var f=function(){var m=s;s=[],m.forEach(l)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(m){s.push(m),d()},filter:function(m){return s=s.filter(m),n}}}};return i}function G7(e){e===void 0&&(e={});var t=F7(null);return t.options=Kr({async:!0,ssr:!1},e),t}var w$=function(e){var t=e.sideCar,n=x$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,Kr({},n))};w$.isSideCarExport=!0;function V7(e,t){return e.useMedium(t),w$}var S$=G7(),ly=function(){},Np=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:ly,onWheelCapture:ly,onTouchMoveCapture:ly}),i=r[0],l=r[1],s=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,p=e.shards,y=e.sideCar,x=e.noRelative,O=e.noIsolation,w=e.inert,S=e.allowPinchZoom,E=e.as,T=E===void 0?"div":E,A=e.gapMode,M=x$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=y,N=U7([n,t]),R=Kr(Kr({},M),i);return _.createElement(_.Fragment,null,m&&_.createElement(j,{sideCar:S$,removeScrollBar:d,shards:p,noRelative:x,noIsolation:O,inert:w,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:A}),s?_.cloneElement(_.Children.only(c),Kr(Kr({},R),{ref:N})):_.createElement(T,Kr({},R,{className:f,ref:N}),c))});Np.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Np.classNames={fullWidth:ih,zeroRight:ah};var Y7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function W7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Y7();return t&&e.setAttribute("nonce",t),e}function K7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function X7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Q7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=W7())&&(K7(t,n),X7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Z7=function(){var e=Q7();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},O$=function(){var e=Z7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},J7={left:0,top:0,right:0,gap:0},sy=function(e){return parseInt(e||"",10)||0},e9=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[sy(n),sy(r),sy(i)]},t9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return J7;var t=e9(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},n9=O$(),Hl="data-scroll-locked",r9=function(e,t,n,r){var i=e.left,l=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
259
- .`.concat(I7,` {
260
- overflow: hidden `).concat(r,`;
261
- padding-right: `).concat(c,"px ").concat(r,`;
262
- }
263
- body[`).concat(Hl,`] {
264
- overflow: hidden `).concat(r,`;
265
- overscroll-behavior: contain;
266
- `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
267
- padding-left: `.concat(i,`px;
268
- padding-top: `).concat(l,`px;
269
- padding-right: `).concat(s,`px;
270
- margin-left:0;
271
- margin-top:0;
272
- margin-right: `).concat(c,"px ").concat(r,`;
273
- `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
274
- }
275
-
276
- .`).concat(ah,` {
277
- right: `).concat(c,"px ").concat(r,`;
278
- }
279
-
280
- .`).concat(ih,` {
281
- margin-right: `).concat(c,"px ").concat(r,`;
282
- }
283
-
284
- .`).concat(ah," .").concat(ah,` {
285
- right: 0 `).concat(r,`;
286
- }
287
-
288
- .`).concat(ih," .").concat(ih,` {
289
- margin-right: 0 `).concat(r,`;
290
- }
291
-
292
- body[`).concat(Hl,`] {
293
- `).concat(z7,": ").concat(c,`px;
294
- }
295
- `)},Bj=function(){var e=parseInt(document.body.getAttribute(Hl)||"0",10);return isFinite(e)?e:0},a9=function(){_.useEffect(function(){return document.body.setAttribute(Hl,(Bj()+1).toString()),function(){var e=Bj()-1;e<=0?document.body.removeAttribute(Hl):document.body.setAttribute(Hl,e.toString())}},[])},i9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;a9();var l=_.useMemo(function(){return t9(i)},[i]);return _.createElement(n9,{styles:r9(l,!t,i,n?"":"!important")})},xw=!1;if(typeof window<"u")try{var Ld=Object.defineProperty({},"passive",{get:function(){return xw=!0,!0}});window.addEventListener("test",Ld,Ld),window.removeEventListener("test",Ld,Ld)}catch{xw=!1}var Al=xw?{passive:!1}:!1,o9=function(e){return e.tagName==="TEXTAREA"},_$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!o9(e)&&n[t]==="visible")},l9=function(e){return _$(e,"overflowY")},s9=function(e){return _$(e,"overflowX")},qj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=E$(e,r);if(i){var l=A$(e,r),s=l[1],c=l[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},u9=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},c9=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},E$=function(e,t){return e==="v"?l9(t):s9(t)},A$=function(e,t){return e==="v"?u9(t):c9(t)},f9=function(e,t){return e==="h"&&t==="rtl"?-1:1},d9=function(e,t,n,r,i){var l=f9(e,window.getComputedStyle(t).direction),s=l*r,c=n.target,f=t.contains(c),d=!1,m=s>0,p=0,y=0;do{if(!c)break;var x=A$(e,c),O=x[0],w=x[1],S=x[2],E=w-S-l*O;(O||E)&&E$(e,c)&&(p+=E,y+=O);var T=c.parentNode;c=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(y)<1)&&(d=!0),d},Id=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uj=function(e){return[e.deltaX,e.deltaY]},Hj=function(e){return e&&"current"in e?e.current:e},h9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},p9=function(e){return`
296
- .block-interactivity-`.concat(e,` {pointer-events: none;}
297
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
298
- `)},m9=0,Tl=[];function v9(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(m9++)[0],l=_.useState(O$)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=L7([e.lockRef.current],(e.shards||[]).map(Hj),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=_.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!s.current.allowPinchZoom;var E=Id(w),T=n.current,A="deltaX"in w?w.deltaX:T[0]-E[0],M="deltaY"in w?w.deltaY:T[1]-E[1],j,N=w.target,R=Math.abs(A)>Math.abs(M)?"h":"v";if("touches"in w&&R==="h"&&N.type==="range")return!1;var k=qj(R,N);if(!k)return!0;if(k?j=R:(j=R==="v"?"h":"v",k=qj(R,N)),!k)return!1;if(!r.current&&"changedTouches"in w&&(A||M)&&(r.current=j),!j)return!0;var I=r.current||j;return d9(I,S,w,I==="h"?A:M)},[]),f=_.useCallback(function(w){var S=w;if(!(!Tl.length||Tl[Tl.length-1]!==l)){var E="deltaY"in S?Uj(S):Id(S),T=t.current.filter(function(j){return j.name===S.type&&(j.target===S.target||S.target===j.shadowParent)&&h9(j.delta,E)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var A=(s.current.shards||[]).map(Hj).filter(Boolean).filter(function(j){return j.contains(S.target)}),M=A.length>0?c(S,A[0]):!s.current.noIsolation;M&&S.cancelable&&S.preventDefault()}}},[]),d=_.useCallback(function(w,S,E,T){var A={name:w,delta:S,target:E,should:T,shadowParent:g9(E)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(M){return M!==A})},1)},[]),m=_.useCallback(function(w){n.current=Id(w),r.current=void 0},[]),p=_.useCallback(function(w){d(w.type,Uj(w),w.target,c(w,e.lockRef.current))},[]),y=_.useCallback(function(w){d(w.type,Id(w),w.target,c(w,e.lockRef.current))},[]);_.useEffect(function(){return Tl.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",f,Al),document.addEventListener("touchmove",f,Al),document.addEventListener("touchstart",m,Al),function(){Tl=Tl.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,Al),document.removeEventListener("touchmove",f,Al),document.removeEventListener("touchstart",m,Al)}},[]);var x=e.removeScrollBar,O=e.inert;return _.createElement(_.Fragment,null,O?_.createElement(l,{styles:p9(i)}):null,x?_.createElement(i9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function g9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const y9=V7(S$,v9);var Rp=_.forwardRef(function(e,t){return _.createElement(Np,Kr({},e,{ref:t,sideCar:y9}))});Rp.classNames=Np.classNames;var ww=["Enter"," "],b9=["ArrowDown","PageUp","Home"],T$=["ArrowUp","PageDown","End"],x9=[...b9,...T$],w9={ltr:[...ww,"ArrowRight"],rtl:[...ww,"ArrowLeft"]},S9={ltr:["ArrowLeft"],rtl:["ArrowRight"]},rf="Menu",[sc,O9,_9]=hS(rf),[No,j$]=kr(rf,[_9,js,Mp]),Pp=js(),C$=Mp(),[E9,Ro]=No(rf),[A9,af]=No(rf),M$=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=Pp(t),[f,d]=_.useState(null),m=_.useRef(!1),p=Mr(l),y=_p(i);return _.useEffect(()=>{const x=()=>{m.current=!0,document.addEventListener("pointerdown",O,{capture:!0,once:!0}),document.addEventListener("pointermove",O,{capture:!0,once:!0})},O=()=>m.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",O,{capture:!0}),document.removeEventListener("pointermove",O,{capture:!0})}},[]),v.jsx(OS,{...c,children:v.jsx(E9,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:d,children:v.jsx(A9,{scope:t,onClose:_.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:y,modal:s,children:r})})})};M$.displayName=rf;var T9="MenuAnchor",jS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Pp(n);return v.jsx(_S,{...i,...r,ref:t})});jS.displayName=T9;var CS="MenuPortal",[j9,N$]=No(CS,{forceMount:void 0}),R$=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,l=Ro(CS,t);return v.jsx(j9,{scope:t,forceMount:n,children:v.jsx(mr,{present:n||l.open,children:v.jsx(tf,{asChild:!0,container:i,children:r})})})};R$.displayName=CS;var fr="MenuContent",[C9,MS]=No(fr),P$=_.forwardRef((e,t)=>{const n=N$(fr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Ro(fr,e.__scopeMenu),s=af(fr,e.__scopeMenu);return v.jsx(sc.Provider,{scope:e.__scopeMenu,children:v.jsx(mr,{present:r||l.open,children:v.jsx(sc.Slot,{scope:e.__scopeMenu,children:s.modal?v.jsx(M9,{...i,ref:t}):v.jsx(N9,{...i,ref:t})})})})}),M9=_.forwardRef((e,t)=>{const n=Ro(fr,e.__scopeMenu),r=_.useRef(null),i=Ye(t,r);return _.useEffect(()=>{const l=r.current;if(l)return TS(l)},[]),v.jsx(NS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),N9=_.forwardRef((e,t)=>{const n=Ro(fr,e.__scopeMenu);return v.jsx(NS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),R9=Kl("MenuContent.ScrollLock"),NS=_.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,disableOutsideScroll:O,...w}=e,S=Ro(fr,n),E=af(fr,n),T=Pp(n),A=C$(n),M=O9(n),[j,N]=_.useState(null),R=_.useRef(null),k=Ye(t,R,S.onContentChange),I=_.useRef(0),V=_.useRef(""),z=_.useRef(0),B=_.useRef(null),G=_.useRef("right"),K=_.useRef(0),X=O?Rp:_.Fragment,D=O?{as:R9,allowPinchZoom:!0}:void 0,U=W=>{var fe,pe;const oe=V.current+W,$=M().filter(ae=>!ae.disabled),F=document.activeElement,Z=(fe=$.find(ae=>ae.ref.current===F))==null?void 0:fe.textValue,se=$.map(ae=>ae.textValue),de=F9(se,oe,Z),ge=(pe=$.find(ae=>ae.textValue===de))==null?void 0:pe.ref.current;(function ae(me){V.current=me,window.clearTimeout(I.current),me!==""&&(I.current=window.setTimeout(()=>ae(""),1e3))})(oe),ge&&setTimeout(()=>ge.focus())};_.useEffect(()=>()=>window.clearTimeout(I.current),[]),pS();const Y=_.useCallback(W=>{var $,F;return G.current===(($=B.current)==null?void 0:$.side)&&V9(W,(F=B.current)==null?void 0:F.area)},[]);return v.jsx(C9,{scope:n,searchRef:V,onItemEnter:_.useCallback(W=>{Y(W)&&W.preventDefault()},[Y]),onItemLeave:_.useCallback(W=>{var oe;Y(W)||((oe=R.current)==null||oe.focus(),N(null))},[Y]),onTriggerLeave:_.useCallback(W=>{Y(W)&&W.preventDefault()},[Y]),pointerGraceTimerRef:z,onPointerGraceIntentChange:_.useCallback(W=>{B.current=W},[]),children:v.jsx(X,{...D,children:v.jsx(Ep,{asChild:!0,trapped:i,onMountAutoFocus:be(l,W=>{var oe;W.preventDefault(),(oe=R.current)==null||oe.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:v.jsx(Jc,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,children:v.jsx(g$,{asChild:!0,...A,dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:be(f,W=>{E.isUsingKeyboardRef.current||W.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(ES,{role:"menu","aria-orientation":"vertical","data-state":K$(S.open),"data-radix-menu-content":"",dir:E.dir,...T,...w,ref:k,style:{outline:"none",...w.style},onKeyDown:be(w.onKeyDown,W=>{const $=W.target.closest("[data-radix-menu-content]")===W.currentTarget,F=W.ctrlKey||W.altKey||W.metaKey,Z=W.key.length===1;$&&(W.key==="Tab"&&W.preventDefault(),!F&&Z&&U(W.key));const se=R.current;if(W.target!==se||!x9.includes(W.key))return;W.preventDefault();const ge=M().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);T$.includes(W.key)&&ge.reverse(),U9(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(I.current),V.current="")}),onPointerMove:be(e.onPointerMove,uc(W=>{const oe=W.target,$=K.current!==W.clientX;if(W.currentTarget.contains(oe)&&$){const F=W.clientX>K.current?"right":"left";G.current=F,K.current=W.clientX}}))})})})})})})});P$.displayName=fr;var P9="MenuGroup",RS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Me.div,{role:"group",...r,ref:t})});RS.displayName=P9;var D9="MenuLabel",D$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Me.div,{...r,ref:t})});D$.displayName=D9;var ph="MenuItem",Fj="menu.itemSelect",Dp=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,l=_.useRef(null),s=af(ph,e.__scopeMenu),c=MS(ph,e.__scopeMenu),f=Ye(t,l),d=_.useRef(!1),m=()=>{const p=l.current;if(!n&&p){const y=new CustomEvent(Fj,{bubbles:!0,cancelable:!0});p.addEventListener(Fj,x=>r==null?void 0:r(x),{once:!0}),qk(p,y),y.defaultPrevented?d.current=!1:s.onClose()}};return v.jsx(k$,{...i,ref:f,disabled:n,onClick:be(e.onClick,m),onPointerDown:p=>{var y;(y=e.onPointerDown)==null||y.call(e,p),d.current=!0},onPointerUp:be(e.onPointerUp,p=>{var y;d.current||(y=p.currentTarget)==null||y.click()}),onKeyDown:be(e.onKeyDown,p=>{const y=c.searchRef.current!=="";n||y&&p.key===" "||ww.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Dp.displayName=ph;var k$=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,s=MS(ph,n),c=C$(n),f=_.useRef(null),d=Ye(t,f),[m,p]=_.useState(!1),[y,x]=_.useState("");return _.useEffect(()=>{const O=f.current;O&&x((O.textContent??"").trim())},[l.children]),v.jsx(sc.ItemSlot,{scope:n,disabled:r,textValue:i??y,children:v.jsx(y$,{asChild:!0,...c,focusable:!r,children:v.jsx(Me.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:d,onPointerMove:be(e.onPointerMove,uc(O=>{r?s.onItemLeave(O):(s.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,uc(O=>s.onItemLeave(O))),onFocus:be(e.onFocus,()=>p(!0)),onBlur:be(e.onBlur,()=>p(!1))})})})}),k9="MenuCheckboxItem",$$=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return v.jsx(q$,{scope:e.__scopeMenu,checked:n,children:v.jsx(Dp,{role:"menuitemcheckbox","aria-checked":mh(n)?"mixed":n,...i,ref:t,"data-state":DS(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(mh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});$$.displayName=k9;var L$="MenuRadioGroup",[$9,L9]=No(L$,{value:void 0,onValueChange:()=>{}}),I$=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,l=Mr(r);return v.jsx($9,{scope:e.__scopeMenu,value:n,onValueChange:l,children:v.jsx(RS,{...i,ref:t})})});I$.displayName=L$;var z$="MenuRadioItem",B$=_.forwardRef((e,t)=>{const{value:n,...r}=e,i=L9(z$,e.__scopeMenu),l=n===i.value;return v.jsx(q$,{scope:e.__scopeMenu,checked:l,children:v.jsx(Dp,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":DS(l),onSelect:be(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});B$.displayName=z$;var PS="MenuItemIndicator",[q$,I9]=No(PS,{checked:!1}),U$=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,l=I9(PS,n);return v.jsx(mr,{present:r||mh(l.checked)||l.checked===!0,children:v.jsx(Me.span,{...i,ref:t,"data-state":DS(l.checked)})})});U$.displayName=PS;var z9="MenuSeparator",H$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Me.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});H$.displayName=z9;var B9="MenuArrow",F$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Pp(n);return v.jsx(AS,{...i,...r,ref:t})});F$.displayName=B9;var q9="MenuSub",[Fde,G$]=No(q9),Yu="MenuSubTrigger",V$=_.forwardRef((e,t)=>{const n=Ro(Yu,e.__scopeMenu),r=af(Yu,e.__scopeMenu),i=G$(Yu,e.__scopeMenu),l=MS(Yu,e.__scopeMenu),s=_.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=l,d={__scopeMenu:e.__scopeMenu},m=_.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return _.useEffect(()=>m,[m]),_.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),f(null)}},[c,f]),v.jsx(jS,{asChild:!0,...d,children:v.jsx(k$,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":K$(n.open),...e,ref:Zc(t,i.onTriggerChange),onClick:p=>{var y;(y=e.onClick)==null||y.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:be(e.onPointerMove,uc(p=>{l.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(l.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:be(e.onPointerLeave,uc(p=>{var x,O;m();const y=(x=n.content)==null?void 0:x.getBoundingClientRect();if(y){const w=(O=n.content)==null?void 0:O.dataset.side,S=w==="right",E=S?-5:5,T=y[S?"left":"right"],A=y[S?"right":"left"];l.onPointerGraceIntentChange({area:[{x:p.clientX+E,y:p.clientY},{x:T,y:y.top},{x:A,y:y.top},{x:A,y:y.bottom},{x:T,y:y.bottom}],side:w}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(p),p.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:be(e.onKeyDown,p=>{var x;const y=l.searchRef.current!=="";e.disabled||y&&p.key===" "||w9[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});V$.displayName=Yu;var Y$="MenuSubContent",W$=_.forwardRef((e,t)=>{const n=N$(fr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Ro(fr,e.__scopeMenu),s=af(fr,e.__scopeMenu),c=G$(Y$,e.__scopeMenu),f=_.useRef(null),d=Ye(t,f);return v.jsx(sc.Provider,{scope:e.__scopeMenu,children:v.jsx(mr,{present:r||l.open,children:v.jsx(sc.Slot,{scope:e.__scopeMenu,children:v.jsx(NS,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;s.isUsingKeyboardRef.current&&((p=f.current)==null||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:be(e.onFocusOutside,m=>{m.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:be(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:be(e.onKeyDown,m=>{var x;const p=m.currentTarget.contains(m.target),y=S9[s.dir].includes(m.key);p&&y&&(l.onOpenChange(!1),(x=c.trigger)==null||x.focus(),m.preventDefault())})})})})})});W$.displayName=Y$;function K$(e){return e?"open":"closed"}function mh(e){return e==="indeterminate"}function DS(e){return mh(e)?"indeterminate":e?"checked":"unchecked"}function U9(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function H9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function F9(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=H9(e,Math.max(l,0));i.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function G9(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const c=t[l],f=t[s],d=c.x,m=c.y,p=f.x,y=f.y;m>r!=y>r&&n<(p-d)*(r-m)/(y-m)+d&&(i=!i)}return i}function V9(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return G9(n,t)}function uc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Y9=M$,W9=jS,K9=R$,X9=P$,Q9=RS,Z9=D$,J9=Dp,eF=$$,tF=I$,nF=B$,rF=U$,aF=H$,iF=F$,oF=V$,lF=W$,kp="DropdownMenu",[sF]=kr(kp,[j$]),bn=j$(),[uF,X$]=sF(kp),Q$=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=bn(t),d=_.useRef(null),[m,p]=Ai({prop:i,defaultProp:l??!1,onChange:s,caller:kp});return v.jsx(uF,{scope:t,triggerId:cr(),triggerRef:d,contentId:cr(),open:m,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(y=>!y),[p]),modal:c,children:v.jsx(Y9,{...f,open:m,onOpenChange:p,dir:r,modal:c,children:n})})};Q$.displayName=kp;var Z$="DropdownMenuTrigger",J$=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=X$(Z$,n),s=bn(n);return v.jsx(W9,{asChild:!0,...s,children:v.jsx(Me.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:Zc(t,l.triggerRef),onPointerDown:be(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(l.onOpenToggle(),l.open||c.preventDefault())}),onKeyDown:be(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&l.onOpenToggle(),c.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});J$.displayName=Z$;var cF="DropdownMenuPortal",eL=e=>{const{__scopeDropdownMenu:t,...n}=e,r=bn(t);return v.jsx(K9,{...r,...n})};eL.displayName=cF;var tL="DropdownMenuContent",nL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=X$(tL,n),l=bn(n),s=_.useRef(!1);return v.jsx(X9,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...r,ref:t,onCloseAutoFocus:be(e.onCloseAutoFocus,c=>{var f;s.current||(f=i.triggerRef.current)==null||f.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:be(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,m=f.button===2||d;(!i.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nL.displayName=tL;var fF="DropdownMenuGroup",rL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(Q9,{...i,...r,ref:t})});rL.displayName=fF;var dF="DropdownMenuLabel",aL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(Z9,{...i,...r,ref:t})});aL.displayName=dF;var hF="DropdownMenuItem",iL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(J9,{...i,...r,ref:t})});iL.displayName=hF;var pF="DropdownMenuCheckboxItem",mF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(eF,{...i,...r,ref:t})});mF.displayName=pF;var vF="DropdownMenuRadioGroup",gF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(tF,{...i,...r,ref:t})});gF.displayName=vF;var yF="DropdownMenuRadioItem",bF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(nF,{...i,...r,ref:t})});bF.displayName=yF;var xF="DropdownMenuItemIndicator",wF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(rF,{...i,...r,ref:t})});wF.displayName=xF;var SF="DropdownMenuSeparator",oL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(aF,{...i,...r,ref:t})});oL.displayName=SF;var OF="DropdownMenuArrow",_F=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(iF,{...i,...r,ref:t})});_F.displayName=OF;var EF="DropdownMenuSubTrigger",AF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(oF,{...i,...r,ref:t})});AF.displayName=EF;var TF="DropdownMenuSubContent",jF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=bn(n);return v.jsx(lF,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});jF.displayName=TF;var CF=Q$,MF=J$,NF=eL,RF=nL,PF=rL,DF=aL,kF=iL,$F=oL;function LF({...e}){return v.jsx(CF,{"data-slot":"dropdown-menu",...e})}function IF({...e}){return v.jsx(MF,{"data-slot":"dropdown-menu-trigger",...e})}function zF({className:e,sideOffset:t=4,...n}){return v.jsx(NF,{children:v.jsx(RF,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--radix-dropdown-menu-content-available-height] min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dropdown-menu-content",sideOffset:t,...n})})}function Gj({...e}){return v.jsx(PF,{"data-slot":"dropdown-menu-group",...e})}function jl({className:e,inset:t,variant:n="default",...r}){return v.jsx(kF,{className:he("data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-inset":t,"data-slot":"dropdown-menu-item","data-variant":n,...r})}function BF({className:e,inset:t,...n}){return v.jsx(DF,{className:he("px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",e),"data-inset":t,"data-slot":"dropdown-menu-label",...n})}function zd({className:e,...t}){return v.jsx($F,{className:he("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const Vj=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Yj=Ue,$p=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Yj(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,s=Object.keys(i).map(d=>{const m=n==null?void 0:n[d],p=l==null?void 0:l[d];if(m===null)return null;const y=Vj(m)||Vj(p);return i[d][y]}),c=n&&Object.entries(n).reduce((d,m)=>{let[p,y]=m;return y===void 0||(d[p]=y),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:p,className:y,...x}=m;return Object.entries(x).every(O=>{let[w,S]=O;return Array.isArray(S)?S.includes({...l,...c}[w]):{...l,...c}[w]===S})?[...d,p,y]:d},[]);return Yj(e,s,f,n==null?void 0:n.class,n==null?void 0:n.className)},kS=$p("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Dt({className:e,variant:t,size:n,asChild:r=!1,...i}){const l=r?Co:"button";return v.jsx(l,{className:he(kS({variant:t,size:n,className:e})),"data-slot":"button",...i})}const Lp=_.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{className:he("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,type:t,...n}));Lp.displayName="Input";var qF="Separator",Wj="horizontal",UF=["horizontal","vertical"],lL=_.forwardRef((e,t)=>{const{decorative:n,orientation:r=Wj,...i}=e,l=HF(r)?r:Wj,c=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return v.jsx(Mo.div,{"data-orientation":l,...c,...i,ref:t})});lL.displayName=qF;function HF(e){return UF.includes(e)}var FF=lL;function Fl({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return v.jsx(FF,{className:he("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e),"data-slot":"separator",decorative:n,orientation:t,...r})}var Ip="Dialog",[sL,uL]=kr(Ip),[GF,$r]=sL(Ip),cL=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,c=_.useRef(null),f=_.useRef(null),[d,m]=Ai({prop:r,defaultProp:i??!1,onChange:l,caller:Ip});return v.jsx(GF,{scope:t,triggerRef:c,contentRef:f,contentId:cr(),titleId:cr(),descriptionId:cr(),open:d,onOpenChange:m,onOpenToggle:_.useCallback(()=>m(p=>!p),[m]),modal:s,children:n})};cL.displayName=Ip;var fL="DialogTrigger",dL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(fL,n),l=Ye(t,i.triggerRef);return v.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":IS(i.open),...r,ref:l,onClick:be(e.onClick,i.onOpenToggle)})});dL.displayName=fL;var $S="DialogPortal",[VF,hL]=sL($S,{forceMount:void 0}),pL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,l=$r($S,t);return v.jsx(VF,{scope:t,forceMount:n,children:_.Children.map(r,s=>v.jsx(mr,{present:n||l.open,children:v.jsx(tf,{asChild:!0,container:i,children:s})}))})};pL.displayName=$S;var vh="DialogOverlay",mL=_.forwardRef((e,t)=>{const n=hL(vh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=$r(vh,e.__scopeDialog);return l.modal?v.jsx(mr,{present:r||l.open,children:v.jsx(WF,{...i,ref:t})}):null});mL.displayName=vh;var YF=Kl("DialogOverlay.RemoveScroll"),WF=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(vh,n);return v.jsx(Rp,{as:YF,allowPinchZoom:!0,shards:[i.contentRef],children:v.jsx(Me.div,{"data-state":IS(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),wo="DialogContent",vL=_.forwardRef((e,t)=>{const n=hL(wo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=$r(wo,e.__scopeDialog);return v.jsx(mr,{present:r||l.open,children:l.modal?v.jsx(KF,{...i,ref:t}):v.jsx(XF,{...i,ref:t})})});vL.displayName=wo;var KF=_.forwardRef((e,t)=>{const n=$r(wo,e.__scopeDialog),r=_.useRef(null),i=Ye(t,n.contentRef,r);return _.useEffect(()=>{const l=r.current;if(l)return TS(l)},[]),v.jsx(gL,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&l.preventDefault()}),onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault())})}),XF=_.forwardRef((e,t)=>{const n=$r(wo,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return v.jsx(gL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,l),l.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),l.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:l=>{var f,d;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=l.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),gL=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=$r(wo,n),f=_.useRef(null),d=Ye(t,f);return pS(),v.jsxs(v.Fragment,{children:[v.jsx(Ep,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:v.jsx(Jc,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":IS(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(ZF,{titleId:c.titleId}),v.jsx(eG,{contentRef:f,descriptionId:c.descriptionId})]})]})}),LS="DialogTitle",yL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(LS,n);return v.jsx(Me.h2,{id:i.titleId,...r,ref:t})});yL.displayName=LS;var bL="DialogDescription",xL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(bL,n);return v.jsx(Me.p,{id:i.descriptionId,...r,ref:t})});xL.displayName=bL;var wL="DialogClose",SL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(wL,n);return v.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});SL.displayName=wL;function IS(e){return e?"open":"closed"}var OL="DialogTitleWarning",[QF,_L]=TU(OL,{contentName:wo,titleName:LS,docsSlug:"dialog"}),ZF=({titleId:e})=>{const t=_L(OL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
299
-
300
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
301
-
302
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},JF="DialogDescriptionWarning",eG=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_L(JF).contentName}}.`;return _.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},zS=cL,tG=dL,BS=pL,qS=mL,US=vL,HS=yL,FS=xL,zp=SL;function nG({...e}){return v.jsx(zS,{"data-slot":"sheet",...e})}function rG({...e}){return v.jsx(BS,{"data-slot":"sheet-portal",...e})}function aG({className:e,...t}){return v.jsx(qS,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"sheet-overlay",...t})}function iG({className:e,children:t,side:n="right",...r}){return v.jsxs(rG,{children:[v.jsx(aG,{}),v.jsxs(US,{className:he("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),"data-slot":"sheet-content",...r,children:[t,v.jsxs(zp,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(Bl,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function oG({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function lG({className:e,...t}){return v.jsx(HS,{className:he("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function sG({className:e,...t}){return v.jsx(FS,{className:he("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t})}function _t({className:e,...t}){return v.jsx("div",{className:he("animate-pulse rounded-md bg-accent",e),"data-slot":"skeleton",...t})}var EL=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uG="VisuallyHidden",AL=_.forwardRef((e,t)=>v.jsx(Me.span,{...e,ref:t,style:{...EL,...e.style}}));AL.displayName=uG;var cG=AL,[Bp]=kr("Tooltip",[js]),qp=js(),TL="TooltipProvider",fG=700,Sw="tooltip.open",[dG,GS]=Bp(TL),jL=e=>{const{__scopeTooltip:t,delayDuration:n=fG,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,s=_.useRef(!0),c=_.useRef(!1),f=_.useRef(0);return _.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),v.jsx(dG,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(f.current),s.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:_.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:l})};jL.displayName=TL;var cc="Tooltip",[hG,of]=Bp(cc),CL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=e,f=GS(cc,e.__scopeTooltip),d=qp(t),[m,p]=_.useState(null),y=cr(),x=_.useRef(0),O=s??f.disableHoverableContent,w=c??f.delayDuration,S=_.useRef(!1),[E,T]=Ai({prop:r,defaultProp:i??!1,onChange:R=>{R?(f.onOpen(),document.dispatchEvent(new CustomEvent(Sw))):f.onClose(),l==null||l(R)},caller:cc}),A=_.useMemo(()=>E?S.current?"delayed-open":"instant-open":"closed",[E]),M=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,S.current=!1,T(!0)},[T]),j=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,T(!1)},[T]),N=_.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{S.current=!0,T(!0),x.current=0},w)},[w,T]);return _.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),v.jsx(OS,{...d,children:v.jsx(hG,{scope:t,contentId:y,open:E,stateAttribute:A,trigger:m,onTriggerChange:p,onTriggerEnter:_.useCallback(()=>{f.isOpenDelayedRef.current?N():M()},[f.isOpenDelayedRef,N,M]),onTriggerLeave:_.useCallback(()=>{O?j():(window.clearTimeout(x.current),x.current=0)},[j,O]),onOpen:M,onClose:j,disableHoverableContent:O,children:n})})};CL.displayName=cc;var Ow="TooltipTrigger",ML=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=of(Ow,n),l=GS(Ow,n),s=qp(n),c=_.useRef(null),f=Ye(t,c,i.onTriggerChange),d=_.useRef(!1),m=_.useRef(!1),p=_.useCallback(()=>d.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(_S,{asChild:!0,...s,children:v.jsx(Me.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:be(e.onPointerMove,y=>{y.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:be(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:be(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:be(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:be(e.onBlur,i.onClose),onClick:be(e.onClick,i.onClose)})})});ML.displayName=Ow;var VS="TooltipPortal",[pG,mG]=Bp(VS,{forceMount:void 0}),NL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,l=of(VS,t);return v.jsx(pG,{scope:t,forceMount:n,children:v.jsx(mr,{present:n||l.open,children:v.jsx(tf,{asChild:!0,container:i,children:r})})})};NL.displayName=VS;var Ql="TooltipContent",RL=_.forwardRef((e,t)=>{const n=mG(Ql,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,s=of(Ql,e.__scopeTooltip);return v.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?v.jsx(PL,{side:i,...l,ref:t}):v.jsx(vG,{side:i,...l,ref:t})})}),vG=_.forwardRef((e,t)=>{const n=of(Ql,e.__scopeTooltip),r=GS(Ql,e.__scopeTooltip),i=_.useRef(null),l=Ye(t,i),[s,c]=_.useState(null),{trigger:f,onClose:d}=n,m=i.current,{onPointerInTransitChange:p}=r,y=_.useCallback(()=>{c(null),p(!1)},[p]),x=_.useCallback((O,w)=>{const S=O.currentTarget,E={x:O.clientX,y:O.clientY},T=xG(E,S.getBoundingClientRect()),A=wG(E,T),M=SG(w.getBoundingClientRect()),j=_G([...A,...M]);c(j),p(!0)},[p]);return _.useEffect(()=>()=>y(),[y]),_.useEffect(()=>{if(f&&m){const O=S=>x(S,m),w=S=>x(S,f);return f.addEventListener("pointerleave",O),m.addEventListener("pointerleave",w),()=>{f.removeEventListener("pointerleave",O),m.removeEventListener("pointerleave",w)}}},[f,m,x,y]),_.useEffect(()=>{if(s){const O=w=>{const S=w.target,E={x:w.clientX,y:w.clientY},T=(f==null?void 0:f.contains(S))||(m==null?void 0:m.contains(S)),A=!OG(E,s);T?y():A&&(y(),d())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[f,m,s,d,y]),v.jsx(PL,{...e,ref:l})}),[gG,yG]=Bp(cc,{isInside:!1}),bG=Bk("TooltipContent"),PL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,f=of(Ql,n),d=qp(n),{onClose:m}=f;return _.useEffect(()=>(document.addEventListener(Sw,m),()=>document.removeEventListener(Sw,m)),[m]),_.useEffect(()=>{if(f.trigger){const p=y=>{const x=y.target;x!=null&&x.contains(f.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,m]),v.jsx(Jc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:v.jsxs(ES,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(bG,{children:r}),v.jsx(gG,{scope:n,isInside:!0,children:v.jsx(cG,{id:f.contentId,role:"tooltip",children:i||r})})]})})});RL.displayName=Ql;var DL="TooltipArrow",kL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=qp(n);return yG(DL,n).isInside?null:v.jsx(AS,{...i,...r,ref:t})});kL.displayName=DL;function xG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,i,l)){case l:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function wG(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function SG(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function OG(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const c=t[l],f=t[s],d=c.x,m=c.y,p=f.x,y=f.y;m>r!=y>r&&n<(p-d)*(r-m)/(y-m)+d&&(i=!i)}return i}function _G(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),EG(t)}function EG(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const l=t[t.length-1],s=t[t.length-2];if((l.x-s.x)*(i.y-s.y)>=(l.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const l=n[n.length-1],s=n[n.length-2];if((l.x-s.x)*(i.y-s.y)>=(l.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var AG=jL,TG=CL,jG=ML,CG=NL,MG=RL,NG=kL;function $L({delayDuration:e=0,...t}){return v.jsx(AG,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function LL({...e}){return v.jsx($L,{children:v.jsx(TG,{"data-slot":"tooltip",...e})})}function IL({...e}){return v.jsx(jG,{"data-slot":"tooltip-trigger",...e})}function zL({className:e,sideOffset:t=0,children:n,...r}){return v.jsx(CG,{children:v.jsxs(MG,{className:he("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-[--radix-tooltip-content-transform-origin] animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out",e),"data-slot":"tooltip-content",sideOffset:t,...r,children:[n,v.jsx(NG,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const uy=768;function RG(){const[e,t]=_.useState(void 0);return _.useEffect(()=>{const n=window.matchMedia(`(max-width: ${uy-1}px)`),r=()=>{t(window.innerWidth<uy)};return n.addEventListener("change",r),t(window.innerWidth<uy),()=>n.removeEventListener("change",r)},[]),!!e}const PG="sidebar_state",DG=3600*24*7,kG="16rem",$G="18rem",LG="3rem",IG="b",BL=_.createContext(null);function Cs(){const e=_.useContext(BL);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const qL=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...s},c)=>{const f=RG(),[d,m]=_.useState(!1),[p,y]=_.useState(e),x=t??p,O=_.useCallback(T=>{const A=typeof T=="function"?T(x):T;n?n(A):y(A),document.cookie=`${PG}=${A}; path=/; max-age=${DG}`},[n,x]),w=_.useCallback(()=>f?m(T=>!T):O(T=>!T),[f,O]);_.useEffect(()=>{const T=A=>{A.key===IG&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),w())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[w]);const S=x?"expanded":"collapsed",E=_.useMemo(()=>({state:S,open:x,setOpen:O,isMobile:f,openMobile:d,setOpenMobile:m,toggleSidebar:w}),[S,x,O,f,d,w]);return v.jsx(BL.Provider,{value:E,children:v.jsx($L,{delayDuration:0,children:v.jsx("div",{className:he("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,style:{"--sidebar-width":kG,"--sidebar-width-icon":LG,...i},...s,children:l})})})});qL.displayName="SidebarProvider";const oh=_.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...l},s)=>{const{isMobile:c,state:f,openMobile:d,setOpenMobile:m}=Cs();return n==="none"?v.jsx("div",{className:he("flex h-full w-[calc(var(--sidebar-width)-var(--sidebar-width-icon)+1px)]! flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...l,children:i}):c?v.jsx(nG,{onOpenChange:m,open:d,...l,children:v.jsxs(iG,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":$G},children:[v.jsxs(oG,{className:"sr-only",children:[v.jsx(lG,{children:"Sidebar"}),v.jsx(sG,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):v.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":f==="collapsed"?n:"","data-side":e,"data-state":f,"data-variant":t,ref:s,children:[v.jsx("div",{className:he("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:he("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...l,children:v.jsx("div",{className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow","data-sidebar":"sidebar",children:i})})]})});oh.displayName="Sidebar";const UL=_.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Cs();return v.jsxs(Dt,{className:he("h-7 w-7",e),"data-sidebar":"trigger",onClick:l=>{t==null||t(l),i()},ref:r,size:"icon",variant:"ghost",...n,children:[v.jsx(w6,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});UL.displayName="SidebarTrigger";const zG=_.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Cs();return v.jsx("button",{"aria-label":"Toggle Sidebar",className:he("-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),"data-sidebar":"rail",onClick:r,ref:n,tabIndex:-1,title:"Toggle Sidebar",...t})});zG.displayName="SidebarRail";const HL=_.forwardRef(({className:e,...t},n)=>v.jsx("main",{className:he("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),ref:n,...t}));HL.displayName="SidebarInset";const FL=_.forwardRef(({className:e,...t},n)=>v.jsx(Lp,{className:he("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),"data-sidebar":"input",ref:n,...t}));FL.displayName="SidebarInput";const _w=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));_w.displayName="SidebarHeader";const GL=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));GL.displayName="SidebarFooter";const BG=_.forwardRef(({className:e,...t},n)=>v.jsx(Fl,{className:he("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));BG.displayName="SidebarSeparator";const Ew=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),"data-sidebar":"content",ref:n,...t}));Ew.displayName="SidebarContent";const Aw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",ref:n,...t}));Aw.displayName="SidebarGroup";const qG=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?Co:"div";return v.jsx(i,{className:he("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),"data-sidebar":"group-label",ref:r,...n})});qG.displayName="SidebarGroupLabel";const UG=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?Co:"button";return v.jsx(i,{className:he("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"group-action",ref:r,...n})});UG.displayName="SidebarGroupAction";const Tw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));Tw.displayName="SidebarGroupContent";const gh=_.forwardRef(({className:e,...t},n)=>v.jsx("ul",{className:he("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",ref:n,...t}));gh.displayName="SidebarMenu";const yh=_.forwardRef(({className:e,...t},n)=>v.jsx("li",{className:he("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));yh.displayName="SidebarMenuItem";const HG=$p("peer/menu-button group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"group-data-[collapsible=icon]:!p-0 h-12 text-sm"}},defaultVariants:{variant:"default",size:"default"}}),bh=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:l,...s},c)=>{const f=e?Co:"button",{isMobile:d,state:m}=Cs(),p=v.jsx(f,{className:he(HG({variant:n,size:r}),l),"data-active":t,"data-sidebar":"menu-button","data-size":r,ref:c,...s});return i?(typeof i=="string"&&(i={children:i}),v.jsxs(LL,{children:[v.jsx(IL,{asChild:!0,children:p}),v.jsx(zL,{align:"center",hidden:m!=="collapsed"||d,side:"right",...i})]})):p});bh.displayName="SidebarMenuButton";const FG=_.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const l=t?Co:"button";return v.jsx(l,{className:he("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),"data-sidebar":"menu-action",ref:i,...r})});FG.displayName="SidebarMenuAction";const GG=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:he("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-badge",ref:n,...t}));GG.displayName="SidebarMenuBadge";const VG=_.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{className:he("flex h-8 items-center gap-2 rounded-md px-2",e),"data-sidebar":"menu-skeleton",ref:r,...n,children:[t&&v.jsx(_t,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(_t,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});VG.displayName="SidebarMenuSkeleton";const YG=_.forwardRef(({className:e,...t},n)=>v.jsx("ul",{className:he("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-sub",ref:n,...t}));YG.displayName="SidebarMenuSub";const WG=_.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));WG.displayName="SidebarMenuSubItem";const KG=_.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},l)=>{const s=e?Co:"a";return v.jsx(s,{className:he("-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),"data-active":n,"data-sidebar":"menu-sub-button","data-size":t,ref:l,...i})});KG.displayName="SidebarMenuSubButton";const XG={theme:"system",setTheme:()=>null},VL=_.createContext(XG),YL=()=>{const e=_.useContext(VL);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function QG({user:e}){const{isMobile:t}=Cs(),{theme:n,setTheme:r}=YL(),[i,l]=_.useState(null),[s,c]=_.useState(0);_.useEffect(()=>{(async()=>{try{const y=sessionStorage.getItem("wraps-auth-token");if(!y){console.log("No auth token found yet, will retry..."),s<5&&setTimeout(()=>{c(O=>O+1)},200);return}console.log("Fetching user info from /api/user");const x=await fetch(`/api/user?token=${y}`);if(console.log("User API response status:",x.status),x.ok){const O=await x.json();console.log("User info received:",O),l(O)}else{const O=await x.text();console.error("Failed to fetch user info:",x.status,O)}}catch(y){console.error("Error fetching user info:",y)}})().catch(y=>{console.error("Failed to fetch user info:",y)})},[s]);const f=()=>{window.confirm("Are you sure you want to close the console?")&&window.close()},d=(i==null?void 0:i.accountAlias)||(i==null?void 0:i.accountId)||"Loading...",m=(i==null?void 0:i.region)||"...";return v.jsx(gh,{children:v.jsx(yh,{children:v.jsxs(LF,{children:[v.jsx(IF,{asChild:!0,children:v.jsxs(bh,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0",size:"lg",children:[v.jsxs(yj,{className:"h-8 w-8 rounded-lg",children:[v.jsx(bj,{alt:d,src:e.avatar}),v.jsx(xj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-medium",children:d}),v.jsx("span",{className:"truncate text-xs",children:m})]}),v.jsx(c6,{className:"ml-auto size-4"})]})}),v.jsxs(zF,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[v.jsx(BF,{className:"p-0 font-normal",children:v.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[v.jsxs(yj,{className:"h-8 w-8 rounded-lg",children:[v.jsx(bj,{alt:d,src:e.avatar}),v.jsx(xj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-medium",children:d}),v.jsx("span",{className:"truncate text-xs",children:m}),(i==null?void 0:i.accountId)&&i.accountId!==i.accountAlias&&v.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:i.accountId})]})]})}),v.jsx(zd,{}),v.jsx(Gj,{children:v.jsxs(jl,{onClick:()=>window.open("https://wraps.dev/pricing","_blank"),children:[v.jsx(_6,{}),"Upgrade Plan"]})}),v.jsx(zd,{}),v.jsxs(Gj,{children:[v.jsxs(jl,{onClick:()=>window.open("https://wraps.dev/account","_blank"),children:[v.jsx(l6,{}),"Account"]}),v.jsxs(jl,{onClick:()=>window.open("https://wraps.dev/billing","_blank"),children:[v.jsx(p6,{}),"Billing"]}),v.jsxs(jl,{onClick:()=>window.open("https://wraps.dev/changelog","_blank"),children:[v.jsx(s6,{}),"Product Updates"]})]}),v.jsx(zd,{}),v.jsxs(jl,{onClick:()=>r(n==="dark"?"light":"dark"),children:[n==="dark"?v.jsx(E6,{}):v.jsx(b6,{}),n==="dark"?"Light Mode":"Dark Mode"]}),v.jsx(zd,{}),v.jsxs(jl,{onClick:f,children:[v.jsx(Bl,{}),"Close Console"]})]})]})})})}const Cl={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:cS,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:zl,isActive:!1,subItems:[{title:"Emails",icon:zl,url:"/email"},{title:"Metrics",icon:u6,url:"/email/metrics"},{title:"Settings",icon:O6,url:"/email/settings"}]}]};function ZG({...e}){const t=ra(),n=Wc(),{setOpen:r,state:i}=Cs(),{theme:l}=YL(),s=_.useCallback(()=>t.pathname==="/"?Cl.navMain[0]:t.pathname.startsWith("/email")?Cl.navMain[1]:Cl.navMain[0],[t.pathname]),[c,f]=_.useState(s());return _.useEffect(()=>{f(s())},[s]),v.jsxs(oh,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[v.jsxs(oh,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[v.jsx(_w,{children:v.jsx(gh,{children:v.jsx(yh,{children:v.jsx(bh,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{f(Cl.navMain[0]),r(!1)},size:"lg",children:v.jsxs(sh,{to:"/",children:[v.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg",children:v.jsx("img",{alt:"Wraps",className:"size-8 object-contain",src:l==="dark"?"/wraps-dark.png":"/wraps-light.png"})}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-semibold",children:"Wraps"}),v.jsx("span",{className:"truncate text-xs",children:"Console"})]})]})})})})}),v.jsx(Ew,{children:v.jsx(Aw,{children:v.jsx(Tw,{className:"px-1.5 md:px-0",children:v.jsx(gh,{children:Cl.navMain.filter(d=>!d.isDashboard).map(d=>v.jsx(yh,{children:v.jsxs(bh,{className:"px-2.5 md:px-2",isActive:(c==null?void 0:c.title)===d.title,onClick:()=>{f(d),r(!0),d.subItems&&d.subItems.length>0&&n(d.subItems[0].url)},tooltip:{children:d.title,hidden:!1},children:[v.jsx(d.icon,{}),v.jsx("span",{children:d.title})]})},d.title))})})})}),v.jsx(GL,{children:v.jsx(QG,{user:Cl.user})})]}),i==="expanded"&&v.jsx(oh,{className:"hidden flex-1 md:flex",collapsible:"none",children:c&&!c.isDashboard&&c.subItems?v.jsxs(v.Fragment,{children:[v.jsxs(_w,{className:"gap-3.5 border-b p-4",children:[v.jsx("div",{className:"flex w-full items-center justify-between",children:v.jsxs("div",{className:"flex items-center gap-2 font-medium text-base text-foreground",children:[v.jsx(c.icon,{className:"size-4"}),c.title]})}),v.jsx(FL,{placeholder:"Search..."})]}),v.jsx(Ew,{children:v.jsx(Aw,{className:"px-0",children:v.jsx(Tw,{children:c.subItems.map(d=>{const m=t.pathname===d.url||d.url==="/email"&&t.pathname.startsWith("/email/")&&t.pathname!=="/email/metrics"&&t.pathname!=="/email/settings";return v.jsxs(sh,{className:`flex items-center gap-3 border-b p-4 text-sm leading-tight transition-colors last:border-b-0 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground ${m?"bg-sidebar-accent font-semibold text-sidebar-accent-foreground":""}`,to:d.url,children:[v.jsx(d.icon,{className:"size-4 shrink-0"}),v.jsx("span",{className:"font-medium",children:d.title})]},d.title)})})})})]}):v.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center",children:v.jsxs("div",{className:"text-muted-foreground",children:[v.jsx(cS,{className:"mx-auto mb-4 size-12 opacity-50"}),v.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const JG=$p("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function dn({className:e,variant:t,asChild:n=!1,...r}){const i=n?Co:"span";return v.jsx(i,{className:he(JG({variant:t}),e),"data-slot":"badge",...r})}function kt({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),"data-slot":"card",...t})}function $t({className:e,...t}){return v.jsx("div",{className:he("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),"data-slot":"card-header",...t})}function an({className:e,...t}){return v.jsx("div",{className:he("font-semibold leading-none",e),"data-slot":"card-title",...t})}function mn({className:e,...t}){return v.jsx("div",{className:he("text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function Ut({className:e,...t}){return v.jsx("div",{className:he("px-6",e),"data-slot":"card-content",...t})}const eV=$p("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[1rem_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function lo({className:e,variant:t,...n}){return v.jsx("div",{className:he(eV({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function tV({className:e,...t}){return v.jsx("div",{className:he("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),"data-slot":"alert-title",...t})}function so({className:e,...t}){return v.jsx("div",{className:he("col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",e),"data-slot":"alert-description",...t})}var Up="Tabs",[nV]=kr(Up,[Mp]),WL=Mp(),[rV,YS]=nV(Up),KL=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:s="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=_p(c),[p,y]=Ai({prop:r,onChange:i,defaultProp:l??"",caller:Up});return v.jsx(rV,{scope:n,baseId:cr(),value:p,onValueChange:y,orientation:s,dir:m,activationMode:f,children:v.jsx(Me.div,{dir:m,"data-orientation":s,...d,ref:t})})});KL.displayName=Up;var XL="TabsList",QL=_.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,l=YS(XL,n),s=WL(n);return v.jsx(g$,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:r,children:v.jsx(Me.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});QL.displayName=XL;var ZL="TabsTrigger",JL=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,s=YS(ZL,n),c=WL(n),f=nI(s.baseId,r),d=rI(s.baseId,r),m=r===s.value;return v.jsx(y$,{asChild:!0,...c,focusable:!i,active:m,children:v.jsx(Me.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...l,ref:t,onMouseDown:be(e.onMouseDown,p=>{!i&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:be(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:be(e.onFocus,()=>{const p=s.activationMode!=="manual";!m&&!i&&p&&s.onValueChange(r)})})})});JL.displayName=ZL;var eI="TabsContent",tI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:l,...s}=e,c=YS(eI,n),f=nI(c.baseId,r),d=rI(c.baseId,r),m=r===c.value,p=_.useRef(m);return _.useEffect(()=>{const y=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(y)},[]),v.jsx(mr,{present:i||m,children:({present:y})=>v.jsx(Me.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!y,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:y&&l})})});tI.displayName=eI;function nI(e,t){return`${e}-trigger-${t}`}function rI(e,t){return`${e}-content-${t}`}var aV=KL,iV=QL,oV=JL,lV=tI;function aI({className:e,...t}){return v.jsx(aV,{className:he("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function iI({className:e,...t}){return v.jsx(iV,{className:he("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",e),"data-slot":"tabs-list",...t})}function Zu({className:e,...t}){return v.jsx(oV,{className:he("inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...t})}function Ju({className:e,...t}){return v.jsx(lV,{className:he("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}function sV({messageId:e,archivingEnabled:t}){const[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);return _.useEffect(()=>{async function f(){if(!t){l(!1);return}try{l(!0),c(null);const d=sessionStorage.getItem("wraps-auth-token");if(!d)throw new Error("Authentication token not found");const m=encodeURIComponent(e),p=await fetch(`/api/emails/${m}/archive?token=${d}`);if(!p.ok){if(p.status===404){r(null),l(!1);return}throw new Error(`Failed to fetch archived email: ${p.statusText}`)}const y=await p.json();r({...y,timestamp:new Date(y.timestamp)})}catch(d){const m=d instanceof Error?d.message:"Unknown error";c(m),console.error("Error fetching archived email:",d)}finally{l(!1)}}f()},[e,t]),t?i?v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Archive"}),v.jsx(mn,{children:"Loading archived email content..."})]}),v.jsx(Ut,{className:"space-y-4",children:v.jsx(_t,{className:"h-[400px] w-full"})})]}):s?v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Archive"}),v.jsx(mn,{children:"Failed to load archived email"})]}),v.jsx(Ut,{children:v.jsx(lo,{variant:"destructive",children:v.jsx(so,{children:s})})})]}):n?v.jsxs(kt,{children:[v.jsx($t,{children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx(an,{children:"Email Archive"}),v.jsx(mn,{children:"Full email content stored in AWS SES Mail Manager"})]}),n.attachments.length>0&&v.jsxs(dn,{variant:"secondary",children:[n.attachments.length," attachment",n.attachments.length>1?"s":""]})]})}),v.jsxs(Ut,{children:[v.jsxs(aI,{className:"w-full",defaultValue:"rendered",children:[v.jsxs(iI,{className:"grid w-full grid-cols-3",children:[v.jsxs(Zu,{className:"gap-2",value:"rendered",children:[v.jsx(v6,{className:"h-4 w-4"}),"Rendered Email"]}),v.jsxs(Zu,{className:"gap-2",value:"text",children:[v.jsx(m6,{className:"h-4 w-4"}),"Plain Text"]}),v.jsxs(Zu,{className:"gap-2",value:"html",children:[v.jsx(d6,{className:"h-4 w-4"}),"HTML Source"]})]}),v.jsxs(Ju,{className:"space-y-4",value:"rendered",children:[n.html?v.jsx("div",{className:"rounded-md border",children:v.jsx("iframe",{className:"h-[600px] w-full rounded-md",sandbox:"allow-same-origin",srcDoc:n.html,title:"Email preview"})}):v.jsx(lo,{children:v.jsx(so,{children:"No HTML content available for this email. View the plain text tab instead."})}),n.attachments.length>0&&v.jsxs("div",{className:"space-y-2",children:[v.jsx("div",{className:"font-medium text-sm",children:"Attachments"}),v.jsx("div",{className:"space-y-2",children:n.attachments.map((f,d)=>v.jsx("div",{className:"flex items-center justify-between rounded-md border p-3",children:v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"font-mono text-sm",children:f.filename||`Attachment ${d+1}`}),v.jsxs("div",{className:"text-muted-foreground text-xs",children:[f.contentType," •"," ",(f.size/1024).toFixed(2)," KB"]})]})},f.filename||`attachment-${d}`))})]})]}),v.jsx(Ju,{className:"space-y-4",value:"text",children:n.text?v.jsx("div",{className:"rounded-md border bg-muted p-4",children:v.jsx("pre",{className:"whitespace-pre-wrap font-mono text-sm",children:n.text})}):v.jsx(lo,{children:v.jsx(so,{children:"No plain text content available for this email."})})}),v.jsx(Ju,{className:"space-y-4",value:"html",children:n.html?v.jsx("div",{className:"rounded-md border bg-muted p-4",children:v.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap font-mono text-xs",children:n.html})}):v.jsx(lo,{children:v.jsx(so,{children:"No HTML content available for this email."})})})]}),n.metadata&&v.jsxs("div",{className:"mt-6 space-y-3 rounded-md border p-4",children:[v.jsx("div",{className:"font-medium text-sm",children:"SMTP Metadata"}),v.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[n.metadata.senderIp&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender IP"}),v.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderIp})]}),n.metadata.tlsProtocol&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-xs",children:"TLS Protocol"}),v.jsx("div",{className:"font-mono text-sm",children:n.metadata.tlsProtocol})]}),n.metadata.senderHostname&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender Hostname"}),v.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderHostname})]})]})]})]})]}):v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Archive"}),v.jsx(mn,{children:"Email content not available"})]}),v.jsx(Ut,{children:v.jsx(lo,{children:v.jsx(so,{children:"This email was not archived. It may have been sent before email archiving was enabled for this deployment."})})})]}):v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Archive"}),v.jsx(mn,{children:"Enable email archiving to view full email content"})]}),v.jsx(Ut,{children:v.jsx(lo,{children:v.jsxs(so,{children:["Email archiving is not enabled for this deployment. Run"," ",v.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs",children:"wraps upgrade"})," ","to enable archiving and view full email content with HTML rendering."]})})})]})}const uV={sent:zl,delivered:wk,bounced:Bl,complained:Bl,opened:zl,clicked:zl,failed:Bl},cV={sent:"text-blue-500",delivered:"text-green-500",bounced:"text-red-500",complained:"text-red-500",opened:"text-purple-500",clicked:"text-indigo-500",failed:"text-red-500"},fV={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function dV(){const{id:e}=u8(),t=Wc(),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null),[f,d]=_.useState(!1);_.useEffect(()=>{async function y(){var x,O,w;try{l(!0),c(null);const S=sessionStorage.getItem("wraps-auth-token");if(!S)throw new Error("Authentication token not found");try{const j=await fetch(`/api/settings/deployment?token=${S}`);if(j.ok){const N=await j.json();d(N.archivingEnabled??!1)}}catch(j){console.warn("Failed to fetch deployment config:",j)}const E=encodeURIComponent(e||"");console.log("Fetching email with ID:",e),console.log("Encoded ID:",E),console.log("Full URL:",`/api/emails/${E}?token=${S.substring(0,8)}...`);const T=await fetch(`/api/emails/${E}?token=${S}`);if(!T.ok){let j="Failed to fetch email details";try{j=(await T.json()).error||j}catch{j=`${T.status}: ${T.statusText}`}throw new Error(j)}const A=T.headers.get("content-type");if(!(A!=null&&A.includes("application/json"))){const j=await T.text();throw console.error("Non-JSON response:",j),new Error("Server returned non-JSON response")}const M=await T.json();console.log("Email data received:",{id:M.id,hasHtmlBody:!!M.htmlBody,hasTextBody:!!M.textBody,htmlBodyLength:((x=M.htmlBody)==null?void 0:x.length)||0,textBodyLength:((O=M.textBody)==null?void 0:O.length)||0,events:((w=M.events)==null?void 0:w.length)||0}),r(M)}catch(S){const E=S instanceof Error?S.message:"Unknown error";c(E),console.error("Error fetching email details:",S)}finally{l(!1)}}e&&y()},[e]);const m=y=>new Date(y).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),p=y=>new Date(y).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});return i?v.jsx("div",{className:"flex h-[600px] items-center justify-center",children:v.jsx("div",{className:"text-muted-foreground",children:"Loading email details..."})}):s?v.jsxs("div",{className:"space-y-4",children:[v.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Kg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]}):n?v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Kg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx(dn,{variant:fV[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1)})]}),v.jsxs(kt,{children:[v.jsx($t,{children:v.jsx("div",{className:"flex items-start justify-between",children:v.jsxs("div",{className:"space-y-1.5",children:[v.jsx(an,{className:"text-2xl",children:n.subject}),v.jsx(mn,{className:"font-mono text-xs",children:n.messageId})]})})}),v.jsx(Ut,{className:"space-y-4",children:v.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),v.jsx("div",{className:"font-mono text-sm",children:n.from})]}),v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),v.jsx("div",{className:"font-mono text-sm",children:n.to.length>0?n.to.join(", "):"(no recipients)"})]}),n.replyTo&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"REPLY-TO"}),v.jsx("div",{className:"font-mono text-sm",children:n.replyTo})]}),v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),v.jsxs(Dt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:[v.jsx("span",{className:"sr-only",children:"Copy ID"}),"📋"]})]})]})]})})]}),v.jsx(sV,{archivingEnabled:f,messageId:n.messageId}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Events"}),v.jsx(mn,{children:"Lifecycle of this email from send to delivery"})]}),v.jsx(Ut,{children:v.jsx("div",{className:"space-y-4",children:n.events.length===0?v.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((y,x)=>{const O=uV[y.type]||hw,w=x===n.events.length-1;return v.jsx("div",{children:v.jsxs("div",{className:"flex gap-4",children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${cV[y.type]}`,children:v.jsx(O,{className:"h-4 w-4"})}),!w&&v.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),v.jsxs("div",{className:"flex-1 pb-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("div",{className:"font-medium capitalize",children:y.type}),v.jsx("div",{className:"text-muted-foreground text-sm",children:m(y.timestamp)})]}),v.jsx("div",{className:"text-muted-foreground text-sm",children:p(y.timestamp)}),y.metadata&&Object.keys(y.metadata).length>0&&v.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:v.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(y.metadata,null,2)})})]})]})},`${y.type}-${y.timestamp}`)})})})]})]}):v.jsxs("div",{className:"space-y-4",children:[v.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Kg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"Email not found"})]})}function Kj(e,[t,n]){return Math.min(n,Math.max(t,e))}function hV(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var pV=[" ","Enter","ArrowUp","ArrowDown"],mV=[" ","Enter"],So="Select",[Hp,Fp,vV]=hS(So),[Ms]=kr(So,[vV,js]),Gp=js(),[gV,Mi]=Ms(So),[yV,bV]=Ms(So),oI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:s,defaultValue:c,onValueChange:f,dir:d,name:m,autoComplete:p,disabled:y,required:x,form:O}=e,w=Gp(t),[S,E]=_.useState(null),[T,A]=_.useState(null),[M,j]=_.useState(!1),N=_p(d),[R,k]=Ai({prop:r,defaultProp:i??!1,onChange:l,caller:So}),[I,V]=Ai({prop:s,defaultProp:c,onChange:f,caller:So}),z=_.useRef(null),B=S?O||!!S.closest("form"):!0,[G,K]=_.useState(new Set),X=Array.from(G).map(D=>D.props.value).join(";");return v.jsx(OS,{...w,children:v.jsxs(gV,{required:x,scope:t,trigger:S,onTriggerChange:E,valueNode:T,onValueNodeChange:A,valueNodeHasChildren:M,onValueNodeHasChildrenChange:j,contentId:cr(),value:I,onValueChange:V,open:R,onOpenChange:k,dir:N,triggerPointerDownPosRef:z,disabled:y,children:[v.jsx(Hp.Provider,{scope:t,children:v.jsx(yV,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(D=>{K(U=>new Set(U).add(D))},[]),onNativeOptionRemove:_.useCallback(D=>{K(U=>{const Y=new Set(U);return Y.delete(D),Y})},[]),children:n})}),B?v.jsxs(jI,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:p,value:I,onChange:D=>V(D.target.value),disabled:y,form:O,children:[I===void 0?v.jsx("option",{value:""}):null,Array.from(G)]},X):null]})})};oI.displayName=So;var lI="SelectTrigger",sI=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=Gp(n),s=Mi(lI,n),c=s.disabled||r,f=Ye(t,s.onTriggerChange),d=Fp(n),m=_.useRef("touch"),[p,y,x]=MI(w=>{const S=d().filter(A=>!A.disabled),E=S.find(A=>A.value===s.value),T=NI(S,w,E);T!==void 0&&s.onValueChange(T.value)}),O=w=>{c||(s.onOpenChange(!0),x()),w&&(s.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return v.jsx(_S,{asChild:!0,...l,children:v.jsx(Me.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":CI(s.value)?"":void 0,...i,ref:f,onClick:be(i.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&O(w)}),onPointerDown:be(i.onPointerDown,w=>{m.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(O(w),w.preventDefault())}),onKeyDown:be(i.onKeyDown,w=>{const S=p.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&y(w.key),!(S&&w.key===" ")&&pV.includes(w.key)&&(O(),w.preventDefault())})})})});sI.displayName=lI;var uI="SelectValue",cI=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:s="",...c}=e,f=Mi(uI,n),{onValueNodeHasChildrenChange:d}=f,m=l!==void 0,p=Ye(t,f.onValueNodeChange);return It(()=>{d(m)},[d,m]),v.jsx(Me.span,{...c,ref:p,style:{pointerEvents:"none"},children:CI(f.value)?v.jsx(v.Fragment,{children:s}):l})});cI.displayName=uI;var xV="SelectIcon",fI=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.jsx(Me.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});fI.displayName=xV;var wV="SelectPortal",dI=e=>v.jsx(tf,{asChild:!0,...e});dI.displayName=wV;var Oo="SelectContent",hI=_.forwardRef((e,t)=>{const n=Mi(Oo,e.__scopeSelect),[r,i]=_.useState();if(It(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?Xc.createPortal(v.jsx(pI,{scope:e.__scopeSelect,children:v.jsx(Hp.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),l):null}return v.jsx(mI,{...e,ref:t})});hI.displayName=Oo;var Or=10,[pI,Ni]=Ms(Oo),SV="SelectContentImpl",OV=Kl("SelectContent.RemoveScroll"),mI=_.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:s,side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S,...E}=e,T=Mi(Oo,n),[A,M]=_.useState(null),[j,N]=_.useState(null),R=Ye(t,fe=>M(fe)),[k,I]=_.useState(null),[V,z]=_.useState(null),B=Fp(n),[G,K]=_.useState(!1),X=_.useRef(!1);_.useEffect(()=>{if(A)return TS(A)},[A]),pS();const D=_.useCallback(fe=>{const[pe,...ae]=B().map(re=>re.ref.current),[me]=ae.slice(-1),ye=document.activeElement;for(const re of fe)if(re===ye||(re==null||re.scrollIntoView({block:"nearest"}),re===pe&&j&&(j.scrollTop=0),re===me&&j&&(j.scrollTop=j.scrollHeight),re==null||re.focus(),document.activeElement!==ye))return},[B,j]),U=_.useCallback(()=>D([k,A]),[D,k,A]);_.useEffect(()=>{G&&U()},[G,U]);const{onOpenChange:Y,triggerPointerDownPosRef:W}=T;_.useEffect(()=>{if(A){let fe={x:0,y:0};const pe=me=>{var ye,re;fe={x:Math.abs(Math.round(me.pageX)-(((ye=W.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(me.pageY)-(((re=W.current)==null?void 0:re.y)??0))}},ae=me=>{fe.x<=10&&fe.y<=10?me.preventDefault():A.contains(me.target)||Y(!1),document.removeEventListener("pointermove",pe),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",pe),document.addEventListener("pointerup",ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",pe),document.removeEventListener("pointerup",ae,{capture:!0})}}},[A,Y,W]),_.useEffect(()=>{const fe=()=>Y(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[Y]);const[oe,$]=MI(fe=>{const pe=B().filter(ye=>!ye.disabled),ae=pe.find(ye=>ye.ref.current===document.activeElement),me=NI(pe,fe,ae);me&&setTimeout(()=>me.ref.current.focus())}),F=_.useCallback((fe,pe,ae)=>{const me=!X.current&&!ae;(T.value!==void 0&&T.value===pe||me)&&(I(fe),me&&(X.current=!0))},[T.value]),Z=_.useCallback(()=>A==null?void 0:A.focus(),[A]),se=_.useCallback((fe,pe,ae)=>{const me=!X.current&&!ae;(T.value!==void 0&&T.value===pe||me)&&z(fe)},[T.value]),de=r==="popper"?jw:vI,ge=de===jw?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S}:{};return v.jsx(pI,{scope:n,content:A,viewport:j,onViewportChange:N,itemRefCallback:F,selectedItem:k,onItemLeave:Z,itemTextRefCallback:se,focusSelectedItem:U,selectedItemText:V,position:r,isPositioned:G,searchRef:oe,children:v.jsx(Rp,{as:OV,allowPinchZoom:!0,children:v.jsx(Ep,{asChild:!0,trapped:T.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:be(i,fe=>{var pe;(pe=T.trigger)==null||pe.focus({preventScroll:!0}),fe.preventDefault()}),children:v.jsx(Jc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:v.jsx(de,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:fe=>fe.preventDefault(),...E,...ge,onPlaced:()=>K(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:be(E.onKeyDown,fe=>{const pe=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!pe&&fe.key.length===1&&$(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let me=B().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(fe.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const ye=fe.target,re=me.indexOf(ye);me=me.slice(re+1)}setTimeout(()=>D(me)),fe.preventDefault()}})})})})})})});mI.displayName=SV;var _V="SelectItemAlignedPosition",vI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Mi(Oo,n),s=Ni(Oo,n),[c,f]=_.useState(null),[d,m]=_.useState(null),p=Ye(t,R=>m(R)),y=Fp(n),x=_.useRef(!1),O=_.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:E,focusSelectedItem:T}=s,A=_.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&d&&w&&S&&E){const R=l.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),I=l.valueNode.getBoundingClientRect(),V=E.getBoundingClientRect();if(l.dir!=="rtl"){const ye=V.left-k.left,re=I.left-ye,Ne=R.left-re,Oe=R.width+Ne,Ke=Math.max(Oe,k.width),Fe=window.innerWidth-Or,nt=Kj(re,[Or,Math.max(Or,Fe-Ke)]);c.style.minWidth=Oe+"px",c.style.left=nt+"px"}else{const ye=k.right-V.right,re=window.innerWidth-I.right-ye,Ne=window.innerWidth-R.right-re,Oe=R.width+Ne,Ke=Math.max(Oe,k.width),Fe=window.innerWidth-Or,nt=Kj(re,[Or,Math.max(Or,Fe-Ke)]);c.style.minWidth=Oe+"px",c.style.right=nt+"px"}const z=y(),B=window.innerHeight-Or*2,G=w.scrollHeight,K=window.getComputedStyle(d),X=parseInt(K.borderTopWidth,10),D=parseInt(K.paddingTop,10),U=parseInt(K.borderBottomWidth,10),Y=parseInt(K.paddingBottom,10),W=X+D+G+Y+U,oe=Math.min(S.offsetHeight*5,W),$=window.getComputedStyle(w),F=parseInt($.paddingTop,10),Z=parseInt($.paddingBottom,10),se=R.top+R.height/2-Or,de=B-se,ge=S.offsetHeight/2,fe=S.offsetTop+ge,pe=X+D+fe,ae=W-pe;if(pe<=se){const ye=z.length>0&&S===z[z.length-1].ref.current;c.style.bottom="0px";const re=d.clientHeight-w.offsetTop-w.offsetHeight,Ne=Math.max(de,ge+(ye?Z:0)+re+U),Oe=pe+Ne;c.style.height=Oe+"px"}else{const ye=z.length>0&&S===z[0].ref.current;c.style.top="0px";const Ne=Math.max(se,X+w.offsetTop+(ye?F:0)+ge)+ae;c.style.height=Ne+"px",w.scrollTop=pe-se+w.offsetTop}c.style.margin=`${Or}px 0`,c.style.minHeight=oe+"px",c.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[y,l.trigger,l.valueNode,c,d,w,S,E,l.dir,r]);It(()=>A(),[A]);const[M,j]=_.useState();It(()=>{d&&j(window.getComputedStyle(d).zIndex)},[d]);const N=_.useCallback(R=>{R&&O.current===!0&&(A(),T==null||T(),O.current=!1)},[A,T]);return v.jsx(AV,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:v.jsx(Me.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});vI.displayName=_V;var EV="SelectPopperPosition",jw=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Or,...l}=e,s=Gp(n);return v.jsx(ES,{...s,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});jw.displayName=EV;var[AV,WS]=Ms(Oo,{}),Cw="SelectViewport",gI=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Ni(Cw,n),s=WS(Cw,n),c=Ye(t,l.onViewportChange),f=_.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(Hp.Slot,{scope:n,children:v.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:be(i.onScroll,d=>{const m=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=s;if(y!=null&&y.current&&p){const x=Math.abs(f.current-m.scrollTop);if(x>0){const O=window.innerHeight-Or*2,w=parseFloat(p.style.minHeight),S=parseFloat(p.style.height),E=Math.max(w,S);if(E<O){const T=E+x,A=Math.min(O,T),M=T-A;p.style.height=A+"px",p.style.bottom==="0px"&&(m.scrollTop=M>0?M:0,p.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});gI.displayName=Cw;var yI="SelectGroup",[TV,jV]=Ms(yI),CV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=cr();return v.jsx(TV,{scope:n,id:i,children:v.jsx(Me.div,{role:"group","aria-labelledby":i,...r,ref:t})})});CV.displayName=yI;var bI="SelectLabel",MV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=jV(bI,n);return v.jsx(Me.div,{id:i.id,...r,ref:t})});MV.displayName=bI;var xh="SelectItem",[NV,xI]=Ms(xh),wI=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...s}=e,c=Mi(xh,n),f=Ni(xh,n),d=c.value===r,[m,p]=_.useState(l??""),[y,x]=_.useState(!1),O=Ye(t,T=>{var A;return(A=f.itemRefCallback)==null?void 0:A.call(f,T,r,i)}),w=cr(),S=_.useRef("touch"),E=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(NV,{scope:n,value:r,disabled:i,textId:w,isSelected:d,onItemTextChange:_.useCallback(T=>{p(A=>A||((T==null?void 0:T.textContent)??"").trim())},[]),children:v.jsx(Hp.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:v.jsx(Me.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":d&&y,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:O,onFocus:be(s.onFocus,()=>x(!0)),onBlur:be(s.onBlur,()=>x(!1)),onClick:be(s.onClick,()=>{S.current!=="mouse"&&E()}),onPointerUp:be(s.onPointerUp,()=>{S.current==="mouse"&&E()}),onPointerDown:be(s.onPointerDown,T=>{S.current=T.pointerType}),onPointerMove:be(s.onPointerMove,T=>{var A;S.current=T.pointerType,i?(A=f.onItemLeave)==null||A.call(f):S.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(s.onPointerLeave,T=>{var A;T.currentTarget===document.activeElement&&((A=f.onItemLeave)==null||A.call(f))}),onKeyDown:be(s.onKeyDown,T=>{var M;((M=f.searchRef)==null?void 0:M.current)!==""&&T.key===" "||(mV.includes(T.key)&&E(),T.key===" "&&T.preventDefault())})})})})});wI.displayName=xh;var Wu="SelectItemText",SI=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,s=Mi(Wu,n),c=Ni(Wu,n),f=xI(Wu,n),d=bV(Wu,n),[m,p]=_.useState(null),y=Ye(t,E=>p(E),f.onItemTextChange,E=>{var T;return(T=c.itemTextRefCallback)==null?void 0:T.call(c,E,f.value,f.disabled)}),x=m==null?void 0:m.textContent,O=_.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=d;return It(()=>(w(O),()=>S(O)),[w,S,O]),v.jsxs(v.Fragment,{children:[v.jsx(Me.span,{id:f.textId,...l,ref:y}),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Xc.createPortal(l.children,s.valueNode):null]})});SI.displayName=Wu;var OI="SelectItemIndicator",_I=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return xI(OI,n).isSelected?v.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});_I.displayName=OI;var Mw="SelectScrollUpButton",EI=_.forwardRef((e,t)=>{const n=Ni(Mw,e.__scopeSelect),r=WS(Mw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ye(t,r.onScrollButtonChange);return It(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;l(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?v.jsx(TI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});EI.displayName=Mw;var Nw="SelectScrollDownButton",AI=_.forwardRef((e,t)=>{const n=Ni(Nw,e.__scopeSelect),r=WS(Nw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ye(t,r.onScrollButtonChange);return It(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<d;l(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?v.jsx(TI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});AI.displayName=Nw;var TI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Ni("SelectScrollButton",n),s=_.useRef(null),c=Fp(n),f=_.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return _.useEffect(()=>()=>f(),[f]),It(()=>{var m;const d=c().find(p=>p.ref.current===document.activeElement);(m=d==null?void 0:d.ref.current)==null||m.scrollIntoView({block:"nearest"})},[c]),v.jsx(Me.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:be(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:be(i.onPointerMove,()=>{var d;(d=l.onItemLeave)==null||d.call(l),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:be(i.onPointerLeave,()=>{f()})})}),RV="SelectSeparator",PV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});PV.displayName=RV;var Rw="SelectArrow",DV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Gp(n),l=Mi(Rw,n),s=Ni(Rw,n);return l.open&&s.position==="popper"?v.jsx(AS,{...i,...r,ref:t}):null});DV.displayName=Rw;var kV="SelectBubbleInput",jI=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),l=Ye(r,i),s=hV(t);return _.useEffect(()=>{const c=i.current;if(!c)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(s!==t&&m){const p=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(p)}},[s,t]),v.jsx(Me.select,{...n,style:{...EL,...n.style},ref:l,defaultValue:t})});jI.displayName=kV;function CI(e){return e===""||e===void 0}function MI(e){const t=Mr(e),n=_.useRef(""),r=_.useRef(0),i=_.useCallback(s=>{const c=n.current+s;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),l=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function NI(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=$V(e,Math.max(l,0));i.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function $V(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var LV=oI,IV=sI,zV=cI,BV=fI,qV=dI,UV=hI,HV=gI,FV=wI,GV=SI,VV=_I,YV=EI,WV=AI;function Pw({...e}){return v.jsx(LV,{"data-slot":"select",...e})}function Dw({...e}){return v.jsx(zV,{"data-slot":"select-value",...e})}function kw({className:e,size:t="default",children:n,...r}){return v.jsxs(IV,{className:he("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-size":t,"data-slot":"select-trigger",...r,children:[n,v.jsx(BV,{asChild:!0,children:v.jsx(_s,{className:"size-4 opacity-50"})})]})}function $w({className:e,children:t,position:n="popper",align:r="center",...i}){return v.jsx(qV,{children:v.jsxs(UV,{align:r,className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),"data-slot":"select-content",position:n,...i,children:[v.jsx(KV,{}),v.jsx(HV,{className:he("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),v.jsx(XV,{})]})})}function Kt({className:e,children:t,...n}){return v.jsxs(FV,{className:he("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),"data-slot":"select-item",...n,children:[v.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(VV,{children:v.jsx(wk,{className:"size-4"})})}),v.jsx(GV,{children:t})]})}function KV({className:e,...t}){return v.jsx(YV,{className:he("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:v.jsx(Qc,{className:"size-4"})})}function XV({className:e,...t}){return v.jsx(WV,{className:he("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:v.jsx(_s,{className:"size-4"})})}function QV({className:e,...t}){return v.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:v.jsx("table",{className:he("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})}function ZV({className:e,...t}){return v.jsx("thead",{className:he("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function JV({className:e,...t}){return v.jsx("tbody",{className:he("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function Bd({className:e,...t}){return v.jsx("tr",{className:he("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),"data-slot":"table-row",...t})}function ku({className:e,...t}){return v.jsx("th",{className:he("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-head",...t})}function io({className:e,...t}){return v.jsx("td",{className:he("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...t})}const cy={clicked:{variant:"default",description:"Recipient clicked a link in the email",className:"bg-purple-500/10 text-purple-700 dark:text-purple-400 hover:bg-purple-500/20 border-purple-500/20"},opened:{variant:"default",description:"Recipient opened the email",className:"bg-blue-500/10 text-blue-700 dark:text-blue-400 hover:bg-blue-500/20 border-blue-500/20"},delivered:{variant:"default",description:"Email was successfully delivered to recipient's mailbox",className:"bg-green-500/10 text-green-700 dark:text-green-400 hover:bg-green-500/20 border-green-500/20"},sent:{variant:"secondary",description:"Email was sent but delivery not yet confirmed",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 hover:bg-gray-500/20 border-gray-500/20"},bounced:{variant:"default",description:"Email bounced - recipient's mailbox may not exist or be full",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 hover:bg-orange-500/20 border-orange-500/20"},complained:{variant:"default",description:"Recipient marked this email as spam",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},failed:{variant:"default",description:"Email failed to send due to an error",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"}};function eY(){const e=Wc(),[t,n]=_.useState(""),[r,i]=_.useState("15"),[l,s]=_.useState("all"),[c,f]=_.useState("sending"),[d,m]=_.useState([]),[p,y]=_.useState(!0),[x,O]=_.useState(null);_.useEffect(()=>{async function E(){try{y(!0),O(null);let T=sessionStorage.getItem("wraps-auth-token");if(T||(T=new URLSearchParams(window.location.search).get("token"),T&&sessionStorage.setItem("wraps-auth-token",T)),!T)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const A=Number.parseInt(r,10),M=Date.now()-A*24*60*60*1e3,j=Date.now(),N=await fetch(`/api/emails?startTime=${M}&endTime=${j}&limit=100&token=${T}`);if(!N.ok){let k="Failed to fetch email logs";try{k=(await N.json()).error||k}catch{k=`${N.status}: ${N.statusText}`}throw new Error(k)}const R=await N.json();m(R.logs.map(k=>({id:k.messageId,to:k.to,from:k.from,subject:k.subject,status:k.status,timestamp:k.sentAt,messageId:k.messageId})))}catch(T){const A=T instanceof Error?T.message:"Unknown error";O(A),console.error("Error fetching email logs:",T)}finally{y(!1)}}E()},[r]);const w=d.filter(E=>{if(t){const T=t.toLowerCase(),A=E.to.some(j=>j.toLowerCase().includes(T)),M=E.subject.toLowerCase().includes(T);if(!(A||M))return!1}return!(l!=="all"&&E.status!==l)}),S=E=>{const T=new Date(E),M=Math.floor((new Date().getTime()-T.getTime())/(1e3*60*60*24));return M===0?"Today":M===1?"Yesterday":M<7?`${M} days ago`:T.toLocaleDateString()};return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Emails"}),v.jsx(mn,{children:"View and manage your email sending history"})]}),v.jsx(Ut,{children:v.jsxs(aI,{onValueChange:f,value:c,children:[v.jsxs(iI,{children:[v.jsx(Zu,{value:"sending",children:"Sending"}),v.jsx(Zu,{value:"receiving",children:"Receiving"})]}),v.jsxs(Ju,{className:"space-y-4",value:"sending",children:[x&&v.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:x}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("div",{className:"relative flex-1",children:[v.jsx(S6,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),v.jsx(Lp,{className:"pl-8",onChange:E=>n(E.target.value),placeholder:"Search...",value:t})]}),v.jsxs(Pw,{onValueChange:i,value:r,children:[v.jsx(kw,{className:"w-[180px]",children:v.jsx(Dw,{})}),v.jsxs($w,{children:[v.jsx(Kt,{value:"1",children:"Last 24 hours"}),v.jsx(Kt,{value:"7",children:"Last 7 days"}),v.jsx(Kt,{value:"15",children:"Last 15 days"}),v.jsx(Kt,{value:"30",children:"Last 30 days"}),v.jsx(Kt,{value:"90",children:"Last 90 days"})]})]}),v.jsxs(Pw,{onValueChange:s,value:l,children:[v.jsx(kw,{className:"w-[180px]",children:v.jsx(Dw,{})}),v.jsxs($w,{children:[v.jsx(Kt,{value:"all",children:"All Statuses"}),v.jsx(Kt,{value:"clicked",children:"Clicked"}),v.jsx(Kt,{value:"opened",children:"Opened"}),v.jsx(Kt,{value:"delivered",children:"Delivered"}),v.jsx(Kt,{value:"sent",children:"Sent"}),v.jsx(Kt,{value:"bounced",children:"Bounced"}),v.jsx(Kt,{value:"complained",children:"Complained"}),v.jsx(Kt,{value:"failed",children:"Failed"})]})]}),v.jsxs(Dt,{size:"icon",variant:"outline",children:[v.jsx("span",{className:"sr-only",children:"Download"}),"↓"]})]}),v.jsx("div",{className:"rounded-md border",children:v.jsxs(QV,{children:[v.jsx(ZV,{children:v.jsxs(Bd,{children:[v.jsx(ku,{children:"To"}),v.jsx(ku,{children:"Status"}),v.jsx(ku,{children:"Subject"}),v.jsx(ku,{children:"Sent"}),v.jsx(ku,{className:"w-[50px]"})]})}),v.jsx(JV,{children:p?v.jsx(Bd,{children:v.jsx(io,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):w.length===0?v.jsx(Bd,{children:v.jsx(io,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No emails found"})}):w.map(E=>{var T,A,M;return v.jsxs(Bd,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/email/${E.id}`),children:[v.jsx(io,{className:"font-mono text-sm",children:E.to.length>0?v.jsxs(v.Fragment,{children:[E.to[0],E.to.length>1&&v.jsxs("span",{className:"ml-1 text-muted-foreground text-xs",children:["+",E.to.length-1," more"]})]}):v.jsx("span",{className:"text-muted-foreground",children:"(no recipients)"})}),v.jsx(io,{children:v.jsxs(LL,{children:[v.jsx(IL,{asChild:!0,children:v.jsx(dn,{className:(T=cy[E.status])==null?void 0:T.className,variant:((A=cy[E.status])==null?void 0:A.variant)??"default",children:E.status.charAt(0).toUpperCase()+E.status.slice(1)})}),v.jsx(zL,{children:v.jsx("p",{children:((M=cy[E.status])==null?void 0:M.description)??"Unknown status"})})]})}),v.jsx(io,{className:"max-w-[400px] truncate",children:E.subject}),v.jsx(io,{className:"text-muted-foreground",children:S(E.timestamp)}),v.jsx(io,{children:v.jsxs(Dt,{onClick:j=>{j.stopPropagation()},size:"icon",variant:"ghost",children:[v.jsx("span",{className:"sr-only",children:"More options"}),"⋯"]})})]},E.id)})})]})}),w.length>0&&!p&&v.jsx("div",{className:"flex items-center justify-between text-muted-foreground text-sm",children:v.jsxs("div",{children:["Showing ",w.length," of ",d.length," emails"]})})]}),v.jsx(Ju,{value:"receiving",children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})}const RI=6048e5,tY=864e5,Xj=Symbol.for("constructDateFrom");function Ci(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Xj in e?e[Xj](t):e instanceof Date?new e.constructor(t):new Date(t)}function Lr(e,t){return Ci(t||e,e)}let nY={};function Vp(){return nY}function fc(e,t){var c,f,d,m;const n=Vp(),r=(t==null?void 0:t.weekStartsOn)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,i=Lr(e,t==null?void 0:t.in),l=i.getDay(),s=(l<r?7:0)+l-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function wh(e,t){return fc(e,{...t,weekStartsOn:1})}function PI(e,t){const n=Lr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Ci(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const l=wh(i),s=Ci(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=wh(s);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Qj(e){const t=Lr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function rY(e,...t){const n=Ci.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Zj(e,t){const n=Lr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function aY(e,t,n){const[r,i]=rY(n==null?void 0:n.in,e,t),l=Zj(r),s=Zj(i),c=+l-Qj(l),f=+s-Qj(s);return Math.round((c-f)/tY)}function iY(e,t){const n=PI(e,t),r=Ci(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),wh(r)}function oY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function lY(e){return!(!oY(e)&&typeof e!="number"||isNaN(+Lr(e)))}function sY(e,t){const n=Lr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const uY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},cY=(e,t,n)=>{let r;const i=uY[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function fy(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pY={date:fy({formats:fY,defaultWidth:"full"}),time:fy({formats:dY,defaultWidth:"full"}),dateTime:fy({formats:hY,defaultWidth:"full"})},mY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vY=(e,t,n,r)=>mY[e];function $u(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;i=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const gY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},xY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},wY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},SY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},OY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_Y={ordinalNumber:OY,era:$u({values:gY,defaultWidth:"wide"}),quarter:$u({values:yY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:$u({values:bY,defaultWidth:"wide"}),day:$u({values:xY,defaultWidth:"wide"}),dayPeriod:$u({values:wY,defaultWidth:"wide",formattingValues:SY,defaultFormattingWidth:"wide"})};function Lu(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const s=l[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?AY(c,p=>p.test(s)):EY(c,p=>p.test(s));let d;d=e.valueCallback?e.valueCallback(f):f,d=n.valueCallback?n.valueCallback(d):d;const m=t.slice(s.length);return{value:d,rest:m}}}function EY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function AY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function TY(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let s=e.valueCallback?e.valueCallback(l[0]):l[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(i.length);return{value:s,rest:c}}}const jY=/^(\d+)(th|st|nd|rd)?/i,CY=/\d+/i,MY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},NY={any:[/^b/i,/^(a|c)/i]},RY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PY={any:[/1/i,/2/i,/3/i,/4/i]},DY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},kY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$Y={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},LY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},IY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},zY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},BY={ordinalNumber:TY({matchPattern:jY,parsePattern:CY,valueCallback:e=>parseInt(e,10)}),era:Lu({matchPatterns:MY,defaultMatchWidth:"wide",parsePatterns:NY,defaultParseWidth:"any"}),quarter:Lu({matchPatterns:RY,defaultMatchWidth:"wide",parsePatterns:PY,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Lu({matchPatterns:DY,defaultMatchWidth:"wide",parsePatterns:kY,defaultParseWidth:"any"}),day:Lu({matchPatterns:$Y,defaultMatchWidth:"wide",parsePatterns:LY,defaultParseWidth:"any"}),dayPeriod:Lu({matchPatterns:IY,defaultMatchWidth:"any",parsePatterns:zY,defaultParseWidth:"any"})},qY={code:"en-US",formatDistance:cY,formatLong:pY,formatRelative:vY,localize:_Y,match:BY,options:{weekStartsOn:0,firstWeekContainsDate:1}};function UY(e,t){const n=Lr(e,t==null?void 0:t.in);return aY(n,sY(n))+1}function HY(e,t){const n=Lr(e,t==null?void 0:t.in),r=+wh(n)-+iY(n);return Math.round(r/RI)+1}function DI(e,t){var m,p,y,x;const n=Lr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Vp(),l=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)??1,s=Ci((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,l),s.setHours(0,0,0,0);const c=fc(s,t),f=Ci((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,l),f.setHours(0,0,0,0);const d=fc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function FY(e,t){var c,f,d,m;const n=Vp(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,i=DI(e,t),l=Ci((t==null?void 0:t.in)||e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),fc(l,t)}function GY(e,t){const n=Lr(e,t==null?void 0:t.in),r=+fc(n,t)-+FY(n,t);return Math.round(r/RI)+1}function tt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const bi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):tt(n+1,2)},d(e,t){return tt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return tt(e.getHours()%12||12,t.length)},H(e,t){return tt(e.getHours(),t.length)},m(e,t){return tt(e.getMinutes(),t.length)},s(e,t){return tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return tt(i,t.length)}},Ml={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Jj={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return bi.y(e,t)},Y:function(e,t,n,r){const i=DI(e,r),l=i>0?i:1-i;if(t==="YY"){const s=l%100;return tt(s,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):tt(l,t.length)},R:function(e,t){const n=PI(e);return tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return tt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return tt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return tt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return bi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return tt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=GY(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):tt(i,t.length)},I:function(e,t,n){const r=HY(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):bi.d(e,t)},D:function(e,t,n){const r=UY(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):tt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return tt(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return tt(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return tt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Ml.noon:r===0?i=Ml.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Ml.evening:r>=12?i=Ml.afternoon:r>=4?i=Ml.morning:i=Ml.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return bi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):bi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):bi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):bi.s(e,t)},S:function(e,t){return bi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return tC(r);case"XXXX":case"XX":return uo(r);case"XXXXX":case"XXX":default:return uo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return tC(r);case"xxxx":case"xx":return uo(r);case"xxxxx":case"xxx":default:return uo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+eC(r,":");case"OOOO":default:return"GMT"+uo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+eC(r,":");case"zzzz":default:return"GMT"+uo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return tt(r,t.length)},T:function(e,t,n){return tt(+e,t.length)}};function eC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+tt(l,2)}function tC(e,t){return e%60===0?(e>0?"-":"+")+tt(Math.abs(e)/60,2):uo(e,t)}function uo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=tt(Math.trunc(r/60),2),l=tt(r%60,2);return n+i+t+l}const nC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},kI=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},VY=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return nC(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",nC(r,t)).replace("{{time}}",kI(i,t))},YY={p:kI,P:VY},WY=/^D+$/,KY=/^Y+$/,XY=["D","DD","YY","YYYY"];function QY(e){return WY.test(e)}function ZY(e){return KY.test(e)}function JY(e,t,n){const r=eW(e,t,n);if(console.warn(r),XY.includes(e))throw new RangeError(r)}function eW(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const tW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,nW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rW=/^'([^]*?)'?$/,aW=/''/g,iW=/[a-zA-Z]/;function rC(e,t,n){var m,p,y,x;const r=Vp(),i=r.locale??qY,l=r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((x=(y=r.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,c=Lr(e,n==null?void 0:n.in);if(!lY(c))throw new RangeError("Invalid time value");let f=t.match(nW).map(O=>{const w=O[0];if(w==="p"||w==="P"){const S=YY[w];return S(O,i.formatLong)}return O}).join("").match(tW).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const w=O[0];if(w==="'")return{isToken:!1,value:oW(O)};if(Jj[w])return{isToken:!0,value:O};if(w.match(iW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:O}});i.localize.preprocessor&&(f=i.localize.preprocessor(c,f));const d={firstWeekContainsDate:l,weekStartsOn:s,locale:i};return f.map(O=>{if(!O.isToken)return O.value;const w=O.value;(ZY(w)||QY(w))&&JY(w,t,String(e));const S=Jj[w[0]];return S(c,w,i.localize,d)}).join("")}function oW(e){const t=e.match(rW);return t?t[1].replace(aW,"'"):e}var dy,aC;function Pn(){if(aC)return dy;aC=1;var e=Array.isArray;return dy=e,dy}var hy,iC;function $I(){if(iC)return hy;iC=1;var e=typeof Nd=="object"&&Nd&&Nd.Object===Object&&Nd;return hy=e,hy}var py,oC;function ia(){if(oC)return py;oC=1;var e=$I(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return py=n,py}var my,lC;function lf(){if(lC)return my;lC=1;var e=ia(),t=e.Symbol;return my=t,my}var vy,sC;function lW(){if(sC)return vy;sC=1;var e=lf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function l(s){var c=n.call(s,i),f=s[i];try{s[i]=void 0;var d=!0}catch{}var m=r.call(s);return d&&(c?s[i]=f:delete s[i]),m}return vy=l,vy}var gy,uC;function sW(){if(uC)return gy;uC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return gy=n,gy}var yy,cC;function qa(){if(cC)return yy;cC=1;var e=lf(),t=lW(),n=sW(),r="[object Null]",i="[object Undefined]",l=e?e.toStringTag:void 0;function s(c){return c==null?c===void 0?i:r:l&&l in Object(c)?t(c):n(c)}return yy=s,yy}var by,fC;function Ua(){if(fC)return by;fC=1;function e(t){return t!=null&&typeof t=="object"}return by=e,by}var xy,dC;function Ns(){if(dC)return xy;dC=1;var e=qa(),t=Ua(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return xy=r,xy}var wy,hC;function KS(){if(hC)return wy;hC=1;var e=Pn(),t=Ns(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(l,s){if(e(l))return!1;var c=typeof l;return c=="number"||c=="symbol"||c=="boolean"||l==null||t(l)?!0:r.test(l)||!n.test(l)||s!=null&&l in Object(s)}return wy=i,wy}var Sy,pC;function Ri(){if(pC)return Sy;pC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Sy=e,Sy}var Oy,mC;function XS(){if(mC)return Oy;mC=1;var e=qa(),t=Ri(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function s(c){if(!t(c))return!1;var f=e(c);return f==r||f==i||f==n||f==l}return Oy=s,Oy}var _y,vC;function uW(){if(vC)return _y;vC=1;var e=ia(),t=e["__core-js_shared__"];return _y=t,_y}var Ey,gC;function cW(){if(gC)return Ey;gC=1;var e=uW(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return Ey=n,Ey}var Ay,yC;function LI(){if(yC)return Ay;yC=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Ay=n,Ay}var Ty,bC;function fW(){if(bC)return Ty;bC=1;var e=XS(),t=cW(),n=Ri(),r=LI(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(y){if(!n(y)||t(y))return!1;var x=e(y)?m:l;return x.test(r(y))}return Ty=p,Ty}var jy,xC;function dW(){if(xC)return jy;xC=1;function e(t,n){return t==null?void 0:t[n]}return jy=e,jy}var Cy,wC;function Po(){if(wC)return Cy;wC=1;var e=fW(),t=dW();function n(r,i){var l=t(r,i);return e(l)?l:void 0}return Cy=n,Cy}var My,SC;function Yp(){if(SC)return My;SC=1;var e=Po(),t=e(Object,"create");return My=t,My}var Ny,OC;function hW(){if(OC)return Ny;OC=1;var e=Yp();function t(){this.__data__=e?e(null):{},this.size=0}return Ny=t,Ny}var Ry,_C;function pW(){if(_C)return Ry;_C=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Ry=e,Ry}var Py,EC;function mW(){if(EC)return Py;EC=1;var e=Yp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(l){var s=this.__data__;if(e){var c=s[l];return c===t?void 0:c}return r.call(s,l)?s[l]:void 0}return Py=i,Py}var Dy,AC;function vW(){if(AC)return Dy;AC=1;var e=Yp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var l=this.__data__;return e?l[i]!==void 0:n.call(l,i)}return Dy=r,Dy}var ky,TC;function gW(){if(TC)return ky;TC=1;var e=Yp(),t="__lodash_hash_undefined__";function n(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=e&&i===void 0?t:i,this}return ky=n,ky}var $y,jC;function yW(){if(jC)return $y;jC=1;var e=hW(),t=pW(),n=mW(),r=vW(),i=gW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,$y=l,$y}var Ly,CC;function bW(){if(CC)return Ly;CC=1;function e(){this.__data__=[],this.size=0}return Ly=e,Ly}var Iy,MC;function QS(){if(MC)return Iy;MC=1;function e(t,n){return t===n||t!==t&&n!==n}return Iy=e,Iy}var zy,NC;function Wp(){if(NC)return zy;NC=1;var e=QS();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return zy=t,zy}var By,RC;function xW(){if(RC)return By;RC=1;var e=Wp(),t=Array.prototype,n=t.splice;function r(i){var l=this.__data__,s=e(l,i);if(s<0)return!1;var c=l.length-1;return s==c?l.pop():n.call(l,s,1),--this.size,!0}return By=r,By}var qy,PC;function wW(){if(PC)return qy;PC=1;var e=Wp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return qy=t,qy}var Uy,DC;function SW(){if(DC)return Uy;DC=1;var e=Wp();function t(n){return e(this.__data__,n)>-1}return Uy=t,Uy}var Hy,kC;function OW(){if(kC)return Hy;kC=1;var e=Wp();function t(n,r){var i=this.__data__,l=e(i,n);return l<0?(++this.size,i.push([n,r])):i[l][1]=r,this}return Hy=t,Hy}var Fy,$C;function Kp(){if($C)return Fy;$C=1;var e=bW(),t=xW(),n=wW(),r=SW(),i=OW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,Fy=l,Fy}var Gy,LC;function ZS(){if(LC)return Gy;LC=1;var e=Po(),t=ia(),n=e(t,"Map");return Gy=n,Gy}var Vy,IC;function _W(){if(IC)return Vy;IC=1;var e=yW(),t=Kp(),n=ZS();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Vy=r,Vy}var Yy,zC;function EW(){if(zC)return Yy;zC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Yy=e,Yy}var Wy,BC;function Xp(){if(BC)return Wy;BC=1;var e=EW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Wy=t,Wy}var Ky,qC;function AW(){if(qC)return Ky;qC=1;var e=Xp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ky=t,Ky}var Xy,UC;function TW(){if(UC)return Xy;UC=1;var e=Xp();function t(n){return e(this,n).get(n)}return Xy=t,Xy}var Qy,HC;function jW(){if(HC)return Qy;HC=1;var e=Xp();function t(n){return e(this,n).has(n)}return Qy=t,Qy}var Zy,FC;function CW(){if(FC)return Zy;FC=1;var e=Xp();function t(n,r){var i=e(this,n),l=i.size;return i.set(n,r),this.size+=i.size==l?0:1,this}return Zy=t,Zy}var Jy,GC;function JS(){if(GC)return Jy;GC=1;var e=_W(),t=AW(),n=TW(),r=jW(),i=CW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,Jy=l,Jy}var eb,VC;function II(){if(VC)return eb;VC=1;var e=JS(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var l=function(){var s=arguments,c=i?i.apply(this,s):s[0],f=l.cache;if(f.has(c))return f.get(c);var d=r.apply(this,s);return l.cache=f.set(c,d)||f,d};return l.cache=new(n.Cache||e),l}return n.Cache=e,eb=n,eb}var tb,YC;function MW(){if(YC)return tb;YC=1;var e=II(),t=500;function n(r){var i=e(r,function(s){return l.size===t&&l.clear(),s}),l=i.cache;return i}return tb=n,tb}var nb,WC;function NW(){if(WC)return nb;WC=1;var e=MW(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(t,function(s,c,f,d){l.push(f?d.replace(n,"$1"):c||s)}),l});return nb=r,nb}var rb,KC;function eO(){if(KC)return rb;KC=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,l=Array(i);++r<i;)l[r]=n(t[r],r,t);return l}return rb=e,rb}var ab,XC;function RW(){if(XC)return ab;XC=1;var e=lf(),t=eO(),n=Pn(),r=Ns(),i=e?e.prototype:void 0,l=i?i.toString:void 0;function s(c){if(typeof c=="string")return c;if(n(c))return t(c,s)+"";if(r(c))return l?l.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return ab=s,ab}var ib,QC;function zI(){if(QC)return ib;QC=1;var e=RW();function t(n){return n==null?"":e(n)}return ib=t,ib}var ob,ZC;function BI(){if(ZC)return ob;ZC=1;var e=Pn(),t=KS(),n=NW(),r=zI();function i(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return ob=i,ob}var lb,JC;function Qp(){if(JC)return lb;JC=1;var e=Ns();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return lb=t,lb}var sb,eM;function tO(){if(eM)return sb;eM=1;var e=BI(),t=Qp();function n(r,i){i=e(i,r);for(var l=0,s=i.length;r!=null&&l<s;)r=r[t(i[l++])];return l&&l==s?r:void 0}return sb=n,sb}var ub,tM;function qI(){if(tM)return ub;tM=1;var e=tO();function t(n,r,i){var l=n==null?void 0:e(n,r);return l===void 0?i:l}return ub=t,ub}var PW=qI();const dr=lt(PW);var cb,nM;function DW(){if(nM)return cb;nM=1;function e(t){return t==null}return cb=e,cb}var kW=DW();const Le=lt(kW);var fb,rM;function $W(){if(rM)return fb;rM=1;var e=qa(),t=Pn(),n=Ua(),r="[object String]";function i(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==r}return fb=i,fb}var LW=$W();const _o=lt(LW);var IW=XS();const De=lt(IW);var zW=Ri();const Rs=lt(zW);var db={exports:{}},Qe={};/**
303
- * @license React
304
- * react-is.production.min.js
305
- *
306
- * Copyright (c) Facebook, Inc. and its affiliates.
307
- *
308
- * This source code is licensed under the MIT license found in the
309
- * LICENSE file in the root directory of this source tree.
310
- */var aM;function BW(){if(aM)return Qe;aM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case i:case r:case d:case m:return S;default:switch(S=S&&S.$$typeof,S){case c:case s:case f:case y:case p:case l:return S;default:return E}}case t:return E}}}return Qe.ContextConsumer=s,Qe.ContextProvider=l,Qe.Element=e,Qe.ForwardRef=f,Qe.Fragment=n,Qe.Lazy=y,Qe.Memo=p,Qe.Portal=t,Qe.Profiler=i,Qe.StrictMode=r,Qe.Suspense=d,Qe.SuspenseList=m,Qe.isAsyncMode=function(){return!1},Qe.isConcurrentMode=function(){return!1},Qe.isContextConsumer=function(S){return w(S)===s},Qe.isContextProvider=function(S){return w(S)===l},Qe.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Qe.isForwardRef=function(S){return w(S)===f},Qe.isFragment=function(S){return w(S)===n},Qe.isLazy=function(S){return w(S)===y},Qe.isMemo=function(S){return w(S)===p},Qe.isPortal=function(S){return w(S)===t},Qe.isProfiler=function(S){return w(S)===i},Qe.isStrictMode=function(S){return w(S)===r},Qe.isSuspense=function(S){return w(S)===d},Qe.isSuspenseList=function(S){return w(S)===m},Qe.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===d||S===m||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===l||S.$$typeof===s||S.$$typeof===f||S.$$typeof===O||S.getModuleId!==void 0)},Qe.typeOf=w,Qe}var iM;function qW(){return iM||(iM=1,db.exports=BW()),db.exports}var UW=qW(),hb,oM;function UI(){if(oM)return hb;oM=1;var e=qa(),t=Ua(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return hb=r,hb}var pb,lM;function HW(){if(lM)return pb;lM=1;var e=UI();function t(n){return e(n)&&n!=+n}return pb=t,pb}var FW=HW();const sf=lt(FW);var GW=UI();const VW=lt(GW);var jr=function(t){return t===0?0:t>0?1:-1},ho=function(t){return _o(t)&&t.indexOf("%")===t.length-1},ve=function(t){return VW(t)&&!sf(t)},YW=function(t){return Le(t)},Ht=function(t){return ve(t)||_o(t)},WW=0,uf=function(t){var n=++WW;return"".concat(t||"").concat(n)},Eo=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ve(t)&&!_o(t))return r;var l;if(ho(t)){var s=t.indexOf("%");l=n*parseFloat(t.slice(0,s))/100}else l=+t;return sf(l)&&(l=r),i&&l>n&&(l=n),l},Si=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},KW=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Ar=function(t,n){return ve(t)&&ve(n)?function(r){return t+r*(n-t)}:function(){return n}};function Sh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):dr(r,t))===n})}var XW=function(t,n){return ve(t)&&ve(n)?t-n:_o(t)&&_o(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Gl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Lw(e){"@babel/helpers - typeof";return Lw=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},Lw(e)}var QW=["viewBox","children"],ZW=["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"],sM=["points","pathLength"],mb={svg:QW,polygon:sM,polyline:sM},nO=["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"],Oh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!Rs(r))return null;var i={};return Object.keys(r).forEach(function(l){nO.includes(l)&&(i[l]=n||function(s){return r[l](r,s)})}),i},JW=function(t,n,r){return function(i){return t(n,r,i),null}},_h=function(t,n,r){if(!Rs(t)||Lw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(l){var s=t[l];nO.includes(l)&&typeof s=="function"&&(i||(i={}),i[l]=JW(s,n,r))}),i},eK=["children"],tK=["children"];function uM(e,t){if(e==null)return{};var n=nK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Iw(e){"@babel/helpers - typeof";return Iw=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},Iw(e)}var cM={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"},Na=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},fM=null,vb=null,rO=function e(t){if(t===fM&&Array.isArray(vb))return vb;var n=[];return _.Children.forEach(t,function(r){Le(r)||(UW.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),vb=n,fM=t,n};function hr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Na(i)}):r=[Na(t)],rO(e).forEach(function(i){var l=dr(i,"type.displayName")||dr(i,"type.name");r.indexOf(l)!==-1&&n.push(i)}),n}function Fn(e,t){var n=hr(e,t);return n&&n[0]}var dM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ve(r)||r<=0||!ve(i)||i<=0)},rK=["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"],aK=function(t){return t&&t.type&&_o(t.type)&&rK.indexOf(t.type)>=0},iK=function(t){return t&&Iw(t)==="object"&&"clipDot"in t},oK=function(t,n,r,i){var l,s=(l=mb==null?void 0:mb[i])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!De(t)&&(i&&s.includes(n)||ZW.includes(n))||r&&nO.includes(n)},qe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(_.isValidElement(t)&&(i=t.props),!Rs(i))return null;var l={};return Object.keys(i).forEach(function(s){var c;oK((c=i)===null||c===void 0?void 0:c[s],s,n,r)&&(l[s]=i[s])}),l},zw=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return hM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var l=t[i],s=n[i];if(Array.isArray(l)||Array.isArray(s)){if(!e(l,s))return!1}else if(!hM(l,s))return!1}return!0},hM=function(t,n){if(Le(t)&&Le(n))return!0;if(!Le(t)&&!Le(n)){var r=t.props||{},i=r.children,l=uM(r,eK),s=n.props||{},c=s.children,f=uM(s,tK);return i&&c?Gl(l,f)&&zw(i,c):!i&&!c?Gl(l,f):!1}return!1},pM=function(t,n){var r=[],i={};return rO(t).forEach(function(l,s){if(aK(l))r.push(l);else if(l){var c=Na(l.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!i[c])){var p=d(l,c,s);r.push(p),i[c]=!0}}}),r},lK=function(t){var n=t&&t.type;return n&&cM[n]?cM[n]:null},sK=function(t,n){return rO(n).indexOf(t)},uK=["children","width","height","viewBox","className","style","title","desc"];function Bw(){return Bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bw.apply(this,arguments)}function cK(e,t){if(e==null)return{};var n=fK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qw(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,l=e.className,s=e.style,c=e.title,f=e.desc,d=cK(e,uK),m=i||{width:n,height:r,x:0,y:0},p=Ue("recharts-surface",l);return L.createElement("svg",Bw({},qe(d,!0,"svg"),{className:p,width:n,height:r,style:s,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),L.createElement("title",null,c),L.createElement("desc",null,f),t)}var dK=["children","className"];function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uw.apply(this,arguments)}function hK(e,t){if(e==null)return{};var n=pK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var jt=L.forwardRef(function(e,t){var n=e.children,r=e.className,i=hK(e,dK),l=Ue("recharts-layer",r);return L.createElement("g",Uw({className:l},qe(i,!0),{ref:t}),n)}),Ra=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),l=2;l<r;l++)i[l-2]=arguments[l]},gb,mM;function mK(){if(mM)return gb;mM=1;function e(t,n,r){var i=-1,l=t.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(l);++i<l;)s[i]=t[i+n];return s}return gb=e,gb}var yb,vM;function vK(){if(vM)return yb;vM=1;var e=mK();function t(n,r,i){var l=n.length;return i=i===void 0?l:i,!r&&i>=l?n:e(n,r,i)}return yb=t,yb}var bb,gM;function HI(){if(gM)return bb;gM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,l="\\ufe0e\\ufe0f",s="\\u200d",c=RegExp("["+s+e+i+l+"]");function f(d){return c.test(d)}return bb=f,bb}var xb,yM;function gK(){if(yM)return xb;yM=1;function e(t){return t.split("")}return xb=e,xb}var wb,bM;function yK(){if(bM)return wb;bM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,l="\\ufe0e\\ufe0f",s="["+e+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",O=d+"?",w="["+l+"]?",S="(?:"+x+"(?:"+[m,p,y].join("|")+")"+w+O+")*",E=w+O+S,T="(?:"+[m+c+"?",c,p,y,s].join("|")+")",A=RegExp(f+"(?="+f+")|"+T+E,"g");function M(j){return j.match(A)||[]}return wb=M,wb}var Sb,xM;function bK(){if(xM)return Sb;xM=1;var e=gK(),t=HI(),n=yK();function r(i){return t(i)?n(i):e(i)}return Sb=r,Sb}var Ob,wM;function xK(){if(wM)return Ob;wM=1;var e=vK(),t=HI(),n=bK(),r=zI();function i(l){return function(s){s=r(s);var c=t(s)?n(s):void 0,f=c?c[0]:s.charAt(0),d=c?e(c,1).join(""):s.slice(1);return f[l]()+d}}return Ob=i,Ob}var _b,SM;function wK(){if(SM)return _b;SM=1;var e=xK(),t=e("toUpperCase");return _b=t,_b}var SK=wK();const Zp=lt(SK);function ct(e){return function(){return e}}const FI=Math.cos,Eh=Math.sin,Ir=Math.sqrt,Ah=Math.PI,Jp=2*Ah,Hw=Math.PI,Fw=2*Hw,co=1e-6,OK=Fw-co;function GI(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function _K(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return GI;const n=10**t;return function(r){this._+=r[0];for(let i=1,l=r.length;i<l;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class EK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?GI:_K(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,l,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,r,i,l){if(t=+t,n=+n,r=+r,i=+i,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,c=this._y1,f=r-t,d=i-n,m=s-t,p=c-n,y=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>co)if(!(Math.abs(p*f-d*m)>co)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-s,O=i-c,w=f*f+d*d,S=x*x+O*O,E=Math.sqrt(w),T=Math.sqrt(y),A=l*Math.tan((Hw-Math.acos((w+y-S)/(2*E*T)))/2),M=A/T,j=A/E;Math.abs(M-1)>co&&this._append`L${t+M*m},${n+M*p}`,this._append`A${l},${l},0,0,${+(p*x>m*O)},${this._x1=t+j*f},${this._y1=n+j*d}`}}arc(t,n,r,i,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),f=r*Math.sin(i),d=t+c,m=n+f,p=1^s,y=s?i-l:l-i;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>co||Math.abs(this._y1-m)>co)&&this._append`L${d},${m}`,r&&(y<0&&(y=y%Fw+Fw),y>OK?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=m}`:y>co&&this._append`A${r},${r},0,${+(y>=Hw)},${p},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function aO(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new EK(t)}function iO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VI(e){this._context=e}VI.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 em(e){return new VI(e)}function YI(e){return e[0]}function WI(e){return e[1]}function KI(e,t){var n=ct(!0),r=null,i=em,l=null,s=aO(c);e=typeof e=="function"?e:e===void 0?YI:ct(e),t=typeof t=="function"?t:t===void 0?WI:ct(t);function c(f){var d,m=(f=iO(f)).length,p,y=!1,x;for(r==null&&(l=i(x=s())),d=0;d<=m;++d)!(d<m&&n(p=f[d],d,f))===y&&((y=!y)?l.lineStart():l.lineEnd()),y&&l.point(+e(p,d,f),+t(p,d,f));if(x)return l=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ct(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ct(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:ct(!!f),c):n},c.curve=function(f){return arguments.length?(i=f,r!=null&&(l=i(r)),c):i},c.context=function(f){return arguments.length?(f==null?r=l=null:l=i(r=f),c):r},c}function qd(e,t,n){var r=null,i=ct(!0),l=null,s=em,c=null,f=aO(d);e=typeof e=="function"?e:e===void 0?YI:ct(+e),t=typeof t=="function"?t:ct(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WI:ct(+n);function d(p){var y,x,O,w=(p=iO(p)).length,S,E=!1,T,A=new Array(w),M=new Array(w);for(l==null&&(c=s(T=f())),y=0;y<=w;++y){if(!(y<w&&i(S=p[y],y,p))===E)if(E=!E)x=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),O=y-1;O>=x;--O)c.point(A[O],M[O]);c.lineEnd(),c.areaEnd()}E&&(A[y]=+e(S,y,p),M[y]=+t(S,y,p),c.point(r?+r(S,y,p):A[y],n?+n(S,y,p):M[y]))}if(T)return c=null,T+""||null}function m(){return KI().defined(i).curve(s).context(l)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:ct(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ct(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ct(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:ct(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ct(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ct(+p),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:ct(!!p),d):i},d.curve=function(p){return arguments.length?(s=p,l!=null&&(c=s(l)),d):s},d.context=function(p){return arguments.length?(p==null?l=c=null:c=s(l=p),d):l},d}class XI{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function AK(e){return new XI(e,!0)}function TK(e){return new XI(e,!1)}const oO={draw(e,t){const n=Ir(t/Ah);e.moveTo(n,0),e.arc(0,0,n,0,Jp)}},jK={draw(e,t){const n=Ir(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},QI=Ir(1/3),CK=QI*2,MK={draw(e,t){const n=Ir(t/CK),r=n*QI;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},NK={draw(e,t){const n=Ir(t),r=-n/2;e.rect(r,r,n,n)}},RK=.8908130915292852,ZI=Eh(Ah/10)/Eh(7*Ah/10),PK=Eh(Jp/10)*ZI,DK=-FI(Jp/10)*ZI,kK={draw(e,t){const n=Ir(t*RK),r=PK*n,i=DK*n;e.moveTo(0,-n),e.lineTo(r,i);for(let l=1;l<5;++l){const s=Jp*l/5,c=FI(s),f=Eh(s);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},Eb=Ir(3),$K={draw(e,t){const n=-Ir(t/(Eb*3));e.moveTo(0,n*2),e.lineTo(-Eb*n,-n),e.lineTo(Eb*n,-n),e.closePath()}},or=-.5,lr=Ir(3)/2,Gw=1/Ir(12),LK=(Gw/2+1)*3,IK={draw(e,t){const n=Ir(t/LK),r=n/2,i=n*Gw,l=r,s=n*Gw+n,c=-l,f=s;e.moveTo(r,i),e.lineTo(l,s),e.lineTo(c,f),e.lineTo(or*r-lr*i,lr*r+or*i),e.lineTo(or*l-lr*s,lr*l+or*s),e.lineTo(or*c-lr*f,lr*c+or*f),e.lineTo(or*r+lr*i,or*i-lr*r),e.lineTo(or*l+lr*s,or*s-lr*l),e.lineTo(or*c+lr*f,or*f-lr*c),e.closePath()}};function zK(e,t){let n=null,r=aO(i);e=typeof e=="function"?e:ct(e||oO),t=typeof t=="function"?t:ct(t===void 0?64:+t);function i(){let l;if(n||(n=l=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return i.type=function(l){return arguments.length?(e=typeof l=="function"?l:ct(l),i):e},i.size=function(l){return arguments.length?(t=typeof l=="function"?l:ct(+l),i):t},i.context=function(l){return arguments.length?(n=l??null,i):n},i}function Th(){}function jh(e,t,n){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+n)/6)}function JI(e){this._context=e}JI.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:jh(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:jh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BK(e){return new JI(e)}function e3(e){this._context=e}e3.prototype={areaStart:Th,areaEnd:Th,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:jh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qK(e){return new e3(e)}function t3(e){this._context=e}t3.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:jh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UK(e){return new t3(e)}function n3(e){this._context=e}n3.prototype={areaStart:Th,areaEnd:Th,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 HK(e){return new n3(e)}function OM(e){return e<0?-1:1}function _M(e,t,n){var r=e._x1-e._x0,i=t-e._x1,l=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),c=(l*i+s*r)/(r+i);return(OM(l)+OM(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(c))||0}function EM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ab(e,t,n){var r=e._x0,i=e._y0,l=e._x1,s=e._y1,c=(l-r)/3;e._context.bezierCurveTo(r+c,i+c*t,l-c,s-c*n,l,s)}function Ch(e){this._context=e}Ch.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:Ab(this,this._t0,EM(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 n=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,Ab(this,EM(this,n=_M(this,e,t)),n);break;default:Ab(this,this._t0,n=_M(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function r3(e){this._context=new a3(e)}(r3.prototype=Object.create(Ch.prototype)).point=function(e,t){Ch.prototype.point.call(this,t,e)};function a3(e){this._context=e}a3.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,n,r,i,l){this._context.bezierCurveTo(t,e,r,n,l,i)}};function FK(e){return new Ch(e)}function GK(e){return new r3(e)}function i3(e){this._context=e}i3.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=AM(e),i=AM(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(r[0][l],i[0][l],r[1][l],i[1][l],e[s],t[s]);(this._line||this._line!==0&&n===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 AM(e){var t,n=e.length-1,r,i=new Array(n),l=new Array(n),s=new Array(n);for(i[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/l[t-1],l[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/l[t];for(l[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-i[t+1];return[i,l]}function VK(e){return new i3(e)}function tm(e,t){this._context=e,this._t=t}tm.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function YK(e){return new tm(e,.5)}function WK(e){return new tm(e,0)}function KK(e){return new tm(e,1)}function Zl(e,t){if((s=e.length)>1)for(var n=1,r,i,l=e[t[0]],s,c=l.length;n<s;++n)for(i=l,l=e[t[n]],r=0;r<c;++r)l[r][1]+=l[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Vw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function XK(e,t){return e[t]}function QK(e){const t=[];return t.key=e,t}function ZK(){var e=ct([]),t=Vw,n=Zl,r=XK;function i(l){var s=Array.from(e.apply(this,arguments),QK),c,f=s.length,d=-1,m;for(const p of l)for(c=0,++d;c<f;++c)(s[c][d]=[0,+r(p,s[c].key,d,l)]).data=p;for(c=0,m=iO(t(s));c<f;++c)s[m[c]].index=c;return n(s,m),s}return i.keys=function(l){return arguments.length?(e=typeof l=="function"?l:ct(Array.from(l)),i):e},i.value=function(l){return arguments.length?(r=typeof l=="function"?l:ct(+l),i):r},i.order=function(l){return arguments.length?(t=l==null?Vw:typeof l=="function"?l:ct(Array.from(l)),i):t},i.offset=function(l){return arguments.length?(n=l??Zl,i):n},i}function JK(e,t){if((r=e.length)>0){for(var n,r,i=0,l=e[0].length,s;i<l;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}Zl(e,t)}}function eX(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,l=r.length;n<l;++n){for(var s=0,c=0;s<i;++s)c+=e[s][n][1]||0;r[n][1]+=r[n][0]=-c/2}Zl(e,t)}}function tX(e,t){if(!(!((s=e.length)>0)||!((l=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,l,s;r<l;++r){for(var c=0,f=0,d=0;c<s;++c){for(var m=e[t[c]],p=m[r][1]||0,y=m[r-1][1]||0,x=(p-y)/2,O=0;O<c;++O){var w=e[t[O]],S=w[r][1]||0,E=w[r-1][1]||0;x+=S-E}f+=p,d+=x*p}i[r-1][1]+=i[r-1][0]=n,f&&(n-=d/f)}i[r-1][1]+=i[r-1][0]=n,Zl(e,t)}}function dc(e){"@babel/helpers - typeof";return dc=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},dc(e)}var nX=["type","size","sizeType"];function Yw(){return Yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yw.apply(this,arguments)}function TM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TM(Object(n),!0).forEach(function(r){rX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rX(e,t,n){return t=aX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aX(e){var t=iX(e,"string");return dc(t)=="symbol"?t:t+""}function iX(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oX(e,t){if(e==null)return{};var n=lX(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var o3={symbolCircle:oO,symbolCross:jK,symbolDiamond:MK,symbolSquare:NK,symbolStar:kK,symbolTriangle:$K,symbolWye:IK},sX=Math.PI/180,uX=function(t){var n="symbol".concat(Zp(t));return o3[n]||oO},cX=function(t,n,r){if(n==="area")return t;switch(r){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*sX;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}},fX=function(t,n){o3["symbol".concat(Zp(t))]=n},lO=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,l=i===void 0?64:i,s=t.sizeType,c=s===void 0?"area":s,f=oX(t,nX),d=jM(jM({},f),{},{type:r,size:l,sizeType:c}),m=function(){var S=uX(r),E=zK().type(S).size(cX(l,c,r));return E()},p=d.className,y=d.cx,x=d.cy,O=qe(d,!0);return y===+y&&x===+x&&l===+l?L.createElement("path",Yw({},O,{className:Ue("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(x,")"),d:m()})):null};lO.registerSymbol=fX;function Jl(e){"@babel/helpers - typeof";return Jl=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},Jl(e)}function Ww(){return Ww=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ww.apply(this,arguments)}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){hc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s3(r.key),r)}}function mX(e,t,n){return t&&pX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vX(e,t,n){return t=Mh(t),gX(e,l3()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function gX(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yX(e)}function yX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l3=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function bX(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&&Kw(e,t)}function Kw(e,t){return Kw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kw(e,t)}function hc(e,t,n){return t=s3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s3(e){var t=xX(e,"string");return Jl(t)=="symbol"?t:t+""}function xX(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sr=32,sO=(function(e){function t(){return hX(this,t),vX(this,t,arguments)}return bX(t,e),mX(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,l=sr/2,s=sr/6,c=sr/3,f=r.inactive?i:r.color;if(r.type==="plainline")return L.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:l,x2:sr,y2:l,className:"recharts-legend-icon"});if(r.type==="line")return L.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(l,"h").concat(c,`
311
- A`).concat(s,",").concat(s,",0,1,1,").concat(2*c,",").concat(l,`
312
- H`).concat(sr,"M").concat(2*c,",").concat(l,`
313
- A`).concat(s,",").concat(s,",0,1,1,").concat(c,",").concat(l),className:"recharts-legend-icon"});if(r.type==="rect")return L.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(sr/8,"h").concat(sr,"v").concat(sr*3/4,"h").concat(-sr,"z"),className:"recharts-legend-icon"});if(L.isValidElement(r.legendIcon)){var d=dX({},r);return delete d.legendIcon,L.cloneElement(r.legendIcon,d)}return L.createElement(lO,{fill:f,cx:l,cy:l,size:sr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,l=i.payload,s=i.iconSize,c=i.layout,f=i.formatter,d=i.inactiveColor,m={x:0,y:0,width:sr,height:sr},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(x,O){var w=x.formatter||f,S=Ue(hc(hc({"recharts-legend-item":!0},"legend-item-".concat(O),!0),"inactive",x.inactive));if(x.type==="none")return null;var E=De(x.value)?null:x.value;Ra(!De(x.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 T=x.inactive?d:x.color;return L.createElement("li",Ww({className:S,style:p,key:"legend-item-".concat(O)},_h(r.props,x,O)),L.createElement(qw,{width:s,height:s,viewBox:m,style:y},r.renderIcon(x)),L.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},w?w(E,x,O):E))})}},{key:"render",value:function(){var r=this.props,i=r.payload,l=r.layout,s=r.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:l==="horizontal"?s:"left"};return L.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(_.PureComponent);hc(sO,"displayName","Legend");hc(sO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Tb,MM;function wX(){if(MM)return Tb;MM=1;var e=Kp();function t(){this.__data__=new e,this.size=0}return Tb=t,Tb}var jb,NM;function SX(){if(NM)return jb;NM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return jb=e,jb}var Cb,RM;function OX(){if(RM)return Cb;RM=1;function e(t){return this.__data__.get(t)}return Cb=e,Cb}var Mb,PM;function _X(){if(PM)return Mb;PM=1;function e(t){return this.__data__.has(t)}return Mb=e,Mb}var Nb,DM;function EX(){if(DM)return Nb;DM=1;var e=Kp(),t=ZS(),n=JS(),r=200;function i(l,s){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([l,s]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(l,s),this.size=c.size,this}return Nb=i,Nb}var Rb,kM;function u3(){if(kM)return Rb;kM=1;var e=Kp(),t=wX(),n=SX(),r=OX(),i=_X(),l=EX();function s(c){var f=this.__data__=new e(c);this.size=f.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=l,Rb=s,Rb}var Pb,$M;function AX(){if($M)return Pb;$M=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Pb=t,Pb}var Db,LM;function TX(){if(LM)return Db;LM=1;function e(t){return this.__data__.has(t)}return Db=e,Db}var kb,IM;function c3(){if(IM)return kb;IM=1;var e=JS(),t=AX(),n=TX();function r(i){var l=-1,s=i==null?0:i.length;for(this.__data__=new e;++l<s;)this.add(i[l])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,kb=r,kb}var $b,zM;function f3(){if(zM)return $b;zM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return $b=e,$b}var Lb,BM;function d3(){if(BM)return Lb;BM=1;function e(t,n){return t.has(n)}return Lb=e,Lb}var Ib,qM;function h3(){if(qM)return Ib;qM=1;var e=c3(),t=f3(),n=d3(),r=1,i=2;function l(s,c,f,d,m,p){var y=f&r,x=s.length,O=c.length;if(x!=O&&!(y&&O>x))return!1;var w=p.get(s),S=p.get(c);if(w&&S)return w==c&&S==s;var E=-1,T=!0,A=f&i?new e:void 0;for(p.set(s,c),p.set(c,s);++E<x;){var M=s[E],j=c[E];if(d)var N=y?d(j,M,E,c,s,p):d(M,j,E,s,c,p);if(N!==void 0){if(N)continue;T=!1;break}if(A){if(!t(c,function(R,k){if(!n(A,k)&&(M===R||m(M,R,f,d,p)))return A.push(k)})){T=!1;break}}else if(!(M===j||m(M,j,f,d,p))){T=!1;break}}return p.delete(s),p.delete(c),T}return Ib=l,Ib}var zb,UM;function jX(){if(UM)return zb;UM=1;var e=ia(),t=e.Uint8Array;return zb=t,zb}var Bb,HM;function CX(){if(HM)return Bb;HM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,l){r[++n]=[l,i]}),r}return Bb=e,Bb}var qb,FM;function uO(){if(FM)return qb;FM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return qb=e,qb}var Ub,GM;function MX(){if(GM)return Ub;GM=1;var e=lf(),t=jX(),n=QS(),r=h3(),i=CX(),l=uO(),s=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",y="[object Number]",x="[object RegExp]",O="[object Set]",w="[object String]",S="[object Symbol]",E="[object ArrayBuffer]",T="[object DataView]",A=e?e.prototype:void 0,M=A?A.valueOf:void 0;function j(N,R,k,I,V,z,B){switch(k){case T:if(N.byteLength!=R.byteLength||N.byteOffset!=R.byteOffset)return!1;N=N.buffer,R=R.buffer;case E:return!(N.byteLength!=R.byteLength||!z(new t(N),new t(R)));case f:case d:case y:return n(+N,+R);case m:return N.name==R.name&&N.message==R.message;case x:case w:return N==R+"";case p:var G=i;case O:var K=I&s;if(G||(G=l),N.size!=R.size&&!K)return!1;var X=B.get(N);if(X)return X==R;I|=c,B.set(N,R);var D=r(G(N),G(R),I,V,z,B);return B.delete(N),D;case S:if(M)return M.call(N)==M.call(R)}return!1}return Ub=j,Ub}var Hb,VM;function p3(){if(VM)return Hb;VM=1;function e(t,n){for(var r=-1,i=n.length,l=t.length;++r<i;)t[l+r]=n[r];return t}return Hb=e,Hb}var Fb,YM;function NX(){if(YM)return Fb;YM=1;var e=p3(),t=Pn();function n(r,i,l){var s=i(r);return t(r)?s:e(s,l(r))}return Fb=n,Fb}var Gb,WM;function RX(){if(WM)return Gb;WM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,l=0,s=[];++r<i;){var c=t[r];n(c,r,t)&&(s[l++]=c)}return s}return Gb=e,Gb}var Vb,KM;function PX(){if(KM)return Vb;KM=1;function e(){return[]}return Vb=e,Vb}var Yb,XM;function DX(){if(XM)return Yb;XM=1;var e=RX(),t=PX(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(c){return r.call(s,c)}))}:t;return Yb=l,Yb}var Wb,QM;function kX(){if(QM)return Wb;QM=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Wb=e,Wb}var Kb,ZM;function $X(){if(ZM)return Kb;ZM=1;var e=qa(),t=Ua(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Kb=r,Kb}var Xb,JM;function cO(){if(JM)return Xb;JM=1;var e=$X(),t=Ua(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return Xb=l,Xb}var Ku={exports:{}},Qb,e2;function LX(){if(e2)return Qb;e2=1;function e(){return!1}return Qb=e,Qb}Ku.exports;var t2;function m3(){return t2||(t2=1,(function(e,t){var n=ia(),r=LX(),i=t&&!t.nodeType&&t,l=i&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===i,c=s?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Ku,Ku.exports)),Ku.exports}var Zb,n2;function fO(){if(n2)return Zb;n2=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var l=typeof r;return i=i??e,!!i&&(l=="number"||l!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Zb=n,Zb}var Jb,r2;function dO(){if(r2)return Jb;r2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Jb=t,Jb}var e0,a2;function IX(){if(a2)return e0;a2=1;var e=qa(),t=dO(),n=Ua(),r="[object Arguments]",i="[object Array]",l="[object Boolean]",s="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",y="[object RegExp]",x="[object Set]",O="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",A="[object Float64Array]",M="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",R="[object Uint8Array]",k="[object Uint8ClampedArray]",I="[object Uint16Array]",V="[object Uint32Array]",z={};z[T]=z[A]=z[M]=z[j]=z[N]=z[R]=z[k]=z[I]=z[V]=!0,z[r]=z[i]=z[S]=z[l]=z[E]=z[s]=z[c]=z[f]=z[d]=z[m]=z[p]=z[y]=z[x]=z[O]=z[w]=!1;function B(G){return n(G)&&t(G.length)&&!!z[e(G)]}return e0=B,e0}var t0,i2;function v3(){if(i2)return t0;i2=1;function e(t){return function(n){return t(n)}}return t0=e,t0}var Xu={exports:{}};Xu.exports;var o2;function zX(){return o2||(o2=1,(function(e,t){var n=$I(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===r,s=l&&n.process,c=(function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}})();e.exports=c})(Xu,Xu.exports)),Xu.exports}var n0,l2;function g3(){if(l2)return n0;l2=1;var e=IX(),t=v3(),n=zX(),r=n&&n.isTypedArray,i=r?t(r):e;return n0=i,n0}var r0,s2;function BX(){if(s2)return r0;s2=1;var e=kX(),t=cO(),n=Pn(),r=m3(),i=fO(),l=g3(),s=Object.prototype,c=s.hasOwnProperty;function f(d,m){var p=n(d),y=!p&&t(d),x=!p&&!y&&r(d),O=!p&&!y&&!x&&l(d),w=p||y||x||O,S=w?e(d.length,String):[],E=S.length;for(var T in d)(m||c.call(d,T))&&!(w&&(T=="length"||x&&(T=="offset"||T=="parent")||O&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,E)))&&S.push(T);return S}return r0=f,r0}var a0,u2;function qX(){if(u2)return a0;u2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return a0=t,a0}var i0,c2;function y3(){if(c2)return i0;c2=1;function e(t,n){return function(r){return t(n(r))}}return i0=e,i0}var o0,f2;function UX(){if(f2)return o0;f2=1;var e=y3(),t=e(Object.keys,Object);return o0=t,o0}var l0,d2;function HX(){if(d2)return l0;d2=1;var e=qX(),t=UX(),n=Object.prototype,r=n.hasOwnProperty;function i(l){if(!e(l))return t(l);var s=[];for(var c in Object(l))r.call(l,c)&&c!="constructor"&&s.push(c);return s}return l0=i,l0}var s0,h2;function cf(){if(h2)return s0;h2=1;var e=XS(),t=dO();function n(r){return r!=null&&t(r.length)&&!e(r)}return s0=n,s0}var u0,p2;function nm(){if(p2)return u0;p2=1;var e=BX(),t=HX(),n=cf();function r(i){return n(i)?e(i):t(i)}return u0=r,u0}var c0,m2;function FX(){if(m2)return c0;m2=1;var e=NX(),t=DX(),n=nm();function r(i){return e(i,n,t)}return c0=r,c0}var f0,v2;function GX(){if(v2)return f0;v2=1;var e=FX(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(l,s,c,f,d,m){var p=c&t,y=e(l),x=y.length,O=e(s),w=O.length;if(x!=w&&!p)return!1;for(var S=x;S--;){var E=y[S];if(!(p?E in s:r.call(s,E)))return!1}var T=m.get(l),A=m.get(s);if(T&&A)return T==s&&A==l;var M=!0;m.set(l,s),m.set(s,l);for(var j=p;++S<x;){E=y[S];var N=l[E],R=s[E];if(f)var k=p?f(R,N,E,s,l,m):f(N,R,E,l,s,m);if(!(k===void 0?N===R||d(N,R,c,f,m):k)){M=!1;break}j||(j=E=="constructor")}if(M&&!j){var I=l.constructor,V=s.constructor;I!=V&&"constructor"in l&&"constructor"in s&&!(typeof I=="function"&&I instanceof I&&typeof V=="function"&&V instanceof V)&&(M=!1)}return m.delete(l),m.delete(s),M}return f0=i,f0}var d0,g2;function VX(){if(g2)return d0;g2=1;var e=Po(),t=ia(),n=e(t,"DataView");return d0=n,d0}var h0,y2;function YX(){if(y2)return h0;y2=1;var e=Po(),t=ia(),n=e(t,"Promise");return h0=n,h0}var p0,b2;function b3(){if(b2)return p0;b2=1;var e=Po(),t=ia(),n=e(t,"Set");return p0=n,p0}var m0,x2;function WX(){if(x2)return m0;x2=1;var e=Po(),t=ia(),n=e(t,"WeakMap");return m0=n,m0}var v0,w2;function KX(){if(w2)return v0;w2=1;var e=VX(),t=ZS(),n=YX(),r=b3(),i=WX(),l=qa(),s=LI(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",y="[object DataView]",x=s(e),O=s(t),w=s(n),S=s(r),E=s(i),T=l;return(e&&T(new e(new ArrayBuffer(1)))!=y||t&&T(new t)!=c||n&&T(n.resolve())!=d||r&&T(new r)!=m||i&&T(new i)!=p)&&(T=function(A){var M=l(A),j=M==f?A.constructor:void 0,N=j?s(j):"";if(N)switch(N){case x:return y;case O:return c;case w:return d;case S:return m;case E:return p}return M}),v0=T,v0}var g0,S2;function XX(){if(S2)return g0;S2=1;var e=u3(),t=h3(),n=MX(),r=GX(),i=KX(),l=Pn(),s=m3(),c=g3(),f=1,d="[object Arguments]",m="[object Array]",p="[object Object]",y=Object.prototype,x=y.hasOwnProperty;function O(w,S,E,T,A,M){var j=l(w),N=l(S),R=j?m:i(w),k=N?m:i(S);R=R==d?p:R,k=k==d?p:k;var I=R==p,V=k==p,z=R==k;if(z&&s(w)){if(!s(S))return!1;j=!0,I=!1}if(z&&!I)return M||(M=new e),j||c(w)?t(w,S,E,T,A,M):n(w,S,R,E,T,A,M);if(!(E&f)){var B=I&&x.call(w,"__wrapped__"),G=V&&x.call(S,"__wrapped__");if(B||G){var K=B?w.value():w,X=G?S.value():S;return M||(M=new e),A(K,X,E,T,M)}}return z?(M||(M=new e),r(w,S,E,T,A,M)):!1}return g0=O,g0}var y0,O2;function hO(){if(O2)return y0;O2=1;var e=XX(),t=Ua();function n(r,i,l,s,c){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,l,s,n,c)}return y0=n,y0}var b0,_2;function QX(){if(_2)return b0;_2=1;var e=u3(),t=hO(),n=1,r=2;function i(l,s,c,f){var d=c.length,m=d,p=!f;if(l==null)return!m;for(l=Object(l);d--;){var y=c[d];if(p&&y[2]?y[1]!==l[y[0]]:!(y[0]in l))return!1}for(;++d<m;){y=c[d];var x=y[0],O=l[x],w=y[1];if(p&&y[2]){if(O===void 0&&!(x in l))return!1}else{var S=new e;if(f)var E=f(O,w,x,l,s,S);if(!(E===void 0?t(w,O,n|r,f,S):E))return!1}}return!0}return b0=i,b0}var x0,E2;function x3(){if(E2)return x0;E2=1;var e=Ri();function t(n){return n===n&&!e(n)}return x0=t,x0}var w0,A2;function ZX(){if(A2)return w0;A2=1;var e=x3(),t=nm();function n(r){for(var i=t(r),l=i.length;l--;){var s=i[l],c=r[s];i[l]=[s,c,e(c)]}return i}return w0=n,w0}var S0,T2;function w3(){if(T2)return S0;T2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return S0=e,S0}var O0,j2;function JX(){if(j2)return O0;j2=1;var e=QX(),t=ZX(),n=w3();function r(i){var l=t(i);return l.length==1&&l[0][2]?n(l[0][0],l[0][1]):function(s){return s===i||e(s,i,l)}}return O0=r,O0}var _0,C2;function eQ(){if(C2)return _0;C2=1;function e(t,n){return t!=null&&n in Object(t)}return _0=e,_0}var E0,M2;function tQ(){if(M2)return E0;M2=1;var e=BI(),t=cO(),n=Pn(),r=fO(),i=dO(),l=Qp();function s(c,f,d){f=e(f,c);for(var m=-1,p=f.length,y=!1;++m<p;){var x=l(f[m]);if(!(y=c!=null&&d(c,x)))break;c=c[x]}return y||++m!=p?y:(p=c==null?0:c.length,!!p&&i(p)&&r(x,p)&&(n(c)||t(c)))}return E0=s,E0}var A0,N2;function nQ(){if(N2)return A0;N2=1;var e=eQ(),t=tQ();function n(r,i){return r!=null&&t(r,i,e)}return A0=n,A0}var T0,R2;function rQ(){if(R2)return T0;R2=1;var e=hO(),t=qI(),n=nQ(),r=KS(),i=x3(),l=w3(),s=Qp(),c=1,f=2;function d(m,p){return r(m)&&i(p)?l(s(m),p):function(y){var x=t(y,m);return x===void 0&&x===p?n(y,m):e(p,x,c|f)}}return T0=d,T0}var j0,P2;function Ps(){if(P2)return j0;P2=1;function e(t){return t}return j0=e,j0}var C0,D2;function aQ(){if(D2)return C0;D2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return C0=e,C0}var M0,k2;function iQ(){if(k2)return M0;k2=1;var e=tO();function t(n){return function(r){return e(r,n)}}return M0=t,M0}var N0,$2;function oQ(){if($2)return N0;$2=1;var e=aQ(),t=iQ(),n=KS(),r=Qp();function i(l){return n(l)?e(r(l)):t(l)}return N0=i,N0}var R0,L2;function Pi(){if(L2)return R0;L2=1;var e=JX(),t=rQ(),n=Ps(),r=Pn(),i=oQ();function l(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return R0=l,R0}var P0,I2;function S3(){if(I2)return P0;I2=1;function e(t,n,r,i){for(var l=t.length,s=r+(i?1:-1);i?s--:++s<l;)if(n(t[s],s,t))return s;return-1}return P0=e,P0}var D0,z2;function lQ(){if(z2)return D0;z2=1;function e(t){return t!==t}return D0=e,D0}var k0,B2;function sQ(){if(B2)return k0;B2=1;function e(t,n,r){for(var i=r-1,l=t.length;++i<l;)if(t[i]===n)return i;return-1}return k0=e,k0}var $0,q2;function uQ(){if(q2)return $0;q2=1;var e=S3(),t=lQ(),n=sQ();function r(i,l,s){return l===l?n(i,l,s):e(i,t,s)}return $0=r,$0}var L0,U2;function cQ(){if(U2)return L0;U2=1;var e=uQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return L0=t,L0}var I0,H2;function fQ(){if(H2)return I0;H2=1;function e(t,n,r){for(var i=-1,l=t==null?0:t.length;++i<l;)if(r(n,t[i]))return!0;return!1}return I0=e,I0}var z0,F2;function dQ(){if(F2)return z0;F2=1;function e(){}return z0=e,z0}var B0,G2;function hQ(){if(G2)return B0;G2=1;var e=b3(),t=dQ(),n=uO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return B0=i,B0}var q0,V2;function pQ(){if(V2)return q0;V2=1;var e=c3(),t=cQ(),n=fQ(),r=d3(),i=hQ(),l=uO(),s=200;function c(f,d,m){var p=-1,y=t,x=f.length,O=!0,w=[],S=w;if(m)O=!1,y=n;else if(x>=s){var E=d?null:i(f);if(E)return l(E);O=!1,y=r,S=new e}else S=d?[]:w;e:for(;++p<x;){var T=f[p],A=d?d(T):T;if(T=m||T!==0?T:0,O&&A===A){for(var M=S.length;M--;)if(S[M]===A)continue e;d&&S.push(A),w.push(T)}else y(S,A,m)||(S!==w&&S.push(A),w.push(T))}return w}return q0=c,q0}var U0,Y2;function mQ(){if(Y2)return U0;Y2=1;var e=Pi(),t=pQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return U0=n,U0}var vQ=mQ();const W2=lt(vQ);function O3(e,t,n){return t===!0?W2(e,n):De(t)?W2(e,t):e}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)}var gQ=["ref"];function K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E3(r.key),r)}}function bQ(e,t,n){return t&&X2(e.prototype,t),n&&X2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xQ(e,t,n){return t=Nh(t),wQ(e,_3()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function wQ(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 SQ(e)}function SQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_3=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function OQ(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&&Xw(e,t)}function Xw(e,t){return Xw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xw(e,t)}function rm(e,t,n){return t=E3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E3(e){var t=_Q(e,"string");return es(t)=="symbol"?t:t+""}function _Q(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function EQ(e,t){if(e==null)return{};var n=AQ(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function TQ(e){return e.value}function jQ(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var n=EQ(t,gQ);return L.createElement(sO,n)}var Q2=1,go=(function(e){function t(){var n;yQ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=xQ(this,t,[].concat(i)),rm(n,"lastBoundingBox",{width:-1,height:-1}),n}return OQ(t,e),bQ(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Q2||Math.abs(i.height-this.lastBoundingBox.height)>Q2)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Aa({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,l=i.layout,s=i.align,c=i.verticalAlign,f=i.margin,d=i.chartWidth,m=i.chartHeight,p,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&l==="vertical"){var x=this.getBBoxSnapshot();p={left:((d||0)-x.width)/2}}else p=s==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var O=this.getBBoxSnapshot();y={top:((m||0)-O.height)/2}}else y=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Aa(Aa({},p),y)}},{key:"render",value:function(){var r=this,i=this.props,l=i.content,s=i.width,c=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,m=i.payload,p=Aa(Aa({position:"absolute",width:s||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return L.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(x){r.wrapperNode=x}},jQ(l,Aa(Aa({},this.props),{},{payload:O3(m,d,TQ)})))}}],[{key:"getWithHeight",value:function(r,i){var l=Aa(Aa({},this.defaultProps),r.props),s=l.layout;return s==="vertical"&&ve(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])})(_.PureComponent);rm(go,"displayName","Legend");rm(go,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var H0,Z2;function CQ(){if(Z2)return H0;Z2=1;var e=lf(),t=cO(),n=Pn(),r=e?e.isConcatSpreadable:void 0;function i(l){return n(l)||t(l)||!!(r&&l&&l[r])}return H0=i,H0}var F0,J2;function A3(){if(J2)return F0;J2=1;var e=p3(),t=CQ();function n(r,i,l,s,c){var f=-1,d=r.length;for(l||(l=t),c||(c=[]);++f<d;){var m=r[f];i>0&&l(m)?i>1?n(m,i-1,l,s,c):e(c,m):s||(c[c.length]=m)}return c}return F0=n,F0}var G0,eN;function MQ(){if(eN)return G0;eN=1;function e(t){return function(n,r,i){for(var l=-1,s=Object(n),c=i(n),f=c.length;f--;){var d=c[t?f:++l];if(r(s[d],d,s)===!1)break}return n}}return G0=e,G0}var V0,tN;function NQ(){if(tN)return V0;tN=1;var e=MQ(),t=e();return V0=t,V0}var Y0,nN;function T3(){if(nN)return Y0;nN=1;var e=NQ(),t=nm();function n(r,i){return r&&e(r,i,t)}return Y0=n,Y0}var W0,rN;function RQ(){if(rN)return W0;rN=1;var e=cf();function t(n,r){return function(i,l){if(i==null)return i;if(!e(i))return n(i,l);for(var s=i.length,c=r?s:-1,f=Object(i);(r?c--:++c<s)&&l(f[c],c,f)!==!1;);return i}}return W0=t,W0}var K0,aN;function pO(){if(aN)return K0;aN=1;var e=T3(),t=RQ(),n=t(e);return K0=n,K0}var X0,iN;function j3(){if(iN)return X0;iN=1;var e=pO(),t=cf();function n(r,i){var l=-1,s=t(r)?Array(r.length):[];return e(r,function(c,f,d){s[++l]=i(c,f,d)}),s}return X0=n,X0}var Q0,oN;function PQ(){if(oN)return Q0;oN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Q0=e,Q0}var Z0,lN;function DQ(){if(lN)return Z0;lN=1;var e=Ns();function t(n,r){if(n!==r){var i=n!==void 0,l=n===null,s=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,p=e(r);if(!d&&!p&&!c&&n>r||c&&f&&m&&!d&&!p||l&&f&&m||!i&&m||!s)return 1;if(!l&&!c&&!p&&n<r||p&&i&&s&&!l&&!c||d&&i&&s||!f&&s||!m)return-1}return 0}return Z0=t,Z0}var J0,sN;function kQ(){if(sN)return J0;sN=1;var e=DQ();function t(n,r,i){for(var l=-1,s=n.criteria,c=r.criteria,f=s.length,d=i.length;++l<f;){var m=e(s[l],c[l]);if(m){if(l>=d)return m;var p=i[l];return m*(p=="desc"?-1:1)}}return n.index-r.index}return J0=t,J0}var ex,uN;function $Q(){if(uN)return ex;uN=1;var e=eO(),t=tO(),n=Pi(),r=j3(),i=PQ(),l=v3(),s=kQ(),c=Ps(),f=Pn();function d(m,p,y){p.length?p=e(p,function(w){return f(w)?function(S){return t(S,w.length===1?w[0]:w)}:w}):p=[c];var x=-1;p=e(p,l(n));var O=r(m,function(w,S,E){var T=e(p,function(A){return A(w)});return{criteria:T,index:++x,value:w}});return i(O,function(w,S){return s(w,S,y)})}return ex=d,ex}var tx,cN;function LQ(){if(cN)return tx;cN=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return tx=e,tx}var nx,fN;function IQ(){if(fN)return nx;fN=1;var e=LQ(),t=Math.max;function n(r,i,l){return i=t(i===void 0?r.length-1:i,0),function(){for(var s=arguments,c=-1,f=t(s.length-i,0),d=Array(f);++c<f;)d[c]=s[i+c];c=-1;for(var m=Array(i+1);++c<i;)m[c]=s[c];return m[i]=l(d),e(r,this,m)}}return nx=n,nx}var rx,dN;function zQ(){if(dN)return rx;dN=1;function e(t){return function(){return t}}return rx=e,rx}var ax,hN;function C3(){if(hN)return ax;hN=1;var e=Po(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return ax=t,ax}var ix,pN;function BQ(){if(pN)return ix;pN=1;var e=zQ(),t=C3(),n=Ps(),r=t?function(i,l){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return ix=r,ix}var ox,mN;function qQ(){if(mN)return ox;mN=1;var e=800,t=16,n=Date.now;function r(i){var l=0,s=0;return function(){var c=n(),f=t-(c-s);if(s=c,f>0){if(++l>=e)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}return ox=r,ox}var lx,vN;function UQ(){if(vN)return lx;vN=1;var e=BQ(),t=qQ(),n=t(e);return lx=n,lx}var sx,gN;function HQ(){if(gN)return sx;gN=1;var e=Ps(),t=IQ(),n=UQ();function r(i,l){return n(t(i,l,e),i+"")}return sx=r,sx}var ux,yN;function am(){if(yN)return ux;yN=1;var e=QS(),t=cf(),n=fO(),r=Ri();function i(l,s,c){if(!r(c))return!1;var f=typeof s;return(f=="number"?t(c)&&n(s,c.length):f=="string"&&s in c)?e(c[s],l):!1}return ux=i,ux}var cx,bN;function FQ(){if(bN)return cx;bN=1;var e=A3(),t=$Q(),n=HQ(),r=am(),i=n(function(l,s){if(l==null)return[];var c=s.length;return c>1&&r(l,s[0],s[1])?s=[]:c>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(l,e(s,1),[])});return cx=i,cx}var GQ=FQ();const mO=lt(GQ);function pc(e){"@babel/helpers - typeof";return pc=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},pc(e)}function Qw(){return Qw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qw.apply(this,arguments)}function VQ(e,t){return XQ(e)||KQ(e,t)||WQ(e,t)||YQ()}function YQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
314
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WQ(e,t){if(e){if(typeof e=="string")return xN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xN(e,t)}}function xN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function KQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function XQ(e){if(Array.isArray(e))return e}function wN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(n),!0).forEach(function(r){QQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QQ(e,t,n){return t=ZQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZQ(e){var t=JQ(e,"string");return pc(t)=="symbol"?t:t+""}function JQ(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eZ(e){return Array.isArray(e)&&Ht(e[0])&&Ht(e[1])?e.join(" ~ "):e}var tZ=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,l=i===void 0?{}:i,s=t.itemStyle,c=s===void 0?{}:s,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,p=t.formatter,y=t.itemSorter,x=t.wrapperClassName,O=t.labelClassName,w=t.label,S=t.labelFormatter,E=t.accessibilityLayer,T=E===void 0?!1:E,A=function(){if(m&&m.length){var B={padding:0,margin:0},G=(y?mO(m,y):m).map(function(K,X){if(K.type==="none")return null;var D=fx({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},c),U=K.formatter||p||eZ,Y=K.value,W=K.name,oe=Y,$=W;if(U&&oe!=null&&$!=null){var F=U(Y,W,K,X,m);if(Array.isArray(F)){var Z=VQ(F,2);oe=Z[0],$=Z[1]}else oe=F}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(X),style:D},Ht($)?L.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Ht($)?L.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,L.createElement("span",{className:"recharts-tooltip-item-value"},oe),L.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:B},G)}return null},M=fx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),j=fx({margin:0},d),N=!Le(w),R=N?w:"",k=Ue("recharts-default-tooltip",x),I=Ue("recharts-tooltip-label",O);N&&S&&m!==void 0&&m!==null&&(R=S(w,m));var V=T?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",Qw({className:k,style:M},V),L.createElement("p",{className:I,style:j},L.isValidElement(R)?R:"".concat(R)),A())};function mc(e){"@babel/helpers - typeof";return mc=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},mc(e)}function Ud(e,t,n){return t=nZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nZ(e){var t=rZ(e,"string");return mc(t)=="symbol"?t:t+""}function rZ(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iu="recharts-tooltip-wrapper",aZ={visibility:"hidden"};function iZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ue(Iu,Ud(Ud(Ud(Ud({},"".concat(Iu,"-right"),ve(n)&&t&&ve(t.x)&&n>=t.x),"".concat(Iu,"-left"),ve(n)&&t&&ve(t.x)&&n<t.x),"".concat(Iu,"-bottom"),ve(r)&&t&&ve(t.y)&&r>=t.y),"".concat(Iu,"-top"),ve(r)&&t&&ve(t.y)&&r<t.y))}function SN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,l=e.position,s=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(l&&ve(l[r]))return l[r];var m=n[r]-c-i,p=n[r]+i;if(t[r])return s[r]?m:p;if(s[r]){var y=m,x=f[r];return y<x?Math.max(p,f[r]):Math.max(m,f[r])}var O=p+c,w=f[r]+d;return O>w?Math.max(m,f[r]):Math.max(p,f[r])}function oZ(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function lZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,l=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,p;return s.height>0&&s.width>0&&n?(m=SN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),p=SN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),d=oZ({translateX:m,translateY:p,useTranslate3d:c})):d=aZ,{cssProperties:d,cssClasses:iZ({translateX:m,translateY:p,coordinate:n})}}function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){Jw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N3(r.key),r)}}function cZ(e,t,n){return t&&uZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fZ(e,t,n){return t=Rh(t),dZ(e,M3()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}function dZ(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hZ(e)}function hZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M3=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(e)}function pZ(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&&Zw(e,t)}function Zw(e,t){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zw(e,t)}function Jw(e,t,n){return t=N3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N3(e){var t=mZ(e,"string");return ts(t)=="symbol"?t:t+""}function mZ(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EN=1,vZ=(function(e){function t(){var n;sZ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=fZ(this,t,[].concat(i)),Jw(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Jw(n,"handleKeyDown",function(s){if(s.key==="Escape"){var c,f,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return pZ(t,e),cZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>EN||Math.abs(r.height-this.state.lastBoundingBox.height)>EN)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,i=this.props,l=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.children,m=i.coordinate,p=i.hasPayload,y=i.isAnimationActive,x=i.offset,O=i.position,w=i.reverseDirection,S=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=lZ({allowEscapeViewBox:s,coordinate:m,offsetTopLeft:x,position:O,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:E}),M=A.cssClasses,j=A.cssProperties,N=_N(_N({transition:y&&l?"transform ".concat(c,"ms ").concat(f):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&l&&p?"visible":"hidden",position:"absolute",top:0,left:0},T);return L.createElement("div",{tabIndex:-1,className:M,style:N,ref:function(k){r.wrapperNode=k}},d)}}])})(_.PureComponent),gZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ds={isSsr:gZ()};function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function AN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function TN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AN(Object(n),!0).forEach(function(r){vO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,P3(r.key),r)}}function xZ(e,t,n){return t&&bZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wZ(e,t,n){return t=Ph(t),SZ(e,R3()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function SZ(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OZ(e)}function OZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R3=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function _Z(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&&e1(e,t)}function e1(e,t){return e1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},e1(e,t)}function vO(e,t,n){return t=P3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P3(e){var t=EZ(e,"string");return ns(t)=="symbol"?t:t+""}function EZ(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function AZ(e){return e.dataKey}function TZ(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement(tZ,t)}var Yr=(function(e){function t(){return yZ(this,t),wZ(this,t,arguments)}return _Z(t,e),xZ(t,[{key:"render",value:function(){var r=this,i=this.props,l=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.content,m=i.coordinate,p=i.filterNull,y=i.isAnimationActive,x=i.offset,O=i.payload,w=i.payloadUniqBy,S=i.position,E=i.reverseDirection,T=i.useTranslate3d,A=i.viewBox,M=i.wrapperStyle,j=O??[];p&&j.length&&(j=O3(O.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),w,AZ));var N=j.length>0;return L.createElement(vZ,{allowEscapeViewBox:s,animationDuration:c,animationEasing:f,isAnimationActive:y,active:l,coordinate:m,hasPayload:N,offset:x,position:S,reverseDirection:E,useTranslate3d:T,viewBox:A,wrapperStyle:M},TZ(d,TN(TN({},this.props),{},{payload:j})))}}])})(_.PureComponent);vO(Yr,"displayName","Tooltip");vO(Yr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ds.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 dx,jN;function jZ(){if(jN)return dx;jN=1;var e=ia(),t=function(){return e.Date.now()};return dx=t,dx}var hx,CN;function CZ(){if(CN)return hx;CN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return hx=t,hx}var px,MN;function MZ(){if(MN)return px;MN=1;var e=CZ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return px=n,px}var mx,NN;function D3(){if(NN)return mx;NN=1;var e=MZ(),t=Ri(),n=Ns(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=l.test(d);return p||s.test(d)?c(d.slice(2),p?2:8):i.test(d)?r:+d}return mx=f,mx}var vx,RN;function NZ(){if(RN)return vx;RN=1;var e=Ri(),t=jZ(),n=D3(),r="Expected a function",i=Math.max,l=Math.min;function s(c,f,d){var m,p,y,x,O,w,S=0,E=!1,T=!1,A=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(E=!!d.leading,T="maxWait"in d,y=T?i(n(d.maxWait)||0,f):y,A="trailing"in d?!!d.trailing:A);function M(G){var K=m,X=p;return m=p=void 0,S=G,x=c.apply(X,K),x}function j(G){return S=G,O=setTimeout(k,f),E?M(G):x}function N(G){var K=G-w,X=G-S,D=f-K;return T?l(D,y-X):D}function R(G){var K=G-w,X=G-S;return w===void 0||K>=f||K<0||T&&X>=y}function k(){var G=t();if(R(G))return I(G);O=setTimeout(k,N(G))}function I(G){return O=void 0,A&&m?M(G):(m=p=void 0,x)}function V(){O!==void 0&&clearTimeout(O),S=0,m=w=p=O=void 0}function z(){return O===void 0?x:I(t())}function B(){var G=t(),K=R(G);if(m=arguments,p=this,w=G,K){if(O===void 0)return j(w);if(T)return clearTimeout(O),O=setTimeout(k,f),M(w)}return O===void 0&&(O=setTimeout(k,f)),x}return B.cancel=V,B.flush=z,B}return vx=s,vx}var gx,PN;function RZ(){if(PN)return gx;PN=1;var e=NZ(),t=Ri(),n="Expected a function";function r(i,l,s){var c=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),e(i,l,{leading:c,maxWait:l,trailing:f})}return gx=r,gx}var PZ=RZ();const k3=lt(PZ);function vc(e){"@babel/helpers - typeof";return vc=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},vc(e)}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){DZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DZ(e,t,n){return t=kZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kZ(e){var t=$Z(e,"string");return vc(t)=="symbol"?t:t+""}function $Z(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LZ(e,t){return qZ(e)||BZ(e,t)||zZ(e,t)||IZ()}function IZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
315
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zZ(e,t){if(e){if(typeof e=="string")return kN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kN(e,t)}}function kN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function qZ(e){if(Array.isArray(e))return e}var UZ=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,l=e.width,s=l===void 0?"100%":l,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,p=e.minHeight,y=e.maxHeight,x=e.children,O=e.debounce,w=O===void 0?0:O,S=e.id,E=e.className,T=e.onResize,A=e.style,M=A===void 0?{}:A,j=_.useRef(null),N=_.useRef();N.current=T,_.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var R=_.useState({containerWidth:i.width,containerHeight:i.height}),k=LZ(R,2),I=k[0],V=k[1],z=_.useCallback(function(G,K){V(function(X){var D=Math.round(G),U=Math.round(K);return X.containerWidth===D&&X.containerHeight===U?X:{containerWidth:D,containerHeight:U}})},[]);_.useEffect(function(){var G=function(W){var oe,$=W[0].contentRect,F=$.width,Z=$.height;z(F,Z),(oe=N.current)===null||oe===void 0||oe.call(N,F,Z)};w>0&&(G=k3(G,w,{trailing:!0,leading:!1}));var K=new ResizeObserver(G),X=j.current.getBoundingClientRect(),D=X.width,U=X.height;return z(D,U),K.observe(j.current),function(){K.disconnect()}},[z,w]);var B=_.useMemo(function(){var G=I.containerWidth,K=I.containerHeight;if(G<0||K<0)return null;Ra(ho(s)||ho(f),`The width(%s) and height(%s) are both fixed numbers,
316
- maybe you don't need to use a ResponsiveContainer.`,s,f),Ra(!n||n>0,"The aspect(%s) must be greater than zero.",n);var X=ho(s)?G:s,D=ho(f)?K:f;n&&n>0&&(X?D=X/n:D&&(X=D*n),y&&D>y&&(D=y)),Ra(X>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
317
- please check the style of container, or the props width(%s) and height(%s),
318
- or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
319
- height and width.`,X,D,s,f,m,p,n);var U=!Array.isArray(x)&&Na(x.type).endsWith("Chart");return L.Children.map(x,function(Y){return L.isValidElement(Y)?_.cloneElement(Y,Hd({width:X,height:D},U?{style:Hd({height:"100%",width:"100%",maxHeight:D,maxWidth:X},Y.props.style)}:{})):Y})},[n,x,f,y,p,m,I,s]);return L.createElement("div",{id:S?"".concat(S):void 0,className:Ue("recharts-responsive-container",E),style:Hd(Hd({},M),{},{width:s,height:f,minWidth:m,minHeight:p,maxHeight:y}),ref:j},B)}),$3=function(t){return null};$3.displayName="Cell";function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function $N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$N(Object(n),!0).forEach(function(r){HZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HZ(e,t,n){return t=FZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FZ(e){var t=GZ(e,"string");return gc(t)=="symbol"?t:t+""}function GZ(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nl={widthCache:{},cacheCount:0},VZ=2e3,YZ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},LN="recharts_measurement_span";function WZ(e){var t=t1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var ec=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ds.isSsr)return{width:0,height:0};var r=WZ(n),i=JSON.stringify({text:t,copyStyle:r});if(Nl.widthCache[i])return Nl.widthCache[i];try{var l=document.getElementById(LN);l||(l=document.createElement("span"),l.setAttribute("id",LN),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=t1(t1({},YZ),r);Object.assign(l.style,s),l.textContent="".concat(t);var c=l.getBoundingClientRect(),f={width:c.width,height:c.height};return Nl.widthCache[i]=f,++Nl.cacheCount>VZ&&(Nl.cacheCount=0,Nl.widthCache={}),f}catch{return{width:0,height:0}}},KZ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yc(e){"@babel/helpers - typeof";return yc=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},yc(e)}function Dh(e,t){return JZ(e)||ZZ(e,t)||QZ(e,t)||XZ()}function XZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
320
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QZ(e,t){if(e){if(typeof e=="string")return IN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IN(e,t)}}function IN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function JZ(e){if(Array.isArray(e))return e}function eJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nJ(r.key),r)}}function tJ(e,t,n){return t&&zN(e.prototype,t),n&&zN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nJ(e){var t=rJ(e,"string");return yc(t)=="symbol"?t:t+""}function rJ(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aJ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,iJ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,L3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},oJ=Object.keys(L3),$l="NaN";function lJ(e,t){return e*L3[t]}var Fd=(function(){function e(t,n){eJ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!aJ.test(n)&&(this.num=NaN,this.unit=""),oJ.includes(n)&&(this.num=lJ(t,n),this.unit="px")}return tJ(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,i=(r=iJ.exec(n))!==null&&r!==void 0?r:[],l=Dh(i,3),s=l[1],c=l[2];return new e(parseFloat(s),c??"")}}])})();function I3(e){if(e.includes($l))return $l;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=BN.exec(t))!==null&&n!==void 0?n:[],i=Dh(r,4),l=i[1],s=i[2],c=i[3],f=Fd.parse(l??""),d=Fd.parse(c??""),m=s==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return $l;t=t.replace(BN,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=qN.exec(t))!==null&&p!==void 0?p:[],x=Dh(y,4),O=x[1],w=x[2],S=x[3],E=Fd.parse(O??""),T=Fd.parse(S??""),A=w==="+"?E.add(T):E.subtract(T);if(A.isNaN())return $l;t=t.replace(qN,A.toString())}return t}var UN=/\(([^()]*)\)/;function sJ(e){for(var t=e;t.includes("(");){var n=UN.exec(t),r=Dh(n,2),i=r[1];t=t.replace(UN,I3(i))}return t}function uJ(e){var t=e.replace(/\s+/g,"");return t=sJ(t),t=I3(t),t}function cJ(e){try{return uJ(e)}catch{return $l}}function yx(e){var t=cJ(e.slice(5,-1));return t===$l?"":t}var fJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],dJ=["dx","dy","angle","className","breakAll"];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n1.apply(this,arguments)}function HN(e,t){if(e==null)return{};var n=hJ(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hJ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function FN(e,t){return gJ(e)||vJ(e,t)||mJ(e,t)||pJ()}function pJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
321
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mJ(e,t){if(e){if(typeof e=="string")return GN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GN(e,t)}}function GN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function gJ(e){if(Array.isArray(e))return e}var z3=/[ \f\n\r\t\v\u2028\u2029]+/,B3=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var l=[];Le(n)||(r?l=n.toString().split(""):l=n.toString().split(z3));var s=l.map(function(f){return{word:f,width:ec(f,i).width}}),c=r?0:ec(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:c}}catch{return null}},yJ=function(t,n,r,i,l){var s=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ve(s),p=c,y=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return X.reduce(function(D,U){var Y=U.word,W=U.width,oe=D[D.length-1];if(oe&&(i==null||l||oe.width+W+r<Number(i)))oe.words.push(Y),oe.width+=W+r;else{var $={words:[Y],width:W};D.push($)}return D},[])},x=y(n),O=function(X){return X.reduce(function(D,U){return D.width>U.width?D:U})};if(!m)return x;for(var w="…",S=function(X){var D=p.slice(0,X),U=B3({breakAll:d,style:f,children:D+w}).wordsWithComputedWidth,Y=y(U),W=Y.length>s||O(Y).width>Number(i);return[W,Y]},E=0,T=p.length-1,A=0,M;E<=T&&A<=p.length-1;){var j=Math.floor((E+T)/2),N=j-1,R=S(N),k=FN(R,2),I=k[0],V=k[1],z=S(j),B=FN(z,1),G=B[0];if(!I&&!G&&(E=j+1),I&&G&&(T=j-1),!I&&G){M=V;break}A++}return M||x},VN=function(t){var n=Le(t)?[]:t.toString().split(z3);return[{words:n}]},bJ=function(t){var n=t.width,r=t.scaleToFit,i=t.children,l=t.style,s=t.breakAll,c=t.maxLines;if((n||r)&&!Ds.isSsr){var f,d,m=B3({breakAll:s,children:i,style:l});if(m){var p=m.wordsWithComputedWidth,y=m.spaceWidth;f=p,d=y}else return VN(i);return yJ({breakAll:s,children:i,maxLines:c,style:l},f,d,n,r)}return VN(i)},YN="#808080",kh=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,l=i===void 0?0:i,s=t.lineHeight,c=s===void 0?"1em":s,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,p=m===void 0?!1:m,y=t.textAnchor,x=y===void 0?"start":y,O=t.verticalAnchor,w=O===void 0?"end":O,S=t.fill,E=S===void 0?YN:S,T=HN(t,fJ),A=_.useMemo(function(){return bJ({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:p,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,p,T.style,T.width]),M=T.dx,j=T.dy,N=T.angle,R=T.className,k=T.breakAll,I=HN(T,dJ);if(!Ht(r)||!Ht(l))return null;var V=r+(ve(M)?M:0),z=l+(ve(j)?j:0),B;switch(w){case"start":B=yx("calc(".concat(d,")"));break;case"middle":B=yx("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:B=yx("calc(".concat(A.length-1," * -").concat(c,")"));break}var G=[];if(p){var K=A[0].width,X=T.width;G.push("scale(".concat((ve(X)?X/K:1)/K,")"))}return N&&G.push("rotate(".concat(N,", ").concat(V,", ").concat(z,")")),G.length&&(I.transform=G.join(" ")),L.createElement("text",n1({},qe(I,!0),{x:V,y:z,className:Ue("recharts-text",R),textAnchor:x,fill:E.includes("url")?YN:E}),A.map(function(D,U){var Y=D.words.join(k?"":" ");return L.createElement("tspan",{x:V,dy:U===0?B:c,key:"".concat(Y,"-").concat(U)},Y)}))};function _i(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gO(e){let t,n,r;e.length!==2?(t=_i,n=(c,f)=>_i(e(c),f),r=(c,f)=>e(c)-f):(t=e===_i||e===xJ?e:wJ,n=e,r=e);function i(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<0?d=p+1:m=p}while(d<m)}return d}function l(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<=0?d=p+1:m=p}while(d<m)}return d}function s(c,f,d=0,m=c.length){const p=i(c,f,d,m-1);return p>d&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:i,center:s,right:l}}function wJ(){return 0}function q3(e){return e===null?NaN:+e}function*SJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const OJ=gO(_i),ff=OJ.right;gO(q3).center;class WN extends Map{constructor(t,n=AJ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(KN(this,t))}has(t){return super.has(KN(this,t))}set(t,n){return super.set(_J(this,t),n)}delete(t){return super.delete(EJ(this,t))}}function KN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function _J({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function EJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function AJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function TJ(e=_i){if(e===_i)return U3;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function U3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jJ=Math.sqrt(50),CJ=Math.sqrt(10),MJ=Math.sqrt(2);function $h(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),l=r/Math.pow(10,i),s=l>=jJ?10:l>=CJ?5:l>=MJ?2:1;let c,f,d;return i<0?(d=Math.pow(10,-i)/s,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*s,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?$h(e,t,n*2):[c,f,d]}function r1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,l,s]=r?$h(t,e,n):$h(e,t,n);if(!(l>=i))return[];const c=l-i+1,f=new Array(c);if(r)if(s<0)for(let d=0;d<c;++d)f[d]=(l-d)/-s;else for(let d=0;d<c;++d)f[d]=(l-d)*s;else if(s<0)for(let d=0;d<c;++d)f[d]=(i+d)/-s;else for(let d=0;d<c;++d)f[d]=(i+d)*s;return f}function a1(e,t,n){return t=+t,e=+e,n=+n,$h(e,t,n)[2]}function i1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?a1(t,e,n):a1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function XN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function QN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function H3(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?U3:TJ(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),p=.5*Math.exp(2*m/3),y=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*p/f+y)),O=Math.min(r,Math.floor(t+(f-d)*p/f+y));H3(e,t,x,O,i)}const l=e[t];let s=n,c=r;for(zu(e,n,t),i(e[r],l)>0&&zu(e,n,r);s<c;){for(zu(e,s,c),++s,--c;i(e[s],l)<0;)++s;for(;i(e[c],l)>0;)--c}i(e[n],l)===0?zu(e,n,c):(++c,zu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function zu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function NJ(e,t,n){if(e=Float64Array.from(SJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return QN(e);if(t>=1)return XN(e);var r,i=(r-1)*t,l=Math.floor(i),s=XN(H3(e,l).subarray(0,l+1)),c=QN(e.subarray(l+1));return s+(c-s)*(i-l)}}function RJ(e,t,n=q3){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,l=Math.floor(i),s=+n(e[l],l,e),c=+n(e[l+1],l+1,e);return s+(c-s)*(i-l)}}function PJ(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(i);++r<i;)l[r]=e+r*n;return l}function vr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ha(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 o1=Symbol("implicit");function yO(){var e=new WN,t=[],n=[],r=o1;function i(l){let s=e.get(l);if(s===void 0){if(r!==o1)return r;e.set(l,s=t.push(l)-1)}return n[s%n.length]}return i.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new WN;for(const s of l)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(l){return arguments.length?(n=Array.from(l),i):n.slice()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.copy=function(){return yO(t,n).unknown(r)},vr.apply(i,arguments),i}function bc(){var e=yO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,l,s,c=!1,f=0,d=0,m=.5;delete e.unknown;function p(){var y=t().length,x=i<r,O=x?i:r,w=x?r:i;l=(w-O)/Math.max(1,y-f+d*2),c&&(l=Math.floor(l)),O+=(w-O-l*(y-f))*m,s=l*(1-f),c&&(O=Math.round(O),s=Math.round(s));var S=PJ(y).map(function(E){return O+l*E});return n(x?S.reverse():S)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,c=!0,p()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(y){return arguments.length?(c=!!y,p()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,d=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(d=+y,p()):d},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),p()):m},e.copy=function(){return bc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(m)},vr.apply(p(),arguments)}function F3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return F3(t())},e}function tc(){return F3(bc.apply(null,arguments).paddingInner(1))}function bO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function G3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function df(){}var xc=.7,Lh=1/xc,Vl="\\s*([+-]?\\d+)\\s*",wc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",DJ=/^#([0-9a-f]{3,8})$/,kJ=new RegExp(`^rgb\\(${Vl},${Vl},${Vl}\\)$`),$J=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),LJ=new RegExp(`^rgba\\(${Vl},${Vl},${Vl},${wc}\\)$`),IJ=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${wc}\\)$`),zJ=new RegExp(`^hsl\\(${wc},${Jr},${Jr}\\)$`),BJ=new RegExp(`^hsla\\(${wc},${Jr},${Jr},${wc}\\)$`),ZN={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};bO(df,Sc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JN,formatHex:JN,formatHex8:qJ,formatHsl:UJ,formatRgb:eR,toString:eR});function JN(){return this.rgb().formatHex()}function qJ(){return this.rgb().formatHex8()}function UJ(){return V3(this).formatHsl()}function eR(){return this.rgb().formatRgb()}function Sc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=DJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?tR(t):n===3?new Rn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gd(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=kJ.exec(e))?new Rn(t[1],t[2],t[3],1):(t=$J.exec(e))?new Rn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LJ.exec(e))?Gd(t[1],t[2],t[3],t[4]):(t=IJ.exec(e))?Gd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zJ.exec(e))?aR(t[1],t[2]/100,t[3]/100,1):(t=BJ.exec(e))?aR(t[1],t[2]/100,t[3]/100,t[4]):ZN.hasOwnProperty(e)?tR(ZN[e]):e==="transparent"?new Rn(NaN,NaN,NaN,0):null}function tR(e){return new Rn(e>>16&255,e>>8&255,e&255,1)}function Gd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Rn(e,t,n,r)}function HJ(e){return e instanceof df||(e=Sc(e)),e?(e=e.rgb(),new Rn(e.r,e.g,e.b,e.opacity)):new Rn}function l1(e,t,n,r){return arguments.length===1?HJ(e):new Rn(e,t,n,r??1)}function Rn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bO(Rn,l1,G3(df,{brighter(e){return e=e==null?Lh:Math.pow(Lh,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xc:Math.pow(xc,e),new Rn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rn(yo(this.r),yo(this.g),yo(this.b),Ih(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:nR,formatHex:nR,formatHex8:FJ,formatRgb:rR,toString:rR}));function nR(){return`#${po(this.r)}${po(this.g)}${po(this.b)}`}function FJ(){return`#${po(this.r)}${po(this.g)}${po(this.b)}${po((isNaN(this.opacity)?1:this.opacity)*255)}`}function rR(){const e=Ih(this.opacity);return`${e===1?"rgb(":"rgba("}${yo(this.r)}, ${yo(this.g)}, ${yo(this.b)}${e===1?")":`, ${e})`}`}function Ih(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function po(e){return e=yo(e),(e<16?"0":"")+e.toString(16)}function aR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tr(e,t,n,r)}function V3(e){if(e instanceof Tr)return new Tr(e.h,e.s,e.l,e.opacity);if(e instanceof df||(e=Sc(e)),!e)return new Tr;if(e instanceof Tr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),l=Math.max(t,n,r),s=NaN,c=l-i,f=(l+i)/2;return c?(t===l?s=(n-r)/c+(n<r)*6:n===l?s=(r-t)/c+2:s=(t-n)/c+4,c/=f<.5?l+i:2-l-i,s*=60):c=f>0&&f<1?0:s,new Tr(s,c,f,e.opacity)}function GJ(e,t,n,r){return arguments.length===1?V3(e):new Tr(e,t,n,r??1)}function Tr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bO(Tr,GJ,G3(df,{brighter(e){return e=e==null?Lh:Math.pow(Lh,e),new Tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xc:Math.pow(xc,e),new Tr(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Rn(bx(e>=240?e-240:e+120,i,r),bx(e,i,r),bx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tr(iR(this.h),Vd(this.s),Vd(this.l),Ih(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=Ih(this.opacity);return`${e===1?"hsl(":"hsla("}${iR(this.h)}, ${Vd(this.s)*100}%, ${Vd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function iR(e){return e=(e||0)%360,e<0?e+360:e}function Vd(e){return Math.max(0,Math.min(1,e||0))}function bx(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const xO=e=>()=>e;function VJ(e,t){return function(n){return e+n*t}}function YJ(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function WJ(e){return(e=+e)==1?Y3:function(t,n){return n-t?YJ(t,n,e):xO(isNaN(t)?n:t)}}function Y3(e,t){var n=t-e;return n?VJ(e,n):xO(isNaN(e)?t:e)}const oR=(function e(t){var n=WJ(t);function r(i,l){var s=n((i=l1(i)).r,(l=l1(l)).r),c=n(i.g,l.g),f=n(i.b,l.b),d=Y3(i.opacity,l.opacity);return function(m){return i.r=s(m),i.g=c(m),i.b=f(m),i.opacity=d(m),i+""}}return r.gamma=e,r})(1);function KJ(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(l){for(i=0;i<n;++i)r[i]=e[i]*(1-l)+t[i]*l;return r}}function XJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function QJ(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),l=new Array(n),s;for(s=0;s<r;++s)i[s]=ks(e[s],t[s]);for(;s<n;++s)l[s]=t[s];return function(c){for(s=0;s<r;++s)l[s]=i[s](c);return l}}function ZJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function zh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function JJ(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ks(e[i],t[i]):r[i]=t[i];return function(l){for(i in n)r[i]=n[i](l);return r}}var s1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xx=new RegExp(s1.source,"g");function eee(e){return function(){return e}}function tee(e){return function(t){return e(t)+""}}function nee(e,t){var n=s1.lastIndex=xx.lastIndex=0,r,i,l,s=-1,c=[],f=[];for(e=e+"",t=t+"";(r=s1.exec(e))&&(i=xx.exec(t));)(l=i.index)>n&&(l=t.slice(n,l),c[s]?c[s]+=l:c[++s]=l),(r=r[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,f.push({i:s,x:zh(r,i)})),n=xx.lastIndex;return n<t.length&&(l=t.slice(n),c[s]?c[s]+=l:c[++s]=l),c.length<2?f[0]?tee(f[0].x):eee(t):(t=f.length,function(d){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(d);return c.join("")})}function ks(e,t){var n=typeof t,r;return t==null||n==="boolean"?xO(t):(n==="number"?zh:n==="string"?(r=Sc(t))?(t=r,oR):nee:t instanceof Sc?oR:t instanceof Date?ZJ:XJ(t)?KJ:Array.isArray(t)?QJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?JJ:zh)(e,t)}function wO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ree(e,t){t===void 0&&(t=e,e=ks);for(var n=0,r=t.length-1,i=t[0],l=new Array(r<0?0:r);n<r;)l[n]=e(i,i=t[++n]);return function(s){var c=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return l[c](s-c)}}function aee(e){return function(){return e}}function Bh(e){return+e}var lR=[0,1];function yn(e){return e}function u1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:aee(isNaN(t)?NaN:.5)}function iee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function oee(e,t,n){var r=e[0],i=e[1],l=t[0],s=t[1];return i<r?(r=u1(i,r),l=n(s,l)):(r=u1(r,i),l=n(l,s)),function(c){return l(r(c))}}function lee(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),l=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=u1(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(c){var f=ff(e,c,1,r)-1;return l[f](i[f](c))}}function hf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function im(){var e=lR,t=lR,n=ks,r,i,l,s=yn,c,f,d;function m(){var y=Math.min(e.length,t.length);return s!==yn&&(s=iee(e[0],e[y-1])),c=y>2?lee:oee,f=d=null,p}function p(y){return y==null||isNaN(y=+y)?l:(f||(f=c(e.map(r),t,n)))(r(s(y)))}return p.invert=function(y){return s(i((d||(d=c(t,e.map(r),zh)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,Bh),m()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=wO,m()},p.clamp=function(y){return arguments.length?(s=y?!0:yn,m()):s!==yn},p.interpolate=function(y){return arguments.length?(n=y,m()):n},p.unknown=function(y){return arguments.length?(l=y,p):l},function(y,x){return r=y,i=x,m()}}function SO(){return im()(yn,yn)}function see(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qh(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function rs(e){return e=qh(Math.abs(e)),e?e[1]:NaN}function uee(e,t){return function(n,r){for(var i=n.length,l=[],s=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),l.push(n.substring(i-=c,i+c)),!((f+=c+1)>r));)c=e[s=(s+1)%e.length];return l.reverse().join(t)}}function cee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var fee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oc(e){if(!(t=fee.exec(e)))throw new Error("invalid format: "+e);var t;return new OO({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]})}Oc.prototype=OO.prototype;function OO(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+""}OO.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 dee(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var W3;function hee(e,t){var n=qh(e,t);if(!n)return e+"";var r=n[0],i=n[1],l=i-(W3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return l===s?r:l>s?r+new Array(l-s+1).join("0"):l>0?r.slice(0,l)+"."+r.slice(l):"0."+new Array(1-l).join("0")+qh(e,Math.max(0,t+l-1))[0]}function sR(e,t){var n=qh(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const uR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:see,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)=>sR(e*100,t),r:sR,s:hee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cR(e){return e}var fR=Array.prototype.map,dR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function pee(e){var t=e.grouping===void 0||e.thousands===void 0?cR:uee(fR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?cR:cee(fR.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p){p=Oc(p);var y=p.fill,x=p.align,O=p.sign,w=p.symbol,S=p.zero,E=p.width,T=p.comma,A=p.precision,M=p.trim,j=p.type;j==="n"?(T=!0,j="g"):uR[j]||(A===void 0&&(A=12),M=!0,j="g"),(S||y==="0"&&x==="=")&&(S=!0,y="0",x="=");var N=w==="$"?n:w==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",R=w==="$"?r:/[%p]/.test(j)?s:"",k=uR[j],I=/[defgprs%]/.test(j);A=A===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function V(z){var B=N,G=R,K,X,D;if(j==="c")G=k(z)+G,z="";else{z=+z;var U=z<0||1/z<0;if(z=isNaN(z)?f:k(Math.abs(z),A),M&&(z=dee(z)),U&&+z==0&&O!=="+"&&(U=!1),B=(U?O==="("?O:c:O==="-"||O==="("?"":O)+B,G=(j==="s"?dR[8+W3/3]:"")+G+(U&&O==="("?")":""),I){for(K=-1,X=z.length;++K<X;)if(D=z.charCodeAt(K),48>D||D>57){G=(D===46?i+z.slice(K+1):z.slice(K))+G,z=z.slice(0,K);break}}}T&&!S&&(z=t(z,1/0));var Y=B.length+z.length+G.length,W=Y<E?new Array(E-Y+1).join(y):"";switch(T&&S&&(z=t(W+z,W.length?E-G.length:1/0),W=""),x){case"<":z=B+z+G+W;break;case"=":z=B+W+z+G;break;case"^":z=W.slice(0,Y=W.length>>1)+B+z+G+W.slice(Y);break;default:z=W+B+z+G;break}return l(z)}return V.toString=function(){return p+""},V}function m(p,y){var x=d((p=Oc(p),p.type="f",p)),O=Math.max(-8,Math.min(8,Math.floor(rs(y)/3)))*3,w=Math.pow(10,-O),S=dR[8+O/3];return function(E){return x(w*E)+S}}return{format:d,formatPrefix:m}}var Yd,_O,K3;mee({thousands:",",grouping:[3],currency:["$",""]});function mee(e){return Yd=pee(e),_O=Yd.format,K3=Yd.formatPrefix,Yd}function vee(e){return Math.max(0,-rs(Math.abs(e)))}function gee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(rs(t)/3)))*3-rs(Math.abs(e)))}function yee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,rs(t)-rs(e))+1}function X3(e,t,n,r){var i=i1(e,t,n),l;switch(r=Oc(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=gee(i,s))&&(r.precision=l),K3(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=yee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=vee(i))&&(r.precision=l-(r.type==="%")*2);break}}return _O(r)}function Di(e){var t=e.domain;return e.ticks=function(n){var r=t();return r1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return X3(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,l=r.length-1,s=r[i],c=r[l],f,d,m=10;for(c<s&&(d=s,s=c,c=d,d=i,i=l,l=d);m-- >0;){if(d=a1(s,c,n),d===f)return r[i]=s,r[l]=c,t(r);if(d>0)s=Math.floor(s/d)*d,c=Math.ceil(c/d)*d;else if(d<0)s=Math.ceil(s*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function Uh(){var e=SO();return e.copy=function(){return hf(e,Uh())},vr.apply(e,arguments),Di(e)}function Q3(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Bh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Q3(e).unknown(t)},e=arguments.length?Array.from(e,Bh):[0,1],Di(n)}function Z3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],l=e[r],s;return l<i&&(s=n,n=r,r=s,s=i,i=l,l=s),e[n]=t.floor(i),e[r]=t.ceil(l),e}function hR(e){return Math.log(e)}function pR(e){return Math.exp(e)}function bee(e){return-Math.log(-e)}function xee(e){return-Math.exp(-e)}function wee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function See(e){return e===10?wee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Oee(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 mR(e){return(t,n)=>-e(-t,n)}function EO(e){const t=e(hR,pR),n=t.domain;let r=10,i,l;function s(){return i=Oee(r),l=See(r),n()[0]<0?(i=mR(i),l=mR(l),e(bee,xee)):e(hR,pR),t}return t.base=function(c){return arguments.length?(r=+c,s()):r},t.domain=function(c){return arguments.length?(n(c),s()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const p=m<d;p&&([d,m]=[m,d]);let y=i(d),x=i(m),O,w;const S=c==null?10:+c;let E=[];if(!(r%1)&&x-y<S){if(y=Math.floor(y),x=Math.ceil(x),d>0){for(;y<=x;++y)for(O=1;O<r;++O)if(w=y<0?O/l(-y):O*l(y),!(w<d)){if(w>m)break;E.push(w)}}else for(;y<=x;++y)for(O=r-1;O>=1;--O)if(w=y>0?O/l(-y):O*l(y),!(w<d)){if(w>m)break;E.push(w)}E.length*2<S&&(E=r1(d,m,S))}else E=r1(y,x,Math.min(x-y,S)).map(l);return p?E.reverse():E},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Oc(f)).precision==null&&(f.trim=!0),f=_O(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/l(Math.round(i(m)));return p*r<r-.5&&(p*=r),p<=d?f(m):""}},t.nice=()=>n(Z3(n(),{floor:c=>l(Math.floor(i(c))),ceil:c=>l(Math.ceil(i(c)))})),t}function J3(){const e=EO(im()).domain([1,10]);return e.copy=()=>hf(e,J3()).base(e.base()),vr.apply(e,arguments),e}function vR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function AO(e){var t=1,n=e(vR(t),gR(t));return n.constant=function(r){return arguments.length?e(vR(t=+r),gR(t)):t},Di(n)}function e4(){var e=AO(im());return e.copy=function(){return hf(e,e4()).constant(e.constant())},vr.apply(e,arguments)}function yR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function _ee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Eee(e){return e<0?-e*e:e*e}function TO(e){var t=e(yn,yn),n=1;function r(){return n===1?e(yn,yn):n===.5?e(_ee,Eee):e(yR(n),yR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Di(t)}function jO(){var e=TO(im());return e.copy=function(){return hf(e,jO()).exponent(e.exponent())},vr.apply(e,arguments),e}function Aee(){return jO.apply(null,arguments).exponent(.5)}function bR(e){return Math.sign(e)*e*e}function Tee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function t4(){var e=SO(),t=[0,1],n=!1,r;function i(l){var s=Tee(e(l));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(l){return e.invert(bR(l))},i.domain=function(l){return arguments.length?(e.domain(l),i):e.domain()},i.range=function(l){return arguments.length?(e.range((t=Array.from(l,Bh)).map(bR)),i):t.slice()},i.rangeRound=function(l){return i.range(l).round(!0)},i.round=function(l){return arguments.length?(n=!!l,i):n},i.clamp=function(l){return arguments.length?(e.clamp(l),i):e.clamp()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.copy=function(){return t4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},vr.apply(i,arguments),Di(i)}function n4(){var e=[],t=[],n=[],r;function i(){var s=0,c=Math.max(1,t.length);for(n=new Array(c-1);++s<c;)n[s-1]=RJ(e,s/c);return l}function l(s){return s==null||isNaN(s=+s)?r:t[ff(n,s)]}return l.invertExtent=function(s){var c=t.indexOf(s);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},l.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let c of s)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(_i),i()},l.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},l.unknown=function(s){return arguments.length?(r=s,l):r},l.quantiles=function(){return n.slice()},l.copy=function(){return n4().domain(e).range(t).unknown(r)},vr.apply(l,arguments)}function r4(){var e=0,t=1,n=1,r=[.5],i=[0,1],l;function s(f){return f!=null&&f<=f?i[ff(r,f,0,n)]:l}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return s}return s.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},s.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,c()):i.slice()},s.invertExtent=function(f){var d=i.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},s.unknown=function(f){return arguments.length&&(l=f),s},s.thresholds=function(){return r.slice()},s.copy=function(){return r4().domain([e,t]).range(i).unknown(l)},vr.apply(Di(s),arguments)}function a4(){var e=[.5],t=[0,1],n,r=1;function i(l){return l!=null&&l<=l?t[ff(e,l,0,r)]:n}return i.domain=function(l){return arguments.length?(e=Array.from(l),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(l){return arguments.length?(t=Array.from(l),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(l){var s=t.indexOf(l);return[e[s-1],e[s]]},i.unknown=function(l){return arguments.length?(n=l,i):n},i.copy=function(){return a4().domain(e).range(t).unknown(n)},vr.apply(i,arguments)}const wx=new Date,Sx=new Date;function Ft(e,t,n,r){function i(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return i.floor=l=>(e(l=new Date(+l)),l),i.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),i.round=l=>{const s=i(l),c=i.ceil(l);return l-s<c-l?s:c},i.offset=(l,s)=>(t(l=new Date(+l),s==null?1:Math.floor(s)),l),i.range=(l,s,c)=>{const f=[];if(l=i.ceil(l),c=c==null?1:Math.floor(c),!(l<s)||!(c>0))return f;let d;do f.push(d=new Date(+l)),t(l,c),e(l);while(d<l&&l<s);return f},i.filter=l=>Ft(s=>{if(s>=s)for(;e(s),!l(s);)s.setTime(s-1)},(s,c)=>{if(s>=s)if(c<0)for(;++c<=0;)for(;t(s,-1),!l(s););else for(;--c>=0;)for(;t(s,1),!l(s););}),n&&(i.count=(l,s)=>(wx.setTime(+l),Sx.setTime(+s),e(wx),e(Sx),Math.floor(n(wx,Sx))),i.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?i.filter(r?s=>r(s)%l===0:s=>i.count(0,s)%l===0):i)),i}const Hh=Ft(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Hh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ft(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Hh);Hh.range;const Ta=1e3,ur=Ta*60,ja=ur*60,La=ja*24,CO=La*7,xR=La*30,Ox=La*365,mo=Ft(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ta)},(e,t)=>(t-e)/Ta,e=>e.getUTCSeconds());mo.range;const MO=Ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ta)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getMinutes());MO.range;const NO=Ft(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ur)},(e,t)=>(t-e)/ur,e=>e.getUTCMinutes());NO.range;const RO=Ft(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ta-e.getMinutes()*ur)},(e,t)=>{e.setTime(+e+t*ja)},(e,t)=>(t-e)/ja,e=>e.getHours());RO.range;const PO=Ft(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ja)},(e,t)=>(t-e)/ja,e=>e.getUTCHours());PO.range;const pf=Ft(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ur)/La,e=>e.getDate()-1);pf.range;const om=Ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/La,e=>e.getUTCDate()-1);om.range;const i4=Ft(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/La,e=>Math.floor(e/La));i4.range;function Do(e){return Ft(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ur)/CO)}const lm=Do(0),Fh=Do(1),jee=Do(2),Cee=Do(3),as=Do(4),Mee=Do(5),Nee=Do(6);lm.range;Fh.range;jee.range;Cee.range;as.range;Mee.range;Nee.range;function ko(e){return Ft(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/CO)}const sm=ko(0),Gh=ko(1),Ree=ko(2),Pee=ko(3),is=ko(4),Dee=ko(5),kee=ko(6);sm.range;Gh.range;Ree.range;Pee.range;is.range;Dee.range;kee.range;const DO=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());DO.range;const kO=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());kO.range;const Ia=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());Ia.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,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ia.range;const za=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());za.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,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});za.range;function o4(e,t,n,r,i,l){const s=[[mo,1,Ta],[mo,5,5*Ta],[mo,15,15*Ta],[mo,30,30*Ta],[l,1,ur],[l,5,5*ur],[l,15,15*ur],[l,30,30*ur],[i,1,ja],[i,3,3*ja],[i,6,6*ja],[i,12,12*ja],[r,1,La],[r,2,2*La],[n,1,CO],[t,1,xR],[t,3,3*xR],[e,1,Ox]];function c(d,m,p){const y=m<d;y&&([d,m]=[m,d]);const x=p&&typeof p.range=="function"?p:f(d,m,p),O=x?x.range(d,+m+1):[];return y?O.reverse():O}function f(d,m,p){const y=Math.abs(m-d)/p,x=gO(([,,S])=>S).right(s,y);if(x===s.length)return e.every(i1(d/Ox,m/Ox,p));if(x===0)return Hh.every(Math.max(i1(d,m,p),1));const[O,w]=s[y/s[x-1][2]<s[x][2]/y?x-1:x];return O.every(w)}return[c,f]}const[$ee,Lee]=o4(za,kO,sm,i4,PO,NO),[Iee,zee]=o4(Ia,DO,lm,pf,RO,MO);function _x(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 Ex(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 Bu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Bee(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,l=e.days,s=e.shortDays,c=e.months,f=e.shortMonths,d=qu(i),m=Uu(i),p=qu(l),y=Uu(l),x=qu(s),O=Uu(s),w=qu(c),S=Uu(c),E=qu(f),T=Uu(f),A={a:U,A:Y,b:W,B:oe,c:null,d:AR,e:AR,f:ute,g:bte,G:wte,H:ote,I:lte,j:ste,L:l4,m:cte,M:fte,p:$,q:F,Q:CR,s:MR,S:dte,u:hte,U:pte,V:mte,w:vte,W:gte,x:null,X:null,y:yte,Y:xte,Z:Ste,"%":jR},M={a:Z,A:se,b:de,B:ge,c:null,d:TR,e:TR,f:Ate,g:$te,G:Ite,H:Ote,I:_te,j:Ete,L:u4,m:Tte,M:jte,p:fe,q:pe,Q:CR,s:MR,S:Cte,u:Mte,U:Nte,V:Rte,w:Pte,W:Dte,x:null,X:null,y:kte,Y:Lte,Z:zte,"%":jR},j={a:V,A:z,b:B,B:G,c:K,d:_R,e:_R,f:nte,g:OR,G:SR,H:ER,I:ER,j:Zee,L:tte,m:Qee,M:Jee,p:I,q:Xee,Q:ate,s:ite,S:ete,u:Gee,U:Vee,V:Yee,w:Fee,W:Wee,x:X,X:D,y:OR,Y:SR,Z:Kee,"%":rte};A.x=N(n,A),A.X=N(r,A),A.c=N(t,A),M.x=N(n,M),M.X=N(r,M),M.c=N(t,M);function N(ae,me){return function(ye){var re=[],Ne=-1,Oe=0,Ke=ae.length,Fe,nt,ln;for(ye instanceof Date||(ye=new Date(+ye));++Ne<Ke;)ae.charCodeAt(Ne)===37&&(re.push(ae.slice(Oe,Ne)),(nt=wR[Fe=ae.charAt(++Ne)])!=null?Fe=ae.charAt(++Ne):nt=Fe==="e"?" ":"0",(ln=me[Fe])&&(Fe=ln(ye,nt)),re.push(Fe),Oe=Ne+1);return re.push(ae.slice(Oe,Ne)),re.join("")}}function R(ae,me){return function(ye){var re=Bu(1900,void 0,1),Ne=k(re,ae,ye+="",0),Oe,Ke;if(Ne!=ye.length)return null;if("Q"in re)return new Date(re.Q);if("s"in re)return new Date(re.s*1e3+("L"in re?re.L:0));if(me&&!("Z"in re)&&(re.Z=0),"p"in re&&(re.H=re.H%12+re.p*12),re.m===void 0&&(re.m="q"in re?re.q:0),"V"in re){if(re.V<1||re.V>53)return null;"w"in re||(re.w=1),"Z"in re?(Oe=Ex(Bu(re.y,0,1)),Ke=Oe.getUTCDay(),Oe=Ke>4||Ke===0?Gh.ceil(Oe):Gh(Oe),Oe=om.offset(Oe,(re.V-1)*7),re.y=Oe.getUTCFullYear(),re.m=Oe.getUTCMonth(),re.d=Oe.getUTCDate()+(re.w+6)%7):(Oe=_x(Bu(re.y,0,1)),Ke=Oe.getDay(),Oe=Ke>4||Ke===0?Fh.ceil(Oe):Fh(Oe),Oe=pf.offset(Oe,(re.V-1)*7),re.y=Oe.getFullYear(),re.m=Oe.getMonth(),re.d=Oe.getDate()+(re.w+6)%7)}else("W"in re||"U"in re)&&("w"in re||(re.w="u"in re?re.u%7:"W"in re?1:0),Ke="Z"in re?Ex(Bu(re.y,0,1)).getUTCDay():_x(Bu(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(Ke+5)%7:re.w+re.U*7-(Ke+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,Ex(re)):_x(re)}}function k(ae,me,ye,re){for(var Ne=0,Oe=me.length,Ke=ye.length,Fe,nt;Ne<Oe;){if(re>=Ke)return-1;if(Fe=me.charCodeAt(Ne++),Fe===37){if(Fe=me.charAt(Ne++),nt=j[Fe in wR?me.charAt(Ne++):Fe],!nt||(re=nt(ae,ye,re))<0)return-1}else if(Fe!=ye.charCodeAt(re++))return-1}return re}function I(ae,me,ye){var re=d.exec(me.slice(ye));return re?(ae.p=m.get(re[0].toLowerCase()),ye+re[0].length):-1}function V(ae,me,ye){var re=x.exec(me.slice(ye));return re?(ae.w=O.get(re[0].toLowerCase()),ye+re[0].length):-1}function z(ae,me,ye){var re=p.exec(me.slice(ye));return re?(ae.w=y.get(re[0].toLowerCase()),ye+re[0].length):-1}function B(ae,me,ye){var re=E.exec(me.slice(ye));return re?(ae.m=T.get(re[0].toLowerCase()),ye+re[0].length):-1}function G(ae,me,ye){var re=w.exec(me.slice(ye));return re?(ae.m=S.get(re[0].toLowerCase()),ye+re[0].length):-1}function K(ae,me,ye){return k(ae,t,me,ye)}function X(ae,me,ye){return k(ae,n,me,ye)}function D(ae,me,ye){return k(ae,r,me,ye)}function U(ae){return s[ae.getDay()]}function Y(ae){return l[ae.getDay()]}function W(ae){return f[ae.getMonth()]}function oe(ae){return c[ae.getMonth()]}function $(ae){return i[+(ae.getHours()>=12)]}function F(ae){return 1+~~(ae.getMonth()/3)}function Z(ae){return s[ae.getUTCDay()]}function se(ae){return l[ae.getUTCDay()]}function de(ae){return f[ae.getUTCMonth()]}function ge(ae){return c[ae.getUTCMonth()]}function fe(ae){return i[+(ae.getUTCHours()>=12)]}function pe(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var me=N(ae+="",A);return me.toString=function(){return ae},me},parse:function(ae){var me=R(ae+="",!1);return me.toString=function(){return ae},me},utcFormat:function(ae){var me=N(ae+="",M);return me.toString=function(){return ae},me},utcParse:function(ae){var me=R(ae+="",!0);return me.toString=function(){return ae},me}}}var wR={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,qee=/^%/,Uee=/[\\^$*+?|[\]().{}]/g;function We(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",l=i.length;return r+(l<n?new Array(n-l+1).join(t)+i:i)}function Hee(e){return e.replace(Uee,"\\$&")}function qu(e){return new RegExp("^(?:"+e.map(Hee).join("|")+")","i")}function Uu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Fee(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Gee(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Vee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Yee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Wee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function SR(e,t,n){var r=Qt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function OR(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kee(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Xee(e,t,n){var r=Qt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Qee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _R(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zee(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ER(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Jee(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ete(e,t,n){var r=Qt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function tte(e,t,n){var r=Qt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nte(e,t,n){var r=Qt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rte(e,t,n){var r=qee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ate(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ite(e,t,n){var r=Qt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function AR(e,t){return We(e.getDate(),t,2)}function ote(e,t){return We(e.getHours(),t,2)}function lte(e,t){return We(e.getHours()%12||12,t,2)}function ste(e,t){return We(1+pf.count(Ia(e),e),t,3)}function l4(e,t){return We(e.getMilliseconds(),t,3)}function ute(e,t){return l4(e,t)+"000"}function cte(e,t){return We(e.getMonth()+1,t,2)}function fte(e,t){return We(e.getMinutes(),t,2)}function dte(e,t){return We(e.getSeconds(),t,2)}function hte(e){var t=e.getDay();return t===0?7:t}function pte(e,t){return We(lm.count(Ia(e)-1,e),t,2)}function s4(e){var t=e.getDay();return t>=4||t===0?as(e):as.ceil(e)}function mte(e,t){return e=s4(e),We(as.count(Ia(e),e)+(Ia(e).getDay()===4),t,2)}function vte(e){return e.getDay()}function gte(e,t){return We(Fh.count(Ia(e)-1,e),t,2)}function yte(e,t){return We(e.getFullYear()%100,t,2)}function bte(e,t){return e=s4(e),We(e.getFullYear()%100,t,2)}function xte(e,t){return We(e.getFullYear()%1e4,t,4)}function wte(e,t){var n=e.getDay();return e=n>=4||n===0?as(e):as.ceil(e),We(e.getFullYear()%1e4,t,4)}function Ste(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+We(t/60|0,"0",2)+We(t%60,"0",2)}function TR(e,t){return We(e.getUTCDate(),t,2)}function Ote(e,t){return We(e.getUTCHours(),t,2)}function _te(e,t){return We(e.getUTCHours()%12||12,t,2)}function Ete(e,t){return We(1+om.count(za(e),e),t,3)}function u4(e,t){return We(e.getUTCMilliseconds(),t,3)}function Ate(e,t){return u4(e,t)+"000"}function Tte(e,t){return We(e.getUTCMonth()+1,t,2)}function jte(e,t){return We(e.getUTCMinutes(),t,2)}function Cte(e,t){return We(e.getUTCSeconds(),t,2)}function Mte(e){var t=e.getUTCDay();return t===0?7:t}function Nte(e,t){return We(sm.count(za(e)-1,e),t,2)}function c4(e){var t=e.getUTCDay();return t>=4||t===0?is(e):is.ceil(e)}function Rte(e,t){return e=c4(e),We(is.count(za(e),e)+(za(e).getUTCDay()===4),t,2)}function Pte(e){return e.getUTCDay()}function Dte(e,t){return We(Gh.count(za(e)-1,e),t,2)}function kte(e,t){return We(e.getUTCFullYear()%100,t,2)}function $te(e,t){return e=c4(e),We(e.getUTCFullYear()%100,t,2)}function Lte(e,t){return We(e.getUTCFullYear()%1e4,t,4)}function Ite(e,t){var n=e.getUTCDay();return e=n>=4||n===0?is(e):is.ceil(e),We(e.getUTCFullYear()%1e4,t,4)}function zte(){return"+0000"}function jR(){return"%"}function CR(e){return+e}function MR(e){return Math.floor(+e/1e3)}var Rl,f4,d4;Bte({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 Bte(e){return Rl=Bee(e),f4=Rl.format,Rl.parse,d4=Rl.utcFormat,Rl.utcParse,Rl}function qte(e){return new Date(e)}function Ute(e){return e instanceof Date?+e:+new Date(+e)}function $O(e,t,n,r,i,l,s,c,f,d){var m=SO(),p=m.invert,y=m.domain,x=d(".%L"),O=d(":%S"),w=d("%I:%M"),S=d("%I %p"),E=d("%a %d"),T=d("%b %d"),A=d("%B"),M=d("%Y");function j(N){return(f(N)<N?x:c(N)<N?O:s(N)<N?w:l(N)<N?S:r(N)<N?i(N)<N?E:T:n(N)<N?A:M)(N)}return m.invert=function(N){return new Date(p(N))},m.domain=function(N){return arguments.length?y(Array.from(N,Ute)):y().map(qte)},m.ticks=function(N){var R=y();return e(R[0],R[R.length-1],N??10)},m.tickFormat=function(N,R){return R==null?j:d(R)},m.nice=function(N){var R=y();return(!N||typeof N.range!="function")&&(N=t(R[0],R[R.length-1],N??10)),N?y(Z3(R,N)):m},m.copy=function(){return hf(m,$O(e,t,n,r,i,l,s,c,f,d))},m}function Hte(){return vr.apply($O(Iee,zee,Ia,DO,lm,pf,RO,MO,mo,f4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fte(){return vr.apply($O($ee,Lee,za,kO,sm,om,PO,NO,mo,d4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function um(){var e=0,t=1,n,r,i,l,s=yn,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:s(i===0?.5:(p=(l(p)-n)*i,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=l(e=+e),r=l(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(c=!!p,d):c},d.interpolator=function(p){return arguments.length?(s=p,d):s};function m(p){return function(y){var x,O;return arguments.length?([x,O]=y,s=p(x,O),d):[s(0),s(1)]}}return d.range=m(ks),d.rangeRound=m(wO),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return l=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),d}}function ki(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function h4(){var e=Di(um()(yn));return e.copy=function(){return ki(e,h4())},Ha.apply(e,arguments)}function p4(){var e=EO(um()).domain([1,10]);return e.copy=function(){return ki(e,p4()).base(e.base())},Ha.apply(e,arguments)}function m4(){var e=AO(um());return e.copy=function(){return ki(e,m4()).constant(e.constant())},Ha.apply(e,arguments)}function LO(){var e=TO(um());return e.copy=function(){return ki(e,LO()).exponent(e.exponent())},Ha.apply(e,arguments)}function Gte(){return LO.apply(null,arguments).exponent(.5)}function v4(){var e=[],t=yn;function n(r){if(r!=null&&!isNaN(r=+r))return t((ff(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(_i),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,l)=>NJ(e,l/r))},n.copy=function(){return v4(t).domain(e)},Ha.apply(n,arguments)}function cm(){var e=0,t=.5,n=1,r=1,i,l,s,c,f,d=yn,m,p=!1,y;function x(w){return isNaN(w=+w)?y:(w=.5+((w=+m(w))-l)*(r*w<r*l?c:f),d(p?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,n]=w,i=m(e=+e),l=m(t=+t),s=m(n=+n),c=i===l?0:.5/(l-i),f=l===s?0:.5/(s-l),r=l<i?-1:1,x):[e,t,n]},x.clamp=function(w){return arguments.length?(p=!!w,x):p},x.interpolator=function(w){return arguments.length?(d=w,x):d};function O(w){return function(S){var E,T,A;return arguments.length?([E,T,A]=S,d=ree(w,[E,T,A]),x):[d(0),d(.5),d(1)]}}return x.range=O(ks),x.rangeRound=O(wO),x.unknown=function(w){return arguments.length?(y=w,x):y},function(w){return m=w,i=w(e),l=w(t),s=w(n),c=i===l?0:.5/(l-i),f=l===s?0:.5/(s-l),r=l<i?-1:1,x}}function g4(){var e=Di(cm()(yn));return e.copy=function(){return ki(e,g4())},Ha.apply(e,arguments)}function y4(){var e=EO(cm()).domain([.1,1,10]);return e.copy=function(){return ki(e,y4()).base(e.base())},Ha.apply(e,arguments)}function b4(){var e=AO(cm());return e.copy=function(){return ki(e,b4()).constant(e.constant())},Ha.apply(e,arguments)}function IO(){var e=TO(cm());return e.copy=function(){return ki(e,IO()).exponent(e.exponent())},Ha.apply(e,arguments)}function Vte(){return IO.apply(null,arguments).exponent(.5)}const NR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:bc,scaleDiverging:g4,scaleDivergingLog:y4,scaleDivergingPow:IO,scaleDivergingSqrt:Vte,scaleDivergingSymlog:b4,scaleIdentity:Q3,scaleImplicit:o1,scaleLinear:Uh,scaleLog:J3,scaleOrdinal:yO,scalePoint:tc,scalePow:jO,scaleQuantile:n4,scaleQuantize:r4,scaleRadial:t4,scaleSequential:h4,scaleSequentialLog:p4,scaleSequentialPow:LO,scaleSequentialQuantile:v4,scaleSequentialSqrt:Gte,scaleSequentialSymlog:m4,scaleSqrt:Aee,scaleSymlog:e4,scaleThreshold:a4,scaleTime:Hte,scaleUtc:Fte,tickFormat:X3},Symbol.toStringTag,{value:"Module"}));var Ax,RR;function x4(){if(RR)return Ax;RR=1;var e=Ns();function t(n,r,i){for(var l=-1,s=n.length;++l<s;){var c=n[l],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):i(f,d)))var d=f,m=c}return m}return Ax=t,Ax}var Tx,PR;function Yte(){if(PR)return Tx;PR=1;function e(t,n){return t>n}return Tx=e,Tx}var jx,DR;function Wte(){if(DR)return jx;DR=1;var e=x4(),t=Yte(),n=Ps();function r(i){return i&&i.length?e(i,n,t):void 0}return jx=r,jx}var Kte=Wte();const fm=lt(Kte);var Cx,kR;function Xte(){if(kR)return Cx;kR=1;function e(t,n){return t<n}return Cx=e,Cx}var Mx,$R;function Qte(){if($R)return Mx;$R=1;var e=x4(),t=Xte(),n=Ps();function r(i){return i&&i.length?e(i,n,t):void 0}return Mx=r,Mx}var Zte=Qte();const dm=lt(Zte);var Nx,LR;function Jte(){if(LR)return Nx;LR=1;var e=eO(),t=Pi(),n=j3(),r=Pn();function i(l,s){var c=r(l)?e:n;return c(l,t(s,3))}return Nx=i,Nx}var Rx,IR;function ene(){if(IR)return Rx;IR=1;var e=A3(),t=Jte();function n(r,i){return e(t(r,i),1)}return Rx=n,Rx}var tne=ene();const nne=lt(tne);var Px,zR;function rne(){if(zR)return Px;zR=1;var e=hO();function t(n,r){return e(n,r)}return Px=t,Px}var ane=rne();const hm=lt(ane);var $s=1e9,ine={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},BO,yt=!0,pr="[DecimalError] ",bo=pr+"Invalid argument: ",zO=pr+"Exponent out of range: ",Ls=Math.floor,fo=Math.pow,one=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vn,Xt=1e7,mt=7,w4=9007199254740991,Vh=Ls(w4/mt),xe={};xe.absoluteValue=xe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};xe.comparedTo=xe.cmp=function(e){var t,n,r,i,l=this;if(e=new l.constructor(e),l.s!==e.s)return l.s||-e.s;if(l.e!==e.e)return l.e>e.e^l.s<0?1:-1;for(r=l.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(l.d[t]!==e.d[t])return l.d[t]>e.d[t]^l.s<0?1:-1;return r===i?0:r>i^l.s<0?1:-1};xe.decimalPlaces=xe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*mt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};xe.dividedBy=xe.div=function(e){return Pa(this,new this.constructor(e))};xe.dividedToIntegerBy=xe.idiv=function(e){var t=this,n=t.constructor;return ut(Pa(t,new n(e),0,1),n.precision)};xe.equals=xe.eq=function(e){return!this.cmp(e)};xe.exponent=function(){return Lt(this)};xe.greaterThan=xe.gt=function(e){return this.cmp(e)>0};xe.greaterThanOrEqualTo=xe.gte=function(e){return this.cmp(e)>=0};xe.isInteger=xe.isint=function(){return this.e>this.d.length-2};xe.isNegative=xe.isneg=function(){return this.s<0};xe.isPositive=xe.ispos=function(){return this.s>0};xe.isZero=function(){return this.s===0};xe.lessThan=xe.lt=function(e){return this.cmp(e)<0};xe.lessThanOrEqualTo=xe.lte=function(e){return this.cmp(e)<1};xe.logarithm=xe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,l=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vn))throw Error(pr+"NaN");if(n.s<1)throw Error(pr+(n.s?"NaN":"-Infinity"));return n.eq(Vn)?new r(0):(yt=!1,t=Pa(_c(n,l),_c(e,l),l),yt=!0,ut(t,i))};xe.minus=xe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_4(t,e):S4(t,(e.s=-e.s,e))};xe.modulo=xe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(pr+"NaN");return n.s?(yt=!1,t=Pa(n,e,0,1).times(e),yt=!0,n.minus(t)):ut(new r(n),i)};xe.naturalExponential=xe.exp=function(){return O4(this)};xe.naturalLogarithm=xe.ln=function(){return _c(this)};xe.negated=xe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};xe.plus=xe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?S4(t,e):_4(t,(e.s=-e.s,e))};xe.precision=xe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(bo+e);if(t=Lt(i)+1,r=i.d.length-1,n=r*mt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};xe.squareRoot=xe.sqrt=function(){var e,t,n,r,i,l,s,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(pr+"NaN")}for(e=Lt(c),yt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=Qr(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ls((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),r=new f(t)):r=new f(i.toString()),n=f.precision,i=s=n+3;;)if(l=r,r=l.plus(Pa(c,l,s+2)).times(.5),Qr(l.d).slice(0,s)===(t=Qr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(ut(l,n+1,0),l.times(l).eq(c)){r=l;break}}else if(t!="9999")break;s+=4}return yt=!0,ut(r,n)};xe.times=xe.mul=function(e){var t,n,r,i,l,s,c,f,d,m=this,p=m.constructor,y=m.d,x=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,f=y.length,d=x.length,f<d&&(l=y,y=x,x=l,s=f,f=d,d=s),l=[],s=f+d,r=s;r--;)l.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)c=l[i]+x[r]*y[i-r-1]+t,l[i--]=c%Xt|0,t=c/Xt|0;l[i]=(l[i]+t)%Xt|0}for(;!l[--s];)l.pop();return t?++n:l.shift(),e.d=l,e.e=n,yt?ut(e,p.precision):e};xe.toDecimalPlaces=xe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(na(e,0,$s),t===void 0?t=r.rounding:na(t,0,8),ut(n,e+Lt(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Ao(r,!0):(na(e,0,$s),t===void 0?t=i.rounding:na(t,0,8),r=ut(new i(r),e+1,t),n=Ao(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?Ao(i):(na(e,0,$s),t===void 0?t=l.rounding:na(t,0,8),r=ut(new l(i),e+Lt(i)+1,t),n=Ao(r.abs(),!1,e+Lt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return ut(new t(e),Lt(e)+1,t.rounding)};xe.toNumber=function(){return+this};xe.toPower=xe.pow=function(e){var t,n,r,i,l,s,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Vn);if(c=new f(c),!c.s){if(e.s<1)throw Error(pr+"Infinity");return c}if(c.eq(Vn))return c;if(r=f.precision,e.eq(Vn))return ut(c,r);if(t=e.e,n=e.d.length-1,s=t>=n,l=c.s,s){if((n=m<0?-m:m)<=w4){for(i=new f(Vn),t=Math.ceil(r/mt+4),yt=!1;n%2&&(i=i.times(c),qR(i.d,t)),n=Ls(n/2),n!==0;)c=c.times(c),qR(c.d,t);return yt=!0,e.s<0?new f(Vn).div(i):ut(i,r)}}else if(l<0)throw Error(pr+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,yt=!1,i=e.times(_c(c,r+d)),yt=!0,i=O4(i),i.s=l,i};xe.toPrecision=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?(n=Lt(i),r=Ao(i,n<=l.toExpNeg||n>=l.toExpPos)):(na(e,1,$s),t===void 0?t=l.rounding:na(t,0,8),i=ut(new l(i),e,t),n=Lt(i),r=Ao(i,e<=n||n<=l.toExpNeg,e)),r};xe.toSignificantDigits=xe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(na(e,1,$s),t===void 0?t=r.rounding:na(t,0,8)),ut(new r(n),e,t)};xe.toString=xe.valueOf=xe.val=xe.toJSON=xe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Lt(e),n=e.constructor;return Ao(e,t<=n.toExpNeg||t>=n.toExpPos)};function S4(e,t){var n,r,i,l,s,c,f,d,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),yt?ut(t,p):t;if(f=e.d,d=t.d,s=e.e,i=t.e,f=f.slice(),l=s-i,l){for(l<0?(r=f,l=-l,c=d.length):(r=d,i=s,c=f.length),s=Math.ceil(p/mt),c=s>c?s+1:c+1,l>c&&(l=c,r.length=1),r.reverse();l--;)r.push(0);r.reverse()}for(c=f.length,l=d.length,c-l<0&&(l=c,r=d,d=f,f=r),n=0;l;)n=(f[--l]=f[l]+d[l]+n)/Xt|0,f[l]%=Xt;for(n&&(f.unshift(n),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,yt?ut(t,p):t}function na(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bo+e)}function Qr(e){var t,n,r,i=e.length-1,l="",s=e[0];if(i>0){for(l+=s,t=1;t<i;t++)r=e[t]+"",n=mt-r.length,n&&(l+=wi(n)),l+=r;s=e[t],r=s+"",n=mt-r.length,n&&(l+=wi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return l+s}var Pa=(function(){function e(r,i){var l,s=0,c=r.length;for(r=r.slice();c--;)l=r[c]*i+s,r[c]=l%Xt|0,s=l/Xt|0;return s&&r.unshift(s),r}function t(r,i,l,s){var c,f;if(l!=s)f=l>s?1:-1;else for(c=f=0;c<l;c++)if(r[c]!=i[c]){f=r[c]>i[c]?1:-1;break}return f}function n(r,i,l){for(var s=0;l--;)r[l]-=s,s=r[l]<i[l]?1:0,r[l]=s*Xt+r[l]-i[l];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,l,s){var c,f,d,m,p,y,x,O,w,S,E,T,A,M,j,N,R,k,I=r.constructor,V=r.s==i.s?1:-1,z=r.d,B=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(pr+"Division by zero");for(f=r.e-i.e,R=B.length,j=z.length,x=new I(V),O=x.d=[],d=0;B[d]==(z[d]||0);)++d;if(B[d]>(z[d]||0)&&--f,l==null?T=l=I.precision:s?T=l+(Lt(r)-Lt(i))+1:T=l,T<0)return new I(0);if(T=T/mt+2|0,d=0,R==1)for(m=0,B=B[0],T++;(d<j||m)&&T--;d++)A=m*Xt+(z[d]||0),O[d]=A/B|0,m=A%B|0;else{for(m=Xt/(B[0]+1)|0,m>1&&(B=e(B,m),z=e(z,m),R=B.length,j=z.length),M=R,w=z.slice(0,R),S=w.length;S<R;)w[S++]=0;k=B.slice(),k.unshift(0),N=B[0],B[1]>=Xt/2&&++N;do m=0,c=t(B,w,R,S),c<0?(E=w[0],R!=S&&(E=E*Xt+(w[1]||0)),m=E/N|0,m>1?(m>=Xt&&(m=Xt-1),p=e(B,m),y=p.length,S=w.length,c=t(p,w,y,S),c==1&&(m--,n(p,R<y?k:B,y))):(m==0&&(c=m=1),p=B.slice()),y=p.length,y<S&&p.unshift(0),n(w,p,S),c==-1&&(S=w.length,c=t(B,w,R,S),c<1&&(m++,n(w,R<S?k:B,S))),S=w.length):c===0&&(m++,w=[0]),O[d++]=m,c&&w[0]?w[S++]=z[M]||0:(w=[z[M]],S=1);while((M++<j||w[0]!==void 0)&&T--)}return O[0]||O.shift(),x.e=f,ut(x,s?l+Lt(x)+1:l)}})();function O4(e,t){var n,r,i,l,s,c,f=0,d=0,m=e.constructor,p=m.precision;if(Lt(e)>16)throw Error(zO+Lt(e));if(!e.s)return new m(Vn);for(yt=!1,c=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(r=Math.log(fo(2,d))/Math.LN10*2+5|0,c+=r,n=i=l=new m(Vn),m.precision=c;;){if(i=ut(i.times(e),c),n=n.times(++f),s=l.plus(Pa(i,n,c)),Qr(s.d).slice(0,c)===Qr(l.d).slice(0,c)){for(;d--;)l=ut(l.times(l),c);return m.precision=p,t==null?(yt=!0,ut(l,p)):l}l=s}}function Lt(e){for(var t=e.e*mt,n=e.d[0];n>=10;n/=10)t++;return t}function Dx(e,t,n){if(t>e.LN10.sd())throw yt=!0,n&&(e.precision=n),Error(pr+"LN10 precision limit exceeded");return ut(new e(e.LN10),t)}function wi(e){for(var t="";e--;)t+="0";return t}function _c(e,t){var n,r,i,l,s,c,f,d,m,p=1,y=10,x=e,O=x.d,w=x.constructor,S=w.precision;if(x.s<1)throw Error(pr+(x.s?"NaN":"-Infinity"));if(x.eq(Vn))return new w(0);if(t==null?(yt=!1,d=S):d=t,x.eq(10))return t==null&&(yt=!0),Dx(w,d);if(d+=y,w.precision=d,n=Qr(O),r=n.charAt(0),l=Lt(x),Math.abs(l)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Qr(x.d),r=n.charAt(0),p++;l=Lt(x),r>1?(x=new w("0."+n),l++):x=new w(r+"."+n.slice(1))}else return f=Dx(w,d+2,S).times(l+""),x=_c(new w(r+"."+n.slice(1)),d-y).plus(f),w.precision=S,t==null?(yt=!0,ut(x,S)):x;for(c=s=x=Pa(x.minus(Vn),x.plus(Vn),d),m=ut(x.times(x),d),i=3;;){if(s=ut(s.times(m),d),f=c.plus(Pa(s,new w(i),d)),Qr(f.d).slice(0,d)===Qr(c.d).slice(0,d))return c=c.times(2),l!==0&&(c=c.plus(Dx(w,d+2,S).times(l+""))),c=Pa(c,new w(p),d),w.precision=S,t==null?(yt=!0,ut(c,S)):c;c=f,i+=2}}function BR(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Ls(n/mt),e.d=[],r=(n+1)%mt,n<0&&(r+=mt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=mt;r<i;)e.d.push(+t.slice(r,r+=mt));t=t.slice(r),r=mt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),yt&&(e.e>Vh||e.e<-Vh))throw Error(zO+n)}else e.s=0,e.e=0,e.d=[0];return e}function ut(e,t,n){var r,i,l,s,c,f,d,m,p=e.d;for(s=1,l=p[0];l>=10;l/=10)s++;if(r=t-s,r<0)r+=mt,i=t,d=p[m=0];else{if(m=Math.ceil((r+1)/mt),l=p.length,m>=l)return e;for(d=l=p[m],s=1;l>=10;l/=10)s++;r%=mt,i=r-mt+s}if(n!==void 0&&(l=fo(10,s-i-1),c=d/l%10|0,f=t<0||p[m+1]!==void 0||d%l,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?i>0?d/fo(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(l=Lt(e),p.length=1,t=t-l-1,p[0]=fo(10,(mt-t%mt)%mt),e.e=Ls(-t/mt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,l=1,m--):(p.length=m+1,l=fo(10,mt-r),p[m]=i>0?(d/fo(10,s-i)%fo(10,i)|0)*l:0),f)for(;;)if(m==0){(p[0]+=l)==Xt&&(p[0]=1,++e.e);break}else{if(p[m]+=l,p[m]!=Xt)break;p[m--]=0,l=1}for(r=p.length;p[--r]===0;)p.pop();if(yt&&(e.e>Vh||e.e<-Vh))throw Error(zO+Lt(e));return e}function _4(e,t){var n,r,i,l,s,c,f,d,m,p,y=e.constructor,x=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),yt?ut(t,x):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),s=d-r,s){for(m=s<0,m?(n=f,s=-s,c=p.length):(n=p,r=d,c=f.length),i=Math.max(Math.ceil(x/mt),c)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=f.length,c=p.length,m=i<c,m&&(c=i),i=0;i<c;i++)if(f[i]!=p[i]){m=f[i]<p[i];break}s=0}for(m&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,i=p.length-c;i>0;--i)f[c++]=0;for(i=p.length;i>s;){if(f[--i]<p[i]){for(l=i;l&&f[--l]===0;)f[l]=Xt-1;--f[l],f[i]+=Xt}f[i]-=p[i]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,yt?ut(t,x):t):new y(0)}function Ao(e,t,n){var r,i=Lt(e),l=Qr(e.d),s=l.length;return t?(n&&(r=n-s)>0?l=l.charAt(0)+"."+l.slice(1)+wi(r):s>1&&(l=l.charAt(0)+"."+l.slice(1)),l=l+(i<0?"e":"e+")+i):i<0?(l="0."+wi(-i-1)+l,n&&(r=n-s)>0&&(l+=wi(r))):i>=s?(l+=wi(i+1-s),n&&(r=n-i-1)>0&&(l=l+"."+wi(r))):((r=i+1)<s&&(l=l.slice(0,r)+"."+l.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(l+="."),l+=wi(r))),e.s<0?"-"+l:l}function qR(e,t){if(e.length>t)return e.length=t,!0}function E4(e){var t,n,r;function i(l){var s=this;if(!(s instanceof i))return new i(l);if(s.constructor=i,l instanceof i){s.s=l.s,s.e=l.e,s.d=(l=l.d)?l.slice():l;return}if(typeof l=="number"){if(l*0!==0)throw Error(bo+l);if(l>0)s.s=1;else if(l<0)l=-l,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(l===~~l&&l<1e7){s.e=0,s.d=[l];return}return BR(s,l.toString())}else if(typeof l!="string")throw Error(bo+l);if(l.charCodeAt(0)===45?(l=l.slice(1),s.s=-1):s.s=1,one.test(l))BR(s,l);else throw Error(bo+l)}if(i.prototype=xe,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=E4,i.config=i.set=lne,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function lne(e){if(!e||typeof e!="object")throw Error(pr+"Object expected");var t,n,r,i=["precision",1,$s,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Ls(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(bo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(bo+n+": "+r);return this}var BO=E4(ine);Vn=new BO(1);const ot=BO;function sne(e){return dne(e)||fne(e)||cne(e)||une()}function une(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
322
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cne(e,t){if(e){if(typeof e=="string")return c1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c1(e,t)}}function fne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dne(e){if(Array.isArray(e))return c1(e)}function c1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hne=function(t){return t},A4={},T4=function(t){return t===A4},UR=function(t){return function n(){return arguments.length===0||arguments.length===1&&T4(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},pne=function e(t,n){return t===1?n:UR(function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];var s=i.filter(function(c){return c!==A4}).length;return s>=t?n.apply(void 0,i):e(t-s,UR(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=i.map(function(p){return T4(p)?f.shift():p});return n.apply(void 0,sne(m).concat(f))}))})},pm=function(t){return pne(t.length,t)},f1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},mne=pm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),vne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return hne;var i=n.reverse(),l=i[0],s=i.slice(1);return function(){return s.reduce(function(c,f){return f(c)},l.apply(void 0,arguments))}},d1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},j4=function(t){var n=null,r=null;return function(){for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return n&&l.every(function(c,f){return c===n[f]})||(n=l,r=t.apply(void 0,l)),r}};function gne(e){var t;return e===0?t=1:t=Math.floor(new ot(e).abs().log(10).toNumber())+1,t}function yne(e,t,n){for(var r=new ot(e),i=0,l=[];r.lt(t)&&i<1e5;)l.push(r.toNumber()),r=r.add(n),i++;return l}var bne=pm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),xne=pm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),wne=pm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const mm={rangeStep:yne,getDigitCount:gne,interpolateNumber:bne,uninterpolateNumber:xne,uninterpolateTruncation:wne};function h1(e){return _ne(e)||One(e)||C4(e)||Sne()}function Sne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
323
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function One(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _ne(e){if(Array.isArray(e))return p1(e)}function Ec(e,t){return Tne(e)||Ane(e,t)||C4(e,t)||Ene()}function Ene(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
324
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C4(e,t){if(e){if(typeof e=="string")return p1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p1(e,t)}}function p1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ane(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,l=void 0;try{for(var s=e[Symbol.iterator](),c;!(r=(c=s.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw l}}return n}}function Tne(e){if(Array.isArray(e))return e}function M4(e){var t=Ec(e,2),n=t[0],r=t[1],i=n,l=r;return n>r&&(i=r,l=n),[i,l]}function N4(e,t,n){if(e.lte(0))return new ot(0);var r=mm.getDigitCount(e.toNumber()),i=new ot(10).pow(r),l=e.div(i),s=r!==1?.05:.1,c=new ot(Math.ceil(l.div(s).toNumber())).add(n).mul(s),f=c.mul(i);return t?f:new ot(Math.ceil(f))}function jne(e,t,n){var r=1,i=new ot(e);if(!i.isint()&&n){var l=Math.abs(e);l<1?(r=new ot(10).pow(mm.getDigitCount(e)-1),i=new ot(Math.floor(i.div(r).toNumber())).mul(r)):l>1&&(i=new ot(Math.floor(e)))}else e===0?i=new ot(Math.floor((t-1)/2)):n||(i=new ot(Math.floor(e)));var s=Math.floor((t-1)/2),c=vne(mne(function(f){return i.add(new ot(f-s).mul(r)).toNumber()}),f1);return c(0,t)}function R4(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ot(0),tickMin:new ot(0),tickMax:new ot(0)};var l=N4(new ot(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new ot(0):(s=new ot(e).add(t).div(2),s=s.sub(new ot(s).mod(l)));var c=Math.ceil(s.sub(e).div(l).toNumber()),f=Math.ceil(new ot(t).sub(s).div(l).toNumber()),d=c+f+1;return d>n?R4(e,t,n,r,i+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:l,tickMin:s.sub(new ot(c).mul(l)),tickMax:s.add(new ot(f).mul(l))})}function Cne(e){var t=Ec(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),c=M4([n,r]),f=Ec(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(h1(f1(0,i-1).map(function(){return 1/0}))):[].concat(h1(f1(0,i-1).map(function(){return-1/0})),[m]);return n>r?d1(p):p}if(d===m)return jne(d,i,l);var y=R4(d,m,s,l),x=y.step,O=y.tickMin,w=y.tickMax,S=mm.rangeStep(O,w.add(new ot(.1).mul(x)),x);return n>r?d1(S):S}function Mne(e,t){var n=Ec(e,2),r=n[0],i=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=M4([r,i]),c=Ec(s,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,i];if(f===d)return[f];var m=Math.max(t,2),p=N4(new ot(d).sub(f).div(m-1),l,0),y=[].concat(h1(mm.rangeStep(new ot(f),new ot(d).sub(new ot(.99).mul(p)),p)),[d]);return r>i?d1(y):y}var Nne=j4(Cne),Rne=j4(Mne),Pne="Invariant failed";function To(e,t){throw new Error(Pne)}var Dne=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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)}function Yh(){return Yh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yh.apply(this,arguments)}function kne(e,t){return zne(e)||Ine(e,t)||Lne(e,t)||$ne()}function $ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
325
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lne(e,t){if(e){if(typeof e=="string")return HR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HR(e,t)}}function HR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ine(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function zne(e){if(Array.isArray(e))return e}function Bne(e,t){if(e==null)return{};var n=qne(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k4(r.key),r)}}function Fne(e,t,n){return t&&Hne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gne(e,t,n){return t=Wh(t),Vne(e,P4()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}function Vne(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 Yne(e)}function Yne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P4=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wh(e)}function Wne(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&&m1(e,t)}function m1(e,t){return m1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m1(e,t)}function D4(e,t,n){return t=k4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k4(e){var t=Kne(e,"string");return os(t)=="symbol"?t:t+""}function Kne(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mf=(function(e){function t(){return Une(this,t),Gne(this,t,arguments)}return Wne(t,e),Fne(t,[{key:"render",value:function(){var r=this.props,i=r.offset,l=r.layout,s=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,p=r.yAxis,y=Bne(r,Dne),x=qe(y,!1);this.props.direction==="x"&&m.type!=="number"&&To();var O=f.map(function(w){var S=d(w,c),E=S.x,T=S.y,A=S.value,M=S.errorVal;if(!M)return null;var j=[],N,R;if(Array.isArray(M)){var k=kne(M,2);N=k[0],R=k[1]}else N=R=M;if(l==="vertical"){var I=m.scale,V=T+i,z=V+s,B=V-s,G=I(A-N),K=I(A+R);j.push({x1:K,y1:z,x2:K,y2:B}),j.push({x1:G,y1:V,x2:K,y2:V}),j.push({x1:G,y1:z,x2:G,y2:B})}else if(l==="horizontal"){var X=p.scale,D=E+i,U=D-s,Y=D+s,W=X(A-N),oe=X(A+R);j.push({x1:U,y1:oe,x2:Y,y2:oe}),j.push({x1:D,y1:W,x2:D,y2:oe}),j.push({x1:U,y1:W,x2:Y,y2:W})}return L.createElement(jt,Yh({className:"recharts-errorBar",key:"bar-".concat(j.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),j.map(function($){return L.createElement("line",Yh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return L.createElement(jt,{className:"recharts-errorBars"},O)}}])})(L.Component);D4(mf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});D4(mf,"displayName","ErrorBar");function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}function FR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(n),!0).forEach(function(r){Xne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xne(e,t,n){return t=Qne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qne(e){var t=Zne(e,"string");return Ac(t)=="symbol"?t:t+""}function Zne(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $4=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,l=t.legendContent,s=Fn(n,go);if(!s)return null;var c=go.defaultProps,f=c!==void 0?oo(oo({},c),s.props):{},d;return s.props&&s.props.payload?d=s.props&&s.props.payload:l==="children"?d=(r||[]).reduce(function(m,p){var y=p.item,x=p.props,O=x.sectors||x.data||[];return m.concat(O.map(function(w){return{type:s.props.iconType||y.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(r||[]).map(function(m){var p=m.item,y=p.type.defaultProps,x=y!==void 0?oo(oo({},y),p.props):{},O=x.dataKey,w=x.name,S=x.legendType,E=x.hide;return{inactive:E,dataKey:O,type:f.iconType||S||"square",color:qO(p),value:w||O,payload:x}}),oo(oo(oo({},f),go.getWithHeight(s,i)),{},{payload:d,item:s})};function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(e)}function GR(e){return nre(e)||tre(e)||ere(e)||Jne()}function Jne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
326
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ere(e,t){if(e){if(typeof e=="string")return v1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v1(e,t)}}function tre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nre(e){if(Array.isArray(e))return v1(e)}function v1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VR(Object(n),!0).forEach(function(r){Yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yl(e,t,n){return t=rre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rre(e){var t=are(e,"string");return Tc(t)=="symbol"?t:t+""}function are(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wn(e,t,n){return Le(e)||Le(t)?n:Ht(t)?dr(e,t,n):De(t)?t(e):n}function nc(e,t,n,r){var i=nne(e,function(c){return Wn(c,t)});if(n==="number"){var l=i.filter(function(c){return ve(c)||parseFloat(c)});return l.length?[dm(l),fm(l)]:[1/0,-1/0]}var s=r?i.filter(function(c){return!Le(c)}):i;return s.map(function(c){return Ht(c)||c instanceof Date?c:""})}var ire=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,s=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(l&&l.axisType==="angleAxis"&&Math.abs(Math.abs(l.range[1]-l.range[0])-360)<=1e-6)for(var f=l.range,d=0;d<c;d++){var m=d>0?i[d-1].coordinate:i[c-1].coordinate,p=i[d].coordinate,y=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(jr(p-m)!==jr(y-p)){var O=[];if(jr(y-p)===jr(f[1]-f[0])){x=y;var w=p+f[1]-f[0];O[0]=Math.min(w,(w+m)/2),O[1]=Math.max(w,(w+m)/2)}else{x=m;var S=y+f[1]-f[0];O[0]=Math.min(p,(S+p)/2),O[1]=Math.max(p,(S+p)/2)}var E=[Math.min(p,(x+p)/2),Math.max(p,(x+p)/2)];if(t>E[0]&&t<=E[1]||t>=O[0]&&t<=O[1]){s=i[d].index;break}}else{var T=Math.min(m,y),A=Math.max(m,y);if(t>(T+p)/2&&t<=(A+p)/2){s=i[d].index;break}}}else for(var M=0;M<c;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){s=r[M].index;break}return s},qO=function(t){var n,r=t,i=r.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Et(Et({},t.type.defaultProps),t.props):t.props,s=l.stroke,c=l.fill,f;switch(i){case"Line":f=s;break;case"Area":case"Radar":f=s&&s!=="none"?s:c;break;default:f=c;break}return f},ore=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,l=i===void 0?{}:i;if(!l)return{};for(var s={},c=Object.keys(l),f=0,d=c.length;f<d;f++)for(var m=l[c[f]].stackGroups,p=Object.keys(m),y=0,x=p.length;y<x;y++){var O=m[p[y]],w=O.items,S=O.cateAxisId,E=w.filter(function(R){return Na(R.type).indexOf("Bar")>=0});if(E&&E.length){var T=E[0].type.defaultProps,A=T!==void 0?Et(Et({},T),E[0].props):E[0].props,M=A.barSize,j=A[S];s[j]||(s[j]=[]);var N=Le(M)?n:M;s[j].push({item:E[0],stackList:E.slice(1),barSize:Le(N)?void 0:Eo(N,r,0)})}}return s},lre=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,l=t.sizeList,s=l===void 0?[]:l,c=t.maxBarSize,f=s.length;if(f<1)return null;var d=Eo(n,i,0,!0),m,p=[];if(s[0].barSize===+s[0].barSize){var y=!1,x=i/f,O=s.reduce(function(M,j){return M+j.barSize||0},0);O+=(f-1)*d,O>=i&&(O-=(f-1)*d,d=0),O>=i&&x>0&&(y=!0,x*=.9,O=f*x);var w=(i-O)/2>>0,S={offset:w-d,size:0};m=s.reduce(function(M,j){var N={item:j.item,position:{offset:S.offset+S.size+d,size:y?x:j.barSize}},R=[].concat(GR(M),[N]);return S=R[R.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(k){R.push({item:k,position:S})}),R},p)}else{var E=Eo(r,i,0,!0);i-2*E-(f-1)*d<=0&&(d=0);var T=(i-2*E-(f-1)*d)/f;T>1&&(T>>=0);var A=c===+c?Math.min(T,c):T;m=s.reduce(function(M,j,N){var R=[].concat(GR(M),[{item:j.item,position:{offset:E+(T+d)*N+(T-A)/2,size:A}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(k){R.push({item:k,position:R[R.length-1].position})}),R},p)}return m},sre=function(t,n,r,i){var l=r.children,s=r.width,c=r.margin,f=s-(c.left||0)-(c.right||0),d=$4({children:l,legendWidth:f});if(d){var m=i||{},p=m.width,y=m.height,x=d.align,O=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&O==="middle")&&x!=="center"&&ve(t[x]))return Et(Et({},t),{},Yl({},x,t[x]+(p||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&O!=="middle"&&ve(t[O]))return Et(Et({},t),{},Yl({},O,t[O]+(y||0)))}return t},ure=function(t,n,r){return Le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},L4=function(t,n,r,i,l){var s=n.props.children,c=hr(s,mf).filter(function(d){return ure(i,l,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var p=Wn(m,r);if(Le(p))return d;var y=Array.isArray(p)?[dm(p),fm(p)]:[p,p],x=f.reduce(function(O,w){var S=Wn(m,w,0),E=y[0]-Math.abs(Array.isArray(S)?S[0]:S),T=y[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(E,O[0]),Math.max(T,O[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},cre=function(t,n,r,i,l){var s=n.map(function(c){return L4(t,c,r,l,i)}).filter(function(c){return!Le(c)});return s&&s.length?s.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},I4=function(t,n,r,i,l){var s=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&L4(t,f,d,i)||nc(t,d,r,l)});if(r==="number")return s.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return s.reduce(function(f,d){for(var m=0,p=d.length;m<p;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},z4=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},B4=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var l,s,c=t.map(function(f){return f.coordinate===n&&(l=!0),f.coordinate===r&&(s=!0),f.coordinate});return l||c.push(n),s||c.push(r),c},Ca=function(t,n,r){if(!t)return null;var i=t.scale,l=t.duplicateDomain,s=t.type,c=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?jr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(p){var y=l?l.indexOf(p):p;return{coordinate:i(y)+d,value:p,offset:d}});return m.filter(function(p){return!sf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,y){return{coordinate:i(p)+d,value:p,index:y,offset:d}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+d,value:p,offset:d}}):i.domain().map(function(p,y){return{coordinate:i(p)+d,value:l?l[p]:p,index:y,offset:d}})},kx=new WeakMap,Wd=function(t,n){if(typeof n!="function")return t;kx.has(t)||kx.set(t,new WeakMap);var r=kx.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},fre=function(t,n,r){var i=t.scale,l=t.type,s=t.layout,c=t.axisType;if(i==="auto")return s==="radial"&&c==="radiusAxis"?{scale:bc(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Uh(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:tc(),realScaleType:"point"}:l==="category"?{scale:bc(),realScaleType:"band"}:{scale:Uh(),realScaleType:"linear"};if(_o(i)){var f="scale".concat(Zp(i));return{scale:(NR[f]||tc)(),realScaleType:NR[f]?f:"point"}}return De(i)?{scale:i}:{scale:tc(),realScaleType:"point"}},YR=1e-4,dre=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),l=Math.min(i[0],i[1])-YR,s=Math.max(i[0],i[1])+YR,c=t(n[0]),f=t(n[r-1]);(c<l||c>s||f<l||f>s)&&t.domain([n[0],n[r-1]])}},hre=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},pre=function(t,n){if(!n||n.length!==2||!ve(n[0])||!ve(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),l=[t[0],t[1]];return(!ve(t[0])||t[0]<r)&&(l[0]=r),(!ve(t[1])||t[1]>i)&&(l[1]=i),l[0]>i&&(l[0]=i),l[1]<r&&(l[1]=r),l},mre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var l=0,s=0,c=0;c<n;++c){var f=sf(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1]):(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1])}},vre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var l=0,s=0;s<n;++s){var c=sf(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=l,t[s][r][1]=l+c,l=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},gre={sign:mre,expand:JK,none:Zl,silhouette:eX,wiggle:tX,positive:vre},yre=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),l=gre[r],s=ZK().keys(i).value(function(c,f){return+Wn(c,f,0)}).order(Vw).offset(l);return s(t)},bre=function(t,n,r,i,l,s){if(!t)return null;var c=s?n.reverse():n,f={},d=c.reduce(function(p,y){var x,O=(x=y.type)!==null&&x!==void 0&&x.defaultProps?Et(Et({},y.type.defaultProps),y.props):y.props,w=O.stackId,S=O.hide;if(S)return p;var E=O[r],T=p[E]||{hasStack:!1,stackGroups:{}};if(Ht(w)){var A=T.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};A.items.push(y),T.hasStack=!0,T.stackGroups[w]=A}else T.stackGroups[uf("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[y]};return Et(Et({},p),{},Yl({},E,T))},f),m={};return Object.keys(d).reduce(function(p,y){var x=d[y];if(x.hasStack){var O={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,S){var E=x.stackGroups[S];return Et(Et({},w),{},Yl({},S,{numericAxisId:r,cateAxisId:i,items:E.items,stackedData:yre(t,E.items,l)}))},O)}return Et(Et({},p),{},Yl({},y,x))},m)},xre=function(t,n){var r=n.realScaleType,i=n.type,l=n.tickCount,s=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(l&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=Nne(d,l,c);return t.domain([dm(m),fm(m)]),{niceTicks:m}}if(l&&i==="number"){var p=t.domain(),y=Rne(p,l,c);return{niceTicks:y}}return null};function WR(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,l=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Le(i[t.dataKey])){var c=Sh(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[l]?n[l].coordinate+r/2:null}var f=Wn(i,Le(s)?t.dataKey:s);return Le(f)?null:t.scale(f)}var KR=function(t){var n=t.axis,r=t.ticks,i=t.offset,l=t.bandSize,s=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+i:null;var f=Wn(s,n.dataKey,n.domain[c]);return Le(f)?null:n.scale(f)-l/2+i},wre=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return i<=0&&l>=0?0:l<0?l:i}return r[0]},Sre=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Et(Et({},t.type.defaultProps),t.props):t.props,l=i.stackId;if(Ht(l)){var s=n[l];if(s){var c=s.items.indexOf(t);return c>=0?s.stackedData[c]:null}}return null},Ore=function(t){return t.reduce(function(n,r){return[dm(r.concat([n[0]]).filter(ve)),fm(r.concat([n[1]]).filter(ve))]},[1/0,-1/0])},q4=function(t,n,r){return Object.keys(t).reduce(function(i,l){var s=t[l],c=s.stackedData,f=c.reduce(function(d,m){var p=Ore(m.slice(n,r+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},XR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,QR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,g1=function(t,n,r){if(De(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ve(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(XR.test(t[0])){var l=+XR.exec(t[0])[1];i[0]=n[0]-l}else De(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ve(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(QR.test(t[1])){var s=+QR.exec(t[1])[1];i[1]=n[1]+s}else De(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Kh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var l=mO(n,function(p){return p.coordinate}),s=1/0,c=1,f=l.length;c<f;c++){var d=l[c],m=l[c-1];s=Math.min((d.coordinate||0)-(m.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},ZR=function(t,n,r){return!t||!t.length||hm(t,dr(r,"type.defaultProps.domain"))?n:t},U4=function(t,n){var r=t.type.defaultProps?Et(Et({},t.type.defaultProps),t.props):t.props,i=r.dataKey,l=r.name,s=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return Et(Et({},qe(t,!1)),{},{dataKey:i,unit:s,formatter:c,name:l||i,color:qO(t),value:Wn(n,i),type:f,payload:n,chartType:d,hide:m})};function jc(e){"@babel/helpers - typeof";return jc=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},jc(e)}function JR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JR(Object(n),!0).forEach(function(r){_re(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _re(e,t,n){return t=Ere(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ere(e){var t=Are(e,"string");return jc(t)=="symbol"?t:t+""}function Are(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xh=Math.PI/180,Tre=function(t){return t*180/Math.PI},on=function(t,n,r,i){return{x:t+Math.cos(-Xh*i)*r,y:n+Math.sin(-Xh*i)*r}},jre=function(t,n){var r=t.x,i=t.y,l=n.x,s=n.y;return Math.sqrt(Math.pow(r-l,2)+Math.pow(i-s,2))},Cre=function(t,n){var r=t.x,i=t.y,l=n.cx,s=n.cy,c=jre({x:r,y:i},{x:l,y:s});if(c<=0)return{radius:c};var f=(r-l)/c,d=Math.acos(f);return i>s&&(d=2*Math.PI-d),{radius:c,angle:Tre(d),angleInRadian:d}},Mre=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),l=Math.floor(r/360),s=Math.min(i,l);return{startAngle:n-s*360,endAngle:r-s*360}},Nre=function(t,n){var r=n.startAngle,i=n.endAngle,l=Math.floor(r/360),s=Math.floor(i/360),c=Math.min(l,s);return t+c*360},tP=function(t,n){var r=t.x,i=t.y,l=Cre({x:r,y:i},n),s=l.radius,c=l.angle,f=n.innerRadius,d=n.outerRadius;if(s<f||s>d)return!1;if(s===0)return!0;var m=Mre(n),p=m.startAngle,y=m.endAngle,x=c,O;if(p<=y){for(;x>y;)x-=360;for(;x<p;)x+=360;O=x>=p&&x<=y}else{for(;x>p;)x-=360;for(;x<y;)x+=360;O=x>=y&&x<=p}return O?eP(eP({},n),{},{radius:s,angle:Nre(x,n)}):null};function Cc(e){"@babel/helpers - typeof";return Cc=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},Cc(e)}var Rre=["offset"];function Pre(e){return Lre(e)||$re(e)||kre(e)||Dre()}function Dre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
327
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kre(e,t){if(e){if(typeof e=="string")return y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y1(e,t)}}function $re(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lre(e){if(Array.isArray(e))return y1(e)}function y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ire(e,t){if(e==null)return{};var n=zre(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nP(Object(n),!0).forEach(function(r){Bre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bre(e,t,n){return t=qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qre(e){var t=Ure(e,"string");return Cc(t)=="symbol"?t:t+""}function Ure(e,t){if(Cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mc.apply(this,arguments)}var Hre=function(t){var n=t.value,r=t.formatter,i=Le(t.children)?n:t.children;return De(r)?r(i):i},Fre=function(t,n){var r=jr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Gre=function(t,n,r){var i=t.position,l=t.viewBox,s=t.offset,c=t.className,f=l,d=f.cx,m=f.cy,p=f.innerRadius,y=f.outerRadius,x=f.startAngle,O=f.endAngle,w=f.clockWise,S=(p+y)/2,E=Fre(x,O),T=E>=0?1:-1,A,M;i==="insideStart"?(A=x+T*s,M=w):i==="insideEnd"?(A=O-T*s,M=!w):i==="end"&&(A=O+T*s,M=w),M=E<=0?M:!M;var j=on(d,m,S,A),N=on(d,m,S,A+(M?1:-1)*359),R="M".concat(j.x,",").concat(j.y,`
328
- A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`,
329
- `).concat(N.x,",").concat(N.y),k=Le(t.id)?uf("recharts-radial-line-"):t.id;return L.createElement("text",Mc({},r,{dominantBaseline:"central",className:Ue("recharts-radial-bar-label",c)}),L.createElement("defs",null,L.createElement("path",{id:k,d:R})),L.createElement("textPath",{xlinkHref:"#".concat(k)},n))},Vre=function(t){var n=t.viewBox,r=t.offset,i=t.position,l=n,s=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,m=l.startAngle,p=l.endAngle,y=(m+p)/2;if(i==="outside"){var x=on(s,c,d+r,y),O=x.x,w=x.y;return{x:O,y:w,textAnchor:O>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"end"};var S=(f+d)/2,E=on(s,c,S,y),T=E.x,A=E.y;return{x:T,y:A,textAnchor:"middle",verticalAnchor:"middle"}},Yre=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,l=t.position,s=n,c=s.x,f=s.y,d=s.width,m=s.height,p=m>=0?1:-1,y=p*i,x=p>0?"end":"start",O=p>0?"start":"end",w=d>=0?1:-1,S=w*i,E=w>0?"end":"start",T=w>0?"start":"end";if(l==="top"){var A={x:c+d/2,y:f-p*i,textAnchor:"middle",verticalAnchor:x};return qt(qt({},A),r?{height:Math.max(f-r.y,0),width:d}:{})}if(l==="bottom"){var M={x:c+d/2,y:f+m+y,textAnchor:"middle",verticalAnchor:O};return qt(qt({},M),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(l==="left"){var j={x:c-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"};return qt(qt({},j),r?{width:Math.max(j.x-r.x,0),height:m}:{})}if(l==="right"){var N={x:c+d+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"};return qt(qt({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:m}:{})}var R=r?{width:d,height:m}:{};return l==="insideLeft"?qt({x:c+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"},R):l==="insideRight"?qt({x:c+d-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"},R):l==="insideTop"?qt({x:c+d/2,y:f+y,textAnchor:"middle",verticalAnchor:O},R):l==="insideBottom"?qt({x:c+d/2,y:f+m-y,textAnchor:"middle",verticalAnchor:x},R):l==="insideTopLeft"?qt({x:c+S,y:f+y,textAnchor:T,verticalAnchor:O},R):l==="insideTopRight"?qt({x:c+d-S,y:f+y,textAnchor:E,verticalAnchor:O},R):l==="insideBottomLeft"?qt({x:c+S,y:f+m-y,textAnchor:T,verticalAnchor:x},R):l==="insideBottomRight"?qt({x:c+d-S,y:f+m-y,textAnchor:E,verticalAnchor:x},R):Rs(l)&&(ve(l.x)||ho(l.x))&&(ve(l.y)||ho(l.y))?qt({x:c+Eo(l.x,d),y:f+Eo(l.y,m),textAnchor:"end",verticalAnchor:"end"},R):qt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},R)},Wre=function(t){return"cx"in t&&ve(t.cx)};function hn(e){var t=e.offset,n=t===void 0?5:t,r=Ire(e,Rre),i=qt({offset:n},r),l=i.viewBox,s=i.position,c=i.value,f=i.children,d=i.content,m=i.className,p=m===void 0?"":m,y=i.textBreakAll;if(!l||Le(c)&&Le(f)&&!_.isValidElement(d)&&!De(d))return null;if(_.isValidElement(d))return _.cloneElement(d,i);var x;if(De(d)){if(x=_.createElement(d,i),_.isValidElement(x))return x}else x=Hre(i);var O=Wre(l),w=qe(i,!0);if(O&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Gre(i,x,w);var S=O?Vre(i):Yre(i);return L.createElement(kh,Mc({className:Ue("recharts-label",p)},w,S,{breakAll:y}),x)}hn.displayName="Label";var H4=function(t){var n=t.cx,r=t.cy,i=t.angle,l=t.startAngle,s=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,p=t.x,y=t.y,x=t.top,O=t.left,w=t.width,S=t.height,E=t.clockWise,T=t.labelViewBox;if(T)return T;if(ve(w)&&ve(S)){if(ve(p)&&ve(y))return{x:p,y,width:w,height:S};if(ve(x)&&ve(O))return{x,y:O,width:w,height:S}}return ve(p)&&ve(y)?{x:p,y,width:0,height:0}:ve(n)&&ve(r)?{cx:n,cy:r,startAngle:l||i||0,endAngle:s||i||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:E}:t.viewBox?t.viewBox:{}},Kre=function(t,n){return t?t===!0?L.createElement(hn,{key:"label-implicit",viewBox:n}):Ht(t)?L.createElement(hn,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===hn?_.cloneElement(t,{key:"label-implicit",viewBox:n}):L.createElement(hn,{key:"label-implicit",content:t,viewBox:n}):De(t)?L.createElement(hn,{key:"label-implicit",content:t,viewBox:n}):Rs(t)?L.createElement(hn,Mc({viewBox:n},t,{key:"label-implicit"})):null:null},Xre=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,l=H4(t),s=hr(i,hn).map(function(f,d){return _.cloneElement(f,{viewBox:n||l,key:"label-".concat(d)})});if(!r)return s;var c=Kre(t.label,n||l);return[c].concat(Pre(s))};hn.parseViewBox=H4;hn.renderCallByParent=Xre;var $x,rP;function Qre(){if(rP)return $x;rP=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return $x=e,$x}var Zre=Qre();const Jre=lt(Zre);function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}var eae=["valueAccessor"],tae=["data","dataKey","clockWise","id","textBreakAll"];function nae(e){return oae(e)||iae(e)||aae(e)||rae()}function rae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
330
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aae(e,t){if(e){if(typeof e=="string")return b1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b1(e,t)}}function iae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oae(e){if(Array.isArray(e))return b1(e)}function b1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qh.apply(this,arguments)}function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){lae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lae(e,t,n){return t=sae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sae(e){var t=uae(e,"string");return Nc(t)=="symbol"?t:t+""}function uae(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oP(e,t){if(e==null)return{};var n=cae(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var fae=function(t){return Array.isArray(t.value)?Jre(t.value):t.value};function Ei(e){var t=e.valueAccessor,n=t===void 0?fae:t,r=oP(e,eae),i=r.data,l=r.dataKey,s=r.clockWise,c=r.id,f=r.textBreakAll,d=oP(r,tae);return!i||!i.length?null:L.createElement(jt,{className:"recharts-label-list"},i.map(function(m,p){var y=Le(l)?n(m,p):Wn(m&&m.payload,l),x=Le(c)?{}:{id:"".concat(c,"-").concat(p)};return L.createElement(hn,Qh({},qe(m,!0),d,x,{parentViewBox:m.parentViewBox,value:y,textBreakAll:f,viewBox:hn.parseViewBox(Le(s)?m:iP(iP({},m),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}Ei.displayName="LabelList";function dae(e,t){return e?e===!0?L.createElement(Ei,{key:"labelList-implicit",data:t}):L.isValidElement(e)||De(e)?L.createElement(Ei,{key:"labelList-implicit",data:t,content:e}):Rs(e)?L.createElement(Ei,Qh({data:t},e,{key:"labelList-implicit"})):null:null}function hae(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=hr(r,Ei).map(function(s,c){return _.cloneElement(s,{data:t,key:"labelList-".concat(c)})});if(!n)return i;var l=dae(e.label,t);return[l].concat(nae(i))}Ei.renderCallByParent=hae;function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}function x1(){return x1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x1.apply(this,arguments)}function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pae(e,t,n){return t=mae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mae(e){var t=vae(e,"string");return Rc(t)=="symbol"?t:t+""}function vae(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gae=function(t,n){var r=jr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Kd=function(t){var n=t.cx,r=t.cy,i=t.radius,l=t.angle,s=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+i,p=Math.asin(f/m)/Xh,y=d?l:l+s*p,x=on(n,r,m,y),O=on(n,r,i,y),w=d?l-s*p:l,S=on(n,r,m*Math.cos(p*Xh),w);return{center:x,circleTangency:O,lineTangency:S,theta:p}},F4=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.startAngle,c=t.endAngle,f=gae(s,c),d=s+f,m=on(n,r,l,s),p=on(n,r,l,d),y="M ".concat(m.x,",").concat(m.y,`
331
- A `).concat(l,",").concat(l,`,0,
332
- `).concat(+(Math.abs(f)>180),",").concat(+(s>d),`,
333
- `).concat(p.x,",").concat(p.y,`
334
- `);if(i>0){var x=on(n,r,i,s),O=on(n,r,i,d);y+="L ".concat(O.x,",").concat(O.y,`
335
- A `).concat(i,",").concat(i,`,0,
336
- `).concat(+(Math.abs(f)>180),",").concat(+(s<=d),`,
337
- `).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},yae=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,p=jr(m-d),y=Kd({cx:n,cy:r,radius:l,angle:d,sign:p,cornerRadius:s,cornerIsExternal:f}),x=y.circleTangency,O=y.lineTangency,w=y.theta,S=Kd({cx:n,cy:r,radius:l,angle:m,sign:-p,cornerRadius:s,cornerIsExternal:f}),E=S.circleTangency,T=S.lineTangency,A=S.theta,M=f?Math.abs(d-m):Math.abs(d-m)-w-A;if(M<0)return c?"M ".concat(O.x,",").concat(O.y,`
338
- a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
339
- a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
340
- `):F4({cx:n,cy:r,innerRadius:i,outerRadius:l,startAngle:d,endAngle:m});var j="M ".concat(O.x,",").concat(O.y,`
341
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
342
- A`).concat(l,",").concat(l,",0,").concat(+(M>180),",").concat(+(p<0),",").concat(E.x,",").concat(E.y,`
343
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
344
- `);if(i>0){var N=Kd({cx:n,cy:r,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),R=N.circleTangency,k=N.lineTangency,I=N.theta,V=Kd({cx:n,cy:r,radius:i,angle:m,sign:-p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),z=V.circleTangency,B=V.lineTangency,G=V.theta,K=f?Math.abs(d-m):Math.abs(d-m)-I-G;if(K<0&&s===0)return"".concat(j,"L").concat(n,",").concat(r,"Z");j+="L".concat(B.x,",").concat(B.y,`
345
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.y,`
346
- A`).concat(i,",").concat(i,",0,").concat(+(K>180),",").concat(+(p>0),",").concat(R.x,",").concat(R.y,`
347
- A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(k.x,",").concat(k.y,"Z")}else j+="L".concat(n,",").concat(r,"Z");return j},bae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},G4=function(t){var n=sP(sP({},bae),t),r=n.cx,i=n.cy,l=n.innerRadius,s=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,p=n.endAngle,y=n.className;if(s<l||m===p)return null;var x=Ue("recharts-sector",y),O=s-l,w=Eo(c,O,0,!0),S;return w>0&&Math.abs(m-p)<360?S=yae({cx:r,cy:i,innerRadius:l,outerRadius:s,cornerRadius:Math.min(w,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):S=F4({cx:r,cy:i,innerRadius:l,outerRadius:s,startAngle:m,endAngle:p}),L.createElement("path",x1({},qe(n,!0),{className:x,d:S,role:"img"}))};function Pc(e){"@babel/helpers - typeof";return Pc=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},Pc(e)}function w1(){return w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w1.apply(this,arguments)}function uP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(n),!0).forEach(function(r){xae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xae(e,t,n){return t=wae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wae(e){var t=Sae(e,"string");return Pc(t)=="symbol"?t:t+""}function Sae(e,t){if(Pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fP={curveBasisClosed:qK,curveBasisOpen:UK,curveBasis:BK,curveBumpX:AK,curveBumpY:TK,curveLinearClosed:HK,curveLinear:em,curveMonotoneX:FK,curveMonotoneY:GK,curveNatural:VK,curveStep:YK,curveStepAfter:KK,curveStepBefore:WK},Xd=function(t){return t.x===+t.x&&t.y===+t.y},Hu=function(t){return t.x},Fu=function(t){return t.y},Oae=function(t,n){if(De(t))return t;var r="curve".concat(Zp(t));return(r==="curveMonotone"||r==="curveBump")&&n?fP["".concat(r).concat(n==="vertical"?"Y":"X")]:fP[r]||em},_ae=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,l=i===void 0?[]:i,s=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=Oae(r,c),p=d?l.filter(function(w){return Xd(w)}):l,y;if(Array.isArray(s)){var x=d?s.filter(function(w){return Xd(w)}):s,O=p.map(function(w,S){return cP(cP({},w),{},{base:x[S]})});return c==="vertical"?y=qd().y(Fu).x1(Hu).x0(function(w){return w.base.x}):y=qd().x(Hu).y1(Fu).y0(function(w){return w.base.y}),y.defined(Xd).curve(m),y(O)}return c==="vertical"&&ve(s)?y=qd().y(Fu).x1(Hu).x0(s):ve(s)?y=qd().x(Hu).y1(Fu).y0(s):y=KI().x(Hu).y(Fu),y.defined(Xd).curve(m),y(p)},S1=function(t){var n=t.className,r=t.points,i=t.path,l=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?_ae(t):i;return _.createElement("path",w1({},qe(t,!1),Oh(t),{className:Ue("recharts-curve",n),d:s,ref:l}))},Lx={exports:{}},Ix,dP;function Eae(){if(dP)return Ix;dP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ix=e,Ix}var zx,hP;function Aae(){if(hP)return zx;hP=1;var e=Eae();function t(){}function n(){}return n.resetWarningCache=t,zx=function(){function r(s,c,f,d,m,p){if(p!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},zx}var pP;function Tae(){return pP||(pP=1,Lx.exports=Aae()()),Lx.exports}var jae=Tae();const Ze=lt(jae);var Cae=Object.getOwnPropertyNames,Mae=Object.getOwnPropertySymbols,Nae=Object.prototype.hasOwnProperty;function mP(e,t){return function(r,i,l){return e(r,i,l)&&t(r,i,l)}}function Qd(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var l=i.cache,s=l.get(n),c=l.get(r);if(s&&c)return s===r&&c===n;l.set(n,r),l.set(r,n);var f=e(n,r,i);return l.delete(n),l.delete(r),f}}function Rae(e){return e!=null?e[Symbol.toStringTag]:void 0}function vP(e){return Cae(e).concat(Mae(e))}var Pae=Object.hasOwn||(function(e,t){return Nae.call(e,t)});function $o(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Dae="__v",kae="__o",$ae="_owner",gP=Object.getOwnPropertyDescriptor,yP=Object.keys;function Lae(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Iae(e,t){return $o(e.getTime(),t.getTime())}function zae(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Bae(e,t){return e===t}function bP(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),l=e.entries(),s,c,f=0;(s=l.next())&&!s.done;){for(var d=t.entries(),m=!1,p=0;(c=d.next())&&!c.done;){if(i[p]){p++;continue}var y=s.value,x=c.value;if(n.equals(y[0],x[0],f,p,e,t,n)&&n.equals(y[1],x[1],y[0],x[0],e,t,n)){m=i[p]=!0;break}p++}if(!m)return!1;f++}return!0}var qae=$o;function Uae(e,t,n){var r=yP(e),i=r.length;if(yP(t).length!==i)return!1;for(;i-- >0;)if(!V4(e,t,n,r[i]))return!1;return!0}function Gu(e,t,n){var r=vP(e),i=r.length;if(vP(t).length!==i)return!1;for(var l,s,c;i-- >0;)if(l=r[i],!V4(e,t,n,l)||(s=gP(e,l),c=gP(t,l),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function Hae(e,t){return $o(e.valueOf(),t.valueOf())}function Fae(e,t){return e.source===t.source&&e.flags===t.flags}function xP(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),l=e.values(),s,c;(s=l.next())&&!s.done;){for(var f=t.values(),d=!1,m=0;(c=f.next())&&!c.done;){if(!i[m]&&n.equals(s.value,c.value,s.value,c.value,e,t,n)){d=i[m]=!0;break}m++}if(!d)return!1}return!0}function Gae(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Vae(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 V4(e,t,n,r){return(r===$ae||r===kae||r===Dae)&&(e.$$typeof||t.$$typeof)?!0:Pae(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Yae="[object Arguments]",Wae="[object Boolean]",Kae="[object Date]",Xae="[object Error]",Qae="[object Map]",Zae="[object Number]",Jae="[object Object]",eie="[object RegExp]",tie="[object Set]",nie="[object String]",rie="[object URL]",aie=Array.isArray,wP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SP=Object.assign,iie=Object.prototype.toString.call.bind(Object.prototype.toString);function oie(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,l=e.areMapsEqual,s=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,p=e.areTypedArraysEqual,y=e.areUrlsEqual,x=e.unknownTagComparators;return function(w,S,E){if(w===S)return!0;if(w==null||S==null)return!1;var T=typeof w;if(T!==typeof S)return!1;if(T!=="object")return T==="number"?s(w,S,E):T==="function"?i(w,S,E):!1;var A=w.constructor;if(A!==S.constructor)return!1;if(A===Object)return c(w,S,E);if(aie(w))return t(w,S,E);if(wP!=null&&wP(w))return p(w,S,E);if(A===Date)return n(w,S,E);if(A===RegExp)return d(w,S,E);if(A===Map)return l(w,S,E);if(A===Set)return m(w,S,E);var M=iie(w);if(M===Kae)return n(w,S,E);if(M===eie)return d(w,S,E);if(M===Qae)return l(w,S,E);if(M===tie)return m(w,S,E);if(M===Jae)return typeof w.then!="function"&&typeof S.then!="function"&&c(w,S,E);if(M===rie)return y(w,S,E);if(M===Xae)return r(w,S,E);if(M===Yae)return c(w,S,E);if(M===Wae||M===Zae||M===nie)return f(w,S,E);if(x){var j=x[M];if(!j){var N=Rae(w);N&&(j=x[N])}if(j)return j(w,S,E)}return!1}}function lie(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Gu:Lae,areDatesEqual:Iae,areErrorsEqual:zae,areFunctionsEqual:Bae,areMapsEqual:r?mP(bP,Gu):bP,areNumbersEqual:qae,areObjectsEqual:r?Gu:Uae,arePrimitiveWrappersEqual:Hae,areRegExpsEqual:Fae,areSetsEqual:r?mP(xP,Gu):xP,areTypedArraysEqual:r?Gu:Gae,areUrlsEqual:Vae,unknownTagComparators:void 0};if(n&&(i=SP({},i,n(i))),t){var l=Qd(i.areArraysEqual),s=Qd(i.areMapsEqual),c=Qd(i.areObjectsEqual),f=Qd(i.areSetsEqual);i=SP({},i,{areArraysEqual:l,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:f})}return i}function sie(e){return function(t,n,r,i,l,s,c){return e(t,n,c)}}function uie(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,l=e.strict;if(r)return function(f,d){var m=r(),p=m.cache,y=p===void 0?t?new WeakMap:void 0:p,x=m.meta;return n(f,d,{cache:y,equals:i,meta:x,strict:l})};if(t)return function(f,d){return n(f,d,{cache:new WeakMap,equals:i,meta:void 0,strict:l})};var s={cache:void 0,equals:i,meta:void 0,strict:l};return function(f,d){return n(f,d,s)}}var cie=$i();$i({strict:!0});$i({circular:!0});$i({circular:!0,strict:!0});$i({createInternalComparator:function(){return $o}});$i({strict:!0,createInternalComparator:function(){return $o}});$i({circular:!0,createInternalComparator:function(){return $o}});$i({circular:!0,createInternalComparator:function(){return $o},strict:!0});function $i(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,l=e.strict,s=l===void 0?!1:l,c=lie(e),f=oie(c),d=r?r(f):sie(f);return uie({circular:n,comparator:f,createState:i,equals:d,strict:s})}function fie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(l){n<0&&(n=l),l-n>t?(e(l),n=-1):fie(i)};requestAnimationFrame(r)}function O1(e){"@babel/helpers - typeof";return O1=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},O1(e)}function die(e){return vie(e)||mie(e)||pie(e)||hie()}function hie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
348
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pie(e,t){if(e){if(typeof e=="string")return _P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _P(e,t)}}function _P(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vie(e){if(Array.isArray(e))return e}function gie(){var e={},t=function(){return null},n=!1,r=function i(l){if(!n){if(Array.isArray(l)){if(!l.length)return;var s=l,c=die(s),f=c[0],d=c.slice(1);if(typeof f=="number"){OP(i.bind(null,d),f);return}i(f),OP(i.bind(null,d));return}O1(l)==="object"&&(e=l,t(e)),typeof l=="function"&&l()}};return{stop:function(){n=!0},start:function(l){n=!1,r(l)},subscribe:function(l){return t=l,function(){t=function(){return null}}}}}function Dc(e){"@babel/helpers - typeof";return Dc=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},Dc(e)}function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(n),!0).forEach(function(r){Y4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y4(e,t,n){return t=yie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yie(e){var t=bie(e,"string");return Dc(t)==="symbol"?t:String(t)}function bie(e,t){if(Dc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(l){return i.includes(l)})})},wie=function(t){return t},Sie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},rc=function(t,n){return Object.keys(n).reduce(function(r,i){return AP(AP({},r),{},Y4({},i,t(i,n[i])))},{})},TP=function(t,n,r){return t.map(function(i){return"".concat(Sie(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Oie(e,t){return Aie(e)||Eie(e,t)||W4(e,t)||_ie()}function _ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
349
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Aie(e){if(Array.isArray(e))return e}function Tie(e){return Mie(e)||Cie(e)||W4(e)||jie()}function jie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
350
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W4(e,t){if(e){if(typeof e=="string")return _1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _1(e,t)}}function Cie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mie(e){if(Array.isArray(e))return _1(e)}function _1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Zh=1e-4,K4=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},X4=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},jP=function(t,n){return function(r){var i=K4(t,n);return X4(i,r)}},Nie=function(t,n){return function(r){var i=K4(t,n),l=[].concat(Tie(i.map(function(s,c){return s*c}).slice(1)),[0]);return X4(l,r)}},CP=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1],s=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,l=0,s=1,c=1;break;case"ease":i=.25,l=.1,s=.25,c=1;break;case"ease-in":i=.42,l=0,s=1,c=1;break;case"ease-out":i=.42,l=0,s=.58,c=1;break;case"ease-in-out":i=0,l=0,s=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),m=Oie(d,4);i=m[0],l=m[1],s=m[2],c=m[3]}}}var p=jP(i,s),y=jP(l,c),x=Nie(i,s),O=function(E){return E>1?1:E<0?0:E},w=function(E){for(var T=E>1?1:E,A=T,M=0;M<8;++M){var j=p(A)-T,N=x(A);if(Math.abs(j-T)<Zh||N<Zh)return y(A);A=O(A-j/N)}return y(A)};return w.isStepper=!1,w},Rie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,l=i===void 0?8:i,s=t.dt,c=s===void 0?17:s,f=function(m,p,y){var x=-(m-p)*r,O=y*l,w=y+(x-O)*c/1e3,S=y*c/1e3+m;return Math.abs(S-p)<Zh&&Math.abs(w)<Zh?[p,0]:[S,w]};return f.isStepper=!0,f.dt=c,f},Pie=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return CP(i);case"spring":return Rie();default:if(i.split("(")[0]==="cubic-bezier")return CP(i)}return typeof i=="function"?i:null};function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function MP(e){return $ie(e)||kie(e)||Q4(e)||Die()}function Die(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
351
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ie(e){if(Array.isArray(e))return A1(e)}function NP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(n),!0).forEach(function(r){E1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E1(e,t,n){return t=Lie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lie(e){var t=Iie(e,"string");return kc(t)==="symbol"?t:String(t)}function Iie(e,t){if(kc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zie(e,t){return Uie(e)||qie(e,t)||Q4(e,t)||Bie()}function Bie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
352
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q4(e,t){if(e){if(typeof e=="string")return A1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A1(e,t)}}function A1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Uie(e){if(Array.isArray(e))return e}var Jh=function(t,n,r){return t+(n-t)*r},T1=function(t){var n=t.from,r=t.to;return n!==r},Hie=function e(t,n,r){var i=rc(function(l,s){if(T1(s)){var c=t(s.from,s.to,s.velocity),f=zie(c,2),d=f[0],m=f[1];return rn(rn({},s),{},{from:d,velocity:m})}return s},n);return r<1?rc(function(l,s){return T1(s)?rn(rn({},s),{},{velocity:Jh(s.velocity,i[l].velocity,r),from:Jh(s.from,i[l].from,r)}):s},n):e(t,i,r-1)};const Fie=(function(e,t,n,r,i){var l=xie(e,t),s=l.reduce(function(S,E){return rn(rn({},S),{},E1({},E,[e[E],t[E]]))},{}),c=l.reduce(function(S,E){return rn(rn({},S),{},E1({},E,{from:e[E],velocity:0,to:t[E]}))},{}),f=-1,d,m,p=function(){return null},y=function(){return rc(function(E,T){return T.from},c)},x=function(){return!Object.values(c).filter(T1).length},O=function(E){d||(d=E);var T=E-d,A=T/n.dt;c=Hie(n,c,A),i(rn(rn(rn({},e),t),y())),d=E,x()||(f=requestAnimationFrame(p))},w=function(E){m||(m=E);var T=(E-m)/r,A=rc(function(j,N){return Jh.apply(void 0,MP(N).concat([n(T)]))},s);if(i(rn(rn(rn({},e),t),A)),T<1)f=requestAnimationFrame(p);else{var M=rc(function(j,N){return Jh.apply(void 0,MP(N).concat([n(1)]))},s);i(rn(rn(rn({},e),t),M))}};return p=n.isStepper?O:w,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});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)}var Gie=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Vie(e,t){if(e==null)return{};var n=Yie(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Bx(e){return Qie(e)||Xie(e)||Kie(e)||Wie()}function Wie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
353
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kie(e,t){if(e){if(typeof e=="string")return j1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j1(e,t)}}function Xie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qie(e){if(Array.isArray(e))return j1(e)}function j1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(n),!0).forEach(function(r){Qu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qu(e,t,n){return t=Z4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z4(r.key),r)}}function eoe(e,t,n){return t&&Jie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Z4(e){var t=toe(e,"string");return ls(t)==="symbol"?t:String(t)}function toe(e,t){if(ls(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(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&&C1(e,t)}function C1(e,t){return C1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},C1(e,t)}function roe(e){var t=aoe();return function(){var r=ep(e),i;if(t){var l=ep(this).constructor;i=Reflect.construct(r,arguments,l)}else i=r.apply(this,arguments);return M1(this,i)}}function M1(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 N1(e)}function N1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aoe(){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 ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}var Ba=(function(e){noe(n,e);var t=roe(n);function n(r,i){var l;Zie(this,n),l=t.call(this,r,i);var s=l.props,c=s.isActive,f=s.attributeName,d=s.from,m=s.to,p=s.steps,y=s.children,x=s.duration;if(l.handleStyleChange=l.handleStyleChange.bind(N1(l)),l.changeStyle=l.changeStyle.bind(N1(l)),!c||x<=0)return l.state={style:{}},typeof y=="function"&&(l.state={style:m}),M1(l);if(p&&p.length)l.state={style:p[0].style};else if(d){if(typeof y=="function")return l.state={style:d},M1(l);l.state={style:f?Qu({},f,d):d}}else l.state={style:{}};return l}return eoe(n,[{key:"componentDidMount",value:function(){var i=this.props,l=i.isActive,s=i.canBegin;this.mounted=!0,!(!l||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var l=this.props,s=l.isActive,c=l.canBegin,f=l.attributeName,d=l.shouldReAnimate,m=l.to,p=l.from,y=this.state.style;if(c){if(!s){var x={style:f?Qu({},f,m):m};this.state&&y&&(f&&y[f]!==m||!f&&y!==m)&&this.setState(x);return}if(!(cie(i.to,m)&&i.canBegin&&i.isActive)){var O=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=O||d?p:i.to;if(this.state&&y){var S={style:f?Qu({},f,w):w};(f&&y[f]!==w||!f&&y!==w)&&this.setState(S)}this.runAnimation(Sr(Sr({},this.props),{},{from:w,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 l=this,s=i.from,c=i.to,f=i.duration,d=i.easing,m=i.begin,p=i.onAnimationEnd,y=i.onAnimationStart,x=Fie(s,c,Pie(d),f,this.changeStyle),O=function(){l.stopJSAnimation=x()};this.manager.start([y,m,O,f,p])}},{key:"runStepAnimation",value:function(i){var l=this,s=i.steps,c=i.begin,f=i.onAnimationStart,d=s[0],m=d.style,p=d.duration,y=p===void 0?0:p,x=function(w,S,E){if(E===0)return w;var T=S.duration,A=S.easing,M=A===void 0?"ease":A,j=S.style,N=S.properties,R=S.onAnimationEnd,k=E>0?s[E-1]:S,I=N||Object.keys(j);if(typeof M=="function"||M==="spring")return[].concat(Bx(w),[l.runJSAnimation.bind(l,{from:k.style,to:j,duration:T,easing:M}),T]);var V=TP(I,T,M),z=Sr(Sr(Sr({},k.style),j),{},{transition:V});return[].concat(Bx(w),[z,T,R]).filter(wie)};return this.manager.start([f].concat(Bx(s.reduce(x,[m,Math.max(y,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=gie());var l=i.begin,s=i.duration,c=i.attributeName,f=i.to,d=i.easing,m=i.onAnimationStart,p=i.onAnimationEnd,y=i.steps,x=i.children,O=this.manager;if(this.unSubscribe=O.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(y.length>1){this.runStepAnimation(i);return}var w=c?Qu({},c,f):f,S=TP(Object.keys(w),s,d);O.start([m,l,Sr(Sr({},w),{},{transition:S}),s,p])}},{key:"render",value:function(){var i=this.props,l=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var c=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=Vie(i,Gie),d=_.Children.count(l),m=this.state.style;if(typeof l=="function")return l(m);if(!c||d===0||s<=0)return l;var p=function(x){var O=x.props,w=O.style,S=w===void 0?{}:w,E=O.className,T=_.cloneElement(x,Sr(Sr({},f),{},{style:Sr(Sr({},S),m),className:E}));return T};return d===1?p(_.Children.only(l)):L.createElement("div",null,_.Children.map(l,function(y){return p(y)}))}}]),n})(_.PureComponent);Ba.displayName="Animate";Ba.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ba.propTypes={from:Ze.oneOfType([Ze.object,Ze.string]),to:Ze.oneOfType([Ze.object,Ze.string]),attributeName:Ze.string,duration:Ze.number,begin:Ze.number,easing:Ze.oneOfType([Ze.string,Ze.func]),steps:Ze.arrayOf(Ze.shape({duration:Ze.number.isRequired,style:Ze.object.isRequired,easing:Ze.oneOfType([Ze.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ze.func]),properties:Ze.arrayOf("string"),onAnimationEnd:Ze.func})),children:Ze.oneOfType([Ze.node,Ze.func]),isActive:Ze.bool,canBegin:Ze.bool,onAnimationEnd:Ze.func,shouldReAnimate:Ze.bool,onAnimationStart:Ze.func,onAnimationReStart:Ze.func};function $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}function tp(){return tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tp.apply(this,arguments)}function ioe(e,t){return uoe(e)||soe(e,t)||loe(e,t)||ooe()}function ooe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
354
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function loe(e,t){if(e){if(typeof e=="string")return PP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PP(e,t)}}function PP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function soe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function uoe(e){if(Array.isArray(e))return e}function DP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DP(Object(n),!0).forEach(function(r){coe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function coe(e,t,n){return t=foe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function foe(e){var t=doe(e,"string");return $c(t)=="symbol"?t:t+""}function doe(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $P=function(t,n,r,i,l){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),c=i>=0?1:-1,f=r>=0?1:-1,d=i>=0&&r>=0||i<0&&r<0?1:0,m;if(s>0&&l instanceof Array){for(var p=[0,0,0,0],y=0,x=4;y<x;y++)p[y]=l[y]>s?s:l[y];m="M".concat(t,",").concat(n+c*p[0]),p[0]>0&&(m+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(n)),m+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(m+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
355
- `).concat(t+r,",").concat(n+c*p[1])),m+="L ".concat(t+r,",").concat(n+i-c*p[2]),p[2]>0&&(m+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
356
- `).concat(t+r-f*p[2],",").concat(n+i)),m+="L ".concat(t+f*p[3],",").concat(n+i),p[3]>0&&(m+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
357
- `).concat(t,",").concat(n+i-c*p[3])),m+="Z"}else if(s>0&&l===+l&&l>0){var O=Math.min(s,l);m="M ".concat(t,",").concat(n+c*O,`
358
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(n,`
359
- L `).concat(t+r-f*O,",").concat(n,`
360
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*O,`
361
- L `).concat(t+r,",").concat(n+i-c*O,`
362
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r-f*O,",").concat(n+i,`
363
- L `).concat(t+f*O,",").concat(n+i,`
364
- A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t,",").concat(n+i-c*O," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return m},hoe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,l=n.x,s=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(l,l+c),m=Math.max(l,l+c),p=Math.min(s,s+f),y=Math.max(s,s+f);return r>=d&&r<=m&&i>=p&&i<=y}return!1},poe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},UO=function(t){var n=kP(kP({},poe),t),r=_.useRef(),i=_.useState(-1),l=ioe(i,2),s=l[0],c=l[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&c(M)}catch{}},[]);var f=n.x,d=n.y,m=n.width,p=n.height,y=n.radius,x=n.className,O=n.animationEasing,w=n.animationDuration,S=n.animationBegin,E=n.isAnimationActive,T=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||m===0||p===0)return null;var A=Ue("recharts-rectangle",x);return T?L.createElement(Ba,{canBegin:s>0,from:{width:m,height:p,x:f,y:d},to:{width:m,height:p,x:f,y:d},duration:w,animationEasing:O,isActive:T},function(M){var j=M.width,N=M.height,R=M.x,k=M.y;return L.createElement(Ba,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,isActive:E,easing:O},L.createElement("path",tp({},qe(n,!0),{className:A,d:$P(R,k,j,N,y),ref:r})))}):L.createElement("path",tp({},qe(n,!0),{className:A,d:$P(f,d,m,p,y)}))};function R1(){return R1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R1.apply(this,arguments)}var HO=function(t){var n=t.cx,r=t.cy,i=t.r,l=t.className,s=Ue("recharts-dot",l);return n===+n&&r===+r&&i===+i?_.createElement("circle",R1({},qe(t,!1),Oh(t),{className:s,cx:n,cy:r,r:i})):null};function Lc(e){"@babel/helpers - typeof";return Lc=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},Lc(e)}var moe=["x","y","top","left","width","height","className"];function P1(){return P1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P1.apply(this,arguments)}function LP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function voe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LP(Object(n),!0).forEach(function(r){goe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function goe(e,t,n){return t=yoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yoe(e){var t=boe(e,"string");return Lc(t)=="symbol"?t:t+""}function boe(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xoe(e,t){if(e==null)return{};var n=woe(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function woe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Soe=function(t,n,r,i,l,s){return"M".concat(t,",").concat(l,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Ooe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,l=i===void 0?0:i,s=t.top,c=s===void 0?0:s,f=t.left,d=f===void 0?0:f,m=t.width,p=m===void 0?0:m,y=t.height,x=y===void 0?0:y,O=t.className,w=xoe(t,moe),S=voe({x:r,y:l,top:c,left:d,width:p,height:x},w);return!ve(r)||!ve(l)||!ve(p)||!ve(x)||!ve(c)||!ve(d)?null:L.createElement("path",P1({},qe(S,!0),{className:Ue("recharts-cross",O),d:Soe(r,l,p,x,c,d)}))},qx,IP;function _oe(){if(IP)return qx;IP=1;var e=y3(),t=e(Object.getPrototypeOf,Object);return qx=t,qx}var Ux,zP;function Eoe(){if(zP)return Ux;zP=1;var e=qa(),t=_oe(),n=Ua(),r="[object Object]",i=Function.prototype,l=Object.prototype,s=i.toString,c=l.hasOwnProperty,f=s.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var p=t(m);if(p===null)return!0;var y=c.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&s.call(y)==f}return Ux=d,Ux}var Aoe=Eoe();const Toe=lt(Aoe);var Hx,BP;function joe(){if(BP)return Hx;BP=1;var e=qa(),t=Ua(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return Hx=r,Hx}var Coe=joe();const Moe=lt(Coe);function Ic(e){"@babel/helpers - typeof";return Ic=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},Ic(e)}function np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},np.apply(this,arguments)}function Noe(e,t){return koe(e)||Doe(e,t)||Poe(e,t)||Roe()}function Roe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
365
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Poe(e,t){if(e){if(typeof e=="string")return qP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qP(e,t)}}function qP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Doe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function koe(e){if(Array.isArray(e))return e}function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){$oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $oe(e,t,n){return t=Loe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Loe(e){var t=Ioe(e,"string");return Ic(t)=="symbol"?t:t+""}function Ioe(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var FP=function(t,n,r,i,l){var s=r-i,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-s/2,",").concat(n+l),c+="L ".concat(t+r-s/2-i,",").concat(n+l),c+="L ".concat(t,",").concat(n," Z"),c},zoe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Boe=function(t){var n=HP(HP({},zoe),t),r=_.useRef(),i=_.useState(-1),l=Noe(i,2),s=l[0],c=l[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&c(A)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,p=n.lowerWidth,y=n.height,x=n.className,O=n.animationEasing,w=n.animationDuration,S=n.animationBegin,E=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||y!==+y||m===0&&p===0||y===0)return null;var T=Ue("recharts-trapezoid",x);return E?L.createElement(Ba,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:d},to:{upperWidth:m,lowerWidth:p,height:y,x:f,y:d},duration:w,animationEasing:O,isActive:E},function(A){var M=A.upperWidth,j=A.lowerWidth,N=A.height,R=A.x,k=A.y;return L.createElement(Ba,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,easing:O},L.createElement("path",np({},qe(n,!0),{className:T,d:FP(R,k,M,j,N),ref:r})))}):L.createElement("g",null,L.createElement("path",np({},qe(n,!0),{className:T,d:FP(f,d,m,p,y)})))},qoe=["option","shapeType","propTransformer","activeClassName","isActive"];function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function Uoe(e,t){if(e==null)return{};var n=Hoe(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hoe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GP(Object(n),!0).forEach(function(r){Foe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Foe(e,t,n){return t=Goe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Goe(e){var t=Voe(e,"string");return zc(t)=="symbol"?t:t+""}function Voe(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yoe(e,t){return rp(rp({},t),e)}function Woe(e,t){return e==="symbols"}function VP(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return L.createElement(UO,n);case"trapezoid":return L.createElement(Boe,n);case"sector":return L.createElement(G4,n);case"symbols":if(Woe(t))return L.createElement(lO,n);break;default:return null}}function Koe(e){return _.isValidElement(e)?e.props:e}function Xoe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?Yoe:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,c=e.isActive,f=Uoe(e,qoe),d;if(_.isValidElement(t))d=_.cloneElement(t,rp(rp({},f),Koe(t)));else if(De(t))d=t(f);else if(Toe(t)&&!Moe(t)){var m=i(t,f);d=L.createElement(VP,{shapeType:n,elementProps:m})}else{var p=f;d=L.createElement(VP,{shapeType:n,elementProps:p})}return c?L.createElement(jt,{className:s},d):d}function vm(e,t){return t!=null&&"trapezoids"in e.props}function gm(e,t){return t!=null&&"sectors"in e.props}function Bc(e,t){return t!=null&&"points"in e.props}function Qoe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,l=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&l}function Zoe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Joe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function ele(e,t){var n;return vm(e,t)?n=Qoe:gm(e,t)?n=Zoe:Bc(e,t)&&(n=Joe),n}function tle(e,t){var n;return vm(e,t)?n="trapezoids":gm(e,t)?n="sectors":Bc(e,t)&&(n="points"),n}function nle(e,t){if(vm(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}if(gm(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}return Bc(e,t)?t.payload:{}}function rle(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=tle(n,t),l=nle(n,t),s=r.filter(function(f,d){var m=hm(l,f),p=n.props[i].filter(function(O){var w=ele(n,t);return w(O,t)}),y=n.props[i].indexOf(p[p.length-1]),x=d===y;return m&&x}),c=r.indexOf(s[s.length-1]);return c}var Fx,YP;function ale(){if(YP)return Fx;YP=1;var e=Math.ceil,t=Math.max;function n(r,i,l,s){for(var c=-1,f=t(e((i-r)/(l||1)),0),d=Array(f);f--;)d[s?f:++c]=r,r+=l;return d}return Fx=n,Fx}var Gx,WP;function J4(){if(WP)return Gx;WP=1;var e=D3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var l=i<0?-1:1;return l*n}return i===i?i:0}return Gx=r,Gx}var Vx,KP;function ile(){if(KP)return Vx;KP=1;var e=ale(),t=am(),n=J4();function r(i){return function(l,s,c){return c&&typeof c!="number"&&t(l,s,c)&&(s=c=void 0),l=n(l),s===void 0?(s=l,l=0):s=n(s),c=c===void 0?l<s?1:-1:n(c),e(l,s,c,i)}}return Vx=r,Vx}var Yx,XP;function ole(){if(XP)return Yx;XP=1;var e=ile(),t=e();return Yx=t,Yx}var lle=ole();const ap=lt(lle);function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){e5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e5(e,t,n){return t=sle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sle(e){var t=ule(e,"string");return qc(t)=="symbol"?t:t+""}function ule(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cle=["Webkit","Moz","O","ms"],fle=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),i=cle.reduce(function(l,s){return ZP(ZP({},l),{},e5({},s+r,n))},{});return i[t]=n,i};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 ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ip.apply(this,arguments)}function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JP(Object(n),!0).forEach(function(r){Hn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n5(r.key),r)}}function hle(e,t,n){return t&&eD(e.prototype,t),n&&eD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ple(e,t,n){return t=op(t),mle(e,t5()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function mle(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 vle(e)}function vle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t5=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function gle(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&&D1(e,t)}function D1(e,t){return D1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},D1(e,t)}function Hn(e,t,n){return t=n5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n5(e){var t=yle(e,"string");return ss(t)=="symbol"?t:t+""}function yle(e,t){if(ss(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ble=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,l=t.x,s=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=tc().domain(ap(0,f)).range([l,l+s-c]),m=d.domain().map(function(p){return d(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(i),scale:d,scaleValues:m}},tD=function(t){return t.changedTouches&&!!t.changedTouches.length},us=(function(e){function t(n){var r;return dle(this,t),r=ple(this,t,[n]),Hn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Hn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Hn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,l=i.endIndex,s=i.onDragEnd,c=i.startIndex;s==null||s({endIndex:l,startIndex:c})}),r.detachDragEndListener()}),Hn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Hn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Hn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Hn(r,"handleSlideDragStart",function(i){var l=tD(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:l.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return gle(t,e),hle(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,l=r.endX,s=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,p=Math.min(i,l),y=Math.max(i,l),x=t.getIndexInRange(s,p),O=t.getIndexInRange(s,y);return{startIndex:x-x%f,endIndex:O===m?m:O-O%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,l=i.data,s=i.tickFormatter,c=i.dataKey,f=Wn(l[r],c,r);return De(s)?s(f,r):f}},{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(r){var i=this.state,l=i.slideMoveStartX,s=i.startX,c=i.endX,f=this.props,d=f.x,m=f.width,p=f.travellerWidth,y=f.startIndex,x=f.endIndex,O=f.onChange,w=r.pageX-l;w>0?w=Math.min(w,d+m-p-c,d+m-p-s):w<0&&(w=Math.max(w,d-s,d-c));var S=this.getIndex({startX:s+w,endX:c+w});(S.startIndex!==y||S.endIndex!==x)&&O&&O(S),this.setState({startX:s+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var l=tD(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:l.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,l=i.brushMoveStartX,s=i.movingTravellerId,c=i.endX,f=i.startX,d=this.state[s],m=this.props,p=m.x,y=m.width,x=m.travellerWidth,O=m.onChange,w=m.gap,S=m.data,E={startX:this.state.startX,endX:this.state.endX},T=r.pageX-l;T>0?T=Math.min(T,p+y-x-d):T<0&&(T=Math.max(T,p-d)),E[s]=d+T;var A=this.getIndex(E),M=A.startIndex,j=A.endIndex,N=function(){var k=S.length-1;return s==="startX"&&(c>f?M%w===0:j%w===0)||c<f&&j===k||s==="endX"&&(c>f?j%w===0:M%w===0)||c>f&&j===k};this.setState(Hn(Hn({},s,d+T),"brushMoveStartX",r.pageX),function(){O&&N()&&O(A)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var l=this,s=this.state,c=s.scaleValues,f=s.startX,d=s.endX,m=this.state[i],p=c.indexOf(m);if(p!==-1){var y=p+r;if(!(y===-1||y>=c.length)){var x=c[y];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(Hn({},i,x),function(){l.props.onChange(l.getIndex({startX:l.state.startX,endX:l.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.fill,d=r.stroke;return L.createElement("rect",{stroke:d,fill:f,x:i,y:l,width:s,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,p=_.Children.only(d);return p?L.cloneElement(p,{x:i,y:l,width:s,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var l,s,c=this,f=this.props,d=f.y,m=f.travellerWidth,p=f.height,y=f.traveller,x=f.ariaLabel,O=f.data,w=f.startIndex,S=f.endIndex,E=Math.max(r,this.props.x),T=Wx(Wx({},qe(this.props,!1)),{},{x:E,y:d,width:m,height:p}),A=x||"Min value: ".concat((l=O[w])===null||l===void 0?void 0:l.name,", Max value: ").concat((s=O[S])===null||s===void 0?void 0:s.name);return L.createElement(jt,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),c.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,T))}},{key:"renderSlide",value:function(r,i){var l=this.props,s=l.y,c=l.height,f=l.stroke,d=l.travellerWidth,m=Math.min(r,i)+d,p=Math.max(Math.abs(i-r)-d,0);return L.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:s,width:p,height:c})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,l=r.endIndex,s=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,p=m.startX,y=m.endX,x=5,O={pointerEvents:"none",fill:d};return L.createElement(jt,{className:"recharts-brush-texts"},L.createElement(kh,ip({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-x,y:s+c/2},O),this.getTextOfTick(i)),L.createElement(kh,ip({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,y)+f+x,y:s+c/2},O),this.getTextOfTick(l)))}},{key:"render",value:function(){var r=this.props,i=r.data,l=r.className,s=r.children,c=r.x,f=r.y,d=r.width,m=r.height,p=r.alwaysShowText,y=this.state,x=y.startX,O=y.endX,w=y.isTextActive,S=y.isSlideMoving,E=y.isTravellerMoving,T=y.isTravellerFocused;if(!i||!i.length||!ve(c)||!ve(f)||!ve(d)||!ve(m)||d<=0||m<=0)return null;var A=Ue("recharts-brush",l),M=L.Children.count(s)===1,j=fle("userSelect","none");return L.createElement(jt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(x,O),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(O,"endX"),(w||S||E||T||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,l=r.y,s=r.width,c=r.height,f=r.stroke,d=Math.floor(l+c/2)-1;return L.createElement(L.Fragment,null,L.createElement("rect",{x:i,y:l,width:s,height:c,fill:f,stroke:"none"}),L.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),L.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var l;return L.isValidElement(r)?l=L.cloneElement(r,i):De(r)?l=r(i):l=t.renderDefaultTraveller(i),l}},{key:"getDerivedStateFromProps",value:function(r,i){var l=r.data,s=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,p=r.endIndex;if(l!==i.prevData||d!==i.prevUpdateId)return Wx({prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s},l&&l.length?ble({data:l,width:s,x:c,travellerWidth:f,startIndex:m,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||c!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([c,c+s-f]);var y=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,i){for(var l=r.length,s=0,c=l-1;c-s>1;){var f=Math.floor((s+c)/2);r[f]>i?c=f:s=f}return i>=r[c]?c:s}}])})(_.PureComponent);Hn(us,"displayName","Brush");Hn(us,"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 Kx,nD;function xle(){if(nD)return Kx;nD=1;var e=pO();function t(n,r){var i;return e(n,function(l,s,c){return i=r(l,s,c),!i}),!!i}return Kx=t,Kx}var Xx,rD;function wle(){if(rD)return Xx;rD=1;var e=f3(),t=Pi(),n=xle(),r=Pn(),i=am();function l(s,c,f){var d=r(s)?e:n;return f&&i(s,c,f)&&(c=void 0),d(s,t(c,3))}return Xx=l,Xx}var Sle=wle();const Ole=lt(Sle);var ea=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},Qx,aD;function _le(){if(aD)return Qx;aD=1;var e=C3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Qx=t,Qx}var Zx,iD;function Ele(){if(iD)return Zx;iD=1;var e=_le(),t=T3(),n=Pi();function r(i,l){var s={};return l=n(l,3),t(i,function(c,f,d){e(s,f,l(c,f,d))}),s}return Zx=r,Zx}var Ale=Ele();const Tle=lt(Ale);var Jx,oD;function jle(){if(oD)return Jx;oD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return Jx=e,Jx}var ew,lD;function Cle(){if(lD)return ew;lD=1;var e=pO();function t(n,r){var i=!0;return e(n,function(l,s,c){return i=!!r(l,s,c),i}),i}return ew=t,ew}var tw,sD;function Mle(){if(sD)return tw;sD=1;var e=jle(),t=Cle(),n=Pi(),r=Pn(),i=am();function l(s,c,f){var d=r(s)?e:t;return f&&i(s,c,f)&&(c=void 0),d(s,n(c,3))}return tw=l,tw}var Nle=Mle();const r5=lt(Nle);var Rle=["x","y"];function Uc(e){"@babel/helpers - typeof";return Uc=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},Uc(e)}function k1(){return k1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k1.apply(this,arguments)}function uD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uD(Object(n),!0).forEach(function(r){Ple(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ple(e,t,n){return t=Dle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dle(e){var t=kle(e,"string");return Uc(t)=="symbol"?t:t+""}function kle(e,t){if(Uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $le(e,t){if(e==null)return{};var n=Lle(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ile(e,t){var n=e.x,r=e.y,i=$le(e,Rle),l="".concat(n),s=parseInt(l,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||i.height),m=parseInt(d,10),p="".concat(t.width||i.width),y=parseInt(p,10);return Vu(Vu(Vu(Vu(Vu({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:m,width:y,name:t.name,radius:t.radius})}function cD(e){return L.createElement(Xoe,k1({shapeType:"rectangle",propTransformer:Ile,activeClassName:"recharts-active-bar"},e))}var zle=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var l=ve(r)||YW(r);return l?t(r,i):(l||To(),n)}},Ble=["value","background"],a5;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 qle(e,t){if(e==null)return{};var n=Ule(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ule(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lp.apply(this,arguments)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){Oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o5(r.key),r)}}function Fle(e,t,n){return t&&dD(e.prototype,t),n&&dD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gle(e,t,n){return t=sp(t),Vle(e,i5()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function Vle(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 Yle(e)}function Yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i5=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function Wle(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&&$1(e,t)}function $1(e,t){return $1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$1(e,t)}function Oi(e,t,n){return t=o5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o5(e){var t=Kle(e,"string");return cs(t)=="symbol"?t:t+""}function Kle(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vf=(function(e){function t(){var n;Hle(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=Gle(this,t,[].concat(i)),Oi(n,"state",{isAnimationFinished:!1}),Oi(n,"id",uf("recharts-bar-")),Oi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Oi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Wle(t,e),Fle(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,l=this.props,s=l.shape,c=l.dataKey,f=l.activeIndex,d=l.activeBar,m=qe(this.props,!1);return r&&r.map(function(p,y){var x=y===f,O=x?d:s,w=Pt(Pt(Pt({},m),p),{},{isActive:x,option:O,index:y,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return L.createElement(jt,lp({className:"recharts-bar-rectangle"},_h(i.props,p,y),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(y)}),L.createElement(cD,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,l=i.data,s=i.layout,c=i.isAnimationActive,f=i.animationBegin,d=i.animationDuration,m=i.animationEasing,p=i.animationId,y=this.state.prevData;return L.createElement(Ba,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var O=x.t,w=l.map(function(S,E){var T=y&&y[E];if(T){var A=Ar(T.x,S.x),M=Ar(T.y,S.y),j=Ar(T.width,S.width),N=Ar(T.height,S.height);return Pt(Pt({},S),{},{x:A(O),y:M(O),width:j(O),height:N(O)})}if(s==="horizontal"){var R=Ar(0,S.height),k=R(O);return Pt(Pt({},S),{},{y:S.y+S.height-k,height:k})}var I=Ar(0,S.width),V=I(O);return Pt(Pt({},S),{},{width:V})});return L.createElement(jt,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,l=r.isAnimationActive,s=this.state.prevData;return l&&i&&i.length&&(!s||!hm(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,l=i.data,s=i.dataKey,c=i.activeIndex,f=qe(this.props.background,!1);return l.map(function(d,m){d.value;var p=d.background,y=qle(d,Ble);if(!p)return null;var x=Pt(Pt(Pt(Pt(Pt({},y),{},{fill:"#eee"},p),f),_h(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:m,className:"recharts-bar-background-rectangle"});return L.createElement(cD,lp({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.data,c=l.xAxis,f=l.yAxis,d=l.layout,m=l.children,p=hr(m,mf);if(!p)return null;var y=d==="vertical"?s[0].height/2:s[0].width/2,x=function(S,E){var T=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:T,errorVal:Wn(S,E)}},O={clipPath:r?"url(#clipPath-".concat(i,")"):null};return L.createElement(jt,O,p.map(function(w){return L.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,offset:y,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,l=r.data,s=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,p=r.width,y=r.height,x=r.isAnimationActive,O=r.background,w=r.id;if(i||!l||!l.length)return null;var S=this.state.isAnimationFinished,E=Ue("recharts-bar",s),T=c&&c.allowDataOverflow,A=f&&f.allowDataOverflow,M=T||A,j=Le(w)?this.id:w;return L.createElement(jt,{className:E},T||A?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(j)},L.createElement("rect",{x:T?d:d-p/2,y:A?m:m-y/2,width:T?p:p*2,height:A?y:y*2}))):null,L.createElement(jt,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(j,")"):null},O?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,j),(!x||S)&&Ei.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(_.PureComponent);a5=vf;Oi(vf,"displayName","Bar");Oi(vf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ds.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Oi(vf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,l=e.xAxis,s=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,y=e.offset,x=hre(r,n);if(!x)return null;var O=t.layout,w=n.type.defaultProps,S=w!==void 0?Pt(Pt({},w),n.props):n.props,E=S.dataKey,T=S.children,A=S.minPointSize,M=O==="horizontal"?s:l,j=d?M.scale.domain():null,N=wre({numericAxis:M}),R=hr(T,$3),k=p.map(function(I,V){var z,B,G,K,X,D;d?z=pre(d[m+V],j):(z=Wn(I,E),Array.isArray(z)||(z=[N,z]));var U=zle(A,a5.defaultProps.minPointSize)(z[1],V);if(O==="horizontal"){var Y,W=[s.scale(z[0]),s.scale(z[1])],oe=W[0],$=W[1];B=KR({axis:l,ticks:c,bandSize:i,offset:x.offset,entry:I,index:V}),G=(Y=$??oe)!==null&&Y!==void 0?Y:void 0,K=x.size;var F=oe-$;if(X=Number.isNaN(F)?0:F,D={x:B,y:s.y,width:K,height:s.height},Math.abs(U)>0&&Math.abs(X)<Math.abs(U)){var Z=jr(X||U)*(Math.abs(U)-Math.abs(X));G-=Z,X+=Z}}else{var se=[l.scale(z[0]),l.scale(z[1])],de=se[0],ge=se[1];if(B=de,G=KR({axis:s,ticks:f,bandSize:i,offset:x.offset,entry:I,index:V}),K=ge-de,X=x.size,D={x:l.x,y:G,width:l.width,height:X},Math.abs(U)>0&&Math.abs(K)<Math.abs(U)){var fe=jr(K||U)*(Math.abs(U)-Math.abs(K));K+=fe}}return Pt(Pt(Pt({},I),{},{x:B,y:G,width:K,height:X,value:d?z:z[1],payload:I,background:D},R&&R[V]&&R[V].props),{},{tooltipPayload:[U4(n,I)],tooltipPosition:{x:B+K/2,y:G+X/2}})});return Pt({data:k,layout:O},y)});function Hc(e){"@babel/helpers - typeof";return Hc=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},Hc(e)}function Xle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l5(r.key),r)}}function Qle(e,t,n){return t&&hD(e.prototype,t),n&&hD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pD(Object(n),!0).forEach(function(r){ym(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ym(e,t,n){return t=l5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l5(e){var t=Zle(e,"string");return Hc(t)=="symbol"?t:t+""}function Zle(e,t){if(Hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jle=function(t,n,r,i,l){var s=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),p={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},y=!!Fn(d,vf);return m.reduce(function(x,O){var w=n[O],S=w.orientation,E=w.domain,T=w.padding,A=T===void 0?{}:T,M=w.mirror,j=w.reversed,N="".concat(S).concat(M?"Mirror":""),R,k,I,V,z;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var B=E[1]-E[0],G=1/0,K=w.categoricalDomain.sort(XW);if(K.forEach(function(se,de){de>0&&(G=Math.min((se||0)-(K[de-1]||0),G))}),Number.isFinite(G)){var X=G/B,D=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(R=X*D/2),w.padding==="no-gap"){var U=Eo(t.barCategoryGap,X*D),Y=X*D/2;R=Y-U-(Y-U)/D*U}}}i==="xAxis"?k=[r.left+(A.left||0)+(R||0),r.left+r.width-(A.right||0)-(R||0)]:i==="yAxis"?k=f==="horizontal"?[r.top+r.height-(A.bottom||0),r.top+(A.top||0)]:[r.top+(A.top||0)+(R||0),r.top+r.height-(A.bottom||0)-(R||0)]:k=w.range,j&&(k=[k[1],k[0]]);var W=fre(w,l,y),oe=W.scale,$=W.realScaleType;oe.domain(E).range(k),dre(oe);var F=xre(oe,_r(_r({},w),{},{realScaleType:$}));i==="xAxis"?(z=S==="top"&&!M||S==="bottom"&&M,I=r.left,V=p[N]-z*w.height):i==="yAxis"&&(z=S==="left"&&!M||S==="right"&&M,I=p[N]-z*w.width,V=r.top);var Z=_r(_r(_r({},w),F),{},{realScaleType:$,x:I,y:V,scale:oe,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return Z.bandSize=Kh(Z,F),!w.hide&&i==="xAxis"?p[N]+=(z?-1:1)*Z.height:w.hide||(p[N]+=(z?-1:1)*Z.width),_r(_r({},x),{},ym({},O,Z))},{})},s5=function(t,n){var r=t.x,i=t.y,l=n.x,s=n.y;return{x:Math.min(r,l),y:Math.min(i,s),width:Math.abs(l-r),height:Math.abs(s-i)}},ese=function(t){var n=t.x1,r=t.y1,i=t.x2,l=t.y2;return s5({x:n,y:r},{x:i,y:l})},u5=(function(){function e(t){Xle(this,e),this.scale=t}return Qle(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,l=r.position;if(n!==void 0){if(l)switch(l){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],l=r[r.length-1];return i<=l?n>=i&&n<=l:n>=l&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();ym(u5,"EPS",1e-4);var FO=function(t){var n=Object.keys(t).reduce(function(r,i){return _r(_r({},r),{},ym({},i,u5.create(t[i])))},{});return _r(_r({},n),{},{apply:function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.bandAware,c=l.position;return Tle(i,function(f,d){return n[d].apply(f,{bandAware:s,position:c})})},isInRange:function(i){return r5(i,function(l,s){return n[s].isInRange(l)})}})};function tse(e){return(e%180+180)%180}var nse=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=tse(i),s=l*Math.PI/180,c=Math.atan(r/n),f=s>c&&s<Math.PI-c?r/Math.sin(s):n/Math.cos(s);return Math.abs(f)},nw,mD;function rse(){if(mD)return nw;mD=1;var e=Pi(),t=cf(),n=nm();function r(i){return function(l,s,c){var f=Object(l);if(!t(l)){var d=e(s,3);l=n(l),s=function(p){return d(f[p],p,f)}}var m=i(l,s,c);return m>-1?f[d?l[m]:m]:void 0}}return nw=r,nw}var rw,vD;function ase(){if(vD)return rw;vD=1;var e=J4();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return rw=t,rw}var aw,gD;function ise(){if(gD)return aw;gD=1;var e=S3(),t=Pi(),n=ase(),r=Math.max;function i(l,s,c){var f=l==null?0:l.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(l,t(s,3),d)}return aw=i,aw}var iw,yD;function ose(){if(yD)return iw;yD=1;var e=rse(),t=ise(),n=e(t);return iw=n,iw}var lse=ose();const sse=lt(lse);var use=II();const cse=lt(use);var fse=cse(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("")}),GO=_.createContext(void 0),VO=_.createContext(void 0),c5=_.createContext(void 0),f5=_.createContext({}),d5=_.createContext(void 0),h5=_.createContext(0),p5=_.createContext(0),bD=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,l=n.offset,s=t.clipPathId,c=t.children,f=t.width,d=t.height,m=fse(l);return L.createElement(GO.Provider,{value:r},L.createElement(VO.Provider,{value:i},L.createElement(f5.Provider,{value:l},L.createElement(c5.Provider,{value:m},L.createElement(d5.Provider,{value:s},L.createElement(h5.Provider,{value:d},L.createElement(p5.Provider,{value:f},c)))))))},dse=function(){return _.useContext(d5)},m5=function(t){var n=_.useContext(GO);n==null&&To();var r=n[t];return r==null&&To(),r},hse=function(){var t=_.useContext(GO);return Si(t)},pse=function(){var t=_.useContext(VO),n=sse(t,function(r){return r5(r.domain,Number.isFinite)});return n||Si(t)},v5=function(t){var n=_.useContext(VO);n==null&&To();var r=n[t];return r==null&&To(),r},mse=function(){var t=_.useContext(c5);return t},vse=function(){return _.useContext(f5)},YO=function(){return _.useContext(p5)},WO=function(){return _.useContext(h5)};function fs(e){"@babel/helpers - typeof";return fs=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},fs(e)}function gse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y5(r.key),r)}}function bse(e,t,n){return t&&yse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xse(e,t,n){return t=up(t),wse(e,g5()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function wse(e,t){if(t&&(fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sse(e)}function Sse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g5=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}function Ose(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&&L1(e,t)}function L1(e,t){return L1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L1(e,t)}function xD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(r){KO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KO(e,t,n){return t=y5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y5(e){var t=_se(e,"string");return fs(t)=="symbol"?t:t+""}function _se(e,t){if(fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ese(e,t){return Cse(e)||jse(e,t)||Tse(e,t)||Ase()}function Ase(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
366
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tse(e,t){if(e){if(typeof e=="string")return SD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SD(e,t)}}function SD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Cse(e){if(Array.isArray(e))return e}function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I1.apply(this,arguments)}var Mse=function(t,n){var r;return L.isValidElement(t)?r=L.cloneElement(t,n):De(t)?r=t(n):r=L.createElement("line",I1({},n,{className:"recharts-reference-line-line"})),r},Nse=function(t,n,r,i,l,s,c,f,d){var m=l.x,p=l.y,y=l.width,x=l.height;if(r){var O=d.y,w=t.y.apply(O,{position:s});if(ea(d,"discard")&&!t.y.isInRange(w))return null;var S=[{x:m+y,y:w},{x:m,y:w}];return f==="left"?S.reverse():S}if(n){var E=d.x,T=t.x.apply(E,{position:s});if(ea(d,"discard")&&!t.x.isInRange(T))return null;var A=[{x:T,y:p+x},{x:T,y:p}];return c==="top"?A.reverse():A}if(i){var M=d.segment,j=M.map(function(N){return t.apply(N,{position:s})});return ea(d,"discard")&&Ole(j,function(N){return!t.isInRange(N)})?null:j}return null};function Rse(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,l=e.yAxisId,s=e.shape,c=e.className,f=e.alwaysShow,d=dse(),m=m5(i),p=v5(l),y=mse();if(!d||!y)return null;Ra(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=FO({x:m.scale,y:p.scale}),O=Ht(t),w=Ht(n),S=r&&r.length===2,E=Nse(x,O,w,S,y,e.position,m.orientation,p.orientation,e);if(!E)return null;var T=Ese(E,2),A=T[0],M=A.x,j=A.y,N=T[1],R=N.x,k=N.y,I=ea(e,"hidden")?"url(#".concat(d,")"):void 0,V=wD(wD({clipPath:I},qe(e,!0)),{},{x1:M,y1:j,x2:R,y2:k});return L.createElement(jt,{className:Ue("recharts-reference-line",c)},Mse(s,V),hn.renderCallByParent(e,ese({x1:M,y1:j,x2:R,y2:k})))}var XO=(function(e){function t(){return gse(this,t),xse(this,t,arguments)}return Ose(t,e),bse(t,[{key:"render",value:function(){return L.createElement(Rse,this.props)}}])})(L.Component);KO(XO,"displayName","ReferenceLine");KO(XO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z1.apply(this,arguments)}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 OD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(n),!0).forEach(function(r){bm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x5(r.key),r)}}function kse(e,t,n){return t&&Dse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $se(e,t,n){return t=cp(t),Lse(e,b5()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function Lse(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 Ise(e)}function Ise(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b5=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function zse(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&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B1(e,t)}function bm(e,t,n){return t=x5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x5(e){var t=Bse(e,"string");return ds(t)=="symbol"?t:t+""}function Bse(e,t){if(ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qse=function(t){var n=t.x,r=t.y,i=t.xAxis,l=t.yAxis,s=FO({x:i.scale,y:l.scale}),c=s.apply({x:n,y:r},{bandAware:!0});return ea(t,"discard")&&!s.isInRange(c)?null:c},xm=(function(e){function t(){return Pse(this,t),$se(this,t,arguments)}return zse(t,e),kse(t,[{key:"render",value:function(){var r=this.props,i=r.x,l=r.y,s=r.r,c=r.alwaysShow,f=r.clipPathId,d=Ht(i),m=Ht(l);if(Ra(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var p=qse(this.props);if(!p)return null;var y=p.x,x=p.y,O=this.props,w=O.shape,S=O.className,E=ea(this.props,"hidden")?"url(#".concat(f,")"):void 0,T=_D(_D({clipPath:E},qe(this.props,!0)),{},{cx:y,cy:x});return L.createElement(jt,{className:Ue("recharts-reference-dot",S)},t.renderDot(w,T),hn.renderCallByParent(this.props,{x:y-s,y:x-s,width:2*s,height:2*s}))}}])})(L.Component);bm(xm,"displayName","ReferenceDot");bm(xm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});bm(xm,"renderDot",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):De(e)?n=e(t):n=L.createElement(HO,z1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function q1(){return q1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q1.apply(this,arguments)}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 ED(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(n),!0).forEach(function(r){wm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Use(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S5(r.key),r)}}function Fse(e,t,n){return t&&Hse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gse(e,t,n){return t=fp(t),Vse(e,w5()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function Vse(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 Yse(e)}function Yse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w5=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(e)}function Wse(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&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U1(e,t)}function wm(e,t,n){return t=S5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S5(e){var t=Kse(e,"string");return hs(t)=="symbol"?t:t+""}function Kse(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xse=function(t,n,r,i,l){var s=l.x1,c=l.x2,f=l.y1,d=l.y2,m=l.xAxis,p=l.yAxis;if(!m||!p)return null;var y=FO({x:m.scale,y:p.scale}),x={x:t?y.x.apply(s,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},O={x:n?y.x.apply(c,{position:"end"}):y.x.rangeMax,y:i?y.y.apply(d,{position:"end"}):y.y.rangeMax};return ea(l,"discard")&&(!y.isInRange(x)||!y.isInRange(O))?null:s5(x,O)},Sm=(function(e){function t(){return Use(this,t),Gse(this,t,arguments)}return Wse(t,e),Fse(t,[{key:"render",value:function(){var r=this.props,i=r.x1,l=r.x2,s=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Ra(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Ht(i),y=Ht(l),x=Ht(s),O=Ht(c),w=this.props.shape;if(!p&&!y&&!x&&!O&&!w)return null;var S=Xse(p,y,x,O,this.props);if(!S&&!w)return null;var E=ea(this.props,"hidden")?"url(#".concat(m,")"):void 0;return L.createElement(jt,{className:Ue("recharts-reference-area",f)},t.renderRect(w,AD(AD({clipPath:E},qe(this.props,!0)),S)),hn.renderCallByParent(this.props,S))}}])})(L.Component);wm(Sm,"displayName","ReferenceArea");wm(Sm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});wm(Sm,"renderRect",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):De(e)?n=e(t):n=L.createElement(UO,q1({},t,{className:"recharts-reference-area-rect"})),n});function O5(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function Qse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return nse(r,n)}function Zse(e,t,n){var r=n==="width",i=e.x,l=e.y,s=e.width,c=e.height;return t===1?{start:r?i:l,end:r?i+s:l+c}:{start:r?i+s:l+c,end:r?i:l}}function dp(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var l=n();return e*(t-e*l/2-r)>=0&&e*(t+e*l/2-i)<=0}function Jse(e,t){return O5(e,t+1)}function eue(e,t,n,r,i){for(var l=(r||[]).slice(),s=t.start,c=t.end,f=0,d=1,m=s,p=function(){var O=r==null?void 0:r[f];if(O===void 0)return{v:O5(r,d)};var w=f,S,E=function(){return S===void 0&&(S=n(O,w)),S},T=O.coordinate,A=f===0||dp(e,T,E,m,c);A||(f=0,m=s,d+=1),A&&(m=T+e*(E()/2+i),f+=d)},y;d<=l.length;)if(y=p(),y)return y.v;return[]}function Fc(e){"@babel/helpers - typeof";return Fc=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},Fc(e)}function TD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TD(Object(n),!0).forEach(function(r){tue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tue(e,t,n){return t=nue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nue(e){var t=rue(e,"string");return Fc(t)=="symbol"?t:t+""}function rue(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aue(e,t,n,r,i){for(var l=(r||[]).slice(),s=l.length,c=t.start,f=t.end,d=function(y){var x=l[y],O,w=function(){return O===void 0&&(O=n(x,y)),O};if(y===s-1){var S=e*(x.coordinate+e*w()/2-f);l[y]=x=fn(fn({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else l[y]=x=fn(fn({},x),{},{tickCoord:x.coordinate});var E=dp(e,x.tickCoord,w,c,f);E&&(f=x.tickCoord-e*(w()/2+i),l[y]=fn(fn({},x),{},{isShow:!0}))},m=s-1;m>=0;m--)d(m);return l}function iue(e,t,n,r,i,l){var s=(r||[]).slice(),c=s.length,f=t.start,d=t.end;if(l){var m=r[c-1],p=n(m,c-1),y=e*(m.coordinate+e*p/2-d);s[c-1]=m=fn(fn({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate});var x=dp(e,m.tickCoord,function(){return p},f,d);x&&(d=m.tickCoord-e*(p/2+i),s[c-1]=fn(fn({},m),{},{isShow:!0}))}for(var O=l?c-1:c,w=function(T){var A=s[T],M,j=function(){return M===void 0&&(M=n(A,T)),M};if(T===0){var N=e*(A.coordinate-e*j()/2-f);s[T]=A=fn(fn({},A),{},{tickCoord:N<0?A.coordinate-N*e:A.coordinate})}else s[T]=A=fn(fn({},A),{},{tickCoord:A.coordinate});var R=dp(e,A.tickCoord,j,f,d);R&&(f=A.tickCoord+e*(j()/2+i),s[T]=fn(fn({},A),{},{isShow:!0}))},S=0;S<O;S++)w(S);return s}function QO(e,t,n){var r=e.tick,i=e.ticks,l=e.viewBox,s=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(ve(f)||Ds.isSsr)return Jse(i,typeof f=="number"&&ve(f)?f:0);var y=[],x=c==="top"||c==="bottom"?"width":"height",O=m&&x==="width"?ec(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(A,M){var j=De(d)?d(A.value,M):A.value;return x==="width"?Qse(ec(j,{fontSize:t,letterSpacing:n}),O,p):ec(j,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?jr(i[1].coordinate-i[0].coordinate):1,E=Zse(l,S,x);return f==="equidistantPreserveStart"?eue(S,E,w,i,s):(f==="preserveStart"||f==="preserveStartEnd"?y=iue(S,E,w,i,s,f==="preserveStartEnd"):y=aue(S,E,w,i,s),y.filter(function(T){return T.isShow}))}var oue=["viewBox"],lue=["viewBox"],sue=["ticks"];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 Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ll.apply(this,arguments)}function jD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(n),!0).forEach(function(r){ZO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ow(e,t){if(e==null)return{};var n=uue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,E5(r.key),r)}}function fue(e,t,n){return t&&CD(e.prototype,t),n&&CD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function due(e,t,n){return t=hp(t),hue(e,_5()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function hue(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 pue(e)}function pue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_5=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function mue(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&&H1(e,t)}function H1(e,t){return H1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},H1(e,t)}function ZO(e,t,n){return t=E5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E5(e){var t=vue(e,"string");return ps(t)=="symbol"?t:t+""}function vue(e,t){if(ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Is=(function(e){function t(n){var r;return cue(this,t),r=due(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return mue(t,e),fue(t,[{key:"shouldComponentUpdate",value:function(r,i){var l=r.viewBox,s=ow(r,oue),c=this.props,f=c.viewBox,d=ow(c,lue);return!Gl(l,f)||!Gl(s,d)||!Gl(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,l=i.x,s=i.y,c=i.width,f=i.height,d=i.orientation,m=i.tickSize,p=i.mirror,y=i.tickMargin,x,O,w,S,E,T,A=p?-1:1,M=r.tickSize||m,j=ve(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=O=r.coordinate,S=s+ +!p*f,w=S-A*M,T=w-A*y,E=j;break;case"left":w=S=r.coordinate,O=l+ +!p*c,x=O-A*M,E=x-A*y,T=j;break;case"right":w=S=r.coordinate,O=l+ +p*c,x=O+A*M,E=x+A*y,T=j;break;default:x=O=r.coordinate,S=s+ +p*f,w=S+A*M,T=w+A*y,E=j;break}return{line:{x1:x,y1:w,x2:O,y2:S},tick:{x:E,y:T}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,l=r.mirror,s;switch(i){case"left":s=l?"start":"end";break;case"right":s=l?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,l=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=l?"start":"end";break;default:s=l?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,p=Bt(Bt(Bt({},qe(this.props,!1)),qe(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!d||f==="bottom"&&d);p=Bt(Bt({},p),{},{x1:i,y1:l+y*c,x2:i+s,y2:l+y*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);p=Bt(Bt({},p),{},{x1:i+x*s,y1:l,x2:i+x*s,y2:l+c})}return L.createElement("line",Ll({},p,{className:Ue("recharts-cartesian-axis-line",dr(m,"className"))}))}},{key:"renderTicks",value:function(r,i,l){var s=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,p=c.tickFormatter,y=c.unit,x=QO(Bt(Bt({},this.props),{},{ticks:r}),i,l),O=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=qe(this.props,!1),E=qe(m,!1),T=Bt(Bt({},S),{},{fill:"none"},qe(f,!1)),A=x.map(function(M,j){var N=s.getTickLineCoord(M),R=N.line,k=N.tick,I=Bt(Bt(Bt(Bt({textAnchor:O,verticalAnchor:w},S),{},{stroke:"none",fill:d},E),k),{},{index:j,payload:M,visibleTicksCount:x.length,tickFormatter:p});return L.createElement(jt,Ll({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},_h(s.props,M,j)),f&&L.createElement("line",Ll({},T,R,{className:Ue("recharts-cartesian-axis-tick-line",dr(f,"className"))})),m&&t.renderTickItem(m,I,"".concat(De(p)?p(M.value,j):M.value).concat(y||"")))});return L.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var r=this,i=this.props,l=i.axisLine,s=i.width,c=i.height,f=i.ticksGenerator,d=i.className,m=i.hide;if(m)return null;var p=this.props,y=p.ticks,x=ow(p,sue),O=y;return De(f)&&(O=y&&y.length>0?f(this.props):f(x)),s<=0||c<=0||!O||!O.length?null:L.createElement(jt,{className:Ue("recharts-cartesian-axis",d),ref:function(S){r.layerReference=S}},l&&this.renderAxisLine(),this.renderTicks(O,this.state.fontSize,this.state.letterSpacing),hn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,l){var s,c=Ue(i.className,"recharts-cartesian-axis-tick-value");return L.isValidElement(r)?s=L.cloneElement(r,Bt(Bt({},i),{},{className:c})):De(r)?s=r(Bt(Bt({},i),{},{className:c})):s=L.createElement(kh,Ll({},i,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(_.Component);ZO(Is,"displayName","CartesianAxis");ZO(Is,"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 gue=["x1","y1","x2","y2","key"],yue=["offset"];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)}function MD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(n),!0).forEach(function(r){bue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bue(e,t,n){return t=xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xue(e){var t=wue(e,"string");return jo(t)=="symbol"?t:t+""}function wue(e,t){if(jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}function ND(e,t){if(e==null)return{};var n=Sue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Oue=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,l=t.y,s=t.width,c=t.height,f=t.ry;return L.createElement("rect",{x:i,y:l,ry:f,width:s,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function A5(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if(De(e))n=e(t);else{var r=t.x1,i=t.y1,l=t.x2,s=t.y2,c=t.key,f=ND(t,gue),d=qe(f,!1);d.offset;var m=ND(d,yue);n=L.createElement("line",vo({},m,{x1:r,y1:i,x2:l,y2:s,fill:"none",key:c}))}return n}function _ue(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,l=e.horizontalPoints;if(!i||!l||!l.length)return null;var s=l.map(function(c,f){var d=pn(pn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return A5(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Eue(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,l=e.verticalPoints;if(!i||!l||!l.length)return null;var s=l.map(function(c,f){var d=pn(pn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return A5(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Aue(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,l=e.width,s=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(y){return Math.round(y+i-i)}).sort(function(y,x){return y-x});i!==m[0]&&m.unshift(0);var p=m.map(function(y,x){var O=!m[x+1],w=O?i+s-y:m[x+1]-y;if(w<=0)return null;var S=x%t.length;return L.createElement("rect",{key:"react-".concat(x),y,x:r,height:w,width:l,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Tue(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,l=e.x,s=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(y){return Math.round(y+l-l)}).sort(function(y,x){return y-x});l!==m[0]&&m.unshift(0);var p=m.map(function(y,x){var O=!m[x+1],w=O?l+c-y:m[x+1]-y;if(w<=0)return null;var S=x%r.length;return L.createElement("rect",{key:"react-".concat(x),x:y,y:s,width:w,height:f,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var jue=function(t,n){var r=t.xAxis,i=t.width,l=t.height,s=t.offset;return B4(QO(pn(pn(pn({},Is.defaultProps),r),{},{ticks:Ca(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.left,s.left+s.width,n)},Cue=function(t,n){var r=t.yAxis,i=t.width,l=t.height,s=t.offset;return B4(QO(pn(pn(pn({},Is.defaultProps),r),{},{ticks:Ca(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.top,s.top+s.height,n)},Pl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function T5(e){var t,n,r,i,l,s,c=YO(),f=WO(),d=vse(),m=pn(pn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Pl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Pl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Pl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Pl.horizontalFill,vertical:(l=e.vertical)!==null&&l!==void 0?l:Pl.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Pl.verticalFill,x:ve(e.x)?e.x:d.left,y:ve(e.y)?e.y:d.top,width:ve(e.width)?e.width:d.width,height:ve(e.height)?e.height:d.height}),p=m.x,y=m.y,x=m.width,O=m.height,w=m.syncWithTicks,S=m.horizontalValues,E=m.verticalValues,T=hse(),A=pse();if(!ve(x)||x<=0||!ve(O)||O<=0||!ve(p)||p!==+p||!ve(y)||y!==+y)return null;var M=m.verticalCoordinatesGenerator||jue,j=m.horizontalCoordinatesGenerator||Cue,N=m.horizontalPoints,R=m.verticalPoints;if((!N||!N.length)&&De(j)){var k=S&&S.length,I=j({yAxis:A?pn(pn({},A),{},{ticks:k?S:A.ticks}):void 0,width:c,height:f,offset:d},k?!0:w);Ra(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(jo(I),"]")),Array.isArray(I)&&(N=I)}if((!R||!R.length)&&De(M)){var V=E&&E.length,z=M({xAxis:T?pn(pn({},T),{},{ticks:V?E:T.ticks}):void 0,width:c,height:f,offset:d},V?!0:w);Ra(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(jo(z),"]")),Array.isArray(z)&&(R=z)}return L.createElement("g",{className:"recharts-cartesian-grid"},L.createElement(Oue,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),L.createElement(_ue,vo({},m,{offset:d,horizontalPoints:N,xAxis:T,yAxis:A})),L.createElement(Eue,vo({},m,{offset:d,verticalPoints:R,xAxis:T,yAxis:A})),L.createElement(Aue,vo({},m,{horizontalPoints:N})),L.createElement(Tue,vo({},m,{verticalPoints:R})))}T5.displayName="CartesianGrid";var Mue=["type","layout","connectNulls","ref"],Nue=["key"];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 RD(e,t){if(e==null)return{};var n=Rue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ac.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){Er(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dl(e){return $ue(e)||kue(e)||Due(e)||Pue()}function Pue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
367
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Due(e,t){if(e){if(typeof e=="string")return F1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F1(e,t)}}function kue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ue(e){if(Array.isArray(e))return F1(e)}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C5(r.key),r)}}function Iue(e,t,n){return t&&DD(e.prototype,t),n&&DD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zue(e,t,n){return t=pp(t),Bue(e,j5()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function Bue(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 que(e)}function que(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j5=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function Uue(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&&G1(e,t)}function G1(e,t){return G1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},G1(e,t)}function Er(e,t,n){return t=C5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C5(e){var t=Hue(e,"string");return ms(t)=="symbol"?t:t+""}function Hue(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wr=(function(e){function t(){var n;Lue(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=zue(this,t,[].concat(i)),Er(n,"state",{isAnimationFinished:!0,totalLength:0}),Er(n,"generateSimpleStrokeDasharray",function(s,c){return"".concat(c,"px ").concat(s-c,"px")}),Er(n,"getStrokeDasharray",function(s,c,f){var d=f.reduce(function(E,T){return E+T});if(!d)return n.generateSimpleStrokeDasharray(c,s);for(var m=Math.floor(s/d),p=s%d,y=c-s,x=[],O=0,w=0;O<f.length;w+=f[O],++O)if(w+f[O]>p){x=[].concat(Dl(f.slice(0,O)),[p-w]);break}var S=x.length%2===0?[0,y]:[y];return[].concat(Dl(t.repeat(f,m)),Dl(x),S).map(function(E){return"".concat(E,"px")}).join(", ")}),Er(n,"id",uf("recharts-line-")),Er(n,"pathRef",function(s){n.mainCurve=s}),Er(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Er(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Uue(t,e),Iue(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.points,c=l.xAxis,f=l.yAxis,d=l.layout,m=l.children,p=hr(m,mf);if(!p)return null;var y=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:Wn(w.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return L.createElement(jt,x,p.map(function(O){return L.cloneElement(O,{key:"bar-".concat(O.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,dataPointFormatter:y})}))}},{key:"renderDots",value:function(r,i,l){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,p=qe(this.props,!1),y=qe(f,!0),x=d.map(function(w,S){var E=Un(Un(Un({key:"dot-".concat(S),r:3},p),y),{},{index:S,cx:w.x,cy:w.y,value:w.value,dataKey:m,payload:w.payload,points:d});return t.renderDotItem(f,E)}),O={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(l,")"):null};return L.createElement(jt,ac({className:"recharts-line-dots",key:"dots"},O),x)}},{key:"renderCurveStatically",value:function(r,i,l,s){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var p=RD(c,Mue),y=Un(Un(Un({},qe(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(l,")"):null,points:r},s),{},{type:f,layout:d,connectNulls:m});return L.createElement(S1,ac({},y,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var l=this,s=this.props,c=s.points,f=s.strokeDasharray,d=s.isAnimationActive,m=s.animationBegin,p=s.animationDuration,y=s.animationEasing,x=s.animationId,O=s.animateNewValues,w=s.width,S=s.height,E=this.state,T=E.prevPoints,A=E.totalLength;return L.createElement(Ba,{begin:m,duration:p,isActive:d,easing:y,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var j=M.t;if(T){var N=T.length/c.length,R=c.map(function(B,G){var K=Math.floor(G*N);if(T[K]){var X=T[K],D=Ar(X.x,B.x),U=Ar(X.y,B.y);return Un(Un({},B),{},{x:D(j),y:U(j)})}if(O){var Y=Ar(w*2,B.x),W=Ar(S/2,B.y);return Un(Un({},B),{},{x:Y(j),y:W(j)})}return Un(Un({},B),{},{x:B.x,y:B.y})});return l.renderCurveStatically(R,r,i)}var k=Ar(0,A),I=k(j),V;if(f){var z="".concat(f).split(/[,\s]+/gim).map(function(B){return parseFloat(B)});V=l.getStrokeDasharray(I,A,z)}else V=l.generateSimpleStrokeDasharray(A,I);return l.renderCurveStatically(c,r,i,{strokeDasharray:V})})}},{key:"renderCurve",value:function(r,i){var l=this.props,s=l.points,c=l.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&s&&s.length&&(!d&&m>0||!hm(d,s))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(s,r,i)}},{key:"render",value:function(){var r,i=this.props,l=i.hide,s=i.dot,c=i.points,f=i.className,d=i.xAxis,m=i.yAxis,p=i.top,y=i.left,x=i.width,O=i.height,w=i.isAnimationActive,S=i.id;if(l||!c||!c.length)return null;var E=this.state.isAnimationFinished,T=c.length===1,A=Ue("recharts-line",f),M=d&&d.allowDataOverflow,j=m&&m.allowDataOverflow,N=M||j,R=Le(S)?this.id:S,k=(r=qe(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},I=k.r,V=I===void 0?3:I,z=k.strokeWidth,B=z===void 0?2:z,G=iK(s)?s:{},K=G.clipDot,X=K===void 0?!0:K,D=V*2+B;return L.createElement(jt,{className:A},M||j?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(R)},L.createElement("rect",{x:M?y:y-x/2,y:j?p:p-O/2,width:M?x:x*2,height:j?O:O*2})),!X&&L.createElement("clipPath",{id:"clipPath-dots-".concat(R)},L.createElement("rect",{x:y-D/2,y:p-D/2,width:x+D,height:O+D}))):null,!T&&this.renderCurve(N,R),this.renderErrorBar(N,R),(T||s)&&this.renderDots(N,X,R),(!w||E)&&Ei.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var l=r.length%2!==0?[].concat(Dl(r),[0]):r,s=[],c=0;c<i;++c)s=[].concat(Dl(s),Dl(l));return s}},{key:"renderDotItem",value:function(r,i){var l;if(L.isValidElement(r))l=L.cloneElement(r,i);else if(De(r))l=r(i);else{var s=i.key,c=RD(i,Nue),f=Ue("recharts-line-dot",typeof r!="boolean"?r.className:"");l=L.createElement(HO,ac({key:s},c,{className:f}))}return l}}])})(_.PureComponent);Er(Wr,"displayName","Line");Er(Wr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ds.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Er(Wr,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,l=e.yAxisTicks,s=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,p=f.map(function(y,x){var O=Wn(y,s);return m==="horizontal"?{x:WR({axis:n,ticks:i,bandSize:c,entry:y,index:x}),y:Le(O)?null:r.scale(O),value:O,payload:y}:{x:Le(O)?null:n.scale(O),y:WR({axis:r,ticks:l,bandSize:c,entry:y,index:x}),value:O,payload:y}});return Un({points:p,layout:m},d)});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 Fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,R5(r.key),r)}}function Vue(e,t,n){return t&&Gue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yue(e,t,n){return t=mp(t),Wue(e,M5()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}function Wue(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 Kue(e)}function Kue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M5=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mp(e)}function Xue(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&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},V1(e,t)}function N5(e,t,n){return t=R5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R5(e){var t=Que(e,"string");return vs(t)=="symbol"?t:t+""}function Que(e,t){if(vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(this,arguments)}function Zue(e){var t=e.xAxisId,n=YO(),r=WO(),i=m5(t);return i==null?null:_.createElement(Is,Y1({},i,{className:Ue("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Ca(s,!0)}}))}var Om=(function(e){function t(){return Fue(this,t),Yue(this,t,arguments)}return Xue(t,e),Vue(t,[{key:"render",value:function(){return _.createElement(Zue,this.props)}}])})(_.Component);N5(Om,"displayName","XAxis");N5(Om,"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 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 Jue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ece(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k5(r.key),r)}}function tce(e,t,n){return t&&ece(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nce(e,t,n){return t=vp(t),rce(e,P5()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function rce(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 ace(e)}function ace(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P5=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function ice(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&&W1(e,t)}function W1(e,t){return W1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},W1(e,t)}function D5(e,t,n){return t=k5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k5(e){var t=oce(e,"string");return gs(t)=="symbol"?t:t+""}function oce(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function K1(){return K1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K1.apply(this,arguments)}var lce=function(t){var n=t.yAxisId,r=YO(),i=WO(),l=v5(n);return l==null?null:_.createElement(Is,K1({},l,{className:Ue("recharts-".concat(l.axisType," ").concat(l.axisType),l.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(c){return Ca(c,!0)}}))},_m=(function(e){function t(){return Jue(this,t),nce(this,t,arguments)}return ice(t,e),tce(t,[{key:"render",value:function(){return _.createElement(lce,this.props)}}])})(_.Component);D5(_m,"displayName","YAxis");D5(_m,"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 kD(e){return fce(e)||cce(e)||uce(e)||sce()}function sce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
368
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uce(e,t){if(e){if(typeof e=="string")return X1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X1(e,t)}}function cce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fce(e){if(Array.isArray(e))return X1(e)}function X1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Q1=function(t,n,r,i,l){var s=hr(t,XO),c=hr(t,xm),f=[].concat(kD(s),kD(c)),d=hr(t,Sm),m="".concat(i,"Id"),p=i[0],y=n;if(f.length&&(y=f.reduce(function(w,S){if(S.props[m]===r&&ea(S.props,"extendDomain")&&ve(S.props[p])){var E=S.props[p];return[Math.min(w[0],E),Math.max(w[1],E)]}return w},y)),d.length){var x="".concat(p,"1"),O="".concat(p,"2");y=d.reduce(function(w,S){if(S.props[m]===r&&ea(S.props,"extendDomain")&&ve(S.props[x])&&ve(S.props[O])){var E=S.props[x],T=S.props[O];return[Math.min(w[0],E,T),Math.max(w[1],E,T)]}return w},y)}return l&&l.length&&(y=l.reduce(function(w,S){return ve(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},y)),y},lw={exports:{}},$D;function dce(){return $D||($D=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function l(f,d,m,p,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new i(m,p||f,y),O=n?n+d:d;return f._events[O]?f._events[O].fn?f._events[O]=[f._events[O],x]:f._events[O].push(x):(f._events[O]=x,f._eventsCount++),f}function s(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,p;if(this._eventsCount===0)return d;for(p in m=this._events)t.call(m,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,x=p.length,O=new Array(x);y<x;y++)O[y]=p[y].fn;return O},c.prototype.listenerCount=function(d){var m=n?n+d:d,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,m,p,y,x,O){var w=n?n+d:d;if(!this._events[w])return!1;var S=this._events[w],E=arguments.length,T,A;if(S.fn){switch(S.once&&this.removeListener(d,S.fn,void 0,!0),E){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,m),!0;case 3:return S.fn.call(S.context,m,p),!0;case 4:return S.fn.call(S.context,m,p,y),!0;case 5:return S.fn.call(S.context,m,p,y,x),!0;case 6:return S.fn.call(S.context,m,p,y,x,O),!0}for(A=1,T=new Array(E-1);A<E;A++)T[A-1]=arguments[A];S.fn.apply(S.context,T)}else{var M=S.length,j;for(A=0;A<M;A++)switch(S[A].once&&this.removeListener(d,S[A].fn,void 0,!0),E){case 1:S[A].fn.call(S[A].context);break;case 2:S[A].fn.call(S[A].context,m);break;case 3:S[A].fn.call(S[A].context,m,p);break;case 4:S[A].fn.call(S[A].context,m,p,y);break;default:if(!T)for(j=1,T=new Array(E-1);j<E;j++)T[j-1]=arguments[j];S[A].fn.apply(S[A].context,T)}}return!0},c.prototype.on=function(d,m,p){return l(this,d,m,p,!1)},c.prototype.once=function(d,m,p){return l(this,d,m,p,!0)},c.prototype.removeListener=function(d,m,p,y){var x=n?n+d:d;if(!this._events[x])return this;if(!m)return s(this,x),this;var O=this._events[x];if(O.fn)O.fn===m&&(!y||O.once)&&(!p||O.context===p)&&s(this,x);else{for(var w=0,S=[],E=O.length;w<E;w++)(O[w].fn!==m||y&&!O[w].once||p&&O[w].context!==p)&&S.push(O[w]);S.length?this._events[x]=S.length===1?S[0]:S:s(this,x)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&s(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(lw)),lw.exports}var hce=dce();const pce=lt(hce);var sw=new pce,uw="recharts.syncMouseEvents";function Gc(e){"@babel/helpers - typeof";return Gc=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},Gc(e)}function mce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$5(r.key),r)}}function gce(e,t,n){return t&&vce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cw(e,t,n){return t=$5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $5(e){var t=yce(e,"string");return Gc(t)=="symbol"?t:t+""}function yce(e,t){if(Gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bce=(function(){function e(){mce(this,e),cw(this,"activeIndex",0),cw(this,"coordinateList",[]),cw(this,"layout","horizontal")}return gce(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,l=i===void 0?null:i,s=n.container,c=s===void 0?null:s,f=n.layout,d=f===void 0?null:f,m=n.offset,p=m===void 0?null:m,y=n.mouseHandlerCallback,x=y===void 0?null:y;this.coordinateList=(r=l??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=x??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),l=i.x,s=i.y,c=i.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=l+f+d,y=s+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:p,pageY:y})}}}])})();function xce(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ve(r)&&ve(i))return!0}return!1}function wce(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function L5(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,l=e.endAngle,s=on(t,n,r,i),c=on(t,n,r,l);return{points:[s,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:l}}function Sce(e,t,n){var r,i,l,s;if(e==="horizontal")r=t.x,l=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,l=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,p=t.angle,y=on(c,f,d,p),x=on(c,f,m,p);r=y.x,i=y.y,l=x.x,s=x.y}else return L5(t);return[{x:r,y:i},{x:l,y:s}]}function Vc(e){"@babel/helpers - typeof";return Vc=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},Vc(e)}function LD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LD(Object(n),!0).forEach(function(r){Oce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oce(e,t,n){return t=_ce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ce(e){var t=Ece(e,"string");return Vc(t)=="symbol"?t:t+""}function Ece(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ace(e){var t,n,r=e.element,i=e.tooltipEventType,l=e.isActive,s=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,p=e.layout,y=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!l||!s||y!=="ScatterChart"&&i!=="axis")return null;var O,w=S1;if(y==="ScatterChart")O=s,w=Ooe;else if(y==="BarChart")O=wce(p,s,f,m),w=UO;else if(p==="radial"){var S=L5(s),E=S.cx,T=S.cy,A=S.radius,M=S.startAngle,j=S.endAngle;O={cx:E,cy:T,startAngle:M,endAngle:j,innerRadius:A,outerRadius:A},w=G4}else O={points:Sce(p,s,f)},w=S1;var N=Zd(Zd(Zd(Zd({stroke:"#ccc",pointerEvents:"none"},f),O),qe(x,!1)),{},{payload:c,payloadIndex:d,className:Ue("recharts-tooltip-cursor",x.className)});return _.isValidElement(x)?_.cloneElement(x,N):_.createElement(w,N)}var Tce=["item"],jce=["children","className","width","height","style","compact","title","desc"];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 Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Il.apply(this,arguments)}function ID(e,t){return Nce(e)||Mce(e,t)||z5(e,t)||Cce()}function Cce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
369
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Nce(e){if(Array.isArray(e))return e}function zD(e,t){if(e==null)return{};var n=Rce(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Pce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B5(r.key),r)}}function kce(e,t,n){return t&&Dce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ce(e,t,n){return t=gp(t),Lce(e,I5()?Reflect.construct(t,n||[],gp(e).constructor):t.apply(e,n))}function Lce(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 Ice(e)}function Ice(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I5=function(){return!!e})()}function gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gp(e)}function zce(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&&Z1(e,t)}function Z1(e,t){return Z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Z1(e,t)}function bs(e){return Uce(e)||qce(e)||z5(e)||Bce()}function Bce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
370
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z5(e,t){if(e){if(typeof e=="string")return J1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J1(e,t)}}function qce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uce(e){if(Array.isArray(e))return J1(e)}function J1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(n),!0).forEach(function(r){Ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ae(e,t,n){return t=B5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B5(e){var t=Hce(e,"string");return ys(t)=="symbol"?t:t+""}function Hce(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fce={xAxis:["bottom","top"],yAxis:["left","right"]},Gce={width:"100%",height:"100%"},q5={x:0,y:0};function Jd(e){return e}var Vce=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Yce=function(t,n,r,i){var l=n.find(function(m){return m&&m.index===r});if(l){if(t==="horizontal")return{x:l.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:l.coordinate};if(t==="centric"){var s=l.coordinate,c=i.radius;return le(le(le({},i),on(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}var f=l.coordinate,d=i.angle;return le(le(le({},i),on(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return q5},Em=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,l=n.dataEndIndex,s=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(bs(c),bs(d)):c},[]);return s.length>0?s:t&&t.length&&ve(i)&&ve(l)?t.slice(i,l+1):[]};function U5(e){return e==="number"?[0,"auto"]:void 0}var eS=function(t,n,r,i){var l=t.graphicalItems,s=t.tooltipAxis,c=Em(n,t);return r<0||!l||!l.length||r>=c.length?null:l.reduce(function(f,d){var m,p=(m=d.props.data)!==null&&m!==void 0?m:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(s.dataKey&&!s.allowDuplicatedCategory){var x=p===void 0?c:p;y=Sh(x,s.dataKey,i)}else y=p&&p[r]||c[r];return y?[].concat(bs(f),[U4(d,y)]):f},[])},qD=function(t,n,r,i){var l=i||{x:t.chartX,y:t.chartY},s=Vce(l,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=ire(s,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,y=eS(t,n,m,p),x=Yce(r,c,m,l);return{activeTooltipIndex:m,activeLabel:p,activePayload:y,activeCoordinate:x}}return null},Wce=function(t,n){var r=n.axes,i=n.graphicalItems,l=n.axisType,s=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,y=t.stackOffset,x=z4(m,l);return r.reduce(function(O,w){var S,E=w.type.defaultProps!==void 0?le(le({},w.type.defaultProps),w.props):w.props,T=E.type,A=E.dataKey,M=E.allowDataOverflow,j=E.allowDuplicatedCategory,N=E.scale,R=E.ticks,k=E.includeHidden,I=E[s];if(O[I])return O;var V=Em(t.data,{graphicalItems:i.filter(function(F){var Z,se=s in F.props?F.props[s]:(Z=F.type.defaultProps)===null||Z===void 0?void 0:Z[s];return se===I}),dataStartIndex:f,dataEndIndex:d}),z=V.length,B,G,K;xce(E.domain,M,T)&&(B=g1(E.domain,null,M),x&&(T==="number"||N!=="auto")&&(K=nc(V,A,"category")));var X=U5(T);if(!B||B.length===0){var D,U=(D=E.domain)!==null&&D!==void 0?D:X;if(A){if(B=nc(V,A,T),T==="category"&&x){var Y=KW(B);j&&Y?(G=B,B=ap(0,z)):j||(B=ZR(U,B,w).reduce(function(F,Z){return F.indexOf(Z)>=0?F:[].concat(bs(F),[Z])},[]))}else if(T==="category")j?B=B.filter(function(F){return F!==""&&!Le(F)}):B=ZR(U,B,w).reduce(function(F,Z){return F.indexOf(Z)>=0||Z===""||Le(Z)?F:[].concat(bs(F),[Z])},[]);else if(T==="number"){var W=cre(V,i.filter(function(F){var Z,se,de=s in F.props?F.props[s]:(Z=F.type.defaultProps)===null||Z===void 0?void 0:Z[s],ge="hide"in F.props?F.props.hide:(se=F.type.defaultProps)===null||se===void 0?void 0:se.hide;return de===I&&(k||!ge)}),A,l,m);W&&(B=W)}x&&(T==="number"||N!=="auto")&&(K=nc(V,A,"category"))}else x?B=ap(0,z):c&&c[I]&&c[I].hasStack&&T==="number"?B=y==="expand"?[0,1]:q4(c[I].stackGroups,f,d):B=I4(V,i.filter(function(F){var Z=s in F.props?F.props[s]:F.type.defaultProps[s],se="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return Z===I&&(k||!se)}),T,m,!0);if(T==="number")B=Q1(p,B,I,l,R),U&&(B=g1(U,B,M));else if(T==="category"&&U){var oe=U,$=B.every(function(F){return oe.indexOf(F)>=0});$&&(B=oe)}}return le(le({},O),{},Ae({},I,le(le({},E),{},{axisType:l,domain:B,categoricalDomain:K,duplicateDomain:G,originalDomain:(S=E.domain)!==null&&S!==void 0?S:X,isCategorical:x,layout:m})))},{})},Kce=function(t,n){var r=n.graphicalItems,i=n.Axis,l=n.axisType,s=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,y=Em(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=y.length,O=z4(m,l),w=-1;return r.reduce(function(S,E){var T=E.type.defaultProps!==void 0?le(le({},E.type.defaultProps),E.props):E.props,A=T[s],M=U5("number");if(!S[A]){w++;var j;return O?j=ap(0,x):c&&c[A]&&c[A].hasStack?(j=q4(c[A].stackGroups,f,d),j=Q1(p,j,A,l)):(j=g1(M,I4(y,r.filter(function(N){var R,k,I=s in N.props?N.props[s]:(R=N.type.defaultProps)===null||R===void 0?void 0:R[s],V="hide"in N.props?N.props.hide:(k=N.type.defaultProps)===null||k===void 0?void 0:k.hide;return I===A&&!V}),"number",m),i.defaultProps.allowDataOverflow),j=Q1(p,j,A,l)),le(le({},S),{},Ae({},A,le(le({axisType:l},i.defaultProps),{},{hide:!0,orientation:dr(Fce,"".concat(l,".").concat(w%2),null),domain:j,originalDomain:M,isCategorical:O,layout:m})))}return S},{})},Xce=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,l=n.AxisComp,s=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,p="".concat(i,"Id"),y=hr(m,l),x={};return y&&y.length?x=Wce(t,{axes:y,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):s&&s.length&&(x=Kce(t,{Axis:l,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},Qce=function(t){var n=Si(t),r=Ca(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:mO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Kh(n,r)}},UD=function(t){var n=t.children,r=t.defaultShowTooltip,i=Fn(n,us),l=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(l=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},Zce=function(t){return!t||!t.length?!1:t.some(function(n){var r=Na(n&&n.type);return r&&r.indexOf("Bar")>=0})},HD=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"}},Jce=function(t,n){var r=t.props,i=t.graphicalItems,l=t.xAxisMap,s=l===void 0?{}:l,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,p=r.children,y=r.margin||{},x=Fn(p,us),O=Fn(p,go),w=Object.keys(f).reduce(function(j,N){var R=f[N],k=R.orientation;return!R.mirror&&!R.hide?le(le({},j),{},Ae({},k,j[k]+R.width)):j},{left:y.left||0,right:y.right||0}),S=Object.keys(s).reduce(function(j,N){var R=s[N],k=R.orientation;return!R.mirror&&!R.hide?le(le({},j),{},Ae({},k,dr(j,"".concat(k))+R.height)):j},{top:y.top||0,bottom:y.bottom||0}),E=le(le({},S),w),T=E.bottom;x&&(E.bottom+=x.props.height||us.defaultProps.height),O&&n&&(E=sre(E,i,r,n));var A=d-E.left-E.right,M=m-E.top-E.bottom;return le(le({brushBottom:T},E),{},{width:Math.max(A,0),height:Math.max(M,0)})},efe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},tfe=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,l=i===void 0?"axis":i,s=t.validateTooltipEventTypes,c=s===void 0?["axis"]:s,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,p=t.defaultProps,y=function(E,T){var A=T.graphicalItems,M=T.stackGroups,j=T.offset,N=T.updateId,R=T.dataStartIndex,k=T.dataEndIndex,I=E.barSize,V=E.layout,z=E.barGap,B=E.barCategoryGap,G=E.maxBarSize,K=HD(V),X=K.numericAxisName,D=K.cateAxisName,U=Zce(A),Y=[];return A.forEach(function(W,oe){var $=Em(E.data,{graphicalItems:[W],dataStartIndex:R,dataEndIndex:k}),F=W.type.defaultProps!==void 0?le(le({},W.type.defaultProps),W.props):W.props,Z=F.dataKey,se=F.maxBarSize,de=F["".concat(X,"Id")],ge=F["".concat(D,"Id")],fe={},pe=f.reduce(function(Dn,xt){var Kn=T["".concat(xt.axisType,"Map")],Gt=F["".concat(xt.axisType,"Id")];Kn&&Kn[Gt]||xt.axisType==="zAxis"||To();var Lo=Kn[Gt];return le(le({},Dn),{},Ae(Ae({},xt.axisType,Lo),"".concat(xt.axisType,"Ticks"),Ca(Lo)))},fe),ae=pe[D],me=pe["".concat(D,"Ticks")],ye=M&&M[de]&&M[de].hasStack&&Sre(W,M[de].stackGroups),re=Na(W.type).indexOf("Bar")>=0,Ne=Kh(ae,me),Oe=[],Ke=U&&ore({barSize:I,stackGroups:M,totalSize:efe(pe,D)});if(re){var Fe,nt,ln=Le(se)?G:se,ft=(Fe=(nt=Kh(ae,me,!0))!==null&&nt!==void 0?nt:ln)!==null&&Fe!==void 0?Fe:0;Oe=lre({barGap:z,barCategoryGap:B,bandSize:ft!==Ne?ft:Ne,sizeList:Ke[ge],maxBarSize:ln}),ft!==Ne&&(Oe=Oe.map(function(Dn){return le(le({},Dn),{},{position:le(le({},Dn.position),{},{offset:Dn.position.offset-ft/2})})}))}var zr=W&&W.type&&W.type.getComposedData;zr&&Y.push({props:le(le({},zr(le(le({},pe),{},{displayedData:$,props:E,dataKey:Z,item:W,bandSize:Ne,barPosition:Oe,offset:j,stackedData:ye,layout:V,dataStartIndex:R,dataEndIndex:k}))),{},Ae(Ae(Ae({key:W.key||"item-".concat(oe)},X,pe[X]),D,pe[D]),"animationId",N)),childIndex:sK(W,E.children),item:W})}),Y},x=function(E,T){var A=E.props,M=E.dataStartIndex,j=E.dataEndIndex,N=E.updateId;if(!dM({props:A}))return null;var R=A.children,k=A.layout,I=A.stackOffset,V=A.data,z=A.reverseStackOrder,B=HD(k),G=B.numericAxisName,K=B.cateAxisName,X=hr(R,r),D=bre(V,X,"".concat(G,"Id"),"".concat(K,"Id"),I,z),U=f.reduce(function(F,Z){var se="".concat(Z.axisType,"Map");return le(le({},F),{},Ae({},se,Xce(A,le(le({},Z),{},{graphicalItems:X,stackGroups:Z.axisType===G&&D,dataStartIndex:M,dataEndIndex:j}))))},{}),Y=Jce(le(le({},U),{},{props:A,graphicalItems:X}),T==null?void 0:T.legendBBox);Object.keys(U).forEach(function(F){U[F]=m(A,U[F],Y,F.replace("Map",""),n)});var W=U["".concat(K,"Map")],oe=Qce(W),$=y(A,le(le({},U),{},{dataStartIndex:M,dataEndIndex:j,updateId:N,graphicalItems:X,stackGroups:D,offset:Y}));return le(le({formattedGraphicalItems:$,graphicalItems:X,offset:Y,stackGroups:D},oe),U)},O=(function(S){function E(T){var A,M,j;return Pce(this,E),j=$ce(this,E,[T]),Ae(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ae(j,"accessibilityManager",new bce),Ae(j,"handleLegendBBoxUpdate",function(N){if(N){var R=j.state,k=R.dataStartIndex,I=R.dataEndIndex,V=R.updateId;j.setState(le({legendBBox:N},x({props:j.props,dataStartIndex:k,dataEndIndex:I,updateId:V},le(le({},j.state),{},{legendBBox:N}))))}}),Ae(j,"handleReceiveSyncEvent",function(N,R,k){if(j.props.syncId===N){if(k===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent(R)}}),Ae(j,"handleBrushChange",function(N){var R=N.startIndex,k=N.endIndex;if(R!==j.state.dataStartIndex||k!==j.state.dataEndIndex){var I=j.state.updateId;j.setState(function(){return le({dataStartIndex:R,dataEndIndex:k},x({props:j.props,dataStartIndex:R,dataEndIndex:k,updateId:I},j.state))}),j.triggerSyncEvent({dataStartIndex:R,dataEndIndex:k})}}),Ae(j,"handleMouseEnter",function(N){var R=j.getMouseInfo(N);if(R){var k=le(le({},R),{},{isTooltipActive:!0});j.setState(k),j.triggerSyncEvent(k);var I=j.props.onMouseEnter;De(I)&&I(k,N)}}),Ae(j,"triggeredAfterMouseMove",function(N){var R=j.getMouseInfo(N),k=R?le(le({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(k),j.triggerSyncEvent(k);var I=j.props.onMouseMove;De(I)&&I(k,N)}),Ae(j,"handleItemMouseEnter",function(N){j.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Ae(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),Ae(j,"handleMouseMove",function(N){N.persist(),j.throttleTriggeredAfterMouseMove(N)}),Ae(j,"handleMouseLeave",function(N){j.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};j.setState(R),j.triggerSyncEvent(R);var k=j.props.onMouseLeave;De(k)&&k(R,N)}),Ae(j,"handleOuterEvent",function(N){var R=lK(N),k=dr(j.props,"".concat(R));if(R&&De(k)){var I,V;/.*touch.*/i.test(R)?V=j.getMouseInfo(N.changedTouches[0]):V=j.getMouseInfo(N),k((I=V)!==null&&I!==void 0?I:{},N)}}),Ae(j,"handleClick",function(N){var R=j.getMouseInfo(N);if(R){var k=le(le({},R),{},{isTooltipActive:!0});j.setState(k),j.triggerSyncEvent(k);var I=j.props.onClick;De(I)&&I(k,N)}}),Ae(j,"handleMouseDown",function(N){var R=j.props.onMouseDown;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"handleMouseUp",function(N){var R=j.props.onMouseUp;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Ae(j,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseDown(N.changedTouches[0])}),Ae(j,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseUp(N.changedTouches[0])}),Ae(j,"handleDoubleClick",function(N){var R=j.props.onDoubleClick;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"handleContextMenu",function(N){var R=j.props.onContextMenu;if(De(R)){var k=j.getMouseInfo(N);R(k,N)}}),Ae(j,"triggerSyncEvent",function(N){j.props.syncId!==void 0&&sw.emit(uw,j.props.syncId,N,j.eventEmitterSymbol)}),Ae(j,"applySyncEvent",function(N){var R=j.props,k=R.layout,I=R.syncMethod,V=j.state.updateId,z=N.dataStartIndex,B=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)j.setState(le({dataStartIndex:z,dataEndIndex:B},x({props:j.props,dataStartIndex:z,dataEndIndex:B,updateId:V},j.state)));else if(N.activeTooltipIndex!==void 0){var G=N.chartX,K=N.chartY,X=N.activeTooltipIndex,D=j.state,U=D.offset,Y=D.tooltipTicks;if(!U)return;if(typeof I=="function")X=I(Y,N);else if(I==="value"){X=-1;for(var W=0;W<Y.length;W++)if(Y[W].value===N.activeLabel){X=W;break}}var oe=le(le({},U),{},{x:U.left,y:U.top}),$=Math.min(G,oe.x+oe.width),F=Math.min(K,oe.y+oe.height),Z=Y[X]&&Y[X].value,se=eS(j.state,j.props.data,X),de=Y[X]?{x:k==="horizontal"?Y[X].coordinate:$,y:k==="horizontal"?F:Y[X].coordinate}:q5;j.setState(le(le({},N),{},{activeLabel:Z,activeCoordinate:de,activePayload:se,activeTooltipIndex:X}))}else j.setState(N)}),Ae(j,"renderCursor",function(N){var R,k=j.state,I=k.isTooltipActive,V=k.activeCoordinate,z=k.activePayload,B=k.offset,G=k.activeTooltipIndex,K=k.tooltipAxisBandSize,X=j.getTooltipEventType(),D=(R=N.props.active)!==null&&R!==void 0?R:I,U=j.props.layout,Y=N.key||"_recharts-cursor";return L.createElement(Ace,{key:Y,activeCoordinate:V,activePayload:z,activeTooltipIndex:G,chartName:n,element:N,isActive:D,layout:U,offset:B,tooltipAxisBandSize:K,tooltipEventType:X})}),Ae(j,"renderPolarAxis",function(N,R,k){var I=dr(N,"type.axisType"),V=dr(j.state,"".concat(I,"Map")),z=N.type.defaultProps,B=z!==void 0?le(le({},z),N.props):N.props,G=V&&V[B["".concat(I,"Id")]];return _.cloneElement(N,le(le({},G),{},{className:Ue(I,G.className),key:N.key||"".concat(R,"-").concat(k),ticks:Ca(G,!0)}))}),Ae(j,"renderPolarGrid",function(N){var R=N.props,k=R.radialLines,I=R.polarAngles,V=R.polarRadius,z=j.state,B=z.radiusAxisMap,G=z.angleAxisMap,K=Si(B),X=Si(G),D=X.cx,U=X.cy,Y=X.innerRadius,W=X.outerRadius;return _.cloneElement(N,{polarAngles:Array.isArray(I)?I:Ca(X,!0).map(function(oe){return oe.coordinate}),polarRadius:Array.isArray(V)?V:Ca(K,!0).map(function(oe){return oe.coordinate}),cx:D,cy:U,innerRadius:Y,outerRadius:W,key:N.key||"polar-grid",radialLines:k})}),Ae(j,"renderLegend",function(){var N=j.state.formattedGraphicalItems,R=j.props,k=R.children,I=R.width,V=R.height,z=j.props.margin||{},B=I-(z.left||0)-(z.right||0),G=$4({children:k,formattedGraphicalItems:N,legendWidth:B,legendContent:d});if(!G)return null;var K=G.item,X=zD(G,Tce);return _.cloneElement(K,le(le({},X),{},{chartWidth:I,chartHeight:V,margin:z,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),Ae(j,"renderTooltip",function(){var N,R=j.props,k=R.children,I=R.accessibilityLayer,V=Fn(k,Yr);if(!V)return null;var z=j.state,B=z.isTooltipActive,G=z.activeCoordinate,K=z.activePayload,X=z.activeLabel,D=z.offset,U=(N=V.props.active)!==null&&N!==void 0?N:B;return _.cloneElement(V,{viewBox:le(le({},D),{},{x:D.left,y:D.top}),active:U,label:X,payload:U?K:[],coordinate:G,accessibilityLayer:I})}),Ae(j,"renderBrush",function(N){var R=j.props,k=R.margin,I=R.data,V=j.state,z=V.offset,B=V.dataStartIndex,G=V.dataEndIndex,K=V.updateId;return _.cloneElement(N,{key:N.key||"_recharts-brush",onChange:Wd(j.handleBrushChange,N.props.onChange),data:I,x:ve(N.props.x)?N.props.x:z.left,y:ve(N.props.y)?N.props.y:z.top+z.height+z.brushBottom-(k.bottom||0),width:ve(N.props.width)?N.props.width:z.width,startIndex:B,endIndex:G,updateId:"brush-".concat(K)})}),Ae(j,"renderReferenceElement",function(N,R,k){if(!N)return null;var I=j,V=I.clipPathId,z=j.state,B=z.xAxisMap,G=z.yAxisMap,K=z.offset,X=N.type.defaultProps||{},D=N.props,U=D.xAxisId,Y=U===void 0?X.xAxisId:U,W=D.yAxisId,oe=W===void 0?X.yAxisId:W;return _.cloneElement(N,{key:N.key||"".concat(R,"-").concat(k),xAxis:B[Y],yAxis:G[oe],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:V})}),Ae(j,"renderActivePoints",function(N){var R=N.item,k=N.activePoint,I=N.basePoint,V=N.childIndex,z=N.isRange,B=[],G=R.props.key,K=R.item.type.defaultProps!==void 0?le(le({},R.item.type.defaultProps),R.item.props):R.item.props,X=K.activeDot,D=K.dataKey,U=le(le({index:V,dataKey:D,cx:k.x,cy:k.y,r:4,fill:qO(R.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},qe(X,!1)),Oh(X));return B.push(E.renderActiveDot(X,U,"".concat(G,"-activePoint-").concat(V))),I?B.push(E.renderActiveDot(X,le(le({},U),{},{cx:I.x,cy:I.y}),"".concat(G,"-basePoint-").concat(V))):z&&B.push(null),B}),Ae(j,"renderGraphicChild",function(N,R,k){var I=j.filterFormatItem(N,R,k);if(!I)return null;var V=j.getTooltipEventType(),z=j.state,B=z.isTooltipActive,G=z.tooltipAxis,K=z.activeTooltipIndex,X=z.activeLabel,D=j.props.children,U=Fn(D,Yr),Y=I.props,W=Y.points,oe=Y.isRange,$=Y.baseLine,F=I.item.type.defaultProps!==void 0?le(le({},I.item.type.defaultProps),I.item.props):I.item.props,Z=F.activeDot,se=F.hide,de=F.activeBar,ge=F.activeShape,fe=!!(!se&&B&&U&&(Z||de||ge)),pe={};V!=="axis"&&U&&U.props.trigger==="click"?pe={onClick:Wd(j.handleItemMouseEnter,N.props.onClick)}:V!=="axis"&&(pe={onMouseLeave:Wd(j.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Wd(j.handleItemMouseEnter,N.props.onMouseEnter)});var ae=_.cloneElement(N,le(le({},I.props),pe));function me(xt){return typeof G.dataKey=="function"?G.dataKey(xt.payload):null}if(fe)if(K>=0){var ye,re;if(G.dataKey&&!G.allowDuplicatedCategory){var Ne=typeof G.dataKey=="function"?me:"payload.".concat(G.dataKey.toString());ye=Sh(W,Ne,X),re=oe&&$&&Sh($,Ne,X)}else ye=W==null?void 0:W[K],re=oe&&$&&$[K];if(ge||de){var Oe=N.props.activeIndex!==void 0?N.props.activeIndex:K;return[_.cloneElement(N,le(le(le({},I.props),pe),{},{activeIndex:Oe})),null,null]}if(!Le(ye))return[ae].concat(bs(j.renderActivePoints({item:I,activePoint:ye,basePoint:re,childIndex:K,isRange:oe})))}else{var Ke,Fe=(Ke=j.getItemByXY(j.state.activeCoordinate))!==null&&Ke!==void 0?Ke:{graphicalItem:ae},nt=Fe.graphicalItem,ln=nt.item,ft=ln===void 0?N:ln,zr=nt.childIndex,Dn=le(le(le({},I.props),pe),{},{activeIndex:zr});return[_.cloneElement(ft,Dn),null,null]}return oe?[ae,null,null]:[ae,null]}),Ae(j,"renderCustomized",function(N,R,k){return _.cloneElement(N,le(le({key:"recharts-customized-".concat(k)},j.props),j.state))}),Ae(j,"renderMap",{CartesianGrid:{handler:Jd,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:Jd},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:Jd},YAxis:{handler:Jd},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((A=T.id)!==null&&A!==void 0?A:uf("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=k3(j.triggeredAfterMouseMove,(M=T.throttleDelay)!==null&&M!==void 0?M:1e3/60),j.state={},j}return zce(E,S),kce(E,[{key:"componentDidMount",value:function(){var A,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,M=A.children,j=A.data,N=A.height,R=A.layout,k=Fn(M,Yr);if(k){var I=k.props.defaultIndex;if(!(typeof I!="number"||I<0||I>this.state.tooltipTicks.length-1)){var V=this.state.tooltipTicks[I]&&this.state.tooltipTicks[I].value,z=eS(this.state,j,I,V),B=this.state.tooltipTicks[I].coordinate,G=(this.state.offset.top+N)/2,K=R==="horizontal",X=K?{x:B,y:G}:{y:B,x:G},D=this.state.formattedGraphicalItems.find(function(Y){var W=Y.item;return W.type.name==="Scatter"});D&&(X=le(le({},X),D.props.points[I].tooltipPosition),z=D.props.points[I].tooltipPayload);var U={activeTooltipIndex:I,isTooltipActive:!0,activeLabel:V,activePayload:z,activeCoordinate:X};this.setState(U),this.renderCursor(k),this.accessibilityManager.setIndex(I)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var j,N;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(A){zw([Fn(A.children,Yr)],[Fn(this.props.children,Yr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Fn(this.props.children,Yr);if(A&&typeof A.props.shared=="boolean"){var M=A.props.shared?"axis":"item";return c.indexOf(M)>=0?M:l}return l}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var M=this.container,j=M.getBoundingClientRect(),N=KZ(j),R={chartX:Math.round(A.pageX-N.left),chartY:Math.round(A.pageY-N.top)},k=j.width/M.offsetWidth||1,I=this.inRange(R.chartX,R.chartY,k);if(!I)return null;var V=this.state,z=V.xAxisMap,B=V.yAxisMap,G=this.getTooltipEventType(),K=qD(this.state,this.props.data,this.props.layout,I);if(G!=="axis"&&z&&B){var X=Si(z).scale,D=Si(B).scale,U=X&&X.invert?X.invert(R.chartX):null,Y=D&&D.invert?D.invert(R.chartY):null;return le(le({},R),{},{xValue:U,yValue:Y},K)}return K?le(le({},R),K):null}},{key:"inRange",value:function(A,M){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,R=A/j,k=M/j;if(N==="horizontal"||N==="vertical"){var I=this.state.offset,V=R>=I.left&&R<=I.left+I.width&&k>=I.top&&k<=I.top+I.height;return V?{x:R,y:k}:null}var z=this.state,B=z.angleAxisMap,G=z.radiusAxisMap;if(B&&G){var K=Si(B);return tP({x:R,y:k},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,M=this.getTooltipEventType(),j=Fn(A,Yr),N={};j&&M==="axis"&&(j.props.trigger==="click"?N={onClick:this.handleClick}:N={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 R=Oh(this.props,this.handleOuterEvent);return le(le({},R),N)}},{key:"addListener",value:function(){sw.on(uw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){sw.removeListener(uw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,M,j){for(var N=this.state.formattedGraphicalItems,R=0,k=N.length;R<k;R++){var I=N[R];if(I.item===A||I.props.key===A.key||M===Na(I.item.type)&&j===I.childIndex)return I}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,M=this.state.offset,j=M.left,N=M.top,R=M.height,k=M.width;return L.createElement("defs",null,L.createElement("clipPath",{id:A},L.createElement("rect",{x:j,y:N,height:R,width:k})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(M,j){var N=ID(j,2),R=N[0],k=N[1];return le(le({},M),{},Ae({},R,k.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(M,j){var N=ID(j,2),R=N[0],k=N[1];return le(le({},M),{},Ae({},R,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[A])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(A){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[A])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(A){var M=this.state,j=M.formattedGraphicalItems,N=M.activeItem;if(j&&j.length)for(var R=0,k=j.length;R<k;R++){var I=j[R],V=I.props,z=I.item,B=z.type.defaultProps!==void 0?le(le({},z.type.defaultProps),z.props):z.props,G=Na(z.type);if(G==="Bar"){var K=(V.data||[]).find(function(Y){return hoe(A,Y)});if(K)return{graphicalItem:I,payload:K}}else if(G==="RadialBar"){var X=(V.data||[]).find(function(Y){return tP(A,Y)});if(X)return{graphicalItem:I,payload:X}}else if(vm(I,N)||gm(I,N)||Bc(I,N)){var D=rle({graphicalItem:I,activeTooltipItem:N,itemData:B.data}),U=B.activeIndex===void 0?D:B.activeIndex;return{graphicalItem:le(le({},I),{},{childIndex:U}),payload:Bc(I,N)?B.data[D]:I.props.data[D]}}}return null}},{key:"render",value:function(){var A=this;if(!dM(this))return null;var M=this.props,j=M.children,N=M.className,R=M.width,k=M.height,I=M.style,V=M.compact,z=M.title,B=M.desc,G=zD(M,jce),K=qe(G,!1);if(V)return L.createElement(bD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(qw,Il({},K,{width:R,height:k,title:z,desc:B}),this.renderClipPath(),pM(j,this.renderMap)));if(this.props.accessibilityLayer){var X,D;K.tabIndex=(X=this.props.tabIndex)!==null&&X!==void 0?X:0,K.role=(D=this.props.role)!==null&&D!==void 0?D:"application",K.onKeyDown=function(Y){A.accessibilityManager.keyboardEvent(Y)},K.onFocus=function(){A.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return L.createElement(bD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",Il({className:Ue("recharts-wrapper",N),style:le({position:"relative",cursor:"default",width:R,height:k},I)},U,{ref:function(W){A.container=W}}),L.createElement(qw,Il({},K,{width:R,height:k,title:z,desc:B,style:Gce}),this.renderClipPath(),pM(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(_.Component);Ae(O,"displayName",n),Ae(O,"defaultProps",le({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Ae(O,"getDerivedStateFromProps",function(S,E){var T=S.dataKey,A=S.data,M=S.children,j=S.width,N=S.height,R=S.layout,k=S.stackOffset,I=S.margin,V=E.dataStartIndex,z=E.dataEndIndex;if(E.updateId===void 0){var B=UD(S);return le(le(le({},B),{},{updateId:0},x(le(le({props:S},B),{},{updateId:0}),E)),{},{prevDataKey:T,prevData:A,prevWidth:j,prevHeight:N,prevLayout:R,prevStackOffset:k,prevMargin:I,prevChildren:M})}if(T!==E.prevDataKey||A!==E.prevData||j!==E.prevWidth||N!==E.prevHeight||R!==E.prevLayout||k!==E.prevStackOffset||!Gl(I,E.prevMargin)){var G=UD(S),K={chartX:E.chartX,chartY:E.chartY,isTooltipActive:E.isTooltipActive},X=le(le({},qD(E,A,R)),{},{updateId:E.updateId+1}),D=le(le(le({},G),K),X);return le(le(le({},D),x(le({props:S},D),E)),{},{prevDataKey:T,prevData:A,prevWidth:j,prevHeight:N,prevLayout:R,prevStackOffset:k,prevMargin:I,prevChildren:M})}if(!zw(M,E.prevChildren)){var U,Y,W,oe,$=Fn(M,us),F=$&&(U=(Y=$.props)===null||Y===void 0?void 0:Y.startIndex)!==null&&U!==void 0?U:V,Z=$&&(W=(oe=$.props)===null||oe===void 0?void 0:oe.endIndex)!==null&&W!==void 0?W:z,se=F!==V||Z!==z,de=!Le(A),ge=de&&!se?E.updateId:E.updateId+1;return le(le({updateId:ge},x(le(le({props:S},E),{},{updateId:ge,dataStartIndex:F,dataEndIndex:Z}),E)),{},{prevChildren:M,dataStartIndex:F,dataEndIndex:Z})}return null}),Ae(O,"renderActiveDot",function(S,E,T){var A;return _.isValidElement(S)?A=_.cloneElement(S,E):De(S)?A=S(E):A=L.createElement(HO,E),L.createElement(jt,{className:"recharts-active-dot",key:T},A)});var w=_.forwardRef(function(E,T){return L.createElement(O,Il({},E,{ref:T}))});return w.displayName=O.displayName,w},nfe=tfe({chartName:"LineChart",GraphicalChild:Wr,axisComponents:[{axisType:"xAxis",AxisComp:Om},{axisType:"yAxis",AxisComp:_m}],formatAxisMap:Jle});function rfe({data:e}){const t=afe(e);return t.length===0?v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Metrics"}),v.jsx(mn,{children:"Performance over the last 24 hours"})]}),v.jsx(Ut,{children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"No metrics data available yet"})})]}):v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Email Metrics"}),v.jsx(mn,{children:"Performance over the last 24 hours"})]}),v.jsx(Ut,{children:v.jsx(UZ,{height:400,width:"100%",children:v.jsxs(nfe,{data:t,children:[v.jsx(T5,{className:"stroke-muted",strokeDasharray:"3 3"}),v.jsx(Om,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>rC(new Date(n),"HH:mm")}),v.jsx(_m,{className:"text-xs"}),v.jsx(Yr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>rC(new Date(n),"MMM d, HH:mm")}),v.jsx(go,{}),v.jsx(Wr,{dataKey:"sends",name:"Sends",stroke:"hsl(var(--primary))",strokeWidth:2,type:"monotone"}),v.jsx(Wr,{dataKey:"deliveries",name:"Deliveries",stroke:"#82ca9d",strokeWidth:2,type:"monotone"}),v.jsx(Wr,{dataKey:"opens",name:"Opens",stroke:"#8884d8",strokeWidth:2,type:"monotone"}),v.jsx(Wr,{dataKey:"clicks",name:"Clicks",stroke:"#ffc658",strokeWidth:2,type:"monotone"}),v.jsx(Wr,{dataKey:"bounces",name:"Bounces",stroke:"#ff7300",strokeWidth:2,type:"monotone"}),v.jsx(Wr,{dataKey:"complaints",name:"Complaints",stroke:"hsl(var(--destructive))",strokeWidth:2,type:"monotone"})]})})})]})}function afe(e){const t=new Map;[...e.sends,...e.bounces,...e.complaints,...e.deliveries,...e.opens,...e.clicks].forEach(n=>{t.has(n.timestamp)||t.set(n.timestamp,{timestamp:n.timestamp,sends:0,bounces:0,complaints:0,deliveries:0,opens:0,clicks:0})});for(const n of e.sends)t.get(n.timestamp).sends=n.value;for(const n of e.bounces)t.get(n.timestamp).bounces=n.value;for(const n of e.complaints)t.get(n.timestamp).complaints=n.value;for(const n of e.deliveries)t.get(n.timestamp).deliveries=n.value;for(const n of e.opens)t.get(n.timestamp).opens=n.value;for(const n of e.clicks)t.get(n.timestamp).clicks=n.value;return Array.from(t.values()).sort((n,r)=>n.timestamp-r.timestamp)}var JO="Progress",e_=100,[ife]=_k(JO),[ofe,lfe]=ife(JO),H5=_.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:l=sfe,...s}=e;(i||i===0)&&!FD(i)&&console.error(ufe(`${i}`,"Progress"));const c=FD(i)?i:e_;r!==null&&!GD(r,c)&&console.error(cfe(`${r}`,"Progress"));const f=GD(r,c)?r:null,d=yp(f)?l(f,c):void 0;return v.jsx(ofe,{scope:n,value:f,max:c,children:v.jsx(Mo.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":yp(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":V5(f,c),"data-value":f??void 0,"data-max":c,...s,ref:t})})});H5.displayName=JO;var F5="ProgressIndicator",G5=_.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=lfe(F5,n);return v.jsx(Mo.div,{"data-state":V5(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});G5.displayName=F5;function sfe(e,t){return`${Math.round(e/t*100)}%`}function V5(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function yp(e){return typeof e=="number"}function FD(e){return yp(e)&&!isNaN(e)&&e>0}function GD(e,t){return yp(e)&&!isNaN(e)&&e<=t&&e>=0}function ufe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${e_}\`.`}function cfe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
371
- - a positive number
372
- - less than the value passed to \`max\` (or ${e_} if no \`max\` prop is set)
373
- - \`null\` or \`undefined\` if the progress is indeterminate.
374
-
375
- Defaulting to \`null\`.`}var ffe=H5,dfe=G5;function hfe({className:e,value:t,...n}){return v.jsx(ffe,{className:he("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:v.jsx(dfe,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function pfe({quota:e}){const t=e.sentLast24Hours/e.max24HourSend*100,n=t>90?"destructive":t>70?"warning":"default";return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsxs(an,{className:"flex items-center justify-between",children:["SES Quota",v.jsxs(dn,{variant:n==="destructive"?"destructive":"secondary",children:[t.toFixed(1),"% used"]})]}),v.jsx(mn,{children:"24-hour sending limits"})]}),v.jsxs(Ut,{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"mb-2 flex justify-between text-sm",children:[v.jsx("span",{className:"text-muted-foreground",children:"Emails sent"}),v.jsxs("span",{className:"font-medium",children:[e.sentLast24Hours.toLocaleString()," /"," ",e.max24HourSend.toLocaleString()]})]}),v.jsx(hfe,{className:"h-2",value:t})]}),v.jsxs("div",{className:"flex items-center justify-between border-t pt-2",children:[v.jsx("span",{className:"text-muted-foreground text-sm",children:"Max send rate"}),v.jsxs("span",{className:"font-medium text-sm",children:[e.maxSendRate," emails/sec"]})]})]})]})}function mfe(){const[e,t]=_.useState("1"),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);if(_.useEffect(()=>{async function T(){try{l(!0),c(null);let A=sessionStorage.getItem("wraps-auth-token");if(A||(A=new URLSearchParams(window.location.search).get("token"),A&&sessionStorage.setItem("wraps-auth-token",A)),!A)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const M=Number.parseInt(e,10),j=Date.now()-M*24*60*60*1e3,N=Date.now(),R=await fetch(`/api/metrics?startTime=${j}&endTime=${N}&token=${A}`);if(!R.ok){let I="Failed to fetch email metrics";try{I=(await R.json()).error||I}catch{I=`${R.status}: ${R.statusText}`}throw new Error(I)}const k=await R.json();r(k)}catch(A){const M=A instanceof Error?A.message:"Unknown error";c(M),console.error("Error fetching email metrics:",A)}finally{l(!1)}}T()},[e]),s)return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]});if(i||!n)return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((T,A)=>T+A.value,0)||0,d=n.metrics.deliveries.reduce((T,A)=>T+A.value,0)||0,m=n.metrics.bounces.reduce((T,A)=>T+A.value,0)||0,p=n.metrics.complaints.reduce((T,A)=>T+A.value,0)||0,y=n.metrics.opens.reduce((T,A)=>T+A.value,0)||0,x=n.metrics.clicks.reduce((T,A)=>T+A.value,0)||0,O=f>0?d/f*100:0,w=d>0?y/d*100:0,S=y>0?x/y*100:0,E=[{title:"Emails Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:zl},{title:"Delivery Rate",value:`${O.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:A6},{title:"Open Rate",value:`${w.toFixed(1)}%`,description:`${y.toLocaleString()} opened`,icon:cS},{title:"Click Rate",value:`${S.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:j6}];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsxs(Pw,{onValueChange:t,value:e,children:[v.jsx(kw,{className:"w-[180px]",children:v.jsx(Dw,{})}),v.jsxs($w,{children:[v.jsx(Kt,{value:"1",children:"Last 24 hours"}),v.jsx(Kt,{value:"7",children:"Last 7 days"}),v.jsx(Kt,{value:"15",children:"Last 15 days"}),v.jsx(Kt,{value:"30",children:"Last 30 days"}),v.jsx(Kt,{value:"90",children:"Last 90 days"})]})]})]}),v.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:E.map(T=>v.jsxs(kt,{children:[v.jsxs($t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(an,{className:"font-medium text-sm",children:T.title}),v.jsx(T.icon,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(Ut,{children:[v.jsx("div",{className:"font-bold text-2xl",children:T.value}),v.jsx("p",{className:"text-muted-foreground text-xs",children:T.description})]})]},T.title))}),v.jsx(pfe,{quota:n.quota}),v.jsx(rfe,{data:n.metrics}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Metrics Summary"}),v.jsx(mn,{children:"Detailed breakdown of your email performance"})]}),v.jsxs(Ut,{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Total Emails Sent"}),v.jsx(dn,{variant:"outline",children:f.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),v.jsx(dn,{variant:"default",children:d.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Opened"}),v.jsx(dn,{variant:"default",children:y.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Clicked"}),v.jsx(dn,{variant:"default",children:x.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Bounced"}),v.jsx(dn,{variant:"destructive",children:m.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Complaints"}),v.jsx(dn,{variant:"destructive",children:p.toLocaleString()})]})]})]})]})}function vfe(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const gfe=e=>{switch(e){case"success":return xfe;case"info":return Sfe;case"warning":return wfe;case"error":return Ofe;default:return null}},yfe=Array(12).fill(0),bfe=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},yfe.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),xfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),wfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Sfe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Ofe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),_fe=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Efe=()=>{const[e,t]=L.useState(document.hidden);return L.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let tS=1;class Afe{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:tS++,s=this.toasts.find(f=>f.id===l),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),s?this.toasts=this.toasts.map(f=>f.id===l?(this.publish({...f,...t,id:l,title:r}),{...f,...t,id:l,dismissible:c,title:r}):f):this.addToast({title:r,...i,dismissible:c,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,s;const c=i.then(async d=>{if(s=["resolve",d],L.isValidElement(d))l=!1,this.create({id:r,type:"default",message:d});else if(jfe(d)&&!d.ok){l=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,y=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,O=typeof p=="object"&&!L.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...O})}else if(d instanceof Error){l=!1;const p=typeof n.error=="function"?await n.error(d):n.error,y=typeof n.description=="function"?await n.description(d):n.description,O=typeof p=="object"&&!L.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...O})}else if(n.success!==void 0){l=!1;const p=typeof n.success=="function"?await n.success(d):n.success,y=typeof n.description=="function"?await n.description(d):n.description,O=typeof p=="object"&&!L.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:y,...O})}}).catch(async d=>{if(s=["reject",d],n.error!==void 0){l=!1;const m=typeof n.error=="function"?await n.error(d):n.error,p=typeof n.description=="function"?await n.description(d):n.description,x=typeof m=="object"&&!L.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:p,...x})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,m)=>c.then(()=>s[0]==="reject"?m(s[1]):d(s[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||tS++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Mn=new Afe,Tfe=(e,t)=>{const n=(t==null?void 0:t.id)||tS++;return Mn.addToast({title:e,...t,id:n}),n},jfe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Cfe=Tfe,Mfe=()=>Mn.toasts,Nfe=()=>Mn.getActiveToasts(),Nn=Object.assign(Cfe,{success:Mn.success,info:Mn.info,warning:Mn.warning,error:Mn.error,custom:Mn.custom,message:Mn.message,promise:Mn.promise,dismiss:Mn.dismiss,loading:Mn.loading},{getHistory:Mfe,getToasts:Nfe});vfe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function eh(e){return e.label!==void 0}const Rfe=3,Pfe="24px",Dfe="16px",VD=4e3,kfe=356,$fe=14,Lfe=45,Ife=200;function Vr(...e){return e.filter(Boolean).join(" ")}function zfe(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Bfe=e=>{var t,n,r,i,l,s,c,f,d;const{invert:m,toast:p,unstyled:y,interacting:x,setHeights:O,visibleToasts:w,heights:S,index:E,toasts:T,expanded:A,removeToast:M,defaultRichColors:j,closeButton:N,style:R,cancelButtonStyle:k,actionButtonStyle:I,className:V="",descriptionClassName:z="",duration:B,position:G,gap:K,expandByDefault:X,classNames:D,icons:U,closeButtonAriaLabel:Y="Close toast"}=e,[W,oe]=L.useState(null),[$,F]=L.useState(null),[Z,se]=L.useState(!1),[de,ge]=L.useState(!1),[fe,pe]=L.useState(!1),[ae,me]=L.useState(!1),[ye,re]=L.useState(!1),[Ne,Oe]=L.useState(0),[Ke,Fe]=L.useState(0),nt=L.useRef(p.duration||B||VD),ln=L.useRef(null),ft=L.useRef(null),zr=E===0,Dn=E+1<=w,xt=p.type,Kn=p.dismissible!==!1,Gt=p.className||"",Lo=p.descriptionClassName||"",Li=L.useMemo(()=>S.findIndex(Te=>Te.toastId===p.id)||0,[S,p.id]),gf=L.useMemo(()=>{var Te;return(Te=p.closeButton)!=null?Te:N},[p.closeButton,N]),Ii=L.useMemo(()=>p.duration||B||VD,[p.duration,B]),zs=L.useRef(0),oa=L.useRef(0),yf=L.useRef(0),Ga=L.useRef(null),[zi,vn]=G.split("-"),gr=L.useMemo(()=>S.reduce((Te,vt,Vt)=>Vt>=Li?Te:Te+vt.height,0),[S,Li]),sn=Efe(),Mm=p.invert||m,Bs=xt==="loading";oa.current=L.useMemo(()=>Li*K+gr,[Li,gr]),L.useEffect(()=>{nt.current=Ii},[Ii]),L.useEffect(()=>{se(!0)},[]),L.useEffect(()=>{const Te=ft.current;if(Te){const vt=Te.getBoundingClientRect().height;return Fe(vt),O(Vt=>[{toastId:p.id,height:vt,position:p.position},...Vt]),()=>O(Vt=>Vt.filter(un=>un.toastId!==p.id))}},[O,p.id]),L.useLayoutEffect(()=>{if(!Z)return;const Te=ft.current,vt=Te.style.height;Te.style.height="auto";const Vt=Te.getBoundingClientRect().height;Te.style.height=vt,Fe(Vt),O(un=>un.find(wt=>wt.toastId===p.id)?un.map(wt=>wt.toastId===p.id?{...wt,height:Vt}:wt):[{toastId:p.id,height:Vt,position:p.position},...un])},[Z,p.title,p.description,O,p.id,p.jsx,p.action,p.cancel]);const Br=L.useCallback(()=>{ge(!0),Oe(oa.current),O(Te=>Te.filter(vt=>vt.toastId!==p.id)),setTimeout(()=>{M(p)},Ife)},[p,M,O,oa]);L.useEffect(()=>{if(p.promise&&xt==="loading"||p.duration===1/0||p.type==="loading")return;let Te;return A||x||sn?(()=>{if(yf.current<zs.current){const un=new Date().getTime()-zs.current;nt.current=nt.current-un}yf.current=new Date().getTime()})():(()=>{nt.current!==1/0&&(zs.current=new Date().getTime(),Te=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Br()},nt.current))})(),()=>clearTimeout(Te)},[A,x,p,xt,sn,Br]),L.useEffect(()=>{p.delete&&(Br(),p.onDismiss==null||p.onDismiss.call(p,p))},[Br,p.delete]);function Io(){var Te;if(U!=null&&U.loading){var vt;return L.createElement("div",{className:Vr(D==null?void 0:D.loader,p==null||(vt=p.classNames)==null?void 0:vt.loader,"sonner-loader"),"data-visible":xt==="loading"},U.loading)}return L.createElement(bfe,{className:Vr(D==null?void 0:D.loader,p==null||(Te=p.classNames)==null?void 0:Te.loader),visible:xt==="loading"})}const zo=p.icon||(U==null?void 0:U[xt])||gfe(xt);var Bi,qr;return L.createElement("li",{tabIndex:0,ref:ft,className:Vr(V,Gt,D==null?void 0:D.toast,p==null||(t=p.classNames)==null?void 0:t.toast,D==null?void 0:D.default,D==null?void 0:D[xt],p==null||(n=p.classNames)==null?void 0:n[xt]),"data-sonner-toast":"","data-rich-colors":(Bi=p.richColors)!=null?Bi:j,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":Z,"data-promise":!!p.promise,"data-swiped":ye,"data-removed":de,"data-visible":Dn,"data-y-position":zi,"data-x-position":vn,"data-index":E,"data-front":zr,"data-swiping":fe,"data-dismissible":Kn,"data-type":xt,"data-invert":Mm,"data-swipe-out":ae,"data-swipe-direction":$,"data-expanded":!!(A||X&&Z),"data-testid":p.testId,style:{"--index":E,"--toasts-before":E,"--z-index":T.length-E,"--offset":`${de?Ne:oa.current}px`,"--initial-height":X?"auto":`${Ke}px`,...R,...p.style},onDragEnd:()=>{pe(!1),oe(null),Ga.current=null},onPointerDown:Te=>{Te.button!==2&&(Bs||!Kn||(ln.current=new Date,Oe(oa.current),Te.target.setPointerCapture(Te.pointerId),Te.target.tagName!=="BUTTON"&&(pe(!0),Ga.current={x:Te.clientX,y:Te.clientY})))},onPointerUp:()=>{var Te,vt,Vt;if(ae||!Kn)return;Ga.current=null;const un=Number(((Te=ft.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Va=Number(((vt=ft.current)==null?void 0:vt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),wt=new Date().getTime()-((Vt=ln.current)==null?void 0:Vt.getTime()),xn=W==="x"?un:Va,qi=Math.abs(xn)/wt;if(Math.abs(xn)>=Lfe||qi>.11){Oe(oa.current),p.onDismiss==null||p.onDismiss.call(p,p),F(W==="x"?un>0?"right":"left":Va>0?"down":"up"),Br(),me(!0);return}else{var wn,Sn;(wn=ft.current)==null||wn.style.setProperty("--swipe-amount-x","0px"),(Sn=ft.current)==null||Sn.style.setProperty("--swipe-amount-y","0px")}re(!1),pe(!1),oe(null)},onPointerMove:Te=>{var vt,Vt,un;if(!Ga.current||!Kn||((vt=window.getSelection())==null?void 0:vt.toString().length)>0)return;const wt=Te.clientY-Ga.current.y,xn=Te.clientX-Ga.current.x;var qi;const wn=(qi=e.swipeDirections)!=null?qi:zfe(G);!W&&(Math.abs(xn)>1||Math.abs(wt)>1)&&oe(Math.abs(xn)>Math.abs(wt)?"x":"y");let Sn={x:0,y:0};const Bo=yr=>1/(1.5+Math.abs(yr)/20);if(W==="y"){if(wn.includes("top")||wn.includes("bottom"))if(wn.includes("top")&&wt<0||wn.includes("bottom")&&wt>0)Sn.y=wt;else{const yr=wt*Bo(wt);Sn.y=Math.abs(yr)<Math.abs(wt)?yr:wt}}else if(W==="x"&&(wn.includes("left")||wn.includes("right")))if(wn.includes("left")&&xn<0||wn.includes("right")&&xn>0)Sn.x=xn;else{const yr=xn*Bo(xn);Sn.x=Math.abs(yr)<Math.abs(xn)?yr:xn}(Math.abs(Sn.x)>0||Math.abs(Sn.y)>0)&&re(!0),(Vt=ft.current)==null||Vt.style.setProperty("--swipe-amount-x",`${Sn.x}px`),(un=ft.current)==null||un.style.setProperty("--swipe-amount-y",`${Sn.y}px`)}},gf&&!p.jsx&&xt!=="loading"?L.createElement("button",{"aria-label":Y,"data-disabled":Bs,"data-close-button":!0,onClick:Bs||!Kn?()=>{}:()=>{Br(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Vr(D==null?void 0:D.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(qr=U==null?void 0:U.close)!=null?qr:_fe):null,(xt||p.icon||p.promise)&&p.icon!==null&&((U==null?void 0:U[xt])!==null||p.icon)?L.createElement("div",{"data-icon":"",className:Vr(D==null?void 0:D.icon,p==null||(i=p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Io():null,p.type!=="loading"?zo:null):null,L.createElement("div",{"data-content":"",className:Vr(D==null?void 0:D.content,p==null||(l=p.classNames)==null?void 0:l.content)},L.createElement("div",{"data-title":"",className:Vr(D==null?void 0:D.title,p==null||(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?L.createElement("div",{"data-description":"",className:Vr(z,Lo,D==null?void 0:D.description,p==null||(c=p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),L.isValidElement(p.cancel)?p.cancel:p.cancel&&eh(p.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||k,onClick:Te=>{eh(p.cancel)&&Kn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Te),Br())},className:Vr(D==null?void 0:D.cancelButton,p==null||(f=p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,L.isValidElement(p.action)?p.action:p.action&&eh(p.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||I,onClick:Te=>{eh(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Te),!Te.defaultPrevented&&Br())},className:Vr(D==null?void 0:D.actionButton,p==null||(d=p.classNames)==null?void 0:d.actionButton)},p.action.label):null)};function YD(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function qfe(e,t){const n={};return[e,t].forEach((r,i)=>{const l=i===1,s=l?"--mobile-offset":"--offset",c=l?Dfe:Pfe;function f(d){["top","right","bottom","left"].forEach(m=>{n[`${s}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=c:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const Ufe=L.forwardRef(function(t,n){const{id:r,invert:i,position:l="bottom-right",hotkey:s=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:m,mobileOffset:p,theme:y="light",richColors:x,duration:O,style:w,visibleToasts:S=Rfe,toastOptions:E,dir:T=YD(),gap:A=$fe,icons:M,containerAriaLabel:j="Notifications"}=t,[N,R]=L.useState([]),k=L.useMemo(()=>r?N.filter(Z=>Z.toasterId===r):N.filter(Z=>!Z.toasterId),[N,r]),I=L.useMemo(()=>Array.from(new Set([l].concat(k.filter(Z=>Z.position).map(Z=>Z.position)))),[k,l]),[V,z]=L.useState([]),[B,G]=L.useState(!1),[K,X]=L.useState(!1),[D,U]=L.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=L.useRef(null),W=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),oe=L.useRef(null),$=L.useRef(!1),F=L.useCallback(Z=>{R(se=>{var de;return(de=se.find(ge=>ge.id===Z.id))!=null&&de.delete||Mn.dismiss(Z.id),se.filter(({id:ge})=>ge!==Z.id)})},[]);return L.useEffect(()=>Mn.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{R(se=>se.map(de=>de.id===Z.id?{...de,delete:!0}:de))});return}setTimeout(()=>{bk.flushSync(()=>{R(se=>{const de=se.findIndex(ge=>ge.id===Z.id);return de!==-1?[...se.slice(0,de),{...se[de],...Z},...se.slice(de+1)]:[Z,...se]})})})}),[N]),L.useEffect(()=>{if(y!=="system"){U(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;const Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:se})=>{U(se?"dark":"light")})}catch{Z.addListener(({matches:de})=>{try{U(de?"dark":"light")}catch(ge){console.error(ge)}})}},[y]),L.useEffect(()=>{N.length<=1&&G(!1)},[N]),L.useEffect(()=>{const Z=se=>{var de;if(s.every(pe=>se[pe]||se.code===pe)){var fe;G(!0),(fe=Y.current)==null||fe.focus()}se.code==="Escape"&&(document.activeElement===Y.current||(de=Y.current)!=null&&de.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[s]),L.useEffect(()=>{if(Y.current)return()=>{oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null,$.current=!1)}},[Y.current]),L.createElement("section",{ref:n,"aria-label":`${j} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((Z,se)=>{var de;const[ge,fe]=Z.split("-");return k.length?L.createElement("ol",{key:Z,dir:T==="auto"?YD():T,tabIndex:-1,ref:Y,className:d,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":ge,"data-x-position":fe,style:{"--front-toast-height":`${((de=V[0])==null?void 0:de.height)||0}px`,"--width":`${kfe}px`,"--gap":`${A}px`,...w,...qfe(m,p)},onBlur:pe=>{$.current&&!pe.currentTarget.contains(pe.relatedTarget)&&($.current=!1,oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null))},onFocus:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||$.current||($.current=!0,oe.current=pe.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{K||G(!1)},onDragEnd:()=>G(!1),onPointerDown:pe=>{pe.target instanceof HTMLElement&&pe.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},k.filter(pe=>!pe.position&&se===0||pe.position===Z).map((pe,ae)=>{var me,ye;return L.createElement(Bfe,{key:pe.id,icons:M,index:ae,toast:pe,defaultRichColors:x,duration:(me=E==null?void 0:E.duration)!=null?me:O,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:S,closeButton:(ye=E==null?void 0:E.closeButton)!=null?ye:f,interacting:K,position:Z,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:F,toasts:k.filter(re=>re.position==pe.position),heights:V.filter(re=>re.position==pe.position),setHeights:z,expandByDefault:c,gap:A,expanded:B,swipeDirections:t.swipeDirections})})):null}))});var Y5="AlertDialog",[Hfe]=kr(Y5,[uL]),Fa=uL(),W5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Fa(t);return v.jsx(zS,{...r,...n,modal:!0})};W5.displayName=Y5;var Ffe="AlertDialogTrigger",Gfe=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(tG,{...i,...r,ref:t})});Gfe.displayName=Ffe;var Vfe="AlertDialogPortal",K5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Fa(t);return v.jsx(BS,{...r,...n})};K5.displayName=Vfe;var Yfe="AlertDialogOverlay",X5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(qS,{...i,...r,ref:t})});X5.displayName=Yfe;var Wl="AlertDialogContent",[Wfe,Kfe]=Hfe(Wl),Xfe=Bk("AlertDialogContent"),Q5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,l=Fa(n),s=_.useRef(null),c=Ye(t,s),f=_.useRef(null);return v.jsx(QF,{contentName:Wl,titleName:Z5,docsSlug:"alert-dialog",children:v.jsx(Wfe,{scope:n,cancelRef:f,children:v.jsxs(US,{role:"alertdialog",...l,...i,ref:c,onOpenAutoFocus:be(i.onOpenAutoFocus,d=>{var m;d.preventDefault(),(m=f.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[v.jsx(Xfe,{children:r}),v.jsx(Zfe,{contentRef:s})]})})})});Q5.displayName=Wl;var Z5="AlertDialogTitle",J5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(HS,{...i,...r,ref:t})});J5.displayName=Z5;var ez="AlertDialogDescription",tz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(FS,{...i,...r,ref:t})});tz.displayName=ez;var Qfe="AlertDialogAction",nz=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return v.jsx(zp,{...i,...r,ref:t})});nz.displayName=Qfe;var rz="AlertDialogCancel",az=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Kfe(rz,n),l=Fa(n),s=Ye(t,i);return v.jsx(zp,{...l,...r,ref:s})});az.displayName=rz;var Zfe=({contentRef:e})=>{const t=`\`${Wl}\` requires a description for the component to be accessible for screen reader users.
376
-
377
- You can add a description to the \`${Wl}\` by passing a \`${ez}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
378
-
379
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Wl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
380
-
381
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return _.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Jfe=W5,ede=K5,tde=X5,nde=Q5,rde=nz,ade=az,ide=J5,ode=tz;function WD({...e}){return v.jsx(Jfe,{"data-slot":"alert-dialog",...e})}function lde({...e}){return v.jsx(ede,{"data-slot":"alert-dialog-portal",...e})}function sde({className:e,...t}){return v.jsx(tde,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"alert-dialog-overlay",...t})}function KD({className:e,...t}){return v.jsxs(lde,{children:[v.jsx(sde,{}),v.jsx(nde,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),"data-slot":"alert-dialog-content",...t})]})}function XD({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function QD({className:e,...t}){return v.jsx("div",{className:he("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function ZD({className:e,...t}){return v.jsx(ide,{className:he("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function JD({className:e,...t}){return v.jsx(ode,{className:he("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function ek({className:e,...t}){return v.jsx(rde,{className:he(kS(),e),...t})}function tk({className:e,...t}){return v.jsx(ade,{className:he(kS({variant:"outline"}),e),...t})}var Am="Collapsible",[ude]=kr(Am),[cde,t_]=ude(Am),iz=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:l,onOpenChange:s,...c}=e,[f,d]=Ai({prop:r,defaultProp:i??!1,onChange:s,caller:Am});return v.jsx(cde,{scope:n,disabled:l,contentId:cr(),open:f,onOpenToggle:_.useCallback(()=>d(m=>!m),[d]),children:v.jsx(Me.div,{"data-state":r_(f),"data-disabled":l?"":void 0,...c,ref:t})})});iz.displayName=Am;var oz="CollapsibleTrigger",lz=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=t_(oz,n);return v.jsx(Me.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":r_(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});lz.displayName=oz;var n_="CollapsibleContent",sz=_.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=t_(n_,e.__scopeCollapsible);return v.jsx(mr,{present:n||i.open,children:({present:l})=>v.jsx(fde,{...r,ref:t,present:l})})});sz.displayName=n_;var fde=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...l}=e,s=t_(n_,n),[c,f]=_.useState(r),d=_.useRef(null),m=Ye(t,d),p=_.useRef(0),y=p.current,x=_.useRef(0),O=x.current,w=s.open||c,S=_.useRef(w),E=_.useRef(void 0);return _.useEffect(()=>{const T=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(T)},[]),It(()=>{const T=d.current;if(T){E.current=E.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const A=T.getBoundingClientRect();p.current=A.height,x.current=A.width,S.current||(T.style.transitionDuration=E.current.transitionDuration,T.style.animationName=E.current.animationName),f(r)}},[s.open,r]),v.jsx(Me.div,{"data-state":r_(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":O?`${O}px`:void 0,...e.style},children:w&&i})});function r_(e){return e?"open":"closed"}var dde=iz;const Tm=dde,jm=lz,Cm=sz;function hde({...e}){return v.jsx(zS,{"data-slot":"dialog",...e})}function pde({...e}){return v.jsx(BS,{"data-slot":"dialog-portal",...e})}function mde({className:e,...t}){return v.jsx(qS,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dialog-overlay",...t})}function vde({className:e,children:t,showCloseButton:n=!0,...r}){return v.jsxs(pde,{"data-slot":"dialog-portal",children:[v.jsx(mde,{}),v.jsxs(US,{className:he("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),"data-slot":"dialog-content",...r,children:[t,n&&v.jsxs(zp,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0","data-slot":"dialog-close",children:[v.jsx(Bl,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function gde({className:e,...t}){return v.jsx("div",{className:he("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function yde({className:e,...t}){return v.jsx("div",{className:he("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...t})}function bde({className:e,...t}){return v.jsx(HS,{className:he("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function xde({className:e,...t}){return v.jsx(FS,{className:he("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var wde="Label",uz=_.forwardRef((e,t)=>v.jsx(Mo.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));uz.displayName=wde;var Sde=uz;function Ode({className:e,...t}){return v.jsx(Sde,{className:he("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",e),"data-slot":"label",...t})}async function _de(){const e=sessionStorage.getItem("wraps-auth-token");if(!e)throw new Error("Authentication token not found");const t=await fetch(`/api/settings?token=${e}`);if(!t.ok)throw new Error(`Failed to fetch settings: ${t.statusText}`);return await t.json()}const cz="wraps-dns-verification",Ede=1e3*60*60;function fz(){try{const e=localStorage.getItem(cz);return e?JSON.parse(e):{}}catch{return{}}}function bp(e){try{localStorage.setItem(cz,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function dz(e){return e?Date.now()-e.lastChecked<Ede:!1}async function nk(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=fz(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&dz(n.trackingDomain[r]))return console.log("[DNS Verify] Returning cached result"),n.trackingDomain[r];try{const s=`/api/settings/verify-tracking-domain?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}&expectedTarget=${encodeURIComponent(t)}`;console.log("[DNS Verify] Fetching:",s);const c=await fetch(s);if(console.log("[DNS Verify] Response status:",c.status),!c.ok)throw new Error(`HTTP ${c.status}: ${c.statusText}`);const f=await c.json();console.log("[DNS Verify] Response data:",f);const d={verified:f.verified,lastChecked:Date.now(),error:f.error};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=d,bp(n),d}catch(l){console.error("Tracking domain verification request failed:",l);const s={verified:!1,lastChecked:Date.now(),error:l instanceof Error?l.message:"Failed to verify"};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=s,bp(n),s}}async function rk(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=fz(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&dz(t.dmarc[n]))return console.log("[DNS Verify] Returning cached DMARC result"),t.dmarc[n];try{const l=`/api/settings/verify-dmarc?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}`;console.log("[DNS Verify] Fetching:",l);const s=await fetch(l);if(console.log("[DNS Verify] Response status:",s.status),!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);const c=await s.json();console.log("[DNS Verify] Response data:",c);const f={verified:c.verified,lastChecked:Date.now(),error:c.error};return t.dmarc||(t.dmarc={}),t.dmarc[n]=f,bp(t),f}catch(i){console.error("DMARC verification request failed:",i);const l={verified:!1,lastChecked:Date.now(),error:i instanceof Error?i.message:"Failed to verify"};return t.dmarc||(t.dmarc={}),t.dmarc[n]=l,bp(t),l}}function a_({status:e}){const t={SUCCESS:{icon:Op,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:hw,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:f6,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:Sk,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:hw,label:"Not Started",variant:"outline",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20"}},{icon:n,label:r,className:i}=t[e];return v.jsxs(dn,{className:i,variant:"outline",children:[v.jsx(n,{className:"mr-1 h-3 w-3"}),r]})}function xs({text:e}){const t=async()=>{await navigator.clipboard.writeText(e),Nn.success("Copied to clipboard",{description:"DNS record value copied successfully"})};return v.jsx(Dt,{onClick:t,size:"sm",variant:"ghost",children:v.jsx(h6,{className:"h-3 w-3"})})}function Ade({identity:e}){const t=e==null?void 0:e.dkimAttributes,n=(t==null?void 0:t.status)==="SUCCESS",[r,i]=_.useState(!n);return t?v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),v.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.signingEnabled?"Enabled":"Disabled",t.signingKeyLength&&` · ${t.signingKeyLength}`]})]}),v.jsx(a_,{status:t.status})]}),t.tokens&&t.tokens.length>0&&v.jsxs(Tm,{onOpenChange:i,open:r,children:[v.jsx(jm,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Records (CNAME)"}),r?v.jsx(Qc,{className:"h-4 w-4"}):v.jsx(_s,{className:"h-4 w-4"})]})}),v.jsx(Cm,{className:"mt-2 space-y-2",children:t.tokens.map(l=>v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:[l,"._domainkey.",e.identityName]}),v.jsx(xs,{text:`${l}._domainkey.${e.identityName}`})]}),v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → ",l,".dkim.amazonses.com"]})]},l))})]})]}):v.jsx("div",{className:"space-y-4",children:v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]})})})}function Tde({identity:e}){const t=e==null?void 0:e.mailFromAttributes,n=(t==null?void 0:t.mailFromDomainStatus)==="SUCCESS",[r,i]=_.useState(!n);return v.jsx("div",{className:"space-y-4",children:t!=null&&t.mailFromDomain?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),v.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.mailFromDomain,t.behaviorOnMxFailure&&` · ${t.behaviorOnMxFailure==="USE_DEFAULT_VALUE"?"Fallback enabled":"Reject on failure"}`]})]}),t.mailFromDomainStatus&&v.jsx(a_,{status:t.mailFromDomainStatus})]}),v.jsxs(Tm,{onOpenChange:i,open:r,children:[v.jsx(jm,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Record (MX)"}),r?v.jsx(Qc,{className:"h-4 w-4"}):v.jsx(_s,{className:"h-4 w-4"})]})}),v.jsx(Cm,{className:"mt-2",children:v.jsx("div",{className:"rounded-md border bg-muted/50 p-3",children:v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:["MX ",t.mailFromDomain]}),v.jsx(xs,{text:`10 feedback-smtp.${e==null?void 0:e.identityName.split(".")[0]}.amazonses.com`})]}),v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["Priority 10 → feedback-smtp.",e==null?void 0:e.identityName.split(".")[0],".amazonses.com"]})]})})})]})]}):v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Using default amazonses.com domain"})]})})})}function jde({identity:e}){const[t,n]=_.useState(null),[r,i]=_.useState(!1),[l,s]=_.useState(!(t!=null&&t.verified));_.useEffect(()=>{e!=null&&e.identityName&&rk(e.identityName).then(n)},[e==null?void 0:e.identityName]),_.useEffect(()=>{t&&s(!t.verified)},[t]);const c=async()=>{if(e!=null&&e.identityName){i(!0);try{const f=await rk(e.identityName);n(f),f.verified?Nn.success("DMARC record verified",{description:"DNS TXT record found and configured correctly"}):(console.error("DMARC verification failed:",f.error),Nn.error("Verification failed",{description:f.error||"DMARC record not found"}))}catch(f){console.error("DMARC verification error:",f),Nn.error("Verification error",{description:f instanceof Error?f.message:"Unknown error"})}finally{i(!1)}}};return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DMARC Policy"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:t!=null&&t.verified?"Configured":"Recommended for better deliverability"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[(t==null?void 0:t.verified)&&v.jsxs(dn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[v.jsx(Op,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),v.jsx(Dt,{className:"h-8 w-8 p-0",disabled:r,onClick:c,size:"sm",variant:"ghost",children:v.jsx(Ok,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),v.jsxs(Tm,{onOpenChange:s,open:l,children:[v.jsx(jm,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Record (TXT)"}),l?v.jsx(Qc,{className:"h-4 w-4"}):v.jsx(_s,{className:"h-4 w-4"})]})}),v.jsx(Cm,{className:"mt-2",children:v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:["_dmarc.",(e==null?void 0:e.identityName)||"yourdomain.com"]}),v.jsx(xs,{text:`_dmarc.${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]}),v.jsxs("div",{className:"flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["v=DMARC1; p=quarantine; rua=mailto:dmarc@",(e==null?void 0:e.identityName)||"yourdomain.com"]}),v.jsx(xs,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function Cde({configSet:e,region:t,onRefresh:n}){const r=e==null?void 0:e.trackingOptions,[i,l]=_.useState(null),[s,c]=_.useState(!1),[f,d]=_.useState(!1),[m,p]=_.useState(""),[y,x]=_.useState(!1),[O,w]=_.useState(!(i!=null&&i.verified));_.useEffect(()=>{if(r!=null&&r.customRedirectDomain&&t){const A=`r.${t}.awstrack.me`;nk(r.customRedirectDomain,A).then(l)}},[r==null?void 0:r.customRedirectDomain,t]),_.useEffect(()=>{i&&w(!i.verified)},[i]);const S=async()=>{if(r!=null&&r.customRedirectDomain&&t){c(!0);try{const A=`r.${t}.awstrack.me`,M=await nk(r.customRedirectDomain,A);l(M),M.verified?Nn.success("Tracking domain verified",{description:"DNS records are configured correctly"}):(console.error("Tracking domain verification failed:",M.error),Nn.error("Verification failed",{description:M.error||"DNS records not found"}))}catch(A){console.error("Tracking domain verification error:",A),Nn.error("Verification error",{description:A instanceof Error?A.message:"Unknown error"})}finally{c(!1)}}},E=()=>{p((r==null?void 0:r.customRedirectDomain)||""),d(!0)},T=async()=>{if(!m.trim()){Nn.error("Invalid domain",{description:"Please enter a valid domain name"});return}x(!0);try{const A=sessionStorage.getItem("wraps-auth-token"),M=await fetch(`/api/settings/config-set/tracking-domain?token=${A}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:m})});if(!M.ok){const j=await M.json();throw new Error(j.error||`Failed to update: ${M.statusText}`)}d(!1),Nn.success("Tracking domain updated",{description:"Don't forget to configure the DNS records"}),n&&await n()}catch(A){console.error("Failed to update tracking domain:",A),Nn.error("Failed to update tracking domain",{description:A instanceof Error?A.message:"Unknown error"})}finally{x(!1)}};return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Tracking Domain"}),v.jsx(mn,{children:"Custom domain for open and click tracking links"})]}),v.jsx(Ut,{className:"space-y-4",children:r!=null&&r.customRedirectDomain?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"font-medium",children:r.customRedirectDomain}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Custom Tracking Domain"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.verified)&&v.jsxs(dn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[v.jsx(Op,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),v.jsx(dn,{variant:"outline",children:r.httpsPolicy==="REQUIRE"?"HTTPS Only":"HTTPS Optional"}),v.jsx(Dt,{className:"h-8 w-8 p-0",disabled:s,onClick:S,size:"sm",variant:"ghost",children:v.jsx(Ok,{className:`h-4 w-4 ${s?"animate-spin":""}`})}),v.jsx(Dt,{className:"h-8 w-8 p-0",onClick:E,size:"sm",variant:"ghost",children:v.jsx(fj,{className:"h-4 w-4"})})]})]}),v.jsxs(Tm,{onOpenChange:w,open:O,children:[v.jsx(jm,{asChild:!0,children:v.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"Required DNS Record (CNAME)"}),O?v.jsx(Qc,{className:"h-4 w-4"}):v.jsx(_s,{className:"h-4 w-4"})]})}),v.jsx(Cm,{className:"mt-2",children:v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("p",{className:"font-mono text-xs",children:r.customRedirectDomain}),v.jsx(xs,{text:r.customRedirectDomain})]}),v.jsxs("div",{className:"mt-1 flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → r.",(e==null?void 0:e.name)||"region",".awstrack.me"]}),v.jsx(xs,{text:`r.${(e==null?void 0:e.name)||"region"}.awstrack.me`})]})]})})]})]}):v.jsxs("div",{className:"space-y-4",children:[v.jsx("p",{className:"text-muted-foreground text-sm",children:"No custom tracking domain configured. Using default awstrack.me domain."}),v.jsxs(Dt,{onClick:E,size:"sm",variant:"outline",children:[v.jsx(fj,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),v.jsx(hde,{onOpenChange:d,open:f,children:v.jsxs(vde,{children:[v.jsxs(gde,{children:[v.jsx(bde,{children:"Update Tracking Domain"}),v.jsx(xde,{children:"Enter the custom domain you want to use for email tracking links. You'll need to configure DNS records after saving."})]}),v.jsx("div",{className:"space-y-4 py-4",children:v.jsxs("div",{className:"space-y-2",children:[v.jsx(Ode,{htmlFor:"domain",children:"Tracking Domain"}),v.jsx(Lp,{disabled:y,id:"domain",onChange:A=>p(A.target.value),placeholder:"track.example.com",value:m}),v.jsx("p",{className:"text-muted-foreground text-xs",children:"Example: track.yourdomain.com or email.yourdomain.com"})]})}),v.jsxs(yde,{children:[v.jsx(Dt,{disabled:y,onClick:()=>d(!1),variant:"outline",children:"Cancel"}),v.jsx(Dt,{disabled:y,onClick:T,children:y?"Updating...":"Update Domain"})]})]})})]})}function Mde({configSet:e,onRefresh:t}){var m,p;const[n,r]=_.useState(!1),[i,l]=_.useState(!1),[s,c]=_.useState(!1);if(!e)return v.jsx(kt,{children:v.jsxs($t,{children:[v.jsx(an,{children:"Configuration Set"}),v.jsx(mn,{children:"No configuration set found"})]})});const f=async()=>{var y;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((y=e.sendingOptions)!=null&&y.sendingEnabled),w=await fetch(`/api/settings/config-set/sending?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:O})});if(!w.ok)throw new Error(`Failed to update: ${w.statusText}`);r(!1),Nn.success(O?"Email sending enabled":"Email sending disabled"),t&&await t()}catch(x){console.error("Failed to toggle sending:",x),Nn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}},d=async()=>{var y;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((y=e.reputationOptions)!=null&&y.reputationMetricsEnabled),w=await fetch(`/api/settings/config-set/reputation?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:O})});if(!w.ok)throw new Error(`Failed to update: ${w.statusText}`);l(!1),Nn.success(O?"Reputation metrics enabled":"Reputation metrics disabled"),t&&await t()}catch(x){console.error("Failed to toggle reputation:",x),Nn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}};return v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(an,{children:"Configuration Set"}),v.jsx(mn,{children:"Email sending and tracking configuration"})]}),v.jsxs(Ut,{className:"space-y-6",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:e.name}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),v.jsx(Fl,{}),e.sendingOptions&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1 space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Email Sending"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingOptions.sendingEnabled?"Emails can be sent":"Email sending is disabled"})]}),v.jsx(Dt,{onClick:()=>r(!0),size:"sm",variant:e.sendingOptions.sendingEnabled?"destructive":"default",children:e.sendingOptions.sendingEnabled?"Disable":"Enable"})]}),v.jsx(WD,{onOpenChange:r,open:n,children:v.jsxs(KD,{children:[v.jsxs(XD,{children:[v.jsx(ZD,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),v.jsx(JD,{children:e.sendingOptions.sendingEnabled?"All outgoing emails will be blocked until you re-enable sending. Emails in the queue will not be sent.":"This will allow emails to be sent through this configuration set. Make sure your domain is verified before enabling."})]}),v.jsxs(QD,{children:[v.jsx(tk,{disabled:s,children:"Cancel"}),v.jsx(ek,{disabled:s,onClick:f,children:s?"Updating...":e.sendingOptions.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]}),e.reputationOptions&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1 space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Reputation Metrics"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.reputationOptions.reputationMetricsEnabled?"Tracking bounce and complaint rates":"Reputation tracking disabled"})]}),v.jsx(Dt,{onClick:()=>l(!0),size:"sm",variant:"outline",children:e.reputationOptions.reputationMetricsEnabled?"Disable":"Enable"})]}),v.jsx(WD,{onOpenChange:l,open:i,children:v.jsxs(KD,{children:[v.jsxs(XD,{children:[v.jsx(ZD,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),v.jsx(JD,{children:e.reputationOptions.reputationMetricsEnabled?"You will stop collecting bounce and complaint rate data. Historical data will be preserved but no new metrics will be tracked.":"This will start tracking bounce and complaint rates for your sending domain. This helps monitor your email reputation and deliverability."})]}),v.jsxs(QD,{children:[v.jsx(tk,{disabled:s,children:"Cancel"}),v.jsx(ek,{disabled:s,onClick:d,children:s?"Updating...":e.reputationOptions.reputationMetricsEnabled?"Disable metrics":"Enable metrics"})]})]})})]}),((m=e.deliveryOptions)==null?void 0:m.tlsPolicy)&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"TLS Encryption"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required for all connections":"Optional (opportunistic)"})]}),v.jsx(dn,{variant:"outline",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required":"Optional"})]}),e.suppressionOptions&&v.jsxs("div",{className:"space-y-2",children:[v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Suppression List"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Automatically suppress emails to addresses that bounced or complained"})]}),e.suppressionOptions.suppressedReasons&&e.suppressionOptions.suppressedReasons.length>0?v.jsx("div",{className:"flex gap-2",children:e.suppressionOptions.suppressedReasons.map(y=>v.jsx(dn,{variant:"secondary",children:y},y))}):v.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]}),((p=e.deliveryOptions)==null?void 0:p.sendingPoolName)&&v.jsxs("div",{children:[v.jsx("p",{className:"font-medium text-sm",children:"IP Pool"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.sendingPoolName})]})]})]})}function Nde(){var c,f;const[e,t]=_.useState(null),[n,r]=_.useState(!0),[i,l]=_.useState(null),s=_.useCallback(async()=>{try{r(!0);const d=await _de();t(d),l(null)}catch(d){console.error("Failed to fetch email settings:",d),l(d instanceof Error?d.message:"Failed to load settings")}finally{r(!1)}},[]);return _.useEffect(()=>{s()},[s]),n?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[v.jsxs(kt,{className:"md:row-span-2",children:[v.jsxs($t,{children:[v.jsx(_t,{className:"h-6 w-48"}),v.jsx(_t,{className:"mt-2 h-4 w-64"})]}),v.jsxs(Ut,{className:"space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(_t,{className:"h-4 w-32"}),v.jsx(_t,{className:"h-4 w-24"})]}),v.jsx(_t,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(_t,{className:"h-4 w-40"}),v.jsx(_t,{className:"h-4 w-28"})]}),v.jsx(_t,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(_t,{className:"h-4 w-36"}),v.jsx(_t,{className:"h-4 w-32"})]}),v.jsx(_t,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(_t,{className:"h-4 w-32"}),v.jsx(_t,{className:"h-4 w-44"})]})]})]}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(_t,{className:"h-6 w-48"}),v.jsx(_t,{className:"mt-2 h-4 w-64"})]}),v.jsx(Ut,{children:v.jsx(_t,{className:"h-20 w-full"})})]}),v.jsxs(kt,{children:[v.jsxs($t,{children:[v.jsx(_t,{className:"h-6 w-48"}),v.jsx(_t,{className:"mt-2 h-4 w-64"})]}),v.jsx(Ut,{children:v.jsx(_t,{className:"h-20 w-full"})})]})]})]}):i?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs(lo,{className:"mt-6",variant:"destructive",children:[v.jsx(Sk,{className:"h-4 w-4"}),v.jsx(tV,{children:"Error Loading Settings"}),v.jsx(so,{children:i})]})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[v.jsxs(kt,{className:"md:row-span-2",children:[v.jsxs($t,{children:[v.jsx(an,{children:"Sending Domain"}),v.jsx(mn,{children:"Email domain configuration and authentication"})]}),v.jsxs(Ut,{className:"space-y-6",children:[v.jsx("div",{className:"space-y-4",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"font-medium",children:(c=e==null?void 0:e.identity)==null?void 0:c.identityName}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Domain Identity"})]}),v.jsx(a_,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),v.jsx(Fl,{}),v.jsx(Ade,{identity:e==null?void 0:e.identity}),v.jsx(Fl,{}),v.jsx(Tde,{identity:e==null?void 0:e.identity}),v.jsx(Fl,{}),v.jsx(jde,{identity:e==null?void 0:e.identity})]})]}),v.jsx(Mde,{configSet:e==null?void 0:e.configurationSet,onRefresh:s}),v.jsx(Cde,{configSet:e==null?void 0:e.configurationSet,onRefresh:s,region:e==null?void 0:e.region})]})]})}function Rde({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,l]=_.useState(()=>localStorage.getItem(n)||t);_.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),i==="system"){const f=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";c.classList.add(f),c.style.colorScheme=f;return}c.classList.add(i),c.style.colorScheme=i},[i]);const s={theme:i,setTheme:c=>{localStorage.setItem(n,c),l(c)}};return v.jsx(VL.Provider,{...r,value:s,children:e})}function Pde({...e}){return v.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Dde({className:e,...t}){return v.jsx("ol",{className:he("flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",e),"data-slot":"breadcrumb-list",...t})}function kde({className:e,...t}){return v.jsx("li",{className:he("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function $de({className:e,...t}){return v.jsx("span",{"aria-current":"page","aria-disabled":"true",className:he("font-normal text-foreground",e),"data-slot":"breadcrumb-page",role:"link",...t})}var Lde=(e,t,n,r,i,l,s,c)=>{let f=document.documentElement,d=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(O=>{let w=O==="class",S=w&&l?i.map(E=>l[E]||E):i;w?(f.classList.remove(...S),f.classList.add(l&&l[x]?l[x]:x)):f.setAttribute(O,x)}),p(x)}function p(x){c&&d.includes(x)&&(f.style.colorScheme=x)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let x=localStorage.getItem(t)||n,O=s&&x==="system"?y():x;m(O)}catch{}},Ide=_.createContext(void 0),zde={setTheme:e=>{},themes:[]},Bde=()=>{var e;return(e=_.useContext(Ide))!=null?e:zde};_.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:l,value:s,themes:c,nonce:f,scriptProps:d})=>{let m=JSON.stringify([n,t,l,e,c,s,r,i]).slice(1,-1);return _.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${Lde.toString()})(${m})`}})});const qde=({...e})=>{const{theme:t="system"}=Bde();return v.jsx(Ufe,{className:"toaster group",icons:{success:v.jsx(Op,{className:"size-4"}),info:v.jsx(g6,{className:"size-4"}),warning:v.jsx(T6,{className:"size-4"}),error:v.jsx(x6,{className:"size-4"}),loading:v.jsx(y6,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},theme:t,...e})};function Ude(){const e=ra(),[t,n]=_.useState(!1);_.useEffect(()=>{let i=sessionStorage.getItem("wraps-auth-token");i||(i=new URLSearchParams(window.location.search).get("token"),i&&sessionStorage.setItem("wraps-auth-token",i)),n(!0)},[]),_.useEffect(()=>{document.cookie="sidebar_state=; path=/; max-age=0"},[]);const r=()=>{if(e.pathname.startsWith("/email/")&&e.pathname!=="/email/metrics"&&e.pathname!=="/email/settings")return"Email Details";switch(e.pathname){case"/":case"/email":return"Emails";case"/email/metrics":return"Email Metrics";case"/email/settings":return"Email Settings";default:return"Emails"}};return v.jsxs(qL,{defaultOpen:!1,children:[v.jsx(ZG,{}),v.jsxs(HL,{children:[v.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[v.jsx(UL,{className:"-ml-1"}),v.jsx(Fl,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),v.jsx(Pde,{children:v.jsx(Dde,{children:v.jsx(kde,{children:v.jsx($de,{children:r()})})})})]}),v.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:t?v.jsxs(E8,{children:[v.jsx(kl,{element:v.jsx(O8,{replace:!0,to:"/email"}),path:"/"}),v.jsx(kl,{element:v.jsx(eY,{}),path:"/email"}),v.jsx(kl,{element:v.jsx(dV,{}),path:"/email/:id"}),v.jsx(kl,{element:v.jsx(mfe,{}),path:"/email/metrics"}),v.jsx(kl,{element:v.jsx(Nde,{}),path:"/email/settings"})]}):v.jsx("div",{className:"flex items-center justify-center p-8",children:v.jsx("div",{className:"text-muted-foreground",children:"Loading..."})})})]})]})}function Hde(){return v.jsx(Rde,{defaultTheme:"system",storageKey:"console-ui-theme",children:v.jsxs(W8,{children:[v.jsx(Ude,{}),v.jsx(qde,{})]})})}Pq.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(Hde,{})}));