@wraps.dev/cli 0.1.5 → 0.3.2
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.
- package/dist/cli.js +784 -48
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-BXE8qB8y.css +1 -0
- package/dist/console/assets/index-BmOMPb6r.js +381 -0
- package/dist/console/index.html +2 -2
- package/dist/lambda/event-processor/.bundled +1 -1
- package/package.json +4 -1
- package/dist/console/assets/index-D7Es86Zn.css +0 -1
- package/dist/console/assets/index-VnWZyGbz.js +0 -366
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
function xq(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 Td=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 Lg={exports:{}},ju={};/**
|
|
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 VT;function wq(){if(VT)return ju;VT=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 ju.Fragment=t,ju.jsx=n,ju.jsxs=n,ju}var YT;function Sq(){return YT||(YT=1,Lg.exports=wq()),Lg.exports}var y=Sq(),Ig={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 WT;function Oq(){if(WT)return je;WT=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"),g=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@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 KT;function vp(){return KT||(KT=1,Ig.exports=Oq()),Ig.exports}var _=vp();const L=lt(_),Z1=xq({__proto__:null,default:L},[_]);var zg={exports:{}},Cu={},Bg={exports:{}},qg={};/**
|
|
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 XT;function _q(){return XT||(XT=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,g=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=g;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,g=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,g=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 g},e.unstable_next=function(D){switch(g){case 1:case 2:case 3:var U=3;break;default:U=g}var Y=g;g=U;try{return D()}finally{g=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=g;g=D;try{return U()}finally{g=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=g;return function(){var Y=g;g=U;try{return D.apply(this,arguments)}finally{g=Y}}}})(qg)),qg}var QT;function Eq(){return QT||(QT=1,Bg.exports=_q()),Bg.exports}var Ug={exports:{}},on={};/**
|
|
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 ZT;function Aq(){if(ZT)return on;ZT=1;var e=vp();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 on.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,on.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)},on.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()}},on.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))},on.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},on.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin),g=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:g,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:g,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},on.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)},on.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})}},on.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)},on.requestFormReset=function(f){r.d.r(f)},on.unstable_batchedUpdates=function(f,d){return f(d)},on.useFormState=function(f,d,m){return s.H.useFormState(f,d,m)},on.useFormStatus=function(){return s.H.useHostTransitionStatus()},on.version="19.2.0",on}var JT;function nk(){if(JT)return Ug.exports;JT=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(),Ug.exports=Aq(),Ug.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 ej;function Tq(){if(ej)return Cu;ej=1;var e=Eq(),t=vp(),n=nk();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 v=u.return;if(v===null)break;var b=v.alternate;if(b===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===b.child){for(b=v.child;b;){if(b===u)return f(v),a;if(b===h)return f(v),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=b;else{for(var C=!1,P=v.child;P;){if(P===u){C=!0,u=v,h=b;break}if(P===h){C=!0,h=v,u=b;break}P=P.sibling}if(!C){for(P=b.child;P;){if(P===u){C=!0,u=b,h=v;break}if(P===h){C=!0,h=b,u=v;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,g=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)?mT(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=mT(o),a=vT(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=vT(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),_u._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 We=!1;function He(a,o){if(!a||We)return"";We=!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 v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.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(v=h=0;h<q.length&&!q[h].includes("DetermineComponentFrameRoot");)h++;for(;v<ee.length&&!ee[v].includes("DetermineComponentFrameRoot");)v++;if(h===q.length||v===ee.length)for(h=q.length-1,v=ee.length-1;1<=h&&0<=v&&q[h]!==ee[v];)v--;for(;1<=h&&0<=v;h--,v--)if(q[h]!==ee[v]){if(h!==1||v!==1)do if(h--,v--,0>v||q[h]!==ee[v]){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<=v);break}}}finally{We=!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 He(a.type,!1);case 11:return He(a.type.render,!1);case 1:return He(a.type,!0);case 31:return Oe("Activity");default:return""}}function nn(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,Rn=e.unstable_cancelCallback,xt=e.unstable_shouldYield,Yn=e.unstable_requestPaint,Ut=e.unstable_now,ko=e.unstable_getCurrentPriorityLevel,Li=e.unstable_ImmediatePriority,hf=e.unstable_UserBlockingPriority,Ii=e.unstable_NormalPriority,Ls=e.unstable_LowPriority,oa=e.unstable_IdlePriority,pf=e.log,Ga=e.unstable_setDisableYieldValue,zi=null,cn=null;function vr(a){if(typeof pf=="function"&&Ga(a),cn&&typeof cn.setStrictMode=="function")try{cn.setStrictMode(zi,a)}catch{}}var rn=Math.clz32?Math.clz32:Br,Am=Math.log,Is=Math.LN2;function Br(a){return a>>>=0,a===0?32:31-(Am(a)/Is|0)|0}var $o=256,Lo=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 v=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var P=h&134217727;return P!==0?(h=P&~b,h!==0?v=qr(h):(C&=P,C!==0?v=qr(C):u||(u=P&~a,u!==0&&(v=qr(u))))):(P=h&~b,P!==0?v=qr(P):C!==0?v=qr(C):u||(u=h&~a,u!==0&&(v=qr(u)))),v===0?0:o!==0&&o!==v&&(o&b)===0&&(b=v&-v,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:v}function vt(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Ht(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 an(){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 gn(a,o,u,h,v,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-rn(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&&v===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~o))}function qi(a,o,u){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-rn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|u&261930}function yn(a,o){var u=a.entangledLanes|=o;for(a=a.entanglements;u;){var h=31-rn(u),v=1<<h;v&o|a[h]&o&&(a[h]|=o),u&=~v}}function bn(a,o){var u=o&-o;return u=(u&42)!==0?1:Io(u),(u&(a.suspendedLanes|o))!==0?0:u}function Io(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 gr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Tm(){var a=U.p;return a!==0?a:(a=window.event,a===void 0?32:zT(a.type))}function t_(a,o){var u=U.p;try{return U.p=a,o()}finally{U.p=u}}var Ya=Math.random().toString(36).slice(2),Kt="__reactFiber$"+Ya,xn="__reactProps$"+Ya,zo="__reactContainer$"+Ya,jm="__reactEvents$"+Ya,uz="__reactListeners$"+Ya,cz="__reactHandles$"+Ya,n_="__reactResources$"+Ya,zs="__reactMarker$"+Ya;function Cm(a){delete a[Kt],delete a[xn],delete a[jm],delete a[uz],delete a[cz]}function Bo(a){var o=a[Kt];if(o)return o;for(var u=a.parentNode;u;){if(o=u[zo]||u[Kt]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(a=OT(a);a!==null;){if(u=a[Kt])return u;a=OT(a)}return o}a=u,u=a.parentNode}return null}function qo(a){if(a=a[Kt]||a[zo]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Bs(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Uo(a){var o=a[n_];return o||(o=a[n_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Ft(a){a[zs]=!0}var r_=new Set,a_={};function Ui(a,o){Ho(a,o),Ho(a+"Capture",o)}function Ho(a,o){for(a_[a]=o,a=0;a<o.length;a++)r_.add(o[a])}var fz=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]*$"),i_={},o_={};function dz(a){return ft.call(o_,a)?!0:ft.call(i_,a)?!1:fz.test(a)?o_[a]=!0:(i_[a]=!0,!1)}function mf(a,o,u){if(dz(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 vf(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 Wn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function l_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function hz(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 v=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return v.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 Mm(a){if(!a._valueTracker){var o=l_(a)?"checked":"value";a._valueTracker=hz(a,o,""+a[o])}}function s_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=l_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function gf(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 pz=/[\n"\\]/g;function Kn(a){return a.replace(pz,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Nm(a,o,u,h,v,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=""+Wn(o)):a.value!==""+Wn(o)&&(a.value=""+Wn(o)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),o!=null?Rm(a,C,Wn(o)):u!=null?Rm(a,C,Wn(u)):h!=null&&a.removeAttribute("value"),v==null&&b!=null&&(a.defaultChecked=!!b),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+Wn(P):a.removeAttribute("name")}function u_(a,o,u,h,v,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)){Mm(a);return}u=u!=null?""+Wn(u):"",o=o!=null?""+Wn(o):u,P||o===a.value||(a.value=o),a.defaultValue=o}h=h??v,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),Mm(a)}function Rm(a,o,u){o==="number"&&gf(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Fo(a,o,u,h){if(a=a.options,o){o={};for(var v=0;v<u.length;v++)o["$"+u[v]]=!0;for(u=0;u<a.length;u++)v=o.hasOwnProperty("$"+a[u].value),a[u].selected!==v&&(a[u].selected=v),v&&h&&(a[u].defaultSelected=!0)}else{for(u=""+Wn(u),o=null,v=0;v<a.length;v++){if(a[v].value===u){a[v].selected=!0,h&&(a[v].defaultSelected=!0);return}o!==null||a[v].disabled||(o=a[v])}o!==null&&(o.selected=!0)}}function c_(a,o,u){if(o!=null&&(o=""+Wn(o),o!==a.value&&(a.value=o),u==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=u!=null?""+Wn(u):""}function f_(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=Wn(o),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h),Mm(a)}function Go(a,o){if(o){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=o;return}}a.textContent=o}var mz=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 d_(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||mz.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function h_(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 v in o)h=o[v],o.hasOwnProperty(v)&&u[v]!==h&&d_(a,v,h)}else for(var b in o)o.hasOwnProperty(b)&&d_(a,b,o[b])}function Pm(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 vz=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"]]),gz=/^[\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 yf(a){return gz.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function sa(){}var Dm=null;function km(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Vo=null,Yo=null;function p_(a){var o=qo(a);if(o&&(a=o.stateNode)){var u=a[xn]||null;e:switch(a=o.stateNode,o.type){case"input":if(Nm(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="'+Kn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==a&&h.form===a.form){var v=h[xn]||null;if(!v)throw Error(r(90));Nm(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===a.form&&s_(h)}break e;case"textarea":c_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Fo(a,!!u.multiple,o,!1)}}}var $m=!1;function m_(a,o,u){if($m)return a(o,u);$m=!0;try{var h=a(o);return h}finally{if($m=!1,(Vo!==null||Yo!==null)&&(id(),Vo&&(o=Vo,a=Yo,Yo=Vo=null,p_(o),a)))for(o=0;o<a.length;o++)p_(a[o])}}function qs(a,o){var u=a.stateNode;if(u===null)return null;var h=u[xn]||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"),Lm=!1;if(ua)try{var Us={};Object.defineProperty(Us,"passive",{get:function(){Lm=!0}}),window.addEventListener("test",Us,Us),window.removeEventListener("test",Us,Us)}catch{Lm=!1}var Wa=null,Im=null,bf=null;function v_(){if(bf)return bf;var a,o=Im,u=o.length,h,v="value"in Wa?Wa.value:Wa.textContent,b=v.length;for(a=0;a<u&&o[a]===v[a];a++);var C=u-a;for(h=1;h<=C&&o[u-h]===v[b-h];h++);return bf=v.slice(a,1<h?1-h:void 0)}function xf(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 wf(){return!0}function g_(){return!1}function wn(a){function o(u,h,v,b,C){this._reactName=u,this._targetInst=v,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)?wf:g_,this.isPropagationStopped=g_,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=wf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=wf)},persist:function(){},isPersistent:wf}),o}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sf=wn(Hi),Hs=p({},Hi,{view:0,detail:0}),yz=wn(Hs),zm,Bm,Fs,Of=p({},Hs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Um,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!==Fs&&(Fs&&a.type==="mousemove"?(zm=a.screenX-Fs.screenX,Bm=a.screenY-Fs.screenY):Bm=zm=0,Fs=a),zm)},movementY:function(a){return"movementY"in a?a.movementY:Bm}}),y_=wn(Of),bz=p({},Of,{dataTransfer:0}),xz=wn(bz),wz=p({},Hs,{relatedTarget:0}),qm=wn(wz),Sz=p({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),Oz=wn(Sz),_z=p({},Hi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Ez=wn(_z),Az=p({},Hi,{data:0}),b_=wn(Az),Tz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jz={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"},Cz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mz(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Cz[a])?!!o[a]:!1}function Um(){return Mz}var Nz=p({},Hs,{key:function(a){if(a.key){var o=Tz[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=xf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?jz[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Um,charCode:function(a){return a.type==="keypress"?xf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?xf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Rz=wn(Nz),Pz=p({},Of,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),x_=wn(Pz),Dz=p({},Hs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Um}),kz=wn(Dz),$z=p({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lz=wn($z),Iz=p({},Of,{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}),zz=wn(Iz),Bz=p({},Hi,{newState:0,oldState:0}),qz=wn(Bz),Uz=[9,13,27,32],Hm=ua&&"CompositionEvent"in window,Gs=null;ua&&"documentMode"in document&&(Gs=document.documentMode);var Hz=ua&&"TextEvent"in window&&!Gs,w_=ua&&(!Hm||Gs&&8<Gs&&11>=Gs),S_=" ",O_=!1;function __(a,o){switch(a){case"keyup":return Uz.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Wo=!1;function Fz(a,o){switch(a){case"compositionend":return E_(o);case"keypress":return o.which!==32?null:(O_=!0,S_);case"textInput":return a=o.data,a===S_&&O_?null:a;default:return null}}function Gz(a,o){if(Wo)return a==="compositionend"||!Hm&&__(a,o)?(a=v_(),bf=Im=Wa=null,Wo=!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 w_&&o.locale!=="ko"?null:o.data;default:return null}}var Vz={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 A_(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!Vz[a.type]:o==="textarea"}function T_(a,o,u,h){Vo?Yo?Yo.push(h):Yo=[h]:Vo=h,o=dd(o,"onChange"),0<o.length&&(u=new Sf("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var Vs=null,Ys=null;function Yz(a){uT(a,0)}function _f(a){var o=Bs(a);if(s_(o))return a}function j_(a,o){if(a==="change")return o}var C_=!1;if(ua){var Fm;if(ua){var Gm="oninput"in document;if(!Gm){var M_=document.createElement("div");M_.setAttribute("oninput","return;"),Gm=typeof M_.oninput=="function"}Fm=Gm}else Fm=!1;C_=Fm&&(!document.documentMode||9<document.documentMode)}function N_(){Vs&&(Vs.detachEvent("onpropertychange",R_),Ys=Vs=null)}function R_(a){if(a.propertyName==="value"&&_f(Ys)){var o=[];T_(o,Ys,a,km(a)),m_(Yz,o)}}function Wz(a,o,u){a==="focusin"?(N_(),Vs=o,Ys=u,Vs.attachEvent("onpropertychange",R_)):a==="focusout"&&N_()}function Kz(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return _f(Ys)}function Xz(a,o){if(a==="click")return _f(o)}function Qz(a,o){if(a==="input"||a==="change")return _f(o)}function Zz(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Pn=typeof Object.is=="function"?Object.is:Zz;function Ws(a,o){if(Pn(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 v=u[h];if(!ft.call(o,v)||!Pn(a[v],o[v]))return!1}return!0}function P_(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function D_(a,o){var u=P_(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=P_(u)}}function k_(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?k_(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function $_(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=gf(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=gf(a.document)}return o}function Vm(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 Jz=ua&&"documentMode"in document&&11>=document.documentMode,Ko=null,Ym=null,Ks=null,Wm=!1;function L_(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Wm||Ko==null||Ko!==gf(h)||(h=Ko,"selectionStart"in h&&Vm(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}),Ks&&Ws(Ks,h)||(Ks=h,h=dd(Ym,"onSelect"),0<h.length&&(o=new Sf("onSelect","select",null,o,u),a.push({event:o,listeners:h}),o.target=Ko)))}function Fi(a,o){var u={};return u[a.toLowerCase()]=o.toLowerCase(),u["Webkit"+a]="webkit"+o,u["Moz"+a]="moz"+o,u}var Xo={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")},Km={},I_={};ua&&(I_=document.createElement("div").style,"AnimationEvent"in window||(delete Xo.animationend.animation,delete Xo.animationiteration.animation,delete Xo.animationstart.animation),"TransitionEvent"in window||delete Xo.transitionend.transition);function Gi(a){if(Km[a])return Km[a];if(!Xo[a])return a;var o=Xo[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in I_)return Km[a]=o[u];return a}var z_=Gi("animationend"),B_=Gi("animationiteration"),q_=Gi("animationstart"),eB=Gi("transitionrun"),tB=Gi("transitionstart"),nB=Gi("transitioncancel"),U_=Gi("transitionend"),H_=new Map,Xm="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(" ");Xm.push("scrollEnd");function yr(a,o){H_.set(a,o),Ui(o,[a])}var Ef=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)},Xn=[],Qo=0,Qm=0;function Af(){for(var a=Qo,o=Qm=Qo=0;o<a;){var u=Xn[o];Xn[o++]=null;var h=Xn[o];Xn[o++]=null;var v=Xn[o];Xn[o++]=null;var b=Xn[o];if(Xn[o++]=null,h!==null&&v!==null){var C=h.pending;C===null?v.next=v:(v.next=C.next,C.next=v),h.pending=v}b!==0&&F_(u,v,b)}}function Tf(a,o,u,h){Xn[Qo++]=a,Xn[Qo++]=o,Xn[Qo++]=u,Xn[Qo++]=h,Qm|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function Zm(a,o,u,h){return Tf(a,o,u,h),jf(a)}function Vi(a,o){return Tf(a,null,null,o),jf(a)}function F_(a,o,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var v=!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||(v=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,v&&o!==null&&(v=31-rn(u),a=b.hiddenUpdates,h=a[v],h===null?a[v]=[o]:h.push(o),o.lane=u|536870912),b):null}function jf(a){if(50<gu)throw gu=0,lg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var Zo={};function rB(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 Dn(a,o,u,h){return new rB(a,o,u,h)}function Jm(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ca(a,o){var u=a.alternate;return u===null?(u=Dn(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 G_(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 Cf(a,o,u,h,v,b){var C=0;if(h=a,typeof a=="function")Jm(a)&&(C=1);else if(typeof a=="string")C=sq(a,u,se.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case I:return a=Dn(31,u,o,v),a.elementType=I,a.lanes=b,a;case w:return Yi(u.children,v,b,o);case S:C=8,v|=24;break;case E:return a=Dn(12,u,o,v|2),a.elementType=E,a.lanes=b,a;case j:return a=Dn(13,u,o,v),a.elementType=j,a.lanes=b,a;case N:return a=Dn(19,u,o,v),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=Dn(C,u,o,v),o.elementType=a,o.type=h,o.lanes=b,o}function Yi(a,o,u,h){return a=Dn(7,a,h,o),a.lanes=u,a}function ev(a,o,u){return a=Dn(6,a,null,o),a.lanes=u,a}function V_(a){var o=Dn(18,null,null,0);return o.stateNode=a,o}function tv(a,o,u){return o=Dn(4,a.children!==null?a.children:[],a.key,o),o.lanes=u,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var Y_=new WeakMap;function Qn(a,o){if(typeof a=="object"&&a!==null){var u=Y_.get(a);return u!==void 0?u:(o={value:a,source:o,stack:nn(o)},Y_.set(a,o),o)}return{value:a,source:o,stack:nn(o)}}var Jo=[],el=0,Mf=null,Xs=0,Zn=[],Jn=0,Ka=null,Ur=1,Hr="";function fa(a,o){Jo[el++]=Xs,Jo[el++]=Mf,Mf=a,Xs=o}function W_(a,o,u){Zn[Jn++]=Ur,Zn[Jn++]=Hr,Zn[Jn++]=Ka,Ka=a;var h=Ur;a=Hr;var v=32-rn(h)-1;h&=~(1<<v),u+=1;var b=32-rn(o)+v;if(30<b){var C=v-v%5;b=(h&(1<<C)-1).toString(32),h>>=C,v-=C,Ur=1<<32-rn(o)+v|u<<v|h,Hr=b+a}else Ur=1<<b|u<<v|h,Hr=a}function nv(a){a.return!==null&&(fa(a,1),W_(a,1,0))}function rv(a){for(;a===Mf;)Mf=Jo[--el],Jo[el]=null,Xs=Jo[--el],Jo[el]=null;for(;a===Ka;)Ka=Zn[--Jn],Zn[Jn]=null,Hr=Zn[--Jn],Zn[Jn]=null,Ur=Zn[--Jn],Zn[Jn]=null}function K_(a,o){Zn[Jn++]=Ur,Zn[Jn++]=Hr,Zn[Jn++]=Ka,Ur=o.id,Hr=o.overflow,Ka=a}var Xt=null,dt=null,Be=!1,Xa=null,er=!1,av=Error(r(519));function Qa(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qs(Qn(o,a)),av}function X_(a){var o=a.stateNode,u=a.type,h=a.memoizedProps;switch(o[Kt]=a,o[xn]=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<bu.length;u++)$e(bu[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),u_(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),f_(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||hT(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 Q_(a){for(Xt=a.return;Xt;)switch(Xt.tag){case 5:case 31:case 13:er=!1;return;case 27:case 3:er=!0;return;default:Xt=Xt.return}}function tl(a){if(a!==Xt)return!1;if(!Be)return Q_(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")||Sg(a.type,a.memoizedProps)),u=!u),u&&dt&&Qa(a),Q_(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));dt=ST(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));dt=ST(a)}else o===27?(o=dt,fi(a.type)?(a=Tg,Tg=null,dt=a):dt=o):dt=Xt?nr(a.stateNode.nextSibling):null;return!0}function Wi(){dt=Xt=null,Be=!1}function iv(){var a=Xa;return a!==null&&(En===null?En=a:En.push.apply(En,a),Xa=null),a}function Qs(a){Xa===null?Xa=[a]:Xa.push(a)}var ov=$(null),Ki=null,da=null;function Za(a,o,u){Z(ov,o._currentValue),o._currentValue=u}function ha(a){a._currentValue=ov.current,F(ov)}function lv(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 sv(a,o,u,h){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var b=v.dependencies;if(b!==null){var C=v.child;b=b.firstContext;e:for(;b!==null;){var P=b;b=v;for(var q=0;q<o.length;q++)if(P.context===o[q]){b.lanes|=u,P=b.alternate,P!==null&&(P.lanes|=u),lv(b.return,u,a),h||(C=null);break e}b=P.next}}else if(v.tag===18){if(C=v.return,C===null)throw Error(r(341));C.lanes|=u,b=C.alternate,b!==null&&(b.lanes|=u),lv(C,u,a),C=null}else C=v.child;if(C!==null)C.return=v;else for(C=v;C!==null;){if(C===a){C=null;break}if(v=C.sibling,v!==null){v.return=C.return,C=v;break}C=C.return}v=C}}function nl(a,o,u,h){a=null;for(var v=o,b=!1;v!==null;){if(!b){if((v.flags&524288)!==0)b=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var C=v.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var P=v.type;Pn(v.pendingProps.value,C.value)||(a!==null?a.push(P):a=[P])}}else if(v===fe.current){if(C=v.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(a!==null?a.push(_u):a=[_u])}v=v.return}a!==null&&sv(o,a,u,h),o.flags|=262144}function Nf(a){for(a=a.firstContext;a!==null;){if(!Pn(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 Qt(a){return Z_(Ki,a)}function Rf(a,o){return Ki===null&&Xi(a),Z_(a,o)}function Z_(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 aB=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()})}},iB=e.unstable_scheduleCallback,oB=e.unstable_NormalPriority,Ct={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function uv(){return{controller:new aB,data:new Map,refCount:0}}function Zs(a){a.refCount--,a.refCount===0&&iB(oB,function(){a.controller.abort()})}var Js=null,cv=0,rl=0,al=null;function lB(a,o){if(Js===null){var u=Js=[];cv=0,rl=hg(),al={status:"pending",value:void 0,then:function(h){u.push(h)}}}return cv++,o.then(J_,J_),o}function J_(){if(--cv===0&&Js!==null){al!==null&&(al.status="fulfilled");var a=Js;Js=null,rl=0,al=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function sB(a,o){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var v=0;v<u.length;v++)(0,u[v])(o)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var eE=D.S;D.S=function(a,o){LA=Ut(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&lB(a,o),eE!==null&&eE(a,o)};var Qi=$(null);function fv(){var a=Qi.current;return a!==null?a:st.pooledCache}function Pf(a,o){o===null?Z(Qi,Qi.current):Z(Qi,o.pool)}function tE(){var a=fv();return a===null?null:{parent:Ct._currentValue,pool:a}}var il=Error(r(460)),dv=Error(r(474)),Df=Error(r(542)),kf={then:function(){}};function nE(a){return a=a.status,a==="fulfilled"||a==="rejected"}function rE(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,iE(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 v=o;v.status="fulfilled",v.value=h}},function(h){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,iE(a),a}throw Ji=o,il}}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,il):u}}var Ji=null;function aE(){if(Ji===null)throw Error(r(459));var a=Ji;return Ji=null,a}function iE(a){if(a===il||a===Df)throw Error(r(483))}var ol=null,eu=0;function $f(a){var o=eu;return eu+=1,ol===null&&(ol=[]),rE(ol,a,o)}function tu(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Lf(a,o){throw o.$$typeof===g?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function oE(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 v(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=ev(J,Q.mode,ue),H.return=Q,H):(H=v(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=v(H,J.props),tu(H,J),H.return=Q,H):(H=Cf(J.type,J.key,J.props,null,Q.mode,ue),tu(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=tv(J,Q.mode,ue),H.return=Q,H):(H=v(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=v(H,J),H.return=Q,H)}function ce(Q,H,J){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=ev(""+H,Q.mode,J),H.return=Q,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return J=Cf(H.type,H.key,H.props,null,Q.mode,J),tu(J,H),J.return=Q,J;case O:return H=tv(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,$f(H),J);if(H.$$typeof===A)return ce(Q,Rf(Q,H),J);Lf(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,$f(J),ue);if(J.$$typeof===A)return te(Q,H,Rf(Q,J),ue);Lf(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,$f(ue),_e);if(ue.$$typeof===A)return ne(Q,H,J,Rf(H,ue),_e);Lf(H,ue)}return null}function we(Q,H,J,ue){for(var _e=null,Fe=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 Ge=te(Q,Se,J[Re],ue);if(Ge===null){Se===null&&(Se=ze);break}a&&Se&&Ge.alternate===null&&o(Q,Se),H=b(Ge,H,Re),Fe===null?_e=Ge:Fe.sibling=Ge,Fe=Ge,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),Fe===null?_e=Se:Fe.sibling=Se,Fe=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),Fe===null?_e=ze:Fe.sibling=ze,Fe=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,Fe=null,Se=H,Re=H=0,ze=null,Ge=J.next();Se!==null&&!Ge.done;Re++,Ge=J.next()){Se.index>Re?(ze=Se,Se=null):ze=Se.sibling;var vi=te(Q,Se,Ge.value,ue);if(vi===null){Se===null&&(Se=ze);break}a&&Se&&vi.alternate===null&&o(Q,Se),H=b(vi,H,Re),Fe===null?_e=vi:Fe.sibling=vi,Fe=vi,Se=ze}if(Ge.done)return u(Q,Se),Be&&fa(Q,Re),_e;if(Se===null){for(;!Ge.done;Re++,Ge=J.next())Ge=ce(Q,Ge.value,ue),Ge!==null&&(H=b(Ge,H,Re),Fe===null?_e=Ge:Fe.sibling=Ge,Fe=Ge);return Be&&fa(Q,Re),_e}for(Se=h(Se);!Ge.done;Re++,Ge=J.next())Ge=ne(Se,Q,Re,Ge.value,ue),Ge!==null&&(a&&Ge.alternate!==null&&Se.delete(Ge.key===null?Re:Ge.key),H=b(Ge,H,Re),Fe===null?_e=Ge:Fe.sibling=Ge,Fe=Ge);return a&&Se.forEach(function(bq){return o(Q,bq)}),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=v(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=v(H,J.props),tu(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=Cf(J.type,J.key,J.props,null,Q.mode,ue),tu(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=v(H,J.children||[]),ue.return=Q,Q=ue;break e}else{u(Q,H);break}else o(Q,H);H=H.sibling}ue=tv(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,$f(J),ue);if(J.$$typeof===A)return it(Q,H,Rf(Q,J),ue);Lf(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=v(H,J),ue.return=Q,Q=ue):(u(Q,H),ue=ev(J,Q.mode,ue),ue.return=Q,Q=ue),C(Q)):u(Q,H)}return function(Q,H,J,ue){try{eu=0;var _e=it(Q,H,J,ue);return ol=null,_e}catch(Se){if(Se===il||Se===Df)throw Se;var Fe=Dn(29,Se,null,Q.mode);return Fe.lanes=ue,Fe.return=Q,Fe}finally{}}}var eo=oE(!0),lE=oE(!1),Ja=!1;function hv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pv(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,(Ke&2)!==0){var v=h.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),h.pending=o,o=jf(a),F_(a,null,u),o}return Tf(a,h,o,u),jf(a)}function nu(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,yn(a,u)}}function mv(a,o){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=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?v=b=C:b=b.next=C,u=u.next}while(u!==null);b===null?v=b=o:b=b.next=o}else v=b=o;u={baseState:h.baseState,firstBaseUpdate:v,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 vv=!1;function ru(){if(vv){var a=al;if(a!==null)throw a}}function au(a,o,u,h){vv=!1;var v=a.updateQueue;Ja=!1;var b=v.firstBaseUpdate,C=v.lastBaseUpdate,P=v.shared.pending;if(P!==null){v.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=v.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===rl&&(vv=!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=v.callbacks,ne===null?v.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=v.shared.pending,P===null)break;ne=P,P=ne.next,ne.next=null,v.lastBaseUpdate=ne,v.shared.pending=null}}while(!0);ie===null&&(q=ce),v.baseState=q,v.firstBaseUpdate=ee,v.lastBaseUpdate=ie,b===null&&(v.shared.lanes=0),oi|=C,a.lanes=C,a.memoizedState=ce}}function sE(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function uE(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)sE(u[a],o)}var ll=$(null),If=$(0);function cE(a,o){a=Sa,Z(If,a),Z(ll,o),Sa=a|o.baseLanes}function gv(){Z(If,Sa),Z(ll,ll.current)}function yv(){Sa=If.current,F(ll),F(If)}var kn=$(null),tr=null;function ni(a){var o=a.alternate;Z(Et,Et.current&1),Z(kn,a),tr===null&&(o===null||ll.current!==null||o.memoizedState!==null)&&(tr=a)}function bv(a){Z(Et,Et.current),Z(kn,a),tr===null&&(tr=a)}function fE(a){a.tag===22?(Z(Et,Et.current),Z(kn,a),tr===null&&(tr=a)):ri()}function ri(){Z(Et,Et.current),Z(kn,kn.current)}function $n(a){F(kn),tr===a&&(tr=null),F(Et)}var Et=$(0);function zf(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Eg(u)||Ag(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,Bf=!1,sl=!1,to=!1,qf=0,iu=0,ul=null,uB=0;function St(){throw Error(r(321))}function xv(a,o){if(o===null)return!1;for(var u=0;u<o.length&&u<a.length;u++)if(!Pn(a[u],o[u]))return!1;return!0}function wv(a,o,u,h,v,b){return pa=b,Ce=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,D.H=a===null||a.memoizedState===null?WE:$v,to=!1,b=u(h,v),to=!1,sl&&(b=hE(o,u,h,v)),dE(a),b}function dE(a){D.H=su;var o=rt!==null&&rt.next!==null;if(pa=0,Mt=rt=Ce=null,Bf=!1,iu=0,ul=null,o)throw Error(r(300));a===null||Nt||(a=a.dependencies,a!==null&&Nf(a)&&(Nt=!0))}function hE(a,o,u,h){Ce=a;var v=0;do{if(sl&&(ul=null),iu=0,sl=!1,25<=v)throw Error(r(301));if(v+=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=KE,b=o(u,h)}while(sl);return b}function cB(){var a=D.H,o=a.useState()[0];return o=typeof o.then=="function"?ou(o):o,a=a.useState()[0],(rt!==null?rt.memoizedState:null)!==a&&(Ce.flags|=1024),o}function Sv(){var a=qf!==0;return qf=0,a}function Ov(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function _v(a){if(Bf){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Bf=!1}pa=0,Mt=rt=Ce=null,sl=!1,iu=qf=0,ul=null}function fn(){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 At(){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 Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ou(a){var o=iu;return iu+=1,ul===null&&(ul=[]),a=rE(ul,a,o),o=Ce,(Mt===null?o.memoizedState:Mt.next)===null&&(o=o.alternate,D.H=o===null||o.memoizedState===null?WE:$v),a}function Hf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return ou(a);if(a.$$typeof===A)return Qt(a)}throw Error(r(438,String(a)))}function Ev(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(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Uf(),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 Ff(a){var o=At();return Av(o,rt,a)}function Av(a,o,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=a.baseQueue,b=h.pending;if(b!==null){if(v!==null){var C=v.next;v.next=b.next,b.next=C}o.baseQueue=v=b,h.pending=null}if(b=a.baseState,v===null)a.memoizedState=b;else{o=v.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===rl&&(ie=!0);else if((pa&te)===te){ee=ee.next,te===rl&&(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,!Pn(b,a.memoizedState)&&(Nt=!0,ie&&(u=al,u!==null)))throw u;a.memoizedState=b,a.baseState=C,a.baseQueue=q,h.lastRenderedState=b}return v===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Tv(a){var o=At(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,v=u.pending,b=o.memoizedState;if(v!==null){u.pending=null;var C=v=v.next;do b=a(b,C.action),C=C.next;while(C!==v);Pn(b,o.memoizedState)||(Nt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function pE(a,o,u){var h=Ce,v=At(),b=Be;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var C=!Pn((rt||v).memoizedState,u);if(C&&(v.memoizedState=u,Nt=!0),v=v.queue,Mv(gE.bind(null,h,v,a),[a]),v.getSnapshot!==o||C||Mt!==null&&Mt.memoizedState.tag&1){if(h.flags|=2048,cl(9,{destroy:void 0},vE.bind(null,h,v,u,o),null),st===null)throw Error(r(349));b||(pa&127)!==0||mE(h,o,u)}return u}function mE(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Ce.updateQueue,o===null?(o=Uf(),Ce.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function vE(a,o,u,h){o.value=u,o.getSnapshot=h,yE(o)&&bE(a)}function gE(a,o,u){return u(function(){yE(o)&&bE(a)})}function yE(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!Pn(a,u)}catch{return!0}}function bE(a){var o=Vi(a,2);o!==null&&An(o,a,2)}function jv(a){var o=fn();if(typeof a=="function"){var u=a;if(a=u(),to){vr(!0);try{u()}finally{vr(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ma,lastRenderedState:a},o}function xE(a,o,u,h){return a.baseState=u,Av(a,rt,typeof h=="function"?h:ma)}function fB(a,o,u,h,v){if(Yf(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:v,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,wE(o,b)):(b.next=u.next,o.pending=u.next=b)}}function wE(a,o){var u=o.action,h=o.payload,v=a.state;if(o.isTransition){var b=D.T,C={};D.T=C;try{var P=u(v,h),q=D.S;q!==null&&q(C,P),SE(a,o,P)}catch(ee){Cv(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),D.T=b}}else try{b=u(v,h),SE(a,o,b)}catch(ee){Cv(a,o,ee)}}function SE(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){OE(a,o,h)},function(h){return Cv(a,o,h)}):OE(a,o,u)}function OE(a,o,u){o.status="fulfilled",o.value=u,_E(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,wE(a,u)))}function Cv(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,_E(o),o=o.next;while(o!==h)}a.action=null}function _E(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function EE(a,o){return o}function AE(a,o){if(Be){var u=st.formState;if(u!==null){e:{var h=Ce;if(Be){if(dt){t:{for(var v=dt,b=er;v.nodeType!==8;){if(!b){v=null;break t}if(v=nr(v.nextSibling),v===null){v=null;break t}}b=v.data,v=b==="F!"||b==="F"?v:null}if(v){dt=nr(v.nextSibling),h=v.data==="F!";break e}}Qa(h)}h=!1}h&&(o=u[0])}}return u=fn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:EE,lastRenderedState:o},u.queue=h,u=GE.bind(null,Ce,h),h.dispatch=u,h=jv(!1),b=kv.bind(null,Ce,!1,h.queue),h=fn(),v={state:o,dispatch:null,action:a,pending:null},h.queue=v,u=fB.bind(null,Ce,v,b,u),v.dispatch=u,h.memoizedState=a,[o,u,!1]}function TE(a){var o=At();return jE(o,rt,a)}function jE(a,o,u){if(o=Av(a,o,EE)[0],a=Ff(ma)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=ou(o)}catch(C){throw C===il?Df:C}else h=o;o=At();var v=o.queue,b=v.dispatch;return u!==o.memoizedState&&(Ce.flags|=2048,cl(9,{destroy:void 0},dB.bind(null,v,u),null)),[h,b,a]}function dB(a,o){a.action=o}function CE(a){var o=At(),u=rt;if(u!==null)return jE(o,u,a);At(),o=o.memoizedState,u=At();var h=u.queue.dispatch;return u.memoizedState=a,[o,h,!1]}function cl(a,o,u,h){return a={tag:a,create:u,deps:h,inst:o,next:null},o=Ce.updateQueue,o===null&&(o=Uf(),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 ME(){return At().memoizedState}function Gf(a,o,u,h){var v=fn();Ce.flags|=a,v.memoizedState=cl(1|o,{destroy:void 0},u,h===void 0?null:h)}function Vf(a,o,u,h){var v=At();h=h===void 0?null:h;var b=v.memoizedState.inst;rt!==null&&h!==null&&xv(h,rt.memoizedState.deps)?v.memoizedState=cl(o,b,u,h):(Ce.flags|=a,v.memoizedState=cl(1|o,b,u,h))}function NE(a,o){Gf(8390656,8,a,o)}function Mv(a,o){Vf(2048,8,a,o)}function hB(a){Ce.flags|=4;var o=Ce.updateQueue;if(o===null)o=Uf(),Ce.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function RE(a){var o=At().memoizedState;return hB({ref:o,nextImpl:a}),function(){if((Ke&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function PE(a,o){return Vf(4,2,a,o)}function DE(a,o){return Vf(4,4,a,o)}function kE(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 $E(a,o,u){u=u!=null?u.concat([a]):null,Vf(4,4,kE.bind(null,o,a),u)}function Nv(){}function LE(a,o){var u=At();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&xv(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function IE(a,o){var u=At();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&xv(o,h[1]))return h[0];if(h=a(),to){vr(!0);try{a()}finally{vr(!1)}}return u.memoizedState=[h,o],h}function Rv(a,o,u){return u===void 0||(pa&1073741824)!==0&&(Ie&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=zA(),Ce.lanes|=a,oi|=a,u)}function zE(a,o,u,h){return Pn(u,o)?u:ll.current!==null?(a=Rv(a,u,h),Pn(a,o)||(Nt=!0),a):(pa&42)===0||(pa&1073741824)!==0&&(Ie&261930)===0?(Nt=!0,a.memoizedState=u):(a=zA(),Ce.lanes|=a,oi|=a,o)}function BE(a,o,u,h,v){var b=U.p;U.p=b!==0&&8>b?b:8;var C=D.T,P={};D.T=P,kv(a,!1,o,u);try{var q=v(),ee=D.S;if(ee!==null&&ee(P,q),q!==null&&typeof q=="object"&&typeof q.then=="function"){var ie=sB(q,h);lu(a,o,ie,zn(a))}else lu(a,o,h,zn(a))}catch(ce){lu(a,o,{then:function(){},status:"rejected",reason:ce},zn())}finally{U.p=b,C!==null&&P.types!==null&&(C.types=P.types),D.T=C}}function pB(){}function Pv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var v=qE(a).queue;BE(a,v,o,Y,u===null?pB:function(){return UE(a),u(h)})}function qE(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 UE(a){var o=qE(a);o.next===null&&(o=a.alternate.memoizedState),lu(a,o.next.queue,{},zn())}function Dv(){return Qt(_u)}function HE(){return At().memoizedState}function FE(){return At().memoizedState}function mB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var u=zn();a=ei(u);var h=ti(o,a,u);h!==null&&(An(h,o,u),nu(h,o,u)),o={cache:uv()},a.payload=o;return}o=o.return}}function vB(a,o,u){var h=zn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Yf(a)?VE(o,u):(u=Zm(a,o,u,h),u!==null&&(An(u,a,h),YE(u,o,h)))}function GE(a,o,u){var h=zn();lu(a,o,u,h)}function lu(a,o,u,h){var v={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Yf(a))VE(o,v);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(v.hasEagerState=!0,v.eagerState=P,Pn(P,C))return Tf(a,o,v,0),st===null&&Af(),!1}catch{}finally{}if(u=Zm(a,o,v,h),u!==null)return An(u,a,h),YE(u,o,h),!0}return!1}function kv(a,o,u,h){if(h={lane:2,revertLane:hg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Yf(a)){if(o)throw Error(r(479))}else o=Zm(a,u,h,2),o!==null&&An(o,a,2)}function Yf(a){var o=a.alternate;return a===Ce||o!==null&&o===Ce}function VE(a,o){sl=Bf=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function YE(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,yn(a,u)}}var su={readContext:Qt,use:Hf,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};su.useEffectEvent=St;var WE={readContext:Qt,use:Hf,useCallback:function(a,o){return fn().memoizedState=[a,o===void 0?null:o],a},useContext:Qt,useEffect:NE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,Gf(4194308,4,kE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return Gf(4194308,4,a,o)},useInsertionEffect:function(a,o){Gf(4,2,a,o)},useMemo:function(a,o){var u=fn();o=o===void 0?null:o;var h=a();if(to){vr(!0);try{a()}finally{vr(!1)}}return u.memoizedState=[h,o],h},useReducer:function(a,o,u){var h=fn();if(u!==void 0){var v=u(o);if(to){vr(!0);try{u(o)}finally{vr(!1)}}}else v=o;return h.memoizedState=h.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},h.queue=a,a=a.dispatch=vB.bind(null,Ce,a),[h.memoizedState,a]},useRef:function(a){var o=fn();return a={current:a},o.memoizedState=a},useState:function(a){a=jv(a);var o=a.queue,u=GE.bind(null,Ce,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:Nv,useDeferredValue:function(a,o){var u=fn();return Rv(u,a,o)},useTransition:function(){var a=jv(!1);return a=BE.bind(null,Ce,a.queue,!0,!1),fn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,u){var h=Ce,v=fn();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||mE(h,o,u)}v.memoizedState=u;var b={value:u,getSnapshot:o};return v.queue=b,NE(gE.bind(null,h,b,a),[a]),h.flags|=2048,cl(9,{destroy:void 0},vE.bind(null,h,b,u,o),null),u},useId:function(){var a=fn(),o=st.identifierPrefix;if(Be){var u=Hr,h=Ur;u=(h&~(1<<32-rn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=qf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=uB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Dv,useFormState:AE,useActionState:AE,useOptimistic:function(a){var o=fn();o.memoizedState=o.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=kv.bind(null,Ce,!0,u),u.dispatch=o,[a,o]},useMemoCache:Ev,useCacheRefresh:function(){return fn().memoizedState=mB.bind(null,Ce)},useEffectEvent:function(a){var o=fn(),u={impl:a};return o.memoizedState=u,function(){if((Ke&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},$v={readContext:Qt,use:Hf,useCallback:LE,useContext:Qt,useEffect:Mv,useImperativeHandle:$E,useInsertionEffect:PE,useLayoutEffect:DE,useMemo:IE,useReducer:Ff,useRef:ME,useState:function(){return Ff(ma)},useDebugValue:Nv,useDeferredValue:function(a,o){var u=At();return zE(u,rt.memoizedState,a,o)},useTransition:function(){var a=Ff(ma)[0],o=At().memoizedState;return[typeof a=="boolean"?a:ou(a),o]},useSyncExternalStore:pE,useId:HE,useHostTransitionStatus:Dv,useFormState:TE,useActionState:TE,useOptimistic:function(a,o){var u=At();return xE(u,rt,a,o)},useMemoCache:Ev,useCacheRefresh:FE};$v.useEffectEvent=RE;var KE={readContext:Qt,use:Hf,useCallback:LE,useContext:Qt,useEffect:Mv,useImperativeHandle:$E,useInsertionEffect:PE,useLayoutEffect:DE,useMemo:IE,useReducer:Tv,useRef:ME,useState:function(){return Tv(ma)},useDebugValue:Nv,useDeferredValue:function(a,o){var u=At();return rt===null?Rv(u,a,o):zE(u,rt.memoizedState,a,o)},useTransition:function(){var a=Tv(ma)[0],o=At().memoizedState;return[typeof a=="boolean"?a:ou(a),o]},useSyncExternalStore:pE,useId:HE,useHostTransitionStatus:Dv,useFormState:CE,useActionState:CE,useOptimistic:function(a,o){var u=At();return rt!==null?xE(u,rt,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Ev,useCacheRefresh:FE};KE.useEffectEvent=RE;function Lv(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 Iv={enqueueSetState:function(a,o,u){a=a._reactInternals;var h=zn(),v=ei(h);v.payload=o,u!=null&&(v.callback=u),o=ti(a,v,h),o!==null&&(An(o,a,h),nu(o,a,h))},enqueueReplaceState:function(a,o,u){a=a._reactInternals;var h=zn(),v=ei(h);v.tag=1,v.payload=o,u!=null&&(v.callback=u),o=ti(a,v,h),o!==null&&(An(o,a,h),nu(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var u=zn(),h=ei(u);h.tag=2,o!=null&&(h.callback=o),o=ti(a,h,u),o!==null&&(An(o,a,u),nu(o,a,u))}};function XE(a,o,u,h,v,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,C):o.prototype&&o.prototype.isPureReactComponent?!Ws(u,h)||!Ws(v,b):!0}function QE(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&&Iv.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 v in a)u[v]===void 0&&(u[v]=a[v])}return u}function ZE(a){Ef(a)}function JE(a){console.error(a)}function eA(a){Ef(a)}function Wf(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function tA(a,o,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function zv(a,o,u){return u=ei(u),u.tag=3,u.payload={element:null},u.callback=function(){Wf(a,o)},u}function nA(a){return a=ei(a),a.tag=3,a}function rA(a,o,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var b=h.value;a.payload=function(){return v(b)},a.callback=function(){tA(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){tA(o,u,h),typeof v!="function"&&(li===null?li=new Set([this]):li.add(this));var P=h.stack;this.componentDidCatch(h.value,{componentStack:P!==null?P:""})})}function gB(a,o,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&nl(o,u,v,!0),u=kn.current,u!==null){switch(u.tag){case 31:case 13:return tr===null?od():u.alternate===null&&Ot===0&&(Ot=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===kf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),cg(a,h,v)),!1;case 22:return u.flags|=65536,h===kf?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)),cg(a,h,v)),!1}throw Error(r(435,u.tag))}return cg(a,h,v),od(),!1}if(Be)return o=kn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,h!==av&&(a=Error(r(422),{cause:h}),Qs(Qn(a,u)))):(h!==av&&(o=Error(r(423),{cause:h}),Qs(Qn(o,u))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,h=Qn(h,u),v=zv(a.stateNode,h,v),mv(a,v),Ot!==4&&(Ot=2)),!1;var b=Error(r(520),{cause:h});if(b=Qn(b,u),vu===null?vu=[b]:vu.push(b),Ot!==4&&(Ot=2),o===null)return!0;h=Qn(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,a=v&-v,u.lanes|=a,a=zv(u.stateNode,h,a),mv(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,v&=-v,u.lanes|=v,v=nA(v),rA(v,a,u,h),mv(u,v),!1}u=u.return}while(u!==null);return!1}var Bv=Error(r(461)),Nt=!1;function Zt(a,o,u,h){o.child=a===null?lE(o,null,u,h):eo(o,a.child,u,h)}function aA(a,o,u,h,v){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=wv(a,o,u,C,b,v),P=Sv(),a!==null&&!Nt?(Ov(a,o,v),va(a,o,v)):(Be&&P&&nv(o),o.flags|=1,Zt(a,o,h,v),o.child)}function iA(a,o,u,h,v){if(a===null){var b=u.type;return typeof b=="function"&&!Jm(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,oA(a,o,b,h,v)):(a=Cf(u.type,null,h,o,o.mode,v),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!Wv(a,v)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:Ws,u(C,h)&&a.ref===o.ref)return va(a,o,v)}return o.flags|=1,a=ca(b,h),a.ref=o.ref,a.return=o,o.child=a}function oA(a,o,u,h,v){if(a!==null){var b=a.memoizedProps;if(Ws(b,h)&&a.ref===o.ref)if(Nt=!1,o.pendingProps=h=b,Wv(a,v))(a.flags&131072)!==0&&(Nt=!0);else return o.lanes=a.lanes,va(a,o,v)}return qv(a,o,u,h,v)}function lA(a,o,u,h){var v=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,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~b}else h=0,o.child=null;return sA(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Pf(o,b!==null?b.cachePool:null),b!==null?cE(o,b):gv(),fE(o);else return h=o.lanes=536870912,sA(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(Pf(o,b.cachePool),cE(o,b),ri(),o.memoizedState=null):(a!==null&&Pf(o,null),gv(),ri());return Zt(a,o,v,u),o.child}function uu(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function sA(a,o,u,h,v){var b=fv();return b=b===null?null:{parent:Ct._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&Pf(o,null),gv(),fE(o),a!==null&&nl(a,o,h,!0),o.childLanes=v,null}function Kf(a,o){return o=Qf({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function uA(a,o,u){return eo(o,a.child,null,u),a=Kf(o,o.pendingProps),a.flags|=2,$n(o),o.memoizedState=null,a}function yB(a,o,u){var h=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Be){if(h.mode==="hidden")return a=Kf(o,h),o.lanes=536870912,uu(null,a);if(bv(o),(a=dt)?(a=wT(a,er),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=V_(a),u.return=o,o.child=u,Xt=o,dt=null)):a=null,a===null)throw Qa(o);return o.lanes=536870912,null}return Kf(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(bv(o),v)if(o.flags&256)o.flags&=-257,o=uA(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||nl(a,o,u,!1),v=(u&a.childLanes)!==0,Nt||v){if(h=st,h!==null&&(C=bn(h,u),C!==0&&C!==b.retryLane))throw b.retryLane=C,Vi(a,C),An(h,a,C),Bv;od(),o=uA(a,o,u)}else a=b.treeContext,dt=nr(C.nextSibling),Xt=o,Be=!0,Xa=null,er=!1,a!==null&&K_(o,a),o=Kf(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 Xf(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 qv(a,o,u,h,v){return Xi(o),u=wv(a,o,u,h,void 0,v),h=Sv(),a!==null&&!Nt?(Ov(a,o,v),va(a,o,v)):(Be&&h&&nv(o),o.flags|=1,Zt(a,o,u,v),o.child)}function cA(a,o,u,h,v,b){return Xi(o),o.updateQueue=null,u=hE(o,h,u,v),dE(a),h=Sv(),a!==null&&!Nt?(Ov(a,o,b),va(a,o,b)):(Be&&h&&nv(o),o.flags|=1,Zt(a,o,u,b),o.child)}function fA(a,o,u,h,v){if(Xi(o),o.stateNode===null){var b=Zo,C=u.contextType;typeof C=="object"&&C!==null&&(b=Qt(C)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Iv,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},hv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?Qt(C):Zo,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(Lv(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&&Iv.enqueueReplaceState(b,b.state,null),au(o,h,b,v),ru(),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=Zo,typeof ie=="object"&&ie!==null&&(C=Qt(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)&&QE(o,b,h,C),Ja=!1;var te=o.memoizedState;b.state=te,au(o,h,b,v),ru(),ee=o.memoizedState,P||te!==ee||Ja?(typeof ce=="function"&&(Lv(o,u,ce,h),ee=o.memoizedState),(q=Ja||XE(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,pv(a,o),C=o.memoizedProps,ie=no(u,C),b.props=ie,ce=o.pendingProps,te=b.context,ee=u.contextType,q=Zo,typeof ee=="object"&&ee!==null&&(q=Qt(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)&&QE(o,b,h,q),Ja=!1,te=o.memoizedState,b.state=te,au(o,h,b,v),ru();var ne=o.memoizedState;C!==ce||te!==ne||Ja||a!==null&&a.dependencies!==null&&Nf(a.dependencies)?(typeof P=="function"&&(Lv(o,u,P,h),ne=o.memoizedState),(ie=Ja||XE(o,u,ie,h,te,ne,q)||a!==null&&a.dependencies!==null&&Nf(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,Xf(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,v),o.child=eo(o,null,u,v)):Zt(a,o,u,v),o.memoizedState=b.state,a=o.child):a=va(a,o,v),a}function dA(a,o,u,h){return Wi(),o.flags|=256,Zt(a,o,u,h),o.child}var Uv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Hv(a){return{baseLanes:a,cachePool:tE()}}function Fv(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=In),a}function hA(a,o,u){var h=o.pendingProps,v=!1,b=(o.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(Et.current&2)!==0),C&&(v=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,a===null){if(Be){if(v?ni(o):ri(),(a=dt)?(a=wT(a,er),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=V_(a),u.return=o,o.child=u,Xt=o,dt=null)):a=null,a===null)throw Qa(o);return Ag(a)?o.lanes=32:o.lanes=536870912,null}var P=h.children;return h=h.fallback,v?(ri(),v=o.mode,P=Qf({mode:"hidden",children:P},v),h=Yi(h,v,u,null),P.return=o,h.return=o,P.sibling=h,o.child=P,h=o.child,h.memoizedState=Hv(u),h.childLanes=Fv(a,C,u),o.memoizedState=Uv,uu(null,h)):(ni(o),Gv(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=Vv(a,o,u)):o.memoizedState!==null?(ri(),o.child=a.child,o.flags|=128,o=null):(ri(),P=h.fallback,v=o.mode,h=Qf({mode:"visible",children:h.children},v),P=Yi(P,v,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=Hv(u),h.childLanes=Fv(a,C,u),o.memoizedState=Uv,o=uu(null,h));else if(ni(o),Ag(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,Qs({value:h,source:null,stack:null}),o=Vv(a,o,u)}else if(Nt||nl(a,o,u,!1),C=(u&a.childLanes)!==0,Nt||C){if(C=st,C!==null&&(h=bn(C,u),h!==0&&h!==q.retryLane))throw q.retryLane=h,Vi(a,h),An(C,a,h),Bv;Eg(P)||od(),o=Vv(a,o,u)}else Eg(P)?(o.flags|=192,o.child=a.child,o=null):(a=q.treeContext,dt=nr(P.nextSibling),Xt=o,Be=!0,Xa=null,er=!1,a!==null&&K_(o,a),o=Gv(o,h.children),o.flags|=4096);return o}return v?(ri(),P=h.fallback,v=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,v,u,null),P.flags|=2),P.return=o,h.return=o,h.sibling=P,o.child=h,uu(null,h),h=o.child,P=a.child.memoizedState,P===null?P=Hv(u):(v=P.cachePool,v!==null?(q=Ct._currentValue,v=v.parent!==q?{parent:q,pool:q}:v):v=tE(),P={baseLanes:P.baseLanes|u,cachePool:v}),h.memoizedState=P,h.childLanes=Fv(a,C,u),o.memoizedState=Uv,uu(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 Gv(a,o){return o=Qf({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function Qf(a,o){return a=Dn(22,a,null,o),a.lanes=0,a}function Vv(a,o,u){return eo(o,a.child,null,u),a=Gv(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function pA(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),lv(a.return,o,u)}function Yv(a,o,u,h,v,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v,treeForkCount:b}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=v,C.treeForkCount=b)}function mA(a,o,u){var h=o.pendingProps,v=h.revealOrder,b=h.tail;h=h.children;var C=Et.current,P=(C&2)!==0;if(P?(C=C&1|2,o.flags|=128):C&=1,Z(Et,C),Zt(a,o,h,u),h=Be?Xs:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&pA(a,u,o);else if(a.tag===19)pA(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(v){case"forwards":for(u=o.child,v=null;u!==null;)a=u.alternate,a!==null&&zf(a)===null&&(v=u),u=u.sibling;u=v,u===null?(v=o.child,o.child=null):(v=u.sibling,u.sibling=null),Yv(o,!1,v,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=o.child,o.child=null;v!==null;){if(a=v.alternate,a!==null&&zf(a)===null){o.child=v;break}a=v.sibling,v.sibling=u,u=v,v=a}Yv(o,!0,u,null,b,h);break;case"together":Yv(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(nl(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 Wv(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Nf(a)))}function bB(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,bv(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?hA(a,o,u):(ni(o),a=va(a,o,u),a!==null?a.sibling:null);ni(o);break;case 19:var v=(a.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(nl(a,o,u,!1),h=(u&o.childLanes)!==0),v){if(h)return mA(a,o,u);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),Z(Et,Et.current),h)break;return null;case 22:return o.lanes=0,lA(a,o,u,o.pendingProps);case 24:Za(o,Ct,a.memoizedState.cache)}return va(a,o,u)}function vA(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Nt=!0;else{if(!Wv(a,u)&&(o.flags&128)===0)return Nt=!1,bB(a,o,u);Nt=(a.flags&131072)!==0}else Nt=!1,Be&&(o.flags&1048576)!==0&&W_(o,Xs,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")Jm(a)?(h=no(a,h),o.tag=1,o=fA(null,o,a,h,u)):(o.tag=0,o=qv(null,o,a,h,u));else{if(a!=null){var v=a.$$typeof;if(v===M){o.tag=11,o=aA(null,o,a,h,u);break e}else if(v===R){o.tag=14,o=iA(null,o,a,h,u);break e}}throw o=K(a)||a,Error(r(306,o,""))}}return o;case 0:return qv(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,v=no(h,o.pendingProps),fA(a,o,h,v,u);case 3:e:{if(pe(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;v=b.element,pv(a,o),au(o,h,null,u);var C=o.memoizedState;if(h=C.cache,Za(o,Ct,h),h!==b.cache&&sv(o,[Ct],u,!0),ru(),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=dA(a,o,h,u);break e}else if(h!==v){v=Qn(Error(r(424)),o),Qs(v),o=dA(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=nr(a.firstChild),Xt=o,Be=!0,Xa=null,er=!0,u=lE(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Wi(),h===v){o=va(a,o,u);break e}Zt(a,o,h,u)}o=o.child}return o;case 26:return Xf(a,o),a===null?(u=TT(o.type,null,o.pendingProps,null))?o.memoizedState=u:Be||(u=o.type,a=o.pendingProps,h=hd(ge.current).createElement(u),h[Kt]=o,h[xn]=a,Jt(h,u,a),Ft(h),o.stateNode=h):o.memoizedState=TT(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return me(o),a===null&&Be&&(h=o.stateNode=_T(o.type,o.pendingProps,ge.current),Xt=o,er=!0,v=dt,fi(o.type)?(Tg=v,dt=nr(h.firstChild)):dt=v),Zt(a,o,o.pendingProps.children,u),Xf(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Be&&((v=h=dt)&&(h=KB(h,o.type,o.pendingProps,er),h!==null?(o.stateNode=h,Xt=o,dt=nr(h.firstChild),er=!1,v=!0):v=!1),v||Qa(o)),me(o),v=o.type,b=o.pendingProps,C=a!==null?a.memoizedProps:null,h=b.children,Sg(v,b)?h=null:C!==null&&Sg(v,C)&&(o.flags|=32),o.memoizedState!==null&&(v=wv(a,o,cB,null,null,u),_u._currentValue=v),Xf(a,o),Zt(a,o,h,u),o.child;case 6:return a===null&&Be&&((a=u=dt)&&(u=XB(u,o.pendingProps,er),u!==null?(o.stateNode=u,Xt=o,dt=null,a=!0):a=!1),a||Qa(o)),null;case 13:return hA(a,o,u);case 4:return pe(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=eo(o,null,h,u):Zt(a,o,h,u),o.child;case 11:return aA(a,o,o.type,o.pendingProps,u);case 7:return Zt(a,o,o.pendingProps,u),o.child;case 8:return Zt(a,o,o.pendingProps.children,u),o.child;case 12:return Zt(a,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Za(o,o.type,h.value),Zt(a,o,h.children,u),o.child;case 9:return v=o.type._context,h=o.pendingProps.children,Xi(o),v=Qt(v),h=h(v),o.flags|=1,Zt(a,o,h,u),o.child;case 14:return iA(a,o,o.type,o.pendingProps,u);case 15:return oA(a,o,o.type,o.pendingProps,u);case 19:return mA(a,o,u);case 31:return yB(a,o,u);case 22:return lA(a,o,u,o.pendingProps);case 24:return Xi(o),h=Qt(Ct),a===null?(v=fv(),v===null&&(v=st,b=uv(),v.pooledCache=b,b.refCount++,b!==null&&(v.pooledCacheLanes|=u),v=b),o.memoizedState={parent:h,cache:v},hv(o),Za(o,Ct,v)):((a.lanes&u)!==0&&(pv(a,o),au(o,null,null,u),ru()),v=a.memoizedState,b=o.memoizedState,v.parent!==h?(v={parent:h,cache:h},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),Za(o,Ct,h)):(h=b.cache,Za(o,Ct,h),h!==v.cache&&sv(o,[Ct],u,!0))),Zt(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 Kv(a,o,u,h,v){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(v&335544128)===v)if(a.stateNode.complete)a.flags|=8192;else if(HA())a.flags|=8192;else throw Ji=kf,dv}else a.flags&=-16777217}function gA(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!RT(o))if(HA())a.flags|=8192;else throw Ji=kf,dv}function Zf(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?an():536870912,a.lanes|=o,pl|=o)}function cu(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 v=a.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=h,a.childLanes=u,o}function xB(a,o,u){var h=o.pendingProps;switch(rv(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)&&(tl(o)?ga(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,iv())),ht(o),null;case 26:var v=o.type,b=o.memoizedState;return a===null?(ga(o),b!==null?(ht(o),gA(o,b)):(ht(o),Kv(o,v,null,h,u))):b?b!==a.memoizedState?(ga(o),ht(o),gA(o,b)):(ht(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&ga(o),ht(o),Kv(o,v,a,h,u)),null;case 27:if(ye(o),u=ge.current,v=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,tl(o)?X_(o):(a=_T(v,h,u),o.stateNode=a,ga(o))}return ht(o),null;case 5:if(ye(o),v=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,tl(o))X_(o);else{var C=hd(ge.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",v);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(v,{is:h.is}):C.createElement(v)}}b[Kt]=o,b[xn]=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(Jt(b,v,h),v){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),Kv(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,tl(o)){if(a=o.stateNode,u=o.memoizedProps,h=null,v=Xt,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}a[Kt]=o,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||hT(a.nodeValue,u)),a||Qa(o,!0)}else a=hd(a).createTextNode(h),a[Kt]=o,o.stateNode=a}return ht(o),null;case 31:if(u=o.memoizedState,a===null||a.memoizedState!==null){if(h=tl(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[Kt]=o}else Wi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),a=!1}else u=iv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return o.flags&256?($n(o),o):($n(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(v=tl(o),h!==null&&h.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Kt]=o}else Wi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;ht(o),v=!1}else v=iv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?($n(o),o):($n(o),null)}return $n(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,a=a!==null&&a.memoizedState!==null,u&&(h=o.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==v&&(h.flags|=2048)),u!==a&&u&&(o.child.flags|=8192),Zf(o,o.updateQueue),ht(o),null);case 4:return ae(),a===null&&gg(o.stateNode.containerInfo),ht(o),null;case 10:return ha(o.type),ht(o),null;case 19:if(F(Et),h=o.memoizedState,h===null)return ht(o),null;if(v=(o.flags&128)!==0,b=h.rendering,b===null)if(v)cu(h,!1);else{if(Ot!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=zf(a),b!==null){for(o.flags|=128,cu(h,!1),a=b.updateQueue,o.updateQueue=a,Zf(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)G_(u,a),u=u.sibling;return Z(Et,Et.current&1|2),Be&&fa(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&Ut()>rd&&(o.flags|=128,v=!0,cu(h,!1),o.lanes=4194304)}else{if(!v)if(a=zf(b),a!==null){if(o.flags|=128,v=!0,a=a.updateQueue,o.updateQueue=a,Zf(o,a),cu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Be)return ht(o),null}else 2*Ut()-h.renderingStartTime>rd&&u!==536870912&&(o.flags|=128,v=!0,cu(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=Ut(),a.sibling=null,u=Et.current,Z(Et,v?u&1|2:u&1),Be&&fa(o,h.treeForkCount),a):(ht(o),null);case 22:case 23:return $n(o),yv(),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&&Zf(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 wB(a,o){switch(rv(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($n(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($n(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(Et),null;case 4:return ae(),null;case 10:return ha(o.type),null;case 22:case 23:return $n(o),yv(),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 yA(a,o){switch(rv(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&&$n(o);break;case 13:$n(o);break;case 19:F(Et);break;case 10:ha(o.type);break;case 22:case 23:$n(o),yv(),a!==null&&F(Qi);break;case 24:ha(Ct)}}function fu(a,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;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!==v)}}catch(P){et(o,o.return,P)}}function ai(a,o,u){try{var h=o.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var b=v.next;h=b;do{if((h.tag&a)===a){var C=h.inst,P=C.destroy;if(P!==void 0){C.destroy=void 0,v=o;var q=u,ee=P;try{ee()}catch(ie){et(v,q,ie)}}}h=h.next}while(h!==b)}}catch(ie){et(o,o.return,ie)}}function bA(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{uE(o,u)}catch(h){et(a,a.return,h)}}}function xA(a,o,u){u.props=no(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){et(a,o,h)}}function du(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(v){et(a,o,v)}}function Fr(a,o){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){et(a,o,v)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){et(a,o,v)}else u.current=null}function wA(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(v){et(a,a.return,v)}}function Xv(a,o,u){try{var h=a.stateNode;HB(h,a.type,u,o),h[xn]=o}catch(v){et(a,a.return,v)}}function SA(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&fi(a.type)||a.tag===4}function Qv(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||SA(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 Zv(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(Zv(a,o,u),a=a.sibling;a!==null;)Zv(a,o,u),a=a.sibling}function Jf(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(Jf(a,o,u),a=a.sibling;a!==null;)Jf(a,o,u),a=a.sibling}function OA(a){var o=a.stateNode,u=a.memoizedProps;try{for(var h=a.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);Jt(o,h,u),o[Kt]=a,o[xn]=u}catch(b){et(a,a.return,b)}}var ya=!1,Rt=!1,Jv=!1,_A=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function SB(a,o){if(a=a.containerInfo,xg=xd,a=$_(a),Vm(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 v=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||v!==0&&ce.nodeType!==3||(P=C+v),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===v&&(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(wg={focusedElem:a,selectionRange:u},xd=!1,Gt=o;Gt!==null;)if(o=Gt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Gt=a;else for(;Gt!==null;){switch(o=Gt,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++)v=a[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=o,v=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var we=no(u.type,v);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)_g(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":_g(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,Gt=a;break}Gt=o.return}}function EA(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:xa(a,u),h&4&&fu(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 v=no(u.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(v,o,a.__reactInternalSnapshotBeforeUpdate)}catch(C){et(u,u.return,C)}}h&64&&bA(u),h&512&&du(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{uE(a,o)}catch(C){et(u,u.return,C)}}break;case 27:o===null&&h&4&&OA(u);case 26:case 5:xa(a,u),o===null&&h&4&&wA(u),h&512&&du(u,u.return);break;case 12:xa(a,u);break;case 31:xa(a,u),h&4&&jA(a,u);break;case 13:xa(a,u),h&4&&CA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=NB.bind(null,u),QB(a,u))));break;case 22:if(h=u.memoizedState!==null||ya,!h){o=o!==null&&o.memoizedState!==null||Rt,v=ya;var b=Rt;ya=h,(Rt=o)&&!b?wa(a,u,(u.subtreeFlags&8772)!==0):xa(a,u),ya=v,Rt=b}break;case 30:break;default:xa(a,u)}}function AA(a){var o=a.alternate;o!==null&&(a.alternate=null,AA(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Cm(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,Sn=!1;function ba(a,o,u){for(u=u.child;u!==null;)TA(a,o,u),u=u.sibling}function TA(a,o,u){if(cn&&typeof cn.onCommitFiberUnmount=="function")try{cn.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,v=Sn;fi(u.type)&&(gt=u.stateNode,Sn=!1),ba(a,o,u),wu(u.stateNode),gt=h,Sn=v;break;case 5:Rt||Fr(u,o);case 6:if(h=gt,v=Sn,gt=null,ba(a,o,u),gt=h,Sn=v,gt!==null)if(Sn)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&&(Sn?(a=gt,bT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Sl(a)):bT(gt,u.stateNode));break;case 4:h=gt,v=Sn,gt=u.stateNode.containerInfo,Sn=!0,ba(a,o,u),gt=h,Sn=v;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"&&xA(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 jA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Sl(a)}catch(u){et(o,o.return,u)}}}function CA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Sl(a)}catch(u){et(o,o.return,u)}}function OB(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new _A),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new _A),o;default:throw Error(r(435,a.tag))}}function ed(a,o){var u=OB(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var v=RB.bind(null,a,h);h.then(v,v)}})}function On(a,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],b=a,C=o,P=C;e:for(;P!==null;){switch(P.tag){case 27:if(fi(P.type)){gt=P.stateNode,Sn=!1;break e}break;case 5:gt=P.stateNode,Sn=!1;break e;case 3:case 4:gt=P.stateNode.containerInfo,Sn=!0;break e}P=P.return}if(gt===null)throw Error(r(160));TA(b,C,v),gt=null,Sn=!1,b=v.alternate,b!==null&&(b.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)MA(o,a),o=o.sibling}var br=null;function MA(a,o){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:On(o,a),_n(a),h&4&&(ai(3,a,a.return),fu(3,a),ai(5,a,a.return));break;case 1:On(o,a),_n(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 v=br;if(On(o,a),_n(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,v=v.ownerDocument||v;t:switch(h){case"title":b=v.getElementsByTagName("title")[0],(!b||b[zs]||b[Kt]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=v.createElement(h),v.head.insertBefore(b,v.querySelector("head > title"))),Jt(b,h,u),b[Kt]=a,Ft(b),h=b;break e;case"link":var C=MT("link","href",v).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=v.createElement(h),Jt(b,h,u),v.head.appendChild(b);break;case"meta":if(C=MT("meta","content",v).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=v.createElement(h),Jt(b,h,u),v.head.appendChild(b);break;default:throw Error(r(468,h))}b[Kt]=a,Ft(b),h=b}a.stateNode=h}else NT(v,a.type,a.stateNode);else a.stateNode=CT(v,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?NT(v,a.type,a.stateNode):CT(v,h,a.memoizedProps)):h===null&&a.stateNode!==null&&Xv(a,a.memoizedProps,u.memoizedProps)}break;case 27:On(o,a),_n(a),h&512&&(Rt||u===null||Fr(u,u.return)),u!==null&&h&4&&Xv(a,a.memoizedProps,u.memoizedProps);break;case 5:if(On(o,a),_n(a),h&512&&(Rt||u===null||Fr(u,u.return)),a.flags&32){v=a.stateNode;try{Go(v,"")}catch(we){et(a,a.return,we)}}h&4&&a.stateNode!=null&&(v=a.memoizedProps,Xv(a,v,u!==null?u.memoizedProps:v)),h&1024&&(Jv=!0);break;case 6:if(On(o,a),_n(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(vd=null,v=br,br=pd(o.containerInfo),On(o,a),br=v,_n(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Sl(o.containerInfo)}catch(we){et(a,a.return,we)}Jv&&(Jv=!1,NA(a));break;case 4:h=br,br=pd(a.stateNode.containerInfo),On(o,a),_n(a),br=h;break;case 12:On(o,a),_n(a);break;case 31:On(o,a),_n(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ed(a,h)));break;case 13:On(o,a),_n(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(nd=Ut()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ed(a,h)));break;case 22:v=a.memoizedState!==null;var q=u!==null&&u.memoizedState!==null,ee=ya,ie=Rt;if(ya=ee||v,Rt=ie||q,On(o,a),Rt=ie,ya=ee,_n(a),h&8192)e:for(o=a.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(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,v)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=v?"":q.memoizedProps}catch(we){et(q,q.return,we)}}}else if(o.tag===18){if(u===null){q=o;try{var ne=q.stateNode;v?xT(ne,!0):xT(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,ed(a,u))));break;case 19:On(o,a),_n(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,ed(a,h)));break;case 30:break;case 21:break;default:On(o,a),_n(a)}}function _n(a){var o=a.flags;if(o&2){try{for(var u,h=a.return;h!==null;){if(SA(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,b=Qv(a);Jf(a,b,v);break;case 5:var C=u.stateNode;u.flags&32&&(Go(C,""),u.flags&=-33);var P=Qv(a);Jf(a,P,C);break;case 3:case 4:var q=u.stateNode.containerInfo,ee=Qv(a);Zv(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 NA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;NA(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;)EA(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"&&xA(o,o.return,u),ro(o);break;case 27:wu(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,v=a,b=o,C=b.flags;switch(b.tag){case 0:case 11:case 15:wa(v,b,u),fu(4,b);break;case 1:if(wa(v,b,u),h=b,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(ee){et(h,h.return,ee)}if(h=b,v=h.updateQueue,v!==null){var P=h.stateNode;try{var q=v.shared.hiddenCallbacks;if(q!==null)for(v.shared.hiddenCallbacks=null,v=0;v<q.length;v++)sE(q[v],P)}catch(ee){et(h,h.return,ee)}}u&&C&64&&bA(b),du(b,b.return);break;case 27:OA(b);case 26:case 5:wa(v,b,u),u&&h===null&&C&4&&wA(b),du(b,b.return);break;case 12:wa(v,b,u);break;case 31:wa(v,b,u),u&&C&4&&jA(v,b);break;case 13:wa(v,b,u),u&&C&4&&CA(v,b);break;case 22:b.memoizedState===null&&wa(v,b,u),du(b,b.return);break;case 30:break;default:wa(v,b,u)}o=o.sibling}}function eg(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&&Zs(u))}function tg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Zs(a))}function xr(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)RA(a,o,u,h),o=o.sibling}function RA(a,o,u,h){var v=o.flags;switch(o.tag){case 0:case 11:case 15:xr(a,o,u,h),v&2048&&fu(9,o);break;case 1:xr(a,o,u,h);break;case 3:xr(a,o,u,h),v&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&Zs(a)));break;case 12:if(v&2048){xr(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 xr(a,o,u,h);break;case 31:xr(a,o,u,h);break;case 13:xr(a,o,u,h);break;case 23:break;case 22:b=o.stateNode,C=o.alternate,o.memoizedState!==null?b._visibility&2?xr(a,o,u,h):hu(a,o):b._visibility&2?xr(a,o,u,h):(b._visibility|=2,fl(a,o,u,h,(o.subtreeFlags&10256)!==0||!1)),v&2048&&eg(C,o);break;case 24:xr(a,o,u,h),v&2048&&tg(o.alternate,o);break;default:xr(a,o,u,h)}}function fl(a,o,u,h,v){for(v=v&&((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:fl(b,C,P,q,v),fu(8,C);break;case 23:break;case 22:var ie=C.stateNode;C.memoizedState!==null?ie._visibility&2?fl(b,C,P,q,v):hu(b,C):(ie._visibility|=2,fl(b,C,P,q,v)),v&&ee&2048&&eg(C.alternate,C);break;case 24:fl(b,C,P,q,v),v&&ee&2048&&tg(C.alternate,C);break;default:fl(b,C,P,q,v)}o=o.sibling}}function hu(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=a,h=o,v=h.flags;switch(h.tag){case 22:hu(u,h),v&2048&&eg(h.alternate,h);break;case 24:hu(u,h),v&2048&&tg(h.alternate,h);break;default:hu(u,h)}o=o.sibling}}var pu=8192;function dl(a,o,u){if(a.subtreeFlags&pu)for(a=a.child;a!==null;)PA(a,o,u),a=a.sibling}function PA(a,o,u){switch(a.tag){case 26:dl(a,o,u),a.flags&pu&&a.memoizedState!==null&&uq(u,br,a.memoizedState,a.memoizedProps);break;case 5:dl(a,o,u);break;case 3:case 4:var h=br;br=pd(a.stateNode.containerInfo),dl(a,o,u),br=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=pu,pu=16777216,dl(a,o,u),pu=h):dl(a,o,u));break;default:dl(a,o,u)}}function DA(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 mu(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];Gt=h,$A(h,a)}DA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)kA(a),a=a.sibling}function kA(a){switch(a.tag){case 0:case 11:case 15:mu(a),a.flags&2048&&ai(9,a,a.return);break;case 3:mu(a);break;case 12:mu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,td(a)):mu(a);break;default:mu(a)}}function td(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];Gt=h,$A(h,a)}DA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:ai(8,o,o.return),td(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,td(o));break;default:td(o)}a=a.sibling}}function $A(a,o){for(;Gt!==null;){var u=Gt;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:Zs(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Gt=h;else e:for(u=a;Gt!==null;){h=Gt;var v=h.sibling,b=h.return;if(AA(h),h===u){Gt=null;break e}if(v!==null){v.return=b,Gt=v;break e}Gt=b}}}var _B={getCacheForType:function(a){var o=Qt(Ct),u=o.data.get(a);return u===void 0&&(u=a(),o.data.set(a,u)),u},cacheSignal:function(){return Qt(Ct).controller.signal}},EB=typeof WeakMap=="function"?WeakMap:Map,Ke=0,st=null,ke=null,Ie=0,Je=0,Ln=null,ii=!1,hl=!1,ng=!1,Sa=0,Ot=0,oi=0,ao=0,rg=0,In=0,pl=0,vu=null,En=null,ag=!1,nd=0,LA=0,rd=1/0,ad=null,li=null,Lt=0,si=null,ml=null,Oa=0,ig=0,og=null,IA=null,gu=0,lg=null;function zn(){return(Ke&2)!==0&&Ie!==0?Ie&-Ie:D.T!==null?hg():Tm()}function zA(){if(In===0)if((Ie&536870912)===0||Be){var a=Lo;Lo<<=1,(Lo&3932160)===0&&(Lo=262144),In=a}else In=536870912;return a=kn.current,a!==null&&(a.flags|=32),In}function An(a,o,u){(a===st&&(Je===2||Je===9)||a.cancelPendingCommit!==null)&&(vl(a,0),ui(a,Ie,In,!1)),wt(a,u),((Ke&2)===0||a!==st)&&(a===st&&((Ke&2)===0&&(ao|=u),Ot===4&&ui(a,Ie,In,!1)),Gr(a))}function BA(a,o,u){if((Ke&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||vt(a,o),v=h?jB(a,o):ug(a,o,!0),b=h;do{if(v===0){hl&&!h&&ui(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!AB(u)){v=ug(a,o,!1),b=!1;continue}if(v===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;v=vu;var q=P.current.memoizedState.isDehydrated;if(q&&(vl(P,C).flags|=256),C=ug(P,C,!1),C!==2){if(ng&&!q){P.errorRecoveryDisabledLanes|=b,ao|=b,v=4;break e}b=En,En=v,b!==null&&(En===null?En=b:En.push.apply(En,b))}v=C}if(b=!1,v!==2)continue}}if(v===1){vl(a,0),ui(a,o,0,!0);break}e:{switch(h=a,b=v,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ui(h,o,In,!ii);break e;case 2:En=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=nd+300-Ut(),10<v)){if(ui(h,o,In,!ii),Te(h,0,!0)!==0)break e;Oa=o,h.timeoutHandle=gT(qA.bind(null,h,u,En,ad,ag,o,In,ao,pl,ii,b,"Throttled",-0,0),v);break e}qA(h,u,En,ad,ag,o,In,ao,pl,ii,b,null,-0,0)}}break}while(!0);Gr(a)}function qA(a,o,u,h,v,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},PA(o,b,ce);var we=(b&62914560)===b?nd-Ut():(b&4194048)===b?LA-Ut():0;if(we=cq(ce,we),we!==null){Oa=b,a.cancelPendingCommit=we(KA.bind(null,a,o,b,u,h,v,C,P,q,ie,ce,null,te,ne)),ui(a,b,C,!ee);return}}KA(a,o,b,u,h,v,C,P,q)}function AB(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 v=u[h],b=v.getSnapshot;v=v.value;try{if(!Pn(b(),v))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&=~rg,o&=~ao,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var v=o;0<v;){var b=31-rn(v),C=1<<b;h[b]=-1,v&=~C}u!==0&&qi(a,u,o)}function id(){return(Ke&6)===0?(yu(0),!1):!0}function sg(){if(ke!==null){if(Je===0)var a=ke.return;else a=ke,da=Ki=null,_v(a),ol=null,eu=0,a=ke;for(;a!==null;)yA(a.alternate,a),a=a.return;ke=null}}function vl(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,VB(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Oa=0,sg(),st=a,ke=u=ca(a.current,null),Ie=o,Je=0,Ln=null,ii=!1,hl=vt(a,o),ng=!1,pl=In=rg=ao=oi=Ot=0,En=vu=null,ag=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var v=31-rn(h),b=1<<v;o|=a[v],h&=~b}return Sa=o,Af(),u}function UA(a,o){Ce=null,D.H=su,o===il||o===Df?(o=aE(),Je=3):o===dv?(o=aE(),Je=4):Je=o===Bv?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Ln=o,ke===null&&(Ot=1,Wf(a,Qn(o,a.current)))}function HA(){var a=kn.current;return a===null?!0:(Ie&4194048)===Ie?tr===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?a===tr:!1}function FA(){var a=D.H;return D.H=su,a===null?su:a}function GA(){var a=D.A;return D.A=_B,a}function od(){Ot=4,ii||(Ie&4194048)!==Ie&&kn.current!==null||(hl=!0),(oi&134217727)===0&&(ao&134217727)===0||st===null||ui(st,Ie,In,!1)}function ug(a,o,u){var h=Ke;Ke|=2;var v=FA(),b=GA();(st!==a||Ie!==o)&&(ad=null,vl(a,o)),o=!1;var C=Ot;e:do try{if(Je!==0&&ke!==null){var P=ke,q=Ln;switch(Je){case 8:sg(),C=6;break e;case 3:case 2:case 9:case 6:kn.current===null&&(o=!0);var ee=Je;if(Je=0,Ln=null,gl(a,P,q,ee),u&&hl){C=0;break e}break;default:ee=Je,Je=0,Ln=null,gl(a,P,q,ee)}}TB(),C=Ot;break}catch(ie){UA(a,ie)}while(!0);return o&&a.shellSuspendCounter++,da=Ki=null,Ke=h,D.H=v,D.A=b,ke===null&&(st=null,Ie=0,Af()),C}function TB(){for(;ke!==null;)VA(ke)}function jB(a,o){var u=Ke;Ke|=2;var h=FA(),v=GA();st!==a||Ie!==o?(ad=null,rd=Ut()+500,vl(a,o)):hl=vt(a,o);e:do try{if(Je!==0&&ke!==null){o=ke;var b=Ln;t:switch(Je){case 1:Je=0,Ln=null,gl(a,o,b,1);break;case 2:case 9:if(nE(b)){Je=0,Ln=null,YA(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:nE(b)?(Je=0,Ln=null,YA(o)):(Je=0,Ln=null,gl(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?RT(C):P.stateNode.complete){Je=0,Ln=null;var q=P.sibling;if(q!==null)ke=q;else{var ee=P.return;ee!==null?(ke=ee,ld(ee)):ke=null}break t}}Je=0,Ln=null,gl(a,o,b,5);break;case 6:Je=0,Ln=null,gl(a,o,b,6);break;case 8:sg(),Ot=6;break e;default:throw Error(r(462))}}CB();break}catch(ie){UA(a,ie)}while(!0);return da=Ki=null,D.H=h,D.A=v,Ke=u,ke!==null?0:(st=null,Ie=0,Af(),Ot)}function CB(){for(;ke!==null&&!xt();)VA(ke)}function VA(a){var o=vA(a.alternate,a,Sa);a.memoizedProps=a.pendingProps,o===null?ld(a):ke=o}function YA(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=cA(u,o,o.pendingProps,o.type,void 0,Ie);break;case 11:o=cA(u,o,o.pendingProps,o.type.render,o.ref,Ie);break;case 5:_v(o);default:yA(u,o),o=ke=G_(o,Sa),o=vA(u,o,Sa)}a.memoizedProps=a.pendingProps,o===null?ld(a):ke=o}function gl(a,o,u,h){da=Ki=null,_v(o),ol=null,eu=0;var v=o.return;try{if(gB(a,v,o,u,Ie)){Ot=1,Wf(a,Qn(u,a.current)),ke=null;return}}catch(b){if(v!==null)throw ke=v,b;Ot=1,Wf(a,Qn(u,a.current)),ke=null;return}o.flags&32768?(Be||h===1?a=!0:hl||(Ie&536870912)!==0?a=!1:(ii=a=!0,(h===2||h===9||h===3||h===6)&&(h=kn.current,h!==null&&h.tag===13&&(h.flags|=16384))),WA(o,a)):ld(o)}function ld(a){var o=a;do{if((o.flags&32768)!==0){WA(o,ii);return}a=o.return;var u=xB(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 WA(a,o){do{var u=wB(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 KA(a,o,u,h,v,b,C,P,q){a.cancelPendingCommit=null;do sd();while(Lt!==0);if((Ke&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=Qm,gn(a,u,b,C,P,q),a===st&&(ke=st=null,Ie=0),ml=o,si=a,Oa=u,ig=b,og=v,IA=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,PB(Ii,function(){return eT(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=D.T,D.T=null,v=U.p,U.p=2,C=Ke,Ke|=4;try{SB(a,o,u)}finally{Ke=C,U.p=v,D.T=h}}Lt=1,XA(),QA(),ZA()}}function XA(){if(Lt===1){Lt=0;var a=si,o=ml,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 v=Ke;Ke|=4;try{MA(o,a);var b=wg,C=$_(a.containerInfo),P=b.focusedElem,q=b.selectionRange;if(C!==P&&P&&P.ownerDocument&&k_(P.ownerDocument.documentElement,P)){if(q!==null&&Vm(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=D_(P,Ee),H=D_(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}}xd=!!xg,wg=xg=null}finally{Ke=v,U.p=h,D.T=u}}a.current=o,Lt=2}}function QA(){if(Lt===2){Lt=0;var a=si,o=ml,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 v=Ke;Ke|=4;try{EA(a,o.alternate,o)}finally{Ke=v,U.p=h,D.T=u}}Lt=3}}function ZA(){if(Lt===4||Lt===3){Lt=0,Yn();var a=si,o=ml,u=Oa,h=IA;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Lt=5:(Lt=0,ml=si=null,JA(a,a.pendingLanes));var v=a.pendingLanes;if(v===0&&(li=null),gr(u),o=o.stateNode,cn&&typeof cn.onCommitFiberRoot=="function")try{cn.onCommitFiberRoot(zi,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=D.T,v=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=v}}(Oa&3)!==0&&sd(),Gr(a),v=a.pendingLanes,(u&261930)!==0&&(v&42)!==0?a===lg?gu++:(gu=0,lg=a):gu=0,yu(0)}}function JA(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,Zs(o)))}function sd(){return XA(),QA(),ZA(),eT()}function eT(){if(Lt!==5)return!1;var a=si,o=ig;ig=0;var u=gr(Oa),h=D.T,v=U.p;try{U.p=32>u?32:u,D.T=null,u=og,og=null;var b=si,C=Oa;if(Lt=0,ml=si=null,Oa=0,(Ke&6)!==0)throw Error(r(331));var P=Ke;if(Ke|=4,kA(b.current),RA(b,b.current,C,u),Ke=P,yu(0,!1),cn&&typeof cn.onPostCommitFiberRoot=="function")try{cn.onPostCommitFiberRoot(zi,b)}catch{}return!0}finally{U.p=v,D.T=h,JA(a,o)}}function tT(a,o,u){o=Qn(u,o),o=zv(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)tT(a,a,u);else for(;o!==null;){if(o.tag===3){tT(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=Qn(u,a),u=nA(2),h=ti(o,u,2),h!==null&&(rA(u,h,o,a),wt(h,2),Gr(h));break}}o=o.return}}function cg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new EB;var v=new Set;h.set(o,v)}else v=h.get(o),v===void 0&&(v=new Set,h.set(o,v));v.has(u)||(ng=!0,v.add(u),a=MB.bind(null,a,o,u),o.then(a,a))}function MB(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>Ut()-nd?(Ke&2)===0&&vl(a,0):rg|=u,pl===Ie&&(pl=0)),Gr(a)}function nT(a,o){o===0&&(o=an()),a=Vi(a,o),a!==null&&(wt(a,o),Gr(a))}function NB(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),nT(a,u)}function RB(a,o){var u=0;switch(a.tag){case 31:case 13:var h=a.stateNode,v=a.memoizedState;v!==null&&(u=v.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),nT(a,u)}function PB(a,o){return zr(a,o)}var ud=null,yl=null,fg=!1,cd=!1,dg=!1,ci=0;function Gr(a){a!==yl&&a.next===null&&(yl===null?ud=yl=a:yl=yl.next=a),cd=!0,fg||(fg=!0,kB())}function yu(a,o){if(!dg&&cd){dg=!0;do for(var u=!1,h=ud;h!==null;){if(a!==0){var v=h.pendingLanes;if(v===0)var b=0;else{var C=h.suspendedLanes,P=h.pingedLanes;b=(1<<31-rn(42|a)+1)-1,b&=v&~(C&~P),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,oT(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,oT(h,b));h=h.next}while(u);dg=!1}}function DB(){rT()}function rT(){cd=fg=!1;var a=0;ci!==0&&GB()&&(a=ci);for(var o=Ut(),u=null,h=ud;h!==null;){var v=h.next,b=aT(h,o);b===0?(h.next=null,u===null?ud=v:u.next=v,v===null&&(yl=u)):(u=h,(a!==0||(b&3)!==0)&&(cd=!0)),h=v}Lt!==0&&Lt!==5||yu(a),ci!==0&&(ci=0)}function aT(a,o){for(var u=a.suspendedLanes,h=a.pingedLanes,v=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-rn(b),P=1<<C,q=v[C];q===-1?((P&u)===0||(P&h)!==0)&&(v[C]=Ht(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&&Rn(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&&Rn(h),gr(u)){case 2:case 8:u=hf;break;case 32:u=Ii;break;case 268435456:u=oa;break;default:u=Ii}return h=iT.bind(null,a),u=zr(u,h),a.callbackPriority=o,a.callbackNode=u,o}return h!==null&&h!==null&&Rn(h),a.callbackPriority=2,a.callbackNode=null,2}function iT(a,o){if(Lt!==0&&Lt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(sd()&&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:(BA(a,h,o),aT(a,Ut()),a.callbackNode!=null&&a.callbackNode===u?iT.bind(null,a):null)}function oT(a,o){if(sd())return null;BA(a,o,!0)}function kB(){YB(function(){(Ke&6)!==0?zr(Li,DB):rT()})}function hg(){if(ci===0){var a=rl;a===0&&(a=$o,$o<<=1,($o&261888)===0&&($o=256)),ci=a}return ci}function lT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:yf(""+a)}function sT(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 $B(a,o,u,h,v){if(o==="submit"&&u&&u.stateNode===v){var b=lT((v[xn]||null).action),C=h.submitter;C&&(o=(o=C[xn]||null)?lT(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var P=new Sf("action","action",null,h,v);a.push({event:P,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ci!==0){var q=C?sT(v,C):new FormData(v);Pv(u,{pending:!0,data:q,method:v.method,action:b},null,q)}}else typeof b=="function"&&(P.preventDefault(),q=C?sT(v,C):new FormData(v),Pv(u,{pending:!0,data:q,method:v.method,action:b},b,q))},currentTarget:v}]})}}for(var pg=0;pg<Xm.length;pg++){var mg=Xm[pg],LB=mg.toLowerCase(),IB=mg[0].toUpperCase()+mg.slice(1);yr(LB,"on"+IB)}yr(z_,"onAnimationEnd"),yr(B_,"onAnimationIteration"),yr(q_,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(eB,"onTransitionRun"),yr(tB,"onTransitionStart"),yr(nB,"onTransitionCancel"),yr(U_,"onTransitionEnd"),Ho("onMouseEnter",["mouseout","mouseover"]),Ho("onMouseLeave",["mouseout","mouseover"]),Ho("onPointerEnter",["pointerout","pointerover"]),Ho("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 bu="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(" "),zB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bu));function uT(a,o){o=(o&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],v=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&&v.isPropagationStopped())break e;b=P,v.currentTarget=ee;try{b(v)}catch(ie){Ef(ie)}v.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&&v.isPropagationStopped())break e;b=P,v.currentTarget=ee;try{b(v)}catch(ie){Ef(ie)}v.currentTarget=null,b=q}}}}function $e(a,o){var u=o[jm];u===void 0&&(u=o[jm]=new Set);var h=a+"__bubble";u.has(h)||(cT(o,a,2,!1),u.add(h))}function vg(a,o,u){var h=0;o&&(h|=4),cT(u,a,h,o)}var fd="_reactListening"+Math.random().toString(36).slice(2);function gg(a){if(!a[fd]){a[fd]=!0,r_.forEach(function(u){u!=="selectionchange"&&(zB.has(u)||vg(u,!1,a),vg(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[fd]||(o[fd]=!0,vg("selectionchange",!1,o))}}function cT(a,o,u,h){switch(zT(o)){case 2:var v=hq;break;case 8:v=pq;break;default:v=Rg}u=v.bind(null,o,u,a),v=void 0,!Lm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),h?v!==void 0?a.addEventListener(o,u,{capture:!0,passive:v}):a.addEventListener(o,u,!0):v!==void 0?a.addEventListener(o,u,{passive:v}):a.addEventListener(o,u,!1)}function yg(a,o,u,h,v){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===v)break;if(C===4)for(C=h.return;C!==null;){var q=C.tag;if((q===3||q===4)&&C.stateNode.containerInfo===v)return;C=C.return}for(;P!==null;){if(C=Bo(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}m_(function(){var ee=b,ie=km(u),ce=[];e:{var te=H_.get(a);if(te!==void 0){var ne=Sf,we=a;switch(a){case"keypress":if(xf(u)===0)break e;case"keydown":case"keyup":ne=Rz;break;case"focusin":we="focus",ne=qm;break;case"focusout":we="blur",ne=qm;break;case"beforeblur":case"afterblur":ne=qm;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=y_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=xz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=kz;break;case z_:case B_:case q_:ne=Oz;break;case U_:ne=Lz;break;case"scroll":case"scrollend":ne=yz;break;case"wheel":ne=zz;break;case"copy":case"cut":case"paste":ne=Ez;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=x_;break;case"toggle":case"beforetoggle":ne=qz}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=qs(H,Q),ue!=null&&Ee.push(xu(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!==Dm&&(we=u.relatedTarget||u.fromElement)&&(Bo(we)||we[zo]))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?Bo(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=y_,ue="onMouseLeave",Q="onMouseEnter",H="mouse",(a==="pointerout"||a==="pointerover")&&(Ee=x_,ue="onPointerLeave",Q="onPointerEnter",H="pointer"),it=ne==null?te:Bs(ne),J=we==null?te:Bs(we),te=new Ee(ue,H+"leave",ne,u,ie),te.target=it,te.relatedTarget=J,ue=null,Bo(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=BB,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&&fT(ce,te,ne,Ee,!1),we!==null&&it!==null&&fT(ce,it,we,Ee,!0)}}e:{if(te=ee?Bs(ee):window,ne=te.nodeName&&te.nodeName.toLowerCase(),ne==="select"||ne==="input"&&te.type==="file")var Fe=j_;else if(A_(te))if(C_)Fe=Qz;else{Fe=Kz;var Se=Wz}else ne=te.nodeName,!ne||ne.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Pm(ee.elementType)&&(Fe=j_):Fe=Xz;if(Fe&&(Fe=Fe(a,ee))){T_(ce,Fe,u,ie);break e}Se&&Se(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Rm(te,"number",te.value)}switch(Se=ee?Bs(ee):window,a){case"focusin":(A_(Se)||Se.contentEditable==="true")&&(Ko=Se,Ym=ee,Ks=null);break;case"focusout":Ks=Ym=Ko=null;break;case"mousedown":Wm=!0;break;case"contextmenu":case"mouseup":case"dragend":Wm=!1,L_(ce,u,ie);break;case"selectionchange":if(Jz)break;case"keydown":case"keyup":L_(ce,u,ie)}var Re;if(Hm)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 Wo?__(a,u)&&(ze="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(ze="onCompositionStart");ze&&(w_&&u.locale!=="ko"&&(Wo||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Wo&&(Re=v_()):(Wa=ie,Im="value"in Wa?Wa.value:Wa.textContent,Wo=!0)),Se=dd(ee,ze),0<Se.length&&(ze=new b_(ze,a,null,u,ie),ce.push({event:ze,listeners:Se}),Re?ze.data=Re:(Re=E_(u),Re!==null&&(ze.data=Re)))),(Re=Hz?Fz(a,u):Gz(a,u))&&(ze=dd(ee,"onBeforeInput"),0<ze.length&&(Se=new b_("onBeforeInput","beforeinput",null,u,ie),ce.push({event:Se,listeners:ze}),Se.data=Re)),$B(ce,a,ee,u,ie)}uT(ce,o)})}function xu(a,o,u){return{instance:a,listener:o,currentTarget:u}}function dd(a,o){for(var u=o+"Capture",h=[];a!==null;){var v=a,b=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||b===null||(v=qs(a,u),v!=null&&h.unshift(xu(a,v,b)),v=qs(a,o),v!=null&&h.push(xu(a,v,b))),a.tag===3)return h;a=a.return}return[]}function BB(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function fT(a,o,u,h,v){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,v?(ee=qs(u,b),ee!=null&&C.unshift(xu(u,ee,q))):v||(ee=qs(u,b),ee!=null&&C.push(xu(u,ee,q)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var qB=/\r\n?/g,UB=/\u0000|\uFFFD/g;function dT(a){return(typeof a=="string"?a:""+a).replace(qB,`
|
|
49
|
-
`).replace(UB,"")}function hT(a,o){return o=dT(o),dT(a)===o}function at(a,o,u,h,v,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Go(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Go(a,""+h);break;case"className":vf(a,"class",h);break;case"tabIndex":vf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":vf(a,u,h);break;case"style":h_(a,h,b);break;case"data":if(o!=="object"){vf(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=yf(""+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",v.name,v,null),at(a,o,"formEncType",v.formEncType,v,null),at(a,o,"formMethod",v.formMethod,v,null),at(a,o,"formTarget",v.formTarget,v,null)):(at(a,o,"encType",v.encType,v,null),at(a,o,"method",v.method,v,null),at(a,o,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=yf(""+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(v.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=yf(""+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),mf(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":mf(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=vz.get(u)||u,mf(a,u,h))}}function bg(a,o,u,h,v,b){switch(u){case"style":h_(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(v.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?Go(a,h):(typeof h=="number"||typeof h=="bigint")&&Go(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(!a_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),o=u.slice(2,v?u.length-7:void 0),b=a[xn]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(o,b,v),typeof h=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(o,h,v);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):mf(a,u,h)}}}function Jt(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,v=!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":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(a,o,b,C,u,null)}}v&&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=v=null,q=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var ie=u[h];if(ie!=null)switch(h){case"name":v=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)}}u_(a,b,P,q,ee,C,v,!1);return;case"select":$e("invalid",a),h=C=b=null;for(v in u)if(u.hasOwnProperty(v)&&(P=u[v],P!=null))switch(v){case"value":b=P;break;case"defaultValue":C=P;break;case"multiple":h=P;default:at(a,o,v,P,u,null)}o=b,u=C,a.multiple=!!h,o!=null?Fo(a,!!h,o,!1):u!=null&&Fo(a,!!h,u,!0);return;case"textarea":$e("invalid",a),b=v=h=null;for(C in u)if(u.hasOwnProperty(C)&&(P=u[C],P!=null))switch(C){case"value":h=P;break;case"defaultValue":v=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)}f_(a,h,v,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<bu.length;h++)$e(bu[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(Pm(o)){for(ie in u)u.hasOwnProperty(ie)&&(h=u[ie],h!==void 0&&bg(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 HB(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 v=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":v=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)}}Nm(a,C,P,q,ee,ie,b,v);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(v in h)if(b=h[v],q=u[v],h.hasOwnProperty(v)&&(b!=null||q!=null))switch(v){case"value":te=b;break;case"defaultValue":P=b;break;case"multiple":C=b;default:b!==q&&at(a,o,v,b,h,q)}o=P,u=C,h=ne,te!=null?Fo(a,!!u,te,!1):!!h!=!!u&&(o!=null?Fo(a,!!u,o,!0):Fo(a,!!u,u?[]:"",!1));return;case"textarea":ne=te=null;for(P in u)if(v=u[P],u.hasOwnProperty(P)&&v!=null&&!h.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:at(a,o,P,null,h,v)}for(C in h)if(v=h[C],b=u[C],h.hasOwnProperty(C)&&(v!=null||b!=null))switch(C){case"value":te=v;break;case"defaultValue":ne=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==b&&at(a,o,C,v,h,b)}c_(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(Pm(o)){for(var it in u)te=u[it],u.hasOwnProperty(it)&&te!==void 0&&!h.hasOwnProperty(it)&&bg(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||bg(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 pT(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function FB(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var v=u[h],b=v.transferSize,C=v.initiatorType,P=v.duration;if(b&&P&&pT(C)){for(C=0,P=v.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&&pT(ce)&&(q=q.responseEnd,C+=ie*(q<P?1:(P-ee)/(q-ee)))}if(--h,o+=8*(b+C)/(v.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 xg=null,wg=null;function hd(a){return a.nodeType===9?a:a.ownerDocument}function mT(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 vT(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 Sg(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 Og=null;function GB(){var a=window.event;return a&&a.type==="popstate"?a===Og?!1:(Og=a,!0):(Og=null,!1)}var gT=typeof setTimeout=="function"?setTimeout:void 0,VB=typeof clearTimeout=="function"?clearTimeout:void 0,yT=typeof Promise=="function"?Promise:void 0,YB=typeof queueMicrotask=="function"?queueMicrotask:typeof yT<"u"?function(a){return yT.resolve(null).then(a).catch(WB)}:gT;function WB(a){setTimeout(function(){throw a})}function fi(a){return a==="head"}function bT(a,o){var u=o,h=0;do{var v=u.nextSibling;if(a.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(h===0){a.removeChild(v),Sl(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")wu(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,wu(u);for(var b=u.firstChild;b;){var C=b.nextSibling,P=b.nodeName;b[zs]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&wu(a.ownerDocument.body);u=v}while(u);Sl(o)}function xT(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 _g(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":_g(u),Cm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function KB(a,o,u,h){for(;a.nodeType===1;){var v=u;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[zs])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!==v.rel||a.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||a.getAttribute("title")!==(v.title==null?null:v.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(v.src==null?null:v.src)||a.getAttribute("type")!==(v.type==null?null:v.type)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=v.name==null?null:""+v.name;if(v.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=nr(a.nextSibling),a===null)break}return null}function XB(a,o,u){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=nr(a.nextSibling),a===null))return null;return a}function wT(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=nr(a.nextSibling),a===null))return null;return a}function Eg(a){return a.data==="$?"||a.data==="$~"}function Ag(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function QB(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 nr(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 Tg=null;function ST(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(o===0)return nr(a.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}a=a.nextSibling}return null}function OT(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 _T(a,o,u){switch(o=hd(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 wu(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Cm(a)}var rr=new Map,ET=new Set;function pd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var _a=U.d;U.d={f:ZB,r:JB,D:eq,C:tq,L:nq,m:rq,X:iq,S:aq,M:oq};function ZB(){var a=_a.f(),o=id();return a||o}function JB(a){var o=qo(a);o!==null&&o.tag===5&&o.type==="form"?UE(o):_a.r(a)}var bl=typeof document>"u"?null:document;function AT(a,o,u){var h=bl;if(h&&typeof o=="string"&&o){var v=Kn(o);v='link[rel="'+a+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),ET.has(v)||(ET.add(v),a={rel:a,crossOrigin:u,href:o},h.querySelector(v)===null&&(o=h.createElement("link"),Jt(o,"link",a),Ft(o),h.head.appendChild(o)))}}function eq(a){_a.D(a),AT("dns-prefetch",a,null)}function tq(a,o){_a.C(a,o),AT("preconnect",a,o)}function nq(a,o,u){_a.L(a,o,u);var h=bl;if(h&&a&&o){var v='link[rel="preload"][as="'+Kn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Kn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Kn(u.imageSizes)+'"]')):v+='[href="'+Kn(a)+'"]';var b=v;switch(o){case"style":b=xl(a);break;case"script":b=wl(a)}rr.has(b)||(a=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:a,as:o},u),rr.set(b,a),h.querySelector(v)!==null||o==="style"&&h.querySelector(Su(b))||o==="script"&&h.querySelector(Ou(b))||(o=h.createElement("link"),Jt(o,"link",a),Ft(o),h.head.appendChild(o)))}}function rq(a,o){_a.m(a,o);var u=bl;if(u&&a){var h=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+Kn(h)+'"][href="'+Kn(a)+'"]',b=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=wl(a)}if(!rr.has(b)&&(a=p({rel:"modulepreload",href:a},o),rr.set(b,a),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Ou(b)))return}h=u.createElement("link"),Jt(h,"link",a),Ft(h),u.head.appendChild(h)}}}function aq(a,o,u){_a.S(a,o,u);var h=bl;if(h&&a){var v=Uo(h).hoistableStyles,b=xl(a);o=o||"default";var C=v.get(b);if(!C){var P={loading:0,preload:null};if(C=h.querySelector(Su(b)))P.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},u),(u=rr.get(b))&&jg(a,u);var q=C=h.createElement("link");Ft(q),Jt(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,md(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:P},v.set(b,C)}}}function iq(a,o){_a.X(a,o);var u=bl;if(u&&a){var h=Uo(u).hoistableScripts,v=wl(a),b=h.get(v);b||(b=u.querySelector(Ou(v)),b||(a=p({src:a,async:!0},o),(o=rr.get(v))&&Cg(a,o),b=u.createElement("script"),Ft(b),Jt(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function oq(a,o){_a.M(a,o);var u=bl;if(u&&a){var h=Uo(u).hoistableScripts,v=wl(a),b=h.get(v);b||(b=u.querySelector(Ou(v)),b||(a=p({src:a,async:!0,type:"module"},o),(o=rr.get(v))&&Cg(a,o),b=u.createElement("script"),Ft(b),Jt(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(v,b))}}function TT(a,o,u,h){var v=(v=ge.current)?pd(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=xl(u.href),u=Uo(v).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=xl(u.href);var b=Uo(v).hoistableStyles,C=b.get(a);if(C||(v=v.ownerDocument||v,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=v.querySelector(Su(a)))&&!b._p&&(C.instance=b,C.state.loading=5),rr.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},rr.set(a,u),b||lq(v,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=wl(u),u=Uo(v).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 xl(a){return'href="'+Kn(a)+'"'}function Su(a){return'link[rel="stylesheet"]['+a+"]"}function jT(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function lq(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}),Jt(o,"link",u),Ft(o),a.head.appendChild(o))}function wl(a){return'[src="'+Kn(a)+'"]'}function Ou(a){return"script[async]"+a}function CT(a,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+Kn(u.href)+'"]');if(h)return o.instance=h,Ft(h),h;var v=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Ft(h),Jt(h,"style",v),md(h,u.precedence,a),o.instance=h;case"stylesheet":v=xl(u.href);var b=a.querySelector(Su(v));if(b)return o.state.loading|=4,o.instance=b,Ft(b),b;h=jT(u),(v=rr.get(v))&&jg(h,v),b=(a.ownerDocument||a).createElement("link"),Ft(b);var C=b;return C._p=new Promise(function(P,q){C.onload=P,C.onerror=q}),Jt(b,"link",h),o.state.loading|=4,md(b,u.precedence,a),o.instance=b;case"script":return b=wl(u.src),(v=a.querySelector(Ou(b)))?(o.instance=v,Ft(v),v):(h=u,(v=rr.get(b))&&(h=p({},u),Cg(h,v)),a=a.ownerDocument||a,v=a.createElement("script"),Ft(v),Jt(v,"link",h),a.head.appendChild(v),o.instance=v);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,md(h,u.precedence,a));return o.instance}function md(a,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,b=v,C=0;C<h.length;C++){var P=h[C];if(P.dataset.precedence===o)b=P;else if(b!==v)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(a,o.firstChild))}function jg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Cg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var vd=null;function MT(a,o,u){if(vd===null){var h=new Map,v=vd=new Map;v.set(u,h)}else v=vd,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),v=0;v<u.length;v++){var b=u[v];if(!(b[zs]||b[Kt]||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 NT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function sq(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 RT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function uq(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 v=xl(h.href),b=o.querySelector(Su(v));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=gd.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Ft(b);return}b=o.ownerDocument||o,h=jT(h),(v=rr.get(v))&&jg(h,v),b=b.createElement("link"),Ft(b);var C=b;C._p=new Promise(function(P,q){C.onload=P,C.onerror=q}),Jt(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=gd.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var Mg=0;function cq(a,o){return a.stylesheets&&a.count===0&&bd(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&bd(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&Mg===0&&(Mg=62500*FB());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&bd(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Mg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function gd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var yd=null;function bd(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,yd=new Map,o.forEach(fq,a),yd=null,gd.call(a))}function fq(a,o){if(!(o.state.loading&4)){var u=yd.get(a);if(u)var h=u.get(null);else{u=new Map,yd.set(a,u);for(var v=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<v.length;b++){var C=v[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}v=o.instance,C=v.getAttribute("data-precedence"),b=u.get(C)||h,b===h&&u.set(null,v),u.set(C,v),this.count++,h=gd.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),b?b.parentNode.insertBefore(v,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(v,a.firstChild)),o.state.loading|=4}}var _u={$$typeof:A,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function dq(a,o,u,h,v,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=v,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=q,this.incompleteTransitions=new Map}function PT(a,o,u,h,v,b,C,P,q,ee,ie,ce){return a=new dq(a,o,u,C,q,ee,ie,ce,P),o=1,b===!0&&(o|=24),b=Dn(3,null,null,o),a.current=b,b.stateNode=a,o=uv(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},hv(b),a}function DT(a){return a?(a=Zo,a):Zo}function kT(a,o,u,h,v,b){v=DT(v),h.context===null?h.context=v:h.pendingContext=v,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&&(An(u,a,o),nu(u,a,o))}function $T(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function Ng(a,o){$T(a,o),(a=a.alternate)&&$T(a,o)}function LT(a){if(a.tag===13||a.tag===31){var o=Vi(a,67108864);o!==null&&An(o,a,67108864),Ng(a,67108864)}}function IT(a){if(a.tag===13||a.tag===31){var o=zn();o=Io(o);var u=Vi(a,o);u!==null&&An(u,a,o),Ng(a,o)}}var xd=!0;function hq(a,o,u,h){var v=D.T;D.T=null;var b=U.p;try{U.p=2,Rg(a,o,u,h)}finally{U.p=b,D.T=v}}function pq(a,o,u,h){var v=D.T;D.T=null;var b=U.p;try{U.p=8,Rg(a,o,u,h)}finally{U.p=b,D.T=v}}function Rg(a,o,u,h){if(xd){var v=Pg(h);if(v===null)yg(a,o,h,wd,u),BT(a,h);else if(vq(v,a,o,u,h))h.stopPropagation();else if(BT(a,h),o&4&&-1<mq.indexOf(a)){for(;v!==null;){var b=qo(v);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-rn(C);P.entanglements[1]|=q,C&=~q}Gr(b),(Ke&6)===0&&(rd=Ut()+500,yu(0))}}break;case 31:case 13:P=Vi(b,2),P!==null&&An(P,b,2),id(),Ng(b,2)}if(b=Pg(h),b===null&&yg(a,o,h,wd,u),b===v)break;v=b}v!==null&&h.stopPropagation()}else yg(a,o,h,null,u)}}function Pg(a){return a=km(a),Dg(a)}var wd=null;function Dg(a){if(wd=null,a=Bo(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 wd=a,null}function zT(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(ko()){case Li:return 2;case hf:return 8;case Ii:case Ls:return 32;case oa:return 268435456;default:return 32}default:return 32}}var kg=!1,di=null,hi=null,pi=null,Eu=new Map,Au=new Map,mi=[],mq="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 BT(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":Eu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Au.delete(o.pointerId)}}function Tu(a,o,u,h,v,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[v]},o!==null&&(o=qo(o),o!==null&<(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),a)}function vq(a,o,u,h,v){switch(o){case"focusin":return di=Tu(di,a,o,u,h,v),!0;case"dragenter":return hi=Tu(hi,a,o,u,h,v),!0;case"mouseover":return pi=Tu(pi,a,o,u,h,v),!0;case"pointerover":var b=v.pointerId;return Eu.set(b,Tu(Eu.get(b)||null,a,o,u,h,v)),!0;case"gotpointercapture":return b=v.pointerId,Au.set(b,Tu(Au.get(b)||null,a,o,u,h,v)),!0}return!1}function qT(a){var o=Bo(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,t_(a.priority,function(){IT(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,t_(a.priority,function(){IT(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 Sd(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Pg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);Dm=h,u.target.dispatchEvent(h),Dm=null}else return o=qo(u),o!==null&<(o),a.blockedOn=u,!1;o.shift()}return!0}function UT(a,o,u){Sd(a)&&u.delete(o)}function gq(){kg=!1,di!==null&&Sd(di)&&(di=null),hi!==null&&Sd(hi)&&(hi=null),pi!==null&&Sd(pi)&&(pi=null),Eu.forEach(UT),Au.forEach(UT)}function Od(a,o){a.blockedOn===o&&(a.blockedOn=null,kg||(kg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,gq)))}var _d=null;function HT(a){_d!==a&&(_d=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){_d===a&&(_d=null);for(var o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],v=a[o+2];if(typeof h!="function"){if(Dg(h||u)===null)continue;break}var b=qo(u);b!==null&&(a.splice(o,3),o-=3,Pv(b,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function Sl(a){function o(q){return Od(q,a)}di!==null&&Od(di,a),hi!==null&&Od(hi,a),pi!==null&&Od(pi,a),Eu.forEach(o),Au.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);)qT(u),u.blockedOn===null&&mi.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],b=u[h+1],C=v[xn]||null;if(typeof b=="function")C||HT(u);else if(C){var P=null;if(b&&b.hasAttribute("formAction")){if(v=b,C=b[xn]||null)P=C.formAction;else if(Dg(v)!==null)continue}else P=C.action;typeof P=="function"?u[h+1]=P:(u.splice(h,3),h-=3),HT(u)}}}function FT(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return v=C})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=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,v=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),v!==null&&(v(),v=null)}}}function $g(a){this._internalRoot=a}Ed.prototype.render=$g.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=zn();kT(u,h,a,o,null,null)},Ed.prototype.unmount=$g.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;kT(a.current,2,null,a,null,null),id(),o[zo]=null}};function Ed(a){this._internalRoot=a}Ed.prototype.unstable_scheduleHydration=function(a){if(a){var o=Tm();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&&qT(a)}};var GT=t.version;if(GT!=="19.2.0")throw Error(r(527,GT,"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 yq={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ad=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ad.isDisabled&&Ad.supportsFiber)try{zi=Ad.inject(yq),cn=Ad}catch{}}return Cu.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",v=ZE,b=JE,C=eA;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=PT(a,1,!1,null,null,u,h,null,v,b,C,FT),a[zo]=o.current,gg(a),new $g(o)},Cu.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,v="",b=ZE,C=JE,P=eA,q=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=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=PT(a,1,!0,o,u??null,h,v,q,b,C,P,FT),o.context=DT(null),u=o.current,h=zn(),h=Io(h),v=ei(h),v.callback=null,ti(u,v,h),u=h,o.current.lanes=u,wt(o,u),Gr(o),a[zo]=o.current,gg(a),new Ed(o)},Cu.version="19.2.0",Cu}var tj;function jq(){if(tj)return zg.exports;tj=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(),zg.exports=Tq(),zg.exports}var Cq=jq();/**
|
|
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 nj="popstate";function Mq(e={}){function t(r,i){let{pathname:l,search:s,hash:c}=r.location;return lw("",{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:tc(i)}return Rq(t,n,null,e)}function bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nq(){return Math.random().toString(36).substring(2,10)}function rj(e,t){return{usr:e.state,key:e.key,idx:t}}function lw(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?bs(t):t,state:n,key:t&&t.key||r||Nq()}}function tc({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 bs(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 Rq(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 g(S,E){c="PUSH";let T=lw(w.location,S,E);d=m()+1;let A=rj(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=lw(w.location,S,E);d=m();let A=rj(T,d),M=w.createHref(T);s.replaceState(A,"",M),l&&f&&f({action:c,location:w.location,delta:0})}function O(S){return Pq(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(nj,p),f=S,()=>{i.removeEventListener(nj,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:g,replace:x,go(S){return s.go(S)}};return w}function Pq(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:tc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function rk(e,t,n="/"){return Dq(e,t,n,!1)}function Dq(e,t,n,r){let i=typeof t=="string"?bs(t):t,l=Da(i.pathname||"/",n);if(l==null)return null;let s=ak(e);kq(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let d=Vq(l);c=Fq(s[f],d,r)}return c}function ak(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]),g=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}".`),ak(s.children,t,g,p,f)),!(s.path==null&&!s.index)&&t.push({path:p,score:Uq(p,s.index),routesMeta:g})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))l(s,c);else for(let d of ik(s.path))l(s,c,!0,d)}),t}function ik(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=ik(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 kq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hq(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var $q=/^:[\w-]+$/,Lq=3,Iq=2,zq=1,Bq=10,qq=-2,aj=e=>e==="*";function Uq(e,t){let n=e.split("/"),r=n.length;return n.some(aj)&&(r+=qq),t&&(r+=Iq),n.filter(i=>!aj(i)).reduce((i,l)=>i+($q.test(l)?Lq:l===""?zq:Bq),r)}function Hq(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 Fq(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=rh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),g=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=rh({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:Xq(Ma([l,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(l=Ma([l,p.pathnameBase]))}return s}function rh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gq(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},g)=>{if(m==="*"){let O=c[g]||"";s=l.slice(0,l.length-O.length).replace(/(.)\/+$/,"$1")}const x=c[g];return p&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function Gq(e,t=!1,n=!0){jr(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 Vq(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jr(!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 Yq(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bs(e):e;return{pathname:n?n.startsWith("/")?n:Wq(n,t):t,search:Qq(r),hash:Zq(i)}}function Wq(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 Hg(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 Kq(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function J1(e){let t=Kq(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function eS(e,t,n,r=!1){let i;typeof e=="string"?i=bs(e):(i={...e},bt(!i.pathname||!i.pathname.includes("?"),Hg("?","pathname","search",i)),bt(!i.pathname||!i.pathname.includes("#"),Hg("#","pathname","hash",i)),bt(!i.search||!i.search.includes("#"),Hg("#","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 g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}c=p>=0?t[p]:"/"}let f=Yq(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,"/"),Xq=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Qq=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zq=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Jq(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 ok=["POST","PUT","PATCH","DELETE"];new Set(ok);var e8=["GET",...ok];new Set(e8);var xs=_.createContext(null);xs.displayName="DataRouter";var gp=_.createContext(null);gp.displayName="DataRouterState";_.createContext(!1);var lk=_.createContext({isTransitioning:!1});lk.displayName="ViewTransition";var t8=_.createContext(new Map);t8.displayName="Fetchers";var n8=_.createContext(null);n8.displayName="Await";var Pr=_.createContext(null);Pr.displayName="Navigation";var Hc=_.createContext(null);Hc.displayName="Location";var Dr=_.createContext({outlet:null,matches:[],isDataRoute:!1});Dr.displayName="Route";var tS=_.createContext(null);tS.displayName="RouteError";function r8(e,{relative:t}={}){bt(ws(),"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}=Gc(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ma([n,l])),r.createHref({pathname:c,search:s,hash:i})}function ws(){return _.useContext(Hc)!=null}function ra(){return bt(ws(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Hc).location}var sk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uk(e){_.useContext(Pr).static||_.useLayoutEffect(e)}function Fc(){let{isDataRoute:e}=_.useContext(Dr);return e?g8():a8()}function a8(){bt(ws(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(xs),{basename:t,navigator:n}=_.useContext(Pr),{matches:r}=_.useContext(Dr),{pathname:i}=ra(),l=JSON.stringify(J1(r)),s=_.useRef(!1);return uk(()=>{s.current=!0}),_.useCallback((f,d={})=>{if(jr(s.current,sk),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=eS(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 i8(){let{matches:e}=_.useContext(Dr),t=e[e.length-1];return t?t.params:{}}function Gc(e,{relative:t}={}){let{matches:n}=_.useContext(Dr),{pathname:r}=ra(),i=JSON.stringify(J1(n));return _.useMemo(()=>eS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function o8(e,t){return ck(e,t)}function ck(e,t,n,r,i){var T;bt(ws(),"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||"";fk(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 g=ra(),x;if(t){let A=typeof t=="string"?bs(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=g;let O=x.pathname||"/",w=O;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=rk(e,{pathname:w});jr(p||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),jr(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=f8(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(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},E):E}function l8(){let e=v8(),t=Jq(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 s8=_.createElement(l8,null),u8=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(tS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function c8({routeContext:e,match:t,children:n}){let r=_.useContext(xs);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 f8(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:g}=n,x=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!g||g[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 g,x=!1,O=null,w=null;n&&(g=s&&m.route.id?s[m.route.id]:void 0,O=m.route.errorElement||s8,c&&(f<0&&p===0?(fk("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 g?T=O:x?T=w:m.route.Component?T=_.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=d,_.createElement(c8,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?_.createElement(u8,{location:n.location,revalidation:n.revalidation,component:O,error:g,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):E()},null)}function nS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d8(e){let t=_.useContext(xs);return bt(t,nS(e)),t}function h8(e){let t=_.useContext(gp);return bt(t,nS(e)),t}function p8(e){let t=_.useContext(Dr);return bt(t,nS(e)),t}function rS(e){let t=p8(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 m8(){return rS("useRouteId")}function v8(){var r;let e=_.useContext(tS),t=h8("useRouteError"),n=rS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function g8(){let{router:e}=d8("useNavigate"),t=rS("useNavigate"),n=_.useRef(!1);return uk(()=>{n.current=!0}),_.useCallback(async(i,l={})=>{jr(n.current,sk),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var ij={};function fk(e,t,n){!t&&!ij[e]&&(ij[e]=!0,jr(!1,n))}_.memo(y8);function y8({routes:e,future:t,state:n,unstable_onError:r}){return ck(e,void 0,n,r,t)}function b8({to:e,replace:t,state:n,relative:r}){bt(ws(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=_.useContext(Pr);jr(!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=Fc(),f=eS(e,J1(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 Pl(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 x8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1}){bt(!ws(),"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=bs(n));let{pathname:f="/",search:d="",hash:m="",state:p=null,key:g="default"}=n,x=_.useMemo(()=>{let O=Da(f,s);return O==null?null:{location:{pathname:O,search:d,hash:m,state:p,key:g},navigationType:r}},[s,f,d,m,p,g,r]);return jr(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(Hc.Provider,{children:t,value:x}))}function w8({children:e,location:t}){return o8(sw(e),t)}function sw(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,sw(r.props.children,l));return}bt(r.type===Pl,`[${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=sw(r.props.children,l)),n.push(s)}),n}var Qd="get",Zd="application/x-www-form-urlencoded";function yp(e){return e!=null&&typeof e.tagName=="string"}function S8(e){return yp(e)&&e.tagName.toLowerCase()==="button"}function O8(e){return yp(e)&&e.tagName.toLowerCase()==="form"}function _8(e){return yp(e)&&e.tagName.toLowerCase()==="input"}function E8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function A8(e,t){return e.button===0&&(!t||t==="_self")&&!E8(e)}var jd=null;function T8(){if(jd===null)try{new FormData(document.createElement("form"),0),jd=!1}catch{jd=!0}return jd}var j8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fg(e){return e!=null&&!j8.has(e)?(jr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zd}"`),null):e}function C8(e,t){let n,r,i,l,s;if(O8(e)){let c=e.getAttribute("action");r=c?Da(c,t):null,n=e.getAttribute("method")||Qd,i=Fg(e.getAttribute("enctype"))||Zd,l=new FormData(e)}else if(S8(e)||_8(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")||Qd,i=Fg(e.getAttribute("formenctype"))||Fg(c.getAttribute("enctype"))||Zd,l=new FormData(c,e),!T8()){let{name:d,type:m,value:p}=e;if(m==="image"){let g=d?`${d}.`:"";l.append(`${g}x`,"0"),l.append(`${g}y`,"0")}else d&&l.append(d,p)}}else{if(yp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qd,r=null,i=Zd,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 aS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M8(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 N8(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 R8(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 P8(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let s=await N8(l,n);return s.links?s.links():[]}return[]}));return L8(r.flat(1).filter(R8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function oj(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 g=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 g=="boolean")return g}return!0}):[]}function D8(e,t,{includeHydrateFallback:n}={}){return k8(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 k8(e){return[...new Set(e)]}function $8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function L8(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify($8(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function dk(){let e=_.useContext(xs);return aS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function I8(){let e=_.useContext(gp);return aS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var iS=_.createContext(void 0);iS.displayName="FrameworkContext";function hk(){let e=_.useContext(iS);return aS(e,"You must render this element inside a <HydratedRouter> element"),e}function z8(e,t){let n=_.useContext(iS),[r,i]=_.useState(!1),[l,s]=_.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:p}=t,g=_.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 g.current&&S.observe(g.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,g,{}]:[l,g,{onFocus:Mu(c,x),onBlur:Mu(f,O),onMouseEnter:Mu(d,x),onMouseLeave:Mu(m,O),onTouchStart:Mu(p,x)}]:[!1,g,{}]}function Mu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function B8({page:e,...t}){let{router:n}=dk(),r=_.useMemo(()=>rk(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(U8,{page:e,matches:r,...t}):null}function q8(e){let{manifest:t,routeModules:n}=hk(),[r,i]=_.useState([]);return _.useEffect(()=>{let l=!1;return P8(e,t,n).then(s=>{l||i(s)}),()=>{l=!0}},[e,t,n]),r}function U8({page:e,matches:t,...n}){let r=ra(),{manifest:i,routeModules:l}=hk(),{basename:s}=dk(),{loaderData:c,matches:f}=I8(),d=_.useMemo(()=>oj(e,t,f,i,r,"data"),[e,t,f,i,r]),m=_.useMemo(()=>oj(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=M8(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]),g=_.useMemo(()=>D8(m,i),[m,i]),x=q8(m);return _.createElement(_.Fragment,null,p.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...n})),g.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 H8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pk&&(window.__reactRouterVersion="7.9.5")}catch{}function F8({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=Mq({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(x8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i})}var mk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ah=_.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,...g},x){let{basename:O}=_.useContext(Pr),w=typeof d=="string"&&mk.test(d),S,E=!1;if(typeof d=="string"&&w&&(S=d,pk))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{jr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=r8(d,{relative:i}),[A,M,j]=z8(r,g),N=W8(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",{...g,...j,href:S||T,onClick:E||l?t:R,ref:H8(x,M),target:f,"data-discover":!w&&n==="render"?"true":void 0});return A&&!w?_.createElement(_.Fragment,null,k,_.createElement(B8,{page:T})):k});ah.displayName="Link";var G8=_.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=Gc(s,{relative:d.relative}),g=ra(),x=_.useContext(gp),{navigator:O,basename:w}=_.useContext(Pr),S=x!=null&&J8(p)&&c===!0,E=O.encodeLocation?O.encodeLocation(p).pathname:p.pathname,T=g.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(ah,{...d,"aria-current":k,className:I,ref:m,style:V,to:s,viewTransition:c},typeof f=="function"?f(R):f)});G8.displayName="NavLink";var V8=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=Qd,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:p,...g},x)=>{let O=Q8(),w=Z8(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&mk.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,...g,"data-discover":!E&&e==="render"?"true":void 0})});V8.displayName="Form";function Y8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vk(e){let t=_.useContext(xs);return bt(t,Y8(e)),t}function W8(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:s}={}){let c=Fc(),f=ra(),d=Gc(e,{relative:l});return _.useCallback(m=>{if(A8(m,t)){m.preventDefault();let p=n!==void 0?n:tc(f)===tc(d);c(e,{replace:p,state:r,preventScrollReset:i,relative:l,viewTransition:s})}},[f,c,d,n,r,t,e,i,l,s])}var K8=0,X8=()=>`__${String(++K8)}__`;function Q8(){let{router:e}=vk("useSubmit"),{basename:t}=_.useContext(Pr),n=m8();return _.useCallback(async(r,i={})=>{let{action:l,method:s,encType:c,formData:f,body:d}=C8(r,t);if(i.navigate===!1){let m=i.fetcherKey||X8();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 Z8(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={...Gc(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])),tc(l)}function J8(e,{relative:t}={}){let n=_.useContext(lk);bt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vk("useViewTransitionState"),i=Gc(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 rh(i.pathname,s)!=null||rh(i.pathname,l)!=null}var Vc=nk();const gk=lt(Vc);/**
|
|
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 e6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yk=(...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 t6={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 n6=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:s,...c},f)=>_.createElement("svg",{ref:f,...t6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:yk("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 Xe=(e,t)=>{const n=_.forwardRef(({className:r,...i},l)=>_.createElement(n6,{ref:l,iconNode:t,className:yk(`lucide-${e6(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 oS=Xe("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 Gg=Xe("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 r6=Xe("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 a6=Xe("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 i6=Xe("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 bk=Xe("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 Ss=Xe("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 Yc=Xe("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 o6=Xe("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 xk=Xe("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 bp=Xe("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 l6=Xe("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 uw=Xe("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 s6=Xe("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"}]]);/**
|
|
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 u6=Xe("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"}]]);/**
|
|
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 c6=Xe("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 f6=Xe("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 Ll=Xe("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"}]]);/**
|
|
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 d6=Xe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 h6=Xe("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"}]]);/**
|
|
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 p6=Xe("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
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 lj=Xe("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"}]]);/**
|
|
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 wk=Xe("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"}]]);/**
|
|
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 m6=Xe("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 v6=Xe("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"}]]);/**
|
|
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 g6=Xe("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"}]]);/**
|
|
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 y6=Xe("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"}]]);/**
|
|
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 b6=Xe("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"}]]);/**
|
|
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 x6=Xe("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"}]]);/**
|
|
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 w6=Xe("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"}]]);/**
|
|
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 Il=Xe("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Sk(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:g,children:x,...O}=p,w=((E=g==null?void 0:g[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return y.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,g){var w;const x=((w=g==null?void 0:g[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,S6(i,...t)]}function S6(...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 Cr(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 $t=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{};function sj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wc(...e){return t=>{let n=!1;const r=e.map(i=>{const l=sj(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():sj(e[i],null)}}}}function Ve(...e){return _.useCallback(Wc(...e),e)}var O6=Symbol.for("react.lazy"),ih=Z1[" use ".trim().toString()];function _6(e){return typeof e=="object"&&e!==null&&"then"in e}function Ok(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===O6&&"_payload"in e&&_6(e._payload)}function _k(e){const t=E6(e),n=_.forwardRef((r,i)=>{let{children:l,...s}=r;Ok(l)&&typeof ih=="function"&&(l=ih(l._payload));const c=_.Children.toArray(l),f=c.find(T6);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 y.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return y.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var To=_k("Slot");function E6(e){const t=_.forwardRef((n,r)=>{let{children:i,...l}=n;if(Ok(i)&&typeof ih=="function"&&(i=ih(i._payload)),_.isValidElement(i)){const s=C6(i),c=j6(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Wc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var A6=Symbol("radix.slottable");function T6(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===A6}function j6(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 C6(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 M6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],jo=M6.reduce((e,t)=>{const n=_k(`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),y.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Vg={exports:{}},Yg={};/**
|
|
236
|
-
* @license React
|
|
237
|
-
* use-sync-external-store-shim.production.js
|
|
238
|
-
*
|
|
239
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the MIT license found in the
|
|
242
|
-
* LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/var uj;function N6(){if(uj)return Yg;uj=1;var e=vp();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue;function c(p,g){var x=g(),O=r({inst:{value:x,getSnapshot:g}}),w=O[0].inst,S=O[1];return l(function(){w.value=x,w.getSnapshot=g,f(w)&&S({inst:w})},[p,x,g]),i(function(){return f(w)&&S({inst:w}),p(function(){f(w)&&S({inst:w})})},[p]),s(x),x}function f(p){var g=p.getSnapshot;p=p.value;try{var x=g();return!n(p,x)}catch{return!0}}function d(p,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return Yg.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Yg}var cj;function R6(){return cj||(cj=1,Vg.exports=N6()),Vg.exports}var P6=R6();function D6(){return P6.useSyncExternalStore(k6,()=>!0,()=>!1)}function k6(){return()=>{}}var lS="Avatar",[$6]=Sk(lS),[L6,Ek]=$6(lS),Ak=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,l]=_.useState("idle");return y.jsx(L6,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:y.jsx(jo.span,{...r,ref:t})})});Ak.displayName=lS;var Tk="AvatarImage",jk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...l}=e,s=Ek(Tk,n),c=I6(r,l),f=Cr(d=>{i(d),s.onImageLoadingStatusChange(d)});return $t(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?y.jsx(jo.img,{...l,ref:t,src:r}):null});jk.displayName=Tk;var Ck="AvatarFallback",Mk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,l=Ek(Ck,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"?y.jsx(jo.span,{...i,ref:t}):null});Mk.displayName=Ck;function fj(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function I6(e,{referrerPolicy:t,crossOrigin:n}){const r=D6(),i=_.useRef(null),l=r?(i.current||(i.current=new window.Image),i.current):null,[s,c]=_.useState(()=>fj(l,e));return $t(()=>{c(fj(l,e))},[l,e]),$t(()=>{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 z6=Ak,B6=jk,q6=Mk;function Nk(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=Nk(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=Nk(e))&&(r&&(r+=" "),r+=t);return r}const sS="-",U6=e=>{const t=F6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const c=s.split(sS);return c[0]===""&&c.length!==1&&c.shift(),Rk(c,t)||H6(s)},getConflictingClassGroupIds:(s,c)=>{const f=n[s]||[];return c&&r[s]?[...f,...r[s]]:f}}},Rk=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Rk(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(sS);return(s=t.validators.find(({validator:c})=>c(l)))==null?void 0:s.classGroupId},dj=/^\[(.+)\]$/,H6=e=>{if(dj.test(e)){const t=dj.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},F6=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return V6(Object.entries(e.classGroups),n).forEach(([l,s])=>{cw(s,r,l,t)}),r},cw=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const l=i===""?t:hj(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(G6(i)){cw(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([l,s])=>{cw(s,hj(t,l),n,r)})})},hj=(e,t)=>{let n=e;return t.split(sS).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},G6=e=>e.isThemeGetter,V6=(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,Y6=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)}}},Pk="!",W6=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 g=f.length===0?c:c.substring(m),x=g.startsWith(Pk),O=x?g.substring(1):g,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},K6=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},X6=e=>({cache:Y6(e.cacheSize),parseClassName:W6(e),...U6(e)}),Q6=/\s+/,Z6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,l=[],s=e.trim().split(Q6);let c="";for(let f=s.length-1;f>=0;f-=1){const d=s[f],{modifiers:m,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:x}=n(d);let O=!!x,w=r(O?g.substring(0,x):g);if(!w){if(!O){c=d+(c.length>0?" "+c:c);continue}if(w=r(g),!w){c=d+(c.length>0?" "+c:c);continue}O=!1}const S=K6(m).join(":"),E=p?S+Pk: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 J6(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Dk(t))&&(r&&(r+=" "),r+=n);return r}const Dk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Dk(e[r]))&&(n&&(n+=" "),n+=t);return n};function eU(e,...t){let n,r,i,l=s;function s(f){const d=t.reduce((m,p)=>p(m),e());return n=X6(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=Z6(f,n);return i(f,m),m}return function(){return l(J6.apply(null,arguments))}}const pt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kk=/^\[(?:([a-z-]+):)?(.+)\]$/i,tU=/^\d+\/\d+$/,nU=new Set(["px","full","screen"]),rU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,aU=/\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$/,iU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,oU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ea=e=>zl(e)||nU.has(e)||tU.test(e),gi=e=>Os(e,"length",mU),zl=e=>!!e&&!Number.isNaN(Number(e)),Wg=e=>Os(e,"number",zl),Nu=e=>!!e&&Number.isInteger(Number(e)),sU=e=>e.endsWith("%")&&zl(e.slice(0,-1)),Pe=e=>kk.test(e),yi=e=>rU.test(e),uU=new Set(["length","size","percentage"]),cU=e=>Os(e,uU,$k),fU=e=>Os(e,"position",$k),dU=new Set(["image","url"]),hU=e=>Os(e,dU,gU),pU=e=>Os(e,"",vU),Ru=()=>!0,Os=(e,t,n)=>{const r=kk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},mU=e=>aU.test(e)&&!iU.test(e),$k=()=>!1,vU=e=>oU.test(e),gU=e=>lU.test(e),yU=()=>{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"),g=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",zl,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"],$=()=>[zl,Pe];return{cacheSize:500,separator:":",theme:{colors:[Ru],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:[sU,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",Nu,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",Nu,Pe]}],"grid-cols":[{"grid-cols":[Ru]}],"col-start-end":[{col:["auto",{span:["full",Nu,Pe]},Pe]}],"col-start":[{"col-start":K()}],"col-end":[{"col-end":K()}],"grid-rows":[{"grid-rows":[Ru]}],"row-start-end":[{row:["auto",{span:[Nu,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:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"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",Wg]}],"font-family":[{font:[Ru]}],"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",zl,Wg]}],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(),fU]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",cU]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},hU]}],"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,pU]}],"shadow-color":[{shadow:[Ru]}],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:[Nu,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,Wg]}],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"]}}},bU=eU(yU);function he(...e){return bU(Ue(e))}function pj({className:e,...t}){return y.jsx(z6,{className:he("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function mj({className:e,...t}){return y.jsx(B6,{className:he("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function vj({className:e,...t}){return y.jsx(q6,{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 xU(e,t){const n=_.createContext(t),r=l=>{const{children:s,...c}=l,f=_.useMemo(()=>c,Object.values(c));return y.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:g,children:x,...O}=p,w=((E=g==null?void 0:g[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return y.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,g){var w;const x=((w=g==null?void 0:g[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,wU(i,...t)]}function wU(...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 SU=Z1[" useInsertionEffect ".trim().toString()]||$t;function Ai({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,l,s]=OU({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 g=_U(m)?m(e):m;g!==e&&((p=s.current)==null||p.call(s,g))}else l(m)},[c,e,l,s]);return[f,d]}function OU({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),l=_.useRef(t);return SU(()=>{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 _U(e){return typeof e=="function"}function Yl(e){const t=EU(e),n=_.forwardRef((r,i)=>{const{children:l,...s}=r,c=_.Children.toArray(l),f=c.find(AU);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 y.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return y.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}function EU(e){const t=_.forwardRef((n,r)=>{const{children:i,...l}=n;if(_.isValidElement(i)){const s=jU(i),c=TU(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Wc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lk=Symbol("radix.slottable");function Ik(e){const t=({children:n})=>y.jsx(y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Lk,t}function AU(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Lk}function TU(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 jU(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 CU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=CU.reduce((e,t)=>{const n=Yl(`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),y.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zk(e,t){e&&Vc.flushSync(()=>e.dispatchEvent(t))}function uS(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 y.jsx(i,{scope:S,itemMap:A,collectionRef:T,children:E})};s.displayName=t;const c=e+"CollectionSlot",f=Yl(c),d=L.forwardRef((w,S)=>{const{scope:E,children:T}=w,A=l(c,E),M=Ve(S,A.collectionRef);return y.jsx(f,{ref:M,children:T})});d.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",g=Yl(m),x=L.forwardRef((w,S)=>{const{scope:E,children:T,...A}=w,M=L.useRef(null),j=Ve(S,M),N=l(m,E);return L.useEffect(()=>(N.itemMap.set(M,{ref:M,...A}),()=>void N.itemMap.delete(M))),y.jsx(g,{[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 MU=_.createContext(void 0);function xp(e){const t=_.useContext(MU);return e||t||"ltr"}function NU(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(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 RU="DismissableLayer",fw="dismissableLayer.update",PU="dismissableLayer.pointerDownOutside",DU="dismissableLayer.focusOutside",gj,Bk=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Kc=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...f}=e,d=_.useContext(Bk),[m,p]=_.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=_.useState({}),O=Ve(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=LU(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())},g),N=IU(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())},g);return NU(R=>{T===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},g),_.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(gj=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),yj(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=gj)}},[m,g,n,d]),_.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),yj())},[m,d]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(fw,R),()=>document.removeEventListener(fw,R)},[]),y.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)})});Kc.displayName=RU;var kU="DismissableLayerBranch",$U=_.forwardRef((e,t)=>{const n=_.useContext(Bk),r=_.useRef(null),i=Ve(t,r);return _.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),y.jsx(Me.div,{...e,ref:i})});$U.displayName=kU;function LU(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const l=c=>{if(c.target&&!r.current){let f=function(){qk(PU,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 IU(e,t=globalThis==null?void 0:globalThis.document){const n=Cr(e),r=_.useRef(!1);return _.useEffect(()=>{const i=l=>{l.target&&!r.current&&qk(DU,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 yj(){const e=new CustomEvent(fw);document.dispatchEvent(e)}function qk(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?zk(i,l):i.dispatchEvent(l)}var Kg=0;function cS(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??bj()),document.body.insertAdjacentElement("beforeend",e[1]??bj()),Kg++,()=>{Kg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Kg--}},[])}function bj(){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 Xg="focusScope.autoFocusOnMount",Qg="focusScope.autoFocusOnUnmount",xj={bubbles:!1,cancelable:!0},zU="FocusScope",wp=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[c,f]=_.useState(null),d=Cr(i),m=Cr(l),p=_.useRef(null),g=Ve(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){Sj.add(x);const w=document.activeElement;if(!c.contains(w)){const E=new CustomEvent(Xg,xj);c.addEventListener(Xg,d),c.dispatchEvent(E),E.defaultPrevented||(BU(GU(Uk(c)),{select:!0}),document.activeElement===w&&xi(c))}return()=>{c.removeEventListener(Xg,d),setTimeout(()=>{const E=new CustomEvent(Qg,xj);c.addEventListener(Qg,m),c.dispatchEvent(E),E.defaultPrevented||xi(w??document.body,{select:!0}),c.removeEventListener(Qg,m),Sj.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]=qU(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 y.jsx(Me.div,{tabIndex:-1,...s,ref:g,onKeyDown:O})});wp.displayName=zU;function BU(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xi(r,{select:t}),document.activeElement!==n)return}function qU(e){const t=Uk(e),n=wj(t,e),r=wj(t.reverse(),e);return[n,r]}function Uk(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 wj(e,t){for(const n of e)if(!UU(n,{upTo:t}))return n}function UU(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 HU(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&&HU(e)&&t&&e.select()}}var Sj=FU();function FU(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Oj(e,t),e.unshift(t)},remove(t){var n;e=Oj(e,t),(n=e[0])==null||n.resume()}}}function Oj(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function GU(e){return e.filter(t=>t.tagName!=="A")}var VU=Z1[" useId ".trim().toString()]||(()=>{}),YU=0;function sr(e){const[t,n]=_.useState(VU());return $t(()=>{n(r=>r??String(YU++))},[e]),e||(t?`radix-${t}`:"")}const WU=["top","right","bottom","left"],Ti=Math.min,Hn=Math.max,oh=Math.round,Cd=Math.floor,Zr=e=>({x:e,y:e}),KU={left:"right",right:"left",bottom:"top",top:"bottom"},XU={start:"end",end:"start"};function dw(e,t,n){return Hn(e,Ti(t,n))}function ka(e,t){return typeof e=="function"?e(t):e}function $a(e){return e.split("-")[0]}function _s(e){return e.split("-")[1]}function fS(e){return e==="x"?"y":"x"}function dS(e){return e==="y"?"height":"width"}const QU=new Set(["top","bottom"]);function Xr(e){return QU.has($a(e))?"y":"x"}function hS(e){return fS(Xr(e))}function ZU(e,t,n){n===void 0&&(n=!1);const r=_s(e),i=hS(e),l=dS(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=lh(s)),[s,lh(s)]}function JU(e){const t=lh(e);return[hw(e),t,hw(t)]}function hw(e){return e.replace(/start|end/g,t=>XU[t])}const _j=["left","right"],Ej=["right","left"],eH=["top","bottom"],tH=["bottom","top"];function nH(e,t,n){switch(e){case"top":case"bottom":return n?t?Ej:_j:t?_j:Ej;case"left":case"right":return t?eH:tH;default:return[]}}function rH(e,t,n,r){const i=_s(e);let l=nH($a(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(hw)))),l}function lh(e){return e.replace(/left|right|bottom|top/g,t=>KU[t])}function aH(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hk(e){return typeof e!="number"?aH(e):{top:e,right:e,bottom:e,left:e}}function sh(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 Aj(e,t,n){let{reference:r,floating:i}=e;const l=Xr(t),s=hS(t),c=dS(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,g=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(_s(t)){case"start":x[s]-=g*(n&&d?-1:1);break;case"end":x[s]+=g*(n&&d?-1:1);break}return x}const iH=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}=Aj(d,r,f),g=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:g,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&&(g=j.placement),j.rects&&(d=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:m,y:p}=Aj(d,g,f)),w=-1)}return{x:m,y:p,placement:g,strategy:i,middlewareData:x}};async function nc(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:g=!1,padding:x=0}=ka(t,e),O=Hk(x),S=c[g?p==="floating"?"reference":"floating":p],E=sh(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=sh(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 oH=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=Hk(m),g={x:n,y:r},x=hS(i),O=dS(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]-g[x]-l.floating[O],j=g[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=dw(B,K,G),D=!f.arrow&&_s(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]:g[x]+U,data:{[x]:X,centerOffset:K-X-U,...D&&{alignmentOffset:U}},reset:D}}}),lH=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:g,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=g||(A||!w?[lh(c)]:JU(c)),N=O!=="none";!g&&N&&j.push(...rH(c,w,O,M));const R=[c,...j],k=await nc(t,S),I=[];let V=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&I.push(k[E]),p){const K=ZU(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 Tj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jj(e){return WU.some(t=>e[t]>=0)}const sH=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 nc(t,{...i,elementContext:"reference"}),s=Tj(l,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jj(s)}}}case"escaped":{const l=await nc(t,{...i,altBoundary:!0}),s=Tj(l,n.floating);return{data:{escapedOffsets:s,escaped:jj(s)}}}default:return{}}}}},Fk=new Set(["left","top"]);async function uH(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=_s(n),f=Xr(n)==="y",d=Fk.has(s)?-1:1,m=l&&f?-1:1,p=ka(t,e);let{mainAxis:g,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:g*d}:{x:g*d,y:x*m}}const cH=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 uH(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}}}}},fH=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 nc(t,f),p=Xr($a(i)),g=fS(p);let x=d[g],O=d[p];if(l){const S=g==="y"?"top":"left",E=g==="y"?"bottom":"right",T=x+m[S],A=x-m[E];x=dw(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=dw(T,O,A)}const w=c.fn({...t,[g]:x,[p]:O});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[g]:l,[p]:s}}}}}},dH=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),g=fS(p);let x=m[g],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=g==="y"?"height":"width",M=l.reference[g]-l.floating[A]+S.mainAxis,j=l.reference[g]+l.reference[A]-S.mainAxis;x<M?x=M:x>j&&(x=j)}if(d){var E,T;const A=g==="y"?"width":"height",M=Fk.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{[g]:x,[p]:O}}}},hH=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 nc(t,d),p=$a(i),g=_s(i),x=Xr(i)==="y",{width:O,height:w}=l.floating;let S,E;p==="top"||p==="bottom"?(S=p,E=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,S=g==="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&&!g){const V=Hn(m.left,0),z=Hn(m.right,0),B=Hn(m.top,0),G=Hn(m.bottom,0);x?k=O-2*(V!==0||z!==0?V+z:Hn(m.left,m.right)):R=w-2*(B!==0||G!==0?B+G:Hn(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 Sp(){return typeof window<"u"}function Es(e){return Gk(e)?(e.nodeName||"").toLowerCase():"#document"}function Gn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function aa(e){var t;return(t=(Gk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gk(e){return Sp()?e instanceof Node||e instanceof Gn(e).Node:!1}function Mr(e){return Sp()?e instanceof Element||e instanceof Gn(e).Element:!1}function ta(e){return Sp()?e instanceof HTMLElement||e instanceof Gn(e).HTMLElement:!1}function Cj(e){return!Sp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gn(e).ShadowRoot}const pH=new Set(["inline","contents"]);function Xc(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pH.has(i)}const mH=new Set(["table","td","th"]);function vH(e){return mH.has(Es(e))}const gH=[":popover-open",":modal"];function Op(e){return gH.some(t=>{try{return e.matches(t)}catch{return!1}})}const yH=["transform","translate","scale","rotate","perspective"],bH=["transform","translate","scale","rotate","perspective","filter"],xH=["paint","layout","strict","content"];function pS(e){const t=mS(),n=Mr(e)?Nr(e):e;return yH.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)||bH.some(r=>(n.willChange||"").includes(r))||xH.some(r=>(n.contain||"").includes(r))}function wH(e){let t=ji(e);for(;ta(t)&&!Wl(t);){if(pS(t))return t;if(Op(t))return null;t=ji(t)}return null}function mS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const SH=new Set(["html","body","#document"]);function Wl(e){return SH.has(Es(e))}function Nr(e){return Gn(e).getComputedStyle(e)}function _p(e){return Mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ji(e){if(Es(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Cj(e)&&e.host||aa(e);return Cj(t)?t.host:t}function Vk(e){const t=ji(e);return Wl(t)?e.ownerDocument?e.ownerDocument.body:e.body:ta(t)&&Xc(t)?t:Vk(t)}function rc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Vk(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=Gn(i);if(l){const c=pw(s);return t.concat(s,s.visualViewport||[],Xc(i)?i:[],c&&n?rc(c):[])}return t.concat(i,rc(i,[],n))}function pw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yk(e){const t=Nr(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=oh(n)!==l||oh(r)!==s;return c&&(n=l,r=s),{width:n,height:r,$:c}}function vS(e){return Mr(e)?e:e.contextElement}function Bl(e){const t=vS(e);if(!ta(t))return Zr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=Yk(t);let s=(l?oh(n.width):n.width)/r,c=(l?oh(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const OH=Zr(0);function Wk(e){const t=Gn(e);return!mS()||!t.visualViewport?OH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _H(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gn(e)?!1:t}function yo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=vS(e);let s=Zr(1);t&&(r?Mr(r)&&(s=Bl(r)):s=Bl(e));const c=_H(l,n,r)?Wk(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 g=Gn(l),x=r&&Mr(r)?Gn(r):r;let O=g,w=pw(O);for(;w&&r&&x!==O;){const S=Bl(w),E=w.getBoundingClientRect(),T=Nr(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=Gn(w),w=pw(O)}}return sh({width:m,height:p,x:f,y:d})}function Ep(e,t){const n=_p(e).scrollLeft;return t?t.left+n:yo(aa(e)).left+n}function Kk(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ep(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function EH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=aa(r),c=t?Op(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)&&((Es(r)!=="body"||Xc(s))&&(f=_p(r)),ta(r))){const x=yo(r);d=Bl(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const g=s&&!p&&!l?Kk(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+g.x,y:n.y*d.y-f.scrollTop*d.y+m.y+g.y}}function AH(e){return Array.from(e.getClientRects())}function TH(e){const t=aa(e),n=_p(e),r=e.ownerDocument.body,i=Hn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Hn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ep(e);const c=-n.scrollTop;return Nr(r).direction==="rtl"&&(s+=Hn(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:s,y:c}}const Mj=25;function jH(e,t){const n=Gn(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=mS();(!m||m&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Ep(r);if(d<=0){const m=r.ownerDocument,p=m.body,g=getComputedStyle(p),x=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,O=Math.abs(r.clientWidth-p.clientWidth-x);O<=Mj&&(l-=O)}else d<=Mj&&(l+=d);return{width:l,height:s,x:c,y:f}}const CH=new Set(["absolute","fixed"]);function MH(e,t){const n=yo(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=ta(e)?Bl(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 Nj(e,t,n){let r;if(t==="viewport")r=jH(e,n);else if(t==="document")r=TH(aa(e));else if(Mr(t))r=MH(t,n);else{const i=Wk(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return sh(r)}function Xk(e,t){const n=ji(e);return n===t||!Mr(n)||Wl(n)?!1:Nr(n).position==="fixed"||Xk(n,t)}function NH(e,t){const n=t.get(e);if(n)return n;let r=rc(e,[],!1).filter(c=>Mr(c)&&Es(c)!=="body"),i=null;const l=Nr(e).position==="fixed";let s=l?ji(e):e;for(;Mr(s)&&!Wl(s);){const c=Nr(s),f=pS(s);!f&&c.position==="fixed"&&(i=null),(l?!f&&!i:!f&&c.position==="static"&&!!i&&CH.has(i.position)||Xc(s)&&!f&&Xk(e,s))?r=r.filter(m=>m!==s):i=c,s=ji(s)}return t.set(e,r),r}function RH(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Op(t)?[]:NH(t,this._c):[].concat(n),r],c=s[0],f=s.reduce((d,m)=>{const p=Nj(t,m,i);return d.top=Hn(p.top,d.top),d.right=Ti(p.right,d.right),d.bottom=Ti(p.bottom,d.bottom),d.left=Hn(p.left,d.left),d},Nj(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function PH(e){const{width:t,height:n}=Yk(e);return{width:t,height:n}}function DH(e,t,n){const r=ta(t),i=aa(t),l=n==="fixed",s=yo(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const f=Zr(0);function d(){f.x=Ep(i)}if(r||!r&&!l)if((Es(t)!=="body"||Xc(i))&&(c=_p(t)),r){const x=yo(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?Kk(i,c):Zr(0),p=s.left+c.scrollLeft-f.x-m.x,g=s.top+c.scrollTop-f.y-m.y;return{x:p,y:g,width:s.width,height:s.height}}function Zg(e){return Nr(e).position==="static"}function Rj(e,t){if(!ta(e)||Nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return aa(e)===n&&(n=n.ownerDocument.body),n}function Qk(e,t){const n=Gn(e);if(Op(e))return n;if(!ta(e)){let i=ji(e);for(;i&&!Wl(i);){if(Mr(i)&&!Zg(i))return i;i=ji(i)}return n}let r=Rj(e,t);for(;r&&vH(r)&&Zg(r);)r=Rj(r,t);return r&&Wl(r)&&Zg(r)&&!pS(r)?n:r||wH(e)||n}const kH=async function(e){const t=this.getOffsetParent||Qk,n=this.getDimensions,r=await n(e.floating);return{reference:DH(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function $H(e){return Nr(e).direction==="rtl"}const LH={convertOffsetParentRelativeRectToViewportRelativeRect:EH,getDocumentElement:aa,getClippingRect:RH,getOffsetParent:Qk,getElementRects:kH,getClientRects:AH,getDimensions:PH,getScale:Bl,isElement:Mr,isRTL:$H};function Zk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function IH(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:g,height:x}=d;if(c||t(),!g||!x)return;const O=Cd(p),w=Cd(i.clientWidth-(m+g)),S=Cd(i.clientHeight-(p+x)),E=Cd(m),A={rootMargin:-O+"px "+-w+"px "+-S+"px "+-E+"px",threshold:Hn(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&&!Zk(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 zH(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=vS(e),m=i||l?[...d?rc(d):[],...rc(t)]:[];m.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),l&&E.addEventListener("resize",n)});const p=d&&c?IH(d,n):null;let g=-1,x=null;s&&(x=new ResizeObserver(E=>{let[T]=E;T&&T.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let O,w=f?yo(e):null;f&&S();function S(){const E=yo(e);w&&!Zk(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 BH=cH,qH=fH,UH=lH,HH=hH,FH=sH,Pj=oH,GH=dH,VH=(e,t,n)=>{const r=new Map,i={platform:LH,...n},l={...i.platform,_c:r};return iH(e,t,{...i,platform:l})};var YH=typeof document<"u",WH=function(){},Jd=YH?_.useLayoutEffect:WH;function uh(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(!uh(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)&&!uh(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function Jk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Dj(e,t){const n=Jk(e);return Math.round(t*n)/n}function Jg(e){const t=_.useRef(e);return Jd(()=>{t.current=e}),t}function KH(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}),[g,x]=_.useState(r);uh(g,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=Jg(f),z=Jg(i),B=Jg(d),G=_.useCallback(()=>{if(!N.current||!R.current)return;const Y={placement:t,strategy:n,middleware:g};z.current&&(Y.platform=z.current),VH(N.current,R.current,Y).then(W=>{const oe={...W,isPositioned:B.current!==!1};K.current&&!uh(k.current,oe)&&(k.current=oe,Vc.flushSync(()=>{p(oe)}))})},[g,t,n,z,B]);Jd(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,p(Y=>({...Y,isPositioned:!1})))},[d]);const K=_.useRef(!1);Jd(()=>(K.current=!0,()=>{K.current=!1}),[]),Jd(()=>{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=Dj(D.floating,m.x),oe=Dj(D.floating,m.y);return c?{...Y,transform:"translate("+W+"px, "+oe+"px)",...Jk(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 XH=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?Pj({element:r.current,padding:i}).fn(n):{}:r?Pj({element:r,padding:i}).fn(n):{}}}},QH=(e,t)=>({...BH(e),options:[e,t]}),ZH=(e,t)=>({...qH(e),options:[e,t]}),JH=(e,t)=>({...GH(e),options:[e,t]}),e7=(e,t)=>({...UH(e),options:[e,t]}),t7=(e,t)=>({...HH(e),options:[e,t]}),n7=(e,t)=>({...FH(e),options:[e,t]}),r7=(e,t)=>({...XH(e),options:[e,t]});var a7="Arrow",e$=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return y.jsx(Me.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});e$.displayName=a7;var i7=e$;function o7(e){const[t,n]=_.useState(void 0);return $t(()=>{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 gS="Popper",[t$,As]=kr(gS),[l7,n$]=t$(gS),r$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return y.jsx(l7,{scope:t,anchor:r,onAnchorChange:i,children:n})};r$.displayName=gS;var a$="PopperAnchor",i$=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=n$(a$,n),s=_.useRef(null),c=Ve(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:y.jsx(Me.div,{...i,ref:c})});i$.displayName=a$;var yS="PopperContent",[s7,u7]=t$(yS),o$=_.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:g=!1,updatePositionStrategy:x="optimized",onPlaced:O,...w}=e,S=n$(yS,n),[E,T]=_.useState(null),A=Ve(t,Ne=>T(Ne)),[M,j]=_.useState(null),N=o7(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(f7),altBoundary:B},{refs:K,floatingStyles:X,placement:D,isPositioned:U,middlewareData:Y}=KH({strategy:"fixed",placement:I,whileElementsMounted:(...Ne)=>zH(...Ne,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[QH({mainAxis:i+k,alignmentAxis:s}),f&&ZH({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?JH():void 0,...G}),f&&e7({...G}),t7({...G,apply:({elements:Ne,rects:Oe,availableWidth:We,availableHeight:He})=>{const{width:nt,height:nn}=Oe.reference,ft=Ne.floating.style;ft.setProperty("--radix-popper-available-width",`${We}px`),ft.setProperty("--radix-popper-available-height",`${He}px`),ft.setProperty("--radix-popper-anchor-width",`${nt}px`),ft.setProperty("--radix-popper-anchor-height",`${nn}px`)}}),M&&r7({element:M,padding:c}),d7({arrowWidth:R,arrowHeight:k}),g&&n7({strategy:"referenceHidden",...G})]}),[W,oe]=u$(D),$=Cr(O);$t(()=>{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 $t(()=>{E&&ge(window.getComputedStyle(E).zIndex)},[E]),y.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:y.jsx(s7,{scope:n,placedSide:W,onArrowChange:j,arrowX:F,arrowY:Z,shouldHideArrow:se,children:y.jsx(Me.div,{"data-side":W,"data-align":oe,...w,ref:A,style:{...w.style,animation:U?void 0:"none"}})})})});o$.displayName=yS;var l$="PopperArrow",c7={top:"bottom",right:"left",bottom:"top",left:"right"},s$=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=u7(l$,r),s=c7[l.placedSide];return y.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:y.jsx(i7,{...i,ref:n,style:{...i.style,display:"block"}})})});s$.displayName=l$;function f7(e){return e!==null}var d7=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]=u$(n),p={start:"0%",center:"50%",end:"100%"}[m],g=(((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:`${g}px`,w=`${-f}px`):d==="top"?(O=s?p:`${g}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 u$(e){const[t,n="center"]=e.split("-");return[t,n]}var bS=r$,xS=i$,wS=o$,SS=s$,h7="Portal",Qc=_.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,l]=_.useState(!1);$t(()=>l(!0),[]);const s=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?gk.createPortal(y.jsx(Me.div,{...r,ref:t}),s):null});Qc.displayName=h7;function p7(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var pr=e=>{const{present:t,children:n}=e,r=m7(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),l=Ve(r.ref,v7(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:l}):null};pr.displayName="Presence";function m7(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),l=_.useRef("none"),s=e?"mounted":"unmounted",[c,f]=p7(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const d=Md(r.current);l.current=c==="mounted"?d:"none"},[c]),$t(()=>{const d=r.current,m=i.current;if(m!==e){const g=l.current,x=Md(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(m&&g!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),$t(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,p=x=>{const w=Md(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)})}},g=x=>{x.target===t&&(l.current=Md(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",g),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 Md(e){return(e==null?void 0:e.animationName)||"none"}function v7(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 ey="rovingFocusGroup.onEntryFocus",g7={bubbles:!1,cancelable:!0},Zc="RovingFocusGroup",[mw,c$,y7]=uS(Zc),[b7,Ap]=kr(Zc,[y7]),[x7,w7]=b7(Zc),f$=_.forwardRef((e,t)=>y.jsx(mw.Provider,{scope:e.__scopeRovingFocusGroup,children:y.jsx(mw.Slot,{scope:e.__scopeRovingFocusGroup,children:y.jsx(S7,{...e,ref:t})})}));f$.displayName=Zc;var S7=_.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,g=_.useRef(null),x=Ve(t,g),O=xp(l),[w,S]=Ai({prop:s,defaultProp:c??null,onChange:f,caller:Zc}),[E,T]=_.useState(!1),A=Cr(d),M=c$(n),j=_.useRef(!1),[N,R]=_.useState(0);return _.useEffect(()=>{const k=g.current;if(k)return k.addEventListener(ey,A),()=>k.removeEventListener(ey,A)},[A]),y.jsx(x7,{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:y.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(ey,g7);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);p$(X,m)}}j.current=!1}),onBlur:be(e.onBlur,()=>T(!1))})})}),d$="RovingFocusGroupItem",h$=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:s,...c}=e,f=sr(),d=l||f,m=w7(d$,n),p=m.currentTabStopId===d,g=c$(n),{onFocusableItemAdd:x,onFocusableItemRemove:O,currentTabStopId:w}=m;return _.useEffect(()=>{if(r)return x(),()=>O()},[r,x,O]),y.jsx(mw.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:y.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=E7(S,m.orientation,m.dir);if(E!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let A=g().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?A7(A,M+1):A.slice(M+1)}setTimeout(()=>p$(A))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:w!=null}):s})})});h$.displayName=d$;var O7={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _7(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function E7(e,t,n){const r=_7(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return O7[r]}function p$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function A7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var m$=f$,v$=h$,T7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ol=new WeakMap,Nd=new WeakMap,Rd={},ty=0,g$=function(e){return e&&(e.host||g$(e.parentNode))},j7=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=g$(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})},C7=function(e,t,n,r){var i=j7(t,Array.isArray(e)?e:[e]);Rd[n]||(Rd[n]=new WeakMap);var l=Rd[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(g){if(c.has(g))m(g);else try{var x=g.getAttribute(r),O=x!==null&&x!=="false",w=(Ol.get(g)||0)+1,S=(l.get(g)||0)+1;Ol.set(g,w),l.set(g,S),s.push(g),w===1&&O&&Nd.set(g,!0),S===1&&g.setAttribute(n,"true"),O||g.setAttribute(r,"true")}catch(E){console.error("aria-hidden: cannot operate on ",g,E)}})};return m(t),c.clear(),ty++,function(){s.forEach(function(p){var g=Ol.get(p)-1,x=l.get(p)-1;Ol.set(p,g),l.set(p,x),g||(Nd.has(p)||p.removeAttribute(r),Nd.delete(p)),x||p.removeAttribute(n)}),ty--,ty||(Ol=new WeakMap,Ol=new WeakMap,Nd=new WeakMap,Rd={})}},OS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=T7(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),C7(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 y$(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 M7(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 eh="right-scroll-bar-position",th="width-before-scroll-bar",N7="with-scroll-bars-hidden",R7="--removed-body-scroll-bar-size";function ny(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function P7(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 D7=typeof window<"u"?_.useLayoutEffect:_.useEffect,kj=new WeakMap;function k7(e,t){var n=P7(null,function(r){return e.forEach(function(i){return ny(i,r)})});return D7(function(){var r=kj.get(n);if(r){var i=new Set(r),l=new Set(e),s=n.current;i.forEach(function(c){l.has(c)||ny(c,null)}),l.forEach(function(c){i.has(c)||ny(c,s)})}kj.set(n,e)},[e]),n}function $7(e){return e}function L7(e,t){t===void 0&&(t=$7);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 I7(e){e===void 0&&(e={});var t=L7(null);return t.options=Kr({async:!0,ssr:!1},e),t}var b$=function(e){var t=e.sideCar,n=y$(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))};b$.isSideCarExport=!0;function z7(e,t){return e.useMedium(t),b$}var x$=I7(),ry=function(){},Tp=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:ry,onWheelCapture:ry,onTouchMoveCapture:ry}),i=r[0],l=r[1],s=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,p=e.shards,g=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=y$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=g,N=k7([n,t]),R=Kr(Kr({},M),i);return _.createElement(_.Fragment,null,m&&_.createElement(j,{sideCar:x$,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))});Tp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tp.classNames={fullWidth:th,zeroRight:eh};var B7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function q7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=B7();return t&&e.setAttribute("nonce",t),e}function U7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function H7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var F7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=q7())&&(U7(t,n),H7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},G7=function(){var e=F7();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w$=function(){var e=G7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},V7={left:0,top:0,right:0,gap:0},ay=function(e){return parseInt(e||"",10)||0},Y7=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[ay(n),ay(r),ay(i)]},W7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return V7;var t=Y7(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])}},K7=w$(),ql="data-scroll-locked",X7=function(e,t,n,r){var i=e.left,l=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
244
|
-
.`.concat(N7,` {
|
|
245
|
-
overflow: hidden `).concat(r,`;
|
|
246
|
-
padding-right: `).concat(c,"px ").concat(r,`;
|
|
247
|
-
}
|
|
248
|
-
body[`).concat(ql,`] {
|
|
249
|
-
overflow: hidden `).concat(r,`;
|
|
250
|
-
overscroll-behavior: contain;
|
|
251
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
252
|
-
padding-left: `.concat(i,`px;
|
|
253
|
-
padding-top: `).concat(l,`px;
|
|
254
|
-
padding-right: `).concat(s,`px;
|
|
255
|
-
margin-left:0;
|
|
256
|
-
margin-top:0;
|
|
257
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
258
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.`).concat(eh,` {
|
|
262
|
-
right: `).concat(c,"px ").concat(r,`;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.`).concat(th,` {
|
|
266
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.`).concat(eh," .").concat(eh,` {
|
|
270
|
-
right: 0 `).concat(r,`;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.`).concat(th," .").concat(th,` {
|
|
274
|
-
margin-right: 0 `).concat(r,`;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
body[`).concat(ql,`] {
|
|
278
|
-
`).concat(R7,": ").concat(c,`px;
|
|
279
|
-
}
|
|
280
|
-
`)},$j=function(){var e=parseInt(document.body.getAttribute(ql)||"0",10);return isFinite(e)?e:0},Q7=function(){_.useEffect(function(){return document.body.setAttribute(ql,($j()+1).toString()),function(){var e=$j()-1;e<=0?document.body.removeAttribute(ql):document.body.setAttribute(ql,e.toString())}},[])},Z7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;Q7();var l=_.useMemo(function(){return W7(i)},[i]);return _.createElement(K7,{styles:X7(l,!t,i,n?"":"!important")})},vw=!1;if(typeof window<"u")try{var Pd=Object.defineProperty({},"passive",{get:function(){return vw=!0,!0}});window.addEventListener("test",Pd,Pd),window.removeEventListener("test",Pd,Pd)}catch{vw=!1}var _l=vw?{passive:!1}:!1,J7=function(e){return e.tagName==="TEXTAREA"},S$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!J7(e)&&n[t]==="visible")},e9=function(e){return S$(e,"overflowY")},t9=function(e){return S$(e,"overflowX")},Lj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=O$(e,r);if(i){var l=_$(e,r),s=l[1],c=l[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},n9=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},r9=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},O$=function(e,t){return e==="v"?e9(t):t9(t)},_$=function(e,t){return e==="v"?n9(t):r9(t)},a9=function(e,t){return e==="h"&&t==="rtl"?-1:1},i9=function(e,t,n,r,i){var l=a9(e,window.getComputedStyle(t).direction),s=l*r,c=n.target,f=t.contains(c),d=!1,m=s>0,p=0,g=0;do{if(!c)break;var x=_$(e,c),O=x[0],w=x[1],S=x[2],E=w-S-l*O;(O||E)&&O$(e,c)&&(p+=E,g+=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(g)<1)&&(d=!0),d},Dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ij=function(e){return[e.deltaX,e.deltaY]},zj=function(e){return e&&"current"in e?e.current:e},o9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},l9=function(e){return`
|
|
281
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
282
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
283
|
-
`)},s9=0,El=[];function u9(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(s9++)[0],l=_.useState(w$)[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=M7([e.lockRef.current],(e.shards||[]).map(zj),!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=Dd(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=Lj(R,N);if(!k)return!0;if(k?j=R:(j=R==="v"?"h":"v",k=Lj(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 i9(I,S,w,I==="h"?A:M)},[]),f=_.useCallback(function(w){var S=w;if(!(!El.length||El[El.length-1]!==l)){var E="deltaY"in S?Ij(S):Dd(S),T=t.current.filter(function(j){return j.name===S.type&&(j.target===S.target||S.target===j.shadowParent)&&o9(j.delta,E)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var A=(s.current.shards||[]).map(zj).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:c9(E)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(M){return M!==A})},1)},[]),m=_.useCallback(function(w){n.current=Dd(w),r.current=void 0},[]),p=_.useCallback(function(w){d(w.type,Ij(w),w.target,c(w,e.lockRef.current))},[]),g=_.useCallback(function(w){d(w.type,Dd(w),w.target,c(w,e.lockRef.current))},[]);_.useEffect(function(){return El.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",f,_l),document.addEventListener("touchmove",f,_l),document.addEventListener("touchstart",m,_l),function(){El=El.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,_l),document.removeEventListener("touchmove",f,_l),document.removeEventListener("touchstart",m,_l)}},[]);var x=e.removeScrollBar,O=e.inert;return _.createElement(_.Fragment,null,O?_.createElement(l,{styles:l9(i)}):null,x?_.createElement(Z7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function c9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const f9=z7(x$,u9);var jp=_.forwardRef(function(e,t){return _.createElement(Tp,Kr({},e,{ref:t,sideCar:f9}))});jp.classNames=Tp.classNames;var gw=["Enter"," "],d9=["ArrowDown","PageUp","Home"],E$=["ArrowUp","PageDown","End"],h9=[...d9,...E$],p9={ltr:[...gw,"ArrowRight"],rtl:[...gw,"ArrowLeft"]},m9={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Jc="Menu",[ac,v9,g9]=uS(Jc),[Co,A$]=kr(Jc,[g9,As,Ap]),Cp=As(),T$=Ap(),[y9,Mo]=Co(Jc),[b9,ef]=Co(Jc),j$=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=Cp(t),[f,d]=_.useState(null),m=_.useRef(!1),p=Cr(l),g=xp(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})}},[]),y.jsx(bS,{...c,children:y.jsx(y9,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:d,children:y.jsx(b9,{scope:t,onClose:_.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:g,modal:s,children:r})})})};j$.displayName=Jc;var x9="MenuAnchor",_S=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cp(n);return y.jsx(xS,{...i,...r,ref:t})});_S.displayName=x9;var ES="MenuPortal",[w9,C$]=Co(ES,{forceMount:void 0}),M$=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,l=Mo(ES,t);return y.jsx(w9,{scope:t,forceMount:n,children:y.jsx(pr,{present:n||l.open,children:y.jsx(Qc,{asChild:!0,container:i,children:r})})})};M$.displayName=ES;var ur="MenuContent",[S9,AS]=Co(ur),N$=_.forwardRef((e,t)=>{const n=C$(ur,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Mo(ur,e.__scopeMenu),s=ef(ur,e.__scopeMenu);return y.jsx(ac.Provider,{scope:e.__scopeMenu,children:y.jsx(pr,{present:r||l.open,children:y.jsx(ac.Slot,{scope:e.__scopeMenu,children:s.modal?y.jsx(O9,{...i,ref:t}):y.jsx(_9,{...i,ref:t})})})})}),O9=_.forwardRef((e,t)=>{const n=Mo(ur,e.__scopeMenu),r=_.useRef(null),i=Ve(t,r);return _.useEffect(()=>{const l=r.current;if(l)return OS(l)},[]),y.jsx(TS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),_9=_.forwardRef((e,t)=>{const n=Mo(ur,e.__scopeMenu);return y.jsx(TS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),E9=Yl("MenuContent.ScrollLock"),TS=_.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:g,onDismiss:x,disableOutsideScroll:O,...w}=e,S=Mo(ur,n),E=ef(ur,n),T=Cp(n),A=T$(n),M=v9(n),[j,N]=_.useState(null),R=_.useRef(null),k=Ve(t,R,S.onContentChange),I=_.useRef(0),V=_.useRef(""),z=_.useRef(0),B=_.useRef(null),G=_.useRef("right"),K=_.useRef(0),X=O?jp:_.Fragment,D=O?{as:E9,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=L9(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),[]),cS();const Y=_.useCallback(W=>{var $,F;return G.current===(($=B.current)==null?void 0:$.side)&&z9(W,(F=B.current)==null?void 0:F.area)},[]);return y.jsx(S9,{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:y.jsx(X,{...D,children:y.jsx(wp,{asChild:!0,trapped:i,onMountAutoFocus:be(l,W=>{var oe;W.preventDefault(),(oe=R.current)==null||oe.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:y.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:g,onDismiss:x,children:y.jsx(m$,{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:y.jsx(wS,{role:"menu","aria-orientation":"vertical","data-state":Y$(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||!h9.includes(W.key))return;W.preventDefault();const ge=M().filter(fe=>!fe.disabled).map(fe=>fe.ref.current);E$.includes(W.key)&&ge.reverse(),k9(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(I.current),V.current="")}),onPointerMove:be(e.onPointerMove,ic(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}}))})})})})})})});N$.displayName=ur;var A9="MenuGroup",jS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(Me.div,{role:"group",...r,ref:t})});jS.displayName=A9;var T9="MenuLabel",R$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(Me.div,{...r,ref:t})});R$.displayName=T9;var ch="MenuItem",Bj="menu.itemSelect",Mp=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,l=_.useRef(null),s=ef(ch,e.__scopeMenu),c=AS(ch,e.__scopeMenu),f=Ve(t,l),d=_.useRef(!1),m=()=>{const p=l.current;if(!n&&p){const g=new CustomEvent(Bj,{bubbles:!0,cancelable:!0});p.addEventListener(Bj,x=>r==null?void 0:r(x),{once:!0}),zk(p,g),g.defaultPrevented?d.current=!1:s.onClose()}};return y.jsx(P$,{...i,ref:f,disabled:n,onClick:be(e.onClick,m),onPointerDown:p=>{var g;(g=e.onPointerDown)==null||g.call(e,p),d.current=!0},onPointerUp:be(e.onPointerUp,p=>{var g;d.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:be(e.onKeyDown,p=>{const g=c.searchRef.current!=="";n||g&&p.key===" "||gw.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Mp.displayName=ch;var P$=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,s=AS(ch,n),c=T$(n),f=_.useRef(null),d=Ve(t,f),[m,p]=_.useState(!1),[g,x]=_.useState("");return _.useEffect(()=>{const O=f.current;O&&x((O.textContent??"").trim())},[l.children]),y.jsx(ac.ItemSlot,{scope:n,disabled:r,textValue:i??g,children:y.jsx(v$,{asChild:!0,...c,focusable:!r,children:y.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,ic(O=>{r?s.onItemLeave(O):(s.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,ic(O=>s.onItemLeave(O))),onFocus:be(e.onFocus,()=>p(!0)),onBlur:be(e.onBlur,()=>p(!1))})})})}),j9="MenuCheckboxItem",D$=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return y.jsx(z$,{scope:e.__scopeMenu,checked:n,children:y.jsx(Mp,{role:"menuitemcheckbox","aria-checked":fh(n)?"mixed":n,...i,ref:t,"data-state":MS(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(fh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});D$.displayName=j9;var k$="MenuRadioGroup",[C9,M9]=Co(k$,{value:void 0,onValueChange:()=>{}}),$$=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,l=Cr(r);return y.jsx(C9,{scope:e.__scopeMenu,value:n,onValueChange:l,children:y.jsx(jS,{...i,ref:t})})});$$.displayName=k$;var L$="MenuRadioItem",I$=_.forwardRef((e,t)=>{const{value:n,...r}=e,i=M9(L$,e.__scopeMenu),l=n===i.value;return y.jsx(z$,{scope:e.__scopeMenu,checked:l,children:y.jsx(Mp,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":MS(l),onSelect:be(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});I$.displayName=L$;var CS="MenuItemIndicator",[z$,N9]=Co(CS,{checked:!1}),B$=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,l=N9(CS,n);return y.jsx(pr,{present:r||fh(l.checked)||l.checked===!0,children:y.jsx(Me.span,{...i,ref:t,"data-state":MS(l.checked)})})});B$.displayName=CS;var R9="MenuSeparator",q$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return y.jsx(Me.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});q$.displayName=R9;var P9="MenuArrow",U$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Cp(n);return y.jsx(SS,{...i,...r,ref:t})});U$.displayName=P9;var D9="MenuSub",[Bde,H$]=Co(D9),Gu="MenuSubTrigger",F$=_.forwardRef((e,t)=>{const n=Mo(Gu,e.__scopeMenu),r=ef(Gu,e.__scopeMenu),i=H$(Gu,e.__scopeMenu),l=AS(Gu,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]),y.jsx(_S,{asChild:!0,...d,children:y.jsx(P$,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Y$(n.open),...e,ref:Wc(t,i.onTriggerChange),onClick:p=>{var g;(g=e.onClick)==null||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:be(e.onPointerMove,ic(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,ic(p=>{var x,O;m();const g=(x=n.content)==null?void 0:x.getBoundingClientRect();if(g){const w=(O=n.content)==null?void 0:O.dataset.side,S=w==="right",E=S?-5:5,T=g[S?"left":"right"],A=g[S?"right":"left"];l.onPointerGraceIntentChange({area:[{x:p.clientX+E,y:p.clientY},{x:T,y:g.top},{x:A,y:g.top},{x:A,y:g.bottom},{x:T,y:g.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 g=l.searchRef.current!=="";e.disabled||g&&p.key===" "||p9[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});F$.displayName=Gu;var G$="MenuSubContent",V$=_.forwardRef((e,t)=>{const n=C$(ur,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Mo(ur,e.__scopeMenu),s=ef(ur,e.__scopeMenu),c=H$(G$,e.__scopeMenu),f=_.useRef(null),d=Ve(t,f);return y.jsx(ac.Provider,{scope:e.__scopeMenu,children:y.jsx(pr,{present:r||l.open,children:y.jsx(ac.Slot,{scope:e.__scopeMenu,children:y.jsx(TS,{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),g=m9[s.dir].includes(m.key);p&&g&&(l.onOpenChange(!1),(x=c.trigger)==null||x.focus(),m.preventDefault())})})})})})});V$.displayName=G$;function Y$(e){return e?"open":"closed"}function fh(e){return e==="indeterminate"}function MS(e){return fh(e)?"indeterminate":e?"checked":"unchecked"}function k9(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function L9(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=$9(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 I9(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,g=f.y;m>r!=g>r&&n<(p-d)*(r-m)/(g-m)+d&&(i=!i)}return i}function z9(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return I9(n,t)}function ic(e){return t=>t.pointerType==="mouse"?e(t):void 0}var B9=j$,q9=_S,U9=M$,H9=N$,F9=jS,G9=R$,V9=Mp,Y9=D$,W9=$$,K9=I$,X9=B$,Q9=q$,Z9=U$,J9=F$,eF=V$,Np="DropdownMenu",[tF]=kr(Np,[A$]),vn=A$(),[nF,W$]=tF(Np),K$=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=vn(t),d=_.useRef(null),[m,p]=Ai({prop:i,defaultProp:l??!1,onChange:s,caller:Np});return y.jsx(nF,{scope:t,triggerId:sr(),triggerRef:d,contentId:sr(),open:m,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(g=>!g),[p]),modal:c,children:y.jsx(B9,{...f,open:m,onOpenChange:p,dir:r,modal:c,children:n})})};K$.displayName=Np;var X$="DropdownMenuTrigger",Q$=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=W$(X$,n),s=vn(n);return y.jsx(q9,{asChild:!0,...s,children:y.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:Wc(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())})})})});Q$.displayName=X$;var rF="DropdownMenuPortal",Z$=e=>{const{__scopeDropdownMenu:t,...n}=e,r=vn(t);return y.jsx(U9,{...r,...n})};Z$.displayName=rF;var J$="DropdownMenuContent",eL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=W$(J$,n),l=vn(n),s=_.useRef(!1);return y.jsx(H9,{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)"}})});eL.displayName=J$;var aF="DropdownMenuGroup",tL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(F9,{...i,...r,ref:t})});tL.displayName=aF;var iF="DropdownMenuLabel",nL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(G9,{...i,...r,ref:t})});nL.displayName=iF;var oF="DropdownMenuItem",rL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(V9,{...i,...r,ref:t})});rL.displayName=oF;var lF="DropdownMenuCheckboxItem",sF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(Y9,{...i,...r,ref:t})});sF.displayName=lF;var uF="DropdownMenuRadioGroup",cF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(W9,{...i,...r,ref:t})});cF.displayName=uF;var fF="DropdownMenuRadioItem",dF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(K9,{...i,...r,ref:t})});dF.displayName=fF;var hF="DropdownMenuItemIndicator",pF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(X9,{...i,...r,ref:t})});pF.displayName=hF;var mF="DropdownMenuSeparator",aL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(Q9,{...i,...r,ref:t})});aL.displayName=mF;var vF="DropdownMenuArrow",gF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(Z9,{...i,...r,ref:t})});gF.displayName=vF;var yF="DropdownMenuSubTrigger",bF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(J9,{...i,...r,ref:t})});bF.displayName=yF;var xF="DropdownMenuSubContent",wF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=vn(n);return y.jsx(eF,{...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)"}})});wF.displayName=xF;var SF=K$,OF=Q$,_F=Z$,EF=eL,AF=tL,TF=nL,jF=rL,CF=aL;function MF({...e}){return y.jsx(SF,{"data-slot":"dropdown-menu",...e})}function NF({...e}){return y.jsx(OF,{"data-slot":"dropdown-menu-trigger",...e})}function RF({className:e,sideOffset:t=4,...n}){return y.jsx(_F,{children:y.jsx(EF,{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 qj({...e}){return y.jsx(AF,{"data-slot":"dropdown-menu-group",...e})}function Al({className:e,inset:t,variant:n="default",...r}){return y.jsx(jF,{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 PF({className:e,inset:t,...n}){return y.jsx(TF,{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 kd({className:e,...t}){return y.jsx(CF,{className:he("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const Uj=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Hj=Ue,Rp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Hj(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 g=Uj(m)||Uj(p);return i[d][g]}),c=n&&Object.entries(n).reduce((d,m)=>{let[p,g]=m;return g===void 0||(d[p]=g),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:p,className:g,...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,g]:d},[]);return Hj(e,s,f,n==null?void 0:n.class,n==null?void 0:n.className)},NS=Rp("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?To:"button";return y.jsx(l,{className:he(NS({variant:t,size:n,className:e})),"data-slot":"button",...i})}const Pp=_.forwardRef(({className:e,type:t,...n},r)=>y.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}));Pp.displayName="Input";var DF="Separator",Fj="horizontal",kF=["horizontal","vertical"],iL=_.forwardRef((e,t)=>{const{decorative:n,orientation:r=Fj,...i}=e,l=$F(r)?r:Fj,c=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return y.jsx(jo.div,{"data-orientation":l,...c,...i,ref:t})});iL.displayName=DF;function $F(e){return kF.includes(e)}var LF=iL;function Ul({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return y.jsx(LF,{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 Dp="Dialog",[oL,lL]=kr(Dp),[IF,$r]=oL(Dp),sL=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:Dp});return y.jsx(IF,{scope:t,triggerRef:c,contentRef:f,contentId:sr(),titleId:sr(),descriptionId:sr(),open:d,onOpenChange:m,onOpenToggle:_.useCallback(()=>m(p=>!p),[m]),modal:s,children:n})};sL.displayName=Dp;var uL="DialogTrigger",cL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(uL,n),l=Ve(t,i.triggerRef);return y.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":DS(i.open),...r,ref:l,onClick:be(e.onClick,i.onOpenToggle)})});cL.displayName=uL;var RS="DialogPortal",[zF,fL]=oL(RS,{forceMount:void 0}),dL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,l=$r(RS,t);return y.jsx(zF,{scope:t,forceMount:n,children:_.Children.map(r,s=>y.jsx(pr,{present:n||l.open,children:y.jsx(Qc,{asChild:!0,container:i,children:s})}))})};dL.displayName=RS;var dh="DialogOverlay",hL=_.forwardRef((e,t)=>{const n=fL(dh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=$r(dh,e.__scopeDialog);return l.modal?y.jsx(pr,{present:r||l.open,children:y.jsx(qF,{...i,ref:t})}):null});hL.displayName=dh;var BF=Yl("DialogOverlay.RemoveScroll"),qF=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(dh,n);return y.jsx(jp,{as:BF,allowPinchZoom:!0,shards:[i.contentRef],children:y.jsx(Me.div,{"data-state":DS(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),bo="DialogContent",pL=_.forwardRef((e,t)=>{const n=fL(bo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=$r(bo,e.__scopeDialog);return y.jsx(pr,{present:r||l.open,children:l.modal?y.jsx(UF,{...i,ref:t}):y.jsx(HF,{...i,ref:t})})});pL.displayName=bo;var UF=_.forwardRef((e,t)=>{const n=$r(bo,e.__scopeDialog),r=_.useRef(null),i=Ve(t,n.contentRef,r);return _.useEffect(()=>{const l=r.current;if(l)return OS(l)},[]),y.jsx(mL,{...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())})}),HF=_.forwardRef((e,t)=>{const n=$r(bo,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return y.jsx(mL,{...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()}})}),mL=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=$r(bo,n),f=_.useRef(null),d=Ve(t,f);return cS(),y.jsxs(y.Fragment,{children:[y.jsx(wp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:y.jsx(Kc,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":DS(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(GF,{titleId:c.titleId}),y.jsx(YF,{contentRef:f,descriptionId:c.descriptionId})]})]})}),PS="DialogTitle",vL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(PS,n);return y.jsx(Me.h2,{id:i.titleId,...r,ref:t})});vL.displayName=PS;var gL="DialogDescription",yL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(gL,n);return y.jsx(Me.p,{id:i.descriptionId,...r,ref:t})});yL.displayName=gL;var bL="DialogClose",xL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=$r(bL,n);return y.jsx(Me.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});xL.displayName=bL;function DS(e){return e?"open":"closed"}var wL="DialogTitleWarning",[FF,SL]=xU(wL,{contentName:bo,titleName:PS,docsSlug:"dialog"}),GF=({titleId:e})=>{const t=SL(wL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
284
|
-
|
|
285
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
286
|
-
|
|
287
|
-
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},VF="DialogDescriptionWarning",YF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${SL(VF).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},kS=sL,WF=cL,$S=dL,LS=hL,IS=pL,zS=vL,BS=yL,kp=xL;function KF({...e}){return y.jsx(kS,{"data-slot":"sheet",...e})}function XF({...e}){return y.jsx($S,{"data-slot":"sheet-portal",...e})}function QF({className:e,...t}){return y.jsx(LS,{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 ZF({className:e,children:t,side:n="right",...r}){return y.jsxs(XF,{children:[y.jsx(QF,{}),y.jsxs(IS,{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,y.jsxs(kp,{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:[y.jsx(Il,{className:"size-4"}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function JF({className:e,...t}){return y.jsx("div",{className:he("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function eG({className:e,...t}){return y.jsx(zS,{className:he("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function tG({className:e,...t}){return y.jsx(BS,{className:he("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t})}function Tt({className:e,...t}){return y.jsx("div",{className:he("animate-pulse rounded-md bg-accent",e),"data-slot":"skeleton",...t})}var OL=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"}),nG="VisuallyHidden",_L=_.forwardRef((e,t)=>y.jsx(Me.span,{...e,ref:t,style:{...OL,...e.style}}));_L.displayName=nG;var rG=_L,[$p]=kr("Tooltip",[As]),Lp=As(),EL="TooltipProvider",aG=700,yw="tooltip.open",[iG,qS]=$p(EL),AL=e=>{const{__scopeTooltip:t,delayDuration:n=aG,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)},[]),y.jsx(iG,{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})};AL.displayName=EL;var oc="Tooltip",[oG,tf]=$p(oc),TL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=e,f=qS(oc,e.__scopeTooltip),d=Lp(t),[m,p]=_.useState(null),g=sr(),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(yw))):f.onClose(),l==null||l(R)},caller:oc}),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)},[]),y.jsx(bS,{...d,children:y.jsx(oG,{scope:t,contentId:g,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})})};TL.displayName=oc;var bw="TooltipTrigger",jL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=tf(bw,n),l=qS(bw,n),s=Lp(n),c=_.useRef(null),f=Ve(t,c,i.onTriggerChange),d=_.useRef(!1),m=_.useRef(!1),p=_.useCallback(()=>d.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),y.jsx(xS,{asChild:!0,...s,children:y.jsx(Me.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:be(e.onPointerMove,g=>{g.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)})})});jL.displayName=bw;var US="TooltipPortal",[lG,sG]=$p(US,{forceMount:void 0}),CL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,l=tf(US,t);return y.jsx(lG,{scope:t,forceMount:n,children:y.jsx(pr,{present:n||l.open,children:y.jsx(Qc,{asChild:!0,container:i,children:r})})})};CL.displayName=US;var Kl="TooltipContent",ML=_.forwardRef((e,t)=>{const n=sG(Kl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,s=tf(Kl,e.__scopeTooltip);return y.jsx(pr,{present:r||s.open,children:s.disableHoverableContent?y.jsx(NL,{side:i,...l,ref:t}):y.jsx(uG,{side:i,...l,ref:t})})}),uG=_.forwardRef((e,t)=>{const n=tf(Kl,e.__scopeTooltip),r=qS(Kl,e.__scopeTooltip),i=_.useRef(null),l=Ve(t,i),[s,c]=_.useState(null),{trigger:f,onClose:d}=n,m=i.current,{onPointerInTransitChange:p}=r,g=_.useCallback(()=>{c(null),p(!1)},[p]),x=_.useCallback((O,w)=>{const S=O.currentTarget,E={x:O.clientX,y:O.clientY},T=hG(E,S.getBoundingClientRect()),A=pG(E,T),M=mG(w.getBoundingClientRect()),j=gG([...A,...M]);c(j),p(!0)},[p]);return _.useEffect(()=>()=>g(),[g]),_.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,g]),_.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=!vG(E,s);T?g():A&&(g(),d())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[f,m,s,d,g]),y.jsx(NL,{...e,ref:l})}),[cG,fG]=$p(oc,{isInside:!1}),dG=Ik("TooltipContent"),NL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,f=tf(Kl,n),d=Lp(n),{onClose:m}=f;return _.useEffect(()=>(document.addEventListener(yw,m),()=>document.removeEventListener(yw,m)),[m]),_.useEffect(()=>{if(f.trigger){const p=g=>{const x=g.target;x!=null&&x.contains(f.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,m]),y.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:y.jsxs(wS,{"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:[y.jsx(dG,{children:r}),y.jsx(cG,{scope:n,isInside:!0,children:y.jsx(rG,{id:f.contentId,role:"tooltip",children:i||r})})]})})});ML.displayName=Kl;var RL="TooltipArrow",PL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Lp(n);return fG(RL,n).isInside?null:y.jsx(SS,{...i,...r,ref:t})});PL.displayName=RL;function hG(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 pG(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 mG(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 vG(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,g=f.y;m>r!=g>r&&n<(p-d)*(r-m)/(g-m)+d&&(i=!i)}return i}function gG(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),yG(t)}function yG(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 bG=AL,xG=TL,wG=jL,SG=CL,OG=ML,_G=PL;function DL({delayDuration:e=0,...t}){return y.jsx(bG,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function kL({...e}){return y.jsx(DL,{children:y.jsx(xG,{"data-slot":"tooltip",...e})})}function $L({...e}){return y.jsx(wG,{"data-slot":"tooltip-trigger",...e})}function LL({className:e,sideOffset:t=0,children:n,...r}){return y.jsx(SG,{children:y.jsxs(OG,{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,y.jsx(_G,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const iy=768;function EG(){const[e,t]=_.useState(void 0);return _.useEffect(()=>{const n=window.matchMedia(`(max-width: ${iy-1}px)`),r=()=>{t(window.innerWidth<iy)};return n.addEventListener("change",r),t(window.innerWidth<iy),()=>n.removeEventListener("change",r)},[]),!!e}const AG="sidebar_state",TG=3600*24*7,jG="16rem",CG="18rem",MG="3rem",NG="b",IL=_.createContext(null);function Ts(){const e=_.useContext(IL);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const zL=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...s},c)=>{const f=EG(),[d,m]=_.useState(!1),[p,g]=_.useState(e),x=t??p,O=_.useCallback(T=>{const A=typeof T=="function"?T(x):T;n?n(A):g(A),document.cookie=`${AG}=${A}; path=/; max-age=${TG}`},[n,x]),w=_.useCallback(()=>f?m(T=>!T):O(T=>!T),[f,O,m]);_.useEffect(()=>{const T=A=>{A.key===NG&&(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,m,w]);return y.jsx(IL.Provider,{value:E,children:y.jsx(DL,{delayDuration:0,children:y.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":jG,"--sidebar-width-icon":MG,...i},...s,children:l})})})});zL.displayName="SidebarProvider";const nh=_.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}=Ts();return n==="none"?y.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?y.jsx(KF,{onOpenChange:m,open:d,...l,children:y.jsxs(ZF,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":CG},children:[y.jsxs(JF,{className:"sr-only",children:[y.jsx(eG,{children:"Sidebar"}),y.jsx(tG,{children:"Displays the mobile sidebar."})]}),y.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):y.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:[y.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]")}),y.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:y.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})})]})});nh.displayName="Sidebar";const BL=_.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Ts();return y.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:[y.jsx(p6,{}),y.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});BL.displayName="SidebarTrigger";const RG=_.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Ts();return y.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})});RG.displayName="SidebarRail";const qL=_.forwardRef(({className:e,...t},n)=>y.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}));qL.displayName="SidebarInset";const UL=_.forwardRef(({className:e,...t},n)=>y.jsx(Pp,{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}));UL.displayName="SidebarInput";const xw=_.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:he("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));xw.displayName="SidebarHeader";const HL=_.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:he("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));HL.displayName="SidebarFooter";const PG=_.forwardRef(({className:e,...t},n)=>y.jsx(Ul,{className:he("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));PG.displayName="SidebarSeparator";const ww=_.forwardRef(({className:e,...t},n)=>y.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}));ww.displayName="SidebarContent";const Sw=_.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:he("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",ref:n,...t}));Sw.displayName="SidebarGroup";const DG=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?To:"div";return y.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})});DG.displayName="SidebarGroupLabel";const kG=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?To:"button";return y.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})});kG.displayName="SidebarGroupAction";const Ow=_.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:he("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));Ow.displayName="SidebarGroupContent";const hh=_.forwardRef(({className:e,...t},n)=>y.jsx("ul",{className:he("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",ref:n,...t}));hh.displayName="SidebarMenu";const ph=_.forwardRef(({className:e,...t},n)=>y.jsx("li",{className:he("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));ph.displayName="SidebarMenuItem";const $G=Rp("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"}}),mh=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:l,...s},c)=>{const f=e?To:"button",{isMobile:d,state:m}=Ts(),p=y.jsx(f,{className:he($G({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}),y.jsxs(kL,{children:[y.jsx($L,{asChild:!0,children:p}),y.jsx(LL,{align:"center",hidden:m!=="collapsed"||d,side:"right",...i})]})):p});mh.displayName="SidebarMenuButton";const LG=_.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const l=t?To:"button";return y.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})});LG.displayName="SidebarMenuAction";const IG=_.forwardRef(({className:e,...t},n)=>y.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}));IG.displayName="SidebarMenuBadge";const zG=_.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return y.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&&y.jsx(Tt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),y.jsx(Tt,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});zG.displayName="SidebarMenuSkeleton";const BG=_.forwardRef(({className:e,...t},n)=>y.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}));BG.displayName="SidebarMenuSub";const qG=_.forwardRef(({...e},t)=>y.jsx("li",{ref:t,...e}));qG.displayName="SidebarMenuSubItem";const UG=_.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},l)=>{const s=e?To:"a";return y.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})});UG.displayName="SidebarMenuSubButton";const HG={theme:"system",setTheme:()=>null},FL=_.createContext(HG),GL=()=>{const e=_.useContext(FL);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function FG({user:e}){const{isMobile:t}=Ts(),{theme:n,setTheme:r}=GL(),[i,l]=_.useState(null),[s,c]=_.useState(0);_.useEffect(()=>{(async()=>{try{const g=sessionStorage.getItem("wraps-auth-token");if(!g){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=${g}`);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(g){console.error("Error fetching user info:",g)}})().catch(g=>{console.error("Failed to fetch user info:",g)})},[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 y.jsx(hh,{children:y.jsx(ph,{children:y.jsxs(MF,{children:[y.jsx(NF,{asChild:!0,children:y.jsxs(mh,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0",size:"lg",children:[y.jsxs(pj,{className:"h-8 w-8 rounded-lg",children:[y.jsx(mj,{alt:d,src:e.avatar}),y.jsx(vj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),y.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[y.jsx("span",{className:"truncate font-medium",children:d}),y.jsx("span",{className:"truncate text-xs",children:m})]}),y.jsx(o6,{className:"ml-auto size-4"})]})}),y.jsxs(RF,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[y.jsx(PF,{className:"p-0 font-normal",children:y.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[y.jsxs(pj,{className:"h-8 w-8 rounded-lg",children:[y.jsx(mj,{alt:d,src:e.avatar}),y.jsx(vj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),y.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[y.jsx("span",{className:"truncate font-medium",children:d}),y.jsx("span",{className:"truncate text-xs",children:m}),(i==null?void 0:i.accountId)&&i.accountId!==i.accountAlias&&y.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:i.accountId})]})]})}),y.jsx(kd,{}),y.jsx(qj,{children:y.jsxs(Al,{onClick:()=>window.open("https://wraps.dev/pricing","_blank"),children:[y.jsx(g6,{}),"Upgrade Plan"]})}),y.jsx(kd,{}),y.jsxs(qj,{children:[y.jsxs(Al,{onClick:()=>window.open("https://wraps.dev/account","_blank"),children:[y.jsx(r6,{}),"Account"]}),y.jsxs(Al,{onClick:()=>window.open("https://wraps.dev/billing","_blank"),children:[y.jsx(u6,{}),"Billing"]}),y.jsxs(Al,{onClick:()=>window.open("https://wraps.dev/changelog","_blank"),children:[y.jsx(a6,{}),"Product Updates"]})]}),y.jsx(kd,{}),y.jsxs(Al,{onClick:()=>r(n==="dark"?"light":"dark"),children:[n==="dark"?y.jsx(y6,{}):y.jsx(d6,{}),n==="dark"?"Light Mode":"Dark Mode"]}),y.jsx(kd,{}),y.jsxs(Al,{onClick:f,children:[y.jsx(Il,{}),"Close Console"]})]})]})})})}const Tl={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:oS,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:Ll,isActive:!1,subItems:[{title:"Emails",icon:Ll,url:"/email"},{title:"Metrics",icon:i6,url:"/email/metrics"},{title:"Settings",icon:v6,url:"/email/settings"}]}]};function GG({...e}){const t=ra(),n=Fc(),{setOpen:r,state:i}=Ts(),{theme:l}=GL(),s=_.useCallback(()=>t.pathname==="/"?Tl.navMain[0]:t.pathname.startsWith("/email")?Tl.navMain[1]:Tl.navMain[0],[t.pathname]),[c,f]=_.useState(s());return _.useEffect(()=>{f(s())},[t.pathname,s]),y.jsxs(nh,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[y.jsxs(nh,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[y.jsx(xw,{children:y.jsx(hh,{children:y.jsx(ph,{children:y.jsx(mh,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{f(Tl.navMain[0]),r(!1)},size:"lg",children:y.jsxs(ah,{to:"/",children:[y.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg",children:y.jsx("img",{alt:"Wraps",className:"size-8 object-contain",src:l==="dark"?"/wraps-dark.png":"/wraps-light.png"})}),y.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[y.jsx("span",{className:"truncate font-semibold",children:"Wraps"}),y.jsx("span",{className:"truncate text-xs",children:"Console"})]})]})})})})}),y.jsx(ww,{children:y.jsx(Sw,{children:y.jsx(Ow,{className:"px-1.5 md:px-0",children:y.jsx(hh,{children:Tl.navMain.filter(d=>!d.isDashboard).map(d=>y.jsx(ph,{children:y.jsxs(mh,{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:[y.jsx(d.icon,{}),y.jsx("span",{children:d.title})]})},d.title))})})})}),y.jsx(HL,{children:y.jsx(FG,{user:Tl.user})})]}),i==="expanded"&&y.jsx(nh,{className:"hidden flex-1 md:flex",collapsible:"none",children:c&&!c.isDashboard&&c.subItems?y.jsxs(y.Fragment,{children:[y.jsxs(xw,{className:"gap-3.5 border-b p-4",children:[y.jsx("div",{className:"flex w-full items-center justify-between",children:y.jsxs("div",{className:"flex items-center gap-2 font-medium text-base text-foreground",children:[y.jsx(c.icon,{className:"size-4"}),c.title]})}),y.jsx(UL,{placeholder:"Search..."})]}),y.jsx(ww,{children:y.jsx(Sw,{className:"px-0",children:y.jsx(Ow,{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 y.jsxs(ah,{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:[y.jsx(d.icon,{className:"size-4 shrink-0"}),y.jsx("span",{className:"font-medium",children:d.title})]},d.title)})})})})]}):y.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center",children:y.jsxs("div",{className:"text-muted-foreground",children:[y.jsx(oS,{className:"mx-auto mb-4 size-12 opacity-50"}),y.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const VG=Rp("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?To:"span";return y.jsx(i,{className:he(VG({variant:t}),e),"data-slot":"badge",...r})}function hn({className:e,...t}){return y.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 pn({className:e,...t}){return y.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 dr({className:e,...t}){return y.jsx("div",{className:he("font-semibold leading-none",e),"data-slot":"card-title",...t})}function Rr({className:e,...t}){return y.jsx("div",{className:he("text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function Cn({className:e,...t}){return y.jsx("div",{className:he("px-6",e),"data-slot":"card-content",...t})}const YG={sent:Ll,delivered:bk,bounced:Il,complained:Il,opened:Ll,clicked:Ll,failed:Il},WG={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"},KG={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function XG(){const{id:e}=i8(),t=Fc(),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);_.useEffect(()=>{async function m(){var p,g,x;try{l(!0),c(null);const O=sessionStorage.getItem("wraps-auth-token");if(!O)throw new Error("Authentication token not found");const w=encodeURIComponent(e||"");console.log("Fetching email with ID:",e),console.log("Encoded ID:",w),console.log("Full URL:",`/api/emails/${w}?token=${O.substring(0,8)}...`);const S=await fetch(`/api/emails/${w}?token=${O}`);if(!S.ok){let A="Failed to fetch email details";try{A=(await S.json()).error||A}catch{A=`${S.status}: ${S.statusText}`}throw new Error(A)}const E=S.headers.get("content-type");if(!(E&&E.includes("application/json"))){const A=await S.text();throw console.error("Non-JSON response:",A),new Error("Server returned non-JSON response")}const T=await S.json();console.log("Email data received:",{id:T.id,hasHtmlBody:!!T.htmlBody,hasTextBody:!!T.textBody,htmlBodyLength:((p=T.htmlBody)==null?void 0:p.length)||0,textBodyLength:((g=T.textBody)==null?void 0:g.length)||0,events:((x=T.events)==null?void 0:x.length)||0}),r(T)}catch(O){const w=O instanceof Error?O.message:"Unknown error";c(w),console.error("Error fetching email details:",O)}finally{l(!1)}}e&&m()},[e]);const f=m=>new Date(m).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),d=m=>new Date(m).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});return i?y.jsx("div",{className:"flex h-[600px] items-center justify-center",children:y.jsx("div",{className:"text-muted-foreground",children:"Loading email details..."})}):s?y.jsxs("div",{className:"space-y-4",children:[y.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[y.jsx(Gg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),y.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]}):n?y.jsxs("div",{className:"space-y-6",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[y.jsx(Gg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),y.jsx(dn,{variant:KG[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1)})]}),y.jsxs(hn,{children:[y.jsx(pn,{children:y.jsx("div",{className:"flex items-start justify-between",children:y.jsxs("div",{className:"space-y-1.5",children:[y.jsx(dr,{className:"text-2xl",children:n.subject}),y.jsx(Rr,{className:"font-mono text-xs",children:n.messageId})]})})}),y.jsx(Cn,{className:"space-y-4",children:y.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),y.jsx("div",{className:"font-mono text-sm",children:n.from})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),y.jsx("div",{className:"font-mono text-sm",children:n.to.length>0?n.to.join(", "):"(no recipients)"})]}),n.replyTo&&y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"text-muted-foreground text-sm",children:"REPLY-TO"}),y.jsx("div",{className:"font-mono text-sm",children:n.replyTo})]}),y.jsxs("div",{className:"space-y-1",children:[y.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),y.jsxs(Dt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:[y.jsx("span",{className:"sr-only",children:"Copy ID"}),"📋"]})]})]})]})})]}),y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Email Events"}),y.jsx(Rr,{children:"Lifecycle of this email from send to delivery"})]}),y.jsx(Cn,{children:y.jsx("div",{className:"space-y-4",children:n.events.length===0?y.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((m,p)=>{const g=YG[m.type]||uw,x=p===n.events.length-1;return y.jsx("div",{children:y.jsxs("div",{className:"flex gap-4",children:[y.jsxs("div",{className:"flex flex-col items-center",children:[y.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${WG[m.type]}`,children:y.jsx(g,{className:"h-4 w-4"})}),!x&&y.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),y.jsxs("div",{className:"flex-1 pb-6",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("div",{className:"font-medium capitalize",children:m.type}),y.jsx("div",{className:"text-muted-foreground text-sm",children:f(m.timestamp)})]}),y.jsx("div",{className:"text-muted-foreground text-sm",children:d(m.timestamp)}),m.metadata&&Object.keys(m.metadata).length>0&&y.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:y.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(m.metadata,null,2)})})]})]})},`${m.type}-${m.timestamp}`)})})})]})]}):y.jsxs("div",{className:"space-y-4",children:[y.jsxs(Dt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[y.jsx(Gg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),y.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"Email not found"})]})}function Gj(e,[t,n]){return Math.min(n,Math.max(t,e))}function QG(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 ZG=[" ","Enter","ArrowUp","ArrowDown"],JG=[" ","Enter"],xo="Select",[Ip,zp,eV]=uS(xo),[js]=kr(xo,[eV,As]),Bp=As(),[tV,Mi]=js(xo),[nV,rV]=js(xo),VL=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:g,required:x,form:O}=e,w=Bp(t),[S,E]=_.useState(null),[T,A]=_.useState(null),[M,j]=_.useState(!1),N=xp(d),[R,k]=Ai({prop:r,defaultProp:i??!1,onChange:l,caller:xo}),[I,V]=Ai({prop:s,defaultProp:c,onChange:f,caller:xo}),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 y.jsx(bS,{...w,children:y.jsxs(tV,{required:x,scope:t,trigger:S,onTriggerChange:E,valueNode:T,onValueNodeChange:A,valueNodeHasChildren:M,onValueNodeHasChildrenChange:j,contentId:sr(),value:I,onValueChange:V,open:R,onOpenChange:k,dir:N,triggerPointerDownPosRef:z,disabled:g,children:[y.jsx(Ip.Provider,{scope:t,children:y.jsx(nV,{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?y.jsxs(pI,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:p,value:I,onChange:D=>V(D.target.value),disabled:g,form:O,children:[I===void 0?y.jsx("option",{value:""}):null,Array.from(G)]},X):null]})})};VL.displayName=xo;var YL="SelectTrigger",WL=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=Bp(n),s=Mi(YL,n),c=s.disabled||r,f=Ve(t,s.onTriggerChange),d=zp(n),m=_.useRef("touch"),[p,g,x]=vI(w=>{const S=d().filter(A=>!A.disabled),E=S.find(A=>A.value===s.value),T=gI(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 y.jsx(xS,{asChild:!0,...l,children:y.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":mI(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&&g(w.key),!(S&&w.key===" ")&&ZG.includes(w.key)&&(O(),w.preventDefault())})})})});WL.displayName=YL;var KL="SelectValue",XL=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:s="",...c}=e,f=Mi(KL,n),{onValueNodeHasChildrenChange:d}=f,m=l!==void 0,p=Ve(t,f.onValueNodeChange);return $t(()=>{d(m)},[d,m]),y.jsx(Me.span,{...c,ref:p,style:{pointerEvents:"none"},children:mI(f.value)?y.jsx(y.Fragment,{children:s}):l})});XL.displayName=KL;var aV="SelectIcon",QL=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return y.jsx(Me.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});QL.displayName=aV;var iV="SelectPortal",ZL=e=>y.jsx(Qc,{asChild:!0,...e});ZL.displayName=iV;var wo="SelectContent",JL=_.forwardRef((e,t)=>{const n=Mi(wo,e.__scopeSelect),[r,i]=_.useState();if($t(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?Vc.createPortal(y.jsx(eI,{scope:e.__scopeSelect,children:y.jsx(Ip.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),l):null}return y.jsx(tI,{...e,ref:t})});JL.displayName=wo;var Sr=10,[eI,Ni]=js(wo),oV="SelectContentImpl",lV=Yl("SelectContent.RemoveScroll"),tI=_.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:g,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S,...E}=e,T=Mi(wo,n),[A,M]=_.useState(null),[j,N]=_.useState(null),R=Ve(t,fe=>M(fe)),[k,I]=_.useState(null),[V,z]=_.useState(null),B=zp(n),[G,K]=_.useState(!1),X=_.useRef(!1);_.useEffect(()=>{if(A)return OS(A)},[A]),cS();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,$]=vI(fe=>{const pe=B().filter(ye=>!ye.disabled),ae=pe.find(ye=>ye.ref.current===document.activeElement),me=gI(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"?_w:nI,ge=de===_w?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:g,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S}:{};return y.jsx(eI,{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:y.jsx(jp,{as:lV,allowPinchZoom:!0,children:y.jsx(wp,{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:y.jsx(Kc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:y.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()}})})})})})})});tI.displayName=oV;var sV="SelectItemAlignedPosition",nI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Mi(wo,n),s=Ni(wo,n),[c,f]=_.useState(null),[d,m]=_.useState(null),p=Ve(t,R=>m(R)),g=zp(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,We=Math.max(Oe,k.width),He=window.innerWidth-Sr,nt=Gj(re,[Sr,Math.max(Sr,He-We)]);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,We=Math.max(Oe,k.width),He=window.innerWidth-Sr,nt=Gj(re,[Sr,Math.max(Sr,He-We)]);c.style.minWidth=Oe+"px",c.style.right=nt+"px"}const z=g(),B=window.innerHeight-Sr*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-Sr,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=`${Sr}px 0`,c.style.minHeight=oe+"px",c.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,l.trigger,l.valueNode,c,d,w,S,E,l.dir,r]);$t(()=>A(),[A]);const[M,j]=_.useState();$t(()=>{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 y.jsx(cV,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:y.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:y.jsx(Me.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});nI.displayName=sV;var uV="SelectPopperPosition",_w=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Sr,...l}=e,s=Bp(n);return y.jsx(wS,{...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)"}})});_w.displayName=uV;var[cV,HS]=js(wo,{}),Ew="SelectViewport",rI=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Ni(Ew,n),s=HS(Ew,n),c=Ve(t,l.onViewportChange),f=_.useRef(0);return y.jsxs(y.Fragment,{children:[y.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}),y.jsx(Ip.Slot,{scope:n,children:y.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:g}=s;if(g!=null&&g.current&&p){const x=Math.abs(f.current-m.scrollTop);if(x>0){const O=window.innerHeight-Sr*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})})})]})});rI.displayName=Ew;var aI="SelectGroup",[fV,dV]=js(aI),hV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=sr();return y.jsx(fV,{scope:n,id:i,children:y.jsx(Me.div,{role:"group","aria-labelledby":i,...r,ref:t})})});hV.displayName=aI;var iI="SelectLabel",pV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=dV(iI,n);return y.jsx(Me.div,{id:i.id,...r,ref:t})});pV.displayName=iI;var vh="SelectItem",[mV,oI]=js(vh),lI=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...s}=e,c=Mi(vh,n),f=Ni(vh,n),d=c.value===r,[m,p]=_.useState(l??""),[g,x]=_.useState(!1),O=Ve(t,T=>{var A;return(A=f.itemRefCallback)==null?void 0:A.call(f,T,r,i)}),w=sr(),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 y.jsx(mV,{scope:n,value:r,disabled:i,textId:w,isSelected:d,onItemTextChange:_.useCallback(T=>{p(A=>A||((T==null?void 0:T.textContent)??"").trim())},[]),children:y.jsx(Ip.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:y.jsx(Me.div,{role:"option","aria-labelledby":w,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"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===" "||(JG.includes(T.key)&&E(),T.key===" "&&T.preventDefault())})})})})});lI.displayName=vh;var Vu="SelectItemText",sI=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,s=Mi(Vu,n),c=Ni(Vu,n),f=oI(Vu,n),d=rV(Vu,n),[m,p]=_.useState(null),g=Ve(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(()=>y.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=d;return $t(()=>(w(O),()=>S(O)),[w,S,O]),y.jsxs(y.Fragment,{children:[y.jsx(Me.span,{id:f.textId,...l,ref:g}),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Vc.createPortal(l.children,s.valueNode):null]})});sI.displayName=Vu;var uI="SelectItemIndicator",cI=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return oI(uI,n).isSelected?y.jsx(Me.span,{"aria-hidden":!0,...r,ref:t}):null});cI.displayName=uI;var Aw="SelectScrollUpButton",fI=_.forwardRef((e,t)=>{const n=Ni(Aw,e.__scopeSelect),r=HS(Aw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ve(t,r.onScrollButtonChange);return $t(()=>{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?y.jsx(hI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});fI.displayName=Aw;var Tw="SelectScrollDownButton",dI=_.forwardRef((e,t)=>{const n=Ni(Tw,e.__scopeSelect),r=HS(Tw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ve(t,r.onScrollButtonChange);return $t(()=>{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?y.jsx(hI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});dI.displayName=Tw;var hI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Ni("SelectScrollButton",n),s=_.useRef(null),c=zp(n),f=_.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return _.useEffect(()=>()=>f(),[f]),$t(()=>{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]),y.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()})})}),vV="SelectSeparator",gV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return y.jsx(Me.div,{"aria-hidden":!0,...r,ref:t})});gV.displayName=vV;var jw="SelectArrow",yV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Bp(n),l=Mi(jw,n),s=Ni(jw,n);return l.open&&s.position==="popper"?y.jsx(SS,{...i,...r,ref:t}):null});yV.displayName=jw;var bV="SelectBubbleInput",pI=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),l=Ve(r,i),s=QG(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]),y.jsx(Me.select,{...n,style:{...OL,...n.style},ref:l,defaultValue:t})});pI.displayName=bV;function mI(e){return e===""||e===void 0}function vI(e){const t=Cr(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 gI(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=xV(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 xV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wV=VL,SV=WL,OV=XL,_V=QL,EV=ZL,AV=JL,TV=rI,jV=lI,CV=sI,MV=cI,NV=fI,RV=dI;function Cw({...e}){return y.jsx(wV,{"data-slot":"select",...e})}function Mw({...e}){return y.jsx(OV,{"data-slot":"select-value",...e})}function Nw({className:e,size:t="default",children:n,...r}){return y.jsxs(SV,{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,y.jsx(_V,{asChild:!0,children:y.jsx(Ss,{className:"size-4 opacity-50"})})]})}function Rw({className:e,children:t,position:n="popper",align:r="center",...i}){return y.jsx(EV,{children:y.jsxs(AV,{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:[y.jsx(PV,{}),y.jsx(TV,{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}),y.jsx(DV,{})]})})}function Vt({className:e,children:t,...n}){return y.jsxs(jV,{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:[y.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(MV,{children:y.jsx(bk,{className:"size-4"})})}),y.jsx(CV,{children:t})]})}function PV({className:e,...t}){return y.jsx(NV,{className:he("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:y.jsx(Yc,{className:"size-4"})})}function DV({className:e,...t}){return y.jsx(RV,{className:he("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:y.jsx(Ss,{className:"size-4"})})}function kV({className:e,...t}){return y.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:y.jsx("table",{className:he("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})}function $V({className:e,...t}){return y.jsx("thead",{className:he("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function LV({className:e,...t}){return y.jsx("tbody",{className:he("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function $d({className:e,...t}){return y.jsx("tr",{className:he("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),"data-slot":"table-row",...t})}function Pu({className:e,...t}){return y.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 y.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})}var qp="Tabs",[IV]=kr(qp,[Ap]),yI=Ap(),[zV,FS]=IV(qp),bI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:s="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=xp(c),[p,g]=Ai({prop:r,onChange:i,defaultProp:l??"",caller:qp});return y.jsx(zV,{scope:n,baseId:sr(),value:p,onValueChange:g,orientation:s,dir:m,activationMode:f,children:y.jsx(Me.div,{dir:m,"data-orientation":s,...d,ref:t})})});bI.displayName=qp;var xI="TabsList",wI=_.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,l=FS(xI,n),s=yI(n);return y.jsx(m$,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:r,children:y.jsx(Me.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});wI.displayName=xI;var SI="TabsTrigger",OI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,s=FS(SI,n),c=yI(n),f=AI(s.baseId,r),d=TI(s.baseId,r),m=r===s.value;return y.jsx(v$,{asChild:!0,...c,focusable:!i,active:m,children:y.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)})})})});OI.displayName=SI;var _I="TabsContent",EI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:l,...s}=e,c=FS(_I,n),f=AI(c.baseId,r),d=TI(c.baseId,r),m=r===c.value,p=_.useRef(m);return _.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),y.jsx(pr,{present:i||m,children:({present:g})=>y.jsx(Me.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!g,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&l})})});EI.displayName=_I;function AI(e,t){return`${e}-trigger-${t}`}function TI(e,t){return`${e}-content-${t}`}var BV=bI,qV=wI,UV=OI,HV=EI;function FV({className:e,...t}){return y.jsx(BV,{className:he("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function GV({className:e,...t}){return y.jsx(qV,{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 Vj({className:e,...t}){return y.jsx(UV,{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 Yj({className:e,...t}){return y.jsx(HV,{className:he("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}const oy={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 VV(){const e=Fc(),[t,n]=_.useState(""),[r,i]=_.useState("15"),[l,s]=_.useState("all"),[c,f]=_.useState("sending"),[d,m]=_.useState([]),[p,g]=_.useState(!0),[x,O]=_.useState(null);_.useEffect(()=>{async function E(){try{g(!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{g(!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 y.jsx(y.Fragment,{children:y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Emails"}),y.jsx(Rr,{children:"View and manage your email sending history"})]}),y.jsx(Cn,{children:y.jsxs(FV,{onValueChange:f,value:c,children:[y.jsxs(GV,{children:[y.jsx(Vj,{value:"sending",children:"Sending"}),y.jsx(Vj,{value:"receiving",children:"Receiving"})]}),y.jsxs(Yj,{className:"space-y-4",value:"sending",children:[x&&y.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:x}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsxs("div",{className:"relative flex-1",children:[y.jsx(m6,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),y.jsx(Pp,{className:"pl-8",onChange:E=>n(E.target.value),placeholder:"Search...",value:t})]}),y.jsxs(Cw,{onValueChange:i,value:r,children:[y.jsx(Nw,{className:"w-[180px]",children:y.jsx(Mw,{})}),y.jsxs(Rw,{children:[y.jsx(Vt,{value:"1",children:"Last 24 hours"}),y.jsx(Vt,{value:"7",children:"Last 7 days"}),y.jsx(Vt,{value:"15",children:"Last 15 days"}),y.jsx(Vt,{value:"30",children:"Last 30 days"}),y.jsx(Vt,{value:"90",children:"Last 90 days"})]})]}),y.jsxs(Cw,{onValueChange:s,value:l,children:[y.jsx(Nw,{className:"w-[180px]",children:y.jsx(Mw,{})}),y.jsxs(Rw,{children:[y.jsx(Vt,{value:"all",children:"All Statuses"}),y.jsx(Vt,{value:"clicked",children:"Clicked"}),y.jsx(Vt,{value:"opened",children:"Opened"}),y.jsx(Vt,{value:"delivered",children:"Delivered"}),y.jsx(Vt,{value:"sent",children:"Sent"}),y.jsx(Vt,{value:"bounced",children:"Bounced"}),y.jsx(Vt,{value:"complained",children:"Complained"}),y.jsx(Vt,{value:"failed",children:"Failed"})]})]}),y.jsxs(Dt,{size:"icon",variant:"outline",children:[y.jsx("span",{className:"sr-only",children:"Download"}),"↓"]})]}),y.jsx("div",{className:"rounded-md border",children:y.jsxs(kV,{children:[y.jsx($V,{children:y.jsxs($d,{children:[y.jsx(Pu,{children:"To"}),y.jsx(Pu,{children:"Status"}),y.jsx(Pu,{children:"Subject"}),y.jsx(Pu,{children:"Sent"}),y.jsx(Pu,{className:"w-[50px]"})]})}),y.jsx(LV,{children:p?y.jsx($d,{children:y.jsx(io,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):w.length===0?y.jsx($d,{children:y.jsx(io,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No emails found"})}):w.map(E=>{var T,A,M;return y.jsxs($d,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/email/${E.id}`),children:[y.jsx(io,{className:"font-mono text-sm",children:E.to.length>0?y.jsxs(y.Fragment,{children:[E.to[0],E.to.length>1&&y.jsxs("span",{className:"ml-1 text-muted-foreground text-xs",children:["+",E.to.length-1," more"]})]}):y.jsx("span",{className:"text-muted-foreground",children:"(no recipients)"})}),y.jsx(io,{children:y.jsxs(kL,{children:[y.jsx($L,{asChild:!0,children:y.jsx(dn,{className:(T=oy[E.status])==null?void 0:T.className,variant:((A=oy[E.status])==null?void 0:A.variant)??"default",children:E.status.charAt(0).toUpperCase()+E.status.slice(1)})}),y.jsx(LL,{children:y.jsx("p",{children:((M=oy[E.status])==null?void 0:M.description)??"Unknown status"})})]})}),y.jsx(io,{className:"max-w-[400px] truncate",children:E.subject}),y.jsx(io,{className:"text-muted-foreground",children:S(E.timestamp)}),y.jsx(io,{children:y.jsxs(Dt,{onClick:j=>{j.stopPropagation()},size:"icon",variant:"ghost",children:[y.jsx("span",{className:"sr-only",children:"More options"}),"⋯"]})})]},E.id)})})]})}),w.length>0&&!p&&y.jsx("div",{className:"flex items-center justify-between text-muted-foreground text-sm",children:y.jsxs("div",{children:["Showing ",w.length," of ",d.length," emails"]})})]}),y.jsx(Yj,{value:"receiving",children:y.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})})}const jI=6048e5,YV=864e5,Wj=Symbol.for("constructDateFrom");function Ci(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Wj in e?e[Wj](t):e instanceof Date?new e.constructor(t):new Date(t)}function Lr(e,t){return Ci(t||e,e)}let WV={};function Up(){return WV}function lc(e,t){var c,f,d,m;const n=Up(),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 gh(e,t){return lc(e,{...t,weekStartsOn:1})}function CI(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=gh(i),s=Ci(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=gh(s);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function Kj(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 KV(e,...t){const n=Ci.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function Xj(e,t){const n=Lr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function XV(e,t,n){const[r,i]=KV(n==null?void 0:n.in,e,t),l=Xj(r),s=Xj(i),c=+l-Kj(l),f=+s-Kj(s);return Math.round((c-f)/YV)}function QV(e,t){const n=CI(e,t),r=Ci(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),gh(r)}function ZV(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function JV(e){return!(!ZV(e)&&typeof e!="number"||isNaN(+Lr(e)))}function eY(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 tY={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"}},nY=(e,t,n)=>{let r;const i=tY[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 ly(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const rY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},aY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oY={date:ly({formats:rY,defaultWidth:"full"}),time:ly({formats:aY,defaultWidth:"full"}),dateTime:ly({formats:iY,defaultWidth:"full"})},lY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sY=(e,t,n,r)=>lY[e];function Du(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 uY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fY={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"]},dY={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"]},hY={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"}},pY={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"}},mY=(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"},vY={ordinalNumber:mY,era:Du({values:uY,defaultWidth:"wide"}),quarter:Du({values:cY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Du({values:fY,defaultWidth:"wide"}),day:Du({values:dY,defaultWidth:"wide"}),dayPeriod:Du({values:hY,defaultWidth:"wide",formattingValues:pY,defaultFormattingWidth:"wide"})};function ku(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)?yY(c,p=>p.test(s)):gY(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 gY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function yY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function bY(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 xY=/^(\d+)(th|st|nd|rd)?/i,wY=/\d+/i,SY={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},OY={any:[/^b/i,/^(a|c)/i]},_Y={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},EY={any:[/1/i,/2/i,/3/i,/4/i]},AY={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},TY={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]},jY={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},CY={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]},MY={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},NY={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}},RY={ordinalNumber:bY({matchPattern:xY,parsePattern:wY,valueCallback:e=>parseInt(e,10)}),era:ku({matchPatterns:SY,defaultMatchWidth:"wide",parsePatterns:OY,defaultParseWidth:"any"}),quarter:ku({matchPatterns:_Y,defaultMatchWidth:"wide",parsePatterns:EY,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ku({matchPatterns:AY,defaultMatchWidth:"wide",parsePatterns:TY,defaultParseWidth:"any"}),day:ku({matchPatterns:jY,defaultMatchWidth:"wide",parsePatterns:CY,defaultParseWidth:"any"}),dayPeriod:ku({matchPatterns:MY,defaultMatchWidth:"any",parsePatterns:NY,defaultParseWidth:"any"})},PY={code:"en-US",formatDistance:nY,formatLong:oY,formatRelative:sY,localize:vY,match:RY,options:{weekStartsOn:0,firstWeekContainsDate:1}};function DY(e,t){const n=Lr(e,t==null?void 0:t.in);return XV(n,eY(n))+1}function kY(e,t){const n=Lr(e,t==null?void 0:t.in),r=+gh(n)-+QV(n);return Math.round(r/jI)+1}function MI(e,t){var m,p,g,x;const n=Lr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Up(),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=(g=i.locale)==null?void 0:g.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=lc(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=lc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function $Y(e,t){var c,f,d,m;const n=Up(),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=MI(e,t),l=Ci((t==null?void 0:t.in)||e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),lc(l,t)}function LY(e,t){const n=Lr(e,t==null?void 0:t.in),r=+lc(n,t)-+$Y(n,t);return Math.round(r/jI)+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)}},jl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qj={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=MI(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=CI(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=LY(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):tt(i,t.length)},I:function(e,t,n){const r=kY(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=DY(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=jl.noon:r===0?i=jl.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=jl.evening:r>=12?i=jl.afternoon:r>=4?i=jl.morning:i=jl.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 Jj(r);case"XXXX":case"XX":return lo(r);case"XXXXX":case"XXX":default:return lo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Jj(r);case"xxxx":case"xx":return lo(r);case"xxxxx":case"xxx":default:return lo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Zj(r,":");case"OOOO":default:return"GMT"+lo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Zj(r,":");case"zzzz":default:return"GMT"+lo(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 Zj(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 Jj(e,t){return e%60===0?(e>0?"-":"+")+tt(Math.abs(e)/60,2):lo(e,t)}function lo(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 eC=(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"})}},NI=(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"})}},IY=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return eC(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}}",eC(r,t)).replace("{{time}}",NI(i,t))},zY={p:NI,P:IY},BY=/^D+$/,qY=/^Y+$/,UY=["D","DD","YY","YYYY"];function HY(e){return BY.test(e)}function FY(e){return qY.test(e)}function GY(e,t,n){const r=VY(e,t,n);if(console.warn(r),UY.includes(e))throw new RangeError(r)}function VY(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 YY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,KY=/^'([^]*?)'?$/,XY=/''/g,QY=/[a-zA-Z]/;function tC(e,t,n){var m,p,g,x;const r=Up(),i=r.locale??PY,l=r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,c=Lr(e,n==null?void 0:n.in);if(!JV(c))throw new RangeError("Invalid time value");let f=t.match(WY).map(O=>{const w=O[0];if(w==="p"||w==="P"){const S=zY[w];return S(O,i.formatLong)}return O}).join("").match(YY).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const w=O[0];if(w==="'")return{isToken:!1,value:ZY(O)};if(Qj[w])return{isToken:!0,value:O};if(w.match(QY))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;(FY(w)||HY(w))&&GY(w,t,String(e));const S=Qj[w[0]];return S(c,w,i.localize,d)}).join("")}function ZY(e){const t=e.match(KY);return t?t[1].replace(XY,"'"):e}var sy,nC;function Nn(){if(nC)return sy;nC=1;var e=Array.isArray;return sy=e,sy}var uy,rC;function RI(){if(rC)return uy;rC=1;var e=typeof Td=="object"&&Td&&Td.Object===Object&&Td;return uy=e,uy}var cy,aC;function ia(){if(aC)return cy;aC=1;var e=RI(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return cy=n,cy}var fy,iC;function nf(){if(iC)return fy;iC=1;var e=ia(),t=e.Symbol;return fy=t,fy}var dy,oC;function JY(){if(oC)return dy;oC=1;var e=nf(),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 dy=l,dy}var hy,lC;function eW(){if(lC)return hy;lC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return hy=n,hy}var py,sC;function qa(){if(sC)return py;sC=1;var e=nf(),t=JY(),n=eW(),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 py=s,py}var my,uC;function Ua(){if(uC)return my;uC=1;function e(t){return t!=null&&typeof t=="object"}return my=e,my}var vy,cC;function Cs(){if(cC)return vy;cC=1;var e=qa(),t=Ua(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return vy=r,vy}var gy,fC;function GS(){if(fC)return gy;fC=1;var e=Nn(),t=Cs(),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 gy=i,gy}var yy,dC;function Ri(){if(dC)return yy;dC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return yy=e,yy}var by,hC;function VS(){if(hC)return by;hC=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 by=s,by}var xy,pC;function tW(){if(pC)return xy;pC=1;var e=ia(),t=e["__core-js_shared__"];return xy=t,xy}var wy,mC;function nW(){if(mC)return wy;mC=1;var e=tW(),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 wy=n,wy}var Sy,vC;function PI(){if(vC)return Sy;vC=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 Sy=n,Sy}var Oy,gC;function rW(){if(gC)return Oy;gC=1;var e=VS(),t=nW(),n=Ri(),r=PI(),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(g){if(!n(g)||t(g))return!1;var x=e(g)?m:l;return x.test(r(g))}return Oy=p,Oy}var _y,yC;function aW(){if(yC)return _y;yC=1;function e(t,n){return t==null?void 0:t[n]}return _y=e,_y}var Ey,bC;function No(){if(bC)return Ey;bC=1;var e=rW(),t=aW();function n(r,i){var l=t(r,i);return e(l)?l:void 0}return Ey=n,Ey}var Ay,xC;function Hp(){if(xC)return Ay;xC=1;var e=No(),t=e(Object,"create");return Ay=t,Ay}var Ty,wC;function iW(){if(wC)return Ty;wC=1;var e=Hp();function t(){this.__data__=e?e(null):{},this.size=0}return Ty=t,Ty}var jy,SC;function oW(){if(SC)return jy;SC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return jy=e,jy}var Cy,OC;function lW(){if(OC)return Cy;OC=1;var e=Hp(),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 Cy=i,Cy}var My,_C;function sW(){if(_C)return My;_C=1;var e=Hp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var l=this.__data__;return e?l[i]!==void 0:n.call(l,i)}return My=r,My}var Ny,EC;function uW(){if(EC)return Ny;EC=1;var e=Hp(),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 Ny=n,Ny}var Ry,AC;function cW(){if(AC)return Ry;AC=1;var e=iW(),t=oW(),n=lW(),r=sW(),i=uW();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,Ry=l,Ry}var Py,TC;function fW(){if(TC)return Py;TC=1;function e(){this.__data__=[],this.size=0}return Py=e,Py}var Dy,jC;function YS(){if(jC)return Dy;jC=1;function e(t,n){return t===n||t!==t&&n!==n}return Dy=e,Dy}var ky,CC;function Fp(){if(CC)return ky;CC=1;var e=YS();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return ky=t,ky}var $y,MC;function dW(){if(MC)return $y;MC=1;var e=Fp(),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 $y=r,$y}var Ly,NC;function hW(){if(NC)return Ly;NC=1;var e=Fp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Ly=t,Ly}var Iy,RC;function pW(){if(RC)return Iy;RC=1;var e=Fp();function t(n){return e(this.__data__,n)>-1}return Iy=t,Iy}var zy,PC;function mW(){if(PC)return zy;PC=1;var e=Fp();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 zy=t,zy}var By,DC;function Gp(){if(DC)return By;DC=1;var e=fW(),t=dW(),n=hW(),r=pW(),i=mW();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,By=l,By}var qy,kC;function WS(){if(kC)return qy;kC=1;var e=No(),t=ia(),n=e(t,"Map");return qy=n,qy}var Uy,$C;function vW(){if($C)return Uy;$C=1;var e=cW(),t=Gp(),n=WS();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Uy=r,Uy}var Hy,LC;function gW(){if(LC)return Hy;LC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Hy=e,Hy}var Fy,IC;function Vp(){if(IC)return Fy;IC=1;var e=gW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Fy=t,Fy}var Gy,zC;function yW(){if(zC)return Gy;zC=1;var e=Vp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Gy=t,Gy}var Vy,BC;function bW(){if(BC)return Vy;BC=1;var e=Vp();function t(n){return e(this,n).get(n)}return Vy=t,Vy}var Yy,qC;function xW(){if(qC)return Yy;qC=1;var e=Vp();function t(n){return e(this,n).has(n)}return Yy=t,Yy}var Wy,UC;function wW(){if(UC)return Wy;UC=1;var e=Vp();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 Wy=t,Wy}var Ky,HC;function KS(){if(HC)return Ky;HC=1;var e=vW(),t=yW(),n=bW(),r=xW(),i=wW();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,Ky=l,Ky}var Xy,FC;function DI(){if(FC)return Xy;FC=1;var e=KS(),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,Xy=n,Xy}var Qy,GC;function SW(){if(GC)return Qy;GC=1;var e=DI(),t=500;function n(r){var i=e(r,function(s){return l.size===t&&l.clear(),s}),l=i.cache;return i}return Qy=n,Qy}var Zy,VC;function OW(){if(VC)return Zy;VC=1;var e=SW(),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 Zy=r,Zy}var Jy,YC;function XS(){if(YC)return Jy;YC=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 Jy=e,Jy}var eb,WC;function _W(){if(WC)return eb;WC=1;var e=nf(),t=XS(),n=Nn(),r=Cs(),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 eb=s,eb}var tb,KC;function kI(){if(KC)return tb;KC=1;var e=_W();function t(n){return n==null?"":e(n)}return tb=t,tb}var nb,XC;function $I(){if(XC)return nb;XC=1;var e=Nn(),t=GS(),n=OW(),r=kI();function i(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return nb=i,nb}var rb,QC;function Yp(){if(QC)return rb;QC=1;var e=Cs();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return rb=t,rb}var ab,ZC;function QS(){if(ZC)return ab;ZC=1;var e=$I(),t=Yp();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 ab=n,ab}var ib,JC;function LI(){if(JC)return ib;JC=1;var e=QS();function t(n,r,i){var l=n==null?void 0:e(n,r);return l===void 0?i:l}return ib=t,ib}var EW=LI();const cr=lt(EW);var ob,eM;function AW(){if(eM)return ob;eM=1;function e(t){return t==null}return ob=e,ob}var TW=AW();const Le=lt(TW);var lb,tM;function jW(){if(tM)return lb;tM=1;var e=qa(),t=Nn(),n=Ua(),r="[object String]";function i(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==r}return lb=i,lb}var CW=jW();const So=lt(CW);var MW=VS();const De=lt(MW);var NW=Ri();const Ms=lt(NW);var sb={exports:{}},Qe={};/**
|
|
288
|
-
* @license React
|
|
289
|
-
* react-is.production.min.js
|
|
290
|
-
*
|
|
291
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
292
|
-
*
|
|
293
|
-
* This source code is licensed under the MIT license found in the
|
|
294
|
-
* LICENSE file in the root directory of this source tree.
|
|
295
|
-
*/var nM;function RW(){if(nM)return Qe;nM=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"),g=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 g: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=g,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)===g},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===g||S.$$typeof===p||S.$$typeof===l||S.$$typeof===s||S.$$typeof===f||S.$$typeof===O||S.getModuleId!==void 0)},Qe.typeOf=w,Qe}var rM;function PW(){return rM||(rM=1,sb.exports=RW()),sb.exports}var DW=PW(),ub,aM;function II(){if(aM)return ub;aM=1;var e=qa(),t=Ua(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return ub=r,ub}var cb,iM;function kW(){if(iM)return cb;iM=1;var e=II();function t(n){return e(n)&&n!=+n}return cb=t,cb}var $W=kW();const rf=lt($W);var LW=II();const IW=lt(LW);var Tr=function(t){return t===0?0:t>0?1:-1},co=function(t){return So(t)&&t.indexOf("%")===t.length-1},ve=function(t){return IW(t)&&!rf(t)},zW=function(t){return Le(t)},Bt=function(t){return ve(t)||So(t)},BW=0,af=function(t){var n=++BW;return"".concat(t||"").concat(n)},Oo=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)&&!So(t))return r;var l;if(co(t)){var s=t.indexOf("%");l=n*parseFloat(t.slice(0,s))/100}else l=+t;return rf(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},qW=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},Er=function(t,n){return ve(t)&&ve(n)?function(r){return t+r*(n-t)}:function(){return n}};function yh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):cr(r,t))===n})}var UW=function(t,n){return ve(t)&&ve(n)?t-n:So(t)&&So(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Hl(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 Pw(e){"@babel/helpers - typeof";return Pw=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},Pw(e)}var HW=["viewBox","children"],FW=["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"],oM=["points","pathLength"],fb={svg:HW,polygon:oM,polyline:oM},ZS=["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"],bh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!Ms(r))return null;var i={};return Object.keys(r).forEach(function(l){ZS.includes(l)&&(i[l]=n||function(s){return r[l](r,s)})}),i},GW=function(t,n,r){return function(i){return t(n,r,i),null}},xh=function(t,n,r){if(!Ms(t)||Pw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(l){var s=t[l];ZS.includes(l)&&typeof s=="function"&&(i||(i={}),i[l]=GW(s,n,r))}),i},VW=["children"],YW=["children"];function lM(e,t){if(e==null)return{};var n=WW(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 WW(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 Dw(e){"@babel/helpers - typeof";return Dw=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},Dw(e)}var sM={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":""},uM=null,db=null,JS=function e(t){if(t===uM&&Array.isArray(db))return db;var n=[];return _.Children.forEach(t,function(r){Le(r)||(DW.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),db=n,uM=t,n};function fr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Na(i)}):r=[Na(t)],JS(e).forEach(function(i){var l=cr(i,"type.displayName")||cr(i,"type.name");r.indexOf(l)!==-1&&n.push(i)}),n}function Un(e,t){var n=fr(e,t);return n&&n[0]}var cM=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)},KW=["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"],XW=function(t){return t&&t.type&&So(t.type)&&KW.indexOf(t.type)>=0},QW=function(t){return t&&Dw(t)==="object"&&"clipDot"in t},ZW=function(t,n,r,i){var l,s=(l=fb==null?void 0:fb[i])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!De(t)&&(i&&s.includes(n)||FW.includes(n))||r&&ZS.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),!Ms(i))return null;var l={};return Object.keys(i).forEach(function(s){var c;ZW((c=i)===null||c===void 0?void 0:c[s],s,n,r)&&(l[s]=i[s])}),l},kw=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 fM(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(!fM(l,s))return!1}return!0},fM=function(t,n){if(Le(t)&&Le(n))return!0;if(!Le(t)&&!Le(n)){var r=t.props||{},i=r.children,l=lM(r,VW),s=n.props||{},c=s.children,f=lM(s,YW);return i&&c?Hl(l,f)&&kw(i,c):!i&&!c?Hl(l,f):!1}return!1},dM=function(t,n){var r=[],i={};return JS(t).forEach(function(l,s){if(XW(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},JW=function(t){var n=t&&t.type;return n&&sM[n]?sM[n]:null},eK=function(t,n){return JS(n).indexOf(t)},tK=["children","width","height","viewBox","className","style","title","desc"];function $w(){return $w=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},$w.apply(this,arguments)}function nK(e,t){if(e==null)return{};var n=rK(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 rK(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 Lw(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=nK(e,tK),m=i||{width:n,height:r,x:0,y:0},p=Ue("recharts-surface",l);return L.createElement("svg",$w({},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 aK=["children","className"];function Iw(){return Iw=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},Iw.apply(this,arguments)}function iK(e,t){if(e==null)return{};var n=oK(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 oK(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=iK(e,aK),l=Ue("recharts-layer",r);return L.createElement("g",Iw({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]},hb,hM;function lK(){if(hM)return hb;hM=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 hb=e,hb}var pb,pM;function sK(){if(pM)return pb;pM=1;var e=lK();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 pb=t,pb}var mb,mM;function zI(){if(mM)return mb;mM=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 mb=f,mb}var vb,vM;function uK(){if(vM)return vb;vM=1;function e(t){return t.split("")}return vb=e,vb}var gb,gM;function cK(){if(gM)return gb;gM=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}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",O=d+"?",w="["+l+"]?",S="(?:"+x+"(?:"+[m,p,g].join("|")+")"+w+O+")*",E=w+O+S,T="(?:"+[m+c+"?",c,p,g,s].join("|")+")",A=RegExp(f+"(?="+f+")|"+T+E,"g");function M(j){return j.match(A)||[]}return gb=M,gb}var yb,yM;function fK(){if(yM)return yb;yM=1;var e=uK(),t=zI(),n=cK();function r(i){return t(i)?n(i):e(i)}return yb=r,yb}var bb,bM;function dK(){if(bM)return bb;bM=1;var e=sK(),t=zI(),n=fK(),r=kI();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 bb=i,bb}var xb,xM;function hK(){if(xM)return xb;xM=1;var e=dK(),t=e("toUpperCase");return xb=t,xb}var pK=hK();const Wp=lt(pK);function ct(e){return function(){return e}}const BI=Math.cos,wh=Math.sin,Ir=Math.sqrt,Sh=Math.PI,Kp=2*Sh,zw=Math.PI,Bw=2*zw,so=1e-6,mK=Bw-so;function qI(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function vK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qI;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 gK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?qI:vK(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,g=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>so)if(!(Math.abs(p*f-d*m)>so)||!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(g),A=l*Math.tan((zw-Math.acos((w+g-S)/(2*E*T)))/2),M=A/T,j=A/E;Math.abs(M-1)>so&&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,g=s?i-l:l-i;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>so||Math.abs(this._y1-m)>so)&&this._append`L${d},${m}`,r&&(g<0&&(g=g%Bw+Bw),g>mK?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=m}`:g>so&&this._append`A${r},${r},0,${+(g>=zw)},${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 eO(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 gK(t)}function tO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UI(e){this._context=e}UI.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 Xp(e){return new UI(e)}function HI(e){return e[0]}function FI(e){return e[1]}function GI(e,t){var n=ct(!0),r=null,i=Xp,l=null,s=eO(c);e=typeof e=="function"?e:e===void 0?HI:ct(e),t=typeof t=="function"?t:t===void 0?FI:ct(t);function c(f){var d,m=(f=tO(f)).length,p,g=!1,x;for(r==null&&(l=i(x=s())),d=0;d<=m;++d)!(d<m&&n(p=f[d],d,f))===g&&((g=!g)?l.lineStart():l.lineEnd()),g&&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 Ld(e,t,n){var r=null,i=ct(!0),l=null,s=Xp,c=null,f=eO(d);e=typeof e=="function"?e:e===void 0?HI:ct(+e),t=typeof t=="function"?t:ct(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?FI:ct(+n);function d(p){var g,x,O,w=(p=tO(p)).length,S,E=!1,T,A=new Array(w),M=new Array(w);for(l==null&&(c=s(T=f())),g=0;g<=w;++g){if(!(g<w&&i(S=p[g],g,p))===E)if(E=!E)x=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),O=g-1;O>=x;--O)c.point(A[O],M[O]);c.lineEnd(),c.areaEnd()}E&&(A[g]=+e(S,g,p),M[g]=+t(S,g,p),c.point(r?+r(S,g,p):A[g],n?+n(S,g,p):M[g]))}if(T)return c=null,T+""||null}function m(){return GI().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 VI{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 yK(e){return new VI(e,!0)}function bK(e){return new VI(e,!1)}const nO={draw(e,t){const n=Ir(t/Sh);e.moveTo(n,0),e.arc(0,0,n,0,Kp)}},xK={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()}},YI=Ir(1/3),wK=YI*2,SK={draw(e,t){const n=Ir(t/wK),r=n*YI;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},OK={draw(e,t){const n=Ir(t),r=-n/2;e.rect(r,r,n,n)}},_K=.8908130915292852,WI=wh(Sh/10)/wh(7*Sh/10),EK=wh(Kp/10)*WI,AK=-BI(Kp/10)*WI,TK={draw(e,t){const n=Ir(t*_K),r=EK*n,i=AK*n;e.moveTo(0,-n),e.lineTo(r,i);for(let l=1;l<5;++l){const s=Kp*l/5,c=BI(s),f=wh(s);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},wb=Ir(3),jK={draw(e,t){const n=-Ir(t/(wb*3));e.moveTo(0,n*2),e.lineTo(-wb*n,-n),e.lineTo(wb*n,-n),e.closePath()}},ar=-.5,ir=Ir(3)/2,qw=1/Ir(12),CK=(qw/2+1)*3,MK={draw(e,t){const n=Ir(t/CK),r=n/2,i=n*qw,l=r,s=n*qw+n,c=-l,f=s;e.moveTo(r,i),e.lineTo(l,s),e.lineTo(c,f),e.lineTo(ar*r-ir*i,ir*r+ar*i),e.lineTo(ar*l-ir*s,ir*l+ar*s),e.lineTo(ar*c-ir*f,ir*c+ar*f),e.lineTo(ar*r+ir*i,ar*i-ir*r),e.lineTo(ar*l+ir*s,ar*s-ir*l),e.lineTo(ar*c+ir*f,ar*f-ir*c),e.closePath()}};function NK(e,t){let n=null,r=eO(i);e=typeof e=="function"?e:ct(e||nO),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 Oh(){}function _h(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 KI(e){this._context=e}KI.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:_h(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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RK(e){return new KI(e)}function XI(e){this._context=e}XI.prototype={areaStart:Oh,areaEnd:Oh,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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PK(e){return new XI(e)}function QI(e){this._context=e}QI.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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DK(e){return new QI(e)}function ZI(e){this._context=e}ZI.prototype={areaStart:Oh,areaEnd:Oh,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 kK(e){return new ZI(e)}function wM(e){return e<0?-1:1}function SM(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(wM(l)+wM(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(c))||0}function OM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Sb(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 Eh(e){this._context=e}Eh.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:Sb(this,this._t0,OM(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,Sb(this,OM(this,n=SM(this,e,t)),n);break;default:Sb(this,this._t0,n=SM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JI(e){this._context=new e3(e)}(JI.prototype=Object.create(Eh.prototype)).point=function(e,t){Eh.prototype.point.call(this,t,e)};function e3(e){this._context=e}e3.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 $K(e){return new Eh(e)}function LK(e){return new JI(e)}function t3(e){this._context=e}t3.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=_M(e),i=_M(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 _M(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 IK(e){return new t3(e)}function Qp(e,t){this._context=e,this._t=t}Qp.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 zK(e){return new Qp(e,.5)}function BK(e){return new Qp(e,0)}function qK(e){return new Qp(e,1)}function Xl(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 Uw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function UK(e,t){return e[t]}function HK(e){const t=[];return t.key=e,t}function FK(){var e=ct([]),t=Uw,n=Xl,r=UK;function i(l){var s=Array.from(e.apply(this,arguments),HK),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=tO(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?Uw:typeof l=="function"?l:ct(Array.from(l)),i):t},i.offset=function(l){return arguments.length?(n=l??Xl,i):n},i}function GK(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}Xl(e,t)}}function VK(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}Xl(e,t)}}function YK(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,g=m[r-1][1]||0,x=(p-g)/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,Xl(e,t)}}function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}var WK=["type","size","sizeType"];function Hw(){return Hw=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},Hw.apply(this,arguments)}function EM(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 AM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){KK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KK(e,t,n){return t=XK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XK(e){var t=QK(e,"string");return sc(t)=="symbol"?t:t+""}function QK(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZK(e,t){if(e==null)return{};var n=JK(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 JK(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 n3={symbolCircle:nO,symbolCross:xK,symbolDiamond:SK,symbolSquare:OK,symbolStar:TK,symbolTriangle:jK,symbolWye:MK},eX=Math.PI/180,tX=function(t){var n="symbol".concat(Wp(t));return n3[n]||nO},nX=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*eX;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}},rX=function(t,n){n3["symbol".concat(Wp(t))]=n},rO=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=ZK(t,WK),d=AM(AM({},f),{},{type:r,size:l,sizeType:c}),m=function(){var S=tX(r),E=NK().type(S).size(nX(l,c,r));return E()},p=d.className,g=d.cx,x=d.cy,O=qe(d,!0);return g===+g&&x===+x&&l===+l?L.createElement("path",Hw({},O,{className:Ue("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(x,")"),d:m()})):null};rO.registerSymbol=rX;function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function Fw(){return Fw=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},Fw.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 aX(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){uc(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 iX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oX(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,a3(r.key),r)}}function lX(e,t,n){return t&&oX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sX(e,t,n){return t=Ah(t),uX(e,r3()?Reflect.construct(t,n||[],Ah(e).constructor):t.apply(e,n))}function uX(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cX(e)}function cX(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 Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ah(e)}function fX(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&&Gw(e,t)}function Gw(e,t){return Gw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gw(e,t)}function uc(e,t,n){return t=a3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a3(e){var t=dX(e,"string");return Ql(t)=="symbol"?t:t+""}function dX(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var or=32,aO=(function(e){function t(){return iX(this,t),sX(this,t,arguments)}return fX(t,e),lX(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,l=or/2,s=or/6,c=or/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:or,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,`
|
|
296
|
-
A`).concat(s,",").concat(s,",0,1,1,").concat(2*c,",").concat(l,`
|
|
297
|
-
H`).concat(or,"M").concat(2*c,",").concat(l,`
|
|
298
|
-
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(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(L.isValidElement(r.legendIcon)){var d=aX({},r);return delete d.legendIcon,L.cloneElement(r.legendIcon,d)}return L.createElement(rO,{fill:f,cx:l,cy:l,size:or,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:or,height:or},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(x,O){var w=x.formatter||f,S=Ue(uc(uc({"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",Fw({className:S,style:p,key:"legend-item-".concat(O)},xh(r.props,x,O)),L.createElement(Lw,{width:s,height:s,viewBox:m,style:g},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);uc(aO,"displayName","Legend");uc(aO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ob,jM;function hX(){if(jM)return Ob;jM=1;var e=Gp();function t(){this.__data__=new e,this.size=0}return Ob=t,Ob}var _b,CM;function pX(){if(CM)return _b;CM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return _b=e,_b}var Eb,MM;function mX(){if(MM)return Eb;MM=1;function e(t){return this.__data__.get(t)}return Eb=e,Eb}var Ab,NM;function vX(){if(NM)return Ab;NM=1;function e(t){return this.__data__.has(t)}return Ab=e,Ab}var Tb,RM;function gX(){if(RM)return Tb;RM=1;var e=Gp(),t=WS(),n=KS(),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 Tb=i,Tb}var jb,PM;function i3(){if(PM)return jb;PM=1;var e=Gp(),t=hX(),n=pX(),r=mX(),i=vX(),l=gX();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,jb=s,jb}var Cb,DM;function yX(){if(DM)return Cb;DM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Cb=t,Cb}var Mb,kM;function bX(){if(kM)return Mb;kM=1;function e(t){return this.__data__.has(t)}return Mb=e,Mb}var Nb,$M;function o3(){if($M)return Nb;$M=1;var e=KS(),t=yX(),n=bX();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,Nb=r,Nb}var Rb,LM;function l3(){if(LM)return Rb;LM=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 Rb=e,Rb}var Pb,IM;function s3(){if(IM)return Pb;IM=1;function e(t,n){return t.has(n)}return Pb=e,Pb}var Db,zM;function u3(){if(zM)return Db;zM=1;var e=o3(),t=l3(),n=s3(),r=1,i=2;function l(s,c,f,d,m,p){var g=f&r,x=s.length,O=c.length;if(x!=O&&!(g&&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=g?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 Db=l,Db}var kb,BM;function xX(){if(BM)return kb;BM=1;var e=ia(),t=e.Uint8Array;return kb=t,kb}var $b,qM;function wX(){if(qM)return $b;qM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,l){r[++n]=[l,i]}),r}return $b=e,$b}var Lb,UM;function iO(){if(UM)return Lb;UM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Lb=e,Lb}var Ib,HM;function SX(){if(HM)return Ib;HM=1;var e=nf(),t=xX(),n=YS(),r=u3(),i=wX(),l=iO(),s=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",g="[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 g: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 Ib=j,Ib}var zb,FM;function c3(){if(FM)return zb;FM=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 zb=e,zb}var Bb,GM;function OX(){if(GM)return Bb;GM=1;var e=c3(),t=Nn();function n(r,i,l){var s=i(r);return t(r)?s:e(s,l(r))}return Bb=n,Bb}var qb,VM;function _X(){if(VM)return qb;VM=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 qb=e,qb}var Ub,YM;function EX(){if(YM)return Ub;YM=1;function e(){return[]}return Ub=e,Ub}var Hb,WM;function AX(){if(WM)return Hb;WM=1;var e=_X(),t=EX(),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 Hb=l,Hb}var Fb,KM;function TX(){if(KM)return Fb;KM=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Fb=e,Fb}var Gb,XM;function jX(){if(XM)return Gb;XM=1;var e=qa(),t=Ua(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Gb=r,Gb}var Vb,QM;function oO(){if(QM)return Vb;QM=1;var e=jX(),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 Vb=l,Vb}var Yu={exports:{}},Yb,ZM;function CX(){if(ZM)return Yb;ZM=1;function e(){return!1}return Yb=e,Yb}Yu.exports;var JM;function f3(){return JM||(JM=1,(function(e,t){var n=ia(),r=CX(),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})(Yu,Yu.exports)),Yu.exports}var Wb,e2;function lO(){if(e2)return Wb;e2=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 Wb=n,Wb}var Kb,t2;function sO(){if(t2)return Kb;t2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Kb=t,Kb}var Xb,n2;function MX(){if(n2)return Xb;n2=1;var e=qa(),t=sO(),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]",g="[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[g]=z[x]=z[O]=z[w]=!1;function B(G){return n(G)&&t(G.length)&&!!z[e(G)]}return Xb=B,Xb}var Qb,r2;function d3(){if(r2)return Qb;r2=1;function e(t){return function(n){return t(n)}}return Qb=e,Qb}var Wu={exports:{}};Wu.exports;var a2;function NX(){return a2||(a2=1,(function(e,t){var n=RI(),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})(Wu,Wu.exports)),Wu.exports}var Zb,i2;function h3(){if(i2)return Zb;i2=1;var e=MX(),t=d3(),n=NX(),r=n&&n.isTypedArray,i=r?t(r):e;return Zb=i,Zb}var Jb,o2;function RX(){if(o2)return Jb;o2=1;var e=TX(),t=oO(),n=Nn(),r=f3(),i=lO(),l=h3(),s=Object.prototype,c=s.hasOwnProperty;function f(d,m){var p=n(d),g=!p&&t(d),x=!p&&!g&&r(d),O=!p&&!g&&!x&&l(d),w=p||g||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 Jb=f,Jb}var e0,l2;function PX(){if(l2)return e0;l2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return e0=t,e0}var t0,s2;function p3(){if(s2)return t0;s2=1;function e(t,n){return function(r){return t(n(r))}}return t0=e,t0}var n0,u2;function DX(){if(u2)return n0;u2=1;var e=p3(),t=e(Object.keys,Object);return n0=t,n0}var r0,c2;function kX(){if(c2)return r0;c2=1;var e=PX(),t=DX(),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 r0=i,r0}var a0,f2;function of(){if(f2)return a0;f2=1;var e=VS(),t=sO();function n(r){return r!=null&&t(r.length)&&!e(r)}return a0=n,a0}var i0,d2;function Zp(){if(d2)return i0;d2=1;var e=RX(),t=kX(),n=of();function r(i){return n(i)?e(i):t(i)}return i0=r,i0}var o0,h2;function $X(){if(h2)return o0;h2=1;var e=OX(),t=AX(),n=Zp();function r(i){return e(i,n,t)}return o0=r,o0}var l0,p2;function LX(){if(p2)return l0;p2=1;var e=$X(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(l,s,c,f,d,m){var p=c&t,g=e(l),x=g.length,O=e(s),w=O.length;if(x!=w&&!p)return!1;for(var S=x;S--;){var E=g[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=g[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 l0=i,l0}var s0,m2;function IX(){if(m2)return s0;m2=1;var e=No(),t=ia(),n=e(t,"DataView");return s0=n,s0}var u0,v2;function zX(){if(v2)return u0;v2=1;var e=No(),t=ia(),n=e(t,"Promise");return u0=n,u0}var c0,g2;function m3(){if(g2)return c0;g2=1;var e=No(),t=ia(),n=e(t,"Set");return c0=n,c0}var f0,y2;function BX(){if(y2)return f0;y2=1;var e=No(),t=ia(),n=e(t,"WeakMap");return f0=n,f0}var d0,b2;function qX(){if(b2)return d0;b2=1;var e=IX(),t=WS(),n=zX(),r=m3(),i=BX(),l=qa(),s=PI(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",g="[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)))!=g||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 g;case O:return c;case w:return d;case S:return m;case E:return p}return M}),d0=T,d0}var h0,x2;function UX(){if(x2)return h0;x2=1;var e=i3(),t=u3(),n=SX(),r=LX(),i=qX(),l=Nn(),s=f3(),c=h3(),f=1,d="[object Arguments]",m="[object Array]",p="[object Object]",g=Object.prototype,x=g.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 h0=O,h0}var p0,w2;function uO(){if(w2)return p0;w2=1;var e=UX(),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 p0=n,p0}var m0,S2;function HX(){if(S2)return m0;S2=1;var e=i3(),t=uO(),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 g=c[d];if(p&&g[2]?g[1]!==l[g[0]]:!(g[0]in l))return!1}for(;++d<m;){g=c[d];var x=g[0],O=l[x],w=g[1];if(p&&g[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 m0=i,m0}var v0,O2;function v3(){if(O2)return v0;O2=1;var e=Ri();function t(n){return n===n&&!e(n)}return v0=t,v0}var g0,_2;function FX(){if(_2)return g0;_2=1;var e=v3(),t=Zp();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 g0=n,g0}var y0,E2;function g3(){if(E2)return y0;E2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return y0=e,y0}var b0,A2;function GX(){if(A2)return b0;A2=1;var e=HX(),t=FX(),n=g3();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 b0=r,b0}var x0,T2;function VX(){if(T2)return x0;T2=1;function e(t,n){return t!=null&&n in Object(t)}return x0=e,x0}var w0,j2;function YX(){if(j2)return w0;j2=1;var e=$I(),t=oO(),n=Nn(),r=lO(),i=sO(),l=Yp();function s(c,f,d){f=e(f,c);for(var m=-1,p=f.length,g=!1;++m<p;){var x=l(f[m]);if(!(g=c!=null&&d(c,x)))break;c=c[x]}return g||++m!=p?g:(p=c==null?0:c.length,!!p&&i(p)&&r(x,p)&&(n(c)||t(c)))}return w0=s,w0}var S0,C2;function WX(){if(C2)return S0;C2=1;var e=VX(),t=YX();function n(r,i){return r!=null&&t(r,i,e)}return S0=n,S0}var O0,M2;function KX(){if(M2)return O0;M2=1;var e=uO(),t=LI(),n=WX(),r=GS(),i=v3(),l=g3(),s=Yp(),c=1,f=2;function d(m,p){return r(m)&&i(p)?l(s(m),p):function(g){var x=t(g,m);return x===void 0&&x===p?n(g,m):e(p,x,c|f)}}return O0=d,O0}var _0,N2;function Ns(){if(N2)return _0;N2=1;function e(t){return t}return _0=e,_0}var E0,R2;function XX(){if(R2)return E0;R2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return E0=e,E0}var A0,P2;function QX(){if(P2)return A0;P2=1;var e=QS();function t(n){return function(r){return e(r,n)}}return A0=t,A0}var T0,D2;function ZX(){if(D2)return T0;D2=1;var e=XX(),t=QX(),n=GS(),r=Yp();function i(l){return n(l)?e(r(l)):t(l)}return T0=i,T0}var j0,k2;function Pi(){if(k2)return j0;k2=1;var e=GX(),t=KX(),n=Ns(),r=Nn(),i=ZX();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 j0=l,j0}var C0,$2;function y3(){if($2)return C0;$2=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 C0=e,C0}var M0,L2;function JX(){if(L2)return M0;L2=1;function e(t){return t!==t}return M0=e,M0}var N0,I2;function eQ(){if(I2)return N0;I2=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 N0=e,N0}var R0,z2;function tQ(){if(z2)return R0;z2=1;var e=y3(),t=JX(),n=eQ();function r(i,l,s){return l===l?n(i,l,s):e(i,t,s)}return R0=r,R0}var P0,B2;function nQ(){if(B2)return P0;B2=1;var e=tQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return P0=t,P0}var D0,q2;function rQ(){if(q2)return D0;q2=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 D0=e,D0}var k0,U2;function aQ(){if(U2)return k0;U2=1;function e(){}return k0=e,k0}var $0,H2;function iQ(){if(H2)return $0;H2=1;var e=m3(),t=aQ(),n=iO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return $0=i,$0}var L0,F2;function oQ(){if(F2)return L0;F2=1;var e=o3(),t=nQ(),n=rQ(),r=s3(),i=iQ(),l=iO(),s=200;function c(f,d,m){var p=-1,g=t,x=f.length,O=!0,w=[],S=w;if(m)O=!1,g=n;else if(x>=s){var E=d?null:i(f);if(E)return l(E);O=!1,g=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 g(S,A,m)||(S!==w&&S.push(A),w.push(T))}return w}return L0=c,L0}var I0,G2;function lQ(){if(G2)return I0;G2=1;var e=Pi(),t=oQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return I0=n,I0}var sQ=lQ();const V2=lt(sQ);function b3(e,t,n){return t===!0?V2(e,n):De(t)?V2(e,t):e}function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}var uQ=["ref"];function Y2(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?Y2(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W2(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,w3(r.key),r)}}function fQ(e,t,n){return t&&W2(e.prototype,t),n&&W2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dQ(e,t,n){return t=Th(t),hQ(e,x3()?Reflect.construct(t,n||[],Th(e).constructor):t.apply(e,n))}function hQ(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pQ(e)}function pQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x3=function(){return!!e})()}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Th(e)}function mQ(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&&Vw(e,t)}function Vw(e,t){return Vw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vw(e,t)}function Jp(e,t,n){return t=w3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w3(e){var t=vQ(e,"string");return Zl(t)=="symbol"?t:t+""}function vQ(e,t){if(Zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gQ(e,t){if(e==null)return{};var n=yQ(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 yQ(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 bQ(e){return e.value}function xQ(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var n=gQ(t,uQ);return L.createElement(aO,n)}var K2=1,mo=(function(e){function t(){var n;cQ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=dQ(this,t,[].concat(i)),Jp(n,"lastBoundingBox",{width:-1,height:-1}),n}return mQ(t,e),fQ(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)>K2||Math.abs(i.height-this.lastBoundingBox.height)>K2)&&(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,g;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();g={top:((m||0)-O.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Aa(Aa({},p),g)}},{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}},xQ(l,Aa(Aa({},this.props),{},{payload:b3(m,d,bQ)})))}}],[{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);Jp(mo,"displayName","Legend");Jp(mo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var z0,X2;function wQ(){if(X2)return z0;X2=1;var e=nf(),t=oO(),n=Nn(),r=e?e.isConcatSpreadable:void 0;function i(l){return n(l)||t(l)||!!(r&&l&&l[r])}return z0=i,z0}var B0,Q2;function S3(){if(Q2)return B0;Q2=1;var e=c3(),t=wQ();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 B0=n,B0}var q0,Z2;function SQ(){if(Z2)return q0;Z2=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 q0=e,q0}var U0,J2;function OQ(){if(J2)return U0;J2=1;var e=SQ(),t=e();return U0=t,U0}var H0,eN;function O3(){if(eN)return H0;eN=1;var e=OQ(),t=Zp();function n(r,i){return r&&e(r,i,t)}return H0=n,H0}var F0,tN;function _Q(){if(tN)return F0;tN=1;var e=of();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 F0=t,F0}var G0,nN;function cO(){if(nN)return G0;nN=1;var e=O3(),t=_Q(),n=t(e);return G0=n,G0}var V0,rN;function _3(){if(rN)return V0;rN=1;var e=cO(),t=of();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 V0=n,V0}var Y0,aN;function EQ(){if(aN)return Y0;aN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Y0=e,Y0}var W0,iN;function AQ(){if(iN)return W0;iN=1;var e=Cs();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 W0=t,W0}var K0,oN;function TQ(){if(oN)return K0;oN=1;var e=AQ();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 K0=t,K0}var X0,lN;function jQ(){if(lN)return X0;lN=1;var e=XS(),t=QS(),n=Pi(),r=_3(),i=EQ(),l=d3(),s=TQ(),c=Ns(),f=Nn();function d(m,p,g){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,g)})}return X0=d,X0}var Q0,sN;function CQ(){if(sN)return Q0;sN=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 Q0=e,Q0}var Z0,uN;function MQ(){if(uN)return Z0;uN=1;var e=CQ(),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 Z0=n,Z0}var J0,cN;function NQ(){if(cN)return J0;cN=1;function e(t){return function(){return t}}return J0=e,J0}var ex,fN;function E3(){if(fN)return ex;fN=1;var e=No(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return ex=t,ex}var tx,dN;function RQ(){if(dN)return tx;dN=1;var e=NQ(),t=E3(),n=Ns(),r=t?function(i,l){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return tx=r,tx}var nx,hN;function PQ(){if(hN)return nx;hN=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 nx=r,nx}var rx,pN;function DQ(){if(pN)return rx;pN=1;var e=RQ(),t=PQ(),n=t(e);return rx=n,rx}var ax,mN;function kQ(){if(mN)return ax;mN=1;var e=Ns(),t=MQ(),n=DQ();function r(i,l){return n(t(i,l,e),i+"")}return ax=r,ax}var ix,vN;function em(){if(vN)return ix;vN=1;var e=YS(),t=of(),n=lO(),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 ix=i,ix}var ox,gN;function $Q(){if(gN)return ox;gN=1;var e=S3(),t=jQ(),n=kQ(),r=em(),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 ox=i,ox}var LQ=$Q();const fO=lt(LQ);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)}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 IQ(e,t){return UQ(e)||qQ(e,t)||BQ(e,t)||zQ()}function zQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
299
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BQ(e,t){if(e){if(typeof e=="string")return yN(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 yN(e,t)}}function yN(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 qQ(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 UQ(e){if(Array.isArray(e))return e}function bN(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 lx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(n),!0).forEach(function(r){HQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HQ(e,t,n){return t=FQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FQ(e){var t=GQ(e,"string");return cc(t)=="symbol"?t:t+""}function GQ(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 VQ(e){return Array.isArray(e)&&Bt(e[0])&&Bt(e[1])?e.join(" ~ "):e}var YQ=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,g=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=(g?fO(m,g):m).map(function(K,X){if(K.type==="none")return null;var D=lx({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},c),U=K.formatter||p||VQ,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=IQ(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},Bt($)?L.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Bt($)?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=lx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),j=lx({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",Yw({className:k,style:M},V),L.createElement("p",{className:I,style:j},L.isValidElement(R)?R:"".concat(R)),A())};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 Id(e,t,n){return t=WQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WQ(e){var t=KQ(e,"string");return fc(t)=="symbol"?t:t+""}function KQ(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)}var $u="recharts-tooltip-wrapper",XQ={visibility:"hidden"};function QQ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ue($u,Id(Id(Id(Id({},"".concat($u,"-right"),ve(n)&&t&&ve(t.x)&&n>=t.x),"".concat($u,"-left"),ve(n)&&t&&ve(t.x)&&n<t.x),"".concat($u,"-bottom"),ve(r)&&t&&ve(t.y)&&r>=t.y),"".concat($u,"-top"),ve(r)&&t&&ve(t.y)&&r<t.y))}function xN(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 g=m,x=f[r];return g<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 ZQ(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 JQ(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=xN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),p=xN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),d=ZQ({translateX:m,translateY:p,useTranslate3d:c})):d=XQ,{cssProperties:d,cssClasses:QQ({translateX:m,translateY:p,coordinate:n})}}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 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 SN(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){Kw(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 eZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tZ(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,T3(r.key),r)}}function nZ(e,t,n){return t&&tZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rZ(e,t,n){return t=jh(t),aZ(e,A3()?Reflect.construct(t,n||[],jh(e).constructor):t.apply(e,n))}function aZ(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 iZ(e)}function iZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A3=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function oZ(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&&Ww(e,t)}function Ww(e,t){return Ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ww(e,t)}function Kw(e,t,n){return t=T3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T3(e){var t=lZ(e,"string");return Jl(t)=="symbol"?t:t+""}function lZ(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 ON=1,sZ=(function(e){function t(){var n;eZ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=rZ(this,t,[].concat(i)),Kw(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Kw(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 oZ(t,e),nZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>ON||Math.abs(r.height-this.state.lastBoundingBox.height)>ON)&&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,g=i.isAnimationActive,x=i.offset,O=i.position,w=i.reverseDirection,S=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=JQ({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=SN(SN({transition:g&&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),uZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Rs={isSsr:uZ()};function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function _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 EN(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){dO(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 cZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fZ(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,C3(r.key),r)}}function dZ(e,t,n){return t&&fZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hZ(e,t,n){return t=Ch(t),pZ(e,j3()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function pZ(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 mZ(e)}function mZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j3=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function vZ(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 dO(e,t,n){return t=C3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C3(e){var t=gZ(e,"string");return es(t)=="symbol"?t:t+""}function gZ(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 yZ(e){return e.dataKey}function bZ(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement(YQ,t)}var Yr=(function(e){function t(){return cZ(this,t),hZ(this,t,arguments)}return vZ(t,e),dZ(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,g=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=b3(O.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),w,yZ));var N=j.length>0;return L.createElement(sZ,{allowEscapeViewBox:s,animationDuration:c,animationEasing:f,isAnimationActive:g,active:l,coordinate:m,hasPayload:N,offset:x,position:S,reverseDirection:E,useTranslate3d:T,viewBox:A,wrapperStyle:M},bZ(d,EN(EN({},this.props),{},{payload:j})))}}])})(_.PureComponent);dO(Yr,"displayName","Tooltip");dO(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:!Rs.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 sx,AN;function xZ(){if(AN)return sx;AN=1;var e=ia(),t=function(){return e.Date.now()};return sx=t,sx}var ux,TN;function wZ(){if(TN)return ux;TN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return ux=t,ux}var cx,jN;function SZ(){if(jN)return cx;jN=1;var e=wZ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return cx=n,cx}var fx,CN;function M3(){if(CN)return fx;CN=1;var e=SZ(),t=Ri(),n=Cs(),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 fx=f,fx}var dx,MN;function OZ(){if(MN)return dx;MN=1;var e=Ri(),t=xZ(),n=M3(),r="Expected a function",i=Math.max,l=Math.min;function s(c,f,d){var m,p,g,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,g=T?i(n(d.maxWait)||0,f):g,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,g-X):D}function R(G){var K=G-w,X=G-S;return w===void 0||K>=f||K<0||T&&X>=g}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 dx=s,dx}var hx,NN;function _Z(){if(NN)return hx;NN=1;var e=OZ(),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 hx=r,hx}var EZ=_Z();const N3=lt(EZ);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 RN(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?RN(Object(n),!0).forEach(function(r){AZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AZ(e,t,n){return t=TZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TZ(e){var t=jZ(e,"string");return dc(t)=="symbol"?t:t+""}function jZ(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 CZ(e,t){return PZ(e)||RZ(e,t)||NZ(e,t)||MZ()}function MZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
300
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NZ(e,t){if(e){if(typeof e=="string")return PN(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 PN(e,t)}}function PN(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 RZ(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 PZ(e){if(Array.isArray(e))return e}var DZ=_.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,g=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=CZ(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=N3(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(co(s)||co(f),`The width(%s) and height(%s) are both fixed numbers,
|
|
301
|
-
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=co(s)?G:s,D=co(f)?K:f;n&&n>0&&(X?D=X/n:D&&(X=D*n),g&&D>g&&(D=g)),Ra(X>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
302
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
303
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
304
|
-
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,zd({width:X,height:D},U?{style:zd({height:"100%",width:"100%",maxHeight:D,maxWidth:X},Y.props.style)}:{})):Y})},[n,x,f,g,p,m,I,s]);return L.createElement("div",{id:S?"".concat(S):void 0,className:Ue("recharts-responsive-container",E),style:zd(zd({},M),{},{width:s,height:f,minWidth:m,minHeight:p,maxHeight:g}),ref:j},B)}),R3=function(t){return null};R3.displayName="Cell";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 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 Qw(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){kZ(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 kZ(e,t,n){return t=$Z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Z(e){var t=LZ(e,"string");return hc(t)=="symbol"?t:t+""}function LZ(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 Cl={widthCache:{},cacheCount:0},IZ=2e3,zZ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},kN="recharts_measurement_span";function BZ(e){var t=Qw({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Xu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Rs.isSsr)return{width:0,height:0};var r=BZ(n),i=JSON.stringify({text:t,copyStyle:r});if(Cl.widthCache[i])return Cl.widthCache[i];try{var l=document.getElementById(kN);l||(l=document.createElement("span"),l.setAttribute("id",kN),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=Qw(Qw({},zZ),r);Object.assign(l.style,s),l.textContent="".concat(t);var c=l.getBoundingClientRect(),f={width:c.width,height:c.height};return Cl.widthCache[i]=f,++Cl.cacheCount>IZ&&(Cl.cacheCount=0,Cl.widthCache={}),f}catch{return{width:0,height:0}}},qZ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Mh(e,t){return GZ(e)||FZ(e,t)||HZ(e,t)||UZ()}function UZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
305
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HZ(e,t){if(e){if(typeof e=="string")return $N(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 $N(e,t)}}function $N(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 FZ(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 GZ(e){if(Array.isArray(e))return e}function VZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LN(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,WZ(r.key),r)}}function YZ(e,t,n){return t&&LN(e.prototype,t),n&&LN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function WZ(e){var t=KZ(e,"string");return pc(t)=="symbol"?t:t+""}function KZ(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 String(e)}var IN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XZ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,QZ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,P3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ZZ=Object.keys(P3),Dl="NaN";function JZ(e,t){return e*P3[t]}var Bd=(function(){function e(t,n){VZ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!XZ.test(n)&&(this.num=NaN,this.unit=""),ZZ.includes(n)&&(this.num=JZ(t,n),this.unit="px")}return YZ(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=QZ.exec(n))!==null&&r!==void 0?r:[],l=Mh(i,3),s=l[1],c=l[2];return new e(parseFloat(s),c??"")}}])})();function D3(e){if(e.includes(Dl))return Dl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=IN.exec(t))!==null&&n!==void 0?n:[],i=Mh(r,4),l=i[1],s=i[2],c=i[3],f=Bd.parse(l??""),d=Bd.parse(c??""),m=s==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return Dl;t=t.replace(IN,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,g=(p=zN.exec(t))!==null&&p!==void 0?p:[],x=Mh(g,4),O=x[1],w=x[2],S=x[3],E=Bd.parse(O??""),T=Bd.parse(S??""),A=w==="+"?E.add(T):E.subtract(T);if(A.isNaN())return Dl;t=t.replace(zN,A.toString())}return t}var BN=/\(([^()]*)\)/;function eJ(e){for(var t=e;t.includes("(");){var n=BN.exec(t),r=Mh(n,2),i=r[1];t=t.replace(BN,D3(i))}return t}function tJ(e){var t=e.replace(/\s+/g,"");return t=eJ(t),t=D3(t),t}function nJ(e){try{return tJ(e)}catch{return Dl}}function px(e){var t=nJ(e.slice(5,-1));return t===Dl?"":t}var rJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],aJ=["dx","dy","angle","className","breakAll"];function Zw(){return Zw=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},Zw.apply(this,arguments)}function qN(e,t){if(e==null)return{};var n=iJ(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 iJ(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 UN(e,t){return uJ(e)||sJ(e,t)||lJ(e,t)||oJ()}function oJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
306
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lJ(e,t){if(e){if(typeof e=="string")return HN(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 HN(e,t)}}function HN(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 sJ(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 uJ(e){if(Array.isArray(e))return e}var k3=/[ \f\n\r\t\v\u2028\u2029]+/,$3=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(k3));var s=l.map(function(f){return{word:f,width:Xu(f,i).width}}),c=r?0:Xu(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:c}}catch{return null}},cJ=function(t,n,r,i,l){var s=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ve(s),p=c,g=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=g(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=$3({breakAll:d,style:f,children:D+w}).wordsWithComputedWidth,Y=g(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=UN(R,2),I=k[0],V=k[1],z=S(j),B=UN(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},FN=function(t){var n=Le(t)?[]:t.toString().split(k3);return[{words:n}]},fJ=function(t){var n=t.width,r=t.scaleToFit,i=t.children,l=t.style,s=t.breakAll,c=t.maxLines;if((n||r)&&!Rs.isSsr){var f,d,m=$3({breakAll:s,children:i,style:l});if(m){var p=m.wordsWithComputedWidth,g=m.spaceWidth;f=p,d=g}else return FN(i);return cJ({breakAll:s,children:i,maxLines:c,style:l},f,d,n,r)}return FN(i)},GN="#808080",Nh=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,g=t.textAnchor,x=g===void 0?"start":g,O=t.verticalAnchor,w=O===void 0?"end":O,S=t.fill,E=S===void 0?GN:S,T=qN(t,rJ),A=_.useMemo(function(){return fJ({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=qN(T,aJ);if(!Bt(r)||!Bt(l))return null;var V=r+(ve(M)?M:0),z=l+(ve(j)?j:0),B;switch(w){case"start":B=px("calc(".concat(d,")"));break;case"middle":B=px("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:B=px("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",Zw({},qe(I,!0),{x:V,y:z,className:Ue("recharts-text",R),textAnchor:x,fill:E.includes("url")?GN: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 dJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hO(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===dJ?e:hJ,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 hJ(){return 0}function L3(e){return e===null?NaN:+e}function*pJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const mJ=hO(_i),lf=mJ.right;hO(L3).center;class VN extends Map{constructor(t,n=yJ){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(YN(this,t))}has(t){return super.has(YN(this,t))}set(t,n){return super.set(vJ(this,t),n)}delete(t){return super.delete(gJ(this,t))}}function YN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function vJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function gJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function yJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function bJ(e=_i){if(e===_i)return I3;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 I3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const xJ=Math.sqrt(50),wJ=Math.sqrt(10),SJ=Math.sqrt(2);function Rh(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>=xJ?10:l>=wJ?5:l>=SJ?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?Rh(e,t,n*2):[c,f,d]}function Jw(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?Rh(t,e,n):Rh(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 e1(e,t,n){return t=+t,e=+e,n=+n,Rh(e,t,n)[2]}function t1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?e1(t,e,n):e1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function WN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function KN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function z3(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?I3:bJ(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),g=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*p/f+g)),O=Math.min(r,Math.floor(t+(f-d)*p/f+g));z3(e,t,x,O,i)}const l=e[t];let s=n,c=r;for(Lu(e,n,t),i(e[r],l)>0&&Lu(e,n,r);s<c;){for(Lu(e,s,c),++s,--c;i(e[s],l)<0;)++s;for(;i(e[c],l)>0;)--c}i(e[n],l)===0?Lu(e,n,c):(++c,Lu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Lu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OJ(e,t,n){if(e=Float64Array.from(pJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return KN(e);if(t>=1)return WN(e);var r,i=(r-1)*t,l=Math.floor(i),s=WN(z3(e,l).subarray(0,l+1)),c=KN(e.subarray(l+1));return s+(c-s)*(i-l)}}function _J(e,t,n=L3){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 EJ(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 mr(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 n1=Symbol("implicit");function pO(){var e=new VN,t=[],n=[],r=n1;function i(l){let s=e.get(l);if(s===void 0){if(r!==n1)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 VN;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 pO(t,n).unknown(r)},mr.apply(i,arguments),i}function mc(){var e=pO().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 g=t().length,x=i<r,O=x?i:r,w=x?r:i;l=(w-O)/Math.max(1,g-f+d*2),c&&(l=Math.floor(l)),O+=(w-O-l*(g-f))*m,s=l*(1-f),c&&(O=Math.round(O),s=Math.round(s));var S=EJ(g).map(function(E){return O+l*E});return n(x?S.reverse():S)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,c=!0,p()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(g){return arguments.length?(c=!!g,p()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),p()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),p()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,p()):d},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),p()):m},e.copy=function(){return mc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(m)},mr.apply(p(),arguments)}function B3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return B3(t())},e}function Qu(){return B3(mc.apply(null,arguments).paddingInner(1))}function mO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function sf(){}var vc=.7,Ph=1/vc,Fl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",AJ=/^#([0-9a-f]{3,8})$/,TJ=new RegExp(`^rgb\\(${Fl},${Fl},${Fl}\\)$`),jJ=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),CJ=new RegExp(`^rgba\\(${Fl},${Fl},${Fl},${gc}\\)$`),MJ=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${gc}\\)$`),NJ=new RegExp(`^hsl\\(${gc},${Jr},${Jr}\\)$`),RJ=new RegExp(`^hsla\\(${gc},${Jr},${Jr},${gc}\\)$`),XN={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};mO(sf,yc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:QN,formatHex:QN,formatHex8:PJ,formatHsl:DJ,formatRgb:ZN,toString:ZN});function QN(){return this.rgb().formatHex()}function PJ(){return this.rgb().formatHex8()}function DJ(){return U3(this).formatHsl()}function ZN(){return this.rgb().formatRgb()}function yc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=AJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?JN(t):n===3?new Mn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qd(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=TJ.exec(e))?new Mn(t[1],t[2],t[3],1):(t=jJ.exec(e))?new Mn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CJ.exec(e))?qd(t[1],t[2],t[3],t[4]):(t=MJ.exec(e))?qd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=NJ.exec(e))?nR(t[1],t[2]/100,t[3]/100,1):(t=RJ.exec(e))?nR(t[1],t[2]/100,t[3]/100,t[4]):XN.hasOwnProperty(e)?JN(XN[e]):e==="transparent"?new Mn(NaN,NaN,NaN,0):null}function JN(e){return new Mn(e>>16&255,e>>8&255,e&255,1)}function qd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Mn(e,t,n,r)}function kJ(e){return e instanceof sf||(e=yc(e)),e?(e=e.rgb(),new Mn(e.r,e.g,e.b,e.opacity)):new Mn}function r1(e,t,n,r){return arguments.length===1?kJ(e):new Mn(e,t,n,r??1)}function Mn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}mO(Mn,r1,q3(sf,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Mn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Mn(vo(this.r),vo(this.g),vo(this.b),Dh(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:eR,formatHex:eR,formatHex8:$J,formatRgb:tR,toString:tR}));function eR(){return`#${fo(this.r)}${fo(this.g)}${fo(this.b)}`}function $J(){return`#${fo(this.r)}${fo(this.g)}${fo(this.b)}${fo((isNaN(this.opacity)?1:this.opacity)*255)}`}function tR(){const e=Dh(this.opacity);return`${e===1?"rgb(":"rgba("}${vo(this.r)}, ${vo(this.g)}, ${vo(this.b)}${e===1?")":`, ${e})`}`}function Dh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fo(e){return e=vo(e),(e<16?"0":"")+e.toString(16)}function nR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ar(e,t,n,r)}function U3(e){if(e instanceof Ar)return new Ar(e.h,e.s,e.l,e.opacity);if(e instanceof sf||(e=yc(e)),!e)return new Ar;if(e instanceof Ar)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 Ar(s,c,f,e.opacity)}function LJ(e,t,n,r){return arguments.length===1?U3(e):new Ar(e,t,n,r??1)}function Ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}mO(Ar,LJ,q3(sf,{brighter(e){return e=e==null?Ph:Math.pow(Ph,e),new Ar(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Ar(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 Mn(mx(e>=240?e-240:e+120,i,r),mx(e,i,r),mx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ar(rR(this.h),Ud(this.s),Ud(this.l),Dh(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=Dh(this.opacity);return`${e===1?"hsl(":"hsla("}${rR(this.h)}, ${Ud(this.s)*100}%, ${Ud(this.l)*100}%${e===1?")":`, ${e})`}`}}));function rR(e){return e=(e||0)%360,e<0?e+360:e}function Ud(e){return Math.max(0,Math.min(1,e||0))}function mx(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 vO=e=>()=>e;function IJ(e,t){return function(n){return e+n*t}}function zJ(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 BJ(e){return(e=+e)==1?H3:function(t,n){return n-t?zJ(t,n,e):vO(isNaN(t)?n:t)}}function H3(e,t){var n=t-e;return n?IJ(e,n):vO(isNaN(e)?t:e)}const aR=(function e(t){var n=BJ(t);function r(i,l){var s=n((i=r1(i)).r,(l=r1(l)).r),c=n(i.g,l.g),f=n(i.b,l.b),d=H3(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 qJ(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 UJ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function HJ(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]=Ps(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 FJ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function kh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function GJ(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]=Ps(e[i],t[i]):r[i]=t[i];return function(l){for(i in n)r[i]=n[i](l);return r}}var a1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vx=new RegExp(a1.source,"g");function VJ(e){return function(){return e}}function YJ(e){return function(t){return e(t)+""}}function WJ(e,t){var n=a1.lastIndex=vx.lastIndex=0,r,i,l,s=-1,c=[],f=[];for(e=e+"",t=t+"";(r=a1.exec(e))&&(i=vx.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:kh(r,i)})),n=vx.lastIndex;return n<t.length&&(l=t.slice(n),c[s]?c[s]+=l:c[++s]=l),c.length<2?f[0]?YJ(f[0].x):VJ(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 Ps(e,t){var n=typeof t,r;return t==null||n==="boolean"?vO(t):(n==="number"?kh:n==="string"?(r=yc(t))?(t=r,aR):WJ:t instanceof yc?aR:t instanceof Date?FJ:UJ(t)?qJ:Array.isArray(t)?HJ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?GJ:kh)(e,t)}function gO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function KJ(e,t){t===void 0&&(t=e,e=Ps);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 XJ(e){return function(){return e}}function $h(e){return+e}var iR=[0,1];function mn(e){return e}function i1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:XJ(isNaN(t)?NaN:.5)}function QJ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function ZJ(e,t,n){var r=e[0],i=e[1],l=t[0],s=t[1];return i<r?(r=i1(i,r),l=n(s,l)):(r=i1(r,i),l=n(l,s)),function(c){return l(r(c))}}function JJ(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]=i1(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(c){var f=lf(e,c,1,r)-1;return l[f](i[f](c))}}function uf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function tm(){var e=iR,t=iR,n=Ps,r,i,l,s=mn,c,f,d;function m(){var g=Math.min(e.length,t.length);return s!==mn&&(s=QJ(e[0],e[g-1])),c=g>2?JJ:ZJ,f=d=null,p}function p(g){return g==null||isNaN(g=+g)?l:(f||(f=c(e.map(r),t,n)))(r(s(g)))}return p.invert=function(g){return s(i((d||(d=c(t,e.map(r),kh)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,$h),m()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=gO,m()},p.clamp=function(g){return arguments.length?(s=g?!0:mn,m()):s!==mn},p.interpolate=function(g){return arguments.length?(n=g,m()):n},p.unknown=function(g){return arguments.length?(l=g,p):l},function(g,x){return r=g,i=x,m()}}function yO(){return tm()(mn,mn)}function eee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lh(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 ts(e){return e=Lh(Math.abs(e)),e?e[1]:NaN}function tee(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 nee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ree=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bc(e){if(!(t=ree.exec(e)))throw new Error("invalid format: "+e);var t;return new bO({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]})}bc.prototype=bO.prototype;function bO(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+""}bO.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 aee(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 F3;function iee(e,t){var n=Lh(e,t);if(!n)return e+"";var r=n[0],i=n[1],l=i-(F3=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")+Lh(e,Math.max(0,t+l-1))[0]}function oR(e,t){var n=Lh(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 lR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:eee,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)=>oR(e*100,t),r:oR,s:iee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sR(e){return e}var uR=Array.prototype.map,cR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function oee(e){var t=e.grouping===void 0||e.thousands===void 0?sR:tee(uR.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?sR:nee(uR.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=bc(p);var g=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"):lR[j]||(A===void 0&&(A=12),M=!0,j="g"),(S||g==="0"&&x==="=")&&(S=!0,g="0",x="=");var N=w==="$"?n:w==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",R=w==="$"?r:/[%p]/.test(j)?s:"",k=lR[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=aee(z)),U&&+z==0&&O!=="+"&&(U=!1),B=(U?O==="("?O:c:O==="-"||O==="("?"":O)+B,G=(j==="s"?cR[8+F3/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(g):"";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,g){var x=d((p=bc(p),p.type="f",p)),O=Math.max(-8,Math.min(8,Math.floor(ts(g)/3)))*3,w=Math.pow(10,-O),S=cR[8+O/3];return function(E){return x(w*E)+S}}return{format:d,formatPrefix:m}}var Hd,xO,G3;lee({thousands:",",grouping:[3],currency:["$",""]});function lee(e){return Hd=oee(e),xO=Hd.format,G3=Hd.formatPrefix,Hd}function see(e){return Math.max(0,-ts(Math.abs(e)))}function uee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ts(t)/3)))*3-ts(Math.abs(e)))}function cee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ts(t)-ts(e))+1}function V3(e,t,n,r){var i=t1(e,t,n),l;switch(r=bc(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=uee(i,s))&&(r.precision=l),G3(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=cee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=see(i))&&(r.precision=l-(r.type==="%")*2);break}}return xO(r)}function Di(e){var t=e.domain;return e.ticks=function(n){var r=t();return Jw(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return V3(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=e1(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 Ih(){var e=yO();return e.copy=function(){return uf(e,Ih())},mr.apply(e,arguments),Di(e)}function Y3(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,$h),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Y3(e).unknown(t)},e=arguments.length?Array.from(e,$h):[0,1],Di(n)}function W3(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 fR(e){return Math.log(e)}function dR(e){return Math.exp(e)}function fee(e){return-Math.log(-e)}function dee(e){return-Math.exp(-e)}function hee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pee(e){return e===10?hee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function mee(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 hR(e){return(t,n)=>-e(-t,n)}function wO(e){const t=e(fR,dR),n=t.domain;let r=10,i,l;function s(){return i=mee(r),l=pee(r),n()[0]<0?(i=hR(i),l=hR(l),e(fee,dee)):e(fR,dR),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 g=i(d),x=i(m),O,w;const S=c==null?10:+c;let E=[];if(!(r%1)&&x-g<S){if(g=Math.floor(g),x=Math.ceil(x),d>0){for(;g<=x;++g)for(O=1;O<r;++O)if(w=g<0?O/l(-g):O*l(g),!(w<d)){if(w>m)break;E.push(w)}}else for(;g<=x;++g)for(O=r-1;O>=1;--O)if(w=g>0?O/l(-g):O*l(g),!(w<d)){if(w>m)break;E.push(w)}E.length*2<S&&(E=Jw(d,m,S))}else E=Jw(g,x,Math.min(x-g,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=bc(f)).precision==null&&(f.trim=!0),f=xO(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(W3(n(),{floor:c=>l(Math.floor(i(c))),ceil:c=>l(Math.ceil(i(c)))})),t}function K3(){const e=wO(tm()).domain([1,10]);return e.copy=()=>uf(e,K3()).base(e.base()),mr.apply(e,arguments),e}function pR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function mR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function SO(e){var t=1,n=e(pR(t),mR(t));return n.constant=function(r){return arguments.length?e(pR(t=+r),mR(t)):t},Di(n)}function X3(){var e=SO(tm());return e.copy=function(){return uf(e,X3()).constant(e.constant())},mr.apply(e,arguments)}function vR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function vee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function gee(e){return e<0?-e*e:e*e}function OO(e){var t=e(mn,mn),n=1;function r(){return n===1?e(mn,mn):n===.5?e(vee,gee):e(vR(n),vR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Di(t)}function _O(){var e=OO(tm());return e.copy=function(){return uf(e,_O()).exponent(e.exponent())},mr.apply(e,arguments),e}function yee(){return _O.apply(null,arguments).exponent(.5)}function gR(e){return Math.sign(e)*e*e}function bee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Q3(){var e=yO(),t=[0,1],n=!1,r;function i(l){var s=bee(e(l));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(l){return e.invert(gR(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,$h)).map(gR)),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 Q3(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},mr.apply(i,arguments),Di(i)}function Z3(){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]=_J(e,s/c);return l}function l(s){return s==null||isNaN(s=+s)?r:t[lf(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 Z3().domain(e).range(t).unknown(r)},mr.apply(l,arguments)}function J3(){var e=0,t=1,n=1,r=[.5],i=[0,1],l;function s(f){return f!=null&&f<=f?i[lf(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 J3().domain([e,t]).range(i).unknown(l)},mr.apply(Di(s),arguments)}function e4(){var e=[.5],t=[0,1],n,r=1;function i(l){return l!=null&&l<=l?t[lf(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 e4().domain(e).range(t).unknown(n)},mr.apply(i,arguments)}const gx=new Date,yx=new Date;function qt(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=>qt(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)=>(gx.setTime(+l),yx.setTime(+s),e(gx),e(yx),Math.floor(n(gx,yx))),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 zh=qt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):zh);zh.range;const Ta=1e3,lr=Ta*60,ja=lr*60,La=ja*24,EO=La*7,yR=La*30,bx=La*365,ho=qt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ta)},(e,t)=>(t-e)/Ta,e=>e.getUTCSeconds());ho.range;const AO=qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ta)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getMinutes());AO.range;const TO=qt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCMinutes());TO.range;const jO=qt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ta-e.getMinutes()*lr)},(e,t)=>{e.setTime(+e+t*ja)},(e,t)=>(t-e)/ja,e=>e.getHours());jO.range;const CO=qt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ja)},(e,t)=>(t-e)/ja,e=>e.getUTCHours());CO.range;const cf=qt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/La,e=>e.getDate()-1);cf.range;const nm=qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/La,e=>e.getUTCDate()-1);nm.range;const t4=qt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/La,e=>Math.floor(e/La));t4.range;function Ro(e){return qt(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())*lr)/EO)}const rm=Ro(0),Bh=Ro(1),xee=Ro(2),wee=Ro(3),ns=Ro(4),See=Ro(5),Oee=Ro(6);rm.range;Bh.range;xee.range;wee.range;ns.range;See.range;Oee.range;function Po(e){return qt(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)/EO)}const am=Po(0),qh=Po(1),_ee=Po(2),Eee=Po(3),rs=Po(4),Aee=Po(5),Tee=Po(6);am.range;qh.range;_ee.range;Eee.range;rs.range;Aee.range;Tee.range;const MO=qt(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());MO.range;const NO=qt(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());NO.range;const Ia=qt(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:qt(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=qt(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:qt(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 n4(e,t,n,r,i,l){const s=[[ho,1,Ta],[ho,5,5*Ta],[ho,15,15*Ta],[ho,30,30*Ta],[l,1,lr],[l,5,5*lr],[l,15,15*lr],[l,30,30*lr],[i,1,ja],[i,3,3*ja],[i,6,6*ja],[i,12,12*ja],[r,1,La],[r,2,2*La],[n,1,EO],[t,1,yR],[t,3,3*yR],[e,1,bx]];function c(d,m,p){const g=m<d;g&&([d,m]=[m,d]);const x=p&&typeof p.range=="function"?p:f(d,m,p),O=x?x.range(d,+m+1):[];return g?O.reverse():O}function f(d,m,p){const g=Math.abs(m-d)/p,x=hO(([,,S])=>S).right(s,g);if(x===s.length)return e.every(t1(d/bx,m/bx,p));if(x===0)return zh.every(Math.max(t1(d,m,p),1));const[O,w]=s[g/s[x-1][2]<s[x][2]/g?x-1:x];return O.every(w)}return[c,f]}const[jee,Cee]=n4(za,NO,am,t4,CO,TO),[Mee,Nee]=n4(Ia,MO,rm,cf,jO,AO);function xx(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 wx(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 Iu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ree(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=zu(i),m=Bu(i),p=zu(l),g=Bu(l),x=zu(s),O=Bu(s),w=zu(c),S=Bu(c),E=zu(f),T=Bu(f),A={a:U,A:Y,b:W,B:oe,c:null,d:_R,e:_R,f:tte,g:fte,G:hte,H:Zee,I:Jee,j:ete,L:r4,m:nte,M:rte,p:$,q:F,Q:TR,s:jR,S:ate,u:ite,U:ote,V:lte,w:ste,W:ute,x:null,X:null,y:cte,Y:dte,Z:pte,"%":AR},M={a:Z,A:se,b:de,B:ge,c:null,d:ER,e:ER,f:yte,g:jte,G:Mte,H:mte,I:vte,j:gte,L:i4,m:bte,M:xte,p:fe,q:pe,Q:TR,s:jR,S:wte,u:Ste,U:Ote,V:_te,w:Ete,W:Ate,x:null,X:null,y:Tte,Y:Cte,Z:Nte,"%":AR},j={a:V,A:z,b:B,B:G,c:K,d:SR,e:SR,f:Wee,g:wR,G:xR,H:OR,I:OR,j:Fee,L:Yee,m:Hee,M:Gee,p:I,q:Uee,Q:Xee,s:Qee,S:Vee,u:Lee,U:Iee,V:zee,w:$ee,W:Bee,x:X,X:D,y:wR,Y:xR,Z:qee,"%":Kee};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,We=ae.length,He,nt,nn;for(ye instanceof Date||(ye=new Date(+ye));++Ne<We;)ae.charCodeAt(Ne)===37&&(re.push(ae.slice(Oe,Ne)),(nt=bR[He=ae.charAt(++Ne)])!=null?He=ae.charAt(++Ne):nt=He==="e"?" ":"0",(nn=me[He])&&(He=nn(ye,nt)),re.push(He),Oe=Ne+1);return re.push(ae.slice(Oe,Ne)),re.join("")}}function R(ae,me){return function(ye){var re=Iu(1900,void 0,1),Ne=k(re,ae,ye+="",0),Oe,We;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=wx(Iu(re.y,0,1)),We=Oe.getUTCDay(),Oe=We>4||We===0?qh.ceil(Oe):qh(Oe),Oe=nm.offset(Oe,(re.V-1)*7),re.y=Oe.getUTCFullYear(),re.m=Oe.getUTCMonth(),re.d=Oe.getUTCDate()+(re.w+6)%7):(Oe=xx(Iu(re.y,0,1)),We=Oe.getDay(),Oe=We>4||We===0?Bh.ceil(Oe):Bh(Oe),Oe=cf.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),We="Z"in re?wx(Iu(re.y,0,1)).getUTCDay():xx(Iu(re.y,0,1)).getDay(),re.m=0,re.d="W"in re?(re.w+6)%7+re.W*7-(We+5)%7:re.w+re.U*7-(We+6)%7);return"Z"in re?(re.H+=re.Z/100|0,re.M+=re.Z%100,wx(re)):xx(re)}}function k(ae,me,ye,re){for(var Ne=0,Oe=me.length,We=ye.length,He,nt;Ne<Oe;){if(re>=We)return-1;if(He=me.charCodeAt(Ne++),He===37){if(He=me.charAt(Ne++),nt=j[He in bR?me.charAt(Ne++):He],!nt||(re=nt(ae,ye,re))<0)return-1}else if(He!=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=g.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 bR={"-":"",_:" ",0:"0"},Wt=/^\s*\d+/,Pee=/^%/,Dee=/[\\^$*+?|[\]().{}]/g;function Ye(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 kee(e){return e.replace(Dee,"\\$&")}function zu(e){return new RegExp("^(?:"+e.map(kee).join("|")+")","i")}function Bu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function $ee(e,t,n){var r=Wt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Lee(e,t,n){var r=Wt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Iee(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function zee(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Bee(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function xR(e,t,n){var r=Wt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function wR(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function qee(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 Uee(e,t,n){var r=Wt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Hee(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function SR(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fee(e,t,n){var r=Wt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function OR(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Gee(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vee(e,t,n){var r=Wt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Yee(e,t,n){var r=Wt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wee(e,t,n){var r=Wt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kee(e,t,n){var r=Pee.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Xee(e,t,n){var r=Wt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Qee(e,t,n){var r=Wt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _R(e,t){return Ye(e.getDate(),t,2)}function Zee(e,t){return Ye(e.getHours(),t,2)}function Jee(e,t){return Ye(e.getHours()%12||12,t,2)}function ete(e,t){return Ye(1+cf.count(Ia(e),e),t,3)}function r4(e,t){return Ye(e.getMilliseconds(),t,3)}function tte(e,t){return r4(e,t)+"000"}function nte(e,t){return Ye(e.getMonth()+1,t,2)}function rte(e,t){return Ye(e.getMinutes(),t,2)}function ate(e,t){return Ye(e.getSeconds(),t,2)}function ite(e){var t=e.getDay();return t===0?7:t}function ote(e,t){return Ye(rm.count(Ia(e)-1,e),t,2)}function a4(e){var t=e.getDay();return t>=4||t===0?ns(e):ns.ceil(e)}function lte(e,t){return e=a4(e),Ye(ns.count(Ia(e),e)+(Ia(e).getDay()===4),t,2)}function ste(e){return e.getDay()}function ute(e,t){return Ye(Bh.count(Ia(e)-1,e),t,2)}function cte(e,t){return Ye(e.getFullYear()%100,t,2)}function fte(e,t){return e=a4(e),Ye(e.getFullYear()%100,t,2)}function dte(e,t){return Ye(e.getFullYear()%1e4,t,4)}function hte(e,t){var n=e.getDay();return e=n>=4||n===0?ns(e):ns.ceil(e),Ye(e.getFullYear()%1e4,t,4)}function pte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ye(t/60|0,"0",2)+Ye(t%60,"0",2)}function ER(e,t){return Ye(e.getUTCDate(),t,2)}function mte(e,t){return Ye(e.getUTCHours(),t,2)}function vte(e,t){return Ye(e.getUTCHours()%12||12,t,2)}function gte(e,t){return Ye(1+nm.count(za(e),e),t,3)}function i4(e,t){return Ye(e.getUTCMilliseconds(),t,3)}function yte(e,t){return i4(e,t)+"000"}function bte(e,t){return Ye(e.getUTCMonth()+1,t,2)}function xte(e,t){return Ye(e.getUTCMinutes(),t,2)}function wte(e,t){return Ye(e.getUTCSeconds(),t,2)}function Ste(e){var t=e.getUTCDay();return t===0?7:t}function Ote(e,t){return Ye(am.count(za(e)-1,e),t,2)}function o4(e){var t=e.getUTCDay();return t>=4||t===0?rs(e):rs.ceil(e)}function _te(e,t){return e=o4(e),Ye(rs.count(za(e),e)+(za(e).getUTCDay()===4),t,2)}function Ete(e){return e.getUTCDay()}function Ate(e,t){return Ye(qh.count(za(e)-1,e),t,2)}function Tte(e,t){return Ye(e.getUTCFullYear()%100,t,2)}function jte(e,t){return e=o4(e),Ye(e.getUTCFullYear()%100,t,2)}function Cte(e,t){return Ye(e.getUTCFullYear()%1e4,t,4)}function Mte(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rs(e):rs.ceil(e),Ye(e.getUTCFullYear()%1e4,t,4)}function Nte(){return"+0000"}function AR(){return"%"}function TR(e){return+e}function jR(e){return Math.floor(+e/1e3)}var Ml,l4,s4;Rte({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 Rte(e){return Ml=Ree(e),l4=Ml.format,Ml.parse,s4=Ml.utcFormat,Ml.utcParse,Ml}function Pte(e){return new Date(e)}function Dte(e){return e instanceof Date?+e:+new Date(+e)}function RO(e,t,n,r,i,l,s,c,f,d){var m=yO(),p=m.invert,g=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?g(Array.from(N,Dte)):g().map(Pte)},m.ticks=function(N){var R=g();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=g();return(!N||typeof N.range!="function")&&(N=t(R[0],R[R.length-1],N??10)),N?g(W3(R,N)):m},m.copy=function(){return uf(m,RO(e,t,n,r,i,l,s,c,f,d))},m}function kte(){return mr.apply(RO(Mee,Nee,Ia,MO,rm,cf,jO,AO,ho,l4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $te(){return mr.apply(RO(jee,Cee,za,NO,am,nm,CO,TO,ho,s4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function im(){var e=0,t=1,n,r,i,l,s=mn,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(g){var x,O;return arguments.length?([x,O]=g,s=p(x,O),d):[s(0),s(1)]}}return d.range=m(Ps),d.rangeRound=m(gO),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 u4(){var e=Di(im()(mn));return e.copy=function(){return ki(e,u4())},Ha.apply(e,arguments)}function c4(){var e=wO(im()).domain([1,10]);return e.copy=function(){return ki(e,c4()).base(e.base())},Ha.apply(e,arguments)}function f4(){var e=SO(im());return e.copy=function(){return ki(e,f4()).constant(e.constant())},Ha.apply(e,arguments)}function PO(){var e=OO(im());return e.copy=function(){return ki(e,PO()).exponent(e.exponent())},Ha.apply(e,arguments)}function Lte(){return PO.apply(null,arguments).exponent(.5)}function d4(){var e=[],t=mn;function n(r){if(r!=null&&!isNaN(r=+r))return t((lf(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)=>OJ(e,l/r))},n.copy=function(){return d4(t).domain(e)},Ha.apply(n,arguments)}function om(){var e=0,t=.5,n=1,r=1,i,l,s,c,f,d=mn,m,p=!1,g;function x(w){return isNaN(w=+w)?g:(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=KJ(w,[E,T,A]),x):[d(0),d(.5),d(1)]}}return x.range=O(Ps),x.rangeRound=O(gO),x.unknown=function(w){return arguments.length?(g=w,x):g},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 h4(){var e=Di(om()(mn));return e.copy=function(){return ki(e,h4())},Ha.apply(e,arguments)}function p4(){var e=wO(om()).domain([.1,1,10]);return e.copy=function(){return ki(e,p4()).base(e.base())},Ha.apply(e,arguments)}function m4(){var e=SO(om());return e.copy=function(){return ki(e,m4()).constant(e.constant())},Ha.apply(e,arguments)}function DO(){var e=OO(om());return e.copy=function(){return ki(e,DO()).exponent(e.exponent())},Ha.apply(e,arguments)}function Ite(){return DO.apply(null,arguments).exponent(.5)}const CR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:mc,scaleDiverging:h4,scaleDivergingLog:p4,scaleDivergingPow:DO,scaleDivergingSqrt:Ite,scaleDivergingSymlog:m4,scaleIdentity:Y3,scaleImplicit:n1,scaleLinear:Ih,scaleLog:K3,scaleOrdinal:pO,scalePoint:Qu,scalePow:_O,scaleQuantile:Z3,scaleQuantize:J3,scaleRadial:Q3,scaleSequential:u4,scaleSequentialLog:c4,scaleSequentialPow:PO,scaleSequentialQuantile:d4,scaleSequentialSqrt:Lte,scaleSequentialSymlog:f4,scaleSqrt:yee,scaleSymlog:X3,scaleThreshold:e4,scaleTime:kte,scaleUtc:$te,tickFormat:V3},Symbol.toStringTag,{value:"Module"}));var Sx,MR;function v4(){if(MR)return Sx;MR=1;var e=Cs();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 Sx=t,Sx}var Ox,NR;function zte(){if(NR)return Ox;NR=1;function e(t,n){return t>n}return Ox=e,Ox}var _x,RR;function Bte(){if(RR)return _x;RR=1;var e=v4(),t=zte(),n=Ns();function r(i){return i&&i.length?e(i,n,t):void 0}return _x=r,_x}var qte=Bte();const lm=lt(qte);var Ex,PR;function Ute(){if(PR)return Ex;PR=1;function e(t,n){return t<n}return Ex=e,Ex}var Ax,DR;function Hte(){if(DR)return Ax;DR=1;var e=v4(),t=Ute(),n=Ns();function r(i){return i&&i.length?e(i,n,t):void 0}return Ax=r,Ax}var Fte=Hte();const sm=lt(Fte);var Tx,kR;function Gte(){if(kR)return Tx;kR=1;var e=XS(),t=Pi(),n=_3(),r=Nn();function i(l,s){var c=r(l)?e:n;return c(l,t(s,3))}return Tx=i,Tx}var jx,$R;function Vte(){if($R)return jx;$R=1;var e=S3(),t=Gte();function n(r,i){return e(t(r,i),1)}return jx=n,jx}var Yte=Vte();const Wte=lt(Yte);var Cx,LR;function Kte(){if(LR)return Cx;LR=1;var e=uO();function t(n,r){return e(n,r)}return Cx=t,Cx}var Xte=Kte();const um=lt(Xte);var Ds=1e9,Qte={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$O,yt=!0,hr="[DecimalError] ",go=hr+"Invalid argument: ",kO=hr+"Exponent out of range: ",ks=Math.floor,uo=Math.pow,Zte=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Fn,Yt=1e7,mt=7,g4=9007199254740991,Uh=ks(g4/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 kt(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(Fn))throw Error(hr+"NaN");if(n.s<1)throw Error(hr+(n.s?"NaN":"-Infinity"));return n.eq(Fn)?new r(0):(yt=!1,t=Pa(xc(n,l),xc(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?x4(t,e):y4(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(hr+"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 b4(this)};xe.naturalLogarithm=xe.ln=function(){return xc(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?y4(t,e):x4(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(go+e);if(t=kt(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(hr+"NaN")}for(e=kt(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=ks((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,g=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=g.length,d=x.length,f<d&&(l=g,g=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]*g[i-r-1]+t,l[i--]=c%Yt|0,t=c/Yt|0;l[i]=(l[i]+t)%Yt|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,Ds),t===void 0?t=r.rounding:na(t,0,8),ut(n,e+kt(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=_o(r,!0):(na(e,0,Ds),t===void 0?t=i.rounding:na(t,0,8),r=ut(new i(r),e+1,t),n=_o(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?_o(i):(na(e,0,Ds),t===void 0?t=l.rounding:na(t,0,8),r=ut(new l(i),e+kt(i)+1,t),n=_o(r.abs(),!1,e+kt(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return ut(new t(e),kt(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(Fn);if(c=new f(c),!c.s){if(e.s<1)throw Error(hr+"Infinity");return c}if(c.eq(Fn))return c;if(r=f.precision,e.eq(Fn))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)<=g4){for(i=new f(Fn),t=Math.ceil(r/mt+4),yt=!1;n%2&&(i=i.times(c),zR(i.d,t)),n=ks(n/2),n!==0;)c=c.times(c),zR(c.d,t);return yt=!0,e.s<0?new f(Fn).div(i):ut(i,r)}}else if(l<0)throw Error(hr+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,yt=!1,i=e.times(xc(c,r+d)),yt=!0,i=b4(i),i.s=l,i};xe.toPrecision=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?(n=kt(i),r=_o(i,n<=l.toExpNeg||n>=l.toExpPos)):(na(e,1,Ds),t===void 0?t=l.rounding:na(t,0,8),i=ut(new l(i),e,t),n=kt(i),r=_o(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,Ds),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=kt(e),n=e.constructor;return _o(e,t<=n.toExpNeg||t>=n.toExpPos)};function y4(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)/Yt|0,f[l]%=Yt;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(go+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%Yt|0,s=l/Yt|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*Yt+r[l]-i[l];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,l,s){var c,f,d,m,p,g,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(hr+"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+(kt(r)-kt(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*Yt+(z[d]||0),O[d]=A/B|0,m=A%B|0;else{for(m=Yt/(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]>=Yt/2&&++N;do m=0,c=t(B,w,R,S),c<0?(E=w[0],R!=S&&(E=E*Yt+(w[1]||0)),m=E/N|0,m>1?(m>=Yt&&(m=Yt-1),p=e(B,m),g=p.length,S=w.length,c=t(p,w,g,S),c==1&&(m--,n(p,R<g?k:B,g))):(m==0&&(c=m=1),p=B.slice()),g=p.length,g<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+kt(x)+1:l)}})();function b4(e,t){var n,r,i,l,s,c,f=0,d=0,m=e.constructor,p=m.precision;if(kt(e)>16)throw Error(kO+kt(e));if(!e.s)return new m(Fn);for(yt=!1,c=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(r=Math.log(uo(2,d))/Math.LN10*2+5|0,c+=r,n=i=l=new m(Fn),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 kt(e){for(var t=e.e*mt,n=e.d[0];n>=10;n/=10)t++;return t}function Mx(e,t,n){if(t>e.LN10.sd())throw yt=!0,n&&(e.precision=n),Error(hr+"LN10 precision limit exceeded");return ut(new e(e.LN10),t)}function wi(e){for(var t="";e--;)t+="0";return t}function xc(e,t){var n,r,i,l,s,c,f,d,m,p=1,g=10,x=e,O=x.d,w=x.constructor,S=w.precision;if(x.s<1)throw Error(hr+(x.s?"NaN":"-Infinity"));if(x.eq(Fn))return new w(0);if(t==null?(yt=!1,d=S):d=t,x.eq(10))return t==null&&(yt=!0),Mx(w,d);if(d+=g,w.precision=d,n=Qr(O),r=n.charAt(0),l=kt(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=kt(x),r>1?(x=new w("0."+n),l++):x=new w(r+"."+n.slice(1))}else return f=Mx(w,d+2,S).times(l+""),x=xc(new w(r+"."+n.slice(1)),d-g).plus(f),w.precision=S,t==null?(yt=!0,ut(x,S)):x;for(c=s=x=Pa(x.minus(Fn),x.plus(Fn),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(Mx(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 IR(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=ks(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>Uh||e.e<-Uh))throw Error(kO+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=uo(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/uo(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(l=kt(e),p.length=1,t=t-l-1,p[0]=uo(10,(mt-t%mt)%mt),e.e=ks(-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=uo(10,mt-r),p[m]=i>0?(d/uo(10,s-i)%uo(10,i)|0)*l:0),f)for(;;)if(m==0){(p[0]+=l)==Yt&&(p[0]=1,++e.e);break}else{if(p[m]+=l,p[m]!=Yt)break;p[m--]=0,l=1}for(r=p.length;p[--r]===0;)p.pop();if(yt&&(e.e>Uh||e.e<-Uh))throw Error(kO+kt(e));return e}function x4(e,t){var n,r,i,l,s,c,f,d,m,p,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(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]=Yt-1;--f[l],f[i]+=Yt}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 g(0)}function _o(e,t,n){var r,i=kt(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 zR(e,t){if(e.length>t)return e.length=t,!0}function w4(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(go+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 IR(s,l.toString())}else if(typeof l!="string")throw Error(go+l);if(l.charCodeAt(0)===45?(l=l.slice(1),s.s=-1):s.s=1,Zte.test(l))IR(s,l);else throw Error(go+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=w4,i.config=i.set=Jte,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 Jte(e){if(!e||typeof e!="object")throw Error(hr+"Object expected");var t,n,r,i=["precision",1,Ds,"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(ks(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(go+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(go+n+": "+r);return this}var $O=w4(Qte);Fn=new $O(1);const ot=$O;function ene(e){return ane(e)||rne(e)||nne(e)||tne()}function tne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
307
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nne(e,t){if(e){if(typeof e=="string")return o1(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 o1(e,t)}}function rne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ane(e){if(Array.isArray(e))return o1(e)}function o1(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 ine=function(t){return t},S4={},O4=function(t){return t===S4},BR=function(t){return function n(){return arguments.length===0||arguments.length===1&&O4(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},one=function e(t,n){return t===1?n:BR(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!==S4}).length;return s>=t?n.apply(void 0,i):e(t-s,BR(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 O4(p)?f.shift():p});return n.apply(void 0,ene(m).concat(f))}))})},cm=function(t){return one(t.length,t)},l1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},lne=cm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),sne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return ine;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))}},s1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},_4=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 une(e){var t;return e===0?t=1:t=Math.floor(new ot(e).abs().log(10).toNumber())+1,t}function cne(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 fne=cm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),dne=cm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),hne=cm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const fm={rangeStep:cne,getDigitCount:une,interpolateNumber:fne,uninterpolateNumber:dne,uninterpolateTruncation:hne};function u1(e){return vne(e)||mne(e)||E4(e)||pne()}function pne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
308
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function vne(e){if(Array.isArray(e))return c1(e)}function wc(e,t){return bne(e)||yne(e,t)||E4(e,t)||gne()}function gne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
309
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E4(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 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}function yne(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 bne(e){if(Array.isArray(e))return e}function A4(e){var t=wc(e,2),n=t[0],r=t[1],i=n,l=r;return n>r&&(i=r,l=n),[i,l]}function T4(e,t,n){if(e.lte(0))return new ot(0);var r=fm.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 xne(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(fm.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=sne(lne(function(f){return i.add(new ot(f-s).mul(r)).toNumber()}),l1);return c(0,t)}function j4(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=T4(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?j4(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 wne(e){var t=wc(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=A4([n,r]),f=wc(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(u1(l1(0,i-1).map(function(){return 1/0}))):[].concat(u1(l1(0,i-1).map(function(){return-1/0})),[m]);return n>r?s1(p):p}if(d===m)return xne(d,i,l);var g=j4(d,m,s,l),x=g.step,O=g.tickMin,w=g.tickMax,S=fm.rangeStep(O,w.add(new ot(.1).mul(x)),x);return n>r?s1(S):S}function Sne(e,t){var n=wc(e,2),r=n[0],i=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=A4([r,i]),c=wc(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=T4(new ot(d).sub(f).div(m-1),l,0),g=[].concat(u1(fm.rangeStep(new ot(f),new ot(d).sub(new ot(.99).mul(p)),p)),[d]);return r>i?s1(g):g}var One=_4(wne),_ne=_4(Sne),Ene="Invariant failed";function Eo(e,t){throw new Error(Ene)}var Ane=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function Hh(){return Hh=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},Hh.apply(this,arguments)}function Tne(e,t){return Nne(e)||Mne(e,t)||Cne(e,t)||jne()}function jne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
310
|
-
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 qR(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 qR(e,t)}}function qR(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 Mne(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 Nne(e){if(Array.isArray(e))return e}function Rne(e,t){if(e==null)return{};var n=Pne(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 Pne(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 Dne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kne(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,N4(r.key),r)}}function $ne(e,t,n){return t&&kne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lne(e,t,n){return t=Fh(t),Ine(e,C4()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function Ine(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zne(e)}function zne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C4=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function Bne(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&&f1(e,t)}function f1(e,t){return f1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f1(e,t)}function M4(e,t,n){return t=N4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N4(e){var t=qne(e,"string");return as(t)=="symbol"?t:t+""}function qne(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ff=(function(e){function t(){return Dne(this,t),Lne(this,t,arguments)}return Bne(t,e),$ne(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,g=Rne(r,Ane),x=qe(g,!1);this.props.direction==="x"&&m.type!=="number"&&Eo();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=Tne(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,Hh({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",Hh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return L.createElement(jt,{className:"recharts-errorBars"},O)}}])})(L.Component);M4(ff,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});M4(ff,"displayName","ErrorBar");function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}function UR(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?UR(Object(n),!0).forEach(function(r){Une(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Une(e,t,n){return t=Hne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hne(e){var t=Fne(e,"string");return Sc(t)=="symbol"?t:t+""}function Fne(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var R4=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,l=t.legendContent,s=Un(n,mo);if(!s)return null;var c=mo.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 g=p.item,x=p.props,O=x.sectors||x.data||[];return m.concat(O.map(function(w){return{type:s.props.iconType||g.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(r||[]).map(function(m){var p=m.item,g=p.type.defaultProps,x=g!==void 0?oo(oo({},g),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:LO(p),value:w||O,payload:x}}),oo(oo(oo({},f),mo.getWithHeight(s,i)),{},{payload:d,item:s})};function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}function HR(e){return Wne(e)||Yne(e)||Vne(e)||Gne()}function Gne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
311
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vne(e,t){if(e){if(typeof e=="string")return d1(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 d1(e,t)}}function Yne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wne(e){if(Array.isArray(e))return d1(e)}function d1(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 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 _t(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){Gl(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 Gl(e,t,n){return t=Kne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kne(e){var t=Xne(e,"string");return Oc(t)=="symbol"?t:t+""}function Xne(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vn(e,t,n){return Le(e)||Le(t)?n:Bt(t)?cr(e,t,n):De(t)?t(e):n}function Zu(e,t,n,r){var i=Wte(e,function(c){return Vn(c,t)});if(n==="number"){var l=i.filter(function(c){return ve(c)||parseFloat(c)});return l.length?[sm(l),lm(l)]:[1/0,-1/0]}var s=r?i.filter(function(c){return!Le(c)}):i;return s.map(function(c){return Bt(c)||c instanceof Date?c:""})}var Qne=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,g=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(Tr(p-m)!==Tr(g-p)){var O=[];if(Tr(g-p)===Tr(f[1]-f[0])){x=g;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=g+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,g),A=Math.max(m,g);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},LO=function(t){var n,r=t,i=r.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?_t(_t({},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},Zne=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),g=0,x=p.length;g<x;g++){var O=m[p[g]],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?_t(_t({},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:Oo(N,r,0)})}}return s},Jne=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=Oo(n,i,0,!0),m,p=[];if(s[0].barSize===+s[0].barSize){var g=!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&&(g=!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:g?x:j.barSize}},R=[].concat(HR(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=Oo(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(HR(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},ere=function(t,n,r,i){var l=r.children,s=r.width,c=r.margin,f=s-(c.left||0)-(c.right||0),d=R4({children:l,legendWidth:f});if(d){var m=i||{},p=m.width,g=m.height,x=d.align,O=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&O==="middle")&&x!=="center"&&ve(t[x]))return _t(_t({},t),{},Gl({},x,t[x]+(p||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&O!=="middle"&&ve(t[O]))return _t(_t({},t),{},Gl({},O,t[O]+(g||0)))}return t},tre=function(t,n,r){return Le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},P4=function(t,n,r,i,l){var s=n.props.children,c=fr(s,ff).filter(function(d){return tre(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=Vn(m,r);if(Le(p))return d;var g=Array.isArray(p)?[sm(p),lm(p)]:[p,p],x=f.reduce(function(O,w){var S=Vn(m,w,0),E=g[0]-Math.abs(Array.isArray(S)?S[0]:S),T=g[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},nre=function(t,n,r,i,l){var s=n.map(function(c){return P4(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},D4=function(t,n,r,i,l){var s=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&P4(t,f,d,i)||Zu(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},[])},k4=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},$4=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?Tr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(p){var g=l?l.indexOf(p):p;return{coordinate:i(g)+d,value:p,offset:d}});return m.filter(function(p){return!rf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:i(p)+d,value:p,index:g,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,g){return{coordinate:i(p)+d,value:l?l[p]:p,index:g,offset:d}})},Nx=new WeakMap,Fd=function(t,n){if(typeof n!="function")return t;Nx.has(t)||Nx.set(t,new WeakMap);var r=Nx.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},rre=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:mc(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Ih(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Qu(),realScaleType:"point"}:l==="category"?{scale:mc(),realScaleType:"band"}:{scale:Ih(),realScaleType:"linear"};if(So(i)){var f="scale".concat(Wp(i));return{scale:(CR[f]||Qu)(),realScaleType:CR[f]?f:"point"}}return De(i)?{scale:i}:{scale:Qu(),realScaleType:"point"}},GR=1e-4,are=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])-GR,s=Math.max(i[0],i[1])+GR,c=t(n[0]),f=t(n[r-1]);(c<l||c>s||f<l||f>s)&&t.domain([n[0],n[r-1]])}},ire=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},ore=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},lre=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=rf(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])}},sre=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=rf(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)}},ure={sign:lre,expand:GK,none:Xl,silhouette:VK,wiggle:YK,positive:sre},cre=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),l=ure[r],s=FK().keys(i).value(function(c,f){return+Vn(c,f,0)}).order(Uw).offset(l);return s(t)},fre=function(t,n,r,i,l,s){if(!t)return null;var c=s?n.reverse():n,f={},d=c.reduce(function(p,g){var x,O=(x=g.type)!==null&&x!==void 0&&x.defaultProps?_t(_t({},g.type.defaultProps),g.props):g.props,w=O.stackId,S=O.hide;if(S)return p;var E=O[r],T=p[E]||{hasStack:!1,stackGroups:{}};if(Bt(w)){var A=T.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};A.items.push(g),T.hasStack=!0,T.stackGroups[w]=A}else T.stackGroups[af("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[g]};return _t(_t({},p),{},Gl({},E,T))},f),m={};return Object.keys(d).reduce(function(p,g){var x=d[g];if(x.hasStack){var O={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,S){var E=x.stackGroups[S];return _t(_t({},w),{},Gl({},S,{numericAxisId:r,cateAxisId:i,items:E.items,stackedData:cre(t,E.items,l)}))},O)}return _t(_t({},p),{},Gl({},g,x))},m)},dre=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=One(d,l,c);return t.domain([sm(m),lm(m)]),{niceTicks:m}}if(l&&i==="number"){var p=t.domain(),g=_ne(p,l,c);return{niceTicks:g}}return null};function VR(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=yh(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[l]?n[l].coordinate+r/2:null}var f=Vn(i,Le(s)?t.dataKey:s);return Le(f)?null:t.scale(f)}var YR=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=Vn(s,n.dataKey,n.domain[c]);return Le(f)?null:n.scale(f)-l/2+i},hre=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]},pre=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,l=i.stackId;if(Bt(l)){var s=n[l];if(s){var c=s.items.indexOf(t);return c>=0?s.stackedData[c]:null}}return null},mre=function(t){return t.reduce(function(n,r){return[sm(r.concat([n[0]]).filter(ve)),lm(r.concat([n[1]]).filter(ve))]},[1/0,-1/0])},L4=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=mre(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})},WR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,KR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,h1=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(WR.test(t[0])){var l=+WR.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(KR.test(t[1])){var s=+KR.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},Gh=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=fO(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},XR=function(t,n,r){return!t||!t.length||um(t,cr(r,"type.defaultProps.domain"))?n:t},I4=function(t,n){var r=t.type.defaultProps?_t(_t({},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 _t(_t({},qe(t,!1)),{},{dataKey:i,unit:s,formatter:c,name:l||i,color:LO(t),value:Vn(n,i),type:f,payload:n,chartType:d,hide:m})};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 QR(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 ZR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){vre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vre(e,t,n){return t=gre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gre(e){var t=yre(e,"string");return _c(t)=="symbol"?t:t+""}function yre(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 Vh=Math.PI/180,bre=function(t){return t*180/Math.PI},tn=function(t,n,r,i){return{x:t+Math.cos(-Vh*i)*r,y:n+Math.sin(-Vh*i)*r}},xre=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))},wre=function(t,n){var r=t.x,i=t.y,l=n.cx,s=n.cy,c=xre({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:bre(d),angleInRadian:d}},Sre=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}},Ore=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},JR=function(t,n){var r=t.x,i=t.y,l=wre({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=Sre(n),p=m.startAngle,g=m.endAngle,x=c,O;if(p<=g){for(;x>g;)x-=360;for(;x<p;)x+=360;O=x>=p&&x<=g}else{for(;x>p;)x-=360;for(;x<g;)x+=360;O=x>=g&&x<=p}return O?ZR(ZR({},n),{},{radius:s,angle:Ore(x,n)}):null};function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(e)}var _re=["offset"];function Ere(e){return Cre(e)||jre(e)||Tre(e)||Are()}function Are(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
312
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tre(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 jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cre(e){if(Array.isArray(e))return p1(e)}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 Mre(e,t){if(e==null)return{};var n=Nre(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 Nre(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 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 zt(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){Rre(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 Rre(e,t,n){return t=Pre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pre(e){var t=Dre(e,"string");return Ec(t)=="symbol"?t:t+""}function Dre(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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)}var kre=function(t){var n=t.value,r=t.formatter,i=Le(t.children)?n:t.children;return De(r)?r(i):i},$re=function(t,n){var r=Tr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Lre=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,g=f.outerRadius,x=f.startAngle,O=f.endAngle,w=f.clockWise,S=(p+g)/2,E=$re(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=tn(d,m,S,A),N=tn(d,m,S,A+(M?1:-1)*359),R="M".concat(j.x,",").concat(j.y,`
|
|
313
|
-
A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`,
|
|
314
|
-
`).concat(N.x,",").concat(N.y),k=Le(t.id)?af("recharts-radial-line-"):t.id;return L.createElement("text",Ac({},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))},Ire=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,g=(m+p)/2;if(i==="outside"){var x=tn(s,c,d+r,g),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=tn(s,c,S,g),T=E.x,A=E.y;return{x:T,y:A,textAnchor:"middle",verticalAnchor:"middle"}},zre=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,g=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 zt(zt({},A),r?{height:Math.max(f-r.y,0),width:d}:{})}if(l==="bottom"){var M={x:c+d/2,y:f+m+g,textAnchor:"middle",verticalAnchor:O};return zt(zt({},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 zt(zt({},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 zt(zt({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:m}:{})}var R=r?{width:d,height:m}:{};return l==="insideLeft"?zt({x:c+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"},R):l==="insideRight"?zt({x:c+d-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"},R):l==="insideTop"?zt({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:O},R):l==="insideBottom"?zt({x:c+d/2,y:f+m-g,textAnchor:"middle",verticalAnchor:x},R):l==="insideTopLeft"?zt({x:c+S,y:f+g,textAnchor:T,verticalAnchor:O},R):l==="insideTopRight"?zt({x:c+d-S,y:f+g,textAnchor:E,verticalAnchor:O},R):l==="insideBottomLeft"?zt({x:c+S,y:f+m-g,textAnchor:T,verticalAnchor:x},R):l==="insideBottomRight"?zt({x:c+d-S,y:f+m-g,textAnchor:E,verticalAnchor:x},R):Ms(l)&&(ve(l.x)||co(l.x))&&(ve(l.y)||co(l.y))?zt({x:c+Oo(l.x,d),y:f+Oo(l.y,m),textAnchor:"end",verticalAnchor:"end"},R):zt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},R)},Bre=function(t){return"cx"in t&&ve(t.cx)};function sn(e){var t=e.offset,n=t===void 0?5:t,r=Mre(e,_re),i=zt({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,g=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=kre(i);var O=Bre(l),w=qe(i,!0);if(O&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Lre(i,x,w);var S=O?Ire(i):zre(i);return L.createElement(Nh,Ac({className:Ue("recharts-label",p)},w,S,{breakAll:g}),x)}sn.displayName="Label";var z4=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,g=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(g))return{x:p,y:g,width:w,height:S};if(ve(x)&&ve(O))return{x,y:O,width:w,height:S}}return ve(p)&&ve(g)?{x:p,y:g,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:{}},qre=function(t,n){return t?t===!0?L.createElement(sn,{key:"label-implicit",viewBox:n}):Bt(t)?L.createElement(sn,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===sn?_.cloneElement(t,{key:"label-implicit",viewBox:n}):L.createElement(sn,{key:"label-implicit",content:t,viewBox:n}):De(t)?L.createElement(sn,{key:"label-implicit",content:t,viewBox:n}):Ms(t)?L.createElement(sn,Ac({viewBox:n},t,{key:"label-implicit"})):null:null},Ure=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=z4(t),s=fr(i,sn).map(function(f,d){return _.cloneElement(f,{viewBox:n||l,key:"label-".concat(d)})});if(!r)return s;var c=qre(t.label,n||l);return[c].concat(Ere(s))};sn.parseViewBox=z4;sn.renderCallByParent=Ure;var Rx,tP;function Hre(){if(tP)return Rx;tP=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Rx=e,Rx}var Fre=Hre();const Gre=lt(Fre);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)}var Vre=["valueAccessor"],Yre=["data","dataKey","clockWise","id","textBreakAll"];function Wre(e){return Zre(e)||Qre(e)||Xre(e)||Kre()}function Kre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
315
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xre(e,t){if(e){if(typeof e=="string")return m1(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 m1(e,t)}}function Qre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zre(e){if(Array.isArray(e))return m1(e)}function m1(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 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 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 rP(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){Jre(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 Jre(e,t,n){return t=eae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eae(e){var t=tae(e,"string");return Tc(t)=="symbol"?t:t+""}function tae(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 aP(e,t){if(e==null)return{};var n=nae(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 nae(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 rae=function(t){return Array.isArray(t.value)?Gre(t.value):t.value};function Ei(e){var t=e.valueAccessor,n=t===void 0?rae:t,r=aP(e,Vre),i=r.data,l=r.dataKey,s=r.clockWise,c=r.id,f=r.textBreakAll,d=aP(r,Yre);return!i||!i.length?null:L.createElement(jt,{className:"recharts-label-list"},i.map(function(m,p){var g=Le(l)?n(m,p):Vn(m&&m.payload,l),x=Le(c)?{}:{id:"".concat(c,"-").concat(p)};return L.createElement(sn,Yh({},qe(m,!0),d,x,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:sn.parseViewBox(Le(s)?m:rP(rP({},m),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}Ei.displayName="LabelList";function aae(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}):Ms(e)?L.createElement(Ei,Yh({data:t},e,{key:"labelList-implicit"})):null:null}function iae(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=fr(r,Ei).map(function(s,c){return _.cloneElement(s,{data:t,key:"labelList-".concat(c)})});if(!n)return i;var l=aae(e.label,t);return[l].concat(Wre(i))}Ei.renderCallByParent=iae;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 v1(){return v1=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},v1.apply(this,arguments)}function iP(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 oP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(n),!0).forEach(function(r){oae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oae(e,t,n){return t=lae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lae(e){var t=sae(e,"string");return jc(t)=="symbol"?t:t+""}function sae(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 uae=function(t,n){var r=Tr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Gd=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)/Vh,g=d?l:l+s*p,x=tn(n,r,m,g),O=tn(n,r,i,g),w=d?l-s*p:l,S=tn(n,r,m*Math.cos(p*Vh),w);return{center:x,circleTangency:O,lineTangency:S,theta:p}},B4=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.startAngle,c=t.endAngle,f=uae(s,c),d=s+f,m=tn(n,r,l,s),p=tn(n,r,l,d),g="M ".concat(m.x,",").concat(m.y,`
|
|
316
|
-
A `).concat(l,",").concat(l,`,0,
|
|
317
|
-
`).concat(+(Math.abs(f)>180),",").concat(+(s>d),`,
|
|
318
|
-
`).concat(p.x,",").concat(p.y,`
|
|
319
|
-
`);if(i>0){var x=tn(n,r,i,s),O=tn(n,r,i,d);g+="L ".concat(O.x,",").concat(O.y,`
|
|
320
|
-
A `).concat(i,",").concat(i,`,0,
|
|
321
|
-
`).concat(+(Math.abs(f)>180),",").concat(+(s<=d),`,
|
|
322
|
-
`).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},cae=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=Tr(m-d),g=Gd({cx:n,cy:r,radius:l,angle:d,sign:p,cornerRadius:s,cornerIsExternal:f}),x=g.circleTangency,O=g.lineTangency,w=g.theta,S=Gd({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,`
|
|
323
|
-
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
324
|
-
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
325
|
-
`):B4({cx:n,cy:r,innerRadius:i,outerRadius:l,startAngle:d,endAngle:m});var j="M ".concat(O.x,",").concat(O.y,`
|
|
326
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
|
|
327
|
-
A`).concat(l,",").concat(l,",0,").concat(+(M>180),",").concat(+(p<0),",").concat(E.x,",").concat(E.y,`
|
|
328
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
|
|
329
|
-
`);if(i>0){var N=Gd({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=Gd({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,`
|
|
330
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.y,`
|
|
331
|
-
A`).concat(i,",").concat(i,",0,").concat(+(K>180),",").concat(+(p>0),",").concat(R.x,",").concat(R.y,`
|
|
332
|
-
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},fae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},q4=function(t){var n=oP(oP({},fae),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,g=n.className;if(s<l||m===p)return null;var x=Ue("recharts-sector",g),O=s-l,w=Oo(c,O,0,!0),S;return w>0&&Math.abs(m-p)<360?S=cae({cx:r,cy:i,innerRadius:l,outerRadius:s,cornerRadius:Math.min(w,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):S=B4({cx:r,cy:i,innerRadius:l,outerRadius:s,startAngle:m,endAngle:p}),L.createElement("path",v1({},qe(n,!0),{className:x,d:S,role:"img"}))};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)}function g1(){return g1=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},g1.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){dae(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 dae(e,t,n){return t=hae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hae(e){var t=pae(e,"string");return Cc(t)=="symbol"?t:t+""}function pae(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)}var uP={curveBasisClosed:PK,curveBasisOpen:DK,curveBasis:RK,curveBumpX:yK,curveBumpY:bK,curveLinearClosed:kK,curveLinear:Xp,curveMonotoneX:$K,curveMonotoneY:LK,curveNatural:IK,curveStep:zK,curveStepAfter:qK,curveStepBefore:BK},Vd=function(t){return t.x===+t.x&&t.y===+t.y},qu=function(t){return t.x},Uu=function(t){return t.y},mae=function(t,n){if(De(t))return t;var r="curve".concat(Wp(t));return(r==="curveMonotone"||r==="curveBump")&&n?uP["".concat(r).concat(n==="vertical"?"Y":"X")]:uP[r]||Xp},vae=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=mae(r,c),p=d?l.filter(function(w){return Vd(w)}):l,g;if(Array.isArray(s)){var x=d?s.filter(function(w){return Vd(w)}):s,O=p.map(function(w,S){return sP(sP({},w),{},{base:x[S]})});return c==="vertical"?g=Ld().y(Uu).x1(qu).x0(function(w){return w.base.x}):g=Ld().x(qu).y1(Uu).y0(function(w){return w.base.y}),g.defined(Vd).curve(m),g(O)}return c==="vertical"&&ve(s)?g=Ld().y(Uu).x1(qu).x0(s):ve(s)?g=Ld().x(qu).y1(Uu).y0(s):g=GI().x(qu).y(Uu),g.defined(Vd).curve(m),g(p)},y1=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?vae(t):i;return _.createElement("path",g1({},qe(t,!1),bh(t),{className:Ue("recharts-curve",n),d:s,ref:l}))},Px={exports:{}},Dx,cP;function gae(){if(cP)return Dx;cP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dx=e,Dx}var kx,fP;function yae(){if(fP)return kx;fP=1;var e=gae();function t(){}function n(){}return n.resetWarningCache=t,kx=function(){function r(s,c,f,d,m,p){if(p!==e){var g=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 g.name="Invariant Violation",g}}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},kx}var dP;function bae(){return dP||(dP=1,Px.exports=yae()()),Px.exports}var xae=bae();const Ze=lt(xae);var wae=Object.getOwnPropertyNames,Sae=Object.getOwnPropertySymbols,Oae=Object.prototype.hasOwnProperty;function hP(e,t){return function(r,i,l){return e(r,i,l)&&t(r,i,l)}}function Yd(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 _ae(e){return e!=null?e[Symbol.toStringTag]:void 0}function pP(e){return wae(e).concat(Sae(e))}var Eae=Object.hasOwn||(function(e,t){return Oae.call(e,t)});function Do(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Aae="__v",Tae="__o",jae="_owner",mP=Object.getOwnPropertyDescriptor,vP=Object.keys;function Cae(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 Mae(e,t){return Do(e.getTime(),t.getTime())}function Nae(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Rae(e,t){return e===t}function gP(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 g=s.value,x=c.value;if(n.equals(g[0],x[0],f,p,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){m=i[p]=!0;break}p++}if(!m)return!1;f++}return!0}var Pae=Do;function Dae(e,t,n){var r=vP(e),i=r.length;if(vP(t).length!==i)return!1;for(;i-- >0;)if(!U4(e,t,n,r[i]))return!1;return!0}function Hu(e,t,n){var r=pP(e),i=r.length;if(pP(t).length!==i)return!1;for(var l,s,c;i-- >0;)if(l=r[i],!U4(e,t,n,l)||(s=mP(e,l),c=mP(t,l),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function kae(e,t){return Do(e.valueOf(),t.valueOf())}function $ae(e,t){return e.source===t.source&&e.flags===t.flags}function yP(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 Lae(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 Iae(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 U4(e,t,n,r){return(r===jae||r===Tae||r===Aae)&&(e.$$typeof||t.$$typeof)?!0:Eae(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var zae="[object Arguments]",Bae="[object Boolean]",qae="[object Date]",Uae="[object Error]",Hae="[object Map]",Fae="[object Number]",Gae="[object Object]",Vae="[object RegExp]",Yae="[object Set]",Wae="[object String]",Kae="[object URL]",Xae=Array.isArray,bP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,xP=Object.assign,Qae=Object.prototype.toString.call.bind(Object.prototype.toString);function Zae(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,g=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(Xae(w))return t(w,S,E);if(bP!=null&&bP(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=Qae(w);if(M===qae)return n(w,S,E);if(M===Vae)return d(w,S,E);if(M===Hae)return l(w,S,E);if(M===Yae)return m(w,S,E);if(M===Gae)return typeof w.then!="function"&&typeof S.then!="function"&&c(w,S,E);if(M===Kae)return g(w,S,E);if(M===Uae)return r(w,S,E);if(M===zae)return c(w,S,E);if(M===Bae||M===Fae||M===Wae)return f(w,S,E);if(x){var j=x[M];if(!j){var N=_ae(w);N&&(j=x[N])}if(j)return j(w,S,E)}return!1}}function Jae(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Hu:Cae,areDatesEqual:Mae,areErrorsEqual:Nae,areFunctionsEqual:Rae,areMapsEqual:r?hP(gP,Hu):gP,areNumbersEqual:Pae,areObjectsEqual:r?Hu:Dae,arePrimitiveWrappersEqual:kae,areRegExpsEqual:$ae,areSetsEqual:r?hP(yP,Hu):yP,areTypedArraysEqual:r?Hu:Lae,areUrlsEqual:Iae,unknownTagComparators:void 0};if(n&&(i=xP({},i,n(i))),t){var l=Yd(i.areArraysEqual),s=Yd(i.areMapsEqual),c=Yd(i.areObjectsEqual),f=Yd(i.areSetsEqual);i=xP({},i,{areArraysEqual:l,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:f})}return i}function eie(e){return function(t,n,r,i,l,s,c){return e(t,n,c)}}function tie(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,g=p===void 0?t?new WeakMap:void 0:p,x=m.meta;return n(f,d,{cache:g,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 nie=$i();$i({strict:!0});$i({circular:!0});$i({circular:!0,strict:!0});$i({createInternalComparator:function(){return Do}});$i({strict:!0,createInternalComparator:function(){return Do}});$i({circular:!0,createInternalComparator:function(){return Do}});$i({circular:!0,createInternalComparator:function(){return Do},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=Jae(e),f=Zae(c),d=r?r(f):eie(f);return tie({circular:n,comparator:f,createState:i,equals:d,strict:s})}function rie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function wP(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):rie(i)};requestAnimationFrame(r)}function b1(e){"@babel/helpers - typeof";return b1=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},b1(e)}function aie(e){return sie(e)||lie(e)||oie(e)||iie()}function iie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
333
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oie(e,t){if(e){if(typeof e=="string")return SP(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 SP(e,t)}}function SP(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 lie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sie(e){if(Array.isArray(e))return e}function uie(){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=aie(s),f=c[0],d=c.slice(1);if(typeof f=="number"){wP(i.bind(null,d),f);return}i(f),wP(i.bind(null,d));return}b1(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 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 OP(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 _P(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OP(Object(n),!0).forEach(function(r){H4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H4(e,t,n){return t=cie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cie(e){var t=fie(e,"string");return Mc(t)==="symbol"?t:String(t)}function fie(e,t){if(Mc(e)!=="object"||e===null)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 die=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(l){return i.includes(l)})})},hie=function(t){return t},pie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ju=function(t,n){return Object.keys(n).reduce(function(r,i){return _P(_P({},r),{},H4({},i,t(i,n[i])))},{})},EP=function(t,n,r){return t.map(function(i){return"".concat(pie(i)," ").concat(n,"ms ").concat(r)}).join(",")};function mie(e,t){return yie(e)||gie(e,t)||F4(e,t)||vie()}function vie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
334
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gie(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 yie(e){if(Array.isArray(e))return e}function bie(e){return Sie(e)||wie(e)||F4(e)||xie()}function xie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
335
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F4(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 wie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sie(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 Wh=1e-4,G4=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},V4=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},AP=function(t,n){return function(r){var i=G4(t,n);return V4(i,r)}},Oie=function(t,n){return function(r){var i=G4(t,n),l=[].concat(bie(i.map(function(s,c){return s*c}).slice(1)),[0]);return V4(l,r)}},TP=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=mie(d,4);i=m[0],l=m[1],s=m[2],c=m[3]}}}var p=AP(i,s),g=AP(l,c),x=Oie(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)<Wh||N<Wh)return g(A);A=O(A-j/N)}return g(A)};return w.isStepper=!1,w},_ie=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,g){var x=-(m-p)*r,O=g*l,w=g+(x-O)*c/1e3,S=g*c/1e3+m;return Math.abs(S-p)<Wh&&Math.abs(w)<Wh?[p,0]:[S,w]};return f.isStepper=!0,f.dt=c,f},Eie=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 TP(i);case"spring":return _ie();default:if(i.split("(")[0]==="cubic-bezier")return TP(i)}return typeof i=="function"?i:null};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)}function jP(e){return jie(e)||Tie(e)||Y4(e)||Aie()}function Aie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
336
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jie(e){if(Array.isArray(e))return S1(e)}function CP(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 en(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(n),!0).forEach(function(r){w1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w1(e,t,n){return t=Cie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cie(e){var t=Mie(e,"string");return Nc(t)==="symbol"?t:String(t)}function Mie(e,t){if(Nc(e)!=="object"||e===null)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 Nie(e,t){return Die(e)||Pie(e,t)||Y4(e,t)||Rie()}function Rie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
337
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y4(e,t){if(e){if(typeof e=="string")return S1(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 S1(e,t)}}function S1(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 Pie(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 Die(e){if(Array.isArray(e))return e}var Kh=function(t,n,r){return t+(n-t)*r},O1=function(t){var n=t.from,r=t.to;return n!==r},kie=function e(t,n,r){var i=Ju(function(l,s){if(O1(s)){var c=t(s.from,s.to,s.velocity),f=Nie(c,2),d=f[0],m=f[1];return en(en({},s),{},{from:d,velocity:m})}return s},n);return r<1?Ju(function(l,s){return O1(s)?en(en({},s),{},{velocity:Kh(s.velocity,i[l].velocity,r),from:Kh(s.from,i[l].from,r)}):s},n):e(t,i,r-1)};const $ie=(function(e,t,n,r,i){var l=die(e,t),s=l.reduce(function(S,E){return en(en({},S),{},w1({},E,[e[E],t[E]]))},{}),c=l.reduce(function(S,E){return en(en({},S),{},w1({},E,{from:e[E],velocity:0,to:t[E]}))},{}),f=-1,d,m,p=function(){return null},g=function(){return Ju(function(E,T){return T.from},c)},x=function(){return!Object.values(c).filter(O1).length},O=function(E){d||(d=E);var T=E-d,A=T/n.dt;c=kie(n,c,A),i(en(en(en({},e),t),g())),d=E,x()||(f=requestAnimationFrame(p))},w=function(E){m||(m=E);var T=(E-m)/r,A=Ju(function(j,N){return Kh.apply(void 0,jP(N).concat([n(T)]))},s);if(i(en(en(en({},e),t),A)),T<1)f=requestAnimationFrame(p);else{var M=Ju(function(j,N){return Kh.apply(void 0,jP(N).concat([n(1)]))},s);i(en(en(en({},e),t),M))}};return p=n.isStepper?O:w,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});function is(e){"@babel/helpers - typeof";return is=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},is(e)}var Lie=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Iie(e,t){if(e==null)return{};var n=zie(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 zie(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 $x(e){return Hie(e)||Uie(e)||qie(e)||Bie()}function Bie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
338
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qie(e,t){if(e){if(typeof e=="string")return _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 Uie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hie(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}function MP(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 wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MP(Object(n),!0).forEach(function(r){Ku(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ku(e,t,n){return t=W4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gie(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,W4(r.key),r)}}function Vie(e,t,n){return t&&Gie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function W4(e){var t=Yie(e,"string");return is(t)==="symbol"?t:String(t)}function Yie(e,t){if(is(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wie(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 Kie(e){var t=Xie();return function(){var r=Xh(e),i;if(t){var l=Xh(this).constructor;i=Reflect.construct(r,arguments,l)}else i=r.apply(this,arguments);return A1(this,i)}}function A1(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T1(e)}function T1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xie(){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 Xh(e){return Xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xh(e)}var Ba=(function(e){Wie(n,e);var t=Kie(n);function n(r,i){var l;Fie(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,g=s.children,x=s.duration;if(l.handleStyleChange=l.handleStyleChange.bind(T1(l)),l.changeStyle=l.changeStyle.bind(T1(l)),!c||x<=0)return l.state={style:{}},typeof g=="function"&&(l.state={style:m}),A1(l);if(p&&p.length)l.state={style:p[0].style};else if(d){if(typeof g=="function")return l.state={style:d},A1(l);l.state={style:f?Ku({},f,d):d}}else l.state={style:{}};return l}return Vie(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,g=this.state.style;if(c){if(!s){var x={style:f?Ku({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(x);return}if(!(nie(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&&g){var S={style:f?Ku({},f,w):w};(f&&g[f]!==w||!f&&g!==w)&&this.setState(S)}this.runAnimation(wr(wr({},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,g=i.onAnimationStart,x=$ie(s,c,Eie(d),f,this.changeStyle),O=function(){l.stopJSAnimation=x()};this.manager.start([g,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,g=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($x(w),[l.runJSAnimation.bind(l,{from:k.style,to:j,duration:T,easing:M}),T]);var V=EP(I,T,M),z=wr(wr(wr({},k.style),j),{},{transition:V});return[].concat($x(w),[z,T,R]).filter(hie)};return this.manager.start([f].concat($x(s.reduce(x,[m,Math.max(g,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=uie());var l=i.begin,s=i.duration,c=i.attributeName,f=i.to,d=i.easing,m=i.onAnimationStart,p=i.onAnimationEnd,g=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(g.length>1){this.runStepAnimation(i);return}var w=c?Ku({},c,f):f,S=EP(Object.keys(w),s,d);O.start([m,l,wr(wr({},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=Iie(i,Lie),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,wr(wr({},f),{},{style:wr(wr({},S),m),className:E}));return T};return d===1?p(_.Children.only(l)):L.createElement("div",null,_.Children.map(l,function(g){return p(g)}))}}]),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 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 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 Qie(e,t){return toe(e)||eoe(e,t)||Jie(e,t)||Zie()}function Zie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
339
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jie(e,t){if(e){if(typeof e=="string")return NP(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 NP(e,t)}}function NP(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 eoe(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 toe(e){if(Array.isArray(e))return e}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 PP(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){noe(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 noe(e,t,n){return t=roe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function roe(e){var t=aoe(e,"string");return Rc(t)=="symbol"?t:t+""}function aoe(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 DP=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],g=0,x=4;g<x;g++)p[g]=l[g]>s?s:l[g];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,`,
|
|
340
|
-
`).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,`,
|
|
341
|
-
`).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,`,
|
|
342
|
-
`).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,`
|
|
343
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(n,`
|
|
344
|
-
L `).concat(t+r-f*O,",").concat(n,`
|
|
345
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*O,`
|
|
346
|
-
L `).concat(t+r,",").concat(n+i-c*O,`
|
|
347
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r-f*O,",").concat(n+i,`
|
|
348
|
-
L `).concat(t+f*O,",").concat(n+i,`
|
|
349
|
-
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},ioe=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),g=Math.max(s,s+f);return r>=d&&r<=m&&i>=p&&i<=g}return!1},ooe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},IO=function(t){var n=PP(PP({},ooe),t),r=_.useRef(),i=_.useState(-1),l=Qie(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,g=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",Qh({},qe(n,!0),{className:A,d:DP(R,k,j,N,g),ref:r})))}):L.createElement("path",Qh({},qe(n,!0),{className:A,d:DP(f,d,m,p,g)}))};function j1(){return j1=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},j1.apply(this,arguments)}var zO=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",j1({},qe(t,!1),bh(t),{className:s,cx:n,cy:r,r:i})):null};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)}var loe=["x","y","top","left","width","height","className"];function C1(){return C1=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},C1.apply(this,arguments)}function kP(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 soe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kP(Object(n),!0).forEach(function(r){uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uoe(e,t,n){return t=coe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=foe(e,"string");return Pc(t)=="symbol"?t:t+""}function foe(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 doe(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}var poe=function(t,n,r,i,l,s){return"M".concat(t,",").concat(l,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},moe=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,g=t.height,x=g===void 0?0:g,O=t.className,w=doe(t,loe),S=soe({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",C1({},qe(S,!0),{className:Ue("recharts-cross",O),d:poe(r,l,p,x,c,d)}))},Lx,$P;function voe(){if($P)return Lx;$P=1;var e=p3(),t=e(Object.getPrototypeOf,Object);return Lx=t,Lx}var Ix,LP;function goe(){if(LP)return Ix;LP=1;var e=qa(),t=voe(),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 g=c.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&s.call(g)==f}return Ix=d,Ix}var yoe=goe();const boe=lt(yoe);var zx,IP;function xoe(){if(IP)return zx;IP=1;var e=qa(),t=Ua(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return zx=r,zx}var woe=xoe();const Soe=lt(woe);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 Zh(){return Zh=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},Zh.apply(this,arguments)}function Ooe(e,t){return Toe(e)||Aoe(e,t)||Eoe(e,t)||_oe()}function _oe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
350
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eoe(e,t){if(e){if(typeof e=="string")return zP(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 zP(e,t)}}function zP(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 Aoe(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 Toe(e){if(Array.isArray(e))return e}function BP(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 qP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BP(Object(n),!0).forEach(function(r){joe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function joe(e,t,n){return t=Coe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e){var t=Moe(e,"string");return Dc(t)=="symbol"?t:t+""}function Moe(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)}var UP=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},Noe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Roe=function(t){var n=qP(qP({},Noe),t),r=_.useRef(),i=_.useState(-1),l=Ooe(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,g=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||g!==+g||m===0&&p===0||g===0)return null;var T=Ue("recharts-trapezoid",x);return E?L.createElement(Ba,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:m,lowerWidth:p,height:g,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",Zh({},qe(n,!0),{className:T,d:UP(R,k,M,j,N),ref:r})))}):L.createElement("g",null,L.createElement("path",Zh({},qe(n,!0),{className:T,d:UP(f,d,m,p,g)})))},Poe=["option","shapeType","propTransformer","activeClassName","isActive"];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 Doe(e,t){if(e==null)return{};var n=koe(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 koe(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 HP(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 Jh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HP(Object(n),!0).forEach(function(r){$oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HP(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 kc(t)=="symbol"?t:t+""}function Ioe(e,t){if(kc(e)!="object"||!e)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 zoe(e,t){return Jh(Jh({},t),e)}function Boe(e,t){return e==="symbols"}function FP(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return L.createElement(IO,n);case"trapezoid":return L.createElement(Roe,n);case"sector":return L.createElement(q4,n);case"symbols":if(Boe(t))return L.createElement(rO,n);break;default:return null}}function qoe(e){return _.isValidElement(e)?e.props:e}function Uoe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?zoe:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,c=e.isActive,f=Doe(e,Poe),d;if(_.isValidElement(t))d=_.cloneElement(t,Jh(Jh({},f),qoe(t)));else if(De(t))d=t(f);else if(boe(t)&&!Soe(t)){var m=i(t,f);d=L.createElement(FP,{shapeType:n,elementProps:m})}else{var p=f;d=L.createElement(FP,{shapeType:n,elementProps:p})}return c?L.createElement(jt,{className:s},d):d}function dm(e,t){return t!=null&&"trapezoids"in e.props}function hm(e,t){return t!=null&&"sectors"in e.props}function $c(e,t){return t!=null&&"points"in e.props}function Hoe(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 Foe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Goe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Voe(e,t){var n;return dm(e,t)?n=Hoe:hm(e,t)?n=Foe:$c(e,t)&&(n=Goe),n}function Yoe(e,t){var n;return dm(e,t)?n="trapezoids":hm(e,t)?n="sectors":$c(e,t)&&(n="points"),n}function Woe(e,t){if(dm(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(hm(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 $c(e,t)?t.payload:{}}function Koe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Yoe(n,t),l=Woe(n,t),s=r.filter(function(f,d){var m=um(l,f),p=n.props[i].filter(function(O){var w=Voe(n,t);return w(O,t)}),g=n.props[i].indexOf(p[p.length-1]),x=d===g;return m&&x}),c=r.indexOf(s[s.length-1]);return c}var Bx,GP;function Xoe(){if(GP)return Bx;GP=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 Bx=n,Bx}var qx,VP;function K4(){if(VP)return qx;VP=1;var e=M3(),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 qx=r,qx}var Ux,YP;function Qoe(){if(YP)return Ux;YP=1;var e=Xoe(),t=em(),n=K4();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 Ux=r,Ux}var Hx,WP;function Zoe(){if(WP)return Hx;WP=1;var e=Qoe(),t=e();return Hx=t,Hx}var Joe=Zoe();const ep=lt(Joe);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)}function KP(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 XP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KP(Object(n),!0).forEach(function(r){X4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X4(e,t,n){return t=ele(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ele(e){var t=tle(e,"string");return Lc(t)=="symbol"?t:t+""}function tle(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)}var nle=["Webkit","Moz","O","ms"],rle=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),i=nle.reduce(function(l,s){return XP(XP({},l),{},X4({},s+r,n))},{});return i[t]=n,i};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 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 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 Fx(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){qn(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 ale(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZP(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 ile(e,t,n){return t&&ZP(e.prototype,t),n&&ZP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ole(e,t,n){return t=np(t),lle(e,Q4()?Reflect.construct(t,n||[],np(e).constructor):t.apply(e,n))}function lle(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 sle(e)}function sle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q4=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},np(e)}function ule(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 qn(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 Z4(e){var t=cle(e,"string");return os(t)=="symbol"?t:t+""}function cle(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 fle=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=Qu().domain(ep(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}},JP=function(t){return t.changedTouches&&!!t.changedTouches.length},ls=(function(e){function t(n){var r;return ale(this,t),r=ole(this,t,[n]),qn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),qn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),qn(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()}),qn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),qn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),qn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),qn(r,"handleSlideDragStart",function(i){var l=JP(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 ule(t,e),ile(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),g=Math.max(i,l),x=t.getIndexInRange(s,p),O=t.getIndexInRange(s,g);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=Vn(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,g=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!==g||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=JP(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,g=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+g-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(qn(qn({},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 g=p+r;if(!(g===-1||g>=c.length)){var x=c[g];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(qn({},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,g=f.traveller,x=f.ariaLabel,O=f.data,w=f.startIndex,S=f.endIndex,E=Math.max(r,this.props.x),T=Fx(Fx({},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(g,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,g=m.endX,x=5,O={pointerEvents:"none",fill:d};return L.createElement(jt,{className:"recharts-brush-texts"},L.createElement(Nh,tp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,g)-x,y:s+c/2},O),this.getTextOfTick(i)),L.createElement(Nh,tp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,g)+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,g=this.state,x=g.startX,O=g.endX,w=g.isTextActive,S=g.isSlideMoving,E=g.isTravellerMoving,T=g.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=rle("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 Fx({prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s},l&&l.length?fle({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 g=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:g}}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);qn(ls,"displayName","Brush");qn(ls,"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 Gx,eD;function dle(){if(eD)return Gx;eD=1;var e=cO();function t(n,r){var i;return e(n,function(l,s,c){return i=r(l,s,c),!i}),!!i}return Gx=t,Gx}var Vx,tD;function hle(){if(tD)return Vx;tD=1;var e=l3(),t=Pi(),n=dle(),r=Nn(),i=em();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 Vx=l,Vx}var ple=hle();const mle=lt(ple);var ea=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},Yx,nD;function vle(){if(nD)return Yx;nD=1;var e=E3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return Yx=t,Yx}var Wx,rD;function gle(){if(rD)return Wx;rD=1;var e=vle(),t=O3(),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 Wx=r,Wx}var yle=gle();const ble=lt(yle);var Kx,aD;function xle(){if(aD)return Kx;aD=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 Kx=e,Kx}var Xx,iD;function wle(){if(iD)return Xx;iD=1;var e=cO();function t(n,r){var i=!0;return e(n,function(l,s,c){return i=!!r(l,s,c),i}),i}return Xx=t,Xx}var Qx,oD;function Sle(){if(oD)return Qx;oD=1;var e=xle(),t=wle(),n=Pi(),r=Nn(),i=em();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 Qx=l,Qx}var Ole=Sle();const J4=lt(Ole);var _le=["x","y"];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 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 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 Fu(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){Ele(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 Ele(e,t,n){return t=Ale(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ale(e){var t=Tle(e,"string");return Ic(t)=="symbol"?t:t+""}function Tle(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)}function jle(e,t){if(e==null)return{};var n=Cle(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 Cle(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 Mle(e,t){var n=e.x,r=e.y,i=jle(e,_le),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),g=parseInt(p,10);return Fu(Fu(Fu(Fu(Fu({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function sD(e){return L.createElement(Uoe,N1({shapeType:"rectangle",propTransformer:Mle,activeClassName:"recharts-active-bar"},e))}var Nle=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)||zW(r);return l?t(r,i):(l||Eo(),n)}},Rle=["value","background"],e5;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 Ple(e,t){if(e==null)return{};var n=Dle(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 Dle(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 rp(){return rp=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},rp.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 Pt(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){Oi(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 kle(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,n5(r.key),r)}}function $le(e,t,n){return t&&cD(e.prototype,t),n&&cD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lle(e,t,n){return t=ap(t),Ile(e,t5()?Reflect.construct(t,n||[],ap(e).constructor):t.apply(e,n))}function Ile(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 zle(e)}function zle(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 ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ap(e)}function Ble(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&&R1(e,t)}function R1(e,t){return R1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},R1(e,t)}function Oi(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=qle(e,"string");return ss(t)=="symbol"?t:t+""}function qle(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 df=(function(e){function t(){var n;kle(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=Lle(this,t,[].concat(i)),Oi(n,"state",{isAnimationFinished:!1}),Oi(n,"id",af("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 Ble(t,e),$le(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,g){var x=g===f,O=x?d:s,w=Pt(Pt(Pt({},m),p),{},{isActive:x,option:O,index:g,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return L.createElement(jt,rp({className:"recharts-bar-rectangle"},xh(i.props,p,g),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(g)}),L.createElement(sD,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,g=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=g&&g[E];if(T){var A=Er(T.x,S.x),M=Er(T.y,S.y),j=Er(T.width,S.width),N=Er(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=Er(0,S.height),k=R(O);return Pt(Pt({},S),{},{y:S.y+S.height-k,height:k})}var I=Er(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||!um(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,g=Ple(d,Rle);if(!p)return null;var x=Pt(Pt(Pt(Pt(Pt({},g),{},{fill:"#eee"},p),f),xh(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:m,className:"recharts-bar-background-rectangle"});return L.createElement(sD,rp({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=fr(m,ff);if(!p)return null;var g=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:Vn(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:g,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,g=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-g/2,width:T?p:p*2,height:A?g:g*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);e5=df;Oi(df,"displayName","Bar");Oi(df,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Rs.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Oi(df,"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,g=e.offset,x=ire(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=hre({numericAxis:M}),R=fr(T,R3),k=p.map(function(I,V){var z,B,G,K,X,D;d?z=ore(d[m+V],j):(z=Vn(I,E),Array.isArray(z)||(z=[N,z]));var U=Nle(A,e5.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=YR({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=Tr(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=YR({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=Tr(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:[I4(n,I)],tooltipPosition:{x:B+K/2,y:G+X/2}})});return Pt({data:k,layout:O},g)});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 Ule(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fD(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 Hle(e,t,n){return t&&fD(e.prototype,t),n&&fD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dD(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 Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dD(Object(n),!0).forEach(function(r){pm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pm(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=Fle(e,"string");return zc(t)=="symbol"?t:t+""}function Fle(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)}var Gle=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},g=!!Un(d,df);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(UW);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=Oo(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=rre(w,l,g),oe=W.scale,$=W.realScaleType;oe.domain(E).range(k),are(oe);var F=dre(oe,Or(Or({},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=Or(Or(Or({},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=Gh(Z,F),!w.hide&&i==="xAxis"?p[N]+=(z?-1:1)*Z.height:w.hide||(p[N]+=(z?-1:1)*Z.width),Or(Or({},x),{},pm({},O,Z))},{})},a5=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)}},Vle=function(t){var n=t.x1,r=t.y1,i=t.x2,l=t.y2;return a5({x:n,y:r},{x:i,y:l})},i5=(function(){function e(t){Ule(this,e),this.scale=t}return Hle(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)}}])})();pm(i5,"EPS",1e-4);var BO=function(t){var n=Object.keys(t).reduce(function(r,i){return Or(Or({},r),{},pm({},i,i5.create(t[i])))},{});return Or(Or({},n),{},{apply:function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.bandAware,c=l.position;return ble(i,function(f,d){return n[d].apply(f,{bandAware:s,position:c})})},isInRange:function(i){return J4(i,function(l,s){return n[s].isInRange(l)})}})};function Yle(e){return(e%180+180)%180}var Wle=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Yle(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)},Zx,hD;function Kle(){if(hD)return Zx;hD=1;var e=Pi(),t=of(),n=Zp();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 Zx=r,Zx}var Jx,pD;function Xle(){if(pD)return Jx;pD=1;var e=K4();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return Jx=t,Jx}var ew,mD;function Qle(){if(mD)return ew;mD=1;var e=y3(),t=Pi(),n=Xle(),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 ew=i,ew}var tw,vD;function Zle(){if(vD)return tw;vD=1;var e=Kle(),t=Qle(),n=e(t);return tw=n,tw}var Jle=Zle();const ese=lt(Jle);var tse=DI();const nse=lt(tse);var rse=nse(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("")}),qO=_.createContext(void 0),UO=_.createContext(void 0),o5=_.createContext(void 0),l5=_.createContext({}),s5=_.createContext(void 0),u5=_.createContext(0),c5=_.createContext(0),gD=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=rse(l);return L.createElement(qO.Provider,{value:r},L.createElement(UO.Provider,{value:i},L.createElement(l5.Provider,{value:l},L.createElement(o5.Provider,{value:m},L.createElement(s5.Provider,{value:s},L.createElement(u5.Provider,{value:d},L.createElement(c5.Provider,{value:f},c)))))))},ase=function(){return _.useContext(s5)},f5=function(t){var n=_.useContext(qO);n==null&&Eo();var r=n[t];return r==null&&Eo(),r},ise=function(){var t=_.useContext(qO);return Si(t)},ose=function(){var t=_.useContext(UO),n=ese(t,function(r){return J4(r.domain,Number.isFinite)});return n||Si(t)},d5=function(t){var n=_.useContext(UO);n==null&&Eo();var r=n[t];return r==null&&Eo(),r},lse=function(){var t=_.useContext(o5);return t},sse=function(){return _.useContext(l5)},HO=function(){return _.useContext(c5)},FO=function(){return _.useContext(u5)};function us(e){"@babel/helpers - typeof";return us=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},us(e)}function use(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cse(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,p5(r.key),r)}}function fse(e,t,n){return t&&cse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dse(e,t,n){return t=ip(t),hse(e,h5()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function hse(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pse(e)}function pse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h5=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function mse(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&&P1(e,t)}function P1(e,t){return P1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},P1(e,t)}function yD(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 bD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){GO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GO(e,t,n){return t=p5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p5(e){var t=vse(e,"string");return us(t)=="symbol"?t:t+""}function vse(e,t){if(us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gse(e,t){return wse(e)||xse(e,t)||bse(e,t)||yse()}function yse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
351
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bse(e,t){if(e){if(typeof e=="string")return xD(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 xD(e,t)}}function xD(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 xse(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 wse(e){if(Array.isArray(e))return e}function D1(){return D1=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},D1.apply(this,arguments)}var Sse=function(t,n){var r;return L.isValidElement(t)?r=L.cloneElement(t,n):De(t)?r=t(n):r=L.createElement("line",D1({},n,{className:"recharts-reference-line-line"})),r},Ose=function(t,n,r,i,l,s,c,f,d){var m=l.x,p=l.y,g=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+g,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")&&mle(j,function(N){return!t.isInRange(N)})?null:j}return null};function _se(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=ase(),m=f5(i),p=d5(l),g=lse();if(!d||!g)return null;Ra(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=BO({x:m.scale,y:p.scale}),O=Bt(t),w=Bt(n),S=r&&r.length===2,E=Ose(x,O,w,S,g,e.position,m.orientation,p.orientation,e);if(!E)return null;var T=gse(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=bD(bD({clipPath:I},qe(e,!0)),{},{x1:M,y1:j,x2:R,y2:k});return L.createElement(jt,{className:Ue("recharts-reference-line",c)},Sse(s,V),sn.renderCallByParent(e,Vle({x1:M,y1:j,x2:R,y2:k})))}var VO=(function(e){function t(){return use(this,t),dse(this,t,arguments)}return mse(t,e),fse(t,[{key:"render",value:function(){return L.createElement(_se,this.props)}}])})(L.Component);GO(VO,"displayName","ReferenceLine");GO(VO,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 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 wD(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 SD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(n),!0).forEach(function(r){mm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ese(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ase(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,v5(r.key),r)}}function Tse(e,t,n){return t&&Ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jse(e,t,n){return t=op(t),Cse(e,m5()?Reflect.construct(t,n||[],op(e).constructor):t.apply(e,n))}function Cse(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 Mse(e)}function Mse(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 op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},op(e)}function Nse(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 mm(e,t,n){return t=v5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v5(e){var t=Rse(e,"string");return cs(t)=="symbol"?t:t+""}function Rse(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 Pse=function(t){var n=t.x,r=t.y,i=t.xAxis,l=t.yAxis,s=BO({x:i.scale,y:l.scale}),c=s.apply({x:n,y:r},{bandAware:!0});return ea(t,"discard")&&!s.isInRange(c)?null:c},vm=(function(e){function t(){return Ese(this,t),jse(this,t,arguments)}return Nse(t,e),Tse(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=Bt(i),m=Bt(l);if(Ra(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var p=Pse(this.props);if(!p)return null;var g=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=SD(SD({clipPath:E},qe(this.props,!0)),{},{cx:g,cy:x});return L.createElement(jt,{className:Ue("recharts-reference-dot",S)},t.renderDot(w,T),sn.renderCallByParent(this.props,{x:g-s,y:x-s,width:2*s,height:2*s}))}}])})(L.Component);mm(vm,"displayName","ReferenceDot");mm(vm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});mm(vm,"renderDot",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):De(e)?n=e(t):n=L.createElement(zO,k1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function L1(){return L1=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},L1.apply(this,arguments)}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 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){gm(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 Dse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kse(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 $se(e,t,n){return t&&kse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lse(e,t,n){return t=lp(t),Ise(e,g5()?Reflect.construct(t,n||[],lp(e).constructor):t.apply(e,n))}function Ise(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 zse(e)}function zse(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 lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lp(e)}function Bse(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&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I1(e,t)}function gm(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=qse(e,"string");return fs(t)=="symbol"?t:t+""}function qse(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)}var Use=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 g=BO({x:m.scale,y:p.scale}),x={x:t?g.x.apply(s,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},O={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(d,{position:"end"}):g.y.rangeMax};return ea(l,"discard")&&(!g.isInRange(x)||!g.isInRange(O))?null:a5(x,O)},ym=(function(e){function t(){return Dse(this,t),Lse(this,t,arguments)}return Bse(t,e),$se(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=Bt(i),g=Bt(l),x=Bt(s),O=Bt(c),w=this.props.shape;if(!p&&!g&&!x&&!O&&!w)return null;var S=Use(p,g,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,_D(_D({clipPath:E},qe(this.props,!0)),S)),sn.renderCallByParent(this.props,S))}}])})(L.Component);gm(ym,"displayName","ReferenceArea");gm(ym,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});gm(ym,"renderRect",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):De(e)?n=e(t):n=L.createElement(IO,L1({},t,{className:"recharts-reference-area-rect"})),n});function b5(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 Hse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Wle(r,n)}function Fse(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 sp(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 Gse(e,t){return b5(e,t+1)}function Vse(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:b5(r,d)};var w=f,S,E=function(){return S===void 0&&(S=n(O,w)),S},T=O.coordinate,A=f===0||sp(e,T,E,m,c);A||(f=0,m=s,d+=1),A&&(m=T+e*(E()/2+i),f+=d)},g;d<=l.length;)if(g=p(),g)return g.v;return[]}function Bc(e){"@babel/helpers - typeof";return Bc=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},Bc(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 ln(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){Yse(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 Yse(e,t,n){return t=Wse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wse(e){var t=Kse(e,"string");return Bc(t)=="symbol"?t:t+""}function Kse(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xse(e,t,n,r,i){for(var l=(r||[]).slice(),s=l.length,c=t.start,f=t.end,d=function(g){var x=l[g],O,w=function(){return O===void 0&&(O=n(x,g)),O};if(g===s-1){var S=e*(x.coordinate+e*w()/2-f);l[g]=x=ln(ln({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else l[g]=x=ln(ln({},x),{},{tickCoord:x.coordinate});var E=sp(e,x.tickCoord,w,c,f);E&&(f=x.tickCoord-e*(w()/2+i),l[g]=ln(ln({},x),{},{isShow:!0}))},m=s-1;m>=0;m--)d(m);return l}function Qse(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),g=e*(m.coordinate+e*p/2-d);s[c-1]=m=ln(ln({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var x=sp(e,m.tickCoord,function(){return p},f,d);x&&(d=m.tickCoord-e*(p/2+i),s[c-1]=ln(ln({},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=ln(ln({},A),{},{tickCoord:N<0?A.coordinate-N*e:A.coordinate})}else s[T]=A=ln(ln({},A),{},{tickCoord:A.coordinate});var R=sp(e,A.tickCoord,j,f,d);R&&(f=A.tickCoord+e*(j()/2+i),s[T]=ln(ln({},A),{},{isShow:!0}))},S=0;S<O;S++)w(S);return s}function YO(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)||Rs.isSsr)return Gse(i,typeof f=="number"&&ve(f)?f:0);var g=[],x=c==="top"||c==="bottom"?"width":"height",O=m&&x==="width"?Xu(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"?Hse(Xu(j,{fontSize:t,letterSpacing:n}),O,p):Xu(j,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?Tr(i[1].coordinate-i[0].coordinate):1,E=Fse(l,S,x);return f==="equidistantPreserveStart"?Vse(S,E,w,i,s):(f==="preserveStart"||f==="preserveStartEnd"?g=Qse(S,E,w,i,s,f==="preserveStartEnd"):g=Xse(S,E,w,i,s),g.filter(function(T){return T.isShow}))}var Zse=["viewBox"],Jse=["viewBox"],eue=["ticks"];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 kl(){return kl=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},kl.apply(this,arguments)}function AD(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 It(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(r){WO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nw(e,t){if(e==null)return{};var n=tue(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 tue(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 nue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TD(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,w5(r.key),r)}}function rue(e,t,n){return t&&TD(e.prototype,t),n&&TD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aue(e,t,n){return t=up(t),iue(e,x5()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function iue(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 oue(e)}function oue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x5=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(e)}function lue(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 WO(e,t,n){return t=w5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w5(e){var t=sue(e,"string");return ds(t)=="symbol"?t:t+""}function sue(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 $s=(function(e){function t(n){var r;return nue(this,t),r=aue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return lue(t,e),rue(t,[{key:"shouldComponentUpdate",value:function(r,i){var l=r.viewBox,s=nw(r,Zse),c=this.props,f=c.viewBox,d=nw(c,Jse);return!Hl(l,f)||!Hl(s,d)||!Hl(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,g=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*g,E=j;break;case"left":w=S=r.coordinate,O=l+ +!p*c,x=O-A*M,E=x-A*g,T=j;break;case"right":w=S=r.coordinate,O=l+ +p*c,x=O+A*M,E=x+A*g,T=j;break;default:x=O=r.coordinate,S=s+ +p*f,w=S+A*M,T=w+A*g,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=It(It(It({},qe(this.props,!1)),qe(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);p=It(It({},p),{},{x1:i,y1:l+g*c,x2:i+s,y2:l+g*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);p=It(It({},p),{},{x1:i+x*s,y1:l,x2:i+x*s,y2:l+c})}return L.createElement("line",kl({},p,{className:Ue("recharts-cartesian-axis-line",cr(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,g=c.unit,x=YO(It(It({},this.props),{},{ticks:r}),i,l),O=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=qe(this.props,!1),E=qe(m,!1),T=It(It({},S),{},{fill:"none"},qe(f,!1)),A=x.map(function(M,j){var N=s.getTickLineCoord(M),R=N.line,k=N.tick,I=It(It(It(It({textAnchor:O,verticalAnchor:w},S),{},{stroke:"none",fill:d},E),k),{},{index:j,payload:M,visibleTicksCount:x.length,tickFormatter:p});return L.createElement(jt,kl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},xh(s.props,M,j)),f&&L.createElement("line",kl({},T,R,{className:Ue("recharts-cartesian-axis-tick-line",cr(f,"className"))})),m&&t.renderTickItem(m,I,"".concat(De(p)?p(M.value,j):M.value).concat(g||"")))});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,g=p.ticks,x=nw(p,eue),O=g;return De(f)&&(O=g&&g.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),sn.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,It(It({},i),{},{className:c})):De(r)?s=r(It(It({},i),{},{className:c})):s=L.createElement(Nh,kl({},i,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(_.Component);WO($s,"displayName","CartesianAxis");WO($s,"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 uue=["x1","y1","x2","y2","key"],cue=["offset"];function Ao(e){"@babel/helpers - typeof";return Ao=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},Ao(e)}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 un(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){fue(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 fue(e,t,n){return t=due(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function due(e){var t=hue(e,"string");return Ao(t)=="symbol"?t:t+""}function hue(e,t){if(Ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function po(){return po=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},po.apply(this,arguments)}function CD(e,t){if(e==null)return{};var n=pue(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 pue(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 mue=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 S5(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=CD(t,uue),d=qe(f,!1);d.offset;var m=CD(d,cue);n=L.createElement("line",po({},m,{x1:r,y1:i,x2:l,y2:s,fill:"none",key:c}))}return n}function vue(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=un(un({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return S5(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function gue(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=un(un({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return S5(i,d)});return L.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function yue(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(g){return Math.round(g+i-i)}).sort(function(g,x){return g-x});i!==m[0]&&m.unshift(0);var p=m.map(function(g,x){var O=!m[x+1],w=O?i+s-g:m[x+1]-g;if(w<=0)return null;var S=x%t.length;return L.createElement("rect",{key:"react-".concat(x),y:g,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 bue(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(g){return Math.round(g+l-l)}).sort(function(g,x){return g-x});l!==m[0]&&m.unshift(0);var p=m.map(function(g,x){var O=!m[x+1],w=O?l+c-g:m[x+1]-g;if(w<=0)return null;var S=x%r.length;return L.createElement("rect",{key:"react-".concat(x),x:g,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 xue=function(t,n){var r=t.xAxis,i=t.width,l=t.height,s=t.offset;return $4(YO(un(un(un({},$s.defaultProps),r),{},{ticks:Ca(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.left,s.left+s.width,n)},wue=function(t,n){var r=t.yAxis,i=t.width,l=t.height,s=t.offset;return $4(YO(un(un(un({},$s.defaultProps),r),{},{ticks:Ca(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.top,s.top+s.height,n)},Nl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function O5(e){var t,n,r,i,l,s,c=HO(),f=FO(),d=sse(),m=un(un({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Nl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Nl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Nl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Nl.horizontalFill,vertical:(l=e.vertical)!==null&&l!==void 0?l:Nl.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Nl.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,g=m.y,x=m.width,O=m.height,w=m.syncWithTicks,S=m.horizontalValues,E=m.verticalValues,T=ise(),A=ose();if(!ve(x)||x<=0||!ve(O)||O<=0||!ve(p)||p!==+p||!ve(g)||g!==+g)return null;var M=m.verticalCoordinatesGenerator||xue,j=m.horizontalCoordinatesGenerator||wue,N=m.horizontalPoints,R=m.verticalPoints;if((!N||!N.length)&&De(j)){var k=S&&S.length,I=j({yAxis:A?un(un({},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(Ao(I),"]")),Array.isArray(I)&&(N=I)}if((!R||!R.length)&&De(M)){var V=E&&E.length,z=M({xAxis:T?un(un({},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(Ao(z),"]")),Array.isArray(z)&&(R=z)}return L.createElement("g",{className:"recharts-cartesian-grid"},L.createElement(mue,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),L.createElement(vue,po({},m,{offset:d,horizontalPoints:N,xAxis:T,yAxis:A})),L.createElement(gue,po({},m,{offset:d,verticalPoints:R,xAxis:T,yAxis:A})),L.createElement(yue,po({},m,{horizontalPoints:N})),L.createElement(bue,po({},m,{verticalPoints:R})))}O5.displayName="CartesianGrid";var Sue=["type","layout","connectNulls","ref"],Oue=["key"];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 MD(e,t){if(e==null)return{};var n=_ue(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 _ue(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 ec(){return ec=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},ec.apply(this,arguments)}function ND(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(n),!0).forEach(function(r){_r(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rl(e){return jue(e)||Tue(e)||Aue(e)||Eue()}function Eue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
352
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aue(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 Tue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jue(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 Cue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RD(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 Mue(e,t,n){return t&&RD(e.prototype,t),n&&RD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nue(e,t,n){return t=cp(t),Rue(e,_5()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function Rue(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 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 cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function Due(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&&q1(e,t)}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},q1(e,t)}function _r(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=kue(e,"string");return hs(t)=="symbol"?t:t+""}function kue(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 Wr=(function(e){function t(){var n;Cue(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=Nue(this,t,[].concat(i)),_r(n,"state",{isAnimationFinished:!0,totalLength:0}),_r(n,"generateSimpleStrokeDasharray",function(s,c){return"".concat(c,"px ").concat(s-c,"px")}),_r(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,g=c-s,x=[],O=0,w=0;O<f.length;w+=f[O],++O)if(w+f[O]>p){x=[].concat(Rl(f.slice(0,O)),[p-w]);break}var S=x.length%2===0?[0,g]:[g];return[].concat(Rl(t.repeat(f,m)),Rl(x),S).map(function(E){return"".concat(E,"px")}).join(", ")}),_r(n,"id",af("recharts-line-")),_r(n,"pathRef",function(s){n.mainCurve=s}),_r(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),_r(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Due(t,e),Mue(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=fr(m,ff);if(!p)return null;var g=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:Vn(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:g})}))}},{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),g=qe(f,!0),x=d.map(function(w,S){var E=Bn(Bn(Bn({key:"dot-".concat(S),r:3},p),g),{},{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,ec({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=MD(c,Sue),g=Bn(Bn(Bn({},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(y1,ec({},g,{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,g=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:g,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=Er(X.x,B.x),U=Er(X.y,B.y);return Bn(Bn({},B),{},{x:D(j),y:U(j)})}if(O){var Y=Er(w*2,B.x),W=Er(S/2,B.y);return Bn(Bn({},B),{},{x:Y(j),y:W(j)})}return Bn(Bn({},B),{},{x:B.x,y:B.y})});return l.renderCurveStatically(R,r,i)}var k=Er(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||!um(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,g=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=QW(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?g:g-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:g-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(Rl(r),[0]):r,s=[],c=0;c<i;++c)s=[].concat(Rl(s),Rl(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=MD(i,Oue),f=Ue("recharts-line-dot",typeof r!="boolean"?r.className:"");l=L.createElement(zO,ec({key:s},c,{className:f}))}return l}}])})(_.PureComponent);_r(Wr,"displayName","Line");_r(Wr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Rs.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});_r(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(g,x){var O=Vn(g,s);return m==="horizontal"?{x:VR({axis:n,ticks:i,bandSize:c,entry:g,index:x}),y:Le(O)?null:r.scale(O),value:O,payload:g}:{x:Le(O)?null:n.scale(O),y:VR({axis:r,ticks:l,bandSize:c,entry:g,index:x}),value:O,payload:g}});return Bn({points:p,layout:m},d)});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 $ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lue(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,j5(r.key),r)}}function Iue(e,t,n){return t&&Lue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zue(e,t,n){return t=fp(t),Bue(e,A5()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function Bue(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 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 A5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A5=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(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&&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 T5(e,t,n){return t=j5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j5(e){var t=Hue(e,"string");return ps(t)=="symbol"?t:t+""}function Hue(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)}function H1(){return H1=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},H1.apply(this,arguments)}function Fue(e){var t=e.xAxisId,n=HO(),r=FO(),i=f5(t);return i==null?null:_.createElement($s,H1({},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 bm=(function(e){function t(){return $ue(this,t),zue(this,t,arguments)}return Uue(t,e),Iue(t,[{key:"render",value:function(){return _.createElement(Fue,this.props)}}])})(_.Component);T5(bm,"displayName","XAxis");T5(bm,"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 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 Gue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vue(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 Yue(e,t,n){return t&&Vue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wue(e,t,n){return t=dp(t),Kue(e,C5()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function Kue(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 Xue(e)}function Xue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C5=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Que(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&&F1(e,t)}function F1(e,t){return F1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},F1(e,t)}function M5(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=Zue(e,"string");return ms(t)=="symbol"?t:t+""}function Zue(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)}function G1(){return G1=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},G1.apply(this,arguments)}var Jue=function(t){var n=t.yAxisId,r=HO(),i=FO(),l=d5(n);return l==null?null:_.createElement($s,G1({},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)}}))},xm=(function(e){function t(){return Gue(this,t),Wue(this,t,arguments)}return Que(t,e),Yue(t,[{key:"render",value:function(){return _.createElement(Jue,this.props)}}])})(_.Component);M5(xm,"displayName","YAxis");M5(xm,"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 PD(e){return rce(e)||nce(e)||tce(e)||ece()}function ece(){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 tce(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 nce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rce(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}var Y1=function(t,n,r,i,l){var s=fr(t,VO),c=fr(t,vm),f=[].concat(PD(s),PD(c)),d=fr(t,ym),m="".concat(i,"Id"),p=i[0],g=n;if(f.length&&(g=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},g)),d.length){var x="".concat(p,"1"),O="".concat(p,"2");g=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},g)}return l&&l.length&&(g=l.reduce(function(w,S){return ve(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},g)),g},rw={exports:{}},DD;function ace(){return DD||(DD=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,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new i(m,p||f,g),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 g=0,x=p.length,O=new Array(x);g<x;g++)O[g]=p[g].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,g,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,g),!0;case 5:return S.fn.call(S.context,m,p,g,x),!0;case 6:return S.fn.call(S.context,m,p,g,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,g);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,g){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&&(!g||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||g&&!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})(rw)),rw.exports}var ice=ace();const oce=lt(ice);var aw=new oce,iw="recharts.syncMouseEvents";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 lce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sce(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 uce(e,t,n){return t&&sce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ow(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=cce(e,"string");return qc(t)=="symbol"?t:t+""}function cce(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 String(e)}var fce=(function(){function e(){lce(this,e),ow(this,"activeIndex",0),ow(this,"coordinateList",[]),ow(this,"layout","horizontal")}return uce(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,g=n.mouseHandlerCallback,x=g===void 0?null:g;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,g=s+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:p,pageY:g})}}}])})();function dce(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 hce(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 P5(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,l=e.endAngle,s=tn(t,n,r,i),c=tn(t,n,r,l);return{points:[s,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:l}}function pce(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,g=tn(c,f,d,p),x=tn(c,f,m,p);r=g.x,i=g.y,l=x.x,s=x.y}else return P5(t);return[{x:r,y:i},{x:l,y:s}]}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 kD(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?kD(Object(n),!0).forEach(function(r){mce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mce(e,t,n){return t=vce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vce(e){var t=gce(e,"string");return Uc(t)=="symbol"?t:t+""}function gce(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 yce(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,g=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||g!=="ScatterChart"&&i!=="axis")return null;var O,w=y1;if(g==="ScatterChart")O=s,w=moe;else if(g==="BarChart")O=hce(p,s,f,m),w=IO;else if(p==="radial"){var S=P5(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=q4}else O={points:pce(p,s,f)},w=y1;var N=Wd(Wd(Wd(Wd({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 bce=["item"],xce=["children","className","width","height","style","compact","title","desc"];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 $l(){return $l=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},$l.apply(this,arguments)}function $D(e,t){return Oce(e)||Sce(e,t)||k5(e,t)||wce()}function wce(){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 Sce(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 Oce(e){if(Array.isArray(e))return e}function LD(e,t){if(e==null)return{};var n=_ce(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 _ce(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 Ece(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ace(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 Tce(e,t,n){return t&&Ace(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jce(e,t,n){return t=hp(t),Cce(e,D5()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function Cce(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 Mce(e)}function Mce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D5=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function Nce(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 gs(e){return Dce(e)||Pce(e)||k5(e)||Rce()}function Rce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
355
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k5(e,t){if(e){if(typeof e=="string")return K1(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 K1(e,t)}}function Pce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dce(e){if(Array.isArray(e))return K1(e)}function K1(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 ID(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?ID(Object(n),!0).forEach(function(r){Ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ae(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=kce(e,"string");return vs(t)=="symbol"?t:t+""}function kce(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(t==="string"?String:Number)(e)}var $ce={xAxis:["bottom","top"],yAxis:["left","right"]},Lce={width:"100%",height:"100%"},L5={x:0,y:0};function Kd(e){return e}var Ice=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},zce=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),tn(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}var f=l.coordinate,d=i.angle;return le(le(le({},i),tn(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return L5},wm=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(gs(c),gs(d)):c},[]);return s.length>0?s:t&&t.length&&ve(i)&&ve(l)?t.slice(i,l+1):[]};function I5(e){return e==="number"?[0,"auto"]:void 0}var X1=function(t,n,r,i){var l=t.graphicalItems,s=t.tooltipAxis,c=wm(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 g;if(s.dataKey&&!s.allowDuplicatedCategory){var x=p===void 0?c:p;g=yh(x,s.dataKey,i)}else g=p&&p[r]||c[r];return g?[].concat(gs(f),[I4(d,g)]):f},[])},zD=function(t,n,r,i){var l=i||{x:t.chartX,y:t.chartY},s=Ice(l,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=Qne(s,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,g=X1(t,n,m,p),x=zce(r,c,m,l);return{activeTooltipIndex:m,activeLabel:p,activePayload:g,activeCoordinate:x}}return null},Bce=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,g=t.stackOffset,x=k4(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=wm(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;dce(E.domain,M,T)&&(B=h1(E.domain,null,M),x&&(T==="number"||N!=="auto")&&(K=Zu(V,A,"category")));var X=I5(T);if(!B||B.length===0){var D,U=(D=E.domain)!==null&&D!==void 0?D:X;if(A){if(B=Zu(V,A,T),T==="category"&&x){var Y=qW(B);j&&Y?(G=B,B=ep(0,z)):j||(B=XR(U,B,w).reduce(function(F,Z){return F.indexOf(Z)>=0?F:[].concat(gs(F),[Z])},[]))}else if(T==="category")j?B=B.filter(function(F){return F!==""&&!Le(F)}):B=XR(U,B,w).reduce(function(F,Z){return F.indexOf(Z)>=0||Z===""||Le(Z)?F:[].concat(gs(F),[Z])},[]);else if(T==="number"){var W=nre(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=Zu(V,A,"category"))}else x?B=ep(0,z):c&&c[I]&&c[I].hasStack&&T==="number"?B=g==="expand"?[0,1]:L4(c[I].stackGroups,f,d):B=D4(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=Y1(p,B,I,l,R),U&&(B=h1(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})))},{})},qce=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,g=wm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=g.length,O=k4(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=I5("number");if(!S[A]){w++;var j;return O?j=ep(0,x):c&&c[A]&&c[A].hasStack?(j=L4(c[A].stackGroups,f,d),j=Y1(p,j,A,l)):(j=h1(M,D4(g,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=Y1(p,j,A,l)),le(le({},S),{},Ae({},A,le(le({axisType:l},i.defaultProps),{},{hide:!0,orientation:cr($ce,"".concat(l,".").concat(w%2),null),domain:j,originalDomain:M,isCategorical:O,layout:m})))}return S},{})},Uce=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"),g=fr(m,l),x={};return g&&g.length?x=Bce(t,{axes:g,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):s&&s.length&&(x=qce(t,{Axis:l,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},Hce=function(t){var n=Si(t),r=Ca(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:fO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Gh(n,r)}},BD=function(t){var n=t.children,r=t.defaultShowTooltip,i=Un(n,ls),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}},Fce=function(t){return!t||!t.length?!1:t.some(function(n){var r=Na(n&&n.type);return r&&r.indexOf("Bar")>=0})},qD=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"}},Gce=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,g=r.margin||{},x=Un(p,ls),O=Un(p,mo),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:g.left||0,right:g.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,cr(j,"".concat(k))+R.height)):j},{top:g.top||0,bottom:g.bottom||0}),E=le(le({},S),w),T=E.bottom;x&&(E.bottom+=x.props.height||ls.defaultProps.height),O&&n&&(E=ere(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)})},Vce=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Yce=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,g=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=qD(V),X=K.numericAxisName,D=K.cateAxisName,U=Fce(A),Y=[];return A.forEach(function(W,oe){var $=wm(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(Rn,xt){var Yn=T["".concat(xt.axisType,"Map")],Ut=F["".concat(xt.axisType,"Id")];Yn&&Yn[Ut]||xt.axisType==="zAxis"||Eo();var ko=Yn[Ut];return le(le({},Rn),{},Ae(Ae({},xt.axisType,ko),"".concat(xt.axisType,"Ticks"),Ca(ko)))},fe),ae=pe[D],me=pe["".concat(D,"Ticks")],ye=M&&M[de]&&M[de].hasStack&&pre(W,M[de].stackGroups),re=Na(W.type).indexOf("Bar")>=0,Ne=Gh(ae,me),Oe=[],We=U&&Zne({barSize:I,stackGroups:M,totalSize:Vce(pe,D)});if(re){var He,nt,nn=Le(se)?G:se,ft=(He=(nt=Gh(ae,me,!0))!==null&&nt!==void 0?nt:nn)!==null&&He!==void 0?He:0;Oe=Jne({barGap:z,barCategoryGap:B,bandSize:ft!==Ne?ft:Ne,sizeList:We[ge],maxBarSize:nn}),ft!==Ne&&(Oe=Oe.map(function(Rn){return le(le({},Rn),{},{position:le(le({},Rn.position),{},{offset:Rn.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:eK(W,E.children),item:W})}),Y},x=function(E,T){var A=E.props,M=E.dataStartIndex,j=E.dataEndIndex,N=E.updateId;if(!cM({props:A}))return null;var R=A.children,k=A.layout,I=A.stackOffset,V=A.data,z=A.reverseStackOrder,B=qD(k),G=B.numericAxisName,K=B.cateAxisName,X=fr(R,r),D=fre(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,Uce(A,le(le({},Z),{},{graphicalItems:X,stackGroups:Z.axisType===G&&D,dataStartIndex:M,dataEndIndex:j}))))},{}),Y=Gce(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=Hce(W),$=g(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 Ece(this,E),j=jce(this,E,[T]),Ae(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ae(j,"accessibilityManager",new fce),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=JW(N),k=cr(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&&aw.emit(iw,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=X1(j.state,j.props.data,X),de=Y[X]?{x:k==="horizontal"?Y[X].coordinate:$,y:k==="horizontal"?F:Y[X].coordinate}:L5;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(yce,{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=cr(N,"type.axisType"),V=cr(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=R4({children:k,formattedGraphicalItems:N,legendWidth:B,legendContent:d});if(!G)return null;var K=G.item,X=LD(G,bce);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=Un(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:Fd(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:LO(R.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},qe(X,!1)),bh(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=Un(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:Fd(j.handleItemMouseEnter,N.props.onClick)}:V!=="axis"&&(pe={onMouseLeave:Fd(j.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Fd(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=yh(W,Ne,X),re=oe&&$&&yh($,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(gs(j.renderActivePoints({item:I,activePoint:ye,basePoint:re,childIndex:K,isRange:oe})))}else{var We,He=(We=j.getItemByXY(j.state.activeCoordinate))!==null&&We!==void 0?We:{graphicalItem:ae},nt=He.graphicalItem,nn=nt.item,ft=nn===void 0?N:nn,zr=nt.childIndex,Rn=le(le(le({},I.props),pe),{},{activeIndex:zr});return[_.cloneElement(ft,Rn),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:Kd,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:Kd},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:Kd},YAxis:{handler:Kd},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:af("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=N3(j.triggeredAfterMouseMove,(M=T.throttleDelay)!==null&&M!==void 0?M:1e3/60),j.state={},j}return Nce(E,S),Tce(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=Un(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=X1(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){kw([Un(A.children,Yr)],[Un(this.props.children,Yr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Un(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=qZ(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=zD(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 JR({x:R,y:k},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,M=this.getTooltipEventType(),j=Un(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=bh(this.props,this.handleOuterEvent);return le(le({},R),N)}},{key:"addListener",value:function(){aw.on(iw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){aw.removeListener(iw,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=$D(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=$D(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 ioe(A,Y)});if(K)return{graphicalItem:I,payload:K}}else if(G==="RadialBar"){var X=(V.data||[]).find(function(Y){return JR(A,Y)});if(X)return{graphicalItem:I,payload:X}}else if(dm(I,N)||hm(I,N)||$c(I,N)){var D=Koe({graphicalItem:I,activeTooltipItem:N,itemData:B.data}),U=B.activeIndex===void 0?D:B.activeIndex;return{graphicalItem:le(le({},I),{},{childIndex:U}),payload:$c(I,N)?B.data[D]:I.props.data[D]}}}return null}},{key:"render",value:function(){var A=this;if(!cM(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=LD(M,xce),K=qe(G,!1);if(V)return L.createElement(gD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(Lw,$l({},K,{width:R,height:k,title:z,desc:B}),this.renderClipPath(),dM(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(gD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",$l({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(Lw,$l({},K,{width:R,height:k,title:z,desc:B,style:Lce}),this.renderClipPath(),dM(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=BD(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||!Hl(I,E.prevMargin)){var G=BD(S),K={chartX:E.chartX,chartY:E.chartY,isTooltipActive:E.isTooltipActive},X=le(le({},zD(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(!kw(M,E.prevChildren)){var U,Y,W,oe,$=Un(M,ls),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(zO,E),L.createElement(jt,{className:"recharts-active-dot",key:T},A)});var w=_.forwardRef(function(E,T){return L.createElement(O,$l({},E,{ref:T}))});return w.displayName=O.displayName,w},Wce=Yce({chartName:"LineChart",GraphicalChild:Wr,axisComponents:[{axisType:"xAxis",AxisComp:bm},{axisType:"yAxis",AxisComp:xm}],formatAxisMap:Gle});function Kce({data:e}){const t=Xce(e);return t.length===0?y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Email Metrics"}),y.jsx(Rr,{children:"Performance over the last 24 hours"})]}),y.jsx(Cn,{children:y.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"No metrics data available yet"})})]}):y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Email Metrics"}),y.jsx(Rr,{children:"Performance over the last 24 hours"})]}),y.jsx(Cn,{children:y.jsx(DZ,{height:400,width:"100%",children:y.jsxs(Wce,{data:t,children:[y.jsx(O5,{className:"stroke-muted",strokeDasharray:"3 3"}),y.jsx(bm,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>tC(new Date(n),"HH:mm")}),y.jsx(xm,{className:"text-xs"}),y.jsx(Yr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>tC(new Date(n),"MMM d, HH:mm")}),y.jsx(mo,{}),y.jsx(Wr,{dataKey:"sends",name:"Sends",stroke:"hsl(var(--primary))",strokeWidth:2,type:"monotone"}),y.jsx(Wr,{dataKey:"deliveries",name:"Deliveries",stroke:"#82ca9d",strokeWidth:2,type:"monotone"}),y.jsx(Wr,{dataKey:"opens",name:"Opens",stroke:"#8884d8",strokeWidth:2,type:"monotone"}),y.jsx(Wr,{dataKey:"clicks",name:"Clicks",stroke:"#ffc658",strokeWidth:2,type:"monotone"}),y.jsx(Wr,{dataKey:"bounces",name:"Bounces",stroke:"#ff7300",strokeWidth:2,type:"monotone"}),y.jsx(Wr,{dataKey:"complaints",name:"Complaints",stroke:"hsl(var(--destructive))",strokeWidth:2,type:"monotone"})]})})})]})}function Xce(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 KO="Progress",XO=100,[Qce]=Sk(KO),[Zce,Jce]=Qce(KO),z5=_.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:l=efe,...s}=e;(i||i===0)&&!UD(i)&&console.error(tfe(`${i}`,"Progress"));const c=UD(i)?i:XO;r!==null&&!HD(r,c)&&console.error(nfe(`${r}`,"Progress"));const f=HD(r,c)?r:null,d=pp(f)?l(f,c):void 0;return y.jsx(Zce,{scope:n,value:f,max:c,children:y.jsx(jo.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":pp(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":U5(f,c),"data-value":f??void 0,"data-max":c,...s,ref:t})})});z5.displayName=KO;var B5="ProgressIndicator",q5=_.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Jce(B5,n);return y.jsx(jo.div,{"data-state":U5(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});q5.displayName=B5;function efe(e,t){return`${Math.round(e/t*100)}%`}function U5(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function pp(e){return typeof e=="number"}function UD(e){return pp(e)&&!isNaN(e)&&e>0}function HD(e,t){return pp(e)&&!isNaN(e)&&e<=t&&e>=0}function tfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${XO}\`.`}function nfe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
356
|
-
- a positive number
|
|
357
|
-
- less than the value passed to \`max\` (or ${XO} if no \`max\` prop is set)
|
|
358
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
359
|
-
|
|
360
|
-
Defaulting to \`null\`.`}var rfe=z5,afe=q5;function ife({className:e,value:t,...n}){return y.jsx(rfe,{className:he("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:y.jsx(afe,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function ofe({quota:e}){const t=e.sentLast24Hours/e.max24HourSend*100,n=t>90?"destructive":t>70?"warning":"default";return y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsxs(dr,{className:"flex items-center justify-between",children:["SES Quota",y.jsxs(dn,{variant:n==="destructive"?"destructive":"secondary",children:[t.toFixed(1),"% used"]})]}),y.jsx(Rr,{children:"24-hour sending limits"})]}),y.jsxs(Cn,{className:"space-y-4",children:[y.jsxs("div",{children:[y.jsxs("div",{className:"mb-2 flex justify-between text-sm",children:[y.jsx("span",{className:"text-muted-foreground",children:"Emails sent"}),y.jsxs("span",{className:"font-medium",children:[e.sentLast24Hours.toLocaleString()," /"," ",e.max24HourSend.toLocaleString()]})]}),y.jsx(ife,{className:"h-2",value:t})]}),y.jsxs("div",{className:"flex items-center justify-between border-t pt-2",children:[y.jsx("span",{className:"text-muted-foreground text-sm",children:"Max send rate"}),y.jsxs("span",{className:"font-medium text-sm",children:[e.maxSendRate," emails/sec"]})]})]})]})}function lfe(){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 y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),y.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),y.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 y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),y.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),y.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,g=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?g/d*100:0,S=g>0?x/g*100:0,E=[{title:"Emails Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:Ll},{title:"Delivery Rate",value:`${O.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:b6},{title:"Open Rate",value:`${w.toFixed(1)}%`,description:`${g.toLocaleString()} opened`,icon:oS},{title:"Click Rate",value:`${S.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:w6}];return y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),y.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),y.jsxs(Cw,{onValueChange:t,value:e,children:[y.jsx(Nw,{className:"w-[180px]",children:y.jsx(Mw,{})}),y.jsxs(Rw,{children:[y.jsx(Vt,{value:"1",children:"Last 24 hours"}),y.jsx(Vt,{value:"7",children:"Last 7 days"}),y.jsx(Vt,{value:"15",children:"Last 15 days"}),y.jsx(Vt,{value:"30",children:"Last 30 days"}),y.jsx(Vt,{value:"90",children:"Last 90 days"})]})]})]}),y.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:E.map(T=>y.jsxs(hn,{children:[y.jsxs(pn,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[y.jsx(dr,{className:"font-medium text-sm",children:T.title}),y.jsx(T.icon,{className:"h-4 w-4 text-muted-foreground"})]}),y.jsxs(Cn,{children:[y.jsx("div",{className:"font-bold text-2xl",children:T.value}),y.jsx("p",{className:"text-muted-foreground text-xs",children:T.description})]})]},T.title))}),y.jsx(ofe,{quota:n.quota}),y.jsx(Kce,{data:n.metrics}),y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Metrics Summary"}),y.jsx(Rr,{children:"Detailed breakdown of your email performance"})]}),y.jsxs(Cn,{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm",children:"Total Emails Sent"}),y.jsx(dn,{variant:"outline",children:f.toLocaleString()})]}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),y.jsx(dn,{variant:"default",children:d.toLocaleString()})]}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm",children:"Opened"}),y.jsx(dn,{variant:"default",children:g.toLocaleString()})]}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm",children:"Clicked"}),y.jsx(dn,{variant:"default",children:x.toLocaleString()})]}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm",children:"Bounced"}),y.jsx(dn,{variant:"destructive",children:m.toLocaleString()})]}),y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("span",{className:"text-sm",children:"Complaints"}),y.jsx(dn,{variant:"destructive",children:p.toLocaleString()})]})]})]})]})}function sfe(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 ufe=e=>{switch(e){case"success":return dfe;case"info":return pfe;case"warning":return hfe;case"error":return mfe;default:return null}},cfe=Array(12).fill(0),ffe=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},cfe.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),dfe=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"})),hfe=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"})),pfe=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"})),mfe=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"})),vfe=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"})),gfe=()=>{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 Q1=1;class yfe{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:Q1++,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(xfe(d)&&!d.ok){l=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=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:g,...O})}else if(d instanceof Error){l=!1;const p=typeof n.error=="function"?await n.error(d):n.error,g=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:g,...O})}else if(n.success!==void 0){l=!1;const p=typeof n.success=="function"?await n.success(d):n.success,g=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:g,...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)||Q1++;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 Tn=new yfe,bfe=(e,t)=>{const n=(t==null?void 0:t.id)||Q1++;return Tn.addToast({title:e,...t,id:n}),n},xfe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",wfe=bfe,Sfe=()=>Tn.toasts,Ofe=()=>Tn.getActiveToasts(),jn=Object.assign(wfe,{success:Tn.success,info:Tn.info,warning:Tn.warning,error:Tn.error,custom:Tn.custom,message:Tn.message,promise:Tn.promise,dismiss:Tn.dismiss,loading:Tn.loading},{getHistory:Sfe,getToasts:Ofe});sfe("[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 Xd(e){return e.label!==void 0}const _fe=3,Efe="24px",Afe="16px",FD=4e3,Tfe=356,jfe=14,Cfe=45,Mfe=200;function Vr(...e){return e.filter(Boolean).join(" ")}function Nfe(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Rfe=e=>{var t,n,r,i,l,s,c,f,d;const{invert:m,toast:p,unstyled:g,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),[We,He]=L.useState(0),nt=L.useRef(p.duration||B||FD),nn=L.useRef(null),ft=L.useRef(null),zr=E===0,Rn=E+1<=w,xt=p.type,Yn=p.dismissible!==!1,Ut=p.className||"",ko=p.descriptionClassName||"",Li=L.useMemo(()=>S.findIndex(Te=>Te.toastId===p.id)||0,[S,p.id]),hf=L.useMemo(()=>{var Te;return(Te=p.closeButton)!=null?Te:N},[p.closeButton,N]),Ii=L.useMemo(()=>p.duration||B||FD,[p.duration,B]),Ls=L.useRef(0),oa=L.useRef(0),pf=L.useRef(0),Ga=L.useRef(null),[zi,cn]=G.split("-"),vr=L.useMemo(()=>S.reduce((Te,vt,Ht)=>Ht>=Li?Te:Te+vt.height,0),[S,Li]),rn=gfe(),Am=p.invert||m,Is=xt==="loading";oa.current=L.useMemo(()=>Li*K+vr,[Li,vr]),L.useEffect(()=>{nt.current=Ii},[Ii]),L.useEffect(()=>{se(!0)},[]),L.useEffect(()=>{const Te=ft.current;if(Te){const vt=Te.getBoundingClientRect().height;return He(vt),O(Ht=>[{toastId:p.id,height:vt,position:p.position},...Ht]),()=>O(Ht=>Ht.filter(an=>an.toastId!==p.id))}},[O,p.id]),L.useLayoutEffect(()=>{if(!Z)return;const Te=ft.current,vt=Te.style.height;Te.style.height="auto";const Ht=Te.getBoundingClientRect().height;Te.style.height=vt,He(Ht),O(an=>an.find(wt=>wt.toastId===p.id)?an.map(wt=>wt.toastId===p.id?{...wt,height:Ht}:wt):[{toastId:p.id,height:Ht,position:p.position},...an])},[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)},Mfe)},[p,M,O,oa]);L.useEffect(()=>{if(p.promise&&xt==="loading"||p.duration===1/0||p.type==="loading")return;let Te;return A||x||rn?(()=>{if(pf.current<Ls.current){const an=new Date().getTime()-Ls.current;nt.current=nt.current-an}pf.current=new Date().getTime()})():(()=>{nt.current!==1/0&&(Ls.current=new Date().getTime(),Te=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Br()},nt.current))})(),()=>clearTimeout(Te)},[A,x,p,xt,rn,Br]),L.useEffect(()=>{p.delete&&(Br(),p.onDismiss==null||p.onDismiss.call(p,p))},[Br,p.delete]);function $o(){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(ffe,{className:Vr(D==null?void 0:D.loader,p==null||(Te=p.classNames)==null?void 0:Te.loader),visible:xt==="loading"})}const Lo=p.icon||(U==null?void 0:U[xt])||ufe(xt);var Bi,qr;return L.createElement("li",{tabIndex:0,ref:ft,className:Vr(V,Ut,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||g),"data-mounted":Z,"data-promise":!!p.promise,"data-swiped":ye,"data-removed":de,"data-visible":Rn,"data-y-position":zi,"data-x-position":cn,"data-index":E,"data-front":zr,"data-swiping":fe,"data-dismissible":Yn,"data-type":xt,"data-invert":Am,"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":`${We}px`,...R,...p.style},onDragEnd:()=>{pe(!1),oe(null),Ga.current=null},onPointerDown:Te=>{Te.button!==2&&(Is||!Yn||(nn.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,Ht;if(ae||!Yn)return;Ga.current=null;const an=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()-((Ht=nn.current)==null?void 0:Ht.getTime()),gn=W==="x"?an:Va,qi=Math.abs(gn)/wt;if(Math.abs(gn)>=Cfe||qi>.11){Oe(oa.current),p.onDismiss==null||p.onDismiss.call(p,p),F(W==="x"?an>0?"right":"left":Va>0?"down":"up"),Br(),me(!0);return}else{var yn,bn;(yn=ft.current)==null||yn.style.setProperty("--swipe-amount-x","0px"),(bn=ft.current)==null||bn.style.setProperty("--swipe-amount-y","0px")}re(!1),pe(!1),oe(null)},onPointerMove:Te=>{var vt,Ht,an;if(!Ga.current||!Yn||((vt=window.getSelection())==null?void 0:vt.toString().length)>0)return;const wt=Te.clientY-Ga.current.y,gn=Te.clientX-Ga.current.x;var qi;const yn=(qi=e.swipeDirections)!=null?qi:Nfe(G);!W&&(Math.abs(gn)>1||Math.abs(wt)>1)&&oe(Math.abs(gn)>Math.abs(wt)?"x":"y");let bn={x:0,y:0};const Io=gr=>1/(1.5+Math.abs(gr)/20);if(W==="y"){if(yn.includes("top")||yn.includes("bottom"))if(yn.includes("top")&&wt<0||yn.includes("bottom")&&wt>0)bn.y=wt;else{const gr=wt*Io(wt);bn.y=Math.abs(gr)<Math.abs(wt)?gr:wt}}else if(W==="x"&&(yn.includes("left")||yn.includes("right")))if(yn.includes("left")&&gn<0||yn.includes("right")&&gn>0)bn.x=gn;else{const gr=gn*Io(gn);bn.x=Math.abs(gr)<Math.abs(gn)?gr:gn}(Math.abs(bn.x)>0||Math.abs(bn.y)>0)&&re(!0),(Ht=ft.current)==null||Ht.style.setProperty("--swipe-amount-x",`${bn.x}px`),(an=ft.current)==null||an.style.setProperty("--swipe-amount-y",`${bn.y}px`)}},hf&&!p.jsx&&xt!=="loading"?L.createElement("button",{"aria-label":Y,"data-disabled":Is,"data-close-button":!0,onClick:Is||!Yn?()=>{}:()=>{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:vfe):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||$o():null,p.type!=="loading"?Lo: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,ko,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&&Xd(p.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||k,onClick:Te=>{Xd(p.cancel)&&Yn&&(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&&Xd(p.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||I,onClick:Te=>{Xd(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 GD(){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 Pfe(e,t){const n={};return[e,t].forEach((r,i)=>{const l=i===1,s=l?"--mobile-offset":"--offset",c=l?Afe:Efe;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 Dfe=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:g="light",richColors:x,duration:O,style:w,visibleToasts:S=_fe,toastOptions:E,dir:T=GD(),gap:A=jfe,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(g!=="system"?g: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||Tn.dismiss(Z.id),se.filter(({id:ge})=>ge!==Z.id)})},[]);return L.useEffect(()=>Tn.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{R(se=>se.map(de=>de.id===Z.id?{...de,delete:!0}:de))});return}setTimeout(()=>{gk.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(g!=="system"){U(g);return}if(g==="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)}})}},[g]),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"?GD():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":`${Tfe}px`,"--gap":`${A}px`,...w,...Pfe(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(Rfe,{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}))}),kfe=Rp("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 $fe({className:e,variant:t,...n}){return y.jsx("div",{className:he(kfe({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function Lfe({className:e,...t}){return y.jsx("div",{className:he("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),"data-slot":"alert-title",...t})}function Ife({className:e,...t}){return y.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 H5="AlertDialog",[zfe]=kr(H5,[lL]),Fa=lL(),F5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Fa(t);return y.jsx(kS,{...r,...n,modal:!0})};F5.displayName=H5;var Bfe="AlertDialogTrigger",qfe=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return y.jsx(WF,{...i,...r,ref:t})});qfe.displayName=Bfe;var Ufe="AlertDialogPortal",G5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Fa(t);return y.jsx($S,{...r,...n})};G5.displayName=Ufe;var Hfe="AlertDialogOverlay",V5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return y.jsx(LS,{...i,...r,ref:t})});V5.displayName=Hfe;var Vl="AlertDialogContent",[Ffe,Gfe]=zfe(Vl),Vfe=Ik("AlertDialogContent"),Y5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,l=Fa(n),s=_.useRef(null),c=Ve(t,s),f=_.useRef(null);return y.jsx(FF,{contentName:Vl,titleName:W5,docsSlug:"alert-dialog",children:y.jsx(Ffe,{scope:n,cancelRef:f,children:y.jsxs(IS,{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:[y.jsx(Vfe,{children:r}),y.jsx(Wfe,{contentRef:s})]})})})});Y5.displayName=Vl;var W5="AlertDialogTitle",K5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return y.jsx(zS,{...i,...r,ref:t})});K5.displayName=W5;var X5="AlertDialogDescription",Q5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return y.jsx(BS,{...i,...r,ref:t})});Q5.displayName=X5;var Yfe="AlertDialogAction",Z5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Fa(n);return y.jsx(kp,{...i,...r,ref:t})});Z5.displayName=Yfe;var J5="AlertDialogCancel",ez=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Gfe(J5,n),l=Fa(n),s=Ve(t,i);return y.jsx(kp,{...l,...r,ref:s})});ez.displayName=J5;var Wfe=({contentRef:e})=>{const t=`\`${Vl}\` requires a description for the component to be accessible for screen reader users.
|
|
361
|
-
|
|
362
|
-
You can add a description to the \`${Vl}\` by passing a \`${X5}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
363
|
-
|
|
364
|
-
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 \`${Vl}\`. 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.
|
|
365
|
-
|
|
366
|
-
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},Kfe=F5,Xfe=G5,Qfe=V5,Zfe=Y5,Jfe=Z5,ede=ez,tde=K5,nde=Q5;function VD({...e}){return y.jsx(Kfe,{"data-slot":"alert-dialog",...e})}function rde({...e}){return y.jsx(Xfe,{"data-slot":"alert-dialog-portal",...e})}function ade({className:e,...t}){return y.jsx(Qfe,{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 YD({className:e,...t}){return y.jsxs(rde,{children:[y.jsx(ade,{}),y.jsx(Zfe,{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 WD({className:e,...t}){return y.jsx("div",{className:he("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function KD({className:e,...t}){return y.jsx("div",{className:he("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function XD({className:e,...t}){return y.jsx(tde,{className:he("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function QD({className:e,...t}){return y.jsx(nde,{className:he("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function ZD({className:e,...t}){return y.jsx(Jfe,{className:he(NS(),e),...t})}function JD({className:e,...t}){return y.jsx(ede,{className:he(NS({variant:"outline"}),e),...t})}var Sm="Collapsible",[ide]=kr(Sm),[ode,QO]=ide(Sm),tz=_.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:Sm});return y.jsx(ode,{scope:n,disabled:l,contentId:sr(),open:f,onOpenToggle:_.useCallback(()=>d(m=>!m),[d]),children:y.jsx(Me.div,{"data-state":JO(f),"data-disabled":l?"":void 0,...c,ref:t})})});tz.displayName=Sm;var nz="CollapsibleTrigger",rz=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=QO(nz,n);return y.jsx(Me.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":JO(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});rz.displayName=nz;var ZO="CollapsibleContent",az=_.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=QO(ZO,e.__scopeCollapsible);return y.jsx(pr,{present:n||i.open,children:({present:l})=>y.jsx(lde,{...r,ref:t,present:l})})});az.displayName=ZO;var lde=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...l}=e,s=QO(ZO,n),[c,f]=_.useState(r),d=_.useRef(null),m=Ve(t,d),p=_.useRef(0),g=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)},[]),$t(()=>{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]),y.jsx(Me.div,{"data-state":JO(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":O?`${O}px`:void 0,...e.style},children:w&&i})});function JO(e){return e?"open":"closed"}var sde=tz;const Om=sde,_m=rz,Em=az;function ude({...e}){return y.jsx(kS,{"data-slot":"dialog",...e})}function cde({...e}){return y.jsx($S,{"data-slot":"dialog-portal",...e})}function fde({className:e,...t}){return y.jsx(LS,{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 dde({className:e,children:t,showCloseButton:n=!0,...r}){return y.jsxs(cde,{"data-slot":"dialog-portal",children:[y.jsx(fde,{}),y.jsxs(IS,{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&&y.jsxs(kp,{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:[y.jsx(Il,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function hde({className:e,...t}){return y.jsx("div",{className:he("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function pde({className:e,...t}){return y.jsx("div",{className:he("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...t})}function mde({className:e,...t}){return y.jsx(zS,{className:he("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function vde({className:e,...t}){return y.jsx(BS,{className:he("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var gde="Label",iz=_.forwardRef((e,t)=>y.jsx(jo.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())}}));iz.displayName=gde;var yde=iz;function bde({className:e,...t}){return y.jsx(yde,{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 xde(){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 oz="wraps-dns-verification",wde=1e3*60*60;function lz(){try{const e=localStorage.getItem(oz);return e?JSON.parse(e):{}}catch{return{}}}function mp(e){try{localStorage.setItem(oz,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function sz(e){return e?Date.now()-e.lastChecked<wde:!1}async function ek(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=lz(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&sz(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,mp(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,mp(n),s}}async function tk(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=lz(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&sz(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,mp(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,mp(t),l}}function e_({status:e}){const t={SUCCESS:{icon:bp,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:uw,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:l6,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:xk,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:uw,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 y.jsxs(dn,{className:i,variant:"outline",children:[y.jsx(n,{className:"mr-1 h-3 w-3"}),r]})}function ys({text:e}){const t=async()=>{await navigator.clipboard.writeText(e),jn.success("Copied to clipboard",{description:"DNS record value copied successfully"})};return y.jsx(Dt,{onClick:t,size:"sm",variant:"ghost",children:y.jsx(s6,{className:"h-3 w-3"})})}function Sde({identity:e}){const t=e==null?void 0:e.dkimAttributes,n=(t==null?void 0:t.status)==="SUCCESS",[r,i]=_.useState(!n);return t?y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),y.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.signingEnabled?"Enabled":"Disabled",t.signingKeyLength&&` · ${t.signingKeyLength}`]})]}),y.jsx(e_,{status:t.status})]}),t.tokens&&t.tokens.length>0&&y.jsxs(Om,{onOpenChange:i,open:r,children:[y.jsx(_m,{asChild:!0,children:y.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[y.jsx("p",{className:"font-medium text-sm",children:"DNS Records (CNAME)"}),r?y.jsx(Yc,{className:"h-4 w-4"}):y.jsx(Ss,{className:"h-4 w-4"})]})}),y.jsx(Em,{className:"mt-2 space-y-2",children:t.tokens.map(l=>y.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[y.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[y.jsxs("p",{className:"font-mono text-xs",children:[l,"._domainkey.",e.identityName]}),y.jsx(ys,{text:`${l}._domainkey.${e.identityName}`})]}),y.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → ",l,".dkim.amazonses.com"]})]},l))})]})]}):y.jsx("div",{className:"space-y-4",children:y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]})})})}function Ode({identity:e}){const t=e==null?void 0:e.mailFromAttributes,n=(t==null?void 0:t.mailFromDomainStatus)==="SUCCESS",[r,i]=_.useState(!n);return y.jsx("div",{className:"space-y-4",children:t!=null&&t.mailFromDomain?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),y.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&&y.jsx(e_,{status:t.mailFromDomainStatus})]}),y.jsxs(Om,{onOpenChange:i,open:r,children:[y.jsx(_m,{asChild:!0,children:y.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[y.jsx("p",{className:"font-medium text-sm",children:"DNS Record (MX)"}),r?y.jsx(Yc,{className:"h-4 w-4"}):y.jsx(Ss,{className:"h-4 w-4"})]})}),y.jsx(Em,{className:"mt-2",children:y.jsx("div",{className:"rounded-md border bg-muted/50 p-3",children:y.jsxs("div",{className:"space-y-1",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("p",{className:"font-mono text-xs",children:["MX ",t.mailFromDomain]}),y.jsx(ys,{text:`10 feedback-smtp.${e==null?void 0:e.identityName.split(".")[0]}.amazonses.com`})]}),y.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"]})]})})})]})]}):y.jsx("div",{className:"flex items-center justify-between",children:y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:"Using default amazonses.com domain"})]})})})}function _de({identity:e}){const[t,n]=_.useState(null),[r,i]=_.useState(!1),[l,s]=_.useState(!(t!=null&&t.verified));_.useEffect(()=>{e!=null&&e.identityName&&tk(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 tk(e.identityName);n(f),f.verified?jn.success("DMARC record verified",{description:"DNS TXT record found and configured correctly"}):(console.error("DMARC verification failed:",f.error),jn.error("Verification failed",{description:f.error||"DMARC record not found"}))}catch(f){console.error("DMARC verification error:",f),jn.error("Verification error",{description:f instanceof Error?f.message:"Unknown error"})}finally{i(!1)}}};return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:"DMARC Policy"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:t!=null&&t.verified?"Configured":"Recommended for better deliverability"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[(t==null?void 0:t.verified)&&y.jsxs(dn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[y.jsx(bp,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),y.jsx(Dt,{className:"h-8 w-8 p-0",disabled:r,onClick:c,size:"sm",variant:"ghost",children:y.jsx(wk,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),y.jsxs(Om,{onOpenChange:s,open:l,children:[y.jsx(_m,{asChild:!0,children:y.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[y.jsx("p",{className:"font-medium text-sm",children:"DNS Record (TXT)"}),l?y.jsx(Yc,{className:"h-4 w-4"}):y.jsx(Ss,{className:"h-4 w-4"})]})}),y.jsx(Em,{className:"mt-2",children:y.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[y.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[y.jsxs("p",{className:"font-mono text-xs",children:["_dmarc.",(e==null?void 0:e.identityName)||"yourdomain.com"]}),y.jsx(ys,{text:`_dmarc.${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]}),y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.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"]}),y.jsx(ys,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function Ede({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(""),[g,x]=_.useState(!1),[O,w]=_.useState(!(i!=null&&i.verified));_.useEffect(()=>{if(r!=null&&r.customRedirectDomain&&t){const A=`r.${t}.awstrack.me`;ek(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 ek(r.customRedirectDomain,A);l(M),M.verified?jn.success("Tracking domain verified",{description:"DNS records are configured correctly"}):(console.error("Tracking domain verification failed:",M.error),jn.error("Verification failed",{description:M.error||"DNS records not found"}))}catch(A){console.error("Tracking domain verification error:",A),jn.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()){jn.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),jn.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),jn.error("Failed to update tracking domain",{description:A instanceof Error?A.message:"Unknown error"})}finally{x(!1)}};return y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Tracking Domain"}),y.jsx(Rr,{children:"Custom domain for open and click tracking links"})]}),y.jsx(Cn,{className:"space-y-4",children:r!=null&&r.customRedirectDomain?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex-1",children:[y.jsx("p",{className:"font-medium",children:r.customRedirectDomain}),y.jsx("p",{className:"text-muted-foreground text-sm",children:"Custom Tracking Domain"})]}),y.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.verified)&&y.jsxs(dn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[y.jsx(bp,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),y.jsx(dn,{variant:"outline",children:r.httpsPolicy==="REQUIRE"?"HTTPS Only":"HTTPS Optional"}),y.jsx(Dt,{className:"h-8 w-8 p-0",disabled:s,onClick:S,size:"sm",variant:"ghost",children:y.jsx(wk,{className:`h-4 w-4 ${s?"animate-spin":""}`})}),y.jsx(Dt,{className:"h-8 w-8 p-0",onClick:E,size:"sm",variant:"ghost",children:y.jsx(lj,{className:"h-4 w-4"})})]})]}),y.jsxs(Om,{onOpenChange:w,open:O,children:[y.jsx(_m,{asChild:!0,children:y.jsxs(Dt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[y.jsx("p",{className:"font-medium text-sm",children:"Required DNS Record (CNAME)"}),O?y.jsx(Yc,{className:"h-4 w-4"}):y.jsx(Ss,{className:"h-4 w-4"})]})}),y.jsx(Em,{className:"mt-2",children:y.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("p",{className:"font-mono text-xs",children:r.customRedirectDomain}),y.jsx(ys,{text:r.customRedirectDomain})]}),y.jsxs("div",{className:"mt-1 flex items-start justify-between gap-2",children:[y.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → r.",(e==null?void 0:e.name)||"region",".awstrack.me"]}),y.jsx(ys,{text:`r.${(e==null?void 0:e.name)||"region"}.awstrack.me`})]})]})})]})]}):y.jsxs("div",{className:"space-y-4",children:[y.jsx("p",{className:"text-muted-foreground text-sm",children:"No custom tracking domain configured. Using default awstrack.me domain."}),y.jsxs(Dt,{onClick:E,size:"sm",variant:"outline",children:[y.jsx(lj,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),y.jsx(ude,{onOpenChange:d,open:f,children:y.jsxs(dde,{children:[y.jsxs(hde,{children:[y.jsx(mde,{children:"Update Tracking Domain"}),y.jsx(vde,{children:"Enter the custom domain you want to use for email tracking links. You'll need to configure DNS records after saving."})]}),y.jsx("div",{className:"space-y-4 py-4",children:y.jsxs("div",{className:"space-y-2",children:[y.jsx(bde,{htmlFor:"domain",children:"Tracking Domain"}),y.jsx(Pp,{disabled:g,id:"domain",onChange:A=>p(A.target.value),placeholder:"track.example.com",value:m}),y.jsx("p",{className:"text-muted-foreground text-xs",children:"Example: track.yourdomain.com or email.yourdomain.com"})]})}),y.jsxs(pde,{children:[y.jsx(Dt,{disabled:g,onClick:()=>d(!1),variant:"outline",children:"Cancel"}),y.jsx(Dt,{disabled:g,onClick:T,children:g?"Updating...":"Update Domain"})]})]})})]})}function Ade({configSet:e,onRefresh:t}){var m,p;const[n,r]=_.useState(!1),[i,l]=_.useState(!1),[s,c]=_.useState(!1);if(!e)return y.jsx(hn,{children:y.jsxs(pn,{children:[y.jsx(dr,{children:"Configuration Set"}),y.jsx(Rr,{children:"No configuration set found"})]})});const f=async()=>{var g;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((g=e.sendingOptions)!=null&&g.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),jn.success(O?"Email sending enabled":"Email sending disabled"),t&&await t()}catch(x){console.error("Failed to toggle sending:",x),jn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}},d=async()=>{var g;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((g=e.reputationOptions)!=null&&g.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),jn.success(O?"Reputation metrics enabled":"Reputation metrics disabled"),t&&await t()}catch(x){console.error("Failed to toggle reputation:",x),jn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}};return y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Configuration Set"}),y.jsx(Rr,{children:"Email sending and tracking configuration"})]}),y.jsxs(Cn,{className:"space-y-6",children:[y.jsxs("div",{children:[y.jsx("p",{className:"font-medium",children:e.name}),y.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),y.jsx(Ul,{}),e.sendingOptions&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex-1 space-y-0.5",children:[y.jsx("p",{className:"font-medium text-sm",children:"Email Sending"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingOptions.sendingEnabled?"Emails can be sent":"Email sending is disabled"})]}),y.jsx(Dt,{onClick:()=>r(!0),size:"sm",variant:e.sendingOptions.sendingEnabled?"destructive":"default",children:e.sendingOptions.sendingEnabled?"Disable":"Enable"})]}),y.jsx(VD,{onOpenChange:r,open:n,children:y.jsxs(YD,{children:[y.jsxs(WD,{children:[y.jsx(XD,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),y.jsx(QD,{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."})]}),y.jsxs(KD,{children:[y.jsx(JD,{disabled:s,children:"Cancel"}),y.jsx(ZD,{disabled:s,onClick:f,children:s?"Updating...":e.sendingOptions.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]}),e.reputationOptions&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex-1 space-y-0.5",children:[y.jsx("p",{className:"font-medium text-sm",children:"Reputation Metrics"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:e.reputationOptions.reputationMetricsEnabled?"Tracking bounce and complaint rates":"Reputation tracking disabled"})]}),y.jsx(Dt,{onClick:()=>l(!0),size:"sm",variant:"outline",children:e.reputationOptions.reputationMetricsEnabled?"Disable":"Enable"})]}),y.jsx(VD,{onOpenChange:l,open:i,children:y.jsxs(YD,{children:[y.jsxs(WD,{children:[y.jsx(XD,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),y.jsx(QD,{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."})]}),y.jsxs(KD,{children:[y.jsx(JD,{disabled:s,children:"Cancel"}),y.jsx(ZD,{disabled:s,onClick:d,children:s?"Updating...":e.reputationOptions.reputationMetricsEnabled?"Disable metrics":"Enable metrics"})]})]})})]}),((m=e.deliveryOptions)==null?void 0:m.tlsPolicy)&&y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"space-y-0.5",children:[y.jsx("p",{className:"font-medium text-sm",children:"TLS Encryption"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required for all connections":"Optional (opportunistic)"})]}),y.jsx(dn,{variant:"outline",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required":"Optional"})]}),e.suppressionOptions&&y.jsxs("div",{className:"space-y-2",children:[y.jsxs("div",{className:"space-y-0.5",children:[y.jsx("p",{className:"font-medium text-sm",children:"Suppression List"}),y.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?y.jsx("div",{className:"flex gap-2",children:e.suppressionOptions.suppressedReasons.map(g=>y.jsx(dn,{variant:"secondary",children:g},g))}):y.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]}),((p=e.deliveryOptions)==null?void 0:p.sendingPoolName)&&y.jsxs("div",{children:[y.jsx("p",{className:"font-medium text-sm",children:"IP Pool"}),y.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.sendingPoolName})]})]})]})}function Tde(){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 xde();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?y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),y.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),y.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[y.jsxs(hn,{className:"md:row-span-2",children:[y.jsxs(pn,{children:[y.jsx(Tt,{className:"h-6 w-48"}),y.jsx(Tt,{className:"mt-2 h-4 w-64"})]}),y.jsxs(Cn,{className:"space-y-6",children:[y.jsxs("div",{className:"space-y-2",children:[y.jsx(Tt,{className:"h-4 w-32"}),y.jsx(Tt,{className:"h-4 w-24"})]}),y.jsx(Tt,{className:"h-px w-full"}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(Tt,{className:"h-4 w-40"}),y.jsx(Tt,{className:"h-4 w-28"})]}),y.jsx(Tt,{className:"h-px w-full"}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(Tt,{className:"h-4 w-36"}),y.jsx(Tt,{className:"h-4 w-32"})]}),y.jsx(Tt,{className:"h-px w-full"}),y.jsxs("div",{className:"space-y-2",children:[y.jsx(Tt,{className:"h-4 w-32"}),y.jsx(Tt,{className:"h-4 w-44"})]})]})]}),y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(Tt,{className:"h-6 w-48"}),y.jsx(Tt,{className:"mt-2 h-4 w-64"})]}),y.jsx(Cn,{children:y.jsx(Tt,{className:"h-20 w-full"})})]}),y.jsxs(hn,{children:[y.jsxs(pn,{children:[y.jsx(Tt,{className:"h-6 w-48"}),y.jsx(Tt,{className:"mt-2 h-4 w-64"})]}),y.jsx(Cn,{children:y.jsx(Tt,{className:"h-20 w-full"})})]})]})]}):i?y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),y.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),y.jsxs($fe,{className:"mt-6",variant:"destructive",children:[y.jsx(xk,{className:"h-4 w-4"}),y.jsx(Lfe,{children:"Error Loading Settings"}),y.jsx(Ife,{children:i})]})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),y.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),y.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[y.jsxs(hn,{className:"md:row-span-2",children:[y.jsxs(pn,{children:[y.jsx(dr,{children:"Sending Domain"}),y.jsx(Rr,{children:"Email domain configuration and authentication"})]}),y.jsxs(Cn,{className:"space-y-6",children:[y.jsx("div",{className:"space-y-4",children:y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex-1",children:[y.jsx("p",{className:"font-medium",children:(c=e==null?void 0:e.identity)==null?void 0:c.identityName}),y.jsx("p",{className:"text-muted-foreground text-sm",children:"Domain Identity"})]}),y.jsx(e_,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),y.jsx(Ul,{}),y.jsx(Sde,{identity:e==null?void 0:e.identity}),y.jsx(Ul,{}),y.jsx(Ode,{identity:e==null?void 0:e.identity}),y.jsx(Ul,{}),y.jsx(_de,{identity:e==null?void 0:e.identity})]})]}),y.jsx(Ade,{configSet:e==null?void 0:e.configurationSet,onRefresh:s}),y.jsx(Ede,{configSet:e==null?void 0:e.configurationSet,onRefresh:s,region:e==null?void 0:e.region})]})]})}function jde({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 y.jsx(FL.Provider,{...r,value:s,children:e})}function Cde({...e}){return y.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function Mde({className:e,...t}){return y.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 Nde({className:e,...t}){return y.jsx("li",{className:he("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function Rde({className:e,...t}){return y.jsx("span",{"aria-current":"page","aria-disabled":"true",className:he("font-normal text-foreground",e),"data-slot":"breadcrumb-page",role:"link",...t})}var Pde=(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 g(){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"?g():x;m(O)}catch{}},Dde=_.createContext(void 0),kde={setTheme:e=>{},themes:[]},$de=()=>{var e;return(e=_.useContext(Dde))!=null?e:kde};_.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:`(${Pde.toString()})(${m})`}})});const Lde=({...e})=>{const{theme:t="system"}=$de();return y.jsx(Dfe,{className:"toaster group",icons:{success:y.jsx(bp,{className:"size-4"}),info:y.jsx(c6,{className:"size-4"}),warning:y.jsx(x6,{className:"size-4"}),error:y.jsx(h6,{className:"size-4"}),loading:y.jsx(f6,{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 Ide(){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 y.jsxs(zL,{defaultOpen:!1,children:[y.jsx(GG,{}),y.jsxs(qL,{children:[y.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[y.jsx(BL,{className:"-ml-1"}),y.jsx(Ul,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),y.jsx(Cde,{children:y.jsx(Mde,{children:y.jsx(Nde,{children:y.jsx(Rde,{children:r()})})})})]}),y.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:t?y.jsxs(w8,{children:[y.jsx(Pl,{element:y.jsx(b8,{replace:!0,to:"/email"}),path:"/"}),y.jsx(Pl,{element:y.jsx(VV,{}),path:"/email"}),y.jsx(Pl,{element:y.jsx(XG,{}),path:"/email/:id"}),y.jsx(Pl,{element:y.jsx(lfe,{}),path:"/email/metrics"}),y.jsx(Pl,{element:y.jsx(Tde,{}),path:"/email/settings"})]}):y.jsx("div",{className:"flex items-center justify-center p-8",children:y.jsx("div",{className:"text-muted-foreground",children:"Loading..."})})})]})]})}function zde(){return y.jsx(jde,{defaultTheme:"system",storageKey:"console-ui-theme",children:y.jsxs(F8,{children:[y.jsx(Ide,{}),y.jsx(Lde,{})]})})}Cq.createRoot(document.getElementById("root")).render(y.jsx(_.StrictMode,{children:y.jsx(zde,{})}));
|