@tapflowio/relay 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SessionManager.d.ts.map +1 -1
- package/dist/SessionManager.js +3 -2
- package/dist/SessionManager.js.map +1 -1
- package/dist/db.d.ts.map +1 -1
- package/dist/db.js +2 -1
- package/dist/db.js.map +1 -1
- package/dist/middleware/auth.d.ts +1 -0
- package/dist/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +10 -1
- package/dist/middleware/auth.js.map +1 -1
- package/package.json +3 -2
- package/public/assets/index-Cr-AWB1E.js +499 -0
- package/public/index.html +1 -1
- package/public/assets/index-B09qZWED.js +0 -499
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
function VH(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var kh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var db={exports:{}},Tu={};/**
|
|
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 Q2;function GH(){if(Q2)return Tu;Q2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Tu.Fragment=t,Tu.jsx=n,Tu.jsxs=n,Tu}var J2;function WH(){return J2||(J2=1,db.exports=GH()),db.exports}var v=WH(),hb={exports:{}},et={};/**
|
|
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 eC;function YH(){if(eC)return et;eC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=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"),h=Symbol.for("react.activity"),g=Symbol.iterator;function x(P){return P===null||typeof P!="object"?null:(P=g&&P[g]||P["@@iterator"],typeof P=="function"?P:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function O(P,H,J){this.props=P,this.context=H,this.refs=w,this.updater=J||A}O.prototype.isReactComponent={},O.prototype.setState=function(P,H){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,H,"setState")},O.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function E(){}E.prototype=O.prototype;function j(P,H,J){this.props=P,this.context=H,this.refs=w,this.updater=J||A}var C=j.prototype=new E;C.constructor=j,S(C,O.prototype),C.isPureReactComponent=!0;var T=Array.isArray;function R(){}var N={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function z(P,H,J){var fe=J.ref;return{$$typeof:e,type:P,key:H,ref:fe!==void 0?fe:null,props:J}}function V(P,H){return z(P.type,H,P.props)}function B(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function I(P){var H={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(J){return H[J]})}var F=/\/+/g;function G(P,H){return typeof P=="object"&&P!==null&&P.key!=null?I(""+P.key):H.toString(36)}function Y(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(R,R):(P.status="pending",P.then(function(H){P.status==="pending"&&(P.status="fulfilled",P.value=H)},function(H){P.status==="pending"&&(P.status="rejected",P.reason=H)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function $(P,H,J,fe,ye){var ce=typeof P;(ce==="undefined"||ce==="boolean")&&(P=null);var he=!1;if(P===null)he=!0;else switch(ce){case"bigint":case"string":case"number":he=!0;break;case"object":switch(P.$$typeof){case e:case t:he=!0;break;case m:return he=P._init,$(he(P._payload),H,J,fe,ye)}}if(he)return ye=ye(P),he=fe===""?"."+G(P,0):fe,T(ye)?(J="",he!=null&&(J=he.replace(F,"$&/")+"/"),$(ye,H,J,"",function(Oe){return Oe})):ye!=null&&(B(ye)&&(ye=V(ye,J+(ye.key==null||P&&P.key===ye.key?"":(""+ye.key).replace(F,"$&/")+"/")+he)),H.push(ye)),1;he=0;var we=fe===""?".":fe+":";if(T(P))for(var se=0;se<P.length;se++)fe=P[se],ce=we+G(fe,se),he+=$(fe,H,J,ce,ye);else if(se=x(P),typeof se=="function")for(P=se.call(P),se=0;!(fe=P.next()).done;)fe=fe.value,ce=we+G(fe,se++),he+=$(fe,H,J,ce,ye);else if(ce==="object"){if(typeof P.then=="function")return $(Y(P),H,J,fe,ye);throw H=String(P),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return he}function q(P,H,J){if(P==null)return P;var fe=[],ye=0;return $(P,fe,"","",function(ce){return H.call(J,ce,ye++)}),fe}function K(P){if(P._status===-1){var H=P._result;H=H(),H.then(function(J){(P._status===0||P._status===-1)&&(P._status=1,P._result=J)},function(J){(P._status===0||P._status===-1)&&(P._status=2,P._result=J)}),P._status===-1&&(P._status=0,P._result=H)}if(P._status===1)return P._result.default;throw P._result}var X=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},Z={map:q,forEach:function(P,H,J){q(P,function(){H.apply(this,arguments)},J)},count:function(P){var H=0;return q(P,function(){H++}),H},toArray:function(P){return q(P,function(H){return H})||[]},only:function(P){if(!B(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return et.Activity=h,et.Children=Z,et.Component=O,et.Fragment=n,et.Profiler=a,et.PureComponent=j,et.StrictMode=r,et.Suspense=f,et.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,et.__COMPILER_RUNTIME={__proto__:null,c:function(P){return N.H.useMemoCache(P)}},et.cache=function(P){return function(){return P.apply(null,arguments)}},et.cacheSignal=function(){return null},et.cloneElement=function(P,H,J){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var fe=S({},P.props),ye=P.key;if(H!=null)for(ce in H.key!==void 0&&(ye=""+H.key),H)!k.call(H,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&H.ref===void 0||(fe[ce]=H[ce]);var ce=arguments.length-2;if(ce===1)fe.children=J;else if(1<ce){for(var he=Array(ce),we=0;we<ce;we++)he[we]=arguments[we+2];fe.children=he}return z(P.type,ye,fe)},et.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},et.createElement=function(P,H,J){var fe,ye={},ce=null;if(H!=null)for(fe in H.key!==void 0&&(ce=""+H.key),H)k.call(H,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ye[fe]=H[fe]);var he=arguments.length-2;if(he===1)ye.children=J;else if(1<he){for(var we=Array(he),se=0;se<he;se++)we[se]=arguments[se+2];ye.children=we}if(P&&P.defaultProps)for(fe in he=P.defaultProps,he)ye[fe]===void 0&&(ye[fe]=he[fe]);return z(P,ce,ye)},et.createRef=function(){return{current:null}},et.forwardRef=function(P){return{$$typeof:c,render:P}},et.isValidElement=B,et.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:K}},et.memo=function(P,H){return{$$typeof:d,type:P,compare:H===void 0?null:H}},et.startTransition=function(P){var H=N.T,J={};N.T=J;try{var fe=P(),ye=N.S;ye!==null&&ye(J,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(R,X)}catch(ce){X(ce)}finally{H!==null&&J.types!==null&&(H.types=J.types),N.T=H}},et.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},et.use=function(P){return N.H.use(P)},et.useActionState=function(P,H,J){return N.H.useActionState(P,H,J)},et.useCallback=function(P,H){return N.H.useCallback(P,H)},et.useContext=function(P){return N.H.useContext(P)},et.useDebugValue=function(){},et.useDeferredValue=function(P,H){return N.H.useDeferredValue(P,H)},et.useEffect=function(P,H){return N.H.useEffect(P,H)},et.useEffectEvent=function(P){return N.H.useEffectEvent(P)},et.useId=function(){return N.H.useId()},et.useImperativeHandle=function(P,H,J){return N.H.useImperativeHandle(P,H,J)},et.useInsertionEffect=function(P,H){return N.H.useInsertionEffect(P,H)},et.useLayoutEffect=function(P,H){return N.H.useLayoutEffect(P,H)},et.useMemo=function(P,H){return N.H.useMemo(P,H)},et.useOptimistic=function(P,H){return N.H.useOptimistic(P,H)},et.useReducer=function(P,H,J){return N.H.useReducer(P,H,J)},et.useRef=function(P){return N.H.useRef(P)},et.useState=function(P){return N.H.useState(P)},et.useSyncExternalStore=function(P,H,J){return N.H.useSyncExternalStore(P,H,J)},et.useTransition=function(){return N.H.useTransition()},et.version="19.2.6",et}var tC;function k_(){return tC||(tC=1,hb.exports=YH()),hb.exports}var y=k_();const L=Bt(y),$_=VH({__proto__:null,default:L},[y]);var pb={exports:{}},ju={},mb={exports:{}},vb={};/**
|
|
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 nC;function ZH(){return nC||(nC=1,(function(e){function t($,q){var K=$.length;$.push(q);e:for(;0<K;){var X=K-1>>>1,Z=$[X];if(0<a(Z,q))$[X]=q,$[K]=Z,K=X;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var q=$[0],K=$.pop();if(K!==q){$[0]=K;e:for(var X=0,Z=$.length,P=Z>>>1;X<P;){var H=2*(X+1)-1,J=$[H],fe=H+1,ye=$[fe];if(0>a(J,K))fe<Z&&0>a(ye,J)?($[X]=ye,$[fe]=K,X=fe):($[X]=J,$[H]=K,X=H);else if(fe<Z&&0>a(ye,K))$[X]=ye,$[fe]=K,X=fe;else break e}}return q}function a($,q){var K=$.sortIndex-q.sortIndex;return K!==0?K:$.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],m=1,h=null,g=3,x=!1,A=!1,S=!1,w=!1,O=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function C($){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=$)r(d),q.sortIndex=q.expirationTime,t(f,q);else break;q=n(d)}}function T($){if(S=!1,C($),!A)if(n(f)!==null)A=!0,R||(R=!0,I());else{var q=n(d);q!==null&&Y(T,q.startTime-$)}}var R=!1,N=-1,k=5,z=-1;function V(){return w?!0:!(e.unstable_now()-z<k)}function B(){if(w=!1,R){var $=e.unstable_now();z=$;var q=!0;try{e:{A=!1,S&&(S=!1,E(N),N=-1),x=!0;var K=g;try{t:{for(C($),h=n(f);h!==null&&!(h.expirationTime>$&&V());){var X=h.callback;if(typeof X=="function"){h.callback=null,g=h.priorityLevel;var Z=X(h.expirationTime<=$);if($=e.unstable_now(),typeof Z=="function"){h.callback=Z,C($),q=!0;break t}h===n(f)&&r(f),C($)}else r(f);h=n(f)}if(h!==null)q=!0;else{var P=n(d);P!==null&&Y(T,P.startTime-$),q=!1}}break e}finally{h=null,g=K,x=!1}q=void 0}}finally{q?I():R=!1}}}var I;if(typeof j=="function")I=function(){j(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,G=F.port2;F.port1.onmessage=B,I=function(){G.postMessage(null)}}else I=function(){O(B,0)};function Y($,q){N=O(function(){$(e.unstable_now())},q)}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($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var q=3;break;default:q=g}var K=g;g=q;try{return $()}finally{g=K}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function($,q){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var K=g;g=$;try{return q()}finally{g=K}},e.unstable_scheduleCallback=function($,q,K){var X=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?X+K:X):K=X,$){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=K+Z,$={id:m++,callback:q,priorityLevel:$,startTime:K,expirationTime:Z,sortIndex:-1},K>X?($.sortIndex=K,t(d,$),n(f)===null&&$===n(d)&&(S?(E(N),N=-1):S=!0,Y(T,K-X))):($.sortIndex=Z,t(f,$),A||x||(A=!0,R||(R=!0,I()))),$},e.unstable_shouldYield=V,e.unstable_wrapCallback=function($){var q=g;return function(){var K=g;g=q;try{return $.apply(this,arguments)}finally{g=K}}}})(vb)),vb}var rC;function KH(){return rC||(rC=1,mb.exports=ZH()),mb.exports}var gb={exports:{}},Zn={};/**
|
|
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 aC;function XH(){if(aC)return Zn;aC=1;var e=k_();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},a=Symbol.for("react.portal");function o(f,d,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:h==null?null:""+h,children:f,containerInfo:d,implementation:m}}var l=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 Zn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Zn.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 o(f,d,null,m)},Zn.flushSync=function(f){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=m,r.d.f()}},Zn.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))},Zn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},Zn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,h=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:h,integrity:g,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:h,integrity:g,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Zn.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)},Zn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,h=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:h,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})}},Zn.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)},Zn.requestFormReset=function(f){r.d.r(f)},Zn.unstable_batchedUpdates=function(f,d){return f(d)},Zn.useFormState=function(f,d,m){return l.H.useFormState(f,d,m)},Zn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Zn.version="19.2.6",Zn}var iC;function wz(){if(iC)return gb.exports;iC=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(),gb.exports=XH(),gb.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 oC;function QH(){if(oC)return ju;oC=1;var e=KH(),t=k_(),n=wz();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function f(i){if(o(i)!==i)throw Error(r(188))}function d(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,p=s;;){var b=u.return;if(b===null)break;var _=b.alternate;if(_===null){if(p=b.return,p!==null){u=p;continue}break}if(b.child===_.child){for(_=b.child;_;){if(_===u)return f(b),i;if(_===p)return f(b),s;_=_.sibling}throw Error(r(188))}if(u.return!==p.return)u=b,p=_;else{for(var M=!1,D=b.child;D;){if(D===u){M=!0,u=b,p=_;break}if(D===p){M=!0,p=b,u=_;break}D=D.sibling}if(!M){for(D=_.child;D;){if(D===u){M=!0,u=_,p=b;break}if(D===p){M=!0,p=_,u=b;break}D=D.sibling}if(!M)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),j=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function I(i){return i===null||typeof i!="object"?null:(i=B&&i[B]||i["@@iterator"],typeof i=="function"?i:null)}var F=Symbol.for("react.client.reference");function G(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===F?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case S:return"Fragment";case O:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList";case z:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case A:return"Portal";case j:return i.displayName||"Context";case E:return(i._context.displayName||"Context")+".Consumer";case C:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case N:return s=i.displayName||null,s!==null?s:G(i.type)||"Memo";case k:s=i._payload,i=i._init;try{return G(i(s))}catch{}}return null}var Y=Array.isArray,$=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},X=[],Z=-1;function P(i){return{current:i}}function H(i){0>Z||(i.current=X[Z],X[Z]=null,Z--)}function J(i,s){Z++,X[Z]=i.current,i.current=s}var fe=P(null),ye=P(null),ce=P(null),he=P(null);function we(i,s){switch(J(ce,s),J(ye,i),J(fe,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?w2(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=w2(s),i=S2(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}H(fe),J(fe,i)}function se(){H(fe),H(ye),H(ce)}function Oe(i){i.memoizedState!==null&&J(he,i);var s=fe.current,u=S2(s,i.type);s!==u&&(J(ye,i),J(fe,u))}function _e(i){ye.current===i&&(H(fe),H(ye)),he.current===i&&(H(he),_u._currentValue=K)}var ie,Ge;function ze(i){if(ie===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ie=s&&s[1]||"",Ge=-1<u.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ie+i+Ge}var Je=!1;function Ke(i,s){if(!i||Je)return"";Je=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(de){var le=de}Reflect.construct(i,[],be)}else{try{be.call()}catch(de){le=de}i.call(be.prototype)}}else{try{throw Error()}catch(de){le=de}(be=i())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(de){if(de&&le&&typeof de.stack=="string")return[de.stack,le.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=p.DetermineComponentFrameRoot(),M=_[0],D=_[1];if(M&&D){var W=M.split(`
|
|
44
|
-
`),oe=D.split(`
|
|
45
|
-
`);for(b=p=0;p<W.length&&!W[p].includes("DetermineComponentFrameRoot");)p++;for(;b<oe.length&&!oe[b].includes("DetermineComponentFrameRoot");)b++;if(p===W.length||b===oe.length)for(p=W.length-1,b=oe.length-1;1<=p&&0<=b&&W[p]!==oe[b];)b--;for(;1<=p&&0<=b;p--,b--)if(W[p]!==oe[b]){if(p!==1||b!==1)do if(p--,b--,0>b||W[p]!==oe[b]){var pe=`
|
|
46
|
-
`+W[p].replace(" at new "," at ");return i.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",i.displayName)),pe}while(1<=p&&0<=b);break}}}finally{Je=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?ze(u):""}function st(i,s){switch(i.tag){case 26:case 27:case 5:return ze(i.type);case 16:return ze("Lazy");case 13:return i.child!==s&&s!==null?ze("Suspense Fallback"):ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return Ke(i.type,!1);case 11:return Ke(i.type.render,!1);case 1:return Ke(i.type,!0);case 31:return ze("Activity");default:return""}}function Tt(i){try{var s="",u=null;do s+=st(i,u),u=i,i=i.return;while(i);return s}catch(p){return`
|
|
47
|
-
Error generating stack: `+p.message+`
|
|
48
|
-
`+p.stack}}var pt=Object.prototype.hasOwnProperty,mn=e.unstable_scheduleCallback,on=e.unstable_cancelCallback,At=e.unstable_shouldYield,en=e.unstable_requestPaint,U=e.unstable_now,ee=e.unstable_getCurrentPriorityLevel,re=e.unstable_ImmediatePriority,Re=e.unstable_UserBlockingPriority,Ce=e.unstable_NormalPriority,Te=e.unstable_LowPriority,De=e.unstable_IdlePriority,He=e.log,Ze=e.unstable_setDisableYieldValue,Ot=null,xt=null;function jt(i){if(typeof He=="function"&&Ze(i),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Ot,i)}catch{}}var tn=Math.clz32?Math.clz32:vn,nr=Math.log,rr=Math.LN2;function vn(i){return i>>>=0,i===0?32:31-(nr(i)/rr|0)|0}var $n=256,ar=262144,zn=4194304;function Ae(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function je(i,s,u){var p=i.pendingLanes;if(p===0)return 0;var b=0,_=i.suspendedLanes,M=i.pingedLanes;i=i.warmLanes;var D=p&134217727;return D!==0?(p=D&~_,p!==0?b=Ae(p):(M&=D,M!==0?b=Ae(M):u||(u=D&~i,u!==0&&(b=Ae(u))))):(D=p&~_,D!==0?b=Ae(D):M!==0?b=Ae(M):u||(u=p&~i,u!==0&&(b=Ae(u)))),b===0?0:s!==0&&s!==b&&(s&_)===0&&(_=b&-b,u=s&-s,_>=u||_===32&&(u&4194048)!==0)?s:b}function Ee(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function Fe(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 rt(){var i=zn;return zn<<=1,(zn&62914560)===0&&(zn=4194304),i}function ne(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function ve(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function ue(i,s,u,p,b,_){var M=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var D=i.entanglements,W=i.expirationTimes,oe=i.hiddenUpdates;for(u=M&~u;0<u;){var pe=31-tn(u),be=1<<pe;D[pe]=0,W[pe]=-1;var le=oe[pe];if(le!==null)for(oe[pe]=null,pe=0;pe<le.length;pe++){var de=le[pe];de!==null&&(de.lane&=-536870913)}u&=~be}p!==0&&Be(i,p,0),_!==0&&b===0&&i.tag!==0&&(i.suspendedLanes|=_&~(M&~s))}function Be(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var p=31-tn(s);i.entangledLanes|=s,i.entanglements[p]=i.entanglements[p]|1073741824|u&261930}function Pe(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var p=31-tn(u),b=1<<p;b&s|i[p]&s&&(i[p]|=s),u&=~b}}function Me(i,s){var u=s&-s;return u=(u&42)!==0?1:qe(u),(u&(i.suspendedLanes|s))!==0?0:u}function qe(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function lt(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function nn(){var i=q.p;return i!==0?i:(i=window.event,i===void 0?32:V2(i.type))}function Uo(i,s){var u=q.p;try{return q.p=i,s()}finally{q.p=u}}var fa=Math.random().toString(36).slice(2),En="__reactFiber$"+fa,Yn="__reactProps$"+fa,ni="__reactContainer$"+fa,zc="__reactEvents$"+fa,DU="__reactListeners$"+fa,kU="__reactHandles$"+fa,lE="__reactResources$"+fa,Lc="__reactMarker$"+fa;function ag(i){delete i[En],delete i[Yn],delete i[zc],delete i[DU],delete i[kU]}function Us(i){var s=i[En];if(s)return s;for(var u=i.parentNode;u;){if(s=u[ni]||u[En]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=C2(i);i!==null;){if(u=i[En])return u;i=C2(i)}return s}i=u,u=i.parentNode}return null}function qs(i){if(i=i[En]||i[ni]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function Ic(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function Hs(i){var s=i[lE];return s||(s=i[lE]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Mn(i){i[Lc]=!0}var cE=new Set,uE={};function qo(i,s){Fs(i,s),Fs(i+"Capture",s)}function Fs(i,s){for(uE[i]=s,i=0;i<s.length;i++)cE.add(s[i])}var $U=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]*$"),fE={},dE={};function zU(i){return pt.call(dE,i)?!0:pt.call(fE,i)?!1:$U.test(i)?dE[i]=!0:(fE[i]=!0,!1)}function _d(i,s,u){if(zU(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function Ad(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function ri(i,s,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+p)}}function Lr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function hE(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function LU(i,s,u){var p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,_=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return b.call(this)},set:function(M){u=""+M,_.call(this,M)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(M){u=""+M},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function ig(i){if(!i._valueTracker){var s=hE(i)?"checked":"value";i._valueTracker=LU(i,s,""+i[s])}}function pE(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return i&&(p=hE(i)?i.checked?"true":"false":i.value),i=p,i!==u?(s.setValue(i),!0):!1}function Od(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var IU=/[\n"\\]/g;function Ir(i){return i.replace(IU,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function og(i,s,u,p,b,_,M,D){i.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?i.type=M:i.removeAttribute("type"),s!=null?M==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Lr(s)):i.value!==""+Lr(s)&&(i.value=""+Lr(s)):M!=="submit"&&M!=="reset"||i.removeAttribute("value"),s!=null?sg(i,M,Lr(s)):u!=null?sg(i,M,Lr(u)):p!=null&&i.removeAttribute("value"),b==null&&_!=null&&(i.defaultChecked=!!_),b!=null&&(i.checked=b&&typeof b!="function"&&typeof b!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?i.name=""+Lr(D):i.removeAttribute("name")}function mE(i,s,u,p,b,_,M,D){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),s!=null||u!=null){if(!(_!=="submit"&&_!=="reset"||s!=null)){ig(i);return}u=u!=null?""+Lr(u):"",s=s!=null?""+Lr(s):u,D||s===i.value||(i.value=s),i.defaultValue=s}p=p??b,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=D?i.checked:!!p,i.defaultChecked=!!p,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(i.name=M),ig(i)}function sg(i,s,u){s==="number"&&Od(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Vs(i,s,u,p){if(i=i.options,s){s={};for(var b=0;b<u.length;b++)s["$"+u[b]]=!0;for(u=0;u<i.length;u++)b=s.hasOwnProperty("$"+i[u].value),i[u].selected!==b&&(i[u].selected=b),b&&p&&(i[u].defaultSelected=!0)}else{for(u=""+Lr(u),s=null,b=0;b<i.length;b++){if(i[b].value===u){i[b].selected=!0,p&&(i[b].defaultSelected=!0);return}s!==null||i[b].disabled||(s=i[b])}s!==null&&(s.selected=!0)}}function vE(i,s,u){if(s!=null&&(s=""+Lr(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+Lr(u):""}function gE(i,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(r(92));if(Y(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),s=u}u=Lr(s),i.defaultValue=u,p=i.textContent,p===u&&p!==""&&p!==null&&(i.value=p),ig(i)}function Gs(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var BU=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 yE(i,s,u){var p=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":p?i.setProperty(s,u):typeof u!="number"||u===0||BU.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function bE(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var b in s)p=s[b],s.hasOwnProperty(b)&&u[b]!==p&&yE(i,b,p)}else for(var _ in s)s.hasOwnProperty(_)&&yE(i,_,s[_])}function lg(i){if(i.indexOf("-")===-1)return!1;switch(i){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 UU=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"]]),qU=/^[\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 Ed(i){return qU.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ai(){}var cg=null;function ug(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ws=null,Ys=null;function xE(i){var s=qs(i);if(s&&(i=s.stateNode)){var u=i[Yn]||null;e:switch(i=s.stateNode,s.type){case"input":if(og(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Ir(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var p=u[s];if(p!==i&&p.form===i.form){var b=p[Yn]||null;if(!b)throw Error(r(90));og(p,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(s=0;s<u.length;s++)p=u[s],p.form===i.form&&pE(p)}break e;case"textarea":vE(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Vs(i,!!u.multiple,s,!1)}}}var fg=!1;function wE(i,s,u){if(fg)return i(s,u);fg=!0;try{var p=i(s);return p}finally{if(fg=!1,(Ws!==null||Ys!==null)&&(hh(),Ws&&(s=Ws,i=Ys,Ys=Ws=null,xE(s),i)))for(s=0;s<i.length;s++)xE(i[s])}}function Bc(i,s){var u=i.stateNode;if(u===null)return null;var p=u[Yn]||null;if(p===null)return null;u=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dg=!1;if(ii)try{var Uc={};Object.defineProperty(Uc,"passive",{get:function(){dg=!0}}),window.addEventListener("test",Uc,Uc),window.removeEventListener("test",Uc,Uc)}catch{dg=!1}var qi=null,hg=null,Td=null;function SE(){if(Td)return Td;var i,s=hg,u=s.length,p,b="value"in qi?qi.value:qi.textContent,_=b.length;for(i=0;i<u&&s[i]===b[i];i++);var M=u-i;for(p=1;p<=M&&s[u-p]===b[_-p];p++);return Td=b.slice(i,1<p?1-p:void 0)}function jd(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Cd(){return!0}function _E(){return!1}function fr(i){function s(u,p,b,_,M){this._reactName=u,this._targetInst=b,this.type=p,this.nativeEvent=_,this.target=M,this.currentTarget=null;for(var D in i)i.hasOwnProperty(D)&&(u=i[D],this[D]=u?u(_):_[D]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?Cd:_E,this.isPropagationStopped=_E,this}return h(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Cd)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Cd)},persist:function(){},isPersistent:Cd}),s}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rd=fr(Ho),qc=h({},Ho,{view:0,detail:0}),HU=fr(qc),pg,mg,Hc,Nd=h({},qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gg,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Hc&&(Hc&&i.type==="mousemove"?(pg=i.screenX-Hc.screenX,mg=i.screenY-Hc.screenY):mg=pg=0,Hc=i),pg)},movementY:function(i){return"movementY"in i?i.movementY:mg}}),AE=fr(Nd),FU=h({},Nd,{dataTransfer:0}),VU=fr(FU),GU=h({},qc,{relatedTarget:0}),vg=fr(GU),WU=h({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),YU=fr(WU),ZU=h({},Ho,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),KU=fr(ZU),XU=h({},Ho,{data:0}),OE=fr(XU),QU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JU={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"},eq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tq(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=eq[i])?!!s[i]:!1}function gg(){return tq}var nq=h({},qc,{key:function(i){if(i.key){var s=QU[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=jd(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?JU[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gg,charCode:function(i){return i.type==="keypress"?jd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?jd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),rq=fr(nq),aq=h({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),EE=fr(aq),iq=h({},qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gg}),oq=fr(iq),sq=h({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),lq=fr(sq),cq=h({},Nd,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),uq=fr(cq),fq=h({},Ho,{newState:0,oldState:0}),dq=fr(fq),hq=[9,13,27,32],yg=ii&&"CompositionEvent"in window,Fc=null;ii&&"documentMode"in document&&(Fc=document.documentMode);var pq=ii&&"TextEvent"in window&&!Fc,TE=ii&&(!yg||Fc&&8<Fc&&11>=Fc),jE=" ",CE=!1;function RE(i,s){switch(i){case"keyup":return hq.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function NE(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Zs=!1;function mq(i,s){switch(i){case"compositionend":return NE(s);case"keypress":return s.which!==32?null:(CE=!0,jE);case"textInput":return i=s.data,i===jE&&CE?null:i;default:return null}}function vq(i,s){if(Zs)return i==="compositionend"||!yg&&RE(i,s)?(i=SE(),Td=hg=qi=null,Zs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return TE&&s.locale!=="ko"?null:s.data;default:return null}}var gq={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 ME(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!gq[i.type]:s==="textarea"}function PE(i,s,u,p){Ws?Ys?Ys.push(p):Ys=[p]:Ws=p,s=xh(s,"onChange"),0<s.length&&(u=new Rd("onChange","change",null,u,p),i.push({event:u,listeners:s}))}var Vc=null,Gc=null;function yq(i){m2(i,0)}function Md(i){var s=Ic(i);if(pE(s))return i}function DE(i,s){if(i==="change")return s}var kE=!1;if(ii){var bg;if(ii){var xg="oninput"in document;if(!xg){var $E=document.createElement("div");$E.setAttribute("oninput","return;"),xg=typeof $E.oninput=="function"}bg=xg}else bg=!1;kE=bg&&(!document.documentMode||9<document.documentMode)}function zE(){Vc&&(Vc.detachEvent("onpropertychange",LE),Gc=Vc=null)}function LE(i){if(i.propertyName==="value"&&Md(Gc)){var s=[];PE(s,Gc,i,ug(i)),wE(yq,s)}}function bq(i,s,u){i==="focusin"?(zE(),Vc=s,Gc=u,Vc.attachEvent("onpropertychange",LE)):i==="focusout"&&zE()}function xq(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Md(Gc)}function wq(i,s){if(i==="click")return Md(s)}function Sq(i,s){if(i==="input"||i==="change")return Md(s)}function _q(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var xr=typeof Object.is=="function"?Object.is:_q;function Wc(i,s){if(xr(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),p=Object.keys(s);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var b=u[p];if(!pt.call(s,b)||!xr(i[b],s[b]))return!1}return!0}function IE(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function BE(i,s){var u=IE(i);i=0;for(var p;u;){if(u.nodeType===3){if(p=i+u.textContent.length,i<=s&&p>=s)return{node:u,offset:s-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=IE(u)}}function UE(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?UE(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function qE(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Od(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=Od(i.document)}return s}function wg(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var Aq=ii&&"documentMode"in document&&11>=document.documentMode,Ks=null,Sg=null,Yc=null,_g=!1;function HE(i,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;_g||Ks==null||Ks!==Od(p)||(p=Ks,"selectionStart"in p&&wg(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Yc&&Wc(Yc,p)||(Yc=p,p=xh(Sg,"onSelect"),0<p.length&&(s=new Rd("onSelect","select",null,s,u),i.push({event:s,listeners:p}),s.target=Ks)))}function Fo(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Xs={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionrun:Fo("Transition","TransitionRun"),transitionstart:Fo("Transition","TransitionStart"),transitioncancel:Fo("Transition","TransitionCancel"),transitionend:Fo("Transition","TransitionEnd")},Ag={},FE={};ii&&(FE=document.createElement("div").style,"AnimationEvent"in window||(delete Xs.animationend.animation,delete Xs.animationiteration.animation,delete Xs.animationstart.animation),"TransitionEvent"in window||delete Xs.transitionend.transition);function Vo(i){if(Ag[i])return Ag[i];if(!Xs[i])return i;var s=Xs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in FE)return Ag[i]=s[u];return i}var VE=Vo("animationend"),GE=Vo("animationiteration"),WE=Vo("animationstart"),Oq=Vo("transitionrun"),Eq=Vo("transitionstart"),Tq=Vo("transitioncancel"),YE=Vo("transitionend"),ZE=new Map,Og="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(" ");Og.push("scrollEnd");function da(i,s){ZE.set(i,s),qo(s,[i])}var Pd=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Br=[],Qs=0,Eg=0;function Dd(){for(var i=Qs,s=Eg=Qs=0;s<i;){var u=Br[s];Br[s++]=null;var p=Br[s];Br[s++]=null;var b=Br[s];Br[s++]=null;var _=Br[s];if(Br[s++]=null,p!==null&&b!==null){var M=p.pending;M===null?b.next=b:(b.next=M.next,M.next=b),p.pending=b}_!==0&&KE(u,b,_)}}function kd(i,s,u,p){Br[Qs++]=i,Br[Qs++]=s,Br[Qs++]=u,Br[Qs++]=p,Eg|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function Tg(i,s,u,p){return kd(i,s,u,p),$d(i)}function Go(i,s){return kd(i,null,null,s),$d(i)}function KE(i,s,u){i.lanes|=u;var p=i.alternate;p!==null&&(p.lanes|=u);for(var b=!1,_=i.return;_!==null;)_.childLanes|=u,p=_.alternate,p!==null&&(p.childLanes|=u),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(b=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,b&&s!==null&&(b=31-tn(u),i=_.hiddenUpdates,p=i[b],p===null?i[b]=[s]:p.push(s),s.lane=u|536870912),_):null}function $d(i){if(50<vu)throw vu=0,$y=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Js={};function jq(i,s,u,p){this.tag=i,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=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wr(i,s,u,p){return new jq(i,s,u,p)}function jg(i){return i=i.prototype,!(!i||!i.isReactComponent)}function oi(i,s){var u=i.alternate;return u===null?(u=wr(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function XE(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function zd(i,s,u,p,b,_){var M=0;if(p=i,typeof i=="function")jg(i)&&(M=1);else if(typeof i=="string")M=PH(i,u,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case z:return i=wr(31,u,s,b),i.elementType=z,i.lanes=_,i;case S:return Wo(u.children,b,_,s);case w:M=8,b|=24;break;case O:return i=wr(12,u,s,b|2),i.elementType=O,i.lanes=_,i;case T:return i=wr(13,u,s,b),i.elementType=T,i.lanes=_,i;case R:return i=wr(19,u,s,b),i.elementType=R,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case j:M=10;break e;case E:M=9;break e;case C:M=11;break e;case N:M=14;break e;case k:M=16,p=null;break e}M=29,u=Error(r(130,i===null?"null":typeof i,"")),p=null}return s=wr(M,u,s,b),s.elementType=i,s.type=p,s.lanes=_,s}function Wo(i,s,u,p){return i=wr(7,i,p,s),i.lanes=u,i}function Cg(i,s,u){return i=wr(6,i,null,s),i.lanes=u,i}function QE(i){var s=wr(18,null,null,0);return s.stateNode=i,s}function Rg(i,s,u){return s=wr(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var JE=new WeakMap;function Ur(i,s){if(typeof i=="object"&&i!==null){var u=JE.get(i);return u!==void 0?u:(s={value:i,source:s,stack:Tt(s)},JE.set(i,s),s)}return{value:i,source:s,stack:Tt(s)}}var el=[],tl=0,Ld=null,Zc=0,qr=[],Hr=0,Hi=null,Ma=1,Pa="";function si(i,s){el[tl++]=Zc,el[tl++]=Ld,Ld=i,Zc=s}function eT(i,s,u){qr[Hr++]=Ma,qr[Hr++]=Pa,qr[Hr++]=Hi,Hi=i;var p=Ma;i=Pa;var b=32-tn(p)-1;p&=~(1<<b),u+=1;var _=32-tn(s)+b;if(30<_){var M=b-b%5;_=(p&(1<<M)-1).toString(32),p>>=M,b-=M,Ma=1<<32-tn(s)+b|u<<b|p,Pa=_+i}else Ma=1<<_|u<<b|p,Pa=i}function Ng(i){i.return!==null&&(si(i,1),eT(i,1,0))}function Mg(i){for(;i===Ld;)Ld=el[--tl],el[tl]=null,Zc=el[--tl],el[tl]=null;for(;i===Hi;)Hi=qr[--Hr],qr[Hr]=null,Pa=qr[--Hr],qr[Hr]=null,Ma=qr[--Hr],qr[Hr]=null}function tT(i,s){qr[Hr++]=Ma,qr[Hr++]=Pa,qr[Hr++]=Hi,Ma=s.id,Pa=s.overflow,Hi=i}var Ln=null,Vt=null,yt=!1,Fi=null,Fr=!1,Pg=Error(r(519));function Vi(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kc(Ur(s,i)),Pg}function nT(i){var s=i.stateNode,u=i.type,p=i.memoizedProps;switch(s[En]=i,s[Yn]=p,u){case"dialog":ft("cancel",s),ft("close",s);break;case"iframe":case"object":case"embed":ft("load",s);break;case"video":case"audio":for(u=0;u<yu.length;u++)ft(yu[u],s);break;case"source":ft("error",s);break;case"img":case"image":case"link":ft("error",s),ft("load",s);break;case"details":ft("toggle",s);break;case"input":ft("invalid",s),mE(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":ft("invalid",s);break;case"textarea":ft("invalid",s),gE(s,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||p.suppressHydrationWarning===!0||b2(s.textContent,u)?(p.popover!=null&&(ft("beforetoggle",s),ft("toggle",s)),p.onScroll!=null&&ft("scroll",s),p.onScrollEnd!=null&&ft("scrollend",s),p.onClick!=null&&(s.onclick=ai),s=!0):s=!1,s||Vi(i,!0)}function rT(i){for(Ln=i.return;Ln;)switch(Ln.tag){case 5:case 31:case 13:Fr=!1;return;case 27:case 3:Fr=!0;return;default:Ln=Ln.return}}function nl(i){if(i!==Ln)return!1;if(!yt)return rT(i),yt=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||Xy(i.type,i.memoizedProps)),u=!u),u&&Vt&&Vi(i),rT(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Vt=j2(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Vt=j2(i)}else s===27?(s=Vt,io(i.type)?(i=nb,nb=null,Vt=i):Vt=s):Vt=Ln?Gr(i.stateNode.nextSibling):null;return!0}function Yo(){Vt=Ln=null,yt=!1}function Dg(){var i=Fi;return i!==null&&(mr===null?mr=i:mr.push.apply(mr,i),Fi=null),i}function Kc(i){Fi===null?Fi=[i]:Fi.push(i)}var kg=P(null),Zo=null,li=null;function Gi(i,s,u){J(kg,s._currentValue),s._currentValue=u}function ci(i){i._currentValue=kg.current,H(kg)}function $g(i,s,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),i===u)break;i=i.return}}function zg(i,s,u,p){var b=i.child;for(b!==null&&(b.return=i);b!==null;){var _=b.dependencies;if(_!==null){var M=b.child;_=_.firstContext;e:for(;_!==null;){var D=_;_=b;for(var W=0;W<s.length;W++)if(D.context===s[W]){_.lanes|=u,D=_.alternate,D!==null&&(D.lanes|=u),$g(_.return,u,i),p||(M=null);break e}_=D.next}}else if(b.tag===18){if(M=b.return,M===null)throw Error(r(341));M.lanes|=u,_=M.alternate,_!==null&&(_.lanes|=u),$g(M,u,i),M=null}else M=b.child;if(M!==null)M.return=b;else for(M=b;M!==null;){if(M===i){M=null;break}if(b=M.sibling,b!==null){b.return=M.return,M=b;break}M=M.return}b=M}}function rl(i,s,u,p){i=null;for(var b=s,_=!1;b!==null;){if(!_){if((b.flags&524288)!==0)_=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var M=b.alternate;if(M===null)throw Error(r(387));if(M=M.memoizedProps,M!==null){var D=b.type;xr(b.pendingProps.value,M.value)||(i!==null?i.push(D):i=[D])}}else if(b===he.current){if(M=b.alternate,M===null)throw Error(r(387));M.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(i!==null?i.push(_u):i=[_u])}b=b.return}i!==null&&zg(s,i,u,p),s.flags|=262144}function Id(i){for(i=i.firstContext;i!==null;){if(!xr(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ko(i){Zo=i,li=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function In(i){return aT(Zo,i)}function Bd(i,s){return Zo===null&&Ko(i),aT(i,s)}function aT(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},li===null){if(i===null)throw Error(r(308));li=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else li=li.next=s;return u}var Cq=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,p){i.push(p)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},Rq=e.unstable_scheduleCallback,Nq=e.unstable_NormalPriority,gn={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lg(){return{controller:new Cq,data:new Map,refCount:0}}function Xc(i){i.refCount--,i.refCount===0&&Rq(Nq,function(){i.controller.abort()})}var Qc=null,Ig=0,al=0,il=null;function Mq(i,s){if(Qc===null){var u=Qc=[];Ig=0,al=qy(),il={status:"pending",value:void 0,then:function(p){u.push(p)}}}return Ig++,s.then(iT,iT),s}function iT(){if(--Ig===0&&Qc!==null){il!==null&&(il.status="fulfilled");var i=Qc;Qc=null,al=0,il=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function Pq(i,s){var u=[],p={status:"pending",value:null,reason:null,then:function(b){u.push(b)}};return i.then(function(){p.status="fulfilled",p.value=s;for(var b=0;b<u.length;b++)(0,u[b])(s)},function(b){for(p.status="rejected",p.reason=b,b=0;b<u.length;b++)(0,u[b])(void 0)}),p}var oT=$.S;$.S=function(i,s){Hj=U(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&Mq(i,s),oT!==null&&oT(i,s)};var Xo=P(null);function Bg(){var i=Xo.current;return i!==null?i:Ut.pooledCache}function Ud(i,s){s===null?J(Xo,Xo.current):J(Xo,s.pool)}function sT(){var i=Bg();return i===null?null:{parent:gn._currentValue,pool:i}}var ol=Error(r(460)),Ug=Error(r(474)),qd=Error(r(542)),Hd={then:function(){}};function lT(i){return i=i.status,i==="fulfilled"||i==="rejected"}function cT(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(ai,ai),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,fT(i),i;default:if(typeof s.status=="string")s.then(ai,ai);else{if(i=Ut,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(p){if(s.status==="pending"){var b=s;b.status="fulfilled",b.value=p}},function(p){if(s.status==="pending"){var b=s;b.status="rejected",b.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,fT(i),i}throw Jo=s,ol}}function Qo(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Jo=u,ol):u}}var Jo=null;function uT(){if(Jo===null)throw Error(r(459));var i=Jo;return Jo=null,i}function fT(i){if(i===ol||i===qd)throw Error(r(483))}var sl=null,Jc=0;function Fd(i){var s=Jc;return Jc+=1,sl===null&&(sl=[]),cT(sl,i,s)}function eu(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Vd(i,s){throw s.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function dT(i){function s(te,Q){if(i){var ae=te.deletions;ae===null?(te.deletions=[Q],te.flags|=16):ae.push(Q)}}function u(te,Q){if(!i)return null;for(;Q!==null;)s(te,Q),Q=Q.sibling;return null}function p(te){for(var Q=new Map;te!==null;)te.key!==null?Q.set(te.key,te):Q.set(te.index,te),te=te.sibling;return Q}function b(te,Q){return te=oi(te,Q),te.index=0,te.sibling=null,te}function _(te,Q,ae){return te.index=ae,i?(ae=te.alternate,ae!==null?(ae=ae.index,ae<Q?(te.flags|=67108866,Q):ae):(te.flags|=67108866,Q)):(te.flags|=1048576,Q)}function M(te){return i&&te.alternate===null&&(te.flags|=67108866),te}function D(te,Q,ae,ge){return Q===null||Q.tag!==6?(Q=Cg(ae,te.mode,ge),Q.return=te,Q):(Q=b(Q,ae),Q.return=te,Q)}function W(te,Q,ae,ge){var Ve=ae.type;return Ve===S?pe(te,Q,ae.props.children,ge,ae.key):Q!==null&&(Q.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===k&&Qo(Ve)===Q.type)?(Q=b(Q,ae.props),eu(Q,ae),Q.return=te,Q):(Q=zd(ae.type,ae.key,ae.props,null,te.mode,ge),eu(Q,ae),Q.return=te,Q)}function oe(te,Q,ae,ge){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ae.containerInfo||Q.stateNode.implementation!==ae.implementation?(Q=Rg(ae,te.mode,ge),Q.return=te,Q):(Q=b(Q,ae.children||[]),Q.return=te,Q)}function pe(te,Q,ae,ge,Ve){return Q===null||Q.tag!==7?(Q=Wo(ae,te.mode,ge,Ve),Q.return=te,Q):(Q=b(Q,ae),Q.return=te,Q)}function be(te,Q,ae){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Q=Cg(""+Q,te.mode,ae),Q.return=te,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case x:return ae=zd(Q.type,Q.key,Q.props,null,te.mode,ae),eu(ae,Q),ae.return=te,ae;case A:return Q=Rg(Q,te.mode,ae),Q.return=te,Q;case k:return Q=Qo(Q),be(te,Q,ae)}if(Y(Q)||I(Q))return Q=Wo(Q,te.mode,ae,null),Q.return=te,Q;if(typeof Q.then=="function")return be(te,Fd(Q),ae);if(Q.$$typeof===j)return be(te,Bd(te,Q),ae);Vd(te,Q)}return null}function le(te,Q,ae,ge){var Ve=Q!==null?Q.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Ve!==null?null:D(te,Q,""+ae,ge);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:return ae.key===Ve?W(te,Q,ae,ge):null;case A:return ae.key===Ve?oe(te,Q,ae,ge):null;case k:return ae=Qo(ae),le(te,Q,ae,ge)}if(Y(ae)||I(ae))return Ve!==null?null:pe(te,Q,ae,ge,null);if(typeof ae.then=="function")return le(te,Q,Fd(ae),ge);if(ae.$$typeof===j)return le(te,Q,Bd(te,ae),ge);Vd(te,ae)}return null}function de(te,Q,ae,ge,Ve){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return te=te.get(ae)||null,D(Q,te,""+ge,Ve);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case x:return te=te.get(ge.key===null?ae:ge.key)||null,W(Q,te,ge,Ve);case A:return te=te.get(ge.key===null?ae:ge.key)||null,oe(Q,te,ge,Ve);case k:return ge=Qo(ge),de(te,Q,ae,ge,Ve)}if(Y(ge)||I(ge))return te=te.get(ae)||null,pe(Q,te,ge,Ve,null);if(typeof ge.then=="function")return de(te,Q,ae,Fd(ge),Ve);if(ge.$$typeof===j)return de(te,Q,ae,Bd(Q,ge),Ve);Vd(Q,ge)}return null}function Ie(te,Q,ae,ge){for(var Ve=null,wt=null,Ue=Q,at=Q=0,vt=null;Ue!==null&&at<ae.length;at++){Ue.index>at?(vt=Ue,Ue=null):vt=Ue.sibling;var St=le(te,Ue,ae[at],ge);if(St===null){Ue===null&&(Ue=vt);break}i&&Ue&&St.alternate===null&&s(te,Ue),Q=_(St,Q,at),wt===null?Ve=St:wt.sibling=St,wt=St,Ue=vt}if(at===ae.length)return u(te,Ue),yt&&si(te,at),Ve;if(Ue===null){for(;at<ae.length;at++)Ue=be(te,ae[at],ge),Ue!==null&&(Q=_(Ue,Q,at),wt===null?Ve=Ue:wt.sibling=Ue,wt=Ue);return yt&&si(te,at),Ve}for(Ue=p(Ue);at<ae.length;at++)vt=de(Ue,te,at,ae[at],ge),vt!==null&&(i&&vt.alternate!==null&&Ue.delete(vt.key===null?at:vt.key),Q=_(vt,Q,at),wt===null?Ve=vt:wt.sibling=vt,wt=vt);return i&&Ue.forEach(function(uo){return s(te,uo)}),yt&&si(te,at),Ve}function We(te,Q,ae,ge){if(ae==null)throw Error(r(151));for(var Ve=null,wt=null,Ue=Q,at=Q=0,vt=null,St=ae.next();Ue!==null&&!St.done;at++,St=ae.next()){Ue.index>at?(vt=Ue,Ue=null):vt=Ue.sibling;var uo=le(te,Ue,St.value,ge);if(uo===null){Ue===null&&(Ue=vt);break}i&&Ue&&uo.alternate===null&&s(te,Ue),Q=_(uo,Q,at),wt===null?Ve=uo:wt.sibling=uo,wt=uo,Ue=vt}if(St.done)return u(te,Ue),yt&&si(te,at),Ve;if(Ue===null){for(;!St.done;at++,St=ae.next())St=be(te,St.value,ge),St!==null&&(Q=_(St,Q,at),wt===null?Ve=St:wt.sibling=St,wt=St);return yt&&si(te,at),Ve}for(Ue=p(Ue);!St.done;at++,St=ae.next())St=de(Ue,te,at,St.value,ge),St!==null&&(i&&St.alternate!==null&&Ue.delete(St.key===null?at:St.key),Q=_(St,Q,at),wt===null?Ve=St:wt.sibling=St,wt=St);return i&&Ue.forEach(function(FH){return s(te,FH)}),yt&&si(te,at),Ve}function zt(te,Q,ae,ge){if(typeof ae=="object"&&ae!==null&&ae.type===S&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:e:{for(var Ve=ae.key;Q!==null;){if(Q.key===Ve){if(Ve=ae.type,Ve===S){if(Q.tag===7){u(te,Q.sibling),ge=b(Q,ae.props.children),ge.return=te,te=ge;break e}}else if(Q.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===k&&Qo(Ve)===Q.type){u(te,Q.sibling),ge=b(Q,ae.props),eu(ge,ae),ge.return=te,te=ge;break e}u(te,Q);break}else s(te,Q);Q=Q.sibling}ae.type===S?(ge=Wo(ae.props.children,te.mode,ge,ae.key),ge.return=te,te=ge):(ge=zd(ae.type,ae.key,ae.props,null,te.mode,ge),eu(ge,ae),ge.return=te,te=ge)}return M(te);case A:e:{for(Ve=ae.key;Q!==null;){if(Q.key===Ve)if(Q.tag===4&&Q.stateNode.containerInfo===ae.containerInfo&&Q.stateNode.implementation===ae.implementation){u(te,Q.sibling),ge=b(Q,ae.children||[]),ge.return=te,te=ge;break e}else{u(te,Q);break}else s(te,Q);Q=Q.sibling}ge=Rg(ae,te.mode,ge),ge.return=te,te=ge}return M(te);case k:return ae=Qo(ae),zt(te,Q,ae,ge)}if(Y(ae))return Ie(te,Q,ae,ge);if(I(ae)){if(Ve=I(ae),typeof Ve!="function")throw Error(r(150));return ae=Ve.call(ae),We(te,Q,ae,ge)}if(typeof ae.then=="function")return zt(te,Q,Fd(ae),ge);if(ae.$$typeof===j)return zt(te,Q,Bd(te,ae),ge);Vd(te,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,Q!==null&&Q.tag===6?(u(te,Q.sibling),ge=b(Q,ae),ge.return=te,te=ge):(u(te,Q),ge=Cg(ae,te.mode,ge),ge.return=te,te=ge),M(te)):u(te,Q)}return function(te,Q,ae,ge){try{Jc=0;var Ve=zt(te,Q,ae,ge);return sl=null,Ve}catch(Ue){if(Ue===ol||Ue===qd)throw Ue;var wt=wr(29,Ue,null,te.mode);return wt.lanes=ge,wt.return=te,wt}finally{}}}var es=dT(!0),hT=dT(!1),Wi=!1;function qg(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hg(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Yi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Zi(i,s,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(Et&2)!==0){var b=p.pending;return b===null?s.next=s:(s.next=b.next,b.next=s),p.pending=s,s=$d(i),KE(i,null,u),s}return kd(i,p,s,u),$d(i)}function tu(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,Pe(i,u)}}function Fg(i,s){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var b=null,_=null;if(u=u.firstBaseUpdate,u!==null){do{var M={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};_===null?b=_=M:_=_.next=M,u=u.next}while(u!==null);_===null?b=_=s:_=_.next=s}else b=_=s;u={baseState:p.baseState,firstBaseUpdate:b,lastBaseUpdate:_,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Vg=!1;function nu(){if(Vg){var i=il;if(i!==null)throw i}}function ru(i,s,u,p){Vg=!1;var b=i.updateQueue;Wi=!1;var _=b.firstBaseUpdate,M=b.lastBaseUpdate,D=b.shared.pending;if(D!==null){b.shared.pending=null;var W=D,oe=W.next;W.next=null,M===null?_=oe:M.next=oe,M=W;var pe=i.alternate;pe!==null&&(pe=pe.updateQueue,D=pe.lastBaseUpdate,D!==M&&(D===null?pe.firstBaseUpdate=oe:D.next=oe,pe.lastBaseUpdate=W))}if(_!==null){var be=b.baseState;M=0,pe=oe=W=null,D=_;do{var le=D.lane&-536870913,de=le!==D.lane;if(de?(mt&le)===le:(p&le)===le){le!==0&&le===al&&(Vg=!0),pe!==null&&(pe=pe.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var Ie=i,We=D;le=s;var zt=u;switch(We.tag){case 1:if(Ie=We.payload,typeof Ie=="function"){be=Ie.call(zt,be,le);break e}be=Ie;break e;case 3:Ie.flags=Ie.flags&-65537|128;case 0:if(Ie=We.payload,le=typeof Ie=="function"?Ie.call(zt,be,le):Ie,le==null)break e;be=h({},be,le);break e;case 2:Wi=!0}}le=D.callback,le!==null&&(i.flags|=64,de&&(i.flags|=8192),de=b.callbacks,de===null?b.callbacks=[le]:de.push(le))}else de={lane:le,tag:D.tag,payload:D.payload,callback:D.callback,next:null},pe===null?(oe=pe=de,W=be):pe=pe.next=de,M|=le;if(D=D.next,D===null){if(D=b.shared.pending,D===null)break;de=D,D=de.next,de.next=null,b.lastBaseUpdate=de,b.shared.pending=null}}while(!0);pe===null&&(W=be),b.baseState=W,b.firstBaseUpdate=oe,b.lastBaseUpdate=pe,_===null&&(b.shared.lanes=0),eo|=M,i.lanes=M,i.memoizedState=be}}function pT(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function mT(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)pT(u[i],s)}var ll=P(null),Gd=P(0);function vT(i,s){i=yi,J(Gd,i),J(ll,s),yi=i|s.baseLanes}function Gg(){J(Gd,yi),J(ll,ll.current)}function Wg(){yi=Gd.current,H(ll),H(Gd)}var Sr=P(null),Vr=null;function Ki(i){var s=i.alternate;J(fn,fn.current&1),J(Sr,i),Vr===null&&(s===null||ll.current!==null||s.memoizedState!==null)&&(Vr=i)}function Yg(i){J(fn,fn.current),J(Sr,i),Vr===null&&(Vr=i)}function gT(i){i.tag===22?(J(fn,fn.current),J(Sr,i),Vr===null&&(Vr=i)):Xi()}function Xi(){J(fn,fn.current),J(Sr,Sr.current)}function _r(i){H(Sr),Vr===i&&(Vr=null),H(fn)}var fn=P(0);function Wd(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||eb(u)||tb(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ui=0,nt=null,kt=null,yn=null,Yd=!1,cl=!1,ts=!1,Zd=0,au=0,ul=null,Dq=0;function sn(){throw Error(r(321))}function Zg(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!xr(i[u],s[u]))return!1;return!0}function Kg(i,s,u,p,b,_){return ui=_,nt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,$.H=i===null||i.memoizedState===null?ej:fy,ts=!1,_=u(p,b),ts=!1,cl&&(_=bT(s,u,p,b)),yT(i),_}function yT(i){$.H=su;var s=kt!==null&&kt.next!==null;if(ui=0,yn=kt=nt=null,Yd=!1,au=0,ul=null,s)throw Error(r(300));i===null||bn||(i=i.dependencies,i!==null&&Id(i)&&(bn=!0))}function bT(i,s,u,p){nt=i;var b=0;do{if(cl&&(ul=null),au=0,cl=!1,25<=b)throw Error(r(301));if(b+=1,yn=kt=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}$.H=tj,_=s(u,p)}while(cl);return _}function kq(){var i=$.H,s=i.useState()[0];return s=typeof s.then=="function"?iu(s):s,i=i.useState()[0],(kt!==null?kt.memoizedState:null)!==i&&(nt.flags|=1024),s}function Xg(){var i=Zd!==0;return Zd=0,i}function Qg(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function Jg(i){if(Yd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Yd=!1}ui=0,yn=kt=nt=null,cl=!1,au=Zd=0,ul=null}function ir(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?nt.memoizedState=yn=i:yn=yn.next=i,yn}function dn(){if(kt===null){var i=nt.alternate;i=i!==null?i.memoizedState:null}else i=kt.next;var s=yn===null?nt.memoizedState:yn.next;if(s!==null)yn=s,kt=i;else{if(i===null)throw nt.alternate===null?Error(r(467)):Error(r(310));kt=i,i={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},yn===null?nt.memoizedState=yn=i:yn=yn.next=i}return yn}function Kd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function iu(i){var s=au;return au+=1,ul===null&&(ul=[]),i=cT(ul,i,s),s=nt,(yn===null?s.memoizedState:yn.next)===null&&(s=s.alternate,$.H=s===null||s.memoizedState===null?ej:fy),i}function Xd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return iu(i);if(i.$$typeof===j)return In(i)}throw Error(r(438,String(i)))}function ey(i){var s=null,u=nt.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var p=nt.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(b){return b.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Kd(),nt.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),p=0;p<i;p++)u[p]=V;return s.index++,u}function fi(i,s){return typeof s=="function"?s(i):s}function Qd(i){var s=dn();return ty(s,kt,i)}function ty(i,s,u){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var b=i.baseQueue,_=p.pending;if(_!==null){if(b!==null){var M=b.next;b.next=_.next,_.next=M}s.baseQueue=b=_,p.pending=null}if(_=i.baseState,b===null)i.memoizedState=_;else{s=b.next;var D=M=null,W=null,oe=s,pe=!1;do{var be=oe.lane&-536870913;if(be!==oe.lane?(mt&be)===be:(ui&be)===be){var le=oe.revertLane;if(le===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),be===al&&(pe=!0);else if((ui&le)===le){oe=oe.next,le===al&&(pe=!0);continue}else be={lane:0,revertLane:oe.revertLane,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},W===null?(D=W=be,M=_):W=W.next=be,nt.lanes|=le,eo|=le;be=oe.action,ts&&u(_,be),_=oe.hasEagerState?oe.eagerState:u(_,be)}else le={lane:be,revertLane:oe.revertLane,gesture:oe.gesture,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},W===null?(D=W=le,M=_):W=W.next=le,nt.lanes|=be,eo|=be;oe=oe.next}while(oe!==null&&oe!==s);if(W===null?M=_:W.next=D,!xr(_,i.memoizedState)&&(bn=!0,pe&&(u=il,u!==null)))throw u;i.memoizedState=_,i.baseState=M,i.baseQueue=W,p.lastRenderedState=_}return b===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function ny(i){var s=dn(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var p=u.dispatch,b=u.pending,_=s.memoizedState;if(b!==null){u.pending=null;var M=b=b.next;do _=i(_,M.action),M=M.next;while(M!==b);xr(_,s.memoizedState)||(bn=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),u.lastRenderedState=_}return[_,p]}function xT(i,s,u){var p=nt,b=dn(),_=yt;if(_){if(u===void 0)throw Error(r(407));u=u()}else u=s();var M=!xr((kt||b).memoizedState,u);if(M&&(b.memoizedState=u,bn=!0),b=b.queue,iy(_T.bind(null,p,b,i),[i]),b.getSnapshot!==s||M||yn!==null&&yn.memoizedState.tag&1){if(p.flags|=2048,fl(9,{destroy:void 0},ST.bind(null,p,b,u,s),null),Ut===null)throw Error(r(349));_||(ui&127)!==0||wT(p,s,u)}return u}function wT(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=nt.updateQueue,s===null?(s=Kd(),nt.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function ST(i,s,u,p){s.value=u,s.getSnapshot=p,AT(s)&&OT(i)}function _T(i,s,u){return u(function(){AT(s)&&OT(i)})}function AT(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!xr(i,u)}catch{return!0}}function OT(i){var s=Go(i,2);s!==null&&vr(s,i,2)}function ry(i){var s=ir();if(typeof i=="function"){var u=i;if(i=u(),ts){jt(!0);try{u()}finally{jt(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:i},s}function ET(i,s,u,p){return i.baseState=u,ty(i,kt,typeof p=="function"?p:fi)}function $q(i,s,u,p,b){if(th(i))throw Error(r(485));if(i=s.action,i!==null){var _={payload:b,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){_.listeners.push(M)}};$.T!==null?u(!0):_.isTransition=!1,p(_),u=s.pending,u===null?(_.next=s.pending=_,TT(s,_)):(_.next=u.next,s.pending=u.next=_)}}function TT(i,s){var u=s.action,p=s.payload,b=i.state;if(s.isTransition){var _=$.T,M={};$.T=M;try{var D=u(b,p),W=$.S;W!==null&&W(M,D),jT(i,s,D)}catch(oe){ay(i,s,oe)}finally{_!==null&&M.types!==null&&(_.types=M.types),$.T=_}}else try{_=u(b,p),jT(i,s,_)}catch(oe){ay(i,s,oe)}}function jT(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){CT(i,s,p)},function(p){return ay(i,s,p)}):CT(i,s,u)}function CT(i,s,u){s.status="fulfilled",s.value=u,RT(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,TT(i,u)))}function ay(i,s,u){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=u,RT(s),s=s.next;while(s!==p)}i.action=null}function RT(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function NT(i,s){return s}function MT(i,s){if(yt){var u=Ut.formState;if(u!==null){e:{var p=nt;if(yt){if(Vt){t:{for(var b=Vt,_=Fr;b.nodeType!==8;){if(!_){b=null;break t}if(b=Gr(b.nextSibling),b===null){b=null;break t}}_=b.data,b=_==="F!"||_==="F"?b:null}if(b){Vt=Gr(b.nextSibling),p=b.data==="F!";break e}}Vi(p)}p=!1}p&&(s=u[0])}}return u=ir(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:NT,lastRenderedState:s},u.queue=p,u=XT.bind(null,nt,p),p.dispatch=u,p=ry(!1),_=uy.bind(null,nt,!1,p.queue),p=ir(),b={state:s,dispatch:null,action:i,pending:null},p.queue=b,u=$q.bind(null,nt,b,_,u),b.dispatch=u,p.memoizedState=i,[s,u,!1]}function PT(i){var s=dn();return DT(s,kt,i)}function DT(i,s,u){if(s=ty(i,s,NT)[0],i=Qd(fi)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=iu(s)}catch(M){throw M===ol?qd:M}else p=s;s=dn();var b=s.queue,_=b.dispatch;return u!==s.memoizedState&&(nt.flags|=2048,fl(9,{destroy:void 0},zq.bind(null,b,u),null)),[p,_,i]}function zq(i,s){i.action=s}function kT(i){var s=dn(),u=kt;if(u!==null)return DT(s,u,i);dn(),s=s.memoizedState,u=dn();var p=u.queue.dispatch;return u.memoizedState=i,[s,p,!1]}function fl(i,s,u,p){return i={tag:i,create:u,deps:p,inst:s,next:null},s=nt.updateQueue,s===null&&(s=Kd(),nt.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(p=u.next,u.next=i,i.next=p,s.lastEffect=i),i}function $T(){return dn().memoizedState}function Jd(i,s,u,p){var b=ir();nt.flags|=i,b.memoizedState=fl(1|s,{destroy:void 0},u,p===void 0?null:p)}function eh(i,s,u,p){var b=dn();p=p===void 0?null:p;var _=b.memoizedState.inst;kt!==null&&p!==null&&Zg(p,kt.memoizedState.deps)?b.memoizedState=fl(s,_,u,p):(nt.flags|=i,b.memoizedState=fl(1|s,_,u,p))}function zT(i,s){Jd(8390656,8,i,s)}function iy(i,s){eh(2048,8,i,s)}function Lq(i){nt.flags|=4;var s=nt.updateQueue;if(s===null)s=Kd(),nt.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function LT(i){var s=dn().memoizedState;return Lq({ref:s,nextImpl:i}),function(){if((Et&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function IT(i,s){return eh(4,2,i,s)}function BT(i,s){return eh(4,4,i,s)}function UT(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function qT(i,s,u){u=u!=null?u.concat([i]):null,eh(4,4,UT.bind(null,s,i),u)}function oy(){}function HT(i,s){var u=dn();s=s===void 0?null:s;var p=u.memoizedState;return s!==null&&Zg(s,p[1])?p[0]:(u.memoizedState=[i,s],i)}function FT(i,s){var u=dn();s=s===void 0?null:s;var p=u.memoizedState;if(s!==null&&Zg(s,p[1]))return p[0];if(p=i(),ts){jt(!0);try{i()}finally{jt(!1)}}return u.memoizedState=[p,s],p}function sy(i,s,u){return u===void 0||(ui&1073741824)!==0&&(mt&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=Vj(),nt.lanes|=i,eo|=i,u)}function VT(i,s,u,p){return xr(u,s)?u:ll.current!==null?(i=sy(i,u,p),xr(i,s)||(bn=!0),i):(ui&42)===0||(ui&1073741824)!==0&&(mt&261930)===0?(bn=!0,i.memoizedState=u):(i=Vj(),nt.lanes|=i,eo|=i,s)}function GT(i,s,u,p,b){var _=q.p;q.p=_!==0&&8>_?_:8;var M=$.T,D={};$.T=D,uy(i,!1,s,u);try{var W=b(),oe=$.S;if(oe!==null&&oe(D,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var pe=Pq(W,p);ou(i,s,pe,Er(i))}else ou(i,s,p,Er(i))}catch(be){ou(i,s,{then:function(){},status:"rejected",reason:be},Er())}finally{q.p=_,M!==null&&D.types!==null&&(M.types=D.types),$.T=M}}function Iq(){}function ly(i,s,u,p){if(i.tag!==5)throw Error(r(476));var b=WT(i).queue;GT(i,b,s,K,u===null?Iq:function(){return YT(i),u(p)})}function WT(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:K},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function YT(i){var s=WT(i);s.next===null&&(s=i.alternate.memoizedState),ou(i,s.next.queue,{},Er())}function cy(){return In(_u)}function ZT(){return dn().memoizedState}function KT(){return dn().memoizedState}function Bq(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=Er();i=Yi(u);var p=Zi(s,i,u);p!==null&&(vr(p,s,u),tu(p,s,u)),s={cache:Lg()},i.payload=s;return}s=s.return}}function Uq(i,s,u){var p=Er();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},th(i)?QT(s,u):(u=Tg(i,s,u,p),u!==null&&(vr(u,i,p),JT(u,s,p)))}function XT(i,s,u){var p=Er();ou(i,s,u,p)}function ou(i,s,u,p){var b={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(th(i))QT(s,b);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var M=s.lastRenderedState,D=_(M,u);if(b.hasEagerState=!0,b.eagerState=D,xr(D,M))return kd(i,s,b,0),Ut===null&&Dd(),!1}catch{}finally{}if(u=Tg(i,s,b,p),u!==null)return vr(u,i,p),JT(u,s,p),!0}return!1}function uy(i,s,u,p){if(p={lane:2,revertLane:qy(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},th(i)){if(s)throw Error(r(479))}else s=Tg(i,u,p,2),s!==null&&vr(s,i,2)}function th(i){var s=i.alternate;return i===nt||s!==null&&s===nt}function QT(i,s){cl=Yd=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function JT(i,s,u){if((u&4194048)!==0){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,Pe(i,u)}}var su={readContext:In,use:Xd,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useLayoutEffect:sn,useInsertionEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useSyncExternalStore:sn,useId:sn,useHostTransitionStatus:sn,useFormState:sn,useActionState:sn,useOptimistic:sn,useMemoCache:sn,useCacheRefresh:sn};su.useEffectEvent=sn;var ej={readContext:In,use:Xd,useCallback:function(i,s){return ir().memoizedState=[i,s===void 0?null:s],i},useContext:In,useEffect:zT,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,Jd(4194308,4,UT.bind(null,s,i),u)},useLayoutEffect:function(i,s){return Jd(4194308,4,i,s)},useInsertionEffect:function(i,s){Jd(4,2,i,s)},useMemo:function(i,s){var u=ir();s=s===void 0?null:s;var p=i();if(ts){jt(!0);try{i()}finally{jt(!1)}}return u.memoizedState=[p,s],p},useReducer:function(i,s,u){var p=ir();if(u!==void 0){var b=u(s);if(ts){jt(!0);try{u(s)}finally{jt(!1)}}}else b=s;return p.memoizedState=p.baseState=b,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:b},p.queue=i,i=i.dispatch=Uq.bind(null,nt,i),[p.memoizedState,i]},useRef:function(i){var s=ir();return i={current:i},s.memoizedState=i},useState:function(i){i=ry(i);var s=i.queue,u=XT.bind(null,nt,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:oy,useDeferredValue:function(i,s){var u=ir();return sy(u,i,s)},useTransition:function(){var i=ry(!1);return i=GT.bind(null,nt,i.queue,!0,!1),ir().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var p=nt,b=ir();if(yt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),Ut===null)throw Error(r(349));(mt&127)!==0||wT(p,s,u)}b.memoizedState=u;var _={value:u,getSnapshot:s};return b.queue=_,zT(_T.bind(null,p,_,i),[i]),p.flags|=2048,fl(9,{destroy:void 0},ST.bind(null,p,_,u,s),null),u},useId:function(){var i=ir(),s=Ut.identifierPrefix;if(yt){var u=Pa,p=Ma;u=(p&~(1<<32-tn(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=Zd++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=Dq++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:cy,useFormState:MT,useActionState:MT,useOptimistic:function(i){var s=ir();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=uy.bind(null,nt,!0,u),u.dispatch=s,[i,s]},useMemoCache:ey,useCacheRefresh:function(){return ir().memoizedState=Bq.bind(null,nt)},useEffectEvent:function(i){var s=ir(),u={impl:i};return s.memoizedState=u,function(){if((Et&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},fy={readContext:In,use:Xd,useCallback:HT,useContext:In,useEffect:iy,useImperativeHandle:qT,useInsertionEffect:IT,useLayoutEffect:BT,useMemo:FT,useReducer:Qd,useRef:$T,useState:function(){return Qd(fi)},useDebugValue:oy,useDeferredValue:function(i,s){var u=dn();return VT(u,kt.memoizedState,i,s)},useTransition:function(){var i=Qd(fi)[0],s=dn().memoizedState;return[typeof i=="boolean"?i:iu(i),s]},useSyncExternalStore:xT,useId:ZT,useHostTransitionStatus:cy,useFormState:PT,useActionState:PT,useOptimistic:function(i,s){var u=dn();return ET(u,kt,i,s)},useMemoCache:ey,useCacheRefresh:KT};fy.useEffectEvent=LT;var tj={readContext:In,use:Xd,useCallback:HT,useContext:In,useEffect:iy,useImperativeHandle:qT,useInsertionEffect:IT,useLayoutEffect:BT,useMemo:FT,useReducer:ny,useRef:$T,useState:function(){return ny(fi)},useDebugValue:oy,useDeferredValue:function(i,s){var u=dn();return kt===null?sy(u,i,s):VT(u,kt.memoizedState,i,s)},useTransition:function(){var i=ny(fi)[0],s=dn().memoizedState;return[typeof i=="boolean"?i:iu(i),s]},useSyncExternalStore:xT,useId:ZT,useHostTransitionStatus:cy,useFormState:kT,useActionState:kT,useOptimistic:function(i,s){var u=dn();return kt!==null?ET(u,kt,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:ey,useCacheRefresh:KT};tj.useEffectEvent=LT;function dy(i,s,u,p){s=i.memoizedState,u=u(p,s),u=u==null?s:h({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var hy={enqueueSetState:function(i,s,u){i=i._reactInternals;var p=Er(),b=Yi(p);b.payload=s,u!=null&&(b.callback=u),s=Zi(i,b,p),s!==null&&(vr(s,i,p),tu(s,i,p))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var p=Er(),b=Yi(p);b.tag=1,b.payload=s,u!=null&&(b.callback=u),s=Zi(i,b,p),s!==null&&(vr(s,i,p),tu(s,i,p))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=Er(),p=Yi(u);p.tag=2,s!=null&&(p.callback=s),s=Zi(i,p,u),s!==null&&(vr(s,i,u),tu(s,i,u))}};function nj(i,s,u,p,b,_,M){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,_,M):s.prototype&&s.prototype.isPureReactComponent?!Wc(u,p)||!Wc(b,_):!0}function rj(i,s,u,p){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,p),s.state!==i&&hy.enqueueReplaceState(s,s.state,null)}function ns(i,s){var u=s;if("ref"in s){u={};for(var p in s)p!=="ref"&&(u[p]=s[p])}if(i=i.defaultProps){u===s&&(u=h({},u));for(var b in i)u[b]===void 0&&(u[b]=i[b])}return u}function aj(i){Pd(i)}function ij(i){console.error(i)}function oj(i){Pd(i)}function nh(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function sj(i,s,u){try{var p=i.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function py(i,s,u){return u=Yi(u),u.tag=3,u.payload={element:null},u.callback=function(){nh(i,s)},u}function lj(i){return i=Yi(i),i.tag=3,i}function cj(i,s,u,p){var b=u.type.getDerivedStateFromError;if(typeof b=="function"){var _=p.value;i.payload=function(){return b(_)},i.callback=function(){sj(s,u,p)}}var M=u.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(i.callback=function(){sj(s,u,p),typeof b!="function"&&(to===null?to=new Set([this]):to.add(this));var D=p.stack;this.componentDidCatch(p.value,{componentStack:D!==null?D:""})})}function qq(i,s,u,p,b){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=u.alternate,s!==null&&rl(s,u,b,!0),u=Sr.current,u!==null){switch(u.tag){case 31:case 13:return Vr===null?ph():u.alternate===null&&ln===0&&(ln=3),u.flags&=-257,u.flags|=65536,u.lanes=b,p===Hd?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([p]):s.add(p),Iy(i,p,b)),!1;case 22:return u.flags|=65536,p===Hd?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([p]):u.add(p)),Iy(i,p,b)),!1}throw Error(r(435,u.tag))}return Iy(i,p,b),ph(),!1}if(yt)return s=Sr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=b,p!==Pg&&(i=Error(r(422),{cause:p}),Kc(Ur(i,u)))):(p!==Pg&&(s=Error(r(423),{cause:p}),Kc(Ur(s,u))),i=i.current.alternate,i.flags|=65536,b&=-b,i.lanes|=b,p=Ur(p,u),b=py(i.stateNode,p,b),Fg(i,b),ln!==4&&(ln=2)),!1;var _=Error(r(520),{cause:p});if(_=Ur(_,u),mu===null?mu=[_]:mu.push(_),ln!==4&&(ln=2),s===null)return!0;p=Ur(p,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=b&-b,u.lanes|=i,i=py(u.stateNode,p,i),Fg(u,i),!1;case 1:if(s=u.type,_=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(to===null||!to.has(_))))return u.flags|=65536,b&=-b,u.lanes|=b,b=lj(b),cj(b,i,u,p),Fg(u,b),!1}u=u.return}while(u!==null);return!1}var my=Error(r(461)),bn=!1;function Bn(i,s,u,p){s.child=i===null?hT(s,null,u,p):es(s,i.child,u,p)}function uj(i,s,u,p,b){u=u.render;var _=s.ref;if("ref"in p){var M={};for(var D in p)D!=="ref"&&(M[D]=p[D])}else M=p;return Ko(s),p=Kg(i,s,u,M,_,b),D=Xg(),i!==null&&!bn?(Qg(i,s,b),di(i,s,b)):(yt&&D&&Ng(s),s.flags|=1,Bn(i,s,p,b),s.child)}function fj(i,s,u,p,b){if(i===null){var _=u.type;return typeof _=="function"&&!jg(_)&&_.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=_,dj(i,s,_,p,b)):(i=zd(u.type,null,p,s,s.mode,b),i.ref=s.ref,i.return=s,s.child=i)}if(_=i.child,!_y(i,b)){var M=_.memoizedProps;if(u=u.compare,u=u!==null?u:Wc,u(M,p)&&i.ref===s.ref)return di(i,s,b)}return s.flags|=1,i=oi(_,p),i.ref=s.ref,i.return=s,s.child=i}function dj(i,s,u,p,b){if(i!==null){var _=i.memoizedProps;if(Wc(_,p)&&i.ref===s.ref)if(bn=!1,s.pendingProps=p=_,_y(i,b))(i.flags&131072)!==0&&(bn=!0);else return s.lanes=i.lanes,di(i,s,b)}return vy(i,s,u,p,b)}function hj(i,s,u,p){var b=p.children,_=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(_=_!==null?_.baseLanes|u:u,i!==null){for(p=s.child=i.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;p=b&~_}else p=0,s.child=null;return pj(i,s,_,u,p)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Ud(s,_!==null?_.cachePool:null),_!==null?vT(s,_):Gg(),gT(s);else return p=s.lanes=536870912,pj(i,s,_!==null?_.baseLanes|u:u,u,p)}else _!==null?(Ud(s,_.cachePool),vT(s,_),Xi(),s.memoizedState=null):(i!==null&&Ud(s,null),Gg(),Xi());return Bn(i,s,b,u),s.child}function lu(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function pj(i,s,u,p,b){var _=Bg();return _=_===null?null:{parent:gn._currentValue,pool:_},s.memoizedState={baseLanes:u,cachePool:_},i!==null&&Ud(s,null),Gg(),gT(s),i!==null&&rl(i,s,p,!0),s.childLanes=b,null}function rh(i,s){return s=ih({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function mj(i,s,u){return es(s,i.child,null,u),i=rh(s,s.pendingProps),i.flags|=2,_r(s),s.memoizedState=null,i}function Hq(i,s,u){var p=s.pendingProps,b=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(yt){if(p.mode==="hidden")return i=rh(s,p),s.lanes=536870912,lu(null,i);if(Yg(s),(i=Vt)?(i=T2(i,Fr),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Hi!==null?{id:Ma,overflow:Pa}:null,retryLane:536870912,hydrationErrors:null},u=QE(i),u.return=s,s.child=u,Ln=s,Vt=null)):i=null,i===null)throw Vi(s);return s.lanes=536870912,null}return rh(s,p)}var _=i.memoizedState;if(_!==null){var M=_.dehydrated;if(Yg(s),b)if(s.flags&256)s.flags&=-257,s=mj(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(bn||rl(i,s,u,!1),b=(u&i.childLanes)!==0,bn||b){if(p=Ut,p!==null&&(M=Me(p,u),M!==0&&M!==_.retryLane))throw _.retryLane=M,Go(i,M),vr(p,i,M),my;ph(),s=mj(i,s,u)}else i=_.treeContext,Vt=Gr(M.nextSibling),Ln=s,yt=!0,Fi=null,Fr=!1,i!==null&&tT(s,i),s=rh(s,p),s.flags|=4096;return s}return i=oi(i.child,{mode:p.mode,children:p.children}),i.ref=s.ref,s.child=i,i.return=s,i}function ah(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function vy(i,s,u,p,b){return Ko(s),u=Kg(i,s,u,p,void 0,b),p=Xg(),i!==null&&!bn?(Qg(i,s,b),di(i,s,b)):(yt&&p&&Ng(s),s.flags|=1,Bn(i,s,u,b),s.child)}function vj(i,s,u,p,b,_){return Ko(s),s.updateQueue=null,u=bT(s,p,u,b),yT(i),p=Xg(),i!==null&&!bn?(Qg(i,s,_),di(i,s,_)):(yt&&p&&Ng(s),s.flags|=1,Bn(i,s,u,_),s.child)}function gj(i,s,u,p,b){if(Ko(s),s.stateNode===null){var _=Js,M=u.contextType;typeof M=="object"&&M!==null&&(_=In(M)),_=new u(p,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=hy,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=p,_.state=s.memoizedState,_.refs={},qg(s),M=u.contextType,_.context=typeof M=="object"&&M!==null?In(M):Js,_.state=s.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(dy(s,u,M,p),_.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(M=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),M!==_.state&&hy.enqueueReplaceState(_,_.state,null),ru(s,p,_,b),nu(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(i===null){_=s.stateNode;var D=s.memoizedProps,W=ns(u,D);_.props=W;var oe=_.context,pe=u.contextType;M=Js,typeof pe=="object"&&pe!==null&&(M=In(pe));var be=u.getDerivedStateFromProps;pe=typeof be=="function"||typeof _.getSnapshotBeforeUpdate=="function",D=s.pendingProps!==D,pe||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(D||oe!==M)&&rj(s,_,p,M),Wi=!1;var le=s.memoizedState;_.state=le,ru(s,p,_,b),nu(),oe=s.memoizedState,D||le!==oe||Wi?(typeof be=="function"&&(dy(s,u,be,p),oe=s.memoizedState),(W=Wi||nj(s,u,W,p,le,oe,M))?(pe||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=oe),_.props=p,_.state=oe,_.context=M,p=W):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{_=s.stateNode,Hg(i,s),M=s.memoizedProps,pe=ns(u,M),_.props=pe,be=s.pendingProps,le=_.context,oe=u.contextType,W=Js,typeof oe=="object"&&oe!==null&&(W=In(oe)),D=u.getDerivedStateFromProps,(oe=typeof D=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(M!==be||le!==W)&&rj(s,_,p,W),Wi=!1,le=s.memoizedState,_.state=le,ru(s,p,_,b),nu();var de=s.memoizedState;M!==be||le!==de||Wi||i!==null&&i.dependencies!==null&&Id(i.dependencies)?(typeof D=="function"&&(dy(s,u,D,p),de=s.memoizedState),(pe=Wi||nj(s,u,pe,p,le,de,W)||i!==null&&i.dependencies!==null&&Id(i.dependencies))?(oe||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(p,de,W),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(p,de,W)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||M===i.memoizedProps&&le===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||M===i.memoizedProps&&le===i.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=de),_.props=p,_.state=de,_.context=W,p=pe):(typeof _.componentDidUpdate!="function"||M===i.memoizedProps&&le===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||M===i.memoizedProps&&le===i.memoizedState||(s.flags|=1024),p=!1)}return _=p,ah(i,s),p=(s.flags&128)!==0,_||p?(_=s.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,i!==null&&p?(s.child=es(s,i.child,null,b),s.child=es(s,null,u,b)):Bn(i,s,u,b),s.memoizedState=_.state,i=s.child):i=di(i,s,b),i}function yj(i,s,u,p){return Yo(),s.flags|=256,Bn(i,s,u,p),s.child}var gy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yy(i){return{baseLanes:i,cachePool:sT()}}function by(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=Or),i}function bj(i,s,u){var p=s.pendingProps,b=!1,_=(s.flags&128)!==0,M;if((M=_)||(M=i!==null&&i.memoizedState===null?!1:(fn.current&2)!==0),M&&(b=!0,s.flags&=-129),M=(s.flags&32)!==0,s.flags&=-33,i===null){if(yt){if(b?Ki(s):Xi(),(i=Vt)?(i=T2(i,Fr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:Hi!==null?{id:Ma,overflow:Pa}:null,retryLane:536870912,hydrationErrors:null},u=QE(i),u.return=s,s.child=u,Ln=s,Vt=null)):i=null,i===null)throw Vi(s);return tb(i)?s.lanes=32:s.lanes=536870912,null}var D=p.children;return p=p.fallback,b?(Xi(),b=s.mode,D=ih({mode:"hidden",children:D},b),p=Wo(p,b,u,null),D.return=s,p.return=s,D.sibling=p,s.child=D,p=s.child,p.memoizedState=yy(u),p.childLanes=by(i,M,u),s.memoizedState=gy,lu(null,p)):(Ki(s),xy(s,D))}var W=i.memoizedState;if(W!==null&&(D=W.dehydrated,D!==null)){if(_)s.flags&256?(Ki(s),s.flags&=-257,s=wy(i,s,u)):s.memoizedState!==null?(Xi(),s.child=i.child,s.flags|=128,s=null):(Xi(),D=p.fallback,b=s.mode,p=ih({mode:"visible",children:p.children},b),D=Wo(D,b,u,null),D.flags|=2,p.return=s,D.return=s,p.sibling=D,s.child=p,es(s,i.child,null,u),p=s.child,p.memoizedState=yy(u),p.childLanes=by(i,M,u),s.memoizedState=gy,s=lu(null,p));else if(Ki(s),tb(D)){if(M=D.nextSibling&&D.nextSibling.dataset,M)var oe=M.dgst;M=oe,p=Error(r(419)),p.stack="",p.digest=M,Kc({value:p,source:null,stack:null}),s=wy(i,s,u)}else if(bn||rl(i,s,u,!1),M=(u&i.childLanes)!==0,bn||M){if(M=Ut,M!==null&&(p=Me(M,u),p!==0&&p!==W.retryLane))throw W.retryLane=p,Go(i,p),vr(M,i,p),my;eb(D)||ph(),s=wy(i,s,u)}else eb(D)?(s.flags|=192,s.child=i.child,s=null):(i=W.treeContext,Vt=Gr(D.nextSibling),Ln=s,yt=!0,Fi=null,Fr=!1,i!==null&&tT(s,i),s=xy(s,p.children),s.flags|=4096);return s}return b?(Xi(),D=p.fallback,b=s.mode,W=i.child,oe=W.sibling,p=oi(W,{mode:"hidden",children:p.children}),p.subtreeFlags=W.subtreeFlags&65011712,oe!==null?D=oi(oe,D):(D=Wo(D,b,u,null),D.flags|=2),D.return=s,p.return=s,p.sibling=D,s.child=p,lu(null,p),p=s.child,D=i.child.memoizedState,D===null?D=yy(u):(b=D.cachePool,b!==null?(W=gn._currentValue,b=b.parent!==W?{parent:W,pool:W}:b):b=sT(),D={baseLanes:D.baseLanes|u,cachePool:b}),p.memoizedState=D,p.childLanes=by(i,M,u),s.memoizedState=gy,lu(i.child,p)):(Ki(s),u=i.child,i=u.sibling,u=oi(u,{mode:"visible",children:p.children}),u.return=s,u.sibling=null,i!==null&&(M=s.deletions,M===null?(s.deletions=[i],s.flags|=16):M.push(i)),s.child=u,s.memoizedState=null,u)}function xy(i,s){return s=ih({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function ih(i,s){return i=wr(22,i,null,s),i.lanes=0,i}function wy(i,s,u){return es(s,i.child,null,u),i=xy(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function xj(i,s,u){i.lanes|=s;var p=i.alternate;p!==null&&(p.lanes|=s),$g(i.return,s,u)}function Sy(i,s,u,p,b,_){var M=i.memoizedState;M===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:b,treeForkCount:_}:(M.isBackwards=s,M.rendering=null,M.renderingStartTime=0,M.last=p,M.tail=u,M.tailMode=b,M.treeForkCount=_)}function wj(i,s,u){var p=s.pendingProps,b=p.revealOrder,_=p.tail;p=p.children;var M=fn.current,D=(M&2)!==0;if(D?(M=M&1|2,s.flags|=128):M&=1,J(fn,M),Bn(i,s,p,u),p=yt?Zc:0,!D&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&xj(i,u,s);else if(i.tag===19)xj(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(b){case"forwards":for(u=s.child,b=null;u!==null;)i=u.alternate,i!==null&&Wd(i)===null&&(b=u),u=u.sibling;u=b,u===null?(b=s.child,s.child=null):(b=u.sibling,u.sibling=null),Sy(s,!1,b,u,_,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,b=s.child,s.child=null;b!==null;){if(i=b.alternate,i!==null&&Wd(i)===null){s.child=b;break}i=b.sibling,b.sibling=u,u=b,b=i}Sy(s,!0,u,null,_,p);break;case"together":Sy(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function di(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),eo|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(rl(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=oi(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=oi(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function _y(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Id(i)))}function Fq(i,s,u){switch(s.tag){case 3:we(s,s.stateNode.containerInfo),Gi(s,gn,i.memoizedState.cache),Yo();break;case 27:case 5:Oe(s);break;case 4:we(s,s.stateNode.containerInfo);break;case 10:Gi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Yg(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(Ki(s),s.flags|=128,null):(u&s.child.childLanes)!==0?bj(i,s,u):(Ki(s),i=di(i,s,u),i!==null?i.sibling:null);Ki(s);break;case 19:var b=(i.flags&128)!==0;if(p=(u&s.childLanes)!==0,p||(rl(i,s,u,!1),p=(u&s.childLanes)!==0),b){if(p)return wj(i,s,u);s.flags|=128}if(b=s.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),J(fn,fn.current),p)break;return null;case 22:return s.lanes=0,hj(i,s,u,s.pendingProps);case 24:Gi(s,gn,i.memoizedState.cache)}return di(i,s,u)}function Sj(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)bn=!0;else{if(!_y(i,u)&&(s.flags&128)===0)return bn=!1,Fq(i,s,u);bn=(i.flags&131072)!==0}else bn=!1,yt&&(s.flags&1048576)!==0&&eT(s,Zc,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(i=Qo(s.elementType),s.type=i,typeof i=="function")jg(i)?(p=ns(i,p),s.tag=1,s=gj(null,s,i,p,u)):(s.tag=0,s=vy(null,s,i,p,u));else{if(i!=null){var b=i.$$typeof;if(b===C){s.tag=11,s=uj(null,s,i,p,u);break e}else if(b===N){s.tag=14,s=fj(null,s,i,p,u);break e}}throw s=G(i)||i,Error(r(306,s,""))}}return s;case 0:return vy(i,s,s.type,s.pendingProps,u);case 1:return p=s.type,b=ns(p,s.pendingProps),gj(i,s,p,b,u);case 3:e:{if(we(s,s.stateNode.containerInfo),i===null)throw Error(r(387));p=s.pendingProps;var _=s.memoizedState;b=_.element,Hg(i,s),ru(s,p,null,u);var M=s.memoizedState;if(p=M.cache,Gi(s,gn,p),p!==_.cache&&zg(s,[gn],u,!0),nu(),p=M.element,_.isDehydrated)if(_={element:p,isDehydrated:!1,cache:M.cache},s.updateQueue.baseState=_,s.memoizedState=_,s.flags&256){s=yj(i,s,p,u);break e}else if(p!==b){b=Ur(Error(r(424)),s),Kc(b),s=yj(i,s,p,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Vt=Gr(i.firstChild),Ln=s,yt=!0,Fi=null,Fr=!0,u=hT(s,null,p,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Yo(),p===b){s=di(i,s,u);break e}Bn(i,s,p,u)}s=s.child}return s;case 26:return ah(i,s),i===null?(u=P2(s.type,null,s.pendingProps,null))?s.memoizedState=u:yt||(u=s.type,i=s.pendingProps,p=wh(ce.current).createElement(u),p[En]=s,p[Yn]=i,Un(p,u,i),Mn(p),s.stateNode=p):s.memoizedState=P2(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Oe(s),i===null&&yt&&(p=s.stateNode=R2(s.type,s.pendingProps,ce.current),Ln=s,Fr=!0,b=Vt,io(s.type)?(nb=b,Vt=Gr(p.firstChild)):Vt=b),Bn(i,s,s.pendingProps.children,u),ah(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&yt&&((b=p=Vt)&&(p=xH(p,s.type,s.pendingProps,Fr),p!==null?(s.stateNode=p,Ln=s,Vt=Gr(p.firstChild),Fr=!1,b=!0):b=!1),b||Vi(s)),Oe(s),b=s.type,_=s.pendingProps,M=i!==null?i.memoizedProps:null,p=_.children,Xy(b,_)?p=null:M!==null&&Xy(b,M)&&(s.flags|=32),s.memoizedState!==null&&(b=Kg(i,s,kq,null,null,u),_u._currentValue=b),ah(i,s),Bn(i,s,p,u),s.child;case 6:return i===null&&yt&&((i=u=Vt)&&(u=wH(u,s.pendingProps,Fr),u!==null?(s.stateNode=u,Ln=s,Vt=null,i=!0):i=!1),i||Vi(s)),null;case 13:return bj(i,s,u);case 4:return we(s,s.stateNode.containerInfo),p=s.pendingProps,i===null?s.child=es(s,null,p,u):Bn(i,s,p,u),s.child;case 11:return uj(i,s,s.type,s.pendingProps,u);case 7:return Bn(i,s,s.pendingProps,u),s.child;case 8:return Bn(i,s,s.pendingProps.children,u),s.child;case 12:return Bn(i,s,s.pendingProps.children,u),s.child;case 10:return p=s.pendingProps,Gi(s,s.type,p.value),Bn(i,s,p.children,u),s.child;case 9:return b=s.type._context,p=s.pendingProps.children,Ko(s),b=In(b),p=p(b),s.flags|=1,Bn(i,s,p,u),s.child;case 14:return fj(i,s,s.type,s.pendingProps,u);case 15:return dj(i,s,s.type,s.pendingProps,u);case 19:return wj(i,s,u);case 31:return Hq(i,s,u);case 22:return hj(i,s,u,s.pendingProps);case 24:return Ko(s),p=In(gn),i===null?(b=Bg(),b===null&&(b=Ut,_=Lg(),b.pooledCache=_,_.refCount++,_!==null&&(b.pooledCacheLanes|=u),b=_),s.memoizedState={parent:p,cache:b},qg(s),Gi(s,gn,b)):((i.lanes&u)!==0&&(Hg(i,s),ru(s,null,null,u),nu()),b=i.memoizedState,_=s.memoizedState,b.parent!==p?(b={parent:p,cache:p},s.memoizedState=b,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=b),Gi(s,gn,p)):(p=_.cache,Gi(s,gn,p),p!==b.cache&&zg(s,[gn],u,!0))),Bn(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function hi(i){i.flags|=4}function Ay(i,s,u,p,b){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(b&335544128)===b)if(i.stateNode.complete)i.flags|=8192;else if(Zj())i.flags|=8192;else throw Jo=Hd,Ug}else i.flags&=-16777217}function _j(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!L2(s))if(Zj())i.flags|=8192;else throw Jo=Hd,Ug}function oh(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?rt():536870912,i.lanes|=s,ml|=s)}function cu(i,s){if(!yt)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function Gt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(s)for(var b=i.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags&65011712,p|=b.flags&65011712,b.return=i,b=b.sibling;else for(b=i.child;b!==null;)u|=b.lanes|b.childLanes,p|=b.subtreeFlags,p|=b.flags,b.return=i,b=b.sibling;return i.subtreeFlags|=p,i.childLanes=u,s}function Vq(i,s,u){var p=s.pendingProps;switch(Mg(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gt(s),null;case 1:return Gt(s),null;case 3:return u=s.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),ci(gn),se(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(nl(s)?hi(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Dg())),Gt(s),null;case 26:var b=s.type,_=s.memoizedState;return i===null?(hi(s),_!==null?(Gt(s),_j(s,_)):(Gt(s),Ay(s,b,null,p,u))):_?_!==i.memoizedState?(hi(s),Gt(s),_j(s,_)):(Gt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==p&&hi(s),Gt(s),Ay(s,b,i,p,u)),null;case 27:if(_e(s),u=ce.current,b=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return Gt(s),null}i=fe.current,nl(s)?nT(s):(i=R2(b,p,u),s.stateNode=i,hi(s))}return Gt(s),null;case 5:if(_e(s),b=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return Gt(s),null}if(_=fe.current,nl(s))nT(s);else{var M=wh(ce.current);switch(_){case 1:_=M.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:_=M.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":_=M.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":_=M.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":_=M.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof p.is=="string"?M.createElement("select",{is:p.is}):M.createElement("select"),p.multiple?_.multiple=!0:p.size&&(_.size=p.size);break;default:_=typeof p.is=="string"?M.createElement(b,{is:p.is}):M.createElement(b)}}_[En]=s,_[Yn]=p;e:for(M=s.child;M!==null;){if(M.tag===5||M.tag===6)_.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===s)break e;for(;M.sibling===null;){if(M.return===null||M.return===s)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}s.stateNode=_;e:switch(Un(_,b,p),b){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&hi(s)}}return Gt(s),Ay(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==p&&hi(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(r(166));if(i=ce.current,nl(s)){if(i=s.stateNode,u=s.memoizedProps,p=null,b=Ln,b!==null)switch(b.tag){case 27:case 5:p=b.memoizedProps}i[En]=s,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||b2(i.nodeValue,u)),i||Vi(s,!0)}else i=wh(i).createTextNode(p),i[En]=s,s.stateNode=i}return Gt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(p=nl(s),u!==null){if(i===null){if(!p)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[En]=s}else Yo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Gt(s),i=!1}else u=Dg(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?(_r(s),s):(_r(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Gt(s),null;case 13:if(p=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(b=nl(s),p!==null&&p.dehydrated!==null){if(i===null){if(!b)throw Error(r(318));if(b=s.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(r(317));b[En]=s}else Yo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Gt(s),b=!1}else b=Dg(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=b),b=!0;if(!b)return s.flags&256?(_r(s),s):(_r(s),null)}return _r(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,i=i!==null&&i.memoizedState!==null,u&&(p=s.child,b=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(b=p.alternate.memoizedState.cachePool.pool),_=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(_=p.memoizedState.cachePool.pool),_!==b&&(p.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),oh(s,s.updateQueue),Gt(s),null);case 4:return se(),i===null&&Gy(s.stateNode.containerInfo),Gt(s),null;case 10:return ci(s.type),Gt(s),null;case 19:if(H(fn),p=s.memoizedState,p===null)return Gt(s),null;if(b=(s.flags&128)!==0,_=p.rendering,_===null)if(b)cu(p,!1);else{if(ln!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(_=Wd(i),_!==null){for(s.flags|=128,cu(p,!1),i=_.updateQueue,s.updateQueue=i,oh(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)XE(u,i),u=u.sibling;return J(fn,fn.current&1|2),yt&&si(s,p.treeForkCount),s.child}i=i.sibling}p.tail!==null&&U()>fh&&(s.flags|=128,b=!0,cu(p,!1),s.lanes=4194304)}else{if(!b)if(i=Wd(_),i!==null){if(s.flags|=128,b=!0,i=i.updateQueue,s.updateQueue=i,oh(s,i),cu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!_.alternate&&!yt)return Gt(s),null}else 2*U()-p.renderingStartTime>fh&&u!==536870912&&(s.flags|=128,b=!0,cu(p,!1),s.lanes=4194304);p.isBackwards?(_.sibling=s.child,s.child=_):(i=p.last,i!==null?i.sibling=_:s.child=_,p.last=_)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=U(),i.sibling=null,u=fn.current,J(fn,b?u&1|2:u&1),yt&&si(s,p.treeForkCount),i):(Gt(s),null);case 22:case 23:return _r(s),Wg(),p=s.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(Gt(s),s.subtreeFlags&6&&(s.flags|=8192)):Gt(s),u=s.updateQueue,u!==null&&oh(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),i!==null&&H(Xo),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),ci(gn),Gt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function Gq(i,s){switch(Mg(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ci(gn),se(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return _e(s),null;case 31:if(s.memoizedState!==null){if(_r(s),s.alternate===null)throw Error(r(340));Yo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(_r(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Yo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return H(fn),null;case 4:return se(),null;case 10:return ci(s.type),null;case 22:case 23:return _r(s),Wg(),i!==null&&H(Xo),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return ci(gn),null;case 25:return null;default:return null}}function Aj(i,s){switch(Mg(s),s.tag){case 3:ci(gn),se();break;case 26:case 27:case 5:_e(s);break;case 4:se();break;case 31:s.memoizedState!==null&&_r(s);break;case 13:_r(s);break;case 19:H(fn);break;case 10:ci(s.type);break;case 22:case 23:_r(s),Wg(),i!==null&&H(Xo);break;case 24:ci(gn)}}function uu(i,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var b=p.next;u=b;do{if((u.tag&i)===i){p=void 0;var _=u.create,M=u.inst;p=_(),M.destroy=p}u=u.next}while(u!==b)}}catch(D){Mt(s,s.return,D)}}function Qi(i,s,u){try{var p=s.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var _=b.next;p=_;do{if((p.tag&i)===i){var M=p.inst,D=M.destroy;if(D!==void 0){M.destroy=void 0,b=s;var W=u,oe=D;try{oe()}catch(pe){Mt(b,W,pe)}}}p=p.next}while(p!==_)}}catch(pe){Mt(s,s.return,pe)}}function Oj(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{mT(s,u)}catch(p){Mt(i,i.return,p)}}}function Ej(i,s,u){u.props=ns(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){Mt(i,s,p)}}function fu(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(b){Mt(i,s,b)}}function Da(i,s){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(b){Mt(i,s,b)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(b){Mt(i,s,b)}else u.current=null}function Tj(i){var s=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(b){Mt(i,i.return,b)}}function Oy(i,s,u){try{var p=i.stateNode;pH(p,i.type,u,s),p[Yn]=s}catch(b){Mt(i,i.return,b)}}function jj(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&io(i.type)||i.tag===4}function Ey(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||jj(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&io(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Ty(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=ai));else if(p!==4&&(p===27&&io(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(Ty(i,s,u),i=i.sibling;i!==null;)Ty(i,s,u),i=i.sibling}function sh(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(p!==4&&(p===27&&io(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(sh(i,s,u),i=i.sibling;i!==null;)sh(i,s,u),i=i.sibling}function Cj(i){var s=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,b=s.attributes;b.length;)s.removeAttributeNode(b[0]);Un(s,p,u),s[En]=i,s[Yn]=u}catch(_){Mt(i,i.return,_)}}var pi=!1,xn=!1,jy=!1,Rj=typeof WeakSet=="function"?WeakSet:Set,Pn=null;function Wq(i,s){if(i=i.containerInfo,Zy=jh,i=qE(i),wg(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var b=p.anchorOffset,_=p.focusNode;p=p.focusOffset;try{u.nodeType,_.nodeType}catch{u=null;break e}var M=0,D=-1,W=-1,oe=0,pe=0,be=i,le=null;t:for(;;){for(var de;be!==u||b!==0&&be.nodeType!==3||(D=M+b),be!==_||p!==0&&be.nodeType!==3||(W=M+p),be.nodeType===3&&(M+=be.nodeValue.length),(de=be.firstChild)!==null;)le=be,be=de;for(;;){if(be===i)break t;if(le===u&&++oe===b&&(D=M),le===_&&++pe===p&&(W=M),(de=be.nextSibling)!==null)break;be=le,le=be.parentNode}be=de}u=D===-1||W===-1?null:{start:D,end:W}}else u=null}u=u||{start:0,end:0}}else u=null;for(Ky={focusedElem:i,selectionRange:u},jh=!1,Pn=s;Pn!==null;)if(s=Pn,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Pn=i;else for(;Pn!==null;){switch(s=Pn,_=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)b=i[u],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,u=s,b=_.memoizedProps,_=_.memoizedState,p=u.stateNode;try{var Ie=ns(u.type,b);i=p.getSnapshotBeforeUpdate(Ie,_),p.__reactInternalSnapshotBeforeUpdate=i}catch(We){Mt(u,u.return,We)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)Jy(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Jy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Pn=i;break}Pn=s.return}}function Nj(i,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:vi(i,u),p&4&&uu(5,u);break;case 1:if(vi(i,u),p&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(M){Mt(u,u.return,M)}else{var b=ns(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(b,s,i.__reactInternalSnapshotBeforeUpdate)}catch(M){Mt(u,u.return,M)}}p&64&&Oj(u),p&512&&fu(u,u.return);break;case 3:if(vi(i,u),p&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{mT(i,s)}catch(M){Mt(u,u.return,M)}}break;case 27:s===null&&p&4&&Cj(u);case 26:case 5:vi(i,u),s===null&&p&4&&Tj(u),p&512&&fu(u,u.return);break;case 12:vi(i,u);break;case 31:vi(i,u),p&4&&Dj(i,u);break;case 13:vi(i,u),p&4&&kj(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=nH.bind(null,u),SH(i,u))));break;case 22:if(p=u.memoizedState!==null||pi,!p){s=s!==null&&s.memoizedState!==null||xn,b=pi;var _=xn;pi=p,(xn=s)&&!_?gi(i,u,(u.subtreeFlags&8772)!==0):vi(i,u),pi=b,xn=_}break;case 30:break;default:vi(i,u)}}function Mj(i){var s=i.alternate;s!==null&&(i.alternate=null,Mj(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&ag(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Kt=null,dr=!1;function mi(i,s,u){for(u=u.child;u!==null;)Pj(i,s,u),u=u.sibling}function Pj(i,s,u){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Ot,u)}catch{}switch(u.tag){case 26:xn||Da(u,s),mi(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:xn||Da(u,s);var p=Kt,b=dr;io(u.type)&&(Kt=u.stateNode,dr=!1),mi(i,s,u),xu(u.stateNode),Kt=p,dr=b;break;case 5:xn||Da(u,s);case 6:if(p=Kt,b=dr,Kt=null,mi(i,s,u),Kt=p,dr=b,Kt!==null)if(dr)try{(Kt.nodeType===9?Kt.body:Kt.nodeName==="HTML"?Kt.ownerDocument.body:Kt).removeChild(u.stateNode)}catch(_){Mt(u,s,_)}else try{Kt.removeChild(u.stateNode)}catch(_){Mt(u,s,_)}break;case 18:Kt!==null&&(dr?(i=Kt,O2(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),_l(i)):O2(Kt,u.stateNode));break;case 4:p=Kt,b=dr,Kt=u.stateNode.containerInfo,dr=!0,mi(i,s,u),Kt=p,dr=b;break;case 0:case 11:case 14:case 15:Qi(2,u,s),xn||Qi(4,u,s),mi(i,s,u);break;case 1:xn||(Da(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&Ej(u,s,p)),mi(i,s,u);break;case 21:mi(i,s,u);break;case 22:xn=(p=xn)||u.memoizedState!==null,mi(i,s,u),xn=p;break;default:mi(i,s,u)}}function Dj(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{_l(i)}catch(u){Mt(s,s.return,u)}}}function kj(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{_l(i)}catch(u){Mt(s,s.return,u)}}function Yq(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new Rj),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new Rj),s;default:throw Error(r(435,i.tag))}}function lh(i,s){var u=Yq(i);s.forEach(function(p){if(!u.has(p)){u.add(p);var b=rH.bind(null,i,p);p.then(b,b)}})}function hr(i,s){var u=s.deletions;if(u!==null)for(var p=0;p<u.length;p++){var b=u[p],_=i,M=s,D=M;e:for(;D!==null;){switch(D.tag){case 27:if(io(D.type)){Kt=D.stateNode,dr=!1;break e}break;case 5:Kt=D.stateNode,dr=!1;break e;case 3:case 4:Kt=D.stateNode.containerInfo,dr=!0;break e}D=D.return}if(Kt===null)throw Error(r(160));Pj(_,M,b),Kt=null,dr=!1,_=b.alternate,_!==null&&(_.return=null),b.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)$j(s,i),s=s.sibling}var ha=null;function $j(i,s){var u=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:hr(s,i),pr(i),p&4&&(Qi(3,i,i.return),uu(3,i),Qi(5,i,i.return));break;case 1:hr(s,i),pr(i),p&512&&(xn||u===null||Da(u,u.return)),p&64&&pi&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var b=ha;if(hr(s,i),pr(i),p&512&&(xn||u===null||Da(u,u.return)),p&4){var _=u!==null?u.memoizedState:null;if(p=i.memoizedState,u===null)if(p===null)if(i.stateNode===null){e:{p=i.type,u=i.memoizedProps,b=b.ownerDocument||b;t:switch(p){case"title":_=b.getElementsByTagName("title")[0],(!_||_[Lc]||_[En]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=b.createElement(p),b.head.insertBefore(_,b.querySelector("head > title"))),Un(_,p,u),_[En]=i,Mn(_),p=_;break e;case"link":var M=$2("link","href",b).get(p+(u.href||""));if(M){for(var D=0;D<M.length;D++)if(_=M[D],_.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&_.getAttribute("rel")===(u.rel==null?null:u.rel)&&_.getAttribute("title")===(u.title==null?null:u.title)&&_.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){M.splice(D,1);break t}}_=b.createElement(p),Un(_,p,u),b.head.appendChild(_);break;case"meta":if(M=$2("meta","content",b).get(p+(u.content||""))){for(D=0;D<M.length;D++)if(_=M[D],_.getAttribute("content")===(u.content==null?null:""+u.content)&&_.getAttribute("name")===(u.name==null?null:u.name)&&_.getAttribute("property")===(u.property==null?null:u.property)&&_.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&_.getAttribute("charset")===(u.charSet==null?null:u.charSet)){M.splice(D,1);break t}}_=b.createElement(p),Un(_,p,u),b.head.appendChild(_);break;default:throw Error(r(468,p))}_[En]=i,Mn(_),p=_}i.stateNode=p}else z2(b,i.type,i.stateNode);else i.stateNode=k2(b,p,i.memoizedProps);else _!==p?(_===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):_.count--,p===null?z2(b,i.type,i.stateNode):k2(b,p,i.memoizedProps)):p===null&&i.stateNode!==null&&Oy(i,i.memoizedProps,u.memoizedProps)}break;case 27:hr(s,i),pr(i),p&512&&(xn||u===null||Da(u,u.return)),u!==null&&p&4&&Oy(i,i.memoizedProps,u.memoizedProps);break;case 5:if(hr(s,i),pr(i),p&512&&(xn||u===null||Da(u,u.return)),i.flags&32){b=i.stateNode;try{Gs(b,"")}catch(Ie){Mt(i,i.return,Ie)}}p&4&&i.stateNode!=null&&(b=i.memoizedProps,Oy(i,b,u!==null?u.memoizedProps:b)),p&1024&&(jy=!0);break;case 6:if(hr(s,i),pr(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,u=i.stateNode;try{u.nodeValue=p}catch(Ie){Mt(i,i.return,Ie)}}break;case 3:if(Ah=null,b=ha,ha=Sh(s.containerInfo),hr(s,i),ha=b,pr(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{_l(s.containerInfo)}catch(Ie){Mt(i,i.return,Ie)}jy&&(jy=!1,zj(i));break;case 4:p=ha,ha=Sh(i.stateNode.containerInfo),hr(s,i),pr(i),ha=p;break;case 12:hr(s,i),pr(i);break;case 31:hr(s,i),pr(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,lh(i,p)));break;case 13:hr(s,i),pr(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(uh=U()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,lh(i,p)));break;case 22:b=i.memoizedState!==null;var W=u!==null&&u.memoizedState!==null,oe=pi,pe=xn;if(pi=oe||b,xn=pe||W,hr(s,i),xn=pe,pi=oe,pr(i),p&8192)e:for(s=i.stateNode,s._visibility=b?s._visibility&-2:s._visibility|1,b&&(u===null||W||pi||xn||rs(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){W=u=s;try{if(_=W.stateNode,b)M=_.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none";else{D=W.stateNode;var be=W.memoizedProps.style,le=be!=null&&be.hasOwnProperty("display")?be.display:null;D.style.display=le==null||typeof le=="boolean"?"":(""+le).trim()}}catch(Ie){Mt(W,W.return,Ie)}}}else if(s.tag===6){if(u===null){W=s;try{W.stateNode.nodeValue=b?"":W.memoizedProps}catch(Ie){Mt(W,W.return,Ie)}}}else if(s.tag===18){if(u===null){W=s;try{var de=W.stateNode;b?E2(de,!0):E2(W.stateNode,!1)}catch(Ie){Mt(W,W.return,Ie)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=i.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,lh(i,u))));break;case 19:hr(s,i),pr(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,lh(i,p)));break;case 30:break;case 21:break;default:hr(s,i),pr(i)}}function pr(i){var s=i.flags;if(s&2){try{for(var u,p=i.return;p!==null;){if(jj(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var b=u.stateNode,_=Ey(i);sh(i,_,b);break;case 5:var M=u.stateNode;u.flags&32&&(Gs(M,""),u.flags&=-33);var D=Ey(i);sh(i,D,M);break;case 3:case 4:var W=u.stateNode.containerInfo,oe=Ey(i);Ty(i,oe,W);break;default:throw Error(r(161))}}catch(pe){Mt(i,i.return,pe)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function zj(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;zj(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function vi(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Nj(i,s.alternate,s),s=s.sibling}function rs(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Qi(4,s,s.return),rs(s);break;case 1:Da(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&Ej(s,s.return,u),rs(s);break;case 27:xu(s.stateNode);case 26:case 5:Da(s,s.return),rs(s);break;case 22:s.memoizedState===null&&rs(s);break;case 30:rs(s);break;default:rs(s)}i=i.sibling}}function gi(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,b=i,_=s,M=_.flags;switch(_.tag){case 0:case 11:case 15:gi(b,_,u),uu(4,_);break;case 1:if(gi(b,_,u),p=_,b=p.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(oe){Mt(p,p.return,oe)}if(p=_,b=p.updateQueue,b!==null){var D=p.stateNode;try{var W=b.shared.hiddenCallbacks;if(W!==null)for(b.shared.hiddenCallbacks=null,b=0;b<W.length;b++)pT(W[b],D)}catch(oe){Mt(p,p.return,oe)}}u&&M&64&&Oj(_),fu(_,_.return);break;case 27:Cj(_);case 26:case 5:gi(b,_,u),u&&p===null&&M&4&&Tj(_),fu(_,_.return);break;case 12:gi(b,_,u);break;case 31:gi(b,_,u),u&&M&4&&Dj(b,_);break;case 13:gi(b,_,u),u&&M&4&&kj(b,_);break;case 22:_.memoizedState===null&&gi(b,_,u),fu(_,_.return);break;case 30:break;default:gi(b,_,u)}s=s.sibling}}function Cy(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Xc(u))}function Ry(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Xc(i))}function pa(i,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Lj(i,s,u,p),s=s.sibling}function Lj(i,s,u,p){var b=s.flags;switch(s.tag){case 0:case 11:case 15:pa(i,s,u,p),b&2048&&uu(9,s);break;case 1:pa(i,s,u,p);break;case 3:pa(i,s,u,p),b&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Xc(i)));break;case 12:if(b&2048){pa(i,s,u,p),i=s.stateNode;try{var _=s.memoizedProps,M=_.id,D=_.onPostCommit;typeof D=="function"&&D(M,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(W){Mt(s,s.return,W)}}else pa(i,s,u,p);break;case 31:pa(i,s,u,p);break;case 13:pa(i,s,u,p);break;case 23:break;case 22:_=s.stateNode,M=s.alternate,s.memoizedState!==null?_._visibility&2?pa(i,s,u,p):du(i,s):_._visibility&2?pa(i,s,u,p):(_._visibility|=2,dl(i,s,u,p,(s.subtreeFlags&10256)!==0||!1)),b&2048&&Cy(M,s);break;case 24:pa(i,s,u,p),b&2048&&Ry(s.alternate,s);break;default:pa(i,s,u,p)}}function dl(i,s,u,p,b){for(b=b&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var _=i,M=s,D=u,W=p,oe=M.flags;switch(M.tag){case 0:case 11:case 15:dl(_,M,D,W,b),uu(8,M);break;case 23:break;case 22:var pe=M.stateNode;M.memoizedState!==null?pe._visibility&2?dl(_,M,D,W,b):du(_,M):(pe._visibility|=2,dl(_,M,D,W,b)),b&&oe&2048&&Cy(M.alternate,M);break;case 24:dl(_,M,D,W,b),b&&oe&2048&&Ry(M.alternate,M);break;default:dl(_,M,D,W,b)}s=s.sibling}}function du(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,p=s,b=p.flags;switch(p.tag){case 22:du(u,p),b&2048&&Cy(p.alternate,p);break;case 24:du(u,p),b&2048&&Ry(p.alternate,p);break;default:du(u,p)}s=s.sibling}}var hu=8192;function hl(i,s,u){if(i.subtreeFlags&hu)for(i=i.child;i!==null;)Ij(i,s,u),i=i.sibling}function Ij(i,s,u){switch(i.tag){case 26:hl(i,s,u),i.flags&hu&&i.memoizedState!==null&&DH(u,ha,i.memoizedState,i.memoizedProps);break;case 5:hl(i,s,u);break;case 3:case 4:var p=ha;ha=Sh(i.stateNode.containerInfo),hl(i,s,u),ha=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=hu,hu=16777216,hl(i,s,u),hu=p):hl(i,s,u));break;default:hl(i,s,u)}}function Bj(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function pu(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];Pn=p,qj(p,i)}Bj(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Uj(i),i=i.sibling}function Uj(i){switch(i.tag){case 0:case 11:case 15:pu(i),i.flags&2048&&Qi(9,i,i.return);break;case 3:pu(i);break;case 12:pu(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,ch(i)):pu(i);break;default:pu(i)}}function ch(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];Pn=p,qj(p,i)}Bj(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Qi(8,s,s.return),ch(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,ch(s));break;default:ch(s)}i=i.sibling}}function qj(i,s){for(;Pn!==null;){var u=Pn;switch(u.tag){case 0:case 11:case 15:Qi(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:Xc(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,Pn=p;else e:for(u=i;Pn!==null;){p=Pn;var b=p.sibling,_=p.return;if(Mj(p),p===u){Pn=null;break e}if(b!==null){b.return=_,Pn=b;break e}Pn=_}}}var Zq={getCacheForType:function(i){var s=In(gn),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return In(gn).controller.signal}},Kq=typeof WeakMap=="function"?WeakMap:Map,Et=0,Ut=null,ut=null,mt=0,Nt=0,Ar=null,Ji=!1,pl=!1,Ny=!1,yi=0,ln=0,eo=0,as=0,My=0,Or=0,ml=0,mu=null,mr=null,Py=!1,uh=0,Hj=0,fh=1/0,dh=null,to=null,Tn=0,no=null,vl=null,bi=0,Dy=0,ky=null,Fj=null,vu=0,$y=null;function Er(){return(Et&2)!==0&&mt!==0?mt&-mt:$.T!==null?qy():nn()}function Vj(){if(Or===0)if((mt&536870912)===0||yt){var i=ar;ar<<=1,(ar&3932160)===0&&(ar=262144),Or=i}else Or=536870912;return i=Sr.current,i!==null&&(i.flags|=32),Or}function vr(i,s,u){(i===Ut&&(Nt===2||Nt===9)||i.cancelPendingCommit!==null)&&(gl(i,0),ro(i,mt,Or,!1)),ve(i,u),((Et&2)===0||i!==Ut)&&(i===Ut&&((Et&2)===0&&(as|=u),ln===4&&ro(i,mt,Or,!1)),ka(i))}function Gj(i,s,u){if((Et&6)!==0)throw Error(r(327));var p=!u&&(s&127)===0&&(s&i.expiredLanes)===0||Ee(i,s),b=p?Jq(i,s):Ly(i,s,!0),_=p;do{if(b===0){pl&&!p&&ro(i,s,0,!1);break}else{if(u=i.current.alternate,_&&!Xq(u)){b=Ly(i,s,!1),_=!1;continue}if(b===2){if(_=s,i.errorRecoveryDisabledLanes&_)var M=0;else M=i.pendingLanes&-536870913,M=M!==0?M:M&536870912?536870912:0;if(M!==0){s=M;e:{var D=i;b=mu;var W=D.current.memoizedState.isDehydrated;if(W&&(gl(D,M).flags|=256),M=Ly(D,M,!1),M!==2){if(Ny&&!W){D.errorRecoveryDisabledLanes|=_,as|=_,b=4;break e}_=mr,mr=b,_!==null&&(mr===null?mr=_:mr.push.apply(mr,_))}b=M}if(_=!1,b!==2)continue}}if(b===1){gl(i,0),ro(i,s,0,!0);break}e:{switch(p=i,_=b,_){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:ro(p,s,Or,!Ji);break e;case 2:mr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(b=uh+300-U(),10<b)){if(ro(p,s,Or,!Ji),je(p,0,!0)!==0)break e;bi=s,p.timeoutHandle=_2(Wj.bind(null,p,u,mr,dh,Py,s,Or,as,ml,Ji,_,"Throttled",-0,0),b);break e}Wj(p,u,mr,dh,Py,s,Or,as,ml,Ji,_,null,-0,0)}}break}while(!0);ka(i)}function Wj(i,s,u,p,b,_,M,D,W,oe,pe,be,le,de){if(i.timeoutHandle=-1,be=s.subtreeFlags,be&8192||(be&16785408)===16785408){be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ai},Ij(s,_,be);var Ie=(_&62914560)===_?uh-U():(_&4194048)===_?Hj-U():0;if(Ie=kH(be,Ie),Ie!==null){bi=_,i.cancelPendingCommit=Ie(t2.bind(null,i,s,_,u,p,b,M,D,W,pe,be,null,le,de)),ro(i,_,M,!oe);return}}t2(i,s,_,u,p,b,M,D,W)}function Xq(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var b=u[p],_=b.getSnapshot;b=b.value;try{if(!xr(_(),b))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ro(i,s,u,p){s&=~My,s&=~as,i.suspendedLanes|=s,i.pingedLanes&=~s,p&&(i.warmLanes|=s),p=i.expirationTimes;for(var b=s;0<b;){var _=31-tn(b),M=1<<_;p[_]=-1,b&=~M}u!==0&&Be(i,u,s)}function hh(){return(Et&6)===0?(gu(0),!1):!0}function zy(){if(ut!==null){if(Nt===0)var i=ut.return;else i=ut,li=Zo=null,Jg(i),sl=null,Jc=0,i=ut;for(;i!==null;)Aj(i.alternate,i),i=i.return;ut=null}}function gl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,gH(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),bi=0,zy(),Ut=i,ut=u=oi(i.current,null),mt=s,Nt=0,Ar=null,Ji=!1,pl=Ee(i,s),Ny=!1,ml=Or=My=as=eo=ln=0,mr=mu=null,Py=!1,(s&8)!==0&&(s|=s&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=s;0<p;){var b=31-tn(p),_=1<<b;s|=i[b],p&=~_}return yi=s,Dd(),u}function Yj(i,s){nt=null,$.H=su,s===ol||s===qd?(s=uT(),Nt=3):s===Ug?(s=uT(),Nt=4):Nt=s===my?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Ar=s,ut===null&&(ln=1,nh(i,Ur(s,i.current)))}function Zj(){var i=Sr.current;return i===null?!0:(mt&4194048)===mt?Vr===null:(mt&62914560)===mt||(mt&536870912)!==0?i===Vr:!1}function Kj(){var i=$.H;return $.H=su,i===null?su:i}function Xj(){var i=$.A;return $.A=Zq,i}function ph(){ln=4,Ji||(mt&4194048)!==mt&&Sr.current!==null||(pl=!0),(eo&134217727)===0&&(as&134217727)===0||Ut===null||ro(Ut,mt,Or,!1)}function Ly(i,s,u){var p=Et;Et|=2;var b=Kj(),_=Xj();(Ut!==i||mt!==s)&&(dh=null,gl(i,s)),s=!1;var M=ln;e:do try{if(Nt!==0&&ut!==null){var D=ut,W=Ar;switch(Nt){case 8:zy(),M=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(s=!0);var oe=Nt;if(Nt=0,Ar=null,yl(i,D,W,oe),u&&pl){M=0;break e}break;default:oe=Nt,Nt=0,Ar=null,yl(i,D,W,oe)}}Qq(),M=ln;break}catch(pe){Yj(i,pe)}while(!0);return s&&i.shellSuspendCounter++,li=Zo=null,Et=p,$.H=b,$.A=_,ut===null&&(Ut=null,mt=0,Dd()),M}function Qq(){for(;ut!==null;)Qj(ut)}function Jq(i,s){var u=Et;Et|=2;var p=Kj(),b=Xj();Ut!==i||mt!==s?(dh=null,fh=U()+500,gl(i,s)):pl=Ee(i,s);e:do try{if(Nt!==0&&ut!==null){s=ut;var _=Ar;t:switch(Nt){case 1:Nt=0,Ar=null,yl(i,s,_,1);break;case 2:case 9:if(lT(_)){Nt=0,Ar=null,Jj(s);break}s=function(){Nt!==2&&Nt!==9||Ut!==i||(Nt=7),ka(i)},_.then(s,s);break e;case 3:Nt=7;break e;case 4:Nt=5;break e;case 7:lT(_)?(Nt=0,Ar=null,Jj(s)):(Nt=0,Ar=null,yl(i,s,_,7));break;case 5:var M=null;switch(ut.tag){case 26:M=ut.memoizedState;case 5:case 27:var D=ut;if(M?L2(M):D.stateNode.complete){Nt=0,Ar=null;var W=D.sibling;if(W!==null)ut=W;else{var oe=D.return;oe!==null?(ut=oe,mh(oe)):ut=null}break t}}Nt=0,Ar=null,yl(i,s,_,5);break;case 6:Nt=0,Ar=null,yl(i,s,_,6);break;case 8:zy(),ln=6;break e;default:throw Error(r(462))}}eH();break}catch(pe){Yj(i,pe)}while(!0);return li=Zo=null,$.H=p,$.A=b,Et=u,ut!==null?0:(Ut=null,mt=0,Dd(),ln)}function eH(){for(;ut!==null&&!At();)Qj(ut)}function Qj(i){var s=Sj(i.alternate,i,yi);i.memoizedProps=i.pendingProps,s===null?mh(i):ut=s}function Jj(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=vj(u,s,s.pendingProps,s.type,void 0,mt);break;case 11:s=vj(u,s,s.pendingProps,s.type.render,s.ref,mt);break;case 5:Jg(s);default:Aj(u,s),s=ut=XE(s,yi),s=Sj(u,s,yi)}i.memoizedProps=i.pendingProps,s===null?mh(i):ut=s}function yl(i,s,u,p){li=Zo=null,Jg(s),sl=null,Jc=0;var b=s.return;try{if(qq(i,b,s,u,mt)){ln=1,nh(i,Ur(u,i.current)),ut=null;return}}catch(_){if(b!==null)throw ut=b,_;ln=1,nh(i,Ur(u,i.current)),ut=null;return}s.flags&32768?(yt||p===1?i=!0:pl||(mt&536870912)!==0?i=!1:(Ji=i=!0,(p===2||p===9||p===3||p===6)&&(p=Sr.current,p!==null&&p.tag===13&&(p.flags|=16384))),e2(s,i)):mh(s)}function mh(i){var s=i;do{if((s.flags&32768)!==0){e2(s,Ji);return}i=s.return;var u=Vq(s.alternate,s,yi);if(u!==null){ut=u;return}if(s=s.sibling,s!==null){ut=s;return}ut=s=i}while(s!==null);ln===0&&(ln=5)}function e2(i,s){do{var u=Gq(i.alternate,i);if(u!==null){u.flags&=32767,ut=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){ut=i;return}ut=i=u}while(i!==null);ln=6,ut=null}function t2(i,s,u,p,b,_,M,D,W){i.cancelPendingCommit=null;do vh();while(Tn!==0);if((Et&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(_=s.lanes|s.childLanes,_|=Eg,ue(i,u,_,M,D,W),i===Ut&&(ut=Ut=null,mt=0),vl=s,no=i,bi=u,Dy=_,ky=b,Fj=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,aH(Ce,function(){return o2(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=$.T,$.T=null,b=q.p,q.p=2,M=Et,Et|=4;try{Wq(i,s,u)}finally{Et=M,q.p=b,$.T=p}}Tn=1,n2(),r2(),a2()}}function n2(){if(Tn===1){Tn=0;var i=no,s=vl,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=$.T,$.T=null;var p=q.p;q.p=2;var b=Et;Et|=4;try{$j(s,i);var _=Ky,M=qE(i.containerInfo),D=_.focusedElem,W=_.selectionRange;if(M!==D&&D&&D.ownerDocument&&UE(D.ownerDocument.documentElement,D)){if(W!==null&&wg(D)){var oe=W.start,pe=W.end;if(pe===void 0&&(pe=oe),"selectionStart"in D)D.selectionStart=oe,D.selectionEnd=Math.min(pe,D.value.length);else{var be=D.ownerDocument||document,le=be&&be.defaultView||window;if(le.getSelection){var de=le.getSelection(),Ie=D.textContent.length,We=Math.min(W.start,Ie),zt=W.end===void 0?We:Math.min(W.end,Ie);!de.extend&&We>zt&&(M=zt,zt=We,We=M);var te=BE(D,We),Q=BE(D,zt);if(te&&Q&&(de.rangeCount!==1||de.anchorNode!==te.node||de.anchorOffset!==te.offset||de.focusNode!==Q.node||de.focusOffset!==Q.offset)){var ae=be.createRange();ae.setStart(te.node,te.offset),de.removeAllRanges(),We>zt?(de.addRange(ae),de.extend(Q.node,Q.offset)):(ae.setEnd(Q.node,Q.offset),de.addRange(ae))}}}}for(be=[],de=D;de=de.parentNode;)de.nodeType===1&&be.push({element:de,left:de.scrollLeft,top:de.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<be.length;D++){var ge=be[D];ge.element.scrollLeft=ge.left,ge.element.scrollTop=ge.top}}jh=!!Zy,Ky=Zy=null}finally{Et=b,q.p=p,$.T=u}}i.current=s,Tn=2}}function r2(){if(Tn===2){Tn=0;var i=no,s=vl,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=$.T,$.T=null;var p=q.p;q.p=2;var b=Et;Et|=4;try{Nj(i,s.alternate,s)}finally{Et=b,q.p=p,$.T=u}}Tn=3}}function a2(){if(Tn===4||Tn===3){Tn=0,en();var i=no,s=vl,u=bi,p=Fj;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Tn=5:(Tn=0,vl=no=null,i2(i,i.pendingLanes));var b=i.pendingLanes;if(b===0&&(to=null),lt(u),s=s.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Ot,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=$.T,b=q.p,q.p=2,$.T=null;try{for(var _=i.onRecoverableError,M=0;M<p.length;M++){var D=p[M];_(D.value,{componentStack:D.stack})}}finally{$.T=s,q.p=b}}(bi&3)!==0&&vh(),ka(i),b=i.pendingLanes,(u&261930)!==0&&(b&42)!==0?i===$y?vu++:(vu=0,$y=i):vu=0,gu(0)}}function i2(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Xc(s)))}function vh(){return n2(),r2(),a2(),o2()}function o2(){if(Tn!==5)return!1;var i=no,s=Dy;Dy=0;var u=lt(bi),p=$.T,b=q.p;try{q.p=32>u?32:u,$.T=null,u=ky,ky=null;var _=no,M=bi;if(Tn=0,vl=no=null,bi=0,(Et&6)!==0)throw Error(r(331));var D=Et;if(Et|=4,Uj(_.current),Lj(_,_.current,M,u),Et=D,gu(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Ot,_)}catch{}return!0}finally{q.p=b,$.T=p,i2(i,s)}}function s2(i,s,u){s=Ur(u,s),s=py(i.stateNode,s,2),i=Zi(i,s,2),i!==null&&(ve(i,2),ka(i))}function Mt(i,s,u){if(i.tag===3)s2(i,i,u);else for(;s!==null;){if(s.tag===3){s2(s,i,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(to===null||!to.has(p))){i=Ur(u,i),u=lj(2),p=Zi(s,u,2),p!==null&&(cj(u,p,s,i),ve(p,2),ka(p));break}}s=s.return}}function Iy(i,s,u){var p=i.pingCache;if(p===null){p=i.pingCache=new Kq;var b=new Set;p.set(s,b)}else b=p.get(s),b===void 0&&(b=new Set,p.set(s,b));b.has(u)||(Ny=!0,b.add(u),i=tH.bind(null,i,s,u),s.then(i,i))}function tH(i,s,u){var p=i.pingCache;p!==null&&p.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,Ut===i&&(mt&u)===u&&(ln===4||ln===3&&(mt&62914560)===mt&&300>U()-uh?(Et&2)===0&&gl(i,0):My|=u,ml===mt&&(ml=0)),ka(i)}function l2(i,s){s===0&&(s=rt()),i=Go(i,s),i!==null&&(ve(i,s),ka(i))}function nH(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),l2(i,u)}function rH(i,s){var u=0;switch(i.tag){case 31:case 13:var p=i.stateNode,b=i.memoizedState;b!==null&&(u=b.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(s),l2(i,u)}function aH(i,s){return mn(i,s)}var gh=null,bl=null,By=!1,yh=!1,Uy=!1,ao=0;function ka(i){i!==bl&&i.next===null&&(bl===null?gh=bl=i:bl=bl.next=i),yh=!0,By||(By=!0,oH())}function gu(i,s){if(!Uy&&yh){Uy=!0;do for(var u=!1,p=gh;p!==null;){if(i!==0){var b=p.pendingLanes;if(b===0)var _=0;else{var M=p.suspendedLanes,D=p.pingedLanes;_=(1<<31-tn(42|i)+1)-1,_&=b&~(M&~D),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(u=!0,d2(p,_))}else _=mt,_=je(p,p===Ut?_:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(_&3)===0||Ee(p,_)||(u=!0,d2(p,_));p=p.next}while(u);Uy=!1}}function iH(){c2()}function c2(){yh=By=!1;var i=0;ao!==0&&vH()&&(i=ao);for(var s=U(),u=null,p=gh;p!==null;){var b=p.next,_=u2(p,s);_===0?(p.next=null,u===null?gh=b:u.next=b,b===null&&(bl=u)):(u=p,(i!==0||(_&3)!==0)&&(yh=!0)),p=b}Tn!==0&&Tn!==5||gu(i),ao!==0&&(ao=0)}function u2(i,s){for(var u=i.suspendedLanes,p=i.pingedLanes,b=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var M=31-tn(_),D=1<<M,W=b[M];W===-1?((D&u)===0||(D&p)!==0)&&(b[M]=Fe(D,s)):W<=s&&(i.expiredLanes|=D),_&=~D}if(s=Ut,u=mt,u=je(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,u===0||i===s&&(Nt===2||Nt===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&on(p),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Ee(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(p!==null&&on(p),lt(u)){case 2:case 8:u=Re;break;case 32:u=Ce;break;case 268435456:u=De;break;default:u=Ce}return p=f2.bind(null,i),u=mn(u,p),i.callbackPriority=s,i.callbackNode=u,s}return p!==null&&p!==null&&on(p),i.callbackPriority=2,i.callbackNode=null,2}function f2(i,s){if(Tn!==0&&Tn!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(vh()&&i.callbackNode!==u)return null;var p=mt;return p=je(i,i===Ut?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(Gj(i,p,s),u2(i,U()),i.callbackNode!=null&&i.callbackNode===u?f2.bind(null,i):null)}function d2(i,s){if(vh())return null;Gj(i,s,!0)}function oH(){yH(function(){(Et&6)!==0?mn(re,iH):c2()})}function qy(){if(ao===0){var i=al;i===0&&(i=$n,$n<<=1,($n&261888)===0&&($n=256)),ao=i}return ao}function h2(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Ed(""+i)}function p2(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function sH(i,s,u,p,b){if(s==="submit"&&u&&u.stateNode===b){var _=h2((b[Yn]||null).action),M=p.submitter;M&&(s=(s=M[Yn]||null)?h2(s.formAction):M.getAttribute("formAction"),s!==null&&(_=s,M=null));var D=new Rd("action","action",null,p,b);i.push({event:D,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(ao!==0){var W=M?p2(b,M):new FormData(b);ly(u,{pending:!0,data:W,method:b.method,action:_},null,W)}}else typeof _=="function"&&(D.preventDefault(),W=M?p2(b,M):new FormData(b),ly(u,{pending:!0,data:W,method:b.method,action:_},_,W))},currentTarget:b}]})}}for(var Hy=0;Hy<Og.length;Hy++){var Fy=Og[Hy],lH=Fy.toLowerCase(),cH=Fy[0].toUpperCase()+Fy.slice(1);da(lH,"on"+cH)}da(VE,"onAnimationEnd"),da(GE,"onAnimationIteration"),da(WE,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(Oq,"onTransitionRun"),da(Eq,"onTransitionStart"),da(Tq,"onTransitionCancel"),da(YE,"onTransitionEnd"),Fs("onMouseEnter",["mouseout","mouseover"]),Fs("onMouseLeave",["mouseout","mouseover"]),Fs("onPointerEnter",["pointerout","pointerover"]),Fs("onPointerLeave",["pointerout","pointerover"]),qo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qo("onBeforeInput",["compositionend","keypress","textInput","paste"]),qo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yu="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(" "),uH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yu));function m2(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var p=i[u],b=p.event;p=p.listeners;e:{var _=void 0;if(s)for(var M=p.length-1;0<=M;M--){var D=p[M],W=D.instance,oe=D.currentTarget;if(D=D.listener,W!==_&&b.isPropagationStopped())break e;_=D,b.currentTarget=oe;try{_(b)}catch(pe){Pd(pe)}b.currentTarget=null,_=W}else for(M=0;M<p.length;M++){if(D=p[M],W=D.instance,oe=D.currentTarget,D=D.listener,W!==_&&b.isPropagationStopped())break e;_=D,b.currentTarget=oe;try{_(b)}catch(pe){Pd(pe)}b.currentTarget=null,_=W}}}}function ft(i,s){var u=s[zc];u===void 0&&(u=s[zc]=new Set);var p=i+"__bubble";u.has(p)||(v2(s,i,2,!1),u.add(p))}function Vy(i,s,u){var p=0;s&&(p|=4),v2(u,i,p,s)}var bh="_reactListening"+Math.random().toString(36).slice(2);function Gy(i){if(!i[bh]){i[bh]=!0,cE.forEach(function(u){u!=="selectionchange"&&(uH.has(u)||Vy(u,!1,i),Vy(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[bh]||(s[bh]=!0,Vy("selectionchange",!1,s))}}function v2(i,s,u,p){switch(V2(s)){case 2:var b=LH;break;case 8:b=IH;break;default:b=sb}u=b.bind(null,s,u,i),b=void 0,!dg||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(b=!0),p?b!==void 0?i.addEventListener(s,u,{capture:!0,passive:b}):i.addEventListener(s,u,!0):b!==void 0?i.addEventListener(s,u,{passive:b}):i.addEventListener(s,u,!1)}function Wy(i,s,u,p,b){var _=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var M=p.tag;if(M===3||M===4){var D=p.stateNode.containerInfo;if(D===b)break;if(M===4)for(M=p.return;M!==null;){var W=M.tag;if((W===3||W===4)&&M.stateNode.containerInfo===b)return;M=M.return}for(;D!==null;){if(M=Us(D),M===null)return;if(W=M.tag,W===5||W===6||W===26||W===27){p=_=M;continue e}D=D.parentNode}}p=p.return}wE(function(){var oe=_,pe=ug(u),be=[];e:{var le=ZE.get(i);if(le!==void 0){var de=Rd,Ie=i;switch(i){case"keypress":if(jd(u)===0)break e;case"keydown":case"keyup":de=rq;break;case"focusin":Ie="focus",de=vg;break;case"focusout":Ie="blur",de=vg;break;case"beforeblur":case"afterblur":de=vg;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":de=AE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":de=VU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":de=oq;break;case VE:case GE:case WE:de=YU;break;case YE:de=lq;break;case"scroll":case"scrollend":de=HU;break;case"wheel":de=uq;break;case"copy":case"cut":case"paste":de=KU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":de=EE;break;case"toggle":case"beforetoggle":de=dq}var We=(s&4)!==0,zt=!We&&(i==="scroll"||i==="scrollend"),te=We?le!==null?le+"Capture":null:le;We=[];for(var Q=oe,ae;Q!==null;){var ge=Q;if(ae=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||ae===null||te===null||(ge=Bc(Q,te),ge!=null&&We.push(bu(Q,ge,ae))),zt)break;Q=Q.return}0<We.length&&(le=new de(le,Ie,null,u,pe),be.push({event:le,listeners:We}))}}if((s&7)===0){e:{if(le=i==="mouseover"||i==="pointerover",de=i==="mouseout"||i==="pointerout",le&&u!==cg&&(Ie=u.relatedTarget||u.fromElement)&&(Us(Ie)||Ie[ni]))break e;if((de||le)&&(le=pe.window===pe?pe:(le=pe.ownerDocument)?le.defaultView||le.parentWindow:window,de?(Ie=u.relatedTarget||u.toElement,de=oe,Ie=Ie?Us(Ie):null,Ie!==null&&(zt=o(Ie),We=Ie.tag,Ie!==zt||We!==5&&We!==27&&We!==6)&&(Ie=null)):(de=null,Ie=oe),de!==Ie)){if(We=AE,ge="onMouseLeave",te="onMouseEnter",Q="mouse",(i==="pointerout"||i==="pointerover")&&(We=EE,ge="onPointerLeave",te="onPointerEnter",Q="pointer"),zt=de==null?le:Ic(de),ae=Ie==null?le:Ic(Ie),le=new We(ge,Q+"leave",de,u,pe),le.target=zt,le.relatedTarget=ae,ge=null,Us(pe)===oe&&(We=new We(te,Q+"enter",Ie,u,pe),We.target=ae,We.relatedTarget=zt,ge=We),zt=ge,de&&Ie)t:{for(We=fH,te=de,Q=Ie,ae=0,ge=te;ge;ge=We(ge))ae++;ge=0;for(var Ve=Q;Ve;Ve=We(Ve))ge++;for(;0<ae-ge;)te=We(te),ae--;for(;0<ge-ae;)Q=We(Q),ge--;for(;ae--;){if(te===Q||Q!==null&&te===Q.alternate){We=te;break t}te=We(te),Q=We(Q)}We=null}else We=null;de!==null&&g2(be,le,de,We,!1),Ie!==null&&zt!==null&&g2(be,zt,Ie,We,!0)}}e:{if(le=oe?Ic(oe):window,de=le.nodeName&&le.nodeName.toLowerCase(),de==="select"||de==="input"&&le.type==="file")var wt=DE;else if(ME(le))if(kE)wt=Sq;else{wt=xq;var Ue=bq}else de=le.nodeName,!de||de.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?oe&&lg(oe.elementType)&&(wt=DE):wt=wq;if(wt&&(wt=wt(i,oe))){PE(be,wt,u,pe);break e}Ue&&Ue(i,le,oe),i==="focusout"&&oe&&le.type==="number"&&oe.memoizedProps.value!=null&&sg(le,"number",le.value)}switch(Ue=oe?Ic(oe):window,i){case"focusin":(ME(Ue)||Ue.contentEditable==="true")&&(Ks=Ue,Sg=oe,Yc=null);break;case"focusout":Yc=Sg=Ks=null;break;case"mousedown":_g=!0;break;case"contextmenu":case"mouseup":case"dragend":_g=!1,HE(be,u,pe);break;case"selectionchange":if(Aq)break;case"keydown":case"keyup":HE(be,u,pe)}var at;if(yg)e:{switch(i){case"compositionstart":var vt="onCompositionStart";break e;case"compositionend":vt="onCompositionEnd";break e;case"compositionupdate":vt="onCompositionUpdate";break e}vt=void 0}else Zs?RE(i,u)&&(vt="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(vt="onCompositionStart");vt&&(TE&&u.locale!=="ko"&&(Zs||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Zs&&(at=SE()):(qi=pe,hg="value"in qi?qi.value:qi.textContent,Zs=!0)),Ue=xh(oe,vt),0<Ue.length&&(vt=new OE(vt,i,null,u,pe),be.push({event:vt,listeners:Ue}),at?vt.data=at:(at=NE(u),at!==null&&(vt.data=at)))),(at=pq?mq(i,u):vq(i,u))&&(vt=xh(oe,"onBeforeInput"),0<vt.length&&(Ue=new OE("onBeforeInput","beforeinput",null,u,pe),be.push({event:Ue,listeners:vt}),Ue.data=at)),sH(be,i,oe,u,pe)}m2(be,s)})}function bu(i,s,u){return{instance:i,listener:s,currentTarget:u}}function xh(i,s){for(var u=s+"Capture",p=[];i!==null;){var b=i,_=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||_===null||(b=Bc(i,u),b!=null&&p.unshift(bu(i,b,_)),b=Bc(i,s),b!=null&&p.push(bu(i,b,_))),i.tag===3)return p;i=i.return}return[]}function fH(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function g2(i,s,u,p,b){for(var _=s._reactName,M=[];u!==null&&u!==p;){var D=u,W=D.alternate,oe=D.stateNode;if(D=D.tag,W!==null&&W===p)break;D!==5&&D!==26&&D!==27||oe===null||(W=oe,b?(oe=Bc(u,_),oe!=null&&M.unshift(bu(u,oe,W))):b||(oe=Bc(u,_),oe!=null&&M.push(bu(u,oe,W)))),u=u.return}M.length!==0&&i.push({event:s,listeners:M})}var dH=/\r\n?/g,hH=/\u0000|\uFFFD/g;function y2(i){return(typeof i=="string"?i:""+i).replace(dH,`
|
|
49
|
-
`).replace(hH,"")}function b2(i,s){return s=y2(s),y2(i)===s}function $t(i,s,u,p,b,_){switch(u){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||Gs(i,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&Gs(i,""+p);break;case"className":Ad(i,"class",p);break;case"tabIndex":Ad(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Ad(i,u,p);break;case"style":bE(i,p,_);break;case"data":if(s!=="object"){Ad(i,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=Ed(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.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 _=="function"&&(u==="formAction"?(s!=="input"&&$t(i,s,"name",b.name,b,null),$t(i,s,"formEncType",b.formEncType,b,null),$t(i,s,"formMethod",b.formMethod,b,null),$t(i,s,"formTarget",b.formTarget,b,null)):($t(i,s,"encType",b.encType,b,null),$t(i,s,"method",b.method,b,null),$t(i,s,"target",b.target,b,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=Ed(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=ai);break;case"onScroll":p!=null&&ft("scroll",i);break;case"onScrollEnd":p!=null&&ft("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=Ed(""+p),i.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":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.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":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":ft("beforetoggle",i),ft("toggle",i),_d(i,"popover",p);break;case"xlinkActuate":ri(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":ri(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":ri(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":ri(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":ri(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":ri(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":ri(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":ri(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":ri(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":_d(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=UU.get(u)||u,_d(i,u,p))}}function Yy(i,s,u,p,b,_){switch(u){case"style":bE(i,p,_);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(b.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof p=="string"?Gs(i,p):(typeof p=="number"||typeof p=="bigint")&&Gs(i,""+p);break;case"onScroll":p!=null&&ft("scroll",i);break;case"onScrollEnd":p!=null&&ft("scrollend",i);break;case"onClick":p!=null&&(i.onclick=ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uE.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(b=u.endsWith("Capture"),s=u.slice(2,b?u.length-7:void 0),_=i[Yn]||null,_=_!=null?_[u]:null,typeof _=="function"&&i.removeEventListener(s,_,b),typeof p=="function")){typeof _!="function"&&_!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,p,b);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):_d(i,u,p)}}}function Un(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",i),ft("load",i);var p=!1,b=!1,_;for(_ in u)if(u.hasOwnProperty(_)){var M=u[_];if(M!=null)switch(_){case"src":p=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$t(i,s,_,M,u,null)}}b&&$t(i,s,"srcSet",u.srcSet,u,null),p&&$t(i,s,"src",u.src,u,null);return;case"input":ft("invalid",i);var D=_=M=b=null,W=null,oe=null;for(p in u)if(u.hasOwnProperty(p)){var pe=u[p];if(pe!=null)switch(p){case"name":b=pe;break;case"type":M=pe;break;case"checked":W=pe;break;case"defaultChecked":oe=pe;break;case"value":_=pe;break;case"defaultValue":D=pe;break;case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,s));break;default:$t(i,s,p,pe,u,null)}}mE(i,_,D,W,oe,M,b,!1);return;case"select":ft("invalid",i),p=M=_=null;for(b in u)if(u.hasOwnProperty(b)&&(D=u[b],D!=null))switch(b){case"value":_=D;break;case"defaultValue":M=D;break;case"multiple":p=D;default:$t(i,s,b,D,u,null)}s=_,u=M,i.multiple=!!p,s!=null?Vs(i,!!p,s,!1):u!=null&&Vs(i,!!p,u,!0);return;case"textarea":ft("invalid",i),_=b=p=null;for(M in u)if(u.hasOwnProperty(M)&&(D=u[M],D!=null))switch(M){case"value":p=D;break;case"defaultValue":b=D;break;case"children":_=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:$t(i,s,M,D,u,null)}gE(i,p,b,_);return;case"option":for(W in u)if(u.hasOwnProperty(W)&&(p=u[W],p!=null))switch(W){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:$t(i,s,W,p,u,null)}return;case"dialog":ft("beforetoggle",i),ft("toggle",i),ft("cancel",i),ft("close",i);break;case"iframe":case"object":ft("load",i);break;case"video":case"audio":for(p=0;p<yu.length;p++)ft(yu[p],i);break;case"image":ft("error",i),ft("load",i);break;case"details":ft("toggle",i);break;case"embed":case"source":case"link":ft("error",i),ft("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(oe in u)if(u.hasOwnProperty(oe)&&(p=u[oe],p!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$t(i,s,oe,p,u,null)}return;default:if(lg(s)){for(pe in u)u.hasOwnProperty(pe)&&(p=u[pe],p!==void 0&&Yy(i,s,pe,p,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(p=u[D],p!=null&&$t(i,s,D,p,u,null))}function pH(i,s,u,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,_=null,M=null,D=null,W=null,oe=null,pe=null;for(de in u){var be=u[de];if(u.hasOwnProperty(de)&&be!=null)switch(de){case"checked":break;case"value":break;case"defaultValue":W=be;default:p.hasOwnProperty(de)||$t(i,s,de,null,p,be)}}for(var le in p){var de=p[le];if(be=u[le],p.hasOwnProperty(le)&&(de!=null||be!=null))switch(le){case"type":_=de;break;case"name":b=de;break;case"checked":oe=de;break;case"defaultChecked":pe=de;break;case"value":M=de;break;case"defaultValue":D=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(r(137,s));break;default:de!==be&&$t(i,s,le,de,p,be)}}og(i,M,D,W,oe,pe,_,b);return;case"select":de=M=D=le=null;for(_ in u)if(W=u[_],u.hasOwnProperty(_)&&W!=null)switch(_){case"value":break;case"multiple":de=W;default:p.hasOwnProperty(_)||$t(i,s,_,null,p,W)}for(b in p)if(_=p[b],W=u[b],p.hasOwnProperty(b)&&(_!=null||W!=null))switch(b){case"value":le=_;break;case"defaultValue":D=_;break;case"multiple":M=_;default:_!==W&&$t(i,s,b,_,p,W)}s=D,u=M,p=de,le!=null?Vs(i,!!u,le,!1):!!p!=!!u&&(s!=null?Vs(i,!!u,s,!0):Vs(i,!!u,u?[]:"",!1));return;case"textarea":de=le=null;for(D in u)if(b=u[D],u.hasOwnProperty(D)&&b!=null&&!p.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:$t(i,s,D,null,p,b)}for(M in p)if(b=p[M],_=u[M],p.hasOwnProperty(M)&&(b!=null||_!=null))switch(M){case"value":le=b;break;case"defaultValue":de=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(r(91));break;default:b!==_&&$t(i,s,M,b,p,_)}vE(i,le,de);return;case"option":for(var Ie in u)if(le=u[Ie],u.hasOwnProperty(Ie)&&le!=null&&!p.hasOwnProperty(Ie))switch(Ie){case"selected":i.selected=!1;break;default:$t(i,s,Ie,null,p,le)}for(W in p)if(le=p[W],de=u[W],p.hasOwnProperty(W)&&le!==de&&(le!=null||de!=null))switch(W){case"selected":i.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:$t(i,s,W,le,p,de)}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 We in u)le=u[We],u.hasOwnProperty(We)&&le!=null&&!p.hasOwnProperty(We)&&$t(i,s,We,null,p,le);for(oe in p)if(le=p[oe],de=u[oe],p.hasOwnProperty(oe)&&le!==de&&(le!=null||de!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,s));break;default:$t(i,s,oe,le,p,de)}return;default:if(lg(s)){for(var zt in u)le=u[zt],u.hasOwnProperty(zt)&&le!==void 0&&!p.hasOwnProperty(zt)&&Yy(i,s,zt,void 0,p,le);for(pe in p)le=p[pe],de=u[pe],!p.hasOwnProperty(pe)||le===de||le===void 0&&de===void 0||Yy(i,s,pe,le,p,de);return}}for(var te in u)le=u[te],u.hasOwnProperty(te)&&le!=null&&!p.hasOwnProperty(te)&&$t(i,s,te,null,p,le);for(be in p)le=p[be],de=u[be],!p.hasOwnProperty(be)||le===de||le==null&&de==null||$t(i,s,be,le,p,de)}function x2(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mH(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var b=u[p],_=b.transferSize,M=b.initiatorType,D=b.duration;if(_&&D&&x2(M)){for(M=0,D=b.responseEnd,p+=1;p<u.length;p++){var W=u[p],oe=W.startTime;if(oe>D)break;var pe=W.transferSize,be=W.initiatorType;pe&&x2(be)&&(W=W.responseEnd,M+=pe*(W<D?1:(D-oe)/(W-oe)))}if(--p,s+=8*(_+M)/(b.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Zy=null,Ky=null;function wh(i){return i.nodeType===9?i:i.ownerDocument}function w2(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function S2(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function Xy(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Qy=null;function vH(){var i=window.event;return i&&i.type==="popstate"?i===Qy?!1:(Qy=i,!0):(Qy=null,!1)}var _2=typeof setTimeout=="function"?setTimeout:void 0,gH=typeof clearTimeout=="function"?clearTimeout:void 0,A2=typeof Promise=="function"?Promise:void 0,yH=typeof queueMicrotask=="function"?queueMicrotask:typeof A2<"u"?function(i){return A2.resolve(null).then(i).catch(bH)}:_2;function bH(i){setTimeout(function(){throw i})}function io(i){return i==="head"}function O2(i,s){var u=s,p=0;do{var b=u.nextSibling;if(i.removeChild(u),b&&b.nodeType===8)if(u=b.data,u==="/$"||u==="/&"){if(p===0){i.removeChild(b),_l(s);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")xu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,xu(u);for(var _=u.firstChild;_;){var M=_.nextSibling,D=_.nodeName;_[Lc]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&_.rel.toLowerCase()==="stylesheet"||u.removeChild(_),_=M}}else u==="body"&&xu(i.ownerDocument.body);u=b}while(u);_l(s)}function E2(i,s){var u=i;i=0;do{var p=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=p}while(u)}function Jy(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Jy(u),ag(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function xH(i,s,u,p){for(;i.nodeType===1;){var b=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[Lc])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==b.rel||i.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||i.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||i.getAttribute("title")!==(b.title==null?null:b.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(b.src==null?null:b.src)||i.getAttribute("type")!==(b.type==null?null:b.type)||i.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var _=b.name==null?null:""+b.name;if(b.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=Gr(i.nextSibling),i===null)break}return null}function wH(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Gr(i.nextSibling),i===null))return null;return i}function T2(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Gr(i.nextSibling),i===null))return null;return i}function eb(i){return i.data==="$?"||i.data==="$~"}function tb(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function SH(i,s){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||u.readyState!=="loading")s();else{var p=function(){s(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function Gr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var nb=null;function j2(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return Gr(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function C2(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return i;s--}else u!=="/$"&&u!=="/&"||s++}i=i.previousSibling}return null}function R2(i,s,u){switch(s=wh(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function xu(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);ag(i)}var Wr=new Map,N2=new Set;function Sh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var xi=q.d;q.d={f:_H,r:AH,D:OH,C:EH,L:TH,m:jH,X:RH,S:CH,M:NH};function _H(){var i=xi.f(),s=hh();return i||s}function AH(i){var s=qs(i);s!==null&&s.tag===5&&s.type==="form"?YT(s):xi.r(i)}var xl=typeof document>"u"?null:document;function M2(i,s,u){var p=xl;if(p&&typeof s=="string"&&s){var b=Ir(s);b='link[rel="'+i+'"][href="'+b+'"]',typeof u=="string"&&(b+='[crossorigin="'+u+'"]'),N2.has(b)||(N2.add(b),i={rel:i,crossOrigin:u,href:s},p.querySelector(b)===null&&(s=p.createElement("link"),Un(s,"link",i),Mn(s),p.head.appendChild(s)))}}function OH(i){xi.D(i),M2("dns-prefetch",i,null)}function EH(i,s){xi.C(i,s),M2("preconnect",i,s)}function TH(i,s,u){xi.L(i,s,u);var p=xl;if(p&&i&&s){var b='link[rel="preload"][as="'+Ir(s)+'"]';s==="image"&&u&&u.imageSrcSet?(b+='[imagesrcset="'+Ir(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(b+='[imagesizes="'+Ir(u.imageSizes)+'"]')):b+='[href="'+Ir(i)+'"]';var _=b;switch(s){case"style":_=wl(i);break;case"script":_=Sl(i)}Wr.has(_)||(i=h({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),Wr.set(_,i),p.querySelector(b)!==null||s==="style"&&p.querySelector(wu(_))||s==="script"&&p.querySelector(Su(_))||(s=p.createElement("link"),Un(s,"link",i),Mn(s),p.head.appendChild(s)))}}function jH(i,s){xi.m(i,s);var u=xl;if(u&&i){var p=s&&typeof s.as=="string"?s.as:"script",b='link[rel="modulepreload"][as="'+Ir(p)+'"][href="'+Ir(i)+'"]',_=b;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Sl(i)}if(!Wr.has(_)&&(i=h({rel:"modulepreload",href:i},s),Wr.set(_,i),u.querySelector(b)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Su(_)))return}p=u.createElement("link"),Un(p,"link",i),Mn(p),u.head.appendChild(p)}}}function CH(i,s,u){xi.S(i,s,u);var p=xl;if(p&&i){var b=Hs(p).hoistableStyles,_=wl(i);s=s||"default";var M=b.get(_);if(!M){var D={loading:0,preload:null};if(M=p.querySelector(wu(_)))D.loading=5;else{i=h({rel:"stylesheet",href:i,"data-precedence":s},u),(u=Wr.get(_))&&rb(i,u);var W=M=p.createElement("link");Mn(W),Un(W,"link",i),W._p=new Promise(function(oe,pe){W.onload=oe,W.onerror=pe}),W.addEventListener("load",function(){D.loading|=1}),W.addEventListener("error",function(){D.loading|=2}),D.loading|=4,_h(M,s,p)}M={type:"stylesheet",instance:M,count:1,state:D},b.set(_,M)}}}function RH(i,s){xi.X(i,s);var u=xl;if(u&&i){var p=Hs(u).hoistableScripts,b=Sl(i),_=p.get(b);_||(_=u.querySelector(Su(b)),_||(i=h({src:i,async:!0},s),(s=Wr.get(b))&&ab(i,s),_=u.createElement("script"),Mn(_),Un(_,"link",i),u.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},p.set(b,_))}}function NH(i,s){xi.M(i,s);var u=xl;if(u&&i){var p=Hs(u).hoistableScripts,b=Sl(i),_=p.get(b);_||(_=u.querySelector(Su(b)),_||(i=h({src:i,async:!0,type:"module"},s),(s=Wr.get(b))&&ab(i,s),_=u.createElement("script"),Mn(_),Un(_,"link",i),u.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},p.set(b,_))}}function P2(i,s,u,p){var b=(b=ce.current)?Sh(b):null;if(!b)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=wl(u.href),u=Hs(b).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=wl(u.href);var _=Hs(b).hoistableStyles,M=_.get(i);if(M||(b=b.ownerDocument||b,M={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,M),(_=b.querySelector(wu(i)))&&!_._p&&(M.instance=_,M.state.loading=5),Wr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Wr.set(i,u),_||MH(b,i,u,M.state))),s&&p===null)throw Error(r(528,""));return M}if(s&&p!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Sl(u),u=Hs(b).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function wl(i){return'href="'+Ir(i)+'"'}function wu(i){return'link[rel="stylesheet"]['+i+"]"}function D2(i){return h({},i,{"data-precedence":i.precedence,precedence:null})}function MH(i,s,u,p){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=i.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),Un(s,"link",u),Mn(s),i.head.appendChild(s))}function Sl(i){return'[src="'+Ir(i)+'"]'}function Su(i){return"script[async]"+i}function k2(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=i.querySelector('style[data-href~="'+Ir(u.href)+'"]');if(p)return s.instance=p,Mn(p),p;var b=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),Mn(p),Un(p,"style",b),_h(p,u.precedence,i),s.instance=p;case"stylesheet":b=wl(u.href);var _=i.querySelector(wu(b));if(_)return s.state.loading|=4,s.instance=_,Mn(_),_;p=D2(u),(b=Wr.get(b))&&rb(p,b),_=(i.ownerDocument||i).createElement("link"),Mn(_);var M=_;return M._p=new Promise(function(D,W){M.onload=D,M.onerror=W}),Un(_,"link",p),s.state.loading|=4,_h(_,u.precedence,i),s.instance=_;case"script":return _=Sl(u.src),(b=i.querySelector(Su(_)))?(s.instance=b,Mn(b),b):(p=u,(b=Wr.get(_))&&(p=h({},u),ab(p,b)),i=i.ownerDocument||i,b=i.createElement("script"),Mn(b),Un(b,"link",p),i.head.appendChild(b),s.instance=b);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,_h(p,u.precedence,i));return s.instance}function _h(i,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=p.length?p[p.length-1]:null,_=b,M=0;M<p.length;M++){var D=p[M];if(D.dataset.precedence===s)_=D;else if(_!==b)break}_?_.parentNode.insertBefore(i,_.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function rb(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function ab(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var Ah=null;function $2(i,s,u){if(Ah===null){var p=new Map,b=Ah=new Map;b.set(u,p)}else b=Ah,p=b.get(u),p||(p=new Map,b.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),b=0;b<u.length;b++){var _=u[b];if(!(_[Lc]||_[En]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var M=_.getAttribute(s)||"";M=i+M;var D=p.get(M);D?D.push(_):p.set(M,[_])}}return p}function z2(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function PH(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function L2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function DH(i,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var b=wl(p.href),_=s.querySelector(wu(b));if(_){s=_._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=Oh.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=_,Mn(_);return}_=s.ownerDocument||s,p=D2(p),(b=Wr.get(b))&&rb(p,b),_=_.createElement("link"),Mn(_);var M=_;M._p=new Promise(function(D,W){M.onload=D,M.onerror=W}),Un(_,"link",p),u.instance=_}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=Oh.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var ib=0;function kH(i,s){return i.stylesheets&&i.count===0&&Th(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var p=setTimeout(function(){if(i.stylesheets&&Th(i,i.stylesheets),i.unsuspend){var _=i.unsuspend;i.unsuspend=null,_()}},6e4+s);0<i.imgBytes&&ib===0&&(ib=62500*mH());var b=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&Th(i,i.stylesheets),i.unsuspend)){var _=i.unsuspend;i.unsuspend=null,_()}},(i.imgBytes>ib?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(b)}}:null}function Oh(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Th(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Eh=null;function Th(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Eh=new Map,s.forEach($H,i),Eh=null,Oh.call(i))}function $H(i,s){if(!(s.state.loading&4)){var u=Eh.get(i);if(u)var p=u.get(null);else{u=new Map,Eh.set(i,u);for(var b=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<b.length;_++){var M=b[_];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(u.set(M.dataset.precedence,M),p=M)}p&&u.set(null,p)}b=s.instance,M=b.getAttribute("data-precedence"),_=u.get(M)||p,_===p&&u.set(null,b),u.set(M,b),this.count++,p=Oh.bind(this),b.addEventListener("load",p),b.addEventListener("error",p),_?_.parentNode.insertBefore(b,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(b,i.firstChild)),s.state.loading|=4}}var _u={$$typeof:j,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function zH(i,s,u,p,b,_,M,D,W){this.tag=1,this.containerInfo=i,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=ne(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ne(0),this.hiddenUpdates=ne(null),this.identifierPrefix=p,this.onUncaughtError=b,this.onCaughtError=_,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function I2(i,s,u,p,b,_,M,D,W,oe,pe,be){return i=new zH(i,s,u,M,W,oe,pe,be,D),s=1,_===!0&&(s|=24),_=wr(3,null,null,s),i.current=_,_.stateNode=i,s=Lg(),s.refCount++,i.pooledCache=s,s.refCount++,_.memoizedState={element:p,isDehydrated:u,cache:s},qg(_),i}function B2(i){return i?(i=Js,i):Js}function U2(i,s,u,p,b,_){b=B2(b),p.context===null?p.context=b:p.pendingContext=b,p=Yi(s),p.payload={element:u},_=_===void 0?null:_,_!==null&&(p.callback=_),u=Zi(i,p,s),u!==null&&(vr(u,i,s),tu(u,i,s))}function q2(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function ob(i,s){q2(i,s),(i=i.alternate)&&q2(i,s)}function H2(i){if(i.tag===13||i.tag===31){var s=Go(i,67108864);s!==null&&vr(s,i,67108864),ob(i,67108864)}}function F2(i){if(i.tag===13||i.tag===31){var s=Er();s=qe(s);var u=Go(i,s);u!==null&&vr(u,i,s),ob(i,s)}}var jh=!0;function LH(i,s,u,p){var b=$.T;$.T=null;var _=q.p;try{q.p=2,sb(i,s,u,p)}finally{q.p=_,$.T=b}}function IH(i,s,u,p){var b=$.T;$.T=null;var _=q.p;try{q.p=8,sb(i,s,u,p)}finally{q.p=_,$.T=b}}function sb(i,s,u,p){if(jh){var b=lb(p);if(b===null)Wy(i,s,p,Ch,u),G2(i,p);else if(UH(b,i,s,u,p))p.stopPropagation();else if(G2(i,p),s&4&&-1<BH.indexOf(i)){for(;b!==null;){var _=qs(b);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var M=Ae(_.pendingLanes);if(M!==0){var D=_;for(D.pendingLanes|=2,D.entangledLanes|=2;M;){var W=1<<31-tn(M);D.entanglements[1]|=W,M&=~W}ka(_),(Et&6)===0&&(fh=U()+500,gu(0))}}break;case 31:case 13:D=Go(_,2),D!==null&&vr(D,_,2),hh(),ob(_,2)}if(_=lb(p),_===null&&Wy(i,s,p,Ch,u),_===b)break;b=_}b!==null&&p.stopPropagation()}else Wy(i,s,p,null,u)}}function lb(i){return i=ug(i),cb(i)}var Ch=null;function cb(i){if(Ch=null,i=Us(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===31){if(i=c(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Ch=i,null}function V2(i){switch(i){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(ee()){case re:return 2;case Re:return 8;case Ce:case Te:return 32;case De:return 268435456;default:return 32}default:return 32}}var ub=!1,oo=null,so=null,lo=null,Au=new Map,Ou=new Map,co=[],BH="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 G2(i,s){switch(i){case"focusin":case"focusout":oo=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":Au.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ou.delete(s.pointerId)}}function Eu(i,s,u,p,b,_){return i===null||i.nativeEvent!==_?(i={blockedOn:s,domEventName:u,eventSystemFlags:p,nativeEvent:_,targetContainers:[b]},s!==null&&(s=qs(s),s!==null&&H2(s)),i):(i.eventSystemFlags|=p,s=i.targetContainers,b!==null&&s.indexOf(b)===-1&&s.push(b),i)}function UH(i,s,u,p,b){switch(s){case"focusin":return oo=Eu(oo,i,s,u,p,b),!0;case"dragenter":return so=Eu(so,i,s,u,p,b),!0;case"mouseover":return lo=Eu(lo,i,s,u,p,b),!0;case"pointerover":var _=b.pointerId;return Au.set(_,Eu(Au.get(_)||null,i,s,u,p,b)),!0;case"gotpointercapture":return _=b.pointerId,Ou.set(_,Eu(Ou.get(_)||null,i,s,u,p,b)),!0}return!1}function W2(i){var s=Us(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,Uo(i.priority,function(){F2(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,Uo(i.priority,function(){F2(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Rh(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=lb(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);cg=p,u.target.dispatchEvent(p),cg=null}else return s=qs(u),s!==null&&H2(s),i.blockedOn=u,!1;s.shift()}return!0}function Y2(i,s,u){Rh(i)&&u.delete(s)}function qH(){ub=!1,oo!==null&&Rh(oo)&&(oo=null),so!==null&&Rh(so)&&(so=null),lo!==null&&Rh(lo)&&(lo=null),Au.forEach(Y2),Ou.forEach(Y2)}function Nh(i,s){i.blockedOn===s&&(i.blockedOn=null,ub||(ub=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qH)))}var Mh=null;function Z2(i){Mh!==i&&(Mh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Mh===i&&(Mh=null);for(var s=0;s<i.length;s+=3){var u=i[s],p=i[s+1],b=i[s+2];if(typeof p!="function"){if(cb(p||u)===null)continue;break}var _=qs(u);_!==null&&(i.splice(s,3),s-=3,ly(_,{pending:!0,data:b,method:u.method,action:p},p,b))}}))}function _l(i){function s(W){return Nh(W,i)}oo!==null&&Nh(oo,i),so!==null&&Nh(so,i),lo!==null&&Nh(lo,i),Au.forEach(s),Ou.forEach(s);for(var u=0;u<co.length;u++){var p=co[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<co.length&&(u=co[0],u.blockedOn===null);)W2(u),u.blockedOn===null&&co.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var b=u[p],_=u[p+1],M=b[Yn]||null;if(typeof _=="function")M||Z2(u);else if(M){var D=null;if(_&&_.hasAttribute("formAction")){if(b=_,M=_[Yn]||null)D=M.formAction;else if(cb(b)!==null)continue}else D=M.action;typeof D=="function"?u[p+1]=D:(u.splice(p,3),p-=3),Z2(u)}}}function K2(){function i(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(M){return b=M})},focusReset:"manual",scroll:"manual"})}function s(){b!==null&&(b(),b=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,b=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),b!==null&&(b(),b=null)}}}function fb(i){this._internalRoot=i}Ph.prototype.render=fb.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,p=Er();U2(u,p,i,s,null,null)},Ph.prototype.unmount=fb.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;U2(i.current,2,null,i,null,null),hh(),s[ni]=null}};function Ph(i){this._internalRoot=i}Ph.prototype.unstable_scheduleHydration=function(i){if(i){var s=nn();i={blockedOn:null,target:i,priority:s};for(var u=0;u<co.length&&s!==0&&s<co[u].priority;u++);co.splice(u,0,i),u===0&&W2(i)}};var X2=t.version;if(X2!=="19.2.6")throw Error(r(527,X2,"19.2.6"));q.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var HH={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dh.isDisabled&&Dh.supportsFiber)try{Ot=Dh.inject(HH),xt=Dh}catch{}}return ju.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,p="",b=aj,_=ij,M=oj;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(b=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(M=s.onRecoverableError)),s=I2(i,1,!1,null,null,u,p,null,b,_,M,K2),i[ni]=s.current,Gy(i),new fb(s)},ju.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var p=!1,b="",_=aj,M=ij,D=oj,W=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(b=u.identifierPrefix),u.onUncaughtError!==void 0&&(_=u.onUncaughtError),u.onCaughtError!==void 0&&(M=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.formState!==void 0&&(W=u.formState)),s=I2(i,1,!0,s,u??null,p,b,W,_,M,D,K2),s.context=B2(null),u=s.current,p=Er(),p=qe(p),b=Yi(p),b.callback=null,Zi(u,b,p),u=p,s.current.lanes=u,ve(s,u),ka(s),i[ni]=s.current,Gy(i),new Ph(s)},ju.version="19.2.6",ju}var sC;function JH(){if(sC)return pb.exports;sC=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(),pb.exports=QH(),pb.exports}var e9=JH(),t9=(e,t,n,r,a,o,l,c)=>{let f=document.documentElement,d=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(A=>{let S=A==="class",w=S&&o?a.map(O=>o[O]||O):a;S?(f.classList.remove(...w),f.classList.add(o&&o[x]?o[x]:x)):f.setAttribute(A,x)}),h(x)}function h(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,A=l&&x==="system"?g():x;m(A)}catch{}},lC=["light","dark"],Sz="(prefers-color-scheme: dark)",n9=typeof window>"u",z_=y.createContext(void 0),r9={setTheme:e=>{},themes:[]},Yf=()=>{var e;return(e=y.useContext(z_))!=null?e:r9},a9=e=>y.useContext(z_)?y.createElement(y.Fragment,null,e.children):y.createElement(o9,{...e}),i9=["light","dark"],o9=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:a="theme",themes:o=i9,defaultTheme:l=n?"system":"light",attribute:c="data-theme",value:f,children:d,nonce:m,scriptProps:h})=>{let[g,x]=y.useState(()=>l9(a,l)),[A,S]=y.useState(()=>g==="system"?yb():g),w=f?Object.values(f):o,O=y.useCallback(T=>{let R=T;if(!R)return;T==="system"&&n&&(R=yb());let N=f?f[R]:R,k=t?c9(m):null,z=document.documentElement,V=B=>{B==="class"?(z.classList.remove(...w),N&&z.classList.add(N)):B.startsWith("data-")&&(N?z.setAttribute(B,N):z.removeAttribute(B))};if(Array.isArray(c)?c.forEach(V):V(c),r){let B=lC.includes(l)?l:null,I=lC.includes(R)?R:B;z.style.colorScheme=I}k==null||k()},[m]),E=y.useCallback(T=>{let R=typeof T=="function"?T(g):T;x(R);try{localStorage.setItem(a,R)}catch{}},[g]),j=y.useCallback(T=>{let R=yb(T);S(R),g==="system"&&n&&!e&&O("system")},[g,e]);y.useEffect(()=>{let T=window.matchMedia(Sz);return T.addListener(j),j(T),()=>T.removeListener(j)},[j]),y.useEffect(()=>{let T=R=>{R.key===a&&(R.newValue?x(R.newValue):E(l))};return window.addEventListener("storage",T),()=>window.removeEventListener("storage",T)},[E]),y.useEffect(()=>{O(e??g)},[e,g]);let C=y.useMemo(()=>({theme:g,setTheme:E,forcedTheme:e,resolvedTheme:g==="system"?A:g,themes:n?[...o,"system"]:o,systemTheme:n?A:void 0}),[g,E,e,A,n,o]);return y.createElement(z_.Provider,{value:C},y.createElement(s9,{forcedTheme:e,storageKey:a,attribute:c,enableSystem:n,enableColorScheme:r,defaultTheme:l,value:f,themes:o,nonce:m,scriptProps:h}),d)},s9=y.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:l,themes:c,nonce:f,scriptProps:d})=>{let m=JSON.stringify([n,t,o,e,c,l,r,a]).slice(1,-1);return y.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${t9.toString()})(${m})`}})}),l9=(e,t)=>{if(n9)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},c9=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},yb=e=>(e||(e=window.matchMedia(Sz)),e.matches?"dark":"light");/**
|
|
50
|
-
* react-router v7.15.1
|
|
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 cC="popstate";function uC(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function u9(e={}){function t(r,a){var d;let o=(d=a.state)==null?void 0:d.masked,{pathname:l,search:c,hash:f}=o||r.location;return L1("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",o?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:af(a)}return d9(t,n,null,e)}function Qt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ia(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function f9(){return Math.random().toString(36).substring(2,10)}function fC(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function L1(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?yc(t):t,state:n,key:t&&t.key||r||f9(),mask:a}}function af({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 yc(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 d9(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c="POP",f=null,d=m();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function m(){return(l.state||{idx:null}).idx}function h(){c="POP";let w=m(),O=w==null?null:w-d;d=w,f&&f({action:c,location:S.location,delta:O})}function g(w,O){c="PUSH";let E=uC(w)?w:L1(S.location,w,O);d=m()+1;let j=fC(E,d),C=S.createHref(E.mask||E);try{l.pushState(j,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;a.location.assign(C)}o&&f&&f({action:c,location:S.location,delta:1})}function x(w,O){c="REPLACE";let E=uC(w)?w:L1(S.location,w,O);d=m();let j=fC(E,d),C=S.createHref(E.mask||E);l.replaceState(j,"",C),o&&f&&f({action:c,location:S.location,delta:0})}function A(w){return h9(w)}let S={get action(){return c},get location(){return e(a,l)},listen(w){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(cC,h),f=w,()=>{a.removeEventListener(cC,h),f=null}},createHref(w){return t(a,w)},createURL:A,encodeLocation(w){let O=A(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:g,replace:x,go(w){return l.go(w)}};return S}function h9(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Qt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:af(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function _z(e,t,n="/"){return p9(e,t,n,!1)}function p9(e,t,n,r,a){let o=typeof t=="string"?yc(t):t,l=Ci(o.pathname||"/",n);if(l==null)return null;let c=m9(e),f=null,d=T9(l);for(let m=0;f==null&&m<c.length;++m)f=O9(c[m],d,r);return f}function m9(e){let t=Az(e);return v9(t),t}function Az(e,t=[],n=[],r="",a=!1){let o=(l,c,f=a,d)=>{let m={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;Qt(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 h=_a([r,m.relativePath]),g=n.concat(m);l.children&&l.children.length>0&&(Qt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Az(l.children,t,g,h,f)),!(l.path==null&&!l.index)&&t.push({path:h,score:_9(h,l.index),routesMeta:g})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))o(l,c);else for(let d of Oz(l.path))o(l,c,!0,d)}),t}function Oz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Oz(r.join("/")),c=[];return c.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function v9(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:A9(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var g9=/^:[\w-]+$/,y9=3,b9=2,x9=1,w9=10,S9=-2,dC=e=>e==="*";function _9(e,t){let n=e.split("/"),r=n.length;return n.some(dC)&&(r+=S9),t&&(r+=b9),n.filter(a=>!dC(a)).reduce((a,o)=>a+(g9.test(o)?y9:o===""?x9:w9),r)}function A9(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function O9(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",h=xp({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),g=f.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=xp({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!h)return null;Object.assign(a,h.params),l.push({params:a,pathname:_a([o,h.pathname]),pathnameBase:N9(_a([o,h.pathnameBase])),route:g}),h.pathnameBase!=="/"&&(o=_a([o,h.pathnameBase]))}return l}function xp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=E9(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:h},g)=>{if(m==="*"){let A=c[g]||"";l=o.slice(0,o.length-A.length).replace(/(.)\/+$/,"$1")}const x=c[g];return h&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:l,pattern:e}}function E9(e,t=!1,n=!0){ia(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,f,d,m)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let h=m.charAt(d+l.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function T9(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ia(!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 Ci(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)||"/"}var j9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function C9(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?yc(e):e,o;return n?(n=Ez(n),n.startsWith("/")?o=hC(n.substring(1),"/"):o=hC(n,t)):o=t,{pathname:o,search:M9(r),hash:P9(a)}}function hC(e,t){let n=wp(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function bb(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 R9(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function L_(e){let t=R9(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Um(e,t,n,r=!1){let a;typeof e=="string"?a=yc(e):(a={...e},Qt(!a.pathname||!a.pathname.includes("?"),bb("?","pathname","search",a)),Qt(!a.pathname||!a.pathname.includes("#"),bb("#","pathname","hash",a)),Qt(!a.search||!a.search.includes("#"),bb("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let h=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),h-=1;a.pathname=g.join("/")}c=h>=0?t[h]:"/"}let f=C9(a,c),d=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Ez=e=>e.replace(/\/\/+/g,"/"),_a=e=>Ez(e.join("/")),wp=e=>e.replace(/\/+$/,""),N9=e=>wp(e).replace(/^\/*/,"/"),M9=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P9=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,D9=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function k9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $9(e){let t=e.map(n=>n.route.path).filter(Boolean);return _a(t)||"/"}var Tz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function jz(e,t){let n=e;if(typeof n!="string"||!j9.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Tz)try{let o=new URL(window.location.href),l=n.startsWith("//")?new URL(o.protocol+n):new URL(n),c=Ci(l.pathname,t);l.origin===o.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{ia(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Cz=["POST","PUT","PATCH","DELETE"];new Set(Cz);var z9=["GET",...Cz];new Set(z9);var bc=y.createContext(null);bc.displayName="DataRouter";var qm=y.createContext(null);qm.displayName="DataRouterState";var Rz=y.createContext(!1);function L9(){return y.useContext(Rz)}var Nz=y.createContext({isTransitioning:!1});Nz.displayName="ViewTransition";var I9=y.createContext(new Map);I9.displayName="Fetchers";var B9=y.createContext(null);B9.displayName="Await";var $r=y.createContext(null);$r.displayName="Navigation";var Zf=y.createContext(null);Zf.displayName="Location";var Ca=y.createContext({outlet:null,matches:[],isDataRoute:!1});Ca.displayName="Route";var I_=y.createContext(null);I_.displayName="RouteError";var Mz="REACT_ROUTER_ERROR",U9="REDIRECT",q9="ROUTE_ERROR_RESPONSE";function H9(e){if(e.startsWith(`${Mz}:${U9}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function F9(e){if(e.startsWith(`${Mz}:${q9}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new D9(t.status,t.statusText,t.data)}catch{}}function V9(e,{relative:t}={}){Qt(xc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=y.useContext($r),{hash:a,pathname:o,search:l}=Kf(e,{relative:t}),c=o;return n!=="/"&&(c=o==="/"?n:_a([n,o])),r.createHref({pathname:c,search:l,hash:a})}function xc(){return y.useContext(Zf)!=null}function zr(){return Qt(xc(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(Zf).location}var Pz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dz(e){y.useContext($r).static||y.useLayoutEffect(e)}function Xa(){let{isDataRoute:e}=y.useContext(Ca);return e?o7():G9()}function G9(){Qt(xc(),"useNavigate() may be used only in the context of a <Router> component.");let e=y.useContext(bc),{basename:t,navigator:n}=y.useContext($r),{matches:r}=y.useContext(Ca),{pathname:a}=zr(),o=JSON.stringify(L_(r)),l=y.useRef(!1);return Dz(()=>{l.current=!0}),y.useCallback((f,d={})=>{if(ia(l.current,Pz),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Um(f,JSON.parse(o),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:_a([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,o,a,e])}var W9=y.createContext(null);function Y9(e){let t=y.useContext(Ca).outlet;return y.useMemo(()=>t&&y.createElement(W9.Provider,{value:e},t),[t,e])}function Kf(e,{relative:t}={}){let{matches:n}=y.useContext(Ca),{pathname:r}=zr(),a=JSON.stringify(L_(n));return y.useMemo(()=>Um(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Z9(e,t){return kz(e,t)}function kz(e,t,n){var w;Qt(xc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=y.useContext($r),{matches:a}=y.useContext(Ca),o=a[a.length-1],l=o?o.params:{},c=o?o.pathname:"/",f=o?o.pathnameBase:"/",d=o&&o.route;{let O=d&&d.path||"";zz(c,!d||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${O}">) 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="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let m=zr(),h;if(t){let O=typeof t=="string"?yc(t):t;Qt(f==="/"||((w=O.pathname)==null?void 0:w.startsWith(f)),`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 "${f}" but pathname "${O.pathname}" was given in the \`location\` prop.`),h=O}else h=m;let g=h.pathname||"/",x=g;if(f!=="/"){let O=f.replace(/^\//,"").split("/");x="/"+g.replace(/^\//,"").split("/").slice(O.length).join("/")}let A=n&&n.state.matches.length?n.state.matches.map(O=>Object.assign(O,{route:n.manifest[O.route.id]||O.route})):_z(e,{pathname:x});ia(d||A!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),ia(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 S=e7(A&&A.map(O=>Object.assign({},O,{params:Object.assign({},l,O.params),pathname:_a([f,r.encodeLocation?r.encodeLocation(O.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?f:_a([f,r.encodeLocation?r.encodeLocation(O.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:O.pathnameBase])})),a,n);return t&&S?y.createElement(Zf.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},S):S}function K9(){let e=i7(),t=k9(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)",a={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:o},"ErrorBoundary")," or"," ",y.createElement("code",{style:o},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:a},n):null,l)}var X9=y.createElement(K9,null),$z=class extends y.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.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=F9(e.digest);n&&(e=n)}let t=e!==void 0?y.createElement(Ca.Provider,{value:this.props.routeContext},y.createElement(I_.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?y.createElement(Q9,{error:e},t):t}};$z.contextType=Rz;var xb=new WeakMap;function Q9({children:e,error:t}){let{basename:n}=y.useContext($r);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=H9(t.digest);if(r){let a=xb.get(t);if(a)throw a;let o=jz(r.location,n);if(Tz&&!xb.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw xb.set(t,l),l}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function J9({routeContext:e,match:t,children:n}){let r=y.useContext(bc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),y.createElement(Ca.Provider,{value:e},n)}function e7(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,o=r==null?void 0:r.errors;if(o!=null){let m=a.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);Qt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let m=0;m<a.length;m++){let h=a[m];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=m),h.route.id){let{loaderData:g,errors:x}=r,A=h.route.loader&&!g.hasOwnProperty(h.route.id)&&(!x||x[h.route.id]===void 0);if(h.route.lazy||A){n.isStatic&&(l=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let f=n==null?void 0:n.onError,d=r&&f?(m,h)=>{var g,x;f(m,{location:r.location,params:((x=(g=r.matches)==null?void 0:g[0])==null?void 0:x.params)??{},pattern:$9(r.matches),errorInfo:h})}:void 0;return a.reduceRight((m,h,g)=>{let x,A=!1,S=null,w=null;r&&(x=o&&h.route.id?o[h.route.id]:void 0,S=h.route.errorElement||X9,l&&(c<0&&g===0?(zz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,w=null):c===g&&(A=!0,w=h.route.hydrateFallbackElement||null)));let O=t.concat(a.slice(0,g+1)),E=()=>{let j;return x?j=S:A?j=w:h.route.Component?j=y.createElement(h.route.Component,null):h.route.element?j=h.route.element:j=m,y.createElement(J9,{match:h,routeContext:{outlet:m,matches:O,isDataRoute:r!=null},children:j})};return r&&(h.route.ErrorBoundary||h.route.errorElement||g===0)?y.createElement($z,{location:r.location,revalidation:r.revalidation,component:S,error:x,children:E(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:d}):E()},null)}function B_(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function t7(e){let t=y.useContext(bc);return Qt(t,B_(e)),t}function n7(e){let t=y.useContext(qm);return Qt(t,B_(e)),t}function r7(e){let t=y.useContext(Ca);return Qt(t,B_(e)),t}function U_(e){let t=r7(e),n=t.matches[t.matches.length-1];return Qt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function a7(){return U_("useRouteId")}function i7(){var r;let e=y.useContext(I_),t=n7("useRouteError"),n=U_("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function o7(){let{router:e}=t7("useNavigate"),t=U_("useNavigate"),n=y.useRef(!1);return Dz(()=>{n.current=!0}),y.useCallback(async(a,o={})=>{ia(n.current,Pz),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var pC={};function zz(e,t,n){!t&&!pC[e]&&(pC[e]=!0,ia(!1,n))}y.memo(s7);function s7({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:o}){return kz(e,void 0,{manifest:t,state:r,isStatic:a,onError:o})}function I1({to:e,replace:t,state:n,relative:r}){Qt(xc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=y.useContext($r);ia(!a,"<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:o}=y.useContext(Ca),{pathname:l}=zr(),c=Xa(),f=Um(e,L_(o),l,r==="path"),d=JSON.stringify(f);return y.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function l7(e){return Y9(e.context)}function Tr(e){Qt(!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 c7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1,useTransitions:l}){Qt(!xc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=y.useMemo(()=>({basename:c,navigator:a,static:o,useTransitions:l,future:{}}),[c,a,o,l]);typeof n=="string"&&(n=yc(n));let{pathname:d="/",search:m="",hash:h="",state:g=null,key:x="default",mask:A}=n,S=y.useMemo(()=>{let w=Ci(d,c);return w==null?null:{location:{pathname:w,search:m,hash:h,state:g,key:x,mask:A},navigationType:r}},[c,d,m,h,g,x,r,A]);return ia(S!=null,`<Router basename="${c}"> is not able to match the URL "${d}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:y.createElement($r.Provider,{value:f},y.createElement(Zf.Provider,{children:t,value:S}))}function u7({children:e,location:t}){return Z9(B1(e),t)}function B1(e,t=[]){let n=[];return y.Children.forEach(e,(r,a)=>{if(!y.isValidElement(r))return;let o=[...t,a];if(r.type===y.Fragment){n.push.apply(n,B1(r.props.children,o));return}Qt(r.type===Tr,`[${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>`),Qt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.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&&(l.children=B1(r.props.children,o)),n.push(l)}),n}var sp="get",lp="application/x-www-form-urlencoded";function Hm(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function f7(e){return Hm(e)&&e.tagName.toLowerCase()==="button"}function d7(e){return Hm(e)&&e.tagName.toLowerCase()==="form"}function h7(e){return Hm(e)&&e.tagName.toLowerCase()==="input"}function p7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function m7(e,t){return e.button===0&&(!t||t==="_self")&&!p7(e)}function U1(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function v7(e,t){let n=U1(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(o=>{n.append(a,o)})}),n}var $h=null;function g7(){if($h===null)try{new FormData(document.createElement("form"),0),$h=!1}catch{$h=!0}return $h}var y7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wb(e){return e!=null&&!y7.has(e)?(ia(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lp}"`),null):e}function b7(e,t){let n,r,a,o,l;if(d7(e)){let c=e.getAttribute("action");r=c?Ci(c,t):null,n=e.getAttribute("method")||sp,a=wb(e.getAttribute("enctype"))||lp,o=new FormData(e)}else if(f7(e)||h7(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?Ci(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||sp,a=wb(e.getAttribute("formenctype"))||wb(c.getAttribute("enctype"))||lp,o=new FormData(c,e),!g7()){let{name:d,type:m,value:h}=e;if(m==="image"){let g=d?`${d}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else d&&o.append(d,h)}}else{if(Hm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=sp,r=null,a=lp,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function q_(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Lz(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Ci(a.pathname,t)==="/"?a.pathname=`${wp(t)}/_root.${r}`:a.pathname=`${wp(a.pathname)}.${r}`,a}async function x7(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 w7(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 S7(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await x7(o,n);return l.links?l.links():[]}return[]}));return E7(r.flat(1).filter(w7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function mC(e,t,n,r,a,o){let l=(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 o==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):o==="data"?t.filter((f,d)=>{var h;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((h=n[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function _7(e,t,{includeHydrateFallback:n}={}){return A7(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function A7(e){return[...new Set(e)]}function O7(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function E7(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(O7(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function H_(){let e=y.useContext(bc);return q_(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function T7(){let e=y.useContext(qm);return q_(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var F_=y.createContext(void 0);F_.displayName="FrameworkContext";function V_(){let e=y.useContext(F_);return q_(e,"You must render this element inside a <HydratedRouter> element"),e}function j7(e,t){let n=y.useContext(F_),[r,a]=y.useState(!1),[o,l]=y.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:h}=t,g=y.useRef(null);y.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=O=>{O.forEach(E=>{l(E.isIntersecting)})},w=new IntersectionObserver(S,{threshold:.5});return g.current&&w.observe(g.current),()=>{w.disconnect()}}},[e]),y.useEffect(()=>{if(r){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[r]);let x=()=>{a(!0)},A=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Cu(c,x),onBlur:Cu(f,A),onMouseEnter:Cu(d,x),onMouseLeave:Cu(m,A),onTouchStart:Cu(h,x)}]:[!1,g,{}]}function Cu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function C7({page:e,...t}){let n=L9(),{router:r}=H_(),a=y.useMemo(()=>_z(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?y.createElement(N7,{page:e,matches:a,...t}):y.createElement(M7,{page:e,matches:a,...t}):null}function R7(e){let{manifest:t,routeModules:n}=V_(),[r,a]=y.useState([]);return y.useEffect(()=>{let o=!1;return S7(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function N7({page:e,matches:t,...n}){let r=zr(),{future:a}=V_(),{basename:o}=H_(),l=y.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=Lz(e,o,a.unstable_trailingSlashAwareDataRequests,"rsc"),f=!1,d=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?f=!0:d.push(m.route.id);return f&&d.length>0&&c.searchParams.set("_routes",d.join(",")),[c.pathname+c.search]},[o,a.unstable_trailingSlashAwareDataRequests,e,r,t]);return y.createElement(y.Fragment,null,l.map(c=>y.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function M7({page:e,matches:t,...n}){let r=zr(),{future:a,manifest:o,routeModules:l}=V_(),{basename:c}=H_(),{loaderData:f,matches:d}=T7(),m=y.useMemo(()=>mC(e,t,d,o,r,"data"),[e,t,d,o,r]),h=y.useMemo(()=>mC(e,t,d,o,r,"assets"),[e,t,d,o,r]),g=y.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,w=!1;if(t.forEach(E=>{var C;let j=o.routes[E.route.id];!j||!j.hasLoader||(!m.some(T=>T.route.id===E.route.id)&&E.route.id in f&&((C=l[E.route.id])!=null&&C.shouldRevalidate)||j.hasClientLoader?w=!0:S.add(E.route.id))}),S.size===0)return[];let O=Lz(e,c,a.unstable_trailingSlashAwareDataRequests,"data");return w&&S.size>0&&O.searchParams.set("_routes",t.filter(E=>S.has(E.route.id)).map(E=>E.route.id).join(",")),[O.pathname+O.search]},[c,a.unstable_trailingSlashAwareDataRequests,f,r,o,m,t,e,l]),x=y.useMemo(()=>_7(h,o),[h,o]),A=R7(h);return y.createElement(y.Fragment,null,g.map(S=>y.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),x.map(S=>y.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),A.map(({key:S,link:w})=>y.createElement("link",{key:S,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function P7(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var D7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D7&&(window.__reactRouterVersion="7.15.1")}catch{}function k7({basename:e,children:t,useTransitions:n,window:r}){let a=y.useRef();a.current==null&&(a.current=u9({window:r,v5Compat:!0}));let o=a.current,[l,c]=y.useState({action:o.action,location:o.location}),f=y.useCallback(d=>{n===!1?c(d):y.startTransition(()=>c(d))},[n]);return y.useLayoutEffect(()=>o.listen(f),[o,f]),y.createElement(c7,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,useTransitions:n})}var Iz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ku=y.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,mask:c,state:f,target:d,to:m,preventScrollReset:h,viewTransition:g,defaultShouldRevalidate:x,...A},S){let{basename:w,navigator:O,useTransitions:E}=y.useContext($r),j=typeof m=="string"&&Iz.test(m),C=jz(m,w);m=C.to;let T=V9(m,{relative:a}),R=zr(),N=null;if(c){let Y=Um(c,[],R.mask?R.mask.pathname:"/",!0);w!=="/"&&(Y.pathname=Y.pathname==="/"?w:_a([w,Y.pathname])),N=O.createHref(Y)}let[k,z,V]=j7(r,A),B=I7(m,{replace:l,mask:c,state:f,target:d,preventScrollReset:h,relative:a,viewTransition:g,defaultShouldRevalidate:x,useTransitions:E});function I(Y){t&&t(Y),Y.defaultPrevented||B(Y)}let F=!(C.isExternal||o),G=y.createElement("a",{...A,...V,href:(F?N:void 0)||C.absoluteURL||T,onClick:F?I:t,ref:P7(S,z),target:d,"data-discover":!j&&n==="render"?"true":void 0});return k&&!j?y.createElement(y.Fragment,null,G,y.createElement(C7,{page:T})):G});Ku.displayName="Link";var $7=y.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:c,children:f,...d},m){let h=Kf(l,{relative:d.relative}),g=zr(),x=y.useContext(qm),{navigator:A,basename:S}=y.useContext($r),w=x!=null&&F7(h)&&c===!0,O=A.encodeLocation?A.encodeLocation(h).pathname:h.pathname,E=g.pathname,j=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(E=E.toLowerCase(),j=j?j.toLowerCase():null,O=O.toLowerCase()),j&&S&&(j=Ci(j,S)||j);const C=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let T=E===O||!a&&E.startsWith(O)&&E.charAt(C)==="/",R=j!=null&&(j===O||!a&&j.startsWith(O)&&j.charAt(O.length)==="/"),N={isActive:T,isPending:R,isTransitioning:w},k=T?t:void 0,z;typeof r=="function"?z=r(N):z=[r,T?"active":null,R?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let V=typeof o=="function"?o(N):o;return y.createElement(Ku,{...d,"aria-current":k,className:z,ref:m,style:V,to:l,viewTransition:c},typeof f=="function"?f(N):f)});$7.displayName="NavLink";var z7=y.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=sp,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:h,defaultShouldRevalidate:g,...x},A)=>{let{useTransitions:S}=y.useContext($r),w=q7(),O=H7(c,{relative:d}),E=l.toLowerCase()==="get"?"get":"post",j=typeof c=="string"&&Iz.test(c),C=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let R=T.nativeEvent.submitter,N=(R==null?void 0:R.getAttribute("formmethod"))||l,k=()=>w(R||T.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:a,state:o,relative:d,preventScrollReset:m,viewTransition:h,defaultShouldRevalidate:g});S&&n!==!1?y.startTransition(()=>k()):k()};return y.createElement("form",{ref:A,method:E,action:O,onSubmit:r?f:C,...x,"data-discover":!j&&e==="render"?"true":void 0})});z7.displayName="Form";function L7(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bz(e){let t=y.useContext(bc);return Qt(t,L7(e)),t}function I7(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:f,useTransitions:d}={}){let m=Xa(),h=zr(),g=Kf(e,{relative:l});return y.useCallback(x=>{if(m7(x,t)){x.preventDefault();let A=n!==void 0?n:af(h)===af(g),S=()=>m(e,{replace:A,mask:r,state:a,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:f});d?y.startTransition(()=>S()):S()}},[h,m,g,n,r,a,t,e,o,l,c,f,d])}function Fm(e){ia(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=y.useRef(U1(e)),n=y.useRef(!1),r=zr(),a=y.useMemo(()=>v7(r.search,n.current?null:t.current),[r.search]),o=Xa(),l=y.useCallback((c,f)=>{const d=U1(typeof c=="function"?c(new URLSearchParams(a)):c);n.current=!0,o("?"+d,f)},[o,a]);return[a,l]}var B7=0,U7=()=>`__${String(++B7)}__`;function q7(){let{router:e}=Bz("useSubmit"),{basename:t}=y.useContext($r),n=a7(),r=e.fetch,a=e.navigate;return y.useCallback(async(o,l={})=>{let{action:c,method:f,encType:d,formData:m,body:h}=b7(o,t);if(l.navigate===!1){let g=l.fetcherKey||U7();await r(g,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:h,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await a(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:h,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function H7(e,{relative:t}={}){let{basename:n}=y.useContext($r),r=y.useContext(Ca);Qt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Kf(e||".",{relative:t})},l=zr();if(e==null){o.search=l.search;let c=new URLSearchParams(o.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(h=>h).forEach(h=>c.append("index",h));let m=c.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:_a([n,o.pathname])),af(o)}function F7(e,{relative:t}={}){let n=y.useContext(Nz);Qt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Bz("useViewTransitionState"),a=Kf(e,{relative:t});if(!n.isTransitioning)return!1;let o=Ci(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ci(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xp(a.pathname,l)!=null||xp(a.pathname,o)!=null}var Xf=wz();const Uz=Bt(Xf);function V7(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 G7=e=>{switch(e){case"success":return Z7;case"info":return X7;case"warning":return K7;case"error":return Q7;default:return null}},W7=Array(12).fill(0),Y7=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},W7.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Z7=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"})),K7=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"})),X7=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"})),Q7=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"})),J7=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"})),eF=()=>{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 tF{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,...a}=t,o=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:q1++,l=this.toasts.find(f=>f.id===o),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(f=>f.id===o?(this.publish({...f,...t,id:o,title:r}),{...f,...t,id:o,dismissible:c,title:r}):f):this.addToast({title:r,...a,dismissible:c,id:o}),o},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 a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,l;const c=a.then(async d=>{if(l=["resolve",d],L.isValidElement(d))o=!1,this.create({id:r,type:"default",message:d});else if(rF(d)&&!d.ok){o=!1;const h=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,A=typeof h=="object"&&!L.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:g,...A})}else if(d instanceof Error){o=!1;const h=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,A=typeof h=="object"&&!L.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:g,...A})}else if(n.success!==void 0){o=!1;const h=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,A=typeof h=="object"&&!L.isValidElement(h)?h:{message:h};this.create({id:r,type:"success",description:g,...A})}}).catch(async d=>{if(l=["reject",d],n.error!==void 0){o=!1;const m=typeof n.error=="function"?await n.error(d):n.error,h=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:h,...x})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,m)=>c.then(()=>l[0]==="reject"?m(l[1]):d(l[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 gr=new tF,nF=(e,t)=>{const n=(t==null?void 0:t.id)||q1++;return gr.addToast({title:e,...t,id:n}),n},rF=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",aF=nF,iF=()=>gr.toasts,oF=()=>gr.getActiveToasts(),Sb=Object.assign(aF,{success:gr.success,info:gr.info,warning:gr.warning,error:gr.error,custom:gr.custom,message:gr.message,promise:gr.promise,dismiss:gr.dismiss,loading:gr.loading},{getHistory:iF,getToasts:oF});V7("[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 zh(e){return e.label!==void 0}const sF=3,lF="24px",cF="16px",vC=4e3,uF=356,fF=14,dF=45,hF=200;function $a(...e){return e.filter(Boolean).join(" ")}function pF(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const mF=e=>{var t,n,r,a,o,l,c,f,d;const{invert:m,toast:h,unstyled:g,interacting:x,setHeights:A,visibleToasts:S,heights:w,index:O,toasts:E,expanded:j,removeToast:C,defaultRichColors:T,closeButton:R,style:N,cancelButtonStyle:k,actionButtonStyle:z,className:V="",descriptionClassName:B="",duration:I,position:F,gap:G,expandByDefault:Y,classNames:$,icons:q,closeButtonAriaLabel:K="Close toast"}=e,[X,Z]=L.useState(null),[P,H]=L.useState(null),[J,fe]=L.useState(!1),[ye,ce]=L.useState(!1),[he,we]=L.useState(!1),[se,Oe]=L.useState(!1),[_e,ie]=L.useState(!1),[Ge,ze]=L.useState(0),[Je,Ke]=L.useState(0),st=L.useRef(h.duration||I||vC),Tt=L.useRef(null),pt=L.useRef(null),mn=O===0,on=O+1<=S,At=h.type,en=h.dismissible!==!1,U=h.className||"",ee=h.descriptionClassName||"",re=L.useMemo(()=>w.findIndex(je=>je.toastId===h.id)||0,[w,h.id]),Re=L.useMemo(()=>{var je;return(je=h.closeButton)!=null?je:R},[h.closeButton,R]),Ce=L.useMemo(()=>h.duration||I||vC,[h.duration,I]),Te=L.useRef(0),De=L.useRef(0),He=L.useRef(0),Ze=L.useRef(null),[Ot,xt]=F.split("-"),jt=L.useMemo(()=>w.reduce((je,Ee,Fe)=>Fe>=re?je:je+Ee.height,0),[w,re]),tn=eF(),nr=h.invert||m,rr=At==="loading";De.current=L.useMemo(()=>re*G+jt,[re,jt]),L.useEffect(()=>{st.current=Ce},[Ce]),L.useEffect(()=>{fe(!0)},[]),L.useEffect(()=>{const je=pt.current;if(je){const Ee=je.getBoundingClientRect().height;return Ke(Ee),A(Fe=>[{toastId:h.id,height:Ee,position:h.position},...Fe]),()=>A(Fe=>Fe.filter(rt=>rt.toastId!==h.id))}},[A,h.id]),L.useLayoutEffect(()=>{if(!J)return;const je=pt.current,Ee=je.style.height;je.style.height="auto";const Fe=je.getBoundingClientRect().height;je.style.height=Ee,Ke(Fe),A(rt=>rt.find(ve=>ve.toastId===h.id)?rt.map(ve=>ve.toastId===h.id?{...ve,height:Fe}:ve):[{toastId:h.id,height:Fe,position:h.position},...rt])},[J,h.title,h.description,A,h.id,h.jsx,h.action,h.cancel]);const vn=L.useCallback(()=>{ce(!0),ze(De.current),A(je=>je.filter(Ee=>Ee.toastId!==h.id)),setTimeout(()=>{C(h)},hF)},[h,C,A,De]);L.useEffect(()=>{if(h.promise&&At==="loading"||h.duration===1/0||h.type==="loading")return;let je;return j||x||tn?(()=>{if(He.current<Te.current){const rt=new Date().getTime()-Te.current;st.current=st.current-rt}He.current=new Date().getTime()})():(()=>{st.current!==1/0&&(Te.current=new Date().getTime(),je=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),vn()},st.current))})(),()=>clearTimeout(je)},[j,x,h,At,tn,vn]),L.useEffect(()=>{h.delete&&(vn(),h.onDismiss==null||h.onDismiss.call(h,h))},[vn,h.delete]);function $n(){var je;if(q!=null&&q.loading){var Ee;return L.createElement("div",{className:$a($==null?void 0:$.loader,h==null||(Ee=h.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":At==="loading"},q.loading)}return L.createElement(Y7,{className:$a($==null?void 0:$.loader,h==null||(je=h.classNames)==null?void 0:je.loader),visible:At==="loading"})}const ar=h.icon||(q==null?void 0:q[At])||G7(At);var zn,Ae;return L.createElement("li",{tabIndex:0,ref:pt,className:$a(V,U,$==null?void 0:$.toast,h==null||(t=h.classNames)==null?void 0:t.toast,$==null?void 0:$.default,$==null?void 0:$[At],h==null||(n=h.classNames)==null?void 0:n[At]),"data-sonner-toast":"","data-rich-colors":(zn=h.richColors)!=null?zn:T,"data-styled":!(h.jsx||h.unstyled||g),"data-mounted":J,"data-promise":!!h.promise,"data-swiped":_e,"data-removed":ye,"data-visible":on,"data-y-position":Ot,"data-x-position":xt,"data-index":O,"data-front":mn,"data-swiping":he,"data-dismissible":en,"data-type":At,"data-invert":nr,"data-swipe-out":se,"data-swipe-direction":P,"data-expanded":!!(j||Y&&J),"data-testid":h.testId,style:{"--index":O,"--toasts-before":O,"--z-index":E.length-O,"--offset":`${ye?Ge:De.current}px`,"--initial-height":Y?"auto":`${Je}px`,...N,...h.style},onDragEnd:()=>{we(!1),Z(null),Ze.current=null},onPointerDown:je=>{je.button!==2&&(rr||!en||(Tt.current=new Date,ze(De.current),je.target.setPointerCapture(je.pointerId),je.target.tagName!=="BUTTON"&&(we(!0),Ze.current={x:je.clientX,y:je.clientY})))},onPointerUp:()=>{var je,Ee,Fe;if(se||!en)return;Ze.current=null;const rt=Number(((je=pt.current)==null?void 0:je.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ne=Number(((Ee=pt.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ve=new Date().getTime()-((Fe=Tt.current)==null?void 0:Fe.getTime()),ue=X==="x"?rt:ne,Be=Math.abs(ue)/ve;if(Math.abs(ue)>=dF||Be>.11){ze(De.current),h.onDismiss==null||h.onDismiss.call(h,h),H(X==="x"?rt>0?"right":"left":ne>0?"down":"up"),vn(),Oe(!0);return}else{var Pe,Me;(Pe=pt.current)==null||Pe.style.setProperty("--swipe-amount-x","0px"),(Me=pt.current)==null||Me.style.setProperty("--swipe-amount-y","0px")}ie(!1),we(!1),Z(null)},onPointerMove:je=>{var Ee,Fe,rt;if(!Ze.current||!en||((Ee=window.getSelection())==null?void 0:Ee.toString().length)>0)return;const ve=je.clientY-Ze.current.y,ue=je.clientX-Ze.current.x;var Be;const Pe=(Be=e.swipeDirections)!=null?Be:pF(F);!X&&(Math.abs(ue)>1||Math.abs(ve)>1)&&Z(Math.abs(ue)>Math.abs(ve)?"x":"y");let Me={x:0,y:0};const qe=lt=>1/(1.5+Math.abs(lt)/20);if(X==="y"){if(Pe.includes("top")||Pe.includes("bottom"))if(Pe.includes("top")&&ve<0||Pe.includes("bottom")&&ve>0)Me.y=ve;else{const lt=ve*qe(ve);Me.y=Math.abs(lt)<Math.abs(ve)?lt:ve}}else if(X==="x"&&(Pe.includes("left")||Pe.includes("right")))if(Pe.includes("left")&&ue<0||Pe.includes("right")&&ue>0)Me.x=ue;else{const lt=ue*qe(ue);Me.x=Math.abs(lt)<Math.abs(ue)?lt:ue}(Math.abs(Me.x)>0||Math.abs(Me.y)>0)&&ie(!0),(Fe=pt.current)==null||Fe.style.setProperty("--swipe-amount-x",`${Me.x}px`),(rt=pt.current)==null||rt.style.setProperty("--swipe-amount-y",`${Me.y}px`)}},Re&&!h.jsx&&At!=="loading"?L.createElement("button",{"aria-label":K,"data-disabled":rr,"data-close-button":!0,onClick:rr||!en?()=>{}:()=>{vn(),h.onDismiss==null||h.onDismiss.call(h,h)},className:$a($==null?void 0:$.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(Ae=q==null?void 0:q.close)!=null?Ae:J7):null,(At||h.icon||h.promise)&&h.icon!==null&&((q==null?void 0:q[At])!==null||h.icon)?L.createElement("div",{"data-icon":"",className:$a($==null?void 0:$.icon,h==null||(a=h.classNames)==null?void 0:a.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||$n():null,h.type!=="loading"?ar:null):null,L.createElement("div",{"data-content":"",className:$a($==null?void 0:$.content,h==null||(o=h.classNames)==null?void 0:o.content)},L.createElement("div",{"data-title":"",className:$a($==null?void 0:$.title,h==null||(l=h.classNames)==null?void 0:l.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?L.createElement("div",{"data-description":"",className:$a(B,ee,$==null?void 0:$.description,h==null||(c=h.classNames)==null?void 0:c.description)},typeof h.description=="function"?h.description():h.description):null),L.isValidElement(h.cancel)?h.cancel:h.cancel&&zh(h.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||k,onClick:je=>{zh(h.cancel)&&en&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,je),vn())},className:$a($==null?void 0:$.cancelButton,h==null||(f=h.classNames)==null?void 0:f.cancelButton)},h.cancel.label):null,L.isValidElement(h.action)?h.action:h.action&&zh(h.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||z,onClick:je=>{zh(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,je),!je.defaultPrevented&&vn())},className:$a($==null?void 0:$.actionButton,h==null||(d=h.classNames)==null?void 0:d.actionButton)},h.action.label):null)};function gC(){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 vF(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,l=o?"--mobile-offset":"--offset",c=o?cF:lF;function f(d){["top","right","bottom","left"].forEach(m=>{n[`${l}-${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[`${l}-${d}`]=c:n[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const gF=L.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:m,mobileOffset:h,theme:g="light",richColors:x,duration:A,style:S,visibleToasts:w=sF,toastOptions:O,dir:E=gC(),gap:j=fF,icons:C,containerAriaLabel:T="Notifications"}=t,[R,N]=L.useState([]),k=L.useMemo(()=>r?R.filter(J=>J.toasterId===r):R.filter(J=>!J.toasterId),[R,r]),z=L.useMemo(()=>Array.from(new Set([o].concat(k.filter(J=>J.position).map(J=>J.position)))),[k,o]),[V,B]=L.useState([]),[I,F]=L.useState(!1),[G,Y]=L.useState(!1),[$,q]=L.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=L.useRef(null),X=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),Z=L.useRef(null),P=L.useRef(!1),H=L.useCallback(J=>{N(fe=>{var ye;return(ye=fe.find(ce=>ce.id===J.id))!=null&&ye.delete||gr.dismiss(J.id),fe.filter(({id:ce})=>ce!==J.id)})},[]);return L.useEffect(()=>gr.subscribe(J=>{if(J.dismiss){requestAnimationFrame(()=>{N(fe=>fe.map(ye=>ye.id===J.id?{...ye,delete:!0}:ye))});return}setTimeout(()=>{Uz.flushSync(()=>{N(fe=>{const ye=fe.findIndex(ce=>ce.id===J.id);return ye!==-1?[...fe.slice(0,ye),{...fe[ye],...J},...fe.slice(ye+1)]:[J,...fe]})})})}),[R]),L.useEffect(()=>{if(g!=="system"){q(g);return}if(g==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const J=window.matchMedia("(prefers-color-scheme: dark)");try{J.addEventListener("change",({matches:fe})=>{q(fe?"dark":"light")})}catch{J.addListener(({matches:ye})=>{try{q(ye?"dark":"light")}catch(ce){console.error(ce)}})}},[g]),L.useEffect(()=>{R.length<=1&&F(!1)},[R]),L.useEffect(()=>{const J=fe=>{var ye;if(l.every(we=>fe[we]||fe.code===we)){var he;F(!0),(he=K.current)==null||he.focus()}fe.code==="Escape"&&(document.activeElement===K.current||(ye=K.current)!=null&&ye.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",J),()=>document.removeEventListener("keydown",J)},[l]),L.useEffect(()=>{if(K.current)return()=>{Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null,P.current=!1)}},[K.current]),L.createElement("section",{ref:n,"aria-label":`${T} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},z.map((J,fe)=>{var ye;const[ce,he]=J.split("-");return k.length?L.createElement("ol",{key:J,dir:E==="auto"?gC():E,tabIndex:-1,ref:K,className:d,"data-sonner-toaster":!0,"data-sonner-theme":$,"data-y-position":ce,"data-x-position":he,style:{"--front-toast-height":`${((ye=V[0])==null?void 0:ye.height)||0}px`,"--width":`${uF}px`,"--gap":`${j}px`,...S,...vF(m,h)},onBlur:we=>{P.current&&!we.currentTarget.contains(we.relatedTarget)&&(P.current=!1,Z.current&&(Z.current.focus({preventScroll:!0}),Z.current=null))},onFocus:we=>{we.target instanceof HTMLElement&&we.target.dataset.dismissible==="false"||P.current||(P.current=!0,Z.current=we.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{G||F(!1)},onDragEnd:()=>F(!1),onPointerDown:we=>{we.target instanceof HTMLElement&&we.target.dataset.dismissible==="false"||Y(!0)},onPointerUp:()=>Y(!1)},k.filter(we=>!we.position&&fe===0||we.position===J).map((we,se)=>{var Oe,_e;return L.createElement(mF,{key:we.id,icons:C,index:se,toast:we,defaultRichColors:x,duration:(Oe=O==null?void 0:O.duration)!=null?Oe:A,className:O==null?void 0:O.className,descriptionClassName:O==null?void 0:O.descriptionClassName,invert:a,visibleToasts:w,closeButton:(_e=O==null?void 0:O.closeButton)!=null?_e:f,interacting:G,position:J,style:O==null?void 0:O.style,unstyled:O==null?void 0:O.unstyled,classNames:O==null?void 0:O.classNames,cancelButtonStyle:O==null?void 0:O.cancelButtonStyle,actionButtonStyle:O==null?void 0:O.actionButtonStyle,closeButtonAriaLabel:O==null?void 0:O.closeButtonAriaLabel,removeToast:H,toasts:k.filter(ie=>ie.position==we.position),heights:V.filter(ie=>ie.position==we.position),setHeights:B,expandByDefault:c,gap:j,expanded:I,swipeDirections:t.swipeDirections})})):null}))});function yC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qf(...e){return t=>{let n=!1;const r=e.map(a=>{const o=yC(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():yC(e[a],null)}}}}function ct(...e){return y.useCallback(Qf(...e),e)}var yF=Symbol.for("react.lazy"),Sp=$_[" use ".trim().toString()];function bF(e){return typeof e=="object"&&e!==null&&"then"in e}function qz(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===yF&&"_payload"in e&&bF(e._payload)}function Hz(e){const t=xF(e),n=y.forwardRef((r,a)=>{let{children:o,...l}=r;qz(o)&&typeof Sp=="function"&&(o=Sp(o._payload));const c=y.Children.toArray(o),f=c.find(SF);if(f){const d=f.props.children,m=c.map(h=>h===f?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:h);return v.jsx(t,{...l,ref:a,children:y.isValidElement(d)?y.cloneElement(d,void 0,m):null})}return v.jsx(t,{...l,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var Ps=Hz("Slot");function xF(e){const t=y.forwardRef((n,r)=>{let{children:a,...o}=n;if(qz(a)&&typeof Sp=="function"&&(a=Sp(a._payload)),y.isValidElement(a)){const l=AF(a),c=_F(o,a.props);return a.type!==y.Fragment&&(c.ref=r?Qf(r,l):l),y.cloneElement(a,c)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wF=Symbol("radix.slottable");function SF(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wF}function _F(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...c)=>{const f=o(...c);return a(...c),f}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function AF(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Fz(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Fz(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bt(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Fz(e))&&(r&&(r+=" "),r+=t);return r}const bC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xC=bt,wc=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return xC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(d=>{const m=n==null?void 0:n[d],h=o==null?void 0:o[d];if(m===null)return null;const g=bC(m)||bC(h);return a[d][g]}),c=n&&Object.entries(n).reduce((d,m)=>{let[h,g]=m;return g===void 0||(d[h]=g),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:h,className:g,...x}=m;return Object.entries(x).every(A=>{let[S,w]=A;return Array.isArray(w)?w.includes({...o,...c}[S]):{...o,...c}[S]===w})?[...d,h,g]:d},[]);return xC(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)};/**
|
|
61
|
-
* @license lucide-react v0.468.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 OF=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vz=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.468.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 EF={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.468.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 TF=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},f)=>y.createElement("svg",{ref:f,...EF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Vz("lucide",a),...c},[...l.map(([d,m])=>y.createElement(d,m)),...Array.isArray(o)?o:[o]]));/**
|
|
76
|
-
* @license lucide-react v0.468.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 tt=(e,t)=>{const n=y.forwardRef(({className:r,...a},o)=>y.createElement(TF,{ref:o,iconNode:t,className:Vz(`lucide-${OF(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
|
|
81
|
-
* @license lucide-react v0.468.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 jF=tt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
86
|
-
* @license lucide-react v0.468.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 CF=tt("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
91
|
-
* @license lucide-react v0.468.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 RF=tt("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
96
|
-
* @license lucide-react v0.468.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 NF=tt("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
|
|
101
|
-
* @license lucide-react v0.468.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 Gz=tt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
106
|
-
* @license lucide-react v0.468.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 G_=tt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
111
|
-
* @license lucide-react v0.468.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 W_=tt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
116
|
-
* @license lucide-react v0.468.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 MF=tt("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
121
|
-
* @license lucide-react v0.468.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 PF=tt("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
126
|
-
* @license lucide-react v0.468.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 DF=tt("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
131
|
-
* @license lucide-react v0.468.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 kF=tt("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
|
|
136
|
-
* @license lucide-react v0.468.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 Wz=tt("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
141
|
-
* @license lucide-react v0.468.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 $F=tt("ImagePlus",[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]]);/**
|
|
146
|
-
* @license lucide-react v0.468.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 zF=tt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
151
|
-
* @license lucide-react v0.468.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 LF=tt("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
156
|
-
* @license lucide-react v0.468.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 IF=tt("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
|
|
161
|
-
* @license lucide-react v0.468.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 BF=tt("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
|
|
166
|
-
* @license lucide-react v0.468.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 Yz=tt("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
|
|
171
|
-
* @license lucide-react v0.468.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 UF=tt("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
176
|
-
* @license lucide-react v0.468.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 _p=tt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
181
|
-
* @license lucide-react v0.468.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 qF=tt("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
|
186
|
-
* @license lucide-react v0.468.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 HF=tt("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
191
|
-
* @license lucide-react v0.468.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 Zz=tt("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
196
|
-
* @license lucide-react v0.468.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 FF=tt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
201
|
-
* @license lucide-react v0.468.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 VF=tt("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
206
|
-
* @license lucide-react v0.468.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 GF=tt("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
211
|
-
* @license lucide-react v0.468.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 H1=tt("Pencil",[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
216
|
-
* @license lucide-react v0.468.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 Y_=tt("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
221
|
-
* @license lucide-react v0.468.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 Kz=tt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
226
|
-
* @license lucide-react v0.468.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 WF=tt("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
|
|
231
|
-
* @license lucide-react v0.468.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 YF=tt("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|
236
|
-
* @license lucide-react v0.468.0 - ISC
|
|
237
|
-
*
|
|
238
|
-
* This source code is licensed under the ISC license.
|
|
239
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
-
*/const ZF=tt("ScanLine",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]]);/**
|
|
241
|
-
* @license lucide-react v0.468.0 - ISC
|
|
242
|
-
*
|
|
243
|
-
* This source code is licensed under the ISC license.
|
|
244
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
-
*/const KF=tt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
246
|
-
* @license lucide-react v0.468.0 - ISC
|
|
247
|
-
*
|
|
248
|
-
* This source code is licensed under the ISC license.
|
|
249
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
-
*/const Xz=tt("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"}]]);/**
|
|
251
|
-
* @license lucide-react v0.468.0 - ISC
|
|
252
|
-
*
|
|
253
|
-
* This source code is licensed under the ISC license.
|
|
254
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
-
*/const XF=tt("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
256
|
-
* @license lucide-react v0.468.0 - ISC
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the ISC license.
|
|
259
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/const QF=tt("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"}]]);/**
|
|
261
|
-
* @license lucide-react v0.468.0 - ISC
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the ISC license.
|
|
264
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
-
*/const JF=tt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
266
|
-
* @license lucide-react v0.468.0 - ISC
|
|
267
|
-
*
|
|
268
|
-
* This source code is licensed under the ISC license.
|
|
269
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
-
*/const eV=tt("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
271
|
-
* @license lucide-react v0.468.0 - ISC
|
|
272
|
-
*
|
|
273
|
-
* This source code is licensed under the ISC license.
|
|
274
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
-
*/const tV=tt("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
|
|
276
|
-
* @license lucide-react v0.468.0 - ISC
|
|
277
|
-
*
|
|
278
|
-
* This source code is licensed under the ISC license.
|
|
279
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
-
*/const nV=tt("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"}]]);/**
|
|
281
|
-
* @license lucide-react v0.468.0 - ISC
|
|
282
|
-
*
|
|
283
|
-
* This source code is licensed under the ISC license.
|
|
284
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
-
*/const rV=tt("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
286
|
-
* @license lucide-react v0.468.0 - ISC
|
|
287
|
-
*
|
|
288
|
-
* This source code is licensed under the ISC license.
|
|
289
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
-
*/const aV=tt("Volume1",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}]]);/**
|
|
291
|
-
* @license lucide-react v0.468.0 - ISC
|
|
292
|
-
*
|
|
293
|
-
* This source code is licensed under the ISC license.
|
|
294
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
-
*/const iV=tt("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/**
|
|
296
|
-
* @license lucide-react v0.468.0 - ISC
|
|
297
|
-
*
|
|
298
|
-
* This source code is licensed under the ISC license.
|
|
299
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
-
*/const Qz=tt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),_b=768;function oV(){const[e,t]=y.useState(void 0);return y.useEffect(()=>{const n=window.matchMedia(`(max-width: ${_b-1}px)`),r=()=>{t(window.innerWidth<_b)};return n.addEventListener("change",r),t(window.innerWidth<_b),()=>n.removeEventListener("change",r)},[]),!!e}const Z_="-",sV=e=>{const t=cV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(Z_);return c[0]===""&&c.length!==1&&c.shift(),Jz(c,t)||lV(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},Jz=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Jz(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(Z_);return(l=t.validators.find(({validator:c})=>c(o)))==null?void 0:l.classGroupId},wC=/^\[(.+)\]$/,lV=e=>{if(wC.test(e)){const t=wC.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cV=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fV(Object.entries(e.classGroups),n).forEach(([o,l])=>{F1(l,r,o,t)}),r},F1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:SC(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(uV(a)){F1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{F1(l,SC(t,o),n,r)})})},SC=(e,t)=>{let n=e;return t.split(Z_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},uV=e=>e.isThemeGetter,fV=(e,t)=>t?e.map(([n,r])=>{const a=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,c])=>[t+l,c])):o);return[n,a]}):e,dV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},e5="!",hV=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],o=t.length,l=c=>{const f=[];let d=0,m=0,h;for(let w=0;w<c.length;w++){let O=c[w];if(d===0){if(O===a&&(r||c.slice(w,w+o)===t)){f.push(c.slice(m,w)),m=w+o;continue}if(O==="/"){h=w;continue}}O==="["?d++:O==="]"&&d--}const g=f.length===0?c:c.substring(m),x=g.startsWith(e5),A=x?g.substring(1):g,S=h&&h>m?h-m:void 0;return{modifiers:f,hasImportantModifier:x,baseClassName:A,maybePostfixModifierPosition:S}};return n?c=>n({className:c,parseClassName:l}):l},pV=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},mV=e=>({cache:dV(e.cacheSize),parseClassName:hV(e),...sV(e)}),vV=/\s+/,gV=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,o=[],l=e.trim().split(vV);let c="";for(let f=l.length-1;f>=0;f-=1){const d=l[f],{modifiers:m,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:x}=n(d);let A=!!x,S=r(A?g.substring(0,x):g);if(!S){if(!A){c=d+(c.length>0?" "+c:c);continue}if(S=r(g),!S){c=d+(c.length>0?" "+c:c);continue}A=!1}const w=pV(m).join(":"),O=h?w+e5:w,E=O+S;if(o.includes(E))continue;o.push(E);const j=a(S,A);for(let C=0;C<j.length;++C){const T=j[C];o.push(O+T)}c=d+(c.length>0?" "+c:c)}return c};function yV(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=t5(t))&&(r&&(r+=" "),r+=n);return r}const t5=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=t5(e[r]))&&(n&&(n+=" "),n+=t);return n};function bV(e,...t){let n,r,a,o=l;function l(f){const d=t.reduce((m,h)=>h(m),e());return n=mV(d),r=n.cache.get,a=n.cache.set,o=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=gV(f,n);return a(f,m),m}return function(){return o(yV.apply(null,arguments))}}const Wt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},n5=/^\[(?:([a-z-]+):)?(.+)\]$/i,xV=/^\d+\/\d+$/,wV=new Set(["px","full","screen"]),SV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_V=/\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$/,AV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,OV=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EV=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wi=e=>kl(e)||wV.has(e)||xV.test(e),fo=e=>Sc(e,"length",DV),kl=e=>!!e&&!Number.isNaN(Number(e)),Ab=e=>Sc(e,"number",kl),Ru=e=>!!e&&Number.isInteger(Number(e)),TV=e=>e.endsWith("%")&&kl(e.slice(0,-1)),it=e=>n5.test(e),ho=e=>SV.test(e),jV=new Set(["length","size","percentage"]),CV=e=>Sc(e,jV,r5),RV=e=>Sc(e,"position",r5),NV=new Set(["image","url"]),MV=e=>Sc(e,NV,$V),PV=e=>Sc(e,"",kV),Nu=()=>!0,Sc=(e,t,n)=>{const r=n5.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},DV=e=>_V.test(e)&&!AV.test(e),r5=()=>!1,kV=e=>OV.test(e),$V=e=>EV.test(e),zV=()=>{const e=Wt("colors"),t=Wt("spacing"),n=Wt("blur"),r=Wt("brightness"),a=Wt("borderColor"),o=Wt("borderRadius"),l=Wt("borderSpacing"),c=Wt("borderWidth"),f=Wt("contrast"),d=Wt("grayscale"),m=Wt("hueRotate"),h=Wt("invert"),g=Wt("gap"),x=Wt("gradientColorStops"),A=Wt("gradientColorStopPositions"),S=Wt("inset"),w=Wt("margin"),O=Wt("opacity"),E=Wt("padding"),j=Wt("saturate"),C=Wt("scale"),T=Wt("sepia"),R=Wt("skew"),N=Wt("space"),k=Wt("translate"),z=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto",it,t],I=()=>[it,t],F=()=>["",wi,fo],G=()=>["auto",kl,it],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],X=()=>["","0",it],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>[kl,it];return{cacheSize:500,separator:":",theme:{colors:[Nu],spacing:[wi,fo],blur:["none","",ho,it],brightness:P(),borderColor:[e],borderRadius:["none","","full",ho,it],borderSpacing:I(),borderWidth:F(),contrast:P(),grayscale:X(),hueRotate:P(),invert:X(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[TV,fo],inset:B(),margin:B(),opacity:P(),padding:I(),saturate:P(),scale:P(),sepia:X(),skew:P(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[ho]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"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:[...Y(),it]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ru,it]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:X()}],shrink:[{shrink:X()}],order:[{order:["first","last","none",Ru,it]}],"grid-cols":[{"grid-cols":[Nu]}],"col-start-end":[{col:["auto",{span:["full",Ru,it]},it]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[Nu]}],"row-start-end":[{row:["auto",{span:[Ru,it]},it]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",it,t]}],"min-w":[{"min-w":[it,t,"min","max","fit"]}],"max-w":[{"max-w":[it,t,"none","full","min","max","fit","prose",{screen:[ho]},ho]}],h:[{h:[it,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[it,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[it,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ho,fo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ab]}],"font-family":[{font:[Nu]}],"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",it]}],"line-clamp":[{"line-clamp":["none",kl,Ab]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wi,it]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wi,fo]}],"underline-offset":[{"underline-offset":["auto",wi,it]}],"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:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],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",it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),RV]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",CV]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},MV]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[A]}],"gradient-via-pos":[{via:[A]}],"gradient-to-pos":[{to:[A]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"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":[O]}],"border-style":[{border:[...$(),"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":[O]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[wi,it]}],"outline-w":[{outline:[wi,fo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[wi,fo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ho,PV]}],"shadow-color":[{shadow:[Nu]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",ho,it]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[j]}],sepia:[{sepia:[T]}],"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":[h]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[T]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",it]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ru,it]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",it]}],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",it]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",it]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[wi,fo,Ab]}],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"]}}},LV=bV(zV);function xe(...e){return LV(bt(e))}const Vm=wc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",pill:"h-12 px-6 rounded-pill",nav:"h-7 px-3 text-xs"}},defaultVariants:{variant:"default",size:"default"}}),ht=y.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},o)=>{const l=r?Ps:"button";return v.jsx(l,{className:xe(Vm({variant:t,size:n,className:e})),ref:o,...a})});ht.displayName="Button";const pn=y.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{type:t,className:xe("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:text-sm file:font-medium file:text-foreground 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,...n}));pn.displayName="Input";var IV=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],a5=IV.reduce((e,t)=>{const n=Hz(`Primitive.${t}`),r=y.forwardRef((a,o)=>{const{asChild:l,...c}=a,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),BV="Separator",_C="horizontal",UV=["horizontal","vertical"],i5=y.forwardRef((e,t)=>{const{decorative:n,orientation:r=_C,...a}=e,o=qV(r)?r:_C,c=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return v.jsx(a5.div,{"data-orientation":o,...c,...a,ref:t})});i5.displayName=BV;function qV(e){return UV.includes(e)}var o5=i5;const Oo=y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},a)=>v.jsx(o5,{ref:a,decorative:n,orientation:t,className:xe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Oo.displayName=o5.displayName;function $e(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function HV(e,t){const n=y.createContext(t),r=o=>{const{children:l,...c}=o,f=y.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function a(o){const l=y.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function sa(e,t=[]){let n=[];function r(o,l){const c=y.createContext(l),f=n.length;n=[...n,l];const d=h=>{var O;const{scope:g,children:x,...A}=h,S=((O=g==null?void 0:g[e])==null?void 0:O[f])||c,w=y.useMemo(()=>A,Object.values(A));return v.jsx(S.Provider,{value:w,children:x})};d.displayName=o+"Provider";function m(h,g){var S;const x=((S=g==null?void 0:g[e])==null?void 0:S[f])||c,A=y.useContext(x);if(A)return A;if(l!==void 0)return l;throw new Error(`\`${h}\` must be used within \`${o}\``)}return[d,m]}const a=()=>{const o=n.map(l=>y.createContext(l));return function(c){const f=(c==null?void 0:c[e])||o;return y.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return a.scopeName=e,[r,FV(a,...t)]}function FV(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const h=f(o)[`__scope${d}`];return{...c,...h}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Gn=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},VV=$_[" useId ".trim().toString()]||(()=>{}),GV=0;function Aa(e){const[t,n]=y.useState(VV());return Gn(()=>{n(r=>r??String(GV++))},[e]),e||(t?`radix-${t}`:"")}var WV=$_[" useInsertionEffect ".trim().toString()]||Gn;function Eo({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,l]=YV({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:a;{const m=y.useRef(e!==void 0);y.useEffect(()=>{const h=m.current;h!==c&&console.warn(`${r} is changing from ${h?"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=y.useCallback(m=>{var h;if(c){const g=ZV(m)?m(e):m;g!==e&&((h=l.current)==null||h.call(l,g))}else o(m)},[c,e,o,l]);return[f,d]}function YV({defaultProp:e,onChange:t}){const[n,r]=y.useState(e),a=y.useRef(n),o=y.useRef(t);return WV(()=>{o.current=t},[t]),y.useEffect(()=>{var l;a.current!==n&&((l=o.current)==null||l.call(o,n),a.current=n)},[n,a]),[n,r,o]}function ZV(e){return typeof e=="function"}function Vl(e){const t=KV(e),n=y.forwardRef((r,a)=>{const{children:o,...l}=r,c=y.Children.toArray(o),f=c.find(XV);if(f){const d=f.props.children,m=c.map(h=>h===f?y.Children.count(d)>1?y.Children.only(null):y.isValidElement(d)?d.props.children:null:h);return v.jsx(t,{...l,ref:a,children:y.isValidElement(d)?y.cloneElement(d,void 0,m):null})}return v.jsx(t,{...l,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}function KV(e){const t=y.forwardRef((n,r)=>{const{children:a,...o}=n;if(y.isValidElement(a)){const l=JV(a),c=QV(o,a.props);return a.type!==y.Fragment&&(c.ref=r?Qf(r,l):l),y.cloneElement(a,c)}return y.Children.count(a)>1?y.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var s5=Symbol("radix.slottable");function l5(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=s5,t}function XV(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===s5}function QV(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...c)=>{const f=o(...c);return a(...c),f}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function JV(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var eG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qe=eG.reduce((e,t)=>{const n=Vl(`Primitive.${t}`),r=y.forwardRef((a,o)=>{const{asChild:l,...c}=a,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function c5(e,t){e&&Xf.flushSync(()=>e.dispatchEvent(t))}function Hn(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function tG(e,t=globalThis==null?void 0:globalThis.document){const n=Hn(e);y.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nG="DismissableLayer",V1="dismissableLayer.update",rG="dismissableLayer.pointerDownOutside",aG="dismissableLayer.focusOutside",AC,u5=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jf=y.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...f}=e,d=y.useContext(u5),[m,h]=y.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=y.useState({}),A=ct(t,N=>h(N)),S=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),O=S.indexOf(w),E=m?S.indexOf(m):-1,j=d.layersWithOutsidePointerEventsDisabled.size>0,C=E>=O,T=sG(N=>{const k=N.target,z=[...d.branches].some(V=>V.contains(k));!C||z||(a==null||a(N),l==null||l(N),N.defaultPrevented||c==null||c())},g),R=lG(N=>{const k=N.target;[...d.branches].some(V=>V.contains(k))||(o==null||o(N),l==null||l(N),N.defaultPrevented||c==null||c())},g);return tG(N=>{E===d.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},g),y.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(AC=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),OC(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=AC)}},[m,g,n,d]),y.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),OC())},[m,d]),y.useEffect(()=>{const N=()=>x({});return document.addEventListener(V1,N),()=>document.removeEventListener(V1,N)},[]),v.jsx(Qe.div,{...f,ref:A,style:{pointerEvents:j?C?"auto":"none":void 0,...e.style},onFocusCapture:$e(e.onFocusCapture,R.onFocusCapture),onBlurCapture:$e(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:$e(e.onPointerDownCapture,T.onPointerDownCapture)})});Jf.displayName=nG;var iG="DismissableLayerBranch",oG=y.forwardRef((e,t)=>{const n=y.useContext(u5),r=y.useRef(null),a=ct(t,r);return y.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),v.jsx(Qe.div,{...e,ref:a})});oG.displayName=iG;function sG(e,t=globalThis==null?void 0:globalThis.document){const n=Hn(e),r=y.useRef(!1),a=y.useRef(()=>{});return y.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let f=function(){f5(rG,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lG(e,t=globalThis==null?void 0:globalThis.document){const n=Hn(e),r=y.useRef(!1);return y.useEffect(()=>{const a=o=>{o.target&&!r.current&&f5(aG,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function OC(){const e=new CustomEvent(V1);document.dispatchEvent(e)}function f5(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?c5(a,o):a.dispatchEvent(o)}var Ob="focusScope.autoFocusOnMount",Eb="focusScope.autoFocusOnUnmount",EC={bubbles:!1,cancelable:!0},cG="FocusScope",Gm=y.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[c,f]=y.useState(null),d=Hn(a),m=Hn(o),h=y.useRef(null),g=ct(t,S=>f(S)),x=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let S=function(j){if(x.paused||!c)return;const C=j.target;c.contains(C)?h.current=C:po(h.current,{select:!0})},w=function(j){if(x.paused||!c)return;const C=j.relatedTarget;C!==null&&(c.contains(C)||po(h.current,{select:!0}))},O=function(j){if(document.activeElement===document.body)for(const T of j)T.removedNodes.length>0&&po(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",w);const E=new MutationObserver(O);return c&&E.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",w),E.disconnect()}}},[r,c,x.paused]),y.useEffect(()=>{if(c){jC.add(x);const S=document.activeElement;if(!c.contains(S)){const O=new CustomEvent(Ob,EC);c.addEventListener(Ob,d),c.dispatchEvent(O),O.defaultPrevented||(uG(mG(d5(c)),{select:!0}),document.activeElement===S&&po(c))}return()=>{c.removeEventListener(Ob,d),setTimeout(()=>{const O=new CustomEvent(Eb,EC);c.addEventListener(Eb,m),c.dispatchEvent(O),O.defaultPrevented||po(S??document.body,{select:!0}),c.removeEventListener(Eb,m),jC.remove(x)},0)}}},[c,d,m,x]);const A=y.useCallback(S=>{if(!n&&!r||x.paused)return;const w=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,O=document.activeElement;if(w&&O){const E=S.currentTarget,[j,C]=fG(E);j&&C?!S.shiftKey&&O===C?(S.preventDefault(),n&&po(j,{select:!0})):S.shiftKey&&O===j&&(S.preventDefault(),n&&po(C,{select:!0})):O===E&&S.preventDefault()}},[n,r,x.paused]);return v.jsx(Qe.div,{tabIndex:-1,...l,ref:g,onKeyDown:A})});Gm.displayName=cG;function uG(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(po(r,{select:t}),document.activeElement!==n)return}function fG(e){const t=d5(e),n=TC(t,e),r=TC(t.reverse(),e);return[n,r]}function d5(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function TC(e,t){for(const n of e)if(!dG(n,{upTo:t}))return n}function dG(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 hG(e){return e instanceof HTMLInputElement&&"select"in e}function po(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hG(e)&&t&&e.select()}}var jC=pG();function pG(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=CC(e,t),e.unshift(t)},remove(t){var n;e=CC(e,t),(n=e[0])==null||n.resume()}}}function CC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function mG(e){return e.filter(t=>t.tagName!=="A")}var vG="Portal",ed=y.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[a,o]=y.useState(!1);Gn(()=>o(!0),[]);const l=n||a&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?Uz.createPortal(v.jsx(Qe.div,{...r,ref:t}),l):null});ed.displayName=vG;function gG(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var cr=e=>{const{present:t,children:n}=e,r=yG(t),a=typeof n=="function"?n({present:r.isPresent}):y.Children.only(n),o=ct(r.ref,bG(a));return typeof n=="function"||r.isPresent?y.cloneElement(a,{ref:o}):null};cr.displayName="Presence";function yG(e){const[t,n]=y.useState(),r=y.useRef(null),a=y.useRef(e),o=y.useRef("none"),l=e?"mounted":"unmounted",[c,f]=gG(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const d=Lh(r.current);o.current=c==="mounted"?d:"none"},[c]),Gn(()=>{const d=r.current,m=a.current;if(m!==e){const g=o.current,x=Lh(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(m&&g!==x?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),Gn(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,h=x=>{const S=Lh(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&S&&(f("ANIMATION_END"),!a.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=x=>{x.target===t&&(o.current=Lh(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:y.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Lh(e){return(e==null?void 0:e.animationName)||"none"}function bG(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tb=0;function K_(){y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??RC()),document.body.insertAdjacentElement("beforeend",e[1]??RC()),Tb++,()=>{Tb===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tb--}},[])}function RC(){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 Ba=function(){return Ba=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ba.apply(this,arguments)};function h5(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function xG(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var cp="right-scroll-bar-position",up="width-before-scroll-bar",wG="with-scroll-bars-hidden",SG="--removed-body-scroll-bar-size";function jb(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _G(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var AG=typeof window<"u"?y.useLayoutEffect:y.useEffect,NC=new WeakMap;function OG(e,t){var n=_G(null,function(r){return e.forEach(function(a){return jb(a,r)})});return AG(function(){var r=NC.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(c){o.has(c)||jb(c,null)}),o.forEach(function(c){a.has(c)||jb(c,l)})}NC.set(n,e)},[e]),n}function EG(e){return e}function TG(e,t){t===void 0&&(t=EG);var n=[],r=!1,a={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(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(m){l.push(m),d()},filter:function(m){return l=l.filter(m),n}}}};return a}function jG(e){e===void 0&&(e={});var t=TG(null);return t.options=Ba({async:!0,ssr:!1},e),t}var p5=function(e){var t=e.sideCar,n=h5(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 y.createElement(r,Ba({},n))};p5.isSideCarExport=!0;function CG(e,t){return e.useMedium(t),p5}var m5=jG(),Cb=function(){},Wm=y.forwardRef(function(e,t){var n=y.useRef(null),r=y.useState({onScrollCapture:Cb,onWheelCapture:Cb,onTouchMoveCapture:Cb}),a=r[0],o=r[1],l=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,x=e.noRelative,A=e.noIsolation,S=e.inert,w=e.allowPinchZoom,O=e.as,E=O===void 0?"div":O,j=e.gapMode,C=h5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=g,R=OG([n,t]),N=Ba(Ba({},C),a);return y.createElement(y.Fragment,null,m&&y.createElement(T,{sideCar:m5,removeScrollBar:d,shards:h,noRelative:x,noIsolation:A,inert:S,setCallbacks:o,allowPinchZoom:!!w,lockRef:n,gapMode:j}),l?y.cloneElement(y.Children.only(c),Ba(Ba({},N),{ref:R})):y.createElement(E,Ba({},N,{className:f,ref:R}),c))});Wm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wm.classNames={fullWidth:up,zeroRight:cp};var RG=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NG(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=RG();return t&&e.setAttribute("nonce",t),e}function MG(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function PG(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DG=function(){var e=0,t=null;return{add:function(n){e==0&&(t=NG())&&(MG(t,n),PG(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kG=function(){var e=DG();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},v5=function(){var e=kG(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},$G={left:0,top:0,right:0,gap:0},Rb=function(e){return parseInt(e||"",10)||0},zG=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Rb(n),Rb(r),Rb(a)]},LG=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return $G;var t=zG(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])}},IG=v5(),$l="data-scroll-locked",BG=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
301
|
-
.`.concat(wG,` {
|
|
302
|
-
overflow: hidden `).concat(r,`;
|
|
303
|
-
padding-right: `).concat(c,"px ").concat(r,`;
|
|
304
|
-
}
|
|
305
|
-
body[`).concat($l,`] {
|
|
306
|
-
overflow: hidden `).concat(r,`;
|
|
307
|
-
overscroll-behavior: contain;
|
|
308
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
309
|
-
padding-left: `.concat(a,`px;
|
|
310
|
-
padding-top: `).concat(o,`px;
|
|
311
|
-
padding-right: `).concat(l,`px;
|
|
312
|
-
margin-left:0;
|
|
313
|
-
margin-top:0;
|
|
314
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
315
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.`).concat(cp,` {
|
|
319
|
-
right: `).concat(c,"px ").concat(r,`;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.`).concat(up,` {
|
|
323
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
.`).concat(cp," .").concat(cp,` {
|
|
327
|
-
right: 0 `).concat(r,`;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.`).concat(up," .").concat(up,` {
|
|
331
|
-
margin-right: 0 `).concat(r,`;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
body[`).concat($l,`] {
|
|
335
|
-
`).concat(SG,": ").concat(c,`px;
|
|
336
|
-
}
|
|
337
|
-
`)},MC=function(){var e=parseInt(document.body.getAttribute($l)||"0",10);return isFinite(e)?e:0},UG=function(){y.useEffect(function(){return document.body.setAttribute($l,(MC()+1).toString()),function(){var e=MC()-1;e<=0?document.body.removeAttribute($l):document.body.setAttribute($l,e.toString())}},[])},qG=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;UG();var o=y.useMemo(function(){return LG(a)},[a]);return y.createElement(IG,{styles:BG(o,!t,a,n?"":"!important")})},G1=!1;if(typeof window<"u")try{var Ih=Object.defineProperty({},"passive",{get:function(){return G1=!0,!0}});window.addEventListener("test",Ih,Ih),window.removeEventListener("test",Ih,Ih)}catch{G1=!1}var Al=G1?{passive:!1}:!1,HG=function(e){return e.tagName==="TEXTAREA"},g5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!HG(e)&&n[t]==="visible")},FG=function(e){return g5(e,"overflowY")},VG=function(e){return g5(e,"overflowX")},PC=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=y5(e,r);if(a){var o=b5(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},GG=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},WG=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},y5=function(e,t){return e==="v"?FG(t):VG(t)},b5=function(e,t){return e==="v"?GG(t):WG(t)},YG=function(e,t){return e==="h"&&t==="rtl"?-1:1},ZG=function(e,t,n,r,a){var o=YG(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,f=t.contains(c),d=!1,m=l>0,h=0,g=0;do{if(!c)break;var x=b5(e,c),A=x[0],S=x[1],w=x[2],O=S-w-o*A;(A||O)&&y5(e,c)&&(h+=O,g+=A);var E=c.parentNode;c=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(h)<1||!m&&Math.abs(g)<1)&&(d=!0),d},Bh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},DC=function(e){return[e.deltaX,e.deltaY]},kC=function(e){return e&&"current"in e?e.current:e},KG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},XG=function(e){return`
|
|
338
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
339
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
340
|
-
`)},QG=0,Ol=[];function JG(e){var t=y.useRef([]),n=y.useRef([0,0]),r=y.useRef(),a=y.useState(QG++)[0],o=y.useState(v5)[0],l=y.useRef(e);y.useEffect(function(){l.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var S=xG([e.lockRef.current],(e.shards||[]).map(kC),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=y.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var O=Bh(S),E=n.current,j="deltaX"in S?S.deltaX:E[0]-O[0],C="deltaY"in S?S.deltaY:E[1]-O[1],T,R=S.target,N=Math.abs(j)>Math.abs(C)?"h":"v";if("touches"in S&&N==="h"&&R.type==="range")return!1;var k=window.getSelection(),z=k&&k.anchorNode,V=z?z===R||z.contains(R):!1;if(V)return!1;var B=PC(N,R);if(!B)return!0;if(B?T=N:(T=N==="v"?"h":"v",B=PC(N,R)),!B)return!1;if(!r.current&&"changedTouches"in S&&(j||C)&&(r.current=T),!T)return!0;var I=r.current||T;return ZG(I,w,S,I==="h"?j:C)},[]),f=y.useCallback(function(S){var w=S;if(!(!Ol.length||Ol[Ol.length-1]!==o)){var O="deltaY"in w?DC(w):Bh(w),E=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&KG(T.delta,O)})[0];if(E&&E.should){w.cancelable&&w.preventDefault();return}if(!E){var j=(l.current.shards||[]).map(kC).filter(Boolean).filter(function(T){return T.contains(w.target)}),C=j.length>0?c(w,j[0]):!l.current.noIsolation;C&&w.cancelable&&w.preventDefault()}}},[]),d=y.useCallback(function(S,w,O,E){var j={name:S,delta:w,target:O,should:E,shadowParent:eW(O)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(C){return C!==j})},1)},[]),m=y.useCallback(function(S){n.current=Bh(S),r.current=void 0},[]),h=y.useCallback(function(S){d(S.type,DC(S),S.target,c(S,e.lockRef.current))},[]),g=y.useCallback(function(S){d(S.type,Bh(S),S.target,c(S,e.lockRef.current))},[]);y.useEffect(function(){return Ol.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:g}),document.addEventListener("wheel",f,Al),document.addEventListener("touchmove",f,Al),document.addEventListener("touchstart",m,Al),function(){Ol=Ol.filter(function(S){return S!==o}),document.removeEventListener("wheel",f,Al),document.removeEventListener("touchmove",f,Al),document.removeEventListener("touchstart",m,Al)}},[]);var x=e.removeScrollBar,A=e.inert;return y.createElement(y.Fragment,null,A?y.createElement(o,{styles:XG(a)}):null,x?y.createElement(qG,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function eW(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const tW=CG(m5,JG);var Ym=y.forwardRef(function(e,t){return y.createElement(Wm,Ba({},e,{ref:t,sideCar:tW}))});Ym.classNames=Wm.classNames;var nW=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},El=new WeakMap,Uh=new WeakMap,qh={},Nb=0,x5=function(e){return e&&(e.host||x5(e.parentNode))},rW=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=x5(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})},aW=function(e,t,n,r){var a=rW(t,Array.isArray(e)?e:[e]);qh[n]||(qh[n]=new WeakMap);var o=qh[n],l=[],c=new Set,f=new Set(a),d=function(h){!h||c.has(h)||(c.add(h),d(h.parentNode))};a.forEach(d);var m=function(h){!h||f.has(h)||Array.prototype.forEach.call(h.children,function(g){if(c.has(g))m(g);else try{var x=g.getAttribute(r),A=x!==null&&x!=="false",S=(El.get(g)||0)+1,w=(o.get(g)||0)+1;El.set(g,S),o.set(g,w),l.push(g),S===1&&A&&Uh.set(g,!0),w===1&&g.setAttribute(n,"true"),A||g.setAttribute(r,"true")}catch(O){console.error("aria-hidden: cannot operate on ",g,O)}})};return m(t),c.clear(),Nb++,function(){l.forEach(function(h){var g=El.get(h)-1,x=o.get(h)-1;El.set(h,g),o.set(h,x),g||(Uh.has(h)||h.removeAttribute(r),Uh.delete(h)),x||h.removeAttribute(n)}),Nb--,Nb||(El=new WeakMap,El=new WeakMap,Uh=new WeakMap,qh={})}},X_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=nW(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),aW(r,a,n,"aria-hidden")):function(){return null}},Zm="Dialog",[w5,S5]=sa(Zm),[iW,Ra]=w5(Zm),_5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=y.useRef(null),f=y.useRef(null),[d,m]=Eo({prop:r,defaultProp:a??!1,onChange:o,caller:Zm});return v.jsx(iW,{scope:t,triggerRef:c,contentRef:f,contentId:Aa(),titleId:Aa(),descriptionId:Aa(),open:d,onOpenChange:m,onOpenToggle:y.useCallback(()=>m(h=>!h),[m]),modal:l,children:n})};_5.displayName=Zm;var A5="DialogTrigger",O5=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(A5,n),o=ct(t,a.triggerRef);return v.jsx(Qe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":eA(a.open),...r,ref:o,onClick:$e(e.onClick,a.onOpenToggle)})});O5.displayName=A5;var Q_="DialogPortal",[oW,E5]=w5(Q_,{forceMount:void 0}),T5=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Ra(Q_,t);return v.jsx(oW,{scope:t,forceMount:n,children:y.Children.map(r,l=>v.jsx(cr,{present:n||o.open,children:v.jsx(ed,{asChild:!0,container:a,children:l})}))})};T5.displayName=Q_;var Ap="DialogOverlay",j5=y.forwardRef((e,t)=>{const n=E5(Ap,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Ra(Ap,e.__scopeDialog);return o.modal?v.jsx(cr,{present:r||o.open,children:v.jsx(lW,{...a,ref:t})}):null});j5.displayName=Ap;var sW=Vl("DialogOverlay.RemoveScroll"),lW=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(Ap,n);return v.jsx(Ym,{as:sW,allowPinchZoom:!0,shards:[a.contentRef],children:v.jsx(Qe.div,{"data-state":eA(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),bs="DialogContent",C5=y.forwardRef((e,t)=>{const n=E5(bs,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Ra(bs,e.__scopeDialog);return v.jsx(cr,{present:r||o.open,children:o.modal?v.jsx(cW,{...a,ref:t}):v.jsx(uW,{...a,ref:t})})});C5.displayName=bs;var cW=y.forwardRef((e,t)=>{const n=Ra(bs,e.__scopeDialog),r=y.useRef(null),a=ct(t,n.contentRef,r);return y.useEffect(()=>{const o=r.current;if(o)return X_(o)},[]),v.jsx(R5,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$e(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:$e(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:$e(e.onFocusOutside,o=>o.preventDefault())})}),uW=y.forwardRef((e,t)=>{const n=Ra(bs,e.__scopeDialog),r=y.useRef(!1),a=y.useRef(!1);return v.jsx(R5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{var f,d;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;((d=n.triggerRef.current)==null?void 0:d.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),R5=y.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,c=Ra(bs,n),f=y.useRef(null),d=ct(t,f);return K_(),v.jsxs(v.Fragment,{children:[v.jsx(Gm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:v.jsx(Jf,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eA(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(dW,{titleId:c.titleId}),v.jsx(pW,{contentRef:f,descriptionId:c.descriptionId})]})]})}),J_="DialogTitle",N5=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(J_,n);return v.jsx(Qe.h2,{id:a.titleId,...r,ref:t})});N5.displayName=J_;var M5="DialogDescription",P5=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(M5,n);return v.jsx(Qe.p,{id:a.descriptionId,...r,ref:t})});P5.displayName=M5;var D5="DialogClose",k5=y.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ra(D5,n);return v.jsx(Qe.button,{type:"button",...r,ref:t,onClick:$e(e.onClick,()=>a.onOpenChange(!1))})});k5.displayName=D5;function eA(e){return e?"open":"closed"}var $5="DialogTitleWarning",[fW,z5]=HV($5,{contentName:bs,titleName:J_,docsSlug:"dialog"}),dW=({titleId:e})=>{const t=z5($5),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
341
|
-
|
|
342
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
343
|
-
|
|
344
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return y.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},hW="DialogDescriptionWarning",pW=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${z5(hW).contentName}}.`;return y.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tA=_5,L5=O5,nA=T5,td=j5,nd=C5,rd=N5,ad=P5,Km=k5;const mW=tA,vW=nA,I5=y.forwardRef(({className:e,...t},n)=>v.jsx(td,{className:xe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));I5.displayName=td.displayName;const gW=wc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),B5=y.forwardRef(({side:e="right",className:t,children:n,...r},a)=>v.jsxs(vW,{children:[v.jsx(I5,{}),v.jsxs(nd,{ref:a,className:xe(gW({side:e}),t),...r,children:[n,v.jsxs(Km,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(Qz,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));B5.displayName=nd.displayName;const U5=({className:e,...t})=>v.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",e),...t});U5.displayName="SheetHeader";const q5=y.forwardRef(({className:e,...t},n)=>v.jsx(rd,{ref:n,className:xe("text-lg font-semibold text-foreground",e),...t}));q5.displayName=rd.displayName;const H5=y.forwardRef(({className:e,...t},n)=>v.jsx(ad,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));H5.displayName=ad.displayName;function $C({className:e,...t}){return v.jsx("div",{className:xe("animate-pulse rounded-md bg-muted",e),...t})}const yW=["top","right","bottom","left"],To=Math.min,Mr=Math.max,Op=Math.round,Hh=Math.floor,Va=e=>({x:e,y:e}),bW={left:"right",right:"left",bottom:"top",top:"bottom"};function W1(e,t,n){return Mr(e,To(t,n))}function Ri(e,t){return typeof e=="function"?e(t):e}function Ni(e){return e.split("-")[0]}function _c(e){return e.split("-")[1]}function rA(e){return e==="x"?"y":"x"}function aA(e){return e==="y"?"height":"width"}function Ua(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function iA(e){return rA(Ua(e))}function xW(e,t,n){n===void 0&&(n=!1);const r=_c(e),a=iA(e),o=aA(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Ep(l)),[l,Ep(l)]}function wW(e){const t=Ep(e);return[Y1(e),t,Y1(t)]}function Y1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zC=["left","right"],LC=["right","left"],SW=["top","bottom"],_W=["bottom","top"];function AW(e,t,n){switch(e){case"top":case"bottom":return n?t?LC:zC:t?zC:LC;case"left":case"right":return t?SW:_W;default:return[]}}function OW(e,t,n,r){const a=_c(e);let o=AW(Ni(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(Y1)))),o}function Ep(e){const t=Ni(e);return bW[t]+e.slice(t.length)}function EW(e){return{top:0,right:0,bottom:0,left:0,...e}}function F5(e){return typeof e!="number"?EW(e):{top:e,right:e,bottom:e,left:e}}function Tp(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function IC(e,t,n){let{reference:r,floating:a}=e;const o=Ua(t),l=iA(t),c=aA(l),f=Ni(t),d=o==="y",m=r.x+r.width/2-a.width/2,h=r.y+r.height/2-a.height/2,g=r[c]/2-a[c]/2;let x;switch(f){case"top":x={x:m,y:r.y-a.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-a.width,y:h};break;default:x={x:r.x,y:r.y}}switch(_c(t)){case"start":x[l]-=g*(n&&d?-1:1);break;case"end":x[l]+=g*(n&&d?-1:1);break}return x}async function TW(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:g=!1,padding:x=0}=Ri(t,e),A=F5(x),w=c[g?h==="floating"?"reference":"floating":h],O=Tp(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),E=h==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),C=await(o.isElement==null?void 0:o.isElement(j))?await(o.getScale==null?void 0:o.getScale(j))||{x:1,y:1}:{x:1,y:1},T=Tp(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:E,offsetParent:j,strategy:f}):E);return{top:(O.top-T.top+A.top)/C.y,bottom:(T.bottom-O.bottom+A.bottom)/C.y,left:(O.left-T.left+A.left)/C.x,right:(T.right-O.right+A.right)/C.x}}const jW=50,CW=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,c=l.detectOverflow?l:{...l,detectOverflow:TW},f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:h}=IC(d,r,f),g=r,x=0;const A={};for(let S=0;S<o.length;S++){const w=o[S];if(!w)continue;const{name:O,fn:E}=w,{x:j,y:C,data:T,reset:R}=await E({x:m,y:h,initialPlacement:r,placement:g,strategy:a,middlewareData:A,rects:d,platform:c,elements:{reference:e,floating:t}});m=j??m,h=C??h,A[O]={...A[O],...T},R&&x<jW&&(x++,typeof R=="object"&&(R.placement&&(g=R.placement),R.rects&&(d=R.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):R.rects),{x:m,y:h}=IC(d,g,f)),S=-1)}return{x:m,y:h,placement:g,strategy:a,middlewareData:A}},RW=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=Ri(e,t)||{};if(d==null)return{};const h=F5(m),g={x:n,y:r},x=iA(a),A=aA(x),S=await l.getDimensions(d),w=x==="y",O=w?"top":"left",E=w?"bottom":"right",j=w?"clientHeight":"clientWidth",C=o.reference[A]+o.reference[x]-g[x]-o.floating[A],T=g[x]-o.reference[x],R=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let N=R?R[j]:0;(!N||!await(l.isElement==null?void 0:l.isElement(R)))&&(N=c.floating[j]||o.floating[A]);const k=C/2-T/2,z=N/2-S[A]/2-1,V=To(h[O],z),B=To(h[E],z),I=V,F=N-S[A]-B,G=N/2-S[A]/2+k,Y=W1(I,G,F),$=!f.arrow&&_c(a)!=null&&G!==Y&&o.reference[A]/2-(G<I?V:B)-S[A]/2<0,q=$?G<I?G-I:G-F:0;return{[x]:g[x]+q,data:{[x]:Y,centerOffset:G-Y-q,...$&&{alignmentOffset:q}},reset:$}}}),NW=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:S=!0,...w}=Ri(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const O=Ni(a),E=Ua(c),j=Ni(c)===c,C=await(f.isRTL==null?void 0:f.isRTL(d.floating)),T=g||(j||!S?[Ep(c)]:wW(c)),R=A!=="none";!g&&R&&T.push(...OW(c,S,A,C));const N=[c,...T],k=await f.detectOverflow(t,w),z=[];let V=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&z.push(k[O]),h){const G=xW(a,l,C);z.push(k[G[0]],k[G[1]])}if(V=[...V,{placement:a,overflows:z}],!z.every(G=>G<=0)){var B,I;const G=(((B=o.flip)==null?void 0:B.index)||0)+1,Y=N[G];if(Y&&(!(h==="alignment"?E!==Ua(Y):!1)||V.every(K=>Ua(K.placement)===E?K.overflows[0]>0:!0)))return{data:{index:G,overflows:V},reset:{placement:Y}};let $=(I=V.filter(q=>q.overflows[0]<=0).sort((q,K)=>q.overflows[1]-K.overflows[1])[0])==null?void 0:I.placement;if(!$)switch(x){case"bestFit":{var F;const q=(F=V.filter(K=>{if(R){const X=Ua(K.placement);return X===E||X==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(X=>X>0).reduce((X,Z)=>X+Z,0)]).sort((K,X)=>K[1]-X[1])[0])==null?void 0:F[0];q&&($=q);break}case"initialPlacement":$=c;break}if(a!==$)return{reset:{placement:$}}}return{}}}};function BC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function UC(e){return yW.some(t=>e[t]>=0)}const MW=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...o}=Ri(e,t);switch(a){case"referenceHidden":{const l=await r.detectOverflow(t,{...o,elementContext:"reference"}),c=BC(l,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:UC(c)}}}case"escaped":{const l=await r.detectOverflow(t,{...o,altBoundary:!0}),c=BC(l,n.floating);return{data:{escapedOffsets:c,escaped:UC(c)}}}default:return{}}}}},V5=new Set(["left","top"]);async function PW(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ni(n),c=_c(n),f=Ua(n)==="y",d=V5.has(l)?-1:1,m=o&&f?-1:1,h=Ri(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:A}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return c&&typeof A=="number"&&(x=c==="end"?A*-1:A),f?{x:x*m,y:g*d}:{x:g*d,y:x*m}}const DW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:c}=t,f=await PW(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},kW=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:o}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:O=>{let{x:E,y:j}=O;return{x:E,y:j}}},...d}=Ri(e,t),m={x:n,y:r},h=await o.detectOverflow(t,d),g=Ua(Ni(a)),x=rA(g);let A=m[x],S=m[g];if(l){const O=x==="y"?"top":"left",E=x==="y"?"bottom":"right",j=A+h[O],C=A-h[E];A=W1(j,A,C)}if(c){const O=g==="y"?"top":"left",E=g==="y"?"bottom":"right",j=S+h[O],C=S-h[E];S=W1(j,S,C)}const w=f.fn({...t,[x]:A,[g]:S});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[x]:l,[g]:c}}}}}},$W=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Ri(e,t),m={x:n,y:r},h=Ua(a),g=rA(h);let x=m[g],A=m[h];const S=Ri(c,t),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const j=g==="y"?"height":"width",C=o.reference[g]-o.floating[j]+w.mainAxis,T=o.reference[g]+o.reference[j]-w.mainAxis;x<C?x=C:x>T&&(x=T)}if(d){var O,E;const j=g==="y"?"width":"height",C=V5.has(Ni(a)),T=o.reference[h]-o.floating[j]+(C&&((O=l.offset)==null?void 0:O[h])||0)+(C?0:w.crossAxis),R=o.reference[h]+o.reference[j]+(C?0:((E=l.offset)==null?void 0:E[h])||0)-(C?w.crossAxis:0);A<T?A=T:A>R&&(A=R)}return{[g]:x,[h]:A}}}},zW=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:c}=t,{apply:f=()=>{},...d}=Ri(e,t),m=await l.detectOverflow(t,d),h=Ni(a),g=_c(a),x=Ua(a)==="y",{width:A,height:S}=o.floating;let w,O;h==="top"||h==="bottom"?(w=h,O=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(O=h,w=g==="end"?"top":"bottom");const E=S-m.top-m.bottom,j=A-m.left-m.right,C=To(S-m[w],E),T=To(A-m[O],j),R=!t.middlewareData.shift;let N=C,k=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=j),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=E),R&&!g){const V=Mr(m.left,0),B=Mr(m.right,0),I=Mr(m.top,0),F=Mr(m.bottom,0);x?k=A-2*(V!==0||B!==0?V+B:Mr(m.left,m.right)):N=S-2*(I!==0||F!==0?I+F:Mr(m.top,m.bottom))}await f({...t,availableWidth:k,availableHeight:N});const z=await l.getDimensions(c.floating);return A!==z.width||S!==z.height?{reset:{rects:!0}}:{}}}};function Xm(){return typeof window<"u"}function Ac(e){return G5(e)?(e.nodeName||"").toLowerCase():"#document"}function Dr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qa(e){var t;return(t=(G5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function G5(e){return Xm()?e instanceof Node||e instanceof Dr(e).Node:!1}function Ta(e){return Xm()?e instanceof Element||e instanceof Dr(e).Element:!1}function $i(e){return Xm()?e instanceof HTMLElement||e instanceof Dr(e).HTMLElement:!1}function qC(e){return!Xm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dr(e).ShadowRoot}function id(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=ja(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&a!=="inline"&&a!=="contents"}function LW(e){return/^(table|td|th)$/.test(Ac(e))}function Qm(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const IW=/transform|translate|scale|rotate|perspective|filter/,BW=/paint|layout|strict|content/,is=e=>!!e&&e!=="none";let Mb;function oA(e){const t=Ta(e)?ja(e):e;return is(t.transform)||is(t.translate)||is(t.scale)||is(t.rotate)||is(t.perspective)||!sA()&&(is(t.backdropFilter)||is(t.filter))||IW.test(t.willChange||"")||BW.test(t.contain||"")}function UW(e){let t=jo(e);for(;$i(t)&&!Gl(t);){if(oA(t))return t;if(Qm(t))return null;t=jo(t)}return null}function sA(){return Mb==null&&(Mb=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mb}function Gl(e){return/^(html|body|#document)$/.test(Ac(e))}function ja(e){return Dr(e).getComputedStyle(e)}function Jm(e){return Ta(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jo(e){if(Ac(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qC(e)&&e.host||Qa(e);return qC(t)?t.host:t}function W5(e){const t=jo(e);return Gl(t)?e.ownerDocument?e.ownerDocument.body:e.body:$i(t)&&id(t)?t:W5(t)}function of(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=W5(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=Dr(a);if(o){const c=Z1(l);return t.concat(l,l.visualViewport||[],id(a)?a:[],c&&n?of(c):[])}else return t.concat(a,of(a,[],n))}function Z1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Y5(e){const t=ja(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=$i(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,c=Op(n)!==o||Op(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function lA(e){return Ta(e)?e:e.contextElement}function zl(e){const t=lA(e);if(!$i(t))return Va(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=Y5(t);let l=(o?Op(n.width):n.width)/r,c=(o?Op(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const qW=Va(0);function Z5(e){const t=Dr(e);return!sA()||!t.visualViewport?qW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function HW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dr(e)?!1:t}function xs(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=lA(e);let l=Va(1);t&&(r?Ta(r)&&(l=zl(r)):l=zl(e));const c=HW(o,n,r)?Z5(o):Va(0);let f=(a.left+c.x)/l.x,d=(a.top+c.y)/l.y,m=a.width/l.x,h=a.height/l.y;if(o){const g=Dr(o),x=r&&Ta(r)?Dr(r):r;let A=g,S=Z1(A);for(;S&&r&&x!==A;){const w=zl(S),O=S.getBoundingClientRect(),E=ja(S),j=O.left+(S.clientLeft+parseFloat(E.paddingLeft))*w.x,C=O.top+(S.clientTop+parseFloat(E.paddingTop))*w.y;f*=w.x,d*=w.y,m*=w.x,h*=w.y,f+=j,d+=C,A=Dr(S),S=Z1(A)}}return Tp({width:m,height:h,x:f,y:d})}function ev(e,t){const n=Jm(e).scrollLeft;return t?t.left+n:xs(Qa(e)).left+n}function K5(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-ev(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function FW(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=Qa(r),c=t?Qm(t.floating):!1;if(r===l||c&&o)return n;let f={scrollLeft:0,scrollTop:0},d=Va(1);const m=Va(0),h=$i(r);if((h||!h&&!o)&&((Ac(r)!=="body"||id(l))&&(f=Jm(r)),h)){const x=xs(r);d=zl(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const g=l&&!h&&!o?K5(l,f):Va(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 VW(e){return Array.from(e.getClientRects())}function GW(e){const t=Qa(e),n=Jm(e),r=e.ownerDocument.body,a=Mr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Mr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+ev(e);const c=-n.scrollTop;return ja(r).direction==="rtl"&&(l+=Mr(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:c}}const HC=25;function WW(e,t){const n=Dr(e),r=Qa(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,f=0;if(a){o=a.width,l=a.height;const m=sA();(!m||m&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}const d=ev(r);if(d<=0){const m=r.ownerDocument,h=m.body,g=getComputedStyle(h),x=m.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,A=Math.abs(r.clientWidth-h.clientWidth-x);A<=HC&&(o-=A)}else d<=HC&&(o+=d);return{width:o,height:l,x:c,y:f}}function YW(e,t){const n=xs(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=$i(e)?zl(e):Va(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,f=a*o.x,d=r*o.y;return{width:l,height:c,x:f,y:d}}function FC(e,t,n){let r;if(t==="viewport")r=WW(e,n);else if(t==="document")r=GW(Qa(e));else if(Ta(t))r=YW(t,n);else{const a=Z5(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Tp(r)}function X5(e,t){const n=jo(e);return n===t||!Ta(n)||Gl(n)?!1:ja(n).position==="fixed"||X5(n,t)}function ZW(e,t){const n=t.get(e);if(n)return n;let r=of(e,[],!1).filter(c=>Ta(c)&&Ac(c)!=="body"),a=null;const o=ja(e).position==="fixed";let l=o?jo(e):e;for(;Ta(l)&&!Gl(l);){const c=ja(l),f=oA(l);!f&&c.position==="fixed"&&(a=null),(o?!f&&!a:!f&&c.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||id(l)&&!f&&X5(e,l))?r=r.filter(m=>m!==l):a=c,l=jo(l)}return t.set(e,r),r}function KW(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Qm(t)?[]:ZW(t,this._c):[].concat(n),r],c=FC(t,l[0],a);let f=c.top,d=c.right,m=c.bottom,h=c.left;for(let g=1;g<l.length;g++){const x=FC(t,l[g],a);f=Mr(x.top,f),d=To(x.right,d),m=To(x.bottom,m),h=Mr(x.left,h)}return{width:d-h,height:m-f,x:h,y:f}}function XW(e){const{width:t,height:n}=Y5(e);return{width:t,height:n}}function QW(e,t,n){const r=$i(t),a=Qa(t),o=n==="fixed",l=xs(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=Va(0);function d(){f.x=ev(a)}if(r||!r&&!o)if((Ac(t)!=="body"||id(a))&&(c=Jm(t)),r){const x=xs(t,!0,o,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else a&&d();o&&!r&&a&&d();const m=a&&!r&&!o?K5(a,c):Va(0),h=l.left+c.scrollLeft-f.x-m.x,g=l.top+c.scrollTop-f.y-m.y;return{x:h,y:g,width:l.width,height:l.height}}function Pb(e){return ja(e).position==="static"}function VC(e,t){if(!$i(e)||ja(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qa(e)===n&&(n=n.ownerDocument.body),n}function Q5(e,t){const n=Dr(e);if(Qm(e))return n;if(!$i(e)){let a=jo(e);for(;a&&!Gl(a);){if(Ta(a)&&!Pb(a))return a;a=jo(a)}return n}let r=VC(e,t);for(;r&&LW(r)&&Pb(r);)r=VC(r,t);return r&&Gl(r)&&Pb(r)&&!oA(r)?n:r||UW(e)||n}const JW=async function(e){const t=this.getOffsetParent||Q5,n=this.getDimensions,r=await n(e.floating);return{reference:QW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function eY(e){return ja(e).direction==="rtl"}const tY={convertOffsetParentRelativeRectToViewportRelativeRect:FW,getDocumentElement:Qa,getClippingRect:KW,getOffsetParent:Q5,getElementRects:JW,getClientRects:VW,getDimensions:XW,getScale:zl,isElement:Ta,isRTL:eY};function J5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function nY(e,t){let n=null,r;const a=Qa(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),o();const d=e.getBoundingClientRect(),{left:m,top:h,width:g,height:x}=d;if(c||t(),!g||!x)return;const A=Hh(h),S=Hh(a.clientWidth-(m+g)),w=Hh(a.clientHeight-(h+x)),O=Hh(m),j={rootMargin:-A+"px "+-S+"px "+-w+"px "+-O+"px",threshold:Mr(0,To(1,f))||1};let C=!0;function T(R){const N=R[0].intersectionRatio;if(N!==f){if(!C)return l();N?l(!1,N):r=setTimeout(()=>{l(!1,1e-7)},1e3)}N===1&&!J5(d,e.getBoundingClientRect())&&l(),C=!1}try{n=new IntersectionObserver(T,{...j,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,j)}n.observe(e)}return l(!0),o}function rY(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=lA(e),m=a||o?[...d?of(d):[],...t?of(t):[]]:[];m.forEach(O=>{a&&O.addEventListener("scroll",n,{passive:!0}),o&&O.addEventListener("resize",n)});const h=d&&c?nY(d,n):null;let g=-1,x=null;l&&(x=new ResizeObserver(O=>{let[E]=O;E&&E.target===d&&x&&t&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var j;(j=x)==null||j.observe(t)})),n()}),d&&!f&&x.observe(d),t&&x.observe(t));let A,S=f?xs(e):null;f&&w();function w(){const O=xs(e);S&&!J5(S,O)&&n(),S=O,A=requestAnimationFrame(w)}return n(),()=>{var O;m.forEach(E=>{a&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),h==null||h(),(O=x)==null||O.disconnect(),x=null,f&&cancelAnimationFrame(A)}}const aY=DW,iY=kW,oY=NW,sY=zW,lY=MW,GC=RW,cY=$W,uY=(e,t,n)=>{const r=new Map,a={platform:tY,...n},o={...a.platform,_c:r};return CW(e,t,{...a,platform:o})};var fY=typeof document<"u",dY=function(){},fp=fY?y.useLayoutEffect:dY;function jp(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,a;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(!jp(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!jp(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function eL(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function WC(e,t){const n=eL(e);return Math.round(t*n)/n}function Db(e){const t=y.useRef(e);return fp(()=>{t.current=e}),t}function hY(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,h]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=y.useState(r);jp(g,r)||x(r);const[A,S]=y.useState(null),[w,O]=y.useState(null),E=y.useCallback(K=>{K!==R.current&&(R.current=K,S(K))},[]),j=y.useCallback(K=>{K!==N.current&&(N.current=K,O(K))},[]),C=o||A,T=l||w,R=y.useRef(null),N=y.useRef(null),k=y.useRef(m),z=f!=null,V=Db(f),B=Db(a),I=Db(d),F=y.useCallback(()=>{if(!R.current||!N.current)return;const K={placement:t,strategy:n,middleware:g};B.current&&(K.platform=B.current),uY(R.current,N.current,K).then(X=>{const Z={...X,isPositioned:I.current!==!1};G.current&&!jp(k.current,Z)&&(k.current=Z,Xf.flushSync(()=>{h(Z)}))})},[g,t,n,B,I]);fp(()=>{d===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,h(K=>({...K,isPositioned:!1})))},[d]);const G=y.useRef(!1);fp(()=>(G.current=!0,()=>{G.current=!1}),[]),fp(()=>{if(C&&(R.current=C),T&&(N.current=T),C&&T){if(V.current)return V.current(C,T,F);F()}},[C,T,F,V,z]);const Y=y.useMemo(()=>({reference:R,floating:N,setReference:E,setFloating:j}),[E,j]),$=y.useMemo(()=>({reference:C,floating:T}),[C,T]),q=y.useMemo(()=>{const K={position:n,left:0,top:0};if(!$.floating)return K;const X=WC($.floating,m.x),Z=WC($.floating,m.y);return c?{...K,transform:"translate("+X+"px, "+Z+"px)",...eL($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:Z}},[n,c,$.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:F,refs:Y,elements:$,floatingStyles:q}),[m,F,Y,$,q])}const pY=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?GC({element:r.current,padding:a}).fn(n):{}:r?GC({element:r,padding:a}).fn(n):{}}}},mY=(e,t)=>{const n=aY(e);return{name:n.name,fn:n.fn,options:[e,t]}},vY=(e,t)=>{const n=iY(e);return{name:n.name,fn:n.fn,options:[e,t]}},gY=(e,t)=>({fn:cY(e).fn,options:[e,t]}),yY=(e,t)=>{const n=oY(e);return{name:n.name,fn:n.fn,options:[e,t]}},bY=(e,t)=>{const n=sY(e);return{name:n.name,fn:n.fn,options:[e,t]}},xY=(e,t)=>{const n=lY(e);return{name:n.name,fn:n.fn,options:[e,t]}},wY=(e,t)=>{const n=pY(e);return{name:n.name,fn:n.fn,options:[e,t]}};var SY="Arrow",tL=y.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return v.jsx(Qe.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});tL.displayName=SY;var _Y=tL;function nL(e){const[t,n]=y.useState(void 0);return Gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,c;if("borderBoxSize"in o){const f=o.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var cA="Popper",[rL,Oc]=sa(cA),[AY,aL]=rL(cA),iL=e=>{const{__scopePopper:t,children:n}=e,[r,a]=y.useState(null);return v.jsx(AY,{scope:t,anchor:r,onAnchorChange:a,children:n})};iL.displayName=cA;var oL="PopperAnchor",sL=y.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=aL(oL,n),l=y.useRef(null),c=ct(t,l),f=y.useRef(null);return y.useEffect(()=>{const d=f.current;f.current=(r==null?void 0:r.current)||l.current,d!==f.current&&o.onAnchorChange(f.current)}),r?null:v.jsx(Qe.div,{...a,ref:c})});sL.displayName=oL;var uA="PopperContent",[OY,EY]=rL(uA),lL=y.forwardRef((e,t)=>{var he,we,se,Oe,_e,ie;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:A,...S}=e,w=aL(uA,n),[O,E]=y.useState(null),j=ct(t,Ge=>E(Ge)),[C,T]=y.useState(null),R=nL(C),N=(R==null?void 0:R.width)??0,k=(R==null?void 0:R.height)??0,z=r+(o!=="center"?"-"+o:""),V=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(d)?d:[d],I=B.length>0,F={padding:V,boundary:B.filter(jY),altBoundary:I},{refs:G,floatingStyles:Y,placement:$,isPositioned:q,middlewareData:K}=hY({strategy:"fixed",placement:z,whileElementsMounted:(...Ge)=>rY(...Ge,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[mY({mainAxis:a+k,alignmentAxis:l}),f&&vY({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?gY():void 0,...F}),f&&yY({...F}),bY({...F,apply:({elements:Ge,rects:ze,availableWidth:Je,availableHeight:Ke})=>{const{width:st,height:Tt}=ze.reference,pt=Ge.floating.style;pt.setProperty("--radix-popper-available-width",`${Je}px`),pt.setProperty("--radix-popper-available-height",`${Ke}px`),pt.setProperty("--radix-popper-anchor-width",`${st}px`),pt.setProperty("--radix-popper-anchor-height",`${Tt}px`)}}),C&&wY({element:C,padding:c}),CY({arrowWidth:N,arrowHeight:k}),g&&xY({strategy:"referenceHidden",...F})]}),[X,Z]=fL($),P=Hn(A);Gn(()=>{q&&(P==null||P())},[q,P]);const H=(he=K.arrow)==null?void 0:he.x,J=(we=K.arrow)==null?void 0:we.y,fe=((se=K.arrow)==null?void 0:se.centerOffset)!==0,[ye,ce]=y.useState();return Gn(()=>{O&&ce(window.getComputedStyle(O).zIndex)},[O]),v.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:q?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ye,"--radix-popper-transform-origin":[(Oe=K.transformOrigin)==null?void 0:Oe.x,(_e=K.transformOrigin)==null?void 0:_e.y].join(" "),...((ie=K.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(OY,{scope:n,placedSide:X,onArrowChange:T,arrowX:H,arrowY:J,shouldHideArrow:fe,children:v.jsx(Qe.div,{"data-side":X,"data-align":Z,...S,ref:j,style:{...S.style,animation:q?void 0:"none"}})})})});lL.displayName=uA;var cL="PopperArrow",TY={top:"bottom",right:"left",bottom:"top",left:"right"},uL=y.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=EY(cL,r),l=TY[o.placedSide];return v.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:v.jsx(_Y,{...a,ref:n,style:{...a.style,display:"block"}})})});uL.displayName=cL;function jY(e){return e!==null}var CY=e=>({name:"transformOrigin",options:e,fn(t){var w,O,E;const{placement:n,rects:r,middlewareData:a}=t,l=((w=a.arrow)==null?void 0:w.centerOffset)!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[d,m]=fL(n),h={start:"0%",center:"50%",end:"100%"}[m],g=(((O=a.arrow)==null?void 0:O.x)??0)+c/2,x=(((E=a.arrow)==null?void 0:E.y)??0)+f/2;let A="",S="";return d==="bottom"?(A=l?h:`${g}px`,S=`${-f}px`):d==="top"?(A=l?h:`${g}px`,S=`${r.floating.height+f}px`):d==="right"?(A=`${-f}px`,S=l?h:`${x}px`):d==="left"&&(A=`${r.floating.width+f}px`,S=l?h:`${x}px`),{data:{x:A,y:S}}}});function fL(e){const[t,n="center"]=e.split("-");return[t,n]}var fA=iL,dA=sL,hA=lL,pA=uL,dL=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"}),RY="VisuallyHidden",hL=y.forwardRef((e,t)=>v.jsx(Qe.span,{...e,ref:t,style:{...dL,...e.style}}));hL.displayName=RY;var NY=hL,[tv]=sa("Tooltip",[Oc]),nv=Oc(),pL="TooltipProvider",MY=700,K1="tooltip.open",[PY,mA]=tv(pL),mL=e=>{const{__scopeTooltip:t,delayDuration:n=MY,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,l=y.useRef(!0),c=y.useRef(!1),f=y.useRef(0);return y.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),v.jsx(PY,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:y.useCallback(()=>{window.clearTimeout(f.current),l.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:y.useCallback(d=>{c.current=d},[]),disableHoverableContent:a,children:o})};mL.displayName=pL;var sf="Tooltip",[DY,od]=tv(sf),vL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,f=mA(sf,e.__scopeTooltip),d=nv(t),[m,h]=y.useState(null),g=Aa(),x=y.useRef(0),A=l??f.disableHoverableContent,S=c??f.delayDuration,w=y.useRef(!1),[O,E]=Eo({prop:r,defaultProp:a??!1,onChange:N=>{N?(f.onOpen(),document.dispatchEvent(new CustomEvent(K1))):f.onClose(),o==null||o(N)},caller:sf}),j=y.useMemo(()=>O?w.current?"delayed-open":"instant-open":"closed",[O]),C=y.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,E(!0)},[E]),T=y.useCallback(()=>{window.clearTimeout(x.current),x.current=0,E(!1)},[E]),R=y.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,E(!0),x.current=0},S)},[S,E]);return y.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),v.jsx(fA,{...d,children:v.jsx(DY,{scope:t,contentId:g,open:O,stateAttribute:j,trigger:m,onTriggerChange:h,onTriggerEnter:y.useCallback(()=>{f.isOpenDelayedRef.current?R():C()},[f.isOpenDelayedRef,R,C]),onTriggerLeave:y.useCallback(()=>{A?T():(window.clearTimeout(x.current),x.current=0)},[T,A]),onOpen:C,onClose:T,disableHoverableContent:A,children:n})})};vL.displayName=sf;var X1="TooltipTrigger",gL=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=od(X1,n),o=mA(X1,n),l=nv(n),c=y.useRef(null),f=ct(t,c,a.onTriggerChange),d=y.useRef(!1),m=y.useRef(!1),h=y.useCallback(()=>d.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),v.jsx(dA,{asChild:!0,...l,children:v.jsx(Qe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:f,onPointerMove:$e(e.onPointerMove,g=>{g.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:$e(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:$e(e.onPointerDown,()=>{a.open&&a.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:$e(e.onFocus,()=>{d.current||a.onOpen()}),onBlur:$e(e.onBlur,a.onClose),onClick:$e(e.onClick,a.onClose)})})});gL.displayName=X1;var vA="TooltipPortal",[kY,$Y]=tv(vA,{forceMount:void 0}),yL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,o=od(vA,t);return v.jsx(kY,{scope:t,forceMount:n,children:v.jsx(cr,{present:n||o.open,children:v.jsx(ed,{asChild:!0,container:a,children:r})})})};yL.displayName=vA;var Wl="TooltipContent",bL=y.forwardRef((e,t)=>{const n=$Y(Wl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,l=od(Wl,e.__scopeTooltip);return v.jsx(cr,{present:r||l.open,children:l.disableHoverableContent?v.jsx(xL,{side:a,...o,ref:t}):v.jsx(zY,{side:a,...o,ref:t})})}),zY=y.forwardRef((e,t)=>{const n=od(Wl,e.__scopeTooltip),r=mA(Wl,e.__scopeTooltip),a=y.useRef(null),o=ct(t,a),[l,c]=y.useState(null),{trigger:f,onClose:d}=n,m=a.current,{onPointerInTransitChange:h}=r,g=y.useCallback(()=>{c(null),h(!1)},[h]),x=y.useCallback((A,S)=>{const w=A.currentTarget,O={x:A.clientX,y:A.clientY},E=qY(O,w.getBoundingClientRect()),j=HY(O,E),C=FY(S.getBoundingClientRect()),T=GY([...j,...C]);c(T),h(!0)},[h]);return y.useEffect(()=>()=>g(),[g]),y.useEffect(()=>{if(f&&m){const A=w=>x(w,m),S=w=>x(w,f);return f.addEventListener("pointerleave",A),m.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",A),m.removeEventListener("pointerleave",S)}}},[f,m,x,g]),y.useEffect(()=>{if(l){const A=S=>{const w=S.target,O={x:S.clientX,y:S.clientY},E=(f==null?void 0:f.contains(w))||(m==null?void 0:m.contains(w)),j=!VY(O,l);E?g():j&&(g(),d())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[f,m,l,d,g]),v.jsx(xL,{...e,ref:o})}),[LY,IY]=tv(sf,{isInside:!1}),BY=l5("TooltipContent"),xL=y.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,f=od(Wl,n),d=nv(n),{onClose:m}=f;return y.useEffect(()=>(document.addEventListener(K1,m),()=>document.removeEventListener(K1,m)),[m]),y.useEffect(()=>{if(f.trigger){const h=g=>{const x=g.target;x!=null&&x.contains(f.trigger)&&m()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,m]),v.jsx(Jf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:h=>h.preventDefault(),onDismiss:m,children:v.jsxs(hA,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(BY,{children:r}),v.jsx(LY,{scope:n,isInside:!0,children:v.jsx(NY,{id:f.contentId,role:"tooltip",children:a||r})})]})})});bL.displayName=Wl;var wL="TooltipArrow",UY=y.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=nv(n);return IY(wL,n).isInside?null:v.jsx(pA,{...a,...r,ref:t})});UY.displayName=wL;function qY(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function HY(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 FY(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function VY(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],f=t[l],d=c.x,m=c.y,h=f.x,g=f.y;m>r!=g>r&&n<(h-d)*(r-m)/(g-m)+d&&(a=!a)}return a}function GY(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),WY(t)}function WY(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))n.pop();else break}n.push(a)}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 YY=mL,ZY=vL,KY=gL,XY=yL,SL=bL;const gA=YY,Ga=ZY,Wa=KY,Oa=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(XY,{children:v.jsx(SL,{ref:r,sideOffset:t,className:xe("z-[50] overflow-hidden rounded bg-black/75 px-[7px] py-0.5 text-[11px] text-white animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out 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 origin-[--radix-tooltip-content-transform-origin]",e),...n})}));Oa.displayName=SL.displayName;const QY="sidebar_state",JY=3600*24*7,eZ="16rem",tZ="18rem",nZ="3rem",rZ="b",_L=y.createContext(null);function rv(){const e=y.useContext(_L);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const AL=y.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:a,children:o,...l},c)=>{const f=oV(),[d,m]=y.useState(!1),[h,g]=y.useState(e),x=t??h,A=y.useCallback(E=>{const j=typeof E=="function"?E(x):E;n?n(j):g(j),document.cookie=`${QY}=${j}; path=/; max-age=${JY}`},[n,x]),S=y.useCallback(()=>f?m(E=>!E):A(E=>!E),[f,A,m]);y.useEffect(()=>{const E=j=>{j.key===rZ&&(j.metaKey||j.ctrlKey)&&(j.preventDefault(),S())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[S]);const w=x?"expanded":"collapsed",O=y.useMemo(()=>({state:w,open:x,setOpen:A,isMobile:f,openMobile:d,setOpenMobile:m,toggleSidebar:S}),[w,x,A,f,d,m,S]);return v.jsx(_L.Provider,{value:O,children:v.jsx(gA,{delayDuration:0,children:v.jsx("div",{style:{"--sidebar-width":eZ,"--sidebar-width-icon":nZ,...a},className:xe("group/sidebar-wrapper flex h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,...l,children:o})})})});AL.displayName="SidebarProvider";const OL=y.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:a,...o},l)=>{const{isMobile:c,state:f,openMobile:d,setOpenMobile:m}=rv();return n==="none"?v.jsx("div",{className:xe("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...o,children:a}):c?v.jsx(mW,{open:d,onOpenChange:m,...o,children:v.jsxs(B5,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":tZ},side:e,children:[v.jsxs(U5,{className:"sr-only",children:[v.jsx(q5,{children:"Sidebar"}),v.jsx(H5,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:a})]})}):v.jsxs("div",{ref:l,className:"group peer hidden text-sidebar-foreground md:block","data-state":f,"data-collapsible":f==="collapsed"?n:"","data-variant":t,"data-side":e,children:[v.jsx("div",{className:xe("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:xe("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),...o,children:v.jsx("div",{"data-sidebar":"sidebar",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",children:a})})]})});OL.displayName="Sidebar";const EL=y.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:a}=rv();return v.jsxs(ht,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:xe("h-7 w-7",e),onClick:o=>{t==null||t(o),a()},...n,children:[v.jsx(GF,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});EL.displayName="SidebarTrigger";const aZ=y.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=rv();return v.jsx("button",{ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:xe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 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=left]:-right-4 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]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});aZ.displayName="SidebarRail";const TL=y.forwardRef(({className:e,...t},n)=>v.jsx("main",{ref:n,className:xe("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));TL.displayName="SidebarInset";const iZ=y.forwardRef(({className:e,...t},n)=>v.jsx(pn,{ref:n,"data-sidebar":"input",className:xe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));iZ.displayName="SidebarInput";const jL=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"header",className:xe("flex flex-col gap-2 p-2",e),...t}));jL.displayName="SidebarHeader";const CL=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"footer",className:xe("flex flex-col gap-2 p-2",e),...t}));CL.displayName="SidebarFooter";const oZ=y.forwardRef(({className:e,...t},n)=>v.jsx(Oo,{ref:n,"data-sidebar":"separator",className:xe("mx-2 w-auto bg-sidebar-border",e),...t}));oZ.displayName="SidebarSeparator";const RL=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"content",className:xe("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));RL.displayName="SidebarContent";const dp=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group",className:xe("relative flex w-full min-w-0 flex-col p-2",e),...t}));dp.displayName="SidebarGroup";const Q1=y.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const a=t?Ps:"div";return v.jsx(a,{ref:r,"data-sidebar":"group-label",className:xe("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 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),...n})});Q1.displayName="SidebarGroupLabel";const sZ=y.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const a=t?Ps:"button";return v.jsx(a,{ref:r,"data-sidebar":"group-action",className:xe("absolute right-3 top-3.5 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:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...n})});sZ.displayName="SidebarGroupAction";const hp=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"group-content",className:xe("w-full text-sm",e),...t}));hp.displayName="SidebarGroupContent";const pp=y.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu",className:xe("flex w-full min-w-0 flex-col gap-1",e),...t}));pp.displayName="SidebarMenu";const mp=y.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,"data-sidebar":"menu-item",className:xe("group/menu-item relative",e),...t}));mp.displayName="SidebarMenuItem";const lZ=wc("peer/menu-button 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 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>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:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),vp=y.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:a,className:o,...l},c)=>{const f=e?Ps:"button",{isMobile:d,state:m}=rv(),h=v.jsx(f,{ref:c,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:xe(lZ({variant:n,size:r}),o),...l});return a?(typeof a=="string"&&(a={children:a}),v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:h}),v.jsx(Oa,{side:"right",align:"center",hidden:m!=="collapsed"||d,...a})]})):h});vp.displayName="SidebarMenuButton";const cZ=y.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},a)=>{const o=t?Ps:"button";return v.jsx(o,{ref:a,"data-sidebar":"menu-action",className:xe("absolute right-1 top-1.5 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:absolute after:-inset-2 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),...r})});cZ.displayName="SidebarMenuAction";const uZ=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:xe("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","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),...t}));uZ.displayName="SidebarMenuBadge";const fZ=y.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const a=y.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:xe("flex h-8 items-center gap-2 rounded-md px-2",e),...n,children:[t&&v.jsx($C,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx($C,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});fZ.displayName="SidebarMenuSkeleton";const dZ=y.forwardRef(({className:e,...t},n)=>v.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:xe("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));dZ.displayName="SidebarMenuSub";const hZ=y.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));hZ.displayName="SidebarMenuSubItem";const pZ=y.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...a},o)=>{const l=e?Ps:"a";return v.jsx(l,{ref:o,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:xe("flex h-7 min-w-0 -translate-x-px 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),...a})});pZ.displayName="SidebarMenuSubButton";function yA(e){const t=e+"CollectionProvider",[n,r]=sa(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=S=>{const{scope:w,children:O}=S,E=L.useRef(null),j=L.useRef(new Map).current;return v.jsx(a,{scope:w,itemMap:j,collectionRef:E,children:O})};l.displayName=t;const c=e+"CollectionSlot",f=Vl(c),d=L.forwardRef((S,w)=>{const{scope:O,children:E}=S,j=o(c,O),C=ct(w,j.collectionRef);return v.jsx(f,{ref:C,children:E})});d.displayName=c;const m=e+"CollectionItemSlot",h="data-radix-collection-item",g=Vl(m),x=L.forwardRef((S,w)=>{const{scope:O,children:E,...j}=S,C=L.useRef(null),T=ct(w,C),R=o(m,O);return L.useEffect(()=>(R.itemMap.set(C,{ref:C,...j}),()=>void R.itemMap.delete(C))),v.jsx(g,{[h]:"",ref:T,children:E})});x.displayName=m;function A(S){const w=o(e+"CollectionConsumer",S);return L.useCallback(()=>{const E=w.collectionRef.current;if(!E)return[];const j=Array.from(E.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((R,N)=>j.indexOf(R.ref.current)-j.indexOf(N.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:d,ItemSlot:x},A,r]}var mZ=y.createContext(void 0);function sd(e){const t=y.useContext(mZ);return e||t||"ltr"}var kb="rovingFocusGroup.onEntryFocus",vZ={bubbles:!1,cancelable:!0},ld="RovingFocusGroup",[J1,NL,gZ]=yA(ld),[yZ,av]=sa(ld,[gZ]),[bZ,xZ]=yZ(ld),ML=y.forwardRef((e,t)=>v.jsx(J1.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(J1.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(wZ,{...e,ref:t})})}));ML.displayName=ld;var wZ=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...h}=e,g=y.useRef(null),x=ct(t,g),A=sd(o),[S,w]=Eo({prop:l,defaultProp:c??null,onChange:f,caller:ld}),[O,E]=y.useState(!1),j=Hn(d),C=NL(n),T=y.useRef(!1),[R,N]=y.useState(0);return y.useEffect(()=>{const k=g.current;if(k)return k.addEventListener(kb,j),()=>k.removeEventListener(kb,j)},[j]),v.jsx(bZ,{scope:n,orientation:r,dir:A,loop:a,currentTabStopId:S,onItemFocus:y.useCallback(k=>w(k),[w]),onItemShiftTab:y.useCallback(()=>E(!0),[]),onFocusableItemAdd:y.useCallback(()=>N(k=>k+1),[]),onFocusableItemRemove:y.useCallback(()=>N(k=>k-1),[]),children:v.jsx(Qe.div,{tabIndex:O||R===0?-1:0,"data-orientation":r,...h,ref:x,style:{outline:"none",...e.style},onMouseDown:$e(e.onMouseDown,()=>{T.current=!0}),onFocus:$e(e.onFocus,k=>{const z=!T.current;if(k.target===k.currentTarget&&z&&!O){const V=new CustomEvent(kb,vZ);if(k.currentTarget.dispatchEvent(V),!V.defaultPrevented){const B=C().filter($=>$.focusable),I=B.find($=>$.active),F=B.find($=>$.id===S),Y=[I,F,...B].filter(Boolean).map($=>$.ref.current);kL(Y,m)}}T.current=!1}),onBlur:$e(e.onBlur,()=>E(!1))})})}),PL="RovingFocusGroupItem",DL=y.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,children:l,...c}=e,f=Aa(),d=o||f,m=xZ(PL,n),h=m.currentTabStopId===d,g=NL(n),{onFocusableItemAdd:x,onFocusableItemRemove:A,currentTabStopId:S}=m;return y.useEffect(()=>{if(r)return x(),()=>A()},[r,x,A]),v.jsx(J1.ItemSlot,{scope:n,id:d,focusable:r,active:a,children:v.jsx(Qe.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:$e(e.onMouseDown,w=>{r?m.onItemFocus(d):w.preventDefault()}),onFocus:$e(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:$e(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){m.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const O=AZ(w,m.orientation,m.dir);if(O!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let j=g().filter(C=>C.focusable).map(C=>C.ref.current);if(O==="last")j.reverse();else if(O==="prev"||O==="next"){O==="prev"&&j.reverse();const C=j.indexOf(w.currentTarget);j=m.loop?OZ(j,C+1):j.slice(C+1)}setTimeout(()=>kL(j))}}),children:typeof l=="function"?l({isCurrentTabStop:h,hasTabStop:S!=null}):l})})});DL.displayName=PL;var SZ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _Z(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function AZ(e,t,n){const r=_Z(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return SZ[r]}function kL(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function OZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $L=ML,zL=DL,eS=["Enter"," "],EZ=["ArrowDown","PageUp","Home"],LL=["ArrowUp","PageDown","End"],TZ=[...EZ,...LL],jZ={ltr:[...eS,"ArrowRight"],rtl:[...eS,"ArrowLeft"]},CZ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},cd="Menu",[lf,RZ,NZ]=yA(cd),[Ds,IL]=sa(cd,[NZ,Oc,av]),iv=Oc(),BL=av(),[MZ,ks]=Ds(cd),[PZ,ud]=Ds(cd),UL=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:l=!0}=e,c=iv(t),[f,d]=y.useState(null),m=y.useRef(!1),h=Hn(o),g=sd(a);return y.useEffect(()=>{const x=()=>{m.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>m.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),v.jsx(fA,{...c,children:v.jsx(MZ,{scope:t,open:n,onOpenChange:h,content:f,onContentChange:d,children:v.jsx(PZ,{scope:t,onClose:y.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:g,modal:l,children:r})})})};UL.displayName=cd;var DZ="MenuAnchor",bA=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=iv(n);return v.jsx(dA,{...a,...r,ref:t})});bA.displayName=DZ;var xA="MenuPortal",[kZ,qL]=Ds(xA,{forceMount:void 0}),HL=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=ks(xA,t);return v.jsx(kZ,{scope:t,forceMount:n,children:v.jsx(cr,{present:n||o.open,children:v.jsx(ed,{asChild:!0,container:a,children:r})})})};HL.displayName=xA;var ra="MenuContent",[$Z,wA]=Ds(ra),FL=y.forwardRef((e,t)=>{const n=qL(ra,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=ks(ra,e.__scopeMenu),l=ud(ra,e.__scopeMenu);return v.jsx(lf.Provider,{scope:e.__scopeMenu,children:v.jsx(cr,{present:r||o.open,children:v.jsx(lf.Slot,{scope:e.__scopeMenu,children:l.modal?v.jsx(zZ,{...a,ref:t}):v.jsx(LZ,{...a,ref:t})})})})}),zZ=y.forwardRef((e,t)=>{const n=ks(ra,e.__scopeMenu),r=y.useRef(null),a=ct(t,r);return y.useEffect(()=>{const o=r.current;if(o)return X_(o)},[]),v.jsx(SA,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$e(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),LZ=y.forwardRef((e,t)=>{const n=ks(ra,e.__scopeMenu);return v.jsx(SA,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),IZ=Vl("MenuContent.ScrollLock"),SA=y.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:x,disableOutsideScroll:A,...S}=e,w=ks(ra,n),O=ud(ra,n),E=iv(n),j=BL(n),C=RZ(n),[T,R]=y.useState(null),N=y.useRef(null),k=ct(t,N,w.onContentChange),z=y.useRef(0),V=y.useRef(""),B=y.useRef(0),I=y.useRef(null),F=y.useRef("right"),G=y.useRef(0),Y=A?Ym:y.Fragment,$=A?{as:IZ,allowPinchZoom:!0}:void 0,q=X=>{var he,we;const Z=V.current+X,P=C().filter(se=>!se.disabled),H=document.activeElement,J=(he=P.find(se=>se.ref.current===H))==null?void 0:he.textValue,fe=P.map(se=>se.textValue),ye=XZ(fe,Z,J),ce=(we=P.find(se=>se.textValue===ye))==null?void 0:we.ref.current;(function se(Oe){V.current=Oe,window.clearTimeout(z.current),Oe!==""&&(z.current=window.setTimeout(()=>se(""),1e3))})(Z),ce&&setTimeout(()=>ce.focus())};y.useEffect(()=>()=>window.clearTimeout(z.current),[]),K_();const K=y.useCallback(X=>{var P,H;return F.current===((P=I.current)==null?void 0:P.side)&&JZ(X,(H=I.current)==null?void 0:H.area)},[]);return v.jsx($Z,{scope:n,searchRef:V,onItemEnter:y.useCallback(X=>{K(X)&&X.preventDefault()},[K]),onItemLeave:y.useCallback(X=>{var Z;K(X)||((Z=N.current)==null||Z.focus(),R(null))},[K]),onTriggerLeave:y.useCallback(X=>{K(X)&&X.preventDefault()},[K]),pointerGraceTimerRef:B,onPointerGraceIntentChange:y.useCallback(X=>{I.current=X},[]),children:v.jsx(Y,{...$,children:v.jsx(Gm,{asChild:!0,trapped:a,onMountAutoFocus:$e(o,X=>{var Z;X.preventDefault(),(Z=N.current)==null||Z.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:v.jsx(Jf,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:g,onDismiss:x,children:v.jsx($L,{asChild:!0,...j,dir:O.dir,orientation:"vertical",loop:r,currentTabStopId:T,onCurrentTabStopIdChange:R,onEntryFocus:$e(f,X=>{O.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(hA,{role:"menu","aria-orientation":"vertical","data-state":o3(w.open),"data-radix-menu-content":"",dir:O.dir,...E,...S,ref:k,style:{outline:"none",...S.style},onKeyDown:$e(S.onKeyDown,X=>{const P=X.target.closest("[data-radix-menu-content]")===X.currentTarget,H=X.ctrlKey||X.altKey||X.metaKey,J=X.key.length===1;P&&(X.key==="Tab"&&X.preventDefault(),!H&&J&&q(X.key));const fe=N.current;if(X.target!==fe||!TZ.includes(X.key))return;X.preventDefault();const ce=C().filter(he=>!he.disabled).map(he=>he.ref.current);LL.includes(X.key)&&ce.reverse(),ZZ(ce)}),onBlur:$e(e.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(z.current),V.current="")}),onPointerMove:$e(e.onPointerMove,cf(X=>{const Z=X.target,P=G.current!==X.clientX;if(X.currentTarget.contains(Z)&&P){const H=X.clientX>G.current?"right":"left";F.current=H,G.current=X.clientX}}))})})})})})})});FL.displayName=ra;var BZ="MenuGroup",_A=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Qe.div,{role:"group",...r,ref:t})});_A.displayName=BZ;var UZ="MenuLabel",VL=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Qe.div,{...r,ref:t})});VL.displayName=UZ;var Cp="MenuItem",YC="menu.itemSelect",ov=y.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=y.useRef(null),l=ud(Cp,e.__scopeMenu),c=wA(Cp,e.__scopeMenu),f=ct(t,o),d=y.useRef(!1),m=()=>{const h=o.current;if(!n&&h){const g=new CustomEvent(YC,{bubbles:!0,cancelable:!0});h.addEventListener(YC,x=>r==null?void 0:r(x),{once:!0}),c5(h,g),g.defaultPrevented?d.current=!1:l.onClose()}};return v.jsx(GL,{...a,ref:f,disabled:n,onClick:$e(e.onClick,m),onPointerDown:h=>{var g;(g=e.onPointerDown)==null||g.call(e,h),d.current=!0},onPointerUp:$e(e.onPointerUp,h=>{var g;d.current||(g=h.currentTarget)==null||g.click()}),onKeyDown:$e(e.onKeyDown,h=>{const g=c.searchRef.current!=="";n||g&&h.key===" "||eS.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});ov.displayName=Cp;var GL=y.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,l=wA(Cp,n),c=BL(n),f=y.useRef(null),d=ct(t,f),[m,h]=y.useState(!1),[g,x]=y.useState("");return y.useEffect(()=>{const A=f.current;A&&x((A.textContent??"").trim())},[o.children]),v.jsx(lf.ItemSlot,{scope:n,disabled:r,textValue:a??g,children:v.jsx(zL,{asChild:!0,...c,focusable:!r,children:v.jsx(Qe.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:d,onPointerMove:$e(e.onPointerMove,cf(A=>{r?l.onItemLeave(A):(l.onItemEnter(A),A.defaultPrevented||A.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$e(e.onPointerLeave,cf(A=>l.onItemLeave(A))),onFocus:$e(e.onFocus,()=>h(!0)),onBlur:$e(e.onBlur,()=>h(!1))})})})}),qZ="MenuCheckboxItem",WL=y.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return v.jsx(QL,{scope:e.__scopeMenu,checked:n,children:v.jsx(ov,{role:"menuitemcheckbox","aria-checked":Rp(n)?"mixed":n,...a,ref:t,"data-state":OA(n),onSelect:$e(a.onSelect,()=>r==null?void 0:r(Rp(n)?!0:!n),{checkForDefaultPrevented:!1})})})});WL.displayName=qZ;var YL="MenuRadioGroup",[HZ,FZ]=Ds(YL,{value:void 0,onValueChange:()=>{}}),ZL=y.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,o=Hn(r);return v.jsx(HZ,{scope:e.__scopeMenu,value:n,onValueChange:o,children:v.jsx(_A,{...a,ref:t})})});ZL.displayName=YL;var KL="MenuRadioItem",XL=y.forwardRef((e,t)=>{const{value:n,...r}=e,a=FZ(KL,e.__scopeMenu),o=n===a.value;return v.jsx(QL,{scope:e.__scopeMenu,checked:o,children:v.jsx(ov,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":OA(o),onSelect:$e(r.onSelect,()=>{var l;return(l=a.onValueChange)==null?void 0:l.call(a,n)},{checkForDefaultPrevented:!1})})})});XL.displayName=KL;var AA="MenuItemIndicator",[QL,VZ]=Ds(AA,{checked:!1}),JL=y.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=VZ(AA,n);return v.jsx(cr,{present:r||Rp(o.checked)||o.checked===!0,children:v.jsx(Qe.span,{...a,ref:t,"data-state":OA(o.checked)})})});JL.displayName=AA;var GZ="MenuSeparator",e3=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Qe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});e3.displayName=GZ;var WZ="MenuArrow",t3=y.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=iv(n);return v.jsx(pA,{...a,...r,ref:t})});t3.displayName=WZ;var YZ="MenuSub",[vxe,n3]=Ds(YZ),qu="MenuSubTrigger",r3=y.forwardRef((e,t)=>{const n=ks(qu,e.__scopeMenu),r=ud(qu,e.__scopeMenu),a=n3(qu,e.__scopeMenu),o=wA(qu,e.__scopeMenu),l=y.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=o,d={__scopeMenu:e.__scopeMenu},m=y.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return y.useEffect(()=>m,[m]),y.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),f(null)}},[c,f]),v.jsx(bA,{asChild:!0,...d,children:v.jsx(GL,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":o3(n.open),...e,ref:Qf(t,a.onTriggerChange),onClick:h=>{var g;(g=e.onClick)==null||g.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$e(e.onPointerMove,cf(h=>{o.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(o.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:$e(e.onPointerLeave,cf(h=>{var x,A;m();const g=(x=n.content)==null?void 0:x.getBoundingClientRect();if(g){const S=(A=n.content)==null?void 0:A.dataset.side,w=S==="right",O=w?-5:5,E=g[w?"left":"right"],j=g[w?"right":"left"];o.onPointerGraceIntentChange({area:[{x:h.clientX+O,y:h.clientY},{x:E,y:g.top},{x:j,y:g.top},{x:j,y:g.bottom},{x:E,y:g.bottom}],side:S}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(h),h.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:$e(e.onKeyDown,h=>{var x;const g=o.searchRef.current!=="";e.disabled||g&&h.key===" "||jZ[r.dir].includes(h.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),h.preventDefault())})})})});r3.displayName=qu;var a3="MenuSubContent",i3=y.forwardRef((e,t)=>{const n=qL(ra,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=ks(ra,e.__scopeMenu),l=ud(ra,e.__scopeMenu),c=n3(a3,e.__scopeMenu),f=y.useRef(null),d=ct(t,f);return v.jsx(lf.Provider,{scope:e.__scopeMenu,children:v.jsx(cr,{present:r||o.open,children:v.jsx(lf.Slot,{scope:e.__scopeMenu,children:v.jsx(SA,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:d,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var h;l.isUsingKeyboardRef.current&&((h=f.current)==null||h.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:$e(e.onFocusOutside,m=>{m.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:$e(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:$e(e.onKeyDown,m=>{var x;const h=m.currentTarget.contains(m.target),g=CZ[l.dir].includes(m.key);h&&g&&(o.onOpenChange(!1),(x=c.trigger)==null||x.focus(),m.preventDefault())})})})})})});i3.displayName=a3;function o3(e){return e?"open":"closed"}function Rp(e){return e==="indeterminate"}function OA(e){return Rp(e)?"indeterminate":e?"checked":"unchecked"}function ZZ(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function KZ(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function XZ(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=KZ(e,Math.max(o,0));a.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function QZ(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],f=t[l],d=c.x,m=c.y,h=f.x,g=f.y;m>r!=g>r&&n<(h-d)*(r-m)/(g-m)+d&&(a=!a)}return a}function JZ(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return QZ(n,t)}function cf(e){return t=>t.pointerType==="mouse"?e(t):void 0}var eK=UL,tK=bA,nK=HL,rK=FL,aK=_A,iK=VL,oK=ov,sK=WL,lK=ZL,cK=XL,uK=JL,fK=e3,dK=t3,hK=r3,pK=i3,sv="DropdownMenu",[mK]=sa(sv,[IL]),ur=IL(),[vK,s3]=mK(sv),l3=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,f=ur(t),d=y.useRef(null),[m,h]=Eo({prop:a,defaultProp:o??!1,onChange:l,caller:sv});return v.jsx(vK,{scope:t,triggerId:Aa(),triggerRef:d,contentId:Aa(),open:m,onOpenChange:h,onOpenToggle:y.useCallback(()=>h(g=>!g),[h]),modal:c,children:v.jsx(eK,{...f,open:m,onOpenChange:h,dir:r,modal:c,children:n})})};l3.displayName=sv;var c3="DropdownMenuTrigger",u3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,o=s3(c3,n),l=ur(n);return v.jsx(tK,{asChild:!0,...l,children:v.jsx(Qe.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:Qf(t,o.triggerRef),onPointerDown:$e(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(o.onOpenToggle(),o.open||c.preventDefault())}),onKeyDown:$e(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&o.onOpenToggle(),c.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});u3.displayName=c3;var gK="DropdownMenuPortal",f3=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ur(t);return v.jsx(nK,{...r,...n})};f3.displayName=gK;var d3="DropdownMenuContent",h3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=s3(d3,n),o=ur(n),l=y.useRef(!1);return v.jsx(rK,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...r,ref:t,onCloseAutoFocus:$e(e.onCloseAutoFocus,c=>{var f;l.current||(f=a.triggerRef.current)==null||f.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:$e(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,m=f.button===2||d;(!a.modal||m)&&(l.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)"}})});h3.displayName=d3;var yK="DropdownMenuGroup",bK=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(aK,{...a,...r,ref:t})});bK.displayName=yK;var xK="DropdownMenuLabel",p3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(iK,{...a,...r,ref:t})});p3.displayName=xK;var wK="DropdownMenuItem",m3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(oK,{...a,...r,ref:t})});m3.displayName=wK;var SK="DropdownMenuCheckboxItem",v3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(sK,{...a,...r,ref:t})});v3.displayName=SK;var _K="DropdownMenuRadioGroup",AK=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(lK,{...a,...r,ref:t})});AK.displayName=_K;var OK="DropdownMenuRadioItem",g3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(cK,{...a,...r,ref:t})});g3.displayName=OK;var EK="DropdownMenuItemIndicator",y3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(uK,{...a,...r,ref:t})});y3.displayName=EK;var TK="DropdownMenuSeparator",b3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(fK,{...a,...r,ref:t})});b3.displayName=TK;var jK="DropdownMenuArrow",CK=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(dK,{...a,...r,ref:t})});CK.displayName=jK;var RK="DropdownMenuSubTrigger",x3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(hK,{...a,...r,ref:t})});x3.displayName=RK;var NK="DropdownMenuSubContent",w3=y.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=ur(n);return v.jsx(pK,{...a,...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)"}})});w3.displayName=NK;var MK=l3,PK=u3,DK=f3,S3=h3,_3=p3,A3=m3,O3=v3,E3=g3,T3=y3,j3=b3,C3=x3,R3=w3;const kK=MK,$K=PK,zK=y.forwardRef(({className:e,inset:t,children:n,...r},a)=>v.jsxs(C3,{ref:a,className:xe("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r,children:[n,v.jsx(W_,{className:"ml-auto"})]}));zK.displayName=C3.displayName;const LK=y.forwardRef(({className:e,...t},n)=>v.jsx(R3,{ref:n,className:xe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out 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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));LK.displayName=R3.displayName;const N3=y.forwardRef(({className:e,sideOffset:t=4,...n},r)=>v.jsx(DK,{children:v.jsx(S3,{ref:r,sideOffset:t,className:xe("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out 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 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));N3.displayName=S3.displayName;const tS=y.forwardRef(({className:e,inset:t,...n},r)=>v.jsx(A3,{ref:r,className:xe("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));tS.displayName=A3.displayName;const IK=y.forwardRef(({className:e,children:t,checked:n,...r},a)=>v.jsxs(O3,{ref:a,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[v.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(T3,{children:v.jsx(Gz,{className:"h-4 w-4"})})}),t]}));IK.displayName=O3.displayName;const BK=y.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(E3,{ref:r,className:xe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[v.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(T3,{children:v.jsx(PF,{className:"h-2 w-2 fill-current"})})}),t]}));BK.displayName=E3.displayName;const UK=y.forwardRef(({className:e,inset:t,...n},r)=>v.jsx(_3,{ref:r,className:xe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));UK.displayName=_3.displayName;const M3=y.forwardRef(({className:e,...t},n)=>v.jsx(j3,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t}));M3.displayName=j3.displayName;const nS="";async function Fh(e,t,n,r){const a=await fetch(`${nS}${t}`,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...r},body:n!=null?JSON.stringify(n):void 0});if(a.status===204)return{data:null,status:204};const o=await a.json().catch(()=>null);return a.ok?{data:o,status:a.status}:{data:null,status:a.status,error:(o==null?void 0:o.error)??"Request failed"}}const P3={get:e=>Fh("GET",e),post:(e,t)=>Fh("POST",e,t),patch:(e,t)=>Fh("PATCH",e,t),delete:e=>Fh("DELETE",e),upload:async(e,t)=>{const n=await fetch(`${nS}${e}`,{method:"POST",credentials:"include",body:t});if(n.status===204)return{data:null,status:204};const r=await n.json().catch(()=>null);return n.ok?{data:r,status:n.status}:{data:null,status:n.status,error:(r==null?void 0:r.error)??"Upload failed"}},uploadPatch:async(e,t)=>{const n=await fetch(`${nS}${e}`,{method:"PATCH",credentials:"include",body:t});if(n.status===204)return{data:null,status:204};const r=await n.json().catch(()=>null);return n.ok?{data:r,status:n.status}:{data:null,status:n.status,error:(r==null?void 0:r.error)??"Upload failed"}}};function EA(){const[e,t]=y.useState({user:null,loading:!0}),n=Xa();return y.useEffect(()=>{let r=!1;return P3.get("/api/v1/auth/me").then(({data:a,status:o})=>{r||(o===401||!a?(t({user:null,loading:!1}),n("/login",{replace:!0})):t({user:a,loading:!1}))}),()=>{r=!0}},[n]),e}const qK=6;function HK(e){let t=0;for(const n of e)t=t*31+n.charCodeAt(0)&4294967295;return Math.abs(t)}function TA(e){const t=HK(e)%qK+1;return{bg:`hsl(var(--avatar-${t}-bg))`,fg:`hsl(var(--avatar-${t}-fg))`}}function D3({name:e,avatarUrl:t,size:n=28}){const r=((e==null?void 0:e[0])??"?").toUpperCase(),a={width:n,height:n,borderRadius:"50%",flexShrink:0};if(t)return v.jsx("img",{src:t,alt:e,style:{...a,objectFit:"cover"}});const{bg:o,fg:l}=TA(e);return v.jsx("span",{style:{...a,background:o,display:"inline-flex",alignItems:"center",justifyContent:"center",color:l,fontSize:n*.42,fontWeight:600,userSelect:"none"},children:r})}const FK=[{label:"App Center",href:"/app-center",icon:Yz},{label:"Mac Resources",href:"/mac-resources",icon:Zz}],VK=[{label:"Default",href:"/settings/default",icon:Xz,adminOnly:!1},{label:"Team",href:"/settings/team",icon:nV,adminOnly:!0},{label:"Tokens",href:"/settings/tokens",icon:LF,adminOnly:!0}],GK=[{label:"Docs",href:"https://www.tapflow.dev",icon:RF}];function WK(){const{pathname:e}=zr(),t=Xa(),{user:n}=EA(),r=(n==null?void 0:n.role)==="Admin",{resolvedTheme:a}=Yf(),o=a==="dark"?"/logo-dark.svg":"/logo.svg",[l,c]=y.useState(null),[f,d]=y.useState("tapflow");y.useEffect(()=>{fetch("/api/v1/settings",{credentials:"include"}).then(h=>h.ok?h.json():null).then(h=>{h!=null&&h.logo_url&&c(h.logo_url),h!=null&&h.team_name&&d(h.team_name)})},[]);async function m(){await fetch("/api/v1/auth/logout",{method:"POST",credentials:"include"}),t("/login",{replace:!0})}return v.jsxs(OL,{collapsible:"icon",children:[v.jsx(jL,{className:"p-2",children:v.jsxs("div",{className:"flex items-center gap-2 p-1",children:[v.jsx("img",{src:l??o,alt:"tapflow",className:"w-6 h-6 min-w-6 shrink-0"}),v.jsx("span",{className:"text-base font-semibold tracking-tight truncate text-sidebar-accent-foreground group-data-[collapsible=icon]:hidden",children:f})]})}),v.jsxs(RL,{children:[v.jsx(dp,{children:v.jsx(hp,{children:v.jsx(pp,{children:FK.map(h=>v.jsx(mp,{children:v.jsx(vp,{asChild:!0,isActive:e.startsWith(h.href),tooltip:h.label,children:v.jsxs(Ku,{to:h.href,children:[v.jsx(h.icon,{}),v.jsx("span",{children:h.label})]})})},h.href))})})}),v.jsxs(dp,{children:[v.jsx(Q1,{children:"Settings"}),v.jsx(hp,{children:v.jsx(pp,{children:VK.filter(h=>!h.adminOnly||r).map(h=>v.jsx(mp,{children:v.jsx(vp,{asChild:!0,isActive:e===h.href,tooltip:h.label,children:v.jsxs(Ku,{to:h.href,children:[v.jsx(h.icon,{}),v.jsx("span",{children:h.label})]})})},h.href))})})]}),v.jsxs(dp,{children:[v.jsx(Q1,{children:"Reference"}),v.jsx(hp,{children:v.jsx(pp,{children:GK.map(h=>v.jsx(mp,{children:v.jsx(vp,{asChild:!0,tooltip:h.label,children:v.jsxs("a",{href:h.href,target:"_blank",rel:"noopener noreferrer",children:[v.jsx(h.icon,{}),v.jsx("span",{children:h.label})]})})},h.href))})})]})]}),n&&v.jsx(CL,{className:"px-3 py-3",children:v.jsxs(kK,{children:[v.jsx($K,{asChild:!0,children:v.jsxs("button",{className:"flex w-full items-center gap-2.5 rounded-md px-1 py-1 text-left hover:bg-sidebar-accent transition-colors group-data-[collapsible=icon]:justify-center",children:[v.jsx(D3,{name:n.displayName??"",avatarUrl:n.avatarUrl,size:28}),v.jsxs("div",{className:"flex flex-col min-w-0 flex-1 group-data-[collapsible=icon]:hidden",children:[v.jsx("span",{className:"text-sm font-medium truncate",children:n.displayName}),v.jsx("span",{className:"text-xs text-muted-foreground truncate",children:n.email})]})]})}),v.jsxs(N3,{side:"top",align:"start",className:"w-56",children:[v.jsx(tS,{asChild:!0,children:v.jsxs(Ku,{to:"/settings/default",children:[v.jsx(Xz,{className:"mr-2 h-4 w-4"}),"Settings"]})}),v.jsx(M3,{}),v.jsxs(tS,{onClick:m,className:"text-destructive focus:text-destructive",children:[v.jsx(qF,{className:"mr-2 h-4 w-4"}),"Log out"]})]})]})})]})}function YK(){const{theme:e,setTheme:t}=Yf();return v.jsxs(ht,{variant:"ghost",size:"icon",onClick:()=>t(e==="dark"?"light":"dark"),"aria-label":"Toggle theme",children:[v.jsx(QF,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),v.jsx(FF,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]})}const k3=y.createContext({node:null,setNode:()=>{}});function ZK({children:e}){const[t,n]=y.useState(null),r=y.useMemo(()=>({node:t,setNode:n}),[t]);return v.jsx(k3.Provider,{value:r,children:e})}function jA(){return y.useContext(k3)}function KK(){const{node:e}=jA();return v.jsxs("header",{className:"flex h-16 items-center gap-2 border-b px-4",children:[v.jsx(EL,{className:"-ml-1"}),v.jsx(Oo,{orientation:"vertical",className:"h-4"}),e,v.jsx("div",{className:"flex-1"}),v.jsx(YK,{}),v.jsx(Oo,{orientation:"vertical",className:"h-4"}),v.jsx("a",{href:"https://github.com/jo-duchan/tapflow",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-accent transition-colors","aria-label":"GitHub",children:v.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 fill-current","aria-hidden":"true",children:v.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})})]})}function XK(){const{user:e,loading:t}=EA(),n=zr();return t?null:e?["/settings/team","/settings/tokens"].some(a=>n.pathname.startsWith(a))&&e.role!=="Admin"?v.jsx("div",{className:"flex h-screen items-center justify-center",children:v.jsxs("div",{className:"text-center space-y-2",children:[v.jsx("p",{className:"text-lg font-semibold",children:"Access Denied"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"This page is only accessible to Admins."})]})}):v.jsx(ZK,{children:v.jsxs(AL,{children:[v.jsx(WK,{}),v.jsxs(TL,{children:[v.jsx(KK,{}),v.jsx("main",{className:"flex-1 min-h-0 overflow-auto",children:v.jsx(l7,{})})]})]})}):v.jsx(I1,{to:"/login",replace:!0})}var fd=e=>e.type==="checkbox",fs=e=>e instanceof Date,sr=e=>e==null;const $3=e=>typeof e=="object";var un=e=>!sr(e)&&!Array.isArray(e)&&$3(e)&&!fs(e),z3=e=>un(e)&&e.target?fd(e.target)?e.target.checked:e.target.value:e,L3=(e,t)=>t.split(".").some((n,r,a)=>!isNaN(Number(n))&&e.has(a.slice(0,r).join("."))),QK=e=>{const t=e.constructor&&e.constructor.prototype;return un(t)&&t.hasOwnProperty("isPrototypeOf")},CA=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function hn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(CA&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(un(e)&&QK(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=hn(e[a]));return r}var lv=e=>/^\w*$/.test(e),Yt=e=>e===void 0,RA=e=>Array.isArray(e)?e.filter(Boolean):[],NA=e=>RA(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ke=(e,t,n)=>{if(!t||!un(e))return n;const a=(lv(t)?[t]:NA(t)).reduce((o,l)=>sr(o)?void 0:o[l],e);return Yt(a)||a===e?Yt(e[t])?n:e[t]:a},Rr=e=>typeof e=="boolean",Qn=e=>typeof e=="function",Pt=(e,t,n)=>{let r=-1;const a=lv(t)?[t]:NA(t),o=a.length,l=o-1;for(;++r<o;){const c=a[r];let f=n;if(r!==l){const d=e[c];f=un(d)||Array.isArray(d)?d:isNaN(+a[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=f,e=e[c]}};const vo={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ba={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},va={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},$b="form",I3="root",B3=L.createContext(null);B3.displayName="HookFormControlContext";const MA=()=>L.useContext(B3);var U3=(e,t,n,r=!0)=>{const a={};for(const o in e)Object.defineProperty(a,o,{get:()=>{const l=o;return t._proxyFormState[l]!==ba.all&&(t._proxyFormState[l]=!r||ba.all),n&&(n[l]=!0),e[l]}});return a};const PA=typeof window<"u"?L.useLayoutEffect:L.useEffect;function JK(e){const t=MA(),{control:n=t,disabled:r,name:a,exact:o}=e||{},[l,c]=L.useState(()=>({...n._formState,defaultValues:n._defaultValues})),f=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return PA(()=>n._subscribe({name:a,formState:f.current,exact:o,callback:d=>{!r&&c({...n._formState,...d,defaultValues:n._defaultValues})}}),[a,r,o]),L.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),L.useMemo(()=>U3(l,n,f.current,!1),[l,n])}var tr=e=>typeof e=="string",rS=(e,t,n,r,a)=>tr(e)?(r&&t.watch.add(e),ke(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),ke(n,o))):(r&&(t.watchAll=!0),n),aS=e=>sr(e)||!$3(e);function Nr(e,t,n=new WeakSet){if(e===t)return!0;if(aS(e)||aS(t))return Object.is(e,t);if(fs(e)&&fs(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const o of r){const l=e[o];if(!(o in t))return!1;if(o!=="ref"){const c=t[o];if(fs(l)&&fs(c)||(un(l)||Array.isArray(l))&&(un(c)||Array.isArray(c))?!Nr(l,c,n):!Object.is(l,c))return!1}}return!0}function DA(e){const t=MA(),{control:n=t,name:r,defaultValue:a,disabled:o,exact:l,compute:c}=e||{},f=L.useRef(a),d=L.useRef(c),m=L.useRef(void 0),h=L.useRef(n),g=L.useRef(r);d.current=c;const[x,A]=L.useState(()=>{const C=n._getWatch(r,f.current);return d.current?d.current(C):C}),S=L.useCallback(C=>{const T=rS(r,n._names,C||n._formValues,!1,f.current);return d.current?d.current(T):T},[n._formValues,n._names,r]),w=L.useCallback(C=>{if(!o){const T=rS(r,n._names,C||n._formValues,!1,f.current);if(d.current){const R=d.current(T);Nr(R,m.current)||(A(R),m.current=R)}else A(T)}},[n._formValues,n._names,o,r]);PA(()=>((h.current!==n||!Nr(g.current,r))&&(h.current=n,g.current=r,w()),n._subscribe({name:r,formState:{values:!0},exact:l,callback:C=>{w(C.values)}})),[n,l,r,w]),L.useEffect(()=>n._removeUnmounted());const O=h.current!==n,E=g.current,j=L.useMemo(()=>{if(o)return null;const C=!O&&!Nr(E,r);return O||C?S():null},[o,O,r,E,S]);return j!==null?j:x}function eX(e){const t=MA(),{name:n,disabled:r,control:a=t,shouldUnregister:o,defaultValue:l,exact:c=!0}=e,f=L3(a._names.array,n),d=L.useMemo(()=>ke(a._formValues,n,ke(a._defaultValues,n,l)),[a,n,l]),m=DA({control:a,name:n,defaultValue:d,exact:c}),h=JK({control:a,name:n,exact:c}),g=L.useRef(e),x=L.useRef(a.register(n,{...e.rules,value:m,...Rr(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const A=L.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!ke(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ke(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ke(h.validatingFields,n)},error:{enumerable:!0,get:()=>ke(h.errors,n)}}),[h,n]),S=L.useCallback(j=>x.current.onChange({target:{value:z3(j),name:n},type:vo.CHANGE}),[n]),w=L.useCallback(()=>x.current.onBlur({target:{value:ke(a._formValues,n),name:n},type:vo.BLUR}),[n,a._formValues]),O=L.useCallback(j=>{const C=ke(a._fields,n);C&&C._f&&j&&(C._f.ref={focus:()=>Qn(j.focus)&&j.focus(),select:()=>Qn(j.select)&&j.select(),setCustomValidity:T=>Qn(j.setCustomValidity)&&j.setCustomValidity(T),reportValidity:()=>Qn(j.reportValidity)&&j.reportValidity()})},[a._fields,n]),E=L.useMemo(()=>({name:n,value:m,...Rr(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:S,onBlur:w,ref:O}),[n,r,h.disabled,S,w,O,m]);return L.useEffect(()=>{const j=a._options.shouldUnregister||o;a.register(n,{...g.current.rules,...Rr(g.current.disabled)?{disabled:g.current.disabled}:{}});const C=(T,R)=>{const N=ke(a._fields,T);N&&N._f&&(N._f.mount=R)};if(C(n,!0),j){const T=hn(ke(a._options.defaultValues,n,g.current.defaultValue));Pt(a._defaultValues,n,T),Yt(ke(a._formValues,n))&&Pt(a._formValues,n,T)}return!f&&a.register(n),()=>{(f?j&&!a._state.action:j)?a.unregister(n):C(n,!1)}},[n,a,f,o]),L.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),L.useMemo(()=>({field:E,formState:h,fieldState:A}),[E,h,A])}const Np=e=>e.render(eX(e)),tX=L.createContext(null);tX.displayName="HookFormContext";var kA=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Xu=e=>Array.isArray(e)?e:[e],ZC=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}};function q3(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],o=t[r];if(a&&un(a)&&o){const l=q3(a,o);un(l)&&(n[r]=l)}else e[r]&&(n[r]=o)}return n}var Kn=e=>un(e)&&!Object.keys(e).length,$A=e=>e.type==="file",Mp=e=>{if(!CA)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},H3=e=>e.type==="select-multiple",zA=e=>e.type==="radio",nX=e=>zA(e)||fd(e),zb=e=>Mp(e)&&e.isConnected;function rX(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;){if(sr(e)){e=void 0;break}e=e[t[r]],r++}return e}function aX(e){for(const t in e)if(e.hasOwnProperty(t)&&!Yt(e[t]))return!1;return!0}function wn(e,t){if(tr(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:lv(t)?[t]:NA(t),r=n.length===1?e:rX(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(un(r)&&Kn(r)||Array.isArray(r)&&aX(r))&&wn(e,n.slice(0,-1)),e}var iX=e=>{for(const t in e)if(Qn(e[t]))return!0;return!1};function F3(e){return Array.isArray(e)||un(e)&&!iX(e)}function iS(e,t={}){for(const n in e){const r=e[n];F3(r)?(t[n]=Array.isArray(r)?[]:{},iS(r,t[n])):Yt(r)||(t[n]=!0)}return t}function oS(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){const t=e.map(n=>oS(n));return t.some(n=>n!==void 0)?t:void 0}if(un(e)){const t={};for(const n in e){const r=oS(e[n]);Yt(r)||(t[n]=r)}return Object.keys(t).length?t:void 0}}}function Hu(e,t,n){n||(n=iS(t));for(const r in e){const a=e[r];if(F3(a))Yt(t)||aS(n[r])?n[r]=iS(a,Array.isArray(a)?[]:{}):Hu(a,sr(t)?{}:t[r],n[r]);else{const o=t[r];n[r]=!Nr(a,o)}}return oS(n)||{}}const KC={value:!1,isValid:!1},XC={value:!0,isValid:!0};var V3=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Yt(e[0].attributes.value)?Yt(e[0].value)||e[0].value===""?XC:{value:e[0].value,isValid:!0}:XC:KC}return KC},G3=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Yt(e)?e:t?e===""?NaN:e&&+e:n&&tr(e)?new Date(e):r?r(e):e;const QC={isValid:!1,value:null};var W3=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,QC):QC;function JC(e){const t=e.ref;return $A(t)?t.files:zA(t)?W3(e.refs).value:H3(t)?[...t.selectedOptions].map(({value:n})=>n):fd(t)?V3(e.refs).value:G3(Yt(t.value)?e.ref.value:t.value,e)}var oX=(e,t,n,r)=>{const a={};for(const o of e){const l=ke(t,o);l&&Pt(a,o,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Pp=e=>e instanceof RegExp,Mu=e=>Yt(e)?e:Pp(e)?e.source:un(e)?Pp(e.value)?e.value.source:e.value:e,eR=e=>({isOnSubmit:!e||e===ba.onSubmit,isOnBlur:e===ba.onBlur,isOnChange:e===ba.onChange,isOnAll:e===ba.all,isOnTouch:e===ba.onTouched});const tR="AsyncFunction";var sX=e=>!!e&&!!e.validate&&!!(Qn(e.validate)&&e.validate.constructor.name===tR||un(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===tR)),lX=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),nR=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Qu=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=ke(e,a);if(o){const{_f:l,...c}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Qu(c,t))break}else if(un(c)&&Qu(c,t))break}}};function rR(e,t,n){const r=ke(e,n);if(r||lv(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),l=ke(t,o),c=ke(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(c&&c.type)return{name:o,error:c};if(c&&c.root&&c.root.type)return{name:`${o}.root`,error:c.root};a.pop()}return{name:n}}var cX=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Kn(o)||r&&Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||ba.all))},uX=(e,t,n)=>!e||!t||e===t||Xu(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),fX=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,dX=(e,t)=>!RA(ke(e,t)).length&&wn(e,t),hX=(e,t,n)=>{const r=Xu(ke(e,n));return Pt(r,I3,t[n]),Pt(e,n,r),e};function aR(e,t,n="validate"){if(tr(e)||Array.isArray(e)&&e.every(tr)||Rr(e)&&!e)return{type:n,message:tr(e)?e:"",ref:t}}var Tl=e=>un(e)&&!Pp(e)?e:{value:e,message:""},iR=async(e,t,n,r,a,o)=>{const{ref:l,refs:c,required:f,maxLength:d,minLength:m,min:h,max:g,pattern:x,validate:A,name:S,valueAsNumber:w,mount:O}=e._f,E=ke(n,S);if(!O||t.has(S))return{};const j=c?c[0]:l,C=I=>{a&&j.reportValidity&&(j.setCustomValidity(Rr(I)?"":I||""),j.reportValidity())},T={},R=zA(l),N=fd(l),k=R||N,z=(w||$A(l))&&Yt(l.value)&&Yt(E)||Mp(l)&&l.value===""||E===""||Array.isArray(E)&&!E.length||w&&typeof E=="number"&&isNaN(E),V=kA.bind(null,S,r,T),B=(I,F,G,Y=va.maxLength,$=va.minLength)=>{const q=I?F:G;T[S]={type:I?Y:$,message:q,ref:l,...V(I?Y:$,q)}};if(o?!Array.isArray(E)||!E.length:f&&(!k&&(z||sr(E))||Rr(E)&&!E||N&&!V3(c).isValid||R&&!W3(c).isValid)){const{value:I,message:F}=tr(f)?{value:!!f,message:f}:Tl(f);if(I&&(T[S]={type:va.required,message:F,ref:j,...V(va.required,F)},!r))return C(F),T}if(!z&&(!sr(h)||!sr(g))){let I,F;const G=Tl(g),Y=Tl(h);if(!sr(E)&&!isNaN(E)){const $=l.valueAsNumber||E&&+E;sr(G.value)||(I=$>G.value),sr(Y.value)||(F=$<Y.value)}else{const $=l.valueAsDate||new Date(E),q=Z=>new Date(new Date().toDateString()+" "+Z),K=l.type=="time",X=l.type=="week";tr(G.value)&&E&&(I=K?q(E)>q(G.value):X?E>G.value:$>new Date(G.value)),tr(Y.value)&&E&&(F=K?q(E)<q(Y.value):X?E<Y.value:$<new Date(Y.value))}if((I||F)&&(B(!!I,G.message,Y.message,va.max,va.min),!r))return C(T[S].message),T}if((d||m)&&!z&&(tr(E)||o&&Array.isArray(E))){const I=Tl(d),F=Tl(m),G=!sr(I.value)&&E.length>+I.value,Y=!sr(F.value)&&E.length<+F.value;if((G||Y)&&(B(G,I.message,F.message),!r))return C(T[S].message),T}if(x&&!z&&tr(E)){const{value:I,message:F}=Tl(x);if(Pp(I)&&!E.match(I)&&(T[S]={type:va.pattern,message:F,ref:l,...V(va.pattern,F)},!r))return C(F),T}if(A){if(Qn(A)){const I=await A(E,n),F=aR(I,j);if(F&&(T[S]={...F,...V(va.validate,F.message)},!r))return C(F.message),T}else if(un(A)){let I={};for(const F in A){if(!Kn(I)&&!r)break;const G=aR(await A[F](E,n),j,F);G&&(I={...G,...V(F,G.message)},C(G.message),r&&(T[S]=I))}if(!Kn(I)&&(T[S]={ref:j,...I},!r))return T}}return C(!0),T};const pX={mode:ba.onSubmit,reValidateMode:ba.onChange,shouldFocusError:!0},Y3={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function mX(e={}){let t={...pX,...e},n={...hn(Y3),isLoading:Qn(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},a=un(t.defaultValues)||un(t.values)?hn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:hn(a),l={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},f,d=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={...m};let g={...h};const x={array:ZC(),state:ZC()},A=t.criteriaMode===ba.all,S=U=>ee=>{clearTimeout(d),d=setTimeout(U,ee)},w=async U=>{if(!l.keepIsValid&&!t.disabled&&(h.isValid||g.isValid||U)){let ee;t.resolver?(ee=Kn((await z()).errors),O()):ee=await I({fields:r,onlyCheckValid:!0,eventType:vo.VALID}),ee!==n.isValid&&x.state.next({isValid:ee})}},O=(U,ee)=>{!t.disabled&&(h.isValidating||h.validatingFields||g.isValidating||g.validatingFields)&&((U||Array.from(c.mount)).forEach(re=>{re&&(ee?Pt(n.validatingFields,re,ee):wn(n.validatingFields,re))}),x.state.next({validatingFields:n.validatingFields,isValidating:!Kn(n.validatingFields)}))},E=()=>{n.dirtyFields=Hu(a,o)},j=(U,ee=[],re,Re,Ce=!0,Te=!0)=>{if(Re&&re&&!t.disabled){if(l.action=!0,Te&&Array.isArray(ke(r,U))){const De=re(ke(r,U),Re.argA,Re.argB);Ce&&Pt(r,U,De)}if(Te&&Array.isArray(ke(n.errors,U))){const De=re(ke(n.errors,U),Re.argA,Re.argB);Ce&&Pt(n.errors,U,De),dX(n.errors,U)}if((h.touchedFields||g.touchedFields)&&Te&&Array.isArray(ke(n.touchedFields,U))){const De=re(ke(n.touchedFields,U),Re.argA,Re.argB);Ce&&Pt(n.touchedFields,U,De)}(h.dirtyFields||g.dirtyFields)&&E(),x.state.next({name:U,isDirty:G(U,ee),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Pt(o,U,ee)},C=(U,ee)=>{Pt(n.errors,U,ee),x.state.next({errors:n.errors})},T=U=>{n.errors=U,x.state.next({errors:n.errors,isValid:!1})},R=(U,ee,re,Re)=>{const Ce=ke(r,U);if(Ce){const Te=Yt(ke(o,U)),De=ke(o,U,Yt(re)?ke(a,U):re);Yt(De)||Re&&Re.defaultChecked||ee?Pt(o,U,ee?De:JC(Ce._f)):q(U,De),l.mount&&!l.action&&(w(),Te&&n.isDirty&&(h.isDirty||g.isDirty)&&(G()||(n.isDirty=!1,x.state.next({...n}))))}},N=(U,ee,re,Re,Ce)=>{let Te=!1,De=!1;const He={name:U};if(!t.disabled){if(!re||Re){(h.isDirty||g.isDirty)&&(De=n.isDirty,n.isDirty=He.isDirty=G(),Te=De!==He.isDirty);const Ze=Nr(ke(a,U),ee);De=!!ke(n.dirtyFields,U),Ze?wn(n.dirtyFields,U):Pt(n.dirtyFields,U,!0),He.dirtyFields=n.dirtyFields,Te=Te||(h.dirtyFields||g.dirtyFields)&&De!==!Ze}if(re){const Ze=ke(n.touchedFields,U);Ze||(Pt(n.touchedFields,U,re),He.touchedFields=n.touchedFields,Te=Te||(h.touchedFields||g.touchedFields)&&Ze!==re)}Te&&Ce&&x.state.next(He)}return Te?He:{}},k=(U,ee,re,Re)=>{const Ce=ke(n.errors,U),Te=(h.isValid||g.isValid)&&Rr(ee)&&n.isValid!==ee;if(t.delayError&&re?(f=S(()=>C(U,re)),f(t.delayError)):(clearTimeout(d),f=null,re?Pt(n.errors,U,re):wn(n.errors,U)),(re?!Nr(Ce,re):Ce)||!Kn(Re)||Te){const De={...Re,...Te&&Rr(ee)?{isValid:ee}:{},errors:n.errors,name:U};n={...n,...De},x.state.next(De)}},z=async U=>(O(U,!0),await t.resolver(o,t.context,oX(U||c.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),V=async U=>{const{errors:ee}=await z(U);if(O(U),U)for(const re of U){const Re=ke(ee,re);Re?Pt(n.errors,re,Re):wn(n.errors,re)}else n.errors=ee;return ee},B=async({name:U,eventType:ee})=>{if(e.validate){const re=await e.validate({formValues:o,formState:n,name:U,eventType:ee});if(un(re))for(const Re in re)re[Re]&&he(`${$b}.${Re}`,{message:tr(re.message)?re.message:"",type:va.validate});else tr(re)||!re?he($b,{message:re||"",type:va.validate}):ce($b);return re}return!0},I=async({fields:U,onlyCheckValid:ee,name:re,eventType:Re,context:Ce={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(Ce.runRootValidation=!0,!await B({name:re,eventType:Re})&&(Ce.valid=!1,ee)))return Ce.valid;for(const Te in U){const De=U[Te];if(De){const{_f:He,...Ze}=De;if(He){const Ot=c.array.has(He.name),xt=De._f&&sX(De._f);xt&&h.validatingFields&&O([He.name],!0);const jt=await iR(De,c.disabled,o,A,t.shouldUseNativeValidation&&!ee,Ot);if(xt&&h.validatingFields&&O([He.name]),jt[He.name]&&(Ce.valid=!1,ee)||(!ee&&(ke(jt,He.name)?Ot?hX(n.errors,jt,He.name):Pt(n.errors,He.name,jt[He.name]):wn(n.errors,He.name)),e.shouldUseNativeValidation&&jt[He.name]))break}!Kn(Ze)&&await I({context:Ce,onlyCheckValid:ee,fields:Ze,name:Te,eventType:Re})}}return Ce.valid},F=()=>{for(const U of c.unMount){const ee=ke(r,U);ee&&(ee._f.refs?ee._f.refs.every(re=>!zb(re)):!zb(ee._f.ref))&&_e(U)}c.unMount=new Set},G=(U,ee)=>!t.disabled&&(U&&ee&&Pt(o,U,ee),!Nr(fe(),a)),Y=(U,ee,re)=>rS(U,c,{...l.mount?o:Yt(ee)?a:tr(U)?{[U]:ee}:ee},re,ee),$=U=>RA(ke(l.mount?o:a,U,t.shouldUnregister?ke(a,U,[]):[])),q=(U,ee,re={})=>{const Re=ke(r,U);let Ce=ee;if(Re){const Te=Re._f;Te&&(!Te.disabled&&Pt(o,U,G3(ee,Te)),Ce=Mp(Te.ref)&&sr(ee)?"":ee,H3(Te.ref)?[...Te.ref.options].forEach(De=>De.selected=Ce.includes(De.value)):Te.refs?fd(Te.ref)?Te.refs.forEach(De=>{(!De.defaultChecked||!De.disabled)&&(Array.isArray(Ce)?De.checked=!!Ce.find(He=>He===De.value):De.checked=Ce===De.value||!!Ce)}):Te.refs.forEach(De=>De.checked=De.value===Ce):$A(Te.ref)?Te.ref.value="":(Te.ref.value=Ce,Te.ref.type||x.state.next({name:U,values:hn(o)})))}(re.shouldDirty||re.shouldTouch)&&N(U,Ce,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&J(U)},K=(U,ee,re)=>{for(const Re in ee){if(!ee.hasOwnProperty(Re))return;const Ce=ee[Re],Te=U+"."+Re,De=ke(r,Te);(c.array.has(U)||un(Ce)||De&&!De._f)&&!fs(Ce)?K(Te,Ce,re):q(Te,Ce,re)}},X=(U,ee,re={})=>{const Re=ke(r,U),Ce=c.array.has(U),Te=hn(ee),De=ke(o,U),He=Nr(De,Te);if(Pt(o,U,Te),Ce)x.array.next({name:U,values:hn(o)}),(h.isDirty||h.dirtyFields||g.isDirty||g.dirtyFields)&&re.shouldDirty&&(E(),x.state.next({name:U,dirtyFields:n.dirtyFields,isDirty:G(U,Te)}));else{const Ze=Array.isArray(Te)&&!Te.length||Kn(Te);!Re||Re._f||sr(Te)||Ze?q(U,Te,re):K(U,Te,re)}if(!He){const Ze=nR(U,c);x.state.next({...Ze&&n,name:l.mount||Ze?U:void 0,values:hn(o)})}},Z=U=>{const ee=Qn(U)?U(o):U;Nr(o,ee)||(o={...o,...ee},x.state.next({...n,values:o}))},P=async U=>{l.mount=!0;const ee=U.target;let re=ee.name,Re=!0;const Ce=ke(r,re),Te=Ze=>{Re=Number.isNaN(Ze)||fs(Ze)&&isNaN(Ze.getTime())||Nr(Ze,ke(o,re,Ze))},De=eR(t.mode),He=eR(t.reValidateMode);if(Ce){let Ze,Ot;const xt=ee.type?JC(Ce._f):z3(U),jt=U.type===vo.BLUR||U.type===vo.FOCUS_OUT,tn=!lX(Ce._f)&&!e.validate&&!t.resolver&&!ke(n.errors,re)&&!Ce._f.deps||fX(jt,ke(n.touchedFields,re),n.isSubmitted,He,De),nr=nR(re,c,jt);Pt(o,re,xt),jt?(!ee||!ee.readOnly)&&(Ce._f.onBlur&&Ce._f.onBlur(U),f&&f(0)):Ce._f.onChange&&Ce._f.onChange(U);const rr=N(re,xt,jt),vn=!Kn(rr)||nr;if(!jt&&x.state.next({name:re,type:U.type,values:hn(o)}),tn)return(h.isValid||g.isValid)&&(t.mode==="onBlur"?jt&&w():jt||w()),vn&&x.state.next({name:re,...nr?{}:rr});if(!t.resolver&&e.validate&&await B({name:re,eventType:U.type}),!jt&&nr&&x.state.next({...n}),t.resolver){const{errors:$n}=await z([re]);if(O([re]),Te(xt),Re){const ar=rR(n.errors,r,re),zn=rR($n,r,ar.name||re);Ze=zn.error,re=zn.name,Ot=Kn($n)}}else O([re],!0),Ze=(await iR(Ce,c.disabled,o,A,t.shouldUseNativeValidation))[re],O([re]),Te(xt),Re&&(Ze?Ot=!1:(h.isValid||g.isValid)&&(Ot=await I({fields:r,onlyCheckValid:!0,name:re,eventType:U.type})));Re&&(Ce._f.deps&&(!Array.isArray(Ce._f.deps)||Ce._f.deps.length>0)&&J(Ce._f.deps),k(re,Ot,Ze,rr))}},H=(U,ee)=>{if(ke(n.errors,ee)&&U.focus)return U.focus(),1},J=async(U,ee={})=>{let re,Re;const Ce=Xu(U);if(t.resolver){const Te=await V(Yt(U)?U:Ce);re=Kn(Te),Re=U?!Ce.some(De=>ke(Te,De)):re}else U?(Re=(await Promise.all(Ce.map(async Te=>{const De=ke(r,Te);return await I({fields:De&&De._f?{[Te]:De}:De,eventType:vo.TRIGGER})}))).every(Boolean),!(!Re&&!n.isValid)&&w()):Re=re=await I({fields:r,name:U,eventType:vo.TRIGGER});return x.state.next({...!tr(U)||(h.isValid||g.isValid)&&re!==n.isValid?{}:{name:U},...t.resolver||!U?{isValid:re}:{},errors:n.errors}),ee.shouldFocus&&!Re&&Qu(r,H,U?Ce:c.mount),Re},fe=(U,ee)=>{let re={...l.mount?o:a};return ee&&(re=q3(ee.dirtyFields?n.dirtyFields:n.touchedFields,re)),Yt(U)?re:tr(U)?ke(re,U):U.map(Re=>ke(re,Re))},ye=(U,ee)=>({invalid:!!ke((ee||n).errors,U),isDirty:!!ke((ee||n).dirtyFields,U),error:ke((ee||n).errors,U),isValidating:!!ke(n.validatingFields,U),isTouched:!!ke((ee||n).touchedFields,U)}),ce=U=>{const ee=U?Xu(U):void 0;ee==null||ee.forEach(re=>wn(n.errors,re)),ee?ee.forEach(re=>{x.state.next({name:re,errors:n.errors})}):x.state.next({errors:{}})},he=(U,ee,re)=>{const Re=(ke(r,U,{_f:{}})._f||{}).ref,Ce=ke(n.errors,U)||{},{ref:Te,message:De,type:He,...Ze}=Ce;Pt(n.errors,U,{...Ze,...ee,ref:Re}),x.state.next({name:U,errors:n.errors,isValid:!1}),re&&re.shouldFocus&&Re&&Re.focus&&Re.focus()},we=(U,ee)=>Qn(U)?x.state.subscribe({next:re=>"values"in re&&U(re.values||Y(void 0,ee),re)}):Y(U,ee,!0),se=U=>x.state.subscribe({next:ee=>{if(uX(U.name,ee.name,U.exact)&&cX(ee,U.formState||h,on,U.reRenderRoot)){const re={...o};U.callback({values:re,...n,...ee,defaultValues:a})}}}).unsubscribe,Oe=U=>(l.mount=!0,g={...g,...U.formState},se({...U,formState:{...m,...U.formState}})),_e=(U,ee={})=>{for(const re of U?Xu(U):c.mount)c.mount.delete(re),c.array.delete(re),ee.keepValue||(wn(r,re),wn(o,re)),!ee.keepError&&wn(n.errors,re),!ee.keepDirty&&wn(n.dirtyFields,re),!ee.keepTouched&&wn(n.touchedFields,re),!ee.keepIsValidating&&wn(n.validatingFields,re),!t.shouldUnregister&&!ee.keepDefaultValue&&wn(a,re);x.state.next({values:hn(o)}),x.state.next({...n,...ee.keepDirty?{isDirty:G()}:{}}),!ee.keepIsValid&&w()},ie=({disabled:U,name:ee})=>{if(Rr(U)&&l.mount||U||c.disabled.has(ee)){const Ce=c.disabled.has(ee)!==!!U;U?c.disabled.add(ee):c.disabled.delete(ee),Ce&&l.mount&&!l.action&&w()}},Ge=(U,ee={})=>{let re=ke(r,U);const Re=Rr(ee.disabled)||Rr(t.disabled),Ce=!c.registerName.has(U)&&re&&re._f&&!re._f.mount;return Pt(r,U,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:U}},name:U,mount:!0,...ee}}),c.mount.add(U),re&&!Ce?ie({disabled:Rr(ee.disabled)?ee.disabled:t.disabled,name:U}):R(U,!0,ee.value),{...Re?{disabled:ee.disabled||t.disabled}:{},...t.progressive?{required:!!ee.required,min:Mu(ee.min),max:Mu(ee.max),minLength:Mu(ee.minLength),maxLength:Mu(ee.maxLength),pattern:Mu(ee.pattern)}:{},name:U,onChange:P,onBlur:P,ref:Te=>{if(Te){c.registerName.add(U),Ge(U,ee),c.registerName.delete(U),re=ke(r,U);const De=Yt(Te.value)&&Te.querySelectorAll&&Te.querySelectorAll("input,select,textarea")[0]||Te,He=nX(De),Ze=re._f.refs||[];if(He?Ze.find(Ot=>Ot===De):De===re._f.ref)return;Pt(r,U,{_f:{...re._f,...He?{refs:[...Ze.filter(zb),De,...Array.isArray(ke(a,U))?[{}]:[]],ref:{type:De.type,name:U}}:{ref:De}}}),R(U,!1,void 0,De)}else re=ke(r,U,{}),re._f&&(re._f.mount=!1),(t.shouldUnregister||ee.shouldUnregister)&&!(L3(c.array,U)&&l.action)&&c.unMount.add(U)}}},ze=()=>t.shouldFocusError&&Qu(r,H,c.mount),Je=U=>{Rr(U)&&(x.state.next({disabled:U}),Qu(r,(ee,re)=>{const Re=ke(r,re);Re&&(ee.disabled=Re._f.disabled||U,Array.isArray(Re._f.refs)&&Re._f.refs.forEach(Ce=>{Ce.disabled=Re._f.disabled||U}))},0,!1))},Ke=(U,ee)=>async re=>{let Re;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let Ce=hn(o);if(x.state.next({isSubmitting:!0}),t.resolver){const{errors:Te,values:De}=await z();O(),n.errors=Te,Ce=hn(De)}else await I({fields:r,eventType:vo.SUBMIT});if(c.disabled.size)for(const Te of c.disabled)wn(Ce,Te);if(wn(n.errors,I3),Kn(n.errors)){x.state.next({errors:{}});try{await U(Ce,re)}catch(Te){Re=Te}}else ee&&await ee({...n.errors},re),ze(),setTimeout(ze);if(x.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Kn(n.errors)&&!Re,submitCount:n.submitCount+1,errors:n.errors}),Re)throw Re},st=(U,ee={})=>{ke(r,U)&&(Yt(ee.defaultValue)?X(U,hn(ke(a,U))):(X(U,ee.defaultValue),Pt(a,U,hn(ee.defaultValue))),ee.keepTouched||wn(n.touchedFields,U),ee.keepDirty||(wn(n.dirtyFields,U),n.isDirty=ee.defaultValue?G(U,hn(ke(a,U))):G()),ee.keepError||(wn(n.errors,U),h.isValid&&w()),x.state.next({...n}))},Tt=(U,ee={})=>{const re=U?hn(U):a,Re=hn(re),Ce=Kn(U),Te=Ce?a:Re;if(ee.keepDefaultValues||(a=re),!ee.keepValues){if(ee.keepDirtyValues){const De=new Set([...c.mount,...Object.keys(Hu(a,o))]);for(const He of Array.from(De)){const Ze=ke(n.dirtyFields,He),Ot=ke(o,He),xt=ke(Te,He);Ze&&!Yt(Ot)?Pt(Te,He,Ot):!Ze&&!Yt(xt)&&X(He,xt)}}else{if(CA&&Yt(U))for(const De of c.mount){const He=ke(r,De);if(He&&He._f){const Ze=Array.isArray(He._f.refs)?He._f.refs[0]:He._f.ref;if(Mp(Ze)){const Ot=Ze.closest("form");if(Ot){Ot.reset();break}}}}if(ee.keepFieldsRef)for(const De of c.mount)X(De,ke(Te,De));else r={}}o=t.shouldUnregister?ee.keepDefaultValues?hn(a):{}:hn(Te),x.array.next({values:{...Te}}),x.state.next({values:{...Te}})}c={mount:ee.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!h.isValid||!!ee.keepIsValid||!!ee.keepDirtyValues||!t.shouldUnregister&&!Kn(Te),l.watch=!!t.shouldUnregister,l.keepIsValid=!!ee.keepIsValid,l.action=!1,ee.keepErrors||(n.errors={}),x.state.next({submitCount:ee.keepSubmitCount?n.submitCount:0,isDirty:Ce?!1:ee.keepDirty?n.isDirty:!!(ee.keepDefaultValues&&!Nr(U,a)),isSubmitted:ee.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ce?{}:ee.keepDirtyValues?ee.keepDefaultValues&&o?Hu(a,o):n.dirtyFields:ee.keepDefaultValues&&U?Hu(a,U):ee.keepDirty?n.dirtyFields:{},touchedFields:ee.keepTouched?n.touchedFields:{},errors:ee.keepErrors?n.errors:{},isSubmitSuccessful:ee.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},pt=(U,ee)=>Tt(Qn(U)?U(o):U,{...t.resetOptions,...ee}),mn=(U,ee={})=>{const re=ke(r,U),Re=re&&re._f;if(Re){const Ce=Re.refs?Re.refs[0]:Re.ref;Ce.focus&&setTimeout(()=>{Ce.focus(),ee.shouldSelect&&Qn(Ce.select)&&Ce.select()})}},on=U=>{n={...n,...U}},en={control:{register:Ge,unregister:_e,getFieldState:ye,handleSubmit:Ke,setError:he,_subscribe:se,_runSchema:z,_updateIsValidating:O,_focusError:ze,_getWatch:Y,_getDirty:G,_setValid:w,_setFieldArray:j,_setDisabledField:ie,_setErrors:T,_getFieldArray:$,_reset:Tt,_resetDefaultValues:()=>Qn(t.defaultValues)&&t.defaultValues().then(U=>{pt(U,t.resetOptions),x.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:Je,_subjects:x,_proxyFormState:h,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(U){l=U},get _defaultValues(){return a},get _names(){return c},set _names(U){c=U},get _formState(){return n},get _options(){return t},set _options(U){t={...t,...U}}},subscribe:Oe,trigger:J,register:Ge,handleSubmit:Ke,watch:we,setValue:X,setValues:Z,getValues:fe,reset:pt,resetField:st,clearErrors:ce,unregister:_e,setError:he,setFocus:mn,getFieldState:ye};return{...en,formControl:en}}function wo(e={}){const t=L.useRef(void 0),n=L.useRef(void 0),[r,a]=L.useState(()=>({...hn(Y3),isLoading:Qn(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Qn(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Qn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...c}=mX(e);t.current={...c,formState:r}}const o=t.current.control;return o._options=e,PA(()=>{const l=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState}),reRenderRoot:!0});return a(c=>({...c,isReady:!0})),o._formState.isReady=!0,l},[o]),L.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),L.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),L.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),L.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),L.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),L.useEffect(()=>{var l;e.values&&!Nr(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),!((l=o._options.resetOptions)===null||l===void 0)&&l.keepIsValid||o._setValid(),n.current=e.values,a(c=>({...c}))):o._resetDefaultValues()},[o,e.values]),L.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=L.useMemo(()=>U3(r,o),[o,r]),t.current}const oR=(e,t,n)=>{if(e&&"reportValidity"in e){const r=ke(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},sS=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?oR(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>oR(a,n,e))}},sR=(e,t)=>{t.shouldUseNativeValidation&&sS(e,t);const n={};for(const r in e){const a=ke(t.fields,r),o=Object.assign(e[r]||{},{ref:a&&a.ref});if(vX(t.names||Object.keys(e),r)){const l=Object.assign({},ke(n,r));Pt(l,"root",o),Pt(n,r,l)}else Pt(n,r,o)}return n},vX=(e,t)=>{const n=lR(t);return e.some(r=>lR(r).match(`^${n}\\.\\d+`))};function lR(e){return e.replace(/\]|\[/g,"")}var cR;function Se(e,t,n){function r(c,f){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:f,constr:l,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,f);const d=l.prototype,m=Object.keys(d);for(let h=0;h<m.length;h++){const g=m[h];g in c||(c[g]=d[g].bind(c))}}const a=(n==null?void 0:n.Parent)??Object;class o extends a{}Object.defineProperty(o,"name",{value:e});function l(c){var f;const d=n!=null&&n.Parent?new o:this;r(d,c),(f=d._zod).deferred??(f.deferred=[]);for(const m of d._zod.deferred)m();return d}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:c=>{var f,d;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(d=(f=c==null?void 0:c._zod)==null?void 0:f.traits)==null?void 0:d.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}class Ll extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Z3 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(cR=globalThis).__zod_globalConfig??(cR.__zod_globalConfig={});const LA=globalThis.__zod_globalConfig;function ws(e){return LA}function K3(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function lS(e,t){return typeof t=="bigint"?t.toString():t}function IA(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function BA(e){return e==null}function UA(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const uR=Symbol("evaluating");function It(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==uR)return r===void 0&&(r=uR,r=n()),r},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function $s(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function No(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function fR(e){return JSON.stringify(e)}function gX(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const X3="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Dp(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const yX=IA(()=>{var e;if(LA.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function uf(e){if(Dp(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Dp(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Q3(e){return uf(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const bX=new Set(["string","number","symbol"]);function cv(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function Xe(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function xX(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function wX(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=No(e._zod.def,{get shape(){const l={};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(l[c]=n.shape[c])}return $s(this,"shape",l),l},checks:[]});return Mo(e,o)}function SX(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=No(e._zod.def,{get shape(){const l={...e._zod.def.shape};for(const c in t){if(!(c in n.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete l[c]}return $s(this,"shape",l),l},checks:[]});return Mo(e,o)}function _X(e,t){if(!uf(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const o=e._zod.def.shape;for(const l in t)if(Object.getOwnPropertyDescriptor(o,l)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=No(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return $s(this,"shape",o),o}});return Mo(e,a)}function AX(e,t){if(!uf(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=No(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return $s(this,"shape",r),r}});return Mo(e,n)}function OX(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=No(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t._zod.def.shape};return $s(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Mo(e,n)}function EX(e,t,n){const a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const l=No(t._zod.def,{get shape(){const c=t._zod.def.shape,f={...c};if(n)for(const d in n){if(!(d in c))throw new Error(`Unrecognized key: "${d}"`);n[d]&&(f[d]=e?new e({type:"optional",innerType:c[d]}):c[d])}else for(const d in c)f[d]=e?new e({type:"optional",innerType:c[d]}):c[d];return $s(this,"shape",f),f},checks:[]});return Mo(t,l)}function TX(e,t,n){const r=No(t._zod.def,{get shape(){const a=t._zod.def.shape,o={...a};if(n)for(const l in n){if(!(l in o))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(o[l]=new e({type:"nonoptional",innerType:a[l]}))}else for(const l in a)o[l]=new e({type:"nonoptional",innerType:a[l]});return $s(this,"shape",o),o}});return Mo(t,r)}function Nl(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function jX(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function J3(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Vh(e){return typeof e=="string"?e:e==null?void 0:e.message}function Ss(e,t,n){var f,d,m,h,g,x;const r=e.message?e.message:Vh((m=(d=(f=e.inst)==null?void 0:f._zod.def)==null?void 0:d.error)==null?void 0:m.call(d,e))??Vh((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Vh((g=n.customError)==null?void 0:g.call(n,e))??Vh((x=n.localeError)==null?void 0:x.call(n,e))??"Invalid input",{inst:a,continue:o,input:l,...c}=e;return c.path??(c.path=[]),c.message=r,t!=null&&t.reportInput&&(c.input=l),c}function qA(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ff(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const eI=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,lS,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},HA=Se("$ZodError",eI),uv=Se("$ZodError",eI,{Parent:Error});function CX(e,t=n=>n.message){const n={},r=[];for(const a of e.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}function RX(e,t=n=>n.message){const n={_errors:[]},r=(a,o=[])=>{for(const l of a.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(c=>r({issues:c},[...o,...l.path]));else if(l.code==="invalid_key")r({issues:l.issues},[...o,...l.path]);else if(l.code==="invalid_element")r({issues:l.issues},[...o,...l.path]);else{const c=[...o,...l.path];if(c.length===0)n._errors.push(t(l));else{let f=n,d=0;for(;d<c.length;){const m=c[d];d===c.length-1?(f[m]=f[m]||{_errors:[]},f[m]._errors.push(t(l))):f[m]=f[m]||{_errors:[]},f=f[m],d++}}}};return r(e),n}const fv=e=>(t,n,r,a)=>{const o=r?{...r,async:!1}:{async:!1},l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise)throw new Ll;if(l.issues.length){const c=new((a==null?void 0:a.Err)??e)(l.issues.map(f=>Ss(f,o,ws())));throw X3(c,a==null?void 0:a.callee),c}return l.value},NX=fv(uv),dv=e=>async(t,n,r,a)=>{const o=r?{...r,async:!0}:{async:!0};let l=t._zod.run({value:n,issues:[]},o);if(l instanceof Promise&&(l=await l),l.issues.length){const c=new((a==null?void 0:a.Err)??e)(l.issues.map(f=>Ss(f,o,ws())));throw X3(c,a==null?void 0:a.callee),c}return l.value},MX=dv(uv),hv=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Ll;return o.issues.length?{success:!1,error:new(e??HA)(o.issues.map(l=>Ss(l,a,ws())))}:{success:!0,data:o.value}},PX=hv(uv),pv=e=>async(t,n,r)=>{const a=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(l=>Ss(l,a,ws())))}:{success:!0,data:o.value}},DX=pv(uv),kX=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return fv(e)(t,n,a)},$X=e=>(t,n,r)=>fv(e)(t,n,r),zX=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return dv(e)(t,n,a)},LX=e=>async(t,n,r)=>dv(e)(t,n,r),IX=e=>(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return hv(e)(t,n,a)},BX=e=>(t,n,r)=>hv(e)(t,n,r),UX=e=>async(t,n,r)=>{const a=r?{...r,direction:"backward"}:{direction:"backward"};return pv(e)(t,n,a)},qX=e=>async(t,n,r)=>pv(e)(t,n,r),HX=/^[cC][0-9a-z]{6,}$/,FX=/^[0-9a-z]+$/,VX=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,GX=/^[0-9a-vA-V]{20}$/,WX=/^[A-Za-z0-9]{27}$/,YX=/^[a-zA-Z0-9_-]{21}$/,ZX=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,KX=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,dR=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,XX=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,QX="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function JX(){return new RegExp(QX,"u")}const eQ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tQ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,nQ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,rQ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aQ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tI=/^[A-Za-z0-9_-]*$/,iQ=/^https?$/,oQ=/^\+[1-9]\d{6,14}$/,nI="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",sQ=new RegExp(`^${nI}$`);function rI(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lQ(e){return new RegExp(`^${rI(e)}$`)}function cQ(e){const t=rI({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${nI}T(?:${r})$`)}const uQ=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},fQ=/^(?:true|false)$/i,dQ=/^[^A-Z]*$/,hQ=/^[^a-z]*$/,Ja=Se("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),pQ=Se("$ZodCheckMaxLength",(e,t)=>{var n;Ja.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!BA(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const a=r.value;if(a.length<=t.maximum)return;const l=qA(a);r.issues.push({origin:l,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),mQ=Se("$ZodCheckMinLength",(e,t)=>{var n;Ja.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!BA(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const a=r.value;if(a.length>=t.minimum)return;const l=qA(a);r.issues.push({origin:l,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),vQ=Se("$ZodCheckLengthEquals",(e,t)=>{var n;Ja.init(e,t),(n=e._zod.def).when??(n.when=r=>{const a=r.value;return!BA(a)&&a.length!==void 0}),e._zod.onattach.push(r=>{const a=r._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=r=>{const a=r.value,o=a.length;if(o===t.length)return;const l=qA(a),c=o>t.length;r.issues.push({origin:l,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),mv=Se("$ZodCheckStringFormat",(e,t)=>{var n,r;Ja.init(e,t),e._zod.onattach.push(a=>{const o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),gQ=Se("$ZodCheckRegex",(e,t)=>{mv.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),yQ=Se("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=dQ),mv.init(e,t)}),bQ=Se("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hQ),mv.init(e,t)}),xQ=Se("$ZodCheckIncludes",(e,t)=>{Ja.init(e,t);const n=cv(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),wQ=Se("$ZodCheckStartsWith",(e,t)=>{Ja.init(e,t);const n=new RegExp(`^${cv(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),SQ=Se("$ZodCheckEndsWith",(e,t)=>{Ja.init(e,t);const n=new RegExp(`.*${cv(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),_Q=Se("$ZodCheckOverwrite",(e,t)=>{Ja.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class AQ{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
345
|
-
`).filter(l=>l),a=Math.min(...r.map(l=>l.length-l.trimStart().length)),o=r.map(l=>l.slice(a)).map(l=>" ".repeat(this.indent*2)+l);for(const l of o)this.content.push(l)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new t(...n,a.join(`
|
|
346
|
-
`))}}const OQ={major:4,minor:4,patch:3},An=Se("$ZodType",(e,t)=>{var a;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=OQ;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const l of o._zod.onattach)l(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,f,d)=>{let m=Nl(c),h;for(const g of f){if(g._zod.def.when){if(jX(c)||!g._zod.def.when(c))continue}else if(m)continue;const x=c.issues.length,A=g._zod.check(c);if(A instanceof Promise&&(d==null?void 0:d.async)===!1)throw new Ll;if(h||A instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await A,c.issues.length!==x&&(m||(m=Nl(c,x)))});else{if(c.issues.length===x)continue;m||(m=Nl(c,x))}}return h?h.then(()=>c):c},l=(c,f,d)=>{if(Nl(c))return c.aborted=!0,c;const m=o(f,r,d);if(m instanceof Promise){if(d.async===!1)throw new Ll;return m.then(h=>e._zod.parse(h,d))}return e._zod.parse(m,d)};e._zod.run=(c,f)=>{if(f.skipChecks)return e._zod.parse(c,f);if(f.direction==="backward"){const m=e._zod.parse({value:c.value,issues:[]},{...f,skipChecks:!0});return m instanceof Promise?m.then(h=>l(h,c,f)):l(m,c,f)}const d=e._zod.parse(c,f);if(d instanceof Promise){if(f.async===!1)throw new Ll;return d.then(m=>o(m,r,f))}return o(d,r,f)}}It(e,"~standard",()=>({validate:o=>{var l;try{const c=PX(e,o);return c.success?{value:c.data}:{issues:(l=c.error)==null?void 0:l.issues}}catch{return DX(e,o).then(f=>{var d;return f.success?{value:f.data}:{issues:(d=f.error)==null?void 0:d.issues}})}},vendor:"zod",version:1}))}),FA=Se("$ZodString",(e,t)=>{var n;An.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??uQ(e._zod.bag),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Jt=Se("$ZodStringFormat",(e,t)=>{mv.init(e,t),FA.init(e,t)}),EQ=Se("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=KX),Jt.init(e,t)}),TQ=Se("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=dR(r))}else t.pattern??(t.pattern=dR());Jt.init(e,t)}),jQ=Se("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=XX),Jt.init(e,t)}),CQ=Se("$ZodURL",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{var r;try{const a=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===iQ.source&&!/^https?:\/\//i.test(a)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const o=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),RQ=Se("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=JX()),Jt.init(e,t)}),NQ=Se("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=YX),Jt.init(e,t)}),MQ=Se("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=HX),Jt.init(e,t)}),PQ=Se("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=FX),Jt.init(e,t)}),DQ=Se("$ZodULID",(e,t)=>{t.pattern??(t.pattern=VX),Jt.init(e,t)}),kQ=Se("$ZodXID",(e,t)=>{t.pattern??(t.pattern=GX),Jt.init(e,t)}),$Q=Se("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=WX),Jt.init(e,t)}),zQ=Se("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=cQ(t)),Jt.init(e,t)}),LQ=Se("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=sQ),Jt.init(e,t)}),IQ=Se("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=lQ(t)),Jt.init(e,t)}),BQ=Se("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=ZX),Jt.init(e,t)}),UQ=Se("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=eQ),Jt.init(e,t),e._zod.bag.format="ipv4"}),qQ=Se("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=tQ),Jt.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),HQ=Se("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=nQ),Jt.init(e,t)}),FQ=Se("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=rQ),Jt.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[a,o]=r;if(!o)throw new Error;const l=Number(o);if(`${l}`!==o)throw new Error;if(l<0||l>128)throw new Error;new URL(`http://[${a}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function aI(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const VQ=Se("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=aQ),Jt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{aI(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function GQ(e){if(!tI.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return aI(n)}const WQ=Se("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=tI),Jt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{GQ(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),YQ=Se("$ZodE164",(e,t)=>{t.pattern??(t.pattern=oQ),Jt.init(e,t)});function ZQ(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const a=JSON.parse(atob(r));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const KQ=Se("$ZodJWT",(e,t)=>{Jt.init(e,t),e._zod.check=n=>{ZQ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),XQ=Se("$ZodBoolean",(e,t)=>{An.init(e,t),e._zod.pattern=fQ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const a=n.value;return typeof a=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),n}}),QQ=Se("$ZodUnknown",(e,t)=>{An.init(e,t),e._zod.parse=n=>n}),JQ=Se("$ZodNever",(e,t)=>{An.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function hR(e,t,n){e.issues.length&&t.issues.push(...J3(n,e.issues)),t.value[n]=e.value}const eJ=Se("$ZodArray",(e,t)=>{An.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const o=[];for(let l=0;l<a.length;l++){const c=a[l],f=t.element._zod.run({value:c,issues:[]},r);f instanceof Promise?o.push(f.then(d=>hR(d,n,l))):hR(f,n,l)}return o.length?Promise.all(o).then(()=>n):n}});function kp(e,t,n,r,a,o){const l=n in r;if(e.issues.length){if(a&&o&&!l)return;t.issues.push(...J3(n,e.issues))}if(!l&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?l&&(t.value[n]=void 0):t.value[n]=e.value}function iI(e){var r,a,o,l;const t=Object.keys(e.shape);for(const c of t)if(!((l=(o=(a=(r=e.shape)==null?void 0:r[c])==null?void 0:a._zod)==null?void 0:o.traits)!=null&&l.has("$ZodType")))throw new Error(`Invalid element at key "${c}": expected a Zod schema`);const n=xX(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function oI(e,t,n,r,a,o){const l=[],c=a.keySet,f=a.catchall._zod,d=f.def.type,m=f.optin==="optional",h=f.optout==="optional";for(const g in t){if(g==="__proto__"||c.has(g))continue;if(d==="never"){l.push(g);continue}const x=f.run({value:t[g],issues:[]},r);x instanceof Promise?e.push(x.then(A=>kp(A,n,g,t,m,h))):kp(x,n,g,t,m,h)}return l.length&&n.issues.push({code:"unrecognized_keys",keys:l,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const tJ=Se("$ZodObject",(e,t)=>{An.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const c=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...c};return Object.defineProperty(t,"shape",{value:f}),f}})}const r=IA(()=>iI(t));It(e._zod,"propValues",()=>{const c=t.shape,f={};for(const d in c){const m=c[d]._zod;if(m.values){f[d]??(f[d]=new Set);for(const h of m.values)f[d].add(h)}}return f});const a=Dp,o=t.catchall;let l;e._zod.parse=(c,f)=>{l??(l=r.value);const d=c.value;if(!a(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;c.value={};const m=[],h=l.shape;for(const g of l.keys){const x=h[g],A=x._zod.optin==="optional",S=x._zod.optout==="optional",w=x._zod.run({value:d[g],issues:[]},f);w instanceof Promise?m.push(w.then(O=>kp(O,c,g,d,A,S))):kp(w,c,g,d,A,S)}return o?oI(m,d,c,f,r.value,e):m.length?Promise.all(m).then(()=>c):c}}),nJ=Se("$ZodObjectJIT",(e,t)=>{tJ.init(e,t);const n=e._zod.parse,r=IA(()=>iI(t)),a=g=>{var j,C;const x=new AQ(["shape","payload","ctx"]),A=r.value,S=T=>{const R=fR(T);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};x.write("const input = payload.value;");const w=Object.create(null);let O=0;for(const T of A.keys)w[T]=`key_${O++}`;x.write("const newResult = {};");for(const T of A.keys){const R=w[T],N=fR(T),k=g[T],z=((j=k==null?void 0:k._zod)==null?void 0:j.optin)==="optional",V=((C=k==null?void 0:k._zod)==null?void 0:C.optout)==="optional";x.write(`const ${R} = ${S(T)};`),z&&V?x.write(`
|
|
347
|
-
if (${R}.issues.length) {
|
|
348
|
-
if (${N} in input) {
|
|
349
|
-
payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
|
|
350
|
-
...iss,
|
|
351
|
-
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
352
|
-
})));
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
if (${R}.value === undefined) {
|
|
357
|
-
if (${N} in input) {
|
|
358
|
-
newResult[${N}] = undefined;
|
|
359
|
-
}
|
|
360
|
-
} else {
|
|
361
|
-
newResult[${N}] = ${R}.value;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
`):z?x.write(`
|
|
365
|
-
if (${R}.issues.length) {
|
|
366
|
-
payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
|
|
367
|
-
...iss,
|
|
368
|
-
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
369
|
-
})));
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
if (${R}.value === undefined) {
|
|
373
|
-
if (${N} in input) {
|
|
374
|
-
newResult[${N}] = undefined;
|
|
375
|
-
}
|
|
376
|
-
} else {
|
|
377
|
-
newResult[${N}] = ${R}.value;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
`):x.write(`
|
|
381
|
-
const ${R}_present = ${N} in input;
|
|
382
|
-
if (${R}.issues.length) {
|
|
383
|
-
payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
|
|
384
|
-
...iss,
|
|
385
|
-
path: iss.path ? [${N}, ...iss.path] : [${N}]
|
|
386
|
-
})));
|
|
387
|
-
}
|
|
388
|
-
if (!${R}_present && !${R}.issues.length) {
|
|
389
|
-
payload.issues.push({
|
|
390
|
-
code: "invalid_type",
|
|
391
|
-
expected: "nonoptional",
|
|
392
|
-
input: undefined,
|
|
393
|
-
path: [${N}]
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
if (${R}_present) {
|
|
398
|
-
if (${R}.value === undefined) {
|
|
399
|
-
newResult[${N}] = undefined;
|
|
400
|
-
} else {
|
|
401
|
-
newResult[${N}] = ${R}.value;
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
`)}x.write("payload.value = newResult;"),x.write("return payload;");const E=x.compile();return(T,R)=>E(g,T,R)};let o;const l=Dp,c=!LA.jitless,d=c&&yX.value,m=t.catchall;let h;e._zod.parse=(g,x)=>{h??(h=r.value);const A=g.value;return l(A)?c&&d&&(x==null?void 0:x.async)===!1&&x.jitless!==!0?(o||(o=a(t.shape)),g=o(g,x),m?oI([],A,g,x,h,e):g):n(g,x):(g.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),g)}});function pR(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const a=e.filter(o=>!Nl(o));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(l=>Ss(l,r,ws())))}),t)}const rJ=Se("$ZodUnion",(e,t)=>{An.init(e,t),It(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),It(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),It(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),It(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(a=>a._zod.pattern);return new RegExp(`^(${r.map(a=>UA(a.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,a)=>{if(n)return n(r,a);let o=!1;const l=[];for(const c of t.options){const f=c._zod.run({value:r.value,issues:[]},a);if(f instanceof Promise)l.push(f),o=!0;else{if(f.issues.length===0)return f;l.push(f)}}return o?Promise.all(l).then(c=>pR(c,r,e,a)):pR(l,r,e,a)}}),aJ=Se("$ZodIntersection",(e,t)=>{An.init(e,t),e._zod.parse=(n,r)=>{const a=n.value,o=t.left._zod.run({value:a,issues:[]},r),l=t.right._zod.run({value:a,issues:[]},r);return o instanceof Promise||l instanceof Promise?Promise.all([o,l]).then(([f,d])=>mR(n,f,d)):mR(n,o,l)}});function cS(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(uf(e)&&uf(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),a={...e,...t};for(const o of r){const l=cS(e[o],t[o]);if(!l.valid)return{valid:!1,mergeErrorPath:[o,...l.mergeErrorPath]};a[o]=l.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],o=t[r],l=cS(a,o);if(!l.valid)return{valid:!1,mergeErrorPath:[r,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function mR(e,t,n){const r=new Map;let a;for(const c of t.issues)if(c.code==="unrecognized_keys"){a??(a=c);for(const f of c.keys)r.has(f)||r.set(f,{}),r.get(f).l=!0}else e.issues.push(c);for(const c of n.issues)if(c.code==="unrecognized_keys")for(const f of c.keys)r.has(f)||r.set(f,{}),r.get(f).r=!0;else e.issues.push(c);const o=[...r].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(o.length&&a&&e.issues.push({...a,keys:o}),Nl(e))return e;const l=cS(t.value,n.value);if(!l.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(l.mergeErrorPath)}`);return e.value=l.data,e}const iJ=Se("$ZodEnum",(e,t)=>{An.init(e,t);const n=K3(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(a=>bX.has(typeof a)).map(a=>typeof a=="string"?cv(a):a.toString()).join("|")})$`),e._zod.parse=(a,o)=>{const l=a.value;return r.has(l)||a.issues.push({code:"invalid_value",values:n,input:l,inst:e}),a}}),oJ=Se("$ZodTransform",(e,t)=>{An.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Z3(e.constructor.name);const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(l=>(n.value=l,n.fallback=!0,n));if(a instanceof Promise)throw new Ll;return n.value=a,n.fallback=!0,n}});function vR(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const sI=Se("$ZodOptional",(e,t)=>{An.init(e,t),e._zod.optin="optional",e._zod.optout="optional",It(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),It(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${UA(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(l=>vR(l,a)):vR(o,a)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),sJ=Se("$ZodExactOptional",(e,t)=>{sI.init(e,t),It(e._zod,"values",()=>t.innerType._zod.values),It(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),lJ=Se("$ZodNullable",(e,t)=>{An.init(e,t),It(e._zod,"optin",()=>t.innerType._zod.optin),It(e._zod,"optout",()=>t.innerType._zod.optout),It(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${UA(n.source)}|null)$`):void 0}),It(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),cJ=Se("$ZodDefault",(e,t)=>{An.init(e,t),e._zod.optin="optional",It(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>gR(o,t)):gR(a,t)}});function gR(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const uJ=Se("$ZodPrefault",(e,t)=>{An.init(e,t),e._zod.optin="optional",It(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),fJ=Se("$ZodNonOptional",(e,t)=>{An.init(e,t),It(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>yR(o,e)):yR(a,e)}});function yR(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const dJ=Se("$ZodCatch",(e,t)=>{An.init(e,t),e._zod.optin="optional",It(e._zod,"optout",()=>t.innerType._zod.optout),It(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(l=>Ss(l,r,ws()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(o=>Ss(o,r,ws()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),hJ=Se("$ZodPipe",(e,t)=>{An.init(e,t),It(e._zod,"values",()=>t.in._zod.values),It(e._zod,"optin",()=>t.in._zod.optin),It(e._zod,"optout",()=>t.out._zod.optout),It(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(l=>Gh(l,t.in,r)):Gh(o,t.in,r)}const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(o=>Gh(o,t.out,r)):Gh(a,t.out,r)}});function Gh(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const pJ=Se("$ZodReadonly",(e,t)=>{An.init(e,t),It(e._zod,"propValues",()=>t.innerType._zod.propValues),It(e._zod,"values",()=>t.innerType._zod.values),It(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),It(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(bR):bR(a)}});function bR(e){return e.value=Object.freeze(e.value),e}const mJ=Se("$ZodCustom",(e,t)=>{Ja.init(e,t),An.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(o=>xR(o,n,r,e));xR(a,n,r,e)}});function xR(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(ff(a))}}var wR;class vJ{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const a={...r,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function gJ(){return new vJ}(wR=globalThis).__zod_globalRegistry??(wR.__zod_globalRegistry=gJ());const Fu=globalThis.__zod_globalRegistry;function yJ(e,t){return new e({type:"string",...Xe(t)})}function bJ(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Xe(t)})}function SR(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Xe(t)})}function xJ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Xe(t)})}function wJ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Xe(t)})}function SJ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Xe(t)})}function _J(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Xe(t)})}function AJ(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Xe(t)})}function OJ(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Xe(t)})}function EJ(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Xe(t)})}function TJ(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Xe(t)})}function jJ(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Xe(t)})}function CJ(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Xe(t)})}function RJ(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Xe(t)})}function NJ(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Xe(t)})}function MJ(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Xe(t)})}function PJ(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Xe(t)})}function DJ(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Xe(t)})}function kJ(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Xe(t)})}function $J(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Xe(t)})}function zJ(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Xe(t)})}function LJ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Xe(t)})}function IJ(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Xe(t)})}function BJ(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Xe(t)})}function UJ(e,t){return new e({type:"string",format:"date",check:"string_format",...Xe(t)})}function qJ(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Xe(t)})}function HJ(e,t){return new e({type:"string",format:"duration",check:"string_format",...Xe(t)})}function FJ(e,t){return new e({type:"boolean",...Xe(t)})}function VJ(e){return new e({type:"unknown"})}function GJ(e,t){return new e({type:"never",...Xe(t)})}function lI(e,t){return new pQ({check:"max_length",...Xe(t),maximum:e})}function $p(e,t){return new mQ({check:"min_length",...Xe(t),minimum:e})}function cI(e,t){return new vQ({check:"length_equals",...Xe(t),length:e})}function WJ(e,t){return new gQ({check:"string_format",format:"regex",...Xe(t),pattern:e})}function YJ(e){return new yQ({check:"string_format",format:"lowercase",...Xe(e)})}function ZJ(e){return new bQ({check:"string_format",format:"uppercase",...Xe(e)})}function KJ(e,t){return new xQ({check:"string_format",format:"includes",...Xe(t),includes:e})}function XJ(e,t){return new wQ({check:"string_format",format:"starts_with",...Xe(t),prefix:e})}function QJ(e,t){return new SQ({check:"string_format",format:"ends_with",...Xe(t),suffix:e})}function Ec(e){return new _Q({check:"overwrite",tx:e})}function JJ(e){return Ec(t=>t.normalize(e))}function eee(){return Ec(e=>e.trim())}function tee(){return Ec(e=>e.toLowerCase())}function nee(){return Ec(e=>e.toUpperCase())}function ree(){return Ec(e=>gX(e))}function aee(e,t,n){return new e({type:"array",element:t,...Xe(n)})}function iee(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Xe(n)})}function oee(e,t){const n=see(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(ff(a,r.value,n._zod.def));else{const o=a;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(ff(o))}},e(r.value,r)),t);return n}function see(e,t){const n=new Ja({check:"custom",...Xe(t)});return n._zod.check=e,n}function uI(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Fu,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Wn(e,t,n={path:[],schemaPath:[]}){var m,h;var r;const a=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const l={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,l);const c=(h=(m=e._zod).toJSONSchema)==null?void 0:h.call(m);if(c)l.schema=c;else{const g={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,l.schema,g);else{const A=l.schema,S=t.processors[a.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);S(e,t,A,g)}const x=e._zod.parent;x&&(l.ref||(l.ref=x),Wn(x,t,g),t.seen.get(x).isParent=!0)}const f=t.metadataRegistry.get(e);return f&&Object.assign(l.schema,f),t.io==="input"&&or(e)&&(delete l.schema.examples,delete l.schema.default),t.io==="input"&&"_prefault"in l.schema&&((r=l.schema).default??(r.default=l.schema._prefault)),delete l.schema._prefault,t.seen.get(e).schema}function fI(e,t){var l,c,f,d;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const m of e.seen.entries()){const h=(l=e.metadataRegistry.get(m[0]))==null?void 0:l.id;if(h){const g=r.get(h);if(g&&g!==m[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,m[0])}}const a=m=>{var S;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const w=(S=e.external.registry.get(m[0]))==null?void 0:S.id,O=e.external.uri??(j=>j);if(w)return{ref:O(w)};const E=m[1].defId??m[1].schema.id??`schema${e.counter++}`;return m[1].defId=E,{defId:E,ref:`${O("__shared")}#/${h}/${E}`}}if(m[1]===n)return{ref:"#"};const x=`#/${h}/`,A=m[1].schema.id??`__schema${e.counter++}`;return{defId:A,ref:x+A}},o=m=>{if(m[1].schema.$ref)return;const h=m[1],{ref:g,defId:x}=a(m);h.def={...h.schema},x&&(h.defId=x);const A=h.schema;for(const S in A)delete A[S];A.$ref=g};if(e.cycles==="throw")for(const m of e.seen.entries()){const h=m[1];if(h.cycle)throw new Error(`Cycle detected: #/${(c=h.cycle)==null?void 0:c.join("/")}/<root>
|
|
406
|
-
|
|
407
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const m of e.seen.entries()){const h=m[1];if(t===m[0]){o(m);continue}if(e.external){const x=(f=e.external.registry.get(m[0]))==null?void 0:f.id;if(t!==m[0]&&x){o(m);continue}}if((d=e.metadataRegistry.get(m[0]))==null?void 0:d.id){o(m);continue}if(h.cycle){o(m);continue}if(h.count>1&&e.reused==="ref"){o(m);continue}}}function dI(e,t){var c,f,d,m;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const g=e.seen.get(h);if(g.ref===null)return;const x=g.def??g.schema,A={...x},S=g.ref;if(g.ref=null,S){r(S);const O=e.seen.get(S),E=O.schema;if(E.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(x.allOf=x.allOf??[],x.allOf.push(E)):Object.assign(x,E),Object.assign(x,A),h._zod.parent===S)for(const C in x)C==="$ref"||C==="allOf"||C in A||delete x[C];if(E.$ref&&O.def)for(const C in x)C==="$ref"||C==="allOf"||C in O.def&&JSON.stringify(x[C])===JSON.stringify(O.def[C])&&delete x[C]}const w=h._zod.parent;if(w&&w!==S){r(w);const O=e.seen.get(w);if(O!=null&&O.schema.$ref&&(x.$ref=O.schema.$ref,O.def))for(const E in x)E==="$ref"||E==="allOf"||E in O.def&&JSON.stringify(x[E])===JSON.stringify(O.def[E])&&delete x[E]}e.override({zodSchema:h,jsonSchema:x,path:g.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const h=(f=e.external.registry.get(t))==null?void 0:f.id;if(!h)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(h)}Object.assign(a,n.def??n.schema);const o=(d=e.metadataRegistry.get(t))==null?void 0:d.id;o!==void 0&&a.id===o&&delete a.id;const l=((m=e.external)==null?void 0:m.defs)??{};for(const h of e.seen.entries()){const g=h[1];g.def&&g.defId&&(g.def.id===g.defId&&delete g.def.id,l[g.defId]=g.def)}e.external||Object.keys(l).length>0&&(e.target==="draft-2020-12"?a.$defs=l:a.definitions=l);try{const h=JSON.parse(JSON.stringify(a));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:zp(t,"input",e.processors),output:zp(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function or(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return or(r.element,n);if(r.type==="set")return or(r.valueType,n);if(r.type==="lazy")return or(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return or(r.innerType,n);if(r.type==="intersection")return or(r.left,n)||or(r.right,n);if(r.type==="record"||r.type==="map")return or(r.keyType,n)||or(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:or(r.in,n)||or(r.out,n);if(r.type==="object"){for(const a in r.shape)if(or(r.shape[a],n))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(or(a,n))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(or(a,n))return!0;return!!(r.rest&&or(r.rest,n))}return!1}const lee=(e,t={})=>n=>{const r=uI({...n,processors:t});return Wn(e,r),fI(r,e),dI(r,e)},zp=(e,t,n={})=>r=>{const{libraryOptions:a,target:o}=r??{},l=uI({...a??{},target:o,io:t,processors:n});return Wn(e,l),fI(l,e),dI(l,e)},cee={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},uee=(e,t,n,r)=>{const a=n;a.type="string";const{minimum:o,maximum:l,format:c,patterns:f,contentEncoding:d}=e._zod.bag;if(typeof o=="number"&&(a.minLength=o),typeof l=="number"&&(a.maxLength=l),c&&(a.format=cee[c]??c,a.format===""&&delete a.format,c==="time"&&delete a.format),d&&(a.contentEncoding=d),f&&f.size>0){const m=[...f];m.length===1?a.pattern=m[0].source:m.length>1&&(a.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},fee=(e,t,n,r)=>{n.type="boolean"},dee=(e,t,n,r)=>{n.not={}},hee=(e,t,n,r)=>{},pee=(e,t,n,r)=>{const a=e._zod.def,o=K3(a.entries);o.every(l=>typeof l=="number")&&(n.type="number"),o.every(l=>typeof l=="string")&&(n.type="string"),n.enum=o},mee=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},vee=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},gee=(e,t,n,r)=>{const a=n,o=e._zod.def,{minimum:l,maximum:c}=e._zod.bag;typeof l=="number"&&(a.minItems=l),typeof c=="number"&&(a.maxItems=c),a.type="array",a.items=Wn(o.element,t,{...r,path:[...r.path,"items"]})},yee=(e,t,n,r)=>{var d;const a=n,o=e._zod.def;a.type="object",a.properties={};const l=o.shape;for(const m in l)a.properties[m]=Wn(l[m],t,{...r,path:[...r.path,"properties",m]});const c=new Set(Object.keys(l)),f=new Set([...c].filter(m=>{const h=o.shape[m]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));f.size>0&&(a.required=Array.from(f)),((d=o.catchall)==null?void 0:d._zod.def.type)==="never"?a.additionalProperties=!1:o.catchall?o.catchall&&(a.additionalProperties=Wn(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},bee=(e,t,n,r)=>{const a=e._zod.def,o=a.inclusive===!1,l=a.options.map((c,f)=>Wn(c,t,{...r,path:[...r.path,o?"oneOf":"anyOf",f]}));o?n.oneOf=l:n.anyOf=l},xee=(e,t,n,r)=>{const a=e._zod.def,o=Wn(a.left,t,{...r,path:[...r.path,"allOf",0]}),l=Wn(a.right,t,{...r,path:[...r.path,"allOf",1]}),c=d=>"allOf"in d&&Object.keys(d).length===1,f=[...c(o)?o.allOf:[o],...c(l)?l.allOf:[l]];n.allOf=f},wee=(e,t,n,r)=>{const a=e._zod.def,o=Wn(a.innerType,t,r),l=t.seen.get(e);t.target==="openapi-3.0"?(l.ref=a.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},See=(e,t,n,r)=>{const a=e._zod.def;Wn(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType},_ee=(e,t,n,r)=>{const a=e._zod.def;Wn(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},Aee=(e,t,n,r)=>{const a=e._zod.def;Wn(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Oee=(e,t,n,r)=>{const a=e._zod.def;Wn(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType;let l;try{l=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=l},Eee=(e,t,n,r)=>{const a=e._zod.def,o=a.in._zod.traits.has("$ZodTransform"),l=t.io==="input"?o?a.out:a.in:a.out;Wn(l,t,r);const c=t.seen.get(e);c.ref=l},Tee=(e,t,n,r)=>{const a=e._zod.def;Wn(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType,n.readOnly=!0},hI=(e,t,n,r)=>{const a=e._zod.def;Wn(a.innerType,t,r);const o=t.seen.get(e);o.ref=a.innerType};function _R(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function jee(e,t){for(var n={};e.length;){var r=e[0],a=r.code,o=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var c=r.unionErrors[0].errors[0];n[l]={message:c.message,type:c.code}}else n[l]={message:o,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(h){return e.push(h)})}),t){var f=n[l].types,d=f&&f[r.code];n[l]=kA(l,t,n,a,d?[].concat(d,r.message):r.message)}e.shift()}return n}function Cee(e,t){for(var n={};e.length;){var r=e[0],a=r.code,o=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"&&r.errors.length>0){var c=r.errors[0][0];n[l]={message:c.message,type:c.code}}else n[l]={message:o,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(m){return m.forEach(function(h){return e.push(h)})}),t){var f=n[l].types,d=f&&f[r.code];n[l]=kA(l,t,n,a,d?[].concat(d,r.message):r.message)}e.shift()}return n}function So(e,t,n){if(n===void 0&&(n={}),(function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def})(e))return function(r,a,o){try{return Promise.resolve(_R(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return o.shouldUseNativeValidation&&sS({},o),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(c){return Array.isArray(c==null?void 0:c.issues)})(l))return{values:{},errors:sR(jee(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}};if((function(r){return"_zod"in r&&typeof r._zod=="object"})(e))return function(r,a,o){try{return Promise.resolve(_R(function(){return Promise.resolve((n.mode==="sync"?NX:MX)(e,r,t)).then(function(l){return o.shouldUseNativeValidation&&sS({},o),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if((function(c){return c instanceof HA})(l))return{values:{},errors:sR(Cee(l.issues,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}const Ree=Se("ZodISODateTime",(e,t)=>{zQ.init(e,t),an.init(e,t)});function Nee(e){return BJ(Ree,e)}const Mee=Se("ZodISODate",(e,t)=>{LQ.init(e,t),an.init(e,t)});function Pee(e){return UJ(Mee,e)}const Dee=Se("ZodISOTime",(e,t)=>{IQ.init(e,t),an.init(e,t)});function kee(e){return qJ(Dee,e)}const $ee=Se("ZodISODuration",(e,t)=>{BQ.init(e,t),an.init(e,t)});function zee(e){return HJ($ee,e)}const Lee=(e,t)=>{HA.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>RX(e,n)},flatten:{value:n=>CX(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,lS,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,lS,2)}},isEmpty:{get(){return e.issues.length===0}}})},la=Se("ZodError",Lee,{Parent:Error}),Iee=fv(la),Bee=dv(la),Uee=hv(la),qee=pv(la),Hee=kX(la),Fee=$X(la),Vee=zX(la),Gee=LX(la),Wee=IX(la),Yee=BX(la),Zee=UX(la),Kee=qX(la),AR=new WeakMap;function vv(e,t,n){const r=Object.getPrototypeOf(e);let a=AR.get(r);if(a||(a=new Set,AR.set(r,a)),!a.has(t)){a.add(t);for(const o in n){const l=n[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){const c=l.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:c}),c},set(c){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:c})}})}}}const On=Se("ZodType",(e,t)=>(An.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:zp(e,"input"),output:zp(e,"output")}}),e.toJSONSchema=lee(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Iee(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Uee(e,n,r),e.parseAsync=async(n,r)=>Bee(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>qee(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Hee(e,n,r),e.decode=(n,r)=>Fee(e,n,r),e.encodeAsync=async(n,r)=>Vee(e,n,r),e.decodeAsync=async(n,r)=>Gee(e,n,r),e.safeEncode=(n,r)=>Wee(e,n,r),e.safeDecode=(n,r)=>Yee(e,n,r),e.safeEncodeAsync=async(n,r)=>Zee(e,n,r),e.safeDecodeAsync=async(n,r)=>Kee(e,n,r),vv(e,"ZodType",{check(...n){const r=this.def;return this.clone(No(r,{checks:[...r.checks??[],...n.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Mo(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Hte(n,r))},superRefine(n,r){return this.check(Fte(n,r))},overwrite(n){return this.check(Ec(n))},optional(){return TR(this)},exactOptional(){return Nte(this)},nullable(){return jR(this)},nullish(){return TR(jR(this))},nonoptional(n){return zte(this,n)},array(){return wte(this)},or(n){return Ate([this,n])},and(n){return Ete(this,n)},transform(n){return CR(this,Cte(n))},default(n){return Dte(this,n)},prefault(n){return $te(this,n)},catch(n){return Ite(this,n)},pipe(n){return CR(this,n)},readonly(){return qte(this)},describe(n){const r=this.clone();return Fu.add(r,{description:n}),r},meta(...n){if(n.length===0)return Fu.get(this);const r=this.clone();return Fu.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Fu.get(e))==null?void 0:n.description},configurable:!0}),e)),pI=Se("_ZodString",(e,t)=>{FA.init(e,t),On.init(e,t),e._zod.processJSONSchema=(r,a,o)=>uee(e,r,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,vv(e,"_ZodString",{regex(...r){return this.check(WJ(...r))},includes(...r){return this.check(KJ(...r))},startsWith(...r){return this.check(XJ(...r))},endsWith(...r){return this.check(QJ(...r))},min(...r){return this.check($p(...r))},max(...r){return this.check(lI(...r))},length(...r){return this.check(cI(...r))},nonempty(...r){return this.check($p(1,...r))},lowercase(r){return this.check(YJ(r))},uppercase(r){return this.check(ZJ(r))},trim(){return this.check(eee())},normalize(...r){return this.check(JJ(...r))},toLowerCase(){return this.check(tee())},toUpperCase(){return this.check(nee())},slugify(){return this.check(ree())}})}),Xee=Se("ZodString",(e,t)=>{FA.init(e,t),pI.init(e,t),e.email=n=>e.check(bJ(Qee,n)),e.url=n=>e.check(AJ(Jee,n)),e.jwt=n=>e.check(IJ(pte,n)),e.emoji=n=>e.check(OJ(ete,n)),e.guid=n=>e.check(SR(OR,n)),e.uuid=n=>e.check(xJ(Wh,n)),e.uuidv4=n=>e.check(wJ(Wh,n)),e.uuidv6=n=>e.check(SJ(Wh,n)),e.uuidv7=n=>e.check(_J(Wh,n)),e.nanoid=n=>e.check(EJ(tte,n)),e.guid=n=>e.check(SR(OR,n)),e.cuid=n=>e.check(TJ(nte,n)),e.cuid2=n=>e.check(jJ(rte,n)),e.ulid=n=>e.check(CJ(ate,n)),e.base64=n=>e.check($J(fte,n)),e.base64url=n=>e.check(zJ(dte,n)),e.xid=n=>e.check(RJ(ite,n)),e.ksuid=n=>e.check(NJ(ote,n)),e.ipv4=n=>e.check(MJ(ste,n)),e.ipv6=n=>e.check(PJ(lte,n)),e.cidrv4=n=>e.check(DJ(cte,n)),e.cidrv6=n=>e.check(kJ(ute,n)),e.e164=n=>e.check(LJ(hte,n)),e.datetime=n=>e.check(Nee(n)),e.date=n=>e.check(Pee(n)),e.time=n=>e.check(kee(n)),e.duration=n=>e.check(zee(n))});function Vn(e){return yJ(Xee,e)}const an=Se("ZodStringFormat",(e,t)=>{Jt.init(e,t),pI.init(e,t)}),Qee=Se("ZodEmail",(e,t)=>{jQ.init(e,t),an.init(e,t)}),OR=Se("ZodGUID",(e,t)=>{EQ.init(e,t),an.init(e,t)}),Wh=Se("ZodUUID",(e,t)=>{TQ.init(e,t),an.init(e,t)}),Jee=Se("ZodURL",(e,t)=>{CQ.init(e,t),an.init(e,t)}),ete=Se("ZodEmoji",(e,t)=>{RQ.init(e,t),an.init(e,t)}),tte=Se("ZodNanoID",(e,t)=>{NQ.init(e,t),an.init(e,t)}),nte=Se("ZodCUID",(e,t)=>{MQ.init(e,t),an.init(e,t)}),rte=Se("ZodCUID2",(e,t)=>{PQ.init(e,t),an.init(e,t)}),ate=Se("ZodULID",(e,t)=>{DQ.init(e,t),an.init(e,t)}),ite=Se("ZodXID",(e,t)=>{kQ.init(e,t),an.init(e,t)}),ote=Se("ZodKSUID",(e,t)=>{$Q.init(e,t),an.init(e,t)}),ste=Se("ZodIPv4",(e,t)=>{UQ.init(e,t),an.init(e,t)}),lte=Se("ZodIPv6",(e,t)=>{qQ.init(e,t),an.init(e,t)}),cte=Se("ZodCIDRv4",(e,t)=>{HQ.init(e,t),an.init(e,t)}),ute=Se("ZodCIDRv6",(e,t)=>{FQ.init(e,t),an.init(e,t)}),fte=Se("ZodBase64",(e,t)=>{VQ.init(e,t),an.init(e,t)}),dte=Se("ZodBase64URL",(e,t)=>{WQ.init(e,t),an.init(e,t)}),hte=Se("ZodE164",(e,t)=>{YQ.init(e,t),an.init(e,t)}),pte=Se("ZodJWT",(e,t)=>{KQ.init(e,t),an.init(e,t)}),mte=Se("ZodBoolean",(e,t)=>{XQ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>fee(e,n,r)});function vte(e){return FJ(mte,e)}const gte=Se("ZodUnknown",(e,t)=>{QQ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>hee()});function ER(){return VJ(gte)}const yte=Se("ZodNever",(e,t)=>{JQ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>dee(e,n,r)});function bte(e){return GJ(yte,e)}const xte=Se("ZodArray",(e,t)=>{eJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>gee(e,n,r,a),e.element=t.element,vv(e,"ZodArray",{min(n,r){return this.check($p(n,r))},nonempty(n){return this.check($p(1,n))},max(n,r){return this.check(lI(n,r))},length(n,r){return this.check(cI(n,r))},unwrap(){return this.element}})});function wte(e,t){return aee(xte,e,t)}const Ste=Se("ZodObject",(e,t)=>{nJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>yee(e,n,r,a),It(e,"shape",()=>t.shape),vv(e,"ZodObject",{keyof(){return Tte(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ER()})},loose(){return this.clone({...this._zod.def,catchall:ER()})},strict(){return this.clone({...this._zod.def,catchall:bte()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return _X(this,n)},safeExtend(n){return AX(this,n)},merge(n){return OX(this,n)},pick(n){return wX(this,n)},omit(n){return SX(this,n)},partial(...n){return EX(mI,this,n[0])},required(...n){return TX(vI,this,n[0])}})});function zi(e,t){const n={type:"object",shape:e??{},...Xe(t)};return new Ste(n)}const _te=Se("ZodUnion",(e,t)=>{rJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>bee(e,n,r,a),e.options=t.options});function Ate(e,t){return new _te({type:"union",options:e,...Xe(t)})}const Ote=Se("ZodIntersection",(e,t)=>{aJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>xee(e,n,r,a)});function Ete(e,t){return new Ote({type:"intersection",left:e,right:t})}const uS=Se("ZodEnum",(e,t)=>{iJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(r,a,o)=>pee(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const o={};for(const l of r)if(n.has(l))o[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new uS({...t,checks:[],...Xe(a),entries:o})},e.exclude=(r,a)=>{const o={...t.entries};for(const l of r)if(n.has(l))delete o[l];else throw new Error(`Key ${l} not found in enum`);return new uS({...t,checks:[],...Xe(a),entries:o})}});function Tte(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new uS({type:"enum",entries:n,...Xe(t)})}const jte=Se("ZodTransform",(e,t)=>{oJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>vee(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Z3(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(ff(o,n.value,t));else{const l=o;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),n.issues.push(ff(l))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function Cte(e){return new jte({type:"transform",transform:e})}const mI=Se("ZodOptional",(e,t)=>{sI.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>hI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function TR(e){return new mI({type:"optional",innerType:e})}const Rte=Se("ZodExactOptional",(e,t)=>{sJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>hI(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function Nte(e){return new Rte({type:"optional",innerType:e})}const Mte=Se("ZodNullable",(e,t)=>{lJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>wee(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function jR(e){return new Mte({type:"nullable",innerType:e})}const Pte=Se("ZodDefault",(e,t)=>{cJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>_ee(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Dte(e,t){return new Pte({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Q3(t)}})}const kte=Se("ZodPrefault",(e,t)=>{uJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Aee(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function $te(e,t){return new kte({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Q3(t)}})}const vI=Se("ZodNonOptional",(e,t)=>{fJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>See(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function zte(e,t){return new vI({type:"nonoptional",innerType:e,...Xe(t)})}const Lte=Se("ZodCatch",(e,t)=>{dJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Oee(e,n,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ite(e,t){return new Lte({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Bte=Se("ZodPipe",(e,t)=>{hJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Eee(e,n,r,a),e.in=t.in,e.out=t.out});function CR(e,t){return new Bte({type:"pipe",in:e,out:t})}const Ute=Se("ZodReadonly",(e,t)=>{pJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>Tee(e,n,r,a),e.unwrap=()=>e._zod.def.innerType});function qte(e){return new Ute({type:"readonly",innerType:e})}const gI=Se("ZodCustom",(e,t)=>{mJ.init(e,t),On.init(e,t),e._zod.processJSONSchema=(n,r,a)=>mee(e,n)});function Hte(e,t={}){return iee(gI,e,t)}function Fte(e,t){return oee(e,t)}function VA(e,t={}){const n=new gI({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...Xe(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Vte="Label",yI=y.forwardRef((e,t)=>v.jsx(a5.label,{...e,ref:t,onMouseDown:n=>{var a;n.target.closest("button, input, select, textarea")||((a=e.onMouseDown)==null||a.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));yI.displayName=Vte;var bI=yI;const Gte=wc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),qt=y.forwardRef(({className:e,...t},n)=>v.jsx(bI,{ref:n,className:xe(Gte(),e),...t}));qt.displayName=bI.displayName;const Wte=wc("rounded-lg bg-card text-card-foreground",{variants:{level:{0:"",1:"shadow-card-1",2:"shadow-card-2",3:"shadow-card-3",4:"shadow-card-4"}},defaultVariants:{level:2}}),Jr=y.forwardRef(({className:e,level:t,...n},r)=>v.jsx("div",{ref:r,className:xe(Wte({level:t}),e),...n}));Jr.displayName="Card";const ea=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:xe("flex flex-col space-y-1.5 p-6",e),...t}));ea.displayName="CardHeader";const ta=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:xe("text-2xl font-semibold leading-none tracking-tight",e),...t}));ta.displayName="CardTitle";const _s=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));_s.displayName="CardDescription";const qa=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:xe("p-6 pt-0",e),...t}));qa.displayName="CardContent";const Yte=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{ref:n,className:xe("flex items-center p-6 pt-0",e),...t}));Yte.displayName="CardFooter";const Zte=zi({email:Vn().email(),password:Vn().min(8)});function Kte(){const e=Xa(),{resolvedTheme:t}=Yf(),n=t==="dark"?"/logo-dark.svg":"/logo.svg",{register:r,handleSubmit:a,setError:o,formState:{errors:l,isSubmitting:c}}=wo({resolver:So(Zte),mode:"onBlur"});async function f(d){try{const{status:m}=await P3.post("/api/v1/auth/login",{email:d.email,password:d.password});if(m!==200){o("root",{message:"Invalid email or password"});return}e("/app-center",{replace:!0})}catch{o("root",{message:"Network error. Please try again."})}}return v.jsx("div",{className:"flex min-h-svh items-center justify-center overflow-hidden p-4",children:v.jsxs("div",{className:"flex flex-col items-center gap-6 w-full max-w-sm",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("img",{src:n,alt:"tapflow",className:"w-6 h-6"}),v.jsx("span",{className:"text-base font-semibold tracking-tight",children:"tapflow"})]}),v.jsxs(Jr,{level:4,className:"w-full",children:[v.jsxs(ea,{className:"text-center",children:[v.jsx(ta,{className:"text-2xl tracking-display-md",children:"Welcome back"}),v.jsx(_s,{children:"Sign in to your team workspace"})]}),v.jsx(qa,{children:v.jsxs("form",{onSubmit:a(f),className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"email",children:"Email"}),v.jsx(pn,{id:"email",type:"email",placeholder:"you@company.com",autoComplete:"email",...r("email")}),l.email&&v.jsx("p",{className:"text-sm text-destructive",children:l.email.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"password",children:"Password"}),v.jsx(pn,{id:"password",type:"password",autoComplete:"current-password",...r("password")}),l.password&&v.jsx("p",{className:"text-sm text-destructive",children:l.password.message})]}),l.root&&v.jsx("p",{className:"text-sm text-destructive",children:l.root.message}),v.jsx(ht,{type:"submit",size:"pill",disabled:c,className:"w-full mt-1",children:c?"Signing in…":"Sign in"}),v.jsxs("p",{className:"text-center text-sm text-muted-foreground",children:["First time here?"," ",v.jsx("a",{href:"https://www.tapflow.dev/dashboard/setup.html",target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-4 hover:text-foreground transition-colors",children:"Set up your workspace"})]})]})})]})]})})}const Xte=zi({displayName:Vn().optional(),avatar:VA(File).nullable().optional(),password:Vn().min(8),confirm:Vn()}).refine(e=>e.password===e.confirm,{message:"Passwords do not match",path:["confirm"]});function Qte(){const e=Xa(),[t]=Fm(),n=t.get("token")??"",[r,a]=y.useState("loading"),[o,l]=y.useState(""),[c,f]=y.useState(null),d=y.useRef(null),{register:m,handleSubmit:h,control:g,setError:x,formState:{errors:A,isSubmitting:S}}=wo({resolver:So(Xte),mode:"onBlur",defaultValues:{displayName:"",avatar:null}}),w=DA({control:g,name:"displayName"})??"";y.useEffect(()=>{if(!n){a("invalid");return}fetch(`/api/v1/invitations/verify?token=${n}`).then(E=>E.ok?E.json():Promise.reject()).then(E=>{l(E.role),a("valid")}).catch(()=>a("invalid"))},[n]);async function O(E){var j;try{const C=new FormData;if(C.append("token",n),C.append("password",E.password),(j=E.displayName)!=null&&j.trim()&&C.append("display_name",E.displayName.trim()),E.avatar&&C.append("avatar",E.avatar),!(await fetch("/api/v1/invitations/accept",{method:"POST",body:C})).ok){x("root",{message:"Failed to accept invitation"});return}e("/app-center",{replace:!0})}catch{x("root",{message:"Network error. Please try again."})}}return r==="loading"?v.jsx("div",{className:"flex min-h-svh items-center justify-center"}):r==="invalid"?v.jsx("div",{className:"bg-mesh-gradient flex min-h-svh items-center justify-center overflow-hidden p-4",children:v.jsx(Jr,{level:4,className:"w-full max-w-sm text-center",children:v.jsxs(ea,{children:[v.jsx(ta,{children:"Invitation expired"}),v.jsx(_s,{children:"This invite link is invalid or has expired. Ask your admin for a new one."})]})})}):v.jsx("div",{className:"bg-mesh-gradient flex min-h-svh items-center justify-center overflow-hidden p-4",children:v.jsxs(Jr,{level:4,className:"w-full max-w-sm",children:[v.jsxs(ea,{className:"text-center",children:[v.jsx(ta,{children:"Set up your account"}),v.jsxs(_s,{children:["You're joining as ",v.jsx("strong",{children:o})]})]}),v.jsx(qa,{children:v.jsxs("form",{onSubmit:h(O),className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsxs(qt,{htmlFor:"display-name",children:["Nickname ",v.jsx("span",{className:"text-muted-foreground text-xs",children:"(optional)"})]}),v.jsx(pn,{id:"display-name",placeholder:"Your name",...m("displayName")})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsxs(qt,{children:["Avatar ",v.jsx("span",{className:"text-muted-foreground text-xs",children:"(optional, png · jpg, max 2MB)"})]}),v.jsx(Np,{name:"avatar",control:g,render:({field:E})=>{var j;return v.jsxs("div",{className:"relative w-14 h-14",children:[c?v.jsx("img",{src:c,alt:"avatar",className:"w-14 h-14 rounded-full object-cover border"}):v.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center text-lg font-medium",style:(()=>{const C=TA(w);return{backgroundColor:C.bg,color:C.fg}})(),children:((j=w==null?void 0:w[0])==null?void 0:j.toUpperCase())??"?"}),v.jsx("button",{type:"button",onClick:()=>{var C;return(C=d.current)==null?void 0:C.click()},className:"absolute bottom-0 right-0 w-6 h-6 rounded-full bg-background border border-border shadow-sm flex items-center justify-center hover:bg-accent transition-colors",children:v.jsx(H1,{className:"w-3 h-3"})}),v.jsx("input",{ref:d,type:"file",accept:"image/png,image/jpeg",className:"hidden",onChange:C=>{var R;const T=(R=C.target.files)==null?void 0:R[0];if(T){if(T.size>2*1024*1024){x("avatar",{message:"Max 2MB for avatar"});return}E.onChange(T),f(URL.createObjectURL(T))}}})]})}}),A.avatar&&v.jsx("p",{className:"text-sm text-destructive",children:A.avatar.message})]}),v.jsx(Oo,{}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"password",children:"Password"}),v.jsx(pn,{id:"password",type:"password",...m("password")}),A.password&&v.jsx("p",{className:"text-sm text-destructive",children:A.password.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"confirm",children:"Confirm password"}),v.jsx(pn,{id:"confirm",type:"password",...m("confirm")}),A.confirm&&v.jsx("p",{className:"text-sm text-destructive",children:A.confirm.message})]}),A.root&&v.jsx("p",{className:"text-sm text-destructive",children:A.root.message}),v.jsx(ht,{type:"submit",disabled:S,className:"w-full",children:S?"Creating account…":"Create account"})]})})]})})}const Jte=zi({password:Vn().min(8),confirm:Vn()}).refine(e=>e.password===e.confirm,{message:"Passwords do not match",path:["confirm"]});function ene(){const e=Xa(),[t]=Fm(),n=t.get("token")??"",[r,a]=y.useState("loading"),{register:o,handleSubmit:l,setError:c,formState:{errors:f,isSubmitting:d}}=wo({resolver:So(Jte),mode:"onBlur"});y.useEffect(()=>{if(!n){a("invalid");return}fetch(`/api/v1/auth/reset-password/verify?token=${n}`).then(h=>h.ok?a("valid"):Promise.reject()).catch(()=>a("invalid"))},[n]);async function m(h){try{const g=await fetch("/api/v1/auth/reset-password",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:n,password:h.password})});if(!g.ok){const x=await g.json();c("root",{message:x.error??"Failed to reset password"});return}e("/login",{replace:!0})}catch{c("root",{message:"Network error. Please try again."})}}return r==="loading"?v.jsx("div",{className:"flex min-h-svh items-center justify-center"}):r==="invalid"?v.jsx("div",{className:"bg-mesh-gradient flex min-h-svh items-center justify-center overflow-hidden p-4",children:v.jsx(Jr,{level:4,className:"w-full max-w-sm text-center",children:v.jsxs(ea,{children:[v.jsx(ta,{children:"Link expired"}),v.jsx(_s,{children:"This password reset link is invalid or has expired. Ask your admin to send a new one."})]})})}):v.jsx("div",{className:"bg-mesh-gradient flex min-h-svh items-center justify-center overflow-hidden p-4",children:v.jsxs(Jr,{level:4,className:"w-full max-w-sm",children:[v.jsxs(ea,{className:"text-center",children:[v.jsx(ta,{children:"Reset password"}),v.jsx(_s,{children:"Enter your new password below."})]}),v.jsx(qa,{children:v.jsxs("form",{onSubmit:l(m),className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"password",children:"New password"}),v.jsx(pn,{id:"password",type:"password",...o("password")}),f.password&&v.jsx("p",{className:"text-sm text-destructive",children:f.password.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"confirm",children:"Confirm password"}),v.jsx(pn,{id:"confirm",type:"password",...o("confirm")}),f.confirm&&v.jsx("p",{className:"text-sm text-destructive",children:f.confirm.message})]}),f.root&&v.jsx("p",{className:"text-sm text-destructive",children:f.root.message}),v.jsx(ht,{type:"submit",disabled:d,className:"w-full",children:d?"Saving…":"Set new password"})]})})]})})}function xI({value:e,onChange:t,placeholder:n,className:r}){return v.jsxs("div",{className:"relative",children:[v.jsx(KF,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none"}),v.jsx(pn,{placeholder:n,value:e,onChange:a=>t(a.target.value),className:`h-8 pl-8 ${r??"w-48"}`})]})}function fS(e,[t,n]){return Math.min(n,Math.max(t,e))}function wI(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var tne=[" ","Enter","ArrowUp","ArrowDown"],nne=[" ","Enter"],As="Select",[gv,yv,rne]=yA(As),[Tc]=sa(As,[rne,Oc]),bv=Oc(),[ane,Po]=Tc(As),[ine,one]=Tc(As),SI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:c,onValueChange:f,dir:d,name:m,autoComplete:h,disabled:g,required:x,form:A}=e,S=bv(t),[w,O]=y.useState(null),[E,j]=y.useState(null),[C,T]=y.useState(!1),R=sd(d),[N,k]=Eo({prop:r,defaultProp:a??!1,onChange:o,caller:As}),[z,V]=Eo({prop:l,defaultProp:c,onChange:f,caller:As}),B=y.useRef(null),I=w?A||!!w.closest("form"):!0,[F,G]=y.useState(new Set),Y=Array.from(F).map($=>$.props.value).join(";");return v.jsx(fA,{...S,children:v.jsxs(ane,{required:x,scope:t,trigger:w,onTriggerChange:O,valueNode:E,onValueNodeChange:j,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:Aa(),value:z,onValueChange:V,open:N,onOpenChange:k,dir:R,triggerPointerDownPosRef:B,disabled:g,children:[v.jsx(gv.Provider,{scope:t,children:v.jsx(ine,{scope:e.__scopeSelect,onNativeOptionAdd:y.useCallback($=>{G(q=>new Set(q).add($))},[]),onNativeOptionRemove:y.useCallback($=>{G(q=>{const K=new Set(q);return K.delete($),K})},[]),children:n})}),I?v.jsxs(GI,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:h,value:z,onChange:$=>V($.target.value),disabled:g,form:A,children:[z===void 0?v.jsx("option",{value:""}):null,Array.from(F)]},Y):null]})})};SI.displayName=As;var _I="SelectTrigger",AI=y.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=bv(n),l=Po(_I,n),c=l.disabled||r,f=ct(t,l.onTriggerChange),d=yv(n),m=y.useRef("touch"),[h,g,x]=YI(S=>{const w=d().filter(j=>!j.disabled),O=w.find(j=>j.value===l.value),E=ZI(w,S,O);E!==void 0&&l.onValueChange(E.value)}),A=S=>{c||(l.onOpenChange(!0),x()),S&&(l.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return v.jsx(dA,{asChild:!0,...o,children:v.jsx(Qe.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":WI(l.value)?"":void 0,...a,ref:f,onClick:$e(a.onClick,S=>{S.currentTarget.focus(),m.current!=="mouse"&&A(S)}),onPointerDown:$e(a.onPointerDown,S=>{m.current=S.pointerType;const w=S.target;w.hasPointerCapture(S.pointerId)&&w.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(A(S),S.preventDefault())}),onKeyDown:$e(a.onKeyDown,S=>{const w=h.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&g(S.key),!(w&&S.key===" ")&&tne.includes(S.key)&&(A(),S.preventDefault())})})})});AI.displayName=_I;var OI="SelectValue",EI=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...c}=e,f=Po(OI,n),{onValueNodeHasChildrenChange:d}=f,m=o!==void 0,h=ct(t,f.onValueNodeChange);return Gn(()=>{d(m)},[d,m]),v.jsx(Qe.span,{...c,ref:h,style:{pointerEvents:"none"},children:WI(f.value)?v.jsx(v.Fragment,{children:l}):o})});EI.displayName=OI;var sne="SelectIcon",TI=y.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return v.jsx(Qe.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});TI.displayName=sne;var lne="SelectPortal",jI=e=>v.jsx(ed,{asChild:!0,...e});jI.displayName=lne;var Os="SelectContent",CI=y.forwardRef((e,t)=>{const n=Po(Os,e.__scopeSelect),[r,a]=y.useState();if(Gn(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?Xf.createPortal(v.jsx(RI,{scope:e.__scopeSelect,children:v.jsx(gv.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),o):null}return v.jsx(NI,{...e,ref:t})});CI.displayName=Os;var ga=10,[RI,Do]=Tc(Os),cne="SelectContentImpl",une=Vl("SelectContent.RemoveScroll"),NI=y.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:g,collisionPadding:x,sticky:A,hideWhenDetached:S,avoidCollisions:w,...O}=e,E=Po(Os,n),[j,C]=y.useState(null),[T,R]=y.useState(null),N=ct(t,he=>C(he)),[k,z]=y.useState(null),[V,B]=y.useState(null),I=yv(n),[F,G]=y.useState(!1),Y=y.useRef(!1);y.useEffect(()=>{if(j)return X_(j)},[j]),K_();const $=y.useCallback(he=>{const[we,...se]=I().map(ie=>ie.ref.current),[Oe]=se.slice(-1),_e=document.activeElement;for(const ie of he)if(ie===_e||(ie==null||ie.scrollIntoView({block:"nearest"}),ie===we&&T&&(T.scrollTop=0),ie===Oe&&T&&(T.scrollTop=T.scrollHeight),ie==null||ie.focus(),document.activeElement!==_e))return},[I,T]),q=y.useCallback(()=>$([k,j]),[$,k,j]);y.useEffect(()=>{F&&q()},[F,q]);const{onOpenChange:K,triggerPointerDownPosRef:X}=E;y.useEffect(()=>{if(j){let he={x:0,y:0};const we=Oe=>{var _e,ie;he={x:Math.abs(Math.round(Oe.pageX)-(((_e=X.current)==null?void 0:_e.x)??0)),y:Math.abs(Math.round(Oe.pageY)-(((ie=X.current)==null?void 0:ie.y)??0))}},se=Oe=>{he.x<=10&&he.y<=10?Oe.preventDefault():j.contains(Oe.target)||K(!1),document.removeEventListener("pointermove",we),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",we),document.addEventListener("pointerup",se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",we),document.removeEventListener("pointerup",se,{capture:!0})}}},[j,K,X]),y.useEffect(()=>{const he=()=>K(!1);return window.addEventListener("blur",he),window.addEventListener("resize",he),()=>{window.removeEventListener("blur",he),window.removeEventListener("resize",he)}},[K]);const[Z,P]=YI(he=>{const we=I().filter(_e=>!_e.disabled),se=we.find(_e=>_e.ref.current===document.activeElement),Oe=ZI(we,he,se);Oe&&setTimeout(()=>Oe.ref.current.focus())}),H=y.useCallback((he,we,se)=>{const Oe=!Y.current&&!se;(E.value!==void 0&&E.value===we||Oe)&&(z(he),Oe&&(Y.current=!0))},[E.value]),J=y.useCallback(()=>j==null?void 0:j.focus(),[j]),fe=y.useCallback((he,we,se)=>{const Oe=!Y.current&&!se;(E.value!==void 0&&E.value===we||Oe)&&B(he)},[E.value]),ye=r==="popper"?dS:MI,ce=ye===dS?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:h,collisionBoundary:g,collisionPadding:x,sticky:A,hideWhenDetached:S,avoidCollisions:w}:{};return v.jsx(RI,{scope:n,content:j,viewport:T,onViewportChange:R,itemRefCallback:H,selectedItem:k,onItemLeave:J,itemTextRefCallback:fe,focusSelectedItem:q,selectedItemText:V,position:r,isPositioned:F,searchRef:Z,children:v.jsx(Ym,{as:une,allowPinchZoom:!0,children:v.jsx(Gm,{asChild:!0,trapped:E.open,onMountAutoFocus:he=>{he.preventDefault()},onUnmountAutoFocus:$e(a,he=>{var we;(we=E.trigger)==null||we.focus({preventScroll:!0}),he.preventDefault()}),children:v.jsx(Jf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:he=>he.preventDefault(),onDismiss:()=>E.onOpenChange(!1),children:v.jsx(ye,{role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:he=>he.preventDefault(),...O,...ce,onPlaced:()=>G(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:$e(O.onKeyDown,he=>{const we=he.ctrlKey||he.altKey||he.metaKey;if(he.key==="Tab"&&he.preventDefault(),!we&&he.key.length===1&&P(he.key),["ArrowUp","ArrowDown","Home","End"].includes(he.key)){let Oe=I().filter(_e=>!_e.disabled).map(_e=>_e.ref.current);if(["ArrowUp","End"].includes(he.key)&&(Oe=Oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(he.key)){const _e=he.target,ie=Oe.indexOf(_e);Oe=Oe.slice(ie+1)}setTimeout(()=>$(Oe)),he.preventDefault()}})})})})})})});NI.displayName=cne;var fne="SelectItemAlignedPosition",MI=y.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=Po(Os,n),l=Do(Os,n),[c,f]=y.useState(null),[d,m]=y.useState(null),h=ct(t,N=>m(N)),g=yv(n),x=y.useRef(!1),A=y.useRef(!0),{viewport:S,selectedItem:w,selectedItemText:O,focusSelectedItem:E}=l,j=y.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&d&&S&&w&&O){const N=o.trigger.getBoundingClientRect(),k=d.getBoundingClientRect(),z=o.valueNode.getBoundingClientRect(),V=O.getBoundingClientRect();if(o.dir!=="rtl"){const _e=V.left-k.left,ie=z.left-_e,Ge=N.left-ie,ze=N.width+Ge,Je=Math.max(ze,k.width),Ke=window.innerWidth-ga,st=fS(ie,[ga,Math.max(ga,Ke-Je)]);c.style.minWidth=ze+"px",c.style.left=st+"px"}else{const _e=k.right-V.right,ie=window.innerWidth-z.right-_e,Ge=window.innerWidth-N.right-ie,ze=N.width+Ge,Je=Math.max(ze,k.width),Ke=window.innerWidth-ga,st=fS(ie,[ga,Math.max(ga,Ke-Je)]);c.style.minWidth=ze+"px",c.style.right=st+"px"}const B=g(),I=window.innerHeight-ga*2,F=S.scrollHeight,G=window.getComputedStyle(d),Y=parseInt(G.borderTopWidth,10),$=parseInt(G.paddingTop,10),q=parseInt(G.borderBottomWidth,10),K=parseInt(G.paddingBottom,10),X=Y+$+F+K+q,Z=Math.min(w.offsetHeight*5,X),P=window.getComputedStyle(S),H=parseInt(P.paddingTop,10),J=parseInt(P.paddingBottom,10),fe=N.top+N.height/2-ga,ye=I-fe,ce=w.offsetHeight/2,he=w.offsetTop+ce,we=Y+$+he,se=X-we;if(we<=fe){const _e=B.length>0&&w===B[B.length-1].ref.current;c.style.bottom="0px";const ie=d.clientHeight-S.offsetTop-S.offsetHeight,Ge=Math.max(ye,ce+(_e?J:0)+ie+q),ze=we+Ge;c.style.height=ze+"px"}else{const _e=B.length>0&&w===B[0].ref.current;c.style.top="0px";const Ge=Math.max(fe,Y+S.offsetTop+(_e?H:0)+ce)+se;c.style.height=Ge+"px",S.scrollTop=we-fe+S.offsetTop}c.style.margin=`${ga}px 0`,c.style.minHeight=Z+"px",c.style.maxHeight=I+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,o.trigger,o.valueNode,c,d,S,w,O,o.dir,r]);Gn(()=>j(),[j]);const[C,T]=y.useState();Gn(()=>{d&&T(window.getComputedStyle(d).zIndex)},[d]);const R=y.useCallback(N=>{N&&A.current===!0&&(j(),E==null||E(),A.current=!1)},[j,E]);return v.jsx(hne,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:R,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:v.jsx(Qe.div,{...a,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});MI.displayName=fne;var dne="SelectPopperPosition",dS=y.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=ga,...o}=e,l=bv(n);return v.jsx(hA,{...l,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.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)"}})});dS.displayName=dne;var[hne,GA]=Tc(Os,{}),hS="SelectViewport",PI=y.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=Do(hS,n),l=GA(hS,n),c=ct(t,o.onViewportChange),f=y.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(gv.Slot,{scope:n,children:v.jsx(Qe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:$e(a.onScroll,d=>{const m=d.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&h){const x=Math.abs(f.current-m.scrollTop);if(x>0){const A=window.innerHeight-ga*2,S=parseFloat(h.style.minHeight),w=parseFloat(h.style.height),O=Math.max(S,w);if(O<A){const E=O+x,j=Math.min(A,E),C=E-j;h.style.height=j+"px",h.style.bottom==="0px"&&(m.scrollTop=C>0?C:0,h.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});PI.displayName=hS;var DI="SelectGroup",[pne,mne]=Tc(DI),vne=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Aa();return v.jsx(pne,{scope:n,id:a,children:v.jsx(Qe.div,{role:"group","aria-labelledby":a,...r,ref:t})})});vne.displayName=DI;var kI="SelectLabel",$I=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mne(kI,n);return v.jsx(Qe.div,{id:a.id,...r,ref:t})});$I.displayName=kI;var Lp="SelectItem",[gne,zI]=Tc(Lp),LI=y.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,c=Po(Lp,n),f=Do(Lp,n),d=c.value===r,[m,h]=y.useState(o??""),[g,x]=y.useState(!1),A=ct(t,E=>{var j;return(j=f.itemRefCallback)==null?void 0:j.call(f,E,r,a)}),S=Aa(),w=y.useRef("touch"),O=()=>{a||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(gne,{scope:n,value:r,disabled:a,textId:S,isSelected:d,onItemTextChange:y.useCallback(E=>{h(j=>j||((E==null?void 0:E.textContent)??"").trim())},[]),children:v.jsx(gv.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:v.jsx(Qe.div,{role:"option","aria-labelledby":S,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:A,onFocus:$e(l.onFocus,()=>x(!0)),onBlur:$e(l.onBlur,()=>x(!1)),onClick:$e(l.onClick,()=>{w.current!=="mouse"&&O()}),onPointerUp:$e(l.onPointerUp,()=>{w.current==="mouse"&&O()}),onPointerDown:$e(l.onPointerDown,E=>{w.current=E.pointerType}),onPointerMove:$e(l.onPointerMove,E=>{var j;w.current=E.pointerType,a?(j=f.onItemLeave)==null||j.call(f):w.current==="mouse"&&E.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$e(l.onPointerLeave,E=>{var j;E.currentTarget===document.activeElement&&((j=f.onItemLeave)==null||j.call(f))}),onKeyDown:$e(l.onKeyDown,E=>{var C;((C=f.searchRef)==null?void 0:C.current)!==""&&E.key===" "||(nne.includes(E.key)&&O(),E.key===" "&&E.preventDefault())})})})})});LI.displayName=Lp;var Vu="SelectItemText",II=y.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=Po(Vu,n),c=Do(Vu,n),f=zI(Vu,n),d=one(Vu,n),[m,h]=y.useState(null),g=ct(t,O=>h(O),f.onItemTextChange,O=>{var E;return(E=c.itemTextRefCallback)==null?void 0:E.call(c,O,f.value,f.disabled)}),x=m==null?void 0:m.textContent,A=y.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:S,onNativeOptionRemove:w}=d;return Gn(()=>(S(A),()=>w(A)),[S,w,A]),v.jsxs(v.Fragment,{children:[v.jsx(Qe.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Xf.createPortal(o.children,l.valueNode):null]})});II.displayName=Vu;var BI="SelectItemIndicator",UI=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return zI(BI,n).isSelected?v.jsx(Qe.span,{"aria-hidden":!0,...r,ref:t}):null});UI.displayName=BI;var pS="SelectScrollUpButton",qI=y.forwardRef((e,t)=>{const n=Do(pS,e.__scopeSelect),r=GA(pS,e.__scopeSelect),[a,o]=y.useState(!1),l=ct(t,r.onScrollButtonChange);return Gn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;o(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?v.jsx(FI,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});qI.displayName=pS;var mS="SelectScrollDownButton",HI=y.forwardRef((e,t)=>{const n=Do(mS,e.__scopeSelect),r=GA(mS,e.__scopeSelect),[a,o]=y.useState(!1),l=ct(t,r.onScrollButtonChange);return Gn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<d;o(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?v.jsx(FI,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});HI.displayName=mS;var FI=y.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Do("SelectScrollButton",n),l=y.useRef(null),c=yv(n),f=y.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return y.useEffect(()=>()=>f(),[f]),Gn(()=>{var m;const d=c().find(h=>h.ref.current===document.activeElement);(m=d==null?void 0:d.ref.current)==null||m.scrollIntoView({block:"nearest"})},[c]),v.jsx(Qe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:$e(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:$e(a.onPointerMove,()=>{var d;(d=o.onItemLeave)==null||d.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:$e(a.onPointerLeave,()=>{f()})})}),yne="SelectSeparator",VI=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(Qe.div,{"aria-hidden":!0,...r,ref:t})});VI.displayName=yne;var vS="SelectArrow",bne=y.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=bv(n),o=Po(vS,n),l=Do(vS,n);return o.open&&l.position==="popper"?v.jsx(pA,{...a,...r,ref:t}):null});bne.displayName=vS;var xne="SelectBubbleInput",GI=y.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=y.useRef(null),o=ct(r,a),l=wI(t);return y.useEffect(()=>{const c=a.current;if(!c)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&m){const h=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(h)}},[l,t]),v.jsx(Qe.select,{...n,style:{...dL,...n.style},ref:o,defaultValue:t})});GI.displayName=xne;function WI(e){return e===""||e===void 0}function YI(e){const t=Hn(e),n=y.useRef(""),r=y.useRef(0),a=y.useCallback(l=>{const c=n.current+l;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),o=y.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function ZI(e,t,n){const a=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=wne(e,Math.max(o,0));a.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function wne(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Sne=SI,KI=AI,_ne=EI,Ane=TI,One=jI,XI=CI,Ene=PI,QI=$I,JI=LI,Tne=II,jne=UI,e4=qI,t4=HI,n4=VI;const Es=Sne,Ts=_ne,Co=y.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(KI,{ref:r,className:xe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,v.jsx(Ane,{asChild:!0,children:v.jsx(G_,{className:"h-4 w-4 opacity-50"})})]}));Co.displayName=KI.displayName;const r4=y.forwardRef(({className:e,...t},n)=>v.jsx(e4,{ref:n,className:xe("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(MF,{className:"h-4 w-4"})}));r4.displayName=e4.displayName;const a4=y.forwardRef(({className:e,...t},n)=>v.jsx(t4,{ref:n,className:xe("flex cursor-default items-center justify-center py-1",e),...t,children:v.jsx(G_,{className:"h-4 w-4"})}));a4.displayName=t4.displayName;const Ro=y.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>v.jsx(One,{children:v.jsxs(XI,{ref:a,className:xe("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out 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 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[v.jsx(r4,{}),v.jsx(Ene,{className:xe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),v.jsx(a4,{})]})}));Ro.displayName=XI.displayName;const Cne=y.forwardRef(({className:e,...t},n)=>v.jsx(QI,{ref:n,className:xe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Cne.displayName=QI.displayName;const Dt=y.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(JI,{ref:r,className:xe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[v.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:v.jsx(jne,{children:v.jsx(Gz,{className:"h-4 w-4"})})}),v.jsx(Tne,{children:t})]}));Dt.displayName=JI.displayName;const Rne=y.forwardRef(({className:e,...t},n)=>v.jsx(n4,{ref:n,className:xe("-mx-1 my-1 h-px bg-muted",e),...t}));Rne.displayName=n4.displayName;const xv=tA,wv=L5,Nne=nA,i4=y.forwardRef(({className:e,...t},n)=>v.jsx(td,{ref:n,className:xe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));i4.displayName=td.displayName;const dd=y.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(Nne,{children:[v.jsx(i4,{}),v.jsxs(nd,{ref:r,className:xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,v.jsxs(Km,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none 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",children:[v.jsx(Qz,{className:"h-4 w-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));dd.displayName=nd.displayName;const hd=({className:e,...t})=>v.jsx("div",{className:xe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});hd.displayName="DialogHeader";const pd=y.forwardRef(({className:e,...t},n)=>v.jsx(rd,{ref:n,className:xe("text-lg font-semibold leading-none tracking-tight",e),...t}));pd.displayName=rd.displayName;const Mne=y.forwardRef(({className:e,...t},n)=>v.jsx(ad,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));Mne.displayName=ad.displayName;function Pne({onSuccess:e,appId:t}){const[n,r]=y.useState(!1),[a,o]=y.useState(null),[l,c]=y.useState("none"),[f,d]=y.useState(""),[m,h]=y.useState(!1),g=y.useRef(null);async function x(S){if(S.preventDefault(),!!a){d(""),h(!0);try{const w=new FormData;w.append("file",a),l!=="none"&&w.append("status",l),t&&w.append("app_id",String(t));const O=await fetch("/api/v1/builds",{method:"POST",credentials:"include",body:w});if(!O.ok){const E=await O.json().catch(()=>({}));d(E.error??"Upload failed. Check the file format.");return}r(!1),o(null),c("none"),e()}catch{d("Network error.")}finally{h(!1)}}}function A(S){r(S),S||(o(null),d(""),c("none"))}return v.jsxs(xv,{open:n,onOpenChange:A,children:[v.jsx(wv,{asChild:!0,children:v.jsxs(ht,{size:"sm",children:[v.jsx(eV,{className:"mr-2 h-4 w-4"}),"Upload build"]})}),v.jsxs(dd,{className:"sm:max-w-md",children:[v.jsx(hd,{children:v.jsx(pd,{children:"Upload build"})}),v.jsxs("form",{onSubmit:x,className:"flex flex-col gap-4 pt-2",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{children:"File"}),v.jsx("div",{className:"flex h-24 cursor-pointer items-center justify-center rounded-md border-2 border-dashed text-sm text-muted-foreground hover:border-primary",onClick:()=>{var S;return(S=g.current)==null?void 0:S.click()},onDragOver:S=>S.preventDefault(),onDrop:S=>{S.preventDefault();const w=S.dataTransfer.files[0];w&&o(w)},children:a?a.name:"Click or drag to upload"}),v.jsx("input",{ref:g,type:"file",accept:".zip,.apk",className:"hidden",onChange:S=>{var w;return o(((w=S.target.files)==null?void 0:w[0])??null)}}),v.jsxs("p",{className:"text-xs text-muted-foreground",children:["iOS: ",v.jsx("code",{children:".app.zip"})," (zip the ",v.jsx("code",{children:".app"})," folder after ",v.jsx("code",{children:"xcodebuild -sdk iphonesimulator"}),") · Android: ",v.jsx("code",{children:".apk"})]})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsxs(qt,{children:["Status ",v.jsx("span",{className:"text-muted-foreground",children:"(optional)"})]}),v.jsxs(Es,{value:l,onValueChange:c,children:[v.jsx(Co,{children:v.jsx(Ts,{})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"none",children:"None"}),v.jsx(Dt,{value:"Backlog",children:"Backlog"}),v.jsx(Dt,{value:"In Progress",children:"In Progress"}),v.jsx(Dt,{value:"Done",children:"Done"}),v.jsx(Dt,{value:"Rejected",children:"Rejected"})]})]})]}),f&&v.jsx("p",{className:"text-sm text-destructive",children:f}),v.jsxs("div",{className:"flex justify-end gap-2",children:[v.jsx(ht,{type:"button",variant:"outline",className:"w-24",onClick:()=>r(!1),children:"Cancel"}),v.jsx(ht,{type:"submit",className:"w-24",disabled:!a||m,children:m?"Uploading…":"Upload"})]})]})]})]})}function Ip({className:e,...t}){return v.jsx("span",{className:xe("font-mono text-xs tabular-nums tracking-tight",e),...t})}async function Dne(){const e=await fetch("/api/v1/apps",{credentials:"include"});return e.ok?(await e.json()).items:[]}async function kne({appId:e,search:t,statusFilter:n}){const r=new URLSearchParams({app_id:String(e),limit:"100",sort:"uploaded_at",dir:"desc"});t&&r.set("q",t),n&&n!=="all"&&r.set("status",n);const a=await fetch(`/api/v1/builds?${r}`,{credentials:"include"});return a.ok?(await a.json()).items:[]}async function $ne(e){const t=await fetch("/api/v1/apps",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});return t.status===409?{error:"App with this bundle ID and platform already exists"}:t.ok?t.json():null}async function zne(e,t){await fetch(`/api/v1/builds/${e}`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({status_label:t})})}async function Lne(e){const t=await fetch(`/api/v1/builds/${e}`,{credentials:"include"});return t.ok?t.json():null}function Ine(e){const t=new Map;for(const n of e){const r=n.version_name??"Unversioned";t.has(r)||t.set(r,[]),t.get(r).push(n)}return Array.from(t.entries()).map(([n,r])=>({versionName:n,builds:r}))}function Bne({onSuccess:e}){const[t,n]=y.useState(!1),[r,a]=y.useState(""),[o,l]=y.useState(""),[c,f]=y.useState("ios"),[d,m]=y.useState(""),[h,g]=y.useState(!1);async function x(A){A.preventDefault(),m(""),g(!0);try{const S=await $ne({name:r.trim(),bundle_id_key:o.trim(),platform:c});if(!S){m("Failed to create app");return}if("error"in S){m(S.error);return}n(!1),a(""),l(""),f("ios"),e()}finally{g(!1)}}return v.jsxs(xv,{open:t,onOpenChange:n,children:[v.jsx(wv,{asChild:!0,children:v.jsxs("button",{className:"flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-sm text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:[v.jsx(Kz,{className:"size-3.5 shrink-0"}),v.jsx("span",{children:"Add App"})]})}),v.jsxs(dd,{className:"sm:max-w-sm",children:[v.jsx(hd,{children:v.jsx(pd,{children:"Add App"})}),v.jsxs("form",{onSubmit:x,className:"flex flex-col gap-4 pt-2",children:[v.jsxs("div",{className:"flex flex-col gap-1.5",children:[v.jsx(qt,{htmlFor:"app-name",children:"Name"}),v.jsx(pn,{id:"app-name",value:r,onChange:A=>a(A.target.value),placeholder:"My App",required:!0})]}),v.jsxs("div",{className:"flex flex-col gap-1.5",children:[v.jsx(qt,{htmlFor:"bundle-id",children:"Bundle ID"}),v.jsx(pn,{id:"bundle-id",value:o,onChange:A=>l(A.target.value),placeholder:"com.example.myapp",required:!0})]}),v.jsxs("div",{className:"flex flex-col gap-1.5",children:[v.jsx(qt,{htmlFor:"platform",children:"Platform"}),v.jsxs(Es,{value:c,onValueChange:A=>f(A),children:[v.jsx(Co,{id:"platform",children:v.jsx(Ts,{})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"ios",children:"iOS"}),v.jsx(Dt,{value:"android",children:"Android"}),v.jsx(Dt,{value:"both",children:"Both"})]})]})]}),d&&v.jsx("p",{className:"text-sm text-destructive",children:d}),v.jsx(ht,{type:"submit",disabled:h,className:"w-full",children:h?"Creating…":"Create App"})]})]})]})}function Une({apps:e,selectedAppId:t,onSelect:n,onAdd:r}){return v.jsxs("aside",{className:"w-64 shrink-0 border-r flex flex-col gap-1 p-3 overflow-y-auto",children:[v.jsx("span",{className:"px-2 pb-1 font-mono text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Apps"}),e.length===0&&v.jsx("span",{className:"px-2 text-sm text-muted-foreground",children:"No apps yet"}),e.map(a=>v.jsxs("button",{onClick:()=>n(a.id),className:["flex flex-col gap-0.5 rounded-md px-2 py-2 text-left text-sm hover:bg-accent overflow-hidden",a.id===t?"bg-accent font-medium":""].join(" "),children:[v.jsx("span",{className:"truncate",children:a.name}),v.jsx(Ip,{className:"text-muted-foreground truncate",children:a.bundle_id_key})]},a.id)),v.jsx("div",{className:"mt-1 border-t pt-1",children:v.jsx(Bne,{onSuccess:r})})]})}const qne=wc("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"},tone:{backlog:"border-transparent bg-zinc-100 text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400",progress:"border-transparent bg-blue-50 text-blue-700 dark:bg-blue-950 dark:text-blue-300",done:"border-transparent bg-green-50 text-green-700 dark:bg-green-950 dark:text-green-300",rejected:"border-transparent bg-red-50 text-red-700 dark:bg-red-950 dark:text-red-300",ios:"border-transparent bg-sky-50 text-sky-700 dark:bg-sky-950 dark:text-sky-300",android:"border-transparent bg-emerald-50 text-emerald-700 dark:bg-emerald-950 dark:text-emerald-300"}},defaultVariants:{variant:"default"}});function Yl({className:e,variant:t,tone:n,...r}){return v.jsx("div",{className:xe(qne({variant:t,tone:n}),e),...r})}const o4={Backlog:"backlog","In Progress":"progress",Done:"done",Rejected:"rejected"};function RR(e){return e.version_name&&e.build_number?`${e.version_name} · build ${e.build_number}`:e.version_name??e.version_label??(e.build_number?`build ${e.build_number}`:"Build")}function Hne({build:e,isLast:t,onNavigate:n,onStatusChange:r}){return v.jsxs("div",{className:["flex items-center gap-3 px-4 py-3",t?"":"border-b"].join(" "),children:[v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[v.jsxs("span",{className:"text-sm font-medium",children:["build ",v.jsx(Ip,{children:e.build_number??"—"})]}),v.jsx(Yl,{tone:e.platform==="ios"?"ios":"android",className:"text-xs capitalize",children:e.platform}),e.status_label&&v.jsx(Yl,{tone:o4[e.status_label],className:"text-xs",children:e.status_label})]}),v.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:[e.uploader??"—"," · ",v.jsx(Ip,{children:new Date(e.uploaded_at).toLocaleDateString()})]})]}),v.jsxs(Es,{value:e.status_label??"none",onValueChange:a=>r(e.id,a==="none"?null:a),children:[v.jsx(Co,{className:"h-9 w-32 text-xs",children:v.jsx(Ts,{})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"none",children:v.jsx("span",{className:"text-muted-foreground",children:"—"})}),v.jsx(Dt,{value:"Backlog",children:"Backlog"}),v.jsx(Dt,{value:"In Progress",children:"In Progress"}),v.jsx(Dt,{value:"Done",children:"Done"}),v.jsx(Dt,{value:"Rejected",children:"Rejected"})]})]}),v.jsxs(ht,{size:"sm",onClick:()=>n(e.id),children:[v.jsx(Y_,{className:"mr-1.5 h-3.5 w-3.5"}),"Start QA"]})]})}function Fne({versionName:e,builds:t,isOpen:n,onToggle:r,onNavigate:a,onStatusChange:o}){return v.jsxs("div",{className:"rounded-lg shadow-card-2 overflow-hidden",children:[v.jsxs("button",{className:"flex w-full items-center gap-2 px-4 py-3 text-left hover:bg-accent/50 bg-card",onClick:r,children:[n?v.jsx(G_,{className:"h-4 w-4 shrink-0 text-muted-foreground"}):v.jsx(W_,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),v.jsx(Ip,{className:"font-medium text-sm text-foreground",children:e}),v.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",t.length," build",t.length>1?"s":"",")"]})]}),n&&v.jsx("div",{className:"border-t bg-card",children:t.map((l,c)=>v.jsx(Hne,{build:l,isLast:c===t.length-1,onNavigate:a,onStatusChange:o},l.id))})]})}function Vne(){const e=Xa(),[t,n]=Fm(),[r,a]=y.useState([]),[o,l]=y.useState([]),[c,f]=y.useState(""),[d,m]=y.useState("all"),[h,g]=y.useState(!0),[x,A]=y.useState(new Set),S=t.get("appId")?Number(t.get("appId")):null,w=r.find(N=>N.id===S)??null,O=y.useCallback(async()=>{const N=await Dne();a(N),!t.get("appId")&&N.length>0&&n({appId:String(N[0].id)},{replace:!0})},[t,n]),E=y.useCallback(async()=>{if(!S){l([]),g(!1);return}g(!0);try{const N=await kne({appId:S,search:c,statusFilter:d});l(N),N.length>0&&x.size===0&&A(new Set([N[0].version_name??"Unversioned"]))}finally{g(!1)}},[S,c,d]);y.useEffect(()=>{O()},[]),y.useEffect(()=>{E()},[E]);function j(N){N!==S&&(l([]),A(new Set)),n({appId:String(N)})}function C(N){A(k=>{const z=new Set(k);return z.has(N)?z.delete(N):z.add(N),z})}async function T(N,k){await zne(N,k),l(z=>z.map(V=>V.id===N?{...V,status_label:k}:V))}const R=Ine(o);return v.jsxs("div",{className:"flex h-full gap-0",children:[v.jsx(Une,{apps:r,selectedAppId:S,onSelect:j,onAdd:O}),v.jsxs("main",{className:"flex-1 flex flex-col gap-4 p-4 overflow-y-auto min-w-0",children:[v.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-2",children:[v.jsx("h1",{className:"text-xl font-semibold tracking-display-sm",children:w?w.name:"App Center"}),v.jsx(Pne,{onSuccess:()=>{O(),E()},appId:S})]}),S?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex flex-wrap gap-2",children:[v.jsx(xI,{placeholder:"Search version…",value:c,onChange:f}),v.jsxs(Es,{value:d,onValueChange:m,children:[v.jsx(Co,{className:"h-8 w-36",children:v.jsx(Ts,{placeholder:"Status"})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"all",children:"All statuses"}),v.jsx(Dt,{value:"Backlog",children:"Backlog"}),v.jsx(Dt,{value:"In Progress",children:"In Progress"}),v.jsx(Dt,{value:"Done",children:"Done"}),v.jsx(Dt,{value:"Rejected",children:"Rejected"})]})]})]}),h?v.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading…"}):R.length===0?v.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center",children:[v.jsx(VF,{className:"w-8 h-8 text-muted-foreground/40"}),v.jsx("p",{className:"text-sm font-medium",children:"No builds yet"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"Upload the first build to get started."})]}):v.jsx("div",{className:"flex flex-col gap-2",children:R.map(({versionName:N,builds:k})=>v.jsx(Fne,{versionName:N,builds:k,isOpen:x.has(N),onToggle:()=>C(N),onNavigate:z=>e(`/app-center/build?id=${z}`),onStatusChange:T},N))})]}):v.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center",children:[v.jsx(BF,{className:"w-8 h-8 text-muted-foreground/40"}),v.jsx("p",{className:"text-sm font-medium",children:"No app selected"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"Choose an app from the sidebar to view its builds."})]})]})]})}const Gne=`ws://${location.host}`,Wne=2e3;function WA(e,t){const n=y.useRef(null),[r,a]=y.useState(!1),o=y.useRef(e);o.current=e;const l=y.useRef(t);return l.current=t,y.useEffect(()=>{let f=!1;const d=()=>{if(f)return;const m=new WebSocket(Gne);m.binaryType="arraybuffer",n.current=m,m.onopen=()=>a(!0),m.onclose=()=>{a(!1),f||setTimeout(d,Wne)},m.onmessage=h=>{var g;if(h.data instanceof ArrayBuffer){(g=l.current)==null||g.call(l,h.data);return}try{o.current(JSON.parse(h.data))}catch{}}};return d(),()=>{var m;f=!0,(m=n.current)==null||m.close()}},[]),{send:y.useCallback(f=>{var d;((d=n.current)==null?void 0:d.readyState)===WebSocket.OPEN&&n.current.send(JSON.stringify(f))},[]),connected:r}}function s4(){const e=y.useRef(0),[t,n]=y.useState(0);return y.useEffect(()=>{const r=setInterval(()=>{n(e.current),e.current=0},1e3);return()=>clearInterval(r)},[]),{fps:t,frameCount:e}}function l4({joined:e,onScreenshot:t,onRecordToggle:n,recordState:r,onRotate:a,platformSlot:o,launchSlot:l}){return e?v.jsx(gA,{delayDuration:400,children:v.jsxs("div",{className:"flex flex-col items-center gap-0.5 rounded-2xl border bg-background/90 backdrop-blur-sm px-1.5 py-2.5 shrink-0 mt-3",children:[l,o,v.jsx("div",{className:"w-4 h-px bg-border my-1"}),v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:t,children:v.jsx(NF,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:"Screenshot"})]}),v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:xe("h-8 w-8",r==="recording"&&"text-red-500 hover:text-red-500"),disabled:r==="uploading"||r==="done",onClick:n,children:r==="uploading"?v.jsx(_p,{className:"h-4 w-4 animate-spin"}):r==="recording"?v.jsx(XF,{className:"h-4 w-4 fill-current"}):v.jsx(rV,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:r==="idle"?"Start recording":r==="recording"?"Stop recording":"Processing…"})]}),v.jsx("div",{className:"w-4 h-px bg-border my-1"}),v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:a,children:v.jsx(YF,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:"Rotate"})]})]})}):null}function Yne(e){const{connected:t,joined:n,bootError:r,deviceReady:a,installing:o,installError:l}=e;return t?n?r?`Boot failed: ${r.length>40?r.slice(0,40)+"…":r}`:a?o?"Installing app…":l?`Install failed: ${l}`:null:"Starting device…":"Joining session…":"Connecting…"}function YA(e){const{joined:t,fps:n,keyboardActive:r}=e,a=Yne(e),o=n>15,l=n>0&&n<=15,c=o?"#10b981":l?"#94a3b8":"transparent",f=o?"Active":l?"Idle":null;return v.jsxs("div",{className:"w-[300px] shrink-0 mt-3 rounded-xl border bg-background px-4 py-4 flex flex-col gap-3",children:[v.jsxs("div",{className:xe("flex items-center",r?"text-emerald-500":"text-muted-foreground"),style:{gap:6},children:[v.jsx(ZF,{className:"h-3.5 w-3.5 shrink-0"}),v.jsx("span",{className:"text-[12px] font-medium",children:"Focus"})]}),t&&n>0&&v.jsxs("div",{className:"flex items-center",style:{gap:6},children:[v.jsx("span",{className:"h-2 w-2 rounded-full shrink-0",style:{background:c}}),v.jsx("span",{className:"text-[12px] font-mono text-foreground/75",children:n}),v.jsx("span",{className:"text-[12px] text-muted-foreground",children:"fps"}),f&&v.jsxs("span",{className:xe("text-[11px]",o?"text-emerald-500":"text-muted-foreground/60"),children:["· ",f]})]}),a&&v.jsx("p",{className:"text-[12px] text-muted-foreground leading-relaxed break-all",children:a})]})}function Zne(e,t,n,r,a,o){const{x:l,y:c,width:f,height:d}=a;let m,h;if(o){const g=(e.x-t.left)/t.width;m=(1-(e.y-t.top)/t.height)*n,h=g*r}else m=(e.x-t.left)*(n/t.width),h=(e.y-t.top)*(r/t.height);return m<l||m>l+f||h<c||h>c+d?null:{x:(m-l)/f,y:(h-c)/d}}function Kne(e,t,n){const r=(e.x-t.left)/t.width,a=(e.y-t.top)/t.height;return r<0||r>1||a<0||a>1?null:n?{x:a,y:1-r}:{x:r,y:a}}function c4(e){return{f0:{x:1-e.x,y:1-e.y},f1:e}}function Xne(e,t){return e>0?Math.min(1,t/e):1}const za=13,os=8,NR=16,Qne=.02,Jne=100;function ere({sessionId:e,buildId:t,send:n,connected:r,joined:a,deviceReady:o,installing:l,installed:c,installError:f,bootError:d,launching:m,setLaunching:h,chrome:g,binaryFrameHandlerRef:x,onRecordingUploaded:A,swKeyboardVisible:S,swKeyboardPending:w,onKbdToggle:O}){const E=y.useRef(null),j=y.useRef(null),C=y.useRef(null),T=y.useRef(null),{fps:R,frameCount:N}=s4(),k=y.useRef(0),[z,V]=y.useState(!1),[B,I]=y.useState(!1),[F,G]=y.useState(!1),[Y,$]=y.useState(null),[q,K]=y.useState(null),[X,Z]=y.useState(!1),[P,H]=y.useState(null),J=y.useRef(P);y.useEffect(()=>{J.current=P},[P]);const fe=y.useRef(null),ye=y.useRef(null),ce=y.useRef(!1),he=y.useRef(!1),we=y.useRef(0),se=y.useRef(null),Oe=y.useRef(null),_e=y.useRef("idle"),ie=y.useRef(null),Ge=y.useRef(null),ze=y.useRef(null);y.useEffect(()=>{ze.current=g},[g]),y.useEffect(()=>{const ne=new Image;ne.onload=()=>{Ge.current=ne},ne.src=`data:image/png;base64,${g.framePng}`},[g.framePng]),y.useEffect(()=>(x.current=ne=>{const ve=k.current;createImageBitmap(new Blob([ne],{type:"image/jpeg"})).then(ue=>{if(k.current!==ve){ue.close();return}const Be=E.current,Pe=Be==null?void 0:Be.getContext("2d");if(!Be||!Pe){ue.close();return}if((Be.width!==ue.width||Be.height!==ue.height)&&(Be.width=ue.width,Be.height=ue.height,!ze.current)){const Me=T.current;Me&&(Me.width=ue.width,Me.height=ue.height)}Pe.drawImage(ue,0,0),ue.close(),V(!0),N.current+=1}).catch(()=>{})},()=>{x.current=void 0}),[x,N]),y.useEffect(()=>{const ne=T.current,ve=j.current;ne&&ve&&(ne.width=ve.clientWidth,ne.height=ve.clientHeight)},[g]);const[Je,Ke]=y.useState("idle"),st=y.useRef(!1),Tt=y.useRef(null),pt=y.useRef([]),mn=y.useRef(""),on=y.useRef(0),At=y.useRef(()=>{}),en=y.useCallback(()=>{if(!st.current)return;const ne=T.current,ve=E.current;if(!ne||!ve)return;const ue=ne.getContext("2d");if(!ue)return;const Be=ze.current;if(ue.clearRect(0,0,ne.width,ne.height),Be){Ge.current&&ue.drawImage(Ge.current,0,0,ne.width,ne.height);const qe=Math.round(Be.screenCornerRadius/2*(ne.height/(Be.compositeHeight/2)));ue.save(),ue.beginPath(),qe>0?ue.roundRect(ve.offsetLeft,ve.offsetTop,ve.clientWidth,ve.clientHeight,qe):ue.rect(ve.offsetLeft,ve.offsetTop,ve.clientWidth,ve.clientHeight),ue.clip(),ue.drawImage(ve,ve.offsetLeft,ve.offsetTop,ve.clientWidth,ve.clientHeight),ue.restore()}else ue.drawImage(ve,0,0,ne.width,ne.height);const Pe=J.current;if(Pe)for(const qe of[Pe.f0,Pe.f1]){const lt=Be?ve.offsetLeft+qe.x*ve.clientWidth:qe.x*ne.width,nn=Be?ve.offsetTop+qe.y*ve.clientHeight:qe.y*ne.height;ce.current?(ue.beginPath(),ue.arc(lt,nn,os,0,Math.PI*2),ue.fillStyle="rgba(255,255,255,0.92)",ue.fill(),ue.strokeStyle="rgba(0,0,0,0.2)",ue.lineWidth=1,ue.stroke()):(ue.beginPath(),ue.arc(lt,nn,za,0,Math.PI*2),ue.strokeStyle="rgba(0,0,0,0.3)",ue.lineWidth=3,ue.stroke(),ue.beginPath(),ue.arc(lt,nn,za,0,Math.PI*2),ue.strokeStyle="rgba(255,255,255,0.65)",ue.lineWidth=1.5,ue.stroke())}const Me=Oe.current;if(Me){const qe=_e.current,lt=ie.current;if(ue.save(),qe==="down")ue.beginPath(),ue.arc(Me.x,Me.y,os,0,Math.PI*2),ue.fillStyle="rgba(255,255,255,0.92)",ue.fill(),ue.strokeStyle="rgba(0,0,0,0.2)",ue.lineWidth=1,ue.stroke();else if(qe==="release"&<){const nn=Math.min((performance.now()-lt.startTime)/350,1);ue.beginPath(),ue.arc(Me.x,Me.y,os+26*nn,0,Math.PI*2),ue.strokeStyle=`rgba(255,255,255,${(1-nn)*.55})`,ue.lineWidth=1.5,ue.stroke(),nn>=1&&(_e.current="idle",ie.current=null)}else ue.beginPath(),ue.arc(Me.x,Me.y,za,0,Math.PI*2),ue.strokeStyle="rgba(0,0,0,0.3)",ue.lineWidth=3,ue.stroke(),ue.beginPath(),ue.arc(Me.x,Me.y,za,0,Math.PI*2),ue.strokeStyle="rgba(255,255,255,0.65)",ue.lineWidth=1.5,ue.stroke();ue.restore()}on.current=requestAnimationFrame(At.current)},[]);y.useLayoutEffect(()=>{At.current=en},[en]);const U=y.useCallback(()=>{const ne=T.current;if(!ne)return;const ve=j.current;if(ve&&ve.clientWidth>0)ne.width=ve.clientWidth,ne.height=ve.clientHeight;else{const qe=E.current;if(qe&&qe.width>0)ne.width=qe.width,ne.height=qe.height;else return}const ue=ne.getContext("2d");ue&&(ue.fillStyle="#000",ue.fillRect(0,0,ne.width,ne.height));const Pe=["video/mp4;codecs=avc1","video/webm;codecs=vp9","video/webm;codecs=vp8","video/webm"].find(qe=>MediaRecorder.isTypeSupported(qe))??"";if(!Pe)return;mn.current=Pe,pt.current=[];const Me=new MediaRecorder(ne.captureStream(30),{mimeType:Pe});Me.ondataavailable=qe=>{qe.data.size>0&&pt.current.push(qe.data)},Tt.current=Me,Me.start(1e3),st.current=!0,on.current=requestAnimationFrame(en),Ke("recording")},[en]),ee=y.useCallback(async()=>{Ke("uploading"),st.current=!1,cancelAnimationFrame(on.current);const ne=Tt.current;if(!ne){Ke("idle");return}await new Promise(Me=>{const qe=setTimeout(Me,5e3);ne.onstop=()=>{clearTimeout(qe),Me()};try{ne.stop()}catch{clearTimeout(qe),Me()}}),Tt.current=null;const ve=mn.current,ue=ve.includes("mp4")?".mp4":".webm",Be=new Blob(pt.current,{type:ve});pt.current=[];const Pe=new FormData;Pe.append("file",Be,`tapflow-${Date.now()}${ue}`);try{const Me=new URLSearchParams({sessionId:e});t&&Me.set("buildId",String(t));const qe=await fetch(`/api/v1/recordings/upload?${Me}`,{method:"POST",credentials:"include",body:Pe}),lt=await qe.json();if(qe.ok&<.url){const nn=document.createElement("a");nn.href=lt.url,nn.download="",nn.click(),A==null||A(),Ke("done"),setTimeout(()=>Ke("idle"),2e3)}else Ke("idle")}catch{Ke("idle")}},[e,t,A]);y.useEffect(()=>{if(Je!=="recording")return;const ne=()=>{document.visibilityState==="hidden"&&ee()};return document.addEventListener("visibilitychange",ne),()=>{var ve;document.removeEventListener("visibilitychange",ne),st.current&&(st.current=!1,cancelAnimationFrame(on.current),(ve=Tt.current)==null||ve.stop(),Tt.current=null)}},[Je,ee]),y.useEffect(()=>{const ne=new Set(["ShiftLeft","ShiftRight","ControlLeft","ControlRight","MetaLeft","MetaRight"]),ve=Me=>{if(Me.code==="AltLeft"||Me.code==="AltRight"){he.current=!0;return}if(!F||ne.has(Me.code))return;Me.preventDefault();const qe=(Me.shiftKey?2:0)|(Me.ctrlKey?1:0)|(Me.metaKey?8:0);n({type:"input:key",sessionId:e,payload:{code:Me.code,modifiers:qe}})},ue=()=>{ce.current&&(ce.current=!1,Z(!1),n({type:"input:pinch:end",sessionId:e})),he.current=!1,H(null)},Be=Me=>{(Me.code==="AltLeft"||Me.code==="AltRight")&&ue()},Pe=()=>{he.current&&ue()};return window.addEventListener("keydown",ve),window.addEventListener("keyup",Be),window.addEventListener("blur",Pe),()=>{window.removeEventListener("keydown",ve),window.removeEventListener("keyup",Be),window.removeEventListener("blur",Pe)}},[F,n,e]),y.useEffect(()=>{if(!F)return;const ne=ve=>{const ue=j.current??E.current;ue&&!ue.contains(ve.target)&&G(!1)};return document.addEventListener("pointerdown",ne),()=>document.removeEventListener("pointerdown",ne)},[F]);const re=y.useCallback(ne=>{const ve=(B?C.current:null)??j.current;if(!ve)return null;const ue=ve.getBoundingClientRect(),Be=g.compositeWidth/2,Pe=g.compositeHeight/2,Me=g.screenRect.x/2,qe=g.screenRect.y/2,lt=g.screenRect.width/2,nn=g.screenRect.height/2;return Zne({x:ne.clientX,y:ne.clientY},ue,Be,Pe,{x:Me,y:qe,width:lt,height:nn},B)},[g,B]),Re=y.useCallback(ne=>{const ve=re(ne);return ve?c4(ve):null},[re]),Ce=y.useCallback(ne=>{if(!j.current||B)return null;const ve=j.current.getBoundingClientRect(),ue=(ne.clientX-ve.left)*(g.compositeWidth/ve.width),Be=(ne.clientY-ve.top)*(g.compositeHeight/ve.height);for(const Pe of g.buttons){const Me=ue-Pe.normalOffset.x,qe=Be-Pe.normalOffset.y;if(Me*Me+qe*qe<Jne**2)return Pe.name}return null},[g,B]),Te=y.useCallback(ne=>{const ve=E.current,ue=T.current;return ve&&ve.clientWidth>0?{x:ve.offsetLeft+ne.x*ve.clientWidth,y:ve.offsetTop+ne.y*ve.clientHeight}:{x:ne.x*((ue==null?void 0:ue.width)??1),y:ne.y*((ue==null?void 0:ue.height)??1)}},[]),De=y.useCallback(ne=>{if(G(!0),he.current){const Me=Re(ne);if(!Me)return;ce.current=!0,Z(!0),ne.target.setPointerCapture(ne.pointerId),H(Me),n({type:"input:pinch:start",sessionId:e,payload:Me});return}const ve=Ce(ne);if(ve){fe.current=ve,$(ve);return}const ue=re(ne);if(!ue)return;ye.current=ue,ne.target.setPointerCapture(ne.pointerId),Oe.current=Te(ue),_e.current="down",ie.current=null;const Be=ne.currentTarget.getBoundingClientRect(),Pe=se.current;Pe&&(Pe.style.display="block",Pe.style.left=`${ne.clientX-Be.left}px`,Pe.style.top=`${ne.clientY-Be.top}px`,Pe.style.width=`${os*2}px`,Pe.style.height=`${os*2}px`,Pe.style.background="rgba(255,255,255,0.92)",Pe.style.border="1.5px solid rgba(0,0,0,0.2)",Pe.style.boxShadow="0 0 0 1px rgba(0,0,0,0.15), 0 0 8px rgba(255,255,255,0.25)"),n({type:"input:touch:start",sessionId:e,payload:ue})},[Ce,re,Re,Te,n,e]),He=y.useCallback(ne=>{if(ne.buttons===0){if(K(Ce(ne)),he.current){H(Re(ne)),Oe.current=null;const qe=se.current;qe&&(qe.style.display="none")}else{H(null);const qe=re(ne);Oe.current=qe?Te(qe):null,_e.current!=="down"&&(_e.current="idle");const lt=se.current;if(lt)if(qe){const nn=ne.currentTarget.getBoundingClientRect();lt.style.display="block",lt.style.left=`${ne.clientX-nn.left}px`,lt.style.top=`${ne.clientY-nn.top}px`,lt.style.width=`${za*2}px`,lt.style.height=`${za*2}px`,lt.style.background="transparent",lt.style.border="1.5px solid rgba(255,255,255,0.6)",lt.style.boxShadow="0 0 0 1px rgba(0,0,0,0.3)"}else lt.style.display="none"}return}if(ce.current){const qe=Re(ne);if(!qe)return;const lt=performance.now();if(lt-we.current<NR)return;we.current=lt,H(qe),n({type:"input:pinch:move",sessionId:e,payload:qe});return}if(fe.current||!ye.current)return;const ve=re(ne);if(!ve)return;const ue=ve.x-ye.current.x,Be=ve.y-ye.current.y;if(Math.sqrt(ue*ue+Be*Be)<Qne)return;const Pe=performance.now();if(Pe-we.current<NR)return;we.current=Pe,Oe.current=Te(ve);const Me=se.current;if(Me&&Me.style.display!=="none"){const qe=ne.currentTarget.getBoundingClientRect();Me.style.left=`${ne.clientX-qe.left}px`,Me.style.top=`${ne.clientY-qe.top}px`}n({type:"input:touch:move",sessionId:e,payload:ve})},[Ce,re,Re,Te,n,e]),Ze=y.useCallback(()=>{if(ce.current){ce.current=!1,Z(!1),H(null),n({type:"input:pinch:end",sessionId:e});return}if(ye.current=null,fe.current){n({type:"input:button",sessionId:e,payload:{name:fe.current}}),fe.current=null,setTimeout(()=>$(null),100);return}_e.current="release",ie.current={startTime:performance.now()};const ne=se.current;ne&&(ne.style.width=`${za*2}px`,ne.style.height=`${za*2}px`,ne.style.background="transparent",ne.style.border="1.5px solid rgba(255,255,255,0.6)",ne.style.boxShadow="0 0 0 1px rgba(0,0,0,0.3)"),n({type:"input:touch:end",sessionId:e})},[n,e]),Ot=y.useCallback(()=>{if(ce.current){ce.current=!1,Z(!1),H(null),n({type:"input:pinch:end",sessionId:e});return}if(ye.current=null,fe.current){fe.current=null,$(null);return}_e.current="release",ie.current={startTime:performance.now()},n({type:"input:touch:end",sessionId:e})},[n,e]),xt=y.useCallback(()=>{K(null),H(null),Oe.current=null;const ne=se.current;ne&&(ne.style.display="none")},[]),jt=g.compositeWidth/2,tn=g.compositeHeight/2,rr=Xne(tn,750),vn=Math.round(jt*rr),$n=Math.round(tn*rr),ar=g.screenRect.x/g.compositeWidth*100,zn=g.screenRect.y/g.compositeHeight*100,Ae=g.screenRect.width/g.compositeWidth*100,je=g.screenRect.height/g.compositeHeight*100,Ee=Math.round(g.screenCornerRadius/2*rr),Fe=v.jsxs(v.Fragment,{children:[v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>n({type:"input:button",sessionId:e,payload:{name:"home"}}),children:v.jsx(Wz,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:"Home"})]}),v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",disabled:w,onClick:O,"data-active":S,children:w?v.jsx(_p,{className:"h-4 w-4 animate-spin"}):v.jsx(IF,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:"Software keyboard"})]})]}),rt=c&&t?v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",disabled:m,onClick:()=>{h(!0),n({type:"app:launch",sessionId:e,buildId:t})},children:m?v.jsx(_p,{className:"h-4 w-4 animate-spin"}):v.jsx(Y_,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:m?"Launching…":"Launch app"})]}):null;return v.jsxs("div",{className:"flex items-start justify-center gap-16",children:[v.jsx("canvas",{ref:T,style:{display:"none"}}),v.jsx(l4,{joined:a,onScreenshot:()=>{const ne=E.current;if(!ne)return;const ve=document.createElement("canvas"),ue=ve.getContext("2d");ue&&(ve.width=ne.width,ve.height=ne.height,ue.drawImage(ne,0,0),ve.toBlob(Be=>{if(!Be)return;const Pe=URL.createObjectURL(Be),Me=document.createElement("a");Me.href=Pe,Me.download=`tapflow-${Date.now()}.png`,Me.click(),URL.revokeObjectURL(Pe)},"image/png"))},onRecordToggle:()=>{Je==="idle"?U():Je==="recording"&&ee()},recordState:Je,onRotate:()=>{n({type:"input:rotate",sessionId:e}),I(ne=>!ne)},platformSlot:Fe,launchSlot:rt}),v.jsxs("div",{className:"flex items-start gap-8",children:[v.jsxs("div",{ref:C,style:{width:B?$n:vn,height:B?vn:$n,position:"relative",flexShrink:0},children:[v.jsxs("div",{ref:j,className:`relative ${q?"cursor-pointer":"cursor-default"}`,style:{width:vn,height:$n,...B?{position:"absolute",top:(vn-$n)/2,left:($n-vn)/2,transform:"rotate(-90deg)",transformOrigin:"center center"}:{}},onPointerDown:De,onPointerMove:He,onPointerUp:Ze,onPointerCancel:Ot,onPointerLeave:xt,children:[v.jsx("img",{src:`data:image/png;base64,${g.framePng}`,style:{position:"absolute",top:0,left:0,zIndex:2,width:"100%",height:"100%",display:"block",pointerEvents:"none",userSelect:"none"},draggable:!1,alt:""}),v.jsx("canvas",{ref:E,style:{position:"absolute",zIndex:3,left:`${ar}%`,top:`${zn}%`,width:`${Ae}%`,height:`${je}%`,borderRadius:Ee>0?`${Ee}px`:void 0,backgroundColor:"#010101",cursor:"none",visibility:z?"visible":"hidden"}}),!z&&v.jsx("div",{className:"absolute animate-pulse bg-zinc-800",style:{zIndex:3,left:`${ar}%`,top:`${zn}%`,width:`${Ae}%`,height:`${je}%`,borderRadius:Ee>0?`${Ee}px`:void 0}}),P&&(()=>{const ne=ar/100,ve=zn/100,ue=Ae/100,Be=je/100,Pe=(Me,qe)=>({left:`${(ne+Me*ue)*100}%`,top:`${(ve+qe*Be)*100}%`});return v.jsx(v.Fragment,{children:[P.f0,P.f1].map((Me,qe)=>v.jsx("div",{style:{position:"absolute",zIndex:10,borderRadius:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",transition:"width 0.1s ease, height 0.1s ease, background 0.1s ease",...X?{width:os*2,height:os*2,background:"rgba(255,255,255,0.92)",border:"1.5px solid rgba(0,0,0,0.2)",boxShadow:"0 0 0 1px rgba(0,0,0,0.15), 0 0 8px rgba(255,255,255,0.25)"}:{width:za*2,height:za*2,background:"transparent",border:"1.5px solid rgba(255,255,255,0.6)",boxShadow:"0 0 0 1px rgba(0,0,0,0.3)"},...Pe(Me.x,Me.y)}},qe))})})(),a&&R===0&&v.jsx("div",{style:{position:"absolute",zIndex:8,left:`${ar}%`,top:`${zn}%`,width:`${Ae}%`,height:`${je}%`,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:v.jsx("span",{style:{color:"white",fontSize:"0.875rem"},children:"Waiting for first frame..."})}),g.buttons.map(ne=>{const ve=Y===ne.name,ue=q===ne.name,Be=ne.anchor==="bottom",Pe=ne.anchor==="top",Me=Be?(ne.normalOffset.y-ne.buttonH/2)/g.compositeHeight*100:Pe?ne.rolloverOffset.y/g.compositeHeight*100:ne.normalOffset.y/g.compositeHeight*100,qe=ne.buttonH/g.compositeHeight*100,lt=ne.buttonW/g.compositeWidth*100,nn=ne.buttonW/2,Uo=(ne.rolloverOffset.x-nn)/g.compositeWidth*100,fa=(2*ne.rolloverOffset.x-ne.normalOffset.x-nn)/g.compositeWidth*100,En=ne.rolloverOffset.x/g.compositeWidth*100,Yn=Be?(ne.normalOffset.y-ne.buttonH/2)/g.compositeHeight*100:Pe?ne.rolloverOffset.y/g.compositeHeight*100:ne.normalOffset.y/g.compositeHeight*100,ni=Pe?(2*ne.rolloverOffset.y-ne.normalOffset.y)/g.compositeHeight*100:0,zc=ne.onTop?4:1;return v.jsxs(y.Fragment,{children:[ne.buttonPng&&v.jsx("img",{src:`data:image/png;base64,${ne.buttonPng}`,style:{position:"absolute",zIndex:zc,top:`${Pe&&ue?ni:Me}%`,left:`${Pe?Uo:ue?fa:Uo}%`,width:`${lt}%`,height:`${qe}%`,transition:Pe?"top 0.15s ease":"left 0.15s ease",pointerEvents:"none",userSelect:"none"},draggable:!1,alt:""}),ve&&ne.pressedPng&&ne.pressedRect&&v.jsx("img",{src:`data:image/png;base64,${ne.pressedPng}`,style:{position:"absolute",zIndex:ne.onTop?3:1,left:`${Pe?Uo:ue?fa:Uo}%`,top:`${Pe?ue?ni:Me:ne.pressedRect.y/g.compositeHeight*100}%`,width:`${ne.pressedRect.width/g.compositeWidth*100}%`,height:`${ne.pressedRect.height/g.compositeHeight*100}%`,pointerEvents:"none",userSelect:"none"},draggable:!1,alt:""}),ue&&v.jsx("div",{style:{position:"absolute",zIndex:5,left:`${En}%`,top:`${Yn}%`,transform:"translate(-50%, calc(-100% - 8px))",background:"rgba(0,0,0,0.72)",color:"#fff",fontSize:11,padding:"2px 7px",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none"},children:ne.accessibilityTitle})]},ne.name)})]}),v.jsx("div",{ref:se,style:{display:"none",position:"absolute",zIndex:20,borderRadius:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",transition:"width 0.1s ease, height 0.1s ease, background 0.1s ease, box-shadow 0.1s ease"}})]}),v.jsx(YA,{joined:a,fps:R,connected:r,deviceReady:o,bootError:d,installing:l,installError:f,keyboardActive:F})]})]})}class tre{constructor(t){this.onFrame=t,this.decoder=null,this.sps=null,this.pps=null,this.frameCount=0}decode(t){const n=new Uint8Array(t),a=n[0]===0&&n[1]===0&&n[2]===0&&n[3]===1?n.subarray(4):n,o=a[0]&31;if(o===7){const c=!this.sps||n.length!==this.sps.length||n.some((f,d)=>f!==this.sps[d]);this.sps=n,c&&this.decoder&&(this.decoder.close(),this.decoder=null);return}if(o===8){this.pps=n;return}if(o===5&&this.sps&&this.pps&&!this.decoder&&this.initDecoder(this.sps,this.pps),!this.decoder)return;const l=new Uint8Array(4+a.length);new DataView(l.buffer).setUint32(0,a.length,!1),l.set(a,4);try{this.decoder.decode(new EncodedVideoChunk({type:o===5?"key":"delta",timestamp:this.frameCount++*(1e6/30),data:l}))}catch{}}close(){var t;(t=this.decoder)==null||t.close(),this.decoder=null}initDecoder(t,n){const r=t[0]===0?t.subarray(4):t,a=`avc1.${r[1].toString(16).padStart(2,"0")}${r[2].toString(16).padStart(2,"0")}${r[3].toString(16).padStart(2,"0")}`,o=this.buildAVCC(t,n);this.decoder=new VideoDecoder({output:l=>this.onFrame(l),error:l=>console.error("[H264Decoder]",l)}),this.decoder.configure({codec:a,description:o,optimizeForLatency:!0})}buildAVCC(t,n){const r=t[0]===0?t.subarray(4):t,a=n[0]===0?n.subarray(4):n,o=new Uint8Array(8+r.length+1+2+a.length);let l=0;return o[l++]=1,o[l++]=r[1],o[l++]=r[2],o[l++]=r[3],o[l++]=255,o[l++]=225,o[l++]=r.length>>8&255,o[l++]=r.length&255,o.set(r,l),l+=r.length,o[l++]=1,o[l++]=a.length>>8&255,o[l++]=a.length&255,o.set(a,l),o}}const nre=`#version 300 es
|
|
408
|
-
in vec2 a_pos;
|
|
409
|
-
out vec2 v_uv;
|
|
410
|
-
void main() {
|
|
411
|
-
v_uv = vec2(a_pos.x * 0.5 + 0.5, 0.5 - a_pos.y * 0.5);
|
|
412
|
-
gl_Position = vec4(a_pos, 0.0, 1.0);
|
|
413
|
-
}`,rre=`#version 300 es
|
|
414
|
-
precision mediump float;
|
|
415
|
-
in vec2 v_uv;
|
|
416
|
-
uniform sampler2D u_tex;
|
|
417
|
-
out vec4 out_color;
|
|
418
|
-
void main() {
|
|
419
|
-
out_color = texture(u_tex, v_uv);
|
|
420
|
-
}`;function are(e){const t=e.getContext("webgl2",{alpha:!1,antialias:!1,powerPreference:"high-performance",preserveDrawingBuffer:!0});if(!t)return null;const n=(m,h)=>{const g=t.createShader(m);return t.shaderSource(g,h),t.compileShader(g),g},r=t.createProgram(),a=n(t.VERTEX_SHADER,nre),o=n(t.FRAGMENT_SHADER,rre);t.attachShader(r,a),t.attachShader(r,o),t.linkProgram(r),t.deleteShader(a),t.deleteShader(o),t.useProgram(r);const l=t.createVertexArray();t.bindVertexArray(l);const c=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,c),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);const f=t.getAttribLocation(r,"a_pos");t.enableVertexAttribArray(f),t.vertexAttribPointer(f,2,t.FLOAT,!1,0,0),t.bindVertexArray(null);const d=t.createTexture();return t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,d),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.uniform1i(t.getUniformLocation(r,"u_tex"),0),{gl:t,program:r,tex:d,vao:l}}function ire(e){const t=y.useRef(null),n=y.useCallback(()=>{const o=e.current;if(!o)return!1;const l=are(o);return t.current=l,l!==null},[e]),r=y.useCallback(()=>{const o=t.current;o&&(o.gl.deleteTexture(o.tex),o.gl.deleteVertexArray(o.vao),o.gl.deleteProgram(o.program),t.current=null)},[]),a=y.useCallback(o=>{const l=e.current,c=t.current;if(!l||!c)return o.close(),null;const f=o.displayWidth,d=o.displayHeight;return(l.width!==f||l.height!==d)&&(l.width=f,l.height=d,c.gl.viewport(0,0,f,d)),c.gl.activeTexture(c.gl.TEXTURE0),c.gl.bindTexture(c.gl.TEXTURE_2D,c.tex),c.gl.texImage2D(c.gl.TEXTURE_2D,0,c.gl.RGBA,c.gl.RGBA,c.gl.UNSIGNED_BYTE,o),o.close(),c.gl.bindVertexArray(c.vao),c.gl.drawArrays(c.gl.TRIANGLES,0,6),c.gl.bindVertexArray(null),c.gl.bindTexture(c.gl.TEXTURE_2D,null),{width:f,height:d}},[e]);return{init:n,dispose:r,drawFrame:a}}const La=13,ss=8,MR=16,ore=.02,sre=720;function lre({sessionId:e,buildId:t,send:n,connected:r,joined:a,deviceReady:o,installing:l,installed:c,installError:f,bootError:d,launching:m,setLaunching:h,androidButtons:g,binaryFrameHandlerRef:x,onRecordingUploaded:A,screenWidth:S,screenHeight:w,deviceRotation:O=0}){const E=y.useRef(null),j=y.useRef(null),{init:C,dispose:T,drawFrame:R}=ire(E),{fps:N,frameCount:k}=s4(),[z,V]=y.useState(!1),[B,I]=y.useState(!1),F=y.useRef(null),[G,Y]=y.useState(null),[$,q]=y.useState(!1),[K,X]=y.useState(!1),[Z,P]=y.useState(null),H=y.useRef(Z);y.useEffect(()=>{H.current=Z},[Z]);const J=y.useRef(!1),fe=y.useRef(!1),ye=y.useRef(null),ce=y.useRef(0),he=y.useRef(null),we=y.useRef(null),se=y.useRef("idle"),Oe=y.useRef(null);y.useEffect(()=>{if(!C()){I(!0);return}const je=new tre(Ee=>{const Fe=R(Ee);if(!Fe)return;k.current+=1,V(!0);const rt=F.current;(!rt||rt.width!==Fe.width||rt.height!==Fe.height)&&(F.current=Fe,Y(Fe))});return x.current=Ee=>je.decode(Ee),()=>{x.current=void 0,je.close(),T()}},[C,T,R,k,x]);const[_e,ie]=y.useState("idle"),Ge=y.useRef(null),ze=y.useRef(!1),Je=y.useRef(null),Ke=y.useRef([]),st=y.useRef(""),Tt=y.useRef(0),pt=y.useRef(()=>{}),mn=y.useCallback(()=>{if(!ze.current)return;const Ae=Ge.current,je=E.current;if(!Ae||!je)return;const Ee=Ae.getContext("2d");if(!Ee)return;Ee.drawImage(je,0,0,Ae.width,Ae.height);const Fe=window.devicePixelRatio||1,rt=Ae.width/Fe,ne=Ae.height/Fe;Ee.save(),Ee.scale(Fe,Fe);const ve=H.current;if(ve)for(const Be of[ve.f0,ve.f1]){const Pe=Be.x*rt,Me=Be.y*ne;J.current?(Ee.beginPath(),Ee.arc(Pe,Me,ss,0,Math.PI*2),Ee.fillStyle="rgba(255,255,255,0.92)",Ee.fill(),Ee.strokeStyle="rgba(0,0,0,0.2)",Ee.lineWidth=1,Ee.stroke()):(Ee.beginPath(),Ee.arc(Pe,Me,La,0,Math.PI*2),Ee.strokeStyle="rgba(0,0,0,0.3)",Ee.lineWidth=3,Ee.stroke(),Ee.beginPath(),Ee.arc(Pe,Me,La,0,Math.PI*2),Ee.strokeStyle="rgba(255,255,255,0.65)",Ee.lineWidth=1.5,Ee.stroke())}const ue=we.current;if(ue){const Be=se.current,Pe=Oe.current;if(Be==="down")Ee.beginPath(),Ee.arc(ue.x,ue.y,ss,0,Math.PI*2),Ee.fillStyle="rgba(255,255,255,0.92)",Ee.fill(),Ee.strokeStyle="rgba(0,0,0,0.2)",Ee.lineWidth=1,Ee.stroke();else if(Be==="release"&&Pe){const Me=Math.min((performance.now()-Pe.startTime)/350,1);Ee.beginPath(),Ee.arc(ue.x,ue.y,ss+26*Me,0,Math.PI*2),Ee.strokeStyle=`rgba(255,255,255,${(1-Me)*.55})`,Ee.lineWidth=1.5,Ee.stroke(),Me>=1&&(se.current="idle",Oe.current=null)}else Ee.beginPath(),Ee.arc(ue.x,ue.y,La,0,Math.PI*2),Ee.strokeStyle="rgba(0,0,0,0.3)",Ee.lineWidth=3,Ee.stroke(),Ee.beginPath(),Ee.arc(ue.x,ue.y,La,0,Math.PI*2),Ee.strokeStyle="rgba(255,255,255,0.65)",Ee.lineWidth=1.5,Ee.stroke()}Ee.restore(),Tt.current=requestAnimationFrame(pt.current)},[]);y.useLayoutEffect(()=>{pt.current=mn},[mn]);const on=y.useCallback(()=>{const Ae=Ge.current;if(!Ae)return;const je=j.current,Ee=window.devicePixelRatio||1;if(je&&je.clientWidth>0)Ae.width=je.clientWidth*Ee,Ae.height=je.clientHeight*Ee;else{const ue=E.current;if(ue&&ue.width>0)Ae.width=ue.width,Ae.height=ue.height;else return}const Fe=Ae.getContext("2d");Fe&&(Fe.fillStyle="#000",Fe.fillRect(0,0,Ae.width,Ae.height));const ne=["video/mp4;codecs=avc1","video/webm;codecs=vp9","video/webm;codecs=vp8","video/webm"].find(ue=>MediaRecorder.isTypeSupported(ue))??"";if(!ne){console.error("[record] no supported codec");return}st.current=ne,Ke.current=[];const ve=new MediaRecorder(Ae.captureStream(30),{mimeType:ne});ve.ondataavailable=ue=>{ue.data.size>0&&Ke.current.push(ue.data)},Je.current=ve,ve.start(1e3),ze.current=!0,Tt.current=requestAnimationFrame(mn),ie("recording")},[mn]),At=y.useCallback(async()=>{ie("uploading"),ze.current=!1,cancelAnimationFrame(Tt.current);const Ae=Je.current;if(!Ae){ie("idle");return}await new Promise(ne=>{const ve=setTimeout(ne,5e3);Ae.onstop=()=>{clearTimeout(ve),ne()};try{Ae.stop()}catch{clearTimeout(ve),ne()}}),Je.current=null;const je=st.current,Ee=je.includes("mp4")?".mp4":".webm",Fe=new Blob(Ke.current,{type:je});Ke.current=[];const rt=new FormData;rt.append("file",Fe,`tapflow-${Date.now()}${Ee}`);try{const ne=new URLSearchParams({sessionId:e});t&&ne.set("buildId",String(t));const ve=await fetch(`/api/v1/recordings/upload?${ne}`,{method:"POST",credentials:"include",body:rt}),ue=await ve.json();if(ve.ok&&ue.url){const Be=document.createElement("a");Be.href=ue.url,Be.download="",Be.click(),A==null||A(),ie("done"),setTimeout(()=>ie("idle"),2e3)}else ie("idle")}catch{ie("idle")}},[e,t,A]);y.useEffect(()=>{if(_e!=="recording")return;const Ae=()=>{document.visibilityState==="hidden"&&At()};return document.addEventListener("visibilitychange",Ae),()=>{var je;document.removeEventListener("visibilitychange",Ae),ze.current&&(ze.current=!1,cancelAnimationFrame(Tt.current),(je=Je.current)==null||je.stop(),Je.current=null)}},[_e,At]),y.useEffect(()=>{const Ae=new Set(["ShiftLeft","ShiftRight","ControlLeft","ControlRight","MetaLeft","MetaRight"]),je=ne=>{if(ne.code==="AltLeft"||ne.code==="AltRight"){fe.current=!0;return}if(!$||Ae.has(ne.code))return;ne.preventDefault();const ve=(ne.shiftKey?2:0)|(ne.ctrlKey?1:0)|(ne.metaKey?8:0);n({type:"input:key",sessionId:e,payload:{code:ne.code,modifiers:ve}})},Ee=()=>{J.current&&(J.current=!1,X(!1),n({type:"input:pinch:end",sessionId:e})),fe.current=!1,P(null)},Fe=ne=>{(ne.code==="AltLeft"||ne.code==="AltRight")&&Ee()},rt=()=>{fe.current&&Ee()};return window.addEventListener("keydown",je),window.addEventListener("keyup",Fe),window.addEventListener("blur",rt),()=>{window.removeEventListener("keydown",je),window.removeEventListener("keyup",Fe),window.removeEventListener("blur",rt)}},[$,n,e]),y.useEffect(()=>{if(!$)return;const Ae=je=>{const Ee=j.current??E.current;Ee&&!Ee.contains(je.target)&&q(!1)};return document.addEventListener("pointerdown",Ae),()=>document.removeEventListener("pointerdown",Ae)},[$]);const en=y.useRef(!1),U=y.useCallback(Ae=>{const je=E.current;if(!je)return null;const Ee=je.getBoundingClientRect();return Kne({x:Ae.clientX,y:Ae.clientY},Ee,en.current)},[]),ee=y.useCallback(Ae=>{const je=U(Ae);return je?c4(je):null},[U]),re=y.useCallback(Ae=>{if(fe.current){const rt=ee(Ae);if(!rt)return;J.current=!0,X(!0),Ae.target.setPointerCapture(Ae.pointerId),P(rt),n({type:"input:pinch:start",sessionId:e,payload:rt});return}const je=U(Ae);if(!je)return;q(!0),ye.current=je,Ae.target.setPointerCapture(Ae.pointerId);const Ee=Ae.currentTarget.getBoundingClientRect();we.current={x:Ae.clientX-Ee.left,y:Ae.clientY-Ee.top},se.current="down",Oe.current=null;const Fe=he.current;Fe&&(Fe.style.display="block",Fe.style.left=`${Ae.clientX-Ee.left}px`,Fe.style.top=`${Ae.clientY-Ee.top}px`,Fe.style.width=`${ss*2}px`,Fe.style.height=`${ss*2}px`,Fe.style.background="rgba(255,255,255,0.92)",Fe.style.border="1.5px solid rgba(0,0,0,0.2)",Fe.style.boxShadow="0 0 0 1px rgba(0,0,0,0.15), 0 0 8px rgba(255,255,255,0.25)"),n({type:"input:touch:start",sessionId:e,payload:je})},[U,ee,n,e]),Re=y.useCallback(Ae=>{if(Ae.buttons===0){if(fe.current){P(ee(Ae)),we.current=null;return}const ue=U(Ae),Be=Ae.currentTarget.getBoundingClientRect(),Pe=he.current;ue?(we.current={x:Ae.clientX-Be.left,y:Ae.clientY-Be.top},se.current!=="down"&&(se.current="idle"),Pe&&(Pe.style.display="block",Pe.style.left=`${Ae.clientX-Be.left}px`,Pe.style.top=`${Ae.clientY-Be.top}px`,Pe.style.width=`${La*2}px`,Pe.style.height=`${La*2}px`,Pe.style.background="transparent",Pe.style.border="1.5px solid rgba(255,255,255,0.6)",Pe.style.boxShadow="0 0 0 1px rgba(0,0,0,0.3)")):(we.current=null,Pe&&(Pe.style.display="none"));return}if(J.current){const ue=ee(Ae);if(!ue)return;const Be=performance.now();if(Be-ce.current<MR)return;ce.current=Be,P(ue),n({type:"input:pinch:move",sessionId:e,payload:ue});return}if(!ye.current)return;const je=U(Ae);if(!je)return;const Ee=je.x-ye.current.x,Fe=je.y-ye.current.y;if(Math.sqrt(Ee*Ee+Fe*Fe)<ore)return;const rt=performance.now();if(rt-ce.current<MR)return;ce.current=rt;const ne=Ae.currentTarget.getBoundingClientRect();we.current={x:Ae.clientX-ne.left,y:Ae.clientY-ne.top};const ve=he.current;ve&&ve.style.display!=="none"&&(ve.style.left=`${Ae.clientX-ne.left}px`,ve.style.top=`${Ae.clientY-ne.top}px`),n({type:"input:touch:move",sessionId:e,payload:je})},[U,ee,n,e]),Ce=y.useCallback(()=>{if(J.current){J.current=!1,X(!1),P(null),n({type:"input:pinch:end",sessionId:e});return}ye.current=null,se.current="release",Oe.current={startTime:performance.now()};const Ae=he.current;Ae&&(Ae.style.width=`${La*2}px`,Ae.style.height=`${La*2}px`,Ae.style.background="transparent",Ae.style.border="1.5px solid rgba(255,255,255,0.6)",Ae.style.boxShadow="0 0 0 1px rgba(0,0,0,0.3)"),n({type:"input:touch:end",sessionId:e})},[n,e]),Te=y.useCallback(()=>{if(J.current){J.current=!1,X(!1),P(null),n({type:"input:pinch:end",sessionId:e});return}ye.current=null,se.current="release",Oe.current={startTime:performance.now()},n({type:"input:touch:end",sessionId:e})},[n,e]),De=y.useCallback(()=>{P(null),we.current=null;const Ae=he.current;Ae&&(Ae.style.display="none")},[]),He=G??(S&&w?{width:S,height:w}:null),Ze=He?Math.min(1,sre/Math.max(He.width,He.height)):.3,Ot=He?Math.round(He.width*Ze):324,xt=He?Math.round(He.height*Ze):720,jt=O===1||O===3,tn=He?He.width>He.height:!1,nr=jt&&!tn;y.useLayoutEffect(()=>{en.current=nr},[nr]);const rr=nr?xt:Ot,vn=nr?Ot:xt,$n=nr?{position:"absolute",width:Ot,height:xt,top:(Ot-xt)/2,left:(xt-Ot)/2,transform:"rotate(90deg)",transformOrigin:"center center",visibility:z?"visible":"hidden",cursor:"none"}:{visibility:z?"visible":"hidden",cursor:"none"},ar=v.jsx(v.Fragment,{children:g==null?void 0:g.map(Ae=>v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>n({type:"input:button",sessionId:e,payload:{name:Ae.name}}),children:Ae.name==="back"?v.jsx(jF,{className:"h-4 w-4"}):Ae.name==="recent_apps"?v.jsx(Yz,{className:"h-4 w-4"}):Ae.name==="volume_up"?v.jsx(iV,{className:"h-4 w-4"}):Ae.name==="volume_down"?v.jsx(aV,{className:"h-4 w-4"}):Ae.name==="power"?v.jsx(WF,{className:"h-4 w-4"}):v.jsx(Wz,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:Ae.accessibilityTitle})]},Ae.name))}),zn=c&&t?v.jsxs(Ga,{children:[v.jsx(Wa,{asChild:!0,children:v.jsx(ht,{variant:"ghost",size:"icon",className:"h-8 w-8",disabled:m||l,onClick:()=>{h(!0),n({type:"app:launch",sessionId:e,buildId:t})},children:m?v.jsx(_p,{className:"h-4 w-4 animate-spin"}):v.jsx(Y_,{className:"h-4 w-4"})})}),v.jsx(Oa,{side:"left",children:m?"Launching…":l?"Installing…":"Launch app"})]}):null;return v.jsxs("div",{className:"flex items-start justify-center gap-16",children:[v.jsx("canvas",{ref:Ge,style:{display:"none"}}),v.jsx(l4,{joined:a,onScreenshot:()=>{const Ae=E.current;if(!Ae)return;const je=document.createElement("canvas"),Ee=je.getContext("2d");Ee&&(je.width=Ae.width,je.height=Ae.height,Ee.drawImage(Ae,0,0),je.toBlob(Fe=>{if(!Fe)return;const rt=URL.createObjectURL(Fe),ne=document.createElement("a");ne.href=rt,ne.download=`tapflow-${Date.now()}.png`,ne.click(),URL.revokeObjectURL(rt)},"image/png"))},onRecordToggle:()=>{_e==="idle"?on():_e==="recording"&&At()},recordState:_e,onRotate:()=>n({type:"input:rotate",sessionId:e}),platformSlot:ar,launchSlot:zn}),v.jsxs("div",{className:"flex items-start gap-8",children:[v.jsx("div",{style:{background:"#1c1c1e",borderRadius:"34px",padding:"12px",flexShrink:0,boxShadow:"0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06)"},children:v.jsx("div",{ref:j,className:"relative",style:{width:rr,height:vn,backgroundColor:"#010101",borderRadius:"22px",overflow:"hidden"},children:B?v.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:v.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontSize:"0.875rem"},children:"WebGL2 not supported"})}):v.jsxs(v.Fragment,{children:[v.jsx("canvas",{ref:E,className:nr?void 0:"block w-full h-full",style:$n,onPointerDown:re,onPointerMove:Re,onPointerUp:Ce,onPointerCancel:Te,onPointerLeave:De}),!z&&v.jsx("div",{className:"absolute inset-0 animate-pulse bg-zinc-800"}),!z&&o&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:v.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontSize:"0.875rem"},children:"Waiting for stream…"})}),v.jsx("div",{ref:he,style:{display:"none",position:"absolute",zIndex:20,borderRadius:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",transition:"width 0.1s ease, height 0.1s ease, background 0.1s ease, box-shadow 0.1s ease"}}),Z&&v.jsx(v.Fragment,{children:[Z.f0,Z.f1].map((Ae,je)=>v.jsx("div",{style:{position:"absolute",zIndex:10,borderRadius:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none",transition:"width 0.1s ease, height 0.1s ease, background 0.1s ease",left:`${Ae.x*100}%`,top:`${Ae.y*100}%`,...K?{width:ss*2,height:ss*2,background:"rgba(255,255,255,0.92)",border:"1.5px solid rgba(0,0,0,0.2)",boxShadow:"0 0 0 1px rgba(0,0,0,0.15), 0 0 8px rgba(255,255,255,0.25)"}:{width:La*2,height:La*2,background:"transparent",border:"1.5px solid rgba(255,255,255,0.6)",boxShadow:"0 0 0 1px rgba(0,0,0,0.3)"}}},je))})]})})}),v.jsx(YA,{joined:a,fps:N,connected:r,deviceReady:o,bootError:d,installing:l,installError:f,keyboardActive:$})]})]})}function cre({sessionId:e,deviceId:t,buildId:n,resetMode:r,onRecordingUploaded:a}){const o=y.useRef(()=>{}),[l,c]=y.useState(!1),[f,d]=y.useState(!1),[m,h]=y.useState(null),[g,x]=y.useState(!1),[A,S]=y.useState(!1),[w,O]=y.useState(null),[E,j]=y.useState(null),[C,T]=y.useState(!1),[R,N]=y.useState(0),[k,z]=y.useState(!1),[V,B]=y.useState(!1),I=y.useRef(void 0),F=y.useCallback(P=>{if(P.type==="session:joined"&&(c(!0),o.current({type:"device:boot",sessionId:e,payload:{deviceId:t,resetMode:r}})),P.type==="device:boot-error"&&j(P.message),P.type==="device:booting"&&(d(!1),x(!1),S(!1),O(null),j(null),h(null),N(0)),P.type==="device:rotate"&&N(P.payload.rotation),P.type==="device:ready"&&(d(!0),n&&(x(!0),o.current({type:"app:install",sessionId:e,buildId:n}))),P.type==="app:install-done"&&(x(!1),S(!0)),P.type==="app:install-error"&&(x(!1),O(P.message)),P.type==="app:launch-done"&&T(!1),P.type==="app:launch-error"&&T(!1),P.type==="session:chrome"&&h(P.payload),P.type==="keyboard:toggled"){const{visible:H}=P.payload;z(H),B(!1)}},[e,t,n]),G=y.useCallback(P=>{var H;(H=I.current)==null||H.call(I,P)},[]),{send:Y,connected:$}=WA(F,G);o.current=Y,y.useEffect(()=>{$&&Y({type:"session:start",sessionId:e})},[$,Y,e]);const q=m!==null&&"framePng"in m?m:null,K=m!==null&&!("framePng"in m)?m:null,Z={sessionId:e,buildId:n,send:Y,connected:$,joined:l,deviceReady:f,installing:g,installed:A,installError:w,bootError:E,launching:C,setLaunching:T,binaryFrameHandlerRef:I,onRecordingUploaded:a,swKeyboardVisible:k,swKeyboardPending:V,onKbdToggle:()=>{B(!0),Y({type:"input:keyboard:toggle",sessionId:e})}};return!q&&!K?v.jsxs("div",{className:"flex items-start justify-center gap-16",children:[v.jsx("div",{className:"flex flex-col items-center gap-0.5 rounded-2xl border bg-background/90 px-1.5 py-2.5 shrink-0 mt-3 opacity-40",children:Array.from({length:5}).map((P,H)=>v.jsx("div",{className:"h-8 w-8 rounded-md bg-muted animate-pulse"},H))}),v.jsxs("div",{className:"flex items-start gap-8",children:[v.jsx("div",{style:{background:"#1c1c1e",borderRadius:"34px",padding:"12px",flexShrink:0},children:v.jsx("div",{className:"animate-pulse bg-zinc-800",style:{width:324,height:720,borderRadius:"22px"}})}),v.jsx(YA,{joined:l,fps:0,connected:$,deviceReady:f,bootError:E,installing:g,installError:w,keyboardActive:!1})]})]}):v.jsxs(v.Fragment,{children:[q&&v.jsx(ere,{...Z,chrome:q}),K&&v.jsx(lre,{...Z,androidButtons:K.buttons,screenWidth:K.screenWidth,screenHeight:K.screenHeight,deviceRotation:R})]})}var Sv="Tabs",[ure]=sa(Sv,[av]),u4=av(),[fre,ZA]=ure(Sv),f4=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:l="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=sd(c),[h,g]=Eo({prop:r,onChange:a,defaultProp:o??"",caller:Sv});return v.jsx(fre,{scope:n,baseId:Aa(),value:h,onValueChange:g,orientation:l,dir:m,activationMode:f,children:v.jsx(Qe.div,{dir:m,"data-orientation":l,...d,ref:t})})});f4.displayName=Sv;var d4="TabsList",h4=y.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,o=ZA(d4,n),l=u4(n);return v.jsx($L,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:r,children:v.jsx(Qe.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});h4.displayName=d4;var p4="TabsTrigger",m4=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...o}=e,l=ZA(p4,n),c=u4(n),f=y4(l.baseId,r),d=b4(l.baseId,r),m=r===l.value;return v.jsx(zL,{asChild:!0,...c,focusable:!a,active:m,children:v.jsx(Qe.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:f,...o,ref:t,onMouseDown:$e(e.onMouseDown,h=>{!a&&h.button===0&&h.ctrlKey===!1?l.onValueChange(r):h.preventDefault()}),onKeyDown:$e(e.onKeyDown,h=>{[" ","Enter"].includes(h.key)&&l.onValueChange(r)}),onFocus:$e(e.onFocus,()=>{const h=l.activationMode!=="manual";!m&&!a&&h&&l.onValueChange(r)})})})});m4.displayName=p4;var v4="TabsContent",g4=y.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:o,...l}=e,c=ZA(v4,n),f=y4(c.baseId,r),d=b4(c.baseId,r),m=r===c.value,h=y.useRef(m);return y.useEffect(()=>{const g=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(g)},[]),v.jsx(cr,{present:a||m,children:({present:g})=>v.jsx(Qe.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!g,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:g&&o})})});g4.displayName=v4;function y4(e,t){return`${e}-trigger-${t}`}function b4(e,t){return`${e}-content-${t}`}var dre=f4,x4=h4,w4=m4,S4=g4;const _4=dre,KA=y.forwardRef(({className:e,...t},n)=>v.jsx(x4,{ref:n,className:xe("inline-flex h-9 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));KA.displayName=x4.displayName;const Bp=y.forwardRef(({className:e,...t},n)=>v.jsx(w4,{ref:n,className:xe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Bp.displayName=w4.displayName;const gS=y.forwardRef(({className:e,...t},n)=>v.jsx(S4,{ref:n,className:xe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));gS.displayName=S4.displayName;const A4=y.forwardRef(({className:e,...t},n)=>v.jsx("textarea",{className:xe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background 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:n,...t}));A4.displayName="Textarea";function hre(e,t){return y.useReducer((n,r)=>t[n][r]??n,e)}var XA="ScrollArea",[O4]=sa(XA),[pre,ca]=O4(XA),E4=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:a,scrollHideDelay:o=600,...l}=e,[c,f]=y.useState(null),[d,m]=y.useState(null),[h,g]=y.useState(null),[x,A]=y.useState(null),[S,w]=y.useState(null),[O,E]=y.useState(0),[j,C]=y.useState(0),[T,R]=y.useState(!1),[N,k]=y.useState(!1),z=ct(t,B=>f(B)),V=sd(a);return v.jsx(pre,{scope:n,type:r,dir:V,scrollHideDelay:o,scrollArea:c,viewport:d,onViewportChange:m,content:h,onContentChange:g,scrollbarX:x,onScrollbarXChange:A,scrollbarXEnabled:T,onScrollbarXEnabledChange:R,scrollbarY:S,onScrollbarYChange:w,scrollbarYEnabled:N,onScrollbarYEnabledChange:k,onCornerWidthChange:E,onCornerHeightChange:C,children:v.jsx(Qe.div,{dir:V,...l,ref:z,style:{position:"relative","--radix-scroll-area-corner-width":O+"px","--radix-scroll-area-corner-height":j+"px",...e.style}})})});E4.displayName=XA;var T4="ScrollAreaViewport",j4=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:a,...o}=e,l=ca(T4,n),c=y.useRef(null),f=ct(t,c,l.onViewportChange);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),v.jsx(Qe.div,{"data-radix-scroll-area-viewport":"",...o,ref:f,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:v.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});j4.displayName=T4;var ei="ScrollAreaScrollbar",QA=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=ca(ei,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:l}=a,c=e.orientation==="horizontal";return y.useEffect(()=>(c?o(!0):l(!0),()=>{c?o(!1):l(!1)}),[c,o,l]),a.type==="hover"?v.jsx(mre,{...r,ref:t,forceMount:n}):a.type==="scroll"?v.jsx(vre,{...r,ref:t,forceMount:n}):a.type==="auto"?v.jsx(C4,{...r,ref:t,forceMount:n}):a.type==="always"?v.jsx(JA,{...r,ref:t}):null});QA.displayName=ei;var mre=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=ca(ei,e.__scopeScrollArea),[o,l]=y.useState(!1);return y.useEffect(()=>{const c=a.scrollArea;let f=0;if(c){const d=()=>{window.clearTimeout(f),l(!0)},m=()=>{f=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return c.addEventListener("pointerenter",d),c.addEventListener("pointerleave",m),()=>{window.clearTimeout(f),c.removeEventListener("pointerenter",d),c.removeEventListener("pointerleave",m)}}},[a.scrollArea,a.scrollHideDelay]),v.jsx(cr,{present:n||o,children:v.jsx(C4,{"data-state":o?"visible":"hidden",...r,ref:t})})}),vre=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=ca(ei,e.__scopeScrollArea),o=e.orientation==="horizontal",l=Av(()=>f("SCROLL_END"),100),[c,f]=hre("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return y.useEffect(()=>{if(c==="idle"){const d=window.setTimeout(()=>f("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[c,a.scrollHideDelay,f]),y.useEffect(()=>{const d=a.viewport,m=o?"scrollLeft":"scrollTop";if(d){let h=d[m];const g=()=>{const x=d[m];h!==x&&(f("SCROLL"),l()),h=x};return d.addEventListener("scroll",g),()=>d.removeEventListener("scroll",g)}},[a.viewport,o,f,l]),v.jsx(cr,{present:n||c!=="hidden",children:v.jsx(JA,{"data-state":c==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:$e(e.onPointerEnter,()=>f("POINTER_ENTER")),onPointerLeave:$e(e.onPointerLeave,()=>f("POINTER_LEAVE"))})})}),C4=y.forwardRef((e,t)=>{const n=ca(ei,e.__scopeScrollArea),{forceMount:r,...a}=e,[o,l]=y.useState(!1),c=e.orientation==="horizontal",f=Av(()=>{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,m=n.viewport.offsetHeight<n.viewport.scrollHeight;l(c?d:m)}},10);return Zl(n.viewport,f),Zl(n.content,f),v.jsx(cr,{present:r||o,children:v.jsx(JA,{"data-state":o?"visible":"hidden",...a,ref:t})})}),JA=y.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,a=ca(ei,e.__scopeScrollArea),o=y.useRef(null),l=y.useRef(0),[c,f]=y.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=D4(c.viewport,c.content),m={...r,sizes:c,onSizesChange:f,hasThumb:d>0&&d<1,onThumbChange:g=>o.current=g,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:g=>l.current=g};function h(g,x){return Sre(g,l.current,c,x)}return n==="horizontal"?v.jsx(gre,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const g=a.viewport.scrollLeft,x=PR(g,c,a.dir);o.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollLeft=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollLeft=h(g,a.dir))}}):n==="vertical"?v.jsx(yre,{...m,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){const g=a.viewport.scrollTop,x=PR(g,c);o.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:g=>{a.viewport&&(a.viewport.scrollTop=g)},onDragScroll:g=>{a.viewport&&(a.viewport.scrollTop=h(g))}}):null}),gre=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=ca(ei,e.__scopeScrollArea),[l,c]=y.useState(),f=y.useRef(null),d=ct(t,f,o.onScrollbarXChange);return y.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),v.jsx(N4,{"data-orientation":"horizontal",...a,ref:d,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":_v(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.x),onDragScroll:m=>e.onDragScroll(m.x),onWheelScroll:(m,h)=>{if(o.viewport){const g=o.viewport.scrollLeft+m.deltaX;e.onWheelScroll(g),$4(g,h)&&m.preventDefault()}},onResize:()=>{f.current&&o.viewport&&l&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:qp(l.paddingLeft),paddingEnd:qp(l.paddingRight)}})}})}),yre=y.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...a}=e,o=ca(ei,e.__scopeScrollArea),[l,c]=y.useState(),f=y.useRef(null),d=ct(t,f,o.onScrollbarYChange);return y.useEffect(()=>{f.current&&c(getComputedStyle(f.current))},[f]),v.jsx(N4,{"data-orientation":"vertical",...a,ref:d,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":_v(n)+"px",...e.style},onThumbPointerDown:m=>e.onThumbPointerDown(m.y),onDragScroll:m=>e.onDragScroll(m.y),onWheelScroll:(m,h)=>{if(o.viewport){const g=o.viewport.scrollTop+m.deltaY;e.onWheelScroll(g),$4(g,h)&&m.preventDefault()}},onResize:()=>{f.current&&o.viewport&&l&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:qp(l.paddingTop),paddingEnd:qp(l.paddingBottom)}})}})}),[bre,R4]=O4(ei),N4=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:a,onThumbChange:o,onThumbPointerUp:l,onThumbPointerDown:c,onThumbPositionChange:f,onDragScroll:d,onWheelScroll:m,onResize:h,...g}=e,x=ca(ei,n),[A,S]=y.useState(null),w=ct(t,z=>S(z)),O=y.useRef(null),E=y.useRef(""),j=x.viewport,C=r.content-r.viewport,T=Hn(m),R=Hn(f),N=Av(h,10);function k(z){if(O.current){const V=z.clientX-O.current.left,B=z.clientY-O.current.top;d({x:V,y:B})}}return y.useEffect(()=>{const z=V=>{const B=V.target;(A==null?void 0:A.contains(B))&&T(V,C)};return document.addEventListener("wheel",z,{passive:!1}),()=>document.removeEventListener("wheel",z,{passive:!1})},[j,A,C,T]),y.useEffect(R,[r,R]),Zl(A,N),Zl(x.content,N),v.jsx(bre,{scope:n,scrollbar:A,hasThumb:a,onThumbChange:Hn(o),onThumbPointerUp:Hn(l),onThumbPositionChange:R,onThumbPointerDown:Hn(c),children:v.jsx(Qe.div,{...g,ref:w,style:{position:"absolute",...g.style},onPointerDown:$e(e.onPointerDown,z=>{z.button===0&&(z.target.setPointerCapture(z.pointerId),O.current=A.getBoundingClientRect(),E.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",x.viewport&&(x.viewport.style.scrollBehavior="auto"),k(z))}),onPointerMove:$e(e.onPointerMove,k),onPointerUp:$e(e.onPointerUp,z=>{const V=z.target;V.hasPointerCapture(z.pointerId)&&V.releasePointerCapture(z.pointerId),document.body.style.webkitUserSelect=E.current,x.viewport&&(x.viewport.style.scrollBehavior=""),O.current=null})})})}),Up="ScrollAreaThumb",M4=y.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=R4(Up,e.__scopeScrollArea);return v.jsx(cr,{present:n||a.hasThumb,children:v.jsx(xre,{ref:t,...r})})}),xre=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...a}=e,o=ca(Up,n),l=R4(Up,n),{onThumbPositionChange:c}=l,f=ct(t,h=>l.onThumbChange(h)),d=y.useRef(void 0),m=Av(()=>{d.current&&(d.current(),d.current=void 0)},100);return y.useEffect(()=>{const h=o.viewport;if(h){const g=()=>{if(m(),!d.current){const x=_re(h,c);d.current=x,c()}};return c(),h.addEventListener("scroll",g),()=>h.removeEventListener("scroll",g)}},[o.viewport,m,c]),v.jsx(Qe.div,{"data-state":l.hasThumb?"visible":"hidden",...a,ref:f,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:$e(e.onPointerDownCapture,h=>{const x=h.target.getBoundingClientRect(),A=h.clientX-x.left,S=h.clientY-x.top;l.onThumbPointerDown({x:A,y:S})}),onPointerUp:$e(e.onPointerUp,l.onThumbPointerUp)})});M4.displayName=Up;var eO="ScrollAreaCorner",P4=y.forwardRef((e,t)=>{const n=ca(eO,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?v.jsx(wre,{...e,ref:t}):null});P4.displayName=eO;var wre=y.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}=e,a=ca(eO,n),[o,l]=y.useState(0),[c,f]=y.useState(0),d=!!(o&&c);return Zl(a.scrollbarX,()=>{var h;const m=((h=a.scrollbarX)==null?void 0:h.offsetHeight)||0;a.onCornerHeightChange(m),f(m)}),Zl(a.scrollbarY,()=>{var h;const m=((h=a.scrollbarY)==null?void 0:h.offsetWidth)||0;a.onCornerWidthChange(m),l(m)}),d?v.jsx(Qe.div,{...r,ref:t,style:{width:o,height:c,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function qp(e){return e?parseInt(e,10):0}function D4(e,t){const n=e/t;return isNaN(n)?0:n}function _v(e){const t=D4(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Sre(e,t,n,r="ltr"){const a=_v(n),o=a/2,l=t||o,c=a-l,f=n.scrollbar.paddingStart+l,d=n.scrollbar.size-n.scrollbar.paddingEnd-c,m=n.content-n.viewport,h=r==="ltr"?[0,m]:[m*-1,0];return k4([f,d],h)(e)}function PR(e,t,n="ltr"){const r=_v(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,l=t.content-t.viewport,c=o-r,f=n==="ltr"?[0,l]:[l*-1,0],d=fS(e,f);return k4([0,l],[0,c])(d)}function k4(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function $4(e,t){return e>0&&e<t}var _re=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function a(){const o={left:e.scrollLeft,top:e.scrollTop},l=n.left!==o.left,c=n.top!==o.top;(l||c)&&t(),n=o,r=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(r)};function Av(e,t){const n=Hn(e),r=y.useRef(0);return y.useEffect(()=>()=>window.clearTimeout(r.current),[]),y.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function Zl(e,t){const n=Hn(t);Gn(()=>{let r=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,n])}var z4=E4,Are=j4,Ore=P4;const L4=y.forwardRef(({className:e,children:t,...n},r)=>v.jsxs(z4,{ref:r,className:xe("relative overflow-hidden",e),...n,children:[v.jsx(Are,{className:"h-full w-full rounded-[inherit]",children:t}),v.jsx(I4,{}),v.jsx(Ore,{})]}));L4.displayName=z4.displayName;const I4=y.forwardRef(({className:e,orientation:t="vertical",...n},r)=>v.jsx(QA,{ref:r,orientation:t,className:xe("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:v.jsx(M4,{className:"relative flex-1 rounded-full bg-border"})}));I4.displayName=QA.displayName;function B4(e){return/[Zz]|[+-]\d{2}/.test(e)?new Date(e):new Date(e.replace(" ","T")+"Z")}function Ere(e){const t=new Map;for(const a of e){const o=B4(a.created_at).toDateString();t.has(o)||t.set(o,[]),t.get(o).push(a)}const n=new Date().toDateString(),r=new Date(Date.now()-864e5).toDateString();return Array.from(t.entries()).map(([a,o])=>{let l;if(a===n)l="Today";else if(a===r)l="Yesterday";else{const c=new Date(a);l=c.toLocaleDateString(void 0,{month:"short",day:"numeric",...c.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{}})}return{label:l,items:o}})}function Tre(e){return B4(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit"})}const jre=5*1024*1024,Cre=["image/png","image/jpeg","image/webp"];function Rre({buildId:e}){const[t,n]=y.useState([]),[r,a]=y.useState(""),[o,l]=y.useState(null),[c,f]=y.useState(!1),[d,m]=y.useState(""),h=y.useRef(null),g=y.useRef({});function x(){fetch(`/api/v1/comments?build_id=${e}`,{credentials:"include"}).then(E=>E.ok?E.json():[]).then(n)}y.useEffect(()=>{x()},[e]),y.useEffect(()=>{const E=window.location.hash;if(!E.startsWith("#comment-"))return;const j=Number(E.replace("#comment-","")),C=g.current[j];if(!C)return;C.scrollIntoView({behavior:"smooth"});const T=document.documentElement.classList.contains("dark");C.style.backgroundColor=T?"rgb(0 112 243 / 0.18)":"#d3e5ff",setTimeout(()=>{C.style.backgroundColor=""},2e3)},[t]);function A(E){const j=`${location.origin}${location.pathname}${location.search}#comment-${E}`;navigator.clipboard.writeText(j).catch(()=>{})}function S(E){if(m(""),!Cre.includes(E.type)){m("Only png, jpg, webp allowed");return}if(E.size>jre){m("Max 5MB");return}l(E)}async function w(E){if(E.preventDefault(),!r.trim()&&!o)return;f(!0);const j=new FormData;j.append("build_id",String(e)),j.append("body",r),o&&j.append("attachment",o),(await fetch("/api/v1/comments",{method:"POST",credentials:"include",body:j})).ok&&(a(""),l(null),x()),f(!1)}const O=Ere(t);return v.jsxs("div",{className:"flex h-full flex-col gap-3",children:[v.jsx(L4,{className:"flex-1 rounded-md border",children:v.jsx("div",{className:"p-3",children:t.length===0?v.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"No comments yet."}):v.jsx("div",{className:"flex flex-col",children:O.map(({label:E,items:j})=>v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2 py-3",children:[v.jsx("div",{className:"h-px flex-1 bg-border"}),v.jsx("span",{className:"text-[11px] font-medium text-muted-foreground px-1 select-none",children:E}),v.jsx("div",{className:"h-px flex-1 bg-border"})]}),v.jsx("div",{className:"flex flex-col gap-4",children:j.map(C=>v.jsxs("div",{id:`comment-${C.id}`,ref:T=>{g.current[C.id]=T},className:"group flex gap-2.5 rounded-md px-2 py-1.5 transition-all",children:[v.jsx("div",{className:"mt-0.5 shrink-0",children:v.jsx(D3,{name:C.author,avatarUrl:C.authorAvatarUrl,size:28})}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("span",{className:"text-sm font-semibold leading-none",children:C.author}),v.jsx("span",{className:"text-[11px] text-muted-foreground leading-none",children:Tre(C.created_at)}),v.jsx(ht,{variant:"ghost",size:"icon",className:"h-4 w-4 ml-0.5 opacity-0 group-hover:opacity-50 hover:!opacity-100 transition-opacity",onClick:()=>A(C.id),children:v.jsx(UF,{className:"h-3 w-3"})})]}),v.jsx("p",{className:"text-sm leading-relaxed whitespace-pre-wrap mt-1",children:C.body}),C.attachments.map(T=>v.jsx("a",{href:T.file_path,target:"_blank",rel:"noreferrer",className:"mt-1.5 block",children:v.jsx("img",{src:T.file_path,alt:"attachment",className:"max-h-48 rounded border object-contain"})},T.id))]})]},C.id))})]},E))})})}),v.jsx("div",{className:"px-1 pb-1",children:v.jsx("form",{onSubmit:w,children:v.jsxs("div",{className:"rounded-xl border border-input bg-background ring-offset-background transition-shadow focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2",children:[v.jsx(A4,{placeholder:"Leave a comment…",value:r,onChange:E=>a(E.target.value),className:"min-h-16 resize-none border-0 bg-transparent shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 text-sm"}),(o||d)&&v.jsxs("div",{className:"px-3 -mt-1 pb-1",children:[o&&v.jsx("p",{className:"text-xs text-muted-foreground",children:o.name}),d&&v.jsx("p",{className:"text-xs text-destructive",children:d})]}),v.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[v.jsx(ht,{type:"button",variant:"ghost",size:"icon",className:"h-7 w-7 text-muted-foreground",onClick:()=>{var E;return(E=h.current)==null?void 0:E.click()},children:v.jsx($F,{className:"h-4 w-4"})}),v.jsx("input",{ref:h,type:"file",accept:"image/png,image/jpeg,image/webp",className:"hidden",onChange:E=>{var C;const j=(C=E.target.files)==null?void 0:C[0];j&&S(j)}}),v.jsx("div",{className:"flex-1"}),v.jsx(ht,{type:"submit",size:"icon",className:"h-7 w-7 rounded-full",disabled:c||!r.trim()&&!o,children:v.jsx(CF,{className:"h-3.5 w-3.5"})})]})]})})})]})}function Nre(e){return e<1024*1024?`${(e/1024).toFixed(0)} KB`:`${(e/1024/1024).toFixed(1)} MB`}function Mre(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Pre(e){const t=new Date(e).getTime()-Date.now();if(t<=0)return{label:"Expired",urgent:!0};const n=Math.floor(t/36e5);return n<1?{label:"< 1 hour left",urgent:!0}:n<24?{label:`Expires in ${n}h`,urgent:n<6}:{label:`Expires in ${Math.floor(n/24)}d`,urgent:!1}}function Dre({buildId:e,refreshKey:t}){const[n,r]=y.useState([]),[a,o]=y.useState(!0);return y.useEffect(()=>{o(!0),fetch(`/api/v1/recordings?buildId=${e}`,{credentials:"include"}).then(l=>l.ok?l.json():[]).then(l=>r(l)).catch(()=>r([])).finally(()=>o(!1))},[e,t]),a?v.jsx("p",{className:"text-xs text-muted-foreground",children:"Loading recordings…"}):n.length===0?v.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No recordings yet."}):v.jsx("div",{className:"flex flex-col gap-2",children:n.map(l=>{const c=Pre(l.expiresAt);return v.jsxs("div",{className:"flex items-center justify-between rounded-md border border-border px-3 py-2 text-sm",children:[v.jsxs("div",{className:"flex flex-col gap-0.5 min-w-0",children:[v.jsx("span",{className:"text-xs font-medium truncate",children:Mre(l.createdAt)}),v.jsxs("span",{className:`text-xs ${c.urgent?"text-destructive":"text-muted-foreground"}`,children:[c.label," · ",Nre(l.fileSize)]})]}),v.jsx(ht,{variant:"ghost",size:"icon",className:"h-7 w-7 shrink-0 ml-2",title:"Download",onClick:()=>{const f=document.createElement("a");f.href=l.url,f.download="",f.click()},children:v.jsx(DF,{className:"h-3.5 w-3.5"})})]},l.id)})})}function kre({buildId:e,recordingsRefreshKey:t=0}){return v.jsxs(_4,{defaultValue:"comments",className:"flex h-full flex-col",children:[v.jsxs(KA,{className:"w-full shrink-0",children:[v.jsxs(Bp,{value:"comments",className:"flex-1 gap-1.5",children:[v.jsx(HF,{className:"h-3.5 w-3.5"}),"Comments"]}),v.jsxs(Bp,{value:"recordings",className:"flex-1 gap-1.5",children:[v.jsx(kF,{className:"h-3.5 w-3.5"}),"Recordings"]})]}),v.jsx(gS,{value:"comments",className:"mt-3 min-h-0 flex-1 overflow-hidden",children:v.jsx(Rre,{buildId:e})}),v.jsx(gS,{value:"recordings",className:"mt-3 min-h-0 flex-1 overflow-y-auto",children:v.jsx(Dre,{buildId:e,refreshKey:t})})]})}const U4=y.forwardRef(({...e},t)=>v.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));U4.displayName="Breadcrumb";const q4=y.forwardRef(({className:e,...t},n)=>v.jsx("ol",{ref:n,className:xe("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));q4.displayName="BreadcrumbList";const Gu=y.forwardRef(({className:e,...t},n)=>v.jsx("li",{ref:n,className:xe("inline-flex items-center gap-1.5",e),...t}));Gu.displayName="BreadcrumbItem";const gp=y.forwardRef(({asChild:e,className:t,...n},r)=>{const a=e?Ps:"a";return v.jsx(a,{ref:r,className:xe("transition-colors hover:text-foreground cursor-pointer",t),...n})});gp.displayName="BreadcrumbLink";const yp=y.forwardRef(({className:e,...t},n)=>v.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page",className:xe("font-medium text-foreground",e),...t}));yp.displayName="BreadcrumbPage";const bp=({children:e,className:t,...n})=>v.jsx("li",{role:"presentation","aria-hidden":"true",className:xe("[&>svg]:h-3.5 [&>svg]:w-3.5",t),...n,children:e??v.jsx(W_,{})});bp.displayName="BreadcrumbSeparator";var Ov="Switch",[$re]=sa(Ov),[zre,Lre]=$re(Ov),H4=y.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:l,disabled:c,value:f="on",onCheckedChange:d,form:m,...h}=e,[g,x]=y.useState(null),A=ct(t,j=>x(j)),S=y.useRef(!1),w=g?m||!!g.closest("form"):!0,[O,E]=Eo({prop:a,defaultProp:o??!1,onChange:d,caller:Ov});return v.jsxs(zre,{scope:n,checked:O,disabled:c,children:[v.jsx(Qe.button,{type:"button",role:"switch","aria-checked":O,"aria-required":l,"data-state":W4(O),"data-disabled":c?"":void 0,disabled:c,value:f,...h,ref:A,onClick:$e(e.onClick,j=>{E(C=>!C),w&&(S.current=j.isPropagationStopped(),S.current||j.stopPropagation())})}),w&&v.jsx(G4,{control:g,bubbles:!S.current,name:r,value:f,checked:O,required:l,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});H4.displayName=Ov;var F4="SwitchThumb",V4=y.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=Lre(F4,n);return v.jsx(Qe.span,{"data-state":W4(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});V4.displayName=F4;var Ire="SwitchBubbleInput",G4=y.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{const l=y.useRef(null),c=ct(l,o),f=wI(n),d=nL(t);return y.useEffect(()=>{const m=l.current;if(!m)return;const h=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(h,"checked").set;if(f!==n&&x){const A=new Event("click",{bubbles:r});x.call(m,n),m.dispatchEvent(A)}},[f,n,r]),v.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});G4.displayName=Ire;function W4(e){return e?"checked":"unchecked"}var Y4=H4,Bre=V4;const Z4=y.forwardRef(({className:e,...t},n)=>v.jsx(Y4,{className:xe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:v.jsx(Bre,{className:xe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Z4.displayName=Y4.displayName;function Ure(){const[e]=Fm(),t=Xa(),n=e.get("id"),[r,a]=y.useState(null),[o,l]=y.useState([]),[c,f]=y.useState(null),[d,m]=y.useState(""),[h,g]=y.useState(null),[x,A]=y.useState(!1),[S,w]=y.useState(""),[O,E]=y.useState(0),[j,C]=y.useState("app-only");y.useEffect(()=>{n&&Lne(n).then(a)},[n]);const T=y.useCallback(ce=>{ce.type==="agents:listed"&&l(ce.sessions),ce.type==="session:joined"&&(A(!1),w("Connected")),ce.type==="error"&&(A(!1),w(`Error: ${ce.message}`))},[]),{send:R,connected:N}=WA(T);y.useEffect(()=>{if(!N)return;R({type:"agents:list"});const ce=setInterval(()=>R({type:"agents:list"}),5e3);return()=>clearInterval(ce)},[N,R]);const k=(r==null?void 0:r.platform)??"ios",z=o.filter(ce=>ce.devices.some(he=>he.platform===k)),V=z.find(ce=>ce.agentName===c),B=(V==null?void 0:V.devices.filter(ce=>ce.platform===k))??[],F=o.flatMap(ce=>ce.devices).find(ce=>ce.id===d),G=F?`${F.name}${F.osVersion?` · ${F.osVersion}`:""}`:"",Y=[...new Set(B.map(ce=>ce.osVersion).filter(Boolean))].sort((ce,he)=>{const we=_e=>_e.replace(/^[^\d]*/,"").split(".").map(Number),[se,Oe]=[we(ce),we(he)];for(let _e=0;_e<Math.max(se.length,Oe.length);_e++){const ie=(Oe[_e]??0)-(se[_e]??0);if(ie!==0)return ie}return 0}),[$,q]=y.useState(""),[K,X]=y.useState(""),Z=($?B.filter(ce=>ce.osVersion===$):B).filter(ce=>!K||ce.name.toLowerCase().includes(K.toLowerCase())),P=y.useCallback(()=>{h&&d&&R({type:"device:shutdown",sessionId:h,payload:{deviceId:d}}),g(null),A(!1),w("")},[h,d,R]),H=y.useCallback(()=>E(ce=>ce+1),[]),J=y.useCallback(()=>{h&&d&&R({type:"device:shutdown",sessionId:h,payload:{deviceId:d}}),g(null),f(null),A(!1),w("")},[h,d,R]),fe=y.useRef({sessionId:h,deviceId:d});y.useEffect(()=>{fe.current={sessionId:h,deviceId:d}},[h,d]),y.useEffect(()=>()=>{const{sessionId:ce,deviceId:he}=fe.current;ce&&he&&R({type:"device:shutdown",sessionId:ce,payload:{deviceId:he}})},[R]);const{setNode:ye}=jA();return y.useEffect(()=>{if(r)return ye(v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(U4,{children:v.jsxs(q4,{children:[v.jsx(Gu,{children:v.jsx(gp,{asChild:!0,children:v.jsx("button",{onClick:()=>t(`/app-center?appId=${r.app_id}`),children:r.name})})}),v.jsx(bp,{}),v.jsx(Gu,{children:c?v.jsx(gp,{asChild:!0,children:v.jsx("button",{onClick:J,children:RR(r)})}):v.jsx(yp,{children:RR(r)})}),c&&v.jsxs(v.Fragment,{children:[v.jsx(bp,{}),v.jsx(Gu,{children:h?v.jsx(gp,{asChild:!0,children:v.jsx("button",{onClick:P,children:c})}):v.jsx(yp,{children:c})})]}),h&&v.jsxs(v.Fragment,{children:[v.jsx(bp,{}),v.jsx(Gu,{children:v.jsx(yp,{children:G})})]})]})}),!c&&r.status_label&&v.jsx(Yl,{tone:o4[r.status_label],children:r.status_label})]})),()=>ye(null)},[r,c,h,G,t,P,J,ye]),v.jsxs("div",{className:"flex h-full min-h-0 gap-6 p-6",children:[v.jsx("div",{className:"flex flex-col gap-3 flex-1 min-w-0 min-h-0",children:v.jsx("div",{className:"flex-1 min-h-0 overflow-auto -ml-1 pl-1 -mr-4 pr-4",children:h?v.jsx("div",{className:"min-h-full flex items-center justify-center py-6 px-8 min-w-max",children:v.jsx(cre,{sessionId:h,deviceId:d,buildId:r==null?void 0:r.id,resetMode:j,onRecordingUploaded:H})}):c?v.jsxs("div",{className:"flex flex-col gap-5",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("button",{onClick:J,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"← All Macs"}),v.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:"Select device"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(xI,{placeholder:"Search device…",value:K,onChange:X}),Y.length>0&&v.jsxs(Es,{value:$||"__all__",onValueChange:ce=>{q(ce==="__all__"?"":ce),m("")},children:[v.jsx(Co,{className:"h-8 w-36 shrink-0",children:v.jsx(Ts,{})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"__all__",children:"Any version"}),Y.map(ce=>v.jsx(Dt,{value:ce,children:ce},ce))]})]}),v.jsx(gA,{children:v.jsxs(Ga,{children:[v.jsxs("div",{className:"ml-auto flex items-center gap-2 shrink-0",children:[v.jsx(Wa,{asChild:!0,children:v.jsxs(qt,{htmlFor:"reset-mode",className:"flex items-center gap-1 text-sm cursor-pointer whitespace-nowrap",children:[v.jsx(zF,{className:"h-3.5 w-3.5 text-muted-foreground"}),"Full reset"]})}),v.jsx(Z4,{id:"reset-mode",checked:j==="full-erase",onCheckedChange:ce=>C(ce?"full-erase":"app-only")})]}),v.jsx(Oa,{children:j==="full-erase"?"Erase all data before booting":"Keep existing data"})]})})]}),Z.length===0?v.jsx("p",{className:"text-sm text-muted-foreground",children:N?"No devices available for this OS.":"Connecting to relay…"}):v.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 2xl:grid-cols-3 gap-2",children:Z.map(ce=>{const he=ce.status==="booted",we=ce.busy,se=we?"In use":he?"Booted":"Available",Oe=we?"bg-amber-400":he?"bg-emerald-400":"bg-muted-foreground/40";return v.jsxs("button",{disabled:we||x||!N,onClick:()=>{m(ce.id),A(!0),w("Booting…"),g(ce.sessionId)},className:xe("flex flex-col gap-3 rounded-lg border p-3 text-left transition-colors min-h-[100px]","hover:bg-accent disabled:cursor-not-allowed disabled:opacity-50"),children:[v.jsx("span",{className:"text-sm font-medium leading-tight",children:ce.name}),ce.osVersion&&v.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:ce.osVersion}),v.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[v.jsx("span",{className:xe("inline-block h-1.5 w-1.5 rounded-full",Oe)}),se]})]},ce.id)})}),S&&v.jsx("p",{className:"text-sm text-muted-foreground",children:S})]}):v.jsxs("div",{className:"flex flex-col gap-5",children:[v.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:"Select Mac"}),z.length===0?v.jsx("p",{className:"text-sm text-muted-foreground",children:N?`No agents available for ${k}.`:"Connecting to relay…"}):v.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 2xl:grid-cols-3 gap-2",children:z.map(ce=>{const he=ce.resources,we=he?Date.now()-he.reportedAt>3e4:!1,se=ce.devices.filter(ie=>ie.platform===k).length,Oe=(he==null?void 0:he.cpuPercent)??0,_e=he?he.memUsedMB/he.memTotalMB*100:0;return v.jsxs("button",{onClick:()=>f(ce.agentName??null),className:xe("flex flex-col gap-3 rounded-lg border p-3 text-left transition-colors min-h-[100px]","hover:bg-accent"),children:[v.jsxs("div",{className:"flex items-start justify-between gap-2",children:[v.jsx("span",{className:"text-sm font-medium leading-tight truncate",children:ce.agentName??"Unknown"}),we&&v.jsx("span",{className:"shrink-0 text-[10px] font-medium text-amber-500",children:"Stale"})]}),v.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[v.jsxs("span",{children:[se," device",se!==1?"s":""]}),he&&v.jsxs(v.Fragment,{children:[v.jsx("span",{children:"·"}),v.jsxs("span",{children:[he.slotsAvailable,"/",he.slotsTotal," slots"]})]})]}),he&&!we&&v.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[v.jsx(DR,{label:"CPU",percent:Oe,colorClass:"bg-blue-400"}),v.jsx(DR,{label:"RAM",percent:_e,colorClass:"bg-violet-400"})]})]},ce.agentName)})})]})})}),n&&v.jsxs(v.Fragment,{children:[v.jsx(Oo,{orientation:"vertical",className:"h-auto"}),v.jsx("div",{className:"w-80 shrink-0 h-full",children:v.jsx(kre,{buildId:Number(n),recordingsRefreshKey:O})})]})]})}function DR({label:e,percent:t,colorClass:n}){return v.jsxs("div",{className:"flex flex-col gap-0.5",children:[v.jsxs("div",{className:"flex justify-between text-[10px] text-muted-foreground",children:[v.jsx("span",{children:e}),v.jsxs("span",{children:[t.toFixed(0),"%"]})]}),v.jsx("div",{className:"h-1 w-full rounded-full bg-muted overflow-hidden",children:v.jsx("div",{className:xe("h-full rounded-full transition-all",n),style:{width:`${Math.min(100,t)}%`}})})]})}var Lb,kR;function br(){if(kR)return Lb;kR=1;var e=Array.isArray;return Lb=e,Lb}var Ib,$R;function K4(){if($R)return Ib;$R=1;var e=typeof kh=="object"&&kh&&kh.Object===Object&&kh;return Ib=e,Ib}var Bb,zR;function ti(){if(zR)return Bb;zR=1;var e=K4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Bb=n,Bb}var Ub,LR;function md(){if(LR)return Ub;LR=1;var e=ti(),t=e.Symbol;return Ub=t,Ub}var qb,IR;function qre(){if(IR)return qb;IR=1;var e=md(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var d=!0}catch{}var m=r.call(l);return d&&(c?l[a]=f:delete l[a]),m}return qb=o,qb}var Hb,BR;function Hre(){if(BR)return Hb;BR=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Hb=n,Hb}var Fb,UR;function Li(){if(UR)return Fb;UR=1;var e=md(),t=qre(),n=Hre(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:o&&o in Object(c)?t(c):n(c)}return Fb=l,Fb}var Vb,qR;function Ii(){if(qR)return Vb;qR=1;function e(t){return t!=null&&typeof t=="object"}return Vb=e,Vb}var Gb,HR;function jc(){if(HR)return Gb;HR=1;var e=Li(),t=Ii(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return Gb=r,Gb}var Wb,FR;function tO(){if(FR)return Wb;FR=1;var e=br(),t=jc(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,l){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||l!=null&&o in Object(l)}return Wb=a,Wb}var Yb,VR;function ko(){if(VR)return Yb;VR=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Yb=e,Yb}var Zb,GR;function nO(){if(GR)return Zb;GR=1;var e=Li(),t=ko(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==o}return Zb=l,Zb}var Kb,WR;function Fre(){if(WR)return Kb;WR=1;var e=ti(),t=e["__core-js_shared__"];return Kb=t,Kb}var Xb,YR;function Vre(){if(YR)return Xb;YR=1;var e=Fre(),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 Xb=n,Xb}var Qb,ZR;function X4(){if(ZR)return Qb;ZR=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 Qb=n,Qb}var Jb,KR;function Gre(){if(KR)return Jb;KR=1;var e=nO(),t=Vre(),n=ko(),r=X4(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(g){if(!n(g)||t(g))return!1;var x=e(g)?m:o;return x.test(r(g))}return Jb=h,Jb}var e0,XR;function Wre(){if(XR)return e0;XR=1;function e(t,n){return t==null?void 0:t[n]}return e0=e,e0}var t0,QR;function zs(){if(QR)return t0;QR=1;var e=Gre(),t=Wre();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return t0=n,t0}var n0,JR;function Ev(){if(JR)return n0;JR=1;var e=zs(),t=e(Object,"create");return n0=t,n0}var r0,eN;function Yre(){if(eN)return r0;eN=1;var e=Ev();function t(){this.__data__=e?e(null):{},this.size=0}return r0=t,r0}var a0,tN;function Zre(){if(tN)return a0;tN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return a0=e,a0}var i0,nN;function Kre(){if(nN)return i0;nN=1;var e=Ev(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var l=this.__data__;if(e){var c=l[o];return c===t?void 0:c}return r.call(l,o)?l[o]:void 0}return i0=a,i0}var o0,rN;function Xre(){if(rN)return o0;rN=1;var e=Ev(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return o0=r,o0}var s0,aN;function Qre(){if(aN)return s0;aN=1;var e=Ev(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return s0=n,s0}var l0,iN;function Jre(){if(iN)return l0;iN=1;var e=Yre(),t=Zre(),n=Kre(),r=Xre(),a=Qre();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,l0=o,l0}var c0,oN;function eae(){if(oN)return c0;oN=1;function e(){this.__data__=[],this.size=0}return c0=e,c0}var u0,sN;function rO(){if(sN)return u0;sN=1;function e(t,n){return t===n||t!==t&&n!==n}return u0=e,u0}var f0,lN;function Tv(){if(lN)return f0;lN=1;var e=rO();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return f0=t,f0}var d0,cN;function tae(){if(cN)return d0;cN=1;var e=Tv(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,l=e(o,a);if(l<0)return!1;var c=o.length-1;return l==c?o.pop():n.call(o,l,1),--this.size,!0}return d0=r,d0}var h0,uN;function nae(){if(uN)return h0;uN=1;var e=Tv();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return h0=t,h0}var p0,fN;function rae(){if(fN)return p0;fN=1;var e=Tv();function t(n){return e(this.__data__,n)>-1}return p0=t,p0}var m0,dN;function aae(){if(dN)return m0;dN=1;var e=Tv();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return m0=t,m0}var v0,hN;function jv(){if(hN)return v0;hN=1;var e=eae(),t=tae(),n=nae(),r=rae(),a=aae();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,v0=o,v0}var g0,pN;function aO(){if(pN)return g0;pN=1;var e=zs(),t=ti(),n=e(t,"Map");return g0=n,g0}var y0,mN;function iae(){if(mN)return y0;mN=1;var e=Jre(),t=jv(),n=aO();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return y0=r,y0}var b0,vN;function oae(){if(vN)return b0;vN=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return b0=e,b0}var x0,gN;function Cv(){if(gN)return x0;gN=1;var e=oae();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return x0=t,x0}var w0,yN;function sae(){if(yN)return w0;yN=1;var e=Cv();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return w0=t,w0}var S0,bN;function lae(){if(bN)return S0;bN=1;var e=Cv();function t(n){return e(this,n).get(n)}return S0=t,S0}var _0,xN;function cae(){if(xN)return _0;xN=1;var e=Cv();function t(n){return e(this,n).has(n)}return _0=t,_0}var A0,wN;function uae(){if(wN)return A0;wN=1;var e=Cv();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return A0=t,A0}var O0,SN;function iO(){if(SN)return O0;SN=1;var e=iae(),t=sae(),n=lae(),r=cae(),a=uae();function o(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,O0=o,O0}var E0,_N;function Q4(){if(_N)return E0;_N=1;var e=iO(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=o.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return o.cache=f.set(c,d)||f,d};return o.cache=new(n.Cache||e),o}return n.Cache=e,E0=n,E0}var T0,AN;function fae(){if(AN)return T0;AN=1;var e=Q4(),t=500;function n(r){var a=e(r,function(l){return o.size===t&&o.clear(),l}),o=a.cache;return a}return T0=n,T0}var j0,ON;function dae(){if(ON)return j0;ON=1;var e=fae(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(l,c,f,d){o.push(f?d.replace(n,"$1"):c||l)}),o});return j0=r,j0}var C0,EN;function oO(){if(EN)return C0;EN=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return C0=e,C0}var R0,TN;function hae(){if(TN)return R0;TN=1;var e=md(),t=oO(),n=br(),r=jc(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return o?o.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return R0=l,R0}var N0,jN;function J4(){if(jN)return N0;jN=1;var e=hae();function t(n){return n==null?"":e(n)}return N0=t,N0}var M0,CN;function eB(){if(CN)return M0;CN=1;var e=br(),t=tO(),n=dae(),r=J4();function a(o,l){return e(o)?o:t(o,l)?[o]:n(r(o))}return M0=a,M0}var P0,RN;function Rv(){if(RN)return P0;RN=1;var e=jc();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return P0=t,P0}var D0,NN;function sO(){if(NN)return D0;NN=1;var e=eB(),t=Rv();function n(r,a){a=e(a,r);for(var o=0,l=a.length;r!=null&&o<l;)r=r[t(a[o++])];return o&&o==l?r:void 0}return D0=n,D0}var k0,MN;function tB(){if(MN)return k0;MN=1;var e=sO();function t(n,r,a){var o=n==null?void 0:e(n,r);return o===void 0?a:o}return k0=t,k0}var pae=tB();const aa=Bt(pae);var $0,PN;function mae(){if(PN)return $0;PN=1;function e(t){return t==null}return $0=e,$0}var vae=mae();const gt=Bt(vae);var z0,DN;function gae(){if(DN)return z0;DN=1;var e=Li(),t=br(),n=Ii(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return z0=a,z0}var yae=gae();const js=Bt(yae);var bae=nO();const ot=Bt(bae);var xae=ko();const Cc=Bt(xae);var L0={exports:{}},Ct={};/**
|
|
421
|
-
* @license React
|
|
422
|
-
* react-is.production.min.js
|
|
423
|
-
*
|
|
424
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
425
|
-
*
|
|
426
|
-
* This source code is licensed under the MIT license found in the
|
|
427
|
-
* LICENSE file in the root directory of this source tree.
|
|
428
|
-
*/var kN;function wae(){if(kN)return Ct;kN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=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"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function S(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case n:case a:case r:case d:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case l:case f:case g:case h:case o:return w;default:return O}}case t:return O}}}return Ct.ContextConsumer=l,Ct.ContextProvider=o,Ct.Element=e,Ct.ForwardRef=f,Ct.Fragment=n,Ct.Lazy=g,Ct.Memo=h,Ct.Portal=t,Ct.Profiler=a,Ct.StrictMode=r,Ct.Suspense=d,Ct.SuspenseList=m,Ct.isAsyncMode=function(){return!1},Ct.isConcurrentMode=function(){return!1},Ct.isContextConsumer=function(w){return S(w)===l},Ct.isContextProvider=function(w){return S(w)===o},Ct.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Ct.isForwardRef=function(w){return S(w)===f},Ct.isFragment=function(w){return S(w)===n},Ct.isLazy=function(w){return S(w)===g},Ct.isMemo=function(w){return S(w)===h},Ct.isPortal=function(w){return S(w)===t},Ct.isProfiler=function(w){return S(w)===a},Ct.isStrictMode=function(w){return S(w)===r},Ct.isSuspense=function(w){return S(w)===d},Ct.isSuspenseList=function(w){return S(w)===m},Ct.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===a||w===r||w===d||w===m||w===x||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===h||w.$$typeof===o||w.$$typeof===l||w.$$typeof===f||w.$$typeof===A||w.getModuleId!==void 0)},Ct.typeOf=S,Ct}var $N;function Sae(){return $N||($N=1,L0.exports=wae()),L0.exports}var _ae=Sae(),I0,zN;function nB(){if(zN)return I0;zN=1;var e=Li(),t=Ii(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return I0=r,I0}var B0,LN;function Aae(){if(LN)return B0;LN=1;var e=nB();function t(n){return e(n)&&n!=+n}return B0=t,B0}var Oae=Aae();const Rc=Bt(Oae);var Eae=nB();const Tae=Bt(Eae);var Sa=function(t){return t===0?0:t>0?1:-1},ds=function(t){return js(t)&&t.indexOf("%")===t.length-1},Ne=function(t){return Tae(t)&&!Rc(t)},jae=function(t){return gt(t)},Rn=function(t){return Ne(t)||js(t)},Cae=0,vd=function(t){var n=++Cae;return"".concat(t||"").concat(n)},Cs=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ne(t)&&!js(t))return r;var o;if(ds(t)){var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return Rc(o)&&(o=r),a&&o>n&&(o=n),o},yo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Rae=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Xr=function(t,n){return Ne(t)&&Ne(n)?function(r){return t+r*(n-t)}:function(){return n}};function Hp(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):aa(r,t))===n})}var Nae=function(t,n){return Ne(t)&&Ne(n)?t-n:js(t)&&js(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Il(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 yS(e){"@babel/helpers - typeof";return yS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yS(e)}var Mae=["viewBox","children"],Pae=["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"],IN=["points","pathLength"],U0={svg:Mae,polygon:IN,polyline:IN},lO=["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"],Fp=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(y.isValidElement(t)&&(r=t.props),!Cc(r))return null;var a={};return Object.keys(r).forEach(function(o){lO.includes(o)&&(a[o]=n||function(l){return r[o](r,l)})}),a},Dae=function(t,n,r){return function(a){return t(n,r,a),null}},Vp=function(t,n,r){if(!Cc(t)||yS(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var l=t[o];lO.includes(o)&&typeof l=="function"&&(a||(a={}),a[o]=Dae(l,n,r))}),a},kae=["children"],$ae=["children"];function BN(e,t){if(e==null)return{};var n=zae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zae(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 bS(e){"@babel/helpers - typeof";return bS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bS(e)}var UN={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"},Ei=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},qN=null,q0=null,cO=function e(t){if(t===qN&&Array.isArray(q0))return q0;var n=[];return y.Children.forEach(t,function(r){gt(r)||(_ae.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),q0=n,qN=t,n};function Ea(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ei(a)}):r=[Ei(t)],cO(e).forEach(function(a){var o=aa(a,"type.displayName")||aa(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function Cr(e,t){var n=Ea(e,t);return n&&n[0]}var HN=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!Ne(r)||r<=0||!Ne(a)||a<=0)},Lae=["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"],Iae=function(t){return t&&t.type&&js(t.type)&&Lae.indexOf(t.type)>=0},Bae=function(t){return t&&bS(t)==="object"&&"clipDot"in t},Uae=function(t,n,r,a){var o,l=(o=U0==null?void 0:U0[a])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!ot(t)&&(a&&l.includes(n)||Pae.includes(n))||r&&lO.includes(n)},dt=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(y.isValidElement(t)&&(a=t.props),!Cc(a))return null;var o={};return Object.keys(a).forEach(function(l){var c;Uae((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(o[l]=a[l])}),o},xS=function e(t,n){if(t===n)return!0;var r=y.Children.count(t);if(r!==y.Children.count(n))return!1;if(r===0)return!0;if(r===1)return FN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var o=t[a],l=n[a];if(Array.isArray(o)||Array.isArray(l)){if(!e(o,l))return!1}else if(!FN(o,l))return!1}return!0},FN=function(t,n){if(gt(t)&>(n))return!0;if(!gt(t)&&!gt(n)){var r=t.props||{},a=r.children,o=BN(r,kae),l=n.props||{},c=l.children,f=BN(l,$ae);return a&&c?Il(o,f)&&xS(a,c):!a&&!c?Il(o,f):!1}return!1},VN=function(t,n){var r=[],a={};return cO(t).forEach(function(o,l){if(Iae(o))r.push(o);else if(o){var c=Ei(o.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!a[c])){var h=d(o,c,l);r.push(h),a[c]=!0}}}),r},qae=function(t){var n=t&&t.type;return n&&UN[n]?UN[n]:null},Hae=function(t,n){return cO(n).indexOf(t)},Fae=["children","width","height","viewBox","className","style","title","desc"];function wS(){return wS=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},wS.apply(this,arguments)}function Vae(e,t){if(e==null)return{};var n=Gae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gae(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 SS(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,o=e.className,l=e.style,c=e.title,f=e.desc,d=Vae(e,Fae),m=a||{width:n,height:r,x:0,y:0},h=bt("recharts-surface",o);return L.createElement("svg",wS({},dt(d,!0,"svg"),{className:h,width:n,height:r,style:l,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 Wae=["children","className"];function _S(){return _S=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},_S.apply(this,arguments)}function Yae(e,t){if(e==null)return{};var n=Zae(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zae(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 rn=L.forwardRef(function(e,t){var n=e.children,r=e.className,a=Yae(e,Wae),o=bt("recharts-layer",r);return L.createElement("g",_S({className:o},dt(a,!0),{ref:t}),n)}),Ti=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o]},H0,GN;function Kae(){if(GN)return H0;GN=1;function e(t,n,r){var a=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++a<o;)l[a]=t[a+n];return l}return H0=e,H0}var F0,WN;function Xae(){if(WN)return F0;WN=1;var e=Kae();function t(n,r,a){var o=n.length;return a=a===void 0?o:a,!r&&a>=o?n:e(n,r,a)}return F0=t,F0}var V0,YN;function rB(){if(YN)return V0;YN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+o+"]");function f(d){return c.test(d)}return V0=f,V0}var G0,ZN;function Qae(){if(ZN)return G0;ZN=1;function e(t){return t.split("")}return G0=e,G0}var W0,KN;function Jae(){if(KN)return W0;KN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",A=d+"?",S="["+o+"]?",w="(?:"+x+"(?:"+[m,h,g].join("|")+")"+S+A+")*",O=S+A+w,E="(?:"+[m+c+"?",c,h,g,l].join("|")+")",j=RegExp(f+"(?="+f+")|"+E+O,"g");function C(T){return T.match(j)||[]}return W0=C,W0}var Y0,XN;function eie(){if(XN)return Y0;XN=1;var e=Qae(),t=rB(),n=Jae();function r(a){return t(a)?n(a):e(a)}return Y0=r,Y0}var Z0,QN;function tie(){if(QN)return Z0;QN=1;var e=Xae(),t=rB(),n=eie(),r=J4();function a(o){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[o]()+d}}return Z0=a,Z0}var K0,JN;function nie(){if(JN)return K0;JN=1;var e=tie(),t=e("toUpperCase");return K0=t,K0}var rie=nie();const Nv=Bt(rie);function Ft(e){return function(){return e}}const aB=Math.cos,Gp=Math.sin,Na=Math.sqrt,Wp=Math.PI,Mv=2*Wp,AS=Math.PI,OS=2*AS,cs=1e-6,aie=OS-cs;function iB(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function iie(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return iB;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class oie{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?iB:iie(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,f=r-t,d=a-n,m=l-t,h=c-n,g=m*m+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>cs)if(!(Math.abs(h*f-d*m)>cs)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-l,A=a-c,S=f*f+d*d,w=x*x+A*A,O=Math.sqrt(S),E=Math.sqrt(g),j=o*Math.tan((AS-Math.acos((S+g-w)/(2*O*E)))/2),C=j/E,T=j/O;Math.abs(C-1)>cs&&this._append`L${t+C*m},${n+C*h}`,this._append`A${o},${o},0,0,${+(h*x>m*A)},${this._x1=t+T*f},${this._y1=n+T*d}`}}arc(t,n,r,a,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),d=t+c,m=n+f,h=1^l,g=l?a-o:o-a;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>cs||Math.abs(this._y1-m)>cs)&&this._append`L${d},${m}`,r&&(g<0&&(g=g%OS+OS),g>aie?this._append`A${r},${r},0,1,${h},${t-c},${n-f}A${r},${r},0,1,${h},${this._x1=d},${this._y1=m}`:g>cs&&this._append`A${r},${r},0,${+(g>=AS)},${h},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function uO(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 oie(t)}function fO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oB(e){this._context=e}oB.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 Pv(e){return new oB(e)}function sB(e){return e[0]}function lB(e){return e[1]}function cB(e,t){var n=Ft(!0),r=null,a=Pv,o=null,l=uO(c);e=typeof e=="function"?e:e===void 0?sB:Ft(e),t=typeof t=="function"?t:t===void 0?lB:Ft(t);function c(f){var d,m=(f=fO(f)).length,h,g=!1,x;for(r==null&&(o=a(x=l())),d=0;d<=m;++d)!(d<m&&n(h=f[d],d,f))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+e(h,d,f),+t(h,d,f));if(x)return o=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ft(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ft(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Ft(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(o=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=o=null:o=a(r=f),c):r},c}function Yh(e,t,n){var r=null,a=Ft(!0),o=null,l=Pv,c=null,f=uO(d);e=typeof e=="function"?e:e===void 0?sB:Ft(+e),t=typeof t=="function"?t:Ft(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?lB:Ft(+n);function d(h){var g,x,A,S=(h=fO(h)).length,w,O=!1,E,j=new Array(S),C=new Array(S);for(o==null&&(c=l(E=f())),g=0;g<=S;++g){if(!(g<S&&a(w=h[g],g,h))===O)if(O=!O)x=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),A=g-1;A>=x;--A)c.point(j[A],C[A]);c.lineEnd(),c.areaEnd()}O&&(j[g]=+e(w,g,h),C[g]=+t(w,g,h),c.point(r?+r(w,g,h):j[g],n?+n(w,g,h):C[g]))}if(E)return c=null,E+""||null}function m(){return cB().defined(a).curve(l).context(o)}return d.x=function(h){return arguments.length?(e=typeof h=="function"?h:Ft(+h),r=null,d):e},d.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Ft(+h),d):e},d.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Ft(+h),d):r},d.y=function(h){return arguments.length?(t=typeof h=="function"?h:Ft(+h),n=null,d):t},d.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Ft(+h),d):t},d.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Ft(+h),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(h){return arguments.length?(a=typeof h=="function"?h:Ft(!!h),d):a},d.curve=function(h){return arguments.length?(l=h,o!=null&&(c=l(o)),d):l},d.context=function(h){return arguments.length?(h==null?o=c=null:c=l(o=h),d):o},d}class uB{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 sie(e){return new uB(e,!0)}function lie(e){return new uB(e,!1)}const dO={draw(e,t){const n=Na(t/Wp);e.moveTo(n,0),e.arc(0,0,n,0,Mv)}},cie={draw(e,t){const n=Na(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()}},fB=Na(1/3),uie=fB*2,fie={draw(e,t){const n=Na(t/uie),r=n*fB;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},die={draw(e,t){const n=Na(t),r=-n/2;e.rect(r,r,n,n)}},hie=.8908130915292852,dB=Gp(Wp/10)/Gp(7*Wp/10),pie=Gp(Mv/10)*dB,mie=-aB(Mv/10)*dB,vie={draw(e,t){const n=Na(t*hie),r=pie*n,a=mie*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=Mv*o/5,c=aB(l),f=Gp(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},X0=Na(3),gie={draw(e,t){const n=-Na(t/(X0*3));e.moveTo(0,n*2),e.lineTo(-X0*n,-n),e.lineTo(X0*n,-n),e.closePath()}},Yr=-.5,Zr=Na(3)/2,ES=1/Na(12),yie=(ES/2+1)*3,bie={draw(e,t){const n=Na(t/yie),r=n/2,a=n*ES,o=r,l=n*ES+n,c=-o,f=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,f),e.lineTo(Yr*r-Zr*a,Zr*r+Yr*a),e.lineTo(Yr*o-Zr*l,Zr*o+Yr*l),e.lineTo(Yr*c-Zr*f,Zr*c+Yr*f),e.lineTo(Yr*r+Zr*a,Yr*a-Zr*r),e.lineTo(Yr*o+Zr*l,Yr*l-Zr*o),e.lineTo(Yr*c+Zr*f,Yr*f-Zr*c),e.closePath()}};function xie(e,t){let n=null,r=uO(a);e=typeof e=="function"?e:Ft(e||dO),t=typeof t=="function"?t:Ft(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ft(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ft(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function Yp(){}function Zp(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 hB(e){this._context=e}hB.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:Zp(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:Zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wie(e){return new hB(e)}function pB(e){this._context=e}pB.prototype={areaStart:Yp,areaEnd:Yp,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:Zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sie(e){return new pB(e)}function mB(e){this._context=e}mB.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:Zp(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _ie(e){return new mB(e)}function vB(e){this._context=e}vB.prototype={areaStart:Yp,areaEnd:Yp,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 Aie(e){return new vB(e)}function eM(e){return e<0?-1:1}function tM(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(o*a+l*r)/(r+a);return(eM(o)+eM(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function nM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Q0(e,t,n){var r=e._x0,a=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,l-c*n,o,l)}function Kp(e){this._context=e}Kp.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:Q0(this,this._t0,nM(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,Q0(this,nM(this,n=tM(this,e,t)),n);break;default:Q0(this,this._t0,n=tM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function gB(e){this._context=new yB(e)}(gB.prototype=Object.create(Kp.prototype)).point=function(e,t){Kp.prototype.point.call(this,t,e)};function yB(e){this._context=e}yB.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,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function Oie(e){return new Kp(e)}function Eie(e){return new gB(e)}function bB(e){this._context=e}bB.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=rM(e),a=rM(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[l],t[l]);(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 rM(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),l=new Array(n);for(a[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function Tie(e){return new bB(e)}function Dv(e,t){this._context=e,this._t=t}Dv.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 jie(e){return new Dv(e,.5)}function Cie(e){return new Dv(e,0)}function Rie(e){return new Dv(e,1)}function Kl(e,t){if((l=e.length)>1)for(var n=1,r,a,o=e[t[0]],l,c=o.length;n<l;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function TS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Nie(e,t){return e[t]}function Mie(e){const t=[];return t.key=e,t}function Pie(){var e=Ft([]),t=TS,n=Kl,r=Nie;function a(o){var l=Array.from(e.apply(this,arguments),Mie),c,f=l.length,d=-1,m;for(const h of o)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(h,l[c].key,d,o)]).data=h;for(c=0,m=fO(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ft(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ft(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?TS:typeof o=="function"?o:Ft(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Kl,a):n},a}function Die(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,l;a<o;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}Kl(e,t)}}function kie(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Kl(e,t)}}function $ie(e,t){if(!(!((l=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,l;r<o;++r){for(var c=0,f=0,d=0;c<l;++c){for(var m=e[t[c]],h=m[r][1]||0,g=m[r-1][1]||0,x=(h-g)/2,A=0;A<c;++A){var S=e[t[A]],w=S[r][1]||0,O=S[r-1][1]||0;x+=w-O}f+=h,d+=x*h}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,Kl(e,t)}}function df(e){"@babel/helpers - typeof";return df=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},df(e)}var zie=["type","size","sizeType"];function jS(){return jS=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},jS.apply(this,arguments)}function aM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aM(Object(n),!0).forEach(function(r){Lie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lie(e,t,n){return t=Iie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iie(e){var t=Bie(e,"string");return df(t)=="symbol"?t:t+""}function Bie(e,t){if(df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uie(e,t){if(e==null)return{};var n=qie(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qie(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 xB={symbolCircle:dO,symbolCross:cie,symbolDiamond:fie,symbolSquare:die,symbolStar:vie,symbolTriangle:gie,symbolWye:bie},Hie=Math.PI/180,Fie=function(t){var n="symbol".concat(Nv(t));return xB[n]||dO},Vie=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 a=18*Hie;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},Gie=function(t,n){xB["symbol".concat(Nv(t))]=n},hO=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,o=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=Uie(t,zie),d=iM(iM({},f),{},{type:r,size:o,sizeType:c}),m=function(){var w=Fie(r),O=xie().type(w).size(Vie(o,c,r));return O()},h=d.className,g=d.cx,x=d.cy,A=dt(d,!0);return g===+g&&x===+x&&o===+o?L.createElement("path",jS({},A,{className:bt("recharts-symbols",h),transform:"translate(".concat(g,", ").concat(x,")"),d:m()})):null};hO.registerSymbol=Gie;function Xl(e){"@babel/helpers - typeof";return Xl=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},Xl(e)}function CS(){return CS=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},CS.apply(this,arguments)}function oM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oM(Object(n),!0).forEach(function(r){hf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zie(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,SB(r.key),r)}}function Kie(e,t,n){return t&&Zie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xie(e,t,n){return t=Xp(t),Qie(e,wB()?Reflect.construct(t,n||[],Xp(e).constructor):t.apply(e,n))}function Qie(e,t){if(t&&(Xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jie(e)}function Jie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wB=function(){return!!e})()}function Xp(e){return Xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xp(e)}function eoe(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&&RS(e,t)}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},RS(e,t)}function hf(e,t,n){return t=SB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SB(e){var t=toe(e,"string");return Xl(t)=="symbol"?t:t+""}function toe(e,t){if(Xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Kr=32,pO=(function(e){function t(){return Yie(this,t),Xie(this,t,arguments)}return eoe(t,e),Kie(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,o=Kr/2,l=Kr/6,c=Kr/3,f=r.inactive?a:r.color;if(r.type==="plainline")return L.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Kr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return L.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(c,`
|
|
429
|
-
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(o,`
|
|
430
|
-
H`).concat(Kr,"M").concat(2*c,",").concat(o,`
|
|
431
|
-
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return L.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(Kr/8,"h").concat(Kr,"v").concat(Kr*3/4,"h").concat(-Kr,"z"),className:"recharts-legend-icon"});if(L.isValidElement(r.legendIcon)){var d=Wie({},r);return delete d.legendIcon,L.cloneElement(r.legendIcon,d)}return L.createElement(hO,{fill:f,cx:o,cy:o,size:Kr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,o=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,d=a.inactiveColor,m={x:0,y:0,width:Kr,height:Kr},h={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(x,A){var S=x.formatter||f,w=bt(hf(hf({"recharts-legend-item":!0},"legend-item-".concat(A),!0),"inactive",x.inactive));if(x.type==="none")return null;var O=ot(x.value)?null:x.value;Ti(!ot(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 E=x.inactive?d:x.color;return L.createElement("li",CS({className:w,style:h,key:"legend-item-".concat(A)},Vp(r.props,x,A)),L.createElement(SS,{width:l,height:l,viewBox:m,style:g},r.renderIcon(x)),L.createElement("span",{className:"recharts-legend-item-text",style:{color:E}},S?S(O,x,A):O))})}},{key:"render",value:function(){var r=this.props,a=r.payload,o=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?l:"left"};return L.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(y.PureComponent);hf(pO,"displayName","Legend");hf(pO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var J0,sM;function noe(){if(sM)return J0;sM=1;var e=jv();function t(){this.__data__=new e,this.size=0}return J0=t,J0}var ex,lM;function roe(){if(lM)return ex;lM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ex=e,ex}var tx,cM;function aoe(){if(cM)return tx;cM=1;function e(t){return this.__data__.get(t)}return tx=e,tx}var nx,uM;function ioe(){if(uM)return nx;uM=1;function e(t){return this.__data__.has(t)}return nx=e,nx}var rx,fM;function ooe(){if(fM)return rx;fM=1;var e=jv(),t=aO(),n=iO(),r=200;function a(o,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([o,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(o,l),this.size=c.size,this}return rx=a,rx}var ax,dM;function _B(){if(dM)return ax;dM=1;var e=jv(),t=noe(),n=roe(),r=aoe(),a=ioe(),o=ooe();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=o,ax=l,ax}var ix,hM;function soe(){if(hM)return ix;hM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return ix=t,ix}var ox,pM;function loe(){if(pM)return ox;pM=1;function e(t){return this.__data__.has(t)}return ox=e,ox}var sx,mM;function AB(){if(mM)return sx;mM=1;var e=iO(),t=soe(),n=loe();function r(a){var o=-1,l=a==null?0:a.length;for(this.__data__=new e;++o<l;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,sx=r,sx}var lx,vM;function OB(){if(vM)return lx;vM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return lx=e,lx}var cx,gM;function EB(){if(gM)return cx;gM=1;function e(t,n){return t.has(n)}return cx=e,cx}var ux,yM;function TB(){if(yM)return ux;yM=1;var e=AB(),t=OB(),n=EB(),r=1,a=2;function o(l,c,f,d,m,h){var g=f&r,x=l.length,A=c.length;if(x!=A&&!(g&&A>x))return!1;var S=h.get(l),w=h.get(c);if(S&&w)return S==c&&w==l;var O=-1,E=!0,j=f&a?new e:void 0;for(h.set(l,c),h.set(c,l);++O<x;){var C=l[O],T=c[O];if(d)var R=g?d(T,C,O,c,l,h):d(C,T,O,l,c,h);if(R!==void 0){if(R)continue;E=!1;break}if(j){if(!t(c,function(N,k){if(!n(j,k)&&(C===N||m(C,N,f,d,h)))return j.push(k)})){E=!1;break}}else if(!(C===T||m(C,T,f,d,h))){E=!1;break}}return h.delete(l),h.delete(c),E}return ux=o,ux}var fx,bM;function coe(){if(bM)return fx;bM=1;var e=ti(),t=e.Uint8Array;return fx=t,fx}var dx,xM;function uoe(){if(xM)return dx;xM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}return dx=e,dx}var hx,wM;function mO(){if(wM)return hx;wM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return hx=e,hx}var px,SM;function foe(){if(SM)return px;SM=1;var e=md(),t=coe(),n=rO(),r=TB(),a=uoe(),o=mO(),l=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",h="[object Map]",g="[object Number]",x="[object RegExp]",A="[object Set]",S="[object String]",w="[object Symbol]",O="[object ArrayBuffer]",E="[object DataView]",j=e?e.prototype:void 0,C=j?j.valueOf:void 0;function T(R,N,k,z,V,B,I){switch(k){case E:if(R.byteLength!=N.byteLength||R.byteOffset!=N.byteOffset)return!1;R=R.buffer,N=N.buffer;case O:return!(R.byteLength!=N.byteLength||!B(new t(R),new t(N)));case f:case d:case g:return n(+R,+N);case m:return R.name==N.name&&R.message==N.message;case x:case S:return R==N+"";case h:var F=a;case A:var G=z&l;if(F||(F=o),R.size!=N.size&&!G)return!1;var Y=I.get(R);if(Y)return Y==N;z|=c,I.set(R,N);var $=r(F(R),F(N),z,V,B,I);return I.delete(R),$;case w:if(C)return C.call(R)==C.call(N)}return!1}return px=T,px}var mx,_M;function jB(){if(_M)return mx;_M=1;function e(t,n){for(var r=-1,a=n.length,o=t.length;++r<a;)t[o+r]=n[r];return t}return mx=e,mx}var vx,AM;function doe(){if(AM)return vx;AM=1;var e=jB(),t=br();function n(r,a,o){var l=a(r);return t(r)?l:e(l,o(r))}return vx=n,vx}var gx,OM;function hoe(){if(OM)return gx;OM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[o++]=c)}return l}return gx=e,gx}var yx,EM;function poe(){if(EM)return yx;EM=1;function e(){return[]}return yx=e,yx}var bx,TM;function moe(){if(TM)return bx;TM=1;var e=hoe(),t=poe(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return bx=o,bx}var xx,jM;function voe(){if(jM)return xx;jM=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return xx=e,xx}var wx,CM;function goe(){if(CM)return wx;CM=1;var e=Li(),t=Ii(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return wx=r,wx}var Sx,RM;function vO(){if(RM)return Sx;RM=1;var e=goe(),t=Ii(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return Sx=o,Sx}var Wu={exports:{}},_x,NM;function yoe(){if(NM)return _x;NM=1;function e(){return!1}return _x=e,_x}Wu.exports;var MM;function CB(){return MM||(MM=1,(function(e,t){var n=ti(),r=yoe(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Wu,Wu.exports)),Wu.exports}var Ax,PM;function gO(){if(PM)return Ax;PM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return Ax=n,Ax}var Ox,DM;function yO(){if(DM)return Ox;DM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ox=t,Ox}var Ex,kM;function boe(){if(kM)return Ex;kM=1;var e=Li(),t=yO(),n=Ii(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",h="[object Object]",g="[object RegExp]",x="[object Set]",A="[object String]",S="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",E="[object Float32Array]",j="[object Float64Array]",C="[object Int8Array]",T="[object Int16Array]",R="[object Int32Array]",N="[object Uint8Array]",k="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",B={};B[E]=B[j]=B[C]=B[T]=B[R]=B[N]=B[k]=B[z]=B[V]=!0,B[r]=B[a]=B[w]=B[o]=B[O]=B[l]=B[c]=B[f]=B[d]=B[m]=B[h]=B[g]=B[x]=B[A]=B[S]=!1;function I(F){return n(F)&&t(F.length)&&!!B[e(F)]}return Ex=I,Ex}var Tx,$M;function RB(){if($M)return Tx;$M=1;function e(t){return function(n){return t(n)}}return Tx=e,Tx}var Yu={exports:{}};Yu.exports;var zM;function xoe(){return zM||(zM=1,(function(e,t){var n=K4(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o&&n.process,c=(function(){try{var f=a&&a.require&&a.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Yu,Yu.exports)),Yu.exports}var jx,LM;function NB(){if(LM)return jx;LM=1;var e=boe(),t=RB(),n=xoe(),r=n&&n.isTypedArray,a=r?t(r):e;return jx=a,jx}var Cx,IM;function woe(){if(IM)return Cx;IM=1;var e=voe(),t=vO(),n=br(),r=CB(),a=gO(),o=NB(),l=Object.prototype,c=l.hasOwnProperty;function f(d,m){var h=n(d),g=!h&&t(d),x=!h&&!g&&r(d),A=!h&&!g&&!x&&o(d),S=h||g||x||A,w=S?e(d.length,String):[],O=w.length;for(var E in d)(m||c.call(d,E))&&!(S&&(E=="length"||x&&(E=="offset"||E=="parent")||A&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||a(E,O)))&&w.push(E);return w}return Cx=f,Cx}var Rx,BM;function Soe(){if(BM)return Rx;BM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Rx=t,Rx}var Nx,UM;function MB(){if(UM)return Nx;UM=1;function e(t,n){return function(r){return t(n(r))}}return Nx=e,Nx}var Mx,qM;function _oe(){if(qM)return Mx;qM=1;var e=MB(),t=e(Object.keys,Object);return Mx=t,Mx}var Px,HM;function Aoe(){if(HM)return Px;HM=1;var e=Soe(),t=_oe(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var l=[];for(var c in Object(o))r.call(o,c)&&c!="constructor"&&l.push(c);return l}return Px=a,Px}var Dx,FM;function gd(){if(FM)return Dx;FM=1;var e=nO(),t=yO();function n(r){return r!=null&&t(r.length)&&!e(r)}return Dx=n,Dx}var kx,VM;function kv(){if(VM)return kx;VM=1;var e=woe(),t=Aoe(),n=gd();function r(a){return n(a)?e(a):t(a)}return kx=r,kx}var $x,GM;function Ooe(){if(GM)return $x;GM=1;var e=doe(),t=moe(),n=kv();function r(a){return e(a,n,t)}return $x=r,$x}var zx,WM;function Eoe(){if(WM)return zx;WM=1;var e=Ooe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,l,c,f,d,m){var h=c&t,g=e(o),x=g.length,A=e(l),S=A.length;if(x!=S&&!h)return!1;for(var w=x;w--;){var O=g[w];if(!(h?O in l:r.call(l,O)))return!1}var E=m.get(o),j=m.get(l);if(E&&j)return E==l&&j==o;var C=!0;m.set(o,l),m.set(l,o);for(var T=h;++w<x;){O=g[w];var R=o[O],N=l[O];if(f)var k=h?f(N,R,O,l,o,m):f(R,N,O,o,l,m);if(!(k===void 0?R===N||d(R,N,c,f,m):k)){C=!1;break}T||(T=O=="constructor")}if(C&&!T){var z=o.constructor,V=l.constructor;z!=V&&"constructor"in o&&"constructor"in l&&!(typeof z=="function"&&z instanceof z&&typeof V=="function"&&V instanceof V)&&(C=!1)}return m.delete(o),m.delete(l),C}return zx=a,zx}var Lx,YM;function Toe(){if(YM)return Lx;YM=1;var e=zs(),t=ti(),n=e(t,"DataView");return Lx=n,Lx}var Ix,ZM;function joe(){if(ZM)return Ix;ZM=1;var e=zs(),t=ti(),n=e(t,"Promise");return Ix=n,Ix}var Bx,KM;function PB(){if(KM)return Bx;KM=1;var e=zs(),t=ti(),n=e(t,"Set");return Bx=n,Bx}var Ux,XM;function Coe(){if(XM)return Ux;XM=1;var e=zs(),t=ti(),n=e(t,"WeakMap");return Ux=n,Ux}var qx,QM;function Roe(){if(QM)return qx;QM=1;var e=Toe(),t=aO(),n=joe(),r=PB(),a=Coe(),o=Li(),l=X4(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",h="[object WeakMap]",g="[object DataView]",x=l(e),A=l(t),S=l(n),w=l(r),O=l(a),E=o;return(e&&E(new e(new ArrayBuffer(1)))!=g||t&&E(new t)!=c||n&&E(n.resolve())!=d||r&&E(new r)!=m||a&&E(new a)!=h)&&(E=function(j){var C=o(j),T=C==f?j.constructor:void 0,R=T?l(T):"";if(R)switch(R){case x:return g;case A:return c;case S:return d;case w:return m;case O:return h}return C}),qx=E,qx}var Hx,JM;function Noe(){if(JM)return Hx;JM=1;var e=_B(),t=TB(),n=foe(),r=Eoe(),a=Roe(),o=br(),l=CB(),c=NB(),f=1,d="[object Arguments]",m="[object Array]",h="[object Object]",g=Object.prototype,x=g.hasOwnProperty;function A(S,w,O,E,j,C){var T=o(S),R=o(w),N=T?m:a(S),k=R?m:a(w);N=N==d?h:N,k=k==d?h:k;var z=N==h,V=k==h,B=N==k;if(B&&l(S)){if(!l(w))return!1;T=!0,z=!1}if(B&&!z)return C||(C=new e),T||c(S)?t(S,w,O,E,j,C):n(S,w,N,O,E,j,C);if(!(O&f)){var I=z&&x.call(S,"__wrapped__"),F=V&&x.call(w,"__wrapped__");if(I||F){var G=I?S.value():S,Y=F?w.value():w;return C||(C=new e),j(G,Y,O,E,C)}}return B?(C||(C=new e),r(S,w,O,E,j,C)):!1}return Hx=A,Hx}var Fx,eP;function bO(){if(eP)return Fx;eP=1;var e=Noe(),t=Ii();function n(r,a,o,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,o,l,n,c)}return Fx=n,Fx}var Vx,tP;function Moe(){if(tP)return Vx;tP=1;var e=_B(),t=bO(),n=1,r=2;function a(o,l,c,f){var d=c.length,m=d,h=!f;if(o==null)return!m;for(o=Object(o);d--;){var g=c[d];if(h&&g[2]?g[1]!==o[g[0]]:!(g[0]in o))return!1}for(;++d<m;){g=c[d];var x=g[0],A=o[x],S=g[1];if(h&&g[2]){if(A===void 0&&!(x in o))return!1}else{var w=new e;if(f)var O=f(A,S,x,o,l,w);if(!(O===void 0?t(S,A,n|r,f,w):O))return!1}}return!0}return Vx=a,Vx}var Gx,nP;function DB(){if(nP)return Gx;nP=1;var e=ko();function t(n){return n===n&&!e(n)}return Gx=t,Gx}var Wx,rP;function Poe(){if(rP)return Wx;rP=1;var e=DB(),t=kv();function n(r){for(var a=t(r),o=a.length;o--;){var l=a[o],c=r[l];a[o]=[l,c,e(c)]}return a}return Wx=n,Wx}var Yx,aP;function kB(){if(aP)return Yx;aP=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Yx=e,Yx}var Zx,iP;function Doe(){if(iP)return Zx;iP=1;var e=Moe(),t=Poe(),n=kB();function r(a){var o=t(a);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(l){return l===a||e(l,a,o)}}return Zx=r,Zx}var Kx,oP;function koe(){if(oP)return Kx;oP=1;function e(t,n){return t!=null&&n in Object(t)}return Kx=e,Kx}var Xx,sP;function $oe(){if(sP)return Xx;sP=1;var e=eB(),t=vO(),n=br(),r=gO(),a=yO(),o=Rv();function l(c,f,d){f=e(f,c);for(var m=-1,h=f.length,g=!1;++m<h;){var x=o(f[m]);if(!(g=c!=null&&d(c,x)))break;c=c[x]}return g||++m!=h?g:(h=c==null?0:c.length,!!h&&a(h)&&r(x,h)&&(n(c)||t(c)))}return Xx=l,Xx}var Qx,lP;function zoe(){if(lP)return Qx;lP=1;var e=koe(),t=$oe();function n(r,a){return r!=null&&t(r,a,e)}return Qx=n,Qx}var Jx,cP;function Loe(){if(cP)return Jx;cP=1;var e=bO(),t=tB(),n=zoe(),r=tO(),a=DB(),o=kB(),l=Rv(),c=1,f=2;function d(m,h){return r(m)&&a(h)?o(l(m),h):function(g){var x=t(g,m);return x===void 0&&x===h?n(g,m):e(h,x,c|f)}}return Jx=d,Jx}var ew,uP;function Nc(){if(uP)return ew;uP=1;function e(t){return t}return ew=e,ew}var tw,fP;function Ioe(){if(fP)return tw;fP=1;function e(t){return function(n){return n==null?void 0:n[t]}}return tw=e,tw}var nw,dP;function Boe(){if(dP)return nw;dP=1;var e=sO();function t(n){return function(r){return e(r,n)}}return nw=t,nw}var rw,hP;function Uoe(){if(hP)return rw;hP=1;var e=Ioe(),t=Boe(),n=tO(),r=Rv();function a(o){return n(o)?e(r(o)):t(o)}return rw=a,rw}var aw,pP;function $o(){if(pP)return aw;pP=1;var e=Doe(),t=Loe(),n=Nc(),r=br(),a=Uoe();function o(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return aw=o,aw}var iw,mP;function $B(){if(mP)return iw;mP=1;function e(t,n,r,a){for(var o=t.length,l=r+(a?1:-1);a?l--:++l<o;)if(n(t[l],l,t))return l;return-1}return iw=e,iw}var ow,vP;function qoe(){if(vP)return ow;vP=1;function e(t){return t!==t}return ow=e,ow}var sw,gP;function Hoe(){if(gP)return sw;gP=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return sw=e,sw}var lw,yP;function Foe(){if(yP)return lw;yP=1;var e=$B(),t=qoe(),n=Hoe();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return lw=r,lw}var cw,bP;function Voe(){if(bP)return cw;bP=1;var e=Foe();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return cw=t,cw}var uw,xP;function Goe(){if(xP)return uw;xP=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return uw=e,uw}var fw,wP;function Woe(){if(wP)return fw;wP=1;function e(){}return fw=e,fw}var dw,SP;function Yoe(){if(SP)return dw;SP=1;var e=PB(),t=Woe(),n=mO(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return dw=a,dw}var hw,_P;function Zoe(){if(_P)return hw;_P=1;var e=AB(),t=Voe(),n=Goe(),r=EB(),a=Yoe(),o=mO(),l=200;function c(f,d,m){var h=-1,g=t,x=f.length,A=!0,S=[],w=S;if(m)A=!1,g=n;else if(x>=l){var O=d?null:a(f);if(O)return o(O);A=!1,g=r,w=new e}else w=d?[]:S;e:for(;++h<x;){var E=f[h],j=d?d(E):E;if(E=m||E!==0?E:0,A&&j===j){for(var C=w.length;C--;)if(w[C]===j)continue e;d&&w.push(j),S.push(E)}else g(w,j,m)||(w!==S&&w.push(j),S.push(E))}return S}return hw=c,hw}var pw,AP;function Koe(){if(AP)return pw;AP=1;var e=$o(),t=Zoe();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return pw=n,pw}var Xoe=Koe();const OP=Bt(Xoe);function zB(e,t,n){return t===!0?OP(e,n):ot(t)?OP(e,t):e}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)}var Qoe=["ref"];function EP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Si(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){$v(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 Joe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TP(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,IB(r.key),r)}}function ese(e,t,n){return t&&TP(e.prototype,t),n&&TP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tse(e,t,n){return t=Qp(t),nse(e,LB()?Reflect.construct(t,n||[],Qp(e).constructor):t.apply(e,n))}function nse(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 rse(e)}function rse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LB=function(){return!!e})()}function Qp(e){return Qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qp(e)}function ase(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&&NS(e,t)}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},NS(e,t)}function $v(e,t,n){return t=IB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IB(e){var t=ise(e,"string");return Ql(t)=="symbol"?t:t+""}function ise(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)}function ose(e,t){if(e==null)return{};var n=sse(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sse(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 lse(e){return e.value}function cse(e,t){if(L.isValidElement(e))return L.cloneElement(e,t);if(typeof e=="function")return L.createElement(e,t);t.ref;var n=ose(t,Qoe);return L.createElement(pO,n)}var jP=1,Bl=(function(e){function t(){var n;Joe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=tse(this,t,[].concat(a)),$v(n,"lastBoundingBox",{width:-1,height:-1}),n}return ase(t,e),ese(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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>jP||Math.abs(a.height-this.lastBoundingBox.height)>jP)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(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?Si({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,o=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,d=a.chartWidth,m=a.chartHeight,h,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&o==="vertical"){var x=this.getBBoxSnapshot();h={left:((d||0)-x.width)/2}}else h=l==="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 A=this.getBBoxSnapshot();g={top:((m||0)-A.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Si(Si({},h),g)}},{key:"render",value:function(){var r=this,a=this.props,o=a.content,l=a.width,c=a.height,f=a.wrapperStyle,d=a.payloadUniqBy,m=a.payload,h=Si(Si({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return L.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(x){r.wrapperNode=x}},cse(o,Si(Si({},this.props),{},{payload:zB(m,d,lse)})))}}],[{key:"getWithHeight",value:function(r,a){var o=Si(Si({},this.defaultProps),r.props),l=o.layout;return l==="vertical"&&Ne(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(y.PureComponent);$v(Bl,"displayName","Legend");$v(Bl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mw,CP;function use(){if(CP)return mw;CP=1;var e=md(),t=vO(),n=br(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return mw=a,mw}var vw,RP;function BB(){if(RP)return vw;RP=1;var e=jB(),t=use();function n(r,a,o,l,c){var f=-1,d=r.length;for(o||(o=t),c||(c=[]);++f<d;){var m=r[f];a>0&&o(m)?a>1?n(m,a-1,o,l,c):e(c,m):l||(c[c.length]=m)}return c}return vw=n,vw}var gw,NP;function fse(){if(NP)return gw;NP=1;function e(t){return function(n,r,a){for(var o=-1,l=Object(n),c=a(n),f=c.length;f--;){var d=c[t?f:++o];if(r(l[d],d,l)===!1)break}return n}}return gw=e,gw}var yw,MP;function dse(){if(MP)return yw;MP=1;var e=fse(),t=e();return yw=t,yw}var bw,PP;function UB(){if(PP)return bw;PP=1;var e=dse(),t=kv();function n(r,a){return r&&e(r,a,t)}return bw=n,bw}var xw,DP;function hse(){if(DP)return xw;DP=1;var e=gd();function t(n,r){return function(a,o){if(a==null)return a;if(!e(a))return n(a,o);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&o(f[c],c,f)!==!1;);return a}}return xw=t,xw}var ww,kP;function xO(){if(kP)return ww;kP=1;var e=UB(),t=hse(),n=t(e);return ww=n,ww}var Sw,$P;function qB(){if($P)return Sw;$P=1;var e=xO(),t=gd();function n(r,a){var o=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++o]=a(c,f,d)}),l}return Sw=n,Sw}var _w,zP;function pse(){if(zP)return _w;zP=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return _w=e,_w}var Aw,LP;function mse(){if(LP)return Aw;LP=1;var e=jc();function t(n,r){if(n!==r){var a=n!==void 0,o=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,h=e(r);if(!d&&!h&&!c&&n>r||c&&f&&m&&!d&&!h||o&&f&&m||!a&&m||!l)return 1;if(!o&&!c&&!h&&n<r||h&&a&&l&&!o&&!c||d&&a&&l||!f&&l||!m)return-1}return 0}return Aw=t,Aw}var Ow,IP;function vse(){if(IP)return Ow;IP=1;var e=mse();function t(n,r,a){for(var o=-1,l=n.criteria,c=r.criteria,f=l.length,d=a.length;++o<f;){var m=e(l[o],c[o]);if(m){if(o>=d)return m;var h=a[o];return m*(h=="desc"?-1:1)}}return n.index-r.index}return Ow=t,Ow}var Ew,BP;function gse(){if(BP)return Ew;BP=1;var e=oO(),t=sO(),n=$o(),r=qB(),a=pse(),o=RB(),l=vse(),c=Nc(),f=br();function d(m,h,g){h.length?h=e(h,function(S){return f(S)?function(w){return t(w,S.length===1?S[0]:S)}:S}):h=[c];var x=-1;h=e(h,o(n));var A=r(m,function(S,w,O){var E=e(h,function(j){return j(S)});return{criteria:E,index:++x,value:S}});return a(A,function(S,w){return l(S,w,g)})}return Ew=d,Ew}var Tw,UP;function yse(){if(UP)return Tw;UP=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 Tw=e,Tw}var jw,qP;function bse(){if(qP)return jw;qP=1;var e=yse(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),d=Array(f);++c<f;)d[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=o(d),e(r,this,m)}}return jw=n,jw}var Cw,HP;function xse(){if(HP)return Cw;HP=1;function e(t){return function(){return t}}return Cw=e,Cw}var Rw,FP;function HB(){if(FP)return Rw;FP=1;var e=zs(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Rw=t,Rw}var Nw,VP;function wse(){if(VP)return Nw;VP=1;var e=xse(),t=HB(),n=Nc(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return Nw=r,Nw}var Mw,GP;function Sse(){if(GP)return Mw;GP=1;var e=800,t=16,n=Date.now;function r(a){var o=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return Mw=r,Mw}var Pw,WP;function _se(){if(WP)return Pw;WP=1;var e=wse(),t=Sse(),n=t(e);return Pw=n,Pw}var Dw,YP;function Ase(){if(YP)return Dw;YP=1;var e=Nc(),t=bse(),n=_se();function r(a,o){return n(t(a,o,e),a+"")}return Dw=r,Dw}var kw,ZP;function zv(){if(ZP)return kw;ZP=1;var e=rO(),t=gd(),n=gO(),r=ko();function a(o,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],o):!1}return kw=a,kw}var $w,KP;function Ose(){if(KP)return $w;KP=1;var e=BB(),t=gse(),n=Ase(),r=zv(),a=n(function(o,l){if(o==null)return[];var c=l.length;return c>1&&r(o,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(o,e(l,1),[])});return $w=a,$w}var Ese=Ose();const wO=Bt(Ese);function pf(e){"@babel/helpers - typeof";return pf=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},pf(e)}function MS(){return MS=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},MS.apply(this,arguments)}function Tse(e,t){return Nse(e)||Rse(e,t)||Cse(e,t)||jse()}function jse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
432
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cse(e,t){if(e){if(typeof e=="string")return XP(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 XP(e,t)}}function XP(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 Rse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Nse(e){if(Array.isArray(e))return e}function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zw(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){Mse(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 Mse(e,t,n){return t=Pse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pse(e){var t=Dse(e,"string");return pf(t)=="symbol"?t:t+""}function Dse(e,t){if(pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kse(e){return Array.isArray(e)&&Rn(e[0])&&Rn(e[1])?e.join(" ~ "):e}var $se=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,o=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,h=t.formatter,g=t.itemSorter,x=t.wrapperClassName,A=t.labelClassName,S=t.label,w=t.labelFormatter,O=t.accessibilityLayer,E=O===void 0?!1:O,j=function(){if(m&&m.length){var I={padding:0,margin:0},F=(g?wO(m,g):m).map(function(G,Y){if(G.type==="none")return null;var $=zw({display:"block",paddingTop:4,paddingBottom:4,color:G.color||"#000"},c),q=G.formatter||h||kse,K=G.value,X=G.name,Z=K,P=X;if(q&&Z!=null&&P!=null){var H=q(K,X,G,Y,m);if(Array.isArray(H)){var J=Tse(H,2);Z=J[0],P=J[1]}else Z=H}return L.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Y),style:$},Rn(P)?L.createElement("span",{className:"recharts-tooltip-item-name"},P):null,Rn(P)?L.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,L.createElement("span",{className:"recharts-tooltip-item-value"},Z),L.createElement("span",{className:"recharts-tooltip-item-unit"},G.unit||""))});return L.createElement("ul",{className:"recharts-tooltip-item-list",style:I},F)}return null},C=zw({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),T=zw({margin:0},d),R=!gt(S),N=R?S:"",k=bt("recharts-default-tooltip",x),z=bt("recharts-tooltip-label",A);R&&w&&m!==void 0&&m!==null&&(N=w(S,m));var V=E?{role:"status","aria-live":"assertive"}:{};return L.createElement("div",MS({className:k,style:C},V),L.createElement("p",{className:z,style:T},L.isValidElement(N)?N:"".concat(N)),j())};function mf(e){"@babel/helpers - typeof";return mf=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},mf(e)}function Zh(e,t,n){return t=zse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zse(e){var t=Lse(e,"string");return mf(t)=="symbol"?t:t+""}function Lse(e,t){if(mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pu="recharts-tooltip-wrapper",Ise={visibility:"hidden"};function Bse(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return bt(Pu,Zh(Zh(Zh(Zh({},"".concat(Pu,"-right"),Ne(n)&&t&&Ne(t.x)&&n>=t.x),"".concat(Pu,"-left"),Ne(n)&&t&&Ne(t.x)&&n<t.x),"".concat(Pu,"-bottom"),Ne(r)&&t&&Ne(t.y)&&r>=t.y),"".concat(Pu,"-top"),Ne(r)&&t&&Ne(t.y)&&r<t.y))}function JP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,o=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(o&&Ne(o[r]))return o[r];var m=n[r]-c-a,h=n[r]+a;if(t[r])return l[r]?m:h;if(l[r]){var g=m,x=f[r];return g<x?Math.max(h,f[r]):Math.max(m,f[r])}var A=h+c,S=f[r]+d;return A>S?Math.max(m,f[r]):Math.max(h,f[r])}function Use(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 qse(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,h;return l.height>0&&l.width>0&&n?(m=JP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),h=JP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=Use({translateX:m,translateY:h,useTranslate3d:c})):d=Ise,{cssProperties:d,cssClasses:Bse({translateX:m,translateY:h,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 eD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function tD(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){DS(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 Hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fse(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,VB(r.key),r)}}function Vse(e,t,n){return t&&Fse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gse(e,t,n){return t=Jp(t),Wse(e,FB()?Reflect.construct(t,n||[],Jp(e).constructor):t.apply(e,n))}function Wse(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 Yse(e)}function Yse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FB=function(){return!!e})()}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jp(e)}function Zse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PS(e,t)}function PS(e,t){return PS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},PS(e,t)}function DS(e,t,n){return t=VB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VB(e){var t=Kse(e,"string");return Jl(t)=="symbol"?t:t+""}function Kse(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 nD=1,Xse=(function(e){function t(){var n;Hse(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Gse(this,t,[].concat(a)),DS(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),DS(n,"handleKeyDown",function(l){if(l.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 Zse(t,e),Vse(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>nD||Math.abs(r.height-this.state.lastBoundingBox.height)>nD)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.children,m=a.coordinate,h=a.hasPayload,g=a.isAnimationActive,x=a.offset,A=a.position,S=a.reverseDirection,w=a.useTranslate3d,O=a.viewBox,E=a.wrapperStyle,j=qse({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:x,position:A,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),C=j.cssClasses,T=j.cssProperties,R=tD(tD({transition:g&&o?"transform ".concat(c,"ms ").concat(f):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},E);return L.createElement("div",{tabIndex:-1,className:C,style:R,ref:function(k){r.wrapperNode=k}},d)}}])})(y.PureComponent),Qse=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Mc={isSsr:Qse()};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)}function rD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function aD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rD(Object(n),!0).forEach(function(r){SO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ele(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,WB(r.key),r)}}function tle(e,t,n){return t&&ele(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nle(e,t,n){return t=em(t),rle(e,GB()?Reflect.construct(t,n||[],em(e).constructor):t.apply(e,n))}function rle(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ale(e)}function ale(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GB=function(){return!!e})()}function em(e){return em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},em(e)}function ile(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&&kS(e,t)}function kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kS(e,t)}function SO(e,t,n){return t=WB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WB(e){var t=ole(e,"string");return ec(t)=="symbol"?t:t+""}function ole(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 String(e)}function sle(e){return e.dataKey}function lle(e,t){return L.isValidElement(e)?L.cloneElement(e,t):typeof e=="function"?L.createElement(e,t):L.createElement($se,t)}var Ia=(function(e){function t(){return Jse(this,t),nle(this,t,arguments)}return ile(t,e),tle(t,[{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.content,m=a.coordinate,h=a.filterNull,g=a.isAnimationActive,x=a.offset,A=a.payload,S=a.payloadUniqBy,w=a.position,O=a.reverseDirection,E=a.useTranslate3d,j=a.viewBox,C=a.wrapperStyle,T=A??[];h&&T.length&&(T=zB(A.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),S,sle));var R=T.length>0;return L.createElement(Xse,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:o,coordinate:m,hasPayload:R,offset:x,position:w,reverseDirection:O,useTranslate3d:E,viewBox:j,wrapperStyle:C},lle(d,aD(aD({},this.props),{},{payload:T})))}}])})(y.PureComponent);SO(Ia,"displayName","Tooltip");SO(Ia,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Mc.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 Lw,iD;function cle(){if(iD)return Lw;iD=1;var e=ti(),t=function(){return e.Date.now()};return Lw=t,Lw}var Iw,oD;function ule(){if(oD)return Iw;oD=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Iw=t,Iw}var Bw,sD;function fle(){if(sD)return Bw;sD=1;var e=ule(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Bw=n,Bw}var Uw,lD;function YB(){if(lD)return Uw;lD=1;var e=fle(),t=ko(),n=jc(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^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 h=o.test(d);return h||l.test(d)?c(d.slice(2),h?2:8):a.test(d)?r:+d}return Uw=f,Uw}var qw,cD;function dle(){if(cD)return qw;cD=1;var e=ko(),t=cle(),n=YB(),r="Expected a function",a=Math.max,o=Math.min;function l(c,f,d){var m,h,g,x,A,S,w=0,O=!1,E=!1,j=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(O=!!d.leading,E="maxWait"in d,g=E?a(n(d.maxWait)||0,f):g,j="trailing"in d?!!d.trailing:j);function C(F){var G=m,Y=h;return m=h=void 0,w=F,x=c.apply(Y,G),x}function T(F){return w=F,A=setTimeout(k,f),O?C(F):x}function R(F){var G=F-S,Y=F-w,$=f-G;return E?o($,g-Y):$}function N(F){var G=F-S,Y=F-w;return S===void 0||G>=f||G<0||E&&Y>=g}function k(){var F=t();if(N(F))return z(F);A=setTimeout(k,R(F))}function z(F){return A=void 0,j&&m?C(F):(m=h=void 0,x)}function V(){A!==void 0&&clearTimeout(A),w=0,m=S=h=A=void 0}function B(){return A===void 0?x:z(t())}function I(){var F=t(),G=N(F);if(m=arguments,h=this,S=F,G){if(A===void 0)return T(S);if(E)return clearTimeout(A),A=setTimeout(k,f),C(S)}return A===void 0&&(A=setTimeout(k,f)),x}return I.cancel=V,I.flush=B,I}return qw=l,qw}var Hw,uD;function hle(){if(uD)return Hw;uD=1;var e=dle(),t=ko(),n="Expected a function";function r(a,o,l){var c=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(a,o,{leading:c,maxWait:o,trailing:f})}return Hw=r,Hw}var ple=hle();const ZB=Bt(ple);function vf(e){"@babel/helpers - typeof";return vf=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},vf(e)}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){mle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mle(e,t,n){return t=vle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vle(e){var t=gle(e,"string");return vf(t)=="symbol"?t:t+""}function gle(e,t){if(vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yle(e,t){return Sle(e)||wle(e,t)||xle(e,t)||ble()}function ble(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
433
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xle(e,t){if(e){if(typeof e=="string")return dD(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 dD(e,t)}}function dD(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 wle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Sle(e){if(Array.isArray(e))return e}var _le=y.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,o=e.width,l=o===void 0?"100%":o,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,h=e.minHeight,g=e.maxHeight,x=e.children,A=e.debounce,S=A===void 0?0:A,w=e.id,O=e.className,E=e.onResize,j=e.style,C=j===void 0?{}:j,T=y.useRef(null),R=y.useRef();R.current=E,y.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var N=y.useState({containerWidth:a.width,containerHeight:a.height}),k=yle(N,2),z=k[0],V=k[1],B=y.useCallback(function(F,G){V(function(Y){var $=Math.round(F),q=Math.round(G);return Y.containerWidth===$&&Y.containerHeight===q?Y:{containerWidth:$,containerHeight:q}})},[]);y.useEffect(function(){var F=function(X){var Z,P=X[0].contentRect,H=P.width,J=P.height;B(H,J),(Z=R.current)===null||Z===void 0||Z.call(R,H,J)};S>0&&(F=ZB(F,S,{trailing:!0,leading:!1}));var G=new ResizeObserver(F),Y=T.current.getBoundingClientRect(),$=Y.width,q=Y.height;return B($,q),G.observe(T.current),function(){G.disconnect()}},[B,S]);var I=y.useMemo(function(){var F=z.containerWidth,G=z.containerHeight;if(F<0||G<0)return null;Ti(ds(l)||ds(f),`The width(%s) and height(%s) are both fixed numbers,
|
|
434
|
-
maybe you don't need to use a ResponsiveContainer.`,l,f),Ti(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Y=ds(l)?F:l,$=ds(f)?G:f;n&&n>0&&(Y?$=Y/n:$&&(Y=$*n),g&&$>g&&($=g)),Ti(Y>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
435
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
436
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
437
|
-
height and width.`,Y,$,l,f,m,h,n);var q=!Array.isArray(x)&&Ei(x.type).endsWith("Chart");return L.Children.map(x,function(K){return L.isValidElement(K)?y.cloneElement(K,Kh({width:Y,height:$},q?{style:Kh({height:"100%",width:"100%",maxHeight:$,maxWidth:Y},K.props.style)}:{})):K})},[n,x,f,g,h,m,z,l]);return L.createElement("div",{id:w?"".concat(w):void 0,className:bt("recharts-responsive-container",O),style:Kh(Kh({},C),{},{width:l,height:f,minWidth:m,minHeight:h,maxHeight:g}),ref:T},I)}),KB=function(t){return null};KB.displayName="Cell";function gf(e){"@babel/helpers - typeof";return gf=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},gf(e)}function hD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $S(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hD(Object(n),!0).forEach(function(r){Ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ale(e,t,n){return t=Ole(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ole(e){var t=Ele(e,"string");return gf(t)=="symbol"?t:t+""}function Ele(e,t){if(gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jl={widthCache:{},cacheCount:0},Tle=2e3,jle={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pD="recharts_measurement_span";function Cle(e){var t=$S({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Ju=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Mc.isSsr)return{width:0,height:0};var r=Cle(n),a=JSON.stringify({text:t,copyStyle:r});if(jl.widthCache[a])return jl.widthCache[a];try{var o=document.getElementById(pD);o||(o=document.createElement("span"),o.setAttribute("id",pD),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=$S($S({},jle),r);Object.assign(o.style,l),o.textContent="".concat(t);var c=o.getBoundingClientRect(),f={width:c.width,height:c.height};return jl.widthCache[a]=f,++jl.cacheCount>Tle&&(jl.cacheCount=0,jl.widthCache={}),f}catch{return{width:0,height:0}}},Rle=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function yf(e){"@babel/helpers - typeof";return yf=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},yf(e)}function tm(e,t){return Dle(e)||Ple(e,t)||Mle(e,t)||Nle()}function Nle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
438
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mle(e,t){if(e){if(typeof e=="string")return mD(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 mD(e,t)}}function mD(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 Ple(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Dle(e){if(Array.isArray(e))return e}function kle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vD(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,zle(r.key),r)}}function $le(e,t,n){return t&&vD(e.prototype,t),n&&vD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zle(e){var t=Lle(e,"string");return yf(t)=="symbol"?t:t+""}function Lle(e,t){if(yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ile=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ble=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,XB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Ule=Object.keys(XB),Ml="NaN";function qle(e,t){return e*XB[t]}var Xh=(function(){function e(t,n){kle(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Ile.test(n)&&(this.num=NaN,this.unit=""),Ule.includes(n)&&(this.num=qle(t,n),this.unit="px")}return $le(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,a=(r=Ble.exec(n))!==null&&r!==void 0?r:[],o=tm(a,3),l=o[1],c=o[2];return new e(parseFloat(l),c??"")}}])})();function QB(e){if(e.includes(Ml))return Ml;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=gD.exec(t))!==null&&n!==void 0?n:[],a=tm(r,4),o=a[1],l=a[2],c=a[3],f=Xh.parse(o??""),d=Xh.parse(c??""),m=l==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return Ml;t=t.replace(gD,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,g=(h=yD.exec(t))!==null&&h!==void 0?h:[],x=tm(g,4),A=x[1],S=x[2],w=x[3],O=Xh.parse(A??""),E=Xh.parse(w??""),j=S==="+"?O.add(E):O.subtract(E);if(j.isNaN())return Ml;t=t.replace(yD,j.toString())}return t}var bD=/\(([^()]*)\)/;function Hle(e){for(var t=e;t.includes("(");){var n=bD.exec(t),r=tm(n,2),a=r[1];t=t.replace(bD,QB(a))}return t}function Fle(e){var t=e.replace(/\s+/g,"");return t=Hle(t),t=QB(t),t}function Vle(e){try{return Fle(e)}catch{return Ml}}function Fw(e){var t=Vle(e.slice(5,-1));return t===Ml?"":t}var Gle=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Wle=["dx","dy","angle","className","breakAll"];function zS(){return zS=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},zS.apply(this,arguments)}function xD(e,t){if(e==null)return{};var n=Yle(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yle(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 wD(e,t){return Qle(e)||Xle(e,t)||Kle(e,t)||Zle()}function Zle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
439
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kle(e,t){if(e){if(typeof e=="string")return SD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SD(e,t)}}function SD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Qle(e){if(Array.isArray(e))return e}var JB=/[ \f\n\r\t\v\u2028\u2029]+/,e6=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var o=[];gt(n)||(r?o=n.toString().split(""):o=n.toString().split(JB));var l=o.map(function(f){return{word:f,width:Ju(f,a).width}}),c=r?0:Ju(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},Jle=function(t,n,r,a,o){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=Ne(l),h=c,g=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Y.reduce(function($,q){var K=q.word,X=q.width,Z=$[$.length-1];if(Z&&(a==null||o||Z.width+X+r<Number(a)))Z.words.push(K),Z.width+=X+r;else{var P={words:[K],width:X};$.push(P)}return $},[])},x=g(n),A=function(Y){return Y.reduce(function($,q){return $.width>q.width?$:q})};if(!m)return x;for(var S="…",w=function(Y){var $=h.slice(0,Y),q=e6({breakAll:d,style:f,children:$+S}).wordsWithComputedWidth,K=g(q),X=K.length>l||A(K).width>Number(a);return[X,K]},O=0,E=h.length-1,j=0,C;O<=E&&j<=h.length-1;){var T=Math.floor((O+E)/2),R=T-1,N=w(R),k=wD(N,2),z=k[0],V=k[1],B=w(T),I=wD(B,1),F=I[0];if(!z&&!F&&(O=T+1),z&&F&&(E=T-1),!z&&F){C=V;break}j++}return C||x},_D=function(t){var n=gt(t)?[]:t.toString().split(JB);return[{words:n}]},ece=function(t){var n=t.width,r=t.scaleToFit,a=t.children,o=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Mc.isSsr){var f,d,m=e6({breakAll:l,children:a,style:o});if(m){var h=m.wordsWithComputedWidth,g=m.spaceWidth;f=h,d=g}else return _D(a);return Jle({breakAll:l,children:a,maxLines:c,style:o},f,d,n,r)}return _D(a)},AD="#808080",nm=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,h=m===void 0?!1:m,g=t.textAnchor,x=g===void 0?"start":g,A=t.verticalAnchor,S=A===void 0?"end":A,w=t.fill,O=w===void 0?AD:w,E=xD(t,Gle),j=y.useMemo(function(){return ece({breakAll:E.breakAll,children:E.children,maxLines:E.maxLines,scaleToFit:h,style:E.style,width:E.width})},[E.breakAll,E.children,E.maxLines,h,E.style,E.width]),C=E.dx,T=E.dy,R=E.angle,N=E.className,k=E.breakAll,z=xD(E,Wle);if(!Rn(r)||!Rn(o))return null;var V=r+(Ne(C)?C:0),B=o+(Ne(T)?T:0),I;switch(S){case"start":I=Fw("calc(".concat(d,")"));break;case"middle":I=Fw("calc(".concat((j.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:I=Fw("calc(".concat(j.length-1," * -").concat(c,")"));break}var F=[];if(h){var G=j[0].width,Y=E.width;F.push("scale(".concat((Ne(Y)?Y/G:1)/G,")"))}return R&&F.push("rotate(".concat(R,", ").concat(V,", ").concat(B,")")),F.length&&(z.transform=F.join(" ")),L.createElement("text",zS({},dt(z,!0),{x:V,y:B,className:bt("recharts-text",N),textAnchor:x,fill:O.includes("url")?AD:O}),j.map(function($,q){var K=$.words.join(k?"":" ");return L.createElement("tspan",{x:V,dy:q===0?I:c,key:"".concat(K,"-").concat(q)},K)}))};function _o(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tce(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _O(e){let t,n,r;e.length!==2?(t=_o,n=(c,f)=>_o(e(c),f),r=(c,f)=>e(c)-f):(t=e===_o||e===tce?e:nce,n=e,r=e);function a(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const h=d+m>>>1;n(c[h],f)<0?d=h+1:m=h}while(d<m)}return d}function o(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const h=d+m>>>1;n(c[h],f)<=0?d=h+1:m=h}while(d<m)}return d}function l(c,f,d=0,m=c.length){const h=a(c,f,d,m-1);return h>d&&r(c[h-1],f)>-r(c[h],f)?h-1:h}return{left:a,center:l,right:o}}function nce(){return 0}function t6(e){return e===null?NaN:+e}function*rce(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const ace=_O(_o),yd=ace.right;_O(t6).center;class OD extends Map{constructor(t,n=sce){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(ED(this,t))}has(t){return super.has(ED(this,t))}set(t,n){return super.set(ice(this,t),n)}delete(t){return super.delete(oce(this,t))}}function ED({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ice({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function oce({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function sce(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lce(e=_o){if(e===_o)return n6;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 n6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const cce=Math.sqrt(50),uce=Math.sqrt(10),fce=Math.sqrt(2);function rm(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),l=o>=cce?10:o>=uce?5:o>=fce?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?rm(e,t,n*2):[c,f,d]}function LS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,l]=r?rm(t,e,n):rm(e,t,n);if(!(o>=a))return[];const c=o-a+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(o-d)/-l;else for(let d=0;d<c;++d)f[d]=(o-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(a+d)/-l;else for(let d=0;d<c;++d)f[d]=(a+d)*l;return f}function IS(e,t,n){return t=+t,e=+e,n=+n,rm(e,t,n)[2]}function BS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?IS(t,e,n):IS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function TD(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function jD(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function r6(e,t,n=0,r=1/0,a){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(a=a===void 0?n6:lce(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),h=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*h*(f-h)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*h/f+g)),A=Math.min(r,Math.floor(t+(f-d)*h/f+g));r6(e,t,x,A,a)}const o=e[t];let l=n,c=r;for(Du(e,n,t),a(e[r],o)>0&&Du(e,n,r);l<c;){for(Du(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Du(e,n,c):(++c,Du(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Du(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function dce(e,t,n){if(e=Float64Array.from(rce(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return jD(e);if(t>=1)return TD(e);var r,a=(r-1)*t,o=Math.floor(a),l=TD(r6(e,o).subarray(0,o+1)),c=jD(e.subarray(o+1));return l+(c-l)*(a-o)}}function hce(e,t,n=t6){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,a=(r-1)*t,o=Math.floor(a),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(a-o)}}function pce(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function ua(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Bi(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 US=Symbol("implicit");function AO(){var e=new OD,t=[],n=[],r=US;function a(o){let l=e.get(o);if(l===void 0){if(r!==US)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new OD;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return AO(t,n).unknown(r)},ua.apply(a,arguments),a}function bf(){var e=AO().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,l,c=!1,f=0,d=0,m=.5;delete e.unknown;function h(){var g=t().length,x=a<r,A=x?a:r,S=x?r:a;o=(S-A)/Math.max(1,g-f+d*2),c&&(o=Math.floor(o)),A+=(S-A-o*(g-f))*m,l=o*(1-f),c&&(A=Math.round(A),l=Math.round(l));var w=pce(g).map(function(O){return A+o*O});return n(x?w.reverse():w)}return e.domain=function(g){return arguments.length?(t(g),h()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,h()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,h()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(g){return arguments.length?(c=!!g,h()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),h()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),h()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,h()):d},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),h()):m},e.copy=function(){return bf(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(m)},ua.apply(h(),arguments)}function a6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a6(t())},e}function ef(){return a6(bf.apply(null,arguments).paddingInner(1))}function OO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i6(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bd(){}var xf=.7,am=1/xf,Ul="\\s*([+-]?\\d+)\\s*",wf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ya="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mce=/^#([0-9a-f]{3,8})$/,vce=new RegExp(`^rgb\\(${Ul},${Ul},${Ul}\\)$`),gce=new RegExp(`^rgb\\(${Ya},${Ya},${Ya}\\)$`),yce=new RegExp(`^rgba\\(${Ul},${Ul},${Ul},${wf}\\)$`),bce=new RegExp(`^rgba\\(${Ya},${Ya},${Ya},${wf}\\)$`),xce=new RegExp(`^hsl\\(${wf},${Ya},${Ya}\\)$`),wce=new RegExp(`^hsla\\(${wf},${Ya},${Ya},${wf}\\)$`),CD={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};OO(bd,Sf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:RD,formatHex:RD,formatHex8:Sce,formatHsl:_ce,formatRgb:ND,toString:ND});function RD(){return this.rgb().formatHex()}function Sce(){return this.rgb().formatHex8()}function _ce(){return o6(this).formatHsl()}function ND(){return this.rgb().formatRgb()}function Sf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?MD(t):n===3?new yr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Qh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Qh(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=vce.exec(e))?new yr(t[1],t[2],t[3],1):(t=gce.exec(e))?new yr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yce.exec(e))?Qh(t[1],t[2],t[3],t[4]):(t=bce.exec(e))?Qh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xce.exec(e))?kD(t[1],t[2]/100,t[3]/100,1):(t=wce.exec(e))?kD(t[1],t[2]/100,t[3]/100,t[4]):CD.hasOwnProperty(e)?MD(CD[e]):e==="transparent"?new yr(NaN,NaN,NaN,0):null}function MD(e){return new yr(e>>16&255,e>>8&255,e&255,1)}function Qh(e,t,n,r){return r<=0&&(e=t=n=NaN),new yr(e,t,n,r)}function Ace(e){return e instanceof bd||(e=Sf(e)),e?(e=e.rgb(),new yr(e.r,e.g,e.b,e.opacity)):new yr}function qS(e,t,n,r){return arguments.length===1?Ace(e):new yr(e,t,n,r??1)}function yr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}OO(yr,qS,i6(bd,{brighter(e){return e=e==null?am:Math.pow(am,e),new yr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?xf:Math.pow(xf,e),new yr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yr(gs(this.r),gs(this.g),gs(this.b),im(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:PD,formatHex:PD,formatHex8:Oce,formatRgb:DD,toString:DD}));function PD(){return`#${hs(this.r)}${hs(this.g)}${hs(this.b)}`}function Oce(){return`#${hs(this.r)}${hs(this.g)}${hs(this.b)}${hs((isNaN(this.opacity)?1:this.opacity)*255)}`}function DD(){const e=im(this.opacity);return`${e===1?"rgb(":"rgba("}${gs(this.r)}, ${gs(this.g)}, ${gs(this.b)}${e===1?")":`, ${e})`}`}function im(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hs(e){return e=gs(e),(e<16?"0":"")+e.toString(16)}function kD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new xa(e,t,n,r)}function o6(e){if(e instanceof xa)return new xa(e.h,e.s,e.l,e.opacity);if(e instanceof bd||(e=Sf(e)),!e)return new xa;if(e instanceof xa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-a,f=(o+a)/2;return c?(t===o?l=(n-r)/c+(n<r)*6:n===o?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?o+a:2-o-a,l*=60):c=f>0&&f<1?0:l,new xa(l,c,f,e.opacity)}function Ece(e,t,n,r){return arguments.length===1?o6(e):new xa(e,t,n,r??1)}function xa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}OO(xa,Ece,i6(bd,{brighter(e){return e=e==null?am:Math.pow(am,e),new xa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?xf:Math.pow(xf,e),new xa(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,a=2*n-r;return new yr(Vw(e>=240?e-240:e+120,a,r),Vw(e,a,r),Vw(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new xa($D(this.h),Jh(this.s),Jh(this.l),im(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=im(this.opacity);return`${e===1?"hsl(":"hsla("}${$D(this.h)}, ${Jh(this.s)*100}%, ${Jh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $D(e){return e=(e||0)%360,e<0?e+360:e}function Jh(e){return Math.max(0,Math.min(1,e||0))}function Vw(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 EO=e=>()=>e;function Tce(e,t){return function(n){return e+n*t}}function jce(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 Cce(e){return(e=+e)==1?s6:function(t,n){return n-t?jce(t,n,e):EO(isNaN(t)?n:t)}}function s6(e,t){var n=t-e;return n?Tce(e,n):EO(isNaN(e)?t:e)}const zD=(function e(t){var n=Cce(t);function r(a,o){var l=n((a=qS(a)).r,(o=qS(o)).r),c=n(a.g,o.g),f=n(a.b,o.b),d=s6(a.opacity,o.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=d(m),a+""}}return r.gamma=e,r})(1);function Rce(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function Nce(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Mce(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=Pc(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function Pce(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function om(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Dce(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Pc(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var HS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gw=new RegExp(HS.source,"g");function kce(e){return function(){return e}}function $ce(e){return function(t){return e(t)+""}}function zce(e,t){var n=HS.lastIndex=Gw.lastIndex=0,r,a,o,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=HS.exec(e))&&(a=Gw.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:om(r,a)})),n=Gw.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?f[0]?$ce(f[0].x):kce(t):(t=f.length,function(d){for(var m=0,h;m<t;++m)c[(h=f[m]).i]=h.x(d);return c.join("")})}function Pc(e,t){var n=typeof t,r;return t==null||n==="boolean"?EO(t):(n==="number"?om:n==="string"?(r=Sf(t))?(t=r,zD):zce:t instanceof Sf?zD:t instanceof Date?Pce:Nce(t)?Rce:Array.isArray(t)?Mce:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Dce:om)(e,t)}function TO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Lce(e,t){t===void 0&&(t=e,e=Pc);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function Ice(e){return function(){return e}}function sm(e){return+e}var LD=[0,1];function lr(e){return e}function FS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ice(isNaN(t)?NaN:.5)}function Bce(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Uce(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=FS(a,r),o=n(l,o)):(r=FS(r,a),o=n(o,l)),function(c){return o(r(c))}}function qce(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=FS(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var f=yd(e,c,1,r)-1;return o[f](a[f](c))}}function xd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Lv(){var e=LD,t=LD,n=Pc,r,a,o,l=lr,c,f,d;function m(){var g=Math.min(e.length,t.length);return l!==lr&&(l=Bce(e[0],e[g-1])),c=g>2?qce:Uce,f=d=null,h}function h(g){return g==null||isNaN(g=+g)?o:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return h.invert=function(g){return l(a((d||(d=c(t,e.map(r),om)))(g)))},h.domain=function(g){return arguments.length?(e=Array.from(g,sm),m()):e.slice()},h.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},h.rangeRound=function(g){return t=Array.from(g),n=TO,m()},h.clamp=function(g){return arguments.length?(l=g?!0:lr,m()):l!==lr},h.interpolate=function(g){return arguments.length?(n=g,m()):n},h.unknown=function(g){return arguments.length?(o=g,h):o},function(g,x){return r=g,a=x,m()}}function jO(){return Lv()(lr,lr)}function Hce(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lm(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function tc(e){return e=lm(Math.abs(e)),e?e[1]:NaN}function Fce(e,t){return function(n,r){for(var a=n.length,o=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),o.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function Vce(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Gce=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _f(e){if(!(t=Gce.exec(e)))throw new Error("invalid format: "+e);var t;return new CO({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]})}_f.prototype=CO.prototype;function CO(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+""}CO.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 Wce(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var cm;function Yce(e,t){var n=lm(e,t);if(!n)return cm=void 0,e.toPrecision(t);var r=n[0],a=n[1],o=a-(cm=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+lm(e,Math.max(0,t+o-1))[0]}function ID(e,t){var n=lm(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const BD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Hce,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)=>ID(e*100,t),r:ID,s:Yce,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function UD(e){return e}var qD=Array.prototype.map,HD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zce(e){var t=e.grouping===void 0||e.thousands===void 0?UD:Fce(qD.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?UD:Vce(qD.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(h,g){h=_f(h);var x=h.fill,A=h.align,S=h.sign,w=h.symbol,O=h.zero,E=h.width,j=h.comma,C=h.precision,T=h.trim,R=h.type;R==="n"?(j=!0,R="g"):BD[R]||(C===void 0&&(C=12),T=!0,R="g"),(O||x==="0"&&A==="=")&&(O=!0,x="0",A="=");var N=(g&&g.prefix!==void 0?g.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(R)?"0"+R.toLowerCase():""),k=(w==="$"?r:/[%p]/.test(R)?l:"")+(g&&g.suffix!==void 0?g.suffix:""),z=BD[R],V=/[defgprs%]/.test(R);C=C===void 0?6:/[gprs]/.test(R)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function B(I){var F=N,G=k,Y,$,q;if(R==="c")G=z(I)+G,I="";else{I=+I;var K=I<0||1/I<0;if(I=isNaN(I)?f:z(Math.abs(I),C),T&&(I=Wce(I)),K&&+I==0&&S!=="+"&&(K=!1),F=(K?S==="("?S:c:S==="-"||S==="("?"":S)+F,G=(R==="s"&&!isNaN(I)&&cm!==void 0?HD[8+cm/3]:"")+G+(K&&S==="("?")":""),V){for(Y=-1,$=I.length;++Y<$;)if(q=I.charCodeAt(Y),48>q||q>57){G=(q===46?a+I.slice(Y+1):I.slice(Y))+G,I=I.slice(0,Y);break}}}j&&!O&&(I=t(I,1/0));var X=F.length+I.length+G.length,Z=X<E?new Array(E-X+1).join(x):"";switch(j&&O&&(I=t(Z+I,Z.length?E-G.length:1/0),Z=""),A){case"<":I=F+I+G+Z;break;case"=":I=F+Z+I+G;break;case"^":I=Z.slice(0,X=Z.length>>1)+F+I+G+Z.slice(X);break;default:I=Z+F+I+G;break}return o(I)}return B.toString=function(){return h+""},B}function m(h,g){var x=Math.max(-8,Math.min(8,Math.floor(tc(g)/3)))*3,A=Math.pow(10,-x),S=d((h=_f(h),h.type="f",h),{suffix:HD[8+x/3]});return function(w){return S(A*w)}}return{format:d,formatPrefix:m}}var ep,RO,l6;Kce({thousands:",",grouping:[3],currency:["$",""]});function Kce(e){return ep=Zce(e),RO=ep.format,l6=ep.formatPrefix,ep}function Xce(e){return Math.max(0,-tc(Math.abs(e)))}function Qce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tc(t)/3)))*3-tc(Math.abs(e)))}function Jce(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tc(t)-tc(e))+1}function c6(e,t,n,r){var a=BS(e,t,n),o;switch(r=_f(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Qce(a,l))&&(r.precision=o),l6(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Jce(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Xce(a))&&(r.precision=o-(r.type==="%")*2);break}}return RO(r)}function zo(e){var t=e.domain;return e.ticks=function(n){var r=t();return LS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return c6(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,l=r[a],c=r[o],f,d,m=10;for(c<l&&(d=l,l=c,c=d,d=a,a=o,o=d);m-- >0;){if(d=IS(l,c,n),d===f)return r[a]=l,r[o]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function um(){var e=jO();return e.copy=function(){return xd(e,um())},ua.apply(e,arguments),zo(e)}function u6(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,sm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return u6(e).unknown(t)},e=arguments.length?Array.from(e,sm):[0,1],zo(n)}function f6(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],l;return o<a&&(l=n,n=r,r=l,l=a,a=o,o=l),e[n]=t.floor(a),e[r]=t.ceil(o),e}function FD(e){return Math.log(e)}function VD(e){return Math.exp(e)}function eue(e){return-Math.log(-e)}function tue(e){return-Math.exp(-e)}function nue(e){return isFinite(e)?+("1e"+e):e<0?0:e}function rue(e){return e===10?nue:e===Math.E?Math.exp:t=>Math.pow(e,t)}function aue(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 GD(e){return(t,n)=>-e(-t,n)}function NO(e){const t=e(FD,VD),n=t.domain;let r=10,a,o;function l(){return a=aue(r),o=rue(r),n()[0]<0?(a=GD(a),o=GD(o),e(eue,tue)):e(FD,VD),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const h=m<d;h&&([d,m]=[m,d]);let g=a(d),x=a(m),A,S;const w=c==null?10:+c;let O=[];if(!(r%1)&&x-g<w){if(g=Math.floor(g),x=Math.ceil(x),d>0){for(;g<=x;++g)for(A=1;A<r;++A)if(S=g<0?A/o(-g):A*o(g),!(S<d)){if(S>m)break;O.push(S)}}else for(;g<=x;++g)for(A=r-1;A>=1;--A)if(S=g>0?A/o(-g):A*o(g),!(S<d)){if(S>m)break;O.push(S)}O.length*2<w&&(O=LS(d,m,w))}else O=LS(g,x,Math.min(x-g,w)).map(o);return h?O.reverse():O},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=_f(f)).precision==null&&(f.trim=!0),f=RO(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let h=m/o(Math.round(a(m)));return h*r<r-.5&&(h*=r),h<=d?f(m):""}},t.nice=()=>n(f6(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function d6(){const e=NO(Lv()).domain([1,10]);return e.copy=()=>xd(e,d6()).base(e.base()),ua.apply(e,arguments),e}function WD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function YD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function MO(e){var t=1,n=e(WD(t),YD(t));return n.constant=function(r){return arguments.length?e(WD(t=+r),YD(t)):t},zo(n)}function h6(){var e=MO(Lv());return e.copy=function(){return xd(e,h6()).constant(e.constant())},ua.apply(e,arguments)}function ZD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iue(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function oue(e){return e<0?-e*e:e*e}function PO(e){var t=e(lr,lr),n=1;function r(){return n===1?e(lr,lr):n===.5?e(iue,oue):e(ZD(n),ZD(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},zo(t)}function DO(){var e=PO(Lv());return e.copy=function(){return xd(e,DO()).exponent(e.exponent())},ua.apply(e,arguments),e}function sue(){return DO.apply(null,arguments).exponent(.5)}function KD(e){return Math.sign(e)*e*e}function lue(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function p6(){var e=jO(),t=[0,1],n=!1,r;function a(o){var l=lue(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(KD(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,sm)).map(KD)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return p6(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ua.apply(a,arguments),zo(a)}function m6(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=hce(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[yd(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(_o),a()},o.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return m6().domain(e).range(t).unknown(r)},ua.apply(o,arguments)}function v6(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(f){return f!=null&&f<=f?a[yd(r,f,0,n)]:o}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(o=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return v6().domain([e,t]).range(a).unknown(o)},ua.apply(zo(l),arguments)}function g6(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[yd(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return g6().domain(e).range(t).unknown(n)},ua.apply(a,arguments)}const Ww=new Date,Yw=new Date;function Nn(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const f=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return f;let d;do f.push(d=new Date(+o)),t(o,c),e(o);while(d<o&&o<l);return f},a.filter=o=>Nn(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(a.count=(o,l)=>(Ww.setTime(+o),Yw.setTime(+l),e(Ww),e(Yw),Math.floor(n(Ww,Yw))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?l=>r(l)%o===0:l=>a.count(0,l)%o===0):a)),a}const fm=Nn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Nn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fm);fm.range;const _i=1e3,na=_i*60,Ai=na*60,Mi=Ai*24,kO=Mi*7,XD=Mi*30,Zw=Mi*365,ps=Nn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*_i)},(e,t)=>(t-e)/_i,e=>e.getUTCSeconds());ps.range;const $O=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getMinutes());$O.range;const zO=Nn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getUTCMinutes());zO.range;const LO=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_i-e.getMinutes()*na)},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getHours());LO.range;const IO=Nn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getUTCHours());IO.range;const wd=Nn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*na)/Mi,e=>e.getDate()-1);wd.range;const Iv=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mi,e=>e.getUTCDate()-1);Iv.range;const y6=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Mi,e=>Math.floor(e/Mi));y6.range;function Ls(e){return Nn(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())*na)/kO)}const Bv=Ls(0),dm=Ls(1),cue=Ls(2),uue=Ls(3),nc=Ls(4),fue=Ls(5),due=Ls(6);Bv.range;dm.range;cue.range;uue.range;nc.range;fue.range;due.range;function Is(e){return Nn(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)/kO)}const Uv=Is(0),hm=Is(1),hue=Is(2),pue=Is(3),rc=Is(4),mue=Is(5),vue=Is(6);Uv.range;hm.range;hue.range;pue.range;rc.range;mue.range;vue.range;const BO=Nn(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());BO.range;const UO=Nn(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());UO.range;const Pi=Nn(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(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)});Pi.range;const Di=Nn(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());Di.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(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)});Di.range;function b6(e,t,n,r,a,o){const l=[[ps,1,_i],[ps,5,5*_i],[ps,15,15*_i],[ps,30,30*_i],[o,1,na],[o,5,5*na],[o,15,15*na],[o,30,30*na],[a,1,Ai],[a,3,3*Ai],[a,6,6*Ai],[a,12,12*Ai],[r,1,Mi],[r,2,2*Mi],[n,1,kO],[t,1,XD],[t,3,3*XD],[e,1,Zw]];function c(d,m,h){const g=m<d;g&&([d,m]=[m,d]);const x=h&&typeof h.range=="function"?h:f(d,m,h),A=x?x.range(d,+m+1):[];return g?A.reverse():A}function f(d,m,h){const g=Math.abs(m-d)/h,x=_O(([,,w])=>w).right(l,g);if(x===l.length)return e.every(BS(d/Zw,m/Zw,h));if(x===0)return fm.every(Math.max(BS(d,m,h),1));const[A,S]=l[g/l[x-1][2]<l[x][2]/g?x-1:x];return A.every(S)}return[c,f]}const[gue,yue]=b6(Di,UO,Uv,y6,IO,zO),[bue,xue]=b6(Pi,BO,Bv,wd,LO,$O);function Kw(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 Xw(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 ku(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function wue(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=$u(a),m=zu(a),h=$u(o),g=zu(o),x=$u(l),A=zu(l),S=$u(c),w=zu(c),O=$u(f),E=zu(f),j={a:q,A:K,b:X,B:Z,c:null,d:rk,e:rk,f:Fue,g:efe,G:nfe,H:Uue,I:que,j:Hue,L:x6,m:Vue,M:Gue,p:P,q:H,Q:ok,s:sk,S:Wue,u:Yue,U:Zue,V:Kue,w:Xue,W:Que,x:null,X:null,y:Jue,Y:tfe,Z:rfe,"%":ik},C={a:J,A:fe,b:ye,B:ce,c:null,d:ak,e:ak,f:sfe,g:gfe,G:bfe,H:afe,I:ife,j:ofe,L:S6,m:lfe,M:cfe,p:he,q:we,Q:ok,s:sk,S:ufe,u:ffe,U:dfe,V:hfe,w:pfe,W:mfe,x:null,X:null,y:vfe,Y:yfe,Z:xfe,"%":ik},T={a:V,A:B,b:I,B:F,c:G,d:tk,e:tk,f:zue,g:ek,G:JD,H:nk,I:nk,j:Pue,L:$ue,m:Mue,M:Due,p:z,q:Nue,Q:Iue,s:Bue,S:kue,u:Eue,U:Tue,V:jue,w:Oue,W:Cue,x:Y,X:$,y:ek,Y:JD,Z:Rue,"%":Lue};j.x=R(n,j),j.X=R(r,j),j.c=R(t,j),C.x=R(n,C),C.X=R(r,C),C.c=R(t,C);function R(se,Oe){return function(_e){var ie=[],Ge=-1,ze=0,Je=se.length,Ke,st,Tt;for(_e instanceof Date||(_e=new Date(+_e));++Ge<Je;)se.charCodeAt(Ge)===37&&(ie.push(se.slice(ze,Ge)),(st=QD[Ke=se.charAt(++Ge)])!=null?Ke=se.charAt(++Ge):st=Ke==="e"?" ":"0",(Tt=Oe[Ke])&&(Ke=Tt(_e,st)),ie.push(Ke),ze=Ge+1);return ie.push(se.slice(ze,Ge)),ie.join("")}}function N(se,Oe){return function(_e){var ie=ku(1900,void 0,1),Ge=k(ie,se,_e+="",0),ze,Je;if(Ge!=_e.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(Oe&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(ze=Xw(ku(ie.y,0,1)),Je=ze.getUTCDay(),ze=Je>4||Je===0?hm.ceil(ze):hm(ze),ze=Iv.offset(ze,(ie.V-1)*7),ie.y=ze.getUTCFullYear(),ie.m=ze.getUTCMonth(),ie.d=ze.getUTCDate()+(ie.w+6)%7):(ze=Kw(ku(ie.y,0,1)),Je=ze.getDay(),ze=Je>4||Je===0?dm.ceil(ze):dm(ze),ze=wd.offset(ze,(ie.V-1)*7),ie.y=ze.getFullYear(),ie.m=ze.getMonth(),ie.d=ze.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),Je="Z"in ie?Xw(ku(ie.y,0,1)).getUTCDay():Kw(ku(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(Je+5)%7:ie.w+ie.U*7-(Je+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,Xw(ie)):Kw(ie)}}function k(se,Oe,_e,ie){for(var Ge=0,ze=Oe.length,Je=_e.length,Ke,st;Ge<ze;){if(ie>=Je)return-1;if(Ke=Oe.charCodeAt(Ge++),Ke===37){if(Ke=Oe.charAt(Ge++),st=T[Ke in QD?Oe.charAt(Ge++):Ke],!st||(ie=st(se,_e,ie))<0)return-1}else if(Ke!=_e.charCodeAt(ie++))return-1}return ie}function z(se,Oe,_e){var ie=d.exec(Oe.slice(_e));return ie?(se.p=m.get(ie[0].toLowerCase()),_e+ie[0].length):-1}function V(se,Oe,_e){var ie=x.exec(Oe.slice(_e));return ie?(se.w=A.get(ie[0].toLowerCase()),_e+ie[0].length):-1}function B(se,Oe,_e){var ie=h.exec(Oe.slice(_e));return ie?(se.w=g.get(ie[0].toLowerCase()),_e+ie[0].length):-1}function I(se,Oe,_e){var ie=O.exec(Oe.slice(_e));return ie?(se.m=E.get(ie[0].toLowerCase()),_e+ie[0].length):-1}function F(se,Oe,_e){var ie=S.exec(Oe.slice(_e));return ie?(se.m=w.get(ie[0].toLowerCase()),_e+ie[0].length):-1}function G(se,Oe,_e){return k(se,t,Oe,_e)}function Y(se,Oe,_e){return k(se,n,Oe,_e)}function $(se,Oe,_e){return k(se,r,Oe,_e)}function q(se){return l[se.getDay()]}function K(se){return o[se.getDay()]}function X(se){return f[se.getMonth()]}function Z(se){return c[se.getMonth()]}function P(se){return a[+(se.getHours()>=12)]}function H(se){return 1+~~(se.getMonth()/3)}function J(se){return l[se.getUTCDay()]}function fe(se){return o[se.getUTCDay()]}function ye(se){return f[se.getUTCMonth()]}function ce(se){return c[se.getUTCMonth()]}function he(se){return a[+(se.getUTCHours()>=12)]}function we(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var Oe=R(se+="",j);return Oe.toString=function(){return se},Oe},parse:function(se){var Oe=N(se+="",!1);return Oe.toString=function(){return se},Oe},utcFormat:function(se){var Oe=R(se+="",C);return Oe.toString=function(){return se},Oe},utcParse:function(se){var Oe=N(se+="",!0);return Oe.toString=function(){return se},Oe}}}var QD={"-":"",_:" ",0:"0"},kn=/^\s*\d+/,Sue=/^%/,_ue=/[\\^$*+?|[\]().{}]/g;function _t(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function Aue(e){return e.replace(_ue,"\\$&")}function $u(e){return new RegExp("^(?:"+e.map(Aue).join("|")+")","i")}function zu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Oue(e,t,n){var r=kn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Eue(e,t,n){var r=kn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Tue(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function jue(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Cue(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function JD(e,t,n){var r=kn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ek(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rue(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 Nue(e,t,n){var r=kn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Mue(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tk(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Pue(e,t,n){var r=kn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nk(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Due(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function kue(e,t,n){var r=kn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function $ue(e,t,n){var r=kn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function zue(e,t,n){var r=kn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Lue(e,t,n){var r=Sue.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Iue(e,t,n){var r=kn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Bue(e,t,n){var r=kn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rk(e,t){return _t(e.getDate(),t,2)}function Uue(e,t){return _t(e.getHours(),t,2)}function que(e,t){return _t(e.getHours()%12||12,t,2)}function Hue(e,t){return _t(1+wd.count(Pi(e),e),t,3)}function x6(e,t){return _t(e.getMilliseconds(),t,3)}function Fue(e,t){return x6(e,t)+"000"}function Vue(e,t){return _t(e.getMonth()+1,t,2)}function Gue(e,t){return _t(e.getMinutes(),t,2)}function Wue(e,t){return _t(e.getSeconds(),t,2)}function Yue(e){var t=e.getDay();return t===0?7:t}function Zue(e,t){return _t(Bv.count(Pi(e)-1,e),t,2)}function w6(e){var t=e.getDay();return t>=4||t===0?nc(e):nc.ceil(e)}function Kue(e,t){return e=w6(e),_t(nc.count(Pi(e),e)+(Pi(e).getDay()===4),t,2)}function Xue(e){return e.getDay()}function Que(e,t){return _t(dm.count(Pi(e)-1,e),t,2)}function Jue(e,t){return _t(e.getFullYear()%100,t,2)}function efe(e,t){return e=w6(e),_t(e.getFullYear()%100,t,2)}function tfe(e,t){return _t(e.getFullYear()%1e4,t,4)}function nfe(e,t){var n=e.getDay();return e=n>=4||n===0?nc(e):nc.ceil(e),_t(e.getFullYear()%1e4,t,4)}function rfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_t(t/60|0,"0",2)+_t(t%60,"0",2)}function ak(e,t){return _t(e.getUTCDate(),t,2)}function afe(e,t){return _t(e.getUTCHours(),t,2)}function ife(e,t){return _t(e.getUTCHours()%12||12,t,2)}function ofe(e,t){return _t(1+Iv.count(Di(e),e),t,3)}function S6(e,t){return _t(e.getUTCMilliseconds(),t,3)}function sfe(e,t){return S6(e,t)+"000"}function lfe(e,t){return _t(e.getUTCMonth()+1,t,2)}function cfe(e,t){return _t(e.getUTCMinutes(),t,2)}function ufe(e,t){return _t(e.getUTCSeconds(),t,2)}function ffe(e){var t=e.getUTCDay();return t===0?7:t}function dfe(e,t){return _t(Uv.count(Di(e)-1,e),t,2)}function _6(e){var t=e.getUTCDay();return t>=4||t===0?rc(e):rc.ceil(e)}function hfe(e,t){return e=_6(e),_t(rc.count(Di(e),e)+(Di(e).getUTCDay()===4),t,2)}function pfe(e){return e.getUTCDay()}function mfe(e,t){return _t(hm.count(Di(e)-1,e),t,2)}function vfe(e,t){return _t(e.getUTCFullYear()%100,t,2)}function gfe(e,t){return e=_6(e),_t(e.getUTCFullYear()%100,t,2)}function yfe(e,t){return _t(e.getUTCFullYear()%1e4,t,4)}function bfe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rc(e):rc.ceil(e),_t(e.getUTCFullYear()%1e4,t,4)}function xfe(){return"+0000"}function ik(){return"%"}function ok(e){return+e}function sk(e){return Math.floor(+e/1e3)}var Cl,A6,O6;wfe({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 wfe(e){return Cl=wue(e),A6=Cl.format,Cl.parse,O6=Cl.utcFormat,Cl.utcParse,Cl}function Sfe(e){return new Date(e)}function _fe(e){return e instanceof Date?+e:+new Date(+e)}function qO(e,t,n,r,a,o,l,c,f,d){var m=jO(),h=m.invert,g=m.domain,x=d(".%L"),A=d(":%S"),S=d("%I:%M"),w=d("%I %p"),O=d("%a %d"),E=d("%b %d"),j=d("%B"),C=d("%Y");function T(R){return(f(R)<R?x:c(R)<R?A:l(R)<R?S:o(R)<R?w:r(R)<R?a(R)<R?O:E:n(R)<R?j:C)(R)}return m.invert=function(R){return new Date(h(R))},m.domain=function(R){return arguments.length?g(Array.from(R,_fe)):g().map(Sfe)},m.ticks=function(R){var N=g();return e(N[0],N[N.length-1],R??10)},m.tickFormat=function(R,N){return N==null?T:d(N)},m.nice=function(R){var N=g();return(!R||typeof R.range!="function")&&(R=t(N[0],N[N.length-1],R??10)),R?g(f6(N,R)):m},m.copy=function(){return xd(m,qO(e,t,n,r,a,o,l,c,f,d))},m}function Afe(){return ua.apply(qO(bue,xue,Pi,BO,Bv,wd,LO,$O,ps,A6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Ofe(){return ua.apply(qO(gue,yue,Di,UO,Uv,Iv,IO,zO,ps,O6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function qv(){var e=0,t=1,n,r,a,o,l=lr,c=!1,f;function d(h){return h==null||isNaN(h=+h)?f:l(a===0?.5:(h=(o(h)-n)*a,c?Math.max(0,Math.min(1,h)):h))}d.domain=function(h){return arguments.length?([e,t]=h,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(h){return arguments.length?(c=!!h,d):c},d.interpolator=function(h){return arguments.length?(l=h,d):l};function m(h){return function(g){var x,A;return arguments.length?([x,A]=g,l=h(x,A),d):[l(0),l(1)]}}return d.range=m(Pc),d.rangeRound=m(TO),d.unknown=function(h){return arguments.length?(f=h,d):f},function(h){return o=h,n=h(e),r=h(t),a=n===r?0:1/(r-n),d}}function Lo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function E6(){var e=zo(qv()(lr));return e.copy=function(){return Lo(e,E6())},Bi.apply(e,arguments)}function T6(){var e=NO(qv()).domain([1,10]);return e.copy=function(){return Lo(e,T6()).base(e.base())},Bi.apply(e,arguments)}function j6(){var e=MO(qv());return e.copy=function(){return Lo(e,j6()).constant(e.constant())},Bi.apply(e,arguments)}function HO(){var e=PO(qv());return e.copy=function(){return Lo(e,HO()).exponent(e.exponent())},Bi.apply(e,arguments)}function Efe(){return HO.apply(null,arguments).exponent(.5)}function C6(){var e=[],t=lr;function n(r){if(r!=null&&!isNaN(r=+r))return t((yd(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(_o),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>dce(e,o/r))},n.copy=function(){return C6(t).domain(e)},Bi.apply(n,arguments)}function Hv(){var e=0,t=.5,n=1,r=1,a,o,l,c,f,d=lr,m,h=!1,g;function x(S){return isNaN(S=+S)?g:(S=.5+((S=+m(S))-o)*(r*S<r*o?c:f),d(h?Math.max(0,Math.min(1,S)):S))}x.domain=function(S){return arguments.length?([e,t,n]=S,a=m(e=+e),o=m(t=+t),l=m(n=+n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,x):[e,t,n]},x.clamp=function(S){return arguments.length?(h=!!S,x):h},x.interpolator=function(S){return arguments.length?(d=S,x):d};function A(S){return function(w){var O,E,j;return arguments.length?([O,E,j]=w,d=Lce(S,[O,E,j]),x):[d(0),d(.5),d(1)]}}return x.range=A(Pc),x.rangeRound=A(TO),x.unknown=function(S){return arguments.length?(g=S,x):g},function(S){return m=S,a=S(e),o=S(t),l=S(n),c=a===o?0:.5/(o-a),f=o===l?0:.5/(l-o),r=o<a?-1:1,x}}function R6(){var e=zo(Hv()(lr));return e.copy=function(){return Lo(e,R6())},Bi.apply(e,arguments)}function N6(){var e=NO(Hv()).domain([.1,1,10]);return e.copy=function(){return Lo(e,N6()).base(e.base())},Bi.apply(e,arguments)}function M6(){var e=MO(Hv());return e.copy=function(){return Lo(e,M6()).constant(e.constant())},Bi.apply(e,arguments)}function FO(){var e=PO(Hv());return e.copy=function(){return Lo(e,FO()).exponent(e.exponent())},Bi.apply(e,arguments)}function Tfe(){return FO.apply(null,arguments).exponent(.5)}const lk=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:bf,scaleDiverging:R6,scaleDivergingLog:N6,scaleDivergingPow:FO,scaleDivergingSqrt:Tfe,scaleDivergingSymlog:M6,scaleIdentity:u6,scaleImplicit:US,scaleLinear:um,scaleLog:d6,scaleOrdinal:AO,scalePoint:ef,scalePow:DO,scaleQuantile:m6,scaleQuantize:v6,scaleRadial:p6,scaleSequential:E6,scaleSequentialLog:T6,scaleSequentialPow:HO,scaleSequentialQuantile:C6,scaleSequentialSqrt:Efe,scaleSequentialSymlog:j6,scaleSqrt:sue,scaleSymlog:h6,scaleThreshold:g6,scaleTime:Afe,scaleUtc:Ofe,tickFormat:c6},Symbol.toStringTag,{value:"Module"}));var Qw,ck;function P6(){if(ck)return Qw;ck=1;var e=jc();function t(n,r,a){for(var o=-1,l=n.length;++o<l;){var c=n[o],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):a(f,d)))var d=f,m=c}return m}return Qw=t,Qw}var Jw,uk;function jfe(){if(uk)return Jw;uk=1;function e(t,n){return t>n}return Jw=e,Jw}var e1,fk;function Cfe(){if(fk)return e1;fk=1;var e=P6(),t=jfe(),n=Nc();function r(a){return a&&a.length?e(a,n,t):void 0}return e1=r,e1}var Rfe=Cfe();const bo=Bt(Rfe);var t1,dk;function Nfe(){if(dk)return t1;dk=1;function e(t,n){return t<n}return t1=e,t1}var n1,hk;function Mfe(){if(hk)return n1;hk=1;var e=P6(),t=Nfe(),n=Nc();function r(a){return a&&a.length?e(a,n,t):void 0}return n1=r,n1}var Pfe=Mfe();const Fv=Bt(Pfe);var r1,pk;function Dfe(){if(pk)return r1;pk=1;var e=oO(),t=$o(),n=qB(),r=br();function a(o,l){var c=r(o)?e:n;return c(o,t(l,3))}return r1=a,r1}var a1,mk;function kfe(){if(mk)return a1;mk=1;var e=BB(),t=Dfe();function n(r,a){return e(t(r,a),1)}return a1=n,a1}var $fe=kfe();const zfe=Bt($fe);var i1,vk;function Lfe(){if(vk)return i1;vk=1;var e=bO();function t(n,r){return e(n,r)}return i1=t,i1}var Ife=Lfe();const Af=Bt(Ife);var Dc=1e9,Bfe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},GO,Xt=!0,oa="[DecimalError] ",ys=oa+"Invalid argument: ",VO=oa+"Exponent out of range: ",kc=Math.floor,us=Math.pow,Ufe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pr,Dn=1e7,Zt=7,D6=9007199254740991,pm=kc(D6/Zt),Le={};Le.absoluteValue=Le.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Le.comparedTo=Le.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};Le.decimalPlaces=Le.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Zt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Le.dividedBy=Le.div=function(e){return ji(this,new this.constructor(e))};Le.dividedToIntegerBy=Le.idiv=function(e){var t=this,n=t.constructor;return Ht(ji(t,new n(e),0,1),n.precision)};Le.equals=Le.eq=function(e){return!this.cmp(e)};Le.exponent=function(){return _n(this)};Le.greaterThan=Le.gt=function(e){return this.cmp(e)>0};Le.greaterThanOrEqualTo=Le.gte=function(e){return this.cmp(e)>=0};Le.isInteger=Le.isint=function(){return this.e>this.d.length-2};Le.isNegative=Le.isneg=function(){return this.s<0};Le.isPositive=Le.ispos=function(){return this.s>0};Le.isZero=function(){return this.s===0};Le.lessThan=Le.lt=function(e){return this.cmp(e)<0};Le.lessThanOrEqualTo=Le.lte=function(e){return this.cmp(e)<1};Le.logarithm=Le.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Pr))throw Error(oa+"NaN");if(n.s<1)throw Error(oa+(n.s?"NaN":"-Infinity"));return n.eq(Pr)?new r(0):(Xt=!1,t=ji(Of(n,o),Of(e,o),o),Xt=!0,Ht(t,a))};Le.minus=Le.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?z6(t,e):k6(t,(e.s=-e.s,e))};Le.modulo=Le.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(oa+"NaN");return n.s?(Xt=!1,t=ji(n,e,0,1).times(e),Xt=!0,n.minus(t)):Ht(new r(n),a)};Le.naturalExponential=Le.exp=function(){return $6(this)};Le.naturalLogarithm=Le.ln=function(){return Of(this)};Le.negated=Le.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Le.plus=Le.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k6(t,e):z6(t,(e.s=-e.s,e))};Le.precision=Le.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ys+e);if(t=_n(a)+1,r=a.d.length-1,n=r*Zt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Le.squareRoot=Le.sqrt=function(){var e,t,n,r,a,o,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(oa+"NaN")}for(e=_n(c),Xt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=Ha(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=kc((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(o=r,r=o.plus(ji(c,o,l+2)).times(.5),Ha(o.d).slice(0,l)===(t=Ha(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(Ht(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return Xt=!0,Ht(r,n)};Le.times=Le.mul=function(e){var t,n,r,a,o,l,c,f,d,m=this,h=m.constructor,g=m.d,x=(e=new h(e)).d;if(!m.s||!e.s)return new h(0);for(e.s*=m.s,n=m.e+e.e,f=g.length,d=x.length,f<d&&(o=g,g=x,x=o,l=f,f=d,d=l),o=[],l=f+d,r=l;r--;)o.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=o[a]+x[r]*g[a-r-1]+t,o[a--]=c%Dn|0,t=c/Dn|0;o[a]=(o[a]+t)%Dn|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Xt?Ht(e,h.precision):e};Le.toDecimalPlaces=Le.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Ka(e,0,Dc),t===void 0?t=r.rounding:Ka(t,0,8),Ht(n,e+_n(n)+1,t))};Le.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=Rs(r,!0):(Ka(e,0,Dc),t===void 0?t=a.rounding:Ka(t,0,8),r=Ht(new a(r),e+1,t),n=Rs(r,!0,e+1)),n};Le.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?Rs(a):(Ka(e,0,Dc),t===void 0?t=o.rounding:Ka(t,0,8),r=Ht(new o(a),e+_n(a)+1,t),n=Rs(r.abs(),!1,e+_n(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Le.toInteger=Le.toint=function(){var e=this,t=e.constructor;return Ht(new t(e),_n(e)+1,t.rounding)};Le.toNumber=function(){return+this};Le.toPower=Le.pow=function(e){var t,n,r,a,o,l,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Pr);if(c=new f(c),!c.s){if(e.s<1)throw Error(oa+"Infinity");return c}if(c.eq(Pr))return c;if(r=f.precision,e.eq(Pr))return Ht(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=D6){for(a=new f(Pr),t=Math.ceil(r/Zt+4),Xt=!1;n%2&&(a=a.times(c),yk(a.d,t)),n=kc(n/2),n!==0;)c=c.times(c),yk(c.d,t);return Xt=!0,e.s<0?new f(Pr).div(a):Ht(a,r)}}else if(o<0)throw Error(oa+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,Xt=!1,a=e.times(Of(c,r+d)),Xt=!0,a=$6(a),a.s=o,a};Le.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=_n(a),r=Rs(a,n<=o.toExpNeg||n>=o.toExpPos)):(Ka(e,1,Dc),t===void 0?t=o.rounding:Ka(t,0,8),a=Ht(new o(a),e,t),n=_n(a),r=Rs(a,e<=n||n<=o.toExpNeg,e)),r};Le.toSignificantDigits=Le.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Ka(e,1,Dc),t===void 0?t=r.rounding:Ka(t,0,8)),Ht(new r(n),e,t)};Le.toString=Le.valueOf=Le.val=Le.toJSON=Le[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_n(e),n=e.constructor;return Rs(e,t<=n.toExpNeg||t>=n.toExpPos)};function k6(e,t){var n,r,a,o,l,c,f,d,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),Xt?Ht(t,h):t;if(f=e.d,d=t.d,l=e.e,a=t.e,f=f.slice(),o=l-a,o){for(o<0?(r=f,o=-o,c=d.length):(r=d,a=l,c=f.length),l=Math.ceil(h/Zt),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=f.length,o=d.length,c-o<0&&(o=c,r=d,d=f,f=r),n=0;o;)n=(f[--o]=f[o]+d[o]+n)/Dn|0,f[o]%=Dn;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,Xt?Ht(t,h):t}function Ka(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ys+e)}function Ha(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=Zt-r.length,n&&(o+=go(n)),o+=r;l=e[t],r=l+"",n=Zt-r.length,n&&(o+=go(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var ji=(function(){function e(r,a){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+l,r[c]=o%Dn|0,l=o/Dn|0;return l&&r.unshift(l),r}function t(r,a,o,l){var c,f;if(o!=l)f=o>l?1:-1;else for(c=f=0;c<o;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,o){for(var l=0;o--;)r[o]-=l,l=r[o]<a[o]?1:0,r[o]=l*Dn+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,f,d,m,h,g,x,A,S,w,O,E,j,C,T,R,N,k,z=r.constructor,V=r.s==a.s?1:-1,B=r.d,I=a.d;if(!r.s)return new z(r);if(!a.s)throw Error(oa+"Division by zero");for(f=r.e-a.e,N=I.length,T=B.length,x=new z(V),A=x.d=[],d=0;I[d]==(B[d]||0);)++d;if(I[d]>(B[d]||0)&&--f,o==null?E=o=z.precision:l?E=o+(_n(r)-_n(a))+1:E=o,E<0)return new z(0);if(E=E/Zt+2|0,d=0,N==1)for(m=0,I=I[0],E++;(d<T||m)&&E--;d++)j=m*Dn+(B[d]||0),A[d]=j/I|0,m=j%I|0;else{for(m=Dn/(I[0]+1)|0,m>1&&(I=e(I,m),B=e(B,m),N=I.length,T=B.length),C=N,S=B.slice(0,N),w=S.length;w<N;)S[w++]=0;k=I.slice(),k.unshift(0),R=I[0],I[1]>=Dn/2&&++R;do m=0,c=t(I,S,N,w),c<0?(O=S[0],N!=w&&(O=O*Dn+(S[1]||0)),m=O/R|0,m>1?(m>=Dn&&(m=Dn-1),h=e(I,m),g=h.length,w=S.length,c=t(h,S,g,w),c==1&&(m--,n(h,N<g?k:I,g))):(m==0&&(c=m=1),h=I.slice()),g=h.length,g<w&&h.unshift(0),n(S,h,w),c==-1&&(w=S.length,c=t(I,S,N,w),c<1&&(m++,n(S,N<w?k:I,w))),w=S.length):c===0&&(m++,S=[0]),A[d++]=m,c&&S[0]?S[w++]=B[C]||0:(S=[B[C]],w=1);while((C++<T||S[0]!==void 0)&&E--)}return A[0]||A.shift(),x.e=f,Ht(x,l?o+_n(x)+1:o)}})();function $6(e,t){var n,r,a,o,l,c,f=0,d=0,m=e.constructor,h=m.precision;if(_n(e)>16)throw Error(VO+_n(e));if(!e.s)return new m(Pr);for(Xt=!1,c=h,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(us(2,d))/Math.LN10*2+5|0,c+=r,n=a=o=new m(Pr),m.precision=c;;){if(a=Ht(a.times(e),c),n=n.times(++f),l=o.plus(ji(a,n,c)),Ha(l.d).slice(0,c)===Ha(o.d).slice(0,c)){for(;d--;)o=Ht(o.times(o),c);return m.precision=h,t==null?(Xt=!0,Ht(o,h)):o}o=l}}function _n(e){for(var t=e.e*Zt,n=e.d[0];n>=10;n/=10)t++;return t}function o1(e,t,n){if(t>e.LN10.sd())throw Xt=!0,n&&(e.precision=n),Error(oa+"LN10 precision limit exceeded");return Ht(new e(e.LN10),t)}function go(e){for(var t="";e--;)t+="0";return t}function Of(e,t){var n,r,a,o,l,c,f,d,m,h=1,g=10,x=e,A=x.d,S=x.constructor,w=S.precision;if(x.s<1)throw Error(oa+(x.s?"NaN":"-Infinity"));if(x.eq(Pr))return new S(0);if(t==null?(Xt=!1,d=w):d=t,x.eq(10))return t==null&&(Xt=!0),o1(S,d);if(d+=g,S.precision=d,n=Ha(A),r=n.charAt(0),o=_n(x),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Ha(x.d),r=n.charAt(0),h++;o=_n(x),r>1?(x=new S("0."+n),o++):x=new S(r+"."+n.slice(1))}else return f=o1(S,d+2,w).times(o+""),x=Of(new S(r+"."+n.slice(1)),d-g).plus(f),S.precision=w,t==null?(Xt=!0,Ht(x,w)):x;for(c=l=x=ji(x.minus(Pr),x.plus(Pr),d),m=Ht(x.times(x),d),a=3;;){if(l=Ht(l.times(m),d),f=c.plus(ji(l,new S(a),d)),Ha(f.d).slice(0,d)===Ha(c.d).slice(0,d))return c=c.times(2),o!==0&&(c=c.plus(o1(S,d+2,w).times(o+""))),c=ji(c,new S(h),d),S.precision=w,t==null?(Xt=!0,Ht(c,w)):c;c=f,a+=2}}function gk(e,t){var n,r,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=kc(n/Zt),e.d=[],r=(n+1)%Zt,n<0&&(r+=Zt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Zt;r<a;)e.d.push(+t.slice(r,r+=Zt));t=t.slice(r),r=Zt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),Xt&&(e.e>pm||e.e<-pm))throw Error(VO+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ht(e,t,n){var r,a,o,l,c,f,d,m,h=e.d;for(l=1,o=h[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=Zt,a=t,d=h[m=0];else{if(m=Math.ceil((r+1)/Zt),o=h.length,m>=o)return e;for(d=o=h[m],l=1;o>=10;o/=10)l++;r%=Zt,a=r-Zt+l}if(n!==void 0&&(o=us(10,l-a-1),c=d/o%10|0,f=t<0||h[m+1]!==void 0||d%o,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?d/us(10,l-a):0:h[m-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return f?(o=_n(e),h.length=1,t=t-o-1,h[0]=us(10,(Zt-t%Zt)%Zt),e.e=kc(-t/Zt)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=m,o=1,m--):(h.length=m+1,o=us(10,Zt-r),h[m]=a>0?(d/us(10,l-a)%us(10,a)|0)*o:0),f)for(;;)if(m==0){(h[0]+=o)==Dn&&(h[0]=1,++e.e);break}else{if(h[m]+=o,h[m]!=Dn)break;h[m--]=0,o=1}for(r=h.length;h[--r]===0;)h.pop();if(Xt&&(e.e>pm||e.e<-pm))throw Error(VO+_n(e));return e}function z6(e,t){var n,r,a,o,l,c,f,d,m,h,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),Xt?Ht(t,x):t;if(f=e.d,h=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(m=l<0,m?(n=f,l=-l,c=h.length):(n=h,r=d,c=f.length),a=Math.max(Math.ceil(x/Zt),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=h.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=h[a]){m=f[a]<h[a];break}l=0}for(m&&(n=f,f=h,h=n,t.s=-t.s),c=f.length,a=h.length-c;a>0;--a)f[c++]=0;for(a=h.length;a>l;){if(f[--a]<h[a]){for(o=a;o&&f[--o]===0;)f[o]=Dn-1;--f[o],f[a]+=Dn}f[a]-=h[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,Xt?Ht(t,x):t):new g(0)}function Rs(e,t,n){var r,a=_n(e),o=Ha(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+go(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+go(-a-1)+o,n&&(r=n-l)>0&&(o+=go(r))):a>=l?(o+=go(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+go(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=go(r))),e.s<0?"-"+o:o}function yk(e,t){if(e.length>t)return e.length=t,!0}function L6(e){var t,n,r;function a(o){var l=this;if(!(l instanceof a))return new a(o);if(l.constructor=a,o instanceof a){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(ys+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return gk(l,o.toString())}else if(typeof o!="string")throw Error(ys+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,Ufe.test(o))gk(l,o);else throw Error(ys+o)}if(a.prototype=Le,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=L6,a.config=a.set=qfe,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 a.config(e),a}function qfe(e){if(!e||typeof e!="object")throw Error(oa+"Object expected");var t,n,r,a=["precision",1,Dc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(kc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(ys+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(ys+n+": "+r);return this}var GO=L6(Bfe);Pr=new GO(1);const Lt=GO;function Hfe(e){return Wfe(e)||Gfe(e)||Vfe(e)||Ffe()}function Ffe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
440
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vfe(e,t){if(e){if(typeof e=="string")return VS(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 VS(e,t)}}function Gfe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Wfe(e){if(Array.isArray(e))return VS(e)}function VS(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 Yfe=function(t){return t},I6={},B6=function(t){return t===I6},bk=function(t){return function n(){return arguments.length===0||arguments.length===1&&B6(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Zfe=function e(t,n){return t===1?n:bk(function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var l=a.filter(function(c){return c!==I6}).length;return l>=t?n.apply(void 0,a):e(t-l,bk(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=a.map(function(h){return B6(h)?f.shift():h});return n.apply(void 0,Hfe(m).concat(f))}))})},Vv=function(t){return Zfe(t.length,t)},GS=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},Kfe=Vv(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Xfe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Yfe;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},o.apply(void 0,arguments))}},WS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},U6=function(t){var n=null,r=null;return function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return n&&o.every(function(c,f){return c===n[f]})||(n=o,r=t.apply(void 0,o)),r}};function Qfe(e){var t;return e===0?t=1:t=Math.floor(new Lt(e).abs().log(10).toNumber())+1,t}function Jfe(e,t,n){for(var r=new Lt(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var ede=Vv(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),tde=Vv(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),nde=Vv(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Gv={rangeStep:Jfe,getDigitCount:Qfe,interpolateNumber:ede,uninterpolateNumber:tde,uninterpolateTruncation:nde};function YS(e){return ide(e)||ade(e)||q6(e)||rde()}function rde(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
441
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ade(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ide(e){if(Array.isArray(e))return ZS(e)}function Ef(e,t){return lde(e)||sde(e,t)||q6(e,t)||ode()}function ode(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
442
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q6(e,t){if(e){if(typeof e=="string")return ZS(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 ZS(e,t)}}function ZS(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 sde(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function lde(e){if(Array.isArray(e))return e}function H6(e){var t=Ef(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function F6(e,t,n){if(e.lte(0))return new Lt(0);var r=Gv.getDigitCount(e.toNumber()),a=new Lt(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new Lt(Math.ceil(o.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new Lt(Math.ceil(f))}function cde(e,t,n){var r=1,a=new Lt(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new Lt(10).pow(Gv.getDigitCount(e)-1),a=new Lt(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new Lt(Math.floor(e)))}else e===0?a=new Lt(Math.floor((t-1)/2)):n||(a=new Lt(Math.floor(e)));var l=Math.floor((t-1)/2),c=Xfe(Kfe(function(f){return a.add(new Lt(f-l).mul(r)).toNumber()}),GS);return c(0,t)}function V6(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Lt(0),tickMin:new Lt(0),tickMax:new Lt(0)};var o=F6(new Lt(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new Lt(0):(l=new Lt(e).add(t).div(2),l=l.sub(new Lt(l).mod(o)));var c=Math.ceil(l.sub(e).div(o).toNumber()),f=Math.ceil(new Lt(t).sub(l).div(o).toNumber()),d=c+f+1;return d>n?V6(e,t,n,r,a+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:o,tickMin:l.sub(new Lt(c).mul(o)),tickMax:l.add(new Lt(f).mul(o))})}function ude(e){var t=Ef(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=H6([n,r]),f=Ef(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var h=m===1/0?[d].concat(YS(GS(0,a-1).map(function(){return 1/0}))):[].concat(YS(GS(0,a-1).map(function(){return-1/0})),[m]);return n>r?WS(h):h}if(d===m)return cde(d,a,o);var g=V6(d,m,l,o),x=g.step,A=g.tickMin,S=g.tickMax,w=Gv.rangeStep(A,S.add(new Lt(.1).mul(x)),x);return n>r?WS(w):w}function fde(e,t){var n=Ef(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=H6([r,a]),c=Ef(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,a];if(f===d)return[f];var m=Math.max(t,2),h=F6(new Lt(d).sub(f).div(m-1),o,0),g=[].concat(YS(Gv.rangeStep(new Lt(f),new Lt(d).sub(new Lt(.99).mul(h)),h)),[d]);return r>a?WS(g):g}var dde=U6(ude),hde=U6(fde),pde="Invariant failed";function Ns(e,t){throw new Error(pde)}var mde=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}function mm(){return mm=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},mm.apply(this,arguments)}function vde(e,t){return xde(e)||bde(e,t)||yde(e,t)||gde()}function gde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
443
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yde(e,t){if(e){if(typeof e=="string")return xk(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 xk(e,t)}}function xk(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 bde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function xde(e){if(Array.isArray(e))return e}function wde(e,t){if(e==null)return{};var n=Sde(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sde(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 _de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ade(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,Y6(r.key),r)}}function Ode(e,t,n){return t&&Ade(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ede(e,t,n){return t=vm(t),Tde(e,G6()?Reflect.construct(t,n||[],vm(e).constructor):t.apply(e,n))}function Tde(e,t){if(t&&(ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jde(e)}function jde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G6=function(){return!!e})()}function vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}function Cde(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&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},KS(e,t)}function W6(e,t,n){return t=Y6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y6(e){var t=Rde(e,"string");return ac(t)=="symbol"?t:t+""}function Rde(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wv=(function(e){function t(){return _de(this,t),Ede(this,t,arguments)}return Cde(t,e),Ode(t,[{key:"render",value:function(){var r=this.props,a=r.offset,o=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,h=r.yAxis,g=wde(r,mde),x=dt(g,!1);this.props.direction==="x"&&m.type!=="number"&&Ns();var A=f.map(function(S){var w=d(S,c),O=w.x,E=w.y,j=w.value,C=w.errorVal;if(!C)return null;var T=[],R,N;if(Array.isArray(C)){var k=vde(C,2);R=k[0],N=k[1]}else R=N=C;if(o==="vertical"){var z=m.scale,V=E+a,B=V+l,I=V-l,F=z(j-R),G=z(j+N);T.push({x1:G,y1:B,x2:G,y2:I}),T.push({x1:F,y1:V,x2:G,y2:V}),T.push({x1:F,y1:B,x2:F,y2:I})}else if(o==="horizontal"){var Y=h.scale,$=O+a,q=$-l,K=$+l,X=Y(j-R),Z=Y(j+N);T.push({x1:q,y1:Z,x2:K,y2:Z}),T.push({x1:$,y1:X,x2:$,y2:Z}),T.push({x1:q,y1:X,x2:K,y2:X})}return L.createElement(rn,mm({className:"recharts-errorBar",key:"bar-".concat(T.map(function(P){return"".concat(P.x1,"-").concat(P.x2,"-").concat(P.y1,"-").concat(P.y2)}))},x),T.map(function(P){return L.createElement("line",mm({},P,{key:"line-".concat(P.x1,"-").concat(P.x2,"-").concat(P.y1,"-").concat(P.y2)}))}))});return L.createElement(rn,{className:"recharts-errorBars"},A)}}])})(L.Component);W6(Wv,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});W6(Wv,"displayName","ErrorBar");function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){Nde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nde(e,t,n){return t=Mde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mde(e){var t=Pde(e,"string");return Tf(t)=="symbol"?t:t+""}function Pde(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z6=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,l=Cr(n,Bl);if(!l)return null;var c=Bl.defaultProps,f=c!==void 0?ls(ls({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:o==="children"?d=(r||[]).reduce(function(m,h){var g=h.item,x=h.props,A=x.sectors||x.data||[];return m.concat(A.map(function(S){return{type:l.props.iconType||g.props.legendType,value:S.name,color:S.fill,payload:S}}))},[]):d=(r||[]).map(function(m){var h=m.item,g=h.type.defaultProps,x=g!==void 0?ls(ls({},g),h.props):{},A=x.dataKey,S=x.name,w=x.legendType,O=x.hide;return{inactive:O,dataKey:A,type:f.iconType||w||"square",color:WO(h),value:S||A,payload:x}}),ls(ls(ls({},f),Bl.getWithHeight(l,a)),{},{payload:d,item:l})};function jf(e){"@babel/helpers - typeof";return jf=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},jf(e)}function Sk(e){return zde(e)||$de(e)||kde(e)||Dde()}function Dde(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
444
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kde(e,t){if(e){if(typeof e=="string")return XS(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 XS(e,t)}}function $de(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zde(e){if(Array.isArray(e))return XS(e)}function XS(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 _k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_k(Object(n),!0).forEach(function(r){ql(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ql(e,t,n){return t=Lde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lde(e){var t=Ide(e,"string");return jf(t)=="symbol"?t:t+""}function Ide(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kr(e,t,n){return gt(e)||gt(t)?n:Rn(t)?aa(e,t,n):ot(t)?t(e):n}function tf(e,t,n,r){var a=zfe(e,function(c){return kr(c,t)});if(n==="number"){var o=a.filter(function(c){return Ne(c)||parseFloat(c)});return o.length?[Fv(o),bo(o)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!gt(c)}):a;return l.map(function(c){return Rn(c)||c instanceof Date?c:""})}var Bde=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var f=o.range,d=0;d<c;d++){var m=d>0?a[d-1].coordinate:a[c-1].coordinate,h=a[d].coordinate,g=d>=c-1?a[0].coordinate:a[d+1].coordinate,x=void 0;if(Sa(h-m)!==Sa(g-h)){var A=[];if(Sa(g-h)===Sa(f[1]-f[0])){x=g;var S=h+f[1]-f[0];A[0]=Math.min(S,(S+m)/2),A[1]=Math.max(S,(S+m)/2)}else{x=m;var w=g+f[1]-f[0];A[0]=Math.min(h,(w+h)/2),A[1]=Math.max(h,(w+h)/2)}var O=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(t>O[0]&&t<=O[1]||t>=A[0]&&t<=A[1]){l=a[d].index;break}}else{var E=Math.min(m,g),j=Math.max(m,g);if(t>(E+h)/2&&t<=(j+h)/2){l=a[d].index;break}}}else for(var C=0;C<c;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){l=r[C].index;break}return l},WO=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?cn(cn({},t.type.defaultProps),t.props):t.props,l=o.stroke,c=o.fill,f;switch(a){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},Ude=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var l={},c=Object.keys(o),f=0,d=c.length;f<d;f++)for(var m=o[c[f]].stackGroups,h=Object.keys(m),g=0,x=h.length;g<x;g++){var A=m[h[g]],S=A.items,w=A.cateAxisId,O=S.filter(function(N){return Ei(N.type).indexOf("Bar")>=0});if(O&&O.length){var E=O[0].type.defaultProps,j=E!==void 0?cn(cn({},E),O[0].props):O[0].props,C=j.barSize,T=j[w];l[T]||(l[T]=[]);var R=gt(C)?n:C;l[T].push({item:O[0],stackList:O.slice(1),barSize:gt(R)?void 0:Cs(R,r,0)})}}return l},qde=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,o=t.sizeList,l=o===void 0?[]:o,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=Cs(n,a,0,!0),m,h=[];if(l[0].barSize===+l[0].barSize){var g=!1,x=a/f,A=l.reduce(function(C,T){return C+T.barSize||0},0);A+=(f-1)*d,A>=a&&(A-=(f-1)*d,d=0),A>=a&&x>0&&(g=!0,x*=.9,A=f*x);var S=(a-A)/2>>0,w={offset:S-d,size:0};m=l.reduce(function(C,T){var R={item:T.item,position:{offset:w.offset+w.size+d,size:g?x:T.barSize}},N=[].concat(Sk(C),[R]);return w=N[N.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(k){N.push({item:k,position:w})}),N},h)}else{var O=Cs(r,a,0,!0);a-2*O-(f-1)*d<=0&&(d=0);var E=(a-2*O-(f-1)*d)/f;E>1&&(E>>=0);var j=c===+c?Math.min(E,c):E;m=l.reduce(function(C,T,R){var N=[].concat(Sk(C),[{item:T.item,position:{offset:O+(E+d)*R+(E-j)/2,size:j}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(k){N.push({item:k,position:N[N.length-1].position})}),N},h)}return m},Hde=function(t,n,r,a){var o=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=Z6({children:o,legendWidth:f});if(d){var m=a||{},h=m.width,g=m.height,x=d.align,A=d.verticalAlign,S=d.layout;if((S==="vertical"||S==="horizontal"&&A==="middle")&&x!=="center"&&Ne(t[x]))return cn(cn({},t),{},ql({},x,t[x]+(h||0)));if((S==="horizontal"||S==="vertical"&&x==="center")&&A!=="middle"&&Ne(t[A]))return cn(cn({},t),{},ql({},A,t[A]+(g||0)))}return t},Fde=function(t,n,r){return gt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},K6=function(t,n,r,a,o){var l=n.props.children,c=Ea(l,Wv).filter(function(d){return Fde(a,o,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var h=kr(m,r);if(gt(h))return d;var g=Array.isArray(h)?[Fv(h),bo(h)]:[h,h],x=f.reduce(function(A,S){var w=kr(m,S,0),O=g[0]-Math.abs(Array.isArray(w)?w[0]:w),E=g[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(O,A[0]),Math.max(E,A[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},Vde=function(t,n,r,a,o){var l=n.map(function(c){return K6(t,c,r,o,a)}).filter(function(c){return!gt(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},X6=function(t,n,r,a,o){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&K6(t,f,d,a)||tf(t,d,r,o)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var m=0,h=d.length;m<h;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},Q6=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},J6=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var o,l,c=t.map(function(f){return f.coordinate===n&&(o=!0),f.coordinate===r&&(l=!0),f.coordinate});return o||c.push(n),l||c.push(r),c},Oi=function(t,n,r){if(!t)return null;var a=t.scale,o=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,d=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?Sa(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(h){var g=o?o.indexOf(h):h;return{coordinate:a(g)+d,value:h,offset:d}});return m.filter(function(h){return!Rc(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,g){return{coordinate:a(h)+d,value:h,index:g,offset:d}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(h){return{coordinate:a(h)+d,value:h,offset:d}}):a.domain().map(function(h,g){return{coordinate:a(h)+d,value:o?o[h]:h,index:g,offset:d}})},s1=new WeakMap,tp=function(t,n){if(typeof n!="function")return t;s1.has(t)||s1.set(t,new WeakMap);var r=s1.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},Gde=function(t,n,r){var a=t.scale,o=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:bf(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:um(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:ef(),realScaleType:"point"}:o==="category"?{scale:bf(),realScaleType:"band"}:{scale:um(),realScaleType:"linear"};if(js(a)){var f="scale".concat(Nv(a));return{scale:(lk[f]||ef)(),realScaleType:lk[f]?f:"point"}}return ot(a)?{scale:a}:{scale:ef(),realScaleType:"point"}},Ak=1e-4,Wde=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),o=Math.min(a[0],a[1])-Ak,l=Math.max(a[0],a[1])+Ak,c=t(n[0]),f=t(n[r-1]);(c<o||c>l||f<o||f>l)&&t.domain([n[0],n[r-1]])}},Yde=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},Zde=function(t,n){if(!n||n.length!==2||!Ne(n[0])||!Ne(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!Ne(t[0])||t[0]<r)&&(o[0]=r),(!Ne(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<r&&(o[1]=r),o},Kde=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0,c=0;c<n;++c){var f=Rc(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=o,t[c][r][1]=o+f,o=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},Xde=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0;l<n;++l){var c=Rc(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},Qde={sign:Kde,expand:Die,none:Kl,silhouette:kie,wiggle:$ie,positive:Xde},Jde=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=Qde[r],l=Pie().keys(a).value(function(c,f){return+kr(c,f,0)}).order(TS).offset(o);return l(t)},ehe=function(t,n,r,a,o,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(h,g){var x,A=(x=g.type)!==null&&x!==void 0&&x.defaultProps?cn(cn({},g.type.defaultProps),g.props):g.props,S=A.stackId,w=A.hide;if(w)return h;var O=A[r],E=h[O]||{hasStack:!1,stackGroups:{}};if(Rn(S)){var j=E.stackGroups[S]||{numericAxisId:r,cateAxisId:a,items:[]};j.items.push(g),E.hasStack=!0,E.stackGroups[S]=j}else E.stackGroups[vd("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return cn(cn({},h),{},ql({},O,E))},f),m={};return Object.keys(d).reduce(function(h,g){var x=d[g];if(x.hasStack){var A={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(S,w){var O=x.stackGroups[w];return cn(cn({},S),{},ql({},w,{numericAxisId:r,cateAxisId:a,items:O.items,stackedData:Jde(t,O.items,o)}))},A)}return cn(cn({},h),{},ql({},g,x))},m)},the=function(t,n){var r=n.realScaleType,a=n.type,o=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(o&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=dde(d,o,c);return t.domain([Fv(m),bo(m)]),{niceTicks:m}}if(o&&a==="number"){var h=t.domain(),g=hde(h,o,c);return{niceTicks:g}}return null};function Ok(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,o=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!gt(a[t.dataKey])){var c=Hp(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var f=kr(a,gt(l)?t.dataKey:l);return gt(f)?null:t.scale(f)}var Ek=function(t){var n=t.axis,r=t.ticks,a=t.offset,o=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=kr(l,n.dataKey,n.domain[c]);return gt(f)?null:n.scale(f)-o/2+a},nhe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},rhe=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?cn(cn({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(Rn(o)){var l=n[o];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},ahe=function(t){return t.reduce(function(n,r){return[Fv(r.concat([n[0]]).filter(Ne)),bo(r.concat([n[1]]).filter(Ne))]},[1/0,-1/0])},e8=function(t,n,r){return Object.keys(t).reduce(function(a,o){var l=t[o],c=l.stackedData,f=c.reduce(function(d,m){var h=ahe(m.slice(n,r+1));return[Math.min(d[0],h[0]),Math.max(d[1],h[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Tk=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jk=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,QS=function(t,n,r){if(ot(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(Ne(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Tk.test(t[0])){var o=+Tk.exec(t[0])[1];a[0]=n[0]-o}else ot(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(Ne(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(jk.test(t[1])){var l=+jk.exec(t[1])[1];a[1]=n[1]+l}else ot(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},gm=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var o=wO(n,function(h){return h.coordinate}),l=1/0,c=1,f=o.length;c<f;c++){var d=o[c],m=o[c-1];l=Math.min((d.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},Ck=function(t,n,r){return!t||!t.length||Af(t,aa(r,"type.defaultProps.domain"))?n:t},t8=function(t,n){var r=t.type.defaultProps?cn(cn({},t.type.defaultProps),t.props):t.props,a=r.dataKey,o=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return cn(cn({},dt(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:o||a,color:WO(t),value:kr(n,a),type:f,payload:n,chartType:d,hide:m})};function Cf(e){"@babel/helpers - typeof";return Cf=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},Cf(e)}function Rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rk(Object(n),!0).forEach(function(r){ihe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ihe(e,t,n){return t=ohe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ohe(e){var t=she(e,"string");return Cf(t)=="symbol"?t:t+""}function she(e,t){if(Cf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ym=Math.PI/180,lhe=function(t){return t*180/Math.PI},Fn=function(t,n,r,a){return{x:t+Math.cos(-ym*a)*r,y:n+Math.sin(-ym*a)*r}},che=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(a-l,2))},uhe=function(t,n){var r=t.x,a=t.y,o=n.cx,l=n.cy,c=che({x:r,y:a},{x:o,y:l});if(c<=0)return{radius:c};var f=(r-o)/c,d=Math.acos(f);return a>l&&(d=2*Math.PI-d),{radius:c,angle:lhe(d),angleInRadian:d}},fhe=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(a,o);return{startAngle:n-l*360,endAngle:r-l*360}},dhe=function(t,n){var r=n.startAngle,a=n.endAngle,o=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(o,l);return t+c*360},Mk=function(t,n){var r=t.x,a=t.y,o=uhe({x:r,y:a},n),l=o.radius,c=o.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var m=fhe(n),h=m.startAngle,g=m.endAngle,x=c,A;if(h<=g){for(;x>g;)x-=360;for(;x<h;)x+=360;A=x>=h&&x<=g}else{for(;x>h;)x-=360;for(;x<g;)x+=360;A=x>=g&&x<=h}return A?Nk(Nk({},n),{},{radius:l,angle:dhe(x,n)}):null};function Rf(e){"@babel/helpers - typeof";return Rf=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},Rf(e)}var hhe=["offset"];function phe(e){return yhe(e)||ghe(e)||vhe(e)||mhe()}function mhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
445
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vhe(e,t){if(e){if(typeof e=="string")return JS(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 JS(e,t)}}function ghe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yhe(e){if(Array.isArray(e))return JS(e)}function JS(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 bhe(e,t){if(e==null)return{};var n=xhe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xhe(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 Pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pk(Object(n),!0).forEach(function(r){whe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function whe(e,t,n){return t=She(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function She(e){var t=_he(e,"string");return Rf(t)=="symbol"?t:t+""}function _he(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nf(){return Nf=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},Nf.apply(this,arguments)}var Ahe=function(t){var n=t.value,r=t.formatter,a=gt(t.children)?n:t.children;return ot(r)?r(a):a},Ohe=function(t,n){var r=Sa(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Ehe=function(t,n,r){var a=t.position,o=t.viewBox,l=t.offset,c=t.className,f=o,d=f.cx,m=f.cy,h=f.innerRadius,g=f.outerRadius,x=f.startAngle,A=f.endAngle,S=f.clockWise,w=(h+g)/2,O=Ohe(x,A),E=O>=0?1:-1,j,C;a==="insideStart"?(j=x+E*l,C=S):a==="insideEnd"?(j=A-E*l,C=!S):a==="end"&&(j=A+E*l,C=S),C=O<=0?C:!C;var T=Fn(d,m,w,j),R=Fn(d,m,w,j+(C?1:-1)*359),N="M".concat(T.x,",").concat(T.y,`
|
|
446
|
-
A`).concat(w,",").concat(w,",0,1,").concat(C?0:1,`,
|
|
447
|
-
`).concat(R.x,",").concat(R.y),k=gt(t.id)?vd("recharts-radial-line-"):t.id;return L.createElement("text",Nf({},r,{dominantBaseline:"central",className:bt("recharts-radial-bar-label",c)}),L.createElement("defs",null,L.createElement("path",{id:k,d:N})),L.createElement("textPath",{xlinkHref:"#".concat(k)},n))},The=function(t){var n=t.viewBox,r=t.offset,a=t.position,o=n,l=o.cx,c=o.cy,f=o.innerRadius,d=o.outerRadius,m=o.startAngle,h=o.endAngle,g=(m+h)/2;if(a==="outside"){var x=Fn(l,c,d+r,g),A=x.x,S=x.y;return{x:A,y:S,textAnchor:A>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var w=(f+d)/2,O=Fn(l,c,w,g),E=O.x,j=O.y;return{x:E,y:j,textAnchor:"middle",verticalAnchor:"middle"}},jhe=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,o=t.position,l=n,c=l.x,f=l.y,d=l.width,m=l.height,h=m>=0?1:-1,g=h*a,x=h>0?"end":"start",A=h>0?"start":"end",S=d>=0?1:-1,w=S*a,O=S>0?"end":"start",E=S>0?"start":"end";if(o==="top"){var j={x:c+d/2,y:f-h*a,textAnchor:"middle",verticalAnchor:x};return Cn(Cn({},j),r?{height:Math.max(f-r.y,0),width:d}:{})}if(o==="bottom"){var C={x:c+d/2,y:f+m+g,textAnchor:"middle",verticalAnchor:A};return Cn(Cn({},C),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(o==="left"){var T={x:c-w,y:f+m/2,textAnchor:O,verticalAnchor:"middle"};return Cn(Cn({},T),r?{width:Math.max(T.x-r.x,0),height:m}:{})}if(o==="right"){var R={x:c+d+w,y:f+m/2,textAnchor:E,verticalAnchor:"middle"};return Cn(Cn({},R),r?{width:Math.max(r.x+r.width-R.x,0),height:m}:{})}var N=r?{width:d,height:m}:{};return o==="insideLeft"?Cn({x:c+w,y:f+m/2,textAnchor:E,verticalAnchor:"middle"},N):o==="insideRight"?Cn({x:c+d-w,y:f+m/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideTop"?Cn({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:A},N):o==="insideBottom"?Cn({x:c+d/2,y:f+m-g,textAnchor:"middle",verticalAnchor:x},N):o==="insideTopLeft"?Cn({x:c+w,y:f+g,textAnchor:E,verticalAnchor:A},N):o==="insideTopRight"?Cn({x:c+d-w,y:f+g,textAnchor:O,verticalAnchor:A},N):o==="insideBottomLeft"?Cn({x:c+w,y:f+m-g,textAnchor:E,verticalAnchor:x},N):o==="insideBottomRight"?Cn({x:c+d-w,y:f+m-g,textAnchor:O,verticalAnchor:x},N):Cc(o)&&(Ne(o.x)||ds(o.x))&&(Ne(o.y)||ds(o.y))?Cn({x:c+Cs(o.x,d),y:f+Cs(o.y,m),textAnchor:"end",verticalAnchor:"end"},N):Cn({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},N)},Che=function(t){return"cx"in t&&Ne(t.cx)};function Jn(e){var t=e.offset,n=t===void 0?5:t,r=bhe(e,hhe),a=Cn({offset:n},r),o=a.viewBox,l=a.position,c=a.value,f=a.children,d=a.content,m=a.className,h=m===void 0?"":m,g=a.textBreakAll;if(!o||gt(c)&>(f)&&!y.isValidElement(d)&&!ot(d))return null;if(y.isValidElement(d))return y.cloneElement(d,a);var x;if(ot(d)){if(x=y.createElement(d,a),y.isValidElement(x))return x}else x=Ahe(a);var A=Che(o),S=dt(a,!0);if(A&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Ehe(a,x,S);var w=A?The(a):jhe(a);return L.createElement(nm,Nf({className:bt("recharts-label",h)},S,w,{breakAll:g}),x)}Jn.displayName="Label";var n8=function(t){var n=t.cx,r=t.cy,a=t.angle,o=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,h=t.x,g=t.y,x=t.top,A=t.left,S=t.width,w=t.height,O=t.clockWise,E=t.labelViewBox;if(E)return E;if(Ne(S)&&Ne(w)){if(Ne(h)&&Ne(g))return{x:h,y:g,width:S,height:w};if(Ne(x)&&Ne(A))return{x,y:A,width:S,height:w}}return Ne(h)&&Ne(g)?{x:h,y:g,width:0,height:0}:Ne(n)&&Ne(r)?{cx:n,cy:r,startAngle:o||a||0,endAngle:l||a||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:O}:t.viewBox?t.viewBox:{}},Rhe=function(t,n){return t?t===!0?L.createElement(Jn,{key:"label-implicit",viewBox:n}):Rn(t)?L.createElement(Jn,{key:"label-implicit",viewBox:n,value:t}):y.isValidElement(t)?t.type===Jn?y.cloneElement(t,{key:"label-implicit",viewBox:n}):L.createElement(Jn,{key:"label-implicit",content:t,viewBox:n}):ot(t)?L.createElement(Jn,{key:"label-implicit",content:t,viewBox:n}):Cc(t)?L.createElement(Jn,Nf({viewBox:n},t,{key:"label-implicit"})):null:null},Nhe=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 a=t.children,o=n8(t),l=Ea(a,Jn).map(function(f,d){return y.cloneElement(f,{viewBox:n||o,key:"label-".concat(d)})});if(!r)return l;var c=Rhe(t.label,n||o);return[c].concat(phe(l))};Jn.parseViewBox=n8;Jn.renderCallByParent=Nhe;var l1,Dk;function Mhe(){if(Dk)return l1;Dk=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return l1=e,l1}var Phe=Mhe();const Dhe=Bt(Phe);function Mf(e){"@babel/helpers - typeof";return Mf=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},Mf(e)}var khe=["valueAccessor"],$he=["data","dataKey","clockWise","id","textBreakAll"];function zhe(e){return Uhe(e)||Bhe(e)||Ihe(e)||Lhe()}function Lhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
448
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ihe(e,t){if(e){if(typeof e=="string")return e_(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 e_(e,t)}}function Bhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uhe(e){if(Array.isArray(e))return e_(e)}function e_(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 bm(){return bm=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},bm.apply(this,arguments)}function kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $k(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kk(Object(n),!0).forEach(function(r){qhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qhe(e,t,n){return t=Hhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hhe(e){var t=Fhe(e,"string");return Mf(t)=="symbol"?t:t+""}function Fhe(e,t){if(Mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mf(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=Vhe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vhe(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 Ghe=function(t){return Array.isArray(t.value)?Dhe(t.value):t.value};function Ao(e){var t=e.valueAccessor,n=t===void 0?Ghe:t,r=zk(e,khe),a=r.data,o=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=zk(r,$he);return!a||!a.length?null:L.createElement(rn,{className:"recharts-label-list"},a.map(function(m,h){var g=gt(o)?n(m,h):kr(m&&m.payload,o),x=gt(c)?{}:{id:"".concat(c,"-").concat(h)};return L.createElement(Jn,bm({},dt(m,!0),d,x,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:Jn.parseViewBox(gt(l)?m:$k($k({},m),{},{clockWise:l})),key:"label-".concat(h),index:h}))}))}Ao.displayName="LabelList";function Whe(e,t){return e?e===!0?L.createElement(Ao,{key:"labelList-implicit",data:t}):L.isValidElement(e)||ot(e)?L.createElement(Ao,{key:"labelList-implicit",data:t,content:e}):Cc(e)?L.createElement(Ao,bm({data:t},e,{key:"labelList-implicit"})):null:null}function Yhe(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,a=Ea(r,Ao).map(function(l,c){return y.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var o=Whe(e.label,t);return[o].concat(zhe(a))}Ao.renderCallByParent=Yhe;function Pf(e){"@babel/helpers - typeof";return Pf=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},Pf(e)}function t_(){return t_=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},t_.apply(this,arguments)}function Lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ik(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lk(Object(n),!0).forEach(function(r){Zhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zhe(e,t,n){return t=Khe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Khe(e){var t=Xhe(e,"string");return Pf(t)=="symbol"?t:t+""}function Xhe(e,t){if(Pf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qhe=function(t,n){var r=Sa(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},np=function(t){var n=t.cx,r=t.cy,a=t.radius,o=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+a,h=Math.asin(f/m)/ym,g=d?o:o+l*h,x=Fn(n,r,m,g),A=Fn(n,r,a,g),S=d?o-l*h:o,w=Fn(n,r,m*Math.cos(h*ym),S);return{center:x,circleTangency:A,lineTangency:w,theta:h}},r8=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.startAngle,c=t.endAngle,f=Qhe(l,c),d=l+f,m=Fn(n,r,o,l),h=Fn(n,r,o,d),g="M ".concat(m.x,",").concat(m.y,`
|
|
449
|
-
A `).concat(o,",").concat(o,`,0,
|
|
450
|
-
`).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
|
|
451
|
-
`).concat(h.x,",").concat(h.y,`
|
|
452
|
-
`);if(a>0){var x=Fn(n,r,a,l),A=Fn(n,r,a,d);g+="L ".concat(A.x,",").concat(A.y,`
|
|
453
|
-
A `).concat(a,",").concat(a,`,0,
|
|
454
|
-
`).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
|
|
455
|
-
`).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},Jhe=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,h=Sa(m-d),g=np({cx:n,cy:r,radius:o,angle:d,sign:h,cornerRadius:l,cornerIsExternal:f}),x=g.circleTangency,A=g.lineTangency,S=g.theta,w=np({cx:n,cy:r,radius:o,angle:m,sign:-h,cornerRadius:l,cornerIsExternal:f}),O=w.circleTangency,E=w.lineTangency,j=w.theta,C=f?Math.abs(d-m):Math.abs(d-m)-S-j;if(C<0)return c?"M ".concat(A.x,",").concat(A.y,`
|
|
456
|
-
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
|
|
457
|
-
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
|
|
458
|
-
`):r8({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:d,endAngle:m});var T="M ".concat(A.x,",").concat(A.y,`
|
|
459
|
-
A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
|
|
460
|
-
A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(h<0),",").concat(O.x,",").concat(O.y,`
|
|
461
|
-
A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(E.x,",").concat(E.y,`
|
|
462
|
-
`);if(a>0){var R=np({cx:n,cy:r,radius:a,angle:d,sign:h,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),N=R.circleTangency,k=R.lineTangency,z=R.theta,V=np({cx:n,cy:r,radius:a,angle:m,sign:-h,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),B=V.circleTangency,I=V.lineTangency,F=V.theta,G=f?Math.abs(d-m):Math.abs(d-m)-z-F;if(G<0&&l===0)return"".concat(T,"L").concat(n,",").concat(r,"Z");T+="L".concat(I.x,",").concat(I.y,`
|
|
463
|
-
A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(B.x,",").concat(B.y,`
|
|
464
|
-
A`).concat(a,",").concat(a,",0,").concat(+(G>180),",").concat(+(h>0),",").concat(N.x,",").concat(N.y,`
|
|
465
|
-
A`).concat(l,",").concat(l,",0,0,").concat(+(h<0),",").concat(k.x,",").concat(k.y,"Z")}else T+="L".concat(n,",").concat(r,"Z");return T},epe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},a8=function(t){var n=Ik(Ik({},epe),t),r=n.cx,a=n.cy,o=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,h=n.endAngle,g=n.className;if(l<o||m===h)return null;var x=bt("recharts-sector",g),A=l-o,S=Cs(c,A,0,!0),w;return S>0&&Math.abs(m-h)<360?w=Jhe({cx:r,cy:a,innerRadius:o,outerRadius:l,cornerRadius:Math.min(S,A/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:h}):w=r8({cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:m,endAngle:h}),L.createElement("path",t_({},dt(n,!0),{className:x,d:w,role:"img"}))};function Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}function n_(){return n_=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},n_.apply(this,arguments)}function Bk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bk(Object(n),!0).forEach(function(r){tpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tpe(e,t,n){return t=npe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function npe(e){var t=rpe(e,"string");return Df(t)=="symbol"?t:t+""}function rpe(e,t){if(Df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qk={curveBasisClosed:Sie,curveBasisOpen:_ie,curveBasis:wie,curveBumpX:sie,curveBumpY:lie,curveLinearClosed:Aie,curveLinear:Pv,curveMonotoneX:Oie,curveMonotoneY:Eie,curveNatural:Tie,curveStep:jie,curveStepAfter:Rie,curveStepBefore:Cie},rp=function(t){return t.x===+t.x&&t.y===+t.y},Lu=function(t){return t.x},Iu=function(t){return t.y},ape=function(t,n){if(ot(t))return t;var r="curve".concat(Nv(t));return(r==="curveMonotone"||r==="curveBump")&&n?qk["".concat(r).concat(n==="vertical"?"Y":"X")]:qk[r]||Pv},ipe=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,o=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=ape(r,c),h=d?o.filter(function(S){return rp(S)}):o,g;if(Array.isArray(l)){var x=d?l.filter(function(S){return rp(S)}):l,A=h.map(function(S,w){return Uk(Uk({},S),{},{base:x[w]})});return c==="vertical"?g=Yh().y(Iu).x1(Lu).x0(function(S){return S.base.x}):g=Yh().x(Lu).y1(Iu).y0(function(S){return S.base.y}),g.defined(rp).curve(m),g(A)}return c==="vertical"&&Ne(l)?g=Yh().y(Iu).x1(Lu).x0(l):Ne(l)?g=Yh().x(Lu).y1(Iu).y0(l):g=cB().x(Lu).y(Iu),g.defined(rp).curve(m),g(h)},nf=function(t){var n=t.className,r=t.points,a=t.path,o=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?ipe(t):a;return y.createElement("path",n_({},dt(t,!1),Fp(t),{className:bt("recharts-curve",n),d:l,ref:o}))},c1={exports:{}},u1,Hk;function ope(){if(Hk)return u1;Hk=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return u1=e,u1}var f1,Fk;function spe(){if(Fk)return f1;Fk=1;var e=ope();function t(){}function n(){}return n.resetWarningCache=t,f1=function(){function r(l,c,f,d,m,h){if(h!==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 a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},f1}var Vk;function lpe(){return Vk||(Vk=1,c1.exports=spe()()),c1.exports}var cpe=lpe();const Rt=Bt(cpe),{getOwnPropertyNames:upe,getOwnPropertySymbols:fpe}=Object,{hasOwnProperty:dpe}=Object.prototype;function d1(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function ap(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:o}=a,l=o.get(n),c=o.get(r);if(l&&c)return l===r&&c===n;o.set(n,r),o.set(r,n);const f=e(n,r,a);return o.delete(n),o.delete(r),f}}function hpe(e){return e!=null?e[Symbol.toStringTag]:void 0}function Gk(e){return upe(e).concat(fpe(e))}const ppe=Object.hasOwn||((e,t)=>dpe.call(e,t));function Bs(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const mpe="__v",vpe="__o",gpe="_owner",{getOwnPropertyDescriptor:Wk,keys:Yk}=Object;function ype(e,t){return e.byteLength===t.byteLength&&xm(new Uint8Array(e),new Uint8Array(t))}function bpe(e,t,n){let 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 xpe(e,t){return e.byteLength===t.byteLength&&xm(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function wpe(e,t){return Bs(e.getTime(),t.getTime())}function Spe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function _pe(e,t){return e===t}function Zk(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.entries();let l,c,f=0;for(;(l=o.next())&&!l.done;){const d=t.entries();let m=!1,h=0;for(;(c=d.next())&&!c.done;){if(a[h]){h++;continue}const g=l.value,x=c.value;if(n.equals(g[0],x[0],f,h,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){m=a[h]=!0;break}h++}if(!m)return!1;f++}return!0}const Ape=Bs;function Ope(e,t,n){const r=Yk(e);let a=r.length;if(Yk(t).length!==a)return!1;for(;a-- >0;)if(!i8(e,t,n,r[a]))return!1;return!0}function Bu(e,t,n){const r=Gk(e);let a=r.length;if(Gk(t).length!==a)return!1;let o,l,c;for(;a-- >0;)if(o=r[a],!i8(e,t,n,o)||(l=Wk(e,o),c=Wk(t,o),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Epe(e,t){return Bs(e.valueOf(),t.valueOf())}function Tpe(e,t){return e.source===t.source&&e.flags===t.flags}function Kk(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),o=e.values();let l,c;for(;(l=o.next())&&!l.done;){const f=t.values();let d=!1,m=0;for(;(c=f.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=a[m]=!0;break}m++}if(!d)return!1}return!0}function xm(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function jpe(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 i8(e,t,n,r){return(r===gpe||r===vpe||r===mpe)&&(e.$$typeof||t.$$typeof)?!0:ppe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Cpe="[object ArrayBuffer]",Rpe="[object Arguments]",Npe="[object Boolean]",Mpe="[object DataView]",Ppe="[object Date]",Dpe="[object Error]",kpe="[object Map]",$pe="[object Number]",zpe="[object Object]",Lpe="[object RegExp]",Ipe="[object Set]",Bpe="[object String]",Upe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},qpe="[object URL]",Hpe=Object.prototype.toString;function Fpe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:o,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:m,areSetsEqual:h,areTypedArraysEqual:g,areUrlsEqual:x,unknownTagComparators:A}){return function(w,O,E){if(w===O)return!0;if(w==null||O==null)return!1;const j=typeof w;if(j!==typeof O)return!1;if(j!=="object")return j==="number"?c(w,O,E):j==="function"?o(w,O,E):!1;const C=w.constructor;if(C!==O.constructor)return!1;if(C===Object)return f(w,O,E);if(Array.isArray(w))return t(w,O,E);if(C===Date)return r(w,O,E);if(C===RegExp)return m(w,O,E);if(C===Map)return l(w,O,E);if(C===Set)return h(w,O,E);const T=Hpe.call(w);if(T===Ppe)return r(w,O,E);if(T===Lpe)return m(w,O,E);if(T===kpe)return l(w,O,E);if(T===Ipe)return h(w,O,E);if(T===zpe)return typeof w.then!="function"&&typeof O.then!="function"&&f(w,O,E);if(T===qpe)return x(w,O,E);if(T===Dpe)return a(w,O,E);if(T===Rpe)return f(w,O,E);if(Upe[T])return g(w,O,E);if(T===Cpe)return e(w,O,E);if(T===Mpe)return n(w,O,E);if(T===Npe||T===$pe||T===Bpe)return d(w,O,E);if(A){let R=A[T];if(!R){const N=hpe(w);N&&(R=A[N])}if(R)return R(w,O,E)}return!1}}function Vpe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:ype,areArraysEqual:n?Bu:bpe,areDataViewsEqual:xpe,areDatesEqual:wpe,areErrorsEqual:Spe,areFunctionsEqual:_pe,areMapsEqual:n?d1(Zk,Bu):Zk,areNumbersEqual:Ape,areObjectsEqual:n?Bu:Ope,arePrimitiveWrappersEqual:Epe,areRegExpsEqual:Tpe,areSetsEqual:n?d1(Kk,Bu):Kk,areTypedArraysEqual:n?d1(xm,Bu):xm,areUrlsEqual:jpe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=ap(r.areArraysEqual),o=ap(r.areMapsEqual),l=ap(r.areObjectsEqual),c=ap(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:c})}return r}function Gpe(e){return function(t,n,r,a,o,l,c){return e(t,n,c)}}function Wpe({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(c,f){const{cache:d=e?new WeakMap:void 0,meta:m}=n();return t(c,f,{cache:d,equals:r,meta:m,strict:a})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const o={cache:void 0,equals:r,meta:void 0,strict:a};return function(c,f){return t(c,f,o)}}const Ype=Io();Io({strict:!0});Io({circular:!0});Io({circular:!0,strict:!0});Io({createInternalComparator:()=>Bs});Io({strict:!0,createInternalComparator:()=>Bs});Io({circular:!0,createInternalComparator:()=>Bs});Io({circular:!0,createInternalComparator:()=>Bs,strict:!0});function Io(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,o=Vpe(e),l=Fpe(o),c=n?n(l):Gpe(l);return Wpe({circular:t,comparator:l,createState:r,equals:c,strict:a})}function Zpe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Xk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(o){n<0&&(n=o),o-n>t?(e(o),n=-1):Zpe(a)};requestAnimationFrame(r)}function r_(e){"@babel/helpers - typeof";return r_=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},r_(e)}function Kpe(e){return eme(e)||Jpe(e)||Qpe(e)||Xpe()}function Xpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
466
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qpe(e,t){if(e){if(typeof e=="string")return Qk(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 Qk(e,t)}}function Qk(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 Jpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eme(e){if(Array.isArray(e))return e}function tme(){var e={},t=function(){return null},n=!1,r=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,c=Kpe(l),f=c[0],d=c.slice(1);if(typeof f=="number"){Xk(a.bind(null,d),f);return}a(f),Xk(a.bind(null,d));return}r_(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function kf(e){"@babel/helpers - typeof";return kf=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},kf(e)}function Jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function e$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jk(Object(n),!0).forEach(function(r){o8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o8(e,t,n){return t=nme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nme(e){var t=rme(e,"string");return kf(t)==="symbol"?t:String(t)}function rme(e,t){if(kf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ame=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},ime=function(t){return t},ome=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},rf=function(t,n){return Object.keys(n).reduce(function(r,a){return e$(e$({},r),{},o8({},a,t(a,n[a])))},{})},t$=function(t,n,r){return t.map(function(a){return"".concat(ome(a)," ").concat(n,"ms ").concat(r)}).join(",")};function sme(e,t){return ume(e)||cme(e,t)||s8(e,t)||lme()}function lme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
467
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function ume(e){if(Array.isArray(e))return e}function fme(e){return pme(e)||hme(e)||s8(e)||dme()}function dme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
468
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s8(e,t){if(e){if(typeof e=="string")return a_(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 a_(e,t)}}function hme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pme(e){if(Array.isArray(e))return a_(e)}function a_(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 wm=1e-4,l8=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},c8=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},n$=function(t,n){return function(r){var a=l8(t,n);return c8(a,r)}},mme=function(t,n){return function(r){var a=l8(t,n),o=[].concat(fme(a.map(function(l,c){return l*c}).slice(1)),[0]);return c8(o,r)}},r$=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],o=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,o=0,l=1,c=1;break;case"ease":a=.25,o=.1,l=.25,c=1;break;case"ease-in":a=.42,o=0,l=1,c=1;break;case"ease-out":a=.42,o=0,l=.58,c=1;break;case"ease-in-out":a=0,o=0,l=.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(w){return parseFloat(w)}),m=sme(d,4);a=m[0],o=m[1],l=m[2],c=m[3]}}}var h=n$(a,l),g=n$(o,c),x=mme(a,l),A=function(O){return O>1?1:O<0?0:O},S=function(O){for(var E=O>1?1:O,j=E,C=0;C<8;++C){var T=h(j)-E,R=x(j);if(Math.abs(T-E)<wm||R<wm)return g(j);j=A(j-T/R)}return g(j)};return S.isStepper=!1,S},vme=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,o=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(m,h,g){var x=-(m-h)*r,A=g*o,S=g+(x-A)*c/1e3,w=g*c/1e3+m;return Math.abs(w-h)<wm&&Math.abs(S)<wm?[h,0]:[w,S]};return f.isStepper=!0,f.dt=c,f},gme=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return r$(a);case"spring":return vme();default:if(a.split("(")[0]==="cubic-bezier")return r$(a)}return typeof a=="function"?a:null};function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function a$(e){return xme(e)||bme(e)||u8(e)||yme()}function yme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
469
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xme(e){if(Array.isArray(e))return o_(e)}function i$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i$(Object(n),!0).forEach(function(r){i_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function i_(e,t,n){return t=wme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wme(e){var t=Sme(e,"string");return $f(t)==="symbol"?t:String(t)}function Sme(e,t){if($f(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($f(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _me(e,t){return Eme(e)||Ome(e,t)||u8(e,t)||Ame()}function Ame(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
470
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u8(e,t){if(e){if(typeof e=="string")return o_(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 o_(e,t)}}function o_(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 Ome(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Eme(e){if(Array.isArray(e))return e}var Sm=function(t,n,r){return t+(n-t)*r},s_=function(t){var n=t.from,r=t.to;return n!==r},Tme=function e(t,n,r){var a=rf(function(o,l){if(s_(l)){var c=t(l.from,l.to,l.velocity),f=_me(c,2),d=f[0],m=f[1];return qn(qn({},l),{},{from:d,velocity:m})}return l},n);return r<1?rf(function(o,l){return s_(l)?qn(qn({},l),{},{velocity:Sm(l.velocity,a[o].velocity,r),from:Sm(l.from,a[o].from,r)}):l},n):e(t,a,r-1)};const jme=(function(e,t,n,r,a){var o=ame(e,t),l=o.reduce(function(w,O){return qn(qn({},w),{},i_({},O,[e[O],t[O]]))},{}),c=o.reduce(function(w,O){return qn(qn({},w),{},i_({},O,{from:e[O],velocity:0,to:t[O]}))},{}),f=-1,d,m,h=function(){return null},g=function(){return rf(function(O,E){return E.from},c)},x=function(){return!Object.values(c).filter(s_).length},A=function(O){d||(d=O);var E=O-d,j=E/n.dt;c=Tme(n,c,j),a(qn(qn(qn({},e),t),g())),d=O,x()||(f=requestAnimationFrame(h))},S=function(O){m||(m=O);var E=(O-m)/r,j=rf(function(T,R){return Sm.apply(void 0,a$(R).concat([n(E)]))},l);if(a(qn(qn(qn({},e),t),j)),E<1)f=requestAnimationFrame(h);else{var C=rf(function(T,R){return Sm.apply(void 0,a$(R).concat([n(1)]))},l);a(qn(qn(qn({},e),t),C))}};return h=n.isStepper?A:S,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(f)}}});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)}var Cme=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Rme(e,t){if(e==null)return{};var n=Nme(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nme(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function h1(e){return kme(e)||Dme(e)||Pme(e)||Mme()}function Mme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
471
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pme(e,t){if(e){if(typeof e=="string")return l_(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 l_(e,t)}}function Dme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kme(e){if(Array.isArray(e))return l_(e)}function l_(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 o$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o$(Object(n),!0).forEach(function(r){Zu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zu(e,t,n){return t=f8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zme(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,f8(r.key),r)}}function Lme(e,t,n){return t&&zme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function f8(e){var t=Ime(e,"string");return ic(t)==="symbol"?t:String(t)}function Ime(e,t){if(ic(e)!=="object"||e===null)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 Bme(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&&c_(e,t)}function c_(e,t){return c_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},c_(e,t)}function Ume(e){var t=qme();return function(){var r=_m(e),a;if(t){var o=_m(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return u_(this,a)}}function u_(e,t){if(t&&(ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f_(e)}function f_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qme(){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 _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_m(e)}var ki=(function(e){Bme(n,e);var t=Ume(n);function n(r,a){var o;$me(this,n),o=t.call(this,r,a);var l=o.props,c=l.isActive,f=l.attributeName,d=l.from,m=l.to,h=l.steps,g=l.children,x=l.duration;if(o.handleStyleChange=o.handleStyleChange.bind(f_(o)),o.changeStyle=o.changeStyle.bind(f_(o)),!c||x<=0)return o.state={style:{}},typeof g=="function"&&(o.state={style:m}),u_(o);if(h&&h.length)o.state={style:h[0].style};else if(d){if(typeof g=="function")return o.state={style:d},u_(o);o.state={style:f?Zu({},f,d):d}}else o.state={style:{}};return o}return Lme(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,l=a.canBegin;this.mounted=!0,!(!o||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,l=o.isActive,c=o.canBegin,f=o.attributeName,d=o.shouldReAnimate,m=o.to,h=o.from,g=this.state.style;if(c){if(!l){var x={style:f?Zu({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(x);return}if(!(Ype(a.to,m)&&a.canBegin&&a.isActive)){var A=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=A||d?h:a.to;if(this.state&&g){var w={style:f?Zu({},f,S):S};(f&&g[f]!==S||!f&&g!==S)&&this.setState(w)}this.runAnimation(ma(ma({},this.props),{},{from:S,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,l=a.from,c=a.to,f=a.duration,d=a.easing,m=a.begin,h=a.onAnimationEnd,g=a.onAnimationStart,x=jme(l,c,gme(d),f,this.changeStyle),A=function(){o.stopJSAnimation=x()};this.manager.start([g,m,A,f,h])}},{key:"runStepAnimation",value:function(a){var o=this,l=a.steps,c=a.begin,f=a.onAnimationStart,d=l[0],m=d.style,h=d.duration,g=h===void 0?0:h,x=function(S,w,O){if(O===0)return S;var E=w.duration,j=w.easing,C=j===void 0?"ease":j,T=w.style,R=w.properties,N=w.onAnimationEnd,k=O>0?l[O-1]:w,z=R||Object.keys(T);if(typeof C=="function"||C==="spring")return[].concat(h1(S),[o.runJSAnimation.bind(o,{from:k.style,to:T,duration:E,easing:C}),E]);var V=t$(z,E,C),B=ma(ma(ma({},k.style),T),{},{transition:V});return[].concat(h1(S),[B,E,N]).filter(ime)};return this.manager.start([f].concat(h1(l.reduce(x,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=tme());var o=a.begin,l=a.duration,c=a.attributeName,f=a.to,d=a.easing,m=a.onAnimationStart,h=a.onAnimationEnd,g=a.steps,x=a.children,A=this.manager;if(this.unSubscribe=A.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var S=c?Zu({},c,f):f,w=t$(Object.keys(S),l,d);A.start([m,o,ma(ma({},S),{},{transition:w}),l,h])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var f=Rme(a,Cme),d=y.Children.count(o),m=this.state.style;if(typeof o=="function")return o(m);if(!c||d===0||l<=0)return o;var h=function(x){var A=x.props,S=A.style,w=S===void 0?{}:S,O=A.className,E=y.cloneElement(x,ma(ma({},f),{},{style:ma(ma({},w),m),className:O}));return E};return d===1?h(y.Children.only(o)):L.createElement("div",null,y.Children.map(o,function(g){return h(g)}))}}]),n})(y.PureComponent);ki.displayName="Animate";ki.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ki.propTypes={from:Rt.oneOfType([Rt.object,Rt.string]),to:Rt.oneOfType([Rt.object,Rt.string]),attributeName:Rt.string,duration:Rt.number,begin:Rt.number,easing:Rt.oneOfType([Rt.string,Rt.func]),steps:Rt.arrayOf(Rt.shape({duration:Rt.number.isRequired,style:Rt.object.isRequired,easing:Rt.oneOfType([Rt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Rt.func]),properties:Rt.arrayOf("string"),onAnimationEnd:Rt.func})),children:Rt.oneOfType([Rt.node,Rt.func]),isActive:Rt.bool,canBegin:Rt.bool,onAnimationEnd:Rt.func,shouldReAnimate:Rt.bool,onAnimationStart:Rt.func,onAnimationReStart:Rt.func};function zf(e){"@babel/helpers - typeof";return zf=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},zf(e)}function Am(){return Am=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},Am.apply(this,arguments)}function Hme(e,t){return Wme(e)||Gme(e,t)||Vme(e,t)||Fme()}function Fme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
472
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vme(e,t){if(e){if(typeof e=="string")return s$(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 s$(e,t)}}function s$(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 Gme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Wme(e){if(Array.isArray(e))return e}function l$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function c$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l$(Object(n),!0).forEach(function(r){Yme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yme(e,t,n){return t=Zme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zme(e){var t=Kme(e,"string");return zf(t)=="symbol"?t:t+""}function Kme(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u$=function(t,n,r,a,o){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,d=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&o instanceof Array){for(var h=[0,0,0,0],g=0,x=4;g<x;g++)h[g]=o[g]>l?l:o[g];m="M".concat(t,",").concat(n+c*h[0]),h[0]>0&&(m+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(d,",").concat(t+f*h[0],",").concat(n)),m+="L ".concat(t+r-f*h[1],",").concat(n),h[1]>0&&(m+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(d,`,
|
|
473
|
-
`).concat(t+r,",").concat(n+c*h[1])),m+="L ".concat(t+r,",").concat(n+a-c*h[2]),h[2]>0&&(m+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(d,`,
|
|
474
|
-
`).concat(t+r-f*h[2],",").concat(n+a)),m+="L ".concat(t+f*h[3],",").concat(n+a),h[3]>0&&(m+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(d,`,
|
|
475
|
-
`).concat(t,",").concat(n+a-c*h[3])),m+="Z"}else if(l>0&&o===+o&&o>0){var A=Math.min(l,o);m="M ".concat(t,",").concat(n+c*A,`
|
|
476
|
-
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t+f*A,",").concat(n,`
|
|
477
|
-
L `).concat(t+r-f*A,",").concat(n,`
|
|
478
|
-
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*A,`
|
|
479
|
-
L `).concat(t+r,",").concat(n+a-c*A,`
|
|
480
|
-
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t+r-f*A,",").concat(n+a,`
|
|
481
|
-
L `).concat(t+f*A,",").concat(n+a,`
|
|
482
|
-
A `).concat(A,",").concat(A,",0,0,").concat(d,",").concat(t,",").concat(n+a-c*A," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},Xme=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,o=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(o,o+c),m=Math.max(o,o+c),h=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=m&&a>=h&&a<=g}return!1},Qme={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},YO=function(t){var n=c$(c$({},Qme),t),r=y.useRef(),a=y.useState(-1),o=Hme(a,2),l=o[0],c=o[1];y.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&c(C)}catch{}},[]);var f=n.x,d=n.y,m=n.width,h=n.height,g=n.radius,x=n.className,A=n.animationEasing,S=n.animationDuration,w=n.animationBegin,O=n.isAnimationActive,E=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||h!==+h||m===0||h===0)return null;var j=bt("recharts-rectangle",x);return E?L.createElement(ki,{canBegin:l>0,from:{width:m,height:h,x:f,y:d},to:{width:m,height:h,x:f,y:d},duration:S,animationEasing:A,isActive:E},function(C){var T=C.width,R=C.height,N=C.x,k=C.y;return L.createElement(ki,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,isActive:O,easing:A},L.createElement("path",Am({},dt(n,!0),{className:j,d:u$(N,k,T,R,g),ref:r})))}):L.createElement("path",Am({},dt(n,!0),{className:j,d:u$(f,d,m,h,g)}))};function d_(){return d_=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},d_.apply(this,arguments)}var ZO=function(t){var n=t.cx,r=t.cy,a=t.r,o=t.className,l=bt("recharts-dot",o);return n===+n&&r===+r&&a===+a?y.createElement("circle",d_({},dt(t,!1),Fp(t),{className:l,cx:n,cy:r,r:a})):null};function Lf(e){"@babel/helpers - typeof";return Lf=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},Lf(e)}var Jme=["x","y","top","left","width","height","className"];function h_(){return h_=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},h_.apply(this,arguments)}function f$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f$(Object(n),!0).forEach(function(r){tve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tve(e,t,n){return t=nve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nve(e){var t=rve(e,"string");return Lf(t)=="symbol"?t:t+""}function rve(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ave(e,t){if(e==null)return{};var n=ive(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ive(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 ove=function(t,n,r,a,o,l){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},sve=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,m=t.width,h=m===void 0?0:m,g=t.height,x=g===void 0?0:g,A=t.className,S=ave(t,Jme),w=eve({x:r,y:o,top:c,left:d,width:h,height:x},S);return!Ne(r)||!Ne(o)||!Ne(h)||!Ne(x)||!Ne(c)||!Ne(d)?null:L.createElement("path",h_({},dt(w,!0),{className:bt("recharts-cross",A),d:ove(r,o,h,x,c,d)}))},p1,d$;function lve(){if(d$)return p1;d$=1;var e=MB(),t=e(Object.getPrototypeOf,Object);return p1=t,p1}var m1,h$;function cve(){if(h$)return m1;h$=1;var e=Li(),t=lve(),n=Ii(),r="[object Object]",a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,f=l.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var h=t(m);if(h===null)return!0;var g=c.call(h,"constructor")&&h.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return m1=d,m1}var uve=cve();const fve=Bt(uve);var v1,p$;function dve(){if(p$)return v1;p$=1;var e=Li(),t=Ii(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return v1=r,v1}var hve=dve();const pve=Bt(hve);function If(e){"@babel/helpers - typeof";return If=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},If(e)}function Om(){return Om=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},Om.apply(this,arguments)}function mve(e,t){return bve(e)||yve(e,t)||gve(e,t)||vve()}function vve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
483
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gve(e,t){if(e){if(typeof e=="string")return m$(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 m$(e,t)}}function m$(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 yve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function bve(e){if(Array.isArray(e))return e}function v$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function g$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v$(Object(n),!0).forEach(function(r){xve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xve(e,t,n){return t=wve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wve(e){var t=Sve(e,"string");return If(t)=="symbol"?t:t+""}function Sve(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y$=function(t,n,r,a,o){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+o),c+="L ".concat(t+r-l/2-a,",").concat(n+o),c+="L ".concat(t,",").concat(n," Z"),c},_ve={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ave=function(t){var n=g$(g$({},_ve),t),r=y.useRef(),a=y.useState(-1),o=mve(a,2),l=o[0],c=o[1];y.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&c(j)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,h=n.lowerWidth,g=n.height,x=n.className,A=n.animationEasing,S=n.animationDuration,w=n.animationBegin,O=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||h!==+h||g!==+g||m===0&&h===0||g===0)return null;var E=bt("recharts-trapezoid",x);return O?L.createElement(ki,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:m,lowerWidth:h,height:g,x:f,y:d},duration:S,animationEasing:A,isActive:O},function(j){var C=j.upperWidth,T=j.lowerWidth,R=j.height,N=j.x,k=j.y;return L.createElement(ki,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,easing:A},L.createElement("path",Om({},dt(n,!0),{className:E,d:y$(N,k,C,T,R),ref:r})))}):L.createElement("g",null,L.createElement("path",Om({},dt(n,!0),{className:E,d:y$(f,d,m,h,g)})))},Ove=["option","shapeType","propTransformer","activeClassName","isActive"];function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}function Eve(e,t){if(e==null)return{};var n=Tve(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tve(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 b$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Em(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b$(Object(n),!0).forEach(function(r){jve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jve(e,t,n){return t=Cve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cve(e){var t=Rve(e,"string");return Bf(t)=="symbol"?t:t+""}function Rve(e,t){if(Bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nve(e,t){return Em(Em({},t),e)}function Mve(e,t){return e==="symbols"}function x$(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return L.createElement(YO,n);case"trapezoid":return L.createElement(Ave,n);case"sector":return L.createElement(a8,n);case"symbols":if(Mve(t))return L.createElement(hO,n);break;default:return null}}function Pve(e){return y.isValidElement(e)?e.props:e}function Dve(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Nve:r,o=e.activeClassName,l=o===void 0?"recharts-active-shape":o,c=e.isActive,f=Eve(e,Ove),d;if(y.isValidElement(t))d=y.cloneElement(t,Em(Em({},f),Pve(t)));else if(ot(t))d=t(f);else if(fve(t)&&!pve(t)){var m=a(t,f);d=L.createElement(x$,{shapeType:n,elementProps:m})}else{var h=f;d=L.createElement(x$,{shapeType:n,elementProps:h})}return c?L.createElement(rn,{className:l},d):d}function Yv(e,t){return t!=null&&"trapezoids"in e.props}function Zv(e,t){return t!=null&&"sectors"in e.props}function Uf(e,t){return t!=null&&"points"in e.props}function kve(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&o}function $ve(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function zve(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Lve(e,t){var n;return Yv(e,t)?n=kve:Zv(e,t)?n=$ve:Uf(e,t)&&(n=zve),n}function Ive(e,t){var n;return Yv(e,t)?n="trapezoids":Zv(e,t)?n="sectors":Uf(e,t)&&(n="points"),n}function Bve(e,t){if(Yv(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(Zv(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 Uf(e,t)?t.payload:{}}function Uve(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Ive(n,t),o=Bve(n,t),l=r.filter(function(f,d){var m=Af(o,f),h=n.props[a].filter(function(A){var S=Lve(n,t);return S(A,t)}),g=n.props[a].indexOf(h[h.length-1]),x=d===g;return m&&x}),c=r.indexOf(l[l.length-1]);return c}var g1,w$;function qve(){if(w$)return g1;w$=1;var e=Math.ceil,t=Math.max;function n(r,a,o,l){for(var c=-1,f=t(e((a-r)/(o||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=o;return d}return g1=n,g1}var y1,S$;function d8(){if(S$)return y1;S$=1;var e=YB(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var o=a<0?-1:1;return o*n}return a===a?a:0}return y1=r,y1}var b1,_$;function Hve(){if(_$)return b1;_$=1;var e=qve(),t=zv(),n=d8();function r(a){return function(o,l,c){return c&&typeof c!="number"&&t(o,l,c)&&(l=c=void 0),o=n(o),l===void 0?(l=o,o=0):l=n(l),c=c===void 0?o<l?1:-1:n(c),e(o,l,c,a)}}return b1=r,b1}var x1,A$;function Fve(){if(A$)return x1;A$=1;var e=Hve(),t=e();return x1=t,x1}var Vve=Fve();const Tm=Bt(Vve);function qf(e){"@babel/helpers - typeof";return qf=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},qf(e)}function O$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function E$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O$(Object(n),!0).forEach(function(r){h8(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h8(e,t,n){return t=Gve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gve(e){var t=Wve(e,"string");return qf(t)=="symbol"?t:t+""}function Wve(e,t){if(qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yve=["Webkit","Moz","O","ms"],Zve=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=Yve.reduce(function(o,l){return E$(E$({},o),{},h8({},l+r,n))},{});return a[t]=n,a};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 jm(){return jm=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},jm.apply(this,arguments)}function T$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function w1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T$(Object(n),!0).forEach(function(r){jr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j$(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,m8(r.key),r)}}function Xve(e,t,n){return t&&j$(e.prototype,t),n&&j$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qve(e,t,n){return t=Cm(t),Jve(e,p8()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function Jve(e,t){if(t&&(oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ege(e)}function ege(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p8=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}function tge(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&&p_(e,t)}function p_(e,t){return p_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},p_(e,t)}function jr(e,t,n){return t=m8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m8(e){var t=nge(e,"string");return oc(t)=="symbol"?t:t+""}function nge(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 String(e)}var rge=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,o=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=ef().domain(Tm(0,f)).range([o,o+l-c]),m=d.domain().map(function(h){return d(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(a),scale:d,scaleValues:m}},C$=function(t){return t.changedTouches&&!!t.changedTouches.length},sc=(function(e){function t(n){var r;return Kve(this,t),r=Qve(this,t,[n]),jr(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),jr(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),jr(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,o=a.endIndex,l=a.onDragEnd,c=a.startIndex;l==null||l({endIndex:o,startIndex:c})}),r.detachDragEndListener()}),jr(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),jr(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),jr(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),jr(r,"handleSlideDragStart",function(a){var o=C$(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return tge(t,e),Xve(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,o=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,h=Math.min(a,o),g=Math.max(a,o),x=t.getIndexInRange(l,h),A=t.getIndexInRange(l,g);return{startIndex:x-x%f,endIndex:A===m?m:A-A%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,l=a.tickFormatter,c=a.dataKey,f=kr(o[r],c,r);return ot(l)?l(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 a=this.state,o=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,d=f.x,m=f.width,h=f.travellerWidth,g=f.startIndex,x=f.endIndex,A=f.onChange,S=r.pageX-o;S>0?S=Math.min(S,d+m-h-c,d+m-h-l):S<0&&(S=Math.max(S,d-l,d-c));var w=this.getIndex({startX:l+S,endX:c+S});(w.startIndex!==g||w.endIndex!==x)&&A&&A(w),this.setState({startX:l+S,endX:c+S,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=C$(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,o=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,d=this.state[l],m=this.props,h=m.x,g=m.width,x=m.travellerWidth,A=m.onChange,S=m.gap,w=m.data,O={startX:this.state.startX,endX:this.state.endX},E=r.pageX-o;E>0?E=Math.min(E,h+g-x-d):E<0&&(E=Math.max(E,h-d)),O[l]=d+E;var j=this.getIndex(O),C=j.startIndex,T=j.endIndex,R=function(){var k=w.length-1;return l==="startX"&&(c>f?C%S===0:T%S===0)||c<f&&T===k||l==="endX"&&(c>f?T%S===0:C%S===0)||c>f&&T===k};this.setState(jr(jr({},l,d+E),"brushMoveStartX",r.pageX),function(){A&&R()&&A(j)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var o=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,m=this.state[a],h=c.indexOf(m);if(h!==-1){var g=h+r;if(!(g===-1||g>=c.length)){var x=c[g];a==="startX"&&x>=d||a==="endX"&&x<=f||this.setState(jr({},a,x),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return L.createElement("rect",{stroke:d,fill:f,x:a,y:o,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,h=y.Children.only(d);return h?L.cloneElement(h,{x:a,y:o,width:l,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var o,l,c=this,f=this.props,d=f.y,m=f.travellerWidth,h=f.height,g=f.traveller,x=f.ariaLabel,A=f.data,S=f.startIndex,w=f.endIndex,O=Math.max(r,this.props.x),E=w1(w1({},dt(this.props,!1)),{},{x:O,y:d,width:m,height:h}),j=x||"Min value: ".concat((o=A[S])===null||o===void 0?void 0:o.name,", Max value: ").concat((l=A[w])===null||l===void 0?void 0:l.name);return L.createElement(rn,{tabIndex:0,role:"slider","aria-label":j,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),c.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,E))}},{key:"renderSlide",value:function(r,a){var o=this.props,l=o.y,c=o.height,f=o.stroke,d=o.travellerWidth,m=Math.min(r,a)+d,h=Math.max(Math.abs(a-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:l,width:h,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,o=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,h=m.startX,g=m.endX,x=5,A={pointerEvents:"none",fill:d};return L.createElement(rn,{className:"recharts-brush-texts"},L.createElement(nm,jm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,g)-x,y:l+c/2},A),this.getTextOfTick(a)),L.createElement(nm,jm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,g)+f+x,y:l+c/2},A),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,a=r.data,o=r.className,l=r.children,c=r.x,f=r.y,d=r.width,m=r.height,h=r.alwaysShowText,g=this.state,x=g.startX,A=g.endX,S=g.isTextActive,w=g.isSlideMoving,O=g.isTravellerMoving,E=g.isTravellerFocused;if(!a||!a.length||!Ne(c)||!Ne(f)||!Ne(d)||!Ne(m)||d<=0||m<=0)return null;var j=bt("recharts-brush",o),C=L.Children.count(l)===1,T=Zve("userSelect","none");return L.createElement(rn,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(x,A),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(A,"endX"),(S||w||O||E||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,o=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(o+c/2)-1;return L.createElement(L.Fragment,null,L.createElement("rect",{x:a,y:o,width:l,height:c,fill:f,stroke:"none"}),L.createElement("line",{x1:a+1,y1:d,x2:a+l-1,y2:d,fill:"none",stroke:"#fff"}),L.createElement("line",{x1:a+1,y1:d+2,x2:a+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var o;return L.isValidElement(r)?o=L.cloneElement(r,a):ot(r)?o=r(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(r,a){var o=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,h=r.endIndex;if(o!==a.prevData||d!==a.prevUpdateId)return w1({prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},o&&o.length?rge({data:o,width:l,x:c,travellerWidth:f,startIndex:m,endIndex:h}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||f!==a.prevTravellerWidth)){a.scale.range([c,c+l-f]);var g=a.scale.domain().map(function(x){return a.scale(x)});return{prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,a){for(var o=r.length,l=0,c=o-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(y.PureComponent);jr(sc,"displayName","Brush");jr(sc,"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 S1,R$;function age(){if(R$)return S1;R$=1;var e=xO();function t(n,r){var a;return e(n,function(o,l,c){return a=r(o,l,c),!a}),!!a}return S1=t,S1}var _1,N$;function ige(){if(N$)return _1;N$=1;var e=OB(),t=$o(),n=age(),r=br(),a=zv();function o(l,c,f){var d=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),d(l,t(c,3))}return _1=o,_1}var oge=ige();const sge=Bt(oge);var Za=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},A1,M$;function lge(){if(M$)return A1;M$=1;var e=HB();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return A1=t,A1}var O1,P$;function cge(){if(P$)return O1;P$=1;var e=lge(),t=UB(),n=$o();function r(a,o){var l={};return o=n(o,3),t(a,function(c,f,d){e(l,f,o(c,f,d))}),l}return O1=r,O1}var uge=cge();const fge=Bt(uge);var E1,D$;function dge(){if(D$)return E1;D$=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return E1=e,E1}var T1,k$;function hge(){if(k$)return T1;k$=1;var e=xO();function t(n,r){var a=!0;return e(n,function(o,l,c){return a=!!r(o,l,c),a}),a}return T1=t,T1}var j1,$$;function pge(){if($$)return j1;$$=1;var e=dge(),t=hge(),n=$o(),r=br(),a=zv();function o(l,c,f){var d=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),d(l,n(c,3))}return j1=o,j1}var mge=pge();const v8=Bt(mge);var vge=["x","y"];function Hf(e){"@babel/helpers - typeof";return Hf=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},Hf(e)}function m_(){return m_=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},m_.apply(this,arguments)}function z$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z$(Object(n),!0).forEach(function(r){gge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gge(e,t,n){return t=yge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yge(e){var t=bge(e,"string");return Hf(t)=="symbol"?t:t+""}function bge(e,t){if(Hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xge(e,t){if(e==null)return{};var n=wge(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wge(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 Sge(e,t){var n=e.x,r=e.y,a=xge(e,vge),o="".concat(n),l=parseInt(o,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||a.height),m=parseInt(d,10),h="".concat(t.width||a.width),g=parseInt(h,10);return Uu(Uu(Uu(Uu(Uu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function L$(e){return L.createElement(Dve,m_({shapeType:"rectangle",propTransformer:Sge,activeClassName:"recharts-active-bar"},e))}var _ge=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var o=Ne(r)||jae(r);return o?t(r,a):(o||Ns(),n)}},Age=["value","background"],g8;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 Oge(e,t){if(e==null)return{};var n=Ege(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ege(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 Rm(){return Rm=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},Rm.apply(this,arguments)}function I$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).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?I$(Object(n),!0).forEach(function(r){xo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B$(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,b8(r.key),r)}}function jge(e,t,n){return t&&B$(e.prototype,t),n&&B$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cge(e,t,n){return t=Nm(t),Rge(e,y8()?Reflect.construct(t,n||[],Nm(e).constructor):t.apply(e,n))}function Rge(e,t){if(t&&(lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nge(e)}function Nge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y8=function(){return!!e})()}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nm(e)}function Mge(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&&v_(e,t)}function v_(e,t){return v_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},v_(e,t)}function xo(e,t,n){return t=b8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b8(e){var t=Pge(e,"string");return lc(t)=="symbol"?t:t+""}function Pge(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 String(e)}var Sd=(function(e){function t(){var n;Tge(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Cge(this,t,[].concat(a)),xo(n,"state",{isAnimationFinished:!1}),xo(n,"id",vd("recharts-bar-")),xo(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),xo(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Mge(t,e),jge(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,o=this.props,l=o.shape,c=o.dataKey,f=o.activeIndex,d=o.activeBar,m=dt(this.props,!1);return r&&r.map(function(h,g){var x=g===f,A=x?d:l,S=Sn(Sn(Sn({},m),h),{},{isActive:x,option:A,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return L.createElement(rn,Rm({className:"recharts-bar-rectangle"},Vp(a.props,h,g),{key:"rectangle-".concat(h==null?void 0:h.x,"-").concat(h==null?void 0:h.y,"-").concat(h==null?void 0:h.value,"-").concat(g)}),L.createElement(L$,S))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,o=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,m=a.animationEasing,h=a.animationId,g=this.state.prevData;return L.createElement(ki,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var A=x.t,S=o.map(function(w,O){var E=g&&g[O];if(E){var j=Xr(E.x,w.x),C=Xr(E.y,w.y),T=Xr(E.width,w.width),R=Xr(E.height,w.height);return Sn(Sn({},w),{},{x:j(A),y:C(A),width:T(A),height:R(A)})}if(l==="horizontal"){var N=Xr(0,w.height),k=N(A);return Sn(Sn({},w),{},{y:w.y+w.height-k,height:k})}var z=Xr(0,w.width),V=z(A);return Sn(Sn({},w),{},{width:V})});return L.createElement(rn,null,r.renderRectanglesStatically(S))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,o=r.isAnimationActive,l=this.state.prevData;return o&&a&&a.length&&(!l||!Af(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,o=a.data,l=a.dataKey,c=a.activeIndex,f=dt(this.props.background,!1);return o.map(function(d,m){d.value;var h=d.background,g=Oge(d,Age);if(!h)return null;var x=Sn(Sn(Sn(Sn(Sn({},g),{},{fill:"#eee"},h),f),Vp(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return L.createElement(L$,Rm({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},x))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.data,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,h=Ea(m,Wv);if(!h)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,x=function(w,O){var E=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:E,errorVal:kr(w,O)}},A={clipPath:r?"url(#clipPath-".concat(a,")"):null};return L.createElement(rn,A,h.map(function(S){return L.cloneElement(S,{key:"error-bar-".concat(a,"-").concat(S.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,o=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,h=r.width,g=r.height,x=r.isAnimationActive,A=r.background,S=r.id;if(a||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=bt("recharts-bar",l),E=c&&c.allowDataOverflow,j=f&&f.allowDataOverflow,C=E||j,T=gt(S)?this.id:S;return L.createElement(rn,{className:O},E||j?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(T)},L.createElement("rect",{x:E?d:d-h/2,y:j?m:m-g/2,width:E?h:h*2,height:j?g:g*2}))):null,L.createElement(rn,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(T,")"):null},A?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,T),(!x||w)&&Ao.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])})(y.PureComponent);g8=Sd;xo(Sd,"displayName","Bar");xo(Sd,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Mc.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});xo(Sd,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,o=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,h=e.displayedData,g=e.offset,x=Yde(r,n);if(!x)return null;var A=t.layout,S=n.type.defaultProps,w=S!==void 0?Sn(Sn({},S),n.props):n.props,O=w.dataKey,E=w.children,j=w.minPointSize,C=A==="horizontal"?l:o,T=d?C.scale.domain():null,R=nhe({numericAxis:C}),N=Ea(E,KB),k=h.map(function(z,V){var B,I,F,G,Y,$;d?B=Zde(d[m+V],T):(B=kr(z,O),Array.isArray(B)||(B=[R,B]));var q=_ge(j,g8.defaultProps.minPointSize)(B[1],V);if(A==="horizontal"){var K,X=[l.scale(B[0]),l.scale(B[1])],Z=X[0],P=X[1];I=Ek({axis:o,ticks:c,bandSize:a,offset:x.offset,entry:z,index:V}),F=(K=P??Z)!==null&&K!==void 0?K:void 0,G=x.size;var H=Z-P;if(Y=Number.isNaN(H)?0:H,$={x:I,y:l.y,width:G,height:l.height},Math.abs(q)>0&&Math.abs(Y)<Math.abs(q)){var J=Sa(Y||q)*(Math.abs(q)-Math.abs(Y));F-=J,Y+=J}}else{var fe=[o.scale(B[0]),o.scale(B[1])],ye=fe[0],ce=fe[1];if(I=ye,F=Ek({axis:l,ticks:f,bandSize:a,offset:x.offset,entry:z,index:V}),G=ce-ye,Y=x.size,$={x:o.x,y:F,width:o.width,height:Y},Math.abs(q)>0&&Math.abs(G)<Math.abs(q)){var he=Sa(G||q)*(Math.abs(q)-Math.abs(G));G+=he}}return Sn(Sn(Sn({},z),{},{x:I,y:F,width:G,height:Y,value:d?B:B[1],payload:z,background:$},N&&N[V]&&N[V].props),{},{tooltipPayload:[t8(n,z)],tooltipPosition:{x:I+G/2,y:F+Y/2}})});return Sn({data:k,layout:A},g)});function Ff(e){"@babel/helpers - typeof";return Ff=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},Ff(e)}function Dge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U$(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,x8(r.key),r)}}function kge(e,t,n){return t&&U$(e.prototype,t),n&&U$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function q$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ya(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q$(Object(n),!0).forEach(function(r){Kv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kv(e,t,n){return t=x8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x8(e){var t=$ge(e,"string");return Ff(t)=="symbol"?t:t+""}function $ge(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zge=function(t,n,r,a,o){var l=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),h={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!Cr(d,Sd);return m.reduce(function(x,A){var S=n[A],w=S.orientation,O=S.domain,E=S.padding,j=E===void 0?{}:E,C=S.mirror,T=S.reversed,R="".concat(w).concat(C?"Mirror":""),N,k,z,V,B;if(S.type==="number"&&(S.padding==="gap"||S.padding==="no-gap")){var I=O[1]-O[0],F=1/0,G=S.categoricalDomain.sort(Nae);if(G.forEach(function(fe,ye){ye>0&&(F=Math.min((fe||0)-(G[ye-1]||0),F))}),Number.isFinite(F)){var Y=F/I,$=S.layout==="vertical"?r.height:r.width;if(S.padding==="gap"&&(N=Y*$/2),S.padding==="no-gap"){var q=Cs(t.barCategoryGap,Y*$),K=Y*$/2;N=K-q-(K-q)/$*q}}}a==="xAxis"?k=[r.left+(j.left||0)+(N||0),r.left+r.width-(j.right||0)-(N||0)]:a==="yAxis"?k=f==="horizontal"?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(N||0),r.top+r.height-(j.bottom||0)-(N||0)]:k=S.range,T&&(k=[k[1],k[0]]);var X=Gde(S,o,g),Z=X.scale,P=X.realScaleType;Z.domain(O).range(k),Wde(Z);var H=the(Z,ya(ya({},S),{},{realScaleType:P}));a==="xAxis"?(B=w==="top"&&!C||w==="bottom"&&C,z=r.left,V=h[R]-B*S.height):a==="yAxis"&&(B=w==="left"&&!C||w==="right"&&C,z=h[R]-B*S.width,V=r.top);var J=ya(ya(ya({},S),H),{},{realScaleType:P,x:z,y:V,scale:Z,width:a==="xAxis"?r.width:S.width,height:a==="yAxis"?r.height:S.height});return J.bandSize=gm(J,H),!S.hide&&a==="xAxis"?h[R]+=(B?-1:1)*J.height:S.hide||(h[R]+=(B?-1:1)*J.width),ya(ya({},x),{},Kv({},A,J))},{})},w8=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return{x:Math.min(r,o),y:Math.min(a,l),width:Math.abs(o-r),height:Math.abs(l-a)}},Lge=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return w8({x:n,y:r},{x:a,y:o})},S8=(function(){function e(t){Dge(this,e),this.scale=t}return kge(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]:{},a=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){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(),a=r[0],o=r[r.length-1];return a<=o?n>=a&&n<=o:n>=o&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();Kv(S8,"EPS",1e-4);var KO=function(t){var n=Object.keys(t).reduce(function(r,a){return ya(ya({},r),{},Kv({},a,S8.create(t[a])))},{});return ya(ya({},n),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.bandAware,c=o.position;return fge(a,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return v8(a,function(o,l){return n[l].isInRange(o)})}})};function Ige(e){return(e%180+180)%180}var Bge=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Ige(a),l=o*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},C1,H$;function Uge(){if(H$)return C1;H$=1;var e=$o(),t=gd(),n=kv();function r(a){return function(o,l,c){var f=Object(o);if(!t(o)){var d=e(l,3);o=n(o),l=function(h){return d(f[h],h,f)}}var m=a(o,l,c);return m>-1?f[d?o[m]:m]:void 0}}return C1=r,C1}var R1,F$;function qge(){if(F$)return R1;F$=1;var e=d8();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return R1=t,R1}var N1,V$;function Hge(){if(V$)return N1;V$=1;var e=$B(),t=$o(),n=qge(),r=Math.max;function a(o,l,c){var f=o==null?0:o.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(o,t(l,3),d)}return N1=a,N1}var M1,G$;function Fge(){if(G$)return M1;G$=1;var e=Uge(),t=Hge(),n=e(t);return M1=n,M1}var Vge=Fge();const Gge=Bt(Vge);var Wge=Q4();const Yge=Bt(Wge);var Zge=Yge(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("")}),XO=y.createContext(void 0),QO=y.createContext(void 0),_8=y.createContext(void 0),A8=y.createContext({}),O8=y.createContext(void 0),E8=y.createContext(0),T8=y.createContext(0),W$=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,o=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Zge(o);return L.createElement(XO.Provider,{value:r},L.createElement(QO.Provider,{value:a},L.createElement(A8.Provider,{value:o},L.createElement(_8.Provider,{value:m},L.createElement(O8.Provider,{value:l},L.createElement(E8.Provider,{value:d},L.createElement(T8.Provider,{value:f},c)))))))},Kge=function(){return y.useContext(O8)},j8=function(t){var n=y.useContext(XO);n==null&&Ns();var r=n[t];return r==null&&Ns(),r},Xge=function(){var t=y.useContext(XO);return yo(t)},Qge=function(){var t=y.useContext(QO),n=Gge(t,function(r){return v8(r.domain,Number.isFinite)});return n||yo(t)},C8=function(t){var n=y.useContext(QO);n==null&&Ns();var r=n[t];return r==null&&Ns(),r},Jge=function(){var t=y.useContext(_8);return t},eye=function(){return y.useContext(A8)},JO=function(){return y.useContext(T8)},eE=function(){return y.useContext(E8)};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 tye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nye(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,N8(r.key),r)}}function rye(e,t,n){return t&&nye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aye(e,t,n){return t=Mm(t),iye(e,R8()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function iye(e,t){if(t&&(cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oye(e)}function oye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R8=function(){return!!e})()}function Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}function sye(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&&g_(e,t)}function g_(e,t){return g_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},g_(e,t)}function Y$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y$(Object(n),!0).forEach(function(r){tE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tE(e,t,n){return t=N8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N8(e){var t=lye(e,"string");return cc(t)=="symbol"?t:t+""}function lye(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 String(e)}function cye(e,t){return hye(e)||dye(e,t)||fye(e,t)||uye()}function uye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
484
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fye(e,t){if(e){if(typeof e=="string")return K$(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 K$(e,t)}}function K$(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 dye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function hye(e){if(Array.isArray(e))return e}function y_(){return y_=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},y_.apply(this,arguments)}var pye=function(t,n){var r;return L.isValidElement(t)?r=L.cloneElement(t,n):ot(t)?r=t(n):r=L.createElement("line",y_({},n,{className:"recharts-reference-line-line"})),r},mye=function(t,n,r,a,o,l,c,f,d){var m=o.x,h=o.y,g=o.width,x=o.height;if(r){var A=d.y,S=t.y.apply(A,{position:l});if(Za(d,"discard")&&!t.y.isInRange(S))return null;var w=[{x:m+g,y:S},{x:m,y:S}];return f==="left"?w.reverse():w}if(n){var O=d.x,E=t.x.apply(O,{position:l});if(Za(d,"discard")&&!t.x.isInRange(E))return null;var j=[{x:E,y:h+x},{x:E,y:h}];return c==="top"?j.reverse():j}if(a){var C=d.segment,T=C.map(function(R){return t.apply(R,{position:l})});return Za(d,"discard")&&sge(T,function(R){return!t.isInRange(R)})?null:T}return null};function vye(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,o=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Kge(),m=j8(a),h=C8(o),g=Jge();if(!d||!g)return null;Ti(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=KO({x:m.scale,y:h.scale}),A=Rn(t),S=Rn(n),w=r&&r.length===2,O=mye(x,A,S,w,g,e.position,m.orientation,h.orientation,e);if(!O)return null;var E=cye(O,2),j=E[0],C=j.x,T=j.y,R=E[1],N=R.x,k=R.y,z=Za(e,"hidden")?"url(#".concat(d,")"):void 0,V=Z$(Z$({clipPath:z},dt(e,!0)),{},{x1:C,y1:T,x2:N,y2:k});return L.createElement(rn,{className:bt("recharts-reference-line",c)},pye(l,V),Jn.renderCallByParent(e,Lge({x1:C,y1:T,x2:N,y2:k})))}var nE=(function(e){function t(){return tye(this,t),aye(this,t,arguments)}return sye(t,e),rye(t,[{key:"render",value:function(){return L.createElement(vye,this.props)}}])})(L.Component);tE(nE,"displayName","ReferenceLine");tE(nE,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function b_(){return b_=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},b_.apply(this,arguments)}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 X$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Q$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X$(Object(n),!0).forEach(function(r){Xv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yye(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,P8(r.key),r)}}function bye(e,t,n){return t&&yye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xye(e,t,n){return t=Pm(t),wye(e,M8()?Reflect.construct(t,n||[],Pm(e).constructor):t.apply(e,n))}function wye(e,t){if(t&&(uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sye(e)}function Sye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M8=function(){return!!e})()}function Pm(e){return Pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pm(e)}function _ye(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&&x_(e,t)}function x_(e,t){return x_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},x_(e,t)}function Xv(e,t,n){return t=P8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P8(e){var t=Aye(e,"string");return uc(t)=="symbol"?t:t+""}function Aye(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 String(e)}var Oye=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,l=KO({x:a.scale,y:o.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return Za(t,"discard")&&!l.isInRange(c)?null:c},Qv=(function(e){function t(){return gye(this,t),xye(this,t,arguments)}return _ye(t,e),bye(t,[{key:"render",value:function(){var r=this.props,a=r.x,o=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Rn(a),m=Rn(o);if(Ti(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var h=Oye(this.props);if(!h)return null;var g=h.x,x=h.y,A=this.props,S=A.shape,w=A.className,O=Za(this.props,"hidden")?"url(#".concat(f,")"):void 0,E=Q$(Q$({clipPath:O},dt(this.props,!0)),{},{cx:g,cy:x});return L.createElement(rn,{className:bt("recharts-reference-dot",w)},t.renderDot(S,E),Jn.renderCallByParent(this.props,{x:g-l,y:x-l,width:2*l,height:2*l}))}}])})(L.Component);Xv(Qv,"displayName","ReferenceDot");Xv(Qv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Xv(Qv,"renderDot",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):ot(e)?n=e(t):n=L.createElement(ZO,b_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 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 J$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ez(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J$(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tye(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,k8(r.key),r)}}function jye(e,t,n){return t&&Tye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cye(e,t,n){return t=Dm(t),Rye(e,D8()?Reflect.construct(t,n||[],Dm(e).constructor):t.apply(e,n))}function Rye(e,t){if(t&&(fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nye(e)}function Nye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D8=function(){return!!e})()}function Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}function Mye(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&&S_(e,t)}function S_(e,t){return S_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},S_(e,t)}function Jv(e,t,n){return t=k8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k8(e){var t=Pye(e,"string");return fc(t)=="symbol"?t:t+""}function Pye(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 String(e)}var Dye=function(t,n,r,a,o){var l=o.x1,c=o.x2,f=o.y1,d=o.y2,m=o.xAxis,h=o.yAxis;if(!m||!h)return null;var g=KO({x:m.scale,y:h.scale}),x={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},A={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(d,{position:"end"}):g.y.rangeMax};return Za(o,"discard")&&(!g.isInRange(x)||!g.isInRange(A))?null:w8(x,A)},eg=(function(e){function t(){return Eye(this,t),Cye(this,t,arguments)}return Mye(t,e),jye(t,[{key:"render",value:function(){var r=this.props,a=r.x1,o=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Ti(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Rn(a),g=Rn(o),x=Rn(l),A=Rn(c),S=this.props.shape;if(!h&&!g&&!x&&!A&&!S)return null;var w=Dye(h,g,x,A,this.props);if(!w&&!S)return null;var O=Za(this.props,"hidden")?"url(#".concat(m,")"):void 0;return L.createElement(rn,{className:bt("recharts-reference-area",f)},t.renderRect(S,ez(ez({clipPath:O},dt(this.props,!0)),w)),Jn.renderCallByParent(this.props,w))}}])})(L.Component);Jv(eg,"displayName","ReferenceArea");Jv(eg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jv(eg,"renderRect",function(e,t){var n;return L.isValidElement(e)?n=L.cloneElement(e,t):ot(e)?n=e(t):n=L.createElement(YO,w_({},t,{className:"recharts-reference-area-rect"})),n});function $8(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function kye(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Bge(r,n)}function $ye(e,t,n){var r=n==="width",a=e.x,o=e.y,l=e.width,c=e.height;return t===1?{start:r?a:o,end:r?a+l:o+c}:{start:r?a+l:o+c,end:r?a:o}}function km(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function zye(e,t){return $8(e,t+1)}function Lye(e,t,n,r,a){for(var o=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,m=l,h=function(){var A=r==null?void 0:r[f];if(A===void 0)return{v:$8(r,d)};var S=f,w,O=function(){return w===void 0&&(w=n(A,S)),w},E=A.coordinate,j=f===0||km(e,E,O,m,c);j||(f=0,m=l,d+=1),j&&(m=E+e*(O()/2+a),f+=d)},g;d<=o.length;)if(g=h(),g)return g.v;return[]}function Vf(e){"@babel/helpers - typeof";return Vf=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},Vf(e)}function tz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tz(Object(n),!0).forEach(function(r){Iye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iye(e,t,n){return t=Bye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bye(e){var t=Uye(e,"string");return Vf(t)=="symbol"?t:t+""}function Uye(e,t){if(Vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qye(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,c=t.start,f=t.end,d=function(g){var x=o[g],A,S=function(){return A===void 0&&(A=n(x,g)),A};if(g===l-1){var w=e*(x.coordinate+e*S()/2-f);o[g]=x=Xn(Xn({},x),{},{tickCoord:w>0?x.coordinate-w*e:x.coordinate})}else o[g]=x=Xn(Xn({},x),{},{tickCoord:x.coordinate});var O=km(e,x.tickCoord,S,c,f);O&&(f=x.tickCoord-e*(S()/2+a),o[g]=Xn(Xn({},x),{},{isShow:!0}))},m=l-1;m>=0;m--)d(m);return o}function Hye(e,t,n,r,a,o){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(o){var m=r[c-1],h=n(m,c-1),g=e*(m.coordinate+e*h/2-d);l[c-1]=m=Xn(Xn({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var x=km(e,m.tickCoord,function(){return h},f,d);x&&(d=m.tickCoord-e*(h/2+a),l[c-1]=Xn(Xn({},m),{},{isShow:!0}))}for(var A=o?c-1:c,S=function(E){var j=l[E],C,T=function(){return C===void 0&&(C=n(j,E)),C};if(E===0){var R=e*(j.coordinate-e*T()/2-f);l[E]=j=Xn(Xn({},j),{},{tickCoord:R<0?j.coordinate-R*e:j.coordinate})}else l[E]=j=Xn(Xn({},j),{},{tickCoord:j.coordinate});var N=km(e,j.tickCoord,T,f,d);N&&(f=j.tickCoord+e*(T()/2+a),l[E]=Xn(Xn({},j),{},{isShow:!0}))},w=0;w<A;w++)S(w);return l}function rE(e,t,n){var r=e.tick,a=e.ticks,o=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,h=e.angle;if(!a||!a.length||!r)return[];if(Ne(f)||Mc.isSsr)return zye(a,typeof f=="number"&&Ne(f)?f:0);var g=[],x=c==="top"||c==="bottom"?"width":"height",A=m&&x==="width"?Ju(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=function(j,C){var T=ot(d)?d(j.value,C):j.value;return x==="width"?kye(Ju(T,{fontSize:t,letterSpacing:n}),A,h):Ju(T,{fontSize:t,letterSpacing:n})[x]},w=a.length>=2?Sa(a[1].coordinate-a[0].coordinate):1,O=$ye(o,w,x);return f==="equidistantPreserveStart"?Lye(w,O,S,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Hye(w,O,S,a,l,f==="preserveStartEnd"):g=qye(w,O,S,a,l),g.filter(function(E){return E.isShow}))}var Fye=["viewBox"],Vye=["viewBox"],Gye=["ticks"];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 Pl(){return Pl=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},Pl.apply(this,arguments)}function nz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nz(Object(n),!0).forEach(function(r){aE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P1(e,t){if(e==null)return{};var n=Wye(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wye(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 Yye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rz(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,L8(r.key),r)}}function Zye(e,t,n){return t&&rz(e.prototype,t),n&&rz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kye(e,t,n){return t=$m(t),Xye(e,z8()?Reflect.construct(t,n||[],$m(e).constructor):t.apply(e,n))}function Xye(e,t){if(t&&(dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qye(e)}function Qye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z8=function(){return!!e})()}function $m(e){return $m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$m(e)}function Jye(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&&__(e,t)}function __(e,t){return __=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},__(e,t)}function aE(e,t,n){return t=L8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L8(e){var t=ebe(e,"string");return dc(t)=="symbol"?t:t+""}function ebe(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 String(e)}var $c=(function(e){function t(n){var r;return Yye(this,t),r=Kye(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Jye(t,e),Zye(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,l=P1(r,Fye),c=this.props,f=c.viewBox,d=P1(c,Vye);return!Il(o,f)||!Il(l,d)||!Il(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.x,l=a.y,c=a.width,f=a.height,d=a.orientation,m=a.tickSize,h=a.mirror,g=a.tickMargin,x,A,S,w,O,E,j=h?-1:1,C=r.tickSize||m,T=Ne(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=A=r.coordinate,w=l+ +!h*f,S=w-j*C,E=S-j*g,O=T;break;case"left":S=w=r.coordinate,A=o+ +!h*c,x=A-j*C,O=x-j*g,E=T;break;case"right":S=w=r.coordinate,A=o+ +h*c,x=A+j*C,O=x+j*g,E=T;break;default:x=A=r.coordinate,w=l+ +h*f,S=w+j*C,E=S+j*g,O=T;break}return{line:{x1:x,y1:S,x2:A,y2:w},tick:{x:O,y:E}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l;switch(a){case"left":l=o?"start":"end";break;case"right":l=o?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=o?"start":"end";break;default:l=o?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,h=jn(jn(jn({},dt(this.props,!1)),dt(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);h=jn(jn({},h),{},{x1:a,y1:o+g*c,x2:a+l,y2:o+g*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);h=jn(jn({},h),{},{x1:a+x*l,y1:o,x2:a+x*l,y2:o+c})}return L.createElement("line",Pl({},h,{className:bt("recharts-cartesian-axis-line",aa(m,"className"))}))}},{key:"renderTicks",value:function(r,a,o){var l=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,h=c.tickFormatter,g=c.unit,x=rE(jn(jn({},this.props),{},{ticks:r}),a,o),A=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),w=dt(this.props,!1),O=dt(m,!1),E=jn(jn({},w),{},{fill:"none"},dt(f,!1)),j=x.map(function(C,T){var R=l.getTickLineCoord(C),N=R.line,k=R.tick,z=jn(jn(jn(jn({textAnchor:A,verticalAnchor:S},w),{},{stroke:"none",fill:d},O),k),{},{index:T,payload:C,visibleTicksCount:x.length,tickFormatter:h});return L.createElement(rn,Pl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},Vp(l.props,C,T)),f&&L.createElement("line",Pl({},E,N,{className:bt("recharts-cartesian-axis-tick-line",aa(f,"className"))})),m&&t.renderTickItem(m,z,"".concat(ot(h)?h(C.value,T):C.value).concat(g||"")))});return L.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var r=this,a=this.props,o=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,d=a.className,m=a.hide;if(m)return null;var h=this.props,g=h.ticks,x=P1(h,Gye),A=g;return ot(f)&&(A=g&&g.length>0?f(this.props):f(x)),l<=0||c<=0||!A||!A.length?null:L.createElement(rn,{className:bt("recharts-cartesian-axis",d),ref:function(w){r.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(A,this.state.fontSize,this.state.letterSpacing),Jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,o){var l,c=bt(a.className,"recharts-cartesian-axis-tick-value");return L.isValidElement(r)?l=L.cloneElement(r,jn(jn({},a),{},{className:c})):ot(r)?l=r(jn(jn({},a),{},{className:c})):l=L.createElement(nm,Pl({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}])})(y.Component);aE($c,"displayName","CartesianAxis");aE($c,"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 tbe=["x1","y1","x2","y2","key"],nbe=["offset"];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 az(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?az(Object(n),!0).forEach(function(r){rbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):az(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rbe(e,t,n){return t=abe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function abe(e){var t=ibe(e,"string");return Ms(t)=="symbol"?t:t+""}function ibe(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(t==="string"?String:Number)(e)}function ms(){return ms=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},ms.apply(this,arguments)}function iz(e,t){if(e==null)return{};var n=obe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function obe(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 sbe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,o=t.y,l=t.width,c=t.height,f=t.ry;return L.createElement("rect",{x:a,y:o,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function I8(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if(ot(e))n=e(t);else{var r=t.x1,a=t.y1,o=t.x2,l=t.y2,c=t.key,f=iz(t,tbe),d=dt(f,!1);d.offset;var m=iz(d,nbe);n=L.createElement("line",ms({},m,{x1:r,y1:a,x2:o,y2:l,fill:"none",key:c}))}return n}function lbe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var d=er(er({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return I8(a,d)});return L.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function cbe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,o=e.verticalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,f){var d=er(er({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return I8(a,d)});return L.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function ube(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,o=e.width,l=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+a-a)}).sort(function(g,x){return g-x});a!==m[0]&&m.unshift(0);var h=m.map(function(g,x){var A=!m[x+1],S=A?a+l-g:m[x+1]-g;if(S<=0)return null;var w=x%t.length;return L.createElement("rect",{key:"react-".concat(x),y:g,x:r,height:S,width:o,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function fbe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,o=e.x,l=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+o-o)}).sort(function(g,x){return g-x});o!==m[0]&&m.unshift(0);var h=m.map(function(g,x){var A=!m[x+1],S=A?o+c-g:m[x+1]-g;if(S<=0)return null;var w=x%r.length;return L.createElement("rect",{key:"react-".concat(x),x:g,y:l,width:S,height:f,stroke:"none",fill:r[w],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return L.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var dbe=function(t,n){var r=t.xAxis,a=t.width,o=t.height,l=t.offset;return J6(rE(er(er(er({},$c.defaultProps),r),{},{ticks:Oi(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.left,l.left+l.width,n)},hbe=function(t,n){var r=t.yAxis,a=t.width,o=t.height,l=t.offset;return J6(rE(er(er(er({},$c.defaultProps),r),{},{ticks:Oi(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.top,l.top+l.height,n)},Rl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function B8(e){var t,n,r,a,o,l,c=JO(),f=eE(),d=eye(),m=er(er({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Rl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Rl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Rl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Rl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Rl.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:Rl.verticalFill,x:Ne(e.x)?e.x:d.left,y:Ne(e.y)?e.y:d.top,width:Ne(e.width)?e.width:d.width,height:Ne(e.height)?e.height:d.height}),h=m.x,g=m.y,x=m.width,A=m.height,S=m.syncWithTicks,w=m.horizontalValues,O=m.verticalValues,E=Xge(),j=Qge();if(!Ne(x)||x<=0||!Ne(A)||A<=0||!Ne(h)||h!==+h||!Ne(g)||g!==+g)return null;var C=m.verticalCoordinatesGenerator||dbe,T=m.horizontalCoordinatesGenerator||hbe,R=m.horizontalPoints,N=m.verticalPoints;if((!R||!R.length)&&ot(T)){var k=w&&w.length,z=T({yAxis:j?er(er({},j),{},{ticks:k?w:j.ticks}):void 0,width:c,height:f,offset:d},k?!0:S);Ti(Array.isArray(z),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ms(z),"]")),Array.isArray(z)&&(R=z)}if((!N||!N.length)&&ot(C)){var V=O&&O.length,B=C({xAxis:E?er(er({},E),{},{ticks:V?O:E.ticks}):void 0,width:c,height:f,offset:d},V?!0:S);Ti(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ms(B),"]")),Array.isArray(B)&&(N=B)}return L.createElement("g",{className:"recharts-cartesian-grid"},L.createElement(sbe,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),L.createElement(lbe,ms({},m,{offset:d,horizontalPoints:R,xAxis:E,yAxis:j})),L.createElement(cbe,ms({},m,{offset:d,verticalPoints:N,xAxis:E,yAxis:j})),L.createElement(ube,ms({},m,{horizontalPoints:R})),L.createElement(fbe,ms({},m,{verticalPoints:N})))}B8.displayName="CartesianGrid";var pbe=["layout","type","stroke","connectNulls","isRange","ref"],mbe=["key"],U8;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 q8(e,t){if(e==null)return{};var n=vbe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vbe(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 vs(){return vs=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},vs.apply(this,arguments)}function oz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oz(Object(n),!0).forEach(function(r){Fa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sz(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,F8(r.key),r)}}function ybe(e,t,n){return t&&sz(e.prototype,t),n&&sz(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bbe(e,t,n){return t=zm(t),xbe(e,H8()?Reflect.construct(t,n||[],zm(e).constructor):t.apply(e,n))}function xbe(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wbe(e)}function wbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H8=function(){return!!e})()}function zm(e){return zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zm(e)}function Sbe(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&&A_(e,t)}function A_(e,t){return A_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},A_(e,t)}function Fa(e,t,n){return t=F8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F8(e){var t=_be(e,"string");return hc(t)=="symbol"?t:t+""}function _be(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 String(e)}var Bo=(function(e){function t(){var n;gbe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=bbe(this,t,[].concat(a)),Fa(n,"state",{isAnimationFinished:!0}),Fa(n,"id",vd("recharts-area-")),Fa(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ot(l)&&l()}),Fa(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ot(l)&&l()}),n}return Sbe(t,e),ybe(t,[{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var f=this.props,d=f.dot,m=f.points,h=f.dataKey,g=dt(this.props,!1),x=dt(d,!0),A=m.map(function(w,O){var E=mo(mo(mo({key:"dot-".concat(O),r:3},g),x),{},{index:O,cx:w.x,cy:w.y,dataKey:h,value:w.value,payload:w.payload,points:m});return t.renderDotItem(d,E)}),S={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return L.createElement(rn,vs({className:"recharts-area-dots"},S),A)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].x,d=l[l.length-1].x,m=r*Math.abs(f-d),h=bo(l.map(function(g){return g.y||0}));return Ne(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(bo(o.map(function(g){return g.y||0})),h)),Ne(h)?L.createElement("rect",{x:f<d?f:f-m,y:0,width:m,height:Math.floor(h+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].y,d=l[l.length-1].y,m=r*Math.abs(f-d),h=bo(l.map(function(g){return g.x||0}));return Ne(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(bo(o.map(function(g){return g.x||0})),h)),Ne(h)?L.createElement("rect",{x:0,y:f<d?f:f-m,width:h+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,o,l){var c=this.props,f=c.layout,d=c.type,m=c.stroke,h=c.connectNulls,g=c.isRange;c.ref;var x=q8(c,pbe);return L.createElement(rn,{clipPath:o?"url(#clipPath-".concat(l,")"):null},L.createElement(nf,vs({},dt(x,!0),{points:r,connectNulls:h,type:d,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&L.createElement(nf,vs({},dt(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:h,fill:"none",points:r})),m!=="none"&&g&&L.createElement(nf,vs({},dt(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:h,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,f=l.baseLine,d=l.isAnimationActive,m=l.animationBegin,h=l.animationDuration,g=l.animationEasing,x=l.animationId,A=this.state,S=A.prevPoints,w=A.prevBaseLine;return L.createElement(ki,{begin:m,duration:h,isActive:d,easing:g,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var E=O.t;if(S){var j=S.length/c.length,C=c.map(function(k,z){var V=Math.floor(z*j);if(S[V]){var B=S[V],I=Xr(B.x,k.x),F=Xr(B.y,k.y);return mo(mo({},k),{},{x:I(E),y:F(E)})}return k}),T;if(Ne(f)&&typeof f=="number"){var R=Xr(w,f);T=R(E)}else if(gt(f)||Rc(f)){var N=Xr(w,0);T=N(E)}else T=f.map(function(k,z){var V=Math.floor(z*j);if(w[V]){var B=w[V],I=Xr(B.x,k.x),F=Xr(B.y,k.y);return mo(mo({},k),{},{x:I(E),y:F(E)})}return k});return o.renderAreaStatically(C,T,r,a)}return L.createElement(rn,null,L.createElement("defs",null,L.createElement("clipPath",{id:"animationClipPath-".concat(a)},o.renderClipRect(E))),L.createElement(rn,{clipPath:"url(#animationClipPath-".concat(a,")")},o.renderAreaStatically(c,f,r,a)))})}},{key:"renderArea",value:function(r,a){var o=this.props,l=o.points,c=o.baseLine,f=o.isAnimationActive,d=this.state,m=d.prevPoints,h=d.prevBaseLine,g=d.totalLength;return f&&l&&l.length&&(!m&&g>0||!Af(m,l)||!Af(h,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,f=a.className,d=a.top,m=a.left,h=a.xAxis,g=a.yAxis,x=a.width,A=a.height,S=a.isAnimationActive,w=a.id;if(o||!c||!c.length)return null;var O=this.state.isAnimationFinished,E=c.length===1,j=bt("recharts-area",f),C=h&&h.allowDataOverflow,T=g&&g.allowDataOverflow,R=C||T,N=gt(w)?this.id:w,k=(r=dt(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},z=k.r,V=z===void 0?3:z,B=k.strokeWidth,I=B===void 0?2:B,F=Bae(l)?l:{},G=F.clipDot,Y=G===void 0?!0:G,$=V*2+I;return L.createElement(rn,{className:j},C||T?L.createElement("defs",null,L.createElement("clipPath",{id:"clipPath-".concat(N)},L.createElement("rect",{x:C?m:m-x/2,y:T?d:d-A/2,width:C?x:x*2,height:T?A:A*2})),!Y&&L.createElement("clipPath",{id:"clipPath-dots-".concat(N)},L.createElement("rect",{x:m-$/2,y:d-$/2,width:x+$,height:A+$}))):null,E?null:this.renderArea(R,N),(l||E)&&this.renderDots(R,Y,N),(!S||O)&&Ao.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(y.PureComponent);U8=Bo;Fa(Bo,"displayName","Area");Fa(Bo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Mc.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Fa(Bo,"getBaseValue",function(e,t,n,r){var a=e.layout,o=e.baseValue,l=t.props.baseValue,c=l??o;if(Ne(c)&&typeof c=="number")return c;var f=a==="horizontal"?r:n,d=f.scale.domain();if(f.type==="number"){var m=Math.max(d[0],d[1]),h=Math.min(d[0],d[1]);return c==="dataMin"?h:c==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return c==="dataMin"?d[0]:c==="dataMax"?d[1]:d[0]});Fa(Bo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,m=e.dataStartIndex,h=e.displayedData,g=e.offset,x=t.layout,A=d&&d.length,S=U8.getBaseValue(t,n,r,a),w=x==="horizontal",O=!1,E=h.map(function(C,T){var R;A?R=d[m+T]:(R=kr(C,f),Array.isArray(R)?O=!0:R=[S,R]);var N=R[1]==null||A&&kr(C,f)==null;return w?{x:Ok({axis:r,ticks:o,bandSize:c,entry:C,index:T}),y:N?null:a.scale(R[1]),value:R,payload:C}:{x:N?null:r.scale(R[1]),y:Ok({axis:a,ticks:l,bandSize:c,entry:C,index:T}),value:R,payload:C}}),j;return A||O?j=E.map(function(C){var T=Array.isArray(C.value)?C.value[0]:null;return w?{x:C.x,y:T!=null&&C.y!=null?a.scale(T):null}:{x:T!=null?r.scale(T):null,y:C.y}}):j=w?a.scale(S):r.scale(S),mo({points:E,baseLine:j,layout:x,isRange:O},g)});Fa(Bo,"renderDotItem",function(e,t){var n;if(L.isValidElement(e))n=L.cloneElement(e,t);else if(ot(e))n=e(t);else{var r=bt("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,o=q8(t,mbe);n=L.createElement(ZO,vs({},o,{key:a,className:r}))}return n});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 Abe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Obe(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,W8(r.key),r)}}function Ebe(e,t,n){return t&&Obe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tbe(e,t,n){return t=Lm(t),jbe(e,V8()?Reflect.construct(t,n||[],Lm(e).constructor):t.apply(e,n))}function jbe(e,t){if(t&&(pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cbe(e)}function Cbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V8=function(){return!!e})()}function Lm(e){return Lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lm(e)}function Rbe(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&&O_(e,t)}function O_(e,t){return O_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},O_(e,t)}function G8(e,t,n){return t=W8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W8(e){var t=Nbe(e,"string");return pc(t)=="symbol"?t:t+""}function Nbe(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)}function E_(){return E_=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},E_.apply(this,arguments)}function Mbe(e){var t=e.xAxisId,n=JO(),r=eE(),a=j8(t);return a==null?null:y.createElement($c,E_({},a,{className:bt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Oi(l,!0)}}))}var tg=(function(e){function t(){return Abe(this,t),Tbe(this,t,arguments)}return Rbe(t,e),Ebe(t,[{key:"render",value:function(){return y.createElement(Mbe,this.props)}}])})(y.Component);G8(tg,"displayName","XAxis");G8(tg,"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 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 Pbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dbe(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,K8(r.key),r)}}function kbe(e,t,n){return t&&Dbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $be(e,t,n){return t=Im(t),zbe(e,Y8()?Reflect.construct(t,n||[],Im(e).constructor):t.apply(e,n))}function zbe(e,t){if(t&&(mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lbe(e)}function Lbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y8=function(){return!!e})()}function Im(e){return Im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Im(e)}function Ibe(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&&T_(e,t)}function T_(e,t){return T_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},T_(e,t)}function Z8(e,t,n){return t=K8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K8(e){var t=Bbe(e,"string");return mc(t)=="symbol"?t:t+""}function Bbe(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function j_(){return j_=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},j_.apply(this,arguments)}var Ube=function(t){var n=t.yAxisId,r=JO(),a=eE(),o=C8(n);return o==null?null:y.createElement($c,j_({},o,{className:bt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return Oi(c,!0)}}))},ng=(function(e){function t(){return Pbe(this,t),$be(this,t,arguments)}return Ibe(t,e),kbe(t,[{key:"render",value:function(){return y.createElement(Ube,this.props)}}])})(y.Component);Z8(ng,"displayName","YAxis");Z8(ng,"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 lz(e){return Vbe(e)||Fbe(e)||Hbe(e)||qbe()}function qbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
485
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hbe(e,t){if(e){if(typeof e=="string")return C_(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 C_(e,t)}}function Fbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vbe(e){if(Array.isArray(e))return C_(e)}function C_(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 R_=function(t,n,r,a,o){var l=Ea(t,nE),c=Ea(t,Qv),f=[].concat(lz(l),lz(c)),d=Ea(t,eg),m="".concat(a,"Id"),h=a[0],g=n;if(f.length&&(g=f.reduce(function(S,w){if(w.props[m]===r&&Za(w.props,"extendDomain")&&Ne(w.props[h])){var O=w.props[h];return[Math.min(S[0],O),Math.max(S[1],O)]}return S},g)),d.length){var x="".concat(h,"1"),A="".concat(h,"2");g=d.reduce(function(S,w){if(w.props[m]===r&&Za(w.props,"extendDomain")&&Ne(w.props[x])&&Ne(w.props[A])){var O=w.props[x],E=w.props[A];return[Math.min(S[0],O,E),Math.max(S[1],O,E)]}return S},g)}return o&&o.length&&(g=o.reduce(function(S,w){return Ne(w)?[Math.min(S[0],w),Math.max(S[1],w)]:S},g)),g},D1={exports:{}},cz;function Gbe(){return cz||(cz=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function o(f,d,m,h,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new a(m,h||f,g),A=n?n+d:d;return f._events[A]?f._events[A].fn?f._events[A]=[f._events[A],x]:f._events[A].push(x):(f._events[A]=x,f._eventsCount++),f}function l(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,h;if(this._eventsCount===0)return d;for(h in m=this._events)t.call(m,h)&&d.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,h=this._events[m];if(!h)return[];if(h.fn)return[h.fn];for(var g=0,x=h.length,A=new Array(x);g<x;g++)A[g]=h[g].fn;return A},c.prototype.listenerCount=function(d){var m=n?n+d:d,h=this._events[m];return h?h.fn?1:h.length:0},c.prototype.emit=function(d,m,h,g,x,A){var S=n?n+d:d;if(!this._events[S])return!1;var w=this._events[S],O=arguments.length,E,j;if(w.fn){switch(w.once&&this.removeListener(d,w.fn,void 0,!0),O){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,m),!0;case 3:return w.fn.call(w.context,m,h),!0;case 4:return w.fn.call(w.context,m,h,g),!0;case 5:return w.fn.call(w.context,m,h,g,x),!0;case 6:return w.fn.call(w.context,m,h,g,x,A),!0}for(j=1,E=new Array(O-1);j<O;j++)E[j-1]=arguments[j];w.fn.apply(w.context,E)}else{var C=w.length,T;for(j=0;j<C;j++)switch(w[j].once&&this.removeListener(d,w[j].fn,void 0,!0),O){case 1:w[j].fn.call(w[j].context);break;case 2:w[j].fn.call(w[j].context,m);break;case 3:w[j].fn.call(w[j].context,m,h);break;case 4:w[j].fn.call(w[j].context,m,h,g);break;default:if(!E)for(T=1,E=new Array(O-1);T<O;T++)E[T-1]=arguments[T];w[j].fn.apply(w[j].context,E)}}return!0},c.prototype.on=function(d,m,h){return o(this,d,m,h,!1)},c.prototype.once=function(d,m,h){return o(this,d,m,h,!0)},c.prototype.removeListener=function(d,m,h,g){var x=n?n+d:d;if(!this._events[x])return this;if(!m)return l(this,x),this;var A=this._events[x];if(A.fn)A.fn===m&&(!g||A.once)&&(!h||A.context===h)&&l(this,x);else{for(var S=0,w=[],O=A.length;S<O;S++)(A[S].fn!==m||g&&!A[S].once||h&&A[S].context!==h)&&w.push(A[S]);w.length?this._events[x]=w.length===1?w[0]:w:l(this,x)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&l(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})(D1)),D1.exports}var Wbe=Gbe();const Ybe=Bt(Wbe);var k1=new Ybe,$1="recharts.syncMouseEvents";function Gf(e){"@babel/helpers - typeof";return Gf=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},Gf(e)}function Zbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kbe(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,X8(r.key),r)}}function Xbe(e,t,n){return t&&Kbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z1(e,t,n){return t=X8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X8(e){var t=Qbe(e,"string");return Gf(t)=="symbol"?t:t+""}function Qbe(e,t){if(Gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jbe=(function(){function e(){Zbe(this,e),z1(this,"activeIndex",0),z1(this,"coordinateList",[]),z1(this,"layout","horizontal")}return Xbe(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,o=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,m=n.offset,h=m===void 0?null:m,g=n.mouseHandlerCallback,x=g===void 0?null:g;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=h??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 a=this.container.getBoundingClientRect(),o=a.x,l=a.y,c=a.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,h=o+f+d,g=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:h,pageY:g})}}}])})();function e0e(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&Ne(r)&&Ne(a))return!0}return!1}function t0e(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Q8(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,o=e.endAngle,l=Fn(t,n,r,a),c=Fn(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}function n0e(e,t,n){var r,a,o,l;if(e==="horizontal")r=t.x,o=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,o=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,h=t.angle,g=Fn(c,f,d,h),x=Fn(c,f,m,h);r=g.x,a=g.y,o=x.x,l=x.y}else return Q8(t);return[{x:r,y:a},{x:o,y:l}]}function Wf(e){"@babel/helpers - typeof";return Wf=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},Wf(e)}function uz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ip(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uz(Object(n),!0).forEach(function(r){r0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r0e(e,t,n){return t=a0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a0e(e){var t=i0e(e,"string");return Wf(t)=="symbol"?t:t+""}function i0e(e,t){if(Wf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o0e(e){var t,n,r=e.element,a=e.tooltipEventType,o=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,h=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||!o||!l||g!=="ScatterChart"&&a!=="axis")return null;var A,S=nf;if(g==="ScatterChart")A=l,S=sve;else if(g==="BarChart")A=t0e(h,l,f,m),S=YO;else if(h==="radial"){var w=Q8(l),O=w.cx,E=w.cy,j=w.radius,C=w.startAngle,T=w.endAngle;A={cx:O,cy:E,startAngle:C,endAngle:T,innerRadius:j,outerRadius:j},S=a8}else A={points:n0e(h,l,f)},S=nf;var R=ip(ip(ip(ip({stroke:"#ccc",pointerEvents:"none"},f),A),dt(x,!1)),{},{payload:c,payloadIndex:d,className:bt("recharts-tooltip-cursor",x.className)});return y.isValidElement(x)?y.cloneElement(x,R):y.createElement(S,R)}var s0e=["item"],l0e=["children","className","width","height","style","compact","title","desc"];function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function Dl(){return Dl=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},Dl.apply(this,arguments)}function fz(e,t){return f0e(e)||u0e(e,t)||eU(e,t)||c0e()}function c0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
486
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],f=!0,d=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function f0e(e){if(Array.isArray(e))return e}function dz(e,t){if(e==null)return{};var n=d0e(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d0e(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 h0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p0e(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,tU(r.key),r)}}function m0e(e,t,n){return t&&p0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v0e(e,t,n){return t=Bm(t),g0e(e,J8()?Reflect.construct(t,n||[],Bm(e).constructor):t.apply(e,n))}function g0e(e,t){if(t&&(vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y0e(e)}function y0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J8=function(){return!!e})()}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bm(e)}function b0e(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&&N_(e,t)}function N_(e,t){return N_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},N_(e,t)}function gc(e){return S0e(e)||w0e(e)||eU(e)||x0e()}function x0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
487
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eU(e,t){if(e){if(typeof e=="string")return M_(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 M_(e,t)}}function w0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S0e(e){if(Array.isArray(e))return M_(e)}function M_(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 hz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hz(Object(n),!0).forEach(function(r){Ye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hz(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ye(e,t,n){return t=tU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tU(e){var t=_0e(e,"string");return vc(t)=="symbol"?t:t+""}function _0e(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A0e={xAxis:["bottom","top"],yAxis:["left","right"]},O0e={width:"100%",height:"100%"},nU={x:0,y:0};function op(e){return e}var E0e=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},T0e=function(t,n,r,a){var o=n.find(function(m){return m&&m.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var l=o.coordinate,c=a.radius;return me(me(me({},a),Fn(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=o.coordinate,d=a.angle;return me(me(me({},a),Fn(a.cx,a.cy,f,d)),{},{angle:d,radius:f})}return nU},rg=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,o=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(gc(c),gc(d)):c},[]);return l.length>0?l:t&&t.length&&Ne(a)&&Ne(o)?t.slice(a,o+1):[]};function rU(e){return e==="number"?[0,"auto"]:void 0}var P_=function(t,n,r,a){var o=t.graphicalItems,l=t.tooltipAxis,c=rg(n,t);return r<0||!o||!o.length||r>=c.length?null:o.reduce(function(f,d){var m,h=(m=d.props.data)!==null&&m!==void 0?m:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var x=h===void 0?c:h;g=Hp(x,l.dataKey,a)}else g=h&&h[r]||c[r];return g?[].concat(gc(f),[t8(d,g)]):f},[])},pz=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},l=E0e(o,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=Bde(l,c,d,f);if(m>=0&&d){var h=d[m]&&d[m].value,g=P_(t,n,m,h),x=T0e(r,c,m,o);return{activeTooltipIndex:m,activeLabel:h,activePayload:g,activeCoordinate:x}}return null},j0e=function(t,n){var r=n.axes,a=n.graphicalItems,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,h=t.children,g=t.stackOffset,x=Q6(m,o);return r.reduce(function(A,S){var w,O=S.type.defaultProps!==void 0?me(me({},S.type.defaultProps),S.props):S.props,E=O.type,j=O.dataKey,C=O.allowDataOverflow,T=O.allowDuplicatedCategory,R=O.scale,N=O.ticks,k=O.includeHidden,z=O[l];if(A[z])return A;var V=rg(t.data,{graphicalItems:a.filter(function(H){var J,fe=l in H.props?H.props[l]:(J=H.type.defaultProps)===null||J===void 0?void 0:J[l];return fe===z}),dataStartIndex:f,dataEndIndex:d}),B=V.length,I,F,G;e0e(O.domain,C,E)&&(I=QS(O.domain,null,C),x&&(E==="number"||R!=="auto")&&(G=tf(V,j,"category")));var Y=rU(E);if(!I||I.length===0){var $,q=($=O.domain)!==null&&$!==void 0?$:Y;if(j){if(I=tf(V,j,E),E==="category"&&x){var K=Rae(I);T&&K?(F=I,I=Tm(0,B)):T||(I=Ck(q,I,S).reduce(function(H,J){return H.indexOf(J)>=0?H:[].concat(gc(H),[J])},[]))}else if(E==="category")T?I=I.filter(function(H){return H!==""&&!gt(H)}):I=Ck(q,I,S).reduce(function(H,J){return H.indexOf(J)>=0||J===""||gt(J)?H:[].concat(gc(H),[J])},[]);else if(E==="number"){var X=Vde(V,a.filter(function(H){var J,fe,ye=l in H.props?H.props[l]:(J=H.type.defaultProps)===null||J===void 0?void 0:J[l],ce="hide"in H.props?H.props.hide:(fe=H.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return ye===z&&(k||!ce)}),j,o,m);X&&(I=X)}x&&(E==="number"||R!=="auto")&&(G=tf(V,j,"category"))}else x?I=Tm(0,B):c&&c[z]&&c[z].hasStack&&E==="number"?I=g==="expand"?[0,1]:e8(c[z].stackGroups,f,d):I=X6(V,a.filter(function(H){var J=l in H.props?H.props[l]:H.type.defaultProps[l],fe="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return J===z&&(k||!fe)}),E,m,!0);if(E==="number")I=R_(h,I,z,o,N),q&&(I=QS(q,I,C));else if(E==="category"&&q){var Z=q,P=I.every(function(H){return Z.indexOf(H)>=0});P&&(I=Z)}}return me(me({},A),{},Ye({},z,me(me({},O),{},{axisType:o,domain:I,categoricalDomain:G,duplicateDomain:F,originalDomain:(w=O.domain)!==null&&w!==void 0?w:Y,isCategorical:x,layout:m})))},{})},C0e=function(t,n){var r=n.graphicalItems,a=n.Axis,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,h=t.children,g=rg(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=g.length,A=Q6(m,o),S=-1;return r.reduce(function(w,O){var E=O.type.defaultProps!==void 0?me(me({},O.type.defaultProps),O.props):O.props,j=E[l],C=rU("number");if(!w[j]){S++;var T;return A?T=Tm(0,x):c&&c[j]&&c[j].hasStack?(T=e8(c[j].stackGroups,f,d),T=R_(h,T,j,o)):(T=QS(C,X6(g,r.filter(function(R){var N,k,z=l in R.props?R.props[l]:(N=R.type.defaultProps)===null||N===void 0?void 0:N[l],V="hide"in R.props?R.props.hide:(k=R.type.defaultProps)===null||k===void 0?void 0:k.hide;return z===j&&!V}),"number",m),a.defaultProps.allowDataOverflow),T=R_(h,T,j,o)),me(me({},w),{},Ye({},j,me(me({axisType:o},a.defaultProps),{},{hide:!0,orientation:aa(A0e,"".concat(o,".").concat(S%2),null),domain:T,originalDomain:C,isCategorical:A,layout:m})))}return w},{})},R0e=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,o=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,h="".concat(a,"Id"),g=Ea(m,o),x={};return g&&g.length?x=j0e(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:h,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(x=C0e(t,{Axis:o,graphicalItems:l,axisType:a,axisIdKey:h,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},N0e=function(t){var n=yo(t),r=Oi(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:wO(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:gm(n,r)}},mz=function(t){var n=t.children,r=t.defaultShowTooltip,a=Cr(n,sc),o=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},M0e=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ei(n&&n.type);return r&&r.indexOf("Bar")>=0})},vz=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"}},P0e=function(t,n){var r=t.props,a=t.graphicalItems,o=t.xAxisMap,l=o===void 0?{}:o,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,h=r.children,g=r.margin||{},x=Cr(h,sc),A=Cr(h,Bl),S=Object.keys(f).reduce(function(T,R){var N=f[R],k=N.orientation;return!N.mirror&&!N.hide?me(me({},T),{},Ye({},k,T[k]+N.width)):T},{left:g.left||0,right:g.right||0}),w=Object.keys(l).reduce(function(T,R){var N=l[R],k=N.orientation;return!N.mirror&&!N.hide?me(me({},T),{},Ye({},k,aa(T,"".concat(k))+N.height)):T},{top:g.top||0,bottom:g.bottom||0}),O=me(me({},w),S),E=O.bottom;x&&(O.bottom+=x.props.height||sc.defaultProps.height),A&&n&&(O=Hde(O,a,r,n));var j=d-O.left-O.right,C=m-O.top-O.bottom;return me(me({brushBottom:E},O),{},{width:Math.max(j,0),height:Math.max(C,0)})},D0e=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},k0e=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,h=t.defaultProps,g=function(O,E){var j=E.graphicalItems,C=E.stackGroups,T=E.offset,R=E.updateId,N=E.dataStartIndex,k=E.dataEndIndex,z=O.barSize,V=O.layout,B=O.barGap,I=O.barCategoryGap,F=O.maxBarSize,G=vz(V),Y=G.numericAxisName,$=G.cateAxisName,q=M0e(j),K=[];return j.forEach(function(X,Z){var P=rg(O.data,{graphicalItems:[X],dataStartIndex:N,dataEndIndex:k}),H=X.type.defaultProps!==void 0?me(me({},X.type.defaultProps),X.props):X.props,J=H.dataKey,fe=H.maxBarSize,ye=H["".concat(Y,"Id")],ce=H["".concat($,"Id")],he={},we=f.reduce(function(on,At){var en=E["".concat(At.axisType,"Map")],U=H["".concat(At.axisType,"Id")];en&&en[U]||At.axisType==="zAxis"||Ns();var ee=en[U];return me(me({},on),{},Ye(Ye({},At.axisType,ee),"".concat(At.axisType,"Ticks"),Oi(ee)))},he),se=we[$],Oe=we["".concat($,"Ticks")],_e=C&&C[ye]&&C[ye].hasStack&&rhe(X,C[ye].stackGroups),ie=Ei(X.type).indexOf("Bar")>=0,Ge=gm(se,Oe),ze=[],Je=q&&Ude({barSize:z,stackGroups:C,totalSize:D0e(we,$)});if(ie){var Ke,st,Tt=gt(fe)?F:fe,pt=(Ke=(st=gm(se,Oe,!0))!==null&&st!==void 0?st:Tt)!==null&&Ke!==void 0?Ke:0;ze=qde({barGap:B,barCategoryGap:I,bandSize:pt!==Ge?pt:Ge,sizeList:Je[ce],maxBarSize:Tt}),pt!==Ge&&(ze=ze.map(function(on){return me(me({},on),{},{position:me(me({},on.position),{},{offset:on.position.offset-pt/2})})}))}var mn=X&&X.type&&X.type.getComposedData;mn&&K.push({props:me(me({},mn(me(me({},we),{},{displayedData:P,props:O,dataKey:J,item:X,bandSize:Ge,barPosition:ze,offset:T,stackedData:_e,layout:V,dataStartIndex:N,dataEndIndex:k}))),{},Ye(Ye(Ye({key:X.key||"item-".concat(Z)},Y,we[Y]),$,we[$]),"animationId",R)),childIndex:Hae(X,O.children),item:X})}),K},x=function(O,E){var j=O.props,C=O.dataStartIndex,T=O.dataEndIndex,R=O.updateId;if(!HN({props:j}))return null;var N=j.children,k=j.layout,z=j.stackOffset,V=j.data,B=j.reverseStackOrder,I=vz(k),F=I.numericAxisName,G=I.cateAxisName,Y=Ea(N,r),$=ehe(V,Y,"".concat(F,"Id"),"".concat(G,"Id"),z,B),q=f.reduce(function(H,J){var fe="".concat(J.axisType,"Map");return me(me({},H),{},Ye({},fe,R0e(j,me(me({},J),{},{graphicalItems:Y,stackGroups:J.axisType===F&&$,dataStartIndex:C,dataEndIndex:T}))))},{}),K=P0e(me(me({},q),{},{props:j,graphicalItems:Y}),E==null?void 0:E.legendBBox);Object.keys(q).forEach(function(H){q[H]=m(j,q[H],K,H.replace("Map",""),n)});var X=q["".concat(G,"Map")],Z=N0e(X),P=g(j,me(me({},q),{},{dataStartIndex:C,dataEndIndex:T,updateId:R,graphicalItems:Y,stackGroups:$,offset:K}));return me(me({formattedGraphicalItems:P,graphicalItems:Y,offset:K,stackGroups:$},Z),q)},A=(function(w){function O(E){var j,C,T;return h0e(this,O),T=v0e(this,O,[E]),Ye(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ye(T,"accessibilityManager",new Jbe),Ye(T,"handleLegendBBoxUpdate",function(R){if(R){var N=T.state,k=N.dataStartIndex,z=N.dataEndIndex,V=N.updateId;T.setState(me({legendBBox:R},x({props:T.props,dataStartIndex:k,dataEndIndex:z,updateId:V},me(me({},T.state),{},{legendBBox:R}))))}}),Ye(T,"handleReceiveSyncEvent",function(R,N,k){if(T.props.syncId===R){if(k===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(N)}}),Ye(T,"handleBrushChange",function(R){var N=R.startIndex,k=R.endIndex;if(N!==T.state.dataStartIndex||k!==T.state.dataEndIndex){var z=T.state.updateId;T.setState(function(){return me({dataStartIndex:N,dataEndIndex:k},x({props:T.props,dataStartIndex:N,dataEndIndex:k,updateId:z},T.state))}),T.triggerSyncEvent({dataStartIndex:N,dataEndIndex:k})}}),Ye(T,"handleMouseEnter",function(R){var N=T.getMouseInfo(R);if(N){var k=me(me({},N),{},{isTooltipActive:!0});T.setState(k),T.triggerSyncEvent(k);var z=T.props.onMouseEnter;ot(z)&&z(k,R)}}),Ye(T,"triggeredAfterMouseMove",function(R){var N=T.getMouseInfo(R),k=N?me(me({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(k),T.triggerSyncEvent(k);var z=T.props.onMouseMove;ot(z)&&z(k,R)}),Ye(T,"handleItemMouseEnter",function(R){T.setState(function(){return{isTooltipActive:!0,activeItem:R,activePayload:R.tooltipPayload,activeCoordinate:R.tooltipPosition||{x:R.cx,y:R.cy}}})}),Ye(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),Ye(T,"handleMouseMove",function(R){R.persist(),T.throttleTriggeredAfterMouseMove(R)}),Ye(T,"handleMouseLeave",function(R){T.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};T.setState(N),T.triggerSyncEvent(N);var k=T.props.onMouseLeave;ot(k)&&k(N,R)}),Ye(T,"handleOuterEvent",function(R){var N=qae(R),k=aa(T.props,"".concat(N));if(N&&ot(k)){var z,V;/.*touch.*/i.test(N)?V=T.getMouseInfo(R.changedTouches[0]):V=T.getMouseInfo(R),k((z=V)!==null&&z!==void 0?z:{},R)}}),Ye(T,"handleClick",function(R){var N=T.getMouseInfo(R);if(N){var k=me(me({},N),{},{isTooltipActive:!0});T.setState(k),T.triggerSyncEvent(k);var z=T.props.onClick;ot(z)&&z(k,R)}}),Ye(T,"handleMouseDown",function(R){var N=T.props.onMouseDown;if(ot(N)){var k=T.getMouseInfo(R);N(k,R)}}),Ye(T,"handleMouseUp",function(R){var N=T.props.onMouseUp;if(ot(N)){var k=T.getMouseInfo(R);N(k,R)}}),Ye(T,"handleTouchMove",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(R.changedTouches[0])}),Ye(T,"handleTouchStart",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&T.handleMouseDown(R.changedTouches[0])}),Ye(T,"handleTouchEnd",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&T.handleMouseUp(R.changedTouches[0])}),Ye(T,"handleDoubleClick",function(R){var N=T.props.onDoubleClick;if(ot(N)){var k=T.getMouseInfo(R);N(k,R)}}),Ye(T,"handleContextMenu",function(R){var N=T.props.onContextMenu;if(ot(N)){var k=T.getMouseInfo(R);N(k,R)}}),Ye(T,"triggerSyncEvent",function(R){T.props.syncId!==void 0&&k1.emit($1,T.props.syncId,R,T.eventEmitterSymbol)}),Ye(T,"applySyncEvent",function(R){var N=T.props,k=N.layout,z=N.syncMethod,V=T.state.updateId,B=R.dataStartIndex,I=R.dataEndIndex;if(R.dataStartIndex!==void 0||R.dataEndIndex!==void 0)T.setState(me({dataStartIndex:B,dataEndIndex:I},x({props:T.props,dataStartIndex:B,dataEndIndex:I,updateId:V},T.state)));else if(R.activeTooltipIndex!==void 0){var F=R.chartX,G=R.chartY,Y=R.activeTooltipIndex,$=T.state,q=$.offset,K=$.tooltipTicks;if(!q)return;if(typeof z=="function")Y=z(K,R);else if(z==="value"){Y=-1;for(var X=0;X<K.length;X++)if(K[X].value===R.activeLabel){Y=X;break}}var Z=me(me({},q),{},{x:q.left,y:q.top}),P=Math.min(F,Z.x+Z.width),H=Math.min(G,Z.y+Z.height),J=K[Y]&&K[Y].value,fe=P_(T.state,T.props.data,Y),ye=K[Y]?{x:k==="horizontal"?K[Y].coordinate:P,y:k==="horizontal"?H:K[Y].coordinate}:nU;T.setState(me(me({},R),{},{activeLabel:J,activeCoordinate:ye,activePayload:fe,activeTooltipIndex:Y}))}else T.setState(R)}),Ye(T,"renderCursor",function(R){var N,k=T.state,z=k.isTooltipActive,V=k.activeCoordinate,B=k.activePayload,I=k.offset,F=k.activeTooltipIndex,G=k.tooltipAxisBandSize,Y=T.getTooltipEventType(),$=(N=R.props.active)!==null&&N!==void 0?N:z,q=T.props.layout,K=R.key||"_recharts-cursor";return L.createElement(o0e,{key:K,activeCoordinate:V,activePayload:B,activeTooltipIndex:F,chartName:n,element:R,isActive:$,layout:q,offset:I,tooltipAxisBandSize:G,tooltipEventType:Y})}),Ye(T,"renderPolarAxis",function(R,N,k){var z=aa(R,"type.axisType"),V=aa(T.state,"".concat(z,"Map")),B=R.type.defaultProps,I=B!==void 0?me(me({},B),R.props):R.props,F=V&&V[I["".concat(z,"Id")]];return y.cloneElement(R,me(me({},F),{},{className:bt(z,F.className),key:R.key||"".concat(N,"-").concat(k),ticks:Oi(F,!0)}))}),Ye(T,"renderPolarGrid",function(R){var N=R.props,k=N.radialLines,z=N.polarAngles,V=N.polarRadius,B=T.state,I=B.radiusAxisMap,F=B.angleAxisMap,G=yo(I),Y=yo(F),$=Y.cx,q=Y.cy,K=Y.innerRadius,X=Y.outerRadius;return y.cloneElement(R,{polarAngles:Array.isArray(z)?z:Oi(Y,!0).map(function(Z){return Z.coordinate}),polarRadius:Array.isArray(V)?V:Oi(G,!0).map(function(Z){return Z.coordinate}),cx:$,cy:q,innerRadius:K,outerRadius:X,key:R.key||"polar-grid",radialLines:k})}),Ye(T,"renderLegend",function(){var R=T.state.formattedGraphicalItems,N=T.props,k=N.children,z=N.width,V=N.height,B=T.props.margin||{},I=z-(B.left||0)-(B.right||0),F=Z6({children:k,formattedGraphicalItems:R,legendWidth:I,legendContent:d});if(!F)return null;var G=F.item,Y=dz(F,s0e);return y.cloneElement(G,me(me({},Y),{},{chartWidth:z,chartHeight:V,margin:B,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),Ye(T,"renderTooltip",function(){var R,N=T.props,k=N.children,z=N.accessibilityLayer,V=Cr(k,Ia);if(!V)return null;var B=T.state,I=B.isTooltipActive,F=B.activeCoordinate,G=B.activePayload,Y=B.activeLabel,$=B.offset,q=(R=V.props.active)!==null&&R!==void 0?R:I;return y.cloneElement(V,{viewBox:me(me({},$),{},{x:$.left,y:$.top}),active:q,label:Y,payload:q?G:[],coordinate:F,accessibilityLayer:z})}),Ye(T,"renderBrush",function(R){var N=T.props,k=N.margin,z=N.data,V=T.state,B=V.offset,I=V.dataStartIndex,F=V.dataEndIndex,G=V.updateId;return y.cloneElement(R,{key:R.key||"_recharts-brush",onChange:tp(T.handleBrushChange,R.props.onChange),data:z,x:Ne(R.props.x)?R.props.x:B.left,y:Ne(R.props.y)?R.props.y:B.top+B.height+B.brushBottom-(k.bottom||0),width:Ne(R.props.width)?R.props.width:B.width,startIndex:I,endIndex:F,updateId:"brush-".concat(G)})}),Ye(T,"renderReferenceElement",function(R,N,k){if(!R)return null;var z=T,V=z.clipPathId,B=T.state,I=B.xAxisMap,F=B.yAxisMap,G=B.offset,Y=R.type.defaultProps||{},$=R.props,q=$.xAxisId,K=q===void 0?Y.xAxisId:q,X=$.yAxisId,Z=X===void 0?Y.yAxisId:X;return y.cloneElement(R,{key:R.key||"".concat(N,"-").concat(k),xAxis:I[K],yAxis:F[Z],viewBox:{x:G.left,y:G.top,width:G.width,height:G.height},clipPathId:V})}),Ye(T,"renderActivePoints",function(R){var N=R.item,k=R.activePoint,z=R.basePoint,V=R.childIndex,B=R.isRange,I=[],F=N.props.key,G=N.item.type.defaultProps!==void 0?me(me({},N.item.type.defaultProps),N.item.props):N.item.props,Y=G.activeDot,$=G.dataKey,q=me(me({index:V,dataKey:$,cx:k.x,cy:k.y,r:4,fill:WO(N.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},dt(Y,!1)),Fp(Y));return I.push(O.renderActiveDot(Y,q,"".concat(F,"-activePoint-").concat(V))),z?I.push(O.renderActiveDot(Y,me(me({},q),{},{cx:z.x,cy:z.y}),"".concat(F,"-basePoint-").concat(V))):B&&I.push(null),I}),Ye(T,"renderGraphicChild",function(R,N,k){var z=T.filterFormatItem(R,N,k);if(!z)return null;var V=T.getTooltipEventType(),B=T.state,I=B.isTooltipActive,F=B.tooltipAxis,G=B.activeTooltipIndex,Y=B.activeLabel,$=T.props.children,q=Cr($,Ia),K=z.props,X=K.points,Z=K.isRange,P=K.baseLine,H=z.item.type.defaultProps!==void 0?me(me({},z.item.type.defaultProps),z.item.props):z.item.props,J=H.activeDot,fe=H.hide,ye=H.activeBar,ce=H.activeShape,he=!!(!fe&&I&&q&&(J||ye||ce)),we={};V!=="axis"&&q&&q.props.trigger==="click"?we={onClick:tp(T.handleItemMouseEnter,R.props.onClick)}:V!=="axis"&&(we={onMouseLeave:tp(T.handleItemMouseLeave,R.props.onMouseLeave),onMouseEnter:tp(T.handleItemMouseEnter,R.props.onMouseEnter)});var se=y.cloneElement(R,me(me({},z.props),we));function Oe(At){return typeof F.dataKey=="function"?F.dataKey(At.payload):null}if(he)if(G>=0){var _e,ie;if(F.dataKey&&!F.allowDuplicatedCategory){var Ge=typeof F.dataKey=="function"?Oe:"payload.".concat(F.dataKey.toString());_e=Hp(X,Ge,Y),ie=Z&&P&&Hp(P,Ge,Y)}else _e=X==null?void 0:X[G],ie=Z&&P&&P[G];if(ce||ye){var ze=R.props.activeIndex!==void 0?R.props.activeIndex:G;return[y.cloneElement(R,me(me(me({},z.props),we),{},{activeIndex:ze})),null,null]}if(!gt(_e))return[se].concat(gc(T.renderActivePoints({item:z,activePoint:_e,basePoint:ie,childIndex:G,isRange:Z})))}else{var Je,Ke=(Je=T.getItemByXY(T.state.activeCoordinate))!==null&&Je!==void 0?Je:{graphicalItem:se},st=Ke.graphicalItem,Tt=st.item,pt=Tt===void 0?R:Tt,mn=st.childIndex,on=me(me(me({},z.props),we),{},{activeIndex:mn});return[y.cloneElement(pt,on),null,null]}return Z?[se,null,null]:[se,null]}),Ye(T,"renderCustomized",function(R,N,k){return y.cloneElement(R,me(me({key:"recharts-customized-".concat(k)},T.props),T.state))}),Ye(T,"renderMap",{CartesianGrid:{handler:op,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:op},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:op},YAxis:{handler:op},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((j=E.id)!==null&&j!==void 0?j:vd("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=ZB(T.triggeredAfterMouseMove,(C=E.throttleDelay)!==null&&C!==void 0?C:1e3/60),T.state={},T}return b0e(O,w),m0e(O,[{key:"componentDidMount",value:function(){var j,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var j=this.props,C=j.children,T=j.data,R=j.height,N=j.layout,k=Cr(C,Ia);if(k){var z=k.props.defaultIndex;if(!(typeof z!="number"||z<0||z>this.state.tooltipTicks.length-1)){var V=this.state.tooltipTicks[z]&&this.state.tooltipTicks[z].value,B=P_(this.state,T,z,V),I=this.state.tooltipTicks[z].coordinate,F=(this.state.offset.top+R)/2,G=N==="horizontal",Y=G?{x:I,y:F}:{y:I,x:F},$=this.state.formattedGraphicalItems.find(function(K){var X=K.item;return X.type.name==="Scatter"});$&&(Y=me(me({},Y),$.props.points[z].tooltipPosition),B=$.props.points[z].tooltipPayload);var q={activeTooltipIndex:z,isTooltipActive:!0,activeLabel:V,activePayload:B,activeCoordinate:Y};this.setState(q),this.renderCursor(k),this.accessibilityManager.setIndex(z)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var T,R;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(R=this.props.margin.top)!==null&&R!==void 0?R:0}})}return null}},{key:"componentDidUpdate",value:function(j){xS([Cr(j.children,Ia)],[Cr(this.props.children,Ia)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=Cr(this.props.children,Ia);if(j&&typeof j.props.shared=="boolean"){var C=j.props.shared?"axis":"item";return c.indexOf(C)>=0?C:o}return o}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var C=this.container,T=C.getBoundingClientRect(),R=Rle(T),N={chartX:Math.round(j.pageX-R.left),chartY:Math.round(j.pageY-R.top)},k=T.width/C.offsetWidth||1,z=this.inRange(N.chartX,N.chartY,k);if(!z)return null;var V=this.state,B=V.xAxisMap,I=V.yAxisMap,F=this.getTooltipEventType(),G=pz(this.state,this.props.data,this.props.layout,z);if(F!=="axis"&&B&&I){var Y=yo(B).scale,$=yo(I).scale,q=Y&&Y.invert?Y.invert(N.chartX):null,K=$&&$.invert?$.invert(N.chartY):null;return me(me({},N),{},{xValue:q,yValue:K},G)}return G?me(me({},N),G):null}},{key:"inRange",value:function(j,C){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=this.props.layout,N=j/T,k=C/T;if(R==="horizontal"||R==="vertical"){var z=this.state.offset,V=N>=z.left&&N<=z.left+z.width&&k>=z.top&&k<=z.top+z.height;return V?{x:N,y:k}:null}var B=this.state,I=B.angleAxisMap,F=B.radiusAxisMap;if(I&&F){var G=yo(I);return Mk({x:N,y:k},G)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,C=this.getTooltipEventType(),T=Cr(j,Ia),R={};T&&C==="axis"&&(T.props.trigger==="click"?R={onClick:this.handleClick}:R={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 N=Fp(this.props,this.handleOuterEvent);return me(me({},N),R)}},{key:"addListener",value:function(){k1.on($1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){k1.removeListener($1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,C,T){for(var R=this.state.formattedGraphicalItems,N=0,k=R.length;N<k;N++){var z=R[N];if(z.item===j||z.props.key===j.key||C===Ei(z.item.type)&&T===z.childIndex)return z}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,C=this.state.offset,T=C.left,R=C.top,N=C.height,k=C.width;return L.createElement("defs",null,L.createElement("clipPath",{id:j},L.createElement("rect",{x:T,y:R,height:N,width:k})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(C,T){var R=fz(T,2),N=R[0],k=R[1];return me(me({},C),{},Ye({},N,k.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(C,T){var R=fz(T,2),N=R[0],k=R[1];return me(me({},C),{},Ye({},N,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[j])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(j){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[j])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(j){var C=this.state,T=C.formattedGraphicalItems,R=C.activeItem;if(T&&T.length)for(var N=0,k=T.length;N<k;N++){var z=T[N],V=z.props,B=z.item,I=B.type.defaultProps!==void 0?me(me({},B.type.defaultProps),B.props):B.props,F=Ei(B.type);if(F==="Bar"){var G=(V.data||[]).find(function(K){return Xme(j,K)});if(G)return{graphicalItem:z,payload:G}}else if(F==="RadialBar"){var Y=(V.data||[]).find(function(K){return Mk(j,K)});if(Y)return{graphicalItem:z,payload:Y}}else if(Yv(z,R)||Zv(z,R)||Uf(z,R)){var $=Uve({graphicalItem:z,activeTooltipItem:R,itemData:I.data}),q=I.activeIndex===void 0?$:I.activeIndex;return{graphicalItem:me(me({},z),{},{childIndex:q}),payload:Uf(z,R)?I.data[$]:z.props.data[$]}}}return null}},{key:"render",value:function(){var j=this;if(!HN(this))return null;var C=this.props,T=C.children,R=C.className,N=C.width,k=C.height,z=C.style,V=C.compact,B=C.title,I=C.desc,F=dz(C,l0e),G=dt(F,!1);if(V)return L.createElement(W$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement(SS,Dl({},G,{width:N,height:k,title:B,desc:I}),this.renderClipPath(),VN(T,this.renderMap)));if(this.props.accessibilityLayer){var Y,$;G.tabIndex=(Y=this.props.tabIndex)!==null&&Y!==void 0?Y:0,G.role=($=this.props.role)!==null&&$!==void 0?$:"application",G.onKeyDown=function(K){j.accessibilityManager.keyboardEvent(K)},G.onFocus=function(){j.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return L.createElement(W$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},L.createElement("div",Dl({className:bt("recharts-wrapper",R),style:me({position:"relative",cursor:"default",width:N,height:k},z)},q,{ref:function(X){j.container=X}}),L.createElement(SS,Dl({},G,{width:N,height:k,title:B,desc:I,style:O0e}),this.renderClipPath(),VN(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(y.Component);Ye(A,"displayName",n),Ye(A,"defaultProps",me({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Ye(A,"getDerivedStateFromProps",function(w,O){var E=w.dataKey,j=w.data,C=w.children,T=w.width,R=w.height,N=w.layout,k=w.stackOffset,z=w.margin,V=O.dataStartIndex,B=O.dataEndIndex;if(O.updateId===void 0){var I=mz(w);return me(me(me({},I),{},{updateId:0},x(me(me({props:w},I),{},{updateId:0}),O)),{},{prevDataKey:E,prevData:j,prevWidth:T,prevHeight:R,prevLayout:N,prevStackOffset:k,prevMargin:z,prevChildren:C})}if(E!==O.prevDataKey||j!==O.prevData||T!==O.prevWidth||R!==O.prevHeight||N!==O.prevLayout||k!==O.prevStackOffset||!Il(z,O.prevMargin)){var F=mz(w),G={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},Y=me(me({},pz(O,j,N)),{},{updateId:O.updateId+1}),$=me(me(me({},F),G),Y);return me(me(me({},$),x(me({props:w},$),O)),{},{prevDataKey:E,prevData:j,prevWidth:T,prevHeight:R,prevLayout:N,prevStackOffset:k,prevMargin:z,prevChildren:C})}if(!xS(C,O.prevChildren)){var q,K,X,Z,P=Cr(C,sc),H=P&&(q=(K=P.props)===null||K===void 0?void 0:K.startIndex)!==null&&q!==void 0?q:V,J=P&&(X=(Z=P.props)===null||Z===void 0?void 0:Z.endIndex)!==null&&X!==void 0?X:B,fe=H!==V||J!==B,ye=!gt(j),ce=ye&&!fe?O.updateId:O.updateId+1;return me(me({updateId:ce},x(me(me({props:w},O),{},{updateId:ce,dataStartIndex:H,dataEndIndex:J}),O)),{},{prevChildren:C,dataStartIndex:H,dataEndIndex:J})}return null}),Ye(A,"renderActiveDot",function(w,O,E){var j;return y.isValidElement(w)?j=y.cloneElement(w,O):ot(w)?j=w(O):j=L.createElement(ZO,O),L.createElement(rn,{className:"recharts-active-dot",key:E},j)});var S=y.forwardRef(function(O,E){return L.createElement(A,Dl({},O,{ref:E}))});return S.displayName=A.displayName,S},$0e=k0e({chartName:"AreaChart",GraphicalChild:Bo,axisComponents:[{axisType:"xAxis",AxisComp:tg},{axisType:"yAxis",AxisComp:ng}],formatAxisMap:zge});const z0e={light:"",dark:".dark"},aU=y.createContext(null);function iU(){const e=y.useContext(aU);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const oU=y.forwardRef(({id:e,className:t,children:n,config:r,...a},o)=>{const l=y.useId(),c=`chart-${e||l.replace(/:/g,"")}`;return v.jsx(aU.Provider,{value:{config:r},children:v.jsxs("div",{"data-chart":c,ref:o,className:xe("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",t),...a,children:[v.jsx(L0e,{id:c,config:r}),v.jsx(_le,{children:n})]})})});oU.displayName="Chart";const L0e=({id:e,config:t})=>{const n=Object.entries(t).filter(([,r])=>r.theme||r.color);return n.length?v.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(z0e).map(([r,a])=>`
|
|
488
|
-
${a} [data-chart=${e}] {
|
|
489
|
-
${n.map(([o,l])=>{var f;const c=((f=l.theme)==null?void 0:f[r])||l.color;return c?` --color-${o}: ${c};`:null}).join(`
|
|
490
|
-
`)}
|
|
491
|
-
}
|
|
492
|
-
`).join(`
|
|
493
|
-
`)}}):null},I0e=Ia,B0e=y.forwardRef(({active:e,payload:t,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:o=!1,label:l,labelFormatter:c,labelClassName:f,formatter:d,color:m,nameKey:h,labelKey:g},x)=>{const{config:A}=iU(),S=y.useMemo(()=>{var T;if(a||!(t!=null&&t.length))return null;const[O]=t,E=`${g||(O==null?void 0:O.dataKey)||(O==null?void 0:O.name)||"value"}`,j=D_(A,O,E),C=!g&&typeof l=="string"?((T=A[l])==null?void 0:T.label)||l:j==null?void 0:j.label;return c?v.jsx("div",{className:xe("font-medium",f),children:c(C,t)}):C?v.jsx("div",{className:xe("font-medium",f),children:C}):null},[l,c,t,a,f,A,g]);if(!e||!(t!=null&&t.length))return null;const w=t.length===1&&r!=="dot";return v.jsxs("div",{ref:x,className:xe("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[w?null:S,v.jsx("div",{className:"grid gap-1.5",children:t.filter(O=>O.type!=="none").map((O,E)=>{const j=`${h||O.name||O.dataKey||"value"}`,C=D_(A,O,j),T=m||O.payload.fill||O.color;return v.jsx("div",{className:xe("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:d&&(O==null?void 0:O.value)!==void 0&&O.name?d(O.value,O.name,O,E,O.payload):v.jsxs(v.Fragment,{children:[C!=null&&C.icon?v.jsx(C.icon,{}):!o&&v.jsx("div",{className:xe("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":w&&r==="dashed"}),style:{"--color-bg":T,"--color-border":T}}),v.jsxs("div",{className:xe("flex flex-1 justify-between leading-none",w?"items-end":"items-center"),children:[v.jsxs("div",{className:"grid gap-1.5",children:[w?S:null,v.jsx("span",{className:"text-muted-foreground",children:(C==null?void 0:C.label)||O.name})]}),O.value&&v.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:O.value.toLocaleString()})]})]})},O.dataKey)})})]})});B0e.displayName="ChartTooltip";const U0e=y.forwardRef(({className:e,hideIcon:t=!1,payload:n,verticalAlign:r="bottom",nameKey:a},o)=>{const{config:l}=iU();return n!=null&&n.length?v.jsx("div",{ref:o,className:xe("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",e),children:n.filter(c=>c.type!=="none").map(c=>{const f=`${a||c.dataKey||"value"}`,d=D_(l,c,f);return v.jsxs("div",{className:xe("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[d!=null&&d.icon&&!t?v.jsx(d.icon,{}):v.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),d==null?void 0:d.label]},c.value)})}):null});U0e.displayName="ChartLegend";function D_(e,t,n){if(typeof t!="object"||t===null)return;const r="payload"in t&&typeof t.payload=="object"&&t.payload!==null?t.payload:void 0;let a=n;return n in t&&typeof t[n]=="string"?a=t[n]:r&&n in r&&typeof r[n]=="string"&&(a=r[n]),a in e?e[a]:e[n]}const gz={cpu:{label:"CPU",color:"#60a5fa"},mem:{label:"RAM",color:"#a78bfa"}},yz={"1h":"1h","6h":"6h","24h":"24h","7d":"7d"};function bz(e,t){const n=new Date(e);return t==="7d"?`${n.getMonth()+1}/${n.getDate()}`:`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}`}function q0e(){const[e,t]=y.useState([]),[n,r]=y.useState([]),[a,o]=y.useState(null),[l,c]=y.useState("24h"),[f,d]=y.useState([]),[m,h]=y.useState(!1),{setNode:g}=jA();y.useEffect(()=>(g(v.jsx("span",{className:"text-sm font-medium",children:"Mac Resources"})),()=>g(null)),[g]);const x=y.useCallback(C=>{C.type==="agents:listed"&&t(C.sessions??[])},[]),{send:A,connected:S}=WA(x);y.useEffect(()=>{if(!S)return;A({type:"agents:list"});const C=setInterval(()=>A({type:"agents:list"}),1e4);return()=>clearInterval(C)},[S,A]),y.useEffect(()=>{fetch("/api/v1/agents",{credentials:"include"}).then(C=>C.ok?C.json():[]).then(r)},[]);const w=e.map(C=>C.agentName).filter(Boolean),O=[...new Set([...w,...n])],E=new Set(w);y.useEffect(()=>{!a&&O.length>0&&o(O[0])},[O.join(",")]),y.useEffect(()=>{a&&(h(!0),fetch(`/api/v1/agents/${encodeURIComponent(a)}/resources?range=${l}`,{credentials:"include"}).then(C=>C.ok?C.json():[]).then(d).finally(()=>h(!1)))},[a,l]);const j=f.map(C=>({time:C.recorded_at,cpu:Math.round(C.cpu_percent*10)/10,mem:Math.round(C.mem_percent*10)/10}));return v.jsxs("div",{className:"flex h-full min-h-0",children:[v.jsxs("aside",{className:"w-64 shrink-0 border-r flex flex-col gap-1 p-3 overflow-y-auto",children:[v.jsx("span",{className:"px-2 pb-1 font-mono text-xs font-medium text-muted-foreground uppercase tracking-wider",children:"Macs"}),O.length===0?v.jsx("span",{className:"px-2 text-sm text-muted-foreground",children:S?"No agents yet.":"Connecting…"}):O.map(C=>{const T=E.has(C),R=a===C;return v.jsxs("button",{onClick:()=>o(C),className:["flex items-center gap-2 rounded-md px-2 py-2 text-left text-sm hover:bg-accent transition-colors",R?"bg-accent font-medium":""].join(" "),children:[v.jsx("span",{className:`inline-block h-1.5 w-1.5 shrink-0 rounded-full ${T?"bg-emerald-400":"bg-muted-foreground/40"}`}),v.jsx("span",{className:"truncate min-w-0",children:C})]},C)})]}),v.jsx("div",{className:"flex-1 min-w-0 overflow-auto",children:a?v.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("h2",{className:"text-base font-semibold",children:a}),v.jsx(_4,{value:l,onValueChange:C=>c(C),children:v.jsx(KA,{children:Object.keys(yz).map(C=>v.jsx(Bp,{value:C,children:yz[C]},C))})})]}),m?v.jsx("div",{className:"flex h-40 items-center justify-center text-sm text-muted-foreground",children:"Loading…"}):j.length===0?v.jsx("div",{className:"flex h-40 items-center justify-center text-sm text-muted-foreground",children:"No data yet for this range. Data is collected every minute while the agent is connected."}):v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsx(xz,{title:"CPU %",color:"cpu",data:j,dataKey:"cpu",range:l,formatTick:bz}),v.jsx(xz,{title:"RAM %",color:"mem",data:j,dataKey:"mem",range:l,formatTick:bz})]})]}):v.jsxs("div",{className:"flex h-full items-center justify-center gap-2 text-muted-foreground",children:[v.jsx(Zz,{className:"h-8 w-8"}),v.jsx("p",{className:"text-sm",children:"Select a Mac to view resource history."})]})})]})}function xz({title:e,color:t,data:n,dataKey:r,range:a,formatTick:o}){var m;const l=Math.min(n.length,a==="7d"?7:a==="24h"?8:6),c=Math.max(1,Math.floor(n.length/l)),f=n.filter((h,g)=>g%c===0).map(h=>h.time),d=(m=n[n.length-1])==null?void 0:m.time;return d&&!f.includes(d)&&f.push(d),v.jsxs("div",{className:"rounded-lg border p-4 flex flex-col gap-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-full",style:{background:t==="cpu"?"#60a5fa":"#a78bfa"}}),v.jsx("span",{className:"text-sm font-medium",children:e})]}),v.jsx(oU,{config:gz,className:"h-[220px] w-full",children:v.jsxs($0e,{data:n,margin:{top:8,right:24,bottom:24,left:8},children:[v.jsx("defs",{children:v.jsxs("linearGradient",{id:`fill-${r}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[v.jsx("stop",{offset:"5%",stopColor:t==="cpu"?"#60a5fa":"#a78bfa",stopOpacity:.3}),v.jsx("stop",{offset:"95%",stopColor:t==="cpu"?"#60a5fa":"#a78bfa",stopOpacity:0})]})}),v.jsx(B8,{strokeDasharray:"3 3",vertical:!1,className:"stroke-border"}),v.jsx(tg,{dataKey:"time",ticks:f,tickFormatter:h=>o(h,a),tick:{fontSize:11},tickLine:!1,axisLine:!1,dy:6,padding:{left:16,right:16}}),v.jsx(ng,{domain:[0,100],ticks:[0,25,50,75,100],tickFormatter:h=>`${h}%`,tick:{fontSize:11},tickLine:!1,axisLine:!1,width:40,dx:-4,padding:{top:16,bottom:0}}),v.jsx(I0e,{content:({active:h,payload:g})=>{if(!h||!(g!=null&&g.length))return null;const A=new Date(g[0].payload.time).toLocaleString("ko-KR",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}),S=g[0].value;return v.jsxs("div",{className:"rounded-lg border bg-background px-3 py-2 shadow-md text-xs",children:[v.jsxs("p",{className:"mb-1",children:["Date: ",A]}),v.jsxs("p",{children:[gz[r].label,": ",S,"%"]})]})}}),v.jsx(Bo,{type:"monotone",dataKey:r,stroke:t==="cpu"?"#60a5fa":"#a78bfa",strokeWidth:1.5,fill:`url(#fill-${r})`,dot:!1,isAnimationActive:!1})]})})]})}var sU="AlertDialog",[H0e]=sa(sU,[S5]),Ui=S5(),lU=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ui(t);return v.jsx(tA,{...r,...n,modal:!0})};lU.displayName=sU;var F0e="AlertDialogTrigger",cU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ui(n);return v.jsx(L5,{...a,...r,ref:t})});cU.displayName=F0e;var V0e="AlertDialogPortal",uU=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ui(t);return v.jsx(nA,{...r,...n})};uU.displayName=V0e;var G0e="AlertDialogOverlay",fU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ui(n);return v.jsx(td,{...a,...r,ref:t})});fU.displayName=G0e;var Hl="AlertDialogContent",[W0e,Y0e]=H0e(Hl),Z0e=l5("AlertDialogContent"),dU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,o=Ui(n),l=y.useRef(null),c=ct(t,l),f=y.useRef(null);return v.jsx(fW,{contentName:Hl,titleName:hU,docsSlug:"alert-dialog",children:v.jsx(W0e,{scope:n,cancelRef:f,children:v.jsxs(nd,{role:"alertdialog",...o,...a,ref:c,onOpenAutoFocus:$e(a.onOpenAutoFocus,d=>{var m;d.preventDefault(),(m=f.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[v.jsx(Z0e,{children:r}),v.jsx(X0e,{contentRef:l})]})})})});dU.displayName=Hl;var hU="AlertDialogTitle",pU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ui(n);return v.jsx(rd,{...a,...r,ref:t})});pU.displayName=hU;var mU="AlertDialogDescription",vU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ui(n);return v.jsx(ad,{...a,...r,ref:t})});vU.displayName=mU;var K0e="AlertDialogAction",gU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=Ui(n);return v.jsx(Km,{...a,...r,ref:t})});gU.displayName=K0e;var yU="AlertDialogCancel",bU=y.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=Y0e(yU,n),o=Ui(n),l=ct(t,a);return v.jsx(Km,{...o,...r,ref:l})});bU.displayName=yU;var X0e=({contentRef:e})=>{const t=`\`${Hl}\` requires a description for the component to be accessible for screen reader users.
|
|
494
|
-
|
|
495
|
-
You can add a description to the \`${Hl}\` by passing a \`${mU}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
496
|
-
|
|
497
|
-
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 \`${Hl}\`. 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.
|
|
498
|
-
|
|
499
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return y.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Q0e=lU,J0e=cU,exe=uU,xU=fU,wU=dU,SU=gU,_U=bU,AU=pU,OU=vU;const txe=Q0e,nxe=J0e,rxe=exe,EU=y.forwardRef(({className:e,...t},n)=>v.jsx(xU,{className:xe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));EU.displayName=xU.displayName;const TU=y.forwardRef(({className:e,...t},n)=>v.jsxs(rxe,{children:[v.jsx(EU,{}),v.jsx(wU,{ref:n,className:xe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));TU.displayName=wU.displayName;const jU=({className:e,...t})=>v.jsx("div",{className:xe("flex flex-col space-y-2 text-center sm:text-left",e),...t});jU.displayName="AlertDialogHeader";const CU=({className:e,...t})=>v.jsx("div",{className:xe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});CU.displayName="AlertDialogFooter";const RU=y.forwardRef(({className:e,...t},n)=>v.jsx(AU,{ref:n,className:xe("text-lg font-semibold",e),...t}));RU.displayName=AU.displayName;const NU=y.forwardRef(({className:e,...t},n)=>v.jsx(OU,{ref:n,className:xe("text-sm text-muted-foreground",e),...t}));NU.displayName=OU.displayName;const MU=y.forwardRef(({className:e,...t},n)=>v.jsx(SU,{ref:n,className:xe(Vm(),e),...t}));MU.displayName=SU.displayName;const PU=y.forwardRef(({className:e,...t},n)=>v.jsx(_U,{ref:n,className:xe(Vm({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));PU.displayName=_U.displayName;const axe=zi({teamName:Vn().min(1),logo:VA(File).nullable().optional()}),ixe=zi({displayName:Vn().min(1),avatar:VA(File).nullable().optional()}),oxe=zi({currentPassword:Vn().min(1),newPassword:Vn().min(8),confirmPassword:Vn()}).refine(e=>e.newPassword===e.confirmPassword,{message:"Passwords do not match",path:["confirmPassword"]});function sxe(){const{resolvedTheme:e}=Yf(),t=e==="dark"?"/logo-dark.svg":"/logo.svg",{user:n}=EA(),r=(n==null?void 0:n.role)==="Admin",a=(n==null?void 0:n.role)==="Admin"||(n==null?void 0:n.role)==="Developer",[o,l]=y.useState(null),[c,f]=y.useState(!1),d=y.useRef(null),m=wo({resolver:So(axe),mode:"onBlur",defaultValues:{teamName:"",logo:null}});y.useEffect(()=>{r&&fetch("/api/v1/settings",{credentials:"include"}).then(Z=>Z.ok?Z.json():null).then(Z=>{Z&&(m.reset({teamName:Z.team_name,logo:null}),l(Z.logo_url))})},[r]);async function h(Z){const P=new FormData;P.append("team_name",Z.teamName),Z.logo&&P.append("logo",Z.logo),await fetch("/api/v1/settings",{method:"PATCH",credentials:"include",body:P}),f(!0),setTimeout(()=>f(!1),2e3)}const[g,x]=y.useState(null),[A,S]=y.useState(!1),w=y.useRef(null),O=wo({resolver:So(ixe),mode:"onBlur",defaultValues:{displayName:"",avatar:null}});y.useEffect(()=>{n&&(O.reset({displayName:n.displayName??"",avatar:null}),x(n.avatarUrl??null))},[n]);async function E(Z){const P=new FormData;P.append("display_name",Z.displayName),Z.avatar&&P.append("avatar",Z.avatar),await fetch("/api/v1/profile",{method:"PATCH",credentials:"include",body:P}),S(!0),setTimeout(()=>S(!1),2e3)}const[j,C]=y.useState(!1),T=wo({resolver:So(oxe),mode:"onBlur"});async function R(Z){const P=await fetch("/api/v1/auth/change-password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({currentPassword:Z.currentPassword,newPassword:Z.newPassword})});if(!P.ok){const H=await P.json();T.setError("root",{message:H.error??"Failed to change password"});return}T.reset(),C(!0),setTimeout(()=>C(!1),2e3)}const[N,k]=y.useState([]),[z,V]=y.useState({}),[B,I]=y.useState({}),[F,G]=y.useState({}),[Y,$]=y.useState({});y.useEffect(()=>{a&&fetch("/api/v1/apps",{credentials:"include"}).then(Z=>Z.ok?Z.json():null).then(Z=>{if(!Z)return;k(Z.items);const P={};Z.items.forEach(H=>{P[H.id]=H.name}),V(P)})},[a]);async function q(Z){$(P=>({...P,[Z]:!0})),await fetch(`/api/v1/apps/${Z}`,{method:"DELETE",credentials:"include"}),k(P=>P.filter(H=>H.id!==Z)),$(P=>({...P,[Z]:!1}))}async function K(Z){I(P=>({...P,[Z]:!0})),await fetch(`/api/v1/apps/${Z}`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:z[Z]})}),I(P=>({...P,[Z]:!1})),G(P=>({...P,[Z]:!0})),setTimeout(()=>G(P=>({...P,[Z]:!1})),2e3)}const X=DA({control:O.control,name:"displayName"});return v.jsxs("div",{className:"flex flex-col gap-6 max-w-[900px] mx-auto w-full p-6",children:[v.jsx("h1",{className:"text-xl font-semibold tracking-display-sm",children:"Settings"}),r&&v.jsxs(Jr,{children:[v.jsx(ea,{children:v.jsx(ta,{children:"Workspace"})}),v.jsx(qa,{children:v.jsxs("form",{onSubmit:m.handleSubmit(h),className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"team-name",children:"Team name"}),v.jsx(pn,{id:"team-name",placeholder:"My QA Team",...m.register("teamName")}),m.formState.errors.teamName&&v.jsx("p",{className:"text-sm text-destructive",children:m.formState.errors.teamName.message})]}),v.jsx(Oo,{}),v.jsxs("div",{className:"grid gap-2",children:[v.jsxs(qt,{children:["Logo ",v.jsx("span",{className:"text-muted-foreground text-xs",children:"(png · jpg, max 2MB)"})]}),v.jsx(Np,{name:"logo",control:m.control,render:({field:Z})=>v.jsxs("div",{className:"relative w-16 h-16",children:[v.jsx("img",{src:o??t,alt:"logo",className:"w-16 h-16 rounded-lg object-contain"}),v.jsx("button",{type:"button",onClick:()=>{var P;return(P=d.current)==null?void 0:P.click()},className:"absolute bottom-0 right-0 w-6 h-6 rounded-full bg-background border border-border shadow-sm flex items-center justify-center hover:bg-accent transition-colors",children:v.jsx(H1,{className:"w-3 h-3"})}),v.jsx("input",{ref:d,type:"file",accept:".png,.jpg,.jpeg",className:"hidden",onChange:P=>{var J;const H=(J=P.target.files)==null?void 0:J[0];if(H&&H.size>2*1024*1024){alert("Max 2MB");return}H&&(Z.onChange(H),l(URL.createObjectURL(H)))}})]})})]}),v.jsx("div",{className:"flex justify-end",children:v.jsx(ht,{type:"submit",size:"sm",disabled:m.formState.isSubmitting,children:c?"Saved!":m.formState.isSubmitting?"Saving…":"Save changes"})})]})})]}),v.jsxs(Jr,{children:[v.jsx(ea,{children:v.jsx(ta,{children:"Profile"})}),v.jsx(qa,{children:v.jsxs("form",{onSubmit:O.handleSubmit(E),className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"display-name",children:"Nickname"}),v.jsx(pn,{id:"display-name",placeholder:"Your name",...O.register("displayName")}),O.formState.errors.displayName&&v.jsx("p",{className:"text-sm text-destructive",children:O.formState.errors.displayName.message})]}),v.jsx(Oo,{}),v.jsxs("div",{className:"grid gap-2",children:[v.jsxs(qt,{children:["Avatar ",v.jsx("span",{className:"text-muted-foreground text-xs",children:"(png · jpg, max 2MB)"})]}),v.jsx(Np,{name:"avatar",control:O.control,render:({field:Z})=>{var P;return v.jsxs("div",{className:"relative w-14 h-14",children:[g?v.jsx("img",{src:g,alt:"avatar",className:"w-14 h-14 rounded-full object-cover border"}):v.jsx("div",{className:"w-14 h-14 rounded-full flex items-center justify-center text-lg font-medium",style:(()=>{const H=TA(X||(n==null?void 0:n.email)||"");return{backgroundColor:H.bg,color:H.fg}})(),children:((P=X==null?void 0:X[0])==null?void 0:P.toUpperCase())??"?"}),v.jsx("button",{type:"button",onClick:()=>{var H;return(H=w.current)==null?void 0:H.click()},className:"absolute bottom-0 right-0 w-6 h-6 rounded-full bg-background border border-border shadow-sm flex items-center justify-center hover:bg-accent transition-colors",children:v.jsx(H1,{className:"w-3 h-3"})}),v.jsx("input",{ref:w,type:"file",accept:".png,.jpg,.jpeg",className:"hidden",onChange:H=>{var fe;const J=(fe=H.target.files)==null?void 0:fe[0];if(J&&J.size>2*1024*1024){alert("Max 2MB");return}J&&(Z.onChange(J),x(URL.createObjectURL(J)))}})]})}})]}),v.jsx("div",{className:"flex justify-end",children:v.jsx(ht,{type:"submit",size:"sm",disabled:O.formState.isSubmitting,children:A?"Saved!":O.formState.isSubmitting?"Saving…":"Save changes"})})]})})]}),v.jsxs(Jr,{children:[v.jsx(ea,{children:v.jsx(ta,{children:"Password"})}),v.jsx(qa,{children:v.jsxs("form",{onSubmit:T.handleSubmit(R),className:"flex flex-col gap-4",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"current-password",children:"Current password"}),v.jsx(pn,{id:"current-password",type:"password",...T.register("currentPassword")}),T.formState.errors.currentPassword&&v.jsx("p",{className:"text-sm text-destructive",children:T.formState.errors.currentPassword.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"new-password",children:"New password"}),v.jsx(pn,{id:"new-password",type:"password",...T.register("newPassword")}),T.formState.errors.newPassword&&v.jsx("p",{className:"text-sm text-destructive",children:T.formState.errors.newPassword.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"confirm-password",children:"Confirm new password"}),v.jsx(pn,{id:"confirm-password",type:"password",...T.register("confirmPassword")}),T.formState.errors.confirmPassword&&v.jsx("p",{className:"text-sm text-destructive",children:T.formState.errors.confirmPassword.message})]}),T.formState.errors.root&&v.jsx("p",{className:"text-sm text-destructive",children:T.formState.errors.root.message}),v.jsx("div",{className:"flex justify-end",children:v.jsx(ht,{type:"submit",size:"sm",disabled:T.formState.isSubmitting,children:j?"Saved!":T.formState.isSubmitting?"Saving…":"Change password"})})]})})]}),a&&N.length>0&&v.jsxs(Jr,{children:[v.jsx(ea,{children:v.jsx(ta,{children:"Apps"})}),v.jsx(qa,{children:v.jsx("div",{className:"flex flex-col divide-y divide-border",children:N.map(Z=>v.jsxs("div",{className:"flex flex-col gap-2 py-4 first:pt-0 last:pb-0",children:[v.jsx(qt,{htmlFor:`app-${Z.id}`,children:"App Name"}),v.jsx(pn,{id:`app-${Z.id}`,value:z[Z.id]??"",onChange:P=>V(H=>({...H,[Z.id]:P.target.value}))}),v.jsxs("div",{className:"flex flex-col gap-1.5 mt-1",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:Z.bundle_id_key}),v.jsx(Yl,{tone:Z.platform==="ios"?"ios":Z.platform==="android"?"android":void 0,variant:Z.platform==="both"?"secondary":void 0,className:"capitalize",children:Z.platform})]}),v.jsxs("div",{className:"flex items-center justify-end gap-2",children:[v.jsx(ht,{size:"sm",variant:"outline",disabled:B[Z.id],onClick:()=>K(Z.id),children:F[Z.id]?"Saved!":B[Z.id]?"Saving…":"Save"}),v.jsxs(txe,{children:[v.jsx(nxe,{asChild:!0,children:v.jsx(ht,{size:"sm",variant:"destructive",disabled:Y[Z.id],children:Y[Z.id]?"Deleting…":"Delete"})}),v.jsxs(TU,{children:[v.jsxs(jU,{children:[v.jsx(RU,{children:"Delete app?"}),v.jsxs(NU,{children:["This will permanently delete ",v.jsx("strong",{children:Z.name})," and all its builds. This action cannot be undone."]})]}),v.jsxs(CU,{children:[v.jsx(PU,{className:"w-24",children:"Cancel"}),v.jsx(MU,{className:xe(Vm({variant:"destructive"}),"w-24"),onClick:()=>q(Z.id),children:"Delete"})]})]})]})]})]})]},Z.id))})})]})]})}const iE=y.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:"relative w-full overflow-auto",children:v.jsx("table",{ref:n,className:xe("w-full caption-bottom text-sm",e),...t})}));iE.displayName="Table";const oE=y.forwardRef(({className:e,...t},n)=>v.jsx("thead",{ref:n,className:xe("[&_tr]:border-b",e),...t}));oE.displayName="TableHeader";const sE=y.forwardRef(({className:e,...t},n)=>v.jsx("tbody",{ref:n,className:xe("[&_tr:last-child]:border-0",e),...t}));sE.displayName="TableBody";const lxe=y.forwardRef(({className:e,...t},n)=>v.jsx("tfoot",{ref:n,className:xe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));lxe.displayName="TableFooter";const Fl=y.forwardRef(({className:e,...t},n)=>v.jsx("tr",{ref:n,className:xe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));Fl.displayName="TableRow";const wa=y.forwardRef(({className:e,...t},n)=>v.jsx("th",{ref:n,className:xe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));wa.displayName="TableHead";const Qr=y.forwardRef(({className:e,...t},n)=>v.jsx("td",{ref:n,className:xe("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Qr.displayName="TableCell";const cxe=y.forwardRef(({className:e,...t},n)=>v.jsx("caption",{ref:n,className:xe("mt-4 text-sm text-muted-foreground",e),...t}));cxe.displayName="TableCaption";const uxe=zi({email:Vn().email(),role:Vn().min(1)}),fxe=zi({token:Vn(),emailSent:vte()});function dxe(){const[e,t]=y.useState([]),[n,r]=y.useState({}),[a,o]=y.useState(""),[l,c]=y.useState(!1),{register:f,handleSubmit:d,control:m,reset:h,formState:{errors:g,isSubmitting:x}}=wo({resolver:So(uxe),mode:"onBlur",defaultValues:{email:"",role:"QA"}});function A(){fetch("/api/v1/team/members",{credentials:"include"}).then(C=>C.json()).then(t)}y.useEffect(()=>{A()},[]);async function S(C){try{const T=await fetch("/api/v1/team/invite",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:C.email,role:C.role})});if(!T.ok)throw new Error(`Server error: ${T.status}`);const R=fxe.parse(await T.json()),N=`${location.origin}/invite?token=${R.token}`;o(N),navigator.clipboard.writeText(N).catch(()=>{}),R.emailSent?Sb.success(`Invite email sent to ${C.email}`):Sb.warning("Invite link copied — email could not be sent. Check your SMTP settings.")}catch{Sb.error("Failed to create invite link")}}function w(C){c(C),C||(o(""),h())}async function O(C,T){await fetch(`/api/v1/team/members/${C}`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({role:T})}),A()}async function E(C){const N=(await(await fetch(`/api/v1/team/members/${C}/send-reset`,{method:"POST",credentials:"include"})).json()).emailSent?"Sent":"No SMTP";r(k=>({...k,[C]:N})),setTimeout(()=>r(k=>{const z={...k};return delete z[C],z}),3e3)}async function j(C){confirm("Remove this member?")&&(await fetch(`/api/v1/team/members/${C}`,{method:"DELETE",credentials:"include"}),A())}return v.jsxs("div",{className:"flex flex-col gap-6 max-w-[900px] mx-auto w-full p-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("h1",{className:"text-xl font-semibold",children:"Team"}),v.jsxs(xv,{open:l,onOpenChange:w,children:[v.jsx(wv,{asChild:!0,children:v.jsxs(ht,{size:"sm",children:[v.jsx(tV,{className:"mr-2 h-4 w-4"}),"Invite member"]})}),v.jsxs(dd,{className:"sm:max-w-md",children:[v.jsx(hd,{children:v.jsx(pd,{children:"Invite team member"})}),a?v.jsxs("div",{className:"flex flex-col gap-3 pt-2",children:[v.jsx("p",{className:"text-sm text-muted-foreground",children:"Invite link copied to clipboard:"}),v.jsx("code",{className:"rounded bg-muted px-3 py-2 text-xs break-all",children:a}),v.jsx(ht,{onClick:()=>c(!1),children:"Done"})]}):v.jsxs("form",{onSubmit:d(S),className:"flex flex-col gap-4 pt-2",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"invite-email",children:"Email"}),v.jsx(pn,{id:"invite-email",type:"email",...f("email")}),g.email&&v.jsx("p",{className:"text-sm text-destructive",children:g.email.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{children:"Role"}),v.jsx(Np,{name:"role",control:m,render:({field:C})=>v.jsxs(Es,{value:C.value,onValueChange:C.onChange,children:[v.jsx(Co,{children:v.jsx(Ts,{})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"Admin",children:"Admin"}),v.jsx(Dt,{value:"Developer",children:"Developer"}),v.jsx(Dt,{value:"QA",children:"QA"}),v.jsx(Dt,{value:"Viewer",children:"Viewer"})]})]})})]}),v.jsx(ht,{type:"submit",disabled:x,children:x?"Creating link…":"Generate invite link"})]})]})]})]}),v.jsxs(Jr,{children:[v.jsx(ea,{children:v.jsxs(ta,{children:["Members (",e.length,")"]})}),v.jsx(qa,{className:"px-4 pt-0 pb-2",children:v.jsxs(iE,{children:[v.jsx(oE,{children:v.jsxs(Fl,{children:[v.jsx(wa,{children:"Nickname"}),v.jsx(wa,{children:"Email"}),v.jsx(wa,{children:"Role"}),v.jsx(wa,{children:"Joined"}),v.jsx(wa,{className:"w-10"})]})}),v.jsx(sE,{children:e.map(C=>v.jsxs(Fl,{className:"hover:bg-transparent",children:[v.jsx(Qr,{className:"font-medium",children:C.display_name||"—"}),v.jsx(Qr,{className:"text-muted-foreground text-sm",children:C.email}),v.jsx(Qr,{children:v.jsxs(Es,{value:C.role,onValueChange:T=>O(C.id,T),children:[v.jsx(Co,{className:"h-7 w-28",children:v.jsx(Ts,{})}),v.jsxs(Ro,{children:[v.jsx(Dt,{value:"Admin",children:"Admin"}),v.jsx(Dt,{value:"Developer",children:"Developer"}),v.jsx(Dt,{value:"QA",children:"QA"}),v.jsx(Dt,{value:"Viewer",children:"Viewer"})]})]})}),v.jsx(Qr,{className:"text-muted-foreground text-sm",children:new Date(C.joined_at).toLocaleDateString()}),v.jsx(Qr,{children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(ht,{variant:"secondary",size:"nav",onClick:()=>E(C.id),children:n[C.id]??"Reset pwd"}),v.jsx(ht,{variant:"destructive",size:"nav",onClick:()=>j(C.id),children:"Remove"})]})})]},C.id))})]})})]})]})}const hxe=zi({name:Vn().min(1),expiresDays:Vn().refine(e=>{const t=parseInt(e,10);return!isNaN(t)&&t>=1&&t<=365},{message:"Must be between 1 and 365"})});function pxe(){const[e,t]=y.useState([]),[n,r]=y.useState(!1),[a,o]=y.useState(""),{register:l,handleSubmit:c,reset:f,formState:{errors:d,isSubmitting:m}}=wo({resolver:So(hxe),mode:"onBlur",defaultValues:{name:"",expiresDays:"30"}});function h(){fetch("/api/v1/tokens",{credentials:"include"}).then(w=>w.json()).then(t)}y.useEffect(()=>{h()},[]);async function g(w){const E=await(await fetch("/api/v1/tokens",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:w.name,expires_in_days:parseInt(w.expiresDays,10)})})).json();o(E.token),h()}function x(w){r(w),w||(o(""),f())}async function A(w){confirm("Revoke this token? Any active API calls using it will immediately fail.")&&(await fetch(`/api/v1/tokens/${w}`,{method:"DELETE",credentials:"include"}),h())}function S(w){return w.expires_at&&new Date(w.expires_at)<new Date}return v.jsxs("div",{className:"flex flex-col gap-6 max-w-[900px] mx-auto w-full p-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("h1",{className:"text-xl font-semibold",children:"Personal Access Tokens"}),v.jsxs(xv,{open:n,onOpenChange:x,children:[v.jsx(wv,{asChild:!0,children:v.jsxs(ht,{size:"sm",children:[v.jsx(Kz,{className:"mr-2 h-4 w-4"}),"New token"]})}),v.jsxs(dd,{className:"sm:max-w-md",children:[v.jsx(hd,{children:v.jsx(pd,{children:"Create token"})}),a?v.jsxs("div",{className:"flex flex-col gap-3 pt-2",children:[v.jsx("p",{className:"text-sm text-muted-foreground",children:"Copy this token now — it won't be shown again."}),v.jsx("code",{className:"rounded bg-muted px-3 py-2 text-xs break-all font-mono",children:a}),v.jsx(ht,{onClick:()=>{navigator.clipboard.writeText(a).catch(()=>{}),r(!1)},children:"Copy & close"})]}):v.jsxs("form",{onSubmit:c(g),className:"flex flex-col gap-4 pt-2",children:[v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"token-name",children:"Name"}),v.jsx(pn,{id:"token-name",placeholder:"e.g. ci-deploy",...l("name")}),d.name&&v.jsx("p",{className:"text-sm text-destructive",children:d.name.message})]}),v.jsxs("div",{className:"grid gap-2",children:[v.jsx(qt,{htmlFor:"expires",children:"Expires in (days)"}),v.jsx(pn,{id:"expires",type:"number",...l("expiresDays")}),d.expiresDays&&v.jsx("p",{className:"text-sm text-destructive",children:d.expiresDays.message})]}),v.jsxs("p",{className:"text-xs text-muted-foreground",children:["Scope: ",v.jsx(Yl,{variant:"secondary",children:"builds:write"})]}),v.jsx(ht,{type:"submit",disabled:m,children:m?"Creating…":"Create token"})]})]})]})]}),v.jsxs(Jr,{children:[v.jsxs(ea,{children:[v.jsx(ta,{children:"Active tokens"}),v.jsxs(_s,{children:["Use these tokens with ",v.jsx("code",{className:"text-xs",children:"Authorization: Bearer <token>"})," for API deployments."]})]}),v.jsx(qa,{className:"px-4 pt-0 pb-2",children:v.jsxs(iE,{children:[v.jsx(oE,{children:v.jsxs(Fl,{children:[v.jsx(wa,{children:"Name"}),v.jsx(wa,{children:"Scope"}),v.jsx(wa,{children:"Last used"}),v.jsx(wa,{children:"Expires"}),v.jsx(wa,{className:"w-10"})]})}),v.jsx(sE,{children:e.length===0?v.jsx(Fl,{children:v.jsx(Qr,{colSpan:5,className:"h-20 text-center text-muted-foreground",children:"No tokens yet."})}):e.map(w=>v.jsxs(Fl,{className:"hover:bg-transparent",children:[v.jsx(Qr,{className:"font-medium",children:w.name}),v.jsx(Qr,{children:v.jsx(Yl,{variant:"secondary",children:w.scope})}),v.jsx(Qr,{className:"text-muted-foreground text-sm",children:w.last_used_at?new Date(w.last_used_at).toLocaleDateString():"Never"}),v.jsx(Qr,{children:w.expires_at?v.jsx("span",{className:S(w)?"text-destructive text-sm":"text-muted-foreground text-sm",children:S(w)?"Expired":new Date(w.expires_at).toLocaleDateString()}):v.jsx("span",{className:"text-muted-foreground text-sm",children:"Never"})}),v.jsx(Qr,{children:v.jsx(ht,{variant:"destructive",size:"icon",className:"h-7 w-7",onClick:()=>A(w.id),children:v.jsx(JF,{className:"h-4 w-4"})})})]},w.id))})]})})]})]})}function mxe(){const{resolvedTheme:e}=Yf();return v.jsxs(k7,{children:[v.jsxs(u7,{children:[v.jsx(Tr,{path:"/login",element:v.jsx(Kte,{})}),v.jsx(Tr,{path:"/invite",element:v.jsx(Qte,{})}),v.jsx(Tr,{path:"/reset-password",element:v.jsx(ene,{})}),v.jsxs(Tr,{element:v.jsx(XK,{}),children:[v.jsx(Tr,{index:!0,element:v.jsx(I1,{to:"/app-center",replace:!0})}),v.jsx(Tr,{path:"/app-center",element:v.jsx(Vne,{})}),v.jsx(Tr,{path:"/app-center/build",element:v.jsx(Ure,{})}),v.jsx(Tr,{path:"/mac-resources",element:v.jsx(q0e,{})}),v.jsx(Tr,{path:"/settings/default",element:v.jsx(sxe,{})}),v.jsx(Tr,{path:"/settings/team",element:v.jsx(dxe,{})}),v.jsx(Tr,{path:"/settings/tokens",element:v.jsx(pxe,{})}),v.jsx(Tr,{path:"*",element:v.jsx(I1,{to:"/app-center",replace:!0})})]})]}),v.jsx(gF,{position:"bottom-right",richColors:!0,theme:e})]})}e9.createRoot(document.getElementById("root")).render(v.jsx(y.StrictMode,{children:v.jsx(a9,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:v.jsx(mxe,{})})}));
|