@jonit-dev/night-watch-cli 1.7.55 → 1.7.56
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 +2 -0
- package/dist/scripts/night-watch-helpers.sh +22 -8
- package/dist/scripts/night-watch-pr-reviewer-cron.sh +123 -18
- package/dist/scripts/night-watch-qa-cron.sh +13 -8
- package/dist/web/assets/index-BqwbXsHS.js +365 -0
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const x of h)if(x.type==="childList")for(const f of x.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function d(h){const x={};return h.integrity&&(x.integrity=h.integrity),h.referrerPolicy&&(x.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?x.credentials="include":h.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function r(h){if(h.ep)return;h.ep=!0;const x=d(h);fetch(h.href,x)}})();function Jm(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Ic={exports:{}},$n={};/**
|
|
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 Rm;function uv(){if(Rm)return $n;Rm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(r,h,x){var f=null;if(x!==void 0&&(f=""+x),h.key!==void 0&&(f=""+h.key),"key"in h){x={};for(var b in h)b!=="key"&&(x[b]=h[b])}else x=h;return h=x.ref,{$$typeof:u,type:r,key:f,ref:h!==void 0?h:null,props:x}}return $n.Fragment=o,$n.jsx=d,$n.jsxs=d,$n}var Tm;function cv(){return Tm||(Tm=1,Ic.exports=uv()),Ic.exports}var s=cv(),er={exports:{}},re={};/**
|
|
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 Mm;function rv(){if(Mm)return re;Mm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),f=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),O=Symbol.iterator;function X(S){return S===null||typeof S!="object"?null:(S=O&&S[O]||S["@@iterator"],typeof S=="function"?S:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,U={};function k(S,B,K){this.props=S,this.context=B,this.refs=U,this.updater=K||T}k.prototype.isReactComponent={},k.prototype.setState=function(S,B){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,B,"setState")},k.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function G(){}G.prototype=k.prototype;function Y(S,B,K){this.props=S,this.context=B,this.refs=U,this.updater=K||T}var ae=Y.prototype=new G;ae.constructor=Y,g(ae,k.prototype),ae.isPureReactComponent=!0;var de=Array.isArray;function Q(){}var $={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function ce(S,B,K){var F=K.ref;return{$$typeof:u,type:S,key:B,ref:F!==void 0?F:null,props:K}}function Z(S,B){return ce(S.type,B,S.props)}function De(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function R(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(K){return B[K]})}var ee=/\/+/g;function be(S,B){return typeof S=="object"&&S!==null&&S.key!=null?R(""+S.key):B.toString(36)}function W(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Q,Q):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function A(S,B,K,F,J){var ie=typeof S;(ie==="undefined"||ie==="boolean")&&(S=null);var me=!1;if(S===null)me=!0;else switch(ie){case"bigint":case"string":case"number":me=!0;break;case"object":switch(S.$$typeof){case u:case o:me=!0;break;case N:return me=S._init,A(me(S._payload),B,K,F,J)}}if(me)return J=J(S),me=F===""?"."+be(S,0):F,de(J)?(K="",me!=null&&(K=me.replace(ee,"$&/")+"/"),A(J,B,K,"",function(Ia){return Ia})):J!=null&&(De(J)&&(J=Z(J,K+(J.key==null||S&&S.key===J.key?"":(""+J.key).replace(ee,"$&/")+"/")+me)),B.push(J)),1;me=0;var Qe=F===""?".":F+":";if(de(S))for(var Re=0;Re<S.length;Re++)F=S[Re],ie=Qe+be(F,Re),me+=A(F,B,K,ie,J);else if(Re=X(S),typeof Re=="function")for(S=Re.call(S),Re=0;!(F=S.next()).done;)F=F.value,ie=Qe+be(F,Re++),me+=A(F,B,K,ie,J);else if(ie==="object"){if(typeof S.then=="function")return A(W(S),B,K,F,J);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return me}function V(S,B,K){if(S==null)return S;var F=[],J=0;return A(S,F,"","",function(ie){return B.call(K,ie,J++)}),F}function te(S){if(S._status===-1){var B=S._result;B=B(),B.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=B)}if(S._status===1)return S._result.default;throw S._result}var je=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=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(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Se={map:V,forEach:function(S,B,K){V(S,function(){B.apply(this,arguments)},K)},count:function(S){var B=0;return V(S,function(){B++}),B},toArray:function(S){return V(S,function(B){return B})||[]},only:function(S){if(!De(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return re.Activity=j,re.Children=Se,re.Component=k,re.Fragment=d,re.Profiler=h,re.PureComponent=Y,re.StrictMode=r,re.Suspense=p,re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,re.__COMPILER_RUNTIME={__proto__:null,c:function(S){return $.H.useMemoCache(S)}},re.cache=function(S){return function(){return S.apply(null,arguments)}},re.cacheSignal=function(){return null},re.cloneElement=function(S,B,K){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var F=g({},S.props),J=S.key;if(B!=null)for(ie in B.key!==void 0&&(J=""+B.key),B)!ne.call(B,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&B.ref===void 0||(F[ie]=B[ie]);var ie=arguments.length-2;if(ie===1)F.children=K;else if(1<ie){for(var me=Array(ie),Qe=0;Qe<ie;Qe++)me[Qe]=arguments[Qe+2];F.children=me}return ce(S.type,J,F)},re.createContext=function(S){return S={$$typeof:f,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:x,_context:S},S},re.createElement=function(S,B,K){var F,J={},ie=null;if(B!=null)for(F in B.key!==void 0&&(ie=""+B.key),B)ne.call(B,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(J[F]=B[F]);var me=arguments.length-2;if(me===1)J.children=K;else if(1<me){for(var Qe=Array(me),Re=0;Re<me;Re++)Qe[Re]=arguments[Re+2];J.children=Qe}if(S&&S.defaultProps)for(F in me=S.defaultProps,me)J[F]===void 0&&(J[F]=me[F]);return ce(S,ie,J)},re.createRef=function(){return{current:null}},re.forwardRef=function(S){return{$$typeof:b,render:S}},re.isValidElement=De,re.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:te}},re.memo=function(S,B){return{$$typeof:v,type:S,compare:B===void 0?null:B}},re.startTransition=function(S){var B=$.T,K={};$.T=K;try{var F=S(),J=$.S;J!==null&&J(K,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(Q,je)}catch(ie){je(ie)}finally{B!==null&&K.types!==null&&(B.types=K.types),$.T=B}},re.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},re.use=function(S){return $.H.use(S)},re.useActionState=function(S,B,K){return $.H.useActionState(S,B,K)},re.useCallback=function(S,B){return $.H.useCallback(S,B)},re.useContext=function(S){return $.H.useContext(S)},re.useDebugValue=function(){},re.useDeferredValue=function(S,B){return $.H.useDeferredValue(S,B)},re.useEffect=function(S,B){return $.H.useEffect(S,B)},re.useEffectEvent=function(S){return $.H.useEffectEvent(S)},re.useId=function(){return $.H.useId()},re.useImperativeHandle=function(S,B,K){return $.H.useImperativeHandle(S,B,K)},re.useInsertionEffect=function(S,B){return $.H.useInsertionEffect(S,B)},re.useLayoutEffect=function(S,B){return $.H.useLayoutEffect(S,B)},re.useMemo=function(S,B){return $.H.useMemo(S,B)},re.useOptimistic=function(S,B){return $.H.useOptimistic(S,B)},re.useReducer=function(S,B,K){return $.H.useReducer(S,B,K)},re.useRef=function(S){return $.H.useRef(S)},re.useState=function(S){return $.H.useState(S)},re.useSyncExternalStore=function(S,B,K){return $.H.useSyncExternalStore(S,B,K)},re.useTransition=function(){return $.H.useTransition()},re.version="19.2.4",re}var _m;function hr(){return _m||(_m=1,er.exports=rv()),er.exports}var C=hr();const Le=Jm(C);var tr={exports:{}},Kn={},lr={exports:{}},ar={};/**
|
|
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 Am;function ov(){return Am||(Am=1,(function(u){function o(A,V){var te=A.length;A.push(V);e:for(;0<te;){var je=te-1>>>1,Se=A[je];if(0<h(Se,V))A[je]=V,A[te]=Se,te=je;else break e}}function d(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var V=A[0],te=A.pop();if(te!==V){A[0]=te;e:for(var je=0,Se=A.length,S=Se>>>1;je<S;){var B=2*(je+1)-1,K=A[B],F=B+1,J=A[F];if(0>h(K,te))F<Se&&0>h(J,K)?(A[je]=J,A[F]=te,je=F):(A[je]=K,A[B]=te,je=B);else if(F<Se&&0>h(J,te))A[je]=J,A[F]=te,je=F;else break e}}return V}function h(A,V){var te=A.sortIndex-V.sortIndex;return te!==0?te:A.id-V.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;u.unstable_now=function(){return x.now()}}else{var f=Date,b=f.now();u.unstable_now=function(){return f.now()-b}}var p=[],v=[],N=1,j=null,O=3,X=!1,T=!1,g=!1,U=!1,k=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function ae(A){for(var V=d(v);V!==null;){if(V.callback===null)r(v);else if(V.startTime<=A)r(v),V.sortIndex=V.expirationTime,o(p,V);else break;V=d(v)}}function de(A){if(g=!1,ae(A),!T)if(d(p)!==null)T=!0,Q||(Q=!0,R());else{var V=d(v);V!==null&&W(de,V.startTime-A)}}var Q=!1,$=-1,ne=5,ce=-1;function Z(){return U?!0:!(u.unstable_now()-ce<ne)}function De(){if(U=!1,Q){var A=u.unstable_now();ce=A;var V=!0;try{e:{T=!1,g&&(g=!1,G($),$=-1),X=!0;var te=O;try{t:{for(ae(A),j=d(p);j!==null&&!(j.expirationTime>A&&Z());){var je=j.callback;if(typeof je=="function"){j.callback=null,O=j.priorityLevel;var Se=je(j.expirationTime<=A);if(A=u.unstable_now(),typeof Se=="function"){j.callback=Se,ae(A),V=!0;break t}j===d(p)&&r(p),ae(A)}else r(p);j=d(p)}if(j!==null)V=!0;else{var S=d(v);S!==null&&W(de,S.startTime-A),V=!1}}break e}finally{j=null,O=te,X=!1}V=void 0}}finally{V?R():Q=!1}}}var R;if(typeof Y=="function")R=function(){Y(De)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,be=ee.port2;ee.port1.onmessage=De,R=function(){be.postMessage(null)}}else R=function(){k(De,0)};function W(A,V){$=k(function(){A(u.unstable_now())},V)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(A){A.callback=null},u.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"):ne=0<A?Math.floor(1e3/A):5},u.unstable_getCurrentPriorityLevel=function(){return O},u.unstable_next=function(A){switch(O){case 1:case 2:case 3:var V=3;break;default:V=O}var te=O;O=V;try{return A()}finally{O=te}},u.unstable_requestPaint=function(){U=!0},u.unstable_runWithPriority=function(A,V){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var te=O;O=A;try{return V()}finally{O=te}},u.unstable_scheduleCallback=function(A,V,te){var je=u.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?je+te:je):te=je,A){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=te+Se,A={id:N++,callback:V,priorityLevel:A,startTime:te,expirationTime:Se,sortIndex:-1},te>je?(A.sortIndex=te,o(v,A),d(p)===null&&A===d(v)&&(g?(G($),$=-1):g=!0,W(de,te-je))):(A.sortIndex=Se,o(p,A),T||X||(T=!0,Q||(Q=!0,R()))),A},u.unstable_shouldYield=Z,u.unstable_wrapCallback=function(A){var V=O;return function(){var te=O;O=V;try{return A.apply(this,arguments)}finally{O=te}}}})(ar)),ar}var zm;function dv(){return zm||(zm=1,lr.exports=ov()),lr.exports}var nr={exports:{}},it={};/**
|
|
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 Dm;function fv(){if(Dm)return it;Dm=1;var u=hr();function o(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)v+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var r={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},h=Symbol.for("react.portal");function x(p,v,N){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:j==null?null:""+j,children:p,containerInfo:v,implementation:N}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,it.createPortal=function(p,v){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(o(299));return x(p,v,null,N)},it.flushSync=function(p){var v=f.T,N=r.p;try{if(f.T=null,r.p=2,p)return p()}finally{f.T=v,r.p=N,r.d.f()}},it.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(p,v))},it.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},it.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var N=v.as,j=b(N,v.crossOrigin),O=typeof v.integrity=="string"?v.integrity:void 0,X=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;N==="style"?r.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:j,integrity:O,fetchPriority:X}):N==="script"&&r.d.X(p,{crossOrigin:j,integrity:O,fetchPriority:X,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},it.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var N=b(v.as,v.crossOrigin);r.d.M(p,{crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(p)},it.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var N=v.as,j=b(N,v.crossOrigin);r.d.L(p,N,{crossOrigin:j,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},it.preloadModule=function(p,v){if(typeof p=="string")if(v){var N=b(v.as,v.crossOrigin);r.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(p)},it.requestFormReset=function(p){r.d.r(p)},it.unstable_batchedUpdates=function(p,v){return p(v)},it.useFormState=function(p,v,N){return f.H.useFormState(p,v,N)},it.useFormStatus=function(){return f.H.useHostTransitionStatus()},it.version="19.2.4",it}var Om;function mv(){if(Om)return nr.exports;Om=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),nr.exports=fv(),nr.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 Um;function hv(){if(Um)return Kn;Um=1;var u=dv(),o=hr(),d=mv();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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(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 f(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 b(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 p(e){if(x(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=x(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 p(n),e;if(i===a)return p(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,m=n.child;m;){if(m===l){c=!0,l=n,a=i;break}if(m===a){c=!0,a=n,l=i;break}m=m.sibling}if(!c){for(m=i.child;m;){if(m===l){c=!0,l=i,a=n;break}if(m===a){c=!0,a=i,l=n;break}m=m.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 N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,O=Symbol.for("react.element"),X=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),De=Symbol.iterator;function R(e){return e===null||typeof e!="object"?null:(e=De&&e[De]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function be(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case g:return"Fragment";case k:return"Profiler";case U:return"StrictMode";case de:return"Suspense";case Q:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case Y:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:be(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return be(e(t))}catch{}}return null}var W=Array.isArray,A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},je=[],Se=-1;function S(e){return{current:e}}function B(e){0>Se||(e.current=je[Se],je[Se]=null,Se--)}function K(e,t){Se++,je[Se]=e.current,e.current=t}var F=S(null),J=S(null),ie=S(null),me=S(null);function Qe(e,t){switch(K(ie,t),K(J,e),K(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wf(t),e=Ff(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(F),K(F,e)}function Re(){B(F),B(J),B(ie)}function Ia(e){e.memoizedState!==null&&K(me,e);var t=F.current,l=Ff(t,e.type);t!==l&&(K(J,e),K(F,l))}function ss(e){J.current===e&&(B(F),B(J)),me.current===e&&(B(me),Qn._currentValue=te)}var Ui,Er;function Xl(e){if(Ui===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ui=t&&t[1]||"",Er=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ui+e+Er}var Hi=!1;function qi(e,t){if(!e||Hi)return"";Hi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(D){var z=D}Reflect.construct(e,[],L)}else{try{L.call()}catch(D){z=D}e.call(L.prototype)}}else{try{throw Error()}catch(D){z=D}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.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],m=i[1];if(c&&m){var y=c.split(`
|
|
44
|
+
`),_=m.split(`
|
|
45
|
+
`);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===_.length)for(a=y.length-1,n=_.length-1;1<=a&&0<=n&&y[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==_[n]){var H=`
|
|
46
|
+
`+y[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=n);break}}}finally{Hi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Xl(l):""}function L0(e,t){switch(e.tag){case 26:case 27:case 5:return Xl(e.type);case 16:return Xl("Lazy");case 13:return e.child!==t&&t!==null?Xl("Suspense Fallback"):Xl("Suspense");case 19:return Xl("SuspenseList");case 0:case 15:return qi(e.type,!1);case 11:return qi(e.type.render,!1);case 1:return qi(e.type,!0);case 31:return Xl("Activity");default:return""}}function wr(e){try{var t="",l=null;do t+=L0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Li=Object.prototype.hasOwnProperty,Bi=u.unstable_scheduleCallback,Yi=u.unstable_cancelCallback,B0=u.unstable_shouldYield,Y0=u.unstable_requestPaint,vt=u.unstable_now,k0=u.unstable_getCurrentPriorityLevel,Cr=u.unstable_ImmediatePriority,Rr=u.unstable_UserBlockingPriority,is=u.unstable_NormalPriority,G0=u.unstable_LowPriority,Tr=u.unstable_IdlePriority,Q0=u.log,X0=u.unstable_setDisableYieldValue,en=null,pt=null;function pl(e){if(typeof Q0=="function"&&X0(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(en,e)}catch{}}var gt=Math.clz32?Math.clz32:$0,V0=Math.log,Z0=Math.LN2;function $0(e){return e>>>=0,e===0?32:31-(V0(e)/Z0|0)|0}var us=256,cs=262144,rs=4194304;function Vl(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 os(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 m=a&134217727;return m!==0?(a=m&~i,a!==0?n=Vl(a):(c&=m,c!==0?n=Vl(c):l||(l=m&~e,l!==0&&(n=Vl(l))))):(m=a&~i,m!==0?n=Vl(m):c!==0?n=Vl(c):l||(l=a&~e,l!==0&&(n=Vl(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 tn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function K0(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 Mr(){var e=rs;return rs<<=1,(rs&62914560)===0&&(rs=4194304),e}function ki(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function J0(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 m=e.entanglements,y=e.expirationTimes,_=e.hiddenUpdates;for(l=c&~l;0<l;){var H=31-gt(l),L=1<<H;m[H]=0,y[H]=-1;var z=_[H];if(z!==null)for(_[H]=null,H=0;H<z.length;H++){var D=z[H];D!==null&&(D.lane&=-536870913)}l&=~L}a!==0&&_r(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function _r(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ar(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-gt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function zr(e,t){var l=t&-t;return l=(l&42)!==0?1:Gi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Gi(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 Qi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Dr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:ym(e.type))}function Or(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var gl=Math.random().toString(36).slice(2),tt="__reactFiber$"+gl,rt="__reactProps$"+gl,da="__reactContainer$"+gl,Xi="__reactEvents$"+gl,W0="__reactListeners$"+gl,F0="__reactHandles$"+gl,Ur="__reactResources$"+gl,an="__reactMarker$"+gl;function Vi(e){delete e[tt],delete e[rt],delete e[Xi],delete e[W0],delete e[F0]}function fa(e){var t=e[tt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[da]||l[tt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=nm(e);e!==null;){if(l=e[tt])return l;e=nm(e)}return t}e=l,l=e.parentNode}return null}function ma(e){if(e=e[tt]||e[da]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ha(e){var t=e[Ur];return t||(t=e[Ur]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[an]=!0}var Hr=new Set,qr={};function Zl(e,t){xa(e,t),xa(e+"Capture",t)}function xa(e,t){for(qr[e]=t,e=0;e<t.length;e++)Hr.add(t[e])}var P0=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]*$"),Lr={},Br={};function I0(e){return Li.call(Br,e)?!0:Li.call(Lr,e)?!1:P0.test(e)?Br[e]=!0:(Lr[e]=!0,!1)}function ds(e,t,l){if(I0(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 fs(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 Wt(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 Mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eh(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 Zi(e){if(!e._valueTracker){var t=Yr(e)?"checked":"value";e._valueTracker=eh(e,t,""+e[t])}}function kr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Yr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ms(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 th=/[\n"\\]/g;function _t(e){return e.replace(th,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function $i(e,t,l,a,n,i,c,m){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=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ki(e,c,Mt(t)):l!=null?Ki(e,c,Mt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+Mt(m):e.removeAttribute("name")}function Gr(e,t,l,a,n,i,c,m){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)){Zi(e);return}l=l!=null?""+Mt(l):"",t=t!=null?""+Mt(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Zi(e)}function Ki(e,t,l){t==="number"&&ms(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function va(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=""+Mt(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 Qr(e,t,l){if(t!=null&&(t=""+Mt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Mt(l):""}function Xr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(W(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Mt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Zi(e)}function pa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var lh=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 Vr(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||lh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zr(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&&Vr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Vr(e,i,t[i])}function Ji(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 ah=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"]]),nh=/^[\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 hs(e){return nh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ft(){}var Wi=null;function Fi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ga=null,ba=null;function $r(e){var t=ma(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if($i(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="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(r(90));$i(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&&kr(a)}break e;case"textarea":Qr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&va(e,!!l.multiple,t,!1)}}}var Pi=!1;function Kr(e,t,l){if(Pi)return e(t,l);Pi=!0;try{var a=e(t);return a}finally{if(Pi=!1,(ga!==null||ba!==null)&&(ti(),ga&&(t=ga,e=ba,ba=ga=null,$r(t),e)))for(t=0;t<e.length;t++)$r(e[t])}}function sn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||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 Pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ii=!1;if(Pt)try{var un={};Object.defineProperty(un,"passive",{get:function(){Ii=!0}}),window.addEventListener("test",un,un),window.removeEventListener("test",un,un)}catch{Ii=!1}var bl=null,eu=null,xs=null;function Jr(){if(xs)return xs;var e,t=eu,l=t.length,a,n="value"in bl?bl.value:bl.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 xs=n.slice(e,1<a?1-a:void 0)}function vs(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 ps(){return!0}function Wr(){return!1}function ot(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 m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ps:Wr,this.isPropagationStopped=Wr,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=ps)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ps)},persist:function(){},isPersistent:ps}),t}var $l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gs=ot($l),cn=j({},$l,{view:0,detail:0}),sh=ot(cn),tu,lu,rn,bs=j({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nu,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!==rn&&(rn&&e.type==="mousemove"?(tu=e.screenX-rn.screenX,lu=e.screenY-rn.screenY):lu=tu=0,rn=e),tu)},movementY:function(e){return"movementY"in e?e.movementY:lu}}),Fr=ot(bs),ih=j({},bs,{dataTransfer:0}),uh=ot(ih),ch=j({},cn,{relatedTarget:0}),au=ot(ch),rh=j({},$l,{animationName:0,elapsedTime:0,pseudoElement:0}),oh=ot(rh),dh=j({},$l,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),fh=ot(dh),mh=j({},$l,{data:0}),Pr=ot(mh),hh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xh={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"},vh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ph(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vh[e])?!!t[e]:!1}function nu(){return ph}var gh=j({},cn,{key:function(e){if(e.key){var t=hh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nu,charCode:function(e){return e.type==="keypress"?vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bh=ot(gh),yh=j({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ir=ot(yh),jh=j({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nu}),Nh=ot(jh),Sh=j({},$l,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eh=ot(Sh),wh=j({},bs,{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}),Ch=ot(wh),Rh=j({},$l,{newState:0,oldState:0}),Th=ot(Rh),Mh=[9,13,27,32],su=Pt&&"CompositionEvent"in window,on=null;Pt&&"documentMode"in document&&(on=document.documentMode);var _h=Pt&&"TextEvent"in window&&!on,eo=Pt&&(!su||on&&8<on&&11>=on),to=" ",lo=!1;function ao(e,t){switch(e){case"keyup":return Mh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function no(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ya=!1;function Ah(e,t){switch(e){case"compositionend":return no(t);case"keypress":return t.which!==32?null:(lo=!0,to);case"textInput":return e=t.data,e===to&&lo?null:e;default:return null}}function zh(e,t){if(ya)return e==="compositionend"||!su&&ao(e,t)?(e=Jr(),xs=eu=bl=null,ya=!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 eo&&t.locale!=="ko"?null:t.data;default:return null}}var Dh={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 so(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dh[e.type]:t==="textarea"}function io(e,t,l,a){ga?ba?ba.push(a):ba=[a]:ga=a,t=ci(t,"onChange"),0<t.length&&(l=new gs("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var dn=null,fn=null;function Oh(e){Xf(e,0)}function ys(e){var t=nn(e);if(kr(t))return e}function uo(e,t){if(e==="change")return t}var co=!1;if(Pt){var iu;if(Pt){var uu="oninput"in document;if(!uu){var ro=document.createElement("div");ro.setAttribute("oninput","return;"),uu=typeof ro.oninput=="function"}iu=uu}else iu=!1;co=iu&&(!document.documentMode||9<document.documentMode)}function oo(){dn&&(dn.detachEvent("onpropertychange",fo),fn=dn=null)}function fo(e){if(e.propertyName==="value"&&ys(fn)){var t=[];io(t,fn,e,Fi(e)),Kr(Oh,t)}}function Uh(e,t,l){e==="focusin"?(oo(),dn=t,fn=l,dn.attachEvent("onpropertychange",fo)):e==="focusout"&&oo()}function Hh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ys(fn)}function qh(e,t){if(e==="click")return ys(t)}function Lh(e,t){if(e==="input"||e==="change")return ys(t)}function Bh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Bh;function mn(e,t){if(bt(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(!Li.call(t,n)||!bt(e[n],t[n]))return!1}return!0}function mo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ho(e,t){var l=mo(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=mo(l)}}function xo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ms(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=ms(e.document)}return t}function cu(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 Yh=Pt&&"documentMode"in document&&11>=document.documentMode,ja=null,ru=null,hn=null,ou=!1;function po(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ou||ja==null||ja!==ms(a)||(a=ja,"selectionStart"in a&&cu(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}),hn&&mn(hn,a)||(hn=a,a=ci(ru,"onSelect"),0<a.length&&(t=new gs("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ja)))}function Kl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Na={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionrun:Kl("Transition","TransitionRun"),transitionstart:Kl("Transition","TransitionStart"),transitioncancel:Kl("Transition","TransitionCancel"),transitionend:Kl("Transition","TransitionEnd")},du={},go={};Pt&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete Na.animationend.animation,delete Na.animationiteration.animation,delete Na.animationstart.animation),"TransitionEvent"in window||delete Na.transitionend.transition);function Jl(e){if(du[e])return du[e];if(!Na[e])return e;var t=Na[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in go)return du[e]=t[l];return e}var bo=Jl("animationend"),yo=Jl("animationiteration"),jo=Jl("animationstart"),kh=Jl("transitionrun"),Gh=Jl("transitionstart"),Qh=Jl("transitioncancel"),No=Jl("transitionend"),So=new Map,fu="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(" ");fu.push("scrollEnd");function kt(e,t){So.set(e,t),Zl(t,[e])}var js=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)},At=[],Sa=0,mu=0;function Ns(){for(var e=Sa,t=mu=Sa=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var n=At[t];At[t++]=null;var i=At[t];if(At[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&&Eo(l,n,i)}}function Ss(e,t,l,a){At[Sa++]=e,At[Sa++]=t,At[Sa++]=l,At[Sa++]=a,mu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function hu(e,t,l,a){return Ss(e,t,l,a),Es(e)}function Wl(e,t){return Ss(e,null,null,t),Es(e)}function Eo(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-gt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Es(e){if(50<Hn)throw Hn=0,Sc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ea={};function Xh(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 yt(e,t,l,a){return new Xh(e,t,l,a)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function It(e,t){var l=e.alternate;return l===null?(l=yt(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 wo(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 ws(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")xu(e)&&(c=1);else if(typeof e=="string")c=Jx(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=yt(31,l,t,n),e.elementType=ce,e.lanes=i,e;case g:return Fl(l.children,n,i,t);case U:c=8,n|=24;break;case k:return e=yt(12,l,t,n|2),e.elementType=k,e.lanes=i,e;case de:return e=yt(13,l,t,n),e.elementType=de,e.lanes=i,e;case Q:return e=yt(19,l,t,n),e.elementType=Q,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:c=10;break e;case G:c=9;break e;case ae:c=11;break e;case $:c=14;break e;case ne:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=yt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Fl(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function vu(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function Co(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function pu(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ro=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var l=Ro.get(e);return l!==void 0?l:(t={value:e,source:t,stack:wr(t)},Ro.set(e,t),t)}return{value:e,source:t,stack:wr(t)}}var wa=[],Ca=0,Cs=null,xn=0,Dt=[],Ot=0,yl=null,Xt=1,Vt="";function el(e,t){wa[Ca++]=xn,wa[Ca++]=Cs,Cs=e,xn=t}function To(e,t,l){Dt[Ot++]=Xt,Dt[Ot++]=Vt,Dt[Ot++]=yl,yl=e;var a=Xt;e=Vt;var n=32-gt(a)-1;a&=~(1<<n),l+=1;var i=32-gt(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Xt=1<<32-gt(t)+n|l<<n|a,Vt=i+e}else Xt=1<<i|l<<n|a,Vt=e}function gu(e){e.return!==null&&(el(e,1),To(e,1,0))}function bu(e){for(;e===Cs;)Cs=wa[--Ca],wa[Ca]=null,xn=wa[--Ca],wa[Ca]=null;for(;e===yl;)yl=Dt[--Ot],Dt[Ot]=null,Vt=Dt[--Ot],Dt[Ot]=null,Xt=Dt[--Ot],Dt[Ot]=null}function Mo(e,t){Dt[Ot++]=Xt,Dt[Ot++]=Vt,Dt[Ot++]=yl,Xt=t.id,Vt=t.overflow,yl=e}var lt=null,He=null,ye=!1,jl=null,Ut=!1,yu=Error(r(519));function Nl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vn(zt(t,e)),yu}function _o(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[tt]=e,t[rt]=a,l){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(l=0;l<Ln.length;l++)xe(Ln[l],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Gr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),Xr(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||Kf(t.textContent,l)?(a.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),a.onScroll!=null&&xe("scroll",t),a.onScrollEnd!=null&&xe("scrollend",t),a.onClick!=null&&(t.onclick=Ft),t=!0):t=!1,t||Nl(e,!0)}function Ao(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:lt=lt.return}}function Ra(e){if(e!==lt)return!1;if(!ye)return Ao(e),ye=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Lc(e.type,e.memoizedProps)),l=!l),l&&He&&Nl(e),Ao(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=am(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=am(e)}else t===27?(t=He,Hl(e.type)?(e=Qc,Qc=null,He=e):He=t):He=lt?qt(e.stateNode.nextSibling):null;return!0}function Pl(){He=lt=null,ye=!1}function ju(){var e=jl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),jl=null),e}function vn(e){jl===null?jl=[e]:jl.push(e)}var Nu=S(null),Il=null,tl=null;function Sl(e,t,l){K(Nu,t._currentValue),t._currentValue=l}function ll(e){e._currentValue=Nu.current,B(Nu)}function Su(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 Eu(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 m=i;i=n;for(var y=0;y<t.length;y++)if(m.context===t[y]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),Su(i.return,l,e),a||(c=null);break e}i=m.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),Su(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 Ta(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 m=n.type;bt(n.pendingProps.value,c.value)||(e!==null?e.push(m):e=[m])}}else if(n===me.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Qn):e=[Qn])}n=n.return}e!==null&&Eu(t,e,l,a),t.flags|=262144}function Rs(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Il=e,tl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return zo(Il,e)}function Ts(e,t){return Il===null&&ea(e),zo(e,t)}function zo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},tl===null){if(e===null)throw Error(r(308));tl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else tl=tl.next=t;return l}var Vh=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()})}},Zh=u.unstable_scheduleCallback,$h=u.unstable_NormalPriority,Ze={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wu(){return{controller:new Vh,data:new Map,refCount:0}}function pn(e){e.refCount--,e.refCount===0&&Zh($h,function(){e.controller.abort()})}var gn=null,Cu=0,Ma=0,_a=null;function Kh(e,t){if(gn===null){var l=gn=[];Cu=0,Ma=Mc(),_a={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Cu++,t.then(Do,Do),t}function Do(){if(--Cu===0&&gn!==null){_a!==null&&(_a.status="fulfilled");var e=gn;gn=null,Ma=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Jh(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 Oo=A.S;A.S=function(e,t){gf=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kh(e,t),Oo!==null&&Oo(e,t)};var ta=S(null);function Ru(){var e=ta.current;return e!==null?e:Oe.pooledCache}function Ms(e,t){t===null?K(ta,ta.current):K(ta,t.pool)}function Uo(){var e=Ru();return e===null?null:{parent:Ze._currentValue,pool:e}}var Aa=Error(r(460)),Tu=Error(r(474)),_s=Error(r(542)),As={then:function(){}};function Ho(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Ft,Ft),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bo(e),e;default:if(typeof t.status=="string")t.then(Ft,Ft);else{if(e=Oe,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,Bo(e),e}throw aa=t,Aa}}function la(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(aa=l,Aa):l}}var aa=null;function Lo(){if(aa===null)throw Error(r(459));var e=aa;return aa=null,e}function Bo(e){if(e===Aa||e===_s)throw Error(r(483))}var za=null,bn=0;function zs(e){var t=bn;return bn+=1,za===null&&(za=[]),qo(za,e,t)}function yn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ds(e,t){throw t.$$typeof===O?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yo(e){function t(w,E){if(e){var M=w.deletions;M===null?(w.deletions=[E],w.flags|=16):M.push(E)}}function l(w,E){if(!e)return null;for(;E!==null;)t(w,E),E=E.sibling;return null}function a(w){for(var E=new Map;w!==null;)w.key!==null?E.set(w.key,w):E.set(w.index,w),w=w.sibling;return E}function n(w,E){return w=It(w,E),w.index=0,w.sibling=null,w}function i(w,E,M){return w.index=M,e?(M=w.alternate,M!==null?(M=M.index,M<E?(w.flags|=67108866,E):M):(w.flags|=67108866,E)):(w.flags|=1048576,E)}function c(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function m(w,E,M,q){return E===null||E.tag!==6?(E=vu(M,w.mode,q),E.return=w,E):(E=n(E,M),E.return=w,E)}function y(w,E,M,q){var le=M.type;return le===g?H(w,E,M.props.children,q,M.key):E!==null&&(E.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ne&&la(le)===E.type)?(E=n(E,M.props),yn(E,M),E.return=w,E):(E=ws(M.type,M.key,M.props,null,w.mode,q),yn(E,M),E.return=w,E)}function _(w,E,M,q){return E===null||E.tag!==4||E.stateNode.containerInfo!==M.containerInfo||E.stateNode.implementation!==M.implementation?(E=pu(M,w.mode,q),E.return=w,E):(E=n(E,M.children||[]),E.return=w,E)}function H(w,E,M,q,le){return E===null||E.tag!==7?(E=Fl(M,w.mode,q,le),E.return=w,E):(E=n(E,M),E.return=w,E)}function L(w,E,M){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=vu(""+E,w.mode,M),E.return=w,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case X:return M=ws(E.type,E.key,E.props,null,w.mode,M),yn(M,E),M.return=w,M;case T:return E=pu(E,w.mode,M),E.return=w,E;case ne:return E=la(E),L(w,E,M)}if(W(E)||R(E))return E=Fl(E,w.mode,M,null),E.return=w,E;if(typeof E.then=="function")return L(w,zs(E),M);if(E.$$typeof===Y)return L(w,Ts(w,E),M);Ds(w,E)}return null}function z(w,E,M,q){var le=E!==null?E.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return le!==null?null:m(w,E,""+M,q);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case X:return M.key===le?y(w,E,M,q):null;case T:return M.key===le?_(w,E,M,q):null;case ne:return M=la(M),z(w,E,M,q)}if(W(M)||R(M))return le!==null?null:H(w,E,M,q,null);if(typeof M.then=="function")return z(w,E,zs(M),q);if(M.$$typeof===Y)return z(w,E,Ts(w,M),q);Ds(w,M)}return null}function D(w,E,M,q,le){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return w=w.get(M)||null,m(E,w,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case X:return w=w.get(q.key===null?M:q.key)||null,y(E,w,q,le);case T:return w=w.get(q.key===null?M:q.key)||null,_(E,w,q,le);case ne:return q=la(q),D(w,E,M,q,le)}if(W(q)||R(q))return w=w.get(M)||null,H(E,w,q,le,null);if(typeof q.then=="function")return D(w,E,M,zs(q),le);if(q.$$typeof===Y)return D(w,E,M,Ts(E,q),le);Ds(E,q)}return null}function P(w,E,M,q){for(var le=null,Ee=null,I=E,fe=E=0,pe=null;I!==null&&fe<M.length;fe++){I.index>fe?(pe=I,I=null):pe=I.sibling;var we=z(w,I,M[fe],q);if(we===null){I===null&&(I=pe);break}e&&I&&we.alternate===null&&t(w,I),E=i(we,E,fe),Ee===null?le=we:Ee.sibling=we,Ee=we,I=pe}if(fe===M.length)return l(w,I),ye&&el(w,fe),le;if(I===null){for(;fe<M.length;fe++)I=L(w,M[fe],q),I!==null&&(E=i(I,E,fe),Ee===null?le=I:Ee.sibling=I,Ee=I);return ye&&el(w,fe),le}for(I=a(I);fe<M.length;fe++)pe=D(I,w,fe,M[fe],q),pe!==null&&(e&&pe.alternate!==null&&I.delete(pe.key===null?fe:pe.key),E=i(pe,E,fe),Ee===null?le=pe:Ee.sibling=pe,Ee=pe);return e&&I.forEach(function(kl){return t(w,kl)}),ye&&el(w,fe),le}function se(w,E,M,q){if(M==null)throw Error(r(151));for(var le=null,Ee=null,I=E,fe=E=0,pe=null,we=M.next();I!==null&&!we.done;fe++,we=M.next()){I.index>fe?(pe=I,I=null):pe=I.sibling;var kl=z(w,I,we.value,q);if(kl===null){I===null&&(I=pe);break}e&&I&&kl.alternate===null&&t(w,I),E=i(kl,E,fe),Ee===null?le=kl:Ee.sibling=kl,Ee=kl,I=pe}if(we.done)return l(w,I),ye&&el(w,fe),le;if(I===null){for(;!we.done;fe++,we=M.next())we=L(w,we.value,q),we!==null&&(E=i(we,E,fe),Ee===null?le=we:Ee.sibling=we,Ee=we);return ye&&el(w,fe),le}for(I=a(I);!we.done;fe++,we=M.next())we=D(I,w,fe,we.value,q),we!==null&&(e&&we.alternate!==null&&I.delete(we.key===null?fe:we.key),E=i(we,E,fe),Ee===null?le=we:Ee.sibling=we,Ee=we);return e&&I.forEach(function(iv){return t(w,iv)}),ye&&el(w,fe),le}function ze(w,E,M,q){if(typeof M=="object"&&M!==null&&M.type===g&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case X:e:{for(var le=M.key;E!==null;){if(E.key===le){if(le=M.type,le===g){if(E.tag===7){l(w,E.sibling),q=n(E,M.props.children),q.return=w,w=q;break e}}else if(E.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===ne&&la(le)===E.type){l(w,E.sibling),q=n(E,M.props),yn(q,M),q.return=w,w=q;break e}l(w,E);break}else t(w,E);E=E.sibling}M.type===g?(q=Fl(M.props.children,w.mode,q,M.key),q.return=w,w=q):(q=ws(M.type,M.key,M.props,null,w.mode,q),yn(q,M),q.return=w,w=q)}return c(w);case T:e:{for(le=M.key;E!==null;){if(E.key===le)if(E.tag===4&&E.stateNode.containerInfo===M.containerInfo&&E.stateNode.implementation===M.implementation){l(w,E.sibling),q=n(E,M.children||[]),q.return=w,w=q;break e}else{l(w,E);break}else t(w,E);E=E.sibling}q=pu(M,w.mode,q),q.return=w,w=q}return c(w);case ne:return M=la(M),ze(w,E,M,q)}if(W(M))return P(w,E,M,q);if(R(M)){if(le=R(M),typeof le!="function")throw Error(r(150));return M=le.call(M),se(w,E,M,q)}if(typeof M.then=="function")return ze(w,E,zs(M),q);if(M.$$typeof===Y)return ze(w,E,Ts(w,M),q);Ds(w,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,E!==null&&E.tag===6?(l(w,E.sibling),q=n(E,M),q.return=w,w=q):(l(w,E),q=vu(M,w.mode,q),q.return=w,w=q),c(w)):l(w,E)}return function(w,E,M,q){try{bn=0;var le=ze(w,E,M,q);return za=null,le}catch(I){if(I===Aa||I===_s)throw I;var Ee=yt(29,I,null,w.mode);return Ee.lanes=q,Ee.return=w,Ee}finally{}}}var na=Yo(!0),ko=Yo(!1),El=!1;function Mu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _u(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 wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Cl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ce&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Es(e),Eo(e,null,l),t}return Ss(e,a,t,l),Es(e)}function jn(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,Ar(e,l)}}function Au(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 zu=!1;function Nn(){if(zu){var e=_a;if(e!==null)throw e}}function Sn(e,t,l,a){zu=!1;var n=e.updateQueue;El=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var y=m,_=y.next;y.next=null,c===null?i=_:c.next=_,c=y;var H=e.alternate;H!==null&&(H=H.updateQueue,m=H.lastBaseUpdate,m!==c&&(m===null?H.firstBaseUpdate=_:m.next=_,H.lastBaseUpdate=y))}if(i!==null){var L=n.baseState;c=0,H=_=y=null,m=i;do{var z=m.lane&-536870913,D=z!==m.lane;if(D?(ve&z)===z:(a&z)===z){z!==0&&z===Ma&&(zu=!0),H!==null&&(H=H.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var P=e,se=m;z=t;var ze=l;switch(se.tag){case 1:if(P=se.payload,typeof P=="function"){L=P.call(ze,L,z);break e}L=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=se.payload,z=typeof P=="function"?P.call(ze,L,z):P,z==null)break e;L=j({},L,z);break e;case 2:El=!0}}z=m.callback,z!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[z]:D.push(z))}else D={lane:z,tag:m.tag,payload:m.payload,callback:m.callback,next:null},H===null?(_=H=D,y=L):H=H.next=D,c|=z;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;D=m,m=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);H===null&&(y=L),n.baseState=y,n.firstBaseUpdate=_,n.lastBaseUpdate=H,i===null&&(n.shared.lanes=0),Al|=c,e.lanes=c,e.memoizedState=L}}function Go(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Qo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Go(l[e],t)}var Da=S(null),Os=S(0);function Xo(e,t){e=dl,K(Os,e),K(Da,t),dl=e|t.baseLanes}function Du(){K(Os,dl),K(Da,Da.current)}function Ou(){dl=Os.current,B(Da),B(Os)}var jt=S(null),Ht=null;function Rl(e){var t=e.alternate;K(Xe,Xe.current&1),K(jt,e),Ht===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(Ht=e)}function Uu(e){K(Xe,Xe.current),K(jt,e),Ht===null&&(Ht=e)}function Vo(e){e.tag===22?(K(Xe,Xe.current),K(jt,e),Ht===null&&(Ht=e)):Tl()}function Tl(){K(Xe,Xe.current),K(jt,jt.current)}function Nt(e){B(jt),Ht===e&&(Ht=null),B(Xe)}var Xe=S(0);function Us(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||kc(l)||Gc(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 al=0,oe=null,_e=null,$e=null,Hs=!1,Oa=!1,sa=!1,qs=0,En=0,Ua=null,Wh=0;function ke(){throw Error(r(321))}function Hu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!bt(e[l],t[l]))return!1;return!0}function qu(e,t,l,a,n,i){return al=i,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?Td:Pu,sa=!1,i=l(a,n),sa=!1,Oa&&(i=$o(t,l,a,n)),Zo(e),i}function Zo(e){A.H=Rn;var t=_e!==null&&_e.next!==null;if(al=0,$e=_e=oe=null,Hs=!1,En=0,Ua=null,t)throw Error(r(300));e===null||Ke||(e=e.dependencies,e!==null&&Rs(e)&&(Ke=!0))}function $o(e,t,l,a){oe=e;var n=0;do{if(Oa&&(Ua=null),En=0,Oa=!1,25<=n)throw Error(r(301));if(n+=1,$e=_e=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=Md,i=t(l,a)}while(Oa);return i}function Fh(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?wn(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(oe.flags|=1024),t}function Lu(){var e=qs!==0;return qs=0,e}function Bu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Yu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}al=0,$e=_e=oe=null,Oa=!1,En=qs=0,Ua=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?oe.memoizedState=$e=e:$e=$e.next=e,$e}function Ve(){if(_e===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=$e===null?oe.memoizedState:$e.next;if(t!==null)$e=t,_e=e;else{if(e===null)throw oe.alternate===null?Error(r(467)):Error(r(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},$e===null?oe.memoizedState=$e=e:$e=$e.next=e}return $e}function Ls(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wn(e){var t=En;return En+=1,Ua===null&&(Ua=[]),e=qo(Ua,e,t),t=oe,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?Td:Pu),e}function Bs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return wn(e);if(e.$$typeof===Y)return at(e)}throw Error(r(438,String(e)))}function ku(e){var t=null,l=oe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=oe.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=Ls(),oe.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]=Z;return t.index++,l}function nl(e,t){return typeof t=="function"?t(e):t}function Ys(e){var t=Ve();return Gu(t,_e,e)}function Gu(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 m=c=null,y=null,_=t,H=!1;do{var L=_.lane&-536870913;if(L!==_.lane?(ve&L)===L:(al&L)===L){var z=_.revertLane;if(z===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),L===Ma&&(H=!0);else if((al&z)===z){_=_.next,z===Ma&&(H=!0);continue}else L={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},y===null?(m=y=L,c=i):y=y.next=L,oe.lanes|=z,Al|=z;L=_.action,sa&&l(i,L),i=_.hasEagerState?_.eagerState:l(i,L)}else z={lane:L,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},y===null?(m=y=z,c=i):y=y.next=z,oe.lanes|=L,Al|=L;_=_.next}while(_!==null&&_!==t);if(y===null?c=i:y.next=m,!bt(i,e.memoizedState)&&(Ke=!0,H&&(l=_a,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=y,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Qu(e){var t=Ve(),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);bt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ko(e,t,l){var a=oe,n=Ve(),i=ye;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!bt((_e||n).memoizedState,l);if(c&&(n.memoizedState=l,Ke=!0),n=n.queue,Zu(Fo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||$e!==null&&$e.memoizedState.tag&1){if(a.flags|=2048,Ha(9,{destroy:void 0},Wo.bind(null,a,n,l,t),null),Oe===null)throw Error(r(349));i||(al&127)!==0||Jo(a,t,l)}return l}function Jo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=oe.updateQueue,t===null?(t=Ls(),oe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Wo(e,t,l,a){t.value=l,t.getSnapshot=a,Po(t)&&Io(e)}function Fo(e,t,l){return l(function(){Po(t)&&Io(e)})}function Po(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!bt(e,l)}catch{return!0}}function Io(e){var t=Wl(e,2);t!==null&&xt(t,e,2)}function Xu(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),sa){pl(!0);try{l()}finally{pl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:e},t}function ed(e,t,l,a){return e.baseState=l,Gu(e,_e,typeof a=="function"?a:nl)}function Ph(e,t,l,a,n){if(Qs(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,td(t,i)):(i.next=l.next,t.pending=l.next=i)}}function td(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 m=l(n,a),y=A.S;y!==null&&y(c,m),ld(e,t,m)}catch(_){Vu(e,t,_)}finally{i!==null&&c.types!==null&&(i.types=c.types),A.T=i}}else try{i=l(n,a),ld(e,t,i)}catch(_){Vu(e,t,_)}}function ld(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ad(e,t,a)},function(a){return Vu(e,t,a)}):ad(e,t,l)}function ad(e,t,l){t.status="fulfilled",t.value=l,nd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,td(e,l)))}function Vu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,nd(t),t=t.next;while(t!==a)}e.action=null}function nd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sd(e,t){return t}function id(e,t){if(ye){var l=Oe.formState;if(l!==null){e:{var a=oe;if(ye){if(He){t:{for(var n=He,i=Ut;n.nodeType!==8;){if(!i){n=null;break t}if(n=qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){He=qt(n.nextSibling),a=n.data==="F!";break e}}Nl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sd,lastRenderedState:t},l.queue=a,l=wd.bind(null,oe,a),a.dispatch=l,a=Xu(!1),i=Fu.bind(null,oe,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Ph.bind(null,oe,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function ud(e){var t=Ve();return cd(t,_e,e)}function cd(e,t,l){if(t=Gu(e,t,sd)[0],e=Ys(nl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=wn(t)}catch(c){throw c===Aa?_s:c}else a=t;t=Ve();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(oe.flags|=2048,Ha(9,{destroy:void 0},Ih.bind(null,n,l),null)),[a,i,e]}function Ih(e,t){e.action=t}function rd(e){var t=Ve(),l=_e;if(l!==null)return cd(t,l,e);Ve(),t=t.memoizedState,l=Ve();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ha(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=oe.updateQueue,t===null&&(t=Ls(),oe.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 od(){return Ve().memoizedState}function ks(e,t,l,a){var n=ct();oe.flags|=e,n.memoizedState=Ha(1|t,{destroy:void 0},l,a===void 0?null:a)}function Gs(e,t,l,a){var n=Ve();a=a===void 0?null:a;var i=n.memoizedState.inst;_e!==null&&a!==null&&Hu(a,_e.memoizedState.deps)?n.memoizedState=Ha(t,i,l,a):(oe.flags|=e,n.memoizedState=Ha(1|t,i,l,a))}function dd(e,t){ks(8390656,8,e,t)}function Zu(e,t){Gs(2048,8,e,t)}function ex(e){oe.flags|=4;var t=oe.updateQueue;if(t===null)t=Ls(),oe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function fd(e){var t=Ve().memoizedState;return ex({ref:t,nextImpl:e}),function(){if((Ce&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function md(e,t){return Gs(4,2,e,t)}function hd(e,t){return Gs(4,4,e,t)}function xd(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 vd(e,t,l){l=l!=null?l.concat([e]):null,Gs(4,4,xd.bind(null,t,e),l)}function $u(){}function pd(e,t){var l=Ve();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Hu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function gd(e,t){var l=Ve();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Hu(t,a[1]))return a[0];if(a=e(),sa){pl(!0);try{e()}finally{pl(!1)}}return l.memoizedState=[a,t],a}function Ku(e,t,l){return l===void 0||(al&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=yf(),oe.lanes|=e,Al|=e,l)}function bd(e,t,l,a){return bt(l,t)?l:Da.current!==null?(e=Ku(e,l,a),bt(e,t)||(Ke=!0),e):(al&42)===0||(al&1073741824)!==0&&(ve&261930)===0?(Ke=!0,e.memoizedState=l):(e=yf(),oe.lanes|=e,Al|=e,t)}function yd(e,t,l,a,n){var i=V.p;V.p=i!==0&&8>i?i:8;var c=A.T,m={};A.T=m,Fu(e,!1,t,l);try{var y=n(),_=A.S;if(_!==null&&_(m,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var H=Jh(y,a);Cn(e,t,H,wt(e))}else Cn(e,t,a,wt(e))}catch(L){Cn(e,t,{then:function(){},status:"rejected",reason:L},wt())}finally{V.p=i,c!==null&&m.types!==null&&(c.types=m.types),A.T=c}}function tx(){}function Ju(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=jd(e).queue;yd(e,n,t,te,l===null?tx:function(){return Nd(e),l(a)})}function jd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nd(e){var t=jd(e);t.next===null&&(t=e.alternate.memoizedState),Cn(e,t.next.queue,{},wt())}function Wu(){return at(Qn)}function Sd(){return Ve().memoizedState}function Ed(){return Ve().memoizedState}function lx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=wl(l);var a=Cl(t,e,l);a!==null&&(xt(a,t,l),jn(a,t,l)),t={cache:wu()},e.payload=t;return}t=t.return}}function ax(e,t,l){var a=wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qs(e)?Cd(t,l):(l=hu(e,t,l,a),l!==null&&(xt(l,e,a),Rd(l,t,a)))}function wd(e,t,l){var a=wt();Cn(e,t,l,a)}function Cn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))Cd(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,m=i(c,l);if(n.hasEagerState=!0,n.eagerState=m,bt(m,c))return Ss(e,t,n,0),Oe===null&&Ns(),!1}catch{}finally{}if(l=hu(e,t,n,a),l!==null)return xt(l,e,a),Rd(l,t,a),!0}return!1}function Fu(e,t,l,a){if(a={lane:2,revertLane:Mc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Qs(e)){if(t)throw Error(r(479))}else t=hu(e,l,a,2),t!==null&&xt(t,e,2)}function Qs(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function Cd(e,t){Oa=Hs=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Rd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ar(e,l)}}var Rn={readContext:at,use:Bs,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};Rn.useEffectEvent=ke;var Td={readContext:at,use:Bs,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:dd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ks(4194308,4,xd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){ks(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(sa){pl(!0);try{e()}finally{pl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(sa){pl(!0);try{l(t)}finally{pl(!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=ax.bind(null,oe,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Xu(e);var t=e.queue,l=wd.bind(null,oe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:$u,useDeferredValue:function(e,t){var l=ct();return Ku(l,e,t)},useTransition:function(){var e=Xu(!1);return e=yd.bind(null,oe,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=oe,n=ct();if(ye){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Oe===null)throw Error(r(349));(ve&127)!==0||Jo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,dd(Fo.bind(null,a,i,e),[e]),a.flags|=2048,Ha(9,{destroy:void 0},Wo.bind(null,a,i,l,t),null),l},useId:function(){var e=ct(),t=Oe.identifierPrefix;if(ye){var l=Vt,a=Xt;l=(a&~(1<<32-gt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=qs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Wh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Wu,useFormState:id,useActionState:id,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Fu.bind(null,oe,!0,l),l.dispatch=t,[e,t]},useMemoCache:ku,useCacheRefresh:function(){return ct().memoizedState=lx.bind(null,oe)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((Ce&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Pu={readContext:at,use:Bs,useCallback:pd,useContext:at,useEffect:Zu,useImperativeHandle:vd,useInsertionEffect:md,useLayoutEffect:hd,useMemo:gd,useReducer:Ys,useRef:od,useState:function(){return Ys(nl)},useDebugValue:$u,useDeferredValue:function(e,t){var l=Ve();return bd(l,_e.memoizedState,e,t)},useTransition:function(){var e=Ys(nl)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:wn(e),t]},useSyncExternalStore:Ko,useId:Sd,useHostTransitionStatus:Wu,useFormState:ud,useActionState:ud,useOptimistic:function(e,t){var l=Ve();return ed(l,_e,e,t)},useMemoCache:ku,useCacheRefresh:Ed};Pu.useEffectEvent=fd;var Md={readContext:at,use:Bs,useCallback:pd,useContext:at,useEffect:Zu,useImperativeHandle:vd,useInsertionEffect:md,useLayoutEffect:hd,useMemo:gd,useReducer:Qu,useRef:od,useState:function(){return Qu(nl)},useDebugValue:$u,useDeferredValue:function(e,t){var l=Ve();return _e===null?Ku(l,e,t):bd(l,_e.memoizedState,e,t)},useTransition:function(){var e=Qu(nl)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:wn(e),t]},useSyncExternalStore:Ko,useId:Sd,useHostTransitionStatus:Wu,useFormState:rd,useActionState:rd,useOptimistic:function(e,t){var l=Ve();return _e!==null?ed(l,_e,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ku,useCacheRefresh:Ed};Md.useEffectEvent=fd;function Iu(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 ec={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),n=wl(a);n.payload=t,l!=null&&(n.callback=l),t=Cl(e,n,a),t!==null&&(xt(t,e,a),jn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),n=wl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Cl(e,n,a),t!==null&&(xt(t,e,a),jn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=wl(l);a.tag=2,t!=null&&(a.callback=t),t=Cl(e,a,l),t!==null&&(xt(t,e,l),jn(t,e,l))}};function _d(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?!mn(l,a)||!mn(n,i):!0}function Ad(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&&ec.enqueueReplaceState(t,t.state,null)}function ia(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 zd(e){js(e)}function Dd(e){console.error(e)}function Od(e){js(e)}function Xs(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ud(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 tc(e,t,l){return l=wl(l),l.tag=3,l.payload={element:null},l.callback=function(){Xs(e,t)},l}function Hd(e){return e=wl(e),e.tag=3,e}function qd(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(){Ud(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Ud(t,l,a),typeof n!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function nx(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ta(t,l,n,!0),l=jt.current,l!==null){switch(l.tag){case 31:case 13:return Ht===null?li():l.alternate===null&&Ge===0&&(Ge=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===As?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Cc(e,a,n)),!1;case 22:return l.flags|=65536,a===As?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)),Cc(e,a,n)),!1}throw Error(r(435,l.tag))}return Cc(e,a,n),li(),!1}if(ye)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==yu&&(e=Error(r(422),{cause:a}),vn(zt(e,l)))):(a!==yu&&(t=Error(r(423),{cause:a}),vn(zt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=zt(a,l),n=tc(e.stateNode,a,n),Au(e,n),Ge!==4&&(Ge=2)),!1;var i=Error(r(520),{cause:a});if(i=zt(i,l),Un===null?Un=[i]:Un.push(i),Ge!==4&&(Ge=2),t===null)return!0;a=zt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=tc(l.stateNode,a,e),Au(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=Hd(n),qd(n,e,l,a),Au(l,n),!1}l=l.return}while(l!==null);return!1}var lc=Error(r(461)),Ke=!1;function nt(e,t,l,a){t.child=e===null?ko(t,null,l,a):na(t,e.child,l,a)}function Ld(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var m in a)m!=="ref"&&(c[m]=a[m])}else c=a;return ea(t),a=qu(e,t,l,c,i,n),m=Lu(),e!==null&&!Ke?(Bu(e,t,n),sl(e,t,n)):(ye&&m&&gu(t),t.flags|=1,nt(e,t,a,n),t.child)}function Bd(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!xu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Yd(e,t,i,a,n)):(e=ws(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!oc(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:mn,l(c,a)&&e.ref===t.ref)return sl(e,t,n)}return t.flags|=1,e=It(i,a),e.ref=t.ref,e.return=t,t.child=e}function Yd(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(mn(i,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=i,oc(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,sl(e,t,n)}return ac(e,t,l,a,n)}function kd(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 Gd(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ms(t,i!==null?i.cachePool:null),i!==null?Xo(t,i):Du(),Vo(t);else return a=t.lanes=536870912,Gd(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ms(t,i.cachePool),Xo(t,i),Tl(),t.memoizedState=null):(e!==null&&Ms(t,null),Du(),Tl());return nt(e,t,n,l),t.child}function Tn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gd(e,t,l,a,n){var i=Ru();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ms(t,null),Du(),Vo(t),e!==null&&Ta(e,t,a,!0),t.childLanes=n,null}function Vs(e,t){return t=$s({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qd(e,t,l){return na(t,e.child,null,l),e=Vs(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function sx(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(a.mode==="hidden")return e=Vs(t,a),t.lanes=536870912,Tn(null,e);if(Uu(t),(e=He)?(e=lm(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Xt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},l=Co(e),l.return=t,t.child=l,lt=t,He=null)):e=null,e===null)throw Nl(t);return t.lanes=536870912,null}return Vs(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Uu(t),n)if(t.flags&256)t.flags&=-257,t=Qd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ke||Ta(e,t,l,!1),n=(l&e.childLanes)!==0,Ke||n){if(a=Oe,a!==null&&(c=zr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Wl(e,c),xt(a,e,c),lc;li(),t=Qd(e,t,l)}else e=i.treeContext,He=qt(c.nextSibling),lt=t,ye=!0,jl=null,Ut=!1,e!==null&&Mo(t,e),t=Vs(t,a),t.flags|=4096;return t}return e=It(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zs(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 ac(e,t,l,a,n){return ea(t),l=qu(e,t,l,a,void 0,n),a=Lu(),e!==null&&!Ke?(Bu(e,t,n),sl(e,t,n)):(ye&&a&&gu(t),t.flags|=1,nt(e,t,l,n),t.child)}function Xd(e,t,l,a,n,i){return ea(t),t.updateQueue=null,l=$o(t,a,l,n),Zo(e),a=Lu(),e!==null&&!Ke?(Bu(e,t,i),sl(e,t,i)):(ye&&a&&gu(t),t.flags|=1,nt(e,t,l,i),t.child)}function Vd(e,t,l,a,n){if(ea(t),t.stateNode===null){var i=Ea,c=l.contextType;typeof c=="object"&&c!==null&&(i=at(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ec,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Mu(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?at(c):Ea,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Iu(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&&ec.enqueueReplaceState(i,i.state,null),Sn(t,a,i,n),Nn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,y=ia(l,m);i.props=y;var _=i.context,H=l.contextType;c=Ea,typeof H=="object"&&H!==null&&(c=at(H));var L=l.getDerivedStateFromProps;H=typeof L=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,H||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||_!==c)&&Ad(t,i,a,c),El=!1;var z=t.memoizedState;i.state=z,Sn(t,a,i,n),Nn(),_=t.memoizedState,m||z!==_||El?(typeof L=="function"&&(Iu(t,l,L,a),_=t.memoizedState),(y=El||_d(t,l,y,a,z,_,c))?(H||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=_),i.props=a,i.state=_,i.context=c,a=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,_u(e,t),c=t.memoizedProps,H=ia(l,c),i.props=H,L=t.pendingProps,z=i.context,_=l.contextType,y=Ea,typeof _=="object"&&_!==null&&(y=at(_)),m=l.getDerivedStateFromProps,(_=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==L||z!==y)&&Ad(t,i,a,y),El=!1,z=t.memoizedState,i.state=z,Sn(t,a,i,n),Nn();var D=t.memoizedState;c!==L||z!==D||El||e!==null&&e.dependencies!==null&&Rs(e.dependencies)?(typeof m=="function"&&(Iu(t,l,m,a),D=t.memoizedState),(H=El||_d(t,l,H,a,z,D,y)||e!==null&&e.dependencies!==null&&Rs(e.dependencies))?(_||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,D,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,D,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),i.props=a,i.state=D,i.context=y,a=H):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Zs(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=na(t,e.child,null,n),t.child=na(t,null,l,n)):nt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=sl(e,t,n),e}function Zd(e,t,l,a){return Pl(),t.flags|=256,nt(e,t,l,a),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sc(e){return{baseLanes:e,cachePool:Uo()}}function ic(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Et),e}function $d(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:(Xe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(n?Rl(t):Tl(),(e=He)?(e=lm(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Xt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},l=Co(e),l.return=t,t.child=l,lt=t,He=null)):e=null,e===null)throw Nl(t);return Gc(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(Tl(),n=t.mode,m=$s({mode:"hidden",children:m},n),a=Fl(a,n,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=sc(l),a.childLanes=ic(e,c,l),t.memoizedState=nc,Tn(null,a)):(Rl(t),uc(t,m))}var y=e.memoizedState;if(y!==null&&(m=y.dehydrated,m!==null)){if(i)t.flags&256?(Rl(t),t.flags&=-257,t=cc(e,t,l)):t.memoizedState!==null?(Tl(),t.child=e.child,t.flags|=128,t=null):(Tl(),m=a.fallback,n=t.mode,a=$s({mode:"visible",children:a.children},n),m=Fl(m,n,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,na(t,e.child,null,l),a=t.child,a.memoizedState=sc(l),a.childLanes=ic(e,c,l),t.memoizedState=nc,t=Tn(null,a));else if(Rl(t),Gc(m)){if(c=m.nextSibling&&m.nextSibling.dataset,c)var _=c.dgst;c=_,a=Error(r(419)),a.stack="",a.digest=c,vn({value:a,source:null,stack:null}),t=cc(e,t,l)}else if(Ke||Ta(e,t,l,!1),c=(l&e.childLanes)!==0,Ke||c){if(c=Oe,c!==null&&(a=zr(c,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,Wl(e,a),xt(c,e,a),lc;kc(m)||li(),t=cc(e,t,l)}else kc(m)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,He=qt(m.nextSibling),lt=t,ye=!0,jl=null,Ut=!1,e!==null&&Mo(t,e),t=uc(t,a.children),t.flags|=4096);return t}return n?(Tl(),m=a.fallback,n=t.mode,y=e.child,_=y.sibling,a=It(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,_!==null?m=It(_,m):(m=Fl(m,n,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,Tn(null,a),a=t.child,m=e.child.memoizedState,m===null?m=sc(l):(n=m.cachePool,n!==null?(y=Ze._currentValue,n=n.parent!==y?{parent:y,pool:y}:n):n=Uo(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=ic(e,c,l),t.memoizedState=nc,Tn(e.child,a)):(Rl(t),l=e.child,e=l.sibling,l=It(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 uc(e,t){return t=$s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $s(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function cc(e,t,l){return na(t,e.child,null,l),e=uc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Su(e.return,t,l)}function rc(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 Jd(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Xe.current,m=(c&2)!==0;if(m?(c=c&1|2,t.flags|=128):c&=1,K(Xe,c),nt(e,t,a,l),a=ye?xn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kd(e,l,t);else if(e.tag===19)Kd(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&&Us(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),rc(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&&Us(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}rc(t,!0,l,null,i,a);break;case"together":rc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function sl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ta(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=It(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=It(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function oc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rs(e)))}function ix(e,t,l){switch(t.tag){case 3:Qe(t,t.stateNode.containerInfo),Sl(t,Ze,e.memoizedState.cache),Pl();break;case 27:case 5:Ia(t);break;case 4:Qe(t,t.stateNode.containerInfo);break;case 10:Sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Uu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Rl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?$d(e,t,l):(Rl(t),e=sl(e,t,l),e!==null?e.sibling:null);Rl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ta(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Jd(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,kd(e,t,l,t.pendingProps);case 24:Sl(t,Ze,e.memoizedState.cache)}return sl(e,t,l)}function Wd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!oc(e,l)&&(t.flags&128)===0)return Ke=!1,ix(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,ye&&(t.flags&1048576)!==0&&To(t,xn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=la(t.elementType),t.type=e,typeof e=="function")xu(e)?(a=ia(e,a),t.tag=1,t=Vd(null,t,e,a,l)):(t.tag=0,t=ac(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ae){t.tag=11,t=Ld(null,t,e,a,l);break e}else if(n===$){t.tag=14,t=Bd(null,t,e,a,l);break e}}throw t=be(e)||e,Error(r(306,t,""))}}return t;case 0:return ac(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ia(a,t.pendingProps),Vd(e,t,a,n,l);case 3:e:{if(Qe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,_u(e,t),Sn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,Sl(t,Ze,a),a!==i.cache&&Eu(t,[Ze],l,!0),Nn(),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=Zd(e,t,a,l);break e}else if(a!==n){n=zt(Error(r(424)),t),vn(n),t=Zd(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(He=qt(e.firstChild),lt=t,ye=!0,jl=null,Ut=!0,l=ko(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Pl(),a===n){t=sl(e,t,l);break e}nt(e,t,a,l)}t=t.child}return t;case 26:return Zs(e,t),e===null?(l=cm(t.type,null,t.pendingProps,null))?t.memoizedState=l:ye||(l=t.type,e=t.pendingProps,a=ri(ie.current).createElement(l),a[tt]=t,a[rt]=e,st(a,l,e),Ie(a),t.stateNode=a):t.memoizedState=cm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ia(t),e===null&&ye&&(a=t.stateNode=sm(t.type,t.pendingProps,ie.current),lt=t,Ut=!0,n=He,Hl(t.type)?(Qc=n,He=qt(a.firstChild)):He=n),nt(e,t,t.pendingProps.children,l),Zs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((n=a=He)&&(a=Hx(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,lt=t,He=qt(a.firstChild),Ut=!1,n=!0):n=!1),n||Nl(t)),Ia(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Lc(n,i)?a=null:c!==null&&Lc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=qu(e,t,Fh,null,null,l),Qn._currentValue=n),Zs(e,t),nt(e,t,a,l),t.child;case 6:return e===null&&ye&&((e=l=He)&&(l=qx(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,lt=t,He=null,e=!0):e=!1),e||Nl(t)),null;case 13:return $d(e,t,l);case 4:return Qe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=na(t,null,a,l):nt(e,t,a,l),t.child;case 11:return Ld(e,t,t.type,t.pendingProps,l);case 7:return nt(e,t,t.pendingProps,l),t.child;case 8:return nt(e,t,t.pendingProps.children,l),t.child;case 12:return nt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Sl(t,t.type,a.value),nt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,ea(t),n=at(n),a=a(n),t.flags|=1,nt(e,t,a,l),t.child;case 14:return Bd(e,t,t.type,t.pendingProps,l);case 15:return Yd(e,t,t.type,t.pendingProps,l);case 19:return Jd(e,t,l);case 31:return sx(e,t,l);case 22:return kd(e,t,l,t.pendingProps);case 24:return ea(t),a=at(Ze),e===null?(n=Ru(),n===null&&(n=Oe,i=wu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Mu(t),Sl(t,Ze,n)):((e.lanes&l)!==0&&(_u(e,t),Sn(t,null,null,l),Nn()),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),Sl(t,Ze,a)):(a=i.cache,Sl(t,Ze,a),a!==n.cache&&Eu(t,[Ze],l,!0))),nt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function il(e){e.flags|=4}function dc(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(Ef())e.flags|=8192;else throw aa=As,Tu}else e.flags&=-16777217}function Fd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!mm(t))if(Ef())e.flags|=8192;else throw aa=As,Tu}function Ks(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mr():536870912,e.lanes|=t,Ya|=t)}function Mn(e,t){if(!ye)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 qe(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 ux(e,t,l){var a=t.pendingProps;switch(bu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ll(Ze),Re(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ra(t)?il(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ju())),qe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(il(t),i!==null?(qe(t),Fd(t,i)):(qe(t),dc(t,n,null,a,l))):i?i!==e.memoizedState?(il(t),qe(t),Fd(t,i)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&il(t),qe(t),dc(t,n,e,a,l)),null;case 27:if(ss(t),l=ie.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=F.current,Ra(t)?_o(t):(e=sm(n,a,l),t.stateNode=e,il(t))}return qe(t),null;case 5:if(ss(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(i=F.current,Ra(t))_o(t);else{var c=ri(ie.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[tt]=t,i[rt]=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(st(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&&il(t)}}return qe(t),dc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ie.current,Ra(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=lt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[tt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Kf(e.nodeValue,l)),e||Nl(t,!0)}else e=ri(e).createTextNode(a),e[tt]=t,t.stateNode=e}return qe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ra(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[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else l=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ra(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[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),n=!1}else n=ju(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(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),Ks(t,t.updateQueue),qe(t),null);case 4:return Re(),e===null&&Dc(t.stateNode.containerInfo),qe(t),null;case 10:return ll(t.type),qe(t),null;case 19:if(B(Xe),a=t.memoizedState,a===null)return qe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Mn(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Us(e),i!==null){for(t.flags|=128,Mn(a,!1),e=i.updateQueue,t.updateQueue=e,Ks(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)wo(l,e),l=l.sibling;return K(Xe,Xe.current&1|2),ye&&el(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&vt()>Is&&(t.flags|=128,n=!0,Mn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Us(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Ks(t,e),Mn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ye)return qe(t),null}else 2*vt()-a.renderingStartTime>Is&&l!==536870912&&(t.flags|=128,n=!0,Mn(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=vt(),e.sibling=null,l=Xe.current,K(Xe,n?l&1|2:l&1),ye&&el(t,a.treeForkCount),e):(qe(t),null);case 22:case 23:return Nt(t),Ou(),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&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),l=t.updateQueue,l!==null&&Ks(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&&B(ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ll(Ze),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function cx(e,t){switch(bu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ll(Ze),Re(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ss(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(r(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Xe),null;case 4:return Re(),null;case 10:return ll(t.type),null;case 22:case 23:return Nt(t),Ou(),e!==null&&B(ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ll(Ze),null;case 25:return null;default:return null}}function Pd(e,t){switch(bu(t),t.tag){case 3:ll(Ze),Re();break;case 26:case 27:case 5:ss(t);break;case 4:Re();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:B(Xe);break;case 10:ll(t.type);break;case 22:case 23:Nt(t),Ou(),e!==null&&B(ta);break;case 24:ll(Ze)}}function _n(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(m){Me(t,t.return,m)}}function Ml(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,m=c.destroy;if(m!==void 0){c.destroy=void 0,n=t;var y=l,_=m;try{_()}catch(H){Me(n,y,H)}}}a=a.next}while(a!==i)}}catch(H){Me(t,t.return,H)}}function Id(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Qo(t,l)}catch(a){Me(e,e.return,a)}}}function ef(e,t,l){l.props=ia(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Me(e,t,a)}}function An(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){Me(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){Me(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){Me(e,t,n)}else l.current=null}function tf(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){Me(e,e.return,n)}}function fc(e,t,l){try{var a=e.stateNode;_x(a,e.type,l,t),a[rt]=t}catch(n){Me(e,e.return,n)}}function lf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hl(e.type)||e.tag===4}function mc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lf(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&&Hl(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 hc(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=Ft));else if(a!==4&&(a===27&&Hl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(hc(e,t,l),e=e.sibling;e!==null;)hc(e,t,l),e=e.sibling}function Js(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&&Hl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Js(e,t,l),e=e.sibling;e!==null;)Js(e,t,l),e=e.sibling}function af(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);st(t,a,l),t[tt]=e,t[rt]=l}catch(i){Me(e,e.return,i)}}var ul=!1,Je=!1,xc=!1,nf=typeof WeakSet=="function"?WeakSet:Set,et=null;function rx(e,t){if(e=e.containerInfo,Hc=vi,e=vo(e),cu(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,m=-1,y=-1,_=0,H=0,L=e,z=null;t:for(;;){for(var D;L!==l||n!==0&&L.nodeType!==3||(m=c+n),L!==i||a!==0&&L.nodeType!==3||(y=c+a),L.nodeType===3&&(c+=L.nodeValue.length),(D=L.firstChild)!==null;)z=L,L=D;for(;;){if(L===e)break t;if(z===l&&++_===n&&(m=c),z===i&&++H===a&&(y=c),(D=L.nextSibling)!==null)break;L=z,z=L.parentNode}L=D}l=m===-1||y===-1?null:{start:m,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(qc={focusedElem:e,selectionRange:l},vi=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,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 P=ia(l.type,n);e=a.getSnapshotBeforeUpdate(P,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(se){Me(l,l.return,se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Yc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yc(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,et=e;break}et=t.return}}function sf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(e,l),a&4&&_n(5,l);break;case 1:if(rl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Me(l,l.return,c)}else{var n=ia(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Me(l,l.return,c)}}a&64&&Id(l),a&512&&An(l,l.return);break;case 3:if(rl(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{Qo(e,t)}catch(c){Me(l,l.return,c)}}break;case 27:t===null&&a&4&&af(l);case 26:case 5:rl(e,l),t===null&&a&4&&tf(l),a&512&&An(l,l.return);break;case 12:rl(e,l);break;case 31:rl(e,l),a&4&&rf(e,l);break;case 13:rl(e,l),a&4&&of(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gx.bind(null,l),Lx(e,l))));break;case 22:if(a=l.memoizedState!==null||ul,!a){t=t!==null&&t.memoizedState!==null||Je,n=ul;var i=Je;ul=a,(Je=t)&&!i?ol(e,l,(l.subtreeFlags&8772)!==0):rl(e,l),ul=n,Je=i}break;case 30:break;default:rl(e,l)}}function uf(e){var t=e.alternate;t!==null&&(e.alternate=null,uf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Vi(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 Be=null,dt=!1;function cl(e,t,l){for(l=l.child;l!==null;)cf(e,t,l),l=l.sibling}function cf(e,t,l){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(en,l)}catch{}switch(l.tag){case 26:Je||Zt(l,t),cl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Je||Zt(l,t);var a=Be,n=dt;Hl(l.type)&&(Be=l.stateNode,dt=!1),cl(e,t,l),Yn(l.stateNode),Be=a,dt=n;break;case 5:Je||Zt(l,t);case 6:if(a=Be,n=dt,Be=null,cl(e,t,l),Be=a,dt=n,Be!==null)if(dt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(l.stateNode)}catch(i){Me(l,t,i)}else try{Be.removeChild(l.stateNode)}catch(i){Me(l,t,i)}break;case 18:Be!==null&&(dt?(e=Be,em(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ka(e)):em(Be,l.stateNode));break;case 4:a=Be,n=dt,Be=l.stateNode.containerInfo,dt=!0,cl(e,t,l),Be=a,dt=n;break;case 0:case 11:case 14:case 15:Ml(2,l,t),Je||Ml(4,l,t),cl(e,t,l);break;case 1:Je||(Zt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ef(l,t,a)),cl(e,t,l);break;case 21:cl(e,t,l);break;case 22:Je=(a=Je)||l.memoizedState!==null,cl(e,t,l),Je=a;break;default:cl(e,t,l)}}function rf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ka(e)}catch(l){Me(t,t.return,l)}}}function of(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ka(e)}catch(l){Me(t,t.return,l)}}function ox(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nf),t;default:throw Error(r(435,e.tag))}}function Ws(e,t){var l=ox(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=bx.bind(null,e,a);a.then(n,n)}})}function ft(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,m=c;e:for(;m!==null;){switch(m.tag){case 27:if(Hl(m.type)){Be=m.stateNode,dt=!1;break e}break;case 5:Be=m.stateNode,dt=!1;break e;case 3:case 4:Be=m.stateNode.containerInfo,dt=!0;break e}m=m.return}if(Be===null)throw Error(r(160));cf(i,c,n),Be=null,dt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)df(t,e),t=t.sibling}var Gt=null;function df(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),mt(e),a&4&&(Ml(3,e,e.return),_n(3,e),Ml(5,e,e.return));break;case 1:ft(t,e),mt(e),a&512&&(Je||l===null||Zt(l,l.return)),a&64&&ul&&(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=Gt;if(ft(t,e),mt(e),a&512&&(Je||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[an]||i[tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),st(i,a,l),i[tt]=e,Ie(i),a=i;break e;case"link":var c=dm("link","href",n).get(a+(l.href||""));if(c){for(var m=0;m<c.length;m++)if(i=c[m],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(m,1);break t}}i=n.createElement(a),st(i,a,l),n.head.appendChild(i);break;case"meta":if(c=dm("meta","content",n).get(a+(l.content||""))){for(m=0;m<c.length;m++)if(i=c[m],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(m,1);break t}}i=n.createElement(a),st(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[tt]=e,Ie(i),a=i}e.stateNode=a}else fm(n,e.type,e.stateNode);else e.stateNode=om(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?fm(n,e.type,e.stateNode):om(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&fc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),mt(e),a&512&&(Je||l===null||Zt(l,l.return)),l!==null&&a&4&&fc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),mt(e),a&512&&(Je||l===null||Zt(l,l.return)),e.flags&32){n=e.stateNode;try{pa(n,"")}catch(P){Me(e,e.return,P)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,fc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(xc=!0);break;case 6:if(ft(t,e),mt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(P){Me(e,e.return,P)}}break;case 3:if(fi=null,n=Gt,Gt=oi(t.containerInfo),ft(t,e),Gt=n,mt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ka(t.containerInfo)}catch(P){Me(e,e.return,P)}xc&&(xc=!1,ff(e));break;case 4:a=Gt,Gt=oi(e.stateNode.containerInfo),ft(t,e),mt(e),Gt=a;break;case 12:ft(t,e),mt(e);break;case 31:ft(t,e),mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ws(e,a)));break;case 13:ft(t,e),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ps=vt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ws(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,_=ul,H=Je;if(ul=_||n,Je=H||y,ft(t,e),Je=H,ul=_,mt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||ul||Je||ua(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(i=y.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{m=y.stateNode;var L=y.memoizedProps.style,z=L!=null&&L.hasOwnProperty("display")?L.display:null;m.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){Me(y,y.return,P)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(P){Me(y,y.return,P)}}}else if(t.tag===18){if(l===null){y=t;try{var D=y.stateNode;n?tm(D,!0):tm(y.stateNode,!1)}catch(P){Me(y,y.return,P)}}}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,Ws(e,l))));break;case 19:ft(t,e),mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ws(e,a)));break;case 30:break;case 21:break;default:ft(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(lf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=mc(e);Js(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(pa(c,""),l.flags&=-33);var m=mc(e);Js(e,m,c);break;case 3:case 4:var y=l.stateNode.containerInfo,_=mc(e);hc(e,_,y);break;default:throw Error(r(161))}}catch(H){Me(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ff(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ff(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function rl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sf(e,t.alternate,t),t=t.sibling}function ua(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ml(4,t,t.return),ua(t);break;case 1:Zt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ef(t,t.return,l),ua(t);break;case 27:Yn(t.stateNode);case 26:case 5:Zt(t,t.return),ua(t);break;case 22:t.memoizedState===null&&ua(t);break;case 30:ua(t);break;default:ua(t)}e=e.sibling}}function ol(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:ol(n,i,l),_n(4,i);break;case 1:if(ol(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){Me(a,a.return,_)}if(a=i,n=a.updateQueue,n!==null){var m=a.stateNode;try{var y=n.shared.hiddenCallbacks;if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)Go(y[n],m)}catch(_){Me(a,a.return,_)}}l&&c&64&&Id(i),An(i,i.return);break;case 27:af(i);case 26:case 5:ol(n,i,l),l&&a===null&&c&4&&tf(i),An(i,i.return);break;case 12:ol(n,i,l);break;case 31:ol(n,i,l),l&&c&4&&rf(n,i);break;case 13:ol(n,i,l),l&&c&4&&of(n,i);break;case 22:i.memoizedState===null&&ol(n,i,l),An(i,i.return);break;case 30:break;default:ol(n,i,l)}t=t.sibling}}function vc(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&&pn(l))}function pc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pn(e))}function Qt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mf(e,t,l,a),t=t.sibling}function mf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,l,a),n&2048&&_n(9,t);break;case 1:Qt(e,t,l,a);break;case 3:Qt(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&&pn(e)));break;case 12:if(n&2048){Qt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,m=i.onPostCommit;typeof m=="function"&&m(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Me(t,t.return,y)}}else Qt(e,t,l,a);break;case 31:Qt(e,t,l,a);break;case 13:Qt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Qt(e,t,l,a):zn(e,t):i._visibility&2?Qt(e,t,l,a):(i._visibility|=2,qa(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&vc(c,t);break;case 24:Qt(e,t,l,a),n&2048&&pc(t.alternate,t);break;default:Qt(e,t,l,a)}}function qa(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,m=l,y=a,_=c.flags;switch(c.tag){case 0:case 11:case 15:qa(i,c,m,y,n),_n(8,c);break;case 23:break;case 22:var H=c.stateNode;c.memoizedState!==null?H._visibility&2?qa(i,c,m,y,n):zn(i,c):(H._visibility|=2,qa(i,c,m,y,n)),n&&_&2048&&vc(c.alternate,c);break;case 24:qa(i,c,m,y,n),n&&_&2048&&pc(c.alternate,c);break;default:qa(i,c,m,y,n)}t=t.sibling}}function zn(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:zn(l,a),n&2048&&vc(a.alternate,a);break;case 24:zn(l,a),n&2048&&pc(a.alternate,a);break;default:zn(l,a)}t=t.sibling}}var Dn=8192;function La(e,t,l){if(e.subtreeFlags&Dn)for(e=e.child;e!==null;)hf(e,t,l),e=e.sibling}function hf(e,t,l){switch(e.tag){case 26:La(e,t,l),e.flags&Dn&&e.memoizedState!==null&&Wx(l,Gt,e.memoizedState,e.memoizedProps);break;case 5:La(e,t,l);break;case 3:case 4:var a=Gt;Gt=oi(e.stateNode.containerInfo),La(e,t,l),Gt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Dn,Dn=16777216,La(e,t,l),Dn=a):La(e,t,l));break;default:La(e,t,l)}}function xf(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 On(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];et=a,pf(a,e)}xf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vf(e),e=e.sibling}function vf(e){switch(e.tag){case 0:case 11:case 15:On(e),e.flags&2048&&Ml(9,e,e.return);break;case 3:On(e);break;case 12:On(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fs(e)):On(e);break;default:On(e)}}function Fs(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];et=a,pf(a,e)}xf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ml(8,t,t.return),Fs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Fs(t));break;default:Fs(t)}e=e.sibling}}function pf(e,t){for(;et!==null;){var l=et;switch(l.tag){case 0:case 11:case 15:Ml(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:pn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,et=a;else e:for(l=e;et!==null;){a=et;var n=a.sibling,i=a.return;if(uf(a),a===l){et=null;break e}if(n!==null){n.return=i,et=n;break e}et=i}}}var dx={getCacheForType:function(e){var t=at(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return at(Ze).controller.signal}},fx=typeof WeakMap=="function"?WeakMap:Map,Ce=0,Oe=null,he=null,ve=0,Te=0,St=null,_l=!1,Ba=!1,gc=!1,dl=0,Ge=0,Al=0,ca=0,bc=0,Et=0,Ya=0,Un=null,ht=null,yc=!1,Ps=0,gf=0,Is=1/0,ei=null,zl=null,Fe=0,Dl=null,ka=null,fl=0,jc=0,Nc=null,bf=null,Hn=0,Sc=null;function wt(){return(Ce&2)!==0&&ve!==0?ve&-ve:A.T!==null?Mc():Dr()}function yf(){if(Et===0)if((ve&536870912)===0||ye){var e=cs;cs<<=1,(cs&3932160)===0&&(cs=262144),Et=e}else Et=536870912;return e=jt.current,e!==null&&(e.flags|=32),Et}function xt(e,t,l){(e===Oe&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(Ga(e,0),Ol(e,ve,Et,!1)),ln(e,l),((Ce&2)===0||e!==Oe)&&(e===Oe&&((Ce&2)===0&&(ca|=l),Ge===4&&Ol(e,ve,Et,!1)),$t(e))}function jf(e,t,l){if((Ce&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||tn(e,t),n=a?xx(e,t):wc(e,t,!0),i=a;do{if(n===0){Ba&&!a&&Ol(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!mx(l)){n=wc(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 m=e;n=Un;var y=m.current.memoizedState.isDehydrated;if(y&&(Ga(m,c).flags|=256),c=wc(m,c,!1),c!==2){if(gc&&!y){m.errorRecoveryDisabledLanes|=i,ca|=i,n=4;break e}i=ht,ht=n,i!==null&&(ht===null?ht=i:ht.push.apply(ht,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Ga(e,0),Ol(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:Ol(a,t,Et,!_l);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Ps+300-vt(),10<n)){if(Ol(a,t,Et,!_l),os(a,0,!0)!==0)break e;fl=t,a.timeoutHandle=Pf(Nf.bind(null,a,l,ht,ei,yc,t,Et,ca,Ya,_l,i,"Throttled",-0,0),n);break e}Nf(a,l,ht,ei,yc,t,Et,ca,Ya,_l,i,null,-0,0)}}break}while(!0);$t(e)}function Nf(e,t,l,a,n,i,c,m,y,_,H,L,z,D){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ft},hf(t,i,L);var P=(i&62914560)===i?Ps-vt():(i&4194048)===i?gf-vt():0;if(P=Fx(L,P),P!==null){fl=i,e.cancelPendingCommit=P(_f.bind(null,e,t,i,l,a,n,c,m,y,H,L,null,z,D)),Ol(e,i,c,!_);return}}_f(e,t,i,l,a,n,c,m,y)}function mx(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(!bt(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 Ol(e,t,l,a){t&=~bc,t&=~ca,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-gt(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&_r(e,l,t)}function ti(){return(Ce&6)===0?(qn(0),!1):!0}function Ec(){if(he!==null){if(Te===0)var e=he.return;else e=he,tl=Il=null,Yu(e),za=null,bn=0,e=he;for(;e!==null;)Pd(e.alternate,e),e=e.return;he=null}}function Ga(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Dx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fl=0,Ec(),Oe=e,he=l=It(e.current,null),ve=t,Te=0,St=null,_l=!1,Ba=tn(e,t),gc=!1,Ya=Et=bc=ca=Al=Ge=0,ht=Un=null,yc=!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-gt(a),i=1<<n;t|=e[n],a&=~i}return dl=t,Ns(),l}function Sf(e,t){oe=null,A.H=Rn,t===Aa||t===_s?(t=Lo(),Te=3):t===Tu?(t=Lo(),Te=4):Te=t===lc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,he===null&&(Ge=1,Xs(e,zt(t,e.current)))}function Ef(){var e=jt.current;return e===null?!0:(ve&4194048)===ve?Ht===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Ht:!1}function wf(){var e=A.H;return A.H=Rn,e===null?Rn:e}function Cf(){var e=A.A;return A.A=dx,e}function li(){Ge=4,_l||(ve&4194048)!==ve&&jt.current!==null||(Ba=!0),(Al&134217727)===0&&(ca&134217727)===0||Oe===null||Ol(Oe,ve,Et,!1)}function wc(e,t,l){var a=Ce;Ce|=2;var n=wf(),i=Cf();(Oe!==e||ve!==t)&&(ei=null,Ga(e,t)),t=!1;var c=Ge;e:do try{if(Te!==0&&he!==null){var m=he,y=St;switch(Te){case 8:Ec(),c=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var _=Te;if(Te=0,St=null,Qa(e,m,y,_),l&&Ba){c=0;break e}break;default:_=Te,Te=0,St=null,Qa(e,m,y,_)}}hx(),c=Ge;break}catch(H){Sf(e,H)}while(!0);return t&&e.shellSuspendCounter++,tl=Il=null,Ce=a,A.H=n,A.A=i,he===null&&(Oe=null,ve=0,Ns()),c}function hx(){for(;he!==null;)Rf(he)}function xx(e,t){var l=Ce;Ce|=2;var a=wf(),n=Cf();Oe!==e||ve!==t?(ei=null,Is=vt()+500,Ga(e,t)):Ba=tn(e,t);e:do try{if(Te!==0&&he!==null){t=he;var i=St;t:switch(Te){case 1:Te=0,St=null,Qa(e,t,i,1);break;case 2:case 9:if(Ho(i)){Te=0,St=null,Tf(t);break}t=function(){Te!==2&&Te!==9||Oe!==e||(Te=7),$t(e)},i.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Ho(i)?(Te=0,St=null,Tf(t)):(Te=0,St=null,Qa(e,t,i,7));break;case 5:var c=null;switch(he.tag){case 26:c=he.memoizedState;case 5:case 27:var m=he;if(c?mm(c):m.stateNode.complete){Te=0,St=null;var y=m.sibling;if(y!==null)he=y;else{var _=m.return;_!==null?(he=_,ai(_)):he=null}break t}}Te=0,St=null,Qa(e,t,i,5);break;case 6:Te=0,St=null,Qa(e,t,i,6);break;case 8:Ec(),Ge=6;break e;default:throw Error(r(462))}}vx();break}catch(H){Sf(e,H)}while(!0);return tl=Il=null,A.H=a,A.A=n,Ce=l,he!==null?0:(Oe=null,ve=0,Ns(),Ge)}function vx(){for(;he!==null&&!B0();)Rf(he)}function Rf(e){var t=Wd(e.alternate,e,dl);e.memoizedProps=e.pendingProps,t===null?ai(e):he=t}function Tf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xd(l,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Xd(l,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:Yu(t);default:Pd(l,t),t=he=wo(t,dl),t=Wd(l,t,dl)}e.memoizedProps=e.pendingProps,t===null?ai(e):he=t}function Qa(e,t,l,a){tl=Il=null,Yu(t),za=null,bn=0;var n=t.return;try{if(nx(e,n,t,l,ve)){Ge=1,Xs(e,zt(l,e.current)),he=null;return}}catch(i){if(n!==null)throw he=n,i;Ge=1,Xs(e,zt(l,e.current)),he=null;return}t.flags&32768?(ye||a===1?e=!0:Ba||(ve&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=jt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Mf(t,e)):ai(t)}function ai(e){var t=e;do{if((t.flags&32768)!==0){Mf(t,_l);return}e=t.return;var l=ux(t.alternate,t,dl);if(l!==null){he=l;return}if(t=t.sibling,t!==null){he=t;return}he=t=e}while(t!==null);Ge===0&&(Ge=5)}function Mf(e,t){do{var l=cx(e.alternate,e);if(l!==null){l.flags&=32767,he=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){he=e;return}he=e=l}while(e!==null);Ge=6,he=null}function _f(e,t,l,a,n,i,c,m,y){e.cancelPendingCommit=null;do ni();while(Fe!==0);if((Ce&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=mu,J0(e,l,i,c,m,y),e===Oe&&(he=Oe=null,ve=0),ka=t,Dl=e,fl=l,jc=i,Nc=n,bf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,yx(is,function(){return Uf(),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=Ce,Ce|=4;try{rx(e,t,l)}finally{Ce=c,V.p=n,A.T=a}}Fe=1,Af(),zf(),Df()}}function Af(){if(Fe===1){Fe=0;var e=Dl,t=ka,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=Ce;Ce|=4;try{df(t,e);var i=qc,c=vo(e.containerInfo),m=i.focusedElem,y=i.selectionRange;if(c!==m&&m&&m.ownerDocument&&xo(m.ownerDocument.documentElement,m)){if(y!==null&&cu(m)){var _=y.start,H=y.end;if(H===void 0&&(H=_),"selectionStart"in m)m.selectionStart=_,m.selectionEnd=Math.min(H,m.value.length);else{var L=m.ownerDocument||document,z=L&&L.defaultView||window;if(z.getSelection){var D=z.getSelection(),P=m.textContent.length,se=Math.min(y.start,P),ze=y.end===void 0?se:Math.min(y.end,P);!D.extend&&se>ze&&(c=ze,ze=se,se=c);var w=ho(m,se),E=ho(m,ze);if(w&&E&&(D.rangeCount!==1||D.anchorNode!==w.node||D.anchorOffset!==w.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var M=L.createRange();M.setStart(w.node,w.offset),D.removeAllRanges(),se>ze?(D.addRange(M),D.extend(E.node,E.offset)):(M.setEnd(E.node,E.offset),D.addRange(M))}}}}for(L=[],D=m;D=D.parentNode;)D.nodeType===1&&L.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<L.length;m++){var q=L[m];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}vi=!!Hc,qc=Hc=null}finally{Ce=n,V.p=a,A.T=l}}e.current=t,Fe=2}}function zf(){if(Fe===2){Fe=0;var e=Dl,t=ka,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=Ce;Ce|=4;try{sf(e,t.alternate,t)}finally{Ce=n,V.p=a,A.T=l}}Fe=3}}function Df(){if(Fe===4||Fe===3){Fe=0,Y0();var e=Dl,t=ka,l=fl,a=bf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,ka=Dl=null,Of(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),Qi(l),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(en,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 m=a[c];i(m.value,{componentStack:m.stack})}}finally{A.T=t,V.p=n}}(fl&3)!==0&&ni(),$t(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Sc?Hn++:(Hn=0,Sc=e):Hn=0,qn(0)}}function Of(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pn(t)))}function ni(){return Af(),zf(),Df(),Uf()}function Uf(){if(Fe!==5)return!1;var e=Dl,t=jc;jc=0;var l=Qi(fl),a=A.T,n=V.p;try{V.p=32>l?32:l,A.T=null,l=Nc,Nc=null;var i=Dl,c=fl;if(Fe=0,ka=Dl=null,fl=0,(Ce&6)!==0)throw Error(r(331));var m=Ce;if(Ce|=4,vf(i.current),mf(i,i.current,c,l),Ce=m,qn(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(en,i)}catch{}return!0}finally{V.p=n,A.T=a,Of(e,t)}}function Hf(e,t,l){t=zt(l,t),t=tc(e.stateNode,t,2),e=Cl(e,t,2),e!==null&&(ln(e,2),$t(e))}function Me(e,t,l){if(e.tag===3)Hf(e,e,l);else for(;t!==null;){if(t.tag===3){Hf(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=zt(l,e),l=Hd(2),a=Cl(t,l,2),a!==null&&(qd(l,a,t,e),ln(a,2),$t(a));break}}t=t.return}}function Cc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new fx;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)||(gc=!0,n.add(l),e=px.bind(null,e,t,l),t.then(e,e))}function px(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(ve&l)===l&&(Ge===4||Ge===3&&(ve&62914560)===ve&&300>vt()-Ps?(Ce&2)===0&&Ga(e,0):bc|=l,Ya===ve&&(Ya=0)),$t(e)}function qf(e,t){t===0&&(t=Mr()),e=Wl(e,t),e!==null&&(ln(e,t),$t(e))}function gx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qf(e,l)}function bx(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),qf(e,l)}function yx(e,t){return Bi(e,t)}var si=null,Xa=null,Rc=!1,ii=!1,Tc=!1,Ul=0;function $t(e){e!==Xa&&e.next===null&&(Xa===null?si=Xa=e:Xa=Xa.next=e),ii=!0,Rc||(Rc=!0,Nx())}function qn(e,t){if(!Tc&&ii){Tc=!0;do for(var l=!1,a=si;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-gt(42|e)+1)-1,i&=n&~(c&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,kf(a,i))}else i=ve,i=os(a,a===Oe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||tn(a,i)||(l=!0,kf(a,i));a=a.next}while(l);Tc=!1}}function jx(){Lf()}function Lf(){ii=Rc=!1;var e=0;Ul!==0&&zx()&&(e=Ul);for(var t=vt(),l=null,a=si;a!==null;){var n=a.next,i=Bf(a,t);i===0?(a.next=null,l===null?si=n:l.next=n,n===null&&(Xa=l)):(l=a,(e!==0||(i&3)!==0)&&(ii=!0)),a=n}Fe!==0&&Fe!==5||qn(e),Ul!==0&&(Ul=0)}function Bf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-gt(i),m=1<<c,y=n[c];y===-1?((m&l)===0||(m&a)!==0)&&(n[c]=K0(m,t)):y<=t&&(e.expiredLanes|=m),i&=~m}if(t=Oe,l=ve,l=os(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Yi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||tn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Yi(a),Qi(l)){case 2:case 8:l=Rr;break;case 32:l=is;break;case 268435456:l=Tr;break;default:l=is}return a=Yf.bind(null,e),l=Bi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Yi(a),e.callbackPriority=2,e.callbackNode=null,2}function Yf(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ni()&&e.callbackNode!==l)return null;var a=ve;return a=os(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(jf(e,a,t),Bf(e,vt()),e.callbackNode!=null&&e.callbackNode===l?Yf.bind(null,e):null)}function kf(e,t){if(ni())return null;jf(e,t,!0)}function Nx(){Ox(function(){(Ce&6)!==0?Bi(Cr,jx):Lf()})}function Mc(){if(Ul===0){var e=Ma;e===0&&(e=us,us<<=1,(us&261888)===0&&(us=256)),Ul=e}return Ul}function Gf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hs(""+e)}function Qf(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 Sx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Gf((n[rt]||null).action),c=a.submitter;c&&(t=(t=c[rt]||null)?Gf(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var m=new gs("action","action",null,a,n);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ul!==0){var y=c?Qf(n,c):new FormData(n);Ju(l,{pending:!0,data:y,method:n.method,action:i},null,y)}}else typeof i=="function"&&(m.preventDefault(),y=c?Qf(n,c):new FormData(n),Ju(l,{pending:!0,data:y,method:n.method,action:i},i,y))},currentTarget:n}]})}}for(var _c=0;_c<fu.length;_c++){var Ac=fu[_c],Ex=Ac.toLowerCase(),wx=Ac[0].toUpperCase()+Ac.slice(1);kt(Ex,"on"+wx)}kt(bo,"onAnimationEnd"),kt(yo,"onAnimationIteration"),kt(jo,"onAnimationStart"),kt("dblclick","onDoubleClick"),kt("focusin","onFocus"),kt("focusout","onBlur"),kt(kh,"onTransitionRun"),kt(Gh,"onTransitionStart"),kt(Qh,"onTransitionCancel"),kt(No,"onTransitionEnd"),xa("onMouseEnter",["mouseout","mouseover"]),xa("onMouseLeave",["mouseout","mouseover"]),xa("onPointerEnter",["pointerout","pointerover"]),xa("onPointerLeave",["pointerout","pointerover"]),Zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ln="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(" "),Cx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ln));function Xf(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 m=a[c],y=m.instance,_=m.currentTarget;if(m=m.listener,y!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=_;try{i(n)}catch(H){js(H)}n.currentTarget=null,i=y}else for(c=0;c<a.length;c++){if(m=a[c],y=m.instance,_=m.currentTarget,m=m.listener,y!==i&&n.isPropagationStopped())break e;i=m,n.currentTarget=_;try{i(n)}catch(H){js(H)}n.currentTarget=null,i=y}}}}function xe(e,t){var l=t[Xi];l===void 0&&(l=t[Xi]=new Set);var a=e+"__bubble";l.has(a)||(Vf(t,e,2,!1),l.add(a))}function zc(e,t,l){var a=0;t&&(a|=4),Vf(l,e,a,t)}var ui="_reactListening"+Math.random().toString(36).slice(2);function Dc(e){if(!e[ui]){e[ui]=!0,Hr.forEach(function(l){l!=="selectionchange"&&(Cx.has(l)||zc(l,!1,e),zc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,zc("selectionchange",!1,t))}}function Vf(e,t,l,a){switch(ym(t)){case 2:var n=ev;break;case 8:n=tv;break;default:n=Kc}l=n.bind(null,t,l,e),n=void 0,!Ii||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 Oc(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 m=a.stateNode.containerInfo;if(m===n)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;m!==null;){if(c=fa(m),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=i=c;continue e}m=m.parentNode}}a=a.return}Kr(function(){var _=i,H=Fi(l),L=[];e:{var z=So.get(e);if(z!==void 0){var D=gs,P=e;switch(e){case"keypress":if(vs(l)===0)break e;case"keydown":case"keyup":D=bh;break;case"focusin":P="focus",D=au;break;case"focusout":P="blur",D=au;break;case"beforeblur":case"afterblur":D=au;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":D=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=uh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Nh;break;case bo:case yo:case jo:D=oh;break;case No:D=Eh;break;case"scroll":case"scrollend":D=sh;break;case"wheel":D=Ch;break;case"copy":case"cut":case"paste":D=fh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Ir;break;case"toggle":case"beforetoggle":D=Th}var se=(t&4)!==0,ze=!se&&(e==="scroll"||e==="scrollend"),w=se?z!==null?z+"Capture":null:z;se=[];for(var E=_,M;E!==null;){var q=E;if(M=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||M===null||w===null||(q=sn(E,w),q!=null&&se.push(Bn(E,q,M))),ze)break;E=E.return}0<se.length&&(z=new D(z,P,null,l,H),L.push({event:z,listeners:se}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",z&&l!==Wi&&(P=l.relatedTarget||l.fromElement)&&(fa(P)||P[da]))break e;if((D||z)&&(z=H.window===H?H:(z=H.ownerDocument)?z.defaultView||z.parentWindow:window,D?(P=l.relatedTarget||l.toElement,D=_,P=P?fa(P):null,P!==null&&(ze=x(P),se=P.tag,P!==ze||se!==5&&se!==27&&se!==6)&&(P=null)):(D=null,P=_),D!==P)){if(se=Fr,q="onMouseLeave",w="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(se=Ir,q="onPointerLeave",w="onPointerEnter",E="pointer"),ze=D==null?z:nn(D),M=P==null?z:nn(P),z=new se(q,E+"leave",D,l,H),z.target=ze,z.relatedTarget=M,q=null,fa(H)===_&&(se=new se(w,E+"enter",P,l,H),se.target=M,se.relatedTarget=ze,q=se),ze=q,D&&P)t:{for(se=Rx,w=D,E=P,M=0,q=w;q;q=se(q))M++;q=0;for(var le=E;le;le=se(le))q++;for(;0<M-q;)w=se(w),M--;for(;0<q-M;)E=se(E),q--;for(;M--;){if(w===E||E!==null&&w===E.alternate){se=w;break t}w=se(w),E=se(E)}se=null}else se=null;D!==null&&Zf(L,z,D,se,!1),P!==null&&ze!==null&&Zf(L,ze,P,se,!0)}}e:{if(z=_?nn(_):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var Ee=uo;else if(so(z))if(co)Ee=Lh;else{Ee=Hh;var I=Uh}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?_&&Ji(_.elementType)&&(Ee=uo):Ee=qh;if(Ee&&(Ee=Ee(e,_))){io(L,Ee,l,H);break e}I&&I(e,z,_),e==="focusout"&&_&&z.type==="number"&&_.memoizedProps.value!=null&&Ki(z,"number",z.value)}switch(I=_?nn(_):window,e){case"focusin":(so(I)||I.contentEditable==="true")&&(ja=I,ru=_,hn=null);break;case"focusout":hn=ru=ja=null;break;case"mousedown":ou=!0;break;case"contextmenu":case"mouseup":case"dragend":ou=!1,po(L,l,H);break;case"selectionchange":if(Yh)break;case"keydown":case"keyup":po(L,l,H)}var fe;if(su)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else ya?ao(e,l)&&(pe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(pe="onCompositionStart");pe&&(eo&&l.locale!=="ko"&&(ya||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&ya&&(fe=Jr()):(bl=H,eu="value"in bl?bl.value:bl.textContent,ya=!0)),I=ci(_,pe),0<I.length&&(pe=new Pr(pe,e,null,l,H),L.push({event:pe,listeners:I}),fe?pe.data=fe:(fe=no(l),fe!==null&&(pe.data=fe)))),(fe=_h?Ah(e,l):zh(e,l))&&(pe=ci(_,"onBeforeInput"),0<pe.length&&(I=new Pr("onBeforeInput","beforeinput",null,l,H),L.push({event:I,listeners:pe}),I.data=fe)),Sx(L,e,_,l,H)}Xf(L,t)})}function Bn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ci(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=sn(e,l),n!=null&&a.unshift(Bn(e,n,i)),n=sn(e,t),n!=null&&a.push(Bn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Rx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var m=l,y=m.alternate,_=m.stateNode;if(m=m.tag,y!==null&&y===a)break;m!==5&&m!==26&&m!==27||_===null||(y=_,n?(_=sn(l,i),_!=null&&c.unshift(Bn(l,_,y))):n||(_=sn(l,i),_!=null&&c.push(Bn(l,_,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Tx=/\r\n?/g,Mx=/\u0000|\uFFFD/g;function $f(e){return(typeof e=="string"?e:""+e).replace(Tx,`
|
|
49
|
+
`).replace(Mx,"")}function Kf(e,t){return t=$f(t),$f(e)===t}function Ae(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||pa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&pa(e,""+a);break;case"className":fs(e,"class",a);break;case"tabIndex":fs(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fs(e,l,a);break;case"style":Zr(e,a,i);break;case"data":if(t!=="object"){fs(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=hs(""+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"&&Ae(e,t,"name",n.name,n,null),Ae(e,t,"formEncType",n.formEncType,n,null),Ae(e,t,"formMethod",n.formMethod,n,null),Ae(e,t,"formTarget",n.formTarget,n,null)):(Ae(e,t,"encType",n.encType,n,null),Ae(e,t,"method",n.method,n,null),Ae(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=hs(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Ft);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("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=hs(""+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":xe("beforetoggle",e),xe("toggle",e),ds(e,"popover",a);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ds(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=ah.get(l)||l,ds(e,l,a))}}function Uc(e,t,l,a,n,i){switch(l){case"style":Zr(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"?pa(e,a):(typeof a=="number"||typeof a=="bigint")&&pa(e,""+a);break;case"onScroll":a!=null&&xe("scroll",e);break;case"onScrollEnd":a!=null&&xe("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qr.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[rt]||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,""):ds(e,l,a)}}}function st(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("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:Ae(e,t,i,c,l,null)}}n&&Ae(e,t,"srcSet",l.srcSet,l,null),a&&Ae(e,t,"src",l.src,l,null);return;case"input":xe("invalid",e);var m=i=c=n=null,y=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":n=H;break;case"type":c=H;break;case"checked":y=H;break;case"defaultChecked":_=H;break;case"value":i=H;break;case"defaultValue":m=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Ae(e,t,a,H,l,null)}}Gr(e,i,m,y,_,c,n,!1);return;case"select":xe("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":i=m;break;case"defaultValue":c=m;break;case"multiple":a=m;default:Ae(e,t,n,m,l,null)}t=i,l=c,e.multiple=!!a,t!=null?va(e,!!a,t,!1):l!=null&&va(e,!!a,l,!0);return;case"textarea":xe("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(m=l[c],m!=null))switch(c){case"value":a=m;break;case"defaultValue":n=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:Ae(e,t,c,m,l,null)}Xr(e,a,n,i);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ae(e,t,y,a,l,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(a=0;a<Ln.length;a++)xe(Ln[a],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(_ in l)if(l.hasOwnProperty(_)&&(a=l[_],a!=null))switch(_){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ae(e,t,_,a,l,null)}return;default:if(Ji(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&Uc(e,t,H,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&Ae(e,t,m,a,l,null))}function _x(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,m=null,y=null,_=null,H=null;for(D in l){var L=l[D];if(l.hasOwnProperty(D)&&L!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":y=L;default:a.hasOwnProperty(D)||Ae(e,t,D,null,a,L)}}for(var z in a){var D=a[z];if(L=l[z],a.hasOwnProperty(z)&&(D!=null||L!=null))switch(z){case"type":i=D;break;case"name":n=D;break;case"checked":_=D;break;case"defaultChecked":H=D;break;case"value":c=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:D!==L&&Ae(e,t,z,D,a,L)}}$i(e,c,m,y,_,H,i,n);return;case"select":D=c=m=z=null;for(i in l)if(y=l[i],l.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":D=y;default:a.hasOwnProperty(i)||Ae(e,t,i,null,a,y)}for(n in a)if(i=a[n],y=l[n],a.hasOwnProperty(n)&&(i!=null||y!=null))switch(n){case"value":z=i;break;case"defaultValue":m=i;break;case"multiple":c=i;default:i!==y&&Ae(e,t,n,i,a,y)}t=m,l=c,a=D,z!=null?va(e,!!l,z,!1):!!a!=!!l&&(t!=null?va(e,!!l,t,!0):va(e,!!l,l?[]:"",!1));return;case"textarea":D=z=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ae(e,t,m,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":z=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Ae(e,t,c,n,a,i)}Qr(e,z,D);return;case"option":for(var P in l)if(z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Ae(e,t,P,null,a,z)}for(y in a)if(z=a[y],D=l[y],a.hasOwnProperty(y)&&z!==D&&(z!=null||D!=null))switch(y){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ae(e,t,y,z,a,D)}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 se in l)z=l[se],l.hasOwnProperty(se)&&z!=null&&!a.hasOwnProperty(se)&&Ae(e,t,se,null,a,z);for(_ in a)if(z=a[_],D=l[_],a.hasOwnProperty(_)&&z!==D&&(z!=null||D!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:Ae(e,t,_,z,a,D)}return;default:if(Ji(t)){for(var ze in l)z=l[ze],l.hasOwnProperty(ze)&&z!==void 0&&!a.hasOwnProperty(ze)&&Uc(e,t,ze,void 0,a,z);for(H in a)z=a[H],D=l[H],!a.hasOwnProperty(H)||z===D||z===void 0&&D===void 0||Uc(e,t,H,z,a,D);return}}for(var w in l)z=l[w],l.hasOwnProperty(w)&&z!=null&&!a.hasOwnProperty(w)&&Ae(e,t,w,null,a,z);for(L in a)z=a[L],D=l[L],!a.hasOwnProperty(L)||z===D||z==null&&D==null||Ae(e,t,L,z,a,D)}function Jf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ax(){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,m=n.duration;if(i&&m&&Jf(c)){for(c=0,m=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],_=y.startTime;if(_>m)break;var H=y.transferSize,L=y.initiatorType;H&&Jf(L)&&(y=y.responseEnd,c+=H*(y<m?1:(m-_)/(y-_)))}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 Hc=null,qc=null;function ri(e){return e.nodeType===9?e:e.ownerDocument}function Wf(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 Ff(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 Lc(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 Bc=null;function zx(){var e=window.event;return e&&e.type==="popstate"?e===Bc?!1:(Bc=e,!0):(Bc=null,!1)}var Pf=typeof setTimeout=="function"?setTimeout:void 0,Dx=typeof clearTimeout=="function"?clearTimeout:void 0,If=typeof Promise=="function"?Promise:void 0,Ox=typeof queueMicrotask=="function"?queueMicrotask:typeof If<"u"?function(e){return If.resolve(null).then(e).catch(Ux)}:Pf;function Ux(e){setTimeout(function(){throw e})}function Hl(e){return e==="head"}function em(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),Ka(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Yn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Yn(l);for(var i=l.firstChild;i;){var c=i.nextSibling,m=i.nodeName;i[an]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Yn(e.ownerDocument.body);l=n}while(l);Ka(t)}function tm(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 Yc(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":Yc(l),Vi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Hx(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[an])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=qt(e.nextSibling),e===null)break}return null}function qx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=qt(e.nextSibling),e===null))return null;return e}function lm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function kc(e){return e.data==="$?"||e.data==="$~"}function Gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lx(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 qt(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 Qc=null;function am(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function nm(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 sm(e,t,l){switch(t=ri(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 Yn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Vi(e)}var Lt=new Map,im=new Set;function oi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ml=V.d;V.d={f:Bx,r:Yx,D:kx,C:Gx,L:Qx,m:Xx,X:Zx,S:Vx,M:$x};function Bx(){var e=ml.f(),t=ti();return e||t}function Yx(e){var t=ma(e);t!==null&&t.tag===5&&t.type==="form"?Nd(t):ml.r(e)}var Va=typeof document>"u"?null:document;function um(e,t,l){var a=Va;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),im.has(n)||(im.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function kx(e){ml.D(e),um("dns-prefetch",e,null)}function Gx(e,t){ml.C(e,t),um("preconnect",e,t)}function Qx(e,t,l){ml.L(e,t,l);var a=Va;if(a&&e&&t){var n='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+_t(l.imageSizes)+'"]')):n+='[href="'+_t(e)+'"]';var i=n;switch(t){case"style":i=Za(e);break;case"script":i=$a(e)}Lt.has(i)||(e=j({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Lt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(kn(i))||t==="script"&&a.querySelector(Gn(i))||(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Xx(e,t){ml.m(e,t);var l=Va;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=$a(e)}if(!Lt.has(i)&&(e=j({rel:"modulepreload",href:e},t),Lt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gn(i)))return}a=l.createElement("link"),st(a,"link",e),Ie(a),l.head.appendChild(a)}}}function Vx(e,t,l){ml.S(e,t,l);var a=Va;if(a&&e){var n=ha(a).hoistableStyles,i=Za(e);t=t||"default";var c=n.get(i);if(!c){var m={loading:0,preload:null};if(c=a.querySelector(kn(i)))m.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Lt.get(i))&&Xc(e,l);var y=c=a.createElement("link");Ie(y),st(y,"link",e),y._p=new Promise(function(_,H){y.onload=_,y.onerror=H}),y.addEventListener("load",function(){m.loading|=1}),y.addEventListener("error",function(){m.loading|=2}),m.loading|=4,di(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:m},n.set(i,c)}}}function Zx(e,t){ml.X(e,t);var l=Va;if(l&&e){var a=ha(l).hoistableScripts,n=$a(e),i=a.get(n);i||(i=l.querySelector(Gn(n)),i||(e=j({src:e,async:!0},t),(t=Lt.get(n))&&Vc(e,t),i=l.createElement("script"),Ie(i),st(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function $x(e,t){ml.M(e,t);var l=Va;if(l&&e){var a=ha(l).hoistableScripts,n=$a(e),i=a.get(n);i||(i=l.querySelector(Gn(n)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Lt.get(n))&&Vc(e,t),i=l.createElement("script"),Ie(i),st(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function cm(e,t,l,a){var n=(n=ie.current)?oi(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=Za(l.href),l=ha(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=Za(l.href);var i=ha(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(kn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Lt.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},Lt.set(e,l),i||Kx(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=$a(l),l=ha(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 Za(e){return'href="'+_t(e)+'"'}function kn(e){return'link[rel="stylesheet"]['+e+"]"}function rm(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Kx(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}),st(t,"link",l),Ie(t),e.head.appendChild(t))}function $a(e){return'[src="'+_t(e)+'"]'}function Gn(e){return"script[async]"+e}function om(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Ie(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"),Ie(a),st(a,"style",n),di(a,l.precedence,e),t.instance=a;case"stylesheet":n=Za(l.href);var i=e.querySelector(kn(n));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;a=rm(l),(n=Lt.get(n))&&Xc(a,n),i=(e.ownerDocument||e).createElement("link"),Ie(i);var c=i;return c._p=new Promise(function(m,y){c.onload=m,c.onerror=y}),st(i,"link",a),t.state.loading|=4,di(i,l.precedence,e),t.instance=i;case"script":return i=$a(l.src),(n=e.querySelector(Gn(i)))?(t.instance=n,Ie(n),n):(a=l,(n=Lt.get(i))&&(a=j({},l),Vc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ie(n),st(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,di(a,l.precedence,e));return t.instance}function di(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 m=a[c];if(m.dataset.precedence===t)i=m;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 Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Vc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fi=null;function dm(e,t,l){if(fi===null){var a=new Map,n=fi=new Map;n.set(l,a)}else n=fi,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[an]||i[tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var m=a.get(c);m?m.push(i):a.set(c,[i])}}return a}function fm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Jx(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 mm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wx(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=Za(a.href),i=t.querySelector(kn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ie(i);return}i=t.ownerDocument||t,a=rm(a),(n=Lt.get(n))&&Xc(a,n),i=i.createElement("link"),Ie(i);var c=i;c._p=new Promise(function(m,y){c.onload=m,c.onerror=y}),st(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=mi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Zc=0;function Fx(e,t){return e.stylesheets&&e.count===0&&xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&xi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Zc===0&&(Zc=62500*Ax());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Zc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function mi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hi=null;function xi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hi=new Map,t.forEach(Px,e),hi=null,mi.call(e))}function Px(e,t){if(!(t.state.loading&4)){var l=hi.get(e);if(l)var a=l.get(null);else{l=new Map,hi.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=mi.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 Qn={$$typeof:Y,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Ix(e,t,l,a,n,i,c,m,y){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=ki(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ki(0),this.hiddenUpdates=ki(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function hm(e,t,l,a,n,i,c,m,y,_,H,L){return e=new Ix(e,t,l,c,y,_,H,L,m),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=wu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Mu(i),e}function xm(e){return e?(e=Ea,e):Ea}function vm(e,t,l,a,n,i){n=xm(n),a.context===null?a.context=n:a.pendingContext=n,a=wl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Cl(e,a,t),l!==null&&(xt(l,e,t),jn(l,e,t))}function pm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function $c(e,t){pm(e,t),(e=e.alternate)&&pm(e,t)}function gm(e){if(e.tag===13||e.tag===31){var t=Wl(e,67108864);t!==null&&xt(t,e,67108864),$c(e,67108864)}}function bm(e){if(e.tag===13||e.tag===31){var t=wt();t=Gi(t);var l=Wl(e,t);l!==null&&xt(l,e,t),$c(e,t)}}var vi=!0;function ev(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=2,Kc(e,t,l,a)}finally{V.p=i,A.T=n}}function tv(e,t,l,a){var n=A.T;A.T=null;var i=V.p;try{V.p=8,Kc(e,t,l,a)}finally{V.p=i,A.T=n}}function Kc(e,t,l,a){if(vi){var n=Jc(a);if(n===null)Oc(e,t,a,pi,l),jm(e,a);else if(av(n,e,t,l,a))a.stopPropagation();else if(jm(e,a),t&4&&-1<lv.indexOf(e)){for(;n!==null;){var i=ma(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Vl(i.pendingLanes);if(c!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;c;){var y=1<<31-gt(c);m.entanglements[1]|=y,c&=~y}$t(i),(Ce&6)===0&&(Is=vt()+500,qn(0))}}break;case 31:case 13:m=Wl(i,2),m!==null&&xt(m,i,2),ti(),$c(i,2)}if(i=Jc(a),i===null&&Oc(e,t,a,pi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Oc(e,t,a,null,l)}}function Jc(e){return e=Fi(e),Wc(e)}var pi=null;function Wc(e){if(pi=null,e=fa(e),e!==null){var t=x(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=b(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 pi=e,null}function ym(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(k0()){case Cr:return 2;case Rr:return 8;case is:case G0:return 32;case Tr:return 268435456;default:return 32}default:return 32}}var Fc=!1,ql=null,Ll=null,Bl=null,Xn=new Map,Vn=new Map,Yl=[],lv="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 jm(e,t){switch(e){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":Ll=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":Xn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vn.delete(t.pointerId)}}function Zn(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=ma(t),t!==null&&gm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function av(e,t,l,a,n){switch(t){case"focusin":return ql=Zn(ql,e,t,l,a,n),!0;case"dragenter":return Ll=Zn(Ll,e,t,l,a,n),!0;case"mouseover":return Bl=Zn(Bl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Xn.set(i,Zn(Xn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Vn.set(i,Zn(Vn.get(i)||null,e,t,l,a,n)),!0}return!1}function Nm(e){var t=fa(e.target);if(t!==null){var l=x(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Or(e.priority,function(){bm(l)});return}}else if(t===31){if(t=b(l),t!==null){e.blockedOn=t,Or(e.priority,function(){bm(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 gi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Jc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Wi=a,l.target.dispatchEvent(a),Wi=null}else return t=ma(l),t!==null&&gm(t),e.blockedOn=l,!1;t.shift()}return!0}function Sm(e,t,l){gi(e)&&l.delete(t)}function nv(){Fc=!1,ql!==null&&gi(ql)&&(ql=null),Ll!==null&&gi(Ll)&&(Ll=null),Bl!==null&&gi(Bl)&&(Bl=null),Xn.forEach(Sm),Vn.forEach(Sm)}function bi(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,nv)))}var yi=null;function Em(e){yi!==e&&(yi=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){yi===e&&(yi=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(Wc(a||l)===null)continue;break}var i=ma(l);i!==null&&(e.splice(t,3),t-=3,Ju(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ka(e){function t(y){return bi(y,e)}ql!==null&&bi(ql,e),Ll!==null&&bi(Ll,e),Bl!==null&&bi(Bl,e),Xn.forEach(t),Vn.forEach(t);for(var l=0;l<Yl.length;l++){var a=Yl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Yl.length&&(l=Yl[0],l.blockedOn===null);)Nm(l),l.blockedOn===null&&Yl.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[rt]||null;if(typeof i=="function")c||Em(l);else if(c){var m=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[rt]||null)m=c.formAction;else if(Wc(n)!==null)continue}else m=c.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Em(l)}}}function wm(){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 Pc(e){this._internalRoot=e}ji.prototype.render=Pc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=wt();vm(l,a,e,t,null,null)},ji.prototype.unmount=Pc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;vm(e.current,2,null,e,null,null),ti(),t[da]=null}};function ji(e){this._internalRoot=e}ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Yl.length&&t!==0&&t<Yl[l].priority;l++);Yl.splice(l,0,e),l===0&&Nm(e)}};var Cm=o.version;if(Cm!=="19.2.4")throw Error(r(527,Cm,"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=v(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var sv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ni.isDisabled&&Ni.supportsFiber)try{en=Ni.inject(sv),pt=Ni}catch{}}return Kn.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,a="",n=zd,i=Dd,c=Od;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=hm(e,1,!1,null,null,l,a,null,n,i,c,wm),e[da]=t.current,Dc(e),new Pc(t)},Kn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var a=!1,n="",i=zd,c=Dd,m=Od,y=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&&(m=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=hm(e,1,!0,t,l??null,a,n,y,i,c,m,wm),t.context=xm(null),l=t.current,a=wt(),a=Gi(a),n=wl(a),n.callback=null,Cl(l,n,a),l=a,t.current.lanes=l,ln(t,l),$t(t),e[da]=t.current,Dc(e),new ji(t)},Kn.version="19.2.4",Kn}var Hm;function xv(){if(Hm)return tr.exports;Hm=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),tr.exports=hv(),tr.exports}var vv=xv();const pv=Jm(vv);/**
|
|
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 qm="popstate";function gv(u={}){function o(h,x){let{pathname:f="/",search:b="",hash:p=""}=oa(h.location.hash.substring(1));return!f.startsWith("/")&&!f.startsWith(".")&&(f="/"+f),or("",{pathname:f,search:b,hash:p},x.state&&x.state.usr||null,x.state&&x.state.key||"default")}function d(h,x){let f=h.document.querySelector("base"),b="";if(f&&f.getAttribute("href")){let p=h.location.href,v=p.indexOf("#");b=v===-1?p:p.slice(0,v)}return b+"#"+(typeof x=="string"?x:Fn(x))}function r(h,x){Yt(h.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(x)})`)}return yv(o,d,r,u)}function Ye(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Yt(u,o){if(!u){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function bv(){return Math.random().toString(36).substring(2,10)}function Lm(u,o){return{usr:u.state,key:u.key,idx:o}}function or(u,o,d=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof o=="string"?oa(o):o,state:d,key:o&&o.key||r||bv()}}function Fn({pathname:u="/",search:o="",hash:d=""}){return o&&o!=="?"&&(u+=o.charAt(0)==="?"?o:"?"+o),d&&d!=="#"&&(u+=d.charAt(0)==="#"?d:"#"+d),u}function oa(u){let o={};if(u){let d=u.indexOf("#");d>=0&&(o.hash=u.substring(d),u=u.substring(0,d));let r=u.indexOf("?");r>=0&&(o.search=u.substring(r),u=u.substring(0,r)),u&&(o.pathname=u)}return o}function yv(u,o,d,r={}){let{window:h=document.defaultView,v5Compat:x=!1}=r,f=h.history,b="POP",p=null,v=N();v==null&&(v=0,f.replaceState({...f.state,idx:v},""));function N(){return(f.state||{idx:null}).idx}function j(){b="POP";let U=N(),k=U==null?null:U-v;v=U,p&&p({action:b,location:g.location,delta:k})}function O(U,k){b="PUSH";let G=or(g.location,U,k);d&&d(G,U),v=N()+1;let Y=Lm(G,v),ae=g.createHref(G);try{f.pushState(Y,"",ae)}catch(de){if(de instanceof DOMException&&de.name==="DataCloneError")throw de;h.location.assign(ae)}x&&p&&p({action:b,location:g.location,delta:1})}function X(U,k){b="REPLACE";let G=or(g.location,U,k);d&&d(G,U),v=N();let Y=Lm(G,v),ae=g.createHref(G);f.replaceState(Y,"",ae),x&&p&&p({action:b,location:g.location,delta:0})}function T(U){return jv(U)}let g={get action(){return b},get location(){return u(h,f)},listen(U){if(p)throw new Error("A history only accepts one active listener");return h.addEventListener(qm,j),p=U,()=>{h.removeEventListener(qm,j),p=null}},createHref(U){return o(h,U)},createURL:T,encodeLocation(U){let k=T(U);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:O,replace:X,go(U){return f.go(U)}};return g}function jv(u,o=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(d,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:Fn(u);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=d+r),new URL(r,d)}function Wm(u,o,d="/"){return Nv(u,o,d,!1)}function Nv(u,o,d,r){let h=typeof o=="string"?oa(o):o,x=vl(h.pathname||"/",d);if(x==null)return null;let f=Fm(u);Sv(f);let b=null;for(let p=0;b==null&&p<f.length;++p){let v=Ov(x);b=zv(f[p],v,r)}return b}function Fm(u,o=[],d=[],r="",h=!1){let x=(f,b,p=h,v)=>{let N={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:b,route:f};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(r)&&p)return;Ye(N.relativePath.startsWith(r),`Absolute route path "${N.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(r.length)}let j=xl([r,N.relativePath]),O=d.concat(N);f.children&&f.children.length>0&&(Ye(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),Fm(f.children,o,O,j,p)),!(f.path==null&&!f.index)&&o.push({path:j,score:_v(j,f.index),routesMeta:O})};return u.forEach((f,b)=>{var p;if(f.path===""||!((p=f.path)!=null&&p.includes("?")))x(f,b);else for(let v of Pm(f.path))x(f,b,!0,v)}),o}function Pm(u){let o=u.split("/");if(o.length===0)return[];let[d,...r]=o,h=d.endsWith("?"),x=d.replace(/\?$/,"");if(r.length===0)return h?[x,""]:[x];let f=Pm(r.join("/")),b=[];return b.push(...f.map(p=>p===""?x:[x,p].join("/"))),h&&b.push(...f),b.map(p=>u.startsWith("/")&&p===""?"/":p)}function Sv(u){u.sort((o,d)=>o.score!==d.score?d.score-o.score:Av(o.routesMeta.map(r=>r.childrenIndex),d.routesMeta.map(r=>r.childrenIndex)))}var Ev=/^:[\w-]+$/,wv=3,Cv=2,Rv=1,Tv=10,Mv=-2,Bm=u=>u==="*";function _v(u,o){let d=u.split("/"),r=d.length;return d.some(Bm)&&(r+=Mv),o&&(r+=Cv),d.filter(h=>!Bm(h)).reduce((h,x)=>h+(Ev.test(x)?wv:x===""?Rv:Tv),r)}function Av(u,o){return u.length===o.length&&u.slice(0,-1).every((r,h)=>r===o[h])?u[u.length-1]-o[o.length-1]:0}function zv(u,o,d=!1){let{routesMeta:r}=u,h={},x="/",f=[];for(let b=0;b<r.length;++b){let p=r[b],v=b===r.length-1,N=x==="/"?o:o.slice(x.length)||"/",j=Mi({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},N),O=p.route;if(!j&&v&&d&&!r[r.length-1].route.index&&(j=Mi({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},N)),!j)return null;Object.assign(h,j.params),f.push({params:h,pathname:xl([x,j.pathname]),pathnameBase:Lv(xl([x,j.pathnameBase])),route:O}),j.pathnameBase!=="/"&&(x=xl([x,j.pathnameBase]))}return f}function Mi(u,o){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[d,r]=Dv(u.path,u.caseSensitive,u.end),h=o.match(d);if(!h)return null;let x=h[0],f=x.replace(/(.)\/+$/,"$1"),b=h.slice(1);return{params:r.reduce((v,{paramName:N,isOptional:j},O)=>{if(N==="*"){let T=b[O]||"";f=x.slice(0,x.length-T.length).replace(/(.)\/+$/,"$1")}const X=b[O];return j&&!X?v[N]=void 0:v[N]=(X||"").replace(/%2F/g,"/"),v},{}),pathname:x,pathnameBase:f,pattern:u}}function Dv(u,o=!1,d=!0){Yt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],h="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,b,p)=>(r.push({paramName:b,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),h+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?h+="\\/*$":u!==""&&u!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,o?void 0:"i"),r]}function Ov(u){try{return u.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Yt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),u}}function vl(u,o){if(o==="/")return u;if(!u.toLowerCase().startsWith(o.toLowerCase()))return null;let d=o.endsWith("/")?o.length-1:o.length,r=u.charAt(d);return r&&r!=="/"?null:u.slice(d)||"/"}var Uv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Hv(u,o="/"){let{pathname:d,search:r="",hash:h=""}=typeof u=="string"?oa(u):u,x;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?x=Ym(d.substring(1),"/"):x=Ym(d,o)):x=o,{pathname:x,search:Bv(r),hash:Yv(h)}}function Ym(u,o){let d=o.replace(/\/+$/,"").split("/");return u.split("/").forEach(h=>{h===".."?d.length>1&&d.pop():h!=="."&&d.push(h)}),d.length>1?d.join("/"):"/"}function sr(u,o,d,r){return`Cannot include a '${u}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qv(u){return u.filter((o,d)=>d===0||o.route.path&&o.route.path.length>0)}function xr(u){let o=qv(u);return o.map((d,r)=>r===o.length-1?d.pathname:d.pathnameBase)}function vr(u,o,d,r=!1){let h;typeof u=="string"?h=oa(u):(h={...u},Ye(!h.pathname||!h.pathname.includes("?"),sr("?","pathname","search",h)),Ye(!h.pathname||!h.pathname.includes("#"),sr("#","pathname","hash",h)),Ye(!h.search||!h.search.includes("#"),sr("#","search","hash",h)));let x=u===""||h.pathname==="",f=x?"/":h.pathname,b;if(f==null)b=d;else{let j=o.length-1;if(!r&&f.startsWith("..")){let O=f.split("/");for(;O[0]==="..";)O.shift(),j-=1;h.pathname=O.join("/")}b=j>=0?o[j]:"/"}let p=Hv(h,b),v=f&&f!=="/"&&f.endsWith("/"),N=(x||f===".")&&d.endsWith("/");return!p.pathname.endsWith("/")&&(v||N)&&(p.pathname+="/"),p}var xl=u=>u.join("/").replace(/\/\/+/g,"/"),Lv=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Bv=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Yv=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,kv=class{constructor(u,o,d,r=!1){this.status=u,this.statusText=o||"",this.internal=r,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function Gv(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Qv(u){return u.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Im=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e0(u,o){let d=u;if(typeof d!="string"||!Uv.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let r=d,h=!1;if(Im)try{let x=new URL(window.location.href),f=d.startsWith("//")?new URL(x.protocol+d):new URL(d),b=vl(f.pathname,o);f.origin===x.origin&&b!=null?d=b+f.search+f.hash:h=!0}catch{Yt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:h,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var t0=["POST","PUT","PATCH","DELETE"];new Set(t0);var Xv=["GET",...t0];new Set(Xv);var Fa=C.createContext(null);Fa.displayName="DataRouter";var zi=C.createContext(null);zi.displayName="DataRouterState";var Vv=C.createContext(!1),l0=C.createContext({isTransitioning:!1});l0.displayName="ViewTransition";var Zv=C.createContext(new Map);Zv.displayName="Fetchers";var $v=C.createContext(null);$v.displayName="Await";var Rt=C.createContext(null);Rt.displayName="Navigation";var In=C.createContext(null);In.displayName="Location";var Jt=C.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var pr=C.createContext(null);pr.displayName="RouteError";var a0="REACT_ROUTER_ERROR",Kv="REDIRECT",Jv="ROUTE_ERROR_RESPONSE";function Wv(u){if(u.startsWith(`${a0}:${Kv}:{`))try{let o=JSON.parse(u.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 Fv(u){if(u.startsWith(`${a0}:${Jv}:{`))try{let o=JSON.parse(u.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new kv(o.status,o.statusText,o.data)}catch{}}function Pv(u,{relative:o}={}){Ye(Pa(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:r}=C.useContext(Rt),{hash:h,pathname:x,search:f}=es(u,{relative:o}),b=x;return d!=="/"&&(b=x==="/"?d:xl([d,x])),r.createHref({pathname:b,search:f,hash:h})}function Pa(){return C.useContext(In)!=null}function Ql(){return Ye(Pa(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(In).location}var n0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s0(u){C.useContext(Rt).static||C.useLayoutEffect(u)}function gr(){let{isDataRoute:u}=C.useContext(Jt);return u?dp():Iv()}function Iv(){Ye(Pa(),"useNavigate() may be used only in the context of a <Router> component.");let u=C.useContext(Fa),{basename:o,navigator:d}=C.useContext(Rt),{matches:r}=C.useContext(Jt),{pathname:h}=Ql(),x=JSON.stringify(xr(r)),f=C.useRef(!1);return s0(()=>{f.current=!0}),C.useCallback((p,v={})=>{if(Yt(f.current,n0),!f.current)return;if(typeof p=="number"){d.go(p);return}let N=vr(p,JSON.parse(x),h,v.relative==="path");u==null&&o!=="/"&&(N.pathname=N.pathname==="/"?o:xl([o,N.pathname])),(v.replace?d.replace:d.push)(N,v.state,v)},[o,d,x,h,u])}C.createContext(null);function es(u,{relative:o}={}){let{matches:d}=C.useContext(Jt),{pathname:r}=Ql(),h=JSON.stringify(xr(d));return C.useMemo(()=>vr(u,JSON.parse(h),r,o==="path"),[u,h,r,o])}function ep(u,o){return i0(u,o)}function i0(u,o,d,r,h){var G;Ye(Pa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:x}=C.useContext(Rt),{matches:f}=C.useContext(Jt),b=f[f.length-1],p=b?b.params:{},v=b?b.pathname:"/",N=b?b.pathnameBase:"/",j=b&&b.route;{let Y=j&&j.path||"";c0(v,!j||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (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 O=Ql(),X;if(o){let Y=typeof o=="string"?oa(o):o;Ye(N==="/"||((G=Y.pathname)==null?void 0:G.startsWith(N)),`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 "${N}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),X=Y}else X=O;let T=X.pathname||"/",g=T;if(N!=="/"){let Y=N.replace(/^\//,"").split("/");g="/"+T.replace(/^\//,"").split("/").slice(Y.length).join("/")}let U=Wm(u,{pathname:g});Yt(j||U!=null,`No routes matched location "${X.pathname}${X.search}${X.hash}" `),Yt(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${X.pathname}${X.search}${X.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=sp(U&&U.map(Y=>Object.assign({},Y,{params:Object.assign({},p,Y.params),pathname:xl([N,x.encodeLocation?x.encodeLocation(Y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?N:xl([N,x.encodeLocation?x.encodeLocation(Y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),f,d,r,h);return o&&k?C.createElement(In.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...X},navigationType:"POP"}},k):k}function tp(){let u=op(),o=Gv(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),d=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},x={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",u),f=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:x},"ErrorBoundary")," or"," ",C.createElement("code",{style:x},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},o),d?C.createElement("pre",{style:h},d):null,f)}var lp=C.createElement(tp,null),u0=class extends C.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,o){return o.location!==u.location||o.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:o.error,location:o.location,revalidation:u.revalidation||o.revalidation}}componentDidCatch(u,o){this.props.onError?this.props.onError(u,o):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const d=Fv(u.digest);d&&(u=d)}let o=u!==void 0?C.createElement(Jt.Provider,{value:this.props.routeContext},C.createElement(pr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?C.createElement(ap,{error:u},o):o}};u0.contextType=Vv;var ir=new WeakMap;function ap({children:u,error:o}){let{basename:d}=C.useContext(Rt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=Wv(o.digest);if(r){let h=ir.get(o);if(h)throw h;let x=e0(r.location,d);if(Im&&!ir.get(o))if(x.isExternal||r.reloadDocument)window.location.href=x.absoluteURL||x.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(x.to,{replace:r.replace}));throw ir.set(o,f),f}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${x.absoluteURL||x.to}`})}}return u}function np({routeContext:u,match:o,children:d}){let r=C.useContext(Fa);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),C.createElement(Jt.Provider,{value:u},d)}function sp(u,o=[],d=null,r=null,h=null){if(u==null){if(!d)return null;if(d.errors)u=d.matches;else if(o.length===0&&!d.initialized&&d.matches.length>0)u=d.matches;else return null}let x=u,f=d==null?void 0:d.errors;if(f!=null){let N=x.findIndex(j=>j.route.id&&(f==null?void 0:f[j.route.id])!==void 0);Ye(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),x=x.slice(0,Math.min(x.length,N+1))}let b=!1,p=-1;if(d)for(let N=0;N<x.length;N++){let j=x[N];if((j.route.HydrateFallback||j.route.hydrateFallbackElement)&&(p=N),j.route.id){let{loaderData:O,errors:X}=d,T=j.route.loader&&!O.hasOwnProperty(j.route.id)&&(!X||X[j.route.id]===void 0);if(j.route.lazy||T){b=!0,p>=0?x=x.slice(0,p+1):x=[x[0]];break}}}let v=d&&r?(N,j)=>{var O,X;r(N,{location:d.location,params:((X=(O=d.matches)==null?void 0:O[0])==null?void 0:X.params)??{},unstable_pattern:Qv(d.matches),errorInfo:j})}:void 0;return x.reduceRight((N,j,O)=>{let X,T=!1,g=null,U=null;d&&(X=f&&j.route.id?f[j.route.id]:void 0,g=j.route.errorElement||lp,b&&(p<0&&O===0?(c0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,U=null):p===O&&(T=!0,U=j.route.hydrateFallbackElement||null)));let k=o.concat(x.slice(0,O+1)),G=()=>{let Y;return X?Y=g:T?Y=U:j.route.Component?Y=C.createElement(j.route.Component,null):j.route.element?Y=j.route.element:Y=N,C.createElement(np,{match:j,routeContext:{outlet:N,matches:k,isDataRoute:d!=null},children:Y})};return d&&(j.route.ErrorBoundary||j.route.errorElement||O===0)?C.createElement(u0,{location:d.location,revalidation:d.revalidation,component:g,error:X,children:G(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:v}):G()},null)}function br(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ip(u){let o=C.useContext(Fa);return Ye(o,br(u)),o}function up(u){let o=C.useContext(zi);return Ye(o,br(u)),o}function cp(u){let o=C.useContext(Jt);return Ye(o,br(u)),o}function yr(u){let o=cp(u),d=o.matches[o.matches.length-1];return Ye(d.route.id,`${u} can only be used on routes that contain a unique "id"`),d.route.id}function rp(){return yr("useRouteId")}function op(){var r;let u=C.useContext(pr),o=up("useRouteError"),d=yr("useRouteError");return u!==void 0?u:(r=o.errors)==null?void 0:r[d]}function dp(){let{router:u}=ip("useNavigate"),o=yr("useNavigate"),d=C.useRef(!1);return s0(()=>{d.current=!0}),C.useCallback(async(h,x={})=>{Yt(d.current,n0),d.current&&(typeof h=="number"?await u.navigate(h):await u.navigate(h,{fromRouteId:o,...x}))},[u,o])}var km={};function c0(u,o,d){!o&&!km[u]&&(km[u]=!0,Yt(!1,d))}C.memo(fp);function fp({routes:u,future:o,state:d,onError:r}){return i0(u,void 0,d,r,o)}function mp({to:u,replace:o,state:d,relative:r}){Ye(Pa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:h}=C.useContext(Rt);Yt(!h,"<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:x}=C.useContext(Jt),{pathname:f}=Ql(),b=gr(),p=vr(u,xr(x),f,r==="path"),v=JSON.stringify(p);return C.useEffect(()=>{b(JSON.parse(v),{replace:o,state:d,relative:r})},[b,v,r,o,d]),null}function hl(u){Ye(!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 hp({basename:u="/",children:o=null,location:d,navigationType:r="POP",navigator:h,static:x=!1,unstable_useTransitions:f}){Ye(!Pa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),p=C.useMemo(()=>({basename:b,navigator:h,static:x,unstable_useTransitions:f,future:{}}),[b,h,x,f]);typeof d=="string"&&(d=oa(d));let{pathname:v="/",search:N="",hash:j="",state:O=null,key:X="default"}=d,T=C.useMemo(()=>{let g=vl(v,b);return g==null?null:{location:{pathname:g,search:N,hash:j,state:O,key:X},navigationType:r}},[b,v,N,j,O,X,r]);return Yt(T!=null,`<Router basename="${b}"> is not able to match the URL "${v}${N}${j}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:C.createElement(Rt.Provider,{value:p},C.createElement(In.Provider,{children:o,value:T}))}function xp({children:u,location:o}){return ep(dr(u),o)}function dr(u,o=[]){let d=[];return C.Children.forEach(u,(r,h)=>{if(!C.isValidElement(r))return;let x=[...o,h];if(r.type===C.Fragment){d.push.apply(d,dr(r.props.children,x));return}Ye(r.type===hl,`[${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>`),Ye(!r.props.index||!r.props.children,"An index route cannot have child routes.");let f={id:r.props.id||x.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&&(f.children=dr(r.props.children,x)),d.push(f)}),d}var Ei="get",wi="application/x-www-form-urlencoded";function Di(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function vp(u){return Di(u)&&u.tagName.toLowerCase()==="button"}function pp(u){return Di(u)&&u.tagName.toLowerCase()==="form"}function gp(u){return Di(u)&&u.tagName.toLowerCase()==="input"}function bp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function yp(u,o){return u.button===0&&(!o||o==="_self")&&!bp(u)}var Si=null;function jp(){if(Si===null)try{new FormData(document.createElement("form"),0),Si=!1}catch{Si=!0}return Si}var Np=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ur(u){return u!=null&&!Np.has(u)?(Yt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wi}"`),null):u}function Sp(u,o){let d,r,h,x,f;if(pp(u)){let b=u.getAttribute("action");r=b?vl(b,o):null,d=u.getAttribute("method")||Ei,h=ur(u.getAttribute("enctype"))||wi,x=new FormData(u)}else if(vp(u)||gp(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=u.getAttribute("formaction")||b.getAttribute("action");if(r=p?vl(p,o):null,d=u.getAttribute("formmethod")||b.getAttribute("method")||Ei,h=ur(u.getAttribute("formenctype"))||ur(b.getAttribute("enctype"))||wi,x=new FormData(b,u),!jp()){let{name:v,type:N,value:j}=u;if(N==="image"){let O=v?`${v}.`:"";x.append(`${O}x`,"0"),x.append(`${O}y`,"0")}else v&&x.append(v,j)}}else{if(Di(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=Ei,r=null,h=wi,f=u}return x&&h==="text/plain"&&(f=x,x=void 0),{action:r,method:d.toLowerCase(),encType:h,formData:x,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jr(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Ep(u,o,d,r){let h=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return d?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${r}`:h.pathname=`${h.pathname}.${r}`:h.pathname==="/"?h.pathname=`_root.${r}`:o&&vl(h.pathname,o)==="/"?h.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:h.pathname=`${h.pathname.replace(/\/$/,"")}.${r}`,h}async function wp(u,o){if(u.id in o)return o[u.id];try{let d=await import(u.module);return o[u.id]=d,d}catch(d){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Cp(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function Rp(u,o,d){let r=await Promise.all(u.map(async h=>{let x=o.routes[h.route.id];if(x){let f=await wp(x,d);return f.links?f.links():[]}return[]}));return Ap(r.flat(1).filter(Cp).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function Gm(u,o,d,r,h,x){let f=(p,v)=>d[v]?p.route.id!==d[v].route.id:!0,b=(p,v)=>{var N;return d[v].pathname!==p.pathname||((N=d[v].route.path)==null?void 0:N.endsWith("*"))&&d[v].params["*"]!==p.params["*"]};return x==="assets"?o.filter((p,v)=>f(p,v)||b(p,v)):x==="data"?o.filter((p,v)=>{var j;let N=r.routes[p.route.id];if(!N||!N.hasLoader)return!1;if(f(p,v)||b(p,v))return!0;if(p.route.shouldRevalidate){let O=p.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((j=d[0])==null?void 0:j.params)||{},nextUrl:new URL(u,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof O=="boolean")return O}return!0}):[]}function Tp(u,o,{includeHydrateFallback:d}={}){return Mp(u.map(r=>{let h=o.routes[r.route.id];if(!h)return[];let x=[h.module];return h.clientActionModule&&(x=x.concat(h.clientActionModule)),h.clientLoaderModule&&(x=x.concat(h.clientLoaderModule)),d&&h.hydrateFallbackModule&&(x=x.concat(h.hydrateFallbackModule)),h.imports&&(x=x.concat(h.imports)),x}).flat(1))}function Mp(u){return[...new Set(u)]}function _p(u){let o={},d=Object.keys(u).sort();for(let r of d)o[r]=u[r];return o}function Ap(u,o){let d=new Set;return new Set(o),u.reduce((r,h)=>{let x=JSON.stringify(_p(h));return d.has(x)||(d.add(x),r.push({key:x,link:h})),r},[])}function r0(){let u=C.useContext(Fa);return jr(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function zp(){let u=C.useContext(zi);return jr(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var Nr=C.createContext(void 0);Nr.displayName="FrameworkContext";function o0(){let u=C.useContext(Nr);return jr(u,"You must render this element inside a <HydratedRouter> element"),u}function Dp(u,o){let d=C.useContext(Nr),[r,h]=C.useState(!1),[x,f]=C.useState(!1),{onFocus:b,onBlur:p,onMouseEnter:v,onMouseLeave:N,onTouchStart:j}=o,O=C.useRef(null);C.useEffect(()=>{if(u==="render"&&f(!0),u==="viewport"){let g=k=>{k.forEach(G=>{f(G.isIntersecting)})},U=new IntersectionObserver(g,{threshold:.5});return O.current&&U.observe(O.current),()=>{U.disconnect()}}},[u]),C.useEffect(()=>{if(r){let g=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(g)}}},[r]);let X=()=>{h(!0)},T=()=>{h(!1),f(!1)};return d?u!=="intent"?[x,O,{}]:[x,O,{onFocus:Jn(b,X),onBlur:Jn(p,T),onMouseEnter:Jn(v,X),onMouseLeave:Jn(N,T),onTouchStart:Jn(j,X)}]:[!1,O,{}]}function Jn(u,o){return d=>{u&&u(d),d.defaultPrevented||o(d)}}function Op({page:u,...o}){let{router:d}=r0(),r=C.useMemo(()=>Wm(d.routes,u,d.basename),[d.routes,u,d.basename]);return r?C.createElement(Hp,{page:u,matches:r,...o}):null}function Up(u){let{manifest:o,routeModules:d}=o0(),[r,h]=C.useState([]);return C.useEffect(()=>{let x=!1;return Rp(u,o,d).then(f=>{x||h(f)}),()=>{x=!0}},[u,o,d]),r}function Hp({page:u,matches:o,...d}){let r=Ql(),{future:h,manifest:x,routeModules:f}=o0(),{basename:b}=r0(),{loaderData:p,matches:v}=zp(),N=C.useMemo(()=>Gm(u,o,v,x,r,"data"),[u,o,v,x,r]),j=C.useMemo(()=>Gm(u,o,v,x,r,"assets"),[u,o,v,x,r]),O=C.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let g=new Set,U=!1;if(o.forEach(G=>{var ae;let Y=x.routes[G.route.id];!Y||!Y.hasLoader||(!N.some(de=>de.route.id===G.route.id)&&G.route.id in p&&((ae=f[G.route.id])!=null&&ae.shouldRevalidate)||Y.hasClientLoader?U=!0:g.add(G.route.id))}),g.size===0)return[];let k=Ep(u,b,h.unstable_trailingSlashAwareDataRequests,"data");return U&&g.size>0&&k.searchParams.set("_routes",o.filter(G=>g.has(G.route.id)).map(G=>G.route.id).join(",")),[k.pathname+k.search]},[b,h.unstable_trailingSlashAwareDataRequests,p,r,x,N,o,u,f]),X=C.useMemo(()=>Tp(j,x),[j,x]),T=Up(j);return C.createElement(C.Fragment,null,O.map(g=>C.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...d})),X.map(g=>C.createElement("link",{key:g,rel:"modulepreload",href:g,...d})),T.map(({key:g,link:U})=>C.createElement("link",{key:g,nonce:d.nonce,...U,crossOrigin:U.crossOrigin??d.crossOrigin})))}function qp(...u){return o=>{u.forEach(d=>{typeof d=="function"?d(o):d!=null&&(d.current=o)})}}var Lp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lp&&(window.__reactRouterVersion="7.13.0")}catch{}function Bp({basename:u,children:o,unstable_useTransitions:d,window:r}){let h=C.useRef();h.current==null&&(h.current=gv({window:r,v5Compat:!0}));let x=h.current,[f,b]=C.useState({action:x.action,location:x.location}),p=C.useCallback(v=>{d===!1?b(v):C.startTransition(()=>b(v))},[d]);return C.useLayoutEffect(()=>x.listen(p),[x,p]),C.createElement(hp,{basename:u,children:o,location:f.location,navigationType:f.action,navigator:x,unstable_useTransitions:d})}var d0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f0=C.forwardRef(function({onClick:o,discover:d="render",prefetch:r="none",relative:h,reloadDocument:x,replace:f,state:b,target:p,to:v,preventScrollReset:N,viewTransition:j,unstable_defaultShouldRevalidate:O,...X},T){let{basename:g,unstable_useTransitions:U}=C.useContext(Rt),k=typeof v=="string"&&d0.test(v),G=e0(v,g);v=G.to;let Y=Pv(v,{relative:h}),[ae,de,Q]=Dp(r,X),$=Gp(v,{replace:f,state:b,target:p,preventScrollReset:N,relative:h,viewTransition:j,unstable_defaultShouldRevalidate:O,unstable_useTransitions:U});function ne(Z){o&&o(Z),Z.defaultPrevented||$(Z)}let ce=C.createElement("a",{...X,...Q,href:G.absoluteURL||Y,onClick:G.isExternal||x?o:ne,ref:qp(T,de),target:p,"data-discover":!k&&d==="render"?"true":void 0});return ae&&!k?C.createElement(C.Fragment,null,ce,C.createElement(Op,{page:Y})):ce});f0.displayName="Link";var m0=C.forwardRef(function({"aria-current":o="page",caseSensitive:d=!1,className:r="",end:h=!1,style:x,to:f,viewTransition:b,children:p,...v},N){let j=es(f,{relative:v.relative}),O=Ql(),X=C.useContext(zi),{navigator:T,basename:g}=C.useContext(Rt),U=X!=null&&$p(j)&&b===!0,k=T.encodeLocation?T.encodeLocation(j).pathname:j.pathname,G=O.pathname,Y=X&&X.navigation&&X.navigation.location?X.navigation.location.pathname:null;d||(G=G.toLowerCase(),Y=Y?Y.toLowerCase():null,k=k.toLowerCase()),Y&&g&&(Y=vl(Y,g)||Y);const ae=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let de=G===k||!h&&G.startsWith(k)&&G.charAt(ae)==="/",Q=Y!=null&&(Y===k||!h&&Y.startsWith(k)&&Y.charAt(k.length)==="/"),$={isActive:de,isPending:Q,isTransitioning:U},ne=de?o:void 0,ce;typeof r=="function"?ce=r($):ce=[r,de?"active":null,Q?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let Z=typeof x=="function"?x($):x;return C.createElement(f0,{...v,"aria-current":ne,className:ce,ref:N,style:Z,to:f,viewTransition:b},typeof p=="function"?p($):p)});m0.displayName="NavLink";var Yp=C.forwardRef(({discover:u="render",fetcherKey:o,navigate:d,reloadDocument:r,replace:h,state:x,method:f=Ei,action:b,onSubmit:p,relative:v,preventScrollReset:N,viewTransition:j,unstable_defaultShouldRevalidate:O,...X},T)=>{let{unstable_useTransitions:g}=C.useContext(Rt),U=Vp(),k=Zp(b,{relative:v}),G=f.toLowerCase()==="get"?"get":"post",Y=typeof b=="string"&&d0.test(b),ae=de=>{if(p&&p(de),de.defaultPrevented)return;de.preventDefault();let Q=de.nativeEvent.submitter,$=(Q==null?void 0:Q.getAttribute("formmethod"))||f,ne=()=>U(Q||de.currentTarget,{fetcherKey:o,method:$,navigate:d,replace:h,state:x,relative:v,preventScrollReset:N,viewTransition:j,unstable_defaultShouldRevalidate:O});g&&d!==!1?C.startTransition(()=>ne()):ne()};return C.createElement("form",{ref:T,method:G,action:k,onSubmit:r?p:ae,...X,"data-discover":!Y&&u==="render"?"true":void 0})});Yp.displayName="Form";function kp(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function h0(u){let o=C.useContext(Fa);return Ye(o,kp(u)),o}function Gp(u,{target:o,replace:d,state:r,preventScrollReset:h,relative:x,viewTransition:f,unstable_defaultShouldRevalidate:b,unstable_useTransitions:p}={}){let v=gr(),N=Ql(),j=es(u,{relative:x});return C.useCallback(O=>{if(yp(O,o)){O.preventDefault();let X=d!==void 0?d:Fn(N)===Fn(j),T=()=>v(u,{replace:X,state:r,preventScrollReset:h,relative:x,viewTransition:f,unstable_defaultShouldRevalidate:b});p?C.startTransition(()=>T()):T()}},[N,v,j,d,r,o,u,h,x,f,b,p])}var Qp=0,Xp=()=>`__${String(++Qp)}__`;function Vp(){let{router:u}=h0("useSubmit"),{basename:o}=C.useContext(Rt),d=rp(),r=u.fetch,h=u.navigate;return C.useCallback(async(x,f={})=>{let{action:b,method:p,encType:v,formData:N,body:j}=Sp(x,o);if(f.navigate===!1){let O=f.fetcherKey||Xp();await r(O,d,f.action||b,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:N,body:j,formMethod:f.method||p,formEncType:f.encType||v,flushSync:f.flushSync})}else await h(f.action||b,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:N,body:j,formMethod:f.method||p,formEncType:f.encType||v,replace:f.replace,state:f.state,fromRouteId:d,flushSync:f.flushSync,viewTransition:f.viewTransition})},[r,h,o,d])}function Zp(u,{relative:o}={}){let{basename:d}=C.useContext(Rt),r=C.useContext(Jt);Ye(r,"useFormAction must be used inside a RouteContext");let[h]=r.matches.slice(-1),x={...es(u||".",{relative:o})},f=Ql();if(u==null){x.search=f.search;let b=new URLSearchParams(x.search),p=b.getAll("index");if(p.some(N=>N==="")){b.delete("index"),p.filter(j=>j).forEach(j=>b.append("index",j));let N=b.toString();x.search=N?`?${N}`:""}}return(!u||u===".")&&h.route.index&&(x.search=x.search?x.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(x.pathname=x.pathname==="/"?d:xl([d,x.pathname])),Fn(x)}function $p(u,{relative:o}={}){let d=C.useContext(l0);Ye(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=h0("useViewTransitionState"),h=es(u,{relative:o});if(!d.isTransitioning)return!1;let x=vl(d.currentLocation.pathname,r)||d.currentLocation.pathname,f=vl(d.nextLocation.pathname,r)||d.nextLocation.pathname;return Mi(h.pathname,f)!=null||Mi(h.pathname,x)!=null}/**
|
|
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 x0=(...u)=>u.filter((o,d,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===d).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 Kp=u=>u.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 Jp=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,d,r)=>r?r.toUpperCase():d.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 Qm=u=>{const o=Jp(u);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 Wp={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 Fp=u=>{for(const o in u)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 Pp=C.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:d=2,absoluteStrokeWidth:r,className:h="",children:x,iconNode:f,...b},p)=>C.createElement("svg",{ref:p,...Wp,width:o,height:o,stroke:u,strokeWidth:r?Number(d)*24/Number(o):d,className:x0("lucide",h),...!x&&!Fp(b)&&{"aria-hidden":"true"},...b},[...f.map(([v,N])=>C.createElement(v,N)),...Array.isArray(x)?x:[x]]));/**
|
|
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=(u,o)=>{const d=C.forwardRef(({className:r,...h},x)=>C.createElement(Pp,{ref:x,iconNode:o,className:x0(`lucide-${Kp(Qm(u))}`,`lucide-${u}`,r),...h}));return d.displayName=Qm(u),d};/**
|
|
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 Ip=[["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"}]],v0=ue("activity",Ip);/**
|
|
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 eg=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],tg=ue("arrow-down",eg);/**
|
|
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 lg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Xm=ue("arrow-right",lg);/**
|
|
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 ag=[["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"}]],ng=ue("arrow-up-down",ag);/**
|
|
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 sg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ig=ue("arrow-up",sg);/**
|
|
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 ug=[["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"}]],cg=ue("bell",ug);/**
|
|
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 rg=[["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"}]],Vm=ue("briefcase",rg);/**
|
|
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 og=[["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"}]],_i=ue("calendar",og);/**
|
|
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 dg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ci=ue("check",dg);/**
|
|
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 fg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mg=ue("chevron-down",fg);/**
|
|
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 hg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xg=ue("chevron-left",hg);/**
|
|
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 vg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],pg=ue("chevron-right",vg);/**
|
|
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 gg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],bg=ue("chevrons-up-down",gg);/**
|
|
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 yg=[["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"}]],Kt=ue("circle-alert",yg);/**
|
|
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 jg=[["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"}]],Zm=ue("circle-arrow-down",jg);/**
|
|
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 Ng=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ts=ue("circle-check-big",Ng);/**
|
|
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 Sg=[["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"}]],fr=ue("circle-x",Sg);/**
|
|
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 Eg=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],p0=ue("clipboard-list",Eg);/**
|
|
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 wg=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ai=ue("clock",wg);/**
|
|
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 Cg=[["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"}]],g0=ue("external-link",Cg);/**
|
|
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 Rg=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Tg=ue("eye-off",Rg);/**
|
|
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 Mg=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_g=ue("eye",Mg);/**
|
|
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 Ag=[["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"}]],zg=ue("file-text",Ag);/**
|
|
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 Dg=[["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"}]],Og=ue("git-pull-request",Dg);/**
|
|
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 Ug=[["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"}]],Hg=ue("house",Ug);/**
|
|
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 qg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Lg=ue("info",qg);/**
|
|
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 Bg=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Yg=ue("kanban",Bg);/**
|
|
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 kg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],b0=ue("loader-circle",kg);/**
|
|
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 Gg=[["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"}]],y0=ue("map",Gg);/**
|
|
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 Qg=[["path",{d:"M5 12h14",key:"1ays0h"}]],Xg=ue("minus",Qg);/**
|
|
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 Vg=[["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"}]],j0=ue("pause",Vg);/**
|
|
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 Zg=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],N0=ue("pen",Zg);/**
|
|
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 $g=[["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"}]],Oi=ue("play",$g);/**
|
|
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 Kg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ls=ue("plus",Kg);/**
|
|
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 Jg=[["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"}]],Wg=ue("rotate-ccw",Jg);/**
|
|
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 Fg=[["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"}]],Pg=ue("save",Fg);/**
|
|
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 Ig=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],as=ue("search",Ig);/**
|
|
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 eb=[["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"}]],S0=ue("settings",eb);/**
|
|
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 tb=[["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"}]],lb=ue("square-pen",tb);/**
|
|
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 ab=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],nb=ue("terminal",ab);/**
|
|
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 sb=[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]],E0=ue("test-tube-diagonal",sb);/**
|
|
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 ib=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],w0=ue("trash-2",ib);/**
|
|
311
|
+
* @license lucide-react v0.564.0 - ISC
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the ISC license.
|
|
314
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/const ub=[["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"}]],cb=ue("triangle-alert",ub);/**
|
|
316
|
+
* @license lucide-react v0.564.0 - ISC
|
|
317
|
+
*
|
|
318
|
+
* This source code is licensed under the ISC license.
|
|
319
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
320
|
+
*/const rb=[["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"}]],ob=ue("wifi",rb);/**
|
|
321
|
+
* @license lucide-react v0.564.0 - ISC
|
|
322
|
+
*
|
|
323
|
+
* This source code is licensed under the ISC license.
|
|
324
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
325
|
+
*/const db=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ns=ue("x",db),Sr="";let C0=!1,mr=null;function fb(u){C0=u}function mb(u){mr=u}function hb(u){return encodeURIComponent(u.replace(/\//g,"~"))}function We(u){return C0&&mr?u.replace("/api/",`/api/projects/${hb(mr)}/`):u}function xb(){return Pe("/api/projects")}async function Pe(u,o){const d=`${Sr}${u}`,r=await fetch(d,{headers:{"Content-Type":"application/json",...o==null?void 0:o.headers},...o});if(!r.ok){const h=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(h.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function R0(){return Pe(We("/api/status"))}function T0(){return Pe(We("/api/prs"))}function vb(u,o){const d=`?lines=${encodeURIComponent(o)}`;return Pe(We(`/api/logs/${encodeURIComponent(u)}${d}`))}function M0(){return Pe(We("/api/config"))}function ra(u){return Pe(We("/api/config"),{method:"PUT",body:JSON.stringify(u)})}function pb(){return Pe(We("/api/doctor"))}function _0(){return Pe(We("/api/schedule-info"))}function gb(){return Pe(We("/api/actions/review"),{method:"POST"})}function Ri(){return Pe(We("/api/actions/install-cron"),{method:"POST"})}function bb(){return Pe(We("/api/actions/uninstall-cron"),{method:"POST"})}function yb(u="all"){return Pe(We("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:u})})}const Gl=["Draft","Ready","In Progress","Review","Done"];function A0(){return Pe(We("/api/board/status"))}function jb(u){return Pe(We("/api/board/issues"),{method:"POST",body:JSON.stringify(u)})}function z0(u,o){return Pe(We(`/api/board/issues/${u}/move`),{method:"PATCH",body:JSON.stringify({column:o})})}async function Nb(u){const o=`${Sr}${We(`/api/board/issues/${u}`)}`,d=await fetch(o,{headers:{"Content-Type":"application/json"},method:"DELETE"});if(!d.ok){const r=await d.json().catch(()=>({error:"Unknown error"}));throw new Error(r.error||`HTTP ${d.status}: ${d.statusText}`)}}function Sb(){return Pe(We("/api/actions/clear-lock"),{method:"POST"})}function Eb(u,o=[],d){const r=(d==null?void 0:d.enabled)??!0,h=C.useRef(u);h.current=u,C.useEffect(()=>{if(!r)return;const x=`${Sr}${We("/api/status/events")}`,f=new EventSource(x);return f.addEventListener("status_changed",b=>{try{const p=JSON.parse(b.data);h.current(p)}catch{}}),()=>{f.close()}},[r,...o])}function wb(){return Pe(We("/api/roadmap"))}function Cb(){return Pe(We("/api/roadmap/scan"),{method:"POST"})}function D0(u){return Pe(We("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:u})})}function Ct(u,o=[],d){const r=(d==null?void 0:d.enabled)??!0,[h,x]=C.useState(null),[f,b]=C.useState(!0),[p,v]=C.useState(null),N=C.useRef(u);N.current=u;const j=C.useRef(()=>{(async()=>{v(null);try{const X=await N.current();x(X)}catch(X){v(X instanceof Error?X:new Error("Unknown error"))}})()});return j.current=j.current.bind(j),C.useEffect(()=>{if(!r)return;let O=!1;return b(!0),v(null),(async()=>{try{const T=await N.current();O||x(T)}catch(T){O||v(T instanceof Error?T:new Error("Unknown error"))}finally{O||b(!1)}})(),()=>{O=!0}},[...o,r]),{data:h,loading:f,error:p,refetch:j.current}}const $m=u=>{let o;const d=new Set,r=(v,N)=>{const j=typeof v=="function"?v(o):v;if(!Object.is(j,o)){const O=o;o=N??(typeof j!="object"||j===null)?j:Object.assign({},o,j),d.forEach(X=>X(o,O))}},h=()=>o,b={setState:r,getState:h,getInitialState:()=>p,subscribe:v=>(d.add(v),()=>d.delete(v))},p=o=u(r,h,b);return b},Rb=u=>u?$m(u):$m,Tb=u=>u;function Mb(u,o=Tb){const d=Le.useSyncExternalStore(u.subscribe,()=>o(u.getState()),()=>o(u.getInitialState()));return Le.useDebugValue(d),d}const Km=u=>{const o=Rb(u),d=r=>Mb(o,r);return Object.assign(d,o),d},_b=u=>u?Km(u):Km,Ab=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Tt=_b(u=>({projectName:"Night Watch",setProjectName:o=>u({projectName:o}),toasts:[],addToast:o=>{const d=Math.random().toString(36).substring(7);u(r=>({toasts:[...r.toasts,{...o,id:d}]})),setTimeout(()=>{u(r=>({toasts:r.toasts.filter(h=>h.id!==d)}))},5e3)},removeToast:o=>u(d=>({toasts:d.toasts.filter(r=>r.id!==o)})),globalModeLoading:!0,setGlobalModeLoading:o=>u({globalModeLoading:o}),isGlobalMode:!1,setGlobalMode:o=>{fb(o),u({isGlobalMode:o})},projects:[],setProjects:o=>u({projects:o}),selectedProjectId:Ab,selectProject:o=>{mb(o),o?localStorage.setItem("nw-selected-project",o):localStorage.removeItem("nw-selected-project"),u(d=>{const r=d.projects.find(h=>h.name===o);return{selectedProjectId:o,...r?{projectName:r.name}:{}}})}})),zb=()=>{const[u,o]=C.useState(!1),{projectName:d,isGlobalMode:r,projects:h,selectedProjectId:x,selectProject:f,globalModeLoading:b}=Tt(),{data:p}=Ct(T0,[x],{enabled:!b}),v=(p==null?void 0:p.length)??0,N=C.useMemo(()=>[{icon:Hg,label:"Dashboard",path:"/"},{icon:Yg,label:"Board",path:"/board"},{icon:Og,label:"Pull Requests",path:"/prs",badge:v},{icon:y0,label:"Roadmap",path:"/roadmap"},{icon:_i,label:"Scheduling",path:"/scheduling"},{icon:nb,label:"Logs",path:"/logs"},{icon:S0,label:"Settings",path:"/settings"}],[v]);return s.jsxs("aside",{className:`
|
|
326
|
+
relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
|
|
327
|
+
${u?"w-20":"w-72"} h-screen flex-shrink-0 z-50
|
|
328
|
+
bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
|
|
329
|
+
`,children:[s.jsx("div",{className:`p-6 border-b border-white/5 ${u?"items-center justify-center flex":""}`,children:u?s.jsx("div",{className:"relative group",children:s.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"})}):s.jsxs("div",{className:"relative w-full",children:[s.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?s.jsxs("div",{className:"relative",children:[s.jsx(Vm,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),s.jsx("select",{value:x||"",onChange:j=>f(j.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:h.filter(j=>j.valid).map(j=>s.jsx("option",{value:j.name,children:j.name},j.name))}),s.jsx(bg,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):s.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:[s.jsx(Vm,{className:"h-4 w-4 text-indigo-400 mr-3"}),s.jsx("span",{className:"truncate",children:d})]})]})}),s.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:s.jsx("ul",{className:"space-y-1.5 px-4",children:N.map(j=>s.jsx(Le.Fragment,{children:s.jsx("li",{children:s.jsx(m0,{to:j.path,className:({isActive:O})=>`
|
|
330
|
+
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
331
|
+
${O?"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"}
|
|
332
|
+
${u?"justify-center":""}
|
|
333
|
+
`,children:({isActive:O})=>s.jsxs(s.Fragment,{children:[s.jsx(j.icon,{className:`h-5 w-5 transition-colors ${O?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${u?"":"mr-3.5"}`}),!u&&s.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:j.label}),j.badge&&(u?s.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):s.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${O?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:j.badge})),O&&!u&&s.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)]"}),u&&s.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:j.label})]})})})},j.path))})}),s.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:s.jsx("button",{onClick:()=>o(!u),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:u?s.jsx(pg,{className:"h-5 w-5"}):s.jsx(xg,{className:"h-5 w-5"})})})]})},Db=()=>{const{projectName:u}=Tt();return s.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:[s.jsxs("div",{className:"flex items-center space-x-6",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),s.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:u})]}),s.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),s.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:[s.jsx(ob,{className:"h-3.5 w-3.5"}),s.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),s.jsxs("div",{className:"flex items-center space-x-5",children:[s.jsxs("div",{className:"relative hidden md:block group",children:[s.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]"}),s.jsx(as,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[s.jsx(cg,{className:"h-5 w-5"}),s.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),s.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:s.jsx(S0,{className:"h-5 w-5"})})]}),s.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"})]})]})},Ob=({toast:u,onDismiss:o})=>{const d={success:s.jsx(ts,{className:"h-5 w-5 text-green-400"}),error:s.jsx(Kt,{className:"h-5 w-5 text-red-400"}),info:s.jsx(Lg,{className:"h-5 w-5 text-blue-400"}),warning:s.jsx(cb,{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 s.jsx("div",{className:`
|
|
334
|
+
pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
|
|
335
|
+
bg-slate-900 border border-slate-800 border-l-4 ${r[u.type]}
|
|
336
|
+
shadow-lg ring-1 ring-black ring-opacity-5 transition-all
|
|
337
|
+
animate-in slide-in-from-right-full fade-in duration-300
|
|
338
|
+
`,children:s.jsx("div",{className:"p-4",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"flex-shrink-0",children:d[u.type]}),s.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:u.title}),u.message&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:u.message})]}),s.jsx("div",{className:"ml-4 flex flex-shrink-0",children:s.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(u.id),children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(ns,{className:"h-5 w-5"})]})})]})})})},Ub=()=>{const{toasts:u,removeToast:o}=Tt();return s.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:u.map(d=>s.jsx(Ob,{toast:d,onDismiss:o},d.id))})};function Hb(){const{setGlobalMode:u,setGlobalModeLoading:o,setProjects:d,selectProject:r,selectedProjectId:h}=Tt();C.useEffect(()=>{o(!0),xb().then(x=>{u(!0),d(x);const f=x.filter(b=>b.valid);h&&f.some(b=>b.name===h)?r(h):f.length>0&&r(f[0].name)}).catch(()=>{u(!1)}).finally(()=>{o(!1)})},[])}const ge=({children:u,className:o="",onClick:d})=>s.jsxs("div",{className:`
|
|
339
|
+
relative bg-[#0b101b] rounded-xl border border-white/5
|
|
340
|
+
shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
|
|
341
|
+
transition-all duration-300
|
|
342
|
+
${d?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
|
|
343
|
+
${o}
|
|
344
|
+
`,onClick:d,children:[d&&s.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),s.jsx("div",{className:"relative z-10",children:u})]}),Ne=({children:u,variant:o="primary",size:d="md",loading:r=!1,className:h="",disabled:x,...f})=>{const b="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]",p={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"},v={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 s.jsxs("button",{className:`${b} ${p[o]} ${v[d]} ${h}`,disabled:x||r,...f,children:[r&&s.jsx(b0,{className:"mr-2 h-4 w-4 animate-spin"}),u]})},Ti=({children:u,variant:o="default",className:d=""})=>{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 s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${d}`,children:u})},O0={Draft:{dot:"bg-slate-500",badge:"neutral"},Ready:{dot:"bg-green-500",badge:"success"},"In Progress":{dot:"bg-blue-500",badge:"info"},Review:{dot:"bg-amber-500",badge:"warning"},Done:{dot:"bg-slate-600",badge:"neutral"}},qb=({defaultColumn:u,onClose:o,onCreated:d})=>{const[r,h]=C.useState(""),[x,f]=C.useState(""),[b,p]=C.useState(u),[v,N]=C.useState(!1),[j,O]=C.useState(null),{addToast:X}=Tt(),T=async g=>{if(g.preventDefault(),!!r.trim()){N(!0),O(null);try{await jb({title:r.trim(),body:x,column:b}),X({title:"Issue created",message:`"${r.trim()}" added to ${b}`,type:"success"}),d(),o()}catch(U){O(U instanceof Error?U.message:"Failed to create issue")}finally{N(!1)}}};return s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:o}),s.jsxs("div",{className:"relative bg-[#0f172a] border border-white/10 rounded-2xl shadow-2xl w-full max-w-lg",children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-100",children:"New Board Issue"}),s.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:s.jsx(ns,{className:"h-5 w-5"})})]}),s.jsxs("form",{onSubmit:T,className:"p-6 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Title"}),s.jsx("input",{type:"text",value:r,onChange:g=>h(g.target.value),placeholder:"Issue title...",required:!0,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Column"}),s.jsx("select",{value:b,onChange:g=>p(g.target.value),className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:border-indigo-500/50 appearance-none cursor-pointer",children:Gl.map(g=>s.jsx("option",{value:g,children:g},g))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Body (optional)"}),s.jsx("textarea",{value:x,onChange:g=>f(g.target.value),placeholder:"Issue description...",rows:5,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20 resize-none font-mono"})]}),j&&s.jsx("p",{className:"text-sm text-red-400",children:j}),s.jsxs("div",{className:"flex justify-end space-x-3 pt-2",children:[s.jsx(Ne,{variant:"ghost",type:"button",onClick:o,children:"Cancel"}),s.jsx(Ne,{type:"submit",disabled:v||!r.trim(),children:v?"Creating...":"Create Issue"})]})]})]})]})},Lb=({issue:u,onClose:o,onMoved:d,onClosed:r})=>{const[h,x]=C.useState(!1),[f,b]=C.useState(!1),{addToast:p}=Tt(),v=async O=>{if(O!==u.column){x(!0);try{await z0(u.number,O),p({title:"Issue moved",message:`#${u.number} moved to ${O}`,type:"success"}),d(),o()}catch(X){p({title:"Move failed",message:X instanceof Error?X.message:"Failed to move issue",type:"error"})}finally{x(!1)}}},N=async()=>{if(confirm(`Close issue #${u.number}: "${u.title}"?`)){b(!0);try{await Nb(u.number),p({title:"Issue closed",message:`#${u.number} closed on GitHub`,type:"success"}),r(),o()}catch(O){p({title:"Close failed",message:O instanceof Error?O.message:"Failed to close issue",type:"error"})}finally{b(!1)}}},j=u.column??"Draft";return s.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[s.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:o}),s.jsxs("div",{className:"relative bg-[#0a0f1e] border-l border-white/10 w-full max-w-xl flex flex-col shadow-2xl overflow-hidden",children:[s.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-white/5 flex-shrink-0",children:[s.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[s.jsxs("span",{className:"text-slate-500 text-sm font-mono",children:["#",u.number]}),s.jsx(Ti,{variant:O0[j].badge,children:j})]}),s.jsx("h2",{className:"text-lg font-semibold text-slate-100 leading-snug",children:u.title}),u.assignees.length>0&&s.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Assigned to: ",u.assignees.join(", ")]})]}),s.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",children:s.jsx(ns,{className:"h-5 w-5"})})]}),s.jsxs("div",{className:"flex items-center space-x-3 px-6 py-3 border-b border-white/5 flex-shrink-0 flex-wrap gap-y-2",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"Move to:"}),Gl.filter(O=>O!==u.column).map(O=>s.jsx("button",{onClick:()=>v(O),disabled:h,className:"text-xs px-2.5 py-1 rounded-md bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-slate-100 border border-slate-700 transition-colors disabled:opacity-50",children:O},O))]}),s.jsxs("div",{className:"flex items-center space-x-2 ml-auto",children:[u.url&&!u.url.startsWith("local://")&&s.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1 text-xs text-indigo-400 hover:text-indigo-300 transition-colors",children:[s.jsx(g0,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"GitHub"})]}),s.jsx("button",{onClick:N,disabled:f,className:"text-xs px-2.5 py-1 rounded-md bg-red-500/10 text-red-400 hover:bg-red-500/20 border border-red-500/20 transition-colors disabled:opacity-50",children:f?"Closing...":"Close Issue"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:u.body?s.jsx("pre",{className:"text-sm text-slate-300 whitespace-pre-wrap font-mono leading-relaxed break-words",children:u.body}):s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No description provided."})})]})]})},Bb=({issue:u,onClick:o,onDragStart:d})=>{const[r,h]=C.useState(!1);return s.jsx("div",{className:"relative",draggable:!0,onDragStart:x=>{x.dataTransfer.setData("issueNumber",String(u.number)),x.dataTransfer.effectAllowed="move",h(!0),d(u)},onDragEnd:()=>h(!1),children:s.jsxs(ge,{className:`p-3 cursor-grab hover:border-indigo-500/30 transition-all select-none ${r?"opacity-30":""}`,onClick:o,children:[s.jsxs("span",{className:"text-[10px] font-mono text-slate-600",children:["#",u.number]}),s.jsx("p",{className:"text-xs font-medium text-slate-200 line-clamp-2 mt-0.5 leading-snug",children:u.title}),u.assignees.length>0&&s.jsx("p",{className:"text-[10px] text-slate-500 mt-1.5 truncate",children:u.assignees.join(", ")})]})})},Yb=({name:u,issues:o,draggingIssue:d,onIssueClick:r,onNewIssue:h,onMoveIssue:x,onDragStart:f})=>{const b=O0[u],[p,v]=C.useState(!1),N=d!==null&&d.column!==u;return s.jsxs("div",{className:`flex flex-col min-w-[220px] max-w-[220px] h-full rounded-xl transition-colors ${p&&N?"bg-indigo-500/5 ring-1 ring-indigo-500/30":""}`,onDragOver:j=>{N&&(j.preventDefault(),j.dataTransfer.dropEffect="move",v(!0))},onDragLeave:()=>v(!1),onDrop:j=>{j.preventDefault(),v(!1),d&&d.column!==u&&x(d,u)},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 flex-shrink-0",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${b.dot}`}),s.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider",children:u}),s.jsx("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-800 rounded-full px-1.5 py-0.5",children:o.length})]}),s.jsx("button",{onClick:()=>h(u),className:"p-1 rounded-md hover:bg-white/5 text-slate-600 hover:text-slate-400 transition-colors",title:`Add issue to ${u}`,children:s.jsx(ls,{className:"h-3.5 w-3.5"})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide min-h-0",children:o.length===0?s.jsx("div",{className:`border-2 border-dashed rounded-xl h-24 flex items-center justify-center transition-colors ${p&&N?"border-indigo-500/40":"border-slate-800"}`,children:s.jsx("span",{className:"text-xs text-slate-700",children:p&&N?"Drop here":"No issues"})}):o.map(j=>s.jsx(Bb,{issue:j,onClick:()=>r(j),onDragStart:f},j.id))})]})},kb=()=>{const[u,o]=C.useState(null),[d,r]=C.useState(null),[h,x]=C.useState(null),[f,b]=C.useState(null),p=C.useRef(!1),{addToast:v,selectedProjectId:N,globalModeLoading:j}=Tt(),{data:O,loading:X,error:T,refetch:g}=Ct(A0,[N],{enabled:!j});C.useEffect(()=>{const G=setInterval(()=>{p.current||g()},3e4);return()=>clearInterval(G)},[g]);const U=C.useCallback(async(G,Y)=>{x(null);const ae=f??(O==null?void 0:O.columns);if(!ae)return;const de=ae,Q={};for(const ne of Gl)Q[ne]=(ae[ne]??[]).filter(ce=>ce.number!==G.number);const $={...G,column:Y};Q[Y]=[...Q[Y]??[],$],b(Q),o(ne=>(ne==null?void 0:ne.number)===G.number?$:ne),p.current=!0;try{await z0(G.number,Y),g(),setTimeout(()=>{b(null),p.current=!1},800)}catch(ne){b(de),o(ce=>(ce==null?void 0:ce.number)===G.number?G:ce),p.current=!1,v({title:"Move failed",message:ne instanceof Error?ne.message:"Failed to move issue",type:"error"})}},[v,g,f,O]);if(j||X)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading board..."})});if(T&&T.message.includes("Board not configured"))return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx("div",{className:"text-4xl",children:"📋"}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"Board not configured"}),s.jsxs("p",{className:"text-slate-500 text-sm max-w-sm text-center",children:["Run ",s.jsx("code",{className:"font-mono bg-slate-800 px-2 py-0.5 rounded text-indigo-300",children:"night-watch board setup"})," in your project to create a GitHub Projects board."]})]});if(T)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx("div",{className:"text-slate-300",children:"Failed to load board"}),s.jsx("div",{className:"text-sm text-slate-500",children:T.message}),s.jsx(Ne,{onClick:()=>g(),children:"Retry"})]});if(!O)return null;const k=f??O.columns;return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Board"}),s.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[Gl.reduce((G,Y)=>{var ae;return G+(((ae=k[Y])==null?void 0:ae.length)??0)},0)," issues across ",Gl.length," columns"]})]}),s.jsxs(Ne,{onClick:()=>r("Ready"),children:[s.jsx(ls,{className:"h-4 w-4 mr-2"}),"New Issue"]})]}),s.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden",onDragEnd:()=>x(null),children:s.jsx("div",{className:"flex space-x-4 h-full pb-4",style:{minWidth:`${Gl.length*236}px`},children:Gl.map(G=>s.jsx(Yb,{name:G,issues:k[G]??[],draggingIssue:h,onIssueClick:o,onNewIssue:r,onMoveIssue:U,onDragStart:x},G))})}),u&&s.jsx(Lb,{issue:u,onClose:()=>o(null),onMoved:()=>g(),onClosed:()=>g()}),d&&s.jsx(qb,{defaultColumn:d,onClose:()=>r(null),onCreated:()=>g()})]})},Gb={Draft:"text-slate-400 bg-slate-500/10 ring-slate-500/20",Ready:"text-green-400 bg-green-500/10 ring-green-500/20","In Progress":"text-blue-400 bg-blue-500/10 ring-blue-500/20",Review:"text-amber-400 bg-amber-500/10 ring-amber-500/20",Done:"text-slate-500 bg-slate-600/10 ring-slate-600/20"},Qb=()=>{var be,W,A,V,te,je,Se,S,B,K,F;const u=gr(),[o,d]=C.useState(null),[r,h]=C.useState(!1),[x,f]=C.useState(null),{setProjectName:b,addToast:p,selectedProjectId:v,globalModeLoading:N}=Tt(),{data:j,loading:O,error:X,refetch:T}=Ct(R0,[v],{enabled:!N}),{data:g}=Ct(_0,[v],{enabled:!N}),{data:U}=Ct(()=>A0().catch(()=>null),[v],{enabled:!N});Eb(J=>{f(J)},[v,N],{enabled:!N});const k=x||j;if(Le.useEffect(()=>{k!=null&&k.projectName&&b(k.projectName)},[k,b]),C.useEffect(()=>{const J=setInterval(()=>{T()},3e4);return()=>clearInterval(J)},[T]),C.useEffect(()=>{const J=()=>T();return window.addEventListener("focus",J),()=>window.removeEventListener("focus",J)},[T]),N||O)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(X)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),s.jsx("div",{className:"text-sm text-slate-500",children:X.message}),s.jsx(Ne,{onClick:()=>T(),children:"Retry"})]});if(!k)return null;const G=k.prs.length,Y=k.prs.filter(J=>J.reviewScore!==null&&J.reviewScore<70).length,ae=((be=U==null?void 0:U.columns.Ready)==null?void 0:be.length)??0,de=((W=U==null?void 0:U.columns["In Progress"])==null?void 0:W.length)??0,Q=k.processes.find(J=>J.name==="executor"),$=k.processes.find(J=>J.name==="reviewer"),ne=k.processes.find(J=>J.name==="qa"),ce=k.processes.find(J=>J.name==="audit"),Z=k.processes.find(J=>J.name==="planner"),De=async J=>{d(J);try{const ie=await yb(J),me=ie.results.every(Qe=>Qe.success);p({title:me?"Process Cancelled":"Cancel Failed",message:ie.results.map(Qe=>Qe.message).join("; "),type:me?"success":"error"})}catch(ie){p({title:"Cancel Failed",message:ie instanceof Error?ie.message:"Failed to cancel process",type:"error"})}finally{d(null),T()}},R=async()=>{h(!0);try{await Sb(),p({title:"Lock Cleared",message:"Stale executor state removed",type:"success"}),T()}catch(J){p({title:"Clear Failed",message:J instanceof Error?J.message:"Failed to clear lock",type:"error"})}finally{h(!1)}},ee=J=>{if(!J)return"Not scheduled";try{const ie=new Date(J),me=new Date,Qe=ie.getTime()-me.getTime(),Re=Math.floor(Qe/6e4);return Re<0?"Running now...":Re<60?`In ${Re} min`:Re<1440?`In ${Math.floor(Re/60)} hr${Re>=120?"s":""}`:`In ${Math.floor(Re/1440)} day${Re>=2880?"s":""}`}catch{return"Unknown"}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs(ge,{className:"p-5",onClick:()=>u("/board"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Board Ready"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:ae})]}),s.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:s.jsx(ts,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues ready to start"})]}),s.jsxs(ge,{className:"p-5",onClick:()=>u("/board"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:de})]}),s.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:s.jsx(v0,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues in progress"})]}),s.jsxs(ge,{className:"p-5",onClick:()=>u("/prs"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:G})]}),s.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:s.jsx(Ai,{className:"h-5 w-5"})})]}),s.jsx("p",{className:`text-xs mt-4 ${Y>0?"text-red-400 font-medium":"text-slate-500"}`,children:Y>0?`${Y} need work`:"All passing"})]}),s.jsxs(ge,{className:"p-5",children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Cron Status"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:k.crontab.installed?"Active":"Inactive"})]}),s.jsx("div",{className:`p-2 rounded-lg ${k.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:s.jsx(_i,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:k.crontab.installed?`${k.crontab.entries.length} entr${k.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),s.jsxs(ge,{className:"p-6",children:[s.jsx("h2",{className:"text-base font-semibold text-slate-200 mb-4",children:"System Status"}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),s.jsx("p",{className:"text-sm text-slate-200",children:k.projectName})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Provider"}),s.jsx("p",{className:"text-sm text-slate-200 capitalize",children:k.config.provider})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),s.jsx("p",{className:"text-sm text-slate-200",children:new Date(k.timestamp).toLocaleString()})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(ge,{className:"p-6",children:[s.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Process Status"}),s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.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"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${Q!=null&&Q.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:Q!=null&&Q.running?`PID: ${Q.pid} • ${k.activePrd??"Running"}`:"Idle"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[(Q==null?void 0:Q.running)&&s.jsxs(Ne,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>De("run"),disabled:o==="run",children:[s.jsx(fr,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),!(Q!=null&&Q.running)&&k.activePrd&&s.jsx(Ne,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300",onClick:R,disabled:r,children:r?"Clearing...":"Force Clear"}),s.jsx(Ne,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${$!=null&&$.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${$!=null&&$.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:$!=null&&$.running?`PID: ${$.pid} • Running`:"Idle"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[($==null?void 0:$.running)&&s.jsxs(Ne,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>De("review"),disabled:o==="review",children:[s.jsx(fr,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),s.jsx(Ne,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),disabled:!($!=null&&$.running),children:"View Log"})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${ne!=null&&ne.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${ne!=null&&ne.running?"text-slate-200":"text-slate-400"}`,children:"QA"}),s.jsx("div",{className:"text-xs text-slate-500",children:ne!=null&&ne.running?`PID: ${ne.pid} • Running`:"Idle"})]})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsx(Ne,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${ce!=null&&ce.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${ce!=null&&ce.running?"text-slate-200":"text-slate-400"}`,children:"Auditor"}),s.jsx("div",{className:"text-xs text-slate-500",children:ce!=null&&ce.running?`PID: ${ce.pid} • Running`:"Idle"})]})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsx(Ne,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${Z!=null&&Z.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${Z!=null&&Z.running?"text-slate-200":"text-slate-400"}`,children:"Planner"}),s.jsx("div",{className:"text-xs text-slate-500",children:Z!=null&&Z.running?`PID: ${Z.pid} • Writing PRDs`:"Idle"})]})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsx(Ne,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]})]})]}),s.jsxs(ge,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),s.jsxs("button",{onClick:()=>u("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",s.jsx(Xm,{className:"ml-1 h-3 w-3"})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${g!=null&&g.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(_i,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${g!=null&&g.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:g!=null&&g.paused?"Paused":ee(g==null?void 0:g.executor.nextRun)})]})]})}),s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${g!=null&&g.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(Ai,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${g!=null&&g.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:g!=null&&g.paused?"Paused":ee(g==null?void 0:g.reviewer.nextRun)})]})]})}),s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${(A=g==null?void 0:g.qa)!=null&&A.installed?"bg-green-500/10 text-green-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(E0,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${(V=g==null?void 0:g.qa)!=null&&V.installed?"text-slate-200":"text-slate-500"}`,children:"QA"}),s.jsx("div",{className:"text-xs text-slate-500",children:g!=null&&g.paused?"Paused":ee((te=g==null?void 0:g.qa)==null?void 0:te.nextRun)})]})]})}),s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${(je=g==null?void 0:g.audit)!=null&&je.installed?"bg-amber-500/10 text-amber-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(as,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${(Se=g==null?void 0:g.audit)!=null&&Se.installed?"text-slate-200":"text-slate-500"}`,children:"Auditor"}),s.jsx("div",{className:"text-xs text-slate-500",children:g!=null&&g.paused?"Paused":ee((S=g==null?void 0:g.audit)==null?void 0:S.nextRun)})]})]})}),s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${(B=g==null?void 0:g.planner)!=null&&B.installed?"bg-cyan-500/10 text-cyan-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(p0,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${(K=g==null?void 0:g.planner)!=null&&K.installed?"text-slate-200":"text-slate-500"}`,children:"Planner"}),s.jsx("div",{className:"text-xs text-slate-500",children:g!=null&&g.paused?"Paused":ee((F=g==null?void 0:g.planner)==null?void 0:F.nextRun)})]})]})})]})]})]}),s.jsxs("div",{className:"mt-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"GitHub Board"}),s.jsxs("button",{onClick:()=>u("/board"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View board ",s.jsx(Xm,{className:"ml-1 h-3 w-3"})]})]}),s.jsx(ge,{className:"p-4",children:U?s.jsx("div",{className:"flex flex-wrap gap-3",children:Gl.map(J=>{var me;const ie=((me=U.columns[J])==null?void 0:me.length)??0;return s.jsxs("button",{onClick:()=>u("/board"),className:`inline-flex items-center space-x-2 px-3 py-2 rounded-lg ring-1 ring-inset transition-colors hover:opacity-80 ${Gb[J]}`,children:[s.jsx("span",{className:"text-xs font-medium",children:J}),s.jsx("span",{className:"text-xs font-bold",children:ie})]},J)})}):s.jsxs("p",{className:"text-sm text-slate-500 italic",children:["Board not configured — run ",s.jsx("code",{className:"font-mono bg-slate-800 px-1.5 py-0.5 rounded text-indigo-300 text-xs",children:"night-watch board setup"})," to enable."]})})]})]})},Xb=()=>{const[u,o]=C.useState(!0),[d,r]=C.useState(""),[h,x]=C.useState("executor"),f=C.useRef(null),{selectedProjectId:b,globalModeLoading:p}=Tt(),{data:v,loading:N,error:j,refetch:O}=Ct(()=>vb(h,500),[h,b],{enabled:!p}),{data:X}=Ct(R0,[b],{enabled:!p}),T=(v==null?void 0:v.lines)||[];C.useEffect(()=>{u&&f.current&&(f.current.scrollTop=f.current.scrollHeight)},[T,u]),C.useEffect(()=>{if(!u)return;const G=window.setInterval(()=>{O()},3e3);return()=>window.clearInterval(G)},[u,h,O]);const g=T.filter(G=>G.toLowerCase().includes(d.toLowerCase())),U=G=>{x(G),r("")},k=G=>{if(!(X!=null&&X.processes))return!1;const Y=X.processes.find(ae=>ae.name===G);return(Y==null?void 0:Y.running)??!1};return j?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),s.jsx("div",{className:"text-sm text-slate-500",children:j.message}),s.jsx(Ne,{onClick:()=>O(),children:"Retry"})]}):s.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs("div",{className:"relative group",children:[s.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:d,onChange:G=>r(G.target.value)}),s.jsx(as,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),s.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("button",{onClick:()=>U("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="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:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Executor"}),k("executor")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>U("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="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:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Reviewer"}),k("reviewer")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>U("qa"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="qa"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"QA"}),k("qa")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>U("audit"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="audit"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Auditor"}),k("audit")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>U("planner"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="planner"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Planner"}),k("planner")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs(Ne,{size:"sm",variant:"ghost",onClick:()=>O(),children:[s.jsx(Zm,{className:"h-4 w-4 mr-2"}),"Refresh"]}),s.jsxs(Ne,{size:"sm",variant:"ghost",onClick:()=>o(!u),children:[u?s.jsx(j0,{className:"h-4 w-4 mr-2"}):s.jsx(Oi,{className:"h-4 w-4 mr-2"}),u?"Pause":"Resume"]})]})]}),s.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[s.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:[s.jsxs("span",{children:["File: ",h,".log"]}),s.jsxs("span",{children:[g.length," lines"]})]}),s.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[N?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):g.length===0?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:d?"No logs match your filter":"No logs yet — logs will appear after the first run"}):g.map((G,Y)=>{const ae=G.includes("[ERROR]"),de=G.includes("[WARN]");return s.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${ae?"text-red-400":de?"text-amber-400":"text-slate-300"}`,children:[s.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:Y+1}),G]},Y)}),u&&s.jsx("div",{className:"h-4"})," "]}),!u&&s.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:[s.jsx(Zm,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Vb=()=>{const[u,o]=C.useState(null),[d,r]=C.useState(!1),[h,x]=C.useState("all"),[f,b]=C.useState("number"),[p,v]=C.useState("desc"),{addToast:N,selectedProjectId:j,globalModeLoading:O}=Tt(),{data:X,loading:T,error:g,refetch:U}=Ct(T0,[j],{enabled:!O}),k=X??[],G=Z=>{switch(Z){case"pass":return s.jsx(ts,{className:"h-4 w-4 text-green-500"});case"fail":return s.jsx(fr,{className:"h-4 w-4 text-red-500"});case"pending":return s.jsx(b0,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return s.jsx(Kt,{className:"h-4 w-4 text-slate-500"})}},Y=Z=>{switch(Z){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available"}},ae=Z=>Z===null?"No review decision yet":Z===100?"PR has been approved":Z===0?"Changes have been requested":`Review score: ${Z}`,de=C.useMemo(()=>k.filter(Z=>{switch(h){case"needs-work":return Z.ciStatus==="fail"||Z.reviewScore===0;case"pending":return Z.ciStatus==="pending"||Z.ciStatus==="unknown"||Z.reviewScore===null;case"passed":return Z.ciStatus==="pass"&&Z.reviewScore===100;case"all":default:return!0}}),[k,h]),Q=C.useMemo(()=>[...de].sort((De,R)=>{let ee=0;switch(f){case"number":ee=De.number-R.number;break;case"title":ee=De.title.localeCompare(R.title);break;case"branch":ee=De.branch.localeCompare(R.branch);break;case"ciStatus":{const be={fail:0,pending:1,unknown:2,pass:3};ee=(be[De.ciStatus]??2)-(be[R.ciStatus]??2);break}case"reviewScore":{const be=De.reviewScore??-1,W=R.reviewScore??-1;ee=be-W;break}}return p==="asc"?ee:-ee}),[de,f,p]),$=Z=>{f===Z?v(p==="asc"?"desc":"asc"):(b(Z),v("desc"))},ne=Z=>f!==Z?s.jsx(ng,{className:"h-3 w-3 text-slate-600"}):p==="asc"?s.jsx(ig,{className:"h-3 w-3 text-indigo-400"}):s.jsx(tg,{className:"h-3 w-3 text-indigo-400"});if(T)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(g)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),s.jsx("div",{className:"text-sm text-slate-500",children:g.message}),s.jsx(Ne,{onClick:()=>U(),children:"Retry"})]});const ce=async()=>{r(!0);try{const Z=await gb();N({title:"Reviewer Started",message:Z.pid?`Started with PID ${Z.pid}`:"Reviewer started",type:"success"})}catch(Z){N({title:"Reviewer Failed",message:Z instanceof Error?Z.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("button",{onClick:()=>x("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="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"}),s.jsx("button",{onClick:()=>x("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="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"}),s.jsx("button",{onClick:()=>x("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="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"}),s.jsx("button",{onClick:()=>x("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="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"})]}),s.jsxs(Ne,{size:"sm",onClick:ce,disabled:d,children:[s.jsx(as,{className:"h-4 w-4 mr-2"}),d?"Starting...":"Run Reviewer Now"]})]}),s.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[s.jsx("thead",{className:"bg-slate-950/50",children:s.jsxs("tr",{children:[s.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:()=>$("number"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Title"}),ne("number")]})}),s.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:()=>$("branch"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Branch"}),ne("branch")]})}),s.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:()=>$("ciStatus"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"CI Status"}),ne("ciStatus")]})}),s.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:()=>$("reviewScore"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Review Score"}),ne("reviewScore")]})}),s.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),s.jsxs("tbody",{className:"divide-y divide-slate-800",children:[Q.map(Z=>s.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>o(u===Z.number?null:Z.number),children:[s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center",children:[s.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",Z.number]}),s.jsx("span",{className:"font-medium text-slate-200",children:Z.title})]})}),s.jsx("td",{className:"px-6 py-4",children:s.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:Z.branch})}),s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center space-x-2",title:Y(Z.ciStatus),children:[G(Z.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-400",children:Z.ciStatus})]})}),s.jsx("td",{className:"px-6 py-4",children:Z.reviewScore!==null?s.jsxs("div",{className:"flex items-center space-x-2",title:ae(Z.reviewScore),children:[s.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full ${Z.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${Z.reviewScore}%`}})}),s.jsx("span",{className:`text-sm font-bold ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]}):s.jsx("span",{className:"text-slate-600 text-sm",title:"No review decision yet",children:"—"})}),s.jsx("td",{className:"px-6 py-4 text-right",children:s.jsx("a",{href:Z.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:De=>De.stopPropagation(),children:s.jsx(g0,{className:"h-4 w-4"})})})]},Z.number)),Q.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:k.length===0?"No open PRs found.":`No PRs match the "${h}" filter.`})})]})]})}),u&&s.jsx(ge,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const Z=k.find(De=>De.number===u);return Z?s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-slate-200",children:Z.title}),s.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",s.jsx("span",{className:"font-mono",children:Z.branch})]})]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs("div",{className:"text-center",title:Y(Z.ciStatus),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),s.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[G(Z.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-300",children:Z.ciStatus})]})]}),Z.reviewScore!==null&&s.jsxs("div",{className:"text-center",title:ae(Z.reviewScore),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),s.jsx("div",{className:`text-xl font-bold mt-1 ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]})]})]}):null})()})]})},ut=Le.forwardRef(({className:u="",label:o,checked:d,onChange:r,...h},x)=>{const f=b=>{r&&r(b.target.checked)};return s.jsxs("label",{className:`inline-flex items-center cursor-pointer ${u}`,children:[s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"checkbox",className:"sr-only peer",ref:x,checked:d,onChange:f,...h}),s.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&&s.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});ut.displayName="Switch";const Zb=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:d}=Tt(),[r,h]=C.useState(!1),[x,f]=C.useState(!1),{data:b,loading:p,error:v,refetch:N}=Ct(wb,[o],{enabled:!d});C.useEffect(()=>{if(!(b!=null&&b.enabled))return;const G=setInterval(()=>{N()},1e4);return()=>clearInterval(G)},[b==null?void 0:b.enabled,N]);const j=async G=>{f(!0);try{await D0(G),u({title:G?"Scanner Enabled":"Scanner Disabled",message:G?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:G?"success":"info"}),N()}catch(Y){u({title:"Toggle Failed",message:Y instanceof Error?Y.message:"Failed to toggle scanner",type:"error"})}finally{f(!1)}},O=async()=>{h(!0);try{const G=await Cb();G.created.length>0?u({title:"Scan Complete",message:`Created ${G.created.length} PRD(s): ${G.created.join(", ")}`,type:"success"}):u({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),G.errors.length>0&&u({title:"Scan Errors",message:G.errors.join("; "),type:"warning"}),N()}catch(G){u({title:"Scan Failed",message:G instanceof Error?G.message:"Failed to scan roadmap",type:"error"})}finally{h(!1)}};if(p)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(v)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),s.jsx("div",{className:"text-sm text-slate-500",children:v.message}),s.jsx(Ne,{onClick:()=>N(),children:"Retry"})]});if(!b)return null;if(b.status==="no-roadmap")return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),s.jsx(ge,{className:"p-12",children:s.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[s.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:s.jsx(y0,{className:"h-10 w-10 text-slate-500"})}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),s.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",s.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 (",s.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const X=b.totalItems>0?Math.round(b.processedItems/b.totalItems*100):0,T=Kb(b.status),g=Jb(b.items),U=b.lastScan?Wb(b.lastScan):"Never",k=b.autoScanInterval?Math.round(b.autoScanInterval/60):5;return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(ut,{label:b.enabled?"Enabled":"Disabled",checked:b.enabled,onChange:j,disabled:x}),s.jsxs(Ne,{onClick:O,loading:r,disabled:!b.enabled||b.status==="complete",children:[s.jsx(Oi,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),s.jsx(ge,{className:`p-6 border-2 ${T.borderColor}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(T.icon,{className:`h-8 w-8 ${T.textColor}`}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),s.jsx("div",{className:`text-2xl font-bold ${T.textColor}`,children:T.label})]})]}),s.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[s.jsxs("div",{children:["Last scan: ",s.jsx("span",{className:"text-slate-300",children:U})]}),b.enabled&&b.status!=="complete"&&s.jsxs("div",{children:["Auto-scan: ",s.jsxs("span",{className:"text-slate-300",children:["every ",k," min"]})]}),b.enabled&&b.status==="complete"&&s.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),s.jsxs(ge,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),s.jsxs("span",{className:"text-sm text-slate-400",children:[b.processedItems," / ",b.totalItems," items (",X,"%)"]})]}),s.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${X===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${X}%`}})})]}),Object.entries(g).map(([G,Y])=>s.jsxs(ge,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:G}),s.jsx("div",{className:"space-y-2",children:Y.map(ae=>s.jsx($b,{item:ae},ae.hash))})]},G))]})};function $b({item:u}){const o=u.checked,d=u.processed;return s.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${o?"bg-slate-950/30 border-slate-800/50":d?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[s.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?s.jsx(Xg,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):d?s.jsx(ts,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):s.jsx(zg,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:`text-sm font-medium truncate ${o?"line-through text-slate-600":"text-slate-200"}`,children:u.title}),u.description&&s.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:u.description})]})]}),s.jsx("div",{className:"flex-shrink-0 ml-3",children:o?s.jsx(Ti,{variant:"neutral",children:"Skipped"}):d?s.jsx(Ti,{variant:"success",children:u.prdFile||"Processed"}):s.jsx(Ti,{variant:"warning",children:"Pending"})})]})}function Kb(u){switch(u){case"complete":return{label:"Complete",icon:ts,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:Ai,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:Oi,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:Kt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:Kt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function Jb(u){const o={};for(const d of u){const r=d.section||"General";o[r]||(o[r]=[]),o[r].push(d)}return o}function Wb(u){try{const o=new Date(u),r=new Date().getTime()-o.getTime(),h=Math.floor(r/6e4);if(h<1)return"Just now";if(h<60)return`${h} min ago`;const x=Math.floor(h/60);return x<24?`${x} hr ago`:`${Math.floor(x/24)} day(s) ago`}catch{return"Unknown"}}const Ue=Le.forwardRef(({className:u="",label:o,error:d,helperText:r,rightIcon:h,...x},f)=>s.jsxs("div",{className:"w-full",children:[o&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{ref:f,className:`
|
|
345
|
+
w-full rounded-lg bg-slate-950 border border-slate-800
|
|
346
|
+
px-3 py-2 text-sm text-slate-200
|
|
347
|
+
placeholder:text-slate-600
|
|
348
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
349
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
350
|
+
transition-all duration-200
|
|
351
|
+
${d?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
352
|
+
${h?"pr-10":""}
|
|
353
|
+
${u}
|
|
354
|
+
`,...x}),h&&s.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:h})]}),d?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:d}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));Ue.displayName="Input";const Bt=Le.forwardRef(({className:u="",label:o,error:d,helperText:r,options:h,value:x,onChange:f,children:b,...p},v)=>{const N=j=>{f&&f(j.target.value)};return s.jsxs("div",{className:"w-full",children:[o&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{ref:v,className:`
|
|
355
|
+
w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
|
|
356
|
+
px-3 py-2 pr-10 text-sm text-slate-200
|
|
357
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
358
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
359
|
+
transition-all duration-200
|
|
360
|
+
${d?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
361
|
+
${u}
|
|
362
|
+
`,value:x,onChange:N,...p,children:h?h.map(j=>s.jsx("option",{value:j.value,children:j.label},j.value)):b}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:s.jsx(mg,{className:"h-4 w-4"})})]}),d?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:d}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});Bt.displayName="Select";const Pn=[{label:"Balanced (recommended)",value:"5 */3 * * *",description:"Every 3 hours at minute 5 (good default, low burst risk)"},{label:"Every 6 hours (very safe)",value:"10 */6 * * *",description:"Every 6 hours at minute 10"},{label:"Every 4 hours",value:"10 */4 * * *",description:"Every 4 hours at minute 10"},{label:"Twice daily",value:"20 2,14 * * *",description:"At 02:20 and 14:20 UTC"},{label:"Daily",value:"30 3 * * *",description:"Once per day at 03:30 UTC"},{label:"Weekdays only",value:"30 9 * * 1-5",description:"At 09:30 UTC, Monday to Friday"},{label:"Weekly (Monday)",value:"40 3 * * 1",description:"At 03:40 UTC every Monday"},{label:"Custom",value:"__custom__",description:"Enter your own cron expression"}],U0=[{id:"night-surge",label:"Night Surge",description:"Overnight execution with staggered jobs to avoid API bursts.",schedules:{executor:"5 21,0,3,6 * * *",reviewer:"25 9,17 * * *",qa:"45 22 * * *",audit:"50 4 * * 1",slicer:"35 20 * * *"},hints:{executor:"9pm, 12am, 3am, 6am",reviewer:"9:25am & 5:25pm",qa:"10:45pm",audit:"Mon 4:50am",slicer:"8:35pm kickoff"}},{id:"always-on",label:"Always On (Recommended)",description:"24/7 with conservative cadence and minute staggering to reduce rate limits.",schedules:{executor:"5 */3 * * *",reviewer:"25 */6 * * *",qa:"45 2,14 * * *",audit:"50 3 * * 1",slicer:"35 */12 * * *"},hints:{executor:"Every 3h at :05",reviewer:"Every 6h at :25",qa:"2:45am & 2:45pm",audit:"Mon 3:50am",slicer:"Every 12h at :35"}},{id:"day-shift",label:"Day Shift",description:"Weekday daytime cadence with staggered minutes per job.",schedules:{executor:"5 9-18 * * 1-5",reviewer:"25 12,18 * * 1-5",qa:"45 11,17 * * 1-5",audit:"50 9 * * 1",slicer:"35 8 * * 1"},hints:{executor:"Hourly at :05, weekdays",reviewer:"12:25pm & 6:25pm, weekdays",qa:"11:45am & 5:45pm, weekdays",audit:"Mon 9:50am",slicer:"Mon 8:35am"}},{id:"minimal",label:"Minimal",description:"Lowest API usage with one lightweight run per day (weekly heavy jobs).",schedules:{executor:"5 2 * * *",reviewer:"25 8 * * *",qa:"45 3 * * 0",audit:"50 4 * * 0",slicer:"35 1 * * 1"},hints:{executor:"Daily 2:05am",reviewer:"Daily 8:25am",qa:"Sun 3:45am",audit:"Sun 4:50am",slicer:"Mon 1:35am"}}];function Fb(u,o,d,r,h){return U0.find(x=>x.schedules.executor===u&&x.schedules.reviewer===o&&x.schedules.qa===d&&x.schedules.audit===r&&x.schedules.slicer===h)}function Ja(u){const o=u.trim().split(/\s+/);if(o.length!==5)return u;const[d,r,h,x,f]=o,b=Pn.find(p=>p.value===u);if(b)return b.label;if(d==="*/30"&&r==="*")return"Every 30 minutes";if(d==="0"&&r==="*")return"Every hour";if(d.startsWith("*/"))return`Every ${parseInt(d.replace("*/",""),10)} minutes`;if(d==="0"&&r.startsWith("*/"))return`Every ${parseInt(r.replace("*/",""),10)} hours`;if(d==="0"&&r!=="*"&&h==="*"&&x==="*"&&f==="*")return`Daily at ${Wn(r)}`;if(d==="0"&&r!=="*"&&h==="*"&&x==="*"&&f==="1-5")return`Weekdays at ${Wn(r)}`;if(d==="0"&&r.includes("-")){const[p,v]=r.split("-");return`Every hour from ${Wn(p)} to ${Wn(v)}`}if(d==="0"&&r.includes(",")){const p=r.split(",").map(Wn);return p.length<=3?`At ${p.join(" and ")}`:`At ${p.slice(0,-1).join(", ")}, and ${p[p.length-1]}`}return u}function Wn(u){const o=parseInt(u,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function H0(u){const o=Pn.find(d=>d.value===u);return(o==null?void 0:o.value)??"__custom__"}function Pb(u){const o=new Date,d=u.getTime()-o.getTime(),r=Math.floor(d/6e4),h=Math.floor(r/60),x=Math.floor(h/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:h<24?`in ${h} hour${h>1?"s":""}`:`in ${x} day${x>1?"s":""}`}function Ib(u){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return u.toLocaleDateString("en-US",o)}function ey(u){const o=new Date,d=u.getTime()-o.getTime(),r=Math.floor(d/6e4);return r>=0&&r<30}const ty=()=>{var R,ee,be;const{addToast:u,selectedProjectId:o,globalModeLoading:d}=Tt(),[r,h]=C.useState(!1),[x,f]=C.useState(!1),[b,p]=C.useState(null),[v,N]=C.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:j,loading:O,error:X,refetch:T}=Ct(_0,[o],{enabled:!d}),{data:g,loading:U,refetch:k}=Ct(M0,[o],{enabled:!d});C.useEffect(()=>{const W=setInterval(()=>{T()},3e4);return()=>clearInterval(W)},[T]),C.useEffect(()=>{g&&!v.isEditing&&N({executorSchedule:g.cronSchedule,reviewerSchedule:g.reviewerSchedule,isEditing:!1})},[g,v.isEditing]);const G=async()=>{if(j){h(!0);try{j.paused?(await Ri(),u({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await bb(),u({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),T()}catch(W){u({title:"Action Failed",message:W instanceof Error?W.message:"Failed to toggle schedule state",type:"error"})}finally{h(!1)}}},Y=()=>{g&&N({executorSchedule:g.cronSchedule,reviewerSchedule:g.reviewerSchedule,isEditing:!0})},ae=()=>{g&&N({executorSchedule:g.cronSchedule,reviewerSchedule:g.reviewerSchedule,isEditing:!1})},de=async()=>{if(g){f(!0);try{await ra({cronSchedule:v.executorSchedule,reviewerSchedule:v.reviewerSchedule}),await Ri(),u({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),N(W=>({...W,isEditing:!1})),k(),T()}catch(W){u({title:"Save Failed",message:W instanceof Error?W.message:"Failed to save schedules",type:"error"})}finally{f(!1)}}},Q=async(W,A)=>{if(g){p(W);try{W==="executor"?await ra({executorEnabled:A}):W==="reviewer"?await ra({reviewerEnabled:A}):W==="qa"?await ra({qa:{...g.qa,enabled:A}}):W==="audit"?await ra({audit:{...g.audit,enabled:A}}):await ra({roadmapScanner:{...g.roadmapScanner,enabled:A}}),await Ri(),u({title:"Job Updated",message:`${W[0].toUpperCase()+W.slice(1)} ${A?"enabled":"disabled"}.`,type:"success"}),k(),T()}catch(V){u({title:"Update Failed",message:V instanceof Error?V.message:"Failed to update job configuration",type:"error"})}finally{p(null)}}},$=(W,A)=>{if(!W)return s.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const V=new Date(W),te=ey(V);return s.jsxs("div",{className:"flex items-center space-x-2",children:[te&&s.jsxs("span",{className:"relative flex h-3 w-3",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),s.jsxs("div",{className:"text-sm",children:[s.jsx("span",{className:"text-slate-200 font-medium",children:Pb(V)}),s.jsxs("span",{className:"text-slate-500 ml-2",children:["(",Ib(V),")"]})]})]})},ne=(W,A,V,te)=>{const je=H0(A),Se=je==="__custom__";return s.jsxs("div",{className:`space-y-3 ${te?"opacity-50 pointer-events-none":""}`,children:[s.jsx("div",{className:"flex items-center space-x-3",children:s.jsx(Bt,{label:`${W} Preset`,options:Pn,value:je,onChange:S=>{S!=="__custom__"&&V(S)},className:"flex-1"})}),Se&&s.jsx(Ue,{label:"Custom Cron Expression",value:A,onChange:S=>V(S.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),s.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",s.jsx("span",{className:"text-slate-200",children:Ja(A)})]})]})};if(O||U)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(X||!j||!g)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),s.jsx("div",{className:"text-sm text-slate-500",children:(X==null?void 0:X.message)||"Unknown error"}),s.jsx(Ne,{onClick:()=>{T(),k()},children:"Retry"})]});const ce=j.paused,Z=ce?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",De=ce?"Paused":"Active";return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"})}),s.jsx(ge,{className:`p-6 border-2 ${Z}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(Ai,{className:"h-8 w-8"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),s.jsx("div",{className:"text-2xl font-bold",children:De})]})]}),s.jsx(Ne,{variant:ce?"primary":"outline",size:"lg",onClick:G,loading:r,children:ce?s.jsxs(s.Fragment,{children:[s.jsx(Oi,{className:"h-5 w-5 mr-2"}),"Resume"]}):s.jsxs(s.Fragment,{children:[s.jsx(j0,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(ge,{className:`p-6 ${g.executorEnabled===!1?"opacity-50":""}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),g.executorEnabled===!1?s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"}):!v.isEditing&&s.jsxs(Ne,{variant:"ghost",size:"sm",onClick:Y,children:[s.jsx(lb,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),v.isEditing?ne("Executor",v.executorSchedule,W=>N(A=>({...A,executorSchedule:W})),g.executorEnabled===!1):s.jsx(s.Fragment,{children:s.jsx("div",{className:"space-y-4",children:g.executorEnabled!==!1?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ja(g.cronSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:g.cronSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),$(j.executor.nextRun,g.cronSchedule)]}),s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${j.executor.installed?"text-green-400":"text-amber-400"}`,children:[s.jsx(Ci,{className:"h-4 w-4"}),s.jsx("span",{children:j.executor.installed?"Installed":"Not installed"})]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Executor is disabled in settings."})})})]}),s.jsxs(ge,{className:`p-6 ${g.reviewerEnabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!g.reviewerEnabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),v.isEditing?ne("Reviewer",v.reviewerSchedule,W=>N(A=>({...A,reviewerSchedule:W})),!g.reviewerEnabled):s.jsx(s.Fragment,{children:s.jsx("div",{className:"space-y-4",children:g.reviewerEnabled?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ja(g.reviewerSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:g.reviewerSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),$(j.reviewer.nextRun,g.reviewerSchedule)]}),s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${j.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[s.jsx(Ci,{className:"h-4 w-4"}),s.jsx("span",{children:j.reviewer.installed?"Installed":"Not installed"})]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),s.jsxs(ge,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:"Job Enablement"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Creates implementation PRs from PRDs"})]}),s.jsx(ut,{checked:g.executorEnabled!==!1,disabled:b!==null,onChange:W=>Q("executor",W)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Reviews PRs and manages merge readiness"})]}),s.jsx(ut,{checked:g.reviewerEnabled,disabled:b!==null,onChange:W=>Q("reviewer",W)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"QA"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Generates and runs quality checks on PRs"})]}),s.jsx(ut,{checked:g.qa.enabled,disabled:b!==null,onChange:W=>Q("qa",W)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Auditor"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Runs automated audit reports"})]}),s.jsx(ut,{checked:g.audit.enabled,disabled:b!==null,onChange:W=>Q("audit",W)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40 md:col-span-2",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Planner"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Creates PRDs from audit findings and pending roadmap items"})]}),s.jsx(ut,{checked:g.roadmapScanner.enabled,disabled:b!==null,onChange:W=>Q("planner",W)})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsxs(ge,{className:`p-6 ${g.qa.enabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[s.jsx(E0,{className:"h-4 w-4"}),"QA"]}),!g.qa.enabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),g.qa.enabled?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ja(g.qa.schedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:g.qa.schedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),$((R=j.qa)==null?void 0:R.nextRun,g.qa.schedule)]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"QA is disabled in settings."})]}),s.jsxs(ge,{className:`p-6 ${g.audit.enabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[s.jsx(as,{className:"h-4 w-4"}),"Auditor"]}),!g.audit.enabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),g.audit.enabled?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ja(g.audit.schedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:g.audit.schedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),$((ee=j.audit)==null?void 0:ee.nextRun,g.audit.schedule)]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Audit is disabled in settings."})]}),s.jsxs(ge,{className:`p-6 ${g.roadmapScanner.enabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[s.jsx(p0,{className:"h-4 w-4"}),"Planner"]}),!g.roadmapScanner.enabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),g.roadmapScanner.enabled?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:Ja(g.roadmapScanner.slicerSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:g.roadmapScanner.slicerSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),$((be=j.planner)==null?void 0:be.nextRun,g.roadmapScanner.slicerSchedule)]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Planner uses roadmap scanner scheduling."})]})]}),s.jsxs(ge,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[s.jsx(_i,{className:"h-5 w-5 text-slate-400"}),s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),j.entries.length===0?s.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):s.jsx("div",{className:"space-y-2",children:j.entries.map((W,A)=>s.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:W},A))})]}),v.isEditing&&s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[s.jsx(Ne,{variant:"ghost",onClick:ae,children:"Cancel"}),s.jsxs(Ne,{onClick:de,loading:x,children:[s.jsx(Ci,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},Wa=({label:u,value:o,onChange:d,helperText:r,placeholder:h="5 */3 * * *"})=>{const x=H0(o),f=x==="__custom__",b=N=>{N!=="__custom__"&&d(N)},p=N=>{d(N.target.value)},v=Pn.find(N=>N.value===x);return s.jsxs("div",{className:"space-y-3",children:[s.jsx(Bt,{label:u,value:x,onChange:b,options:Pn.map(N=>({label:N.label,value:N.value})),helperText:f?void 0:(v==null?void 0:v.description)||r}),f&&s.jsxs("div",{className:"space-y-2 mt-2",children:[s.jsx(Ue,{label:"Cron Expression",value:o,onChange:p,placeholder:h}),s.jsxs("div",{className:"text-xs text-slate-500 bg-slate-900/40 p-3 rounded-md border border-slate-800/60",children:[s.jsx("strong",{className:"text-slate-400",children:"Format:"})," minute hour day month weekday",s.jsx("br",{}),s.jsx("strong",{className:"text-slate-400",children:"Examples:"})," ",s.jsx("code",{className:"bg-slate-950 px-1 py-0.5 rounded text-indigo-300",children:"0 * * * *"})," (hourly),"," ",s.jsx("code",{className:"bg-slate-950 px-1 py-0.5 rounded text-indigo-300",children:"0 0 * * *"})," (daily at midnight)"]})]})]})},ly=({tabs:u,activeTab:o,onChange:d,className:r=""})=>{var p,v;const[h,x]=Le.useState((p=u[0])==null?void 0:p.id),f=o||h,b=N=>{d?d(N):x(N)};return s.jsxs("div",{className:`flex flex-col ${r}`,children:[s.jsx("div",{className:"border-b border-slate-800 mb-6",children:s.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:u.map(N=>s.jsx("button",{onClick:()=>b(N.id),className:`
|
|
363
|
+
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
364
|
+
${f===N.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
365
|
+
`,children:N.label},N.id))})}),s.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(v=u.find(N=>N.id===f))==null?void 0:v.content})]})},cr=u=>{var o,d,r,h,x,f,b;return{provider:u.provider,providerLabel:u.providerLabel??"",defaultBranch:u.defaultBranch,prdDir:u.prdDir||"docs/prds",branchPrefix:u.branchPrefix,branchPatterns:u.branchPatterns||[],executorEnabled:u.executorEnabled??!0,reviewerEnabled:u.reviewerEnabled,minReviewScore:u.minReviewScore,maxRuntime:u.maxRuntime,reviewerMaxRuntime:u.reviewerMaxRuntime,maxLogSize:u.maxLogSize,cronSchedule:u.cronSchedule||"5 */3 * * *",reviewerSchedule:u.reviewerSchedule||"25 */6 * * *",cronScheduleOffset:u.cronScheduleOffset??0,maxRetries:u.maxRetries??3,reviewerMaxRetries:u.reviewerMaxRetries??2,reviewerRetryDelay:u.reviewerRetryDelay??30,providerEnv:u.providerEnv||{},notifications:u.notifications||{webhooks:[]},prdPriority:u.prdPriority||[],roadmapScanner:{enabled:((o=u.roadmapScanner)==null?void 0:o.enabled)??!0,roadmapPath:((d=u.roadmapScanner)==null?void 0:d.roadmapPath)??"ROADMAP.md",autoScanInterval:((r=u.roadmapScanner)==null?void 0:r.autoScanInterval)??300,slicerSchedule:((h=u.roadmapScanner)==null?void 0:h.slicerSchedule)??"35 */12 * * *",slicerMaxRuntime:((x=u.roadmapScanner)==null?void 0:x.slicerMaxRuntime)??600,priorityMode:((f=u.roadmapScanner)==null?void 0:f.priorityMode)??"roadmap-first",issueColumn:((b=u.roadmapScanner)==null?void 0:b.issueColumn)??"Draft"},templatesDir:u.templatesDir||".night-watch/templates",boardProvider:u.boardProvider||{enabled:!0,provider:"github"},jobProviders:u.jobProviders||{},autoMerge:u.autoMerge??!1,autoMergeMethod:u.autoMergeMethod??"squash",fallbackOnRateLimit:u.fallbackOnRateLimit??!0,claudeModel:u.claudeModel??"sonnet",qa:u.qa||{enabled:!0,schedule:"45 2,14 * * *",maxRuntime:3600,branchPatterns:[],artifacts:"both",skipLabel:"skip-qa",autoInstallPlaywright:!0},audit:u.audit||{enabled:!0,schedule:"50 3 * * 1",maxRuntime:1800}}},ay=u=>["TOKEN","SECRET","KEY","PASSWORD","AUTH","API_KEY"].some(d=>u.toUpperCase().includes(d)),ny=({value:u,isSensitive:o})=>{const[d,r]=Le.useState(!1);return o?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm text-slate-300 font-mono",children:d?u:"••••••••••••"}),s.jsx("button",{type:"button",onClick:()=>r(!d),className:"text-slate-500 hover:text-slate-300","aria-label":d?"Hide sensitive value":"Show sensitive value",title:d?"Hide sensitive value":"Show sensitive value",children:d?s.jsx(Tg,{className:"h-4 w-4"}):s.jsx(_g,{className:"h-4 w-4"})})]}):s.jsx("span",{className:"text-sm text-slate-300 font-mono truncate max-w-xs",children:u})},sy=({envVars:u,onChange:o})=>{const[d,r]=Le.useState(""),[h,x]=Le.useState(""),[f,b]=Le.useState(null),[p,v]=Le.useState(""),N=()=>{if(d.trim()){if(!/^[A-Z_][A-Z0-9_]*$/.test(d)){alert("Key must be uppercase with underscores (e.g., API_KEY)");return}o({...u,[d]:h}),r(""),x("")}},j=U=>{const k={...u};delete k[U],o(k)},O=U=>{b(U),v(u[U])},X=()=>{f&&(o({...u,[f]:p}),b(null),v(""))},T=()=>{b(null),v("")},g=Object.entries(u);return s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Configure environment variables passed to the provider CLI (API keys, base URLs)"}),s.jsx("div",{className:"space-y-2",children:g.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No provider environment variables configured."}):g.map(([U,k])=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[s.jsx("span",{className:"text-sm font-mono text-indigo-400 w-48 truncate",children:U}),f===U?s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[s.jsx("input",{type:"text",value:p,onChange:G=>v(G.target.value),className:"flex-1 bg-slate-800 border border-slate-700 rounded px-2 py-1 text-sm text-slate-200"}),s.jsx("button",{type:"button",onClick:X,className:"p-1 text-green-400 hover:text-green-300","aria-label":`Save ${U} value`,title:`Save ${U} value`,children:s.jsx(Ci,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:T,className:"p-1 text-slate-400 hover:text-slate-300","aria-label":`Cancel editing ${U}`,title:`Cancel editing ${U}`,children:s.jsx(ns,{className:"h-4 w-4"})})]}):s.jsx(ny,{value:k,isSensitive:ay(U)})]}),f!==U&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>O(U),className:"p-1 text-slate-400 hover:text-slate-200","aria-label":`Edit ${U}`,title:`Edit ${U}`,children:s.jsx(N0,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>j(U),className:"p-1 text-red-400 hover:text-red-300","aria-label":`Delete ${U}`,title:`Delete ${U}`,children:s.jsx(w0,{className:"h-4 w-4"})})]})]},U))}),s.jsxs("div",{className:"flex items-end gap-3 pt-4 border-t border-slate-800",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Key"}),s.jsx("input",{type:"text",value:d,onChange:U=>r(U.target.value.toUpperCase()),placeholder:"e.g., ANTHROPIC_BASE_URL",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Value"}),s.jsx("input",{type:"text",value:h,onChange:U=>x(U.target.value),placeholder:"e.g., https://api.example.com",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs(Ne,{onClick:N,disabled:!d.trim(),children:[s.jsx(ls,{className:"h-4 w-4 mr-1"}),"Add"]})]})]})},iy=({notifications:u,onChange:o})=>{const[d,r]=Le.useState(null),[h,x]=Le.useState(!1),[f,b]=Le.useState({type:"slack",url:"",events:[]}),p=[{label:"Run Started",value:"run_started"},{label:"Run Succeeded",value:"run_succeeded"},{label:"Run Failed",value:"run_failed"},{label:"Run Timeout",value:"run_timeout"},{label:"Review Completed",value:"review_completed"},{label:"PR Auto-Merged",value:"pr_auto_merged"},{label:"Rate Limit Fallback",value:"rate_limit_fallback"},{label:"QA Completed",value:"qa_completed"}],v=()=>{o({webhooks:[...u.webhooks,f]}),b({type:"slack",url:"",events:[]}),x(!1)},N=(T,g)=>{const U=[...u.webhooks];U[T]=g,o({webhooks:U})},j=T=>{o({webhooks:u.webhooks.filter((g,U)=>U!==T)})},O=(T,g)=>T.includes(g)?T.filter(U=>U!==g):[...T,g],X=({webhook:T,onChange:g,onSave:U,onCancel:k,isNew:G})=>s.jsxs("div",{className:"p-4 rounded-md border border-slate-700 bg-slate-900/50 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(Bt,{label:"Type",value:T.type,onChange:Y=>{const ae=Y;g(ae==="telegram"?{type:ae,botToken:"",chatId:"",events:T.events}:{type:ae,url:"",events:T.events})},options:[{label:"Slack",value:"slack"},{label:"Discord",value:"discord"},{label:"Telegram",value:"telegram"}]}),T.type==="telegram"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"relative",children:s.jsx(Ue,{label:"Bot Token",type:"password",value:T.botToken||"",onChange:Y=>g({...T,botToken:Y.target.value}),placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz"})}),s.jsx(Ue,{label:"Chat ID",value:T.chatId||"",onChange:Y=>g({...T,chatId:Y.target.value}),placeholder:"123456789"})]}):s.jsx("div",{className:"md:col-span-2",children:s.jsx(Ue,{label:"Webhook URL",type:"password",value:T.url||"",onChange:Y=>g({...T,url:Y.target.value}),placeholder:"https://hooks.slack.com/services/..."})})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Events"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:p.map(Y=>s.jsx("button",{type:"button",onClick:()=>g({...T,events:O(T.events,Y.value)}),className:`px-3 py-1.5 rounded-md text-sm transition-colors ${T.events.includes(Y.value)?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:bg-slate-700"}`,children:Y.label},Y.value))})]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(Ne,{variant:"ghost",onClick:k,children:"Cancel"}),s.jsx(Ne,{onClick:U,disabled:T.events.length===0||(T.type==="telegram"?!T.botToken||!T.chatId:!T.url),children:G?"Add Webhook":"Save Changes"})]})]});return s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Receive notifications when events occur via Slack, Discord, or Telegram"}),s.jsx("div",{className:"space-y-3",children:u.webhooks.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No webhooks configured."}):u.webhooks.map((T,g)=>s.jsx("div",{children:d===g?s.jsx(X,{webhook:T,onChange:U=>N(g,U),onSave:()=>r(null),onCancel:()=>r(null)}):s.jsxs("div",{className:"flex items-center justify-between p-4 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200 capitalize",children:T.type}),T.type==="telegram"&&s.jsxs("span",{className:"text-xs text-slate-500",children:["Chat ID: ",T.chatId]})]}),s.jsx("div",{className:"flex flex-wrap gap-1",children:T.events.map(U=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 rounded text-xs text-slate-400",children:U.replace("_"," ")},U))})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>r(g),className:"p-2 text-slate-400 hover:text-slate-200","aria-label":`Edit ${T.type} webhook`,title:`Edit ${T.type} webhook`,children:s.jsx(N0,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>j(g),className:"p-2 text-red-400 hover:text-red-300","aria-label":`Delete ${T.type} webhook`,title:`Delete ${T.type} webhook`,children:s.jsx(w0,{className:"h-4 w-4"})})]})]})},g))}),h?s.jsx(X,{webhook:f,onChange:b,onSave:v,onCancel:()=>x(!1),isNew:!0}):s.jsxs(Ne,{variant:"ghost",onClick:()=>x(!0),children:[s.jsx(ls,{className:"h-4 w-4 mr-2"}),"Add Webhook"]})]})},rr=({label:u,value:o,onChange:d,placeholder:r,helpText:h})=>{const[x,f]=Le.useState(""),b=()=>{x.trim()&&!o.includes(x.trim())&&(d([...o,x.trim()]),f(""))},p=N=>{d(o.filter(j=>j!==N))},v=N=>{N.key==="Enter"&&(N.preventDefault(),b())};return s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:u}),s.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:o.map(N=>s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-slate-800 rounded text-sm text-slate-300",children:[N,s.jsx("button",{type:"button",onClick:()=>p(N),className:"text-slate-500 hover:text-red-400","aria-label":`Remove ${N}`,title:`Remove ${N}`,children:s.jsx(ns,{className:"h-3 w-3"})})]},N))}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:x,onChange:N=>f(N.target.value),onKeyDown:v,placeholder:r,className:"flex-1 bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"}),s.jsx(Ne,{onClick:b,disabled:!x.trim(),"aria-label":`Add ${u.toLowerCase()} value`,children:s.jsx(ls,{className:"h-4 w-4"})})]}),h&&s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:h})]})},uy=()=>{const{addToast:u,projectName:o,selectedProjectId:d,globalModeLoading:r}=Tt(),[h,x]=Le.useState(!1),[f,b]=Le.useState(null),p=Le.useRef(!1),[v,N]=Le.useState("template"),[j,O]=Le.useState("always-on"),X=Le.useRef(!1),{data:T,loading:g,error:U,refetch:k}=Ct(M0,[d],{enabled:!r}),{data:G,loading:Y,refetch:ae}=Ct(pb,[d],{enabled:!r}),de=G??[];Le.useEffect(()=>{if(T)if(p.current)p.current=!1;else{const R=cr(T);if(b(R),!X.current){const ee=Fb(R.cronSchedule,R.reviewerSchedule,R.qa.schedule,R.audit.schedule,R.roadmapScanner.slicerSchedule??"35 */12 * * *");ee?(N("template"),O(ee.id)):(N("custom"),O("")),X.current=!0}}},[T]);const Q=(R,ee)=>{b(be=>be&&{...be,[R]:ee})},$=R=>{O(R.id),b(ee=>ee&&{...ee,cronSchedule:R.schedules.executor,reviewerSchedule:R.schedules.reviewer,qa:{...ee.qa,schedule:R.schedules.qa},audit:{...ee.audit,schedule:R.schedules.audit},roadmapScanner:{...ee.roadmapScanner,slicerSchedule:R.schedules.slicer},fallbackOnRateLimit:!0})},ne=async()=>{var be,W;if(!f)return;const R=f.cronSchedule!==(T==null?void 0:T.cronSchedule)||f.reviewerSchedule!==(T==null?void 0:T.reviewerSchedule)||f.cronScheduleOffset!==((T==null?void 0:T.cronScheduleOffset)??0)||f.executorEnabled!==((T==null?void 0:T.executorEnabled)??!0)||f.reviewerEnabled!==((T==null?void 0:T.reviewerEnabled)??!0)||f.qa.enabled!==((T==null?void 0:T.qa.enabled)??!0)||f.qa.schedule!==(T==null?void 0:T.qa.schedule)||f.audit.enabled!==((T==null?void 0:T.audit.enabled)??!0)||f.audit.schedule!==(T==null?void 0:T.audit.schedule)||f.roadmapScanner.enabled!==(((be=T==null?void 0:T.roadmapScanner)==null?void 0:be.enabled)??!0)||(f.roadmapScanner.slicerSchedule||"35 */12 * * *")!==(((W=T==null?void 0:T.roadmapScanner)==null?void 0:W.slicerSchedule)||"35 */12 * * *"),ee={};for(const[A,V]of Object.entries(f.jobProviders))V!=null&&V!==""&&(ee[A]=V);x(!0);try{const A=await ra({provider:f.provider,providerLabel:f.providerLabel.trim(),defaultBranch:f.defaultBranch,prdDir:f.prdDir,branchPrefix:f.branchPrefix,branchPatterns:f.branchPatterns,executorEnabled:f.executorEnabled,reviewerEnabled:f.reviewerEnabled,minReviewScore:f.minReviewScore,maxRuntime:f.maxRuntime,reviewerMaxRuntime:f.reviewerMaxRuntime,maxLogSize:f.maxLogSize,cronSchedule:f.cronSchedule,reviewerSchedule:f.reviewerSchedule,cronScheduleOffset:f.cronScheduleOffset,maxRetries:f.maxRetries,reviewerMaxRetries:f.reviewerMaxRetries,reviewerRetryDelay:f.reviewerRetryDelay,providerEnv:f.providerEnv,notifications:f.notifications,prdPriority:f.prdPriority,roadmapScanner:f.roadmapScanner,templatesDir:f.templatesDir,boardProvider:f.boardProvider,jobProviders:ee,autoMerge:f.autoMerge,autoMergeMethod:f.autoMergeMethod,fallbackOnRateLimit:f.fallbackOnRateLimit,claudeModel:f.claudeModel,qa:f.qa,audit:f.audit});b(cr(A));let V="";if(R)try{await Ri()}catch(te){V=te instanceof Error?te.message:"failed to reinstall cron schedules"}u(V?{title:"Settings Saved (Cron Reinstall Failed)",message:V,type:"warning"}:{title:"Settings Saved",message:R?"Configuration updated and cron schedules reinstalled.":"Configuration updated successfully.",type:"success"}),p.current=!0,k(),ae()}catch(A){u({title:"Save Failed",message:A instanceof Error?A.message:"Failed to save configuration",type:"error"})}finally{x(!1)}},ce=()=>{T&&(b(cr(T)),u({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))},Z=async R=>{try{const ee=await D0(R);Q("roadmapScanner",ee.roadmapScanner),u({title:R?"Roadmap Scanner Enabled":"Roadmap Scanner Disabled",message:`Roadmap scanner has been ${R?"enabled":"disabled"}.`,type:"success"})}catch(ee){u({title:"Toggle Failed",message:ee instanceof Error?ee.message:"Failed to toggle roadmap scanner",type:"error"})}};if(g||!f)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(U)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),s.jsx("div",{className:"text-sm text-slate-500",children:U.message}),s.jsx(Ne,{onClick:()=>k(),children:"Retry"})]});const De=[{id:"general",label:"General",content:s.jsx(ge,{className:"p-6 space-y-6",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-4",children:[s.jsx(Ue,{label:"Project Name",value:o,disabled:!0}),s.jsx(Ue,{label:"Default Branch",value:f.defaultBranch,onChange:R=>Q("defaultBranch",R.target.value)}),s.jsx(Ue,{label:"PRD Directory",value:f.prdDir,onChange:R=>Q("prdDir",R.target.value),helperText:"Directory containing PRD files (relative to project root)"}),s.jsx(Ue,{label:"Branch Prefix",value:f.branchPrefix,onChange:R=>Q("branchPrefix",R.target.value)}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(ut,{label:"Enable PRD Executor",checked:f.executorEnabled,onChange:R=>Q("executorEnabled",R)})}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(ut,{label:"Enable Automated Reviews",checked:f.reviewerEnabled,onChange:R=>Q("reviewerEnabled",R)})}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(ut,{label:"Auto-merge approved PRs",checked:f.autoMerge,onChange:R=>Q("autoMerge",R)})}),f.autoMerge&&s.jsx(Bt,{label:"Merge Method",value:f.autoMergeMethod,onChange:R=>Q("autoMergeMethod",R),options:[{label:"Squash",value:"squash"},{label:"Merge",value:"merge"},{label:"Rebase",value:"rebase"}]})]}),s.jsx("div",{className:"pt-4 mt-4 border-t border-slate-800",children:s.jsx(rr,{label:"Branch Patterns",value:f.branchPatterns,onChange:R=>Q("branchPatterns",R),placeholder:"e.g., feat/",helpText:"Branch patterns matched by reviewer and related automation jobs"})})]})})},{id:"providers",label:"Providers",content:s.jsxs("div",{className:"space-y-6",children:[s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Global Provider"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Default AI provider used for all jobs unless overridden below"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Bt,{label:"Provider",value:f.provider,onChange:R=>Q("provider",R),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),s.jsx(Ue,{label:"Provider Label",value:f.providerLabel,onChange:R=>Q("providerLabel",R.target.value),placeholder:"e.g. GLM-5 (auto-derived if blank)",helperText:"Human-friendly name shown in PR comments, review footers, and commit attribution"}),s.jsx(Bt,{label:"Claude Model",value:f.claudeModel,onChange:R=>Q("claudeModel",R),options:[{label:"Sonnet (claude-sonnet-4-6)",value:"sonnet"},{label:"Opus (claude-opus-4-6)",value:"opus"}],helperText:"Model used for native Claude execution (when no proxy is set or after fallback)"}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsx(ut,{label:"Fallback on Rate Limit",checked:f.fallbackOnRateLimit,onChange:R=>Q("fallbackOnRateLimit",R)}),s.jsx("p",{className:"text-xs text-slate-500 mt-2",children:"When enabled, automatically fall back to native Claude API after rate-limit on proxy provider"})]})]})]}),s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Per-Job Provider Overrides"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:'Override the AI provider for specific job types. Leave as "Use Global" to use the default provider.'})]}),s.jsx("div",{className:"space-y-4",children:[{key:"executor",label:"Executor"},{key:"reviewer",label:"Reviewer"},{key:"qa",label:"QA"},{key:"audit",label:"Audit"},{key:"slicer",label:"Planner"}].map(({key:R,label:ee})=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40 gap-4",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200 whitespace-nowrap",children:ee}),s.jsx("div",{className:"w-64",children:s.jsx(Bt,{value:f.jobProviders[R]??"",onChange:be=>{const W={...f.jobProviders};be===""?delete W[R]:W[R]=be,Q("jobProviders",W)},options:[{label:"Use Global (default)",value:""},{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]})})]},R))})]}),s.jsxs(ge,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Provider Environment Variables"}),s.jsx(sy,{envVars:f.providerEnv,onChange:R=>Q("providerEnv",R)})]})]})},{id:"runtime",label:"Runtime",content:s.jsxs("div",{className:"space-y-6",children:[s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("input",{type:"range",min:"0",max:"100",value:f.minReviewScore,onChange:R=>Q("minReviewScore",Number(R.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),s.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:f.minReviewScore})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Ue,{label:"Max Runtime (Executor)",type:"number",value:String(f.maxRuntime),onChange:R=>Q("maxRuntime",Number(R.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(Ue,{label:"Max Runtime (Reviewer)",type:"number",value:String(f.reviewerMaxRuntime),onChange:R=>Q("reviewerMaxRuntime",Number(R.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(Ue,{label:"Max Log Size",type:"number",value:String(f.maxLogSize),onChange:R=>Q("maxLogSize",Number(R.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"bytes"})})]})]}),s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Retry Settings"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Configure automatic retry behavior for the PR reviewer when fixes do not fully resolve issues."})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Ue,{label:"Max Retry Attempts",type:"number",min:"0",max:"10",value:String(f.reviewerMaxRetries),onChange:R=>{const ee=Math.min(10,Math.max(0,Number(R.target.value||0)));Q("reviewerMaxRetries",ee)},helperText:"Additional fix attempts after initial review. 0 = no retries."}),s.jsx(Ue,{label:"Retry Delay (seconds)",type:"number",min:"0",max:"300",value:String(f.reviewerRetryDelay),onChange:R=>{const ee=Math.min(300,Math.max(0,Number(R.target.value||0)));Q("reviewerRetryDelay",ee)},helperText:"Wait time between retry attempts to let CI settle."})]})]})]})},{id:"schedules",label:"Schedules",content:s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-1",children:"Job Schedules"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Configure when automated jobs run using a preset template or custom cron expressions"})]}),s.jsxs("div",{className:"flex rounded-lg border border-slate-700 overflow-hidden shrink-0",children:[s.jsx("button",{type:"button",className:`px-4 py-1.5 text-sm font-medium transition-colors ${v==="template"?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:text-slate-200"}`,onClick:()=>N("template"),children:"Template"}),s.jsx("button",{type:"button",className:`px-4 py-1.5 text-sm font-medium transition-colors ${v==="custom"?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:text-slate-200"}`,onClick:()=>N("custom"),children:"Custom"})]})]}),v==="template"?s.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:U0.map(R=>{const ee=j===R.id;return s.jsxs("button",{type:"button",onClick:()=>$(R),className:`text-left p-4 rounded-lg border transition-colors ${ee?"border-indigo-500 bg-indigo-950/40":"border-slate-700 bg-slate-800/30 hover:border-slate-600"}`,children:[s.jsx("div",{className:"font-medium text-slate-200 mb-1",children:R.label}),s.jsx("p",{className:"text-xs text-slate-400 mb-3",children:R.description}),s.jsx("div",{className:"space-y-0.5",children:[["Executor",R.hints.executor],["Reviewer",R.hints.reviewer],["QA",R.hints.qa],["Audit",R.hints.audit],["Slicer",R.hints.slicer]].map(([be,W])=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-xs text-slate-500 w-16 shrink-0",children:be}),s.jsx("span",{className:"text-xs text-slate-400",children:W})]},be))})]},R.id)})}):s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Wa,{label:"PRD Execution Schedule",value:f.cronSchedule,onChange:R=>Q("cronSchedule",R)}),s.jsx(Wa,{label:"PR Review Schedule",value:f.reviewerSchedule,onChange:R=>Q("reviewerSchedule",R)}),s.jsx(Wa,{label:"QA Schedule",value:f.qa.schedule,onChange:R=>Q("qa",{...f.qa,schedule:R})}),s.jsx(Wa,{label:"Audit Schedule",value:f.audit.schedule,onChange:R=>Q("audit",{...f.audit,schedule:R})}),f.roadmapScanner.enabled&&s.jsx(Wa,{label:"Planner Schedule",value:f.roadmapScanner.slicerSchedule||"35 */12 * * *",onChange:R=>Q("roadmapScanner",{...f.roadmapScanner,slicerSchedule:R})})]}),s.jsx("div",{className:"pt-4 border-t border-slate-800",children:s.jsx(Ue,{label:"Cron Schedule Offset",type:"number",min:"0",max:"59",value:String(f.cronScheduleOffset),onChange:R=>{const ee=Math.min(59,Math.max(0,Number(R.target.value||0)));Q("cronScheduleOffset",ee)},helperText:"Minutes offset (0-59) applied to all cron schedules during install. Helps stagger multiple projects."})})]})},{id:"notifications",label:"Notifications",content:s.jsxs(ge,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Notification Webhooks"}),s.jsx(iy,{notifications:f.notifications,onChange:R=>Q("notifications",R)})]})},{id:"roadmap",label:"Planner",content:s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Planner"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Generate one PRD per run using ROADMAP.md first, then audit findings when roadmap work is exhausted"})]}),s.jsx(ut,{checked:f.roadmapScanner.enabled,onChange:Z})]}),f.roadmapScanner.enabled&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(Ue,{label:"Roadmap File Path",value:f.roadmapScanner.roadmapPath,onChange:R=>Q("roadmapScanner",{...f.roadmapScanner,roadmapPath:R.target.value}),helperText:"Primary planning source (relative to project root)."}),s.jsx(Wa,{label:"Planner Schedule",value:f.roadmapScanner.slicerSchedule||"35 */12 * * *",onChange:R=>Q("roadmapScanner",{...f.roadmapScanner,slicerSchedule:R})})]}),s.jsxs("div",{className:"pt-4 border-t border-slate-800",children:[s.jsx("h4",{className:"text-md font-medium text-slate-200 mb-4",children:"Planner Execution"}),s.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Planner creates one PRD at a time and can auto-create a board issue for handoff."}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Ue,{label:"Planner Max Runtime",type:"number",value:String(f.roadmapScanner.slicerMaxRuntime||""),onChange:R=>Q("roadmapScanner",{...f.roadmapScanner,slicerMaxRuntime:Number(R.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for planner tasks"}),s.jsx(Bt,{label:"Planner Priority Mode",value:f.roadmapScanner.priorityMode||"roadmap-first",onChange:R=>Q("roadmapScanner",{...f.roadmapScanner,priorityMode:R==="audit-first"?"audit-first":"roadmap-first"}),options:[{label:"Roadmap first (recommended)",value:"roadmap-first"},{label:"Audit first",value:"audit-first"}],helperText:"Choose whether planner consumes roadmap items or audit findings first."}),s.jsx(Bt,{label:"Planner Issue Column",value:f.roadmapScanner.issueColumn||"Draft",onChange:R=>Q("roadmapScanner",{...f.roadmapScanner,issueColumn:R==="Ready"?"Ready":"Draft"}),options:[{label:"Draft (default)",value:"Draft"},{label:"Ready",value:"Ready"}],helperText:"Column where planner-created issues are added after PRD generation."})]})]})]})]})},{id:"board",label:"Board",content:s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Board Provider"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Track PRDs and their status using GitHub Projects or local SQLite"})]}),s.jsx(ut,{checked:f.boardProvider.enabled,onChange:R=>Q("boardProvider",{...f.boardProvider,enabled:R})})]}),f.boardProvider.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(Bt,{label:"Board Provider",value:f.boardProvider.provider,onChange:R=>Q("boardProvider",{...f.boardProvider,provider:R}),options:[{label:"GitHub Projects",value:"github"},{label:"Local (SQLite)",value:"local"}]}),f.boardProvider.provider==="github"&&s.jsxs(s.Fragment,{children:[s.jsx(Ue,{label:"Project Number",type:"number",value:String(f.boardProvider.projectNumber||""),onChange:R=>Q("boardProvider",{...f.boardProvider,projectNumber:R.target.value?Number(R.target.value):void 0}),helperText:"GitHub Projects V2 project number"}),s.jsx(Ue,{label:"Repository",value:f.boardProvider.repo||"",onChange:R=>Q("boardProvider",{...f.boardProvider,repo:R.target.value||void 0}),helperText:"owner/repo (auto-detected if empty)"})]}),f.boardProvider.provider==="local"&&s.jsx("div",{className:"md:col-span-2",children:s.jsx("p",{className:"text-sm text-slate-400",children:"Local board uses SQLite for storage — no additional configuration needed."})})]})]})},{id:"qa",label:"QA",content:s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Quality Assurance"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automated UI testing using Playwright"})]}),s.jsx(ut,{checked:f.qa.enabled,onChange:R=>Q("qa",{...f.qa,enabled:R})})]}),f.qa.enabled&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(Ue,{label:"Max Runtime",type:"number",value:String(f.qa.maxRuntime),onChange:R=>Q("qa",{...f.qa,maxRuntime:Number(R.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for QA tasks (default: 3600 seconds)"}),s.jsx(Bt,{label:"Artifacts",value:f.qa.artifacts,onChange:R=>Q("qa",{...f.qa,artifacts:R}),options:[{label:"Screenshots",value:"screenshot"},{label:"Videos",value:"video"},{label:"Both",value:"both"}],helperText:"What artifacts to capture for UI tests"}),s.jsx(Ue,{label:"Skip Label",value:f.qa.skipLabel,onChange:R=>Q("qa",{...f.qa,skipLabel:R.target.value}),helperText:"GitHub label to skip QA (PRs with this label are excluded)"})]}),s.jsxs("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:[s.jsx(rr,{label:"QA Branch Patterns",value:f.qa.branchPatterns,onChange:R=>Q("qa",{...f.qa,branchPatterns:R}),placeholder:"e.g., qa/, test/",helpText:"Branch patterns to match for QA (defaults to top-level branchPatterns if empty)"}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:"Auto-install Playwright"}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Automatically install Playwright browsers if missing during QA run"})]}),s.jsx(ut,{checked:f.qa.autoInstallPlaywright,onChange:R=>Q("qa",{...f.qa,autoInstallPlaywright:R})})]})]})]})]})},{id:"audit",label:"Audit",content:s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Code Audit"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automated code quality and security audits"})]}),s.jsx(ut,{checked:f.audit.enabled,onChange:R=>Q("audit",{...f.audit,enabled:R})})]}),f.audit.enabled&&s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:s.jsx(Ue,{label:"Max Runtime",type:"number",value:String(f.audit.maxRuntime),onChange:R=>Q("audit",{...f.audit,maxRuntime:Number(R.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for audit tasks (default: 1800 seconds)"})})]})},{id:"advanced",label:"Advanced",content:s.jsxs(ge,{className:"p-6 space-y-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Advanced Settings"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Templates, retry policy, and PRD execution priority"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Ue,{label:"Templates Directory",value:f.templatesDir,onChange:R=>Q("templatesDir",R.target.value),helperText:"Directory for custom template overrides"}),s.jsx(Ue,{label:"Max Retries",type:"number",min:"1",value:String(f.maxRetries),onChange:R=>{const ee=Math.max(1,Number(R.target.value||1));Q("maxRetries",ee)},helperText:"Retry attempts for rate-limited API calls"})]}),s.jsx("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:s.jsx(rr,{label:"PRD Priority",value:f.prdPriority,onChange:R=>Q("prdPriority",R),placeholder:"e.g., feature-x",helpText:"PRDs matching these names are executed first"})})]})}];return s.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[s.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),s.jsx(ly,{tabs:De}),s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[s.jsxs(Ne,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:ce,children:[s.jsx(Wg,{className:"h-4 w-4 mr-2"}),"Reset"]}),s.jsxs(Ne,{onClick:ne,loading:h,children:[s.jsx(Pg,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),s.jsxs("div",{className:"mt-12",children:[s.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[s.jsx(v0,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),s.jsx(ge,{className:"divide-y divide-slate-800",children:Y?s.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):de.map((R,ee)=>{const be=R.status==="pass",W=R.status==="warn",A=be?"bg-green-500/10 text-green-400 border-green-500/20":W?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return s.jsxs("div",{className:"p-4 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:R.name}),s.jsx("p",{className:"text-xs text-slate-500",children:R.detail})]}),s.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${A}`,children:R.status.toUpperCase()})]},`${R.name}-${ee}`)})})]})]})},cy=()=>(Hb(),s.jsx(Bp,{children:s.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[s.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"}),s.jsx(zb,{}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[s.jsx(Db,{}),s.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:s.jsx("div",{className:"max-w-7xl mx-auto w-full",children:s.jsxs(xp,{children:[s.jsx(hl,{path:"/",element:s.jsx(Qb,{})}),s.jsx(hl,{path:"/prs",element:s.jsx(Vb,{})}),s.jsx(hl,{path:"/board",element:s.jsx(kb,{})}),s.jsx(hl,{path:"/scheduling",element:s.jsx(ty,{})}),s.jsx(hl,{path:"/logs",element:s.jsx(Xb,{})}),s.jsx(hl,{path:"/roadmap",element:s.jsx(Zb,{})}),s.jsx(hl,{path:"/settings",element:s.jsx(uy,{})}),s.jsx(hl,{path:"*",element:s.jsx(mp,{to:"/",replace:!0})})]})})})]}),s.jsx(Ub,{})]})})),q0=document.getElementById("root");if(!q0)throw new Error("Could not find root element to mount to");const ry=pv.createRoot(q0);ry.render(s.jsx(Le.StrictMode,{children:s.jsx(cy,{})}));
|