@jonit-dev/night-watch-cli 1.5.7 → 1.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +12 -0
- package/dist/cli.js.map +1 -1
- package/dist/commands/cancel.d.ts.map +1 -1
- package/dist/commands/cancel.js +3 -0
- package/dist/commands/cancel.js.map +1 -1
- package/dist/commands/prds.d.ts.map +1 -1
- package/dist/commands/prds.js +6 -2
- package/dist/commands/prds.js.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +51 -0
- package/dist/server/index.js.map +1 -1
- package/dist/utils/status-data.d.ts.map +1 -1
- package/dist/utils/status-data.js +30 -4
- package/dist/utils/status-data.js.map +1 -1
- package/package.json +3 -1
- package/scripts/night-watch-cron.sh +64 -85
- package/scripts/night-watch-helpers.sh +32 -168
- package/scripts/night-watch-pr-reviewer-cron.sh +23 -53
- package/templates/night-watch-pr-reviewer.md +11 -6
- package/templates/night-watch.md +14 -9
- package/web/dist/assets/index-CP0r6Epl.js +350 -0
- package/web/dist/index.html +1 -15
- package/web/dist/assets/index-hIqyS2ir.js +0 -335
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const v of h.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function f(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(m){if(m.ep)return;m.ep=!0;const h=f(m);fetch(m.href,h)}})();function ar(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Yc={exports:{}},Xn={};/**
|
|
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 b0;function Wx(){if(b0)return Xn;b0=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,m,h){var v=null;if(h!==void 0&&(v=""+h),m.key!==void 0&&(v=""+m.key),"key"in m){h={};for(var p in m)p!=="key"&&(h[p]=m[p])}else h=m;return m=h.ref,{$$typeof:s,type:r,key:v,ref:m!==void 0?m:null,props:h}}return Xn.Fragment=o,Xn.jsx=f,Xn.jsxs=f,Xn}var j0;function Fx(){return j0||(j0=1,Yc.exports=Wx()),Yc.exports}var u=Fx(),Gc={exports:{}},ae={};/**
|
|
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 S0;function Px(){if(S0)return ae;S0=1;var s=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),v=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),H=Symbol.iterator;function O(S){return S===null||typeof S!="object"?null:(S=H&&S[H]||S["@@iterator"],typeof S=="function"?S:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z=Object.assign,q={};function G(S,U,k){this.props=S,this.context=U,this.refs=q,this.updater=k||K}G.prototype.isReactComponent={},G.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,U,"setState")},G.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function X(){}X.prototype=G.prototype;function Y(S,U,k){this.props=S,this.context=U,this.refs=q,this.updater=k||K}var L=Y.prototype=new X;L.constructor=Y,Z(L,G.prototype),L.isPureReactComponent=!0;var B=Array.isArray;function I(){}var F={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function te(S,U,k){var $=k.ref;return{$$typeof:s,type:S,key:U,ref:$!==void 0?$:null,props:k}}function ye(S,U){return te(S.type,U,S.props)}function _e(S){return typeof S=="object"&&S!==null&&S.$$typeof===s}function De(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(k){return U[k]})}var St=/\/+/g;function Ut(S,U){return typeof S=="object"&&S!==null&&S.key!=null?De(""+S.key):U.toString(36)}function et(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(I,I):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function A(S,U,k,$,ne){var ce=typeof S;(ce==="undefined"||ce==="boolean")&&(S=null);var ge=!1;if(S===null)ge=!0;else switch(ce){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(S.$$typeof){case s:case o:ge=!0;break;case E:return ge=S._init,A(ge(S._payload),U,k,$,ne)}}if(ge)return ne=ne(S),ge=$===""?"."+Ut(S,0):$,B(ne)?(k="",ge!=null&&(k=ge.replace(St,"$&/")+"/"),A(ne,U,k,"",function(Ja){return Ja})):ne!=null&&(_e(ne)&&(ne=ye(ne,k+(ne.key==null||S&&S.key===ne.key?"":(""+ne.key).replace(St,"$&/")+"/")+ge)),U.push(ne)),1;ge=0;var lt=$===""?".":$+":";if(B(S))for(var Be=0;Be<S.length;Be++)$=S[Be],ce=lt+Ut($,Be),ge+=A($,U,k,ce,ne);else if(Be=O(S),typeof Be=="function")for(S=Be.call(S),Be=0;!($=S.next()).done;)$=$.value,ce=lt+Ut($,Be++),ge+=A($,U,k,ce,ne);else if(ce==="object"){if(typeof S.then=="function")return A(et(S),U,k,$,ne);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ge}function V(S,U,k){if(S==null)return S;var $=[],ne=0;return A(S,$,"","",function(ce){return U.call(k,ce,ne++)}),$}function le(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(k){(S._status===0||S._status===-1)&&(S._status=1,S._result=k)},function(k){(S._status===0||S._status===-1)&&(S._status=2,S._result=k)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var Se=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Re={map:V,forEach:function(S,U,k){V(S,function(){U.apply(this,arguments)},k)},count:function(S){var U=0;return V(S,function(){U++}),U},toArray:function(S){return V(S,function(U){return U})||[]},only:function(S){if(!_e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=j,ae.Children=Re,ae.Component=G,ae.Fragment=f,ae.Profiler=m,ae.PureComponent=Y,ae.StrictMode=r,ae.Suspense=y,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,U,k){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=Z({},S.props),ne=S.key;if(U!=null)for(ce in U.key!==void 0&&(ne=""+U.key),U)!Q.call(U,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&U.ref===void 0||($[ce]=U[ce]);var ce=arguments.length-2;if(ce===1)$.children=k;else if(1<ce){for(var ge=Array(ce),lt=0;lt<ce;lt++)ge[lt]=arguments[lt+2];$.children=ge}return te(S.type,ne,$)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ae.createElement=function(S,U,k){var $,ne={},ce=null;if(U!=null)for($ in U.key!==void 0&&(ce=""+U.key),U)Q.call(U,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(ne[$]=U[$]);var ge=arguments.length-2;if(ge===1)ne.children=k;else if(1<ge){for(var lt=Array(ge),Be=0;Be<ge;Be++)lt[Be]=arguments[Be+2];ne.children=lt}if(S&&S.defaultProps)for($ in ge=S.defaultProps,ge)ne[$]===void 0&&(ne[$]=ge[$]);return te(S,ce,ne)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:p,render:S}},ae.isValidElement=_e,ae.lazy=function(S){return{$$typeof:E,_payload:{_status:-1,_result:S},_init:le}},ae.memo=function(S,U){return{$$typeof:x,type:S,compare:U===void 0?null:U}},ae.startTransition=function(S){var U=F.T,k={};F.T=k;try{var $=S(),ne=F.S;ne!==null&&ne(k,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(I,Se)}catch(ce){Se(ce)}finally{U!==null&&k.types!==null&&(U.types=k.types),F.T=U}},ae.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ae.use=function(S){return F.H.use(S)},ae.useActionState=function(S,U,k){return F.H.useActionState(S,U,k)},ae.useCallback=function(S,U){return F.H.useCallback(S,U)},ae.useContext=function(S){return F.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,U){return F.H.useDeferredValue(S,U)},ae.useEffect=function(S,U){return F.H.useEffect(S,U)},ae.useEffectEvent=function(S){return F.H.useEffectEvent(S)},ae.useId=function(){return F.H.useId()},ae.useImperativeHandle=function(S,U,k){return F.H.useImperativeHandle(S,U,k)},ae.useInsertionEffect=function(S,U){return F.H.useInsertionEffect(S,U)},ae.useLayoutEffect=function(S,U){return F.H.useLayoutEffect(S,U)},ae.useMemo=function(S,U){return F.H.useMemo(S,U)},ae.useOptimistic=function(S,U){return F.H.useOptimistic(S,U)},ae.useReducer=function(S,U,k){return F.H.useReducer(S,U,k)},ae.useRef=function(S){return F.H.useRef(S)},ae.useState=function(S){return F.H.useState(S)},ae.useSyncExternalStore=function(S,U,k){return F.H.useSyncExternalStore(S,U,k)},ae.useTransition=function(){return F.H.useTransition()},ae.version="19.2.4",ae}var N0;function nr(){return N0||(N0=1,Gc.exports=Px()),Gc.exports}var w=nr();const Dt=ar(w);var Xc={exports:{}},Qn={},Qc={exports:{}},Zc={};/**
|
|
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 E0;function Ix(){return E0||(E0=1,(function(s){function o(A,V){var le=A.length;A.push(V);e:for(;0<le;){var Se=le-1>>>1,Re=A[Se];if(0<m(Re,V))A[Se]=V,A[le]=Re,le=Se;else break e}}function f(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var V=A[0],le=A.pop();if(le!==V){A[0]=le;e:for(var Se=0,Re=A.length,S=Re>>>1;Se<S;){var U=2*(Se+1)-1,k=A[U],$=U+1,ne=A[$];if(0>m(k,le))$<Re&&0>m(ne,k)?(A[Se]=ne,A[$]=le,Se=$):(A[Se]=k,A[U]=le,Se=U);else if($<Re&&0>m(ne,le))A[Se]=ne,A[$]=le,Se=$;else break e}}return V}function m(A,V){var le=A.sortIndex-V.sortIndex;return le!==0?le:A.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var v=Date,p=v.now();s.unstable_now=function(){return v.now()-p}}var y=[],x=[],E=1,j=null,H=3,O=!1,K=!1,Z=!1,q=!1,G=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function L(A){for(var V=f(x);V!==null;){if(V.callback===null)r(x);else if(V.startTime<=A)r(x),V.sortIndex=V.expirationTime,o(y,V);else break;V=f(x)}}function B(A){if(Z=!1,L(A),!K)if(f(y)!==null)K=!0,I||(I=!0,De());else{var V=f(x);V!==null&&et(B,V.startTime-A)}}var I=!1,F=-1,Q=5,te=-1;function ye(){return q?!0:!(s.unstable_now()-te<Q)}function _e(){if(q=!1,I){var A=s.unstable_now();te=A;var V=!0;try{e:{K=!1,Z&&(Z=!1,X(F),F=-1),O=!0;var le=H;try{t:{for(L(A),j=f(y);j!==null&&!(j.expirationTime>A&&ye());){var Se=j.callback;if(typeof Se=="function"){j.callback=null,H=j.priorityLevel;var Re=Se(j.expirationTime<=A);if(A=s.unstable_now(),typeof Re=="function"){j.callback=Re,L(A),V=!0;break t}j===f(y)&&r(y),L(A)}else r(y);j=f(y)}if(j!==null)V=!0;else{var S=f(x);S!==null&&et(B,S.startTime-A),V=!1}}break e}finally{j=null,H=le,O=!1}V=void 0}}finally{V?De():I=!1}}}var De;if(typeof Y=="function")De=function(){Y(_e)};else if(typeof MessageChannel<"u"){var St=new MessageChannel,Ut=St.port2;St.port1.onmessage=_e,De=function(){Ut.postMessage(null)}}else De=function(){G(_e,0)};function et(A,V){F=G(function(){A(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(A){A.callback=null},s.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<A?Math.floor(1e3/A):5},s.unstable_getCurrentPriorityLevel=function(){return H},s.unstable_next=function(A){switch(H){case 1:case 2:case 3:var V=3;break;default:V=H}var le=H;H=V;try{return A()}finally{H=le}},s.unstable_requestPaint=function(){q=!0},s.unstable_runWithPriority=function(A,V){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var le=H;H=A;try{return V()}finally{H=le}},s.unstable_scheduleCallback=function(A,V,le){var Se=s.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Se+le:Se):le=Se,A){case 1:var Re=-1;break;case 2:Re=250;break;case 5:Re=1073741823;break;case 4:Re=1e4;break;default:Re=5e3}return Re=le+Re,A={id:E++,callback:V,priorityLevel:A,startTime:le,expirationTime:Re,sortIndex:-1},le>Se?(A.sortIndex=le,o(x,A),f(y)===null&&A===f(x)&&(Z?(X(F),F=-1):Z=!0,et(B,le-Se))):(A.sortIndex=Re,o(y,A),K||O||(K=!0,I||(I=!0,De()))),A},s.unstable_shouldYield=ye,s.unstable_wrapCallback=function(A){var V=H;return function(){var le=H;H=V;try{return A.apply(this,arguments)}finally{H=le}}}})(Zc)),Zc}var w0;function ev(){return w0||(w0=1,Qc.exports=Ix()),Qc.exports}var Vc={exports:{}},tt={};/**
|
|
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 R0;function tv(){if(R0)return tt;R0=1;var s=nr();function o(y){var x="https://react.dev/errors/"+y;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)x+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+y+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(y,x,E){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:j==null?null:""+j,children:y,containerInfo:x,implementation:E}}var v=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,x){if(y==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,tt.createPortal=function(y,x){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return h(y,x,null,E)},tt.flushSync=function(y){var x=v.T,E=r.p;try{if(v.T=null,r.p=2,y)return y()}finally{v.T=x,r.p=E,r.d.f()}},tt.preconnect=function(y,x){typeof y=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(y,x))},tt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},tt.preinit=function(y,x){if(typeof y=="string"&&x&&typeof x.as=="string"){var E=x.as,j=p(E,x.crossOrigin),H=typeof x.integrity=="string"?x.integrity:void 0,O=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;E==="style"?r.d.S(y,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:j,integrity:H,fetchPriority:O}):E==="script"&&r.d.X(y,{crossOrigin:j,integrity:H,fetchPriority:O,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},tt.preinitModule=function(y,x){if(typeof y=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var E=p(x.as,x.crossOrigin);r.d.M(y,{crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(y)},tt.preload=function(y,x){if(typeof y=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var E=x.as,j=p(E,x.crossOrigin);r.d.L(y,E,{crossOrigin:j,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},tt.preloadModule=function(y,x){if(typeof y=="string")if(x){var E=p(x.as,x.crossOrigin);r.d.m(y,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(y)},tt.requestFormReset=function(y){r.d.r(y)},tt.unstable_batchedUpdates=function(y,x){return y(x)},tt.useFormState=function(y,x,E){return v.H.useFormState(y,x,E)},tt.useFormStatus=function(){return v.H.useHostTransitionStatus()},tt.version="19.2.4",tt}var T0;function k0(){if(T0)return Vc.exports;T0=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Vc.exports=tv(),Vc.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 _0;function lv(){if(_0)return Qn;_0=1;var s=ev(),o=nr(),f=k0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function v(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(h(e)!==e)throw Error(r(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return y(n),e;if(i===a)return y(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=i;break}if(d===a){c=!0,a=n,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,a=n;break}if(d===a){c=!0,a=i,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,H=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=_e&&e[_e]||e["@@iterator"],typeof e=="function"?e:null)}var St=Symbol.for("react.client.reference");function Ut(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===St?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case G:return"Profiler";case q:return"StrictMode";case B:return"Suspense";case I:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case K:return"Portal";case Y:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:Ut(e.type)||"Memo";case Q:t=e._payload,e=e._init;try{return Ut(e(t))}catch{}}return null}var et=Array.isArray,A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Se=[],Re=-1;function S(e){return{current:e}}function U(e){0>Re||(e.current=Se[Re],Se[Re]=null,Re--)}function k(e,t){Re++,Se[Re]=e.current,e.current=t}var $=S(null),ne=S(null),ce=S(null),ge=S(null);function lt(e,t){switch(k(ce,t),k(ne,e),k($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qd(t),e=Zd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U($),k($,e)}function Be(){U($),U(ne),U(ce)}function Ja(e){e.memoizedState!==null&&k(ge,e);var t=$.current,l=Zd(t,e.type);t!==l&&(k(ne,e),k($,l))}function Wn(e){ne.current===e&&(U($),U(ne)),ge.current===e&&(U(ge),Ln._currentValue=le)}var Su,gr;function Gl(e){if(Su===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Su=t&&t[1]||"",gr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Su+e+gr}var Nu=!1;function Eu(e,t){if(!e||Nu)return"";Nu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(z){var _=z}Reflect.construct(e,[],D)}else{try{D.call()}catch(z){_=z}e.call(D.prototype)}}else{try{throw Error()}catch(z){_=z}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(z){if(z&&_&&typeof z.stack=="string")return[z.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var g=c.split(`
|
|
44
|
+
`),T=d.split(`
|
|
45
|
+
`);for(n=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;n<T.length&&!T[n].includes("DetermineComponentFrameRoot");)n++;if(a===g.length||n===T.length)for(a=g.length-1,n=T.length-1;1<=a&&0<=n&&g[a]!==T[n];)n--;for(;1<=a&&0<=n;a--,n--)if(g[a]!==T[n]){if(a!==1||n!==1)do if(a--,n--,0>n||g[a]!==T[n]){var M=`
|
|
46
|
+
`+g[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=n);break}}}finally{Nu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Gl(l):""}function Tm(e,t){switch(e.tag){case 26:case 27:case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return e.child!==t&&t!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return Eu(e.type,!1);case 11:return Eu(e.type.render,!1);case 1:return Eu(e.type,!0);case 31:return Gl("Activity");default:return""}}function yr(e){try{var t="",l=null;do t+=Tm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var wu=Object.prototype.hasOwnProperty,Ru=s.unstable_scheduleCallback,Tu=s.unstable_cancelCallback,_m=s.unstable_shouldYield,zm=s.unstable_requestPaint,ft=s.unstable_now,Mm=s.unstable_getCurrentPriorityLevel,pr=s.unstable_ImmediatePriority,br=s.unstable_UserBlockingPriority,Fn=s.unstable_NormalPriority,Am=s.unstable_LowPriority,jr=s.unstable_IdlePriority,Cm=s.log,Dm=s.unstable_setDisableYieldValue,$a=null,dt=null;function hl(e){if(typeof Cm=="function"&&Dm(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode($a,e)}catch{}}var mt=Math.clz32?Math.clz32:Hm,Om=Math.log,Um=Math.LN2;function Hm(e){return e>>>=0,e===0?32:31-(Om(e)/Um|0)|0}var Pn=256,In=262144,ei=4194304;function Xl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ti(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Xl(a):(c&=d,c!==0?n=Xl(c):l||(l=d&~e,l!==0&&(n=Xl(l))))):(d=a&~i,d!==0?n=Xl(d):c!==0?n=Xl(c):l||(l=a&~e,l!==0&&(n=Xl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Wa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Sr(){var e=ei;return ei<<=1,(ei&62914560)===0&&(ei=4194304),e}function _u(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lm(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,g=e.expirationTimes,T=e.hiddenUpdates;for(l=c&~l;0<l;){var M=31-mt(l),D=1<<M;d[M]=0,g[M]=-1;var _=T[M];if(_!==null)for(T[M]=null,M=0;M<_.length;M++){var z=_[M];z!==null&&(z.lane&=-536870913)}l&=~D}a!==0&&Nr(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Nr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Er(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-mt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function wr(e,t){var l=t&-t;return l=(l&42)!==0?1:zu(l),(l&(e.suspendedLanes|t))!==0?0:l}function zu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Rr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:m0(e.type))}function Tr(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var xl=Math.random().toString(36).slice(2),Je="__reactFiber$"+xl,nt="__reactProps$"+xl,sa="__reactContainer$"+xl,Au="__reactEvents$"+xl,qm="__reactListeners$"+xl,Ym="__reactHandles$"+xl,_r="__reactResources$"+xl,Pa="__reactMarker$"+xl;function Cu(e){delete e[Je],delete e[nt],delete e[Au],delete e[qm],delete e[Ym]}function ca(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sa]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Fd(e);e!==null;){if(l=e[Je])return l;e=Fd(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[Je]||e[sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function oa(e){var t=e[_r];return t||(t=e[_r]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Pa]=!0}var zr=new Set,Mr={};function Ql(e,t){fa(e,t),fa(e+"Capture",t)}function fa(e,t){for(Mr[e]=t,e=0;e<t.length;e++)zr.add(t[e])}var Gm=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]*$"),Ar={},Cr={};function Xm(e){return wu.call(Cr,e)?!0:wu.call(Ar,e)?!1:Gm.test(e)?Cr[e]=!0:(Ar[e]=!0,!1)}function li(e,t,l){if(Xm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ai(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Kt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Qm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Du(e){if(!e._valueTracker){var t=Dr(e)?"checked":"value";e._valueTracker=Qm(e,t,""+e[t])}}function Or(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Dr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ni(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Zm=/[\n"\\]/g;function Et(e){return e.replace(Zm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ou(e,t,l,a,n,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Uu(e,c,Nt(t)):l!=null?Uu(e,c,Nt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Nt(d):e.removeAttribute("name")}function Ur(e,t,l,a,n,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Du(e);return}l=l!=null?""+Nt(l):"",t=t!=null?""+Nt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Du(e)}function Uu(e,t,l){t==="number"&&ni(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function da(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Nt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Hr(e,t,l){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Nt(l):""}function Br(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(et(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Nt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Du(e)}function ma(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Vm=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 Lr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Vm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function qr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Lr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Lr(e,i,t[i])}function Hu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var km=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"]]),Km=/^[\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 ii(e){return Km.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var Bu=null;function Lu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,xa=null;function Yr(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ou(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[nt]||null;if(!n)throw Error(r(90));Ou(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Or(a)}break e;case"textarea":Hr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var qu=!1;function Gr(e,t,l){if(qu)return e(t,l);qu=!0;try{var a=e(t);return a}finally{if(qu=!1,(ha!==null||xa!==null)&&(ki(),ha&&(t=ha,e=xa,xa=ha=null,Yr(t),e)))for(t=0;t<e.length;t++)Yr(e[t])}}function en(e,t){var l=e.stateNode;if(l===null)return null;var a=l[nt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yu=!1;if($t)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){Yu=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{Yu=!1}var vl=null,Gu=null,ui=null;function Xr(){if(ui)return ui;var e,t=Gu,l=t.length,a,n="value"in vl?vl.value:vl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return ui=n.slice(e,1<a?1-a:void 0)}function si(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ci(){return!0}function Qr(){return!1}function it(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ci:Qr,this.isPropagationStopped=Qr,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=it(Zl),ln=j({},Zl,{view:0,detail:0}),Jm=it(ln),Xu,Qu,an,oi=j({},ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&e.type==="mousemove"?(Xu=e.screenX-an.screenX,Qu=e.screenY-an.screenY):Qu=Xu=0,an=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Qu}}),Zr=it(oi),$m=j({},oi,{dataTransfer:0}),Wm=it($m),Fm=j({},ln,{relatedTarget:0}),Zu=it(Fm),Pm=j({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),Im=it(Pm),eh=j({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),th=it(eh),lh=j({},Zl,{data:0}),Vr=it(lh),ah={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nh={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"},ih={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ih[e])?!!t[e]:!1}function Vu(){return uh}var sh=j({},ln,{key:function(e){if(e.key){var t=ah[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(e){return e.type==="keypress"?si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ch=it(sh),rh=j({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=it(rh),oh=j({},ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),fh=it(oh),dh=j({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),mh=it(dh),hh=j({},oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),xh=it(hh),vh=j({},Zl,{newState:0,oldState:0}),gh=it(vh),yh=[9,13,27,32],ku=$t&&"CompositionEvent"in window,nn=null;$t&&"documentMode"in document&&(nn=document.documentMode);var ph=$t&&"TextEvent"in window&&!nn,Kr=$t&&(!ku||nn&&8<nn&&11>=nn),Jr=" ",$r=!1;function Wr(e,t){switch(e){case"keyup":return yh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function bh(e,t){switch(e){case"compositionend":return Fr(t);case"keypress":return t.which!==32?null:($r=!0,Jr);case"textInput":return e=t.data,e===Jr&&$r?null:e;default:return null}}function jh(e,t){if(va)return e==="compositionend"||!ku&&Wr(e,t)?(e=Xr(),ui=Gu=vl=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Kr&&t.locale!=="ko"?null:t.data;default:return null}}var Sh={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 Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sh[e.type]:t==="textarea"}function Ir(e,t,l,a){ha?xa?xa.push(a):xa=[a]:ha=a,t=Ii(t,"onChange"),0<t.length&&(l=new ri("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var un=null,sn=null;function Nh(e){Bd(e,0)}function fi(e){var t=Ia(e);if(Or(t))return e}function eo(e,t){if(e==="change")return t}var to=!1;if($t){var Ku;if($t){var Ju="oninput"in document;if(!Ju){var lo=document.createElement("div");lo.setAttribute("oninput","return;"),Ju=typeof lo.oninput=="function"}Ku=Ju}else Ku=!1;to=Ku&&(!document.documentMode||9<document.documentMode)}function ao(){un&&(un.detachEvent("onpropertychange",no),sn=un=null)}function no(e){if(e.propertyName==="value"&&fi(sn)){var t=[];Ir(t,sn,e,Lu(e)),Gr(Nh,t)}}function Eh(e,t,l){e==="focusin"?(ao(),un=t,sn=l,un.attachEvent("onpropertychange",no)):e==="focusout"&&ao()}function wh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fi(sn)}function Rh(e,t){if(e==="click")return fi(t)}function Th(e,t){if(e==="input"||e==="change")return fi(t)}function _h(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:_h;function cn(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!wu.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function io(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function uo(e,t){var l=io(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=io(l)}}function so(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?so(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function co(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ni(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ni(e.document)}return t}function $u(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var zh=$t&&"documentMode"in document&&11>=document.documentMode,ga=null,Wu=null,rn=null,Fu=!1;function ro(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fu||ga==null||ga!==ni(a)||(a=ga,"selectionStart"in a&&$u(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),rn&&cn(rn,a)||(rn=a,a=Ii(Wu,"onSelect"),0<a.length&&(t=new ri("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ga)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ya={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Pu={},oo={};$t&&(oo=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function kl(e){if(Pu[e])return Pu[e];if(!ya[e])return e;var t=ya[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in oo)return Pu[e]=t[l];return e}var fo=kl("animationend"),mo=kl("animationiteration"),ho=kl("animationstart"),Mh=kl("transitionrun"),Ah=kl("transitionstart"),Ch=kl("transitioncancel"),xo=kl("transitionend"),vo=new Map,Iu="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(" ");Iu.push("scrollEnd");function Ht(e,t){vo.set(e,t),Ql(t,[e])}var di=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},wt=[],pa=0,es=0;function mi(){for(var e=pa,t=es=pa=0;t<e;){var l=wt[t];wt[t++]=null;var a=wt[t];wt[t++]=null;var n=wt[t];wt[t++]=null;var i=wt[t];if(wt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&go(l,n,i)}}function hi(e,t,l,a){wt[pa++]=e,wt[pa++]=t,wt[pa++]=l,wt[pa++]=a,es|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ts(e,t,l,a){return hi(e,t,l,a),xi(e)}function Kl(e,t){return hi(e,null,null,t),xi(e)}function go(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-mt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function xi(e){if(50<An)throw An=0,oc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function Dh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,l,a){return new Dh(e,t,l,a)}function ls(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wt(e,t){var l=e.alternate;return l===null?(l=xt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function yo(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function vi(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")ls(e)&&(c=1);else if(typeof e=="string")c=Lx(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=xt(31,l,t,n),e.elementType=te,e.lanes=i,e;case Z:return Jl(l.children,n,i,t);case q:c=8,n|=24;break;case G:return e=xt(12,l,t,n|2),e.elementType=G,e.lanes=i,e;case B:return e=xt(13,l,t,n),e.elementType=B,e.lanes=i,e;case I:return e=xt(19,l,t,n),e.elementType=I,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:c=10;break e;case X:c=9;break e;case L:c=11;break e;case F:c=14;break e;case Q:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=xt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Jl(e,t,l,a){return e=xt(7,e,a,t),e.lanes=l,e}function as(e,t,l){return e=xt(6,e,null,t),e.lanes=l,e}function po(e){var t=xt(18,null,null,0);return t.stateNode=e,t}function ns(e,t,l){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var bo=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var l=bo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:yr(t)},bo.set(e,t),t)}return{value:e,source:t,stack:yr(t)}}var ja=[],Sa=0,gi=null,on=0,Tt=[],_t=0,gl=null,Xt=1,Qt="";function Ft(e,t){ja[Sa++]=on,ja[Sa++]=gi,gi=e,on=t}function jo(e,t,l){Tt[_t++]=Xt,Tt[_t++]=Qt,Tt[_t++]=gl,gl=e;var a=Xt;e=Qt;var n=32-mt(a)-1;a&=~(1<<n),l+=1;var i=32-mt(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Xt=1<<32-mt(t)+n|l<<n|a,Qt=i+e}else Xt=1<<i|l<<n|a,Qt=e}function is(e){e.return!==null&&(Ft(e,1),jo(e,1,0))}function us(e){for(;e===gi;)gi=ja[--Sa],ja[Sa]=null,on=ja[--Sa],ja[Sa]=null;for(;e===gl;)gl=Tt[--_t],Tt[_t]=null,Qt=Tt[--_t],Tt[_t]=null,Xt=Tt[--_t],Tt[_t]=null}function So(e,t){Tt[_t++]=Xt,Tt[_t++]=Qt,Tt[_t++]=gl,Xt=t.id,Qt=t.overflow,gl=e}var $e=null,ze=null,me=!1,yl=null,zt=!1,ss=Error(r(519));function pl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(Rt(t,e)),ss}function No(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[nt]=a,l){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(l=0;l<Dn.length;l++)oe(Dn[l],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),Ur(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),Br(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Gd(t.textContent,l)?(a.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),a.onScroll!=null&&oe("scroll",t),a.onScrollEnd!=null&&oe("scrollend",t),a.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||pl(e,!0)}function Eo(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:zt=!1;return;case 27:case 3:zt=!0;return;default:$e=$e.return}}function Na(e){if(e!==$e)return!1;if(!me)return Eo(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||wc(e.type,e.memoizedProps)),l=!l),l&&ze&&pl(e),Eo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ze=Wd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ze=Wd(e)}else t===27?(t=ze,Dl(e.type)?(e=Mc,Mc=null,ze=e):ze=t):ze=$e?At(e.stateNode.nextSibling):null;return!0}function $l(){ze=$e=null,me=!1}function cs(){var e=yl;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),yl=null),e}function fn(e){yl===null?yl=[e]:yl.push(e)}var rs=S(null),Wl=null,Pt=null;function bl(e,t,l){k(rs,t._currentValue),t._currentValue=l}function It(e){e._currentValue=rs.current,U(rs)}function os(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function fs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var g=0;g<t.length;g++)if(d.context===t[g]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),os(i.return,l,e),a||(c=null);break e}i=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),os(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Ea(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;ht(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===ge.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Ln):e=[Ln])}n=n.return}e!==null&&fs(t,e,l,a),t.flags|=262144}function yi(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fl(e){Wl=e,Pt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return wo(Wl,e)}function pi(e,t){return Wl===null&&Fl(e),wo(e,t)}function wo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Pt===null){if(e===null)throw Error(r(308));Pt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Pt=Pt.next=t;return l}var Oh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Uh=s.unstable_scheduleCallback,Hh=s.unstable_NormalPriority,Ye={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ds(){return{controller:new Oh,data:new Map,refCount:0}}function dn(e){e.refCount--,e.refCount===0&&Uh(Hh,function(){e.controller.abort()})}var mn=null,ms=0,wa=0,Ra=null;function Bh(e,t){if(mn===null){var l=mn=[];ms=0,wa=vc(),Ra={status:"pending",value:void 0,then:function(a){l.push(a)}}}return ms++,t.then(Ro,Ro),t}function Ro(){if(--ms===0&&mn!==null){Ra!==null&&(Ra.status="fulfilled");var e=mn;mn=null,wa=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lh(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var To=A.S;A.S=function(e,t){fd=ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Bh(e,t),To!==null&&To(e,t)};var Pl=S(null);function hs(){var e=Pl.current;return e!==null?e:Te.pooledCache}function bi(e,t){t===null?k(Pl,Pl.current):k(Pl,t.pool)}function _o(){var e=hs();return e===null?null:{parent:Ye._currentValue,pool:e}}var Ta=Error(r(460)),xs=Error(r(474)),ji=Error(r(542)),Si={then:function(){}};function zo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Mo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Jt,Jt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Co(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Co(e),e}throw ea=t,Ta}}function Il(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ea=l,Ta):l}}var ea=null;function Ao(){if(ea===null)throw Error(r(459));var e=ea;return ea=null,e}function Co(e){if(e===Ta||e===ji)throw Error(r(483))}var _a=null,hn=0;function Ni(e){var t=hn;return hn+=1,_a===null&&(_a=[]),Mo(_a,e,t)}function xn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(e,t){throw t.$$typeof===H?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Do(e){function t(N,b){if(e){var R=N.deletions;R===null?(N.deletions=[b],N.flags|=16):R.push(b)}}function l(N,b){if(!e)return null;for(;b!==null;)t(N,b),b=b.sibling;return null}function a(N){for(var b=new Map;N!==null;)N.key!==null?b.set(N.key,N):b.set(N.index,N),N=N.sibling;return b}function n(N,b){return N=Wt(N,b),N.index=0,N.sibling=null,N}function i(N,b,R){return N.index=R,e?(R=N.alternate,R!==null?(R=R.index,R<b?(N.flags|=67108866,b):R):(N.flags|=67108866,b)):(N.flags|=1048576,b)}function c(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function d(N,b,R,C){return b===null||b.tag!==6?(b=as(R,N.mode,C),b.return=N,b):(b=n(b,R),b.return=N,b)}function g(N,b,R,C){var P=R.type;return P===Z?M(N,b,R.props.children,C,R.key):b!==null&&(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Q&&Il(P)===b.type)?(b=n(b,R.props),xn(b,R),b.return=N,b):(b=vi(R.type,R.key,R.props,null,N.mode,C),xn(b,R),b.return=N,b)}function T(N,b,R,C){return b===null||b.tag!==4||b.stateNode.containerInfo!==R.containerInfo||b.stateNode.implementation!==R.implementation?(b=ns(R,N.mode,C),b.return=N,b):(b=n(b,R.children||[]),b.return=N,b)}function M(N,b,R,C,P){return b===null||b.tag!==7?(b=Jl(R,N.mode,C,P),b.return=N,b):(b=n(b,R),b.return=N,b)}function D(N,b,R){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=as(""+b,N.mode,R),b.return=N,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case O:return R=vi(b.type,b.key,b.props,null,N.mode,R),xn(R,b),R.return=N,R;case K:return b=ns(b,N.mode,R),b.return=N,b;case Q:return b=Il(b),D(N,b,R)}if(et(b)||De(b))return b=Jl(b,N.mode,R,null),b.return=N,b;if(typeof b.then=="function")return D(N,Ni(b),R);if(b.$$typeof===Y)return D(N,pi(N,b),R);Ei(N,b)}return null}function _(N,b,R,C){var P=b!==null?b.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return P!==null?null:d(N,b,""+R,C);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case O:return R.key===P?g(N,b,R,C):null;case K:return R.key===P?T(N,b,R,C):null;case Q:return R=Il(R),_(N,b,R,C)}if(et(R)||De(R))return P!==null?null:M(N,b,R,C,null);if(typeof R.then=="function")return _(N,b,Ni(R),C);if(R.$$typeof===Y)return _(N,b,pi(N,R),C);Ei(N,R)}return null}function z(N,b,R,C,P){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return N=N.get(R)||null,d(b,N,""+C,P);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case O:return N=N.get(C.key===null?R:C.key)||null,g(b,N,C,P);case K:return N=N.get(C.key===null?R:C.key)||null,T(b,N,C,P);case Q:return C=Il(C),z(N,b,R,C,P)}if(et(C)||De(C))return N=N.get(R)||null,M(b,N,C,P,null);if(typeof C.then=="function")return z(N,b,R,Ni(C),P);if(C.$$typeof===Y)return z(N,b,R,pi(b,C),P);Ei(b,C)}return null}function J(N,b,R,C){for(var P=null,he=null,W=b,se=b=0,de=null;W!==null&&se<R.length;se++){W.index>se?(de=W,W=null):de=W.sibling;var xe=_(N,W,R[se],C);if(xe===null){W===null&&(W=de);break}e&&W&&xe.alternate===null&&t(N,W),b=i(xe,b,se),he===null?P=xe:he.sibling=xe,he=xe,W=de}if(se===R.length)return l(N,W),me&&Ft(N,se),P;if(W===null){for(;se<R.length;se++)W=D(N,R[se],C),W!==null&&(b=i(W,b,se),he===null?P=W:he.sibling=W,he=W);return me&&Ft(N,se),P}for(W=a(W);se<R.length;se++)de=z(W,N,se,R[se],C),de!==null&&(e&&de.alternate!==null&&W.delete(de.key===null?se:de.key),b=i(de,b,se),he===null?P=de:he.sibling=de,he=de);return e&&W.forEach(function(Ll){return t(N,Ll)}),me&&Ft(N,se),P}function ee(N,b,R,C){if(R==null)throw Error(r(151));for(var P=null,he=null,W=b,se=b=0,de=null,xe=R.next();W!==null&&!xe.done;se++,xe=R.next()){W.index>se?(de=W,W=null):de=W.sibling;var Ll=_(N,W,xe.value,C);if(Ll===null){W===null&&(W=de);break}e&&W&&Ll.alternate===null&&t(N,W),b=i(Ll,b,se),he===null?P=Ll:he.sibling=Ll,he=Ll,W=de}if(xe.done)return l(N,W),me&&Ft(N,se),P;if(W===null){for(;!xe.done;se++,xe=R.next())xe=D(N,xe.value,C),xe!==null&&(b=i(xe,b,se),he===null?P=xe:he.sibling=xe,he=xe);return me&&Ft(N,se),P}for(W=a(W);!xe.done;se++,xe=R.next())xe=z(W,N,se,xe.value,C),xe!==null&&(e&&xe.alternate!==null&&W.delete(xe.key===null?se:xe.key),b=i(xe,b,se),he===null?P=xe:he.sibling=xe,he=xe);return e&&W.forEach(function($x){return t(N,$x)}),me&&Ft(N,se),P}function we(N,b,R,C){if(typeof R=="object"&&R!==null&&R.type===Z&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case O:e:{for(var P=R.key;b!==null;){if(b.key===P){if(P=R.type,P===Z){if(b.tag===7){l(N,b.sibling),C=n(b,R.props.children),C.return=N,N=C;break e}}else if(b.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Q&&Il(P)===b.type){l(N,b.sibling),C=n(b,R.props),xn(C,R),C.return=N,N=C;break e}l(N,b);break}else t(N,b);b=b.sibling}R.type===Z?(C=Jl(R.props.children,N.mode,C,R.key),C.return=N,N=C):(C=vi(R.type,R.key,R.props,null,N.mode,C),xn(C,R),C.return=N,N=C)}return c(N);case K:e:{for(P=R.key;b!==null;){if(b.key===P)if(b.tag===4&&b.stateNode.containerInfo===R.containerInfo&&b.stateNode.implementation===R.implementation){l(N,b.sibling),C=n(b,R.children||[]),C.return=N,N=C;break e}else{l(N,b);break}else t(N,b);b=b.sibling}C=ns(R,N.mode,C),C.return=N,N=C}return c(N);case Q:return R=Il(R),we(N,b,R,C)}if(et(R))return J(N,b,R,C);if(De(R)){if(P=De(R),typeof P!="function")throw Error(r(150));return R=P.call(R),ee(N,b,R,C)}if(typeof R.then=="function")return we(N,b,Ni(R),C);if(R.$$typeof===Y)return we(N,b,pi(N,R),C);Ei(N,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,b!==null&&b.tag===6?(l(N,b.sibling),C=n(b,R),C.return=N,N=C):(l(N,b),C=as(R,N.mode,C),C.return=N,N=C),c(N)):l(N,b)}return function(N,b,R,C){try{hn=0;var P=we(N,b,R,C);return _a=null,P}catch(W){if(W===Ta||W===ji)throw W;var he=xt(29,W,null,N.mode);return he.lanes=C,he.return=N,he}finally{}}}var ta=Do(!0),Oo=Do(!1),jl=!1;function vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Nl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ve&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=xi(e),go(e,null,l),t}return hi(e,a,t,l),xi(e)}function vn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Er(e,l)}}function ys(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var ps=!1;function gn(){if(ps){var e=Ra;if(e!==null)throw e}}function yn(e,t,l,a){ps=!1;var n=e.updateQueue;jl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var g=d,T=g.next;g.next=null,c===null?i=T:c.next=T,c=g;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==c&&(d===null?M.firstBaseUpdate=T:d.next=T,M.lastBaseUpdate=g))}if(i!==null){var D=n.baseState;c=0,M=T=g=null,d=i;do{var _=d.lane&-536870913,z=_!==d.lane;if(z?(fe&_)===_:(a&_)===_){_!==0&&_===wa&&(ps=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,ee=d;_=t;var we=l;switch(ee.tag){case 1:if(J=ee.payload,typeof J=="function"){D=J.call(we,D,_);break e}D=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,_=typeof J=="function"?J.call(we,D,_):J,_==null)break e;D=j({},D,_);break e;case 2:jl=!0}}_=d.callback,_!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[_]:z.push(_))}else z={lane:_,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(T=M=z,g=D):M=M.next=z,c|=_;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;z=d,d=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);M===null&&(g=D),n.baseState=g,n.firstBaseUpdate=T,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),_l|=c,e.lanes=c,e.memoizedState=D}}function Uo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ho(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Uo(l[e],t)}var za=S(null),wi=S(0);function Bo(e,t){e=cl,k(wi,e),k(za,t),cl=e|t.baseLanes}function bs(){k(wi,cl),k(za,za.current)}function js(){cl=wi.current,U(za),U(wi)}var vt=S(null),Mt=null;function El(e){var t=e.alternate;k(Le,Le.current&1),k(vt,e),Mt===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(Mt=e)}function Ss(e){k(Le,Le.current),k(vt,e),Mt===null&&(Mt=e)}function Lo(e){e.tag===22?(k(Le,Le.current),k(vt,e),Mt===null&&(Mt=e)):wl()}function wl(){k(Le,Le.current),k(vt,vt.current)}function gt(e){U(vt),Mt===e&&(Mt=null),U(Le)}var Le=S(0);function Ri(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_c(l)||zc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var el=0,ie=null,Ne=null,Ge=null,Ti=!1,Ma=!1,la=!1,_i=0,pn=0,Aa=null,qh=0;function Oe(){throw Error(r(321))}function Ns(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function Es(e,t,l,a,n,i){return el=i,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Sf:qs,la=!1,i=l(a,n),la=!1,Ma&&(i=Yo(t,l,a,n)),qo(e),i}function qo(e){A.H=Sn;var t=Ne!==null&&Ne.next!==null;if(el=0,Ge=Ne=ie=null,Ti=!1,pn=0,Aa=null,t)throw Error(r(300));e===null||Xe||(e=e.dependencies,e!==null&&yi(e)&&(Xe=!0))}function Yo(e,t,l,a){ie=e;var n=0;do{if(Ma&&(Aa=null),pn=0,Ma=!1,25<=n)throw Error(r(301));if(n+=1,Ge=Ne=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}A.H=Nf,i=t(l,a)}while(Ma);return i}function Yh(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?bn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(ie.flags|=1024),t}function ws(){var e=_i!==0;return _i=0,e}function Rs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ts(e){if(Ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ti=!1}el=0,Ge=Ne=ie=null,Ma=!1,pn=_i=0,Aa=null}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?ie.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function qe(){if(Ne===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ge===null?ie.memoizedState:Ge.next;if(t!==null)Ge=t,Ne=e;else{if(e===null)throw ie.alternate===null?Error(r(467)):Error(r(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ge===null?ie.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function zi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bn(e){var t=pn;return pn+=1,Aa===null&&(Aa=[]),e=Mo(Aa,e,t),t=ie,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Sf:qs),e}function Mi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bn(e);if(e.$$typeof===Y)return We(e)}throw Error(r(438,String(e)))}function _s(e){var t=null,l=ie.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ie.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=zi(),ie.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ye;return t.index++,l}function tl(e,t){return typeof t=="function"?t(e):t}function Ai(e){var t=qe();return zs(t,Ne,e)}function zs(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=c=null,g=null,T=t,M=!1;do{var D=T.lane&-536870913;if(D!==T.lane?(fe&D)===D:(el&D)===D){var _=T.revertLane;if(_===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),D===wa&&(M=!0);else if((el&_)===_){T=T.next,_===wa&&(M=!0);continue}else D={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},g===null?(d=g=D,c=i):g=g.next=D,ie.lanes|=_,_l|=_;D=T.action,la&&l(i,D),i=T.hasEagerState?T.eagerState:l(i,D)}else _={lane:D,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},g===null?(d=g=_,c=i):g=g.next=_,ie.lanes|=D,_l|=D;T=T.next}while(T!==null&&T!==t);if(g===null?c=i:g.next=d,!ht(i,e.memoizedState)&&(Xe=!0,M&&(l=Ra,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=g,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ms(e){var t=qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);ht(i,t.memoizedState)||(Xe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Go(e,t,l){var a=ie,n=qe(),i=me;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ht((Ne||n).memoizedState,l);if(c&&(n.memoizedState=l,Xe=!0),n=n.queue,Ds(Zo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ge!==null&&Ge.memoizedState.tag&1){if(a.flags|=2048,Ca(9,{destroy:void 0},Qo.bind(null,a,n,l,t),null),Te===null)throw Error(r(349));i||(el&127)!==0||Xo(a,t,l)}return l}function Xo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ie.updateQueue,t===null?(t=zi(),ie.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Qo(e,t,l,a){t.value=l,t.getSnapshot=a,Vo(t)&&ko(e)}function Zo(e,t,l){return l(function(){Vo(t)&&ko(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function ko(e){var t=Kl(e,2);t!==null&&ot(t,e,2)}function As(e){var t=at();if(typeof e=="function"){var l=e;if(e=l(),la){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:e},t}function Ko(e,t,l,a){return e.baseState=l,zs(e,Ne,typeof a=="function"?a:tl)}function Gh(e,t,l,a,n){if(Oi(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};A.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Jo(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Jo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=A.T,c={};A.T=c;try{var d=l(n,a),g=A.S;g!==null&&g(c,d),$o(e,t,d)}catch(T){Cs(e,t,T)}finally{i!==null&&c.types!==null&&(i.types=c.types),A.T=i}}else try{i=l(n,a),$o(e,t,i)}catch(T){Cs(e,t,T)}}function $o(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Wo(e,t,a)},function(a){return Cs(e,t,a)}):Wo(e,t,l)}function Wo(e,t,l){t.status="fulfilled",t.value=l,Fo(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Jo(e,l)))}function Cs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Fo(t),t=t.next;while(t!==a)}e.action=null}function Fo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Po(e,t){return t}function Io(e,t){if(me){var l=Te.formState;if(l!==null){e:{var a=ie;if(me){if(ze){t:{for(var n=ze,i=zt;n.nodeType!==8;){if(!i){n=null;break t}if(n=At(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){ze=At(n.nextSibling),a=n.data==="F!";break e}}pl(a)}a=!1}a&&(t=l[0])}}return l=at(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:t},l.queue=a,l=pf.bind(null,ie,a),a.dispatch=l,a=As(!1),i=Ls.bind(null,ie,!1,a.queue),a=at(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Gh.bind(null,ie,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function ef(e){var t=qe();return tf(t,Ne,e)}function tf(e,t,l){if(t=zs(e,t,Po)[0],e=Ai(tl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=bn(t)}catch(c){throw c===Ta?ji:c}else a=t;t=qe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ie.flags|=2048,Ca(9,{destroy:void 0},Xh.bind(null,n,l),null)),[a,i,e]}function Xh(e,t){e.action=t}function lf(e){var t=qe(),l=Ne;if(l!==null)return tf(t,l,e);qe(),t=t.memoizedState,l=qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ca(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ie.updateQueue,t===null&&(t=zi(),ie.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function af(){return qe().memoizedState}function Ci(e,t,l,a){var n=at();ie.flags|=e,n.memoizedState=Ca(1|t,{destroy:void 0},l,a===void 0?null:a)}function Di(e,t,l,a){var n=qe();a=a===void 0?null:a;var i=n.memoizedState.inst;Ne!==null&&a!==null&&Ns(a,Ne.memoizedState.deps)?n.memoizedState=Ca(t,i,l,a):(ie.flags|=e,n.memoizedState=Ca(1|t,i,l,a))}function nf(e,t){Ci(8390656,8,e,t)}function Ds(e,t){Di(2048,8,e,t)}function Qh(e){ie.flags|=4;var t=ie.updateQueue;if(t===null)t=zi(),ie.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function uf(e){var t=qe().memoizedState;return Qh({ref:t,nextImpl:e}),function(){if((ve&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function sf(e,t){return Di(4,2,e,t)}function cf(e,t){return Di(4,4,e,t)}function rf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function of(e,t,l){l=l!=null?l.concat([e]):null,Di(4,4,rf.bind(null,t,e),l)}function Os(){}function ff(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ns(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function df(e,t){var l=qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ns(t,a[1]))return a[0];if(a=e(),la){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Us(e,t,l){return l===void 0||(el&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=md(),ie.lanes|=e,_l|=e,l)}function mf(e,t,l,a){return ht(l,t)?l:za.current!==null?(e=Us(e,l,a),ht(e,t)||(Xe=!0),e):(el&42)===0||(el&1073741824)!==0&&(fe&261930)===0?(Xe=!0,e.memoizedState=l):(e=md(),ie.lanes|=e,_l|=e,t)}function hf(e,t,l,a,n){var i=V.p;V.p=i!==0&&8>i?i:8;var c=A.T,d={};A.T=d,Ls(e,!1,t,l);try{var g=n(),T=A.S;if(T!==null&&T(d,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var M=Lh(g,a);jn(e,t,M,bt(e))}else jn(e,t,a,bt(e))}catch(D){jn(e,t,{then:function(){},status:"rejected",reason:D},bt())}finally{V.p=i,c!==null&&d.types!==null&&(c.types=d.types),A.T=c}}function Zh(){}function Hs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=xf(e).queue;hf(e,n,t,le,l===null?Zh:function(){return vf(e),l(a)})}function xf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:le},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function vf(e){var t=xf(e);t.next===null&&(t=e.alternate.memoizedState),jn(e,t.next.queue,{},bt())}function Bs(){return We(Ln)}function gf(){return qe().memoizedState}function yf(){return qe().memoizedState}function Vh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=Sl(l);var a=Nl(t,e,l);a!==null&&(ot(a,t,l),vn(a,t,l)),t={cache:ds()},e.payload=t;return}t=t.return}}function kh(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Oi(e)?bf(t,l):(l=ts(e,t,l,a),l!==null&&(ot(l,e,a),jf(l,t,a)))}function pf(e,t,l){var a=bt();jn(e,t,l,a)}function jn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Oi(e))bf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(n.hasEagerState=!0,n.eagerState=d,ht(d,c))return hi(e,t,n,0),Te===null&&mi(),!1}catch{}finally{}if(l=ts(e,t,n,a),l!==null)return ot(l,e,a),jf(l,t,a),!0}return!1}function Ls(e,t,l,a){if(a={lane:2,revertLane:vc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(t)throw Error(r(479))}else t=ts(e,l,a,2),t!==null&&ot(t,e,2)}function Oi(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function bf(e,t){Ma=Ti=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Er(e,l)}}var Sn={readContext:We,use:Mi,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useLayoutEffect:Oe,useInsertionEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useSyncExternalStore:Oe,useId:Oe,useHostTransitionStatus:Oe,useFormState:Oe,useActionState:Oe,useOptimistic:Oe,useMemoCache:Oe,useCacheRefresh:Oe};Sn.useEffectEvent=Oe;var Sf={readContext:We,use:Mi,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:nf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ci(4194308,4,rf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ci(4194308,4,e,t)},useInsertionEffect:function(e,t){Ci(4,2,e,t)},useMemo:function(e,t){var l=at();t=t===void 0?null:t;var a=e();if(la){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=at();if(l!==void 0){var n=l(t);if(la){hl(!0);try{l(t)}finally{hl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kh.bind(null,ie,e),[a.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:function(e){e=As(e);var t=e.queue,l=pf.bind(null,ie,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Os,useDeferredValue:function(e,t){var l=at();return Us(l,e,t)},useTransition:function(){var e=As(!1);return e=hf.bind(null,ie,e.queue,!0,!1),at().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ie,n=at();if(me){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Te===null)throw Error(r(349));(fe&127)!==0||Xo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,nf(Zo.bind(null,a,i,e),[e]),a.flags|=2048,Ca(9,{destroy:void 0},Qo.bind(null,a,i,l,t),null),l},useId:function(){var e=at(),t=Te.identifierPrefix;if(me){var l=Qt,a=Xt;l=(a&~(1<<32-mt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=_i++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=qh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bs,useFormState:Io,useActionState:Io,useOptimistic:function(e){var t=at();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ls.bind(null,ie,!0,l),l.dispatch=t,[e,t]},useMemoCache:_s,useCacheRefresh:function(){return at().memoizedState=Vh.bind(null,ie)},useEffectEvent:function(e){var t=at(),l={impl:e};return t.memoizedState=l,function(){if((ve&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},qs={readContext:We,use:Mi,useCallback:ff,useContext:We,useEffect:Ds,useImperativeHandle:of,useInsertionEffect:sf,useLayoutEffect:cf,useMemo:df,useReducer:Ai,useRef:af,useState:function(){return Ai(tl)},useDebugValue:Os,useDeferredValue:function(e,t){var l=qe();return mf(l,Ne.memoizedState,e,t)},useTransition:function(){var e=Ai(tl)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Go,useId:gf,useHostTransitionStatus:Bs,useFormState:ef,useActionState:ef,useOptimistic:function(e,t){var l=qe();return Ko(l,Ne,e,t)},useMemoCache:_s,useCacheRefresh:yf};qs.useEffectEvent=uf;var Nf={readContext:We,use:Mi,useCallback:ff,useContext:We,useEffect:Ds,useImperativeHandle:of,useInsertionEffect:sf,useLayoutEffect:cf,useMemo:df,useReducer:Ms,useRef:af,useState:function(){return Ms(tl)},useDebugValue:Os,useDeferredValue:function(e,t){var l=qe();return Ne===null?Us(l,e,t):mf(l,Ne.memoizedState,e,t)},useTransition:function(){var e=Ms(tl)[0],t=qe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:Go,useId:gf,useHostTransitionStatus:Bs,useFormState:lf,useActionState:lf,useOptimistic:function(e,t){var l=qe();return Ne!==null?Ko(l,Ne,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:_s,useCacheRefresh:yf};Nf.useEffectEvent=uf;function Ys(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:j({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Gs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ot(t,e,a),vn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Nl(e,n,a),t!==null&&(ot(t,e,a),vn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=Nl(e,a,l),t!==null&&(ot(t,e,l),vn(t,e,l))}};function Ef(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!cn(l,a)||!cn(n,i):!0}function wf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Gs.enqueueReplaceState(t,t.state,null)}function aa(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=j({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Rf(e){di(e)}function Tf(e){console.error(e)}function _f(e){di(e)}function Ui(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Xs(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ui(e,t)},l}function Mf(e){return e=Sl(e),e.tag=3,e}function Af(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){zf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){zf(t,l,a),typeof n!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Kh(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ea(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return Mt===null?Ki():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Si?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),mc(e,a,n)),!1;case 22:return l.flags|=65536,a===Si?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),mc(e,a,n)),!1}throw Error(r(435,l.tag))}return mc(e,a,n),Ki(),!1}if(me)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==ss&&(e=Error(r(422),{cause:a}),fn(Rt(e,l)))):(a!==ss&&(t=Error(r(423),{cause:a}),fn(Rt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Rt(a,l),n=Xs(e.stateNode,a,n),ys(e,n),Ue!==4&&(Ue=2)),!1;var i=Error(r(520),{cause:a});if(i=Rt(i,l),Mn===null?Mn=[i]:Mn.push(i),Ue!==4&&(Ue=2),t===null)return!0;a=Rt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Xs(l.stateNode,a,e),ys(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(zl===null||!zl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Mf(n),Af(n,e,l,a),ys(l,n),!1}l=l.return}while(l!==null);return!1}var Qs=Error(r(461)),Xe=!1;function Fe(e,t,l,a){t.child=e===null?Oo(t,null,l,a):ta(t,e.child,l,a)}function Cf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Fl(t),a=Es(e,t,l,c,i,n),d=ws(),e!==null&&!Xe?(Rs(e,t,n),ll(e,t,n)):(me&&d&&is(t),t.flags|=1,Fe(e,t,a,n),t.child)}function Df(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!ls(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Of(e,t,i,a,n)):(e=vi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Fs(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:cn,l(c,a)&&e.ref===t.ref)return ll(e,t,n)}return t.flags|=1,e=Wt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Of(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(cn(i,a)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=a=i,Fs(e,n))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,ll(e,t,n)}return Zs(e,t,l,a,n)}function Uf(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Hf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bi(t,i!==null?i.cachePool:null),i!==null?Bo(t,i):bs(),Lo(t);else return a=t.lanes=536870912,Hf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(bi(t,i.cachePool),Bo(t,i),wl(),t.memoizedState=null):(e!==null&&bi(t,null),bs(),wl());return Fe(e,t,n,l),t.child}function Nn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Hf(e,t,l,a,n){var i=hs();return i=i===null?null:{parent:Ye._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&bi(t,null),bs(),Lo(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Hi(e,t){return t=Li({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bf(e,t,l){return ta(t,e.child,null,l),e=Hi(t,t.pendingProps),e.flags|=2,gt(t),t.memoizedState=null,e}function Jh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=Hi(t,a),t.lanes=536870912,Nn(null,e);if(Ss(t),(e=ze)?(e=$d(e,zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},l=po(e),l.return=t,t.child=l,$e=t,ze=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Hi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Ss(t),n)if(t.flags&256)t.flags&=-257,t=Bf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Xe||Ea(e,t,l,!1),n=(l&e.childLanes)!==0,Xe||n){if(a=Te,a!==null&&(c=wr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Kl(e,c),ot(a,e,c),Qs;Ki(),t=Bf(e,t,l)}else e=i.treeContext,ze=At(c.nextSibling),$e=t,me=!0,yl=null,zt=!1,e!==null&&So(t,e),t=Hi(t,a),t.flags|=4096;return t}return e=Wt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Bi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Zs(e,t,l,a,n){return Fl(t),l=Es(e,t,l,a,void 0,n),a=ws(),e!==null&&!Xe?(Rs(e,t,n),ll(e,t,n)):(me&&a&&is(t),t.flags|=1,Fe(e,t,l,n),t.child)}function Lf(e,t,l,a,n,i){return Fl(t),t.updateQueue=null,l=Yo(t,a,l,n),qo(e),a=ws(),e!==null&&!Xe?(Rs(e,t,i),ll(e,t,i)):(me&&a&&is(t),t.flags|=1,Fe(e,t,l,i),t.child)}function qf(e,t,l,a,n){if(Fl(t),t.stateNode===null){var i=ba,c=l.contextType;typeof c=="object"&&c!==null&&(i=We(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Gs,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},vs(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?We(c):ba,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Ys(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Gs.enqueueReplaceState(i,i.state,null),yn(t,a,i,n),gn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,g=aa(l,d);i.props=g;var T=i.context,M=l.contextType;c=ba,typeof M=="object"&&M!==null&&(c=We(M));var D=l.getDerivedStateFromProps;M=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||T!==c)&&wf(t,i,a,c),jl=!1;var _=t.memoizedState;i.state=_,yn(t,a,i,n),gn(),T=t.memoizedState,d||_!==T||jl?(typeof D=="function"&&(Ys(t,l,D,a),T=t.memoizedState),(g=jl||Ef(t,l,g,a,_,T,c))?(M||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=T),i.props=a,i.state=T,i.context=c,a=g):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,gs(e,t),c=t.memoizedProps,M=aa(l,c),i.props=M,D=t.pendingProps,_=i.context,T=l.contextType,g=ba,typeof T=="object"&&T!==null&&(g=We(T)),d=l.getDerivedStateFromProps,(T=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==D||_!==g)&&wf(t,i,a,g),jl=!1,_=t.memoizedState,i.state=_,yn(t,a,i,n),gn();var z=t.memoizedState;c!==D||_!==z||jl||e!==null&&e.dependencies!==null&&yi(e.dependencies)?(typeof d=="function"&&(Ys(t,l,d,a),z=t.memoizedState),(M=jl||Ef(t,l,M,a,_,z,g)||e!==null&&e.dependencies!==null&&yi(e.dependencies))?(T||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,z,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,z,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=z),i.props=a,i.state=z,i.context=g,a=M):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Bi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=ta(t,e.child,null,n),t.child=ta(t,null,l,n)):Fe(e,t,l,n),t.memoizedState=i.state,e=t.child):e=ll(e,t,n),e}function Yf(e,t,l,a){return $l(),t.flags|=256,Fe(e,t,l,a),t.child}var Vs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ks(e){return{baseLanes:e,cachePool:_o()}}function Ks(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pt),e}function Gf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Le.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?El(t):wl(),(e=ze)?(e=$d(e,zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Xt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},l=po(e),l.return=t,t.child=l,$e=t,ze=null)):e=null,e===null)throw pl(t);return zc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(wl(),n=t.mode,d=Li({mode:"hidden",children:d},n),a=Jl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=ks(l),a.childLanes=Ks(e,c,l),t.memoizedState=Vs,Nn(null,a)):(El(t),Js(t,d))}var g=e.memoizedState;if(g!==null&&(d=g.dehydrated,d!==null)){if(i)t.flags&256?(El(t),t.flags&=-257,t=$s(e,t,l)):t.memoizedState!==null?(wl(),t.child=e.child,t.flags|=128,t=null):(wl(),d=a.fallback,n=t.mode,a=Li({mode:"visible",children:a.children},n),d=Jl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ta(t,e.child,null,l),a=t.child,a.memoizedState=ks(l),a.childLanes=Ks(e,c,l),t.memoizedState=Vs,t=Nn(null,a));else if(El(t),zc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var T=c.dgst;c=T,a=Error(r(419)),a.stack="",a.digest=c,fn({value:a,source:null,stack:null}),t=$s(e,t,l)}else if(Xe||Ea(e,t,l,!1),c=(l&e.childLanes)!==0,Xe||c){if(c=Te,c!==null&&(a=wr(c,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,Kl(e,a),ot(c,e,a),Qs;_c(d)||Ki(),t=$s(e,t,l)}else _c(d)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,ze=At(d.nextSibling),$e=t,me=!0,yl=null,zt=!1,e!==null&&So(t,e),t=Js(t,a.children),t.flags|=4096);return t}return n?(wl(),d=a.fallback,n=t.mode,g=e.child,T=g.sibling,a=Wt(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,T!==null?d=Wt(T,d):(d=Jl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Nn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=ks(l):(n=d.cachePool,n!==null?(g=Ye._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=_o(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Ks(e,c,l),t.memoizedState=Vs,Nn(e.child,a)):(El(t),l=e.child,e=l.sibling,l=Wt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function Js(e,t){return t=Li({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Li(e,t){return e=xt(22,e,null,t),e.lanes=0,e}function $s(e,t,l){return ta(t,e.child,null,l),e=Js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),os(e.return,t,l)}function Ws(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function Qf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Le.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,k(Le,c),Fe(e,t,a,l),a=me?on:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xf(e,l,t);else if(e.tag===19)Xf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Ri(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Ws(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ri(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Ws(t,!0,l,null,i,a);break;case"together":Ws(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function ll(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Wt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Wt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Fs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yi(e)))}function $h(e,t,l){switch(t.tag){case 3:lt(t,t.stateNode.containerInfo),bl(t,Ye,e.memoizedState.cache),$l();break;case 27:case 5:Ja(t);break;case 4:lt(t,t.stateNode.containerInfo);break;case 10:bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ss(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(El(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Gf(e,t,l):(El(t),e=ll(e,t,l),e!==null?e.sibling:null);El(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ea(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Qf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),k(Le,Le.current),a)break;return null;case 22:return t.lanes=0,Uf(e,t,l,t.pendingProps);case 24:bl(t,Ye,e.memoizedState.cache)}return ll(e,t,l)}function Zf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!Fs(e,l)&&(t.flags&128)===0)return Xe=!1,$h(e,t,l);Xe=(e.flags&131072)!==0}else Xe=!1,me&&(t.flags&1048576)!==0&&jo(t,on,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Il(t.elementType),t.type=e,typeof e=="function")ls(e)?(a=aa(e,a),t.tag=1,t=qf(null,t,e,a,l)):(t.tag=0,t=Zs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===L){t.tag=11,t=Cf(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=Df(null,t,e,a,l);break e}}throw t=Ut(e)||e,Error(r(306,t,""))}}return t;case 0:return Zs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=aa(a,t.pendingProps),qf(e,t,a,n,l);case 3:e:{if(lt(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,gs(e,t),yn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,bl(t,Ye,a),a!==i.cache&&fs(t,[Ye],l,!0),gn(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Yf(e,t,a,l);break e}else if(a!==n){n=Rt(Error(r(424)),t),fn(n),t=Yf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=At(e.firstChild),$e=t,me=!0,yl=null,zt=!0,l=Oo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($l(),a===n){t=ll(e,t,l);break e}Fe(e,t,a,l)}t=t.child}return t;case 26:return Bi(e,t),e===null?(l=t0(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=eu(ce.current).createElement(l),a[Je]=t,a[nt]=e,Pe(a,l,e),Ve(a),t.stateNode=a):t.memoizedState=t0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ja(t),e===null&&me&&(a=t.stateNode=Pd(t.type,t.pendingProps,ce.current),$e=t,zt=!0,n=ze,Dl(t.type)?(Mc=n,ze=At(a.firstChild)):ze=n),Fe(e,t,t.pendingProps.children,l),Bi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=ze)&&(a=wx(a,t.type,t.pendingProps,zt),a!==null?(t.stateNode=a,$e=t,ze=At(a.firstChild),zt=!1,n=!0):n=!1),n||pl(t)),Ja(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,wc(n,i)?a=null:c!==null&&wc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Es(e,t,Yh,null,null,l),Ln._currentValue=n),Bi(e,t),Fe(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=ze)&&(l=Rx(l,t.pendingProps,zt),l!==null?(t.stateNode=l,$e=t,ze=null,e=!0):e=!1),e||pl(t)),null;case 13:return Gf(e,t,l);case 4:return lt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ta(t,null,a,l):Fe(e,t,a,l),t.child;case 11:return Cf(e,t,t.type,t.pendingProps,l);case 7:return Fe(e,t,t.pendingProps,l),t.child;case 8:return Fe(e,t,t.pendingProps.children,l),t.child;case 12:return Fe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,bl(t,t.type,a.value),Fe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Fl(t),n=We(n),a=a(n),t.flags|=1,Fe(e,t,a,l),t.child;case 14:return Df(e,t,t.type,t.pendingProps,l);case 15:return Of(e,t,t.type,t.pendingProps,l);case 19:return Qf(e,t,l);case 31:return Jh(e,t,l);case 22:return Uf(e,t,l,t.pendingProps);case 24:return Fl(t),a=We(Ye),e===null?(n=hs(),n===null&&(n=Te,i=ds(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},vs(t),bl(t,Ye,n)):((e.lanes&l)!==0&&(gs(e,t),yn(t,null,null,l),gn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),bl(t,Ye,a)):(a=i.cache,bl(t,Ye,a),a!==n.cache&&fs(t,[Ye],l,!0))),Fe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function al(e){e.flags|=4}function Ps(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(gd())e.flags|=8192;else throw ea=Si,xs}else e.flags&=-16777217}function Vf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!u0(t))if(gd())e.flags|=8192;else throw ea=Si,xs}function qi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Sr():536870912,e.lanes|=t,Ha|=t)}function En(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Wh(e,t,l){var a=t.pendingProps;switch(us(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Ye),Be(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Na(t)?al(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cs())),Me(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(al(t),i!==null?(Me(t),Vf(t,i)):(Me(t),Ps(t,n,null,a,l))):i?i!==e.memoizedState?(al(t),Me(t),Vf(t,i)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&al(t),Me(t),Ps(t,n,e,a,l)),null;case 27:if(Wn(t),l=ce.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}e=$.current,Na(t)?No(t):(e=Pd(n,a,l),t.stateNode=e,al(t))}return Me(t),null;case 5:if(Wn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Me(t),null}if(i=$.current,Na(t))No(t);else{var c=eu(ce.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Je]=t,i[nt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(Pe(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&al(t)}}return Me(t),Ps(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&al(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ce.current,Na(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Gd(e.nodeValue,l)),e||pl(t,!0)}else e=eu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return Me(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Na(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Je]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else l=cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(gt(t),t):(gt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Na(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Je]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(gt(t),t):(gt(t),null)}return gt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),qi(t,t.updateQueue),Me(t),null);case 4:return Be(),e===null&&bc(t.stateNode.containerInfo),Me(t),null;case 10:return It(t.type),Me(t),null;case 19:if(U(Le),a=t.memoizedState,a===null)return Me(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)En(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ri(e),i!==null){for(t.flags|=128,En(a,!1),e=i.updateQueue,t.updateQueue=e,qi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)yo(l,e),l=l.sibling;return k(Le,Le.current&1|2),me&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ft()>Zi&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ri(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,qi(t,e),En(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!me)return Me(t),null}else 2*ft()-a.renderingStartTime>Zi&&l!==536870912&&(t.flags|=128,n=!0,En(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ft(),e.sibling=null,l=Le.current,k(Le,n?l&1|2:l&1),me&&Ft(t,a.treeForkCount),e):(Me(t),null);case 22:case 23:return gt(t),js(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),l=t.updateQueue,l!==null&&qi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Ye),Me(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Fh(e,t){switch(us(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ye),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wn(t),null;case 31:if(t.memoizedState!==null){if(gt(t),t.alternate===null)throw Error(r(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(gt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Le),null;case 4:return Be(),null;case 10:return It(t.type),null;case 22:case 23:return gt(t),js(),e!==null&&U(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ye),null;case 25:return null;default:return null}}function kf(e,t){switch(us(t),t.tag){case 3:It(Ye),Be();break;case 26:case 27:case 5:Wn(t);break;case 4:Be();break;case 31:t.memoizedState!==null&>(t);break;case 13:gt(t);break;case 19:U(Le);break;case 10:It(t.type);break;case 22:case 23:gt(t),js(),e!==null&&U(Pl);break;case 24:It(Ye)}}function wn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){be(t,t.return,d)}}function Rl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var g=l,T=d;try{T()}catch(M){be(n,g,M)}}}a=a.next}while(a!==i)}}catch(M){be(t,t.return,M)}}function Kf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Ho(t,l)}catch(a){be(e,e.return,a)}}}function Jf(e,t,l){l.props=aa(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){be(e,t,a)}}function Rn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){be(e,t,n)}}function Zt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){be(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){be(e,t,n)}else l.current=null}function $f(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){be(e,e.return,n)}}function Is(e,t,l){try{var a=e.stateNode;px(a,e.type,l,t),a[nt]=t}catch(n){be(e,e.return,n)}}function Wf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Dl(e.type)||e.tag===4}function ec(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function tc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Jt));else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(tc(e,t,l),e=e.sibling;e!==null;)tc(e,t,l),e=e.sibling}function Yi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Yi(e,t,l),e=e.sibling;e!==null;)Yi(e,t,l),e=e.sibling}function Ff(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Pe(t,a,l),t[Je]=e,t[nt]=l}catch(i){be(e,e.return,i)}}var nl=!1,Qe=!1,lc=!1,Pf=typeof WeakSet=="function"?WeakSet:Set,ke=null;function Ph(e,t){if(e=e.containerInfo,Nc=su,e=co(e),$u(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,g=-1,T=0,M=0,D=e,_=null;t:for(;;){for(var z;D!==l||n!==0&&D.nodeType!==3||(d=c+n),D!==i||a!==0&&D.nodeType!==3||(g=c+a),D.nodeType===3&&(c+=D.nodeValue.length),(z=D.firstChild)!==null;)_=D,D=z;for(;;){if(D===e)break t;if(_===l&&++T===n&&(d=c),_===i&&++M===a&&(g=c),(z=D.nextSibling)!==null)break;D=_,_=D.parentNode}D=z}l=d===-1||g===-1?null:{start:d,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ec={focusedElem:e,selectionRange:l},su=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var J=aa(l.type,n);e=a.getSnapshotBeforeUpdate(J,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ee){be(l,l.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Tc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Tc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}}function If(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:ul(e,l),a&4&&wn(5,l);break;case 1:if(ul(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){be(l,l.return,c)}else{var n=aa(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){be(l,l.return,c)}}a&64&&Kf(l),a&512&&Rn(l,l.return);break;case 3:if(ul(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Ho(e,t)}catch(c){be(l,l.return,c)}}break;case 27:t===null&&a&4&&Ff(l);case 26:case 5:ul(e,l),t===null&&a&4&&$f(l),a&512&&Rn(l,l.return);break;case 12:ul(e,l);break;case 31:ul(e,l),a&4&&ld(e,l);break;case 13:ul(e,l),a&4&&ad(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=sx.bind(null,l),Tx(e,l))));break;case 22:if(a=l.memoizedState!==null||nl,!a){t=t!==null&&t.memoizedState!==null||Qe,n=nl;var i=Qe;nl=a,(Qe=t)&&!i?sl(e,l,(l.subtreeFlags&8772)!==0):ul(e,l),nl=n,Qe=i}break;case 30:break;default:ul(e,l)}}function ed(e){var t=e.alternate;t!==null&&(e.alternate=null,ed(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ae=null,ut=!1;function il(e,t,l){for(l=l.child;l!==null;)td(e,t,l),l=l.sibling}function td(e,t,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount($a,l)}catch{}switch(l.tag){case 26:Qe||Zt(l,t),il(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qe||Zt(l,t);var a=Ae,n=ut;Dl(l.type)&&(Ae=l.stateNode,ut=!1),il(e,t,l),Un(l.stateNode),Ae=a,ut=n;break;case 5:Qe||Zt(l,t);case 6:if(a=Ae,n=ut,Ae=null,il(e,t,l),Ae=a,ut=n,Ae!==null)if(ut)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(i){be(l,t,i)}else try{Ae.removeChild(l.stateNode)}catch(i){be(l,t,i)}break;case 18:Ae!==null&&(ut?(e=Ae,Kd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):Kd(Ae,l.stateNode));break;case 4:a=Ae,n=ut,Ae=l.stateNode.containerInfo,ut=!0,il(e,t,l),Ae=a,ut=n;break;case 0:case 11:case 14:case 15:Rl(2,l,t),Qe||Rl(4,l,t),il(e,t,l);break;case 1:Qe||(Zt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Jf(l,t,a)),il(e,t,l);break;case 21:il(e,t,l);break;case 22:Qe=(a=Qe)||l.memoizedState!==null,il(e,t,l),Qe=a;break;default:il(e,t,l)}}function ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(l){be(t,t.return,l)}}}function ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Za(e)}catch(l){be(t,t.return,l)}}function Ih(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Pf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Pf),t;default:throw Error(r(435,e.tag))}}function Gi(e,t){var l=Ih(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=cx.bind(null,e,a);a.then(n,n)}})}function st(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Dl(d.type)){Ae=d.stateNode,ut=!1;break e}break;case 5:Ae=d.stateNode,ut=!1;break e;case 3:case 4:Ae=d.stateNode.containerInfo,ut=!0;break e}d=d.return}if(Ae===null)throw Error(r(160));td(i,c,n),Ae=null,ut=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)nd(t,e),t=t.sibling}var Bt=null;function nd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:st(t,e),ct(e),a&4&&(Rl(3,e,e.return),wn(3,e),Rl(5,e,e.return));break;case 1:st(t,e),ct(e),a&512&&(Qe||l===null||Zt(l,l.return)),a&64&&nl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Bt;if(st(t,e),ct(e),a&512&&(Qe||l===null||Zt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Pa]||i[Je]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),Pe(i,a,l),i[Je]=e,Ve(i),a=i;break e;case"link":var c=n0("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=n.createElement(a),Pe(i,a,l),n.head.appendChild(i);break;case"meta":if(c=n0("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=n.createElement(a),Pe(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[Je]=e,Ve(i),a=i}e.stateNode=a}else i0(n,e.type,e.stateNode);else e.stateNode=a0(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?i0(n,e.type,e.stateNode):a0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Is(e,e.memoizedProps,l.memoizedProps)}break;case 27:st(t,e),ct(e),a&512&&(Qe||l===null||Zt(l,l.return)),l!==null&&a&4&&Is(e,e.memoizedProps,l.memoizedProps);break;case 5:if(st(t,e),ct(e),a&512&&(Qe||l===null||Zt(l,l.return)),e.flags&32){n=e.stateNode;try{ma(n,"")}catch(J){be(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Is(e,n,l!==null?l.memoizedProps:n)),a&1024&&(lc=!0);break;case 6:if(st(t,e),ct(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){be(e,e.return,J)}}break;case 3:if(au=null,n=Bt,Bt=tu(t.containerInfo),st(t,e),Bt=n,ct(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(t.containerInfo)}catch(J){be(e,e.return,J)}lc&&(lc=!1,id(e));break;case 4:a=Bt,Bt=tu(e.stateNode.containerInfo),st(t,e),ct(e),Bt=a;break;case 12:st(t,e),ct(e);break;case 31:st(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 13:st(t,e),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qi=ft()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 22:n=e.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,T=nl,M=Qe;if(nl=T||n,Qe=M||g,st(t,e),Qe=M,nl=T,ct(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||g||nl||Qe||na(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){g=l=t;try{if(i=g.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=g.stateNode;var D=g.memoizedProps.style,_=D!=null&&D.hasOwnProperty("display")?D.display:null;d.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(J){be(g,g.return,J)}}}else if(t.tag===6){if(l===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(J){be(g,g.return,J)}}}else if(t.tag===18){if(l===null){g=t;try{var z=g.stateNode;n?Jd(z,!0):Jd(g.stateNode,!1)}catch(J){be(g,g.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Gi(e,l))));break;case 19:st(t,e),ct(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Gi(e,a)));break;case 30:break;case 21:break;default:st(t,e),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Wf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=ec(e);Yi(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(ma(c,""),l.flags&=-33);var d=ec(e);Yi(e,d,c);break;case 3:case 4:var g=l.stateNode.containerInfo,T=ec(e);tc(e,T,g);break;default:throw Error(r(161))}}catch(M){be(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function id(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;id(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ul(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)If(e,t.alternate,t),t=t.sibling}function na(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rl(4,t,t.return),na(t);break;case 1:Zt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Jf(t,t.return,l),na(t);break;case 27:Un(t.stateNode);case 26:case 5:Zt(t,t.return),na(t);break;case 22:t.memoizedState===null&&na(t);break;case 30:na(t);break;default:na(t)}e=e.sibling}}function sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:sl(n,i,l),wn(4,i);break;case 1:if(sl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(T){be(a,a.return,T)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)Uo(g[n],d)}catch(T){be(a,a.return,T)}}l&&c&64&&Kf(i),Rn(i,i.return);break;case 27:Ff(i);case 26:case 5:sl(n,i,l),l&&a===null&&c&4&&$f(i),Rn(i,i.return);break;case 12:sl(n,i,l);break;case 31:sl(n,i,l),l&&c&4&&ld(n,i);break;case 13:sl(n,i,l),l&&c&4&&ad(n,i);break;case 22:i.memoizedState===null&&sl(n,i,l),Rn(i,i.return);break;case 30:break;default:sl(n,i,l)}t=t.sibling}}function ac(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&dn(l))}function nc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e))}function Lt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ud(e,t,l,a),t=t.sibling}function ud(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Lt(e,t,l,a),n&2048&&wn(9,t);break;case 1:Lt(e,t,l,a);break;case 3:Lt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dn(e)));break;case 12:if(n&2048){Lt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){be(t,t.return,g)}}else Lt(e,t,l,a);break;case 31:Lt(e,t,l,a);break;case 13:Lt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Lt(e,t,l,a):Tn(e,t):i._visibility&2?Lt(e,t,l,a):(i._visibility|=2,Da(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ac(c,t);break;case 24:Lt(e,t,l,a),n&2048&&nc(t.alternate,t);break;default:Lt(e,t,l,a)}}function Da(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=l,g=a,T=c.flags;switch(c.tag){case 0:case 11:case 15:Da(i,c,d,g,n),wn(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?Da(i,c,d,g,n):Tn(i,c):(M._visibility|=2,Da(i,c,d,g,n)),n&&T&2048&&ac(c.alternate,c);break;case 24:Da(i,c,d,g,n),n&&T&2048&&nc(c.alternate,c);break;default:Da(i,c,d,g,n)}t=t.sibling}}function Tn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Tn(l,a),n&2048&&ac(a.alternate,a);break;case 24:Tn(l,a),n&2048&&nc(a.alternate,a);break;default:Tn(l,a)}t=t.sibling}}var _n=8192;function Oa(e,t,l){if(e.subtreeFlags&_n)for(e=e.child;e!==null;)sd(e,t,l),e=e.sibling}function sd(e,t,l){switch(e.tag){case 26:Oa(e,t,l),e.flags&_n&&e.memoizedState!==null&&qx(l,Bt,e.memoizedState,e.memoizedProps);break;case 5:Oa(e,t,l);break;case 3:case 4:var a=Bt;Bt=tu(e.stateNode.containerInfo),Oa(e,t,l),Bt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_n,_n=16777216,Oa(e,t,l),_n=a):Oa(e,t,l));break;default:Oa(e,t,l)}}function cd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function zn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,od(a,e)}cd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rd(e),e=e.sibling}function rd(e){switch(e.tag){case 0:case 11:case 15:zn(e),e.flags&2048&&Rl(9,e,e.return);break;case 3:zn(e);break;case 12:zn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xi(e)):zn(e);break;default:zn(e)}}function Xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,od(a,e)}cd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rl(8,t,t.return),Xi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xi(t));break;default:Xi(t)}e=e.sibling}}function od(e,t){for(;ke!==null;){var l=ke;switch(l.tag){case 0:case 11:case 15:Rl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,i=a.return;if(ed(a),a===l){ke=null;break e}if(n!==null){n.return=i,ke=n;break e}ke=i}}}var ex={getCacheForType:function(e){var t=We(Ye),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Ye).controller.signal}},tx=typeof WeakMap=="function"?WeakMap:Map,ve=0,Te=null,re=null,fe=0,pe=0,yt=null,Tl=!1,Ua=!1,ic=!1,cl=0,Ue=0,_l=0,ia=0,uc=0,pt=0,Ha=0,Mn=null,rt=null,sc=!1,Qi=0,fd=0,Zi=1/0,Vi=null,zl=null,Ze=0,Ml=null,Ba=null,rl=0,cc=0,rc=null,dd=null,An=0,oc=null;function bt(){return(ve&2)!==0&&fe!==0?fe&-fe:A.T!==null?vc():Rr()}function md(){if(pt===0)if((fe&536870912)===0||me){var e=In;In<<=1,(In&3932160)===0&&(In=262144),pt=e}else pt=536870912;return e=vt.current,e!==null&&(e.flags|=32),pt}function ot(e,t,l){(e===Te&&(pe===2||pe===9)||e.cancelPendingCommit!==null)&&(La(e,0),Al(e,fe,pt,!1)),Fa(e,l),((ve&2)===0||e!==Te)&&(e===Te&&((ve&2)===0&&(ia|=l),Ue===4&&Al(e,fe,pt,!1)),Vt(e))}function hd(e,t,l){if((ve&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Wa(e,t),n=a?nx(e,t):dc(e,t,!0),i=a;do{if(n===0){Ua&&!a&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!lx(l)){n=dc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Mn;var g=d.current.memoizedState.isDehydrated;if(g&&(La(d,c).flags|=256),c=dc(d,c,!1),c!==2){if(ic&&!g){d.errorRecoveryDisabledLanes|=i,ia|=i,n=4;break e}i=rt,rt=n,i!==null&&(rt===null?rt=i:rt.push.apply(rt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){La(e,0),Al(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Al(a,t,pt,!Tl);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Qi+300-ft(),10<n)){if(Al(a,t,pt,!Tl),ti(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=Vd(xd.bind(null,a,l,rt,Vi,sc,t,pt,ia,Ha,Tl,i,"Throttled",-0,0),n);break e}xd(a,l,rt,Vi,sc,t,pt,ia,Ha,Tl,i,null,-0,0)}}break}while(!0);Vt(e)}function xd(e,t,l,a,n,i,c,d,g,T,M,D,_,z){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},sd(t,i,D);var J=(i&62914560)===i?Qi-ft():(i&4194048)===i?fd-ft():0;if(J=Yx(D,J),J!==null){rl=i,e.cancelPendingCommit=J(Nd.bind(null,e,t,i,l,a,n,c,d,g,M,D,null,_,z)),Al(e,i,c,!T);return}}Nd(e,t,i,l,a,n,c,d,g)}function lx(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!ht(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t,l,a){t&=~uc,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-mt(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&Nr(e,l,t)}function ki(){return(ve&6)===0?(Cn(0),!1):!0}function fc(){if(re!==null){if(pe===0)var e=re.return;else e=re,Pt=Wl=null,Ts(e),_a=null,hn=0,e=re;for(;e!==null;)kf(e.alternate,e),e=e.return;re=null}}function La(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Sx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,fc(),Te=e,re=l=Wt(e.current,null),fe=t,pe=0,yt=null,Tl=!1,Ua=Wa(e,t),ic=!1,Ha=pt=uc=ia=_l=Ue=0,rt=Mn=null,sc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-mt(a),i=1<<n;t|=e[n],a&=~i}return cl=t,mi(),l}function vd(e,t){ie=null,A.H=Sn,t===Ta||t===ji?(t=Ao(),pe=3):t===xs?(t=Ao(),pe=4):pe=t===Qs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yt=t,re===null&&(Ue=1,Ui(e,Rt(t,e.current)))}function gd(){var e=vt.current;return e===null?!0:(fe&4194048)===fe?Mt===null:(fe&62914560)===fe||(fe&536870912)!==0?e===Mt:!1}function yd(){var e=A.H;return A.H=Sn,e===null?Sn:e}function pd(){var e=A.A;return A.A=ex,e}function Ki(){Ue=4,Tl||(fe&4194048)!==fe&&vt.current!==null||(Ua=!0),(_l&134217727)===0&&(ia&134217727)===0||Te===null||Al(Te,fe,pt,!1)}function dc(e,t,l){var a=ve;ve|=2;var n=yd(),i=pd();(Te!==e||fe!==t)&&(Vi=null,La(e,t)),t=!1;var c=Ue;e:do try{if(pe!==0&&re!==null){var d=re,g=yt;switch(pe){case 8:fc(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var T=pe;if(pe=0,yt=null,qa(e,d,g,T),l&&Ua){c=0;break e}break;default:T=pe,pe=0,yt=null,qa(e,d,g,T)}}ax(),c=Ue;break}catch(M){vd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Pt=Wl=null,ve=a,A.H=n,A.A=i,re===null&&(Te=null,fe=0,mi()),c}function ax(){for(;re!==null;)bd(re)}function nx(e,t){var l=ve;ve|=2;var a=yd(),n=pd();Te!==e||fe!==t?(Vi=null,Zi=ft()+500,La(e,t)):Ua=Wa(e,t);e:do try{if(pe!==0&&re!==null){t=re;var i=yt;t:switch(pe){case 1:pe=0,yt=null,qa(e,t,i,1);break;case 2:case 9:if(zo(i)){pe=0,yt=null,jd(t);break}t=function(){pe!==2&&pe!==9||Te!==e||(pe=7),Vt(e)},i.then(t,t);break e;case 3:pe=7;break e;case 4:pe=5;break e;case 7:zo(i)?(pe=0,yt=null,jd(t)):(pe=0,yt=null,qa(e,t,i,7));break;case 5:var c=null;switch(re.tag){case 26:c=re.memoizedState;case 5:case 27:var d=re;if(c?u0(c):d.stateNode.complete){pe=0,yt=null;var g=d.sibling;if(g!==null)re=g;else{var T=d.return;T!==null?(re=T,Ji(T)):re=null}break t}}pe=0,yt=null,qa(e,t,i,5);break;case 6:pe=0,yt=null,qa(e,t,i,6);break;case 8:fc(),Ue=6;break e;default:throw Error(r(462))}}ix();break}catch(M){vd(e,M)}while(!0);return Pt=Wl=null,A.H=a,A.A=n,ve=l,re!==null?0:(Te=null,fe=0,mi(),Ue)}function ix(){for(;re!==null&&!_m();)bd(re)}function bd(e){var t=Zf(e.alternate,e,cl);e.memoizedProps=e.pendingProps,t===null?Ji(e):re=t}function jd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Lf(l,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=Lf(l,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:Ts(t);default:kf(l,t),t=re=yo(t,cl),t=Zf(l,t,cl)}e.memoizedProps=e.pendingProps,t===null?Ji(e):re=t}function qa(e,t,l,a){Pt=Wl=null,Ts(t),_a=null,hn=0;var n=t.return;try{if(Kh(e,n,t,l,fe)){Ue=1,Ui(e,Rt(l,e.current)),re=null;return}}catch(i){if(n!==null)throw re=n,i;Ue=1,Ui(e,Rt(l,e.current)),re=null;return}t.flags&32768?(me||a===1?e=!0:Ua||(fe&536870912)!==0?e=!1:(Tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Sd(t,e)):Ji(t)}function Ji(e){var t=e;do{if((t.flags&32768)!==0){Sd(t,Tl);return}e=t.return;var l=Wh(t.alternate,t,cl);if(l!==null){re=l;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);Ue===0&&(Ue=5)}function Sd(e,t){do{var l=Fh(e.alternate,e);if(l!==null){l.flags&=32767,re=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=l}while(e!==null);Ue=6,re=null}function Nd(e,t,l,a,n,i,c,d,g){e.cancelPendingCommit=null;do $i();while(Ze!==0);if((ve&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=es,Lm(e,l,i,c,d,g),e===Te&&(re=Te=null,fe=0),Ba=t,Ml=e,rl=l,cc=i,rc=n,dd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,rx(Fn,function(){return _d(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=V.p,V.p=2,c=ve,ve|=4;try{Ph(e,t,l)}finally{ve=c,V.p=n,A.T=a}}Ze=1,Ed(),wd(),Rd()}}function Ed(){if(Ze===1){Ze=0;var e=Ml,t=Ba,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=V.p;V.p=2;var n=ve;ve|=4;try{nd(t,e);var i=Ec,c=co(e.containerInfo),d=i.focusedElem,g=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&so(d.ownerDocument.documentElement,d)){if(g!==null&&$u(d)){var T=g.start,M=g.end;if(M===void 0&&(M=T),"selectionStart"in d)d.selectionStart=T,d.selectionEnd=Math.min(M,d.value.length);else{var D=d.ownerDocument||document,_=D&&D.defaultView||window;if(_.getSelection){var z=_.getSelection(),J=d.textContent.length,ee=Math.min(g.start,J),we=g.end===void 0?ee:Math.min(g.end,J);!z.extend&&ee>we&&(c=we,we=ee,ee=c);var N=uo(d,ee),b=uo(d,we);if(N&&b&&(z.rangeCount!==1||z.anchorNode!==N.node||z.anchorOffset!==N.offset||z.focusNode!==b.node||z.focusOffset!==b.offset)){var R=D.createRange();R.setStart(N.node,N.offset),z.removeAllRanges(),ee>we?(z.addRange(R),z.extend(b.node,b.offset)):(R.setEnd(b.node,b.offset),z.addRange(R))}}}}for(D=[],z=d;z=z.parentNode;)z.nodeType===1&&D.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<D.length;d++){var C=D[d];C.element.scrollLeft=C.left,C.element.scrollTop=C.top}}su=!!Nc,Ec=Nc=null}finally{ve=n,V.p=a,A.T=l}}e.current=t,Ze=2}}function wd(){if(Ze===2){Ze=0;var e=Ml,t=Ba,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=V.p;V.p=2;var n=ve;ve|=4;try{If(e,t.alternate,t)}finally{ve=n,V.p=a,A.T=l}}Ze=3}}function Rd(){if(Ze===4||Ze===3){Ze=0,zm();var e=Ml,t=Ba,l=rl,a=dd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Ba=Ml=null,Td(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),Mu(l),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot($a,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=A.T,n=V.p,V.p=2,A.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];i(d.value,{componentStack:d.stack})}}finally{A.T=t,V.p=n}}(rl&3)!==0&&$i(),Vt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===oc?An++:(An=0,oc=e):An=0,Cn(0)}}function Td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dn(t)))}function $i(){return Ed(),wd(),Rd(),_d()}function _d(){if(Ze!==5)return!1;var e=Ml,t=cc;cc=0;var l=Mu(rl),a=A.T,n=V.p;try{V.p=32>l?32:l,A.T=null,l=rc,rc=null;var i=Ml,c=rl;if(Ze=0,Ba=Ml=null,rl=0,(ve&6)!==0)throw Error(r(331));var d=ve;if(ve|=4,rd(i.current),ud(i,i.current,c,l),ve=d,Cn(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot($a,i)}catch{}return!0}finally{V.p=n,A.T=a,Td(e,t)}}function zd(e,t,l){t=Rt(l,t),t=Xs(e.stateNode,t,2),e=Nl(e,t,2),e!==null&&(Fa(e,2),Vt(e))}function be(e,t,l){if(e.tag===3)zd(e,e,l);else for(;t!==null;){if(t.tag===3){zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zl===null||!zl.has(a))){e=Rt(l,e),l=Mf(2),a=Nl(t,l,2),a!==null&&(Af(l,a,t,e),Fa(a,2),Vt(a));break}}t=t.return}}function mc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new tx;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(ic=!0,n.add(l),e=ux.bind(null,e,t,l),t.then(e,e))}function ux(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Te===e&&(fe&l)===l&&(Ue===4||Ue===3&&(fe&62914560)===fe&&300>ft()-Qi?(ve&2)===0&&La(e,0):uc|=l,Ha===fe&&(Ha=0)),Vt(e)}function Md(e,t){t===0&&(t=Sr()),e=Kl(e,t),e!==null&&(Fa(e,t),Vt(e))}function sx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Md(e,l)}function cx(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Md(e,l)}function rx(e,t){return Ru(e,t)}var Wi=null,Ya=null,hc=!1,Fi=!1,xc=!1,Cl=0;function Vt(e){e!==Ya&&e.next===null&&(Ya===null?Wi=Ya=e:Ya=Ya.next=e),Fi=!0,hc||(hc=!0,fx())}function Cn(e,t){if(!xc&&Fi){xc=!0;do for(var l=!1,a=Wi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-mt(42|e)+1)-1,i&=n&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Od(a,i))}else i=fe,i=ti(a,a===Te?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Wa(a,i)||(l=!0,Od(a,i));a=a.next}while(l);xc=!1}}function ox(){Ad()}function Ad(){Fi=hc=!1;var e=0;Cl!==0&&jx()&&(e=Cl);for(var t=ft(),l=null,a=Wi;a!==null;){var n=a.next,i=Cd(a,t);i===0?(a.next=null,l===null?Wi=n:l.next=n,n===null&&(Ya=l)):(l=a,(e!==0||(i&3)!==0)&&(Fi=!0)),a=n}Ze!==0&&Ze!==5||Cn(e),Cl!==0&&(Cl=0)}function Cd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-mt(i),d=1<<c,g=n[c];g===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Bm(d,t)):g<=t&&(e.expiredLanes|=d),i&=~d}if(t=Te,l=fe,l=ti(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(pe===2||pe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Tu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Wa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Tu(a),Mu(l)){case 2:case 8:l=br;break;case 32:l=Fn;break;case 268435456:l=jr;break;default:l=Fn}return a=Dd.bind(null,e),l=Ru(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Tu(a),e.callbackPriority=2,e.callbackNode=null,2}function Dd(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if($i()&&e.callbackNode!==l)return null;var a=fe;return a=ti(e,e===Te?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(hd(e,a,t),Cd(e,ft()),e.callbackNode!=null&&e.callbackNode===l?Dd.bind(null,e):null)}function Od(e,t){if($i())return null;hd(e,t,!0)}function fx(){Nx(function(){(ve&6)!==0?Ru(pr,ox):Ad()})}function vc(){if(Cl===0){var e=wa;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),Cl=e}return Cl}function Ud(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ii(""+e)}function Hd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function dx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Ud((n[nt]||null).action),c=a.submitter;c&&(t=(t=c[nt]||null)?Ud(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new ri("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var g=c?Hd(n,c):new FormData(n);Hs(l,{pending:!0,data:g,method:n.method,action:i},null,g)}}else typeof i=="function"&&(d.preventDefault(),g=c?Hd(n,c):new FormData(n),Hs(l,{pending:!0,data:g,method:n.method,action:i},i,g))},currentTarget:n}]})}}for(var gc=0;gc<Iu.length;gc++){var yc=Iu[gc],mx=yc.toLowerCase(),hx=yc[0].toUpperCase()+yc.slice(1);Ht(mx,"on"+hx)}Ht(fo,"onAnimationEnd"),Ht(mo,"onAnimationIteration"),Ht(ho,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Mh,"onTransitionRun"),Ht(Ah,"onTransitionStart"),Ht(Ch,"onTransitionCancel"),Ht(xo,"onTransitionEnd"),fa("onMouseEnter",["mouseout","mouseover"]),fa("onMouseLeave",["mouseout","mouseover"]),fa("onPointerEnter",["pointerout","pointerover"]),fa("onPointerLeave",["pointerout","pointerover"]),Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dn="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(" "),xx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dn));function Bd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],g=d.instance,T=d.currentTarget;if(d=d.listener,g!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(M){di(M)}n.currentTarget=null,i=g}else for(c=0;c<a.length;c++){if(d=a[c],g=d.instance,T=d.currentTarget,d=d.listener,g!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=T;try{i(n)}catch(M){di(M)}n.currentTarget=null,i=g}}}}function oe(e,t){var l=t[Au];l===void 0&&(l=t[Au]=new Set);var a=e+"__bubble";l.has(a)||(Ld(t,e,2,!1),l.add(a))}function pc(e,t,l){var a=0;t&&(a|=4),Ld(l,e,a,t)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Pi]){e[Pi]=!0,zr.forEach(function(l){l!=="selectionchange"&&(xx.has(l)||pc(l,!1,e),pc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pi]||(t[Pi]=!0,pc("selectionchange",!1,t))}}function Ld(e,t,l,a){switch(m0(t)){case 2:var n=Qx;break;case 8:n=Zx;break;default:n=Uc}l=n.bind(null,t,l,e),n=void 0,!Yu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function jc(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var g=c.tag;if((g===3||g===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ca(d),c===null)return;if(g=c.tag,g===5||g===6||g===26||g===27){a=i=c;continue e}d=d.parentNode}}a=a.return}Gr(function(){var T=i,M=Lu(l),D=[];e:{var _=vo.get(e);if(_!==void 0){var z=ri,J=e;switch(e){case"keypress":if(si(l)===0)break e;case"keydown":case"keyup":z=ch;break;case"focusin":J="focus",z=Zu;break;case"focusout":J="blur",z=Zu;break;case"beforeblur":case"afterblur":z=Zu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=Zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Wm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=fh;break;case fo:case mo:case ho:z=Im;break;case xo:z=mh;break;case"scroll":case"scrollend":z=Jm;break;case"wheel":z=xh;break;case"copy":case"cut":case"paste":z=th;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=kr;break;case"toggle":case"beforetoggle":z=gh}var ee=(t&4)!==0,we=!ee&&(e==="scroll"||e==="scrollend"),N=ee?_!==null?_+"Capture":null:_;ee=[];for(var b=T,R;b!==null;){var C=b;if(R=C.stateNode,C=C.tag,C!==5&&C!==26&&C!==27||R===null||N===null||(C=en(b,N),C!=null&&ee.push(On(b,C,R))),we)break;b=b.return}0<ee.length&&(_=new z(_,J,null,l,M),D.push({event:_,listeners:ee}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",_&&l!==Bu&&(J=l.relatedTarget||l.fromElement)&&(ca(J)||J[sa]))break e;if((z||_)&&(_=M.window===M?M:(_=M.ownerDocument)?_.defaultView||_.parentWindow:window,z?(J=l.relatedTarget||l.toElement,z=T,J=J?ca(J):null,J!==null&&(we=h(J),ee=J.tag,J!==we||ee!==5&&ee!==27&&ee!==6)&&(J=null)):(z=null,J=T),z!==J)){if(ee=Zr,C="onMouseLeave",N="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ee=kr,C="onPointerLeave",N="onPointerEnter",b="pointer"),we=z==null?_:Ia(z),R=J==null?_:Ia(J),_=new ee(C,b+"leave",z,l,M),_.target=we,_.relatedTarget=R,C=null,ca(M)===T&&(ee=new ee(N,b+"enter",J,l,M),ee.target=R,ee.relatedTarget=we,C=ee),we=C,z&&J)t:{for(ee=vx,N=z,b=J,R=0,C=N;C;C=ee(C))R++;C=0;for(var P=b;P;P=ee(P))C++;for(;0<R-C;)N=ee(N),R--;for(;0<C-R;)b=ee(b),C--;for(;R--;){if(N===b||b!==null&&N===b.alternate){ee=N;break t}N=ee(N),b=ee(b)}ee=null}else ee=null;z!==null&&qd(D,_,z,ee,!1),J!==null&&we!==null&&qd(D,we,J,ee,!0)}}e:{if(_=T?Ia(T):window,z=_.nodeName&&_.nodeName.toLowerCase(),z==="select"||z==="input"&&_.type==="file")var he=eo;else if(Pr(_))if(to)he=Th;else{he=wh;var W=Eh}else z=_.nodeName,!z||z.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?T&&Hu(T.elementType)&&(he=eo):he=Rh;if(he&&(he=he(e,T))){Ir(D,he,l,M);break e}W&&W(e,_,T),e==="focusout"&&T&&_.type==="number"&&T.memoizedProps.value!=null&&Uu(_,"number",_.value)}switch(W=T?Ia(T):window,e){case"focusin":(Pr(W)||W.contentEditable==="true")&&(ga=W,Wu=T,rn=null);break;case"focusout":rn=Wu=ga=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,ro(D,l,M);break;case"selectionchange":if(zh)break;case"keydown":case"keyup":ro(D,l,M)}var se;if(ku)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else va?Wr(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(Kr&&l.locale!=="ko"&&(va||de!=="onCompositionStart"?de==="onCompositionEnd"&&va&&(se=Xr()):(vl=M,Gu="value"in vl?vl.value:vl.textContent,va=!0)),W=Ii(T,de),0<W.length&&(de=new Vr(de,e,null,l,M),D.push({event:de,listeners:W}),se?de.data=se:(se=Fr(l),se!==null&&(de.data=se)))),(se=ph?bh(e,l):jh(e,l))&&(de=Ii(T,"onBeforeInput"),0<de.length&&(W=new Vr("onBeforeInput","beforeinput",null,l,M),D.push({event:W,listeners:de}),W.data=se)),dx(D,e,T,l,M)}Bd(D,t)})}function On(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ii(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=en(e,l),n!=null&&a.unshift(On(e,n,i)),n=en(e,t),n!=null&&a.push(On(e,n,i))),e.tag===3)return a;e=e.return}return[]}function vx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qd(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var d=l,g=d.alternate,T=d.stateNode;if(d=d.tag,g!==null&&g===a)break;d!==5&&d!==26&&d!==27||T===null||(g=T,n?(T=en(l,i),T!=null&&c.unshift(On(l,T,g))):n||(T=en(l,i),T!=null&&c.push(On(l,T,g)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var gx=/\r\n?/g,yx=/\u0000|\uFFFD/g;function Yd(e){return(typeof e=="string"?e:""+e).replace(gx,`
|
|
49
|
+
`).replace(yx,"")}function Gd(e,t){return t=Yd(t),Yd(e)===t}function Ee(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ma(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ma(e,""+a);break;case"className":ai(e,"class",a);break;case"tabIndex":ai(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ai(e,l,a);break;case"style":qr(e,a,i);break;case"data":if(t!=="object"){ai(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ii(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Ee(e,t,"name",n.name,n,null),Ee(e,t,"formEncType",n.formEncType,n,null),Ee(e,t,"formMethod",n.formMethod,n,null),Ee(e,t,"formTarget",n.formTarget,n,null)):(Ee(e,t,"encType",n.encType,n,null),Ee(e,t,"method",n.method,n,null),Ee(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ii(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"onScroll":a!=null&&oe("scroll",e);break;case"onScrollEnd":a!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=ii(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":oe("beforetoggle",e),oe("toggle",e),li(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":li(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=km.get(l)||l,li(e,l,a))}}function Sc(e,t,l,a,n,i){switch(l){case"style":qr(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ma(e,a):(typeof a=="number"||typeof a=="bigint")&&ma(e,""+a);break;case"onScroll":a!=null&&oe("scroll",e);break;case"onScrollEnd":a!=null&&oe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[nt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):li(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ee(e,t,i,c,l,null)}}n&&Ee(e,t,"srcSet",l.srcSet,l,null),a&&Ee(e,t,"src",l.src,l,null);return;case"input":oe("invalid",e);var d=i=c=n=null,g=null,T=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":c=M;break;case"checked":g=M;break;case"defaultChecked":T=M;break;case"value":i=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Ee(e,t,a,M,l,null)}}Ur(e,i,d,g,T,c,n,!1);return;case"select":oe("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Ee(e,t,n,d,l,null)}t=i,l=c,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":oe("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Ee(e,t,c,d,l,null)}Br(e,a,n,i);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ee(e,t,g,a,l,null)}return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(a=0;a<Dn.length;a++)oe(Dn[a],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(T in l)if(l.hasOwnProperty(T)&&(a=l[T],a!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ee(e,t,T,a,l,null)}return;default:if(Hu(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&Sc(e,t,M,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Ee(e,t,d,a,l,null))}function px(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,d=null,g=null,T=null,M=null;for(z in l){var D=l[z];if(l.hasOwnProperty(z)&&D!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":g=D;default:a.hasOwnProperty(z)||Ee(e,t,z,null,a,D)}}for(var _ in a){var z=a[_];if(D=l[_],a.hasOwnProperty(_)&&(z!=null||D!=null))switch(_){case"type":i=z;break;case"name":n=z;break;case"checked":T=z;break;case"defaultChecked":M=z;break;case"value":c=z;break;case"defaultValue":d=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:z!==D&&Ee(e,t,_,z,a,D)}}Ou(e,c,d,g,T,M,i,n);return;case"select":z=c=d=_=null;for(i in l)if(g=l[i],l.hasOwnProperty(i)&&g!=null)switch(i){case"value":break;case"multiple":z=g;default:a.hasOwnProperty(i)||Ee(e,t,i,null,a,g)}for(n in a)if(i=a[n],g=l[n],a.hasOwnProperty(n)&&(i!=null||g!=null))switch(n){case"value":_=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==g&&Ee(e,t,n,i,a,g)}t=d,l=c,a=z,_!=null?da(e,!!l,_,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":z=_=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ee(e,t,d,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":_=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Ee(e,t,c,n,a,i)}Hr(e,_,z);return;case"option":for(var J in l)if(_=l[J],l.hasOwnProperty(J)&&_!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Ee(e,t,J,null,a,_)}for(g in a)if(_=a[g],z=l[g],a.hasOwnProperty(g)&&_!==z&&(_!=null||z!=null))switch(g){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Ee(e,t,g,_,a,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ee in l)_=l[ee],l.hasOwnProperty(ee)&&_!=null&&!a.hasOwnProperty(ee)&&Ee(e,t,ee,null,a,_);for(T in a)if(_=a[T],z=l[T],a.hasOwnProperty(T)&&_!==z&&(_!=null||z!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:Ee(e,t,T,_,a,z)}return;default:if(Hu(t)){for(var we in l)_=l[we],l.hasOwnProperty(we)&&_!==void 0&&!a.hasOwnProperty(we)&&Sc(e,t,we,void 0,a,_);for(M in a)_=a[M],z=l[M],!a.hasOwnProperty(M)||_===z||_===void 0&&z===void 0||Sc(e,t,M,_,a,z);return}}for(var N in l)_=l[N],l.hasOwnProperty(N)&&_!=null&&!a.hasOwnProperty(N)&&Ee(e,t,N,null,a,_);for(D in a)_=a[D],z=l[D],!a.hasOwnProperty(D)||_===z||_==null&&z==null||Ee(e,t,D,_,a,z)}function Xd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,c=n.initiatorType,d=n.duration;if(i&&d&&Xd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var g=l[a],T=g.startTime;if(T>d)break;var M=g.transferSize,D=g.initiatorType;M&&Xd(D)&&(g=g.responseEnd,c+=M*(g<d?1:(d-T)/(g-T)))}if(--a,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Nc=null,Ec=null;function eu(e){return e.nodeType===9?e:e.ownerDocument}function Qd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rc=null;function jx(){var e=window.event;return e&&e.type==="popstate"?e===Rc?!1:(Rc=e,!0):(Rc=null,!1)}var Vd=typeof setTimeout=="function"?setTimeout:void 0,Sx=typeof clearTimeout=="function"?clearTimeout:void 0,kd=typeof Promise=="function"?Promise:void 0,Nx=typeof queueMicrotask=="function"?queueMicrotask:typeof kd<"u"?function(e){return kd.resolve(null).then(e).catch(Ex)}:Vd;function Ex(e){setTimeout(function(){throw e})}function Dl(e){return e==="head"}function Kd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Za(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Un(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Un(l);for(var i=l.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[Pa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Un(e.ownerDocument.body);l=n}while(l);Za(t)}function Jd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Tc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Tc(l),Cu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function wx(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Pa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=At(e.nextSibling),e===null)break}return null}function Rx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=At(e.nextSibling),e===null))return null;return e}function $d(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=At(e.nextSibling),e===null))return null;return e}function _c(e){return e.data==="$?"||e.data==="$~"}function zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Tx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function At(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mc=null;function Wd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return At(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Pd(e,t,l){switch(t=eu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Un(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cu(e)}var Ct=new Map,Id=new Set;function tu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ol=V.d;V.d={f:_x,r:zx,D:Mx,C:Ax,L:Cx,m:Dx,X:Ux,S:Ox,M:Hx};function _x(){var e=ol.f(),t=ki();return e||t}function zx(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?vf(t):ol.r(e)}var Ga=typeof document>"u"?null:document;function e0(e,t,l){var a=Ga;if(a&&typeof t=="string"&&t){var n=Et(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Id.has(n)||(Id.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Pe(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Mx(e){ol.D(e),e0("dns-prefetch",e,null)}function Ax(e,t){ol.C(e,t),e0("preconnect",e,t)}function Cx(e,t,l){ol.L(e,t,l);var a=Ga;if(a&&e&&t){var n='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Et(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Et(l.imageSizes)+'"]')):n+='[href="'+Et(e)+'"]';var i=n;switch(t){case"style":i=Xa(e);break;case"script":i=Qa(e)}Ct.has(i)||(e=j({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ct.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Hn(i))||t==="script"&&a.querySelector(Bn(i))||(t=a.createElement("link"),Pe(t,"link",e),Ve(t),a.head.appendChild(t)))}}function Dx(e,t){ol.m(e,t);var l=Ga;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Qa(e)}if(!Ct.has(i)&&(e=j({rel:"modulepreload",href:e},t),Ct.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Bn(i)))return}a=l.createElement("link"),Pe(a,"link",e),Ve(a),l.head.appendChild(a)}}}function Ox(e,t,l){ol.S(e,t,l);var a=Ga;if(a&&e){var n=oa(a).hoistableStyles,i=Xa(e);t=t||"default";var c=n.get(i);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Hn(i)))d.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ct.get(i))&&Ac(e,l);var g=c=a.createElement("link");Ve(g),Pe(g,"link",e),g._p=new Promise(function(T,M){g.onload=T,g.onerror=M}),g.addEventListener("load",function(){d.loading|=1}),g.addEventListener("error",function(){d.loading|=2}),d.loading|=4,lu(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(i,c)}}}function Ux(e,t){ol.X(e,t);var l=Ga;if(l&&e){var a=oa(l).hoistableScripts,n=Qa(e),i=a.get(n);i||(i=l.querySelector(Bn(n)),i||(e=j({src:e,async:!0},t),(t=Ct.get(n))&&Cc(e,t),i=l.createElement("script"),Ve(i),Pe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Hx(e,t){ol.M(e,t);var l=Ga;if(l&&e){var a=oa(l).hoistableScripts,n=Qa(e),i=a.get(n);i||(i=l.querySelector(Bn(n)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Ct.get(n))&&Cc(e,t),i=l.createElement("script"),Ve(i),Pe(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function t0(e,t,l,a){var n=(n=ce.current)?tu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Xa(l.href),l=oa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Xa(l.href);var i=oa(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(Hn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Ct.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ct.set(e,l),i||Bx(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qa(l),l=oa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Xa(e){return'href="'+Et(e)+'"'}function Hn(e){return'link[rel="stylesheet"]['+e+"]"}function l0(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Bx(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Pe(t,"link",l),Ve(t),e.head.appendChild(t))}function Qa(e){return'[src="'+Et(e)+'"]'}function Bn(e){return"script[async]"+e}function a0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(l.href)+'"]');if(a)return t.instance=a,Ve(a),a;var n=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ve(a),Pe(a,"style",n),lu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Xa(l.href);var i=e.querySelector(Hn(n));if(i)return t.state.loading|=4,t.instance=i,Ve(i),i;a=l0(l),(n=Ct.get(n))&&Ac(a,n),i=(e.ownerDocument||e).createElement("link"),Ve(i);var c=i;return c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),Pe(i,"link",a),t.state.loading|=4,lu(i,l.precedence,e),t.instance=i;case"script":return i=Qa(l.src),(n=e.querySelector(Bn(i)))?(t.instance=n,Ve(n),n):(a=l,(n=Ct.get(i))&&(a=j({},l),Cc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ve(n),Pe(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,lu(a,l.precedence,e));return t.instance}function lu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var au=null;function n0(e,t,l){if(au===null){var a=new Map,n=au=new Map;n.set(l,a)}else n=au,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Pa]||i[Je]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(i):a.set(c,[i])}}return a}function i0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Lx(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function u0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function qx(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Xa(a.href),i=t.querySelector(Hn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=nu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ve(i);return}i=t.ownerDocument||t,a=l0(a),(n=Ct.get(n))&&Ac(a,n),i=i.createElement("link"),Ve(i);var c=i;c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),Pe(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=nu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Dc=0;function Yx(e,t){return e.stylesheets&&e.count===0&&uu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Dc===0&&(Dc=62500*bx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Dc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var iu=null;function uu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,iu=new Map,t.forEach(Gx,e),iu=null,nu.call(e))}function Gx(e,t){if(!(t.state.loading&4)){var l=iu.get(e);if(l)var a=l.get(null);else{l=new Map,iu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=nu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Ln={$$typeof:Y,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Xx(e,t,l,a,n,i,c,d,g){this.tag=1,this.containerInfo=e,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=_u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_u(0),this.hiddenUpdates=_u(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function s0(e,t,l,a,n,i,c,d,g,T,M,D){return e=new Xx(e,t,l,c,g,T,M,D,d),t=1,i===!0&&(t|=24),i=xt(3,null,null,t),e.current=i,i.stateNode=e,t=ds(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},vs(i),e}function c0(e){return e?(e=ba,e):ba}function r0(e,t,l,a,n,i){n=c0(n),a.context===null?a.context=n:a.pendingContext=n,a=Sl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Nl(e,a,t),l!==null&&(ot(l,e,t),vn(l,e,t))}function o0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Oc(e,t){o0(e,t),(e=e.alternate)&&o0(e,t)}function f0(e){if(e.tag===13||e.tag===31){var t=Kl(e,67108864);t!==null&&ot(t,e,67108864),Oc(e,67108864)}}function d0(e){if(e.tag===13||e.tag===31){var t=bt();t=zu(t);var l=Kl(e,t);l!==null&&ot(l,e,t),Oc(e,t)}}var su=!0;function Qx(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=2,Uc(e,t,l,a)}finally{V.p=i,A.T=n}}function Zx(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=8,Uc(e,t,l,a)}finally{V.p=i,A.T=n}}function Uc(e,t,l,a){if(su){var n=Hc(a);if(n===null)jc(e,t,a,cu,l),h0(e,a);else if(kx(n,e,t,l,a))a.stopPropagation();else if(h0(e,a),t&4&&-1<Vx.indexOf(e)){for(;n!==null;){var i=ra(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Xl(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var g=1<<31-mt(c);d.entanglements[1]|=g,c&=~g}Vt(i),(ve&6)===0&&(Zi=ft()+500,Cn(0))}}break;case 31:case 13:d=Kl(i,2),d!==null&&ot(d,i,2),ki(),Oc(i,2)}if(i=Hc(a),i===null&&jc(e,t,a,cu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else jc(e,t,a,null,l)}}function Hc(e){return e=Lu(e),Bc(e)}var cu=null;function Bc(e){if(cu=null,e=ca(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=v(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cu=e,null}function m0(e){switch(e){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(Mm()){case pr:return 2;case br:return 8;case Fn:case Am:return 32;case jr:return 268435456;default:return 32}default:return 32}}var Lc=!1,Ol=null,Ul=null,Hl=null,qn=new Map,Yn=new Map,Bl=[],Vx="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 h0(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function Gn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&f0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function kx(e,t,l,a,n){switch(t){case"focusin":return Ol=Gn(Ol,e,t,l,a,n),!0;case"dragenter":return Ul=Gn(Ul,e,t,l,a,n),!0;case"mouseover":return Hl=Gn(Hl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return qn.set(i,Gn(qn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Yn.set(i,Gn(Yn.get(i)||null,e,t,l,a,n)),!0}return!1}function x0(e){var t=ca(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=v(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){d0(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){d0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Hc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Bu=a,l.target.dispatchEvent(a),Bu=null}else return t=ra(l),t!==null&&f0(t),e.blockedOn=l,!1;t.shift()}return!0}function v0(e,t,l){ru(e)&&l.delete(t)}function Kx(){Lc=!1,Ol!==null&&ru(Ol)&&(Ol=null),Ul!==null&&ru(Ul)&&(Ul=null),Hl!==null&&ru(Hl)&&(Hl=null),qn.forEach(v0),Yn.forEach(v0)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Lc||(Lc=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Kx)))}var fu=null;function g0(e){fu!==e&&(fu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){fu===e&&(fu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Bc(a||l)===null)continue;break}var i=ra(l);i!==null&&(e.splice(t,3),t-=3,Hs(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(e){function t(g){return ou(g,e)}Ol!==null&&ou(Ol,e),Ul!==null&&ou(Ul,e),Hl!==null&&ou(Hl,e),qn.forEach(t),Yn.forEach(t);for(var l=0;l<Bl.length;l++){var a=Bl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Bl.length&&(l=Bl[0],l.blockedOn===null);)x0(l),l.blockedOn===null&&Bl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[nt]||null;if(typeof i=="function")c||g0(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[nt]||null)d=c.formAction;else if(Bc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),g0(l)}}}function y0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function qc(e){this._internalRoot=e}du.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=bt();r0(l,a,e,t,null,null)},du.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;r0(e.current,2,null,e,null,null),ki(),t[sa]=null}};function du(e){this._internalRoot=e}du.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Bl.length&&t!==0&&t<Bl[l].priority;l++);Bl.splice(l,0,e),l===0&&x0(e)}};var p0=o.version;if(p0!=="19.2.4")throw Error(r(527,p0,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=x(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Jx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mu.isDisabled&&mu.supportsFiber)try{$a=mu.inject(Jx),dt=mu}catch{}}return Qn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=Rf,i=Tf,c=_f;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=s0(e,1,!1,null,null,l,a,null,n,i,c,y0),e[sa]=t.current,bc(e),new qc(t)},Qn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",i=Rf,c=Tf,d=_f,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),t=s0(e,1,!0,t,l??null,a,n,g,i,c,d,y0),t.context=c0(null),l=t.current,a=bt(),a=zu(a),n=Sl(a),n.callback=null,Nl(l,n,a),l=a,t.current.lanes=l,Fa(t,l),Vt(t),e[sa]=t.current,bc(e),new du(t)},Qn.version="19.2.4",Qn}var z0;function av(){if(z0)return Xc.exports;z0=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(o){console.error(o)}}return s(),Xc.exports=lv(),Xc.exports}var nv=av();const iv=ar(nv);/**
|
|
50
|
+
* react-router v7.13.0
|
|
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 M0="popstate";function uv(s={}){function o(m,h){let{pathname:v="/",search:p="",hash:y=""}=ua(m.location.hash.substring(1));return!v.startsWith("/")&&!v.startsWith(".")&&(v="/"+v),Ic("",{pathname:v,search:p,hash:y},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(m,h){let v=m.document.querySelector("base"),p="";if(v&&v.getAttribute("href")){let y=m.location.href,x=y.indexOf("#");p=x===-1?y:y.slice(0,x)}return p+"#"+(typeof h=="string"?h:Vn(h))}function r(m,h){Ot(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return cv(o,f,r,s)}function Ce(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function Ot(s,o){if(!s){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function sv(){return Math.random().toString(36).substring(2,10)}function A0(s,o){return{usr:s.state,key:s.key,idx:o}}function Ic(s,o,f=null,r){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof o=="string"?ua(o):o,state:f,key:o&&o.key||r||sv()}}function Vn({pathname:s="/",search:o="",hash:f=""}){return o&&o!=="?"&&(s+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(s+=f.charAt(0)==="#"?f:"#"+f),s}function ua(s){let o={};if(s){let f=s.indexOf("#");f>=0&&(o.hash=s.substring(f),s=s.substring(0,f));let r=s.indexOf("?");r>=0&&(o.search=s.substring(r),s=s.substring(0,r)),s&&(o.pathname=s)}return o}function cv(s,o,f,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,v=m.history,p="POP",y=null,x=E();x==null&&(x=0,v.replaceState({...v.state,idx:x},""));function E(){return(v.state||{idx:null}).idx}function j(){p="POP";let q=E(),G=q==null?null:q-x;x=q,y&&y({action:p,location:Z.location,delta:G})}function H(q,G){p="PUSH";let X=Ic(Z.location,q,G);f&&f(X,q),x=E()+1;let Y=A0(X,x),L=Z.createHref(X);try{v.pushState(Y,"",L)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;m.location.assign(L)}h&&y&&y({action:p,location:Z.location,delta:1})}function O(q,G){p="REPLACE";let X=Ic(Z.location,q,G);f&&f(X,q),x=E();let Y=A0(X,x),L=Z.createHref(X);v.replaceState(Y,"",L),h&&y&&y({action:p,location:Z.location,delta:0})}function K(q){return rv(q)}let Z={get action(){return p},get location(){return s(m,v)},listen(q){if(y)throw new Error("A history only accepts one active listener");return m.addEventListener(M0,j),y=q,()=>{m.removeEventListener(M0,j),y=null}},createHref(q){return o(m,q)},createURL:K,encodeLocation(q){let G=K(q);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:H,replace:O,go(q){return v.go(q)}};return Z}function rv(s,o=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Ce(f,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Vn(s);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function K0(s,o,f="/"){return ov(s,o,f,!1)}function ov(s,o,f,r){let m=typeof o=="string"?ua(o):o,h=ml(m.pathname||"/",f);if(h==null)return null;let v=J0(s);fv(v);let p=null;for(let y=0;p==null&&y<v.length;++y){let x=Sv(h);p=bv(v[y],x,r)}return p}function J0(s,o=[],f=[],r="",m=!1){let h=(v,p,y=m,x)=>{let E={relativePath:x===void 0?v.path||"":x,caseSensitive:v.caseSensitive===!0,childrenIndex:p,route:v};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(r)&&y)return;Ce(E.relativePath.startsWith(r),`Absolute route path "${E.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(r.length)}let j=dl([r,E.relativePath]),H=f.concat(E);v.children&&v.children.length>0&&(Ce(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),J0(v.children,o,H,j,y)),!(v.path==null&&!v.index)&&o.push({path:j,score:yv(j,v.index),routesMeta:H})};return s.forEach((v,p)=>{var y;if(v.path===""||!((y=v.path)!=null&&y.includes("?")))h(v,p);else for(let x of $0(v.path))h(v,p,!0,x)}),o}function $0(s){let o=s.split("/");if(o.length===0)return[];let[f,...r]=o,m=f.endsWith("?"),h=f.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let v=$0(r.join("/")),p=[];return p.push(...v.map(y=>y===""?h:[h,y].join("/"))),m&&p.push(...v),p.map(y=>s.startsWith("/")&&y===""?"/":y)}function fv(s){s.sort((o,f)=>o.score!==f.score?f.score-o.score:pv(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var dv=/^:[\w-]+$/,mv=3,hv=2,xv=1,vv=10,gv=-2,C0=s=>s==="*";function yv(s,o){let f=s.split("/"),r=f.length;return f.some(C0)&&(r+=gv),o&&(r+=hv),f.filter(m=>!C0(m)).reduce((m,h)=>m+(dv.test(h)?mv:h===""?xv:vv),r)}function pv(s,o){return s.length===o.length&&s.slice(0,-1).every((r,m)=>r===o[m])?s[s.length-1]-o[o.length-1]:0}function bv(s,o,f=!1){let{routesMeta:r}=s,m={},h="/",v=[];for(let p=0;p<r.length;++p){let y=r[p],x=p===r.length-1,E=h==="/"?o:o.slice(h.length)||"/",j=gu({path:y.relativePath,caseSensitive:y.caseSensitive,end:x},E),H=y.route;if(!j&&x&&f&&!r[r.length-1].route.index&&(j=gu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},E)),!j)return null;Object.assign(m,j.params),v.push({params:m,pathname:dl([h,j.pathname]),pathnameBase:Rv(dl([h,j.pathnameBase])),route:H}),j.pathnameBase!=="/"&&(h=dl([h,j.pathnameBase]))}return v}function gu(s,o){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[f,r]=jv(s.path,s.caseSensitive,s.end),m=o.match(f);if(!m)return null;let h=m[0],v=h.replace(/(.)\/+$/,"$1"),p=m.slice(1);return{params:r.reduce((x,{paramName:E,isOptional:j},H)=>{if(E==="*"){let K=p[H]||"";v=h.slice(0,h.length-K.length).replace(/(.)\/+$/,"$1")}const O=p[H];return j&&!O?x[E]=void 0:x[E]=(O||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:v,pattern:s}}function jv(s,o=!1,f=!0){Ot(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],m="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,p,y)=>(r.push({paramName:p,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),m+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":s!==""&&s!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,o?void 0:"i"),r]}function Sv(s){try{return s.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Ot(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),s}}function ml(s,o){if(o==="/")return s;if(!s.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,r=s.charAt(f);return r&&r!=="/"?null:s.slice(f)||"/"}var Nv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ev(s,o="/"){let{pathname:f,search:r="",hash:m=""}=typeof s=="string"?ua(s):s,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=D0(f.substring(1),"/"):h=D0(f,o)):h=o,{pathname:h,search:Tv(r),hash:_v(m)}}function D0(s,o){let f=o.replace(/\/+$/,"").split("/");return s.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function kc(s,o,f,r){return`Cannot include a '${s}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wv(s){return s.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function ir(s){let o=wv(s);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function ur(s,o,f,r=!1){let m;typeof s=="string"?m=ua(s):(m={...s},Ce(!m.pathname||!m.pathname.includes("?"),kc("?","pathname","search",m)),Ce(!m.pathname||!m.pathname.includes("#"),kc("#","pathname","hash",m)),Ce(!m.search||!m.search.includes("#"),kc("#","search","hash",m)));let h=s===""||m.pathname==="",v=h?"/":m.pathname,p;if(v==null)p=f;else{let j=o.length-1;if(!r&&v.startsWith("..")){let H=v.split("/");for(;H[0]==="..";)H.shift(),j-=1;m.pathname=H.join("/")}p=j>=0?o[j]:"/"}let y=Ev(m,p),x=v&&v!=="/"&&v.endsWith("/"),E=(h||v===".")&&f.endsWith("/");return!y.pathname.endsWith("/")&&(x||E)&&(y.pathname+="/"),y}var dl=s=>s.join("/").replace(/\/\/+/g,"/"),Rv=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),Tv=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,_v=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,zv=class{constructor(s,o,f,r=!1){this.status=s,this.statusText=o||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Mv(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Av(s){return s.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function F0(s,o){let f=s;if(typeof f!="string"||!Nv.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(W0)try{let h=new URL(window.location.href),v=f.startsWith("//")?new URL(h.protocol+f):new URL(f),p=ml(v.pathname,o);v.origin===h.origin&&p!=null?f=p+v.search+v.hash:m=!0}catch{Ot(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var P0=["POST","PUT","PATCH","DELETE"];new Set(P0);var Cv=["GET",...P0];new Set(Cv);var ka=w.createContext(null);ka.displayName="DataRouter";var bu=w.createContext(null);bu.displayName="DataRouterState";var Dv=w.createContext(!1),I0=w.createContext({isTransitioning:!1});I0.displayName="ViewTransition";var Ov=w.createContext(new Map);Ov.displayName="Fetchers";var Uv=w.createContext(null);Uv.displayName="Await";var jt=w.createContext(null);jt.displayName="Navigation";var kn=w.createContext(null);kn.displayName="Location";var kt=w.createContext({outlet:null,matches:[],isDataRoute:!1});kt.displayName="Route";var sr=w.createContext(null);sr.displayName="RouteError";var em="REACT_ROUTER_ERROR",Hv="REDIRECT",Bv="ROUTE_ERROR_RESPONSE";function Lv(s){if(s.startsWith(`${em}:${Hv}:{`))try{let o=JSON.parse(s.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function qv(s){if(s.startsWith(`${em}:${Bv}:{`))try{let o=JSON.parse(s.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new zv(o.status,o.statusText,o.data)}catch{}}function Yv(s,{relative:o}={}){Ce(Ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=w.useContext(jt),{hash:m,pathname:h,search:v}=Kn(s,{relative:o}),p=h;return f!=="/"&&(p=h==="/"?f:dl([f,h])),r.createHref({pathname:p,search:v,hash:m})}function Ka(){return w.useContext(kn)!=null}function Yl(){return Ce(Ka(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(kn).location}var tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(s){w.useContext(jt).static||w.useLayoutEffect(s)}function cr(){let{isDataRoute:s}=w.useContext(kt);return s?Iv():Gv()}function Gv(){Ce(Ka(),"useNavigate() may be used only in the context of a <Router> component.");let s=w.useContext(ka),{basename:o,navigator:f}=w.useContext(jt),{matches:r}=w.useContext(kt),{pathname:m}=Yl(),h=JSON.stringify(ir(r)),v=w.useRef(!1);return lm(()=>{v.current=!0}),w.useCallback((y,x={})=>{if(Ot(v.current,tm),!v.current)return;if(typeof y=="number"){f.go(y);return}let E=ur(y,JSON.parse(h),m,x.relative==="path");s==null&&o!=="/"&&(E.pathname=E.pathname==="/"?o:dl([o,E.pathname])),(x.replace?f.replace:f.push)(E,x.state,x)},[o,f,h,m,s])}w.createContext(null);function Kn(s,{relative:o}={}){let{matches:f}=w.useContext(kt),{pathname:r}=Yl(),m=JSON.stringify(ir(f));return w.useMemo(()=>ur(s,JSON.parse(m),r,o==="path"),[s,m,r,o])}function Xv(s,o){return am(s,o)}function am(s,o,f,r,m){var X;Ce(Ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=w.useContext(jt),{matches:v}=w.useContext(kt),p=v[v.length-1],y=p?p.params:{},x=p?p.pathname:"/",E=p?p.pathnameBase:"/",j=p&&p.route;{let Y=j&&j.path||"";im(x,!j||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${Y}">) 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="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let H=Yl(),O;if(o){let Y=typeof o=="string"?ua(o):o;Ce(E==="/"||((X=Y.pathname)==null?void 0:X.startsWith(E)),`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 "${E}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),O=Y}else O=H;let K=O.pathname||"/",Z=K;if(E!=="/"){let Y=E.replace(/^\//,"").split("/");Z="/"+K.replace(/^\//,"").split("/").slice(Y.length).join("/")}let q=K0(s,{pathname:Z});Ot(j||q!=null,`No routes matched location "${O.pathname}${O.search}${O.hash}" `),Ot(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${O.pathname}${O.search}${O.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 G=Kv(q&&q.map(Y=>Object.assign({},Y,{params:Object.assign({},y,Y.params),pathname:dl([E,h.encodeLocation?h.encodeLocation(Y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?E:dl([E,h.encodeLocation?h.encodeLocation(Y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),v,f,r,m);return o&&G?w.createElement(kn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...O},navigationType:"POP"}},G):G}function Qv(){let s=Pv(),o=Mv(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),f=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",s),v=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:h},"ErrorBoundary")," or"," ",w.createElement("code",{style:h},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},o),f?w.createElement("pre",{style:m},f):null,v)}var Zv=w.createElement(Qv,null),nm=class extends w.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,o){return o.location!==s.location||o.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:o.error,location:o.location,revalidation:s.revalidation||o.revalidation}}componentDidCatch(s,o){this.props.onError?this.props.onError(s,o):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const f=qv(s.digest);f&&(s=f)}let o=s!==void 0?w.createElement(kt.Provider,{value:this.props.routeContext},w.createElement(sr.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?w.createElement(Vv,{error:s},o):o}};nm.contextType=Dv;var Kc=new WeakMap;function Vv({children:s,error:o}){let{basename:f}=w.useContext(jt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=Lv(o.digest);if(r){let m=Kc.get(o);if(m)throw m;let h=F0(r.location,f);if(W0&&!Kc.get(o))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw Kc.set(o,v),v}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return s}function kv({routeContext:s,match:o,children:f}){let r=w.useContext(ka);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),w.createElement(kt.Provider,{value:s},f)}function Kv(s,o=[],f=null,r=null,m=null){if(s==null){if(!f)return null;if(f.errors)s=f.matches;else if(o.length===0&&!f.initialized&&f.matches.length>0)s=f.matches;else return null}let h=s,v=f==null?void 0:f.errors;if(v!=null){let E=h.findIndex(j=>j.route.id&&(v==null?void 0:v[j.route.id])!==void 0);Ce(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(v).join(",")}`),h=h.slice(0,Math.min(h.length,E+1))}let p=!1,y=-1;if(f)for(let E=0;E<h.length;E++){let j=h[E];if((j.route.HydrateFallback||j.route.hydrateFallbackElement)&&(y=E),j.route.id){let{loaderData:H,errors:O}=f,K=j.route.loader&&!H.hasOwnProperty(j.route.id)&&(!O||O[j.route.id]===void 0);if(j.route.lazy||K){p=!0,y>=0?h=h.slice(0,y+1):h=[h[0]];break}}}let x=f&&r?(E,j)=>{var H,O;r(E,{location:f.location,params:((O=(H=f.matches)==null?void 0:H[0])==null?void 0:O.params)??{},unstable_pattern:Av(f.matches),errorInfo:j})}:void 0;return h.reduceRight((E,j,H)=>{let O,K=!1,Z=null,q=null;f&&(O=v&&j.route.id?v[j.route.id]:void 0,Z=j.route.errorElement||Zv,p&&(y<0&&H===0?(im("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),K=!0,q=null):y===H&&(K=!0,q=j.route.hydrateFallbackElement||null)));let G=o.concat(h.slice(0,H+1)),X=()=>{let Y;return O?Y=Z:K?Y=q:j.route.Component?Y=w.createElement(j.route.Component,null):j.route.element?Y=j.route.element:Y=E,w.createElement(kv,{match:j,routeContext:{outlet:E,matches:G,isDataRoute:f!=null},children:Y})};return f&&(j.route.ErrorBoundary||j.route.errorElement||H===0)?w.createElement(nm,{location:f.location,revalidation:f.revalidation,component:Z,error:O,children:X(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:x}):X()},null)}function rr(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Jv(s){let o=w.useContext(ka);return Ce(o,rr(s)),o}function $v(s){let o=w.useContext(bu);return Ce(o,rr(s)),o}function Wv(s){let o=w.useContext(kt);return Ce(o,rr(s)),o}function or(s){let o=Wv(s),f=o.matches[o.matches.length-1];return Ce(f.route.id,`${s} can only be used on routes that contain a unique "id"`),f.route.id}function Fv(){return or("useRouteId")}function Pv(){var r;let s=w.useContext(sr),o=$v("useRouteError"),f=or("useRouteError");return s!==void 0?s:(r=o.errors)==null?void 0:r[f]}function Iv(){let{router:s}=Jv("useNavigate"),o=or("useNavigate"),f=w.useRef(!1);return lm(()=>{f.current=!0}),w.useCallback(async(m,h={})=>{Ot(f.current,tm),f.current&&(typeof m=="number"?await s.navigate(m):await s.navigate(m,{fromRouteId:o,...h}))},[s,o])}var O0={};function im(s,o,f){!o&&!O0[s]&&(O0[s]=!0,Ot(!1,f))}w.memo(eg);function eg({routes:s,future:o,state:f,onError:r}){return am(s,void 0,f,r,o)}function tg({to:s,replace:o,state:f,relative:r}){Ce(Ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=w.useContext(jt);Ot(!m,"<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:h}=w.useContext(kt),{pathname:v}=Yl(),p=cr(),y=ur(s,ir(h),v,r==="path"),x=JSON.stringify(y);return w.useEffect(()=>{p(JSON.parse(x),{replace:o,state:f,relative:r})},[p,x,r,o,f]),null}function fl(s){Ce(!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 lg({basename:s="/",children:o=null,location:f,navigationType:r="POP",navigator:m,static:h=!1,unstable_useTransitions:v}){Ce(!Ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=s.replace(/^\/*/,"/"),y=w.useMemo(()=>({basename:p,navigator:m,static:h,unstable_useTransitions:v,future:{}}),[p,m,h,v]);typeof f=="string"&&(f=ua(f));let{pathname:x="/",search:E="",hash:j="",state:H=null,key:O="default"}=f,K=w.useMemo(()=>{let Z=ml(x,p);return Z==null?null:{location:{pathname:Z,search:E,hash:j,state:H,key:O},navigationType:r}},[p,x,E,j,H,O,r]);return Ot(K!=null,`<Router basename="${p}"> is not able to match the URL "${x}${E}${j}" because it does not start with the basename, so the <Router> won't render anything.`),K==null?null:w.createElement(jt.Provider,{value:y},w.createElement(kn.Provider,{children:o,value:K}))}function ag({children:s,location:o}){return Xv(er(s),o)}function er(s,o=[]){let f=[];return w.Children.forEach(s,(r,m)=>{if(!w.isValidElement(r))return;let h=[...o,m];if(r.type===w.Fragment){f.push.apply(f,er(r.props.children,h));return}Ce(r.type===fl,`[${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>`),Ce(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||h.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&&(v.children=er(r.props.children,h)),f.push(v)}),f}var xu="get",vu="application/x-www-form-urlencoded";function ju(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function ng(s){return ju(s)&&s.tagName.toLowerCase()==="button"}function ig(s){return ju(s)&&s.tagName.toLowerCase()==="form"}function ug(s){return ju(s)&&s.tagName.toLowerCase()==="input"}function sg(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function cg(s,o){return s.button===0&&(!o||o==="_self")&&!sg(s)}var hu=null;function rg(){if(hu===null)try{new FormData(document.createElement("form"),0),hu=!1}catch{hu=!0}return hu}var og=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jc(s){return s!=null&&!og.has(s)?(Ot(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vu}"`),null):s}function fg(s,o){let f,r,m,h,v;if(ig(s)){let p=s.getAttribute("action");r=p?ml(p,o):null,f=s.getAttribute("method")||xu,m=Jc(s.getAttribute("enctype"))||vu,h=new FormData(s)}else if(ng(s)||ug(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||p.getAttribute("action");if(r=y?ml(y,o):null,f=s.getAttribute("formmethod")||p.getAttribute("method")||xu,m=Jc(s.getAttribute("formenctype"))||Jc(p.getAttribute("enctype"))||vu,h=new FormData(p,s),!rg()){let{name:x,type:E,value:j}=s;if(E==="image"){let H=x?`${x}.`:"";h.append(`${H}x`,"0"),h.append(`${H}y`,"0")}else x&&h.append(x,j)}}else{if(ju(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=xu,r=null,m=vu,v=s}return h&&m==="text/plain"&&(v=h,h=void 0),{action:r,method:f.toLowerCase(),encType:m,formData:h,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fr(s,o){if(s===!1||s===null||typeof s>"u")throw new Error(o)}function dg(s,o,f,r){let m=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:o&&ml(m.pathname,o)==="/"?m.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function mg(s,o){if(s.id in o)return o[s.id];try{let f=await import(s.module);return o[s.id]=f,f}catch(f){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hg(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function xg(s,o,f){let r=await Promise.all(s.map(async m=>{let h=o.routes[m.route.id];if(h){let v=await mg(h,f);return v.links?v.links():[]}return[]}));return pg(r.flat(1).filter(hg).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function U0(s,o,f,r,m,h){let v=(y,x)=>f[x]?y.route.id!==f[x].route.id:!0,p=(y,x)=>{var E;return f[x].pathname!==y.pathname||((E=f[x].route.path)==null?void 0:E.endsWith("*"))&&f[x].params["*"]!==y.params["*"]};return h==="assets"?o.filter((y,x)=>v(y,x)||p(y,x)):h==="data"?o.filter((y,x)=>{var j;let E=r.routes[y.route.id];if(!E||!E.hasLoader)return!1;if(v(y,x)||p(y,x))return!0;if(y.route.shouldRevalidate){let H=y.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((j=f[0])==null?void 0:j.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof H=="boolean")return H}return!0}):[]}function vg(s,o,{includeHydrateFallback:f}={}){return gg(s.map(r=>{let m=o.routes[r.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function gg(s){return[...new Set(s)]}function yg(s){let o={},f=Object.keys(s).sort();for(let r of f)o[r]=s[r];return o}function pg(s,o){let f=new Set;return new Set(o),s.reduce((r,m)=>{let h=JSON.stringify(yg(m));return f.has(h)||(f.add(h),r.push({key:h,link:m})),r},[])}function um(){let s=w.useContext(ka);return fr(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function bg(){let s=w.useContext(bu);return fr(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var dr=w.createContext(void 0);dr.displayName="FrameworkContext";function sm(){let s=w.useContext(dr);return fr(s,"You must render this element inside a <HydratedRouter> element"),s}function jg(s,o){let f=w.useContext(dr),[r,m]=w.useState(!1),[h,v]=w.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:x,onMouseLeave:E,onTouchStart:j}=o,H=w.useRef(null);w.useEffect(()=>{if(s==="render"&&v(!0),s==="viewport"){let Z=G=>{G.forEach(X=>{v(X.isIntersecting)})},q=new IntersectionObserver(Z,{threshold:.5});return H.current&&q.observe(H.current),()=>{q.disconnect()}}},[s]),w.useEffect(()=>{if(r){let Z=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(Z)}}},[r]);let O=()=>{m(!0)},K=()=>{m(!1),v(!1)};return f?s!=="intent"?[h,H,{}]:[h,H,{onFocus:Zn(p,O),onBlur:Zn(y,K),onMouseEnter:Zn(x,O),onMouseLeave:Zn(E,K),onTouchStart:Zn(j,O)}]:[!1,H,{}]}function Zn(s,o){return f=>{s&&s(f),f.defaultPrevented||o(f)}}function Sg({page:s,...o}){let{router:f}=um(),r=w.useMemo(()=>K0(f.routes,s,f.basename),[f.routes,s,f.basename]);return r?w.createElement(Eg,{page:s,matches:r,...o}):null}function Ng(s){let{manifest:o,routeModules:f}=sm(),[r,m]=w.useState([]);return w.useEffect(()=>{let h=!1;return xg(s,o,f).then(v=>{h||m(v)}),()=>{h=!0}},[s,o,f]),r}function Eg({page:s,matches:o,...f}){let r=Yl(),{future:m,manifest:h,routeModules:v}=sm(),{basename:p}=um(),{loaderData:y,matches:x}=bg(),E=w.useMemo(()=>U0(s,o,x,h,r,"data"),[s,o,x,h,r]),j=w.useMemo(()=>U0(s,o,x,h,r,"assets"),[s,o,x,h,r]),H=w.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let Z=new Set,q=!1;if(o.forEach(X=>{var L;let Y=h.routes[X.route.id];!Y||!Y.hasLoader||(!E.some(B=>B.route.id===X.route.id)&&X.route.id in y&&((L=v[X.route.id])!=null&&L.shouldRevalidate)||Y.hasClientLoader?q=!0:Z.add(X.route.id))}),Z.size===0)return[];let G=dg(s,p,m.unstable_trailingSlashAwareDataRequests,"data");return q&&Z.size>0&&G.searchParams.set("_routes",o.filter(X=>Z.has(X.route.id)).map(X=>X.route.id).join(",")),[G.pathname+G.search]},[p,m.unstable_trailingSlashAwareDataRequests,y,r,h,E,o,s,v]),O=w.useMemo(()=>vg(j,h),[j,h]),K=Ng(j);return w.createElement(w.Fragment,null,H.map(Z=>w.createElement("link",{key:Z,rel:"prefetch",as:"fetch",href:Z,...f})),O.map(Z=>w.createElement("link",{key:Z,rel:"modulepreload",href:Z,...f})),K.map(({key:Z,link:q})=>w.createElement("link",{key:Z,nonce:f.nonce,...q,crossOrigin:q.crossOrigin??f.crossOrigin})))}function wg(...s){return o=>{s.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Rg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Rg&&(window.__reactRouterVersion="7.13.0")}catch{}function Tg({basename:s,children:o,unstable_useTransitions:f,window:r}){let m=w.useRef();m.current==null&&(m.current=uv({window:r,v5Compat:!0}));let h=m.current,[v,p]=w.useState({action:h.action,location:h.location}),y=w.useCallback(x=>{f===!1?p(x):w.startTransition(()=>p(x))},[f]);return w.useLayoutEffect(()=>h.listen(y),[h,y]),w.createElement(lg,{basename:s,children:o,location:v.location,navigationType:v.action,navigator:h,unstable_useTransitions:f})}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rm=w.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:h,replace:v,state:p,target:y,to:x,preventScrollReset:E,viewTransition:j,unstable_defaultShouldRevalidate:H,...O},K){let{basename:Z,unstable_useTransitions:q}=w.useContext(jt),G=typeof x=="string"&&cm.test(x),X=F0(x,Z);x=X.to;let Y=Yv(x,{relative:m}),[L,B,I]=jg(r,O),F=Mg(x,{replace:v,state:p,target:y,preventScrollReset:E,relative:m,viewTransition:j,unstable_defaultShouldRevalidate:H,unstable_useTransitions:q});function Q(ye){o&&o(ye),ye.defaultPrevented||F(ye)}let te=w.createElement("a",{...O,...I,href:X.absoluteURL||Y,onClick:X.isExternal||h?o:Q,ref:wg(K,B),target:y,"data-discover":!G&&f==="render"?"true":void 0});return L&&!G?w.createElement(w.Fragment,null,te,w.createElement(Sg,{page:Y})):te});rm.displayName="Link";var om=w.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:h,to:v,viewTransition:p,children:y,...x},E){let j=Kn(v,{relative:x.relative}),H=Yl(),O=w.useContext(bu),{navigator:K,basename:Z}=w.useContext(jt),q=O!=null&&Ug(j)&&p===!0,G=K.encodeLocation?K.encodeLocation(j).pathname:j.pathname,X=H.pathname,Y=O&&O.navigation&&O.navigation.location?O.navigation.location.pathname:null;f||(X=X.toLowerCase(),Y=Y?Y.toLowerCase():null,G=G.toLowerCase()),Y&&Z&&(Y=ml(Y,Z)||Y);const L=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let B=X===G||!m&&X.startsWith(G)&&X.charAt(L)==="/",I=Y!=null&&(Y===G||!m&&Y.startsWith(G)&&Y.charAt(G.length)==="/"),F={isActive:B,isPending:I,isTransitioning:q},Q=B?o:void 0,te;typeof r=="function"?te=r(F):te=[r,B?"active":null,I?"pending":null,q?"transitioning":null].filter(Boolean).join(" ");let ye=typeof h=="function"?h(F):h;return w.createElement(rm,{...x,"aria-current":Q,className:te,ref:E,style:ye,to:v,viewTransition:p},typeof y=="function"?y(F):y)});om.displayName="NavLink";var _g=w.forwardRef(({discover:s="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:h,method:v=xu,action:p,onSubmit:y,relative:x,preventScrollReset:E,viewTransition:j,unstable_defaultShouldRevalidate:H,...O},K)=>{let{unstable_useTransitions:Z}=w.useContext(jt),q=Dg(),G=Og(p,{relative:x}),X=v.toLowerCase()==="get"?"get":"post",Y=typeof p=="string"&&cm.test(p),L=B=>{if(y&&y(B),B.defaultPrevented)return;B.preventDefault();let I=B.nativeEvent.submitter,F=(I==null?void 0:I.getAttribute("formmethod"))||v,Q=()=>q(I||B.currentTarget,{fetcherKey:o,method:F,navigate:f,replace:m,state:h,relative:x,preventScrollReset:E,viewTransition:j,unstable_defaultShouldRevalidate:H});Z&&f!==!1?w.startTransition(()=>Q()):Q()};return w.createElement("form",{ref:K,method:X,action:G,onSubmit:r?y:L,...O,"data-discover":!Y&&s==="render"?"true":void 0})});_g.displayName="Form";function zg(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fm(s){let o=w.useContext(ka);return Ce(o,zg(s)),o}function Mg(s,{target:o,replace:f,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let x=cr(),E=Yl(),j=Kn(s,{relative:h});return w.useCallback(H=>{if(cg(H,o)){H.preventDefault();let O=f!==void 0?f:Vn(E)===Vn(j),K=()=>x(s,{replace:O,state:r,preventScrollReset:m,relative:h,viewTransition:v,unstable_defaultShouldRevalidate:p});y?w.startTransition(()=>K()):K()}},[E,x,j,f,r,o,s,m,h,v,p,y])}var Ag=0,Cg=()=>`__${String(++Ag)}__`;function Dg(){let{router:s}=fm("useSubmit"),{basename:o}=w.useContext(jt),f=Fv(),r=s.fetch,m=s.navigate;return w.useCallback(async(h,v={})=>{let{action:p,method:y,encType:x,formData:E,body:j}=fg(h,o);if(v.navigate===!1){let H=v.fetcherKey||Cg();await r(H,f,v.action||p,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:E,body:j,formMethod:v.method||y,formEncType:v.encType||x,flushSync:v.flushSync})}else await m(v.action||p,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:E,body:j,formMethod:v.method||y,formEncType:v.encType||x,replace:v.replace,state:v.state,fromRouteId:f,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,m,o,f])}function Og(s,{relative:o}={}){let{basename:f}=w.useContext(jt),r=w.useContext(kt);Ce(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...Kn(s||".",{relative:o})},v=Yl();if(s==null){h.search=v.search;let p=new URLSearchParams(h.search),y=p.getAll("index");if(y.some(E=>E==="")){p.delete("index"),y.filter(j=>j).forEach(j=>p.append("index",j));let E=p.toString();h.search=E?`?${E}`:""}}return(!s||s===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:dl([f,h.pathname])),Vn(h)}function Ug(s,{relative:o}={}){let f=w.useContext(I0);Ce(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=fm("useViewTransitionState"),m=Kn(s,{relative:o});if(!f.isTransitioning)return!1;let h=ml(f.currentLocation.pathname,r)||f.currentLocation.pathname,v=ml(f.nextLocation.pathname,r)||f.nextLocation.pathname;return gu(m.pathname,v)!=null||gu(m.pathname,h)!=null}var Hg=k0();const Bg=ar(Hg);/**
|
|
61
|
+
* @license lucide-react v0.564.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 dm=(...s)=>s.filter((o,f,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===f).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.564.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
|
+
*/const Lg=s=>s.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
71
|
+
* @license lucide-react v0.564.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 qg=s=>s.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,f,r)=>r?r.toUpperCase():f.toLowerCase());/**
|
|
76
|
+
* @license lucide-react v0.564.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 H0=s=>{const o=qg(s);return o.charAt(0).toUpperCase()+o.slice(1)};/**
|
|
81
|
+
* @license lucide-react v0.564.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
|
+
*/var Yg={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"};/**
|
|
86
|
+
* @license lucide-react v0.564.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Gg=s=>{for(const o in s)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};/**
|
|
91
|
+
* @license lucide-react v0.564.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 Xg=w.forwardRef(({color:s="currentColor",size:o=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:m="",children:h,iconNode:v,...p},y)=>w.createElement("svg",{ref:y,...Yg,width:o,height:o,stroke:s,strokeWidth:r?Number(f)*24/Number(o):f,className:dm("lucide",m),...!h&&!Gg(p)&&{"aria-hidden":"true"},...p},[...v.map(([x,E])=>w.createElement(x,E)),...Array.isArray(h)?h:[h]]));/**
|
|
96
|
+
* @license lucide-react v0.564.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 ue=(s,o)=>{const f=w.forwardRef(({className:r,...m},h)=>w.createElement(Xg,{ref:h,iconNode:o,className:dm(`lucide-${Lg(H0(s))}`,`lucide-${s}`,r),...m}));return f.displayName=H0(s),f};/**
|
|
101
|
+
* @license lucide-react v0.564.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 Qg=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],mm=ue("activity",Qg);/**
|
|
106
|
+
* @license lucide-react v0.564.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 Zg=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Vg=ue("arrow-down",Zg);/**
|
|
111
|
+
* @license lucide-react v0.564.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 kg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],B0=ue("arrow-right",kg);/**
|
|
116
|
+
* @license lucide-react v0.564.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 Kg=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Jg=ue("arrow-up-down",Kg);/**
|
|
121
|
+
* @license lucide-react v0.564.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 $g=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],Wg=ue("arrow-up-narrow-wide",$g);/**
|
|
126
|
+
* @license lucide-react v0.564.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 Fg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Pg=ue("arrow-up",Fg);/**
|
|
131
|
+
* @license lucide-react v0.564.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 Ig=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],ey=ue("bell",Ig);/**
|
|
136
|
+
* @license lucide-react v0.564.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 ty=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],L0=ue("briefcase",ty);/**
|
|
141
|
+
* @license lucide-react v0.564.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 ly=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],yu=ue("calendar",ly);/**
|
|
146
|
+
* @license lucide-react v0.564.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 ay=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],$c=ue("check",ay);/**
|
|
151
|
+
* @license lucide-react v0.564.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 ny=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],iy=ue("chevron-down",ny);/**
|
|
156
|
+
* @license lucide-react v0.564.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 uy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sy=ue("chevron-left",uy);/**
|
|
161
|
+
* @license lucide-react v0.564.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 cy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ry=ue("chevron-right",cy);/**
|
|
166
|
+
* @license lucide-react v0.564.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 oy=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],fy=ue("chevrons-up-down",oy);/**
|
|
171
|
+
* @license lucide-react v0.564.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 dy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],qt=ue("circle-alert",dy);/**
|
|
176
|
+
* @license lucide-react v0.564.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 my=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],q0=ue("circle-arrow-down",my);/**
|
|
181
|
+
* @license lucide-react v0.564.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 hy=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Jn=ue("circle-check-big",hy);/**
|
|
186
|
+
* @license lucide-react v0.564.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 xy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],tr=ue("circle-x",xy);/**
|
|
191
|
+
* @license lucide-react v0.564.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 vy=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],pu=ue("clock",vy);/**
|
|
196
|
+
* @license lucide-react v0.564.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 gy=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],yy=ue("ellipsis-vertical",gy);/**
|
|
201
|
+
* @license lucide-react v0.564.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 py=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],by=ue("external-link",py);/**
|
|
206
|
+
* @license lucide-react v0.564.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 jy=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],hm=ue("file-text",jy);/**
|
|
211
|
+
* @license lucide-react v0.564.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 Sy=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Ny=ue("git-pull-request",Sy);/**
|
|
216
|
+
* @license lucide-react v0.564.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 Ey=[["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-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],wy=ue("house",Ey);/**
|
|
221
|
+
* @license lucide-react v0.564.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 Ry=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ty=ue("info",Ry);/**
|
|
226
|
+
* @license lucide-react v0.564.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 _y=[["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"}]],zy=ue("layout-grid",_y);/**
|
|
231
|
+
* @license lucide-react v0.564.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 My=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],Y0=ue("layout-list",My);/**
|
|
236
|
+
* @license lucide-react v0.564.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 Ay=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xm=ue("loader-circle",Ay);/**
|
|
241
|
+
* @license lucide-react v0.564.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 Cy=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],vm=ue("map",Cy);/**
|
|
246
|
+
* @license lucide-react v0.564.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 Dy=[["path",{d:"M5 12h14",key:"1ays0h"}]],Oy=ue("minus",Dy);/**
|
|
251
|
+
* @license lucide-react v0.564.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 Uy=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],gm=ue("pause",Uy);/**
|
|
256
|
+
* @license lucide-react v0.564.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 Hy=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],$n=ue("play",Hy);/**
|
|
261
|
+
* @license lucide-react v0.564.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 By=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ly=ue("plus",By);/**
|
|
266
|
+
* @license lucide-react v0.564.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 qy=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],ym=ue("rotate-ccw",qy);/**
|
|
271
|
+
* @license lucide-react v0.564.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 Yy=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Gy=ue("save",Yy);/**
|
|
276
|
+
* @license lucide-react v0.564.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 Xy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],mr=ue("search",Xy);/**
|
|
281
|
+
* @license lucide-react v0.564.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 Qy=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pm=ue("settings",Qy);/**
|
|
286
|
+
* @license lucide-react v0.564.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 Zy=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Vy=ue("square-pen",Zy);/**
|
|
291
|
+
* @license lucide-react v0.564.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 ky=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Ky=ue("terminal",ky);/**
|
|
296
|
+
* @license lucide-react v0.564.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 Jy=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],$y=ue("triangle-alert",Jy);/**
|
|
301
|
+
* @license lucide-react v0.564.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/const Wy=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],Fy=ue("wifi",Wy);/**
|
|
306
|
+
* @license lucide-react v0.564.0 - ISC
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the ISC license.
|
|
309
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/const Py=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bm=ue("x",Py),G0=s=>{let o;const f=new Set,r=(x,E)=>{const j=typeof x=="function"?x(o):x;if(!Object.is(j,o)){const H=o;o=E??(typeof j!="object"||j===null)?j:Object.assign({},o,j),f.forEach(O=>O(o,H))}},m=()=>o,p={setState:r,getState:m,getInitialState:()=>y,subscribe:x=>(f.add(x),()=>f.delete(x))},y=o=s(r,m,p);return p},Iy=s=>s?G0(s):G0,ep=s=>s;function tp(s,o=ep){const f=Dt.useSyncExternalStore(s.subscribe,()=>o(s.getState()),()=>o(s.getInitialState()));return Dt.useDebugValue(f),f}const X0=s=>{const o=Iy(s),f=r=>tp(o,r);return Object.assign(f,o),f},lp=s=>s?X0(s):X0,ap="";let jm=!1,lr=null;function np(s){jm=s}function ip(s){lr=s}function up(s){return encodeURIComponent(s.replace(/\//g,"~"))}function Ie(s){return jm&&lr?s.replace("/api/",`/api/projects/${up(lr)}/`):s}function sp(){return Ke("/api/projects")}async function Ke(s,o){const f=`${ap}${s}`,r=await fetch(f,{headers:{"Content-Type":"application/json",...o==null?void 0:o.headers},...o});if(!r.ok){const m=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(m.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function Sm(){return Ke(Ie("/api/status"))}function cp(){return Ke(Ie("/api/prds"))}function rp(){return Ke(Ie("/api/prs"))}function op(s,o){const f=`?lines=${encodeURIComponent(o)}`;return Ke(Ie(`/api/logs/${encodeURIComponent(s)}${f}`))}function Nm(){return Ke(Ie("/api/config"))}function Em(s){return Ke(Ie("/api/config"),{method:"PUT",body:JSON.stringify(s)})}function fp(){return Ke(Ie("/api/doctor"))}function wm(){return Ke(Ie("/api/schedule-info"))}function dp(){return Ke(Ie("/api/actions/run"),{method:"POST"})}function mp(){return Ke(Ie("/api/actions/review"),{method:"POST"})}function Q0(){return Ke(Ie("/api/actions/install-cron"),{method:"POST"})}function hp(){return Ke(Ie("/api/actions/uninstall-cron"),{method:"POST"})}function xp(s="all"){return Ke(Ie("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:s})})}function vp(s){return Ke(Ie("/api/actions/retry"),{method:"POST",body:JSON.stringify({prdName:s})})}function gp(){return Ke(Ie("/api/roadmap"))}function yp(){return Ke(Ie("/api/roadmap/scan"),{method:"POST"})}function pp(s){return Ke(Ie("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:s})})}function Yt(s,o=[],f){const r=(f==null?void 0:f.enabled)??!0,[m,h]=w.useState(null),[v,p]=w.useState(!0),[y,x]=w.useState(null),E=w.useRef(s);E.current=s;const j=w.useRef(()=>{(async()=>{x(null);try{const O=await E.current();h(O)}catch(O){x(O instanceof Error?O:new Error("Unknown error"))}})()});return j.current=j.current.bind(j),w.useEffect(()=>{if(!r)return;let H=!1;return p(!0),x(null),(async()=>{try{const K=await E.current();H||h(K)}catch(K){H||x(K instanceof Error?K:new Error("Unknown error"))}finally{H||p(!1)}})(),()=>{H=!0}},[...o,r]),{data:m,loading:v,error:y,refetch:j.current}}const bp=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Gt=lp(s=>({projectName:"Night Watch",setProjectName:o=>s({projectName:o}),toasts:[],addToast:o=>{const f=Math.random().toString(36).substring(7);s(r=>({toasts:[...r.toasts,{...o,id:f}]})),setTimeout(()=>{s(r=>({toasts:r.toasts.filter(m=>m.id!==f)}))},5e3)},removeToast:o=>s(f=>({toasts:f.toasts.filter(r=>r.id!==o)})),globalModeLoading:!0,setGlobalModeLoading:o=>s({globalModeLoading:o}),isGlobalMode:!1,setGlobalMode:o=>{np(o),s({isGlobalMode:o})},projects:[],setProjects:o=>s({projects:o}),selectedProjectId:bp,selectProject:o=>{ip(o),o?localStorage.setItem("nw-selected-project",o):localStorage.removeItem("nw-selected-project"),s(f=>{const r=f.projects.find(m=>m.name===o);return{selectedProjectId:o,...r?{projectName:r.name}:{}}})}})),jp=()=>{const[s,o]=w.useState(!1),{projectName:f,isGlobalMode:r,projects:m,selectedProjectId:h,selectProject:v}=Gt(),p=[{icon:wy,label:"Dashboard",path:"/"},{icon:hm,label:"PRDs",path:"/prds",badge:3},{icon:Ny,label:"Pull Requests",path:"/prs",badge:1},{icon:vm,label:"Roadmap",path:"/roadmap"},{icon:yu,label:"Scheduling",path:"/scheduling"},{icon:Ky,label:"Logs",path:"/logs"},{icon:pm,label:"Settings",path:"/settings"}];return u.jsxs("aside",{className:`
|
|
311
|
+
relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
|
|
312
|
+
${s?"w-20":"w-72"} h-screen flex-shrink-0 z-50
|
|
313
|
+
bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
|
|
314
|
+
`,children:[u.jsx("div",{className:`p-6 border-b border-white/5 ${s?"items-center justify-center flex":""}`,children:s?u.jsx("div",{className:"relative group",children:u.jsx("div",{className:"h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white font-bold cursor-pointer shadow-lg shadow-indigo-500/20 group-hover:bg-indigo-500 transition-colors bg-gradient-to-br from-indigo-500 to-indigo-700",title:"Switch Project",children:"NW"})}):u.jsxs("div",{className:"relative w-full",children:[u.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?u.jsxs("div",{className:"relative",children:[u.jsx(L0,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),u.jsx("select",{value:h||"",onChange:y=>v(y.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:m.filter(y=>y.valid).map(y=>u.jsx("option",{value:y.name,children:y.name},y.name))}),u.jsx(fy,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):u.jsxs("div",{className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 px-3.5 text-sm font-medium shadow-sm flex items-center",children:[u.jsx(L0,{className:"h-4 w-4 text-indigo-400 mr-3"}),u.jsx("span",{className:"truncate",children:f})]})]})}),u.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:u.jsx("ul",{className:"space-y-1.5 px-4",children:p.map(y=>u.jsx("li",{children:u.jsx(om,{to:y.path,className:({isActive:x})=>`
|
|
315
|
+
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
316
|
+
${x?"bg-indigo-500/10 text-indigo-300 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.05)]":"text-slate-400 hover:bg-white/5 hover:text-slate-200"}
|
|
317
|
+
${s?"justify-center":""}
|
|
318
|
+
`,children:({isActive:x})=>u.jsxs(u.Fragment,{children:[u.jsx(y.icon,{className:`h-5 w-5 transition-colors ${x?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${s?"":"mr-3.5"}`}),!s&&u.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:y.label}),y.badge&&(s?u.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):u.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${x?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:y.badge})),x&&!s&&u.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-indigo-500 rounded-r-full shadow-[0_0_10px_rgba(99,102,241,0.4)]"}),s&&u.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:y.label})]})})},y.path))})}),u.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:u.jsx("button",{onClick:()=>o(!s),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:s?u.jsx(ry,{className:"h-5 w-5"}):u.jsx(sy,{className:"h-5 w-5"})})})]})},Sp=()=>{const{projectName:s}=Gt();return u.jsxs("header",{className:"h-20 flex items-center justify-between px-8 z-40 sticky top-0 bg-[#030712]/80 backdrop-blur-md border-b border-white/5",children:[u.jsxs("div",{className:"flex items-center space-x-6",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),u.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:s})]}),u.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),u.jsxs("div",{className:"flex items-center space-x-2 text-xs font-medium px-3 py-1.5 rounded-full border transition-colors bg-emerald-500/5 text-emerald-400 border-emerald-500/20 shadow-[0_0_10px_-4px_rgba(16,185,129,0.3)]",children:[u.jsx(Fy,{className:"h-3.5 w-3.5"}),u.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),u.jsxs("div",{className:"flex items-center space-x-5",children:[u.jsxs("div",{className:"relative hidden md:block group",children:[u.jsx("input",{type:"text",placeholder:"Search ( / )",className:"w-72 pl-10 pr-4 py-2 rounded-lg border border-white/5 bg-white/5 text-sm text-slate-200 focus:outline-none focus:ring-1 focus:ring-indigo-500/50 focus:border-indigo-500/50 transition-all placeholder:text-slate-600 focus:bg-[#0b101b]"}),u.jsx(mr,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[u.jsx(ey,{className:"h-5 w-5"}),u.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),u.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:u.jsx(pm,{className:"h-5 w-5"})})]}),u.jsx("div",{className:"h-9 w-9 rounded-full bg-gradient-to-tr from-indigo-600 to-purple-600 ring-2 ring-white/10 flex items-center justify-center text-white font-bold text-xs shadow-lg",children:"AD"})]})]})},He=({children:s,className:o="",onClick:f})=>u.jsxs("div",{className:`
|
|
319
|
+
relative bg-[#0b101b] rounded-xl border border-white/5
|
|
320
|
+
shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
|
|
321
|
+
transition-all duration-300
|
|
322
|
+
${f?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
|
|
323
|
+
${o}
|
|
324
|
+
`,onClick:f,children:[f&&u.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),u.jsx("div",{className:"relative z-10",children:s})]}),je=({children:s,variant:o="primary",size:f="md",loading:r=!1,className:m="",disabled:h,...v})=>{const p="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-offset-[#030712] disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98]",y={primary:"bg-indigo-600 text-white hover:bg-indigo-500 focus:ring-indigo-500 shadow-[0_0_15px_-3px_rgba(79,70,229,0.4)] border border-indigo-500/50 hover:shadow-[0_0_20px_-3px_rgba(79,70,229,0.5)]",secondary:"bg-[#1f2937] text-slate-200 hover:bg-[#374151] focus:ring-slate-500 border border-white/5",danger:"bg-red-600/10 text-red-400 hover:bg-red-600/20 focus:ring-red-500 border border-red-900/50 hover:border-red-500/50",ghost:"bg-transparent text-slate-400 hover:bg-white/5 hover:text-slate-200 focus:ring-slate-400",outline:"border border-slate-700/50 bg-transparent text-slate-300 hover:bg-white/5 hover:border-slate-500 focus:ring-slate-400"},x={sm:"h-8 px-3 text-xs tracking-wide",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 text-base",icon:"h-9 w-9"};return u.jsxs("button",{className:`${p} ${y[o]} ${x[f]} ${m}`,disabled:h||r,...v,children:[r&&u.jsx(xm,{className:"mr-2 h-4 w-4 animate-spin"}),s]})},Np={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},Ep=()=>{const s=cr(),[o,f]=w.useState(null),{setProjectName:r,addToast:m,selectedProjectId:h,globalModeLoading:v}=Gt(),{data:p,loading:y,error:x,refetch:E}=Yt(Sm,[h],{enabled:!v}),{data:j}=Yt(wm,[h],{enabled:!v});if(Dt.useEffect(()=>{p!=null&&p.projectName&&r(p.projectName)},[p,r]),Dt.useEffect(()=>{const L=setInterval(()=>{E()},1e4);return()=>clearInterval(L)},[E]),v||y)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(x)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),u.jsx("div",{className:"text-sm text-slate-500",children:x.message}),u.jsx(je,{onClick:()=>E(),children:"Retry"})]});if(!p)return null;const H=p.prds.filter(L=>L.status==="ready").length,O=p.prds.filter(L=>L.status==="in-progress"),K=p.prs.length,Z=p.prs.filter(L=>L.reviewScore!==null&&L.reviewScore<70).length,q=p.processes.find(L=>L.name==="executor"),G=p.processes.find(L=>L.name==="reviewer"),X=async L=>{f(L);try{const B=await xp(L),I=B.results.every(F=>F.success);m({title:I?"Process Cancelled":"Cancel Failed",message:B.results.map(F=>F.message).join("; "),type:I?"success":"error"}),I&&E()}catch(B){m({title:"Cancel Failed",message:B instanceof Error?B.message:"Failed to cancel process",type:"error"})}finally{f(null)}},Y=L=>{if(!L)return"Not scheduled";try{const B=new Date(L),I=new Date,F=B.getTime()-I.getTime(),Q=Math.floor(F/6e4);return Q<0?"Running now...":Q<60?`In ${Q} min`:Q<1440?`In ${Math.floor(Q/60)} hr${Q>=120?"s":""}`:`In ${Math.floor(Q/1440)} day${Q>=2880?"s":""}`}catch{return"Unknown"}};return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[u.jsxs(He,{className:"p-5",onClick:()=>s("/prds"),children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"PRDs Ready"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:H})]}),u.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:u.jsx(Jn,{className:"h-5 w-5"})})]}),u.jsxs("p",{className:"text-xs text-slate-500 mt-4",children:["of ",p.prds.length," total"]})]}),u.jsxs(He,{className:"p-5",onClick:()=>s("/prds"),children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:O.length})]}),u.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:u.jsx(mm,{className:"h-5 w-5"})})]}),u.jsx("p",{className:"text-xs text-slate-500 mt-4 truncate",children:O.length===1?O[0].name:`${O.length} active`})]}),u.jsxs(He,{className:"p-5",onClick:()=>s("/prs"),children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:K})]}),u.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:u.jsx(pu,{className:"h-5 w-5"})})]}),u.jsx("p",{className:`text-xs mt-4 ${Z>0?"text-red-400 font-medium":"text-slate-500"}`,children:Z>0?`${Z} need work`:"All passing"})]}),u.jsxs(He,{className:"p-5",children:[u.jsxs("div",{className:"flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Cron Status"}),u.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:p.crontab.installed?"Active":"Inactive"})]}),u.jsx("div",{className:`p-2 rounded-lg ${p.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:u.jsx(yu,{className:"h-5 w-5"})})]}),u.jsx("p",{className:"text-xs text-slate-500 mt-4",children:p.crontab.installed?`${p.crontab.entries.length} entr${p.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"lg:col-span-2",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"PRD Pipeline"}),u.jsxs("button",{onClick:()=>s("/prds"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View all ",u.jsx(B0,{className:"ml-1 h-3 w-3"})]})]}),u.jsx("div",{className:"bg-slate-900 rounded-xl p-4 grid grid-cols-5 gap-3 h-64 overflow-hidden border border-slate-800",children:["blocked","ready","in-progress","pending-review","done"].map(L=>u.jsxs("div",{className:"flex flex-col h-full",children:[u.jsxs("div",{className:"text-xs font-semibold text-slate-500 uppercase mb-3 flex items-center",children:[u.jsx("span",{className:`w-2 h-2 rounded-full mr-2 flex-shrink-0 ${L==="ready"?"bg-green-500":L==="in-progress"?"bg-blue-500":L==="pending-review"?"bg-yellow-500":L==="blocked"?"bg-red-500":"bg-slate-600"}`}),u.jsx("span",{className:"truncate",children:Np[L]})]}),u.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto scrollbar-hide",children:[p.prds.filter(B=>B.status===L).map(B=>u.jsxs(He,{className:"p-3 shadow-none bg-slate-800 border-slate-700 hover:border-slate-600 hover:shadow-md cursor-pointer transition-all active:scale-95",onClick:()=>s("/prds"),children:[u.jsx("div",{className:"text-xs font-medium text-slate-200 line-clamp-2",children:B.name}),B.unmetDependencies.length>0&&u.jsxs("div",{className:"mt-2 text-[10px] text-amber-400",children:["Blocked by: ",B.unmetDependencies.join(", ")]}),B.status==="in-progress"&&u.jsx("div",{className:"h-1.5 w-1.5 bg-blue-500 rounded-full animate-pulse mt-2"}),B.status==="pending-review"&&u.jsx("div",{className:"h-1.5 w-1.5 bg-yellow-500 rounded-full animate-pulse mt-2"})]},B.name)),p.prds.filter(B=>B.status===L).length===0&&u.jsx("div",{className:"h-full border-2 border-dashed border-slate-800 rounded-lg flex items-center justify-center",children:u.jsx("span",{className:"text-xs text-slate-600",children:"Empty"})})]})]},L))})]}),u.jsxs("div",{className:"lg:col-span-1",children:[u.jsx("h2",{className:"text-lg font-semibold text-slate-200 mb-4",children:"System Status"}),u.jsx(He,{className:"h-64 overflow-y-auto",children:u.jsxs("div",{className:"p-4 space-y-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),u.jsx("p",{className:"text-sm text-slate-200",children:p.projectName})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Provider"}),u.jsx("p",{className:"text-sm text-slate-200 capitalize",children:p.config.provider})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"PRD Directory"}),u.jsx("p",{className:"text-sm text-slate-200",children:p.config.prdDir})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),u.jsx("p",{className:"text-sm text-slate-200",children:new Date(p.timestamp).toLocaleString()})]})]})})]})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs(He,{className:"p-6",children:[u.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Process Status"}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${q!=null&&q.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),u.jsxs("div",{children:[u.jsx("div",{className:`font-medium ${q!=null&&q.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),u.jsx("div",{className:"text-xs text-slate-500",children:q!=null&&q.running?`PID: ${q.pid} • Running`:"Idle"})]})]}),u.jsxs("div",{className:"flex items-center space-x-2",children:[(q==null?void 0:q.running)&&u.jsxs(je,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>X("run"),disabled:o==="run",children:[u.jsx(tr,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),u.jsx(je,{size:"sm",variant:"ghost",onClick:()=>s("/logs"),children:"View Log"})]})]}),u.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${G!=null&&G.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),u.jsxs("div",{children:[u.jsx("div",{className:`font-medium ${G!=null&&G.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),u.jsx("div",{className:"text-xs text-slate-500",children:G!=null&&G.running?`PID: ${G.pid} • Running`:"Idle"})]})]}),u.jsxs("div",{className:"flex items-center space-x-2",children:[(G==null?void 0:G.running)&&u.jsxs(je,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>X("review"),disabled:o==="review",children:[u.jsx(tr,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),u.jsx(je,{size:"sm",variant:"ghost",onClick:()=>s("/logs"),disabled:!(G!=null&&G.running),children:"View Log"})]})]})]})]}),u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),u.jsxs("button",{onClick:()=>s("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",u.jsx(B0,{className:"ml-1 h-3 w-3"})]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`p-1.5 rounded-md ${j!=null&&j.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:u.jsx(yu,{className:"h-4 w-4"})}),u.jsxs("div",{children:[u.jsx("div",{className:`text-sm font-medium ${j!=null&&j.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),u.jsx("div",{className:"text-xs text-slate-500",children:j!=null&&j.paused?"Paused":Y(j==null?void 0:j.executor.nextRun)})]})]})}),u.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsx("div",{className:`p-1.5 rounded-md ${j!=null&&j.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:u.jsx(pu,{className:"h-4 w-4"})}),u.jsxs("div",{children:[u.jsx("div",{className:`text-sm font-medium ${j!=null&&j.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),u.jsx("div",{className:"text-xs text-slate-500",children:j!=null&&j.paused?"Paused":Y(j==null?void 0:j.reviewer.nextRun)})]})]})})]})]})]})]})},Va=({children:s,variant:o="default",className:f=""})=>{const r={default:"bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20",success:"bg-emerald-500/10 text-emerald-400 ring-1 ring-inset ring-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 ring-1 ring-inset ring-amber-500/20",error:"bg-red-500/10 text-red-400 ring-1 ring-inset ring-red-500/20",neutral:"bg-slate-500/10 text-slate-400 ring-1 ring-inset ring-slate-500/20",info:"bg-blue-500/10 text-blue-400 ring-1 ring-inset ring-blue-500/20"};return u.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${f}`,children:s})},wp=({isOpen:s,onClose:o,title:f,children:r})=>(w.useRef(null),w.useEffect(()=>{const m=h=>{h.key==="Escape"&&o()};return s&&(document.addEventListener("keydown",m),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",m),document.body.style.overflow="unset"}},[s,o]),s?Bg.createPortal(u.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6",children:[u.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:o,"aria-hidden":"true"}),u.jsxs("div",{className:"relative w-full max-w-2xl transform rounded-xl bg-slate-900 border border-slate-800 shadow-2xl transition-all flex flex-col max-h-[90vh]",children:[u.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 px-6 py-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:f}),u.jsx("button",{onClick:o,className:"rounded-full p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:u.jsx(bm,{className:"h-5 w-5"})})]}),u.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6 text-slate-300",children:r})]})]}),document.body):null),Wc={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},Fc={ready:"success","in-progress":"info",blocked:"error","pending-review":"warning",done:"neutral"},Rp=()=>{const[s,o]=w.useState("list"),[f,r]=w.useState(!1),[m,h]=w.useState(null),[v,p]=w.useState(!1),[y,x]=w.useState(!1),{addToast:E,selectedProjectId:j,globalModeLoading:H}=Gt(),{data:O,loading:K,error:Z,refetch:q}=Yt(cp,[j],{enabled:!H}),G=O??[],X=async()=>{if(m){x(!0);try{const B=await vp(m.name);E({title:"PRD Queued",message:B.message,type:"success"}),h(null),q()}catch(B){E({title:"Retry Failed",message:B instanceof Error?B.message:"Failed to retry PRD",type:"error"})}finally{x(!1)}}},Y=B=>{B.preventDefault(),r(!1)},L=async()=>{p(!0);try{const B=await dp();E({title:"Executor Started",message:B.pid?`Started with PID ${B.pid}`:"Executor started",type:"success"})}catch(B){E({title:"Executor Failed",message:B instanceof Error?B.message:"Failed to start executor",type:"error"})}finally{p(!1)}};return K?u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading PRDs..."})}):Z?u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load PRDs"}),u.jsx("div",{className:"text-sm text-slate-500",children:Z.message}),u.jsx(je,{onClick:()=>q(),children:"Retry"})]}):u.jsxs("div",{className:"space-y-6 h-[calc(100vh-8rem)] flex flex-col",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx(je,{variant:s==="list"?"secondary":"ghost",size:"icon",onClick:()=>o("list"),children:u.jsx(Y0,{className:"h-4 w-4"})}),u.jsx(je,{variant:s==="card"?"secondary":"ghost",size:"icon",onClick:()=>o("card"),children:u.jsx(zy,{className:"h-4 w-4"})}),u.jsx("div",{className:"h-6 w-px bg-slate-800 mx-2"}),u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("span",{className:"px-3 py-1 bg-slate-800 text-slate-200 rounded-full text-xs font-medium cursor-pointer border border-slate-700",children:"All"}),u.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"Ready"}),u.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"In Progress"})]})]}),u.jsxs("div",{className:"flex items-center space-x-3",children:[u.jsxs(je,{variant:"outline",size:"sm",children:[u.jsx(Wg,{className:"h-4 w-4 mr-2"}),"Sort"]}),u.jsxs(je,{onClick:()=>r(!0),size:"sm",children:[u.jsx(Ly,{className:"h-4 w-4 mr-2"}),"New PRD"]})]})]}),u.jsx("div",{className:"flex-1 overflow-y-auto pr-1 pb-10",children:s==="list"?u.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:u.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[u.jsx("thead",{className:"bg-slate-950/50",children:u.jsxs("tr",{children:[u.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Name"}),u.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Status"}),u.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Dependencies"}),u.jsx("th",{scope:"col",className:"relative px-6 py-3",children:u.jsx("span",{className:"sr-only",children:"Actions"})})]})}),u.jsxs("tbody",{className:"divide-y divide-slate-800",children:[G.map(B=>u.jsxs("tr",{className:"hover:bg-slate-800/50 group cursor-pointer transition-colors",onClick:()=>h(B),children:[u.jsxs("td",{className:"px-6 py-4",children:[u.jsx("div",{className:"text-sm font-medium text-slate-200",children:B.name}),B.unmetDependencies.length>0&&u.jsxs("div",{className:"text-xs text-amber-400 mt-1",children:["Blocked by: ",B.unmetDependencies.join(", ")]})]}),u.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:u.jsx(Va,{variant:Fc[B.status],children:Wc[B.status]})}),u.jsx("td",{className:"px-6 py-4",children:B.dependencies.length>0?u.jsx("div",{className:"flex flex-wrap gap-1",children:B.dependencies.map(I=>u.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:I},I))}):u.jsx("span",{className:"text-sm text-slate-600",children:"None"})}),u.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium",children:u.jsx("button",{className:"text-slate-500 hover:text-slate-300 opacity-0 group-hover:opacity-100 transition-opacity",children:u.jsx(yy,{className:"h-4 w-4"})})})]},B.name)),G.length===0&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"px-6 py-12 text-center text-slate-500",children:"No PRDs found. Create your first PRD to get started."})})]})]})}):u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[G.map(B=>u.jsxs(He,{className:"p-5 flex flex-col h-full hover:border-indigo-500/50 transition-colors",onClick:()=>h(B),children:[u.jsxs("div",{className:"flex justify-between items-start mb-4",children:[u.jsx(Va,{variant:Fc[B.status],children:Wc[B.status]}),B.status==="in-progress"&&u.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full animate-pulse"}),B.status==="pending-review"&&u.jsx("div",{className:"h-2 w-2 bg-yellow-500 rounded-full animate-pulse"})]}),u.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-2",children:B.name}),B.content&&u.jsx("p",{className:"text-sm text-slate-400 flex-1 line-clamp-3",children:B.content.replace(/^#.*\n/,"")}),u.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-800",children:[B.dependencies.length>0&&u.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:B.dependencies.map(I=>u.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:I},I))}),B.unmetDependencies.length>0&&u.jsxs("div",{className:"text-xs text-amber-400",children:["Blocked by: ",B.unmetDependencies.join(", ")]})]})]},B.name)),G.length===0&&u.jsx("div",{className:"col-span-full text-center py-12 text-slate-500",children:"No PRDs found. Create your first PRD to get started."})]})}),u.jsx(wp,{isOpen:f,onClose:()=>r(!1),title:"Create New PRD",children:u.jsxs("form",{onSubmit:Y,className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Name"}),u.jsx("input",{type:"text",className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 placeholder:text-slate-600",placeholder:"e.g. User Authentication"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Complexity"}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("input",{type:"range",min:"1",max:"10",className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),u.jsx("span",{className:"text-sm font-bold text-slate-300 w-16 text-center",children:"MED"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Phases"}),u.jsx("input",{type:"number",defaultValue:3,min:1,max:10,className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Template"}),u.jsxs("select",{className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[u.jsx("option",{children:"Default"}),u.jsx("option",{children:"Feature"}),u.jsx("option",{children:"Bugfix"})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Dependencies"}),u.jsxs("div",{className:"bg-slate-950/30 p-3 rounded-md border border-slate-800 max-h-32 overflow-y-auto space-y-2",children:[G.map(B=>u.jsxs("label",{className:"flex items-center space-x-2 text-sm text-slate-300 cursor-pointer",children:[u.jsx("input",{type:"checkbox",className:"rounded border-slate-600 bg-slate-800 text-indigo-500 focus:ring-indigo-500/50 focus:ring-offset-slate-900"}),u.jsx("span",{children:B.name})]},B.name)),G.length===0&&u.jsx("p",{className:"text-sm text-slate-600 italic",children:"No existing PRDs"})]})]}),u.jsxs("div",{className:"flex justify-end pt-4 space-x-3",children:[u.jsx(je,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),u.jsx(je,{type:"submit",children:"Create PRD"})]})]})}),m&&u.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[u.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:()=>h(null)}),u.jsxs("div",{className:"relative w-full max-w-xl bg-slate-900 h-full shadow-2xl flex flex-col transform transition-transform animate-in slide-in-from-right duration-300 border-l border-slate-800",children:[u.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800",children:[u.jsx("h2",{className:"text-lg font-bold text-slate-100 line-clamp-1",children:m.name}),u.jsx("button",{onClick:()=>h(null),className:"p-2 hover:bg-slate-800 rounded-full",children:u.jsx(Y0,{className:"h-5 w-5 text-slate-500"})})]}),u.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6 space-y-6",children:[u.jsx("div",{className:"flex items-center space-x-4",children:u.jsx(Va,{variant:Fc[m.status],className:"text-sm px-3 py-1",children:Wc[m.status]})}),m.content&&u.jsxs("div",{className:"prose prose-sm prose-invert max-w-none",children:[u.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider mb-2",children:"Description"}),u.jsx("div",{className:"whitespace-pre-wrap text-slate-300 bg-slate-950/50 p-4 rounded-lg border border-slate-800 font-mono text-sm",children:m.content})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider",children:"Dependencies"}),m.dependencies.length?u.jsx("div",{className:"flex flex-wrap gap-2",children:m.dependencies.map(B=>u.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-300 text-xs rounded border border-slate-700",children:B},B))}):u.jsx("p",{className:"text-sm text-slate-500 italic",children:"No dependencies."}),m.unmetDependencies.length>0&&u.jsx("div",{className:"mt-2",children:u.jsxs("p",{className:"text-sm text-amber-400",children:["Unmet dependencies: ",m.unmetDependencies.join(", ")]})})]})]}),u.jsx("div",{className:"p-4 border-t border-slate-800 bg-slate-900 flex space-x-3",children:m.status==="done"?u.jsxs(je,{className:"flex-1",onClick:X,disabled:y,children:[u.jsx(ym,{className:"h-4 w-4 mr-2"}),y?"Moving...":"Retry"]}):u.jsxs(je,{className:"flex-1",onClick:L,disabled:v||m.status==="in-progress",children:[u.jsx($n,{className:"h-4 w-4 mr-2"}),v?"Executing...":"Execute Now"]})})]})]})]})},Tp=()=>{const[s,o]=w.useState(null),[f,r]=w.useState(!1),[m,h]=w.useState("all"),[v,p]=w.useState("number"),[y,x]=w.useState("desc"),{addToast:E,selectedProjectId:j,globalModeLoading:H}=Gt(),{data:O,loading:K,error:Z,refetch:q}=Yt(rp,[j],{enabled:!H}),G=O??[],X=Q=>{switch(Q){case"pass":return u.jsx(Jn,{className:"h-4 w-4 text-green-500"});case"fail":return u.jsx(tr,{className:"h-4 w-4 text-red-500"});case"pending":return u.jsx(xm,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return u.jsx(qt,{className:"h-4 w-4 text-slate-500"})}},Y=w.useMemo(()=>G.filter(Q=>{switch(m){case"needs-work":return Q.ciStatus==="fail"||Q.reviewScore===0;case"pending":return Q.ciStatus==="pending"||Q.ciStatus==="unknown"||Q.reviewScore===null;case"passed":return Q.ciStatus==="pass"&&Q.reviewScore===100;case"all":default:return!0}}),[G,m]),L=w.useMemo(()=>[...Y].sort((te,ye)=>{let _e=0;switch(v){case"number":_e=te.number-ye.number;break;case"title":_e=te.title.localeCompare(ye.title);break;case"branch":_e=te.branch.localeCompare(ye.branch);break;case"ciStatus":{const De={fail:0,pending:1,unknown:2,pass:3};_e=(De[te.ciStatus]??2)-(De[ye.ciStatus]??2);break}case"reviewScore":{const De=te.reviewScore??-1,St=ye.reviewScore??-1;_e=De-St;break}}return y==="asc"?_e:-_e}),[Y,v,y]),B=Q=>{v===Q?x(y==="asc"?"desc":"asc"):(p(Q),x("desc"))},I=Q=>v!==Q?u.jsx(Jg,{className:"h-3 w-3 text-slate-600"}):y==="asc"?u.jsx(Pg,{className:"h-3 w-3 text-indigo-400"}):u.jsx(Vg,{className:"h-3 w-3 text-indigo-400"});if(K)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(Z)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),u.jsx("div",{className:"text-sm text-slate-500",children:Z.message}),u.jsx(je,{onClick:()=>q(),children:"Retry"})]});const F=async()=>{r(!0);try{const Q=await mp();E({title:"Reviewer Started",message:Q.pid?`Started with PID ${Q.pid}`:"Reviewer started",type:"success"})}catch(Q){E({title:"Reviewer Failed",message:Q instanceof Error?Q.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("button",{onClick:()=>h("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="all"?"bg-slate-800 text-slate-200 border-slate-700":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"All"}),u.jsx("button",{onClick:()=>h("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="needs-work"?"bg-red-900/50 text-red-300 border-red-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Needs Work"}),u.jsx("button",{onClick:()=>h("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="pending"?"bg-amber-900/50 text-amber-300 border-amber-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Pending"}),u.jsx("button",{onClick:()=>h("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="passed"?"bg-green-900/50 text-green-300 border-green-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Passed"})]}),u.jsxs(je,{size:"sm",onClick:F,disabled:f,children:[u.jsx(mr,{className:"h-4 w-4 mr-2"}),f?"Starting...":"Run Reviewer Now"]})]}),u.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:u.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[u.jsx("thead",{className:"bg-slate-950/50",children:u.jsxs("tr",{children:[u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>B("number"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"Title"}),I("number")]})}),u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>B("branch"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"Branch"}),I("branch")]})}),u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>B("ciStatus"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"CI Status"}),I("ciStatus")]})}),u.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>B("reviewScore"),children:u.jsxs("div",{className:"flex items-center space-x-1",children:[u.jsx("span",{children:"Review Score"}),I("reviewScore")]})}),u.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),u.jsxs("tbody",{className:"divide-y divide-slate-800",children:[L.map(Q=>u.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>o(s===Q.number?null:Q.number),children:[u.jsx("td",{className:"px-6 py-4",children:u.jsxs("div",{className:"flex items-center",children:[u.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",Q.number]}),u.jsx("span",{className:"font-medium text-slate-200",children:Q.title})]})}),u.jsx("td",{className:"px-6 py-4",children:u.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:Q.branch})}),u.jsx("td",{className:"px-6 py-4",children:u.jsxs("div",{className:"flex items-center space-x-2",children:[X(Q.ciStatus),u.jsx("span",{className:"text-sm capitalize text-slate-400",children:Q.ciStatus})]})}),u.jsx("td",{className:"px-6 py-4",children:Q.reviewScore!==null?u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:u.jsx("div",{className:`h-full ${Q.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${Q.reviewScore}%`}})}),u.jsx("span",{className:`text-sm font-bold ${Q.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Q.reviewScore})]}):u.jsx("span",{className:"text-slate-600 text-sm",children:"—"})}),u.jsx("td",{className:"px-6 py-4 text-right",children:u.jsx("a",{href:Q.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:te=>te.stopPropagation(),children:u.jsx(by,{className:"h-4 w-4"})})})]},Q.number)),L.length===0&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:G.length===0?"No open PRs found.":`No PRs match the "${m}" filter.`})})]})]})}),s&&u.jsx(He,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const Q=G.find(te=>te.number===s);return Q?u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"font-bold text-slate-200",children:Q.title}),u.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",u.jsx("span",{className:"font-mono",children:Q.branch})]})]}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),u.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[X(Q.ciStatus),u.jsx("span",{className:"text-sm capitalize text-slate-300",children:Q.ciStatus})]})]}),Q.reviewScore!==null&&u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),u.jsx("div",{className:`text-xl font-bold mt-1 ${Q.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Q.reviewScore})]})]})]}):null})()})]})},ql=Dt.forwardRef(({className:s="",label:o,error:f,helperText:r,rightIcon:m,...h},v)=>u.jsxs("div",{className:"w-full",children:[o&&u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),u.jsxs("div",{className:"relative",children:[u.jsx("input",{ref:v,className:`
|
|
325
|
+
w-full rounded-lg bg-slate-950 border border-slate-800
|
|
326
|
+
px-3 py-2 text-sm text-slate-200
|
|
327
|
+
placeholder:text-slate-600
|
|
328
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
329
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
330
|
+
transition-all duration-200
|
|
331
|
+
${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
332
|
+
${m?"pr-10":""}
|
|
333
|
+
${s}
|
|
334
|
+
`,...h}),m&&u.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:m})]}),f?u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?u.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));ql.displayName="Input";const hr=Dt.forwardRef(({className:s="",label:o,error:f,helperText:r,options:m,value:h,onChange:v,children:p,...y},x)=>{const E=j=>{v&&v(j.target.value),y.onChange&&y.onChange(j)};return u.jsxs("div",{className:"w-full",children:[o&&u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),u.jsxs("div",{className:"relative",children:[u.jsx("select",{ref:x,className:`
|
|
335
|
+
w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
|
|
336
|
+
px-3 py-2 pr-10 text-sm text-slate-200
|
|
337
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
338
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
339
|
+
transition-all duration-200
|
|
340
|
+
${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
341
|
+
${s}
|
|
342
|
+
`,value:h,onChange:E,...y,children:m?m.map(j=>u.jsx("option",{value:j.value,children:j.label},j.value)):p}),u.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:u.jsx(iy,{className:"h-4 w-4"})})]}),f?u.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?u.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});hr.displayName="Select";const xr=[{label:"Every 30 minutes",value:"*/30 * * * *"},{label:"Every hour",value:"0 * * * *"},{label:"Every 3 hours",value:"0 */3 * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Every 12 hours",value:"0 */12 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Daily at 9 AM",value:"0 9 * * *"},{label:"Weekdays at 9 AM",value:"0 9 * * 1-5"},{label:"Custom",value:"__custom__"}];function Pc(s){const o=s.trim().split(/\s+/);if(o.length!==5)return s;const[f,r,m,h,v]=o,p=xr.find(y=>y.value===s);return p?p.label:f==="*/30"&&r==="*"?"Every 30 minutes":f==="0"&&r==="*"?"Every hour":f.startsWith("*/")?`Every ${parseInt(f.replace("*/",""),10)} minutes`:f==="0"&&r.startsWith("*/")?`Every ${parseInt(r.replace("*/",""),10)} hours`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="*"?`Daily at ${Z0(r)}`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&v==="1-5"?`Weekdays at ${Z0(r)}`:s}function Z0(s){const o=parseInt(s,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function _p(s){const o=xr.find(f=>f.value===s);return(o==null?void 0:o.value)??"__custom__"}function zp(s){const o=new Date,f=s.getTime()-o.getTime(),r=Math.floor(f/6e4),m=Math.floor(r/60),h=Math.floor(m/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:m<24?`in ${m} hour${m>1?"s":""}`:`in ${h} day${h>1?"s":""}`}function Mp(s){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return s.toLocaleDateString("en-US",o)}function Ap(s){const o=new Date,f=s.getTime()-o.getTime(),r=Math.floor(f/6e4);return r>=0&&r<30}const Cp=()=>{const{addToast:s,selectedProjectId:o,globalModeLoading:f}=Gt(),[r,m]=w.useState(!1),[h,v]=w.useState(!1),[p,y]=w.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:x,loading:E,error:j,refetch:H}=Yt(wm,[o],{enabled:!f}),{data:O,loading:K,refetch:Z}=Yt(Nm,[o],{enabled:!f});w.useEffect(()=>{const te=setInterval(()=>{H()},3e4);return()=>clearInterval(te)},[H]),w.useEffect(()=>{O&&!p.isEditing&&y({executorSchedule:O.cronSchedule,reviewerSchedule:O.reviewerSchedule,isEditing:!1})},[O,p.isEditing]);const q=async()=>{if(x){m(!0);try{x.paused?(await Q0(),s({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await hp(),s({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),H()}catch(te){s({title:"Action Failed",message:te instanceof Error?te.message:"Failed to toggle schedule state",type:"error"})}finally{m(!1)}}},G=()=>{O&&y({executorSchedule:O.cronSchedule,reviewerSchedule:O.reviewerSchedule,isEditing:!0})},X=()=>{O&&y({executorSchedule:O.cronSchedule,reviewerSchedule:O.reviewerSchedule,isEditing:!1})},Y=async()=>{if(O){v(!0);try{await Em({cronSchedule:p.executorSchedule,reviewerSchedule:p.reviewerSchedule}),await Q0(),s({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),y(te=>({...te,isEditing:!1})),Z(),H()}catch(te){s({title:"Save Failed",message:te instanceof Error?te.message:"Failed to save schedules",type:"error"})}finally{v(!1)}}},L=(te,ye)=>{if(!te)return u.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const _e=new Date(te),De=Ap(_e);return u.jsxs("div",{className:"flex items-center space-x-2",children:[De&&u.jsxs("span",{className:"relative flex h-3 w-3",children:[u.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),u.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),u.jsxs("div",{className:"text-sm",children:[u.jsx("span",{className:"text-slate-200 font-medium",children:zp(_e)}),u.jsxs("span",{className:"text-slate-500 ml-2",children:["(",Mp(_e),")"]})]})]})},B=(te,ye,_e,De)=>{const St=_p(ye),Ut=St==="__custom__";return u.jsxs("div",{className:`space-y-3 ${De?"opacity-50 pointer-events-none":""}`,children:[u.jsx("div",{className:"flex items-center space-x-3",children:u.jsx(hr,{label:`${te} Preset`,options:xr,value:St,onChange:et=>{et!=="__custom__"&&_e(et)},className:"flex-1"})}),Ut&&u.jsx(ql,{label:"Custom Cron Expression",value:ye,onChange:et=>_e(et.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),u.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",u.jsx("span",{className:"text-slate-200",children:Pc(ye)})]})]})};if(E||K)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(j||!x||!O)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),u.jsx("div",{className:"text-sm text-slate-500",children:(j==null?void 0:j.message)||"Unknown error"}),u.jsx(je,{onClick:()=>{H(),Z()},children:"Retry"})]});const I=x.paused,F=I?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",Q=I?"Paused":"Active";return u.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"})}),u.jsx(He,{className:`p-6 border-2 ${F}`,children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx(pu,{className:"h-8 w-8"}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),u.jsx("div",{className:"text-2xl font-bold",children:Q})]})]}),u.jsx(je,{variant:I?"primary":"outline",size:"lg",onClick:q,loading:r,children:I?u.jsxs(u.Fragment,{children:[u.jsx($n,{className:"h-5 w-5 mr-2"}),"Resume"]}):u.jsxs(u.Fragment,{children:[u.jsx(gm,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),!p.isEditing&&u.jsxs(je,{variant:"ghost",size:"sm",onClick:G,children:[u.jsx(Vy,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),p.isEditing?B("Executor",p.executorSchedule,te=>y(ye=>({...ye,executorSchedule:te}))):u.jsx(u.Fragment,{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),u.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Pc(O.cronSchedule)}),u.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:O.cronSchedule})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),L(x.executor.nextRun,O.cronSchedule)]}),u.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.executor.installed?"text-green-400":"text-amber-400"}`,children:[u.jsx($c,{className:"h-4 w-4"}),u.jsx("span",{children:x.executor.installed?"Installed":"Not installed"})]})]})})]}),u.jsxs(He,{className:`p-6 ${O.reviewerEnabled?"":"opacity-50"}`,children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!O.reviewerEnabled&&u.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),p.isEditing?B("Reviewer",p.reviewerSchedule,te=>y(ye=>({...ye,reviewerSchedule:te})),!O.reviewerEnabled):u.jsx(u.Fragment,{children:u.jsx("div",{className:"space-y-4",children:O.reviewerEnabled?u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),u.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Pc(O.reviewerSchedule)}),u.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:O.reviewerSchedule})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),L(x.reviewer.nextRun,O.reviewerSchedule)]}),u.jsxs("div",{className:`flex items-center space-x-2 text-sm ${x.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[u.jsx($c,{className:"h-4 w-4"}),u.jsx("span",{children:x.reviewer.installed?"Installed":"Not installed"})]})]}):u.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[u.jsx(yu,{className:"h-5 w-5 text-slate-400"}),u.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),x.entries.length===0?u.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):u.jsx("div",{className:"space-y-2",children:x.entries.map((te,ye)=>u.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:te},ye))})]}),p.isEditing&&u.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[u.jsx(je,{variant:"ghost",onClick:X,children:"Cancel"}),u.jsxs(je,{onClick:Y,loading:h,children:[u.jsx($c,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},Dp=()=>{const[s,o]=w.useState(!0),[f,r]=w.useState(""),[m,h]=w.useState("executor"),v=w.useRef(null),{selectedProjectId:p,globalModeLoading:y}=Gt(),{data:x,loading:E,error:j,refetch:H}=Yt(()=>op(m,500),[m,p],{enabled:!y}),{data:O}=Yt(Sm,[p],{enabled:!y}),K=(x==null?void 0:x.lines)||[];w.useEffect(()=>{s&&v.current&&(v.current.scrollTop=v.current.scrollHeight)},[K,s]),w.useEffect(()=>{if(!s)return;const X=window.setInterval(()=>{H()},3e3);return()=>window.clearInterval(X)},[s,m,H]);const Z=K.filter(X=>X.toLowerCase().includes(f.toLowerCase())),q=X=>{h(X),r("")},G=X=>{if(!(O!=null&&O.processes))return!1;const Y=O.processes.find(L=>L.name===X);return(Y==null?void 0:Y.running)??!1};return j?u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),u.jsx("div",{className:"text-sm text-slate-500",children:j.message}),u.jsx(je,{onClick:()=>H(),children:"Retry"})]}):u.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsxs("div",{className:"relative group",children:[u.jsx("input",{type:"text",placeholder:"Filter logs...",className:"pl-9 pr-4 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent w-64 placeholder:text-slate-600",value:f,onChange:X=>r(X.target.value)}),u.jsx(mr,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),u.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),u.jsxs("div",{className:"flex space-x-1",children:[u.jsx("button",{onClick:()=>q("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="executor"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("span",{children:"Executor"}),G("executor")&&u.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),u.jsx("button",{onClick:()=>q("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="reviewer"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsx("span",{children:"Reviewer"}),G("reviewer")&&u.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),u.jsxs("div",{className:"flex items-center space-x-2",children:[u.jsxs(je,{size:"sm",variant:"ghost",onClick:()=>H(),children:[u.jsx(q0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),u.jsxs(je,{size:"sm",variant:"ghost",onClick:()=>o(!s),children:[s?u.jsx(gm,{className:"h-4 w-4 mr-2"}):u.jsx($n,{className:"h-4 w-4 mr-2"}),s?"Pause":"Resume"]})]})]}),u.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[u.jsxs("div",{className:"bg-slate-950/50 backdrop-blur text-xs text-slate-500 px-4 py-1.5 flex justify-between border-b border-slate-800",children:[u.jsxs("span",{children:["File: ",m,".log"]}),u.jsxs("span",{children:[Z.length," lines"]})]}),u.jsxs("div",{ref:v,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[E?u.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):Z.length===0?u.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:f?"No logs match your filter":"No logs yet — logs will appear after the first run"}):Z.map((X,Y)=>{const L=X.includes("[ERROR]"),B=X.includes("[WARN]");return u.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${L?"text-red-400":B?"text-amber-400":"text-slate-300"}`,children:[u.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:Y+1}),X]},Y)}),s&&u.jsx("div",{className:"h-4"})," "]}),!s&&u.jsxs("div",{className:"absolute bottom-4 right-4 bg-indigo-600 text-white px-3 py-1.5 rounded-full shadow-lg shadow-indigo-900/40 text-xs font-medium flex items-center cursor-pointer hover:bg-indigo-500 transition-colors",onClick:()=>o(!0),children:[u.jsx(q0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Op=({tabs:s,activeTab:o,onChange:f,className:r=""})=>{var y,x;const[m,h]=Dt.useState((y=s[0])==null?void 0:y.id),v=o||m,p=E=>{f?f(E):h(E)};return u.jsxs("div",{className:`flex flex-col ${r}`,children:[u.jsx("div",{className:"border-b border-slate-800 mb-6",children:u.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:s.map(E=>u.jsx("button",{onClick:()=>p(E.id),className:`
|
|
343
|
+
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
344
|
+
${v===E.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
345
|
+
`,children:E.label},E.id))})}),u.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(x=s.find(E=>E.id===v))==null?void 0:x.content})]})},vr=Dt.forwardRef(({className:s="",label:o,checked:f,onChange:r,...m},h)=>{const v=p=>{r&&r(p.target.checked)};return u.jsxs("label",{className:`inline-flex items-center cursor-pointer ${s}`,children:[u.jsxs("div",{className:"relative",children:[u.jsx("input",{type:"checkbox",className:"sr-only peer",ref:h,checked:f,onChange:v,...m}),u.jsx("div",{className:"w-11 h-6 bg-slate-800 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-indigo-500/50 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-slate-400 after:border-slate-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600 peer-checked:after:bg-white peer-disabled:opacity-50 peer-disabled:cursor-not-allowed"})]}),o&&u.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});vr.displayName="Switch";const V0=s=>({provider:s.provider,defaultBranch:s.defaultBranch,branchPrefix:s.branchPrefix,reviewerEnabled:s.reviewerEnabled,minReviewScore:s.minReviewScore,maxRuntime:s.maxRuntime,reviewerMaxRuntime:s.reviewerMaxRuntime,maxLogSize:s.maxLogSize}),Up=()=>{const{addToast:s,projectName:o,selectedProjectId:f,globalModeLoading:r}=Gt(),[m,h]=Dt.useState(!1),[v,p]=Dt.useState(null),{data:y,loading:x,error:E,refetch:j}=Yt(Nm,[f],{enabled:!r}),{data:H,loading:O,refetch:K}=Yt(fp,[f],{enabled:!r}),Z=H??[];Dt.useEffect(()=>{y&&p(V0(y))},[y]);const q=(L,B)=>{p(I=>I&&{...I,[L]:B})},G=async()=>{if(v){h(!0);try{await Em({provider:v.provider,defaultBranch:v.defaultBranch,branchPrefix:v.branchPrefix,reviewerEnabled:v.reviewerEnabled,minReviewScore:v.minReviewScore,maxRuntime:v.maxRuntime,reviewerMaxRuntime:v.reviewerMaxRuntime,maxLogSize:v.maxLogSize}),s({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),j(),K()}catch(L){s({title:"Save Failed",message:L instanceof Error?L.message:"Failed to save configuration",type:"error"})}finally{h(!1)}}},X=()=>{y&&(p(V0(y)),s({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))};if(x||!v)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(E)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),u.jsx("div",{className:"text-sm text-slate-500",children:E.message}),u.jsx(je,{onClick:()=>j(),children:"Retry"})]});const Y=[{id:"general",label:"General",content:u.jsxs(He,{className:"p-6 space-y-4",children:[u.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(ql,{label:"Project Name",value:o,disabled:!0}),u.jsx(hr,{label:"Provider",value:v.provider,onChange:L=>q("provider",L),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),u.jsx(ql,{label:"Default Branch",value:v.defaultBranch,onChange:L=>q("defaultBranch",L.target.value)}),u.jsx(ql,{label:"Branch Prefix",value:v.branchPrefix,onChange:L=>q("branchPrefix",L.target.value)}),u.jsx("div",{className:"md:col-span-2",children:u.jsx(vr,{label:"Enable Automated Reviews",checked:v.reviewerEnabled,onChange:L=>q("reviewerEnabled",L)})})]})]})},{id:"runtime",label:"Runtime",content:u.jsxs(He,{className:"p-6 space-y-6",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx("input",{type:"range",min:"0",max:"100",value:v.minReviewScore,onChange:L=>q("minReviewScore",Number(L.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),u.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:v.minReviewScore})]}),u.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[u.jsx(ql,{label:"Max Runtime (Executor)",type:"number",value:String(v.maxRuntime),onChange:L=>q("maxRuntime",Number(L.target.value||0)),rightIcon:u.jsx("span",{className:"text-xs",children:"sec"})}),u.jsx(ql,{label:"Max Runtime (Reviewer)",type:"number",value:String(v.reviewerMaxRuntime),onChange:L=>q("reviewerMaxRuntime",Number(L.target.value||0)),rightIcon:u.jsx("span",{className:"text-xs",children:"sec"})}),u.jsx(ql,{label:"Max Log Size",type:"number",value:String(v.maxLogSize),onChange:L=>q("maxLogSize",Number(L.target.value||0)),rightIcon:u.jsx("span",{className:"text-xs",children:"bytes"})})]})]})},{id:"env",label:"Provider Env",content:u.jsx(He,{className:"p-6",children:u.jsx("div",{className:"space-y-2",children:Object.entries(y.providerEnv).length===0?u.jsx("p",{className:"text-slate-400 text-sm",children:"No provider environment variables configured."}):Object.entries(y.providerEnv).map(([L,B])=>u.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[u.jsx("span",{className:"text-sm font-mono text-slate-300",children:L}),u.jsx("span",{className:"text-sm text-slate-500",children:B})]},L))})})}];return u.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[u.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),u.jsx(Op,{tabs:Y}),u.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[u.jsxs(je,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:X,children:[u.jsx(ym,{className:"h-4 w-4 mr-2"}),"Reset"]}),u.jsxs(je,{onClick:G,loading:m,children:[u.jsx(Gy,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),u.jsxs("div",{className:"mt-12",children:[u.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[u.jsx(mm,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),u.jsx(He,{className:"divide-y divide-slate-800",children:O?u.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):Z.map((L,B)=>{const I=L.status==="pass",F=L.status==="warn",Q=I?"bg-green-500/10 text-green-400 border-green-500/20":F?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return u.jsxs("div",{className:"p-4 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-medium text-slate-200",children:L.name}),u.jsx("p",{className:"text-xs text-slate-500",children:L.detail})]}),u.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${Q}`,children:L.status.toUpperCase()})]},`${L.name}-${B}`)})})]})]})},Hp=()=>{const{addToast:s,selectedProjectId:o,globalModeLoading:f}=Gt(),[r,m]=w.useState(!1),[h,v]=w.useState(!1),{data:p,loading:y,error:x,refetch:E}=Yt(gp,[o],{enabled:!f});w.useEffect(()=>{if(!(p!=null&&p.enabled))return;const X=setInterval(()=>{E()},1e4);return()=>clearInterval(X)},[p==null?void 0:p.enabled,E]);const j=async X=>{v(!0);try{await pp(X),s({title:X?"Scanner Enabled":"Scanner Disabled",message:X?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:X?"success":"info"}),E()}catch(Y){s({title:"Toggle Failed",message:Y instanceof Error?Y.message:"Failed to toggle scanner",type:"error"})}finally{v(!1)}},H=async()=>{m(!0);try{const X=await yp();X.created.length>0?s({title:"Scan Complete",message:`Created ${X.created.length} PRD(s): ${X.created.join(", ")}`,type:"success"}):s({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),X.errors.length>0&&s({title:"Scan Errors",message:X.errors.join("; "),type:"warning"}),E()}catch(X){s({title:"Scan Failed",message:X instanceof Error?X.message:"Failed to scan roadmap",type:"error"})}finally{m(!1)}};if(y)return u.jsx("div",{className:"flex items-center justify-center h-full",children:u.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(x)return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[u.jsx(qt,{className:"h-12 w-12 text-red-400"}),u.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),u.jsx("div",{className:"text-sm text-slate-500",children:x.message}),u.jsx(je,{onClick:()=>E(),children:"Retry"})]});if(!p)return null;if(p.status==="no-roadmap")return u.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[u.jsx("div",{className:"flex items-center justify-between",children:u.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),u.jsx(He,{className:"p-12",children:u.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[u.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:u.jsx(vm,{className:"h-10 w-10 text-slate-500"})}),u.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),u.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",u.jsx("code",{className:"text-indigo-400 bg-indigo-500/10 px-1.5 py-0.5 rounded text-sm",children:"ROADMAP.md"})," in your project root with checklist items (",u.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",u.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const O=p.totalItems>0?Math.round(p.processedItems/p.totalItems*100):0,K=Lp(p.status),Z=qp(p.items),q=p.lastScan?Yp(p.lastScan):"Never",G=p.autoScanInterval?Math.round(p.autoScanInterval/60):5;return u.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx(vr,{label:p.enabled?"Enabled":"Disabled",checked:p.enabled,onChange:j,disabled:h}),u.jsxs(je,{onClick:H,loading:r,disabled:!p.enabled||p.status==="complete",children:[u.jsx($n,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),u.jsx(He,{className:`p-6 border-2 ${K.borderColor}`,children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center space-x-4",children:[u.jsx(K.icon,{className:`h-8 w-8 ${K.textColor}`}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),u.jsx("div",{className:`text-2xl font-bold ${K.textColor}`,children:K.label})]})]}),u.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[u.jsxs("div",{children:["Last scan: ",u.jsx("span",{className:"text-slate-300",children:q})]}),p.enabled&&p.status!=="complete"&&u.jsxs("div",{children:["Auto-scan: ",u.jsxs("span",{className:"text-slate-300",children:["every ",G," min"]})]}),p.enabled&&p.status==="complete"&&u.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),u.jsxs(He,{className:"p-6",children:[u.jsxs("div",{className:"flex items-center justify-between mb-3",children:[u.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),u.jsxs("span",{className:"text-sm text-slate-400",children:[p.processedItems," / ",p.totalItems," items (",O,"%)"]})]}),u.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:u.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${O===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${O}%`}})})]}),Object.entries(Z).map(([X,Y])=>u.jsxs(He,{className:"p-6",children:[u.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:X}),u.jsx("div",{className:"space-y-2",children:Y.map(L=>u.jsx(Bp,{item:L},L.hash))})]},X))]})};function Bp({item:s}){const o=s.checked,f=s.processed;return u.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${o?"bg-slate-950/30 border-slate-800/50":f?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[u.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?u.jsx(Oy,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):f?u.jsx(Jn,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):u.jsx(hm,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("div",{className:`text-sm font-medium truncate ${o?"line-through text-slate-600":"text-slate-200"}`,children:s.title}),s.description&&u.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:s.description})]})]}),u.jsx("div",{className:"flex-shrink-0 ml-3",children:o?u.jsx(Va,{variant:"neutral",children:"Skipped"}):f?u.jsx(Va,{variant:"success",children:s.prdFile||"Processed"}):u.jsx(Va,{variant:"warning",children:"Pending"})})]})}function Lp(s){switch(s){case"complete":return{label:"Complete",icon:Jn,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:pu,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:$n,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:qt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:qt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function qp(s){const o={};for(const f of s){const r=f.section||"General";o[r]||(o[r]=[]),o[r].push(f)}return o}function Yp(s){try{const o=new Date(s),r=new Date().getTime()-o.getTime(),m=Math.floor(r/6e4);if(m<1)return"Just now";if(m<60)return`${m} min ago`;const h=Math.floor(m/60);return h<24?`${h} hr ago`:`${Math.floor(h/24)} day(s) ago`}catch{return"Unknown"}}const Gp=({toast:s,onDismiss:o})=>{const f={success:u.jsx(Jn,{className:"h-5 w-5 text-green-400"}),error:u.jsx(qt,{className:"h-5 w-5 text-red-400"}),info:u.jsx(Ty,{className:"h-5 w-5 text-blue-400"}),warning:u.jsx($y,{className:"h-5 w-5 text-amber-400"})},r={success:"border-l-green-500",error:"border-l-red-500",info:"border-l-blue-500",warning:"border-l-amber-500"};return u.jsx("div",{className:`
|
|
346
|
+
pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
|
|
347
|
+
bg-slate-900 border border-slate-800 border-l-4 ${r[s.type]}
|
|
348
|
+
shadow-lg ring-1 ring-black ring-opacity-5 transition-all
|
|
349
|
+
animate-in slide-in-from-right-full fade-in duration-300
|
|
350
|
+
`,children:u.jsx("div",{className:"p-4",children:u.jsxs("div",{className:"flex items-start",children:[u.jsx("div",{className:"flex-shrink-0",children:f[s.type]}),u.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[u.jsx("p",{className:"text-sm font-medium text-slate-200",children:s.title}),s.message&&u.jsx("p",{className:"mt-1 text-sm text-slate-400",children:s.message})]}),u.jsx("div",{className:"ml-4 flex flex-shrink-0",children:u.jsxs("button",{type:"button",className:"inline-flex rounded-md text-slate-400 hover:text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",onClick:()=>o(s.id),children:[u.jsx("span",{className:"sr-only",children:"Close"}),u.jsx(bm,{className:"h-5 w-5"})]})})]})})})},Xp=()=>{const{toasts:s,removeToast:o}=Gt();return u.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex flex-col items-end px-4 py-6 sm:items-end sm:p-6 z-[100] gap-4",children:s.map(f=>u.jsx(Gp,{toast:f,onDismiss:o},f.id))})};function Qp(){const{setGlobalMode:s,setGlobalModeLoading:o,setProjects:f,selectProject:r,selectedProjectId:m}=Gt();w.useEffect(()=>{o(!0),sp().then(h=>{s(!0),f(h);const v=h.filter(p=>p.valid);m&&v.some(p=>p.name===m)?r(m):v.length>0&&r(v[0].name)}).catch(()=>{s(!1)}).finally(()=>{o(!1)})},[])}const Zp=()=>(Qp(),u.jsx(Tg,{children:u.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[u.jsx("div",{className:"absolute top-0 left-0 w-full h-96 bg-indigo-900/10 rounded-full blur-[120px] -translate-y-1/2 pointer-events-none z-0"}),u.jsx(jp,{}),u.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[u.jsx(Sp,{}),u.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:u.jsx("div",{className:"max-w-7xl mx-auto w-full",children:u.jsxs(ag,{children:[u.jsx(fl,{path:"/",element:u.jsx(Ep,{})}),u.jsx(fl,{path:"/prds",element:u.jsx(Rp,{})}),u.jsx(fl,{path:"/prs",element:u.jsx(Tp,{})}),u.jsx(fl,{path:"/scheduling",element:u.jsx(Cp,{})}),u.jsx(fl,{path:"/logs",element:u.jsx(Dp,{})}),u.jsx(fl,{path:"/roadmap",element:u.jsx(Hp,{})}),u.jsx(fl,{path:"/settings",element:u.jsx(Up,{})}),u.jsx(fl,{path:"*",element:u.jsx(tg,{to:"/",replace:!0})})]})})})]}),u.jsx(Xp,{})]})})),Rm=document.getElementById("root");if(!Rm)throw new Error("Could not find root element to mount to");const Vp=iv.createRoot(Rm);Vp.render(u.jsx(Dt.StrictMode,{children:u.jsx(Zp,{})}));
|