@jonit-dev/night-watch-cli 1.4.6 → 1.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const y of h.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&r(y)}).observe(document,{childList:!0,subtree:!0});function o(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(m){if(m.ep)return;m.ep=!0;const h=o(m);fetch(m.href,h)}})();function Pc(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var qc={exports:{}},Gn={};/**
|
|
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 S0;function kx(){if(S0)return Gn;S0=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function o(r,m,h){var y=null;if(h!==void 0&&(y=""+h),m.key!==void 0&&(y=""+m.key),"key"in m){h={};for(var S in m)S!=="key"&&(h[S]=m[S])}else h=m;return m=h.ref,{$$typeof:i,type:r,key:y,ref:m!==void 0?m:null,props:h}}return Gn.Fragment=f,Gn.jsx=o,Gn.jsxs=o,Gn}var j0;function Kx(){return j0||(j0=1,qc.exports=kx()),qc.exports}var s=Kx(),Lc={exports:{}},P={};/**
|
|
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 N0;function Jx(){if(N0)return P;N0=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),w=Symbol.iterator;function G(b){return b===null||typeof b!="object"?null:(b=w&&b[w]||b["@@iterator"],typeof b=="function"?b:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,H={};function B(b,U,Q){this.props=b,this.context=U,this.refs=H,this.updater=Q||Z}B.prototype.isReactComponent={},B.prototype.setState=function(b,U){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,U,"setState")},B.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function X(){}X.prototype=B.prototype;function q(b,U,Q){this.props=b,this.context=U,this.refs=H,this.updater=Q||Z}var fe=q.prototype=new X;fe.constructor=q,L(fe,B.prototype),fe.isPureReactComponent=!0;var he=Array.isArray;function Re(){}var $={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function Ge(b,U,Q){var k=Q.ref;return{$$typeof:i,type:b,key:U,ref:k!==void 0?k:null,props:Q}}function lt(b,U){return Ge(b.type,U,b.props)}function ft(b){return typeof b=="object"&&b!==null&&b.$$typeof===i}function ke(b){var U={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(Q){return U[Q]})}var W=/\/+/g;function Ke(b,U){return typeof b=="object"&&b!==null&&b.key!=null?ke(""+b.key):U.toString(36)}function He(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(Re,Re):(b.status="pending",b.then(function(U){b.status==="pending"&&(b.status="fulfilled",b.value=U)},function(U){b.status==="pending"&&(b.status="rejected",b.reason=U)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function C(b,U,Q,k,ee){var ne=typeof b;(ne==="undefined"||ne==="boolean")&&(b=null);var xe=!1;if(b===null)xe=!0;else switch(ne){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(b.$$typeof){case i:case f:xe=!0;break;case E:return xe=b._init,C(xe(b._payload),U,Q,k,ee)}}if(xe)return ee=ee(b),xe=k===""?"."+Ke(b,0):k,he(ee)?(Q="",xe!=null&&(Q=xe.replace(W,"$&/")+"/"),C(ee,U,Q,"",function(Ka){return Ka})):ee!=null&&(ft(ee)&&(ee=lt(ee,Q+(ee.key==null||b&&b.key===ee.key?"":(""+ee.key).replace(W,"$&/")+"/")+xe)),U.push(ee)),1;xe=0;var et=k===""?".":k+":";if(he(b))for(var De=0;De<b.length;De++)k=b[De],ne=et+Ke(k,De),xe+=C(k,U,Q,ne,ee);else if(De=G(b),typeof De=="function")for(b=De.call(b),De=0;!(k=b.next()).done;)k=k.value,ne=et+Ke(k,De++),xe+=C(k,U,Q,ne,ee);else if(ne==="object"){if(typeof b.then=="function")return C(He(b),U,Q,k,ee);throw U=String(b),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return xe}function Y(b,U,Q){if(b==null)return b;var k=[],ee=0;return C(b,k,"","",function(ne){return U.call(Q,ne,ee++)}),k}function I(b){if(b._status===-1){var U=b._result;U=U(),U.then(function(Q){(b._status===0||b._status===-1)&&(b._status=1,b._result=Q)},function(Q){(b._status===0||b._status===-1)&&(b._status=2,b._result=Q)}),b._status===-1&&(b._status=0,b._result=U)}if(b._status===1)return b._result.default;throw b._result}var ge=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},Ne={map:Y,forEach:function(b,U,Q){Y(b,function(){U.apply(this,arguments)},Q)},count:function(b){var U=0;return Y(b,function(){U++}),U},toArray:function(b){return Y(b,function(U){return U})||[]},only:function(b){if(!ft(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return P.Activity=N,P.Children=Ne,P.Component=B,P.Fragment=o,P.Profiler=m,P.PureComponent=q,P.StrictMode=r,P.Suspense=v,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,P.__COMPILER_RUNTIME={__proto__:null,c:function(b){return $.H.useMemoCache(b)}},P.cache=function(b){return function(){return b.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(b,U,Q){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var k=L({},b.props),ee=b.key;if(U!=null)for(ne in U.key!==void 0&&(ee=""+U.key),U)!we.call(U,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&U.ref===void 0||(k[ne]=U[ne]);var ne=arguments.length-2;if(ne===1)k.children=Q;else if(1<ne){for(var xe=Array(ne),et=0;et<ne;et++)xe[et]=arguments[et+2];k.children=xe}return Ge(b.type,ee,k)},P.createContext=function(b){return b={$$typeof:y,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:h,_context:b},b},P.createElement=function(b,U,Q){var k,ee={},ne=null;if(U!=null)for(k in U.key!==void 0&&(ne=""+U.key),U)we.call(U,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(ee[k]=U[k]);var xe=arguments.length-2;if(xe===1)ee.children=Q;else if(1<xe){for(var et=Array(xe),De=0;De<xe;De++)et[De]=arguments[De+2];ee.children=et}if(b&&b.defaultProps)for(k in xe=b.defaultProps,xe)ee[k]===void 0&&(ee[k]=xe[k]);return Ge(b,ne,ee)},P.createRef=function(){return{current:null}},P.forwardRef=function(b){return{$$typeof:S,render:b}},P.isValidElement=ft,P.lazy=function(b){return{$$typeof:E,_payload:{_status:-1,_result:b},_init:I}},P.memo=function(b,U){return{$$typeof:x,type:b,compare:U===void 0?null:U}},P.startTransition=function(b){var U=$.T,Q={};$.T=Q;try{var k=b(),ee=$.S;ee!==null&&ee(Q,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(Re,ge)}catch(ne){ge(ne)}finally{U!==null&&Q.types!==null&&(U.types=Q.types),$.T=U}},P.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},P.use=function(b){return $.H.use(b)},P.useActionState=function(b,U,Q){return $.H.useActionState(b,U,Q)},P.useCallback=function(b,U){return $.H.useCallback(b,U)},P.useContext=function(b){return $.H.useContext(b)},P.useDebugValue=function(){},P.useDeferredValue=function(b,U){return $.H.useDeferredValue(b,U)},P.useEffect=function(b,U){return $.H.useEffect(b,U)},P.useEffectEvent=function(b){return $.H.useEffectEvent(b)},P.useId=function(){return $.H.useId()},P.useImperativeHandle=function(b,U,Q){return $.H.useImperativeHandle(b,U,Q)},P.useInsertionEffect=function(b,U){return $.H.useInsertionEffect(b,U)},P.useLayoutEffect=function(b,U){return $.H.useLayoutEffect(b,U)},P.useMemo=function(b,U){return $.H.useMemo(b,U)},P.useOptimistic=function(b,U){return $.H.useOptimistic(b,U)},P.useReducer=function(b,U,Q){return $.H.useReducer(b,U,Q)},P.useRef=function(b){return $.H.useRef(b)},P.useState=function(b){return $.H.useState(b)},P.useSyncExternalStore=function(b,U,Q){return $.H.useSyncExternalStore(b,U,Q)},P.useTransition=function(){return $.H.useTransition()},P.version="19.2.4",P}var E0;function er(){return E0||(E0=1,Lc.exports=Jx()),Lc.exports}var T=er();const St=Pc(T);var Yc={exports:{}},Xn={},Gc={exports:{}},Xc={};/**
|
|
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 R0;function $x(){return R0||(R0=1,(function(i){function f(C,Y){var I=C.length;C.push(Y);e:for(;0<I;){var ge=I-1>>>1,Ne=C[ge];if(0<m(Ne,Y))C[ge]=Y,C[I]=Ne,I=ge;else break e}}function o(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var Y=C[0],I=C.pop();if(I!==Y){C[0]=I;e:for(var ge=0,Ne=C.length,b=Ne>>>1;ge<b;){var U=2*(ge+1)-1,Q=C[U],k=U+1,ee=C[k];if(0>m(Q,I))k<Ne&&0>m(ee,Q)?(C[ge]=ee,C[k]=I,ge=k):(C[ge]=Q,C[U]=I,ge=U);else if(k<Ne&&0>m(ee,I))C[ge]=ee,C[k]=I,ge=k;else break e}}return Y}function m(C,Y){var I=C.sortIndex-Y.sortIndex;return I!==0?I:C.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var y=Date,S=y.now();i.unstable_now=function(){return y.now()-S}}var v=[],x=[],E=1,N=null,w=3,G=!1,Z=!1,L=!1,H=!1,B=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function fe(C){for(var Y=o(x);Y!==null;){if(Y.callback===null)r(x);else if(Y.startTime<=C)r(x),Y.sortIndex=Y.expirationTime,f(v,Y);else break;Y=o(x)}}function he(C){if(L=!1,fe(C),!Z)if(o(v)!==null)Z=!0,Re||(Re=!0,ke());else{var Y=o(x);Y!==null&&He(he,Y.startTime-C)}}var Re=!1,$=-1,we=5,Ge=-1;function lt(){return H?!0:!(i.unstable_now()-Ge<we)}function ft(){if(H=!1,Re){var C=i.unstable_now();Ge=C;var Y=!0;try{e:{Z=!1,L&&(L=!1,X($),$=-1),G=!0;var I=w;try{t:{for(fe(C),N=o(v);N!==null&&!(N.expirationTime>C&<());){var ge=N.callback;if(typeof ge=="function"){N.callback=null,w=N.priorityLevel;var Ne=ge(N.expirationTime<=C);if(C=i.unstable_now(),typeof Ne=="function"){N.callback=Ne,fe(C),Y=!0;break t}N===o(v)&&r(v),fe(C)}else r(v);N=o(v)}if(N!==null)Y=!0;else{var b=o(x);b!==null&&He(he,b.startTime-C),Y=!1}}break e}finally{N=null,w=I,G=!1}Y=void 0}}finally{Y?ke():Re=!1}}}var ke;if(typeof q=="function")ke=function(){q(ft)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,Ke=W.port2;W.port1.onmessage=ft,ke=function(){Ke.postMessage(null)}}else ke=function(){B(ft,0)};function He(C,Y){$=B(function(){C(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(C){C.callback=null},i.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<C?Math.floor(1e3/C):5},i.unstable_getCurrentPriorityLevel=function(){return w},i.unstable_next=function(C){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var I=w;w=Y;try{return C()}finally{w=I}},i.unstable_requestPaint=function(){H=!0},i.unstable_runWithPriority=function(C,Y){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var I=w;w=C;try{return Y()}finally{w=I}},i.unstable_scheduleCallback=function(C,Y,I){var ge=i.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ge+I:ge):I=ge,C){case 1:var Ne=-1;break;case 2:Ne=250;break;case 5:Ne=1073741823;break;case 4:Ne=1e4;break;default:Ne=5e3}return Ne=I+Ne,C={id:E++,callback:Y,priorityLevel:C,startTime:I,expirationTime:Ne,sortIndex:-1},I>ge?(C.sortIndex=I,f(x,C),o(v)===null&&C===o(x)&&(L?(X($),$=-1):L=!0,He(he,I-ge))):(C.sortIndex=Ne,f(v,C),Z||G||(Z=!0,Re||(Re=!0,ke()))),C},i.unstable_shouldYield=lt,i.unstable_wrapCallback=function(C){var Y=w;return function(){var I=w;w=Y;try{return C.apply(this,arguments)}finally{w=I}}}})(Xc)),Xc}var _0;function Wx(){return _0||(_0=1,Gc.exports=$x()),Gc.exports}var Qc={exports:{}},Pe={};/**
|
|
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 z0;function Fx(){if(z0)return Pe;z0=1;var i=er();function f(v){var x="https://react.dev/errors/"+v;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)x+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+v+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(f(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(v,x,E){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:N==null?null:""+N,children:v,containerInfo:x,implementation:E}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(v,x){if(v==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Pe.createPortal=function(v,x){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(f(299));return h(v,x,null,E)},Pe.flushSync=function(v){var x=y.T,E=r.p;try{if(y.T=null,r.p=2,v)return v()}finally{y.T=x,r.p=E,r.d.f()}},Pe.preconnect=function(v,x){typeof v=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,r.d.C(v,x))},Pe.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},Pe.preinit=function(v,x){if(typeof v=="string"&&x&&typeof x.as=="string"){var E=x.as,N=S(E,x.crossOrigin),w=typeof x.integrity=="string"?x.integrity:void 0,G=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;E==="style"?r.d.S(v,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:N,integrity:w,fetchPriority:G}):E==="script"&&r.d.X(v,{crossOrigin:N,integrity:w,fetchPriority:G,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Pe.preinitModule=function(v,x){if(typeof v=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var E=S(x.as,x.crossOrigin);r.d.M(v,{crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&r.d.M(v)},Pe.preload=function(v,x){if(typeof v=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var E=x.as,N=S(E,x.crossOrigin);r.d.L(v,E,{crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Pe.preloadModule=function(v,x){if(typeof v=="string")if(x){var E=S(x.as,x.crossOrigin);r.d.m(v,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:E,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else r.d.m(v)},Pe.requestFormReset=function(v){r.d.r(v)},Pe.unstable_batchedUpdates=function(v,x){return v(x)},Pe.useFormState=function(v,x,E){return y.H.useFormState(v,x,E)},Pe.useFormStatus=function(){return y.H.useHostTransitionStatus()},Pe.version="19.2.4",Pe}var T0;function k0(){if(T0)return Qc.exports;T0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Qc.exports=Fx(),Qc.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 A0;function Ix(){if(A0)return Xn;A0=1;var i=Wx(),f=er(),o=k0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(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 S(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 v(e){if(h(e)!==e)throw Error(r(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return v(n),e;if(u===a)return v(n),t;u=u.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=u;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=u;break}if(d===a){c=!0,a=n,l=u;break}d=d.sibling}if(!c){for(d=u.child;d;){if(d===l){c=!0,l=u,a=n;break}if(d===a){c=!0,a=u,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,w=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),q=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),lt=Symbol.for("react.memo_cache_sentinel"),ft=Symbol.iterator;function ke(e){return e===null||typeof e!="object"?null:(e=ft&&e[ft]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function Ke(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case B:return"Profiler";case H:return"StrictMode";case he:return"Suspense";case Re:return"SuspenseList";case Ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case q:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case fe: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:Ke(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return Ke(e(t))}catch{}}return null}var He=Array.isArray,C=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ge=[],Ne=-1;function b(e){return{current:e}}function U(e){0>Ne||(e.current=ge[Ne],ge[Ne]=null,Ne--)}function Q(e,t){Ne++,ge[Ne]=e.current,e.current=t}var k=b(null),ee=b(null),ne=b(null),xe=b(null);function et(e,t){switch(Q(ne,t),Q(ee,e),Q(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Vd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(k),Q(k,e)}function De(){U(k),U(ee),U(ne)}function Ka(e){e.memoizedState!==null&&Q(xe,e);var t=k.current,l=Vd(t,e.type);t!==l&&(Q(ee,e),Q(k,l))}function Jn(e){ee.current===e&&(U(k),U(ee)),xe.current===e&&(U(xe),Bn._currentValue=I)}var bi,gr;function Yl(e){if(bi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);bi=t&&t[1]||"",gr=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+bi+e+gr}var Si=!1;function ji(e,t){if(!e||Si)return"";Si=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(A){var z=A}Reflect.construct(e,[],O)}else{try{O.call()}catch(A){z=A}e.call(O.prototype)}}else{try{throw Error()}catch(A){z=A}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(A){if(A&&z&&typeof A.stack=="string")return[A.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 u=a.DetermineComponentFrameRoot(),c=u[0],d=u[1];if(c&&d){var g=c.split(`
|
|
44
|
-
`),_=d.split(`
|
|
45
|
-
`);for(n=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;n<_.length&&!_[n].includes("DetermineComponentFrameRoot");)n++;if(a===g.length||n===_.length)for(a=g.length-1,n=_.length-1;1<=a&&0<=n&&g[a]!==_[n];)n--;for(;1<=a&&0<=n;a--,n--)if(g[a]!==_[n]){if(a!==1||n!==1)do if(a--,n--,0>n||g[a]!==_[n]){var M=`
|
|
46
|
-
`+g[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=n);break}}}finally{Si=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Yl(l):""}function Nm(e,t){switch(e.tag){case 26:case 27:case 5:return Yl(e.type);case 16:return Yl("Lazy");case 13:return e.child!==t&&t!==null?Yl("Suspense Fallback"):Yl("Suspense");case 19:return Yl("SuspenseList");case 0:case 15:return ji(e.type,!1);case 11:return ji(e.type.render,!1);case 1:return ji(e.type,!0);case 31:return Yl("Activity");default:return""}}function pr(e){try{var t="",l=null;do t+=Nm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Ni=Object.prototype.hasOwnProperty,Ei=i.unstable_scheduleCallback,Ri=i.unstable_cancelCallback,Em=i.unstable_shouldYield,Rm=i.unstable_requestPaint,ot=i.unstable_now,_m=i.unstable_getCurrentPriorityLevel,br=i.unstable_ImmediatePriority,Sr=i.unstable_UserBlockingPriority,$n=i.unstable_NormalPriority,zm=i.unstable_LowPriority,jr=i.unstable_IdlePriority,Tm=i.log,Am=i.unstable_setDisableYieldValue,Ja=null,dt=null;function ol(e){if(typeof Tm=="function"&&Am(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Ja,e)}catch{}}var mt=Math.clz32?Math.clz32:Mm,wm=Math.log,Cm=Math.LN2;function Mm(e){return e>>>=0,e===0?32:31-(wm(e)/Cm|0)|0}var Wn=256,Fn=262144,In=4194304;function Gl(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 Pn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Gl(a):(c&=d,c!==0?n=Gl(c):l||(l=d&~e,l!==0&&(n=Gl(l))))):(d=a&~u,d!==0?n=Gl(d):c!==0?n=Gl(c):l||(l=a&~e,l!==0&&(n=Gl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function $a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Dm(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 Nr(){var e=In;return In<<=1,(In&62914560)===0&&(In=4194304),e}function _i(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Wa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Om(e,t,l,a,n,u){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,g=e.expirationTimes,_=e.hiddenUpdates;for(l=c&~l;0<l;){var M=31-mt(l),O=1<<M;d[M]=0,g[M]=-1;var z=_[M];if(z!==null)for(_[M]=null,M=0;M<z.length;M++){var A=z[M];A!==null&&(A.lane&=-536870913)}l&=~O}a!==0&&Er(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(c&~t))}function Er(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-mt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Rr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-mt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function _r(e,t){var l=t&-t;return l=(l&42)!==0?1:zi(l),(l&(e.suspendedLanes|t))!==0?0:l}function zi(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 Ti(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zr(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:h0(e.type))}function Tr(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var dl=Math.random().toString(36).slice(2),Je="__reactFiber$"+dl,at="__reactProps$"+dl,sa="__reactContainer$"+dl,Ai="__reactEvents$"+dl,Um="__reactListeners$"+dl,Hm="__reactHandles$"+dl,Ar="__reactResources$"+dl,Fa="__reactMarker$"+dl;function wi(e){delete e[Je],delete e[at],delete e[Ai],delete e[Um],delete e[Hm]}function ca(e){var t=e[Je];if(t)return t;for(var l=e.parentNode;l;){if(t=l[sa]||l[Je]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Id(e);e!==null;){if(l=e[Je])return l;e=Id(e)}return t}e=l,l=e.parentNode}return null}function ra(e){if(e=e[Je]||e[sa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function fa(e){var t=e[Ar];return t||(t=e[Ar]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[Fa]=!0}var wr=new Set,Cr={};function Xl(e,t){oa(e,t),oa(e+"Capture",t)}function oa(e,t){for(Cr[e]=t,e=0;e<t.length;e++)wr.add(t[e])}var Bm=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]*$"),Mr={},Dr={};function qm(e){return Ni.call(Dr,e)?!0:Ni.call(Mr,e)?!1:Bm.test(e)?Dr[e]=!0:(Mr[e]=!0,!1)}function eu(e,t,l){if(qm(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 tu(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 Vt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Or(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lm(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,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,u.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 Ci(e){if(!e._valueTracker){var t=Or(e)?"checked":"value";e._valueTracker=Lm(e,t,""+e[t])}}function Ur(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Or(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function lu(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 Ym=/[\n"\\]/g;function Et(e){return e.replace(Ym,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mi(e,t,l,a,n,u,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Di(e,c,Nt(t)):l!=null?Di(e,c,Nt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Nt(d):e.removeAttribute("name")}function Hr(e,t,l,a,n,u,c,d){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ci(e);return}l=l!=null?""+Nt(l):"",t=t!=null?""+Nt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ci(e)}function Di(e,t,l){t==="number"&&lu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function da(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Nt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Br(e,t,l){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Nt(l):""}function qr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(He(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Nt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ci(e)}function ma(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Gm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Lr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Gm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Yr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Lr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Lr(e,u,t[u])}function Oi(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 Xm=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"]]),Qm=/^[\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 au(e){return Qm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var Ui=null;function Hi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,xa=null;function Gr(e){var t=ra(e);if(t&&(e=t.stateNode)){var l=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Et(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[at]||null;if(!n)throw Error(r(90));Mi(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&&Ur(a)}break e;case"textarea":Br(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&da(e,!!l.multiple,t,!1)}}}var Bi=!1;function Xr(e,t,l){if(Bi)return e(t,l);Bi=!0;try{var a=e(t);return a}finally{if(Bi=!1,(ha!==null||xa!==null)&&(Zu(),ha&&(t=ha,e=xa,xa=ha=null,Gr(t),e)))for(t=0;t<e.length;t++)Gr(e[t])}}function Pa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[at]||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 Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qi=!1;if(Kt)try{var en={};Object.defineProperty(en,"passive",{get:function(){qi=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{qi=!1}var ml=null,Li=null,nu=null;function Qr(){if(nu)return nu;var e,t=Li,l=t.length,a,n="value"in ml?ml.value:ml.textContent,u=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[u-a];a++);return nu=n.slice(e,1<a?1-a:void 0)}function uu(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 iu(){return!0}function Zr(){return!1}function nt(e){function t(l,a,n,u,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?iu:Zr,this.isPropagationStopped=Zr,this}return N(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=iu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=iu)},persist:function(){},isPersistent:iu}),t}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},su=nt(Ql),tn=N({},Ql,{view:0,detail:0}),Zm=nt(tn),Yi,Gi,ln,cu=N({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qi,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!==ln&&(ln&&e.type==="mousemove"?(Yi=e.screenX-ln.screenX,Gi=e.screenY-ln.screenY):Gi=Yi=0,ln=e),Yi)},movementY:function(e){return"movementY"in e?e.movementY:Gi}}),Vr=nt(cu),Vm=N({},cu,{dataTransfer:0}),km=nt(Vm),Km=N({},tn,{relatedTarget:0}),Xi=nt(Km),Jm=N({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),$m=nt(Jm),Wm=N({},Ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fm=nt(Wm),Im=N({},Ql,{data:0}),kr=nt(Im),Pm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eh={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"},th={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=th[e])?!!t[e]:!1}function Qi(){return lh}var ah=N({},tn,{key:function(e){if(e.key){var t=Pm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?eh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qi,charCode:function(e){return e.type==="keypress"?uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nh=nt(ah),uh=N({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kr=nt(uh),ih=N({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qi}),sh=nt(ih),ch=N({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),rh=nt(ch),fh=N({},cu,{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}),oh=nt(fh),dh=N({},Ql,{newState:0,oldState:0}),mh=nt(dh),hh=[9,13,27,32],Zi=Kt&&"CompositionEvent"in window,an=null;Kt&&"documentMode"in document&&(an=document.documentMode);var xh=Kt&&"TextEvent"in window&&!an,Jr=Kt&&(!Zi||an&&8<an&&11>=an),$r=" ",Wr=!1;function Fr(e,t){switch(e){case"keyup":return hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ir(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function vh(e,t){switch(e){case"compositionend":return Ir(t);case"keypress":return t.which!==32?null:(Wr=!0,$r);case"textInput":return e=t.data,e===$r&&Wr?null:e;default:return null}}function yh(e,t){if(va)return e==="compositionend"||!Zi&&Fr(e,t)?(e=Qr(),nu=Li=ml=null,va=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Jr&&t.locale!=="ko"?null:t.data;default:return null}}var gh={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!gh[e.type]:t==="textarea"}function ef(e,t,l,a){ha?xa?xa.push(a):xa=[a]:ha=a,t=Fu(t,"onChange"),0<t.length&&(l=new su("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var nn=null,un=null;function ph(e){qd(e,0)}function ru(e){var t=Ia(e);if(Ur(t))return e}function tf(e,t){if(e==="change")return t}var lf=!1;if(Kt){var Vi;if(Kt){var ki="oninput"in document;if(!ki){var af=document.createElement("div");af.setAttribute("oninput","return;"),ki=typeof af.oninput=="function"}Vi=ki}else Vi=!1;lf=Vi&&(!document.documentMode||9<document.documentMode)}function nf(){nn&&(nn.detachEvent("onpropertychange",uf),un=nn=null)}function uf(e){if(e.propertyName==="value"&&ru(un)){var t=[];ef(t,un,e,Hi(e)),Xr(ph,t)}}function bh(e,t,l){e==="focusin"?(nf(),nn=t,un=l,nn.attachEvent("onpropertychange",uf)):e==="focusout"&&nf()}function Sh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ru(un)}function jh(e,t){if(e==="click")return ru(t)}function Nh(e,t){if(e==="input"||e==="change")return ru(t)}function Eh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:Eh;function sn(e,t){if(ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ni.call(t,n)||!ht(e[n],t[n]))return!1}return!0}function sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cf(e,t){var l=sf(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=sf(l)}}function rf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ff(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lu(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=lu(e.document)}return t}function Ki(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 Rh=Kt&&"documentMode"in document&&11>=document.documentMode,ya=null,Ji=null,cn=null,$i=!1;function of(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$i||ya==null||ya!==lu(a)||(a=ya,"selectionStart"in a&&Ki(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}),cn&&sn(cn,a)||(cn=a,a=Fu(Ji,"onSelect"),0<a.length&&(t=new su("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ya)))}function Zl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ga={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionrun:Zl("Transition","TransitionRun"),transitionstart:Zl("Transition","TransitionStart"),transitioncancel:Zl("Transition","TransitionCancel"),transitionend:Zl("Transition","TransitionEnd")},Wi={},df={};Kt&&(df=document.createElement("div").style,"AnimationEvent"in window||(delete ga.animationend.animation,delete ga.animationiteration.animation,delete ga.animationstart.animation),"TransitionEvent"in window||delete ga.transitionend.transition);function Vl(e){if(Wi[e])return Wi[e];if(!ga[e])return e;var t=ga[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in df)return Wi[e]=t[l];return e}var mf=Vl("animationend"),hf=Vl("animationiteration"),xf=Vl("animationstart"),_h=Vl("transitionrun"),zh=Vl("transitionstart"),Th=Vl("transitioncancel"),vf=Vl("transitionend"),yf=new Map,Fi="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(" ");Fi.push("scrollEnd");function Ut(e,t){yf.set(e,t),Xl(t,[e])}var fu=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)},Rt=[],pa=0,Ii=0;function ou(){for(var e=pa,t=Ii=pa=0;t<e;){var l=Rt[t];Rt[t++]=null;var a=Rt[t];Rt[t++]=null;var n=Rt[t];Rt[t++]=null;var u=Rt[t];if(Rt[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}u!==0&&gf(l,n,u)}}function du(e,t,l,a){Rt[pa++]=e,Rt[pa++]=t,Rt[pa++]=l,Rt[pa++]=a,Ii|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Pi(e,t,l,a){return du(e,t,l,a),mu(e)}function kl(e,t){return du(e,null,null,t),mu(e)}function gf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-mt(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function mu(e){if(50<wn)throw wn=0,cc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ba={};function Ah(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xt(e,t,l,a){return new Ah(e,t,l,a)}function es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=xt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function pf(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 hu(e,t,l,a,n,u){var c=0;if(a=e,typeof e=="function")es(e)&&(c=1);else if(typeof e=="string")c=Ox(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ge:return e=xt(31,l,t,n),e.elementType=Ge,e.lanes=u,e;case L:return Kl(l.children,n,u,t);case H:c=8,n|=24;break;case B:return e=xt(12,l,t,n|2),e.elementType=B,e.lanes=u,e;case he:return e=xt(13,l,t,n),e.elementType=he,e.lanes=u,e;case Re:return e=xt(19,l,t,n),e.elementType=Re,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:c=10;break e;case X:c=9;break e;case fe:c=11;break e;case $:c=14;break e;case we:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=xt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Kl(e,t,l,a){return e=xt(7,e,a,t),e.lanes=l,e}function ts(e,t,l){return e=xt(6,e,null,t),e.lanes=l,e}function bf(e){var t=xt(18,null,null,0);return t.stateNode=e,t}function ls(e,t,l){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sf=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var l=Sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:pr(t)},Sf.set(e,t),t)}return{value:e,source:t,stack:pr(t)}}var Sa=[],ja=0,xu=null,rn=0,zt=[],Tt=0,hl=null,Lt=1,Yt="";function $t(e,t){Sa[ja++]=rn,Sa[ja++]=xu,xu=e,rn=t}function jf(e,t,l){zt[Tt++]=Lt,zt[Tt++]=Yt,zt[Tt++]=hl,hl=e;var a=Lt;e=Yt;var n=32-mt(a)-1;a&=~(1<<n),l+=1;var u=32-mt(t)+n;if(30<u){var c=n-n%5;u=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Lt=1<<32-mt(t)+n|l<<n|a,Yt=u+e}else Lt=1<<u|l<<n|a,Yt=e}function as(e){e.return!==null&&($t(e,1),jf(e,1,0))}function ns(e){for(;e===xu;)xu=Sa[--ja],Sa[ja]=null,rn=Sa[--ja],Sa[ja]=null;for(;e===hl;)hl=zt[--Tt],zt[Tt]=null,Yt=zt[--Tt],zt[Tt]=null,Lt=zt[--Tt],zt[Tt]=null}function Nf(e,t){zt[Tt++]=Lt,zt[Tt++]=Yt,zt[Tt++]=hl,Lt=t.id,Yt=t.overflow,hl=e}var $e=null,_e=null,re=!1,xl=null,At=!1,us=Error(r(519));function vl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fn(_t(t,e)),us}function Ef(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Je]=e,t[at]=a,l){case"dialog":ie("cancel",t),ie("close",t);break;case"iframe":case"object":case"embed":ie("load",t);break;case"video":case"audio":for(l=0;l<Mn.length;l++)ie(Mn[l],t);break;case"source":ie("error",t);break;case"img":case"image":case"link":ie("error",t),ie("load",t);break;case"details":ie("toggle",t);break;case"input":ie("invalid",t),Hr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ie("invalid",t);break;case"textarea":ie("invalid",t),qr(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||Xd(t.textContent,l)?(a.popover!=null&&(ie("beforetoggle",t),ie("toggle",t)),a.onScroll!=null&&ie("scroll",t),a.onScrollEnd!=null&&ie("scrollend",t),a.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||vl(e,!0)}function Rf(e){for($e=e.return;$e;)switch($e.tag){case 5:case 31:case 13:At=!1;return;case 27:case 3:At=!0;return;default:$e=$e.return}}function Na(e){if(e!==$e)return!1;if(!re)return Rf(e),re=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Nc(e.type,e.memoizedProps)),l=!l),l&&_e&&vl(e),Rf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));_e=Fd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));_e=Fd(e)}else t===27?(t=_e,wl(e.type)?(e=Tc,Tc=null,_e=e):_e=t):_e=$e?Ct(e.stateNode.nextSibling):null;return!0}function Jl(){_e=$e=null,re=!1}function is(){var e=xl;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),xl=null),e}function fn(e){xl===null?xl=[e]:xl.push(e)}var ss=b(null),$l=null,Wt=null;function yl(e,t,l){Q(ss,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=ss.current,U(ss)}function cs(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 rs(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var c=n.child;u=u.firstContext;e:for(;u!==null;){var d=u;u=n;for(var g=0;g<t.length;g++)if(d.context===t[g]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),cs(u.return,l,e),a||(c=null);break e}u=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,u=c.alternate,u!==null&&(u.lanes|=l),cs(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function Ea(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;ht(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===xe.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Bn):e=[Bn])}n=n.return}e!==null&&rs(t,e,l,a),t.flags|=262144}function vu(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wl(e){$l=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return _f($l,e)}function yu(e,t){return $l===null&&Wl(e),_f(e,t)}function _f(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(r(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var wh=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()})}},Ch=i.unstable_scheduleCallback,Mh=i.unstable_NormalPriority,Be={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fs(){return{controller:new wh,data:new Map,refCount:0}}function on(e){e.refCount--,e.refCount===0&&Ch(Mh,function(){e.controller.abort()})}var dn=null,os=0,Ra=0,_a=null;function Dh(e,t){if(dn===null){var l=dn=[];os=0,Ra=hc(),_a={status:"pending",value:void 0,then:function(a){l.push(a)}}}return os++,t.then(zf,zf),t}function zf(){if(--os===0&&dn!==null){_a!==null&&(_a.status="fulfilled");var e=dn;dn=null,Ra=0,_a=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Oh(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 Tf=C.S;C.S=function(e,t){dd=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Dh(e,t),Tf!==null&&Tf(e,t)};var Fl=b(null);function ds(){var e=Fl.current;return e!==null?e:Ee.pooledCache}function gu(e,t){t===null?Q(Fl,Fl.current):Q(Fl,t.pool)}function Af(){var e=ds();return e===null?null:{parent:Be._currentValue,pool:e}}var za=Error(r(460)),ms=Error(r(474)),pu=Error(r(542)),bu={then:function(){}};function wf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Cf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kt,kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Df(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=Ee,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,Df(e),e}throw Pl=t,za}}function Il(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Pl=l,za):l}}var Pl=null;function Mf(){if(Pl===null)throw Error(r(459));var e=Pl;return Pl=null,e}function Df(e){if(e===za||e===pu)throw Error(r(483))}var Ta=null,mn=0;function Su(e){var t=mn;return mn+=1,Ta===null&&(Ta=[]),Cf(Ta,e,t)}function hn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ju(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Of(e){function t(j,p){if(e){var R=j.deletions;R===null?(j.deletions=[p],j.flags|=16):R.push(p)}}function l(j,p){if(!e)return null;for(;p!==null;)t(j,p),p=p.sibling;return null}function a(j){for(var p=new Map;j!==null;)j.key!==null?p.set(j.key,j):p.set(j.index,j),j=j.sibling;return p}function n(j,p){return j=Jt(j,p),j.index=0,j.sibling=null,j}function u(j,p,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<p?(j.flags|=67108866,p):R):(j.flags|=67108866,p)):(j.flags|=1048576,p)}function c(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function d(j,p,R,D){return p===null||p.tag!==6?(p=ts(R,j.mode,D),p.return=j,p):(p=n(p,R),p.return=j,p)}function g(j,p,R,D){var J=R.type;return J===L?M(j,p,R.props.children,D,R.key):p!==null&&(p.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===we&&Il(J)===p.type)?(p=n(p,R.props),hn(p,R),p.return=j,p):(p=hu(R.type,R.key,R.props,null,j.mode,D),hn(p,R),p.return=j,p)}function _(j,p,R,D){return p===null||p.tag!==4||p.stateNode.containerInfo!==R.containerInfo||p.stateNode.implementation!==R.implementation?(p=ls(R,j.mode,D),p.return=j,p):(p=n(p,R.children||[]),p.return=j,p)}function M(j,p,R,D,J){return p===null||p.tag!==7?(p=Kl(R,j.mode,D,J),p.return=j,p):(p=n(p,R),p.return=j,p)}function O(j,p,R){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=ts(""+p,j.mode,R),p.return=j,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case G:return R=hu(p.type,p.key,p.props,null,j.mode,R),hn(R,p),R.return=j,R;case Z:return p=ls(p,j.mode,R),p.return=j,p;case we:return p=Il(p),O(j,p,R)}if(He(p)||ke(p))return p=Kl(p,j.mode,R,null),p.return=j,p;if(typeof p.then=="function")return O(j,Su(p),R);if(p.$$typeof===q)return O(j,yu(j,p),R);ju(j,p)}return null}function z(j,p,R,D){var J=p!==null?p.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return J!==null?null:d(j,p,""+R,D);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case G:return R.key===J?g(j,p,R,D):null;case Z:return R.key===J?_(j,p,R,D):null;case we:return R=Il(R),z(j,p,R,D)}if(He(R)||ke(R))return J!==null?null:M(j,p,R,D,null);if(typeof R.then=="function")return z(j,p,Su(R),D);if(R.$$typeof===q)return z(j,p,yu(j,R),D);ju(j,R)}return null}function A(j,p,R,D,J){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return j=j.get(R)||null,d(p,j,""+D,J);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case G:return j=j.get(D.key===null?R:D.key)||null,g(p,j,D,J);case Z:return j=j.get(D.key===null?R:D.key)||null,_(p,j,D,J);case we:return D=Il(D),A(j,p,R,D,J)}if(He(D)||ke(D))return j=j.get(R)||null,M(p,j,D,J,null);if(typeof D.then=="function")return A(j,p,R,Su(D),J);if(D.$$typeof===q)return A(j,p,R,yu(p,D),J);ju(p,D)}return null}function V(j,p,R,D){for(var J=null,oe=null,K=p,le=p=0,ce=null;K!==null&&le<R.length;le++){K.index>le?(ce=K,K=null):ce=K.sibling;var de=z(j,K,R[le],D);if(de===null){K===null&&(K=ce);break}e&&K&&de.alternate===null&&t(j,K),p=u(de,p,le),oe===null?J=de:oe.sibling=de,oe=de,K=ce}if(le===R.length)return l(j,K),re&&$t(j,le),J;if(K===null){for(;le<R.length;le++)K=O(j,R[le],D),K!==null&&(p=u(K,p,le),oe===null?J=K:oe.sibling=K,oe=K);return re&&$t(j,le),J}for(K=a(K);le<R.length;le++)ce=A(K,j,le,R[le],D),ce!==null&&(e&&ce.alternate!==null&&K.delete(ce.key===null?le:ce.key),p=u(ce,p,le),oe===null?J=ce:oe.sibling=ce,oe=ce);return e&&K.forEach(function(Ul){return t(j,Ul)}),re&&$t(j,le),J}function F(j,p,R,D){if(R==null)throw Error(r(151));for(var J=null,oe=null,K=p,le=p=0,ce=null,de=R.next();K!==null&&!de.done;le++,de=R.next()){K.index>le?(ce=K,K=null):ce=K.sibling;var Ul=z(j,K,de.value,D);if(Ul===null){K===null&&(K=ce);break}e&&K&&Ul.alternate===null&&t(j,K),p=u(Ul,p,le),oe===null?J=Ul:oe.sibling=Ul,oe=Ul,K=ce}if(de.done)return l(j,K),re&&$t(j,le),J;if(K===null){for(;!de.done;le++,de=R.next())de=O(j,de.value,D),de!==null&&(p=u(de,p,le),oe===null?J=de:oe.sibling=de,oe=de);return re&&$t(j,le),J}for(K=a(K);!de.done;le++,de=R.next())de=A(K,j,le,de.value,D),de!==null&&(e&&de.alternate!==null&&K.delete(de.key===null?le:de.key),p=u(de,p,le),oe===null?J=de:oe.sibling=de,oe=de);return e&&K.forEach(function(Vx){return t(j,Vx)}),re&&$t(j,le),J}function Se(j,p,R,D){if(typeof R=="object"&&R!==null&&R.type===L&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case G:e:{for(var J=R.key;p!==null;){if(p.key===J){if(J=R.type,J===L){if(p.tag===7){l(j,p.sibling),D=n(p,R.props.children),D.return=j,j=D;break e}}else if(p.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===we&&Il(J)===p.type){l(j,p.sibling),D=n(p,R.props),hn(D,R),D.return=j,j=D;break e}l(j,p);break}else t(j,p);p=p.sibling}R.type===L?(D=Kl(R.props.children,j.mode,D,R.key),D.return=j,j=D):(D=hu(R.type,R.key,R.props,null,j.mode,D),hn(D,R),D.return=j,j=D)}return c(j);case Z:e:{for(J=R.key;p!==null;){if(p.key===J)if(p.tag===4&&p.stateNode.containerInfo===R.containerInfo&&p.stateNode.implementation===R.implementation){l(j,p.sibling),D=n(p,R.children||[]),D.return=j,j=D;break e}else{l(j,p);break}else t(j,p);p=p.sibling}D=ls(R,j.mode,D),D.return=j,j=D}return c(j);case we:return R=Il(R),Se(j,p,R,D)}if(He(R))return V(j,p,R,D);if(ke(R)){if(J=ke(R),typeof J!="function")throw Error(r(150));return R=J.call(R),F(j,p,R,D)}if(typeof R.then=="function")return Se(j,p,Su(R),D);if(R.$$typeof===q)return Se(j,p,yu(j,R),D);ju(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,p!==null&&p.tag===6?(l(j,p.sibling),D=n(p,R),D.return=j,j=D):(l(j,p),D=ts(R,j.mode,D),D.return=j,j=D),c(j)):l(j,p)}return function(j,p,R,D){try{mn=0;var J=Se(j,p,R,D);return Ta=null,J}catch(K){if(K===za||K===pu)throw K;var oe=xt(29,K,null,j.mode);return oe.lanes=D,oe.return=j,oe}finally{}}}var ea=Of(!0),Uf=Of(!1),gl=!1;function hs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xs(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 pl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=mu(e),gf(e,null,l),t}return du(e,a,t,l),mu(e)}function xn(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,Rr(e,l)}}function vs(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=c:u=u.next=c,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,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 ys=!1;function vn(){if(ys){var e=_a;if(e!==null)throw e}}function yn(e,t,l,a){ys=!1;var n=e.updateQueue;gl=!1;var u=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var g=d,_=g.next;g.next=null,c===null?u=_:c.next=_,c=g;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==c&&(d===null?M.firstBaseUpdate=_:d.next=_,M.lastBaseUpdate=g))}if(u!==null){var O=n.baseState;c=0,M=_=g=null,d=u;do{var z=d.lane&-536870913,A=z!==d.lane;if(A?(se&z)===z:(a&z)===z){z!==0&&z===Ra&&(ys=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var V=e,F=d;z=t;var Se=l;switch(F.tag){case 1:if(V=F.payload,typeof V=="function"){O=V.call(Se,O,z);break e}O=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=F.payload,z=typeof V=="function"?V.call(Se,O,z):V,z==null)break e;O=N({},O,z);break e;case 2:gl=!0}}z=d.callback,z!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[z]:A.push(z))}else A={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(_=M=A,g=O):M=M.next=A,c|=z;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;A=d,d=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);M===null&&(g=O),n.baseState=g,n.firstBaseUpdate=_,n.lastBaseUpdate=M,u===null&&(n.shared.lanes=0),Rl|=c,e.lanes=c,e.memoizedState=O}}function Hf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Bf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Hf(l[e],t)}var Aa=b(null),Nu=b(0);function qf(e,t){e=il,Q(Nu,e),Q(Aa,t),il=e|t.baseLanes}function gs(){Q(Nu,il),Q(Aa,Aa.current)}function ps(){il=Nu.current,U(Aa),U(Nu)}var vt=b(null),wt=null;function Sl(e){var t=e.alternate;Q(Oe,Oe.current&1),Q(vt,e),wt===null&&(t===null||Aa.current!==null||t.memoizedState!==null)&&(wt=e)}function bs(e){Q(Oe,Oe.current),Q(vt,e),wt===null&&(wt=e)}function Lf(e){e.tag===22?(Q(Oe,Oe.current),Q(vt,e),wt===null&&(wt=e)):jl()}function jl(){Q(Oe,Oe.current),Q(vt,vt.current)}function yt(e){U(vt),wt===e&&(wt=null),U(Oe)}var Oe=b(0);function Eu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_c(l)||zc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var It=0,te=null,pe=null,qe=null,Ru=!1,wa=!1,ta=!1,_u=0,gn=0,Ca=null,Uh=0;function Ce(){throw Error(r(321))}function Ss(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function js(e,t,l,a,n,u){return It=u,te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,C.H=e===null||e.memoizedState===null?No:Bs,ta=!1,u=l(a,n),ta=!1,wa&&(u=Gf(t,l,a,n)),Yf(e),u}function Yf(e){C.H=Sn;var t=pe!==null&&pe.next!==null;if(It=0,qe=pe=te=null,Ru=!1,gn=0,Ca=null,t)throw Error(r(300));e===null||Le||(e=e.dependencies,e!==null&&vu(e)&&(Le=!0))}function Gf(e,t,l,a){te=e;var n=0;do{if(wa&&(Ca=null),gn=0,wa=!1,25<=n)throw Error(r(301));if(n+=1,qe=pe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}C.H=Eo,u=t(l,a)}while(wa);return u}function Hh(){var e=C.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(pe!==null?pe.memoizedState:null)!==e&&(te.flags|=1024),t}function Ns(){var e=_u!==0;return _u=0,e}function Es(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Rs(e){if(Ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ru=!1}It=0,qe=pe=te=null,wa=!1,gn=_u=0,Ca=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?te.memoizedState=qe=e:qe=qe.next=e,qe}function Ue(){if(pe===null){var e=te.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=qe===null?te.memoizedState:qe.next;if(t!==null)qe=t,pe=e;else{if(e===null)throw te.alternate===null?Error(r(467)):Error(r(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},qe===null?te.memoizedState=qe=e:qe=qe.next=e}return qe}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=gn;return gn+=1,Ca===null&&(Ca=[]),e=Cf(Ca,e,t),t=te,(qe===null?t.memoizedState:qe.next)===null&&(t=t.alternate,C.H=t===null||t.memoizedState===null?No:Bs),e}function Tu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===q)return We(e)}throw Error(r(438,String(e)))}function _s(e){var t=null,l=te.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=te.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=zu(),te.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]=lt;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Au(e){var t=Ue();return zs(t,pe,e)}function zs(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var c=n.next;n.next=u.next,u.next=c}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=c=null,g=null,_=t,M=!1;do{var O=_.lane&-536870913;if(O!==_.lane?(se&O)===O:(It&O)===O){var z=_.revertLane;if(z===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null}),O===Ra&&(M=!0);else if((It&z)===z){_=_.next,z===Ra&&(M=!0);continue}else O={lane:0,revertLane:_.revertLane,gesture:null,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},g===null?(d=g=O,c=u):g=g.next=O,te.lanes|=z,Rl|=z;O=_.action,ta&&l(u,O),u=_.hasEagerState?_.eagerState:l(u,O)}else z={lane:O,revertLane:_.revertLane,gesture:_.gesture,action:_.action,hasEagerState:_.hasEagerState,eagerState:_.eagerState,next:null},g===null?(d=g=z,c=u):g=g.next=z,te.lanes|=O,Rl|=O;_=_.next}while(_!==null&&_!==t);if(g===null?c=u:g.next=d,!ht(u,e.memoizedState)&&(Le=!0,M&&(l=_a,l!==null)))throw l;e.memoizedState=u,e.baseState=c,e.baseQueue=g,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ts(e){var t=Ue(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do u=e(u,c.action),c=c.next;while(c!==n);ht(u,t.memoizedState)||(Le=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Xf(e,t,l){var a=te,n=Ue(),u=re;if(u){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!ht((pe||n).memoizedState,l);if(c&&(n.memoizedState=l,Le=!0),n=n.queue,Cs(Vf.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||qe!==null&&qe.memoizedState.tag&1){if(a.flags|=2048,Ma(9,{destroy:void 0},Zf.bind(null,a,n,l,t),null),Ee===null)throw Error(r(349));u||(It&127)!==0||Qf(a,t,l)}return l}function Qf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=te.updateQueue,t===null?(t=zu(),te.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Zf(e,t,l,a){t.value=l,t.getSnapshot=a,kf(t)&&Kf(e)}function Vf(e,t,l){return l(function(){kf(t)&&Kf(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function Kf(e){var t=kl(e,2);t!==null&&rt(t,e,2)}function As(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),ta){ol(!0);try{l()}finally{ol(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function Jf(e,t,l,a){return e.baseState=l,zs(e,pe,typeof a=="function"?a:Pt)}function Bh(e,t,l,a,n){if(Mu(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){u.listeners.push(c)}};C.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,$f(t,u)):(u.next=l.next,t.pending=l.next=u)}}function $f(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=C.T,c={};C.T=c;try{var d=l(n,a),g=C.S;g!==null&&g(c,d),Wf(e,t,d)}catch(_){ws(e,t,_)}finally{u!==null&&c.types!==null&&(u.types=c.types),C.T=u}}else try{u=l(n,a),Wf(e,t,u)}catch(_){ws(e,t,_)}}function Wf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Ff(e,t,a)},function(a){return ws(e,t,a)}):Ff(e,t,l)}function Ff(e,t,l){t.status="fulfilled",t.value=l,If(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,$f(e,l)))}function ws(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,If(t),t=t.next;while(t!==a)}e.action=null}function If(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pf(e,t){return t}function eo(e,t){if(re){var l=Ee.formState;if(l!==null){e:{var a=te;if(re){if(_e){t:{for(var n=_e,u=At;n.nodeType!==8;){if(!u){n=null;break t}if(n=Ct(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){_e=Ct(n.nextSibling),a=n.data==="F!";break e}}vl(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pf,lastRenderedState:t},l.queue=a,l=bo.bind(null,te,a),a.dispatch=l,a=As(!1),u=Hs.bind(null,te,!1,a.queue),a=tt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Bh.bind(null,te,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function to(e){var t=Ue();return lo(t,pe,e)}function lo(e,t,l){if(t=zs(e,t,Pf)[0],e=Au(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(c){throw c===za?pu:c}else a=t;t=Ue();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(te.flags|=2048,Ma(9,{destroy:void 0},qh.bind(null,n,l),null)),[a,u,e]}function qh(e,t){e.action=t}function ao(e){var t=Ue(),l=pe;if(l!==null)return lo(t,l,e);Ue(),t=t.memoizedState,l=Ue();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Ma(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=te.updateQueue,t===null&&(t=zu(),te.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 no(){return Ue().memoizedState}function wu(e,t,l,a){var n=tt();te.flags|=e,n.memoizedState=Ma(1|t,{destroy:void 0},l,a===void 0?null:a)}function Cu(e,t,l,a){var n=Ue();a=a===void 0?null:a;var u=n.memoizedState.inst;pe!==null&&a!==null&&Ss(a,pe.memoizedState.deps)?n.memoizedState=Ma(t,u,l,a):(te.flags|=e,n.memoizedState=Ma(1|t,u,l,a))}function uo(e,t){wu(8390656,8,e,t)}function Cs(e,t){Cu(2048,8,e,t)}function Lh(e){te.flags|=4;var t=te.updateQueue;if(t===null)t=zu(),te.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function io(e){var t=Ue().memoizedState;return Lh({ref:t,nextImpl:e}),function(){if((me&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function so(e,t){return Cu(4,2,e,t)}function co(e,t){return Cu(4,4,e,t)}function ro(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 fo(e,t,l){l=l!=null?l.concat([e]):null,Cu(4,4,ro.bind(null,t,e),l)}function Ms(){}function oo(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ss(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function mo(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ss(t,a[1]))return a[0];if(a=e(),ta){ol(!0);try{e()}finally{ol(!1)}}return l.memoizedState=[a,t],a}function Ds(e,t,l){return l===void 0||(It&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=hd(),te.lanes|=e,Rl|=e,l)}function ho(e,t,l,a){return ht(l,t)?l:Aa.current!==null?(e=Ds(e,l,a),ht(e,t)||(Le=!0),e):(It&42)===0||(It&1073741824)!==0&&(se&261930)===0?(Le=!0,e.memoizedState=l):(e=hd(),te.lanes|=e,Rl|=e,t)}function xo(e,t,l,a,n){var u=Y.p;Y.p=u!==0&&8>u?u:8;var c=C.T,d={};C.T=d,Hs(e,!1,t,l);try{var g=n(),_=C.S;if(_!==null&&_(d,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var M=Oh(g,a);bn(e,t,M,bt(e))}else bn(e,t,a,bt(e))}catch(O){bn(e,t,{then:function(){},status:"rejected",reason:O},bt())}finally{Y.p=u,c!==null&&d.types!==null&&(c.types=d.types),C.T=c}}function Yh(){}function Os(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=vo(e).queue;xo(e,n,t,I,l===null?Yh:function(){return yo(e),l(a)})}function vo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:I},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function yo(e){var t=vo(e);t.next===null&&(t=e.alternate.memoizedState),bn(e,t.next.queue,{},bt())}function Us(){return We(Bn)}function go(){return Ue().memoizedState}function po(){return Ue().memoizedState}function Gh(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=bt();e=pl(l);var a=bl(t,e,l);a!==null&&(rt(a,t,l),xn(a,t,l)),t={cache:fs()},e.payload=t;return}t=t.return}}function Xh(e,t,l){var a=bt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mu(e)?So(t,l):(l=Pi(e,t,l,a),l!==null&&(rt(l,e,a),jo(l,t,a)))}function bo(e,t,l){var a=bt();bn(e,t,l,a)}function bn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mu(e))So(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var c=t.lastRenderedState,d=u(c,l);if(n.hasEagerState=!0,n.eagerState=d,ht(d,c))return du(e,t,n,0),Ee===null&&ou(),!1}catch{}finally{}if(l=Pi(e,t,n,a),l!==null)return rt(l,e,a),jo(l,t,a),!0}return!1}function Hs(e,t,l,a){if(a={lane:2,revertLane:hc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mu(e)){if(t)throw Error(r(479))}else t=Pi(e,l,a,2),t!==null&&rt(t,e,2)}function Mu(e){var t=e.alternate;return e===te||t!==null&&t===te}function So(e,t){wa=Ru=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function jo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Rr(e,l)}}var Sn={readContext:We,use:Tu,useCallback:Ce,useContext:Ce,useEffect:Ce,useImperativeHandle:Ce,useLayoutEffect:Ce,useInsertionEffect:Ce,useMemo:Ce,useReducer:Ce,useRef:Ce,useState:Ce,useDebugValue:Ce,useDeferredValue:Ce,useTransition:Ce,useSyncExternalStore:Ce,useId:Ce,useHostTransitionStatus:Ce,useFormState:Ce,useActionState:Ce,useOptimistic:Ce,useMemoCache:Ce,useCacheRefresh:Ce};Sn.useEffectEvent=Ce;var No={readContext:We,use:Tu,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:uo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,wu(4194308,4,ro.bind(null,t,e),l)},useLayoutEffect:function(e,t){return wu(4194308,4,e,t)},useInsertionEffect:function(e,t){wu(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if(ta){ol(!0);try{e()}finally{ol(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var n=l(t);if(ta){ol(!0);try{l(t)}finally{ol(!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=Xh.bind(null,te,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=As(e);var t=e.queue,l=bo.bind(null,te,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ms,useDeferredValue:function(e,t){var l=tt();return Ds(l,e,t)},useTransition:function(){var e=As(!1);return e=xo.bind(null,te,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=te,n=tt();if(re){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ee===null)throw Error(r(349));(se&127)!==0||Qf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,uo(Vf.bind(null,a,u,e),[e]),a.flags|=2048,Ma(9,{destroy:void 0},Zf.bind(null,a,u,l,t),null),l},useId:function(){var e=tt(),t=Ee.identifierPrefix;if(re){var l=Yt,a=Lt;l=(a&~(1<<32-mt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=_u++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Uh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Us,useFormState:eo,useActionState:eo,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Hs.bind(null,te,!0,l),l.dispatch=t,[e,t]},useMemoCache:_s,useCacheRefresh:function(){return tt().memoizedState=Gh.bind(null,te)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((me&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Bs={readContext:We,use:Tu,useCallback:oo,useContext:We,useEffect:Cs,useImperativeHandle:fo,useInsertionEffect:so,useLayoutEffect:co,useMemo:mo,useReducer:Au,useRef:no,useState:function(){return Au(Pt)},useDebugValue:Ms,useDeferredValue:function(e,t){var l=Ue();return ho(l,pe.memoizedState,e,t)},useTransition:function(){var e=Au(Pt)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Xf,useId:go,useHostTransitionStatus:Us,useFormState:to,useActionState:to,useOptimistic:function(e,t){var l=Ue();return Jf(l,pe,e,t)},useMemoCache:_s,useCacheRefresh:po};Bs.useEffectEvent=io;var Eo={readContext:We,use:Tu,useCallback:oo,useContext:We,useEffect:Cs,useImperativeHandle:fo,useInsertionEffect:so,useLayoutEffect:co,useMemo:mo,useReducer:Ts,useRef:no,useState:function(){return Ts(Pt)},useDebugValue:Ms,useDeferredValue:function(e,t){var l=Ue();return pe===null?Ds(l,e,t):ho(l,pe.memoizedState,e,t)},useTransition:function(){var e=Ts(Pt)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:Xf,useId:go,useHostTransitionStatus:Us,useFormState:ao,useActionState:ao,useOptimistic:function(e,t){var l=Ue();return pe!==null?Jf(l,pe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:_s,useCacheRefresh:po};Eo.useEffectEvent=io;function qs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:N({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ls={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=bt(),n=pl(a);n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(rt(t,e,a),xn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=bt(),n=pl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(rt(t,e,a),xn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=bt(),a=pl(l);a.tag=2,t!=null&&(a.callback=t),t=bl(e,a,l),t!==null&&(rt(t,e,l),xn(t,e,l))}};function Ro(e,t,l,a,n,u,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,c):t.prototype&&t.prototype.isPureReactComponent?!sn(l,a)||!sn(n,u):!0}function _o(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&&Ls.enqueueReplaceState(t,t.state,null)}function la(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=N({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function zo(e){fu(e)}function To(e){console.error(e)}function Ao(e){fu(e)}function Du(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function wo(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 Ys(e,t,l){return l=pl(l),l.tag=3,l.payload={element:null},l.callback=function(){Du(e,t)},l}function Co(e){return e=pl(e),e.tag=3,e}function Mo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){wo(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){wo(t,l,a),typeof n!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Qh(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ea(t,l,n,!0),l=vt.current,l!==null){switch(l.tag){case 31:case 13:return wt===null?Vu():l.alternate===null&&Me===0&&(Me=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===bu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),oc(e,a,n)),!1;case 22:return l.flags|=65536,a===bu?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)),oc(e,a,n)),!1}throw Error(r(435,l.tag))}return oc(e,a,n),Vu(),!1}if(re)return t=vt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==us&&(e=Error(r(422),{cause:a}),fn(_t(e,l)))):(a!==us&&(t=Error(r(423),{cause:a}),fn(_t(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=_t(a,l),n=Ys(e.stateNode,a,n),vs(e,n),Me!==4&&(Me=2)),!1;var u=Error(r(520),{cause:a});if(u=_t(u,l),An===null?An=[u]:An.push(u),Me!==4&&(Me=2),t===null)return!0;a=_t(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Ys(l.stateNode,a,e),vs(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(_l===null||!_l.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Co(n),Mo(n,e,l,a),vs(l,n),!1}l=l.return}while(l!==null);return!1}var Gs=Error(r(461)),Le=!1;function Fe(e,t,l,a){t.child=e===null?Uf(t,null,l,a):ea(t,e.child,l,a)}function Do(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Wl(t),a=js(e,t,l,c,u,n),d=Ns(),e!==null&&!Le?(Es(e,t,n),el(e,t,n)):(re&&d&&as(t),t.flags|=1,Fe(e,t,a,n),t.child)}function Oo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!es(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Uo(e,t,u,a,n)):(e=hu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!$s(e,n)){var c=u.memoizedProps;if(l=l.compare,l=l!==null?l:sn,l(c,a)&&e.ref===t.ref)return el(e,t,n)}return t.flags|=1,e=Jt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Uo(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(sn(u,a)&&e.ref===t.ref)if(Le=!1,t.pendingProps=a=u,$s(e,n))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,el(e,t,n)}return Xs(e,t,l,a,n)}function Ho(e,t,l,a){var n=a.children,u=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(u=u!==null?u.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&~u}else a=0,t.child=null;return Bo(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gu(t,u!==null?u.cachePool:null),u!==null?qf(t,u):gs(),Lf(t);else return a=t.lanes=536870912,Bo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(gu(t,u.cachePool),qf(t,u),jl(),t.memoizedState=null):(e!==null&&gu(t,null),gs(),jl());return Fe(e,t,n,l),t.child}function jn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bo(e,t,l,a,n){var u=ds();return u=u===null?null:{parent:Be._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&gu(t,null),gs(),Lf(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Ou(e,t){return t=Hu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qo(e,t,l){return ea(t,e.child,null,l),e=Ou(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function Zh(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(re){if(a.mode==="hidden")return e=Ou(t,a),t.lanes=536870912,jn(null,e);if(bs(t),(e=_e)?(e=Wd(e,At),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=bf(e),l.return=t,t.child=l,$e=t,_e=null)):e=null,e===null)throw vl(t);return t.lanes=536870912,null}return Ou(t,a)}var u=e.memoizedState;if(u!==null){var c=u.dehydrated;if(bs(t),n)if(t.flags&256)t.flags&=-257,t=qo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Le||Ea(e,t,l,!1),n=(l&e.childLanes)!==0,Le||n){if(a=Ee,a!==null&&(c=_r(a,l),c!==0&&c!==u.retryLane))throw u.retryLane=c,kl(e,c),rt(a,e,c),Gs;Vu(),t=qo(e,t,l)}else e=u.treeContext,_e=Ct(c.nextSibling),$e=t,re=!0,xl=null,At=!1,e!==null&&Nf(t,e),t=Ou(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uu(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 Xs(e,t,l,a,n){return Wl(t),l=js(e,t,l,a,void 0,n),a=Ns(),e!==null&&!Le?(Es(e,t,n),el(e,t,n)):(re&&a&&as(t),t.flags|=1,Fe(e,t,l,n),t.child)}function Lo(e,t,l,a,n,u){return Wl(t),t.updateQueue=null,l=Gf(t,a,l,n),Yf(e),a=Ns(),e!==null&&!Le?(Es(e,t,u),el(e,t,u)):(re&&a&&as(t),t.flags|=1,Fe(e,t,l,u),t.child)}function Yo(e,t,l,a,n){if(Wl(t),t.stateNode===null){var u=ba,c=l.contextType;typeof c=="object"&&c!==null&&(u=We(c)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ls,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},hs(t),c=l.contextType,u.context=typeof c=="object"&&c!==null?We(c):ba,u.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(qs(t,l,c,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(c=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),c!==u.state&&Ls.enqueueReplaceState(u,u.state,null),yn(t,a,u,n),vn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,g=la(l,d);u.props=g;var _=u.context,M=l.contextType;c=ba,typeof M=="object"&&M!==null&&(c=We(M));var O=l.getDerivedStateFromProps;M=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||_!==c)&&_o(t,u,a,c),gl=!1;var z=t.memoizedState;u.state=z,yn(t,a,u,n),vn(),_=t.memoizedState,d||z!==_||gl?(typeof O=="function"&&(qs(t,l,O,a),_=t.memoizedState),(g=gl||Ro(t,l,g,a,z,_,c))?(M||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=c,a=g):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,xs(e,t),c=t.memoizedProps,M=la(l,c),u.props=M,O=t.pendingProps,z=u.context,_=l.contextType,g=ba,typeof _=="object"&&_!==null&&(g=We(_)),d=l.getDerivedStateFromProps,(_=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c!==O||z!==g)&&_o(t,u,a,g),gl=!1,z=t.memoizedState,u.state=z,yn(t,a,u,n),vn();var A=t.memoizedState;c!==O||z!==A||gl||e!==null&&e.dependencies!==null&&vu(e.dependencies)?(typeof d=="function"&&(qs(t,l,d,a),A=t.memoizedState),(M=gl||Ro(t,l,M,a,z,A,g)||e!==null&&e.dependencies!==null&&vu(e.dependencies))?(_||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,g),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,g)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=g,a=M):(typeof u.componentDidUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Uu(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=ea(t,e.child,null,n),t.child=ea(t,null,l,n)):Fe(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function Go(e,t,l,a){return Jl(),t.flags|=256,Fe(e,t,l,a),t.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Af()}}function Vs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=pt),e}function Xo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,c;if((c=u)||(c=e!==null&&e.memoizedState===null?!1:(Oe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(re){if(n?Sl(t):jl(),(e=_e)?(e=Wd(e,At),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Lt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=bf(e),l.return=t,t.child=l,$e=t,_e=null)):e=null,e===null)throw vl(t);return zc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(jl(),n=t.mode,d=Hu({mode:"hidden",children:d},n),a=Kl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Zs(l),a.childLanes=Vs(e,c,l),t.memoizedState=Qs,jn(null,a)):(Sl(t),ks(t,d))}var g=e.memoizedState;if(g!==null&&(d=g.dehydrated,d!==null)){if(u)t.flags&256?(Sl(t),t.flags&=-257,t=Ks(e,t,l)):t.memoizedState!==null?(jl(),t.child=e.child,t.flags|=128,t=null):(jl(),d=a.fallback,n=t.mode,a=Hu({mode:"visible",children:a.children},n),d=Kl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,ea(t,e.child,null,l),a=t.child,a.memoizedState=Zs(l),a.childLanes=Vs(e,c,l),t.memoizedState=Qs,t=jn(null,a));else if(Sl(t),zc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var _=c.dgst;c=_,a=Error(r(419)),a.stack="",a.digest=c,fn({value:a,source:null,stack:null}),t=Ks(e,t,l)}else if(Le||Ea(e,t,l,!1),c=(l&e.childLanes)!==0,Le||c){if(c=Ee,c!==null&&(a=_r(c,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,kl(e,a),rt(c,e,a),Gs;_c(d)||Vu(),t=Ks(e,t,l)}else _c(d)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,_e=Ct(d.nextSibling),$e=t,re=!0,xl=null,At=!1,e!==null&&Nf(t,e),t=ks(t,a.children),t.flags|=4096);return t}return n?(jl(),d=a.fallback,n=t.mode,g=e.child,_=g.sibling,a=Jt(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,_!==null?d=Jt(_,d):(d=Kl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,jn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Zs(l):(n=d.cachePool,n!==null?(g=Be._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=Af(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Vs(e,c,l),t.memoizedState=Qs,jn(e.child,a)):(Sl(t),l=e.child,e=l.sibling,l=Jt(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 ks(e,t){return t=Hu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Hu(e,t){return e=xt(22,e,null,t),e.lanes=0,e}function Ks(e,t,l){return ea(t,e.child,null,l),e=ks(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cs(e.return,t,l)}function Js(e,t,l,a,n,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=u)}function Zo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var c=Oe.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,Q(Oe,c),Fe(e,t,a,l),a=re?rn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qo(e,l,t);else if(e.tag===19)Qo(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&&Eu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Js(t,!1,n,l,u,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&&Eu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Js(t,!0,l,null,u,a);break;case"together":Js(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Rl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=Jt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function $s(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vu(e)))}function Vh(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),yl(t,Be,e.memoizedState.cache),Jl();break;case 27:case 5:Ka(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:yl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Sl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Xo(e,t,l):(Sl(t),e=el(e,t,l),e!==null?e.sibling:null);Sl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ea(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Zo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(Oe,Oe.current),a)break;return null;case 22:return t.lanes=0,Ho(e,t,l,t.pendingProps);case 24:yl(t,Be,e.memoizedState.cache)}return el(e,t,l)}function Vo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!$s(e,l)&&(t.flags&128)===0)return Le=!1,Vh(e,t,l);Le=(e.flags&131072)!==0}else Le=!1,re&&(t.flags&1048576)!==0&&jf(t,rn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Il(t.elementType),t.type=e,typeof e=="function")es(e)?(a=la(e,a),t.tag=1,t=Yo(null,t,e,a,l)):(t.tag=0,t=Xs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===fe){t.tag=11,t=Do(null,t,e,a,l);break e}else if(n===$){t.tag=14,t=Oo(null,t,e,a,l);break e}}throw t=Ke(e)||e,Error(r(306,t,""))}}return t;case 0:return Xs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=la(a,t.pendingProps),Yo(e,t,a,n,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,xs(e,t),yn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,yl(t,Be,a),a!==u.cache&&rs(t,[Be],l,!0),vn(),a=c.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Go(e,t,a,l);break e}else if(a!==n){n=_t(Error(r(424)),t),fn(n),t=Go(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(_e=Ct(e.firstChild),$e=t,re=!0,xl=null,At=!0,l=Uf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),a===n){t=el(e,t,l);break e}Fe(e,t,a,l)}t=t.child}return t;case 26:return Uu(e,t),e===null?(l=l0(t.type,null,t.pendingProps,null))?t.memoizedState=l:re||(l=t.type,e=t.pendingProps,a=Iu(ne.current).createElement(l),a[Je]=t,a[at]=e,Ie(a,l,e),Ze(a),t.stateNode=a):t.memoizedState=l0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ka(t),e===null&&re&&(a=t.stateNode=Pd(t.type,t.pendingProps,ne.current),$e=t,At=!0,n=_e,wl(t.type)?(Tc=n,_e=Ct(a.firstChild)):_e=n),Fe(e,t,t.pendingProps.children,l),Uu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&re&&((n=a=_e)&&(a=Sx(a,t.type,t.pendingProps,At),a!==null?(t.stateNode=a,$e=t,_e=Ct(a.firstChild),At=!1,n=!0):n=!1),n||vl(t)),Ka(t),n=t.type,u=t.pendingProps,c=e!==null?e.memoizedProps:null,a=u.children,Nc(n,u)?a=null:c!==null&&Nc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=js(e,t,Hh,null,null,l),Bn._currentValue=n),Uu(e,t),Fe(e,t,a,l),t.child;case 6:return e===null&&re&&((e=l=_e)&&(l=jx(l,t.pendingProps,At),l!==null?(t.stateNode=l,$e=t,_e=null,e=!0):e=!1),e||vl(t)),null;case 13:return Xo(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ea(t,null,a,l):Fe(e,t,a,l),t.child;case 11:return Do(e,t,t.type,t.pendingProps,l);case 7:return Fe(e,t,t.pendingProps,l),t.child;case 8:return Fe(e,t,t.pendingProps.children,l),t.child;case 12:return Fe(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,yl(t,t.type,a.value),Fe(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Wl(t),n=We(n),a=a(n),t.flags|=1,Fe(e,t,a,l),t.child;case 14:return Oo(e,t,t.type,t.pendingProps,l);case 15:return Uo(e,t,t.type,t.pendingProps,l);case 19:return Zo(e,t,l);case 31:return Zh(e,t,l);case 22:return Ho(e,t,l,t.pendingProps);case 24:return Wl(t),a=We(Be),e===null?(n=ds(),n===null&&(n=Ee,u=fs(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},hs(t),yl(t,Be,n)):((e.lanes&l)!==0&&(xs(e,t),yn(t,null,null,l),vn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),yl(t,Be,a)):(a=u.cache,yl(t,Be,a),a!==n.cache&&rs(t,[Be],l,!0))),Fe(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function tl(e){e.flags|=4}function Ws(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(gd())e.flags|=8192;else throw Pl=bu,ms}else e.flags&=-16777217}function ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!s0(t))if(gd())e.flags|=8192;else throw Pl=bu,ms}function Bu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Nr():536870912,e.lanes|=t,Ha|=t)}function Nn(e,t){if(!re)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 ze(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 kh(e,t,l){var a=t.pendingProps;switch(ns(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(Be),De(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Na(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,is())),ze(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(ze(t),ko(t,u)):(ze(t),Ws(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),ze(t),ko(t,u)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),ze(t),Ws(t,n,e,a,l)),null;case 27:if(Jn(t),l=ne.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}e=k.current,Na(t)?Ef(t):(e=Pd(n,a,l),t.stateNode=e,tl(t))}return ze(t),null;case 5:if(Jn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return ze(t),null}if(u=k.current,Na(t))Ef(t);else{var c=Iu(ne.current);switch(u){case 1:u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=c.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}u[Je]=t,u[at]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)u.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=u;e:switch(Ie(u,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&&tl(t)}}return ze(t),Ws(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ne.current,Na(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=$e,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Je]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Xd(e.nodeValue,l)),e||vl(t,!0)}else e=Iu(e).createTextNode(a),e[Je]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Na(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Je]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=is(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Na(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Je]=t}else Jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),n=!1}else n=is(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(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),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Bu(t,t.updateQueue),ze(t),null);case 4:return De(),e===null&&gc(t.stateNode.containerInfo),ze(t),null;case 10:return Ft(t.type),ze(t),null;case 19:if(U(Oe),a=t.memoizedState,a===null)return ze(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Nn(a,!1);else{if(Me!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Eu(e),u!==null){for(t.flags|=128,Nn(a,!1),e=u.updateQueue,t.updateQueue=e,Bu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)pf(l,e),l=l.sibling;return Q(Oe,Oe.current&1|2),re&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ot()>Xu&&(t.flags|=128,n=!0,Nn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Eu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Bu(t,e),Nn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!re)return ze(t),null}else 2*ot()-a.renderingStartTime>Xu&&l!==536870912&&(t.flags|=128,n=!0,Nn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ot(),e.sibling=null,l=Oe.current,Q(Oe,n?l&1|2:l&1),re&&$t(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return yt(t),ps(),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&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&Bu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(Fl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(Be),ze(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Kh(e,t){switch(ns(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(Be),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Jn(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Oe),null;case 4:return De(),null;case 10:return Ft(t.type),null;case 22:case 23:return yt(t),ps(),e!==null&&U(Fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(Be),null;case 25:return null;default:return null}}function Ko(e,t){switch(ns(t),t.tag){case 3:Ft(Be),De();break;case 26:case 27:case 5:Jn(t);break;case 4:De();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:U(Oe);break;case 10:Ft(t.type);break;case 22:case 23:yt(t),ps(),e!==null&&U(Fl);break;case 24:Ft(Be)}}function En(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 u=l.create,c=l.inst;a=u(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){ye(t,t.return,d)}}function Nl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var g=l,_=d;try{_()}catch(M){ye(n,g,M)}}}a=a.next}while(a!==u)}}catch(M){ye(t,t.return,M)}}function Jo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Bf(t,l)}catch(a){ye(e,e.return,a)}}}function $o(e,t,l){l.props=la(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ye(e,t,a)}}function Rn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ye(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ye(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){ye(e,t,n)}else l.current=null}function Wo(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){ye(e,e.return,n)}}function Fs(e,t,l){try{var a=e.stateNode;xx(a,e.type,l,t),a[at]=t}catch(n){ye(e,e.return,n)}}function Fo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wl(e.type)||e.tag===4}function Is(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fo(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&&wl(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 Ps(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=kt));else if(a!==4&&(a===27&&wl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ps(e,t,l),e=e.sibling;e!==null;)Ps(e,t,l),e=e.sibling}function qu(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&&wl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(qu(e,t,l),e=e.sibling;e!==null;)qu(e,t,l),e=e.sibling}function Io(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ie(t,a,l),t[Je]=e,t[at]=l}catch(u){ye(e,e.return,u)}}var ll=!1,Ye=!1,ec=!1,Po=typeof WeakSet=="function"?WeakSet:Set,Ve=null;function Jh(e,t){if(e=e.containerInfo,Sc=ui,e=ff(e),Ki(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,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var c=0,d=-1,g=-1,_=0,M=0,O=e,z=null;t:for(;;){for(var A;O!==l||n!==0&&O.nodeType!==3||(d=c+n),O!==u||a!==0&&O.nodeType!==3||(g=c+a),O.nodeType===3&&(c+=O.nodeValue.length),(A=O.firstChild)!==null;)z=O,O=A;for(;;){if(O===e)break t;if(z===l&&++_===n&&(d=c),z===u&&++M===a&&(g=c),(A=O.nextSibling)!==null)break;O=z,z=O.parentNode}O=A}l=d===-1||g===-1?null:{start:d,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(jc={focusedElem:e,selectionRange:l},ui=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){switch(t=Ve,u=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&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var V=la(l.type,n);e=a.getSnapshotBeforeUpdate(V,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(F){ye(l,l.return,F)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Rc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(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,Ve=e;break}Ve=t.return}}function ed(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&En(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){ye(l,l.return,c)}else{var n=la(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){ye(l,l.return,c)}}a&64&&Jo(l),a&512&&Rn(l,l.return);break;case 3:if(nl(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{Bf(e,t)}catch(c){ye(l,l.return,c)}}break;case 27:t===null&&a&4&&Io(l);case 26:case 5:nl(e,l),t===null&&a&4&&Wo(l),a&512&&Rn(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&ad(e,l);break;case 13:nl(e,l),a&4&&nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=ax.bind(null,l),Nx(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Ye,n=ll;var u=Ye;ll=a,(Ye=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,Ye=u}break;case 30:break;default:nl(e,l)}}function td(e){var t=e.alternate;t!==null&&(e.alternate=null,td(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wi(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 Te=null,ut=!1;function al(e,t,l){for(l=l.child;l!==null;)ld(e,t,l),l=l.sibling}function ld(e,t,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Ja,l)}catch{}switch(l.tag){case 26:Ye||Gt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ye||Gt(l,t);var a=Te,n=ut;wl(l.type)&&(Te=l.stateNode,ut=!1),al(e,t,l),On(l.stateNode),Te=a,ut=n;break;case 5:Ye||Gt(l,t);case 6:if(a=Te,n=ut,Te=null,al(e,t,l),Te=a,ut=n,Te!==null)if(ut)try{(Te.nodeType===9?Te.body:Te.nodeName==="HTML"?Te.ownerDocument.body:Te).removeChild(l.stateNode)}catch(u){ye(l,t,u)}else try{Te.removeChild(l.stateNode)}catch(u){ye(l,t,u)}break;case 18:Te!==null&&(ut?(e=Te,Jd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Za(e)):Jd(Te,l.stateNode));break;case 4:a=Te,n=ut,Te=l.stateNode.containerInfo,ut=!0,al(e,t,l),Te=a,ut=n;break;case 0:case 11:case 14:case 15:Nl(2,l,t),Ye||Nl(4,l,t),al(e,t,l);break;case 1:Ye||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&$o(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Ye=(a=Ye)||l.memoizedState!==null,al(e,t,l),Ye=a;break;default:al(e,t,l)}}function ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Za(e)}catch(l){ye(t,t.return,l)}}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Za(e)}catch(l){ye(t,t.return,l)}}function $h(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Po),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Po),t;default:throw Error(r(435,e.tag))}}function Lu(e,t){var l=$h(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=nx.bind(null,e,a);a.then(n,n)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(wl(d.type)){Te=d.stateNode,ut=!1;break e}break;case 5:Te=d.stateNode,ut=!1;break e;case 3:case 4:Te=d.stateNode.containerInfo,ut=!0;break e}d=d.return}if(Te===null)throw Error(r(160));ld(u,c,n),Te=null,ut=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ud(t,e),t=t.sibling}var Ht=null;function ud(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),st(e),a&4&&(Nl(3,e,e.return),En(3,e),Nl(5,e,e.return));break;case 1:it(t,e),st(e),a&512&&(Ye||l===null||Gt(l,l.return)),a&64&&ll&&(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=Ht;if(it(t,e),st(e),a&512&&(Ye||l===null||Gt(l,l.return)),a&4){var u=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":u=n.getElementsByTagName("title")[0],(!u||u[Fa]||u[Je]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ie(u,a,l),u[Je]=e,Ze(u),a=u;break e;case"link":var c=u0("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(u=c[d],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;case"meta":if(c=u0("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(u=c[d],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}u=n.createElement(a),Ie(u,a,l),n.head.appendChild(u);break;default:throw Error(r(468,a))}u[Je]=e,Ze(u),a=u}e.stateNode=a}else i0(n,e.type,e.stateNode);else e.stateNode=n0(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?i0(n,e.type,e.stateNode):n0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Fs(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),st(e),a&512&&(Ye||l===null||Gt(l,l.return)),l!==null&&a&4&&Fs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),st(e),a&512&&(Ye||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{ma(n,"")}catch(V){ye(e,e.return,V)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Fs(e,n,l!==null?l.memoizedProps:n)),a&1024&&(ec=!0);break;case 6:if(it(t,e),st(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(V){ye(e,e.return,V)}}break;case 3:if(ti=null,n=Ht,Ht=Pu(t.containerInfo),it(t,e),Ht=n,st(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Za(t.containerInfo)}catch(V){ye(e,e.return,V)}ec&&(ec=!1,id(e));break;case 4:a=Ht,Ht=Pu(e.stateNode.containerInfo),it(t,e),st(e),Ht=a;break;case 12:it(t,e),st(e);break;case 31:it(t,e),st(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 13:it(t,e),st(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Gu=ot()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 22:n=e.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,_=ll,M=Ye;if(ll=_||n,Ye=M||g,it(t,e),Ye=M,ll=_,st(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||g||ll||Ye||aa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){g=l=t;try{if(u=g.stateNode,n)c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=g.stateNode;var O=g.memoizedProps.style,z=O!=null&&O.hasOwnProperty("display")?O.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(V){ye(g,g.return,V)}}}else if(t.tag===6){if(l===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(V){ye(g,g.return,V)}}}else if(t.tag===18){if(l===null){g=t;try{var A=g.stateNode;n?$d(A,!0):$d(g.stateNode,!1)}catch(V){ye(g,g.return,V)}}}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,Lu(e,l))));break;case 19:it(t,e),st(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Lu(e,a)));break;case 30:break;case 21:break;default:it(t,e),st(e)}}function st(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Fo(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,u=Is(e);qu(e,u,n);break;case 5:var c=l.stateNode;l.flags&32&&(ma(c,""),l.flags&=-33);var d=Is(e);qu(e,d,c);break;case 3:case 4:var g=l.stateNode.containerInfo,_=Is(e);Ps(e,_,g);break;default:throw Error(r(161))}}catch(M){ye(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function id(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;id(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ed(e,t.alternate,t),t=t.sibling}function aa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Nl(4,t,t.return),aa(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&$o(t,t.return,l),aa(t);break;case 27:On(t.stateNode);case 26:case 5:Gt(t,t.return),aa(t);break;case 22:t.memoizedState===null&&aa(t);break;case 30:aa(t);break;default:aa(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,c=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),En(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(_){ye(a,a.return,_)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)Hf(g[n],d)}catch(_){ye(a,a.return,_)}}l&&c&64&&Jo(u),Rn(u,u.return);break;case 27:Io(u);case 26:case 5:ul(n,u,l),l&&a===null&&c&4&&Wo(u),Rn(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&c&4&&ad(n,u);break;case 13:ul(n,u,l),l&&c&4&&nd(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),Rn(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function tc(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&&on(l))}function lc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&on(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sd(e,t,l,a),t=t.sibling}function sd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),n&2048&&En(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(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&&on(e)));break;case 12:if(n&2048){Bt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,c=u.id,d=u.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){ye(t,t.return,g)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,c=t.alternate,t.memoizedState!==null?u._visibility&2?Bt(e,t,l,a):_n(e,t):u._visibility&2?Bt(e,t,l,a):(u._visibility|=2,Da(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&tc(c,t);break;case 24:Bt(e,t,l,a),n&2048&&lc(t.alternate,t);break;default:Bt(e,t,l,a)}}function Da(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,c=t,d=l,g=a,_=c.flags;switch(c.tag){case 0:case 11:case 15:Da(u,c,d,g,n),En(8,c);break;case 23:break;case 22:var M=c.stateNode;c.memoizedState!==null?M._visibility&2?Da(u,c,d,g,n):_n(u,c):(M._visibility|=2,Da(u,c,d,g,n)),n&&_&2048&&tc(c.alternate,c);break;case 24:Da(u,c,d,g,n),n&&_&2048&&lc(c.alternate,c);break;default:Da(u,c,d,g,n)}t=t.sibling}}function _n(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:_n(l,a),n&2048&&tc(a.alternate,a);break;case 24:_n(l,a),n&2048&&lc(a.alternate,a);break;default:_n(l,a)}t=t.sibling}}var zn=8192;function Oa(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)cd(e,t,l),e=e.sibling}function cd(e,t,l){switch(e.tag){case 26:Oa(e,t,l),e.flags&zn&&e.memoizedState!==null&&Ux(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:Oa(e,t,l);break;case 3:case 4:var a=Ht;Ht=Pu(e.stateNode.containerInfo),Oa(e,t,l),Ht=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,Oa(e,t,l),zn=a):Oa(e,t,l));break;default:Oa(e,t,l)}}function rd(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 Tn(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];Ve=a,od(a,e)}rd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fd(e),e=e.sibling}function fd(e){switch(e.tag){case 0:case 11:case 15:Tn(e),e.flags&2048&&Nl(9,e,e.return);break;case 3:Tn(e);break;case 12:Tn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):Tn(e);break;default:Tn(e)}}function Yu(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];Ve=a,od(a,e)}rd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Nl(8,t,t.return),Yu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function od(e,t){for(;Ve!==null;){var l=Ve;switch(l.tag){case 0:case 11:case 15:Nl(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:on(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ve=a;else e:for(l=e;Ve!==null;){a=Ve;var n=a.sibling,u=a.return;if(td(a),a===l){Ve=null;break e}if(n!==null){n.return=u,Ve=n;break e}Ve=u}}}var Wh={getCacheForType:function(e){var t=We(Be),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return We(Be).controller.signal}},Fh=typeof WeakMap=="function"?WeakMap:Map,me=0,Ee=null,ue=null,se=0,ve=0,gt=null,El=!1,Ua=!1,ac=!1,il=0,Me=0,Rl=0,na=0,nc=0,pt=0,Ha=0,An=null,ct=null,uc=!1,Gu=0,dd=0,Xu=1/0,Qu=null,_l=null,Xe=0,zl=null,Ba=null,sl=0,ic=0,sc=null,md=null,wn=0,cc=null;function bt(){return(me&2)!==0&&se!==0?se&-se:C.T!==null?hc():zr()}function hd(){if(pt===0)if((se&536870912)===0||re){var e=Fn;Fn<<=1,(Fn&3932160)===0&&(Fn=262144),pt=e}else pt=536870912;return e=vt.current,e!==null&&(e.flags|=32),pt}function rt(e,t,l){(e===Ee&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(qa(e,0),Tl(e,se,pt,!1)),Wa(e,l),((me&2)===0||e!==Ee)&&(e===Ee&&((me&2)===0&&(na|=l),Me===4&&Tl(e,se,pt,!1)),Xt(e))}function xd(e,t,l){if((me&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||$a(e,t),n=a?ex(e,t):fc(e,t,!0),u=a;do{if(n===0){Ua&&!a&&Tl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Ih(l)){n=fc(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=An;var g=d.current.memoizedState.isDehydrated;if(g&&(qa(d,c).flags|=256),c=fc(d,c,!1),c!==2){if(ac&&!g){d.errorRecoveryDisabledLanes|=u,na|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=c}if(u=!1,n!==2)continue}}if(n===1){qa(e,0),Tl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Tl(a,t,pt,!El);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Gu+300-ot(),10<n)){if(Tl(a,t,pt,!El),Pn(a,0,!0)!==0)break e;sl=t,a.timeoutHandle=kd(vd.bind(null,a,l,ct,Qu,uc,t,pt,na,Ha,El,u,"Throttled",-0,0),n);break e}vd(a,l,ct,Qu,uc,t,pt,na,Ha,El,u,null,-0,0)}}break}while(!0);Xt(e)}function vd(e,t,l,a,n,u,c,d,g,_,M,O,z,A){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},cd(t,u,O);var V=(u&62914560)===u?Gu-ot():(u&4194048)===u?dd-ot():0;if(V=Hx(O,V),V!==null){sl=u,e.cancelPendingCommit=V(Ed.bind(null,e,t,u,l,a,n,c,d,g,M,O,null,z,A)),Tl(e,u,c,!_);return}}Ed(e,t,u,l,a,n,c,d,g)}function Ih(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],u=n.getSnapshot;n=n.value;try{if(!ht(u(),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 Tl(e,t,l,a){t&=~nc,t&=~na,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-mt(n),c=1<<u;a[u]=-1,n&=~c}l!==0&&Er(e,l,t)}function Zu(){return(me&6)===0?(Cn(0),!1):!0}function rc(){if(ue!==null){if(ve===0)var e=ue.return;else e=ue,Wt=$l=null,Rs(e),Ta=null,mn=0,e=ue;for(;e!==null;)Ko(e.alternate,e),e=e.return;ue=null}}function qa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,gx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),sl=0,rc(),Ee=e,ue=l=Jt(e.current,null),se=t,ve=0,gt=null,El=!1,Ua=$a(e,t),ac=!1,Ha=pt=nc=na=Rl=Me=0,ct=An=null,uc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-mt(a),u=1<<n;t|=e[n],a&=~u}return il=t,ou(),l}function yd(e,t){te=null,C.H=Sn,t===za||t===pu?(t=Mf(),ve=3):t===ms?(t=Mf(),ve=4):ve=t===Gs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gt=t,ue===null&&(Me=1,Du(e,_t(t,e.current)))}function gd(){var e=vt.current;return e===null?!0:(se&4194048)===se?wt===null:(se&62914560)===se||(se&536870912)!==0?e===wt:!1}function pd(){var e=C.H;return C.H=Sn,e===null?Sn:e}function bd(){var e=C.A;return C.A=Wh,e}function Vu(){Me=4,El||(se&4194048)!==se&&vt.current!==null||(Ua=!0),(Rl&134217727)===0&&(na&134217727)===0||Ee===null||Tl(Ee,se,pt,!1)}function fc(e,t,l){var a=me;me|=2;var n=pd(),u=bd();(Ee!==e||se!==t)&&(Qu=null,qa(e,t)),t=!1;var c=Me;e:do try{if(ve!==0&&ue!==null){var d=ue,g=gt;switch(ve){case 8:rc(),c=6;break e;case 3:case 2:case 9:case 6:vt.current===null&&(t=!0);var _=ve;if(ve=0,gt=null,La(e,d,g,_),l&&Ua){c=0;break e}break;default:_=ve,ve=0,gt=null,La(e,d,g,_)}}Ph(),c=Me;break}catch(M){yd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Wt=$l=null,me=a,C.H=n,C.A=u,ue===null&&(Ee=null,se=0,ou()),c}function Ph(){for(;ue!==null;)Sd(ue)}function ex(e,t){var l=me;me|=2;var a=pd(),n=bd();Ee!==e||se!==t?(Qu=null,Xu=ot()+500,qa(e,t)):Ua=$a(e,t);e:do try{if(ve!==0&&ue!==null){t=ue;var u=gt;t:switch(ve){case 1:ve=0,gt=null,La(e,t,u,1);break;case 2:case 9:if(wf(u)){ve=0,gt=null,jd(t);break}t=function(){ve!==2&&ve!==9||Ee!==e||(ve=7),Xt(e)},u.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:wf(u)?(ve=0,gt=null,jd(t)):(ve=0,gt=null,La(e,t,u,7));break;case 5:var c=null;switch(ue.tag){case 26:c=ue.memoizedState;case 5:case 27:var d=ue;if(c?s0(c):d.stateNode.complete){ve=0,gt=null;var g=d.sibling;if(g!==null)ue=g;else{var _=d.return;_!==null?(ue=_,ku(_)):ue=null}break t}}ve=0,gt=null,La(e,t,u,5);break;case 6:ve=0,gt=null,La(e,t,u,6);break;case 8:rc(),Me=6;break e;default:throw Error(r(462))}}tx();break}catch(M){yd(e,M)}while(!0);return Wt=$l=null,C.H=a,C.A=n,me=l,ue!==null?0:(Ee=null,se=0,ou(),Me)}function tx(){for(;ue!==null&&!Em();)Sd(ue)}function Sd(e){var t=Vo(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?ku(e):ue=t}function jd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Lo(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=Lo(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:Rs(t);default:Ko(l,t),t=ue=pf(t,il),t=Vo(l,t,il)}e.memoizedProps=e.pendingProps,t===null?ku(e):ue=t}function La(e,t,l,a){Wt=$l=null,Rs(t),Ta=null,mn=0;var n=t.return;try{if(Qh(e,n,t,l,se)){Me=1,Du(e,_t(l,e.current)),ue=null;return}}catch(u){if(n!==null)throw ue=n,u;Me=1,Du(e,_t(l,e.current)),ue=null;return}t.flags&32768?(re||a===1?e=!0:Ua||(se&536870912)!==0?e=!1:(El=e=!0,(a===2||a===9||a===3||a===6)&&(a=vt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Nd(t,e)):ku(t)}function ku(e){var t=e;do{if((t.flags&32768)!==0){Nd(t,El);return}e=t.return;var l=kh(t.alternate,t,il);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Me===0&&(Me=5)}function Nd(e,t){do{var l=Kh(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);Me=6,ue=null}function Ed(e,t,l,a,n,u,c,d,g){e.cancelPendingCommit=null;do Ku();while(Xe!==0);if((me&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Ii,Om(e,l,u,c,d,g),e===Ee&&(ue=Ee=null,se=0),Ba=t,zl=e,sl=l,ic=u,sc=n,md=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ux($n,function(){return Ad(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=C.T,C.T=null,n=Y.p,Y.p=2,c=me,me|=4;try{Jh(e,t,l)}finally{me=c,Y.p=n,C.T=a}}Xe=1,Rd(),_d(),zd()}}function Rd(){if(Xe===1){Xe=0;var e=zl,t=Ba,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=C.T,C.T=null;var a=Y.p;Y.p=2;var n=me;me|=4;try{ud(t,e);var u=jc,c=ff(e.containerInfo),d=u.focusedElem,g=u.selectionRange;if(c!==d&&d&&d.ownerDocument&&rf(d.ownerDocument.documentElement,d)){if(g!==null&&Ki(d)){var _=g.start,M=g.end;if(M===void 0&&(M=_),"selectionStart"in d)d.selectionStart=_,d.selectionEnd=Math.min(M,d.value.length);else{var O=d.ownerDocument||document,z=O&&O.defaultView||window;if(z.getSelection){var A=z.getSelection(),V=d.textContent.length,F=Math.min(g.start,V),Se=g.end===void 0?F:Math.min(g.end,V);!A.extend&&F>Se&&(c=Se,Se=F,F=c);var j=cf(d,F),p=cf(d,Se);if(j&&p&&(A.rangeCount!==1||A.anchorNode!==j.node||A.anchorOffset!==j.offset||A.focusNode!==p.node||A.focusOffset!==p.offset)){var R=O.createRange();R.setStart(j.node,j.offset),A.removeAllRanges(),F>Se?(A.addRange(R),A.extend(p.node,p.offset)):(R.setEnd(p.node,p.offset),A.addRange(R))}}}}for(O=[],A=d;A=A.parentNode;)A.nodeType===1&&O.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<O.length;d++){var D=O[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}ui=!!Sc,jc=Sc=null}finally{me=n,Y.p=a,C.T=l}}e.current=t,Xe=2}}function _d(){if(Xe===2){Xe=0;var e=zl,t=Ba,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=C.T,C.T=null;var a=Y.p;Y.p=2;var n=me;me|=4;try{ed(e,t.alternate,t)}finally{me=n,Y.p=a,C.T=l}}Xe=3}}function zd(){if(Xe===4||Xe===3){Xe=0,Rm();var e=zl,t=Ba,l=sl,a=md;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,Ba=zl=null,Td(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(_l=null),Ti(l),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Ja,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=C.T,n=Y.p,Y.p=2,C.T=null;try{for(var u=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];u(d.value,{componentStack:d.stack})}}finally{C.T=t,Y.p=n}}(sl&3)!==0&&Ku(),Xt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===cc?wn++:(wn=0,cc=e):wn=0,Cn(0)}}function Td(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,on(t)))}function Ku(){return Rd(),_d(),zd(),Ad()}function Ad(){if(Xe!==5)return!1;var e=zl,t=ic;ic=0;var l=Ti(sl),a=C.T,n=Y.p;try{Y.p=32>l?32:l,C.T=null,l=sc,sc=null;var u=zl,c=sl;if(Xe=0,Ba=zl=null,sl=0,(me&6)!==0)throw Error(r(331));var d=me;if(me|=4,fd(u.current),sd(u,u.current,c,l),me=d,Cn(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Ja,u)}catch{}return!0}finally{Y.p=n,C.T=a,Td(e,t)}}function wd(e,t,l){t=_t(l,t),t=Ys(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(Wa(e,2),Xt(e))}function ye(e,t,l){if(e.tag===3)wd(e,e,l);else for(;t!==null;){if(t.tag===3){wd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(_l===null||!_l.has(a))){e=_t(l,e),l=Co(2),a=bl(t,l,2),a!==null&&(Mo(l,a,t,e),Wa(a,2),Xt(a));break}}t=t.return}}function oc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Fh;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)||(ac=!0,n.add(l),e=lx.bind(null,e,t,l),t.then(e,e))}function lx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ee===e&&(se&l)===l&&(Me===4||Me===3&&(se&62914560)===se&&300>ot()-Gu?(me&2)===0&&qa(e,0):nc|=l,Ha===se&&(Ha=0)),Xt(e)}function Cd(e,t){t===0&&(t=Nr()),e=kl(e,t),e!==null&&(Wa(e,t),Xt(e))}function ax(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Cd(e,l)}function nx(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),Cd(e,l)}function ux(e,t){return Ei(e,t)}var Ju=null,Ya=null,dc=!1,$u=!1,mc=!1,Al=0;function Xt(e){e!==Ya&&e.next===null&&(Ya===null?Ju=Ya=e:Ya=Ya.next=e),$u=!0,dc||(dc=!0,sx())}function Cn(e,t){if(!mc&&$u){mc=!0;do for(var l=!1,a=Ju;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var c=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-mt(42|e)+1)-1,u&=n&~(c&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Ud(a,u))}else u=se,u=Pn(a,a===Ee?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||$a(a,u)||(l=!0,Ud(a,u));a=a.next}while(l);mc=!1}}function ix(){Md()}function Md(){$u=dc=!1;var e=0;Al!==0&&yx()&&(e=Al);for(var t=ot(),l=null,a=Ju;a!==null;){var n=a.next,u=Dd(a,t);u===0?(a.next=null,l===null?Ju=n:l.next=n,n===null&&(Ya=l)):(l=a,(e!==0||(u&3)!==0)&&($u=!0)),a=n}Xe!==0&&Xe!==5||Cn(e),Al!==0&&(Al=0)}function Dd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var c=31-mt(u),d=1<<c,g=n[c];g===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Dm(d,t)):g<=t&&(e.expiredLanes|=d),u&=~d}if(t=Ee,l=se,l=Pn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ri(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||$a(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ri(a),Ti(l)){case 2:case 8:l=Sr;break;case 32:l=$n;break;case 268435456:l=jr;break;default:l=$n}return a=Od.bind(null,e),l=Ei(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ri(a),e.callbackPriority=2,e.callbackNode=null,2}function Od(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ku()&&e.callbackNode!==l)return null;var a=se;return a=Pn(e,e===Ee?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(xd(e,a,t),Dd(e,ot()),e.callbackNode!=null&&e.callbackNode===l?Od.bind(null,e):null)}function Ud(e,t){if(Ku())return null;xd(e,t,!0)}function sx(){px(function(){(me&6)!==0?Ei(br,ix):Md()})}function hc(){if(Al===0){var e=Ra;e===0&&(e=Wn,Wn<<=1,(Wn&261888)===0&&(Wn=256)),Al=e}return Al}function Hd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:au(""+e)}function Bd(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 cx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Hd((n[at]||null).action),c=a.submitter;c&&(t=(t=c[at]||null)?Hd(t.formAction):c.getAttribute("formAction"),t!==null&&(u=t,c=null));var d=new su("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Al!==0){var g=c?Bd(n,c):new FormData(n);Os(l,{pending:!0,data:g,method:n.method,action:u},null,g)}}else typeof u=="function"&&(d.preventDefault(),g=c?Bd(n,c):new FormData(n),Os(l,{pending:!0,data:g,method:n.method,action:u},u,g))},currentTarget:n}]})}}for(var xc=0;xc<Fi.length;xc++){var vc=Fi[xc],rx=vc.toLowerCase(),fx=vc[0].toUpperCase()+vc.slice(1);Ut(rx,"on"+fx)}Ut(mf,"onAnimationEnd"),Ut(hf,"onAnimationIteration"),Ut(xf,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(_h,"onTransitionRun"),Ut(zh,"onTransitionStart"),Ut(Th,"onTransitionCancel"),Ut(vf,"onTransitionEnd"),oa("onMouseEnter",["mouseout","mouseover"]),oa("onMouseLeave",["mouseout","mouseover"]),oa("onPointerEnter",["pointerout","pointerover"]),oa("onPointerLeave",["pointerout","pointerover"]),Xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mn="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(" "),ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Mn));function qd(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 u=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],g=d.instance,_=d.currentTarget;if(d=d.listener,g!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=_;try{u(n)}catch(M){fu(M)}n.currentTarget=null,u=g}else for(c=0;c<a.length;c++){if(d=a[c],g=d.instance,_=d.currentTarget,d=d.listener,g!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=_;try{u(n)}catch(M){fu(M)}n.currentTarget=null,u=g}}}}function ie(e,t){var l=t[Ai];l===void 0&&(l=t[Ai]=new Set);var a=e+"__bubble";l.has(a)||(Ld(t,e,2,!1),l.add(a))}function yc(e,t,l){var a=0;t&&(a|=4),Ld(l,e,a,t)}var Wu="_reactListening"+Math.random().toString(36).slice(2);function gc(e){if(!e[Wu]){e[Wu]=!0,wr.forEach(function(l){l!=="selectionchange"&&(ox.has(l)||yc(l,!1,e),yc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wu]||(t[Wu]=!0,yc("selectionchange",!1,t))}}function Ld(e,t,l,a){switch(h0(t)){case 2:var n=Lx;break;case 8:n=Yx;break;default:n=Dc}l=n.bind(null,t,l,e),n=void 0,!qi||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 pc(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var g=c.tag;if((g===3||g===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=ca(d),c===null)return;if(g=c.tag,g===5||g===6||g===26||g===27){a=u=c;continue e}d=d.parentNode}}a=a.return}Xr(function(){var _=u,M=Hi(l),O=[];e:{var z=yf.get(e);if(z!==void 0){var A=su,V=e;switch(e){case"keypress":if(uu(l)===0)break e;case"keydown":case"keyup":A=nh;break;case"focusin":V="focus",A=Xi;break;case"focusout":V="blur",A=Xi;break;case"beforeblur":case"afterblur":A=Xi;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":A=Vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=km;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=sh;break;case mf:case hf:case xf:A=$m;break;case vf:A=rh;break;case"scroll":case"scrollend":A=Zm;break;case"wheel":A=oh;break;case"copy":case"cut":case"paste":A=Fm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Kr;break;case"toggle":case"beforetoggle":A=mh}var F=(t&4)!==0,Se=!F&&(e==="scroll"||e==="scrollend"),j=F?z!==null?z+"Capture":null:z;F=[];for(var p=_,R;p!==null;){var D=p;if(R=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||R===null||j===null||(D=Pa(p,j),D!=null&&F.push(Dn(p,D,R))),Se)break;p=p.return}0<F.length&&(z=new A(z,V,null,l,M),O.push({event:z,listeners:F}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",z&&l!==Ui&&(V=l.relatedTarget||l.fromElement)&&(ca(V)||V[sa]))break e;if((A||z)&&(z=M.window===M?M:(z=M.ownerDocument)?z.defaultView||z.parentWindow:window,A?(V=l.relatedTarget||l.toElement,A=_,V=V?ca(V):null,V!==null&&(Se=h(V),F=V.tag,V!==Se||F!==5&&F!==27&&F!==6)&&(V=null)):(A=null,V=_),A!==V)){if(F=Vr,D="onMouseLeave",j="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(F=Kr,D="onPointerLeave",j="onPointerEnter",p="pointer"),Se=A==null?z:Ia(A),R=V==null?z:Ia(V),z=new F(D,p+"leave",A,l,M),z.target=Se,z.relatedTarget=R,D=null,ca(M)===_&&(F=new F(j,p+"enter",V,l,M),F.target=R,F.relatedTarget=Se,D=F),Se=D,A&&V)t:{for(F=dx,j=A,p=V,R=0,D=j;D;D=F(D))R++;D=0;for(var J=p;J;J=F(J))D++;for(;0<R-D;)j=F(j),R--;for(;0<D-R;)p=F(p),D--;for(;R--;){if(j===p||p!==null&&j===p.alternate){F=j;break t}j=F(j),p=F(p)}F=null}else F=null;A!==null&&Yd(O,z,A,F,!1),V!==null&&Se!==null&&Yd(O,Se,V,F,!0)}}e:{if(z=_?Ia(_):window,A=z.nodeName&&z.nodeName.toLowerCase(),A==="select"||A==="input"&&z.type==="file")var oe=tf;else if(Pr(z))if(lf)oe=Nh;else{oe=Sh;var K=bh}else A=z.nodeName,!A||A.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?_&&Oi(_.elementType)&&(oe=tf):oe=jh;if(oe&&(oe=oe(e,_))){ef(O,oe,l,M);break e}K&&K(e,z,_),e==="focusout"&&_&&z.type==="number"&&_.memoizedProps.value!=null&&Di(z,"number",z.value)}switch(K=_?Ia(_):window,e){case"focusin":(Pr(K)||K.contentEditable==="true")&&(ya=K,Ji=_,cn=null);break;case"focusout":cn=Ji=ya=null;break;case"mousedown":$i=!0;break;case"contextmenu":case"mouseup":case"dragend":$i=!1,of(O,l,M);break;case"selectionchange":if(Rh)break;case"keydown":case"keyup":of(O,l,M)}var le;if(Zi)e:{switch(e){case"compositionstart":var ce="onCompositionStart";break e;case"compositionend":ce="onCompositionEnd";break e;case"compositionupdate":ce="onCompositionUpdate";break e}ce=void 0}else va?Fr(e,l)&&(ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ce="onCompositionStart");ce&&(Jr&&l.locale!=="ko"&&(va||ce!=="onCompositionStart"?ce==="onCompositionEnd"&&va&&(le=Qr()):(ml=M,Li="value"in ml?ml.value:ml.textContent,va=!0)),K=Fu(_,ce),0<K.length&&(ce=new kr(ce,e,null,l,M),O.push({event:ce,listeners:K}),le?ce.data=le:(le=Ir(l),le!==null&&(ce.data=le)))),(le=xh?vh(e,l):yh(e,l))&&(ce=Fu(_,"onBeforeInput"),0<ce.length&&(K=new kr("onBeforeInput","beforeinput",null,l,M),O.push({event:K,listeners:ce}),K.data=le)),cx(O,e,_,l,M)}qd(O,t)})}function Dn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Fu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Pa(e,l),n!=null&&a.unshift(Dn(e,n,u)),n=Pa(e,t),n!=null&&a.push(Dn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function dx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yd(e,t,l,a,n){for(var u=t._reactName,c=[];l!==null&&l!==a;){var d=l,g=d.alternate,_=d.stateNode;if(d=d.tag,g!==null&&g===a)break;d!==5&&d!==26&&d!==27||_===null||(g=_,n?(_=Pa(l,u),_!=null&&c.unshift(Dn(l,_,g))):n||(_=Pa(l,u),_!=null&&c.push(Dn(l,_,g)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var mx=/\r\n?/g,hx=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(mx,`
|
|
49
|
-
`).replace(hx,"")}function Xd(e,t){return t=Gd(t),Gd(e)===t}function be(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ma(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ma(e,""+a);break;case"className":tu(e,"class",a);break;case"tabIndex":tu(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tu(e,l,a);break;case"style":Yr(e,a,u);break;case"data":if(t!=="object"){tu(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=au(""+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 u=="function"&&(l==="formAction"?(t!=="input"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=au(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=kt);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("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=au(""+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":ie("beforetoggle",e),ie("toggle",e),eu(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":eu(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=Xm.get(l)||l,eu(e,l,a))}}function bc(e,t,l,a,n,u){switch(l){case"style":Yr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ma(e,a):(typeof a=="number"||typeof a=="bigint")&&ma(e,""+a);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"onClick":a!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[at]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==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,""):eu(e,l,a)}}}function Ie(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ie("error",e),ie("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var c=l[u];if(c!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:be(e,t,u,c,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ie("invalid",e);var d=u=c=n=null,g=null,_=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":c=M;break;case"checked":g=M;break;case"defaultChecked":_=M;break;case"value":u=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:be(e,t,a,M,l,null)}}Hr(e,u,d,g,_,c,n,!1);return;case"select":ie("invalid",e),a=c=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:be(e,t,n,d,l,null)}t=u,l=c,e.multiple=!!a,t!=null?da(e,!!a,t,!1):l!=null&&da(e,!!a,l,!0);return;case"textarea":ie("invalid",e),u=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:be(e,t,c,d,l,null)}qr(e,a,n,u);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,t,g,a,l,null)}return;case"dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case"iframe":case"object":ie("load",e);break;case"video":case"audio":for(a=0;a<Mn.length;a++)ie(Mn[a],e);break;case"image":ie("error",e),ie("load",e);break;case"details":ie("toggle",e);break;case"embed":case"source":case"link":ie("error",e),ie("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:be(e,t,_,a,l,null)}return;default:if(Oi(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&bc(e,t,M,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&be(e,t,d,a,l,null))}function xx(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,u=null,c=null,d=null,g=null,_=null,M=null;for(A in l){var O=l[A];if(l.hasOwnProperty(A)&&O!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":g=O;default:a.hasOwnProperty(A)||be(e,t,A,null,a,O)}}for(var z in a){var A=a[z];if(O=l[z],a.hasOwnProperty(z)&&(A!=null||O!=null))switch(z){case"type":u=A;break;case"name":n=A;break;case"checked":_=A;break;case"defaultChecked":M=A;break;case"value":c=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:A!==O&&be(e,t,z,A,a,O)}}Mi(e,c,d,g,_,M,u,n);return;case"select":A=c=d=z=null;for(u in l)if(g=l[u],l.hasOwnProperty(u)&&g!=null)switch(u){case"value":break;case"multiple":A=g;default:a.hasOwnProperty(u)||be(e,t,u,null,a,g)}for(n in a)if(u=a[n],g=l[n],a.hasOwnProperty(n)&&(u!=null||g!=null))switch(n){case"value":z=u;break;case"defaultValue":d=u;break;case"multiple":c=u;default:u!==g&&be(e,t,n,u,a,g)}t=d,l=c,a=A,z!=null?da(e,!!l,z,!1):!!a!=!!l&&(t!=null?da(e,!!l,t,!0):da(e,!!l,l?[]:"",!1));return;case"textarea":A=z=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:be(e,t,d,null,a,n)}for(c in a)if(n=a[c],u=l[c],a.hasOwnProperty(c)&&(n!=null||u!=null))switch(c){case"value":z=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&be(e,t,c,n,a,u)}Br(e,z,A);return;case"option":for(var V in l)if(z=l[V],l.hasOwnProperty(V)&&z!=null&&!a.hasOwnProperty(V))switch(V){case"selected":e.selected=!1;break;default:be(e,t,V,null,a,z)}for(g in a)if(z=a[g],A=l[g],a.hasOwnProperty(g)&&z!==A&&(z!=null||A!=null))switch(g){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,g,z,a,A)}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 F in l)z=l[F],l.hasOwnProperty(F)&&z!=null&&!a.hasOwnProperty(F)&&be(e,t,F,null,a,z);for(_ in a)if(z=a[_],A=l[_],a.hasOwnProperty(_)&&z!==A&&(z!=null||A!=null))switch(_){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(r(137,t));break;default:be(e,t,_,z,a,A)}return;default:if(Oi(t)){for(var Se in l)z=l[Se],l.hasOwnProperty(Se)&&z!==void 0&&!a.hasOwnProperty(Se)&&bc(e,t,Se,void 0,a,z);for(M in a)z=a[M],A=l[M],!a.hasOwnProperty(M)||z===A||z===void 0&&A===void 0||bc(e,t,M,z,a,A);return}}for(var j in l)z=l[j],l.hasOwnProperty(j)&&z!=null&&!a.hasOwnProperty(j)&&be(e,t,j,null,a,z);for(O in a)z=a[O],A=l[O],!a.hasOwnProperty(O)||z===A||z==null&&A==null||be(e,t,O,z,a,A)}function Qd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vx(){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],u=n.transferSize,c=n.initiatorType,d=n.duration;if(u&&d&&Qd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var g=l[a],_=g.startTime;if(_>d)break;var M=g.transferSize,O=g.initiatorType;M&&Qd(O)&&(g=g.responseEnd,c+=M*(g<d?1:(d-_)/(g-_)))}if(--a,t+=8*(u+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 Sc=null,jc=null;function Iu(e){return e.nodeType===9?e:e.ownerDocument}function Zd(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 Vd(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 Nc(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 Ec=null;function yx(){var e=window.event;return e&&e.type==="popstate"?e===Ec?!1:(Ec=e,!0):(Ec=null,!1)}var kd=typeof setTimeout=="function"?setTimeout:void 0,gx=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,px=typeof queueMicrotask=="function"?queueMicrotask:typeof Kd<"u"?function(e){return Kd.resolve(null).then(e).catch(bx)}:kd;function bx(e){setTimeout(function(){throw e})}function wl(e){return e==="head"}function Jd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Za(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")On(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,On(l);for(var u=l.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Fa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=c}}else l==="body"&&On(e.ownerDocument.body);l=n}while(l);Za(t)}function $d(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 Rc(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":Rc(l),wi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Sx(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[Fa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==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(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Ct(e.nextSibling),e===null)break}return null}function jx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ct(e.nextSibling),e===null))return null;return e}function Wd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ct(e.nextSibling),e===null))return null;return e}function _c(e){return e.data==="$?"||e.data==="$~"}function zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Nx(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 Ct(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 Tc=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ct(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Id(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Pd(e,t,l){switch(t=Iu(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 On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wi(e)}var Mt=new Map,e0=new Set;function Pu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Y.d;Y.d={f:Ex,r:Rx,D:_x,C:zx,L:Tx,m:Ax,X:Cx,S:wx,M:Mx};function Ex(){var e=cl.f(),t=Zu();return e||t}function Rx(e){var t=ra(e);t!==null&&t.tag===5&&t.type==="form"?yo(t):cl.r(e)}var Ga=typeof document>"u"?null:document;function t0(e,t,l){var a=Ga;if(a&&typeof t=="string"&&t){var n=Et(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),e0.has(n)||(e0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ie(t,"link",e),Ze(t),a.head.appendChild(t)))}}function _x(e){cl.D(e),t0("dns-prefetch",e,null)}function zx(e,t){cl.C(e,t),t0("preconnect",e,t)}function Tx(e,t,l){cl.L(e,t,l);var a=Ga;if(a&&e&&t){var n='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Et(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Et(l.imageSizes)+'"]')):n+='[href="'+Et(e)+'"]';var u=n;switch(t){case"style":u=Xa(e);break;case"script":u=Qa(e)}Mt.has(u)||(e=N({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Mt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Un(u))||t==="script"&&a.querySelector(Hn(u))||(t=a.createElement("link"),Ie(t,"link",e),Ze(t),a.head.appendChild(t)))}}function Ax(e,t){cl.m(e,t);var l=Ga;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Et(a)+'"][href="'+Et(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Qa(e)}if(!Mt.has(u)&&(e=N({rel:"modulepreload",href:e},t),Mt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Hn(u)))return}a=l.createElement("link"),Ie(a,"link",e),Ze(a),l.head.appendChild(a)}}}function wx(e,t,l){cl.S(e,t,l);var a=Ga;if(a&&e){var n=fa(a).hoistableStyles,u=Xa(e);t=t||"default";var c=n.get(u);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(Un(u)))d.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Mt.get(u))&&Ac(e,l);var g=c=a.createElement("link");Ze(g),Ie(g,"link",e),g._p=new Promise(function(_,M){g.onload=_,g.onerror=M}),g.addEventListener("load",function(){d.loading|=1}),g.addEventListener("error",function(){d.loading|=2}),d.loading|=4,ei(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(u,c)}}}function Cx(e,t){cl.X(e,t);var l=Ga;if(l&&e){var a=fa(l).hoistableScripts,n=Qa(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=N({src:e,async:!0},t),(t=Mt.get(n))&&wc(e,t),u=l.createElement("script"),Ze(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Mx(e,t){cl.M(e,t);var l=Ga;if(l&&e){var a=fa(l).hoistableScripts,n=Qa(e),u=a.get(n);u||(u=l.querySelector(Hn(n)),u||(e=N({src:e,async:!0,type:"module"},t),(t=Mt.get(n))&&wc(e,t),u=l.createElement("script"),Ze(u),Ie(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function l0(e,t,l,a){var n=(n=ne.current)?Pu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Xa(l.href),l=fa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Xa(l.href);var u=fa(n).hoistableStyles,c=u.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,c),(u=n.querySelector(Un(e)))&&!u._p&&(c.instance=u,c.state.loading=5),Mt.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},Mt.set(e,l),u||Dx(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qa(l),l=fa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Xa(e){return'href="'+Et(e)+'"'}function Un(e){return'link[rel="stylesheet"]['+e+"]"}function a0(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function Dx(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}),Ie(t,"link",l),Ze(t),e.head.appendChild(t))}function Qa(e){return'[src="'+Et(e)+'"]'}function Hn(e){return"script[async]"+e}function n0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Et(l.href)+'"]');if(a)return t.instance=a,Ze(a),a;var n=N({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),Ie(a,"style",n),ei(a,l.precedence,e),t.instance=a;case"stylesheet":n=Xa(l.href);var u=e.querySelector(Un(n));if(u)return t.state.loading|=4,t.instance=u,Ze(u),u;a=a0(l),(n=Mt.get(n))&&Ac(a,n),u=(e.ownerDocument||e).createElement("link"),Ze(u);var c=u;return c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),Ie(u,"link",a),t.state.loading|=4,ei(u,l.precedence,e),t.instance=u;case"script":return u=Qa(l.src),(n=e.querySelector(Hn(u)))?(t.instance=n,Ze(n),n):(a=l,(n=Mt.get(u))&&(a=N({},l),wc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ze(n),Ie(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,ei(a,l.precedence,e));return t.instance}function ei(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)u=d;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ac(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function wc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ti=null;function u0(e,t,l){if(ti===null){var a=new Map,n=ti=new Map;n.set(l,a)}else n=ti,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 u=l[n];if(!(u[Fa]||u[Je]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var c=u.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(u):a.set(c,[u])}}return a}function i0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ox(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 s0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ux(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Xa(a.href),u=t.querySelector(Un(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=li.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ze(u);return}u=t.ownerDocument||t,a=a0(a),(n=Mt.get(n))&&Ac(a,n),u=u.createElement("link"),Ze(u);var c=u;c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),Ie(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=li.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Cc=0;function Hx(e,t){return e.stylesheets&&e.count===0&&ni(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ni(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Cc===0&&(Cc=62500*vx());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ni(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Cc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function li(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ni(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ai=null;function ni(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ai=new Map,t.forEach(Bx,e),ai=null,li.call(e))}function Bx(e,t){if(!(t.state.loading&4)){var l=ai.get(e);if(l)var a=l.get(null);else{l=new Map,ai.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var c=n[u];(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"),u=l.get(c)||a,u===a&&l.set(null,n),l.set(c,n),this.count++,a=li.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Bn={$$typeof:q,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function qx(e,t,l,a,n,u,c,d,g){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_i(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_i(0),this.hiddenUpdates=_i(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function c0(e,t,l,a,n,u,c,d,g,_,M,O){return e=new qx(e,t,l,c,g,_,M,O,d),t=1,u===!0&&(t|=24),u=xt(3,null,null,t),e.current=u,u.stateNode=e,t=fs(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},hs(u),e}function r0(e){return e?(e=ba,e):ba}function f0(e,t,l,a,n,u){n=r0(n),a.context===null?a.context=n:a.pendingContext=n,a=pl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=bl(e,a,t),l!==null&&(rt(l,e,t),xn(l,e,t))}function o0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Mc(e,t){o0(e,t),(e=e.alternate)&&o0(e,t)}function d0(e){if(e.tag===13||e.tag===31){var t=kl(e,67108864);t!==null&&rt(t,e,67108864),Mc(e,67108864)}}function m0(e){if(e.tag===13||e.tag===31){var t=bt();t=zi(t);var l=kl(e,t);l!==null&&rt(l,e,t),Mc(e,t)}}var ui=!0;function Lx(e,t,l,a){var n=C.T;C.T=null;var u=Y.p;try{Y.p=2,Dc(e,t,l,a)}finally{Y.p=u,C.T=n}}function Yx(e,t,l,a){var n=C.T;C.T=null;var u=Y.p;try{Y.p=8,Dc(e,t,l,a)}finally{Y.p=u,C.T=n}}function Dc(e,t,l,a){if(ui){var n=Oc(a);if(n===null)pc(e,t,a,ii,l),x0(e,a);else if(Xx(n,e,t,l,a))a.stopPropagation();else if(x0(e,a),t&4&&-1<Gx.indexOf(e)){for(;n!==null;){var u=ra(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var c=Gl(u.pendingLanes);if(c!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var g=1<<31-mt(c);d.entanglements[1]|=g,c&=~g}Xt(u),(me&6)===0&&(Xu=ot()+500,Cn(0))}}break;case 31:case 13:d=kl(u,2),d!==null&&rt(d,u,2),Zu(),Mc(u,2)}if(u=Oc(a),u===null&&pc(e,t,a,ii,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else pc(e,t,a,null,l)}}function Oc(e){return e=Hi(e),Uc(e)}var ii=null;function Uc(e){if(ii=null,e=ca(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=S(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 ii=e,null}function h0(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(_m()){case br:return 2;case Sr:return 8;case $n:case zm:return 32;case jr:return 268435456;default:return 32}default:return 32}}var Hc=!1,Cl=null,Ml=null,Dl=null,qn=new Map,Ln=new Map,Ol=[],Gx="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 x0(e,t){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Dl=null;break;case"pointerover":case"pointerout":qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ln.delete(t.pointerId)}}function Yn(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=ra(t),t!==null&&d0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Xx(e,t,l,a,n){switch(t){case"focusin":return Cl=Yn(Cl,e,t,l,a,n),!0;case"dragenter":return Ml=Yn(Ml,e,t,l,a,n),!0;case"mouseover":return Dl=Yn(Dl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return qn.set(u,Yn(qn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Ln.set(u,Yn(Ln.get(u)||null,e,t,l,a,n)),!0}return!1}function v0(e){var t=ca(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){m0(l)});return}}else if(t===31){if(t=S(l),t!==null){e.blockedOn=t,Tr(e.priority,function(){m0(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 si(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Oc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ui=a,l.target.dispatchEvent(a),Ui=null}else return t=ra(l),t!==null&&d0(t),e.blockedOn=l,!1;t.shift()}return!0}function y0(e,t,l){si(e)&&l.delete(t)}function Qx(){Hc=!1,Cl!==null&&si(Cl)&&(Cl=null),Ml!==null&&si(Ml)&&(Ml=null),Dl!==null&&si(Dl)&&(Dl=null),qn.forEach(y0),Ln.forEach(y0)}function ci(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Qx)))}var ri=null;function g0(e){ri!==e&&(ri=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ri===e&&(ri=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(Uc(a||l)===null)continue;break}var u=ra(l);u!==null&&(e.splice(t,3),t-=3,Os(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Za(e){function t(g){return ci(g,e)}Cl!==null&&ci(Cl,e),Ml!==null&&ci(Ml,e),Dl!==null&&ci(Dl,e),qn.forEach(t),Ln.forEach(t);for(var l=0;l<Ol.length;l++){var a=Ol[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ol.length&&(l=Ol[0],l.blockedOn===null);)v0(l),l.blockedOn===null&&Ol.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],c=n[at]||null;if(typeof u=="function")c||g0(l);else if(c){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,c=u[at]||null)d=c.formAction;else if(Uc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),g0(l)}}}function p0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.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 u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.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 Bc(e){this._internalRoot=e}fi.prototype.render=Bc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=bt();f0(l,a,e,t,null,null)},fi.prototype.unmount=Bc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;f0(e.current,2,null,e,null,null),Zu(),t[sa]=null}};function fi(e){this._internalRoot=e}fi.prototype.unstable_scheduleHydration=function(e){if(e){var t=zr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ol.length&&t!==0&&t<Ol[l].priority;l++);Ol.splice(l,0,e),l===0&&v0(e)}};var b0=f.version;if(b0!=="19.2.4")throw Error(r(527,b0,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=x(t),e=e!==null?E(e):null,e=e===null?null:e.stateNode,e};var Zx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{Ja=oi.inject(Zx),dt=oi}catch{}}return Xn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=zo,u=To,c=Ao;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&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=c0(e,1,!1,null,null,l,a,null,n,u,c,p0),e[sa]=t.current,gc(e),new Bc(t)},Xn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",u=zo,c=To,d=Ao,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),t=c0(e,1,!0,t,l??null,a,n,g,u,c,d,p0),t.context=r0(null),l=t.current,a=bt(),a=zi(a),n=pl(a),n.callback=null,bl(l,n,a),l=a,t.current.lanes=l,Wa(t,l),Xt(t),e[sa]=t.current,gc(e),new fi(t)},Xn.version="19.2.4",Xn}var w0;function Px(){if(w0)return Yc.exports;w0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),Yc.exports=Ix(),Yc.exports}var ev=Px();const tv=Pc(ev);/**
|
|
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 C0="popstate";function lv(i={}){function f(m,h){let{pathname:y="/",search:S="",hash:v=""}=ia(m.location.hash.substring(1));return!y.startsWith("/")&&!y.startsWith(".")&&(y="/"+y),Wc("",{pathname:y,search:S,hash:v},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function o(m,h){let y=m.document.querySelector("base"),S="";if(y&&y.getAttribute("href")){let v=m.location.href,x=v.indexOf("#");S=x===-1?v:v.slice(0,x)}return S+"#"+(typeof h=="string"?h:Zn(h))}function r(m,h){Dt(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return nv(f,o,r,i)}function Ae(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function Dt(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function av(){return Math.random().toString(36).substring(2,10)}function M0(i,f){return{usr:i.state,key:i.key,idx:f}}function Wc(i,f,o=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?ia(f):f,state:o,key:f&&f.key||r||av()}}function Zn({pathname:i="/",search:f="",hash:o=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function ia(i){let f={};if(i){let o=i.indexOf("#");o>=0&&(f.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(f.search=i.substring(r),i=i.substring(0,r)),i&&(f.pathname=i)}return f}function nv(i,f,o,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,y=m.history,S="POP",v=null,x=E();x==null&&(x=0,y.replaceState({...y.state,idx:x},""));function E(){return(y.state||{idx:null}).idx}function N(){S="POP";let H=E(),B=H==null?null:H-x;x=H,v&&v({action:S,location:L.location,delta:B})}function w(H,B){S="PUSH";let X=Wc(L.location,H,B);o&&o(X,H),x=E()+1;let q=M0(X,x),fe=L.createHref(X);try{y.pushState(q,"",fe)}catch(he){if(he instanceof DOMException&&he.name==="DataCloneError")throw he;m.location.assign(fe)}h&&v&&v({action:S,location:L.location,delta:1})}function G(H,B){S="REPLACE";let X=Wc(L.location,H,B);o&&o(X,H),x=E();let q=M0(X,x),fe=L.createHref(X);y.replaceState(q,"",fe),h&&v&&v({action:S,location:L.location,delta:0})}function Z(H){return uv(H)}let L={get action(){return S},get location(){return i(m,y)},listen(H){if(v)throw new Error("A history only accepts one active listener");return m.addEventListener(C0,N),v=H,()=>{m.removeEventListener(C0,N),v=null}},createHref(H){return f(m,H)},createURL:Z,encodeLocation(H){let B=Z(H);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:w,replace:G,go(H){return y.go(H)}};return L}function uv(i,f=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Ae(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:Zn(i);return r=r.replace(/ $/,"%20"),!f&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function K0(i,f,o="/"){return iv(i,f,o,!1)}function iv(i,f,o,r){let m=typeof f=="string"?ia(f):f,h=fl(m.pathname||"/",o);if(h==null)return null;let y=J0(i);sv(y);let S=null;for(let v=0;S==null&&v<y.length;++v){let x=gv(h);S=vv(y[v],x,r)}return S}function J0(i,f=[],o=[],r="",m=!1){let h=(y,S,v=m,x)=>{let E={relativePath:x===void 0?y.path||"":x,caseSensitive:y.caseSensitive===!0,childrenIndex:S,route:y};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(r)&&v)return;Ae(E.relativePath.startsWith(r),`Absolute route path "${E.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(r.length)}let N=rl([r,E.relativePath]),w=o.concat(E);y.children&&y.children.length>0&&(Ae(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),J0(y.children,f,w,N,v)),!(y.path==null&&!y.index)&&f.push({path:N,score:hv(N,y.index),routesMeta:w})};return i.forEach((y,S)=>{var v;if(y.path===""||!((v=y.path)!=null&&v.includes("?")))h(y,S);else for(let x of $0(y.path))h(y,S,!0,x)}),f}function $0(i){let f=i.split("/");if(f.length===0)return[];let[o,...r]=f,m=o.endsWith("?"),h=o.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let y=$0(r.join("/")),S=[];return S.push(...y.map(v=>v===""?h:[h,v].join("/"))),m&&S.push(...y),S.map(v=>i.startsWith("/")&&v===""?"/":v)}function sv(i){i.sort((f,o)=>f.score!==o.score?o.score-f.score:xv(f.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var cv=/^:[\w-]+$/,rv=3,fv=2,ov=1,dv=10,mv=-2,D0=i=>i==="*";function hv(i,f){let o=i.split("/"),r=o.length;return o.some(D0)&&(r+=mv),f&&(r+=fv),o.filter(m=>!D0(m)).reduce((m,h)=>m+(cv.test(h)?rv:h===""?ov:dv),r)}function xv(i,f){return i.length===f.length&&i.slice(0,-1).every((r,m)=>r===f[m])?i[i.length-1]-f[f.length-1]:0}function vv(i,f,o=!1){let{routesMeta:r}=i,m={},h="/",y=[];for(let S=0;S<r.length;++S){let v=r[S],x=S===r.length-1,E=h==="/"?f:f.slice(h.length)||"/",N=xi({path:v.relativePath,caseSensitive:v.caseSensitive,end:x},E),w=v.route;if(!N&&x&&o&&!r[r.length-1].route.index&&(N=xi({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},E)),!N)return null;Object.assign(m,N.params),y.push({params:m,pathname:rl([h,N.pathname]),pathnameBase:jv(rl([h,N.pathnameBase])),route:w}),N.pathnameBase!=="/"&&(h=rl([h,N.pathnameBase]))}return y}function xi(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=yv(i.path,i.caseSensitive,i.end),m=f.match(o);if(!m)return null;let h=m[0],y=h.replace(/(.)\/+$/,"$1"),S=m.slice(1);return{params:r.reduce((x,{paramName:E,isOptional:N},w)=>{if(E==="*"){let Z=S[w]||"";y=h.slice(0,h.length-Z.length).replace(/(.)\/+$/,"$1")}const G=S[w];return N&&!G?x[E]=void 0:x[E]=(G||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:y,pattern:i}}function yv(i,f=!1,o=!0){Dt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,S,v)=>(r.push({paramName:S,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),r]}function gv(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return Dt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function fl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let o=f.endsWith("/")?f.length-1:f.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}var pv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bv(i,f="/"){let{pathname:o,search:r="",hash:m=""}=typeof i=="string"?ia(i):i,h;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?h=O0(o.substring(1),"/"):h=O0(o,f)):h=f,{pathname:h,search:Nv(r),hash:Ev(m)}}function O0(i,f){let o=f.replace(/\/+$/,"").split("/");return i.split("/").forEach(m=>{m===".."?o.length>1&&o.pop():m!=="."&&o.push(m)}),o.length>1?o.join("/"):"/"}function Zc(i,f,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Sv(i){return i.filter((f,o)=>o===0||f.route.path&&f.route.path.length>0)}function tr(i){let f=Sv(i);return f.map((o,r)=>r===f.length-1?o.pathname:o.pathnameBase)}function lr(i,f,o,r=!1){let m;typeof i=="string"?m=ia(i):(m={...i},Ae(!m.pathname||!m.pathname.includes("?"),Zc("?","pathname","search",m)),Ae(!m.pathname||!m.pathname.includes("#"),Zc("#","pathname","hash",m)),Ae(!m.search||!m.search.includes("#"),Zc("#","search","hash",m)));let h=i===""||m.pathname==="",y=h?"/":m.pathname,S;if(y==null)S=o;else{let N=f.length-1;if(!r&&y.startsWith("..")){let w=y.split("/");for(;w[0]==="..";)w.shift(),N-=1;m.pathname=w.join("/")}S=N>=0?f[N]:"/"}let v=bv(m,S),x=y&&y!=="/"&&y.endsWith("/"),E=(h||y===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(x||E)&&(v.pathname+="/"),v}var rl=i=>i.join("/").replace(/\/\/+/g,"/"),jv=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Nv=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Ev=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Rv=class{constructor(i,f,o,r=!1){this.status=i,this.statusText=f||"",this.internal=r,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function _v(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function zv(i){return i.map(f=>f.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var W0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function F0(i,f){let o=i;if(typeof o!="string"||!pv.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let r=o,m=!1;if(W0)try{let h=new URL(window.location.href),y=o.startsWith("//")?new URL(h.protocol+o):new URL(o),S=fl(y.pathname,f);y.origin===h.origin&&S!=null?o=S+y.search+y.hash:m=!0}catch{Dt(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var I0=["POST","PUT","PATCH","DELETE"];new Set(I0);var Tv=["GET",...I0];new Set(Tv);var Va=T.createContext(null);Va.displayName="DataRouter";var yi=T.createContext(null);yi.displayName="DataRouterState";var Av=T.createContext(!1),P0=T.createContext({isTransitioning:!1});P0.displayName="ViewTransition";var wv=T.createContext(new Map);wv.displayName="Fetchers";var Cv=T.createContext(null);Cv.displayName="Await";var jt=T.createContext(null);jt.displayName="Navigation";var Vn=T.createContext(null);Vn.displayName="Location";var Qt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var ar=T.createContext(null);ar.displayName="RouteError";var em="REACT_ROUTER_ERROR",Mv="REDIRECT",Dv="ROUTE_ERROR_RESPONSE";function Ov(i){if(i.startsWith(`${em}:${Mv}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function Uv(i){if(i.startsWith(`${em}:${Dv}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new Rv(f.status,f.statusText,f.data)}catch{}}function Hv(i,{relative:f}={}){Ae(ka(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=T.useContext(jt),{hash:m,pathname:h,search:y}=kn(i,{relative:f}),S=h;return o!=="/"&&(S=h==="/"?o:rl([o,h])),r.createHref({pathname:S,search:y,hash:m})}function ka(){return T.useContext(Vn)!=null}function Ll(){return Ae(ka(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Vn).location}var tm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(i){T.useContext(jt).static||T.useLayoutEffect(i)}function nr(){let{isDataRoute:i}=T.useContext(Qt);return i?$v():Bv()}function Bv(){Ae(ka(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(Va),{basename:f,navigator:o}=T.useContext(jt),{matches:r}=T.useContext(Qt),{pathname:m}=Ll(),h=JSON.stringify(tr(r)),y=T.useRef(!1);return lm(()=>{y.current=!0}),T.useCallback((v,x={})=>{if(Dt(y.current,tm),!y.current)return;if(typeof v=="number"){o.go(v);return}let E=lr(v,JSON.parse(h),m,x.relative==="path");i==null&&f!=="/"&&(E.pathname=E.pathname==="/"?f:rl([f,E.pathname])),(x.replace?o.replace:o.push)(E,x.state,x)},[f,o,h,m,i])}T.createContext(null);function kn(i,{relative:f}={}){let{matches:o}=T.useContext(Qt),{pathname:r}=Ll(),m=JSON.stringify(tr(o));return T.useMemo(()=>lr(i,JSON.parse(m),r,f==="path"),[i,m,r,f])}function qv(i,f){return am(i,f)}function am(i,f,o,r,m){var X;Ae(ka(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=T.useContext(jt),{matches:y}=T.useContext(Qt),S=y[y.length-1],v=S?S.params:{},x=S?S.pathname:"/",E=S?S.pathnameBase:"/",N=S&&S.route;{let q=N&&N.path||"";um(x,!N||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${q}">) 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="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let w=Ll(),G;if(f){let q=typeof f=="string"?ia(f):f;Ae(E==="/"||((X=q.pathname)==null?void 0:X.startsWith(E)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${E}" but pathname "${q.pathname}" was given in the \`location\` prop.`),G=q}else G=w;let Z=G.pathname||"/",L=Z;if(E!=="/"){let q=E.replace(/^\//,"").split("/");L="/"+Z.replace(/^\//,"").split("/").slice(q.length).join("/")}let H=K0(i,{pathname:L});Dt(N||H!=null,`No routes matched location "${G.pathname}${G.search}${G.hash}" `),Dt(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${G.pathname}${G.search}${G.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 B=Qv(H&&H.map(q=>Object.assign({},q,{params:Object.assign({},v,q.params),pathname:rl([E,h.encodeLocation?h.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?E:rl([E,h.encodeLocation?h.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),y,o,r,m);return f&&B?T.createElement(Vn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...G},navigationType:"POP"}},B):B}function Lv(){let i=Jv(),f=_v(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:h},"ErrorBoundary")," or"," ",T.createElement("code",{style:h},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},f),o?T.createElement("pre",{style:m},o):null,y)}var Yv=T.createElement(Lv,null),nm=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const o=Uv(i.digest);o&&(i=o)}let f=i!==void 0?T.createElement(Qt.Provider,{value:this.props.routeContext},T.createElement(ar.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?T.createElement(Gv,{error:i},f):f}};nm.contextType=Av;var Vc=new WeakMap;function Gv({children:i,error:f}){let{basename:o}=T.useContext(jt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let r=Ov(f.digest);if(r){let m=Vc.get(f);if(m)throw m;let h=F0(r.location,o);if(W0&&!Vc.get(f))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw Vc.set(f,y),y}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function Xv({routeContext:i,match:f,children:o}){let r=T.useContext(Va);return r&&r.static&&r.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=f.route.id),T.createElement(Qt.Provider,{value:i},o)}function Qv(i,f=[],o=null,r=null,m=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(f.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let h=i,y=o==null?void 0:o.errors;if(y!=null){let E=h.findIndex(N=>N.route.id&&(y==null?void 0:y[N.route.id])!==void 0);Ae(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),h=h.slice(0,Math.min(h.length,E+1))}let S=!1,v=-1;if(o)for(let E=0;E<h.length;E++){let N=h[E];if((N.route.HydrateFallback||N.route.hydrateFallbackElement)&&(v=E),N.route.id){let{loaderData:w,errors:G}=o,Z=N.route.loader&&!w.hasOwnProperty(N.route.id)&&(!G||G[N.route.id]===void 0);if(N.route.lazy||Z){S=!0,v>=0?h=h.slice(0,v+1):h=[h[0]];break}}}let x=o&&r?(E,N)=>{var w,G;r(E,{location:o.location,params:((G=(w=o.matches)==null?void 0:w[0])==null?void 0:G.params)??{},unstable_pattern:zv(o.matches),errorInfo:N})}:void 0;return h.reduceRight((E,N,w)=>{let G,Z=!1,L=null,H=null;o&&(G=y&&N.route.id?y[N.route.id]:void 0,L=N.route.errorElement||Yv,S&&(v<0&&w===0?(um("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,H=null):v===w&&(Z=!0,H=N.route.hydrateFallbackElement||null)));let B=f.concat(h.slice(0,w+1)),X=()=>{let q;return G?q=L:Z?q=H:N.route.Component?q=T.createElement(N.route.Component,null):N.route.element?q=N.route.element:q=E,T.createElement(Xv,{match:N,routeContext:{outlet:E,matches:B,isDataRoute:o!=null},children:q})};return o&&(N.route.ErrorBoundary||N.route.errorElement||w===0)?T.createElement(nm,{location:o.location,revalidation:o.revalidation,component:L,error:G,children:X(),routeContext:{outlet:null,matches:B,isDataRoute:!0},onError:x}):X()},null)}function ur(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zv(i){let f=T.useContext(Va);return Ae(f,ur(i)),f}function Vv(i){let f=T.useContext(yi);return Ae(f,ur(i)),f}function kv(i){let f=T.useContext(Qt);return Ae(f,ur(i)),f}function ir(i){let f=kv(i),o=f.matches[f.matches.length-1];return Ae(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function Kv(){return ir("useRouteId")}function Jv(){var r;let i=T.useContext(ar),f=Vv("useRouteError"),o=ir("useRouteError");return i!==void 0?i:(r=f.errors)==null?void 0:r[o]}function $v(){let{router:i}=Zv("useNavigate"),f=ir("useNavigate"),o=T.useRef(!1);return lm(()=>{o.current=!0}),T.useCallback(async(m,h={})=>{Dt(o.current,tm),o.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...h}))},[i,f])}var U0={};function um(i,f,o){!f&&!U0[i]&&(U0[i]=!0,Dt(!1,o))}T.memo(Wv);function Wv({routes:i,future:f,state:o,onError:r}){return am(i,void 0,o,r,f)}function Fv({to:i,replace:f,state:o,relative:r}){Ae(ka(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=T.useContext(jt);Dt(!m,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:h}=T.useContext(Qt),{pathname:y}=Ll(),S=nr(),v=lr(i,tr(h),y,r==="path"),x=JSON.stringify(v);return T.useEffect(()=>{S(JSON.parse(x),{replace:f,state:o,relative:r})},[S,x,r,f,o]),null}function Hl(i){Ae(!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 Iv({basename:i="/",children:f=null,location:o,navigationType:r="POP",navigator:m,static:h=!1,unstable_useTransitions:y}){Ae(!ka(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let S=i.replace(/^\/*/,"/"),v=T.useMemo(()=>({basename:S,navigator:m,static:h,unstable_useTransitions:y,future:{}}),[S,m,h,y]);typeof o=="string"&&(o=ia(o));let{pathname:x="/",search:E="",hash:N="",state:w=null,key:G="default"}=o,Z=T.useMemo(()=>{let L=fl(x,S);return L==null?null:{location:{pathname:L,search:E,hash:N,state:w,key:G},navigationType:r}},[S,x,E,N,w,G,r]);return Dt(Z!=null,`<Router basename="${S}"> is not able to match the URL "${x}${E}${N}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:T.createElement(jt.Provider,{value:v},T.createElement(Vn.Provider,{children:f,value:Z}))}function Pv({children:i,location:f}){return qv(Fc(i),f)}function Fc(i,f=[]){let o=[];return T.Children.forEach(i,(r,m)=>{if(!T.isValidElement(r))return;let h=[...f,m];if(r.type===T.Fragment){o.push.apply(o,Fc(r.props.children,h));return}Ae(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>`),Ae(!r.props.index||!r.props.children,"An index route cannot have child routes.");let y={id:r.props.id||h.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(y.children=Fc(r.props.children,h)),o.push(y)}),o}var mi="get",hi="application/x-www-form-urlencoded";function gi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function ey(i){return gi(i)&&i.tagName.toLowerCase()==="button"}function ty(i){return gi(i)&&i.tagName.toLowerCase()==="form"}function ly(i){return gi(i)&&i.tagName.toLowerCase()==="input"}function ay(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function ny(i,f){return i.button===0&&(!f||f==="_self")&&!ay(i)}var di=null;function uy(){if(di===null)try{new FormData(document.createElement("form"),0),di=!1}catch{di=!0}return di}var iy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kc(i){return i!=null&&!iy.has(i)?(Dt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hi}"`),null):i}function sy(i,f){let o,r,m,h,y;if(ty(i)){let S=i.getAttribute("action");r=S?fl(S,f):null,o=i.getAttribute("method")||mi,m=kc(i.getAttribute("enctype"))||hi,h=new FormData(i)}else if(ey(i)||ly(i)&&(i.type==="submit"||i.type==="image")){let S=i.form;if(S==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=i.getAttribute("formaction")||S.getAttribute("action");if(r=v?fl(v,f):null,o=i.getAttribute("formmethod")||S.getAttribute("method")||mi,m=kc(i.getAttribute("formenctype"))||kc(S.getAttribute("enctype"))||hi,h=new FormData(S,i),!uy()){let{name:x,type:E,value:N}=i;if(E==="image"){let w=x?`${x}.`:"";h.append(`${w}x`,"0"),h.append(`${w}y`,"0")}else x&&h.append(x,N)}}else{if(gi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=mi,r=null,m=hi,y=i}return h&&m==="text/plain"&&(y=h,h=void 0),{action:r,method:o.toLowerCase(),encType:m,formData:h,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sr(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function cy(i,f,o,r){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return o?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:f&&fl(m.pathname,f)==="/"?m.pathname=`${f.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function ry(i,f){if(i.id in f)return f[i.id];try{let o=await import(i.module);return f[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function fy(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function oy(i,f,o){let r=await Promise.all(i.map(async m=>{let h=f.routes[m.route.id];if(h){let y=await ry(h,o);return y.links?y.links():[]}return[]}));return xy(r.flat(1).filter(fy).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function H0(i,f,o,r,m,h){let y=(v,x)=>o[x]?v.route.id!==o[x].route.id:!0,S=(v,x)=>{var E;return o[x].pathname!==v.pathname||((E=o[x].route.path)==null?void 0:E.endsWith("*"))&&o[x].params["*"]!==v.params["*"]};return h==="assets"?f.filter((v,x)=>y(v,x)||S(v,x)):h==="data"?f.filter((v,x)=>{var N;let E=r.routes[v.route.id];if(!E||!E.hasLoader)return!1;if(y(v,x)||S(v,x))return!0;if(v.route.shouldRevalidate){let w=v.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((N=o[0])==null?void 0:N.params)||{},nextUrl:new URL(i,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function dy(i,f,{includeHydrateFallback:o}={}){return my(i.map(r=>{let m=f.routes[r.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),o&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function my(i){return[...new Set(i)]}function hy(i){let f={},o=Object.keys(i).sort();for(let r of o)f[r]=i[r];return f}function xy(i,f){let o=new Set;return new Set(f),i.reduce((r,m)=>{let h=JSON.stringify(hy(m));return o.has(h)||(o.add(h),r.push({key:h,link:m})),r},[])}function im(){let i=T.useContext(Va);return sr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function vy(){let i=T.useContext(yi);return sr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var cr=T.createContext(void 0);cr.displayName="FrameworkContext";function sm(){let i=T.useContext(cr);return sr(i,"You must render this element inside a <HydratedRouter> element"),i}function yy(i,f){let o=T.useContext(cr),[r,m]=T.useState(!1),[h,y]=T.useState(!1),{onFocus:S,onBlur:v,onMouseEnter:x,onMouseLeave:E,onTouchStart:N}=f,w=T.useRef(null);T.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let L=B=>{B.forEach(X=>{y(X.isIntersecting)})},H=new IntersectionObserver(L,{threshold:.5});return w.current&&H.observe(w.current),()=>{H.disconnect()}}},[i]),T.useEffect(()=>{if(r){let L=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(L)}}},[r]);let G=()=>{m(!0)},Z=()=>{m(!1),y(!1)};return o?i!=="intent"?[h,w,{}]:[h,w,{onFocus:Qn(S,G),onBlur:Qn(v,Z),onMouseEnter:Qn(x,G),onMouseLeave:Qn(E,Z),onTouchStart:Qn(N,G)}]:[!1,w,{}]}function Qn(i,f){return o=>{i&&i(o),o.defaultPrevented||f(o)}}function gy({page:i,...f}){let{router:o}=im(),r=T.useMemo(()=>K0(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?T.createElement(by,{page:i,matches:r,...f}):null}function py(i){let{manifest:f,routeModules:o}=sm(),[r,m]=T.useState([]);return T.useEffect(()=>{let h=!1;return oy(i,f,o).then(y=>{h||m(y)}),()=>{h=!0}},[i,f,o]),r}function by({page:i,matches:f,...o}){let r=Ll(),{future:m,manifest:h,routeModules:y}=sm(),{basename:S}=im(),{loaderData:v,matches:x}=vy(),E=T.useMemo(()=>H0(i,f,x,h,r,"data"),[i,f,x,h,r]),N=T.useMemo(()=>H0(i,f,x,h,r,"assets"),[i,f,x,h,r]),w=T.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let L=new Set,H=!1;if(f.forEach(X=>{var fe;let q=h.routes[X.route.id];!q||!q.hasLoader||(!E.some(he=>he.route.id===X.route.id)&&X.route.id in v&&((fe=y[X.route.id])!=null&&fe.shouldRevalidate)||q.hasClientLoader?H=!0:L.add(X.route.id))}),L.size===0)return[];let B=cy(i,S,m.unstable_trailingSlashAwareDataRequests,"data");return H&&L.size>0&&B.searchParams.set("_routes",f.filter(X=>L.has(X.route.id)).map(X=>X.route.id).join(",")),[B.pathname+B.search]},[S,m.unstable_trailingSlashAwareDataRequests,v,r,h,E,f,i,y]),G=T.useMemo(()=>dy(N,h),[N,h]),Z=py(N);return T.createElement(T.Fragment,null,w.map(L=>T.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...o})),G.map(L=>T.createElement("link",{key:L,rel:"modulepreload",href:L,...o})),Z.map(({key:L,link:H})=>T.createElement("link",{key:L,nonce:o.nonce,...H,crossOrigin:H.crossOrigin??o.crossOrigin})))}function Sy(...i){return f=>{i.forEach(o=>{typeof o=="function"?o(f):o!=null&&(o.current=f)})}}var jy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jy&&(window.__reactRouterVersion="7.13.0")}catch{}function Ny({basename:i,children:f,unstable_useTransitions:o,window:r}){let m=T.useRef();m.current==null&&(m.current=lv({window:r,v5Compat:!0}));let h=m.current,[y,S]=T.useState({action:h.action,location:h.location}),v=T.useCallback(x=>{o===!1?S(x):T.startTransition(()=>S(x))},[o]);return T.useLayoutEffect(()=>h.listen(v),[h,v]),T.createElement(Iv,{basename:i,children:f,location:y.location,navigationType:y.action,navigator:h,unstable_useTransitions:o})}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rm=T.forwardRef(function({onClick:f,discover:o="render",prefetch:r="none",relative:m,reloadDocument:h,replace:y,state:S,target:v,to:x,preventScrollReset:E,viewTransition:N,unstable_defaultShouldRevalidate:w,...G},Z){let{basename:L,unstable_useTransitions:H}=T.useContext(jt),B=typeof x=="string"&&cm.test(x),X=F0(x,L);x=X.to;let q=Hv(x,{relative:m}),[fe,he,Re]=yy(r,G),$=_y(x,{replace:y,state:S,target:v,preventScrollReset:E,relative:m,viewTransition:N,unstable_defaultShouldRevalidate:w,unstable_useTransitions:H});function we(lt){f&&f(lt),lt.defaultPrevented||$(lt)}let Ge=T.createElement("a",{...G,...Re,href:X.absoluteURL||q,onClick:X.isExternal||h?f:we,ref:Sy(Z,he),target:v,"data-discover":!B&&o==="render"?"true":void 0});return fe&&!B?T.createElement(T.Fragment,null,Ge,T.createElement(gy,{page:q})):Ge});rm.displayName="Link";var fm=T.forwardRef(function({"aria-current":f="page",caseSensitive:o=!1,className:r="",end:m=!1,style:h,to:y,viewTransition:S,children:v,...x},E){let N=kn(y,{relative:x.relative}),w=Ll(),G=T.useContext(yi),{navigator:Z,basename:L}=T.useContext(jt),H=G!=null&&Cy(N)&&S===!0,B=Z.encodeLocation?Z.encodeLocation(N).pathname:N.pathname,X=w.pathname,q=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;o||(X=X.toLowerCase(),q=q?q.toLowerCase():null,B=B.toLowerCase()),q&&L&&(q=fl(q,L)||q);const fe=B!=="/"&&B.endsWith("/")?B.length-1:B.length;let he=X===B||!m&&X.startsWith(B)&&X.charAt(fe)==="/",Re=q!=null&&(q===B||!m&&q.startsWith(B)&&q.charAt(B.length)==="/"),$={isActive:he,isPending:Re,isTransitioning:H},we=he?f:void 0,Ge;typeof r=="function"?Ge=r($):Ge=[r,he?"active":null,Re?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let lt=typeof h=="function"?h($):h;return T.createElement(rm,{...x,"aria-current":we,className:Ge,ref:E,style:lt,to:y,viewTransition:S},typeof v=="function"?v($):v)});fm.displayName="NavLink";var Ey=T.forwardRef(({discover:i="render",fetcherKey:f,navigate:o,reloadDocument:r,replace:m,state:h,method:y=mi,action:S,onSubmit:v,relative:x,preventScrollReset:E,viewTransition:N,unstable_defaultShouldRevalidate:w,...G},Z)=>{let{unstable_useTransitions:L}=T.useContext(jt),H=Ay(),B=wy(S,{relative:x}),X=y.toLowerCase()==="get"?"get":"post",q=typeof S=="string"&&cm.test(S),fe=he=>{if(v&&v(he),he.defaultPrevented)return;he.preventDefault();let Re=he.nativeEvent.submitter,$=(Re==null?void 0:Re.getAttribute("formmethod"))||y,we=()=>H(Re||he.currentTarget,{fetcherKey:f,method:$,navigate:o,replace:m,state:h,relative:x,preventScrollReset:E,viewTransition:N,unstable_defaultShouldRevalidate:w});L&&o!==!1?T.startTransition(()=>we()):we()};return T.createElement("form",{ref:Z,method:X,action:B,onSubmit:r?v:fe,...G,"data-discover":!q&&i==="render"?"true":void 0})});Ey.displayName="Form";function Ry(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function om(i){let f=T.useContext(Va);return Ae(f,Ry(i)),f}function _y(i,{target:f,replace:o,state:r,preventScrollReset:m,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:S,unstable_useTransitions:v}={}){let x=nr(),E=Ll(),N=kn(i,{relative:h});return T.useCallback(w=>{if(ny(w,f)){w.preventDefault();let G=o!==void 0?o:Zn(E)===Zn(N),Z=()=>x(i,{replace:G,state:r,preventScrollReset:m,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:S});v?T.startTransition(()=>Z()):Z()}},[E,x,N,o,r,f,i,m,h,y,S,v])}var zy=0,Ty=()=>`__${String(++zy)}__`;function Ay(){let{router:i}=om("useSubmit"),{basename:f}=T.useContext(jt),o=Kv(),r=i.fetch,m=i.navigate;return T.useCallback(async(h,y={})=>{let{action:S,method:v,encType:x,formData:E,body:N}=sy(h,f);if(y.navigate===!1){let w=y.fetcherKey||Ty();await r(w,o,y.action||S,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:E,body:N,formMethod:y.method||v,formEncType:y.encType||x,flushSync:y.flushSync})}else await m(y.action||S,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:E,body:N,formMethod:y.method||v,formEncType:y.encType||x,replace:y.replace,state:y.state,fromRouteId:o,flushSync:y.flushSync,viewTransition:y.viewTransition})},[r,m,f,o])}function wy(i,{relative:f}={}){let{basename:o}=T.useContext(jt),r=T.useContext(Qt);Ae(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...kn(i||".",{relative:f})},y=Ll();if(i==null){h.search=y.search;let S=new URLSearchParams(h.search),v=S.getAll("index");if(v.some(E=>E==="")){S.delete("index"),v.filter(N=>N).forEach(N=>S.append("index",N));let E=S.toString();h.search=E?`?${E}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(h.pathname=h.pathname==="/"?o:rl([o,h.pathname])),Zn(h)}function Cy(i,{relative:f}={}){let o=T.useContext(P0);Ae(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=om("useViewTransitionState"),m=kn(i,{relative:f});if(!o.isTransitioning)return!1;let h=fl(o.currentLocation.pathname,r)||o.currentLocation.pathname,y=fl(o.nextLocation.pathname,r)||o.nextLocation.pathname;return xi(m.pathname,y)!=null||xi(m.pathname,h)!=null}var My=k0();const Dy=Pc(My);/**
|
|
61
|
-
* @license lucide-react v0.564.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const dm=(...i)=>i.filter((f,o,r)=>!!f&&f.trim()!==""&&r.indexOf(f)===o).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 Oy=i=>i.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 Uy=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(f,o,r)=>r?r.toUpperCase():o.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 B0=i=>{const f=Uy(i);return f.charAt(0).toUpperCase()+f.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 Hy={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 By=i=>{for(const f in i)if(f.startsWith("aria-")||f==="role"||f==="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 qy=T.forwardRef(({color:i="currentColor",size:f=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:m="",children:h,iconNode:y,...S},v)=>T.createElement("svg",{ref:v,...Hy,width:f,height:f,stroke:i,strokeWidth:r?Number(o)*24/Number(f):o,className:dm("lucide",m),...!h&&!By(S)&&{"aria-hidden":"true"},...S},[...y.map(([x,E])=>T.createElement(x,E)),...Array.isArray(h)?h:[h]]));/**
|
|
96
|
-
* @license lucide-react v0.564.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const ae=(i,f)=>{const o=T.forwardRef(({className:r,...m},h)=>T.createElement(qy,{ref:h,iconNode:f,className:dm(`lucide-${Oy(B0(i))}`,`lucide-${i}`,r),...m}));return o.displayName=B0(i),o};/**
|
|
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 Ly=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],mm=ae("activity",Ly);/**
|
|
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 Yy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Gy=ae("arrow-right",Yy);/**
|
|
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 Xy=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]],Qy=ae("arrow-up-narrow-wide",Xy);/**
|
|
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 Zy=[["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"}]],Vy=ae("bell",Zy);/**
|
|
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 ky=[["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"}]],q0=ae("briefcase",ky);/**
|
|
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 Ky=[["path",{d:"M4.2 4.2A2 2 0 0 0 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 1.82-1.18",key:"16swn3"}],["path",{d:"M21 15.5V6a2 2 0 0 0-2-2H9.5",key:"yhw86o"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h7",key:"1wap6i"}],["path",{d:"M21 10h-5.5",key:"quycpq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],rr=ae("calendar-off",Ky);/**
|
|
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 Jy=[["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"}]],vi=ae("calendar",Jy);/**
|
|
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 $y=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Wy=ae("chevron-down",$y);/**
|
|
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 Fy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Iy=ae("chevron-left",Fy);/**
|
|
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 Py=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],eg=ae("chevron-right",Py);/**
|
|
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 tg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],lg=ae("chevrons-up-down",tg);/**
|
|
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 ag=[["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"}]],ua=ae("circle-alert",ag);/**
|
|
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 ng=[["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"}]],L0=ae("circle-arrow-down",ng);/**
|
|
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 ug=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],fr=ae("circle-check-big",ug);/**
|
|
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 ig=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],sg=ae("circle-play",ig);/**
|
|
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 cg=[["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"}]],rg=ae("circle-x",cg);/**
|
|
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 fg=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],hm=ae("clock",fg);/**
|
|
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 og=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],dg=ae("download",og);/**
|
|
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 mg=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],hg=ae("ellipsis-vertical",mg);/**
|
|
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 xg=[["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"}]],vg=ae("external-link",xg);/**
|
|
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 yg=[["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"}]],gg=ae("file-text",yg);/**
|
|
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 pg=[["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"}]],bg=ae("git-pull-request",pg);/**
|
|
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 Sg=[["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"}]],jg=ae("house",Sg);/**
|
|
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 Ng=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Eg=ae("info",Ng);/**
|
|
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 Rg=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],_g=ae("layout-grid",Rg);/**
|
|
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 zg=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}],["path",{d:"M14 4h7",key:"3xa0d5"}],["path",{d:"M14 9h7",key:"1icrd9"}],["path",{d:"M14 15h7",key:"1mj8o2"}],["path",{d:"M14 20h7",key:"11slyb"}]],Y0=ae("layout-list",zg);/**
|
|
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 Tg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xm=ae("loader-circle",Tg);/**
|
|
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 Ag=[["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"}]],wg=ae("pause",Ag);/**
|
|
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 Cg=[["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"}]],pi=ae("play",Cg);/**
|
|
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 Mg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Dg=ae("plus",Mg);/**
|
|
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 Og=[["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"}]],Ug=ae("rotate-ccw",Og);/**
|
|
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 Hg=[["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"}]],Bg=ae("save",Hg);/**
|
|
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 qg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Kn=ae("search",qg);/**
|
|
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 Lg=[["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"}]],vm=ae("settings",Lg);/**
|
|
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 Yg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ym=ae("terminal",Yg);/**
|
|
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 Gg=[["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"}]],Xg=ae("triangle-alert",Gg);/**
|
|
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 Qg=[["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"}]],Zg=ae("wifi",Qg);/**
|
|
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 Vg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gm=ae("x",Vg),G0=i=>{let f;const o=new Set,r=(x,E)=>{const N=typeof x=="function"?x(f):x;if(!Object.is(N,f)){const w=f;f=E??(typeof N!="object"||N===null)?N:Object.assign({},f,N),o.forEach(G=>G(f,w))}},m=()=>f,S={setState:r,getState:m,getInitialState:()=>v,subscribe:x=>(o.add(x),()=>o.delete(x))},v=f=i(r,m,S);return S},kg=i=>i?G0(i):G0,Kg=i=>i;function Jg(i,f=Kg){const o=St.useSyncExternalStore(i.subscribe,()=>f(i.getState()),()=>f(i.getInitialState()));return St.useDebugValue(o),o}const X0=i=>{const f=kg(i),o=r=>Jg(f,r);return Object.assign(o,f),o},$g=i=>i?X0(i):X0,Wg="";let pm=!1,Ic=null;function Fg(i){pm=i}function Ig(i){Ic=i}function qt(i){return pm&&Ic?i.replace("/api/",`/api/projects/${encodeURIComponent(Ic)}/`):i}function Pg(){return Ot("/api/projects")}async function Ot(i,f){const o=`${Wg}${i}`,r=await fetch(o,{headers:{"Content-Type":"application/json",...f==null?void 0:f.headers},...f});if(!r.ok){const m=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(m.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function or(){return Ot(qt("/api/status"))}function ep(){return Ot(qt("/api/prds"))}function tp(){return Ot(qt("/api/prs"))}function lp(i,f){const o=`?lines=${encodeURIComponent(f)}`;return Ot(qt(`/api/logs/${encodeURIComponent(i)}${o}`))}function ap(){return Ot(qt("/api/config"))}function Q0(i){return Ot(qt("/api/config"),{method:"PUT",body:JSON.stringify(i)})}function np(){return Ot(qt("/api/doctor"))}function dr(){return Ot(qt("/api/actions/run"),{method:"POST"})}function mr(){return Ot(qt("/api/actions/review"),{method:"POST"})}function hr(){return Ot(qt("/api/actions/install-cron"),{method:"POST"})}function xr(){return Ot(qt("/api/actions/uninstall-cron"),{method:"POST"})}function ql(i,f=[]){const[o,r]=T.useState(null),[m,h]=T.useState(!0),[y,S]=T.useState(null),v=T.useCallback(async()=>{h(!0),S(null);try{const x=await i();r(x)}catch(x){S(x instanceof Error?x:new Error("Unknown error"))}finally{h(!1)}},[i]);return T.useEffect(()=>{v()},[...f,v]),{data:o,loading:m,error:y,refetch:v}}const up=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Zt=$g(i=>({projectName:"Night Watch",setProjectName:f=>i({projectName:f}),toasts:[],addToast:f=>{const o=Math.random().toString(36).substring(7);i(r=>({toasts:[...r.toasts,{...f,id:o}]})),setTimeout(()=>{i(r=>({toasts:r.toasts.filter(m=>m.id!==o)}))},5e3)},removeToast:f=>i(o=>({toasts:o.toasts.filter(r=>r.id!==f)})),isGlobalMode:!1,setGlobalMode:f=>{Fg(f),i({isGlobalMode:f})},projects:[],setProjects:f=>i({projects:f}),selectedProjectId:up,selectProject:f=>{Ig(f),f?localStorage.setItem("nw-selected-project",f):localStorage.removeItem("nw-selected-project"),i({selectedProjectId:f})}})),ip=()=>{const[i,f]=T.useState(!1),{projectName:o,isGlobalMode:r,projects:m,selectedProjectId:h,selectProject:y}=Zt(),S=[{icon:jg,label:"Dashboard",path:"/"},{icon:gg,label:"PRDs",path:"/prds",badge:3},{icon:bg,label:"Pull Requests",path:"/prs",badge:1},{icon:sg,label:"Actions",path:"/actions"},{icon:ym,label:"Logs",path:"/logs"},{icon:vm,label:"Settings",path:"/settings"}];return s.jsxs("aside",{className:`
|
|
291
|
-
relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
|
|
292
|
-
${i?"w-20":"w-72"} h-screen flex-shrink-0 z-50
|
|
293
|
-
bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
|
|
294
|
-
`,children:[s.jsx("div",{className:`p-6 border-b border-white/5 ${i?"items-center justify-center flex":""}`,children:i?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(q0,{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:h||"",onChange:v=>y(v.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:m.filter(v=>v.valid).map(v=>s.jsx("option",{value:v.name,children:v.name},v.name))}),s.jsx(lg,{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(q0,{className:"h-4 w-4 text-indigo-400 mr-3"}),s.jsx("span",{className:"truncate",children:o})]})]})}),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:S.map(v=>s.jsx("li",{children:s.jsx(fm,{to:v.path,className:({isActive:x})=>`
|
|
295
|
-
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
296
|
-
${x?"bg-indigo-500/10 text-indigo-300 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.05)]":"text-slate-400 hover:bg-white/5 hover:text-slate-200"}
|
|
297
|
-
${i?"justify-center":""}
|
|
298
|
-
`,children:({isActive:x})=>s.jsxs(s.Fragment,{children:[s.jsx(v.icon,{className:`h-5 w-5 transition-colors ${x?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${i?"":"mr-3.5"}`}),!i&&s.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:v.label}),v.badge&&(i?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 ${x?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:v.badge})),x&&!i&&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)]"}),i&&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:v.label})]})})},v.path))})}),s.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:s.jsx("button",{onClick:()=>f(!i),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:i?s.jsx(eg,{className:"h-5 w-5"}):s.jsx(Iy,{className:"h-5 w-5"})})})]})},sp=()=>{const{projectName:i}=Zt();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:i})]}),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(Zg,{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(Kn,{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(Vy,{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(vm,{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"})]})]})},Qe=({children:i,className:f="",onClick:o})=>s.jsxs("div",{className:`
|
|
299
|
-
relative bg-[#0b101b] rounded-xl border border-white/5
|
|
300
|
-
shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
|
|
301
|
-
transition-all duration-300
|
|
302
|
-
${o?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
|
|
303
|
-
${f}
|
|
304
|
-
`,onClick:o,children:[o&&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:i})]}),je=({children:i,variant:f="primary",size:o="md",loading:r=!1,className:m="",disabled:h,...y})=>{const S="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]",v={primary:"bg-indigo-600 text-white hover:bg-indigo-500 focus:ring-indigo-500 shadow-[0_0_15px_-3px_rgba(79,70,229,0.4)] border border-indigo-500/50 hover:shadow-[0_0_20px_-3px_rgba(79,70,229,0.5)]",secondary:"bg-[#1f2937] text-slate-200 hover:bg-[#374151] focus:ring-slate-500 border border-white/5",danger:"bg-red-600/10 text-red-400 hover:bg-red-600/20 focus:ring-red-500 border border-red-900/50 hover:border-red-500/50",ghost:"bg-transparent text-slate-400 hover:bg-white/5 hover:text-slate-200 focus:ring-slate-400",outline:"border border-slate-700/50 bg-transparent text-slate-300 hover:bg-white/5 hover:border-slate-500 focus:ring-slate-400"},x={sm:"h-8 px-3 text-xs tracking-wide",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 text-base",icon:"h-9 w-9"};return s.jsxs("button",{className:`${S} ${v[f]} ${x[o]} ${m}`,disabled:h||r,...y,children:[r&&s.jsx(xm,{className:"mr-2 h-4 w-4 animate-spin"}),i]})},cp={ready:"Ready","in-progress":"In Progress",blocked:"Blocked",done:"Done"},rp=()=>{const i=nr(),{setProjectName:f,addToast:o,selectedProjectId:r}=Zt(),{data:m,loading:h,error:y,refetch:S}=ql(or,[r]),[v,x]=St.useState(null);if(St.useEffect(()=>{m!=null&&m.projectName&&f(m.projectName)},[m,f]),h)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(y)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(ua,{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:y.message}),s.jsx(je,{onClick:()=>S(),children:"Retry"})]});if(!m)return null;const E=m.prds.filter(B=>B.status==="ready").length,N=m.prds.filter(B=>B.status==="in-progress"),w=m.prs.length,G=m.prs.filter(B=>B.reviewScore!==null&&B.reviewScore<70).length,Z=m.processes.find(B=>B.name==="executor"),L=m.processes.find(B=>B.name==="reviewer"),H=async(B,X)=>{x(B);try{const q=await X();o({title:"Action Started",message:q.pid?`${B} started (PID ${q.pid})`:`${B} started`,type:"success"}),S()}catch(q){o({title:"Action Failed",message:q instanceof Error?q.message:`Failed to start ${B}`,type:"error"})}finally{x(null)}};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(Qe,{className:"p-5",onClick:()=>i("/prds"),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:"PRDs Ready"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:E})]}),s.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:s.jsx(fr,{className:"h-5 w-5"})})]}),s.jsxs("p",{className:"text-xs text-slate-500 mt-4",children:["of ",m.prds.length," total"]})]}),s.jsxs(Qe,{className:"p-5",onClick:()=>i("/prds"),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:N.length})]}),s.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:s.jsx(mm,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4 truncate",children:N.length===1?N[0].name:`${N.length} active`})]}),s.jsxs(Qe,{className:"p-5",onClick:()=>i("/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:w})]}),s.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:s.jsx(hm,{className:"h-5 w-5"})})]}),s.jsx("p",{className:`text-xs mt-4 ${G>0?"text-red-400 font-medium":"text-slate-500"}`,children:G>0?`${G} need work`:"All passing"})]}),s.jsxs(Qe,{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:m.crontab.installed?"Active":"Inactive"})]}),s.jsx("div",{className:`p-2 rounded-lg ${m.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:s.jsx(vi,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:m.crontab.installed?`${m.crontab.entries.length} entr${m.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[s.jsxs("div",{className:"lg:col-span-2",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:"PRD Pipeline"}),s.jsxs("button",{onClick:()=>i("/prds"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View all ",s.jsx(Gy,{className:"ml-1 h-3 w-3"})]})]}),s.jsx("div",{className:"bg-slate-900 rounded-xl p-4 grid grid-cols-4 gap-4 h-64 overflow-hidden border border-slate-800",children:["blocked","ready","in-progress","done"].map(B=>s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"text-xs font-semibold text-slate-500 uppercase mb-3 flex items-center",children:[s.jsx("span",{className:`w-2 h-2 rounded-full mr-2 ${B==="ready"?"bg-green-500":B==="in-progress"?"bg-blue-500":B==="blocked"?"bg-red-500":"bg-slate-600"}`}),cp[B]]}),s.jsxs("div",{className:"flex-1 space-y-2 overflow-y-auto scrollbar-hide",children:[m.prds.filter(X=>X.status===B).map(X=>s.jsxs(Qe,{className:"p-3 shadow-none bg-slate-800 border-slate-700 hover:border-slate-600 hover:shadow-md cursor-pointer transition-all active:scale-95",onClick:()=>i("/prds"),children:[s.jsx("div",{className:"text-xs font-medium text-slate-200 line-clamp-2",children:X.name}),X.unmetDependencies.length>0&&s.jsxs("div",{className:"mt-2 text-[10px] text-amber-400",children:["Blocked by: ",X.unmetDependencies.join(", ")]}),X.status==="in-progress"&&s.jsx("div",{className:"h-1.5 w-1.5 bg-blue-500 rounded-full animate-pulse mt-2"})]},X.name)),m.prds.filter(X=>X.status===B).length===0&&s.jsx("div",{className:"h-full border-2 border-dashed border-slate-800 rounded-lg flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-slate-600",children:"Empty"})})]})]},B))})]}),s.jsxs("div",{className:"lg:col-span-1",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-200 mb-4",children:"System Status"}),s.jsx(Qe,{className:"h-64 overflow-y-auto",children:s.jsxs("div",{className:"p-4 space-y-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:m.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:m.config.provider})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"PRD Directory"}),s.jsx("p",{className:"text-sm text-slate-200",children:m.config.prdDir})]}),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(m.timestamp).toLocaleString()})]})]})})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(Qe,{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 ${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:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:Z!=null&&Z.running?`PID: ${Z.pid} • Running`:"Idle"})]})]}),s.jsx(je,{size:"sm",variant:"ghost",onClick:()=>i("/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 ${L!=null&&L.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 ${L!=null&&L.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:L!=null&&L.running?`PID: ${L.pid} • Running`:"Idle"})]})]}),s.jsx(je,{size:"sm",variant:"ghost",onClick:()=>i("/logs"),disabled:!(L!=null&&L.running),children:"View Log"})]})]})]}),s.jsxs(Qe,{className:"p-6",children:[s.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Quick Actions"}),s.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[s.jsxs(je,{variant:"outline",className:"h-auto py-3 flex flex-col items-center justify-center space-y-1 hover:border-indigo-500/50 hover:bg-indigo-500/10 hover:text-indigo-400",onClick:()=>H("Executor",dr),disabled:v!==null,children:[s.jsx(pi,{className:"h-5 w-5 text-indigo-500"}),s.jsx("span",{className:"text-xs font-medium",children:"Run Executor"})]}),s.jsxs(je,{variant:"outline",className:"h-auto py-3 flex flex-col items-center justify-center space-y-1 hover:border-purple-500/50 hover:bg-purple-500/10 hover:text-purple-400",onClick:()=>H("Reviewer",mr),disabled:v!==null,children:[s.jsx(Kn,{className:"h-5 w-5 text-purple-500"}),s.jsx("span",{className:"text-xs font-medium",children:"Run Reviewer"})]}),s.jsxs(je,{variant:"outline",className:"h-auto py-3 flex flex-col items-center justify-center space-y-1 hover:border-green-500/50 hover:bg-green-500/10 hover:text-green-400",onClick:()=>H("Cron Install",hr),disabled:v!==null,children:[s.jsx(vi,{className:"h-5 w-5 text-green-500"}),s.jsx("span",{className:"text-xs font-medium",children:"Install Cron"})]}),s.jsxs(je,{variant:"outline",className:"h-auto py-3 flex flex-col items-center justify-center space-y-1 hover:border-red-500/50 hover:bg-red-500/10 text-red-400 hover:text-red-300",onClick:()=>H("Cron Uninstall",xr),disabled:v!==null,children:[s.jsx(rr,{className:"h-5 w-5"}),s.jsx("span",{className:"text-xs font-medium",children:"Uninstall Cron"})]})]})]})]})]})},Kc=({children:i,variant:f="default",className:o=""})=>{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[f]} ${o}`,children:i})},fp=({isOpen:i,onClose:f,title:o,children:r})=>(T.useRef(null),T.useEffect(()=>{const m=h=>{h.key==="Escape"&&f()};return i&&(document.addEventListener("keydown",m),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",m),document.body.style.overflow="unset"}},[i,f]),i?Dy.createPortal(s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 sm:p-6",children:[s.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:f,"aria-hidden":"true"}),s.jsxs("div",{className:"relative w-full max-w-2xl transform rounded-xl bg-slate-900 border border-slate-800 shadow-2xl transition-all flex flex-col max-h-[90vh]",children:[s.jsxs("div",{className:"flex items-center justify-between border-b border-slate-800 px-6 py-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-100",children:o}),s.jsx("button",{onClick:f,className:"rounded-full p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:s.jsx(gm,{className:"h-5 w-5"})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto px-6 py-6 text-slate-300",children:r})]})]}),document.body):null),Jc={ready:"Ready","in-progress":"In Progress",blocked:"Blocked",done:"Done"},$c={ready:"success","in-progress":"info",blocked:"error",done:"neutral"},op=()=>{const[i,f]=T.useState("list"),[o,r]=T.useState(!1),[m,h]=T.useState(null),[y,S]=T.useState(!1),{addToast:v,selectedProjectId:x}=Zt(),{data:E=[],loading:N,error:w,refetch:G}=ql(ep,[x]),Z=H=>{H.preventDefault(),r(!1)},L=async()=>{S(!0);try{const H=await dr();v({title:"Executor Started",message:H.pid?`Started with PID ${H.pid}`:"Executor started",type:"success"})}catch(H){v({title:"Executor Failed",message:H instanceof Error?H.message:"Failed to start executor",type:"error"})}finally{S(!1)}};return N?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading PRDs..."})}):w?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(ua,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load PRDs"}),s.jsx("div",{className:"text-sm text-slate-500",children:w.message}),s.jsx(je,{onClick:()=>G(),children:"Retry"})]}):s.jsxs("div",{className:"space-y-6 h-[calc(100vh-8rem)] flex flex-col",children:[s.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(je,{variant:i==="list"?"secondary":"ghost",size:"icon",onClick:()=>f("list"),children:s.jsx(Y0,{className:"h-4 w-4"})}),s.jsx(je,{variant:i==="card"?"secondary":"ghost",size:"icon",onClick:()=>f("card"),children:s.jsx(_g,{className:"h-4 w-4"})}),s.jsx("div",{className:"h-6 w-px bg-slate-800 mx-2"}),s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("span",{className:"px-3 py-1 bg-slate-800 text-slate-200 rounded-full text-xs font-medium cursor-pointer border border-slate-700",children:"All"}),s.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"Ready"}),s.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"In Progress"})]})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsxs(je,{variant:"outline",size:"sm",children:[s.jsx(Qy,{className:"h-4 w-4 mr-2"}),"Sort"]}),s.jsxs(je,{onClick:()=>r(!0),size:"sm",children:[s.jsx(Dg,{className:"h-4 w-4 mr-2"}),"New PRD"]})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto pr-1 pb-10",children:i==="list"?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",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Name"}),s.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Status"}),s.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Dependencies"}),s.jsx("th",{scope:"col",className:"relative px-6 py-3",children:s.jsx("span",{className:"sr-only",children:"Actions"})})]})}),s.jsxs("tbody",{className:"divide-y divide-slate-800",children:[E.map(H=>s.jsxs("tr",{className:"hover:bg-slate-800/50 group cursor-pointer transition-colors",onClick:()=>h(H),children:[s.jsxs("td",{className:"px-6 py-4",children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:H.name}),H.unmetDependencies.length>0&&s.jsxs("div",{className:"text-xs text-amber-400 mt-1",children:["Blocked by: ",H.unmetDependencies.join(", ")]})]}),s.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:s.jsx(Kc,{variant:$c[H.status],children:Jc[H.status]})}),s.jsx("td",{className:"px-6 py-4",children:H.dependencies.length>0?s.jsx("div",{className:"flex flex-wrap gap-1",children:H.dependencies.map(B=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:B},B))}):s.jsx("span",{className:"text-sm text-slate-600",children:"None"})}),s.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-right text-sm font-medium",children:s.jsx("button",{className:"text-slate-500 hover:text-slate-300 opacity-0 group-hover:opacity-100 transition-opacity",children:s.jsx(hg,{className:"h-4 w-4"})})})]},H.name)),E.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:4,className:"px-6 py-12 text-center text-slate-500",children:"No PRDs found. Create your first PRD to get started."})})]})]})}):s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[E.map(H=>s.jsxs(Qe,{className:"p-5 flex flex-col h-full hover:border-indigo-500/50 transition-colors",onClick:()=>h(H),children:[s.jsxs("div",{className:"flex justify-between items-start mb-4",children:[s.jsx(Kc,{variant:$c[H.status],children:Jc[H.status]}),H.status==="in-progress"&&s.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full animate-pulse"})]}),s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-2",children:H.name}),H.content&&s.jsx("p",{className:"text-sm text-slate-400 flex-1 line-clamp-3",children:H.content.replace(/^#.*\n/,"")}),s.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-800",children:[H.dependencies.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:H.dependencies.map(B=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:B},B))}),H.unmetDependencies.length>0&&s.jsxs("div",{className:"text-xs text-amber-400",children:["Blocked by: ",H.unmetDependencies.join(", ")]})]})]},H.name)),E.length===0&&s.jsx("div",{className:"col-span-full text-center py-12 text-slate-500",children:"No PRDs found. Create your first PRD to get started."})]})}),s.jsx(fp,{isOpen:o,onClose:()=>r(!1),title:"Create New PRD",children:s.jsxs("form",{onSubmit:Z,className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Name"}),s.jsx("input",{type:"text",className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 placeholder:text-slate-600",placeholder:"e.g. User Authentication"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Complexity"}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx("input",{type:"range",min:"1",max:"10",className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),s.jsx("span",{className:"text-sm font-bold text-slate-300 w-16 text-center",children:"MED"})]})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Phases"}),s.jsx("input",{type:"number",defaultValue:3,min:1,max:10,className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Template"}),s.jsxs("select",{className:"w-full rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-sm text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:[s.jsx("option",{children:"Default"}),s.jsx("option",{children:"Feature"}),s.jsx("option",{children:"Bugfix"})]})]})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1",children:"Dependencies"}),s.jsxs("div",{className:"bg-slate-950/30 p-3 rounded-md border border-slate-800 max-h-32 overflow-y-auto space-y-2",children:[E.map(H=>s.jsxs("label",{className:"flex items-center space-x-2 text-sm text-slate-300 cursor-pointer",children:[s.jsx("input",{type:"checkbox",className:"rounded border-slate-600 bg-slate-800 text-indigo-500 focus:ring-indigo-500/50 focus:ring-offset-slate-900"}),s.jsx("span",{children:H.name})]},H.name)),E.length===0&&s.jsx("p",{className:"text-sm text-slate-600 italic",children:"No existing PRDs"})]})]}),s.jsxs("div",{className:"flex justify-end pt-4 space-x-3",children:[s.jsx(je,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),s.jsx(je,{type:"submit",children:"Create PRD"})]})]})}),m&&s.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[s.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm transition-opacity",onClick:()=>h(null)}),s.jsxs("div",{className:"relative w-full max-w-xl bg-slate-900 h-full shadow-2xl flex flex-col transform transition-transform animate-in slide-in-from-right duration-300 border-l border-slate-800",children:[s.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-800",children:[s.jsx("h2",{className:"text-lg font-bold text-slate-100 line-clamp-1",children:m.name}),s.jsx("button",{onClick:()=>h(null),className:"p-2 hover:bg-slate-800 rounded-full",children:s.jsx(Y0,{className:"h-5 w-5 text-slate-500"})})]}),s.jsxs("div",{className:"flex-1 overflow-y-auto px-6 py-6 space-y-6",children:[s.jsx("div",{className:"flex items-center space-x-4",children:s.jsx(Kc,{variant:$c[m.status],className:"text-sm px-3 py-1",children:Jc[m.status]})}),m.content&&s.jsxs("div",{className:"prose prose-sm prose-invert max-w-none",children:[s.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider mb-2",children:"Description"}),s.jsx("div",{className:"whitespace-pre-wrap text-slate-300 bg-slate-950/50 p-4 rounded-lg border border-slate-800 font-mono text-sm",children:m.content})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"uppercase text-xs font-bold text-slate-500 tracking-wider",children:"Dependencies"}),m.dependencies.length?s.jsx("div",{className:"flex flex-wrap gap-2",children:m.dependencies.map(H=>s.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-300 text-xs rounded border border-slate-700",children:H},H))}):s.jsx("p",{className:"text-sm text-slate-500 italic",children:"No dependencies."}),m.unmetDependencies.length>0&&s.jsx("div",{className:"mt-2",children:s.jsxs("p",{className:"text-sm text-amber-400",children:["Unmet dependencies: ",m.unmetDependencies.join(", ")]})})]})]}),s.jsxs("div",{className:"p-4 border-t border-slate-800 bg-slate-900 flex space-x-3",children:[s.jsxs(je,{className:"flex-1",onClick:L,disabled:y,children:[s.jsx(pi,{className:"h-4 w-4 mr-2"}),y?"Executing...":"Execute Now"]}),s.jsx(je,{variant:"outline",className:"flex-1",children:"Move to Done"})]})]})]})]})},dp=()=>{const[i,f]=T.useState(null),[o,r]=T.useState(!1),{addToast:m,selectedProjectId:h}=Zt(),{data:y=[],loading:S,error:v,refetch:x}=ql(tp,[h]),E=w=>{switch(w){case"pass":return s.jsx(fr,{className:"h-4 w-4 text-green-500"});case"fail":return s.jsx(rg,{className:"h-4 w-4 text-red-500"});case"pending":return s.jsx(xm,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return s.jsx(ua,{className:"h-4 w-4 text-slate-500"})}};if(S)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(v)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(ua,{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:v.message}),s.jsx(je,{onClick:()=>x(),children:"Retry"})]});const N=async()=>{r(!0);try{const w=await mr();m({title:"Reviewer Started",message:w.pid?`Started with PID ${w.pid}`:"Reviewer started",type:"success"})}catch(w){m({title:"Reviewer Failed",message:w instanceof Error?w.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("span",{className:"px-3 py-1 bg-slate-800 text-slate-200 rounded-full text-xs font-medium cursor-pointer border border-slate-700",children:"All"}),s.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"Needs Work"}),s.jsx("span",{className:"px-3 py-1 text-slate-500 hover:bg-slate-800 hover:text-slate-300 rounded-full text-xs font-medium cursor-pointer transition-colors",children:"Pending"})]}),s.jsxs(je,{size:"sm",onClick:N,disabled:o,children:[s.jsx(Kn,{className:"h-4 w-4 mr-2"}),o?"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",children:"Title"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Branch"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"CI Status"}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Review Score"}),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:[y.map(w=>s.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>f(i===w.number?null:w.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:["#",w.number]}),s.jsx("span",{className:"font-medium text-slate-200",children:w.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:w.branch})}),s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center space-x-2",children:[E(w.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-400",children:w.ciStatus})]})}),s.jsx("td",{className:"px-6 py-4",children:w.reviewScore!==null?s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full ${w.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${w.reviewScore}%`}})}),s.jsx("span",{className:`text-sm font-bold ${w.reviewScore>=70?"text-green-500":"text-red-500"}`,children:w.reviewScore})]}):s.jsx("span",{className:"text-slate-600 text-sm",children:"—"})}),s.jsx("td",{className:"px-6 py-4 text-right",children:s.jsx("a",{href:w.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:G=>G.stopPropagation(),children:s.jsx(vg,{className:"h-4 w-4"})})})]},w.number)),y.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:"No open PRs found."})})]})]})}),i&&s.jsx(Qe,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const w=y.find(G=>G.number===i);return w?s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-slate-200",children:w.title}),s.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",s.jsx("span",{className:"font-mono",children:w.branch})]})]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs("div",{className:"text-center",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:[E(w.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-300",children:w.ciStatus})]})]}),w.reviewScore!==null&&s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),s.jsx("div",{className:`text-xl font-bold mt-1 ${w.reviewScore>=70?"text-green-500":"text-red-500"}`,children:w.reviewScore})]})]})]}):null})()})]})},mp=()=>{const[i,f]=T.useState({}),[o,r]=T.useState([]),{addToast:m}=Zt(),h=async(S,v,x)=>{f(E=>({...E,[S]:{status:"running",message:`Starting ${v}...`}})),r([`> Starting ${v}...`]);try{const E=await x();if(E.started)f(N=>({...N,[S]:{status:"success",message:`${v} started successfully`,pid:E.pid}})),r(N=>[...N,`> ${v} started successfully.`,`> PID: ${E.pid}`,"> Process is running in background."]),m({title:"Action Started",message:`${v} is now running`,type:"success"});else throw new Error(E.error||"Action failed to start")}catch(E){const N=E instanceof Error?E.message:"Unknown error";f(w=>({...w,[S]:{status:"error",message:N}})),r(w=>[...w,`> ${v} failed: ${N}`]),m({title:"Action Failed",message:N,type:"error"})}},y=[{key:"run",title:"Execute PRD",icon:pi,desc:"Pick next eligible PRD and run",action:"Execute",trigger:()=>h("run","Executor",dr)},{key:"review",title:"Review PRs",icon:Kn,desc:"Check open PRs for issues",action:"Review",trigger:()=>h("review","Reviewer",mr)},{key:"install",title:"Install Cron",icon:vi,desc:"Setup automated schedule",action:"Install",trigger:()=>h("install","Cron",hr)},{key:"uninstall",title:"Uninstall Cron",icon:rr,desc:"Remove automation",action:"Uninstall",danger:!0,trigger:()=>h("uninstall","Cron",xr)}];return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:y.map(S=>{const v=i[S.key],x=(v==null?void 0:v.status)==="running",E=(v==null?void 0:v.status)==="success",N=(v==null?void 0:v.status)==="error";return s.jsxs(Qe,{className:`p-5 flex flex-col justify-between h-48 transition-all ${E?"border-green-500/50":N?"border-red-500/50":"hover:border-slate-700 hover:shadow-lg"}`,children:[s.jsxs("div",{children:[s.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center mb-4 ${S.danger?"bg-red-500/10 text-red-500":"bg-indigo-500/10 text-indigo-500"}`,children:s.jsx(S.icon,{className:"h-6 w-6"})}),s.jsx("h3",{className:"font-bold text-slate-100",children:S.title}),s.jsx("p",{className:"text-sm text-slate-400 mt-1 leading-snug",children:S.desc}),v&&s.jsxs("div",{className:"mt-2 text-xs",children:[x&&s.jsx("span",{className:"text-blue-400 animate-pulse",children:v.message}),E&&s.jsx("span",{className:"text-green-400",children:v.message}),N&&s.jsx("span",{className:"text-red-400",children:v.message})]})]}),s.jsx(je,{variant:S.danger?"danger":"primary",className:"w-full mt-4",size:"sm",onClick:S.trigger,disabled:x,children:x?"Running...":S.action})]},S.key)})}),s.jsxs("div",{className:"bg-slate-900 rounded-xl overflow-hidden shadow-2xl border border-slate-800",children:[s.jsxs("div",{className:"bg-slate-950 px-4 py-2 flex items-center justify-between border-b border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx(ym,{className:"h-4 w-4 text-slate-500"}),s.jsx("span",{className:"text-xs font-mono text-slate-400",children:"Live Output"})]}),Object.values(i).some(S=>S.status==="running")&&s.jsxs("span",{className:"text-xs text-green-400 animate-pulse flex items-center",children:[s.jsx("span",{className:"w-2 h-2 rounded-full bg-green-400 mr-2"}),"Running"]})]}),s.jsxs("div",{className:"p-4 font-mono text-sm h-64 overflow-y-auto terminal-scroll text-slate-300 space-y-1 bg-slate-900",children:[o.length>0?o.map((S,v)=>s.jsx("div",{className:"break-all",children:S},v)):s.jsx("div",{className:"text-slate-600 italic",children:"Waiting for action..."}),Object.values(i).some(S=>S.status==="running")&&s.jsx("div",{className:"w-2 h-4 bg-slate-500 animate-pulse inline-block align-middle ml-1"})]})]}),s.jsxs(Qe,{className:"p-6 bg-slate-900 border-slate-800",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-200 mb-4",children:"About Actions"}),s.jsxs("div",{className:"space-y-4 text-sm text-slate-400",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium text-slate-200 mb-1",children:"Execute PRD"}),s.jsx("p",{children:"The executor picks the next eligible PRD (ready status, no unmet dependencies) and runs it through the AI provider to generate code changes."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium text-slate-200 mb-1",children:"Review PRs"}),s.jsx("p",{children:"The reviewer checks open PRs against night-watch branch patterns and analyzes them for code quality, security issues, and potential improvements."})]}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-medium text-slate-200 mb-1",children:"Cron Actions"}),s.jsx("p",{children:"Install or remove crontab entries for automated execution. The executor and reviewer can run on schedules defined in your configuration."})]})]})]})]})},hp=()=>{const[i,f]=T.useState(!0),[o,r]=T.useState(""),[m,h]=T.useState("executor"),y=T.useRef(null),{selectedProjectId:S}=Zt(),{data:v,loading:x,error:E,refetch:N}=ql(()=>lp(m,500),[m,S]),{data:w}=ql(or,[S]),G=(v==null?void 0:v.lines)||[];T.useEffect(()=>{i&&y.current&&(y.current.scrollTop=y.current.scrollHeight)},[G,i]),T.useEffect(()=>{if(!i)return;const B=window.setInterval(()=>{N()},3e3);return()=>window.clearInterval(B)},[i,m,N]);const Z=G.filter(B=>B.toLowerCase().includes(o.toLowerCase())),L=B=>{h(B),r("")},H=B=>{const X=w==null?void 0:w.processes.find(q=>q.name===B);return(X==null?void 0:X.running)??!1};return E?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(ua,{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:E.message}),s.jsx(je,{onClick:()=>N(),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:o,onChange:B=>r(B.target.value)}),s.jsx(Kn,{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:()=>L("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="executor"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Executor"}),H("executor")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>L("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${m==="reviewer"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Reviewer"}),H("reviewer")&&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(je,{size:"sm",variant:"ghost",onClick:()=>N(),children:[s.jsx(L0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),s.jsxs(je,{size:"sm",variant:"ghost",onClick:()=>f(!i),children:[i?s.jsx(wg,{className:"h-4 w-4 mr-2"}):s.jsx(pi,{className:"h-4 w-4 mr-2"}),i?"Pause":"Resume"]}),s.jsxs(je,{size:"sm",variant:"ghost",children:[s.jsx(dg,{className:"h-4 w-4 mr-2"}),"Export"]})]})]}),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: ",m,".log"]}),s.jsxs("span",{children:[Z.length," lines"]})]}),s.jsxs("div",{ref:y,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[x?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):Z.length===0?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:o?"No logs match your filter":"No logs available"}):Z.map((B,X)=>{const q=B.includes("[ERROR]"),fe=B.includes("[WARN]");return s.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${q?"text-red-400":fe?"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:X+1}),B]},X)}),i&&s.jsx("div",{className:"h-4"})," "]}),!i&&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:()=>f(!0),children:[s.jsx(L0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Bl=St.forwardRef(({className:i="",label:f,error:o,helperText:r,rightIcon:m,...h},y)=>s.jsxs("div",{className:"w-full",children:[f&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:f}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{ref:y,className:`
|
|
305
|
-
w-full rounded-lg bg-slate-950 border border-slate-800
|
|
306
|
-
px-3 py-2 text-sm text-slate-200
|
|
307
|
-
placeholder:text-slate-600
|
|
308
|
-
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
309
|
-
disabled:opacity-50 disabled:cursor-not-allowed
|
|
310
|
-
transition-all duration-200
|
|
311
|
-
${o?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
312
|
-
${m?"pr-10":""}
|
|
313
|
-
${i}
|
|
314
|
-
`,...h}),m&&s.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:m})]}),o?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:o}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));Bl.displayName="Input";const vr=St.forwardRef(({className:i="",label:f,error:o,helperText:r,options:m,value:h,onChange:y,children:S,...v},x)=>{const E=N=>{y&&y(N.target.value),v.onChange&&v.onChange(N)};return s.jsxs("div",{className:"w-full",children:[f&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:f}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{ref:x,className:`
|
|
315
|
-
w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
|
|
316
|
-
px-3 py-2 pr-10 text-sm text-slate-200
|
|
317
|
-
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
318
|
-
disabled:opacity-50 disabled:cursor-not-allowed
|
|
319
|
-
transition-all duration-200
|
|
320
|
-
${o?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
321
|
-
${i}
|
|
322
|
-
`,value:h,onChange:E,...v,children:m?m.map(N=>s.jsx("option",{value:N.value,children:N.label},N.value)):S}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:s.jsx(Wy,{className:"h-4 w-4"})})]}),o?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:o}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});vr.displayName="Select";const xp=({tabs:i,activeTab:f,onChange:o,className:r=""})=>{var v,x;const[m,h]=St.useState((v=i[0])==null?void 0:v.id),y=f||m,S=E=>{o?o(E):h(E)};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:i.map(E=>s.jsx("button",{onClick:()=>S(E.id),className:`
|
|
323
|
-
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
324
|
-
${y===E.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
325
|
-
`,children:E.label},E.id))})}),s.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(x=i.find(E=>E.id===y))==null?void 0:x.content})]})},bm=St.forwardRef(({className:i="",label:f,checked:o,onChange:r,...m},h)=>{const y=S=>{r&&r(S.target.checked)};return s.jsxs("label",{className:`inline-flex items-center cursor-pointer ${i}`,children:[s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"checkbox",className:"sr-only peer",ref:h,checked:o,onChange:y,...m}),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"})]}),f&&s.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:f})]})});bm.displayName="Switch";const yr=[{label:"Every 30 minutes",value:"*/30 * * * *"},{label:"Every hour",value:"0 * * * *"},{label:"Every 3 hours",value:"0 */3 * * *"},{label:"Every 6 hours",value:"0 */6 * * *"},{label:"Every 12 hours",value:"0 */12 * * *"},{label:"Daily at midnight",value:"0 0 * * *"},{label:"Daily at 9 AM",value:"0 9 * * *"},{label:"Weekdays at 9 AM",value:"0 9 * * 1-5"},{label:"Custom",value:"__custom__"}];function Sm(i){if(!i)return"No schedule set";const f=i.trim(),o=yr.find(x=>x.value===f);if(o&&o.value!=="__custom__")return o.label;const r=f.split(/\s+/);if(r.length!==5)return f;const[m,h,y,S,v]=r;if(m.startsWith("*/")&&h==="*"&&y==="*"&&S==="*"&&v==="*"){const x=parseInt(m.slice(2));return x===1?"Every minute":`Every ${x} minutes`}if(m==="0"&&h.startsWith("*/")&&y==="*"&&S==="*"&&v==="*"){const x=parseInt(h.slice(2));return x===1?"Every hour":`Every ${x} hours`}if(m==="0"&&h==="*"&&y==="*"&&S==="*"&&v==="*")return"Every hour";if(y==="*"&&S==="*"&&v==="1-5"){const x=parseInt(h),E=parseInt(m);if(!isNaN(x)&&!isNaN(E))return`Weekdays at ${x}:${E.toString().padStart(2,"0")}`}if(y==="*"&&S==="*"&&(v==="*"||v==="0-6")){const x=parseInt(h),E=parseInt(m);if(!isNaN(x)&&!isNaN(E))return`Daily at ${x}:${E.toString().padStart(2,"0")}`}return f}function vp(i){const f=yr.find(o=>o.value===i.trim());return f?f.value:"__custom__"}const Z0=({label:i,description:f,value:o,onChange:r})=>{const m=vp(o),h=m==="__custom__";return s.jsxs(Qe,{className:"p-5 space-y-4",children:[s.jsxs("div",{children:[s.jsx("h4",{className:"text-base font-medium text-slate-200",children:i}),s.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:f})]}),s.jsx(vr,{label:"Schedule Preset",value:m,onChange:y=>{y!=="__custom__"&&r(y)},options:yr.map(y=>({label:y.label,value:y.value}))}),h&&s.jsx(Bl,{label:"Cron Expression",value:o,onChange:y=>r(y.target.value),placeholder:"* * * * *"}),s.jsxs("div",{className:"flex items-center space-x-2 p-2.5 rounded-lg bg-slate-950/60 border border-slate-800",children:[s.jsx(hm,{className:"h-4 w-4 text-indigo-400 shrink-0"}),s.jsx("span",{className:"text-sm text-slate-300",children:Sm(o)}),s.jsx("span",{className:"text-xs text-slate-600 font-mono ml-auto",children:o})]})]})},V0=i=>({provider:i.provider,defaultBranch:i.defaultBranch,branchPrefix:i.branchPrefix,reviewerEnabled:i.reviewerEnabled,minReviewScore:i.minReviewScore,maxRuntime:i.maxRuntime,reviewerMaxRuntime:i.reviewerMaxRuntime,maxLogSize:i.maxLogSize,cronSchedule:i.cronSchedule,reviewerSchedule:i.reviewerSchedule}),yp=()=>{var ft,ke;const{addToast:i,projectName:f,selectedProjectId:o}=Zt(),[r,m]=St.useState(!1),[h,y]=St.useState(null),{data:S,loading:v,error:x,refetch:E}=ql(ap,[o]),{data:N=[],loading:w,refetch:G}=ql(np,[o]),{data:Z,refetch:L}=ql(or,[o]),[H,B]=St.useState(!1),X=((ft=Z==null?void 0:Z.crontab)==null?void 0:ft.installed)??!1,q=((ke=Z==null?void 0:Z.crontab)==null?void 0:ke.entries)??[],fe=async()=>{B(!0);try{await hr(),i({title:"Cron Installed",message:"Crontab entries have been installed.",type:"success"}),L()}catch(W){i({title:"Install Failed",message:W instanceof Error?W.message:"Failed to install cron",type:"error"})}finally{B(!1)}},he=async()=>{B(!0);try{await xr(),i({title:"Cron Removed",message:"Crontab entries have been removed.",type:"success"}),L()}catch(W){i({title:"Uninstall Failed",message:W instanceof Error?W.message:"Failed to uninstall cron",type:"error"})}finally{B(!1)}},Re=async()=>{if(h){m(!0);try{await Q0({provider:h.provider,defaultBranch:h.defaultBranch,branchPrefix:h.branchPrefix,reviewerEnabled:h.reviewerEnabled,minReviewScore:h.minReviewScore,maxRuntime:h.maxRuntime,reviewerMaxRuntime:h.reviewerMaxRuntime,maxLogSize:h.maxLogSize,cronSchedule:h.cronSchedule,reviewerSchedule:h.reviewerSchedule}),E()}catch(W){i({title:"Save Failed",message:W instanceof Error?W.message:"Failed to save",type:"error"}),m(!1);return}m(!1),await fe()}};St.useEffect(()=>{S&&y(V0(S))},[S]);const $=(W,Ke)=>{y(He=>He&&{...He,[W]:Ke})},we=async()=>{if(h){m(!0);try{await Q0({provider:h.provider,defaultBranch:h.defaultBranch,branchPrefix:h.branchPrefix,reviewerEnabled:h.reviewerEnabled,minReviewScore:h.minReviewScore,maxRuntime:h.maxRuntime,reviewerMaxRuntime:h.reviewerMaxRuntime,maxLogSize:h.maxLogSize,cronSchedule:h.cronSchedule,reviewerSchedule:h.reviewerSchedule}),i({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),E(),G()}catch(W){i({title:"Save Failed",message:W instanceof Error?W.message:"Failed to save configuration",type:"error"})}finally{m(!1)}}},Ge=()=>{S&&(y(V0(S)),i({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))};if(v||!h)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(x)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(ua,{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:x.message}),s.jsx(je,{onClick:()=>E(),children:"Retry"})]});const lt=[{id:"general",label:"General",content:s.jsxs(Qe,{className:"p-6 space-y-4",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",children:[s.jsx(Bl,{label:"Project Name",value:f,disabled:!0}),s.jsx(vr,{label:"Provider",value:h.provider,onChange:W=>$("provider",W),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),s.jsx(Bl,{label:"Default Branch",value:h.defaultBranch,onChange:W=>$("defaultBranch",W.target.value)}),s.jsx(Bl,{label:"Branch Prefix",value:h.branchPrefix,onChange:W=>$("branchPrefix",W.target.value)}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(bm,{label:"Enable Automated Reviews",checked:h.reviewerEnabled,onChange:W=>$("reviewerEnabled",W)})})]})]})},{id:"runtime",label:"Runtime",content:s.jsxs(Qe,{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:h.minReviewScore,onChange:W=>$("minReviewScore",Number(W.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:h.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(Bl,{label:"Max Runtime (Executor)",type:"number",value:String(h.maxRuntime),onChange:W=>$("maxRuntime",Number(W.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(Bl,{label:"Max Runtime (Reviewer)",type:"number",value:String(h.reviewerMaxRuntime),onChange:W=>$("reviewerMaxRuntime",Number(W.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(Bl,{label:"Max Log Size",type:"number",value:String(h.maxLogSize),onChange:W=>$("maxLogSize",Number(W.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"bytes"})})]})]})},{id:"schedules",label:"Schedules",content:s.jsxs("div",{className:"space-y-6",children:[s.jsxs(Qe,{className:`p-4 flex items-center justify-between ${X?"border-green-500/30":"border-amber-500/30"}`,children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-2 rounded-lg ${X?"bg-green-500/10 text-green-400":"bg-amber-500/10 text-amber-400"}`,children:X?s.jsx(vi,{className:"h-5 w-5"}):s.jsx(rr,{className:"h-5 w-5"})}),s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:X?"Cron Jobs Active":"Cron Jobs Not Installed"}),s.jsx("p",{className:"text-xs text-slate-500",children:X?`${q.length} crontab entr${q.length===1?"y":"ies"} installed`:"Configure schedules below, then click Install to activate"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[!X&&s.jsx(je,{size:"sm",onClick:Re,loading:r||H,children:"Save & Install"}),s.jsx(je,{size:"sm",variant:X?"danger":"outline",onClick:X?he:fe,loading:H,children:X?"Uninstall":"Install"})]})]}),s.jsx(Z0,{label:"Executor Schedule",description:"How often to pick up and process the next ready PRD.",value:h.cronSchedule,onChange:W=>$("cronSchedule",W)}),s.jsx(Z0,{label:"Reviewer Schedule",description:"How often to review open pull requests for code quality.",value:h.reviewerSchedule,onChange:W=>$("reviewerSchedule",W)}),X&&q.length>0&&s.jsxs(Qe,{className:"p-4",children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-3",children:"Active Crontab Entries"}),s.jsx("div",{className:"space-y-3",children:q.map((W,Ke)=>{const He=W.match(/^([^\s]+\s+[^\s]+\s+[^\s]+\s+[^\s]+\s+[^\s]+)\s/),C=He?He[1]:"",Y=W.includes(" review "),I=Y?"Reviewer":"Executor";return s.jsx("div",{className:"p-3 bg-slate-950/60 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[10px] font-bold uppercase ${Y?"bg-purple-500/10 text-purple-400 border border-purple-500/20":"bg-indigo-500/10 text-indigo-400 border border-indigo-500/20"}`,children:I}),s.jsx("span",{className:"text-sm text-slate-300",children:Sm(C)})]}),s.jsx("span",{className:"text-xs text-slate-600 font-mono",children:C})]})},Ke)})})]})]})},{id:"env",label:"Provider Env",content:s.jsx(Qe,{className:"p-6",children:s.jsx("div",{className:"space-y-2",children:Object.entries(S.providerEnv).length===0?s.jsx("p",{className:"text-slate-400 text-sm",children:"No provider environment variables configured."}):Object.entries(S.providerEnv).map(([W,Ke])=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsx("span",{className:"text-sm font-mono text-slate-300",children:W}),s.jsx("span",{className:"text-sm text-slate-500",children:Ke})]},W))})})}];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(xp,{tabs:lt}),s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[s.jsxs(je,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:Ge,children:[s.jsx(Ug,{className:"h-4 w-4 mr-2"}),"Reset"]}),s.jsxs(je,{onClick:we,loading:r,children:[s.jsx(Bg,{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(mm,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),s.jsx(Qe,{className:"divide-y divide-slate-800",children:w?s.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):N.map((W,Ke)=>{const He=W.status==="pass",C=W.status==="warn",Y=He?"bg-green-500/10 text-green-400 border-green-500/20":C?"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:W.name}),s.jsx("p",{className:"text-xs text-slate-500",children:W.detail})]}),s.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${Y}`,children:W.status.toUpperCase()})]},`${W.name}-${Ke}`)})})]})]})},gp=({toast:i,onDismiss:f})=>{const o={success:s.jsx(fr,{className:"h-5 w-5 text-green-400"}),error:s.jsx(ua,{className:"h-5 w-5 text-red-400"}),info:s.jsx(Eg,{className:"h-5 w-5 text-blue-400"}),warning:s.jsx(Xg,{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:`
|
|
326
|
-
pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
|
|
327
|
-
bg-slate-900 border border-slate-800 border-l-4 ${r[i.type]}
|
|
328
|
-
shadow-lg ring-1 ring-black ring-opacity-5 transition-all
|
|
329
|
-
animate-in slide-in-from-right-full fade-in duration-300
|
|
330
|
-
`,children:s.jsx("div",{className:"p-4",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"flex-shrink-0",children:o[i.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:i.title}),i.message&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:i.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:()=>f(i.id),children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(gm,{className:"h-5 w-5"})]})})]})})})},pp=()=>{const{toasts:i,removeToast:f}=Zt();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:i.map(o=>s.jsx(gp,{toast:o,onDismiss:f},o.id))})};function bp(){const{setGlobalMode:i,setProjects:f,selectProject:o,selectedProjectId:r}=Zt();T.useEffect(()=>{Pg().then(m=>{i(!0),f(m);const h=m.filter(y=>y.valid);r&&h.some(y=>y.name===r)?o(r):h.length>0&&o(h[0].name)}).catch(()=>{i(!1)})},[])}const Sp=()=>(bp(),s.jsx(Ny,{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(ip,{}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[s.jsx(sp,{}),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(Pv,{children:[s.jsx(Hl,{path:"/",element:s.jsx(rp,{})}),s.jsx(Hl,{path:"/prds",element:s.jsx(op,{})}),s.jsx(Hl,{path:"/prs",element:s.jsx(dp,{})}),s.jsx(Hl,{path:"/actions",element:s.jsx(mp,{})}),s.jsx(Hl,{path:"/logs",element:s.jsx(hp,{})}),s.jsx(Hl,{path:"/settings",element:s.jsx(yp,{})}),s.jsx(Hl,{path:"*",element:s.jsx(Fv,{to:"/",replace:!0})})]})})})]}),s.jsx(pp,{})]})})),jm=document.getElementById("root");if(!jm)throw new Error("Could not find root element to mount to");const jp=tv.createRoot(jm);jp.render(s.jsx(St.StrictMode,{children:s.jsx(Sp,{})}));
|