@jonit-dev/night-watch-cli 1.7.9 → 1.7.10

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.
Files changed (57) hide show
  1. package/dist/cli.js +3 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/dashboard/tab-config.d.ts.map +1 -1
  4. package/dist/commands/dashboard/tab-config.js +1 -0
  5. package/dist/commands/dashboard/tab-config.js.map +1 -1
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/commands/init.js +131 -19
  8. package/dist/commands/init.js.map +1 -1
  9. package/dist/commands/install.d.ts +4 -0
  10. package/dist/commands/install.d.ts.map +1 -1
  11. package/dist/commands/install.js +24 -0
  12. package/dist/commands/install.js.map +1 -1
  13. package/dist/commands/qa.d.ts +30 -0
  14. package/dist/commands/qa.d.ts.map +1 -0
  15. package/dist/commands/qa.js +159 -0
  16. package/dist/commands/qa.js.map +1 -0
  17. package/dist/commands/review.d.ts +1 -0
  18. package/dist/commands/review.d.ts.map +1 -1
  19. package/dist/commands/review.js +10 -0
  20. package/dist/commands/review.js.map +1 -1
  21. package/dist/commands/run.d.ts.map +1 -1
  22. package/dist/commands/run.js +16 -1
  23. package/dist/commands/run.js.map +1 -1
  24. package/dist/commands/status.d.ts.map +1 -1
  25. package/dist/commands/status.js +3 -0
  26. package/dist/commands/status.js.map +1 -1
  27. package/dist/config.d.ts.map +1 -1
  28. package/dist/config.js +155 -1
  29. package/dist/config.js.map +1 -1
  30. package/dist/constants.d.ts +20 -1
  31. package/dist/constants.d.ts.map +1 -1
  32. package/dist/constants.js +40 -0
  33. package/dist/constants.js.map +1 -1
  34. package/dist/server/index.d.ts.map +1 -1
  35. package/dist/server/index.js +4 -2
  36. package/dist/server/index.js.map +1 -1
  37. package/dist/types.d.ts +43 -1
  38. package/dist/types.d.ts.map +1 -1
  39. package/dist/utils/notify.d.ts.map +1 -1
  40. package/dist/utils/notify.js +18 -0
  41. package/dist/utils/notify.js.map +1 -1
  42. package/dist/utils/status-data.d.ts +4 -0
  43. package/dist/utils/status-data.d.ts.map +1 -1
  44. package/dist/utils/status-data.js +13 -3
  45. package/dist/utils/status-data.js.map +1 -1
  46. package/package.json +1 -1
  47. package/scripts/night-watch-cron.sh +43 -2
  48. package/scripts/night-watch-helpers.sh +25 -2
  49. package/scripts/night-watch-pr-reviewer-cron.sh +70 -0
  50. package/scripts/night-watch-qa-cron.sh +269 -0
  51. package/templates/night-watch-qa.md +157 -0
  52. package/templates/night-watch.config.json +14 -1
  53. package/web/dist/assets/index-BPW-7_1C.js +380 -0
  54. package/web/dist/assets/index-DVqjjJEO.css +1 -0
  55. package/web/dist/index.html +2 -2
  56. package/web/dist/assets/index-C64sy08d.js +0 -360
  57. package/web/dist/assets/index-DzoZeo_Y.css +0 -1
@@ -0,0 +1,380 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))r(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const x of h.addedNodes)x.tagName==="LINK"&&x.rel==="modulepreload"&&r(x)}).observe(document,{childList:!0,subtree:!0});function f(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(m){if(m.ep)return;m.ep=!0;const h=f(m);fetch(m.href,h)}})();function rr(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Kc={exports:{}},Zn={};/**
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 C0;function ov(){if(C0)return Zn;C0=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function f(r,m,h){var x=null;if(h!==void 0&&(x=""+h),m.key!==void 0&&(x=""+m.key),"key"in m){h={};for(var y in m)y!=="key"&&(h[y]=m[y])}else h=m;return m=h.ref,{$$typeof:u,type:r,key:x,ref:m!==void 0?m:null,props:h}}return Zn.Fragment=o,Zn.jsx=f,Zn.jsxs=f,Zn}var R0;function fv(){return R0||(R0=1,Kc.exports=ov()),Kc.exports}var s=fv(),Jc={exports:{}},ue={};/**
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 T0;function dv(){if(T0)return ue;T0=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),z=Symbol.iterator;function A(j){return j===null||typeof j!="object"?null:(j=z&&j[z]||j["@@iterator"],typeof j=="function"?j:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,D={};function G(j,Y,J){this.props=j,this.context=Y,this.refs=D,this.updater=J||H}G.prototype.isReactComponent={},G.prototype.setState=function(j,Y){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,Y,"setState")},G.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function X(){}X.prototype=G.prototype;function q(j,Y,J){this.props=j,this.context=Y,this.refs=D,this.updater=J||H}var ae=q.prototype=new X;ae.constructor=q,_(ae,G.prototype),ae.isPureReactComponent=!0;var Q=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function te(j,Y,J){var F=J.ref;return{$$typeof:u,type:j,key:Y,ref:F!==void 0?F:null,props:J}}function ge(j,Y){return te(j.type,Y,j.props)}function P(j){return typeof j=="object"&&j!==null&&j.$$typeof===u}function k(j){var Y={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(J){return Y[J]})}var le=/\/+/g;function ye(j,Y){return typeof j=="object"&&j!==null&&j.key!=null?k(""+j.key):Y.toString(36)}function Me(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then($,$):(j.status="pending",j.then(function(Y){j.status==="pending"&&(j.status="fulfilled",j.value=Y)},function(Y){j.status==="pending"&&(j.status="rejected",j.reason=Y)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function U(j,Y,J,F,ce){var de=typeof j;(de==="undefined"||de==="boolean")&&(j=null);var Se=!1;if(j===null)Se=!0;else switch(de){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(j.$$typeof){case u:case o:Se=!0;break;case N:return Se=j._init,U(Se(j._payload),Y,J,F,ce)}}if(Se)return ce=ce(j),Se=F===""?"."+ye(j,0):F,Q(ce)?(J="",Se!=null&&(J=Se.replace(le,"$&/")+"/"),U(ce,Y,J,"",function(Fa){return Fa})):ce!=null&&(P(ce)&&(ce=ge(ce,J+(ce.key==null||j&&j.key===ce.key?"":(""+ce.key).replace(le,"$&/")+"/")+Se)),Y.push(ce)),1;Se=0;var it=F===""?".":F+":";if(Q(j))for(var Ge=0;Ge<j.length;Ge++)F=j[Ge],de=it+ye(F,Ge),Se+=U(F,Y,J,de,ce);else if(Ge=A(j),typeof Ge=="function")for(j=Ge.call(j),Ge=0;!(F=j.next()).done;)F=F.value,de=it+ye(F,Ge++),Se+=U(F,Y,J,de,ce);else if(de==="object"){if(typeof j.then=="function")return U(Me(j),Y,J,F,ce);throw Y=String(j),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Se}function V(j,Y,J){if(j==null)return j;var F=[],ce=0;return U(j,F,"","",function(de){return Y.call(J,de,ce++)}),F}function se(j){if(j._status===-1){var Y=j._result;Y=Y(),Y.then(function(J){(j._status===0||j._status===-1)&&(j._status=1,j._result=J)},function(J){(j._status===0||j._status===-1)&&(j._status=2,j._result=J)}),j._status===-1&&(j._status=0,j._result=Y)}if(j._status===1)return j._result.default;throw j._result}var Ce=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},ze={map:V,forEach:function(j,Y,J){V(j,function(){Y.apply(this,arguments)},J)},count:function(j){var Y=0;return V(j,function(){Y++}),Y},toArray:function(j){return V(j,function(Y){return Y})||[]},only:function(j){if(!P(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return ue.Activity=S,ue.Children=ze,ue.Component=G,ue.Fragment=f,ue.Profiler=m,ue.PureComponent=q,ue.StrictMode=r,ue.Suspense=p,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ue.__COMPILER_RUNTIME={__proto__:null,c:function(j){return K.H.useMemoCache(j)}},ue.cache=function(j){return function(){return j.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(j,Y,J){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var F=_({},j.props),ce=j.key;if(Y!=null)for(de in Y.key!==void 0&&(ce=""+Y.key),Y)!Z.call(Y,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Y.ref===void 0||(F[de]=Y[de]);var de=arguments.length-2;if(de===1)F.children=J;else if(1<de){for(var Se=Array(de),it=0;it<de;it++)Se[it]=arguments[it+2];F.children=Se}return te(j.type,ce,F)},ue.createContext=function(j){return j={$$typeof:x,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:h,_context:j},j},ue.createElement=function(j,Y,J){var F,ce={},de=null;if(Y!=null)for(F in Y.key!==void 0&&(de=""+Y.key),Y)Z.call(Y,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ce[F]=Y[F]);var Se=arguments.length-2;if(Se===1)ce.children=J;else if(1<Se){for(var it=Array(Se),Ge=0;Ge<Se;Ge++)it[Ge]=arguments[Ge+2];ce.children=it}if(j&&j.defaultProps)for(F in Se=j.defaultProps,Se)ce[F]===void 0&&(ce[F]=Se[F]);return te(j,de,ce)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(j){return{$$typeof:y,render:j}},ue.isValidElement=P,ue.lazy=function(j){return{$$typeof:N,_payload:{_status:-1,_result:j},_init:se}},ue.memo=function(j,Y){return{$$typeof:v,type:j,compare:Y===void 0?null:Y}},ue.startTransition=function(j){var Y=K.T,J={};K.T=J;try{var F=j(),ce=K.S;ce!==null&&ce(J,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then($,Ce)}catch(de){Ce(de)}finally{Y!==null&&J.types!==null&&(Y.types=J.types),K.T=Y}},ue.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ue.use=function(j){return K.H.use(j)},ue.useActionState=function(j,Y,J){return K.H.useActionState(j,Y,J)},ue.useCallback=function(j,Y){return K.H.useCallback(j,Y)},ue.useContext=function(j){return K.H.useContext(j)},ue.useDebugValue=function(){},ue.useDeferredValue=function(j,Y){return K.H.useDeferredValue(j,Y)},ue.useEffect=function(j,Y){return K.H.useEffect(j,Y)},ue.useEffectEvent=function(j){return K.H.useEffectEvent(j)},ue.useId=function(){return K.H.useId()},ue.useImperativeHandle=function(j,Y,J){return K.H.useImperativeHandle(j,Y,J)},ue.useInsertionEffect=function(j,Y){return K.H.useInsertionEffect(j,Y)},ue.useLayoutEffect=function(j,Y){return K.H.useLayoutEffect(j,Y)},ue.useMemo=function(j,Y){return K.H.useMemo(j,Y)},ue.useOptimistic=function(j,Y){return K.H.useOptimistic(j,Y)},ue.useReducer=function(j,Y,J){return K.H.useReducer(j,Y,J)},ue.useRef=function(j){return K.H.useRef(j)},ue.useState=function(j){return K.H.useState(j)},ue.useSyncExternalStore=function(j,Y,J){return K.H.useSyncExternalStore(j,Y,J)},ue.useTransition=function(){return K.H.useTransition()},ue.version="19.2.4",ue}var _0;function or(){return _0||(_0=1,Jc.exports=dv()),Jc.exports}var E=or();const Ze=rr(E);var $c={exports:{}},Vn={},Wc={exports:{}},Fc={};/**
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 M0;function mv(){return M0||(M0=1,(function(u){function o(U,V){var se=U.length;U.push(V);e:for(;0<se;){var Ce=se-1>>>1,ze=U[Ce];if(0<m(ze,V))U[Ce]=V,U[se]=ze,se=Ce;else break e}}function f(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var V=U[0],se=U.pop();if(se!==V){U[0]=se;e:for(var Ce=0,ze=U.length,j=ze>>>1;Ce<j;){var Y=2*(Ce+1)-1,J=U[Y],F=Y+1,ce=U[F];if(0>m(J,se))F<ze&&0>m(ce,J)?(U[Ce]=ce,U[F]=se,Ce=F):(U[Ce]=J,U[Y]=se,Ce=Y);else if(F<ze&&0>m(ce,se))U[Ce]=ce,U[F]=se,Ce=F;else break e}}return V}function m(U,V){var se=U.sortIndex-V.sortIndex;return se!==0?se:U.id-V.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;u.unstable_now=function(){return h.now()}}else{var x=Date,y=x.now();u.unstable_now=function(){return x.now()-y}}var p=[],v=[],N=1,S=null,z=3,A=!1,H=!1,_=!1,D=!1,G=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function ae(U){for(var V=f(v);V!==null;){if(V.callback===null)r(v);else if(V.startTime<=U)r(v),V.sortIndex=V.expirationTime,o(p,V);else break;V=f(v)}}function Q(U){if(_=!1,ae(U),!H)if(f(p)!==null)H=!0,$||($=!0,k());else{var V=f(v);V!==null&&Me(Q,V.startTime-U)}}var $=!1,K=-1,Z=5,te=-1;function ge(){return D?!0:!(u.unstable_now()-te<Z)}function P(){if(D=!1,$){var U=u.unstable_now();te=U;var V=!0;try{e:{H=!1,_&&(_=!1,X(K),K=-1),A=!0;var se=z;try{t:{for(ae(U),S=f(p);S!==null&&!(S.expirationTime>U&&ge());){var Ce=S.callback;if(typeof Ce=="function"){S.callback=null,z=S.priorityLevel;var ze=Ce(S.expirationTime<=U);if(U=u.unstable_now(),typeof ze=="function"){S.callback=ze,ae(U),V=!0;break t}S===f(p)&&r(p),ae(U)}else r(p);S=f(p)}if(S!==null)V=!0;else{var j=f(v);j!==null&&Me(Q,j.startTime-U),V=!1}}break e}finally{S=null,z=se,A=!1}V=void 0}}finally{V?k():$=!1}}}var k;if(typeof q=="function")k=function(){q(P)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ye=le.port2;le.port1.onmessage=P,k=function(){ye.postMessage(null)}}else k=function(){G(P,0)};function Me(U,V){K=G(function(){U(u.unstable_now())},V)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(U){U.callback=null},u.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<U?Math.floor(1e3/U):5},u.unstable_getCurrentPriorityLevel=function(){return z},u.unstable_next=function(U){switch(z){case 1:case 2:case 3:var V=3;break;default:V=z}var se=z;z=V;try{return U()}finally{z=se}},u.unstable_requestPaint=function(){D=!0},u.unstable_runWithPriority=function(U,V){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var se=z;z=U;try{return V()}finally{z=se}},u.unstable_scheduleCallback=function(U,V,se){var Ce=u.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Ce+se:Ce):se=Ce,U){case 1:var ze=-1;break;case 2:ze=250;break;case 5:ze=1073741823;break;case 4:ze=1e4;break;default:ze=5e3}return ze=se+ze,U={id:N++,callback:V,priorityLevel:U,startTime:se,expirationTime:ze,sortIndex:-1},se>Ce?(U.sortIndex=se,o(v,U),f(p)===null&&U===f(v)&&(_?(X(K),K=-1):_=!0,Me(Q,se-Ce))):(U.sortIndex=ze,o(p,U),H||A||(H=!0,$||($=!0,k()))),U},u.unstable_shouldYield=ge,u.unstable_wrapCallback=function(U){var V=z;return function(){var se=z;z=V;try{return U.apply(this,arguments)}finally{z=se}}}})(Fc)),Fc}var z0;function hv(){return z0||(z0=1,Wc.exports=mv()),Wc.exports}var Ic={exports:{}},nt={};/**
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 A0;function xv(){if(A0)return nt;A0=1;var u=or();function o(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)v+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var r={d:{f,r:function(){throw Error(o(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(p,v,N){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:S==null?null:""+S,children:p,containerInfo:v,implementation:N}}var x=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,nt.createPortal=function(p,v){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(o(299));return h(p,v,null,N)},nt.flushSync=function(p){var v=x.T,N=r.p;try{if(x.T=null,r.p=2,p)return p()}finally{x.T=v,r.p=N,r.d.f()}},nt.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(p,v))},nt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},nt.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var N=v.as,S=y(N,v.crossOrigin),z=typeof v.integrity=="string"?v.integrity:void 0,A=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;N==="style"?r.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:S,integrity:z,fetchPriority:A}):N==="script"&&r.d.X(p,{crossOrigin:S,integrity:z,fetchPriority:A,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},nt.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var N=y(v.as,v.crossOrigin);r.d.M(p,{crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(p)},nt.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var N=v.as,S=y(N,v.crossOrigin);r.d.L(p,N,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},nt.preloadModule=function(p,v){if(typeof p=="string")if(v){var N=y(v.as,v.crossOrigin);r.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(p)},nt.requestFormReset=function(p){r.d.r(p)},nt.unstable_batchedUpdates=function(p,v){return p(v)},nt.useFormState=function(p,v,N){return x.H.useFormState(p,v,N)},nt.useFormStatus=function(){return x.H.useHostTransitionStatus()},nt.version="19.2.4",nt}var D0;function em(){if(D0)return Ic.exports;D0=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),Ic.exports=xv(),Ic.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 O0;function vv(){if(O0)return Vn;O0=1;var u=hv(),o=or(),f=em();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 x(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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return p(n),e;if(i===a)return p(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=i;break}if(d===a){c=!0,a=n,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,a=n;break}if(d===a){c=!0,a=i,l=n;break}d=d.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,z=Symbol.for("react.element"),A=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),q=Symbol.for("react.context"),ae=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function k(e){return e===null||typeof e!="object"?null:(e=P&&e[P]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case G:return"Profiler";case D:return"StrictMode";case Q:return"Suspense";case $:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case q:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case ae:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var Me=Array.isArray,U=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Ce=[],ze=-1;function j(e){return{current:e}}function Y(e){0>ze||(e.current=Ce[ze],Ce[ze]=null,ze--)}function J(e,t){ze++,Ce[ze]=e.current,e.current=t}var F=j(null),ce=j(null),de=j(null),Se=j(null);function it(e,t){switch(J(de,t),J(ce,e),J(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?$d(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=$d(t),e=Wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(F),J(F,e)}function Ge(){Y(F),Y(ce),Y(de)}function Fa(e){e.memoizedState!==null&&J(Se,e);var t=F.current,l=Wd(t,e.type);t!==l&&(J(ce,e),J(F,l))}function Pn(e){ce.current===e&&(Y(F),Y(ce)),Se.current===e&&(Y(Se),kn._currentValue=se)}var _i,Sr;function Gl(e){if(_i===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);_i=t&&t[1]||"",Sr=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+_i+e+Sr}var Mi=!1;function zi(e,t){if(!e||Mi)return"";Mi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(M){var T=M}Reflect.construct(e,[],L)}else{try{L.call()}catch(M){T=M}e.call(L.prototype)}}else{try{throw Error()}catch(M){T=M}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(M){if(M&&T&&typeof M.stack=="string")return[M.stack,T.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var g=c.split(`
44
+ `),R=d.split(`
45
+ `);for(n=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;n<R.length&&!R[n].includes("DetermineComponentFrameRoot");)n++;if(a===g.length||n===R.length)for(a=g.length-1,n=R.length-1;1<=a&&0<=n&&g[a]!==R[n];)n--;for(;1<=a&&0<=n;a--,n--)if(g[a]!==R[n]){if(a!==1||n!==1)do if(a--,n--,0>n||g[a]!==R[n]){var O=`
46
+ `+g[a].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=a&&0<=n);break}}}finally{Mi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Gl(l):""}function km(e,t){switch(e.tag){case 26:case 27:case 5:return Gl(e.type);case 16:return Gl("Lazy");case 13:return e.child!==t&&t!==null?Gl("Suspense Fallback"):Gl("Suspense");case 19:return Gl("SuspenseList");case 0:case 15:return zi(e.type,!1);case 11:return zi(e.type.render,!1);case 1:return zi(e.type,!0);case 31:return Gl("Activity");default:return""}}function Er(e){try{var t="",l=null;do t+=km(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Ai=Object.prototype.hasOwnProperty,Di=u.unstable_scheduleCallback,Oi=u.unstable_cancelCallback,Gm=u.unstable_shouldYield,Xm=u.unstable_requestPaint,pt=u.unstable_now,Qm=u.unstable_getCurrentPriorityLevel,wr=u.unstable_ImmediatePriority,Cr=u.unstable_UserBlockingPriority,es=u.unstable_NormalPriority,Zm=u.unstable_LowPriority,Rr=u.unstable_IdlePriority,Vm=u.log,Km=u.unstable_setDisableYieldValue,Ia=null,gt=null;function xl(e){if(typeof Vm=="function"&&Km(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Ia,e)}catch{}}var yt=Math.clz32?Math.clz32:Wm,Jm=Math.log,$m=Math.LN2;function Wm(e){return e>>>=0,e===0?32:31-(Jm(e)/$m|0)|0}var ts=256,ls=262144,as=4194304;function Xl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ns(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Xl(a):(c&=d,c!==0?n=Xl(c):l||(l=d&~e,l!==0&&(n=Xl(l))))):(d=a&~i,d!==0?n=Xl(d):c!==0?n=Xl(c):l||(l=a&~e,l!==0&&(n=Xl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function Pa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Fm(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 Tr(){var e=as;return as<<=1,(as&62914560)===0&&(as=4194304),e}function Ui(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function en(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Im(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,g=e.expirationTimes,R=e.hiddenUpdates;for(l=c&~l;0<l;){var O=31-yt(l),L=1<<O;d[O]=0,g[O]=-1;var T=R[O];if(T!==null)for(R[O]=null,O=0;O<T.length;O++){var M=T[O];M!==null&&(M.lane&=-536870913)}l&=~L}a!==0&&_r(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function _r(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-yt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Mr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-yt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function zr(e,t){var l=t&-t;return l=(l&42)!==0?1:Hi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Hi(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 Bi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ar(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:y0(e.type))}function Dr(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var vl=Math.random().toString(36).slice(2),Pe="__reactFiber$"+vl,ct="__reactProps$"+vl,ra="__reactContainer$"+vl,Li="__reactEvents$"+vl,Pm="__reactListeners$"+vl,eh="__reactHandles$"+vl,Or="__reactResources$"+vl,tn="__reactMarker$"+vl;function qi(e){delete e[Pe],delete e[ct],delete e[Li],delete e[Pm],delete e[eh]}function oa(e){var t=e[Pe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ra]||l[Pe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=a0(e);e!==null;){if(l=e[Pe])return l;e=a0(e)}return t}e=l,l=e.parentNode}return null}function fa(e){if(e=e[Pe]||e[ra]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ln(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function da(e){var t=e[Or];return t||(t=e[Or]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[tn]=!0}var Ur=new Set,Hr={};function Ql(e,t){ma(e,t),ma(e+"Capture",t)}function ma(e,t){for(Hr[e]=t,e=0;e<t.length;e++)Ur.add(t[e])}var th=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]*$"),Br={},Lr={};function lh(e){return Ai.call(Lr,e)?!0:Ai.call(Br,e)?!1:th.test(e)?Lr[e]=!0:(Br[e]=!0,!1)}function ss(e,t,l){if(lh(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 is(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 $t(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 Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ah(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Yi(e){if(!e._valueTracker){var t=qr(e)?"checked":"value";e._valueTracker=ah(e,t,""+e[t])}}function Yr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=qr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function us(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 nh=/[\n"\\]/g;function _t(e){return e.replace(nh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ki(e,t,l,a,n,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Gi(e,c,Tt(t)):l!=null?Gi(e,c,Tt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Tt(d):e.removeAttribute("name")}function kr(e,t,l,a,n,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Yi(e);return}l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(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),Yi(e)}function Gi(e,t,l){t==="number"&&us(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ha(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=""+Tt(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 Gr(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function Xr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(Me(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Yi(e)}function xa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var sh=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 Qr(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||sh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Zr(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Qr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Qr(e,i,t[i])}function Xi(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 ih=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"]]),uh=/^[\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 cs(e){return uh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Wt(){}var Qi=null;function Zi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var va=null,pa=null;function Vr(e){var t=fa(e);if(t&&(e=t.stateNode)){var l=e[ct]||null;e:switch(e=t.stateNode,t.type){case"input":if(ki(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ct]||null;if(!n)throw Error(r(90));ki(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&&Yr(a)}break e;case"textarea":Gr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ha(e,!!l.multiple,t,!1)}}}var Vi=!1;function Kr(e,t,l){if(Vi)return e(t,l);Vi=!0;try{var a=e(t);return a}finally{if(Vi=!1,(va!==null||pa!==null)&&($s(),va&&(t=va,e=pa,pa=va=null,Vr(t),e)))for(t=0;t<e.length;t++)Vr(e[t])}}function an(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ct]||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 Ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ki=!1;if(Ft)try{var nn={};Object.defineProperty(nn,"passive",{get:function(){Ki=!0}}),window.addEventListener("test",nn,nn),window.removeEventListener("test",nn,nn)}catch{Ki=!1}var pl=null,Ji=null,rs=null;function Jr(){if(rs)return rs;var e,t=Ji,l=t.length,a,n="value"in pl?pl.value:pl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return rs=n.slice(e,1<a?1-a:void 0)}function os(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 fs(){return!0}function $r(){return!1}function rt(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?fs:$r,this.isPropagationStopped=$r,this}return S(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=fs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),t}var Zl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ds=rt(Zl),sn=S({},Zl,{view:0,detail:0}),ch=rt(sn),$i,Wi,un,ms=S({},sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ii,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!==un&&(un&&e.type==="mousemove"?($i=e.screenX-un.screenX,Wi=e.screenY-un.screenY):Wi=$i=0,un=e),$i)},movementY:function(e){return"movementY"in e?e.movementY:Wi}}),Wr=rt(ms),rh=S({},ms,{dataTransfer:0}),oh=rt(rh),fh=S({},sn,{relatedTarget:0}),Fi=rt(fh),dh=S({},Zl,{animationName:0,elapsedTime:0,pseudoElement:0}),mh=rt(dh),hh=S({},Zl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xh=rt(hh),vh=S({},Zl,{data:0}),Fr=rt(vh),ph={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gh={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"},yh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yh[e])?!!t[e]:!1}function Ii(){return bh}var jh=S({},sn,{key:function(e){if(e.key){var t=ph[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=os(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ii,charCode:function(e){return e.type==="keypress"?os(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?os(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Nh=rt(jh),Sh=S({},ms,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ir=rt(Sh),Eh=S({},sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ii}),wh=rt(Eh),Ch=S({},Zl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rh=rt(Ch),Th=S({},ms,{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}),_h=rt(Th),Mh=S({},Zl,{newState:0,oldState:0}),zh=rt(Mh),Ah=[9,13,27,32],Pi=Ft&&"CompositionEvent"in window,cn=null;Ft&&"documentMode"in document&&(cn=document.documentMode);var Dh=Ft&&"TextEvent"in window&&!cn,Pr=Ft&&(!Pi||cn&&8<cn&&11>=cn),eo=" ",to=!1;function lo(e,t){switch(e){case"keyup":return Ah.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ao(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function Oh(e,t){switch(e){case"compositionend":return ao(t);case"keypress":return t.which!==32?null:(to=!0,eo);case"textInput":return e=t.data,e===eo&&to?null:e;default:return null}}function Uh(e,t){if(ga)return e==="compositionend"||!Pi&&lo(e,t)?(e=Jr(),rs=Ji=pl=null,ga=!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 Pr&&t.locale!=="ko"?null:t.data;default:return null}}var Hh={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 no(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Hh[e.type]:t==="textarea"}function so(e,t,l,a){va?pa?pa.push(a):pa=[a]:va=a,t=li(t,"onChange"),0<t.length&&(l=new ds("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var rn=null,on=null;function Bh(e){Xd(e,0)}function hs(e){var t=ln(e);if(Yr(t))return e}function io(e,t){if(e==="change")return t}var uo=!1;if(Ft){var eu;if(Ft){var tu="oninput"in document;if(!tu){var co=document.createElement("div");co.setAttribute("oninput","return;"),tu=typeof co.oninput=="function"}eu=tu}else eu=!1;uo=eu&&(!document.documentMode||9<document.documentMode)}function ro(){rn&&(rn.detachEvent("onpropertychange",oo),on=rn=null)}function oo(e){if(e.propertyName==="value"&&hs(on)){var t=[];so(t,on,e,Zi(e)),Kr(Bh,t)}}function Lh(e,t,l){e==="focusin"?(ro(),rn=t,on=l,rn.attachEvent("onpropertychange",oo)):e==="focusout"&&ro()}function qh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return hs(on)}function Yh(e,t){if(e==="click")return hs(t)}function kh(e,t){if(e==="input"||e==="change")return hs(t)}function Gh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Gh;function fn(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Ai.call(t,n)||!bt(e[n],t[n]))return!1}return!0}function fo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mo(e,t){var l=fo(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=fo(l)}}function ho(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ho(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=us(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=us(e.document)}return t}function lu(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 Xh=Ft&&"documentMode"in document&&11>=document.documentMode,ya=null,au=null,dn=null,nu=!1;function vo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nu||ya==null||ya!==us(a)||(a=ya,"selectionStart"in a&&lu(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}),dn&&fn(dn,a)||(dn=a,a=li(au,"onSelect"),0<a.length&&(t=new ds("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ya)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ba={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},su={},po={};Ft&&(po=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Kl(e){if(su[e])return su[e];if(!ba[e])return e;var t=ba[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in po)return su[e]=t[l];return e}var go=Kl("animationend"),yo=Kl("animationiteration"),bo=Kl("animationstart"),Qh=Kl("transitionrun"),Zh=Kl("transitionstart"),Vh=Kl("transitioncancel"),jo=Kl("transitionend"),No=new Map,iu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");iu.push("scrollEnd");function qt(e,t){No.set(e,t),Ql(t,[e])}var xs=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)},Mt=[],ja=0,uu=0;function vs(){for(var e=ja,t=uu=ja=0;t<e;){var l=Mt[t];Mt[t++]=null;var a=Mt[t];Mt[t++]=null;var n=Mt[t];Mt[t++]=null;var i=Mt[t];if(Mt[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&So(l,n,i)}}function ps(e,t,l,a){Mt[ja++]=e,Mt[ja++]=t,Mt[ja++]=l,Mt[ja++]=a,uu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function cu(e,t,l,a){return ps(e,t,l,a),gs(e)}function Jl(e,t){return ps(e,null,null,t),gs(e)}function So(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-yt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function gs(e){if(50<On)throw On=0,pc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Na={};function Kh(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 jt(e,t,l,a){return new Kh(e,t,l,a)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function It(e,t){var l=e.alternate;return l===null?(l=jt(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 Eo(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 ys(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")ru(e)&&(c=1);else if(typeof e=="string")c=Ix(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=jt(31,l,t,n),e.elementType=te,e.lanes=i,e;case _:return $l(l.children,n,i,t);case D:c=8,n|=24;break;case G:return e=jt(12,l,t,n|2),e.elementType=G,e.lanes=i,e;case Q:return e=jt(13,l,t,n),e.elementType=Q,e.lanes=i,e;case $:return e=jt(19,l,t,n),e.elementType=$,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:c=10;break e;case X:c=9;break e;case ae:c=11;break e;case K:c=14;break e;case Z:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=jt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function $l(e,t,l,a){return e=jt(7,e,a,t),e.lanes=l,e}function ou(e,t,l){return e=jt(6,e,null,t),e.lanes=l,e}function wo(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function fu(e,t,l){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Co=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var l=Co.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Er(t)},Co.set(e,t),t)}return{value:e,source:t,stack:Er(t)}}var Sa=[],Ea=0,bs=null,mn=0,At=[],Dt=0,gl=null,Gt=1,Xt="";function Pt(e,t){Sa[Ea++]=mn,Sa[Ea++]=bs,bs=e,mn=t}function Ro(e,t,l){At[Dt++]=Gt,At[Dt++]=Xt,At[Dt++]=gl,gl=e;var a=Gt;e=Xt;var n=32-yt(a)-1;a&=~(1<<n),l+=1;var i=32-yt(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Gt=1<<32-yt(t)+n|l<<n|a,Xt=i+e}else Gt=1<<i|l<<n|a,Xt=e}function du(e){e.return!==null&&(Pt(e,1),Ro(e,1,0))}function mu(e){for(;e===bs;)bs=Sa[--Ea],Sa[Ea]=null,mn=Sa[--Ea],Sa[Ea]=null;for(;e===gl;)gl=At[--Dt],At[Dt]=null,Xt=At[--Dt],At[Dt]=null,Gt=At[--Dt],At[Dt]=null}function To(e,t){At[Dt++]=Gt,At[Dt++]=Xt,At[Dt++]=gl,Gt=t.id,Xt=t.overflow,gl=e}var et=null,Oe=null,pe=!1,yl=null,Ot=!1,hu=Error(r(519));function bl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hn(zt(t,e)),hu}function _o(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Pe]=e,t[ct]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<Hn.length;l++)he(Hn[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),kr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Xr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Kd(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=Wt),t=!0):t=!1,t||bl(e,!0)}function Mo(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:et=et.return}}function wa(e){if(e!==et)return!1;if(!pe)return Mo(e),pe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ac(e.type,e.memoizedProps)),l=!l),l&&Oe&&bl(e),Mo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=l0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Oe=l0(e)}else t===27?(t=Oe,Ol(e.type)?(e=Bc,Bc=null,Oe=e):Oe=t):Oe=et?Ht(e.stateNode.nextSibling):null;return!0}function Wl(){Oe=et=null,pe=!1}function xu(){var e=yl;return e!==null&&(mt===null?mt=e:mt.push.apply(mt,e),yl=null),e}function hn(e){yl===null?yl=[e]:yl.push(e)}var vu=j(null),Fl=null,el=null;function jl(e,t,l){J(vu,t._currentValue),t._currentValue=l}function tl(e){e._currentValue=vu.current,Y(vu)}function pu(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 gu(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var g=0;g<t.length;g++)if(d.context===t[g]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),pu(i.return,l,e),a||(c=null);break e}i=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(r(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),pu(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 Ca(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var d=n.type;bt(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===Se.current){if(c=n.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(kn):e=[kn])}n=n.return}e!==null&&gu(t,e,l,a),t.flags|=262144}function js(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Il(e){Fl=e,el=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return zo(Fl,e)}function Ns(e,t){return Fl===null&&Il(e),zo(e,t)}function zo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},el===null){if(e===null)throw Error(r(308));el=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else el=el.next=t;return l}var Jh=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()})}},$h=u.unstable_scheduleCallback,Wh=u.unstable_NormalPriority,Ve={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yu(){return{controller:new Jh,data:new Map,refCount:0}}function xn(e){e.refCount--,e.refCount===0&&$h(Wh,function(){e.controller.abort()})}var vn=null,bu=0,Ra=0,Ta=null;function Fh(e,t){if(vn===null){var l=vn=[];bu=0,Ra=Sc(),Ta={status:"pending",value:void 0,then:function(a){l.push(a)}}}return bu++,t.then(Ao,Ao),t}function Ao(){if(--bu===0&&vn!==null){Ta!==null&&(Ta.status="fulfilled");var e=vn;vn=null,Ra=0,Ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ih(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 Do=U.S;U.S=function(e,t){pd=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Fh(e,t),Do!==null&&Do(e,t)};var Pl=j(null);function ju(){var e=Pl.current;return e!==null?e:Ae.pooledCache}function Ss(e,t){t===null?J(Pl,Pl.current):J(Pl,t.pool)}function Oo(){var e=ju();return e===null?null:{parent:Ve._currentValue,pool:e}}var _a=Error(r(460)),Nu=Error(r(474)),Es=Error(r(542)),ws={then:function(){}};function Uo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ho(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Wt,Wt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lo(e),e;default:if(typeof t.status=="string")t.then(Wt,Wt);else{if(e=Ae,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,Lo(e),e}throw ta=t,_a}}function ea(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ta=l,_a):l}}var ta=null;function Bo(){if(ta===null)throw Error(r(459));var e=ta;return ta=null,e}function Lo(e){if(e===_a||e===Es)throw Error(r(483))}var Ma=null,pn=0;function Cs(e){var t=pn;return pn+=1,Ma===null&&(Ma=[]),Ho(Ma,e,t)}function gn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Rs(e,t){throw t.$$typeof===z?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qo(e){function t(w,b){if(e){var C=w.deletions;C===null?(w.deletions=[b],w.flags|=16):C.push(b)}}function l(w,b){if(!e)return null;for(;b!==null;)t(w,b),b=b.sibling;return null}function a(w){for(var b=new Map;w!==null;)w.key!==null?b.set(w.key,w):b.set(w.index,w),w=w.sibling;return b}function n(w,b){return w=It(w,b),w.index=0,w.sibling=null,w}function i(w,b,C){return w.index=C,e?(C=w.alternate,C!==null?(C=C.index,C<b?(w.flags|=67108866,b):C):(w.flags|=67108866,b)):(w.flags|=1048576,b)}function c(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,b,C,B){return b===null||b.tag!==6?(b=ou(C,w.mode,B),b.return=w,b):(b=n(b,C),b.return=w,b)}function g(w,b,C,B){var ee=C.type;return ee===_?O(w,b,C.props.children,B,C.key):b!==null&&(b.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Z&&ea(ee)===b.type)?(b=n(b,C.props),gn(b,C),b.return=w,b):(b=ys(C.type,C.key,C.props,null,w.mode,B),gn(b,C),b.return=w,b)}function R(w,b,C,B){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=fu(C,w.mode,B),b.return=w,b):(b=n(b,C.children||[]),b.return=w,b)}function O(w,b,C,B,ee){return b===null||b.tag!==7?(b=$l(C,w.mode,B,ee),b.return=w,b):(b=n(b,C),b.return=w,b)}function L(w,b,C){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=ou(""+b,w.mode,C),b.return=w,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case A:return C=ys(b.type,b.key,b.props,null,w.mode,C),gn(C,b),C.return=w,C;case H:return b=fu(b,w.mode,C),b.return=w,b;case Z:return b=ea(b),L(w,b,C)}if(Me(b)||k(b))return b=$l(b,w.mode,C,null),b.return=w,b;if(typeof b.then=="function")return L(w,Cs(b),C);if(b.$$typeof===q)return L(w,Ns(w,b),C);Rs(w,b)}return null}function T(w,b,C,B){var ee=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ee!==null?null:d(w,b,""+C,B);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case A:return C.key===ee?g(w,b,C,B):null;case H:return C.key===ee?R(w,b,C,B):null;case Z:return C=ea(C),T(w,b,C,B)}if(Me(C)||k(C))return ee!==null?null:O(w,b,C,B,null);if(typeof C.then=="function")return T(w,b,Cs(C),B);if(C.$$typeof===q)return T(w,b,Ns(w,C),B);Rs(w,C)}return null}function M(w,b,C,B,ee){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(C)||null,d(b,w,""+B,ee);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case A:return w=w.get(B.key===null?C:B.key)||null,g(b,w,B,ee);case H:return w=w.get(B.key===null?C:B.key)||null,R(b,w,B,ee);case Z:return B=ea(B),M(w,b,C,B,ee)}if(Me(B)||k(B))return w=w.get(C)||null,O(b,w,B,ee,null);if(typeof B.then=="function")return M(w,b,C,Cs(B),ee);if(B.$$typeof===q)return M(w,b,C,Ns(b,B),ee);Rs(b,B)}return null}function W(w,b,C,B){for(var ee=null,be=null,I=b,oe=b=0,ve=null;I!==null&&oe<C.length;oe++){I.index>oe?(ve=I,I=null):ve=I.sibling;var je=T(w,I,C[oe],B);if(je===null){I===null&&(I=ve);break}e&&I&&je.alternate===null&&t(w,I),b=i(je,b,oe),be===null?ee=je:be.sibling=je,be=je,I=ve}if(oe===C.length)return l(w,I),pe&&Pt(w,oe),ee;if(I===null){for(;oe<C.length;oe++)I=L(w,C[oe],B),I!==null&&(b=i(I,b,oe),be===null?ee=I:be.sibling=I,be=I);return pe&&Pt(w,oe),ee}for(I=a(I);oe<C.length;oe++)ve=M(I,w,oe,C[oe],B),ve!==null&&(e&&ve.alternate!==null&&I.delete(ve.key===null?oe:ve.key),b=i(ve,b,oe),be===null?ee=ve:be.sibling=ve,be=ve);return e&&I.forEach(function(ql){return t(w,ql)}),pe&&Pt(w,oe),ee}function ne(w,b,C,B){if(C==null)throw Error(r(151));for(var ee=null,be=null,I=b,oe=b=0,ve=null,je=C.next();I!==null&&!je.done;oe++,je=C.next()){I.index>oe?(ve=I,I=null):ve=I.sibling;var ql=T(w,I,je.value,B);if(ql===null){I===null&&(I=ve);break}e&&I&&ql.alternate===null&&t(w,I),b=i(ql,b,oe),be===null?ee=ql:be.sibling=ql,be=ql,I=ve}if(je.done)return l(w,I),pe&&Pt(w,oe),ee;if(I===null){for(;!je.done;oe++,je=C.next())je=L(w,je.value,B),je!==null&&(b=i(je,b,oe),be===null?ee=je:be.sibling=je,be=je);return pe&&Pt(w,oe),ee}for(I=a(I);!je.done;oe++,je=C.next())je=M(I,w,oe,je.value,B),je!==null&&(e&&je.alternate!==null&&I.delete(je.key===null?oe:je.key),b=i(je,b,oe),be===null?ee=je:be.sibling=je,be=je);return e&&I.forEach(function(rv){return t(w,rv)}),pe&&Pt(w,oe),ee}function _e(w,b,C,B){if(typeof C=="object"&&C!==null&&C.type===_&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case A:e:{for(var ee=C.key;b!==null;){if(b.key===ee){if(ee=C.type,ee===_){if(b.tag===7){l(w,b.sibling),B=n(b,C.props.children),B.return=w,w=B;break e}}else if(b.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Z&&ea(ee)===b.type){l(w,b.sibling),B=n(b,C.props),gn(B,C),B.return=w,w=B;break e}l(w,b);break}else t(w,b);b=b.sibling}C.type===_?(B=$l(C.props.children,w.mode,B,C.key),B.return=w,w=B):(B=ys(C.type,C.key,C.props,null,w.mode,B),gn(B,C),B.return=w,w=B)}return c(w);case H:e:{for(ee=C.key;b!==null;){if(b.key===ee)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){l(w,b.sibling),B=n(b,C.children||[]),B.return=w,w=B;break e}else{l(w,b);break}else t(w,b);b=b.sibling}B=fu(C,w.mode,B),B.return=w,w=B}return c(w);case Z:return C=ea(C),_e(w,b,C,B)}if(Me(C))return W(w,b,C,B);if(k(C)){if(ee=k(C),typeof ee!="function")throw Error(r(150));return C=ee.call(C),ne(w,b,C,B)}if(typeof C.then=="function")return _e(w,b,Cs(C),B);if(C.$$typeof===q)return _e(w,b,Ns(w,C),B);Rs(w,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,b!==null&&b.tag===6?(l(w,b.sibling),B=n(b,C),B.return=w,w=B):(l(w,b),B=ou(C,w.mode,B),B.return=w,w=B),c(w)):l(w,b)}return function(w,b,C,B){try{pn=0;var ee=_e(w,b,C,B);return Ma=null,ee}catch(I){if(I===_a||I===Es)throw I;var be=jt(29,I,null,w.mode);return be.lanes=B,be.return=w,be}finally{}}}var la=qo(!0),Yo=qo(!1),Nl=!1;function Su(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function El(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=gs(e),So(e,null,l),t}return ps(e,a,t,l),gs(e)}function yn(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,Mr(e,l)}}function wu(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Cu=!1;function bn(){if(Cu){var e=Ta;if(e!==null)throw e}}function jn(e,t,l,a){Cu=!1;var n=e.updateQueue;Nl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var g=d,R=g.next;g.next=null,c===null?i=R:c.next=R,c=g;var O=e.alternate;O!==null&&(O=O.updateQueue,d=O.lastBaseUpdate,d!==c&&(d===null?O.firstBaseUpdate=R:d.next=R,O.lastBaseUpdate=g))}if(i!==null){var L=n.baseState;c=0,O=R=g=null,d=i;do{var T=d.lane&-536870913,M=T!==d.lane;if(M?(xe&T)===T:(a&T)===T){T!==0&&T===Ra&&(Cu=!0),O!==null&&(O=O.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var W=e,ne=d;T=t;var _e=l;switch(ne.tag){case 1:if(W=ne.payload,typeof W=="function"){L=W.call(_e,L,T);break e}L=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=ne.payload,T=typeof W=="function"?W.call(_e,L,T):W,T==null)break e;L=S({},L,T);break e;case 2:Nl=!0}}T=d.callback,T!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[T]:M.push(T))}else M={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},O===null?(R=O=M,g=L):O=O.next=M,c|=T;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;M=d,d=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);O===null&&(g=L),n.baseState=g,n.firstBaseUpdate=R,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),_l|=c,e.lanes=c,e.memoizedState=L}}function ko(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Go(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)ko(l[e],t)}var za=j(null),Ts=j(0);function Xo(e,t){e=ol,J(Ts,e),J(za,t),ol=e|t.baseLanes}function Ru(){J(Ts,ol),J(za,za.current)}function Tu(){ol=Ts.current,Y(za),Y(Ts)}var Nt=j(null),Ut=null;function wl(e){var t=e.alternate;J(Xe,Xe.current&1),J(Nt,e),Ut===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(Ut=e)}function _u(e){J(Xe,Xe.current),J(Nt,e),Ut===null&&(Ut=e)}function Qo(e){e.tag===22?(J(Xe,Xe.current),J(Nt,e),Ut===null&&(Ut=e)):Cl()}function Cl(){J(Xe,Xe.current),J(Nt,Nt.current)}function St(e){Y(Nt),Ut===e&&(Ut=null),Y(Xe)}var Xe=j(0);function _s(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Uc(l)||Hc(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 ll=0,re=null,Re=null,Ke=null,Ms=!1,Aa=!1,aa=!1,zs=0,Nn=0,Da=null,Ph=0;function Ye(){throw Error(r(321))}function Mu(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!bt(e[l],t[l]))return!1;return!0}function zu(e,t,l,a,n,i){return ll=i,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Tf:Vu,aa=!1,i=l(a,n),aa=!1,Aa&&(i=Vo(t,l,a,n)),Zo(e),i}function Zo(e){U.H=wn;var t=Re!==null&&Re.next!==null;if(ll=0,Ke=Re=re=null,Ms=!1,Nn=0,Da=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&js(e)&&(Je=!0))}function Vo(e,t,l,a){re=e;var n=0;do{if(Aa&&(Da=null),Nn=0,Aa=!1,25<=n)throw Error(r(301));if(n+=1,Ke=Re=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}U.H=_f,i=t(l,a)}while(Aa);return i}function ex(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Sn(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(re.flags|=1024),t}function Au(){var e=zs!==0;return zs=0,e}function Du(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ou(e){if(Ms){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ms=!1}ll=0,Ke=Re=re=null,Aa=!1,Nn=zs=0,Da=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?re.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Qe(){if(Re===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ke===null?re.memoizedState:Ke.next;if(t!==null)Ke=t,Re=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ke===null?re.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function As(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sn(e){var t=Nn;return Nn+=1,Da===null&&(Da=[]),e=Ho(Da,e,t),t=re,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Tf:Vu),e}function Ds(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sn(e);if(e.$$typeof===q)return tt(e)}throw Error(r(438,String(e)))}function Uu(e){var t=null,l=re.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=re.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=As(),re.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]=ge;return t.index++,l}function al(e,t){return typeof t=="function"?t(e):t}function Os(e){var t=Qe();return Hu(t,Re,e)}function Hu(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=c=null,g=null,R=t,O=!1;do{var L=R.lane&-536870913;if(L!==R.lane?(xe&L)===L:(ll&L)===L){var T=R.revertLane;if(T===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),L===Ra&&(O=!0);else if((ll&T)===T){R=R.next,T===Ra&&(O=!0);continue}else L={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},g===null?(d=g=L,c=i):g=g.next=L,re.lanes|=T,_l|=T;L=R.action,aa&&l(i,L),i=R.hasEagerState?R.eagerState:l(i,L)}else T={lane:L,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},g===null?(d=g=T,c=i):g=g.next=T,re.lanes|=L,_l|=L;R=R.next}while(R!==null&&R!==t);if(g===null?c=i:g.next=d,!bt(i,e.memoizedState)&&(Je=!0,O&&(l=Ta,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=g,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Bu(e){var t=Qe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);bt(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ko(e,t,l){var a=re,n=Qe(),i=pe;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!bt((Re||n).memoizedState,l);if(c&&(n.memoizedState=l,Je=!0),n=n.queue,Yu(Wo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,Oa(9,{destroy:void 0},$o.bind(null,a,n,l,t),null),Ae===null)throw Error(r(349));i||(ll&127)!==0||Jo(a,t,l)}return l}function Jo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=re.updateQueue,t===null?(t=As(),re.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function $o(e,t,l,a){t.value=l,t.getSnapshot=a,Fo(t)&&Io(e)}function Wo(e,t,l){return l(function(){Fo(t)&&Io(e)})}function Fo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!bt(e,l)}catch{return!0}}function Io(e){var t=Jl(e,2);t!==null&&ht(t,e,2)}function Lu(e){var t=ut();if(typeof e=="function"){var l=e;if(e=l(),aa){xl(!0);try{l()}finally{xl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:al,lastRenderedState:e},t}function Po(e,t,l,a){return e.baseState=l,Hu(e,Re,typeof a=="function"?a:al)}function tx(e,t,l,a,n){if(Bs(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};U.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,ef(t,i)):(i.next=l.next,t.pending=l.next=i)}}function ef(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=U.T,c={};U.T=c;try{var d=l(n,a),g=U.S;g!==null&&g(c,d),tf(e,t,d)}catch(R){qu(e,t,R)}finally{i!==null&&c.types!==null&&(i.types=c.types),U.T=i}}else try{i=l(n,a),tf(e,t,i)}catch(R){qu(e,t,R)}}function tf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){lf(e,t,a)},function(a){return qu(e,t,a)}):lf(e,t,l)}function lf(e,t,l){t.status="fulfilled",t.value=l,af(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ef(e,l)))}function qu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,af(t),t=t.next;while(t!==a)}e.action=null}function af(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nf(e,t){return t}function sf(e,t){if(pe){var l=Ae.formState;if(l!==null){e:{var a=re;if(pe){if(Oe){t:{for(var n=Oe,i=Ot;n.nodeType!==8;){if(!i){n=null;break t}if(n=Ht(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Oe=Ht(n.nextSibling),a=n.data==="F!";break e}}bl(a)}a=!1}a&&(t=l[0])}}return l=ut(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nf,lastRenderedState:t},l.queue=a,l=wf.bind(null,re,a),a.dispatch=l,a=Lu(!1),i=Zu.bind(null,re,!1,a.queue),a=ut(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=tx.bind(null,re,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function uf(e){var t=Qe();return cf(t,Re,e)}function cf(e,t,l){if(t=Hu(e,t,nf)[0],e=Os(al)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Sn(t)}catch(c){throw c===_a?Es:c}else a=t;t=Qe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(re.flags|=2048,Oa(9,{destroy:void 0},lx.bind(null,n,l),null)),[a,i,e]}function lx(e,t){e.action=t}function rf(e){var t=Qe(),l=Re;if(l!==null)return cf(t,l,e);Qe(),t=t.memoizedState,l=Qe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Oa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=As(),re.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 of(){return Qe().memoizedState}function Us(e,t,l,a){var n=ut();re.flags|=e,n.memoizedState=Oa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Hs(e,t,l,a){var n=Qe();a=a===void 0?null:a;var i=n.memoizedState.inst;Re!==null&&a!==null&&Mu(a,Re.memoizedState.deps)?n.memoizedState=Oa(t,i,l,a):(re.flags|=e,n.memoizedState=Oa(1|t,i,l,a))}function ff(e,t){Us(8390656,8,e,t)}function Yu(e,t){Hs(2048,8,e,t)}function ax(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=As(),re.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function df(e){var t=Qe().memoizedState;return ax({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function mf(e,t){return Hs(4,2,e,t)}function hf(e,t){return Hs(4,4,e,t)}function xf(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 vf(e,t,l){l=l!=null?l.concat([e]):null,Hs(4,4,xf.bind(null,t,e),l)}function ku(){}function pf(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Mu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function gf(e,t){var l=Qe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Mu(t,a[1]))return a[0];if(a=e(),aa){xl(!0);try{e()}finally{xl(!1)}}return l.memoizedState=[a,t],a}function Gu(e,t,l){return l===void 0||(ll&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=yd(),re.lanes|=e,_l|=e,l)}function yf(e,t,l,a){return bt(l,t)?l:za.current!==null?(e=Gu(e,l,a),bt(e,t)||(Je=!0),e):(ll&42)===0||(ll&1073741824)!==0&&(xe&261930)===0?(Je=!0,e.memoizedState=l):(e=yd(),re.lanes|=e,_l|=e,t)}function bf(e,t,l,a,n){var i=V.p;V.p=i!==0&&8>i?i:8;var c=U.T,d={};U.T=d,Zu(e,!1,t,l);try{var g=n(),R=U.S;if(R!==null&&R(d,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var O=Ih(g,a);En(e,t,O,Ct(e))}else En(e,t,a,Ct(e))}catch(L){En(e,t,{then:function(){},status:"rejected",reason:L},Ct())}finally{V.p=i,c!==null&&d.types!==null&&(c.types=d.types),U.T=c}}function nx(){}function Xu(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=jf(e).queue;bf(e,n,t,se,l===null?nx:function(){return Nf(e),l(a)})}function jf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:al,lastRenderedState:se},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:al,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Nf(e){var t=jf(e);t.next===null&&(t=e.alternate.memoizedState),En(e,t.next.queue,{},Ct())}function Qu(){return tt(kn)}function Sf(){return Qe().memoizedState}function Ef(){return Qe().memoizedState}function sx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Ct();e=Sl(l);var a=El(t,e,l);a!==null&&(ht(a,t,l),yn(a,t,l)),t={cache:yu()},e.payload=t;return}t=t.return}}function ix(e,t,l){var a=Ct();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Cf(t,l):(l=cu(e,t,l,a),l!==null&&(ht(l,e,a),Rf(l,t,a)))}function wf(e,t,l){var a=Ct();En(e,t,l,a)}function En(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Cf(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(n.hasEagerState=!0,n.eagerState=d,bt(d,c))return ps(e,t,n,0),Ae===null&&vs(),!1}catch{}finally{}if(l=cu(e,t,n,a),l!==null)return ht(l,e,a),Rf(l,t,a),!0}return!1}function Zu(e,t,l,a){if(a={lane:2,revertLane:Sc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(r(479))}else t=cu(e,l,a,2),t!==null&&ht(t,e,2)}function Bs(e){var t=e.alternate;return e===re||t!==null&&t===re}function Cf(e,t){Aa=Ms=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Rf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mr(e,l)}}var wn={readContext:tt,use:Ds,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};wn.useEffectEvent=Ye;var Tf={readContext:tt,use:Ds,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:ff,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Us(4194308,4,xf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){Us(4,2,e,t)},useMemo:function(e,t){var l=ut();t=t===void 0?null:t;var a=e();if(aa){xl(!0);try{e()}finally{xl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ut();if(l!==void 0){var n=l(t);if(aa){xl(!0);try{l(t)}finally{xl(!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=ix.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Lu(e);var t=e.queue,l=wf.bind(null,re,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ku,useDeferredValue:function(e,t){var l=ut();return Gu(l,e,t)},useTransition:function(){var e=Lu(!1);return e=bf.bind(null,re,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=re,n=ut();if(pe){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Ae===null)throw Error(r(349));(xe&127)!==0||Jo(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,ff(Wo.bind(null,a,i,e),[e]),a.flags|=2048,Oa(9,{destroy:void 0},$o.bind(null,a,i,l,t),null),l},useId:function(){var e=ut(),t=Ae.identifierPrefix;if(pe){var l=Xt,a=Gt;l=(a&~(1<<32-yt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=zs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Ph++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Qu,useFormState:sf,useActionState:sf,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Zu.bind(null,re,!0,l),l.dispatch=t,[e,t]},useMemoCache:Uu,useCacheRefresh:function(){return ut().memoizedState=sx.bind(null,re)},useEffectEvent:function(e){var t=ut(),l={impl:e};return t.memoizedState=l,function(){if((Ne&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Vu={readContext:tt,use:Ds,useCallback:pf,useContext:tt,useEffect:Yu,useImperativeHandle:vf,useInsertionEffect:mf,useLayoutEffect:hf,useMemo:gf,useReducer:Os,useRef:of,useState:function(){return Os(al)},useDebugValue:ku,useDeferredValue:function(e,t){var l=Qe();return yf(l,Re.memoizedState,e,t)},useTransition:function(){var e=Os(al)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Ko,useId:Sf,useHostTransitionStatus:Qu,useFormState:uf,useActionState:uf,useOptimistic:function(e,t){var l=Qe();return Po(l,Re,e,t)},useMemoCache:Uu,useCacheRefresh:Ef};Vu.useEffectEvent=df;var _f={readContext:tt,use:Ds,useCallback:pf,useContext:tt,useEffect:Yu,useImperativeHandle:vf,useInsertionEffect:mf,useLayoutEffect:hf,useMemo:gf,useReducer:Bu,useRef:of,useState:function(){return Bu(al)},useDebugValue:ku,useDeferredValue:function(e,t){var l=Qe();return Re===null?Gu(l,e,t):yf(l,Re.memoizedState,e,t)},useTransition:function(){var e=Bu(al)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:Sn(e),t]},useSyncExternalStore:Ko,useId:Sf,useHostTransitionStatus:Qu,useFormState:rf,useActionState:rf,useOptimistic:function(e,t){var l=Qe();return Re!==null?Po(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Uu,useCacheRefresh:Ef};_f.useEffectEvent=df;function Ku(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:S({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Ju={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Ct(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=El(e,n,a),t!==null&&(ht(t,e,a),yn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Ct(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=El(e,n,a),t!==null&&(ht(t,e,a),yn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Ct(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=El(e,a,l),t!==null&&(ht(t,e,l),yn(t,e,l))}};function Mf(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!fn(l,a)||!fn(n,i):!0}function zf(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&&Ju.enqueueReplaceState(t,t.state,null)}function na(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=S({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Af(e){xs(e)}function Df(e){console.error(e)}function Of(e){xs(e)}function Ls(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uf(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 $u(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ls(e,t)},l}function Hf(e){return e=Sl(e),e.tag=3,e}function Bf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Uf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Uf(t,l,a),typeof n!="function"&&(Ml===null?Ml=new Set([this]):Ml.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function ux(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ca(t,l,n,!0),l=Nt.current,l!==null){switch(l.tag){case 31:case 13:return Ut===null?Ws():l.alternate===null&&ke===0&&(ke=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ws?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),bc(e,a,n)),!1;case 22:return l.flags|=65536,a===ws?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)),bc(e,a,n)),!1}throw Error(r(435,l.tag))}return bc(e,a,n),Ws(),!1}if(pe)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==hu&&(e=Error(r(422),{cause:a}),hn(zt(e,l)))):(a!==hu&&(t=Error(r(423),{cause:a}),hn(zt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=zt(a,l),n=$u(e.stateNode,a,n),wu(e,n),ke!==4&&(ke=2)),!1;var i=Error(r(520),{cause:a});if(i=zt(i,l),Dn===null?Dn=[i]:Dn.push(i),ke!==4&&(ke=2),t===null)return!0;a=zt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=$u(l.stateNode,a,e),wu(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ml===null||!Ml.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Hf(n),Bf(n,e,l,a),wu(l,n),!1}l=l.return}while(l!==null);return!1}var Wu=Error(r(461)),Je=!1;function lt(e,t,l,a){t.child=e===null?Yo(t,null,l,a):la(t,e.child,l,a)}function Lf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return Il(t),a=zu(e,t,l,c,i,n),d=Au(),e!==null&&!Je?(Du(e,t,n),nl(e,t,n)):(pe&&d&&du(t),t.flags|=1,lt(e,t,a,n),t.child)}function qf(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!ru(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Yf(e,t,i,a,n)):(e=ys(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!nc(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:fn,l(c,a)&&e.ref===t.ref)return nl(e,t,n)}return t.flags|=1,e=It(i,a),e.ref=t.ref,e.return=t,t.child=e}function Yf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(fn(i,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=i,nc(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,nl(e,t,n)}return Fu(e,t,l,a,n)}function kf(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Gf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ss(t,i!==null?i.cachePool:null),i!==null?Xo(t,i):Ru(),Qo(t);else return a=t.lanes=536870912,Gf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ss(t,i.cachePool),Xo(t,i),Cl(),t.memoizedState=null):(e!==null&&Ss(t,null),Ru(),Cl());return lt(e,t,n,l),t.child}function Cn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gf(e,t,l,a,n){var i=ju();return i=i===null?null:{parent:Ve._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ss(t,null),Ru(),Qo(t),e!==null&&Ca(e,t,a,!0),t.childLanes=n,null}function qs(e,t){return t=ks({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xf(e,t,l){return la(t,e.child,null,l),e=qs(t,t.pendingProps),e.flags|=2,St(t),t.memoizedState=null,e}function cx(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(a.mode==="hidden")return e=qs(t,a),t.lanes=536870912,Cn(null,e);if(_u(t),(e=Oe)?(e=t0(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=wo(e),l.return=t,t.child=l,et=t,Oe=null)):e=null,e===null)throw bl(t);return t.lanes=536870912,null}return qs(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(_u(t),n)if(t.flags&256)t.flags&=-257,t=Xf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Ca(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=Ae,a!==null&&(c=zr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Jl(e,c),ht(a,e,c),Wu;Ws(),t=Xf(e,t,l)}else e=i.treeContext,Oe=Ht(c.nextSibling),et=t,pe=!0,yl=null,Ot=!1,e!==null&&To(t,e),t=qs(t,a),t.flags|=4096;return t}return e=It(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ys(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 Fu(e,t,l,a,n){return Il(t),l=zu(e,t,l,a,void 0,n),a=Au(),e!==null&&!Je?(Du(e,t,n),nl(e,t,n)):(pe&&a&&du(t),t.flags|=1,lt(e,t,l,n),t.child)}function Qf(e,t,l,a,n,i){return Il(t),t.updateQueue=null,l=Vo(t,a,l,n),Zo(e),a=Au(),e!==null&&!Je?(Du(e,t,i),nl(e,t,i)):(pe&&a&&du(t),t.flags|=1,lt(e,t,l,i),t.child)}function Zf(e,t,l,a,n){if(Il(t),t.stateNode===null){var i=Na,c=l.contextType;typeof c=="object"&&c!==null&&(i=tt(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ju,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Su(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?tt(c):Na,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Ku(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&Ju.enqueueReplaceState(i,i.state,null),jn(t,a,i,n),bn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,g=na(l,d);i.props=g;var R=i.context,O=l.contextType;c=Na,typeof O=="object"&&O!==null&&(c=tt(O));var L=l.getDerivedStateFromProps;O=typeof L=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||R!==c)&&zf(t,i,a,c),Nl=!1;var T=t.memoizedState;i.state=T,jn(t,a,i,n),bn(),R=t.memoizedState,d||T!==R||Nl?(typeof L=="function"&&(Ku(t,l,L,a),R=t.memoizedState),(g=Nl||Mf(t,l,g,a,T,R,c))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=R),i.props=a,i.state=R,i.context=c,a=g):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Eu(e,t),c=t.memoizedProps,O=na(l,c),i.props=O,L=t.pendingProps,T=i.context,R=l.contextType,g=Na,typeof R=="object"&&R!==null&&(g=tt(R)),d=l.getDerivedStateFromProps,(R=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==L||T!==g)&&zf(t,i,a,g),Nl=!1,T=t.memoizedState,i.state=T,jn(t,a,i,n),bn();var M=t.memoizedState;c!==L||T!==M||Nl||e!==null&&e.dependencies!==null&&js(e.dependencies)?(typeof d=="function"&&(Ku(t,l,d,a),M=t.memoizedState),(O=Nl||Mf(t,l,O,a,T,M,g)||e!==null&&e.dependencies!==null&&js(e.dependencies))?(R||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,M,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,M,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),i.props=a,i.state=M,i.context=g,a=O):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Ys(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=la(t,e.child,null,n),t.child=la(t,null,l,n)):lt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=nl(e,t,n),e}function Vf(e,t,l,a){return Wl(),t.flags|=256,lt(e,t,l,a),t.child}var Iu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pu(e){return{baseLanes:e,cachePool:Oo()}}function ec(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=wt),e}function Kf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(n?wl(t):Cl(),(e=Oe)?(e=t0(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:gl!==null?{id:Gt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=wo(e),l.return=t,t.child=l,et=t,Oe=null)):e=null,e===null)throw bl(t);return Hc(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Cl(),n=t.mode,d=ks({mode:"hidden",children:d},n),a=$l(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Pu(l),a.childLanes=ec(e,c,l),t.memoizedState=Iu,Cn(null,a)):(wl(t),tc(t,d))}var g=e.memoizedState;if(g!==null&&(d=g.dehydrated,d!==null)){if(i)t.flags&256?(wl(t),t.flags&=-257,t=lc(e,t,l)):t.memoizedState!==null?(Cl(),t.child=e.child,t.flags|=128,t=null):(Cl(),d=a.fallback,n=t.mode,a=ks({mode:"visible",children:a.children},n),d=$l(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,la(t,e.child,null,l),a=t.child,a.memoizedState=Pu(l),a.childLanes=ec(e,c,l),t.memoizedState=Iu,t=Cn(null,a));else if(wl(t),Hc(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var R=c.dgst;c=R,a=Error(r(419)),a.stack="",a.digest=c,hn({value:a,source:null,stack:null}),t=lc(e,t,l)}else if(Je||Ca(e,t,l,!1),c=(l&e.childLanes)!==0,Je||c){if(c=Ae,c!==null&&(a=zr(c,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,Jl(e,a),ht(c,e,a),Wu;Uc(d)||Ws(),t=lc(e,t,l)}else Uc(d)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Oe=Ht(d.nextSibling),et=t,pe=!0,yl=null,Ot=!1,e!==null&&To(t,e),t=tc(t,a.children),t.flags|=4096);return t}return n?(Cl(),d=a.fallback,n=t.mode,g=e.child,R=g.sibling,a=It(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,R!==null?d=It(R,d):(d=$l(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Cn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Pu(l):(n=d.cachePool,n!==null?(g=Ve._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=Oo(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=ec(e,c,l),t.memoizedState=Iu,Cn(e.child,a)):(wl(t),l=e.child,e=l.sibling,l=It(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function tc(e,t){return t=ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ks(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function lc(e,t,l){return la(t,e.child,null,l),e=tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),pu(e.return,t,l)}function ac(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function $f(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Xe.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,J(Xe,c),lt(e,t,a,l),a=pe?mn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jf(e,l,t);else if(e.tag===19)Jf(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&&_s(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),ac(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&_s(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}ac(t,!0,l,null,i,a);break;case"together":ac(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function nl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),_l|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ca(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=It(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=It(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function nc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&js(e)))}function rx(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),jl(t,Ve,e.memoizedState.cache),Wl();break;case 27:case 5:Fa(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:jl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_u(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(wl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Kf(e,t,l):(wl(t),e=nl(e,t,l),e!==null?e.sibling:null);wl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ca(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return $f(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),J(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,kf(e,t,l,t.pendingProps);case 24:jl(t,Ve,e.memoizedState.cache)}return nl(e,t,l)}function Wf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!nc(e,l)&&(t.flags&128)===0)return Je=!1,rx(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,pe&&(t.flags&1048576)!==0&&Ro(t,mn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ea(t.elementType),t.type=e,typeof e=="function")ru(e)?(a=na(e,a),t.tag=1,t=Zf(null,t,e,a,l)):(t.tag=0,t=Fu(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ae){t.tag=11,t=Lf(null,t,e,a,l);break e}else if(n===K){t.tag=14,t=qf(null,t,e,a,l);break e}}throw t=ye(e)||e,Error(r(306,t,""))}}return t;case 0:return Fu(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=na(a,t.pendingProps),Zf(e,t,a,n,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Eu(e,t),jn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,jl(t,Ve,a),a!==i.cache&&gu(t,[Ve],l,!0),bn(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Vf(e,t,a,l);break e}else if(a!==n){n=zt(Error(r(424)),t),hn(n),t=Vf(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(Oe=Ht(e.firstChild),et=t,pe=!0,yl=null,Ot=!0,l=Yo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Wl(),a===n){t=nl(e,t,l);break e}lt(e,t,a,l)}t=t.child}return t;case 26:return Ys(e,t),e===null?(l=u0(t.type,null,t.pendingProps,null))?t.memoizedState=l:pe||(l=t.type,e=t.pendingProps,a=ai(de.current).createElement(l),a[Pe]=t,a[ct]=e,at(a,l,e),Fe(a),t.stateNode=a):t.memoizedState=u0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fa(t),e===null&&pe&&(a=t.stateNode=n0(t.type,t.pendingProps,de.current),et=t,Ot=!0,n=Oe,Ol(t.type)?(Bc=n,Oe=Ht(a.firstChild)):Oe=n),lt(e,t,t.pendingProps.children,l),Ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((n=a=Oe)&&(a=qx(a,t.type,t.pendingProps,Ot),a!==null?(t.stateNode=a,et=t,Oe=Ht(a.firstChild),Ot=!1,n=!0):n=!1),n||bl(t)),Fa(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Ac(n,i)?a=null:c!==null&&Ac(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=zu(e,t,ex,null,null,l),kn._currentValue=n),Ys(e,t),lt(e,t,a,l),t.child;case 6:return e===null&&pe&&((e=l=Oe)&&(l=Yx(l,t.pendingProps,Ot),l!==null?(t.stateNode=l,et=t,Oe=null,e=!0):e=!1),e||bl(t)),null;case 13:return Kf(e,t,l);case 4:return it(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=la(t,null,a,l):lt(e,t,a,l),t.child;case 11:return Lf(e,t,t.type,t.pendingProps,l);case 7:return lt(e,t,t.pendingProps,l),t.child;case 8:return lt(e,t,t.pendingProps.children,l),t.child;case 12:return lt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,jl(t,t.type,a.value),lt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Il(t),n=tt(n),a=a(n),t.flags|=1,lt(e,t,a,l),t.child;case 14:return qf(e,t,t.type,t.pendingProps,l);case 15:return Yf(e,t,t.type,t.pendingProps,l);case 19:return $f(e,t,l);case 31:return cx(e,t,l);case 22:return kf(e,t,l,t.pendingProps);case 24:return Il(t),a=tt(Ve),e===null?(n=ju(),n===null&&(n=Ae,i=yu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Su(t),jl(t,Ve,n)):((e.lanes&l)!==0&&(Eu(e,t),jn(t,null,null,l),bn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),jl(t,Ve,a)):(a=i.cache,jl(t,Ve,a),a!==n.cache&&gu(t,[Ve],l,!0))),lt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function sl(e){e.flags|=4}function sc(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(Sd())e.flags|=8192;else throw ta=ws,Nu}else e.flags&=-16777217}function Ff(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!d0(t))if(Sd())e.flags|=8192;else throw ta=ws,Nu}function Gs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tr():536870912,e.lanes|=t,La|=t)}function Rn(e,t){if(!pe)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 Ue(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 ox(e,t,l){var a=t.pendingProps;switch(mu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),tl(Ve),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(wa(t)?sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xu())),Ue(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(sl(t),i!==null?(Ue(t),Ff(t,i)):(Ue(t),sc(t,n,null,a,l))):i?i!==e.memoizedState?(sl(t),Ue(t),Ff(t,i)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&sl(t),Ue(t),sc(t,n,e,a,l)),null;case 27:if(Pn(t),l=de.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&sl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}e=F.current,wa(t)?_o(t):(e=n0(n,a,l),t.stateNode=e,sl(t))}return Ue(t),null;case 5:if(Pn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&sl(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}if(i=F.current,wa(t))_o(t);else{var c=ai(de.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[Pe]=t,i[ct]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(at(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&sl(t)}}return Ue(t),sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&sl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=de.current,wa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=et,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Kd(e.nodeValue,l)),e||bl(t,!0)}else e=ai(e).createTextNode(a),e[Pe]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=wa(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[Pe]=t}else Wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(St(t),t):(St(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=wa(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[Pe]=t}else Wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),n=!1}else n=xu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(St(t),t):(St(t),null)}return St(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Gs(t,t.updateQueue),Ue(t),null);case 4:return Ge(),e===null&&Rc(t.stateNode.containerInfo),Ue(t),null;case 10:return tl(t.type),Ue(t),null;case 19:if(Y(Xe),a=t.memoizedState,a===null)return Ue(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Rn(a,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=_s(e),i!==null){for(t.flags|=128,Rn(a,!1),e=i.updateQueue,t.updateQueue=e,Gs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Eo(l,e),l=l.sibling;return J(Xe,Xe.current&1|2),pe&&Pt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&pt()>Ks&&(t.flags|=128,n=!0,Rn(a,!1),t.lanes=4194304)}else{if(!n)if(e=_s(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Gs(t,e),Rn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!pe)return Ue(t),null}else 2*pt()-a.renderingStartTime>Ks&&l!==536870912&&(t.flags|=128,n=!0,Rn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=pt(),e.sibling=null,l=Xe.current,J(Xe,n?l&1|2:l&1),pe&&Pt(t,a.treeForkCount),e):(Ue(t),null);case 22:case 23:return St(t),Tu(),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&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&Gs(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&&Y(Pl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),tl(Ve),Ue(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function fx(e,t){switch(mu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return tl(Ve),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pn(t),null;case 31:if(t.memoizedState!==null){if(St(t),t.alternate===null)throw Error(r(340));Wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(St(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Xe),null;case 4:return Ge(),null;case 10:return tl(t.type),null;case 22:case 23:return St(t),Tu(),e!==null&&Y(Pl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return tl(Ve),null;case 25:return null;default:return null}}function If(e,t){switch(mu(t),t.tag){case 3:tl(Ve),Ge();break;case 26:case 27:case 5:Pn(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&St(t);break;case 13:St(t);break;case 19:Y(Xe);break;case 10:tl(t.type);break;case 22:case 23:St(t),Tu(),e!==null&&Y(Pl);break;case 24:tl(Ve)}}function Tn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){we(t,t.return,d)}}function Rl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var g=l,R=d;try{R()}catch(O){we(n,g,O)}}}a=a.next}while(a!==i)}}catch(O){we(t,t.return,O)}}function Pf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Go(t,l)}catch(a){we(e,e.return,a)}}}function ed(e,t,l){l.props=na(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){we(e,t,a)}}function _n(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){we(e,t,n)}}function Qt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){we(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){we(e,t,n)}else l.current=null}function td(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){we(e,e.return,n)}}function ic(e,t,l){try{var a=e.stateNode;Dx(a,e.type,l,t),a[ct]=t}catch(n){we(e,e.return,n)}}function ld(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ol(e.type)||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ld(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&&Ol(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 cc(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=Wt));else if(a!==4&&(a===27&&Ol(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(cc(e,t,l),e=e.sibling;e!==null;)cc(e,t,l),e=e.sibling}function Xs(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&&Ol(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Xs(e,t,l),e=e.sibling;e!==null;)Xs(e,t,l),e=e.sibling}function ad(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);at(t,a,l),t[Pe]=e,t[ct]=l}catch(i){we(e,e.return,i)}}var il=!1,$e=!1,rc=!1,nd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function dx(e,t){if(e=e.containerInfo,Mc=oi,e=xo(e),lu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,g=-1,R=0,O=0,L=e,T=null;t:for(;;){for(var M;L!==l||n!==0&&L.nodeType!==3||(d=c+n),L!==i||a!==0&&L.nodeType!==3||(g=c+a),L.nodeType===3&&(c+=L.nodeValue.length),(M=L.firstChild)!==null;)T=L,L=M;for(;;){if(L===e)break t;if(T===l&&++R===n&&(d=c),T===i&&++O===a&&(g=c),(M=L.nextSibling)!==null)break;L=T,T=L.parentNode}L=M}l=d===-1||g===-1?null:{start:d,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(zc={focusedElem:e,selectionRange:l},oi=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var W=na(l.type,n);e=a.getSnapshotBeforeUpdate(W,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ne){we(l,l.return,ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Oc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Oc(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,Ie=e;break}Ie=t.return}}function sd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:cl(e,l),a&4&&Tn(5,l);break;case 1:if(cl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){we(l,l.return,c)}else{var n=na(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){we(l,l.return,c)}}a&64&&Pf(l),a&512&&_n(l,l.return);break;case 3:if(cl(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{Go(e,t)}catch(c){we(l,l.return,c)}}break;case 27:t===null&&a&4&&ad(l);case 26:case 5:cl(e,l),t===null&&a&4&&td(l),a&512&&_n(l,l.return);break;case 12:cl(e,l);break;case 31:cl(e,l),a&4&&cd(e,l);break;case 13:cl(e,l),a&4&&rd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=jx.bind(null,l),kx(e,l))));break;case 22:if(a=l.memoizedState!==null||il,!a){t=t!==null&&t.memoizedState!==null||$e,n=il;var i=$e;il=a,($e=t)&&!i?rl(e,l,(l.subtreeFlags&8772)!==0):cl(e,l),il=n,$e=i}break;case 30:break;default:cl(e,l)}}function id(e){var t=e.alternate;t!==null&&(e.alternate=null,id(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qi(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 He=null,ot=!1;function ul(e,t,l){for(l=l.child;l!==null;)ud(e,t,l),l=l.sibling}function ud(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Ia,l)}catch{}switch(l.tag){case 26:$e||Qt(l,t),ul(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$e||Qt(l,t);var a=He,n=ot;Ol(l.type)&&(He=l.stateNode,ot=!1),ul(e,t,l),Ln(l.stateNode),He=a,ot=n;break;case 5:$e||Qt(l,t);case 6:if(a=He,n=ot,He=null,ul(e,t,l),He=a,ot=n,He!==null)if(ot)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(l.stateNode)}catch(i){we(l,t,i)}else try{He.removeChild(l.stateNode)}catch(i){we(l,t,i)}break;case 18:He!==null&&(ot?(e=He,Pd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Va(e)):Pd(He,l.stateNode));break;case 4:a=He,n=ot,He=l.stateNode.containerInfo,ot=!0,ul(e,t,l),He=a,ot=n;break;case 0:case 11:case 14:case 15:Rl(2,l,t),$e||Rl(4,l,t),ul(e,t,l);break;case 1:$e||(Qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ed(l,t,a)),ul(e,t,l);break;case 21:ul(e,t,l);break;case 22:$e=(a=$e)||l.memoizedState!==null,ul(e,t,l),$e=a;break;default:ul(e,t,l)}}function cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Va(e)}catch(l){we(t,t.return,l)}}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Va(e)}catch(l){we(t,t.return,l)}}function mx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nd),t;default:throw Error(r(435,e.tag))}}function Qs(e,t){var l=mx(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Nx.bind(null,e,a);a.then(n,n)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Ol(d.type)){He=d.stateNode,ot=!1;break e}break;case 5:He=d.stateNode,ot=!1;break e;case 3:case 4:He=d.stateNode.containerInfo,ot=!0;break e}d=d.return}if(He===null)throw Error(r(160));ud(i,c,n),He=null,ot=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)od(t,e),t=t.sibling}var Yt=null;function od(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),a&4&&(Rl(3,e,e.return),Tn(3,e),Rl(5,e,e.return));break;case 1:ft(t,e),dt(e),a&512&&($e||l===null||Qt(l,l.return)),a&64&&il&&(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=Yt;if(ft(t,e),dt(e),a&512&&($e||l===null||Qt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[tn]||i[Pe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),at(i,a,l),i[Pe]=e,Fe(i),a=i;break e;case"link":var c=o0("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=n.createElement(a),at(i,a,l),n.head.appendChild(i);break;case"meta":if(c=o0("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=n.createElement(a),at(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[Pe]=e,Fe(i),a=i}e.stateNode=a}else f0(n,e.type,e.stateNode);else e.stateNode=r0(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?f0(n,e.type,e.stateNode):r0(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ic(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),dt(e),a&512&&($e||l===null||Qt(l,l.return)),l!==null&&a&4&&ic(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),dt(e),a&512&&($e||l===null||Qt(l,l.return)),e.flags&32){n=e.stateNode;try{xa(n,"")}catch(W){we(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ic(e,n,l!==null?l.memoizedProps:n)),a&1024&&(rc=!0);break;case 6:if(ft(t,e),dt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){we(e,e.return,W)}}break;case 3:if(ii=null,n=Yt,Yt=ni(t.containerInfo),ft(t,e),Yt=n,dt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Va(t.containerInfo)}catch(W){we(e,e.return,W)}rc&&(rc=!1,fd(e));break;case 4:a=Yt,Yt=ni(e.stateNode.containerInfo),ft(t,e),dt(e),Yt=a;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qs(e,a)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Vs=pt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qs(e,a)));break;case 22:n=e.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,R=il,O=$e;if(il=R||n,$e=O||g,ft(t,e),$e=O,il=R,dt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||g||il||$e||sa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){g=l=t;try{if(i=g.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=g.stateNode;var L=g.memoizedProps.style,T=L!=null&&L.hasOwnProperty("display")?L.display:null;d.style.display=T==null||typeof T=="boolean"?"":(""+T).trim()}}catch(W){we(g,g.return,W)}}}else if(t.tag===6){if(l===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(W){we(g,g.return,W)}}}else if(t.tag===18){if(l===null){g=t;try{var M=g.stateNode;n?e0(M,!0):e0(g.stateNode,!1)}catch(W){we(g,g.return,W)}}}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,Qs(e,l))));break;case 19:ft(t,e),dt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Qs(e,a)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ld(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=uc(e);Xs(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(xa(c,""),l.flags&=-33);var d=uc(e);Xs(e,d,c);break;case 3:case 4:var g=l.stateNode.containerInfo,R=uc(e);cc(e,R,g);break;default:throw Error(r(161))}}catch(O){we(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sd(e,t.alternate,t),t=t.sibling}function sa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Rl(4,t,t.return),sa(t);break;case 1:Qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ed(t,t.return,l),sa(t);break;case 27:Ln(t.stateNode);case 26:case 5:Qt(t,t.return),sa(t);break;case 22:t.memoizedState===null&&sa(t);break;case 30:sa(t);break;default:sa(t)}e=e.sibling}}function rl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:rl(n,i,l),Tn(4,i);break;case 1:if(rl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(R){we(a,a.return,R)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)ko(g[n],d)}catch(R){we(a,a.return,R)}}l&&c&64&&Pf(i),_n(i,i.return);break;case 27:ad(i);case 26:case 5:rl(n,i,l),l&&a===null&&c&4&&td(i),_n(i,i.return);break;case 12:rl(n,i,l);break;case 31:rl(n,i,l),l&&c&4&&cd(n,i);break;case 13:rl(n,i,l),l&&c&4&&rd(n,i);break;case 22:i.memoizedState===null&&rl(n,i,l),_n(i,i.return);break;case 30:break;default:rl(n,i,l)}t=t.sibling}}function oc(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&&xn(l))}function fc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&xn(e))}function kt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dd(e,t,l,a),t=t.sibling}function dd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:kt(e,t,l,a),n&2048&&Tn(9,t);break;case 1:kt(e,t,l,a);break;case 3:kt(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&&xn(e)));break;case 12:if(n&2048){kt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){we(t,t.return,g)}}else kt(e,t,l,a);break;case 31:kt(e,t,l,a);break;case 13:kt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?kt(e,t,l,a):Mn(e,t):i._visibility&2?kt(e,t,l,a):(i._visibility|=2,Ua(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&oc(c,t);break;case 24:kt(e,t,l,a),n&2048&&fc(t.alternate,t);break;default:kt(e,t,l,a)}}function Ua(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=l,g=a,R=c.flags;switch(c.tag){case 0:case 11:case 15:Ua(i,c,d,g,n),Tn(8,c);break;case 23:break;case 22:var O=c.stateNode;c.memoizedState!==null?O._visibility&2?Ua(i,c,d,g,n):Mn(i,c):(O._visibility|=2,Ua(i,c,d,g,n)),n&&R&2048&&oc(c.alternate,c);break;case 24:Ua(i,c,d,g,n),n&&R&2048&&fc(c.alternate,c);break;default:Ua(i,c,d,g,n)}t=t.sibling}}function Mn(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:Mn(l,a),n&2048&&oc(a.alternate,a);break;case 24:Mn(l,a),n&2048&&fc(a.alternate,a);break;default:Mn(l,a)}t=t.sibling}}var zn=8192;function Ha(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)md(e,t,l),e=e.sibling}function md(e,t,l){switch(e.tag){case 26:Ha(e,t,l),e.flags&zn&&e.memoizedState!==null&&Px(l,Yt,e.memoizedState,e.memoizedProps);break;case 5:Ha(e,t,l);break;case 3:case 4:var a=Yt;Yt=ni(e.stateNode.containerInfo),Ha(e,t,l),Yt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,Ha(e,t,l),zn=a):Ha(e,t,l));break;default:Ha(e,t,l)}}function hd(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 An(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];Ie=a,vd(a,e)}hd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xd(e),e=e.sibling}function xd(e){switch(e.tag){case 0:case 11:case 15:An(e),e.flags&2048&&Rl(9,e,e.return);break;case 3:An(e);break;case 12:An(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zs(e)):An(e);break;default:An(e)}}function Zs(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];Ie=a,vd(a,e)}hd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Rl(8,t,t.return),Zs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Zs(t));break;default:Zs(t)}e=e.sibling}}function vd(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:Rl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:xn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,i=a.return;if(id(a),a===l){Ie=null;break e}if(n!==null){n.return=i,Ie=n;break e}Ie=i}}}var hx={getCacheForType:function(e){var t=tt(Ve),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return tt(Ve).controller.signal}},xx=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ae=null,me=null,xe=0,Ee=0,Et=null,Tl=!1,Ba=!1,dc=!1,ol=0,ke=0,_l=0,ia=0,mc=0,wt=0,La=0,Dn=null,mt=null,hc=!1,Vs=0,pd=0,Ks=1/0,Js=null,Ml=null,We=0,zl=null,qa=null,fl=0,xc=0,vc=null,gd=null,On=0,pc=null;function Ct(){return(Ne&2)!==0&&xe!==0?xe&-xe:U.T!==null?Sc():Ar()}function yd(){if(wt===0)if((xe&536870912)===0||pe){var e=ls;ls<<=1,(ls&3932160)===0&&(ls=262144),wt=e}else wt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),wt}function ht(e,t,l){(e===Ae&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Ya(e,0),Al(e,xe,wt,!1)),en(e,l),((Ne&2)===0||e!==Ae)&&(e===Ae&&((Ne&2)===0&&(ia|=l),ke===4&&Al(e,xe,wt,!1)),Zt(e))}function bd(e,t,l){if((Ne&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Pa(e,t),n=a?gx(e,t):yc(e,t,!0),i=a;do{if(n===0){Ba&&!a&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!vx(l)){n=yc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Dn;var g=d.current.memoizedState.isDehydrated;if(g&&(Ya(d,c).flags|=256),c=yc(d,c,!1),c!==2){if(dc&&!g){d.errorRecoveryDisabledLanes|=i,ia|=i,n=4;break e}i=mt,mt=n,i!==null&&(mt===null?mt=i:mt.push.apply(mt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Ya(e,0),Al(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Al(a,t,wt,!Tl);break e;case 2:mt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Vs+300-pt(),10<n)){if(Al(a,t,wt,!Tl),ns(a,0,!0)!==0)break e;fl=t,a.timeoutHandle=Fd(jd.bind(null,a,l,mt,Js,hc,t,wt,ia,La,Tl,i,"Throttled",-0,0),n);break e}jd(a,l,mt,Js,hc,t,wt,ia,La,Tl,i,null,-0,0)}}break}while(!0);Zt(e)}function jd(e,t,l,a,n,i,c,d,g,R,O,L,T,M){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wt},md(t,i,L);var W=(i&62914560)===i?Vs-pt():(i&4194048)===i?pd-pt():0;if(W=ev(L,W),W!==null){fl=i,e.cancelPendingCommit=W(_d.bind(null,e,t,i,l,a,n,c,d,g,O,L,null,T,M)),Al(e,i,c,!R);return}}_d(e,t,i,l,a,n,c,d,g)}function vx(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!bt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t,l,a){t&=~mc,t&=~ia,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-yt(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&_r(e,l,t)}function $s(){return(Ne&6)===0?(Un(0),!1):!0}function gc(){if(me!==null){if(Ee===0)var e=me.return;else e=me,el=Fl=null,Ou(e),Ma=null,pn=0,e=me;for(;e!==null;)If(e.alternate,e),e=e.return;me=null}}function Ya(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Hx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fl=0,gc(),Ae=e,me=l=It(e.current,null),xe=t,Ee=0,Et=null,Tl=!1,Ba=Pa(e,t),dc=!1,La=wt=mc=ia=_l=ke=0,mt=Dn=null,hc=!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-yt(a),i=1<<n;t|=e[n],a&=~i}return ol=t,vs(),l}function Nd(e,t){re=null,U.H=wn,t===_a||t===Es?(t=Bo(),Ee=3):t===Nu?(t=Bo(),Ee=4):Ee=t===Wu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,me===null&&(ke=1,Ls(e,zt(t,e.current)))}function Sd(){var e=Nt.current;return e===null?!0:(xe&4194048)===xe?Ut===null:(xe&62914560)===xe||(xe&536870912)!==0?e===Ut:!1}function Ed(){var e=U.H;return U.H=wn,e===null?wn:e}function wd(){var e=U.A;return U.A=hx,e}function Ws(){ke=4,Tl||(xe&4194048)!==xe&&Nt.current!==null||(Ba=!0),(_l&134217727)===0&&(ia&134217727)===0||Ae===null||Al(Ae,xe,wt,!1)}function yc(e,t,l){var a=Ne;Ne|=2;var n=Ed(),i=wd();(Ae!==e||xe!==t)&&(Js=null,Ya(e,t)),t=!1;var c=ke;e:do try{if(Ee!==0&&me!==null){var d=me,g=Et;switch(Ee){case 8:gc(),c=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var R=Ee;if(Ee=0,Et=null,ka(e,d,g,R),l&&Ba){c=0;break e}break;default:R=Ee,Ee=0,Et=null,ka(e,d,g,R)}}px(),c=ke;break}catch(O){Nd(e,O)}while(!0);return t&&e.shellSuspendCounter++,el=Fl=null,Ne=a,U.H=n,U.A=i,me===null&&(Ae=null,xe=0,vs()),c}function px(){for(;me!==null;)Cd(me)}function gx(e,t){var l=Ne;Ne|=2;var a=Ed(),n=wd();Ae!==e||xe!==t?(Js=null,Ks=pt()+500,Ya(e,t)):Ba=Pa(e,t);e:do try{if(Ee!==0&&me!==null){t=me;var i=Et;t:switch(Ee){case 1:Ee=0,Et=null,ka(e,t,i,1);break;case 2:case 9:if(Uo(i)){Ee=0,Et=null,Rd(t);break}t=function(){Ee!==2&&Ee!==9||Ae!==e||(Ee=7),Zt(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Uo(i)?(Ee=0,Et=null,Rd(t)):(Ee=0,Et=null,ka(e,t,i,7));break;case 5:var c=null;switch(me.tag){case 26:c=me.memoizedState;case 5:case 27:var d=me;if(c?d0(c):d.stateNode.complete){Ee=0,Et=null;var g=d.sibling;if(g!==null)me=g;else{var R=d.return;R!==null?(me=R,Fs(R)):me=null}break t}}Ee=0,Et=null,ka(e,t,i,5);break;case 6:Ee=0,Et=null,ka(e,t,i,6);break;case 8:gc(),ke=6;break e;default:throw Error(r(462))}}yx();break}catch(O){Nd(e,O)}while(!0);return el=Fl=null,U.H=a,U.A=n,Ne=l,me!==null?0:(Ae=null,xe=0,vs(),ke)}function yx(){for(;me!==null&&!Gm();)Cd(me)}function Cd(e){var t=Wf(e.alternate,e,ol);e.memoizedProps=e.pendingProps,t===null?Fs(e):me=t}function Rd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Qf(l,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=Qf(l,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:Ou(t);default:If(l,t),t=me=Eo(t,ol),t=Wf(l,t,ol)}e.memoizedProps=e.pendingProps,t===null?Fs(e):me=t}function ka(e,t,l,a){el=Fl=null,Ou(t),Ma=null,pn=0;var n=t.return;try{if(ux(e,n,t,l,xe)){ke=1,Ls(e,zt(l,e.current)),me=null;return}}catch(i){if(n!==null)throw me=n,i;ke=1,Ls(e,zt(l,e.current)),me=null;return}t.flags&32768?(pe||a===1?e=!0:Ba||(xe&536870912)!==0?e=!1:(Tl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Nt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Td(t,e)):Fs(t)}function Fs(e){var t=e;do{if((t.flags&32768)!==0){Td(t,Tl);return}e=t.return;var l=ox(t.alternate,t,ol);if(l!==null){me=l;return}if(t=t.sibling,t!==null){me=t;return}me=t=e}while(t!==null);ke===0&&(ke=5)}function Td(e,t){do{var l=fx(e.alternate,e);if(l!==null){l.flags&=32767,me=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){me=e;return}me=e=l}while(e!==null);ke=6,me=null}function _d(e,t,l,a,n,i,c,d,g){e.cancelPendingCommit=null;do Is();while(We!==0);if((Ne&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=uu,Im(e,l,i,c,d,g),e===Ae&&(me=Ae=null,xe=0),qa=t,zl=e,fl=l,xc=i,vc=n,gd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Sx(es,function(){return Od(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,n=V.p,V.p=2,c=Ne,Ne|=4;try{dx(e,t,l)}finally{Ne=c,V.p=n,U.T=a}}We=1,Md(),zd(),Ad()}}function Md(){if(We===1){We=0;var e=zl,t=qa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var a=V.p;V.p=2;var n=Ne;Ne|=4;try{od(t,e);var i=zc,c=xo(e.containerInfo),d=i.focusedElem,g=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&ho(d.ownerDocument.documentElement,d)){if(g!==null&&lu(d)){var R=g.start,O=g.end;if(O===void 0&&(O=R),"selectionStart"in d)d.selectionStart=R,d.selectionEnd=Math.min(O,d.value.length);else{var L=d.ownerDocument||document,T=L&&L.defaultView||window;if(T.getSelection){var M=T.getSelection(),W=d.textContent.length,ne=Math.min(g.start,W),_e=g.end===void 0?ne:Math.min(g.end,W);!M.extend&&ne>_e&&(c=_e,_e=ne,ne=c);var w=mo(d,ne),b=mo(d,_e);if(w&&b&&(M.rangeCount!==1||M.anchorNode!==w.node||M.anchorOffset!==w.offset||M.focusNode!==b.node||M.focusOffset!==b.offset)){var C=L.createRange();C.setStart(w.node,w.offset),M.removeAllRanges(),ne>_e?(M.addRange(C),M.extend(b.node,b.offset)):(C.setEnd(b.node,b.offset),M.addRange(C))}}}}for(L=[],M=d;M=M.parentNode;)M.nodeType===1&&L.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<L.length;d++){var B=L[d];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}oi=!!Mc,zc=Mc=null}finally{Ne=n,V.p=a,U.T=l}}e.current=t,We=2}}function zd(){if(We===2){We=0;var e=zl,t=qa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var a=V.p;V.p=2;var n=Ne;Ne|=4;try{sd(e,t.alternate,t)}finally{Ne=n,V.p=a,U.T=l}}We=3}}function Ad(){if(We===4||We===3){We=0,Xm();var e=zl,t=qa,l=fl,a=gd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,qa=zl=null,Dd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ml=null),Bi(l),t=t.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Ia,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,n=V.p,V.p=2,U.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];i(d.value,{componentStack:d.stack})}}finally{U.T=t,V.p=n}}(fl&3)!==0&&Is(),Zt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===pc?On++:(On=0,pc=e):On=0,Un(0)}}function Dd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,xn(t)))}function Is(){return Md(),zd(),Ad(),Od()}function Od(){if(We!==5)return!1;var e=zl,t=xc;xc=0;var l=Bi(fl),a=U.T,n=V.p;try{V.p=32>l?32:l,U.T=null,l=vc,vc=null;var i=zl,c=fl;if(We=0,qa=zl=null,fl=0,(Ne&6)!==0)throw Error(r(331));var d=Ne;if(Ne|=4,xd(i.current),dd(i,i.current,c,l),Ne=d,Un(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Ia,i)}catch{}return!0}finally{V.p=n,U.T=a,Dd(e,t)}}function Ud(e,t,l){t=zt(l,t),t=$u(e.stateNode,t,2),e=El(e,t,2),e!==null&&(en(e,2),Zt(e))}function we(e,t,l){if(e.tag===3)Ud(e,e,l);else for(;t!==null;){if(t.tag===3){Ud(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ml===null||!Ml.has(a))){e=zt(l,e),l=Hf(2),a=El(t,l,2),a!==null&&(Bf(l,a,t,e),en(a,2),Zt(a));break}}t=t.return}}function bc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new xx;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)||(dc=!0,n.add(l),e=bx.bind(null,e,t,l),t.then(e,e))}function bx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ae===e&&(xe&l)===l&&(ke===4||ke===3&&(xe&62914560)===xe&&300>pt()-Vs?(Ne&2)===0&&Ya(e,0):mc|=l,La===xe&&(La=0)),Zt(e)}function Hd(e,t){t===0&&(t=Tr()),e=Jl(e,t),e!==null&&(en(e,t),Zt(e))}function jx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(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),Hd(e,l)}function Sx(e,t){return Di(e,t)}var Ps=null,Ga=null,jc=!1,ei=!1,Nc=!1,Dl=0;function Zt(e){e!==Ga&&e.next===null&&(Ga===null?Ps=Ga=e:Ga=Ga.next=e),ei=!0,jc||(jc=!0,wx())}function Un(e,t){if(!Nc&&ei){Nc=!0;do for(var l=!1,a=Ps;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-yt(42|e)+1)-1,i&=n&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Yd(a,i))}else i=xe,i=ns(a,a===Ae?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Pa(a,i)||(l=!0,Yd(a,i));a=a.next}while(l);Nc=!1}}function Ex(){Bd()}function Bd(){ei=jc=!1;var e=0;Dl!==0&&Ux()&&(e=Dl);for(var t=pt(),l=null,a=Ps;a!==null;){var n=a.next,i=Ld(a,t);i===0?(a.next=null,l===null?Ps=n:l.next=n,n===null&&(Ga=l)):(l=a,(e!==0||(i&3)!==0)&&(ei=!0)),a=n}We!==0&&We!==5||Un(e),Dl!==0&&(Dl=0)}function Ld(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-yt(i),d=1<<c,g=n[c];g===-1?((d&l)===0||(d&a)!==0)&&(n[c]=Fm(d,t)):g<=t&&(e.expiredLanes|=d),i&=~d}if(t=Ae,l=xe,l=ns(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Oi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Pa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Oi(a),Bi(l)){case 2:case 8:l=Cr;break;case 32:l=es;break;case 268435456:l=Rr;break;default:l=es}return a=qd.bind(null,e),l=Di(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Oi(a),e.callbackPriority=2,e.callbackNode=null,2}function qd(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Is()&&e.callbackNode!==l)return null;var a=xe;return a=ns(e,e===Ae?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bd(e,a,t),Ld(e,pt()),e.callbackNode!=null&&e.callbackNode===l?qd.bind(null,e):null)}function Yd(e,t){if(Is())return null;bd(e,t,!0)}function wx(){Bx(function(){(Ne&6)!==0?Di(wr,Ex):Bd()})}function Sc(){if(Dl===0){var e=Ra;e===0&&(e=ts,ts<<=1,(ts&261888)===0&&(ts=256)),Dl=e}return Dl}function kd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function Gd(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 i=kd((n[ct]||null).action),c=a.submitter;c&&(t=(t=c[ct]||null)?kd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new ds("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Dl!==0){var g=c?Gd(n,c):new FormData(n);Xu(l,{pending:!0,data:g,method:n.method,action:i},null,g)}}else typeof i=="function"&&(d.preventDefault(),g=c?Gd(n,c):new FormData(n),Xu(l,{pending:!0,data:g,method:n.method,action:i},i,g))},currentTarget:n}]})}}for(var Ec=0;Ec<iu.length;Ec++){var wc=iu[Ec],Rx=wc.toLowerCase(),Tx=wc[0].toUpperCase()+wc.slice(1);qt(Rx,"on"+Tx)}qt(go,"onAnimationEnd"),qt(yo,"onAnimationIteration"),qt(bo,"onAnimationStart"),qt("dblclick","onDoubleClick"),qt("focusin","onFocus"),qt("focusout","onBlur"),qt(Qh,"onTransitionRun"),qt(Zh,"onTransitionStart"),qt(Vh,"onTransitionCancel"),qt(jo,"onTransitionEnd"),ma("onMouseEnter",["mouseout","mouseover"]),ma("onMouseLeave",["mouseout","mouseover"]),ma("onPointerEnter",["pointerout","pointerover"]),ma("onPointerLeave",["pointerout","pointerover"]),Ql("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ql("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ql("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ql("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ql("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hn="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(" "),_x=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hn));function Xd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],g=d.instance,R=d.currentTarget;if(d=d.listener,g!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=R;try{i(n)}catch(O){xs(O)}n.currentTarget=null,i=g}else for(c=0;c<a.length;c++){if(d=a[c],g=d.instance,R=d.currentTarget,d=d.listener,g!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=R;try{i(n)}catch(O){xs(O)}n.currentTarget=null,i=g}}}}function he(e,t){var l=t[Li];l===void 0&&(l=t[Li]=new Set);var a=e+"__bubble";l.has(a)||(Qd(t,e,2,!1),l.add(a))}function Cc(e,t,l){var a=0;t&&(a|=4),Qd(l,e,a,t)}var ti="_reactListening"+Math.random().toString(36).slice(2);function Rc(e){if(!e[ti]){e[ti]=!0,Ur.forEach(function(l){l!=="selectionchange"&&(_x.has(l)||Cc(l,!1,e),Cc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ti]||(t[ti]=!0,Cc("selectionchange",!1,t))}}function Qd(e,t,l,a){switch(y0(t)){case 2:var n=av;break;case 8:n=nv;break;default:n=Gc}l=n.bind(null,t,l,e),n=void 0,!Ki||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 Tc(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var g=c.tag;if((g===3||g===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=oa(d),c===null)return;if(g=c.tag,g===5||g===6||g===26||g===27){a=i=c;continue e}d=d.parentNode}}a=a.return}Kr(function(){var R=i,O=Zi(l),L=[];e:{var T=No.get(e);if(T!==void 0){var M=ds,W=e;switch(e){case"keypress":if(os(l)===0)break e;case"keydown":case"keyup":M=Nh;break;case"focusin":W="focus",M=Fi;break;case"focusout":W="blur",M=Fi;break;case"beforeblur":case"afterblur":M=Fi;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":M=Wr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=oh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=wh;break;case go:case yo:case bo:M=mh;break;case jo:M=Rh;break;case"scroll":case"scrollend":M=ch;break;case"wheel":M=_h;break;case"copy":case"cut":case"paste":M=xh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Ir;break;case"toggle":case"beforetoggle":M=zh}var ne=(t&4)!==0,_e=!ne&&(e==="scroll"||e==="scrollend"),w=ne?T!==null?T+"Capture":null:T;ne=[];for(var b=R,C;b!==null;){var B=b;if(C=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||C===null||w===null||(B=an(b,w),B!=null&&ne.push(Bn(b,B,C))),_e)break;b=b.return}0<ne.length&&(T=new M(T,W,null,l,O),L.push({event:T,listeners:ne}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",T&&l!==Qi&&(W=l.relatedTarget||l.fromElement)&&(oa(W)||W[ra]))break e;if((M||T)&&(T=O.window===O?O:(T=O.ownerDocument)?T.defaultView||T.parentWindow:window,M?(W=l.relatedTarget||l.toElement,M=R,W=W?oa(W):null,W!==null&&(_e=h(W),ne=W.tag,W!==_e||ne!==5&&ne!==27&&ne!==6)&&(W=null)):(M=null,W=R),M!==W)){if(ne=Wr,B="onMouseLeave",w="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(ne=Ir,B="onPointerLeave",w="onPointerEnter",b="pointer"),_e=M==null?T:ln(M),C=W==null?T:ln(W),T=new ne(B,b+"leave",M,l,O),T.target=_e,T.relatedTarget=C,B=null,oa(O)===R&&(ne=new ne(w,b+"enter",W,l,O),ne.target=C,ne.relatedTarget=_e,B=ne),_e=B,M&&W)t:{for(ne=Mx,w=M,b=W,C=0,B=w;B;B=ne(B))C++;B=0;for(var ee=b;ee;ee=ne(ee))B++;for(;0<C-B;)w=ne(w),C--;for(;0<B-C;)b=ne(b),B--;for(;C--;){if(w===b||b!==null&&w===b.alternate){ne=w;break t}w=ne(w),b=ne(b)}ne=null}else ne=null;M!==null&&Zd(L,T,M,ne,!1),W!==null&&_e!==null&&Zd(L,_e,W,ne,!0)}}e:{if(T=R?ln(R):window,M=T.nodeName&&T.nodeName.toLowerCase(),M==="select"||M==="input"&&T.type==="file")var be=io;else if(no(T))if(uo)be=kh;else{be=qh;var I=Lh}else M=T.nodeName,!M||M.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?R&&Xi(R.elementType)&&(be=io):be=Yh;if(be&&(be=be(e,R))){so(L,be,l,O);break e}I&&I(e,T,R),e==="focusout"&&R&&T.type==="number"&&R.memoizedProps.value!=null&&Gi(T,"number",T.value)}switch(I=R?ln(R):window,e){case"focusin":(no(I)||I.contentEditable==="true")&&(ya=I,au=R,dn=null);break;case"focusout":dn=au=ya=null;break;case"mousedown":nu=!0;break;case"contextmenu":case"mouseup":case"dragend":nu=!1,vo(L,l,O);break;case"selectionchange":if(Xh)break;case"keydown":case"keyup":vo(L,l,O)}var oe;if(Pi)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else ga?lo(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(Pr&&l.locale!=="ko"&&(ga||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&ga&&(oe=Jr()):(pl=O,Ji="value"in pl?pl.value:pl.textContent,ga=!0)),I=li(R,ve),0<I.length&&(ve=new Fr(ve,e,null,l,O),L.push({event:ve,listeners:I}),oe?ve.data=oe:(oe=ao(l),oe!==null&&(ve.data=oe)))),(oe=Dh?Oh(e,l):Uh(e,l))&&(ve=li(R,"onBeforeInput"),0<ve.length&&(I=new Fr("onBeforeInput","beforeinput",null,l,O),L.push({event:I,listeners:ve}),I.data=oe)),Cx(L,e,R,l,O)}Xd(L,t)})}function Bn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function li(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=an(e,l),n!=null&&a.unshift(Bn(e,n,i)),n=an(e,t),n!=null&&a.push(Bn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Mx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zd(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var d=l,g=d.alternate,R=d.stateNode;if(d=d.tag,g!==null&&g===a)break;d!==5&&d!==26&&d!==27||R===null||(g=R,n?(R=an(l,i),R!=null&&c.unshift(Bn(l,R,g))):n||(R=an(l,i),R!=null&&c.push(Bn(l,R,g)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var zx=/\r\n?/g,Ax=/\u0000|\uFFFD/g;function Vd(e){return(typeof e=="string"?e:""+e).replace(zx,`
49
+ `).replace(Ax,"")}function Kd(e,t){return t=Vd(t),Vd(e)===t}function Te(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||xa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&xa(e,""+a);break;case"className":is(e,"class",a);break;case"tabIndex":is(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":is(e,l,a);break;case"style":Zr(e,a,i);break;case"data":if(t!=="object"){is(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=cs(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Te(e,t,"name",n.name,n,null),Te(e,t,"formEncType",n.formEncType,n,null),Te(e,t,"formMethod",n.formMethod,n,null),Te(e,t,"formTarget",n.formTarget,n,null)):(Te(e,t,"encType",n.encType,n,null),Te(e,t,"method",n.method,n,null),Te(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=cs(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Wt);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("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=cs(""+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":he("beforetoggle",e),he("toggle",e),ss(e,"popover",a);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ss(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=ih.get(l)||l,ss(e,l,a))}}function _c(e,t,l,a,n,i){switch(l){case"style":Zr(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?xa(e,a):(typeof a=="number"||typeof a=="bigint")&&xa(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[ct]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ss(e,l,a)}}}function at(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,i,c,l,null)}}n&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var d=i=c=n=null,g=null,R=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":c=O;break;case"checked":g=O;break;case"defaultChecked":R=O;break;case"value":i=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Te(e,t,a,O,l,null)}}kr(e,i,d,g,R,c,n,!1);return;case"select":he("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Te(e,t,n,d,l,null)}t=i,l=c,e.multiple=!!a,t!=null?ha(e,!!a,t,!1):l!=null&&ha(e,!!a,l,!0);return;case"textarea":he("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:Te(e,t,c,d,l,null)}Xr(e,a,n,i);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,g,a,l,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<Hn.length;a++)he(Hn[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(R in l)if(l.hasOwnProperty(R)&&(a=l[R],a!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,R,a,l,null)}return;default:if(Xi(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&_c(e,t,O,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Te(e,t,d,a,l,null))}function Dx(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,d=null,g=null,R=null,O=null;for(M in l){var L=l[M];if(l.hasOwnProperty(M)&&L!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":g=L;default:a.hasOwnProperty(M)||Te(e,t,M,null,a,L)}}for(var T in a){var M=a[T];if(L=l[T],a.hasOwnProperty(T)&&(M!=null||L!=null))switch(T){case"type":i=M;break;case"name":n=M;break;case"checked":R=M;break;case"defaultChecked":O=M;break;case"value":c=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:M!==L&&Te(e,t,T,M,a,L)}}ki(e,c,d,g,R,O,i,n);return;case"select":M=c=d=T=null;for(i in l)if(g=l[i],l.hasOwnProperty(i)&&g!=null)switch(i){case"value":break;case"multiple":M=g;default:a.hasOwnProperty(i)||Te(e,t,i,null,a,g)}for(n in a)if(i=a[n],g=l[n],a.hasOwnProperty(n)&&(i!=null||g!=null))switch(n){case"value":T=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==g&&Te(e,t,n,i,a,g)}t=d,l=c,a=M,T!=null?ha(e,!!l,T,!1):!!a!=!!l&&(t!=null?ha(e,!!l,t,!0):ha(e,!!l,l?[]:"",!1));return;case"textarea":M=T=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:Te(e,t,d,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":T=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Te(e,t,c,n,a,i)}Gr(e,T,M);return;case"option":for(var W in l)if(T=l[W],l.hasOwnProperty(W)&&T!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Te(e,t,W,null,a,T)}for(g in a)if(T=a[g],M=l[g],a.hasOwnProperty(g)&&T!==M&&(T!=null||M!=null))switch(g){case"selected":e.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:Te(e,t,g,T,a,M)}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 ne in l)T=l[ne],l.hasOwnProperty(ne)&&T!=null&&!a.hasOwnProperty(ne)&&Te(e,t,ne,null,a,T);for(R in a)if(T=a[R],M=l[R],a.hasOwnProperty(R)&&T!==M&&(T!=null||M!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(137,t));break;default:Te(e,t,R,T,a,M)}return;default:if(Xi(t)){for(var _e in l)T=l[_e],l.hasOwnProperty(_e)&&T!==void 0&&!a.hasOwnProperty(_e)&&_c(e,t,_e,void 0,a,T);for(O in a)T=a[O],M=l[O],!a.hasOwnProperty(O)||T===M||T===void 0&&M===void 0||_c(e,t,O,T,a,M);return}}for(var w in l)T=l[w],l.hasOwnProperty(w)&&T!=null&&!a.hasOwnProperty(w)&&Te(e,t,w,null,a,T);for(L in a)T=a[L],M=l[L],!a.hasOwnProperty(L)||T===M||T==null&&M==null||Te(e,t,L,T,a,M)}function Jd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ox(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,c=n.initiatorType,d=n.duration;if(i&&d&&Jd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var g=l[a],R=g.startTime;if(R>d)break;var O=g.transferSize,L=g.initiatorType;O&&Jd(L)&&(g=g.responseEnd,c+=O*(g<d?1:(d-R)/(g-R)))}if(--a,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mc=null,zc=null;function ai(e){return e.nodeType===9?e:e.ownerDocument}function $d(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 Wd(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 Ac(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 Dc=null;function Ux(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var Fd=typeof setTimeout=="function"?setTimeout:void 0,Hx=typeof clearTimeout=="function"?clearTimeout:void 0,Id=typeof Promise=="function"?Promise:void 0,Bx=typeof queueMicrotask=="function"?queueMicrotask:typeof Id<"u"?function(e){return Id.resolve(null).then(e).catch(Lx)}:Fd;function Lx(e){setTimeout(function(){throw e})}function Ol(e){return e==="head"}function Pd(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),Va(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ln(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ln(l);for(var i=l.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[tn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Ln(e.ownerDocument.body);l=n}while(l);Va(t)}function e0(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 Oc(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":Oc(l),qi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function qx(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[tn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function Yx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Ht(e.nextSibling),e===null))return null;return e}function t0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ht(e.nextSibling),e===null))return null;return e}function Uc(e){return e.data==="$?"||e.data==="$~"}function Hc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function kx(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 Ht(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 Bc=null;function l0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Ht(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function a0(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 n0(e,t,l){switch(t=ai(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 Ln(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qi(e)}var Bt=new Map,s0=new Set;function ni(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var dl=V.d;V.d={f:Gx,r:Xx,D:Qx,C:Zx,L:Vx,m:Kx,X:$x,S:Jx,M:Wx};function Gx(){var e=dl.f(),t=$s();return e||t}function Xx(e){var t=fa(e);t!==null&&t.tag===5&&t.type==="form"?Nf(t):dl.r(e)}var Xa=typeof document>"u"?null:document;function i0(e,t,l){var a=Xa;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),s0.has(n)||(s0.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),at(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Qx(e){dl.D(e),i0("dns-prefetch",e,null)}function Zx(e,t){dl.C(e,t),i0("preconnect",e,t)}function Vx(e,t,l){dl.L(e,t,l);var a=Xa;if(a&&e&&t){var n='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+_t(l.imageSizes)+'"]')):n+='[href="'+_t(e)+'"]';var i=n;switch(t){case"style":i=Qa(e);break;case"script":i=Za(e)}Bt.has(i)||(e=S({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Bt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(qn(i))||t==="script"&&a.querySelector(Yn(i))||(t=a.createElement("link"),at(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Kx(e,t){dl.m(e,t);var l=Xa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Za(e)}if(!Bt.has(i)&&(e=S({rel:"modulepreload",href:e},t),Bt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Yn(i)))return}a=l.createElement("link"),at(a,"link",e),Fe(a),l.head.appendChild(a)}}}function Jx(e,t,l){dl.S(e,t,l);var a=Xa;if(a&&e){var n=da(a).hoistableStyles,i=Qa(e);t=t||"default";var c=n.get(i);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(qn(i)))d.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Bt.get(i))&&Lc(e,l);var g=c=a.createElement("link");Fe(g),at(g,"link",e),g._p=new Promise(function(R,O){g.onload=R,g.onerror=O}),g.addEventListener("load",function(){d.loading|=1}),g.addEventListener("error",function(){d.loading|=2}),d.loading|=4,si(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(i,c)}}}function $x(e,t){dl.X(e,t);var l=Xa;if(l&&e){var a=da(l).hoistableScripts,n=Za(e),i=a.get(n);i||(i=l.querySelector(Yn(n)),i||(e=S({src:e,async:!0},t),(t=Bt.get(n))&&qc(e,t),i=l.createElement("script"),Fe(i),at(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Wx(e,t){dl.M(e,t);var l=Xa;if(l&&e){var a=da(l).hoistableScripts,n=Za(e),i=a.get(n);i||(i=l.querySelector(Yn(n)),i||(e=S({src:e,async:!0,type:"module"},t),(t=Bt.get(n))&&qc(e,t),i=l.createElement("script"),Fe(i),at(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function u0(e,t,l,a){var n=(n=de.current)?ni(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=Qa(l.href),l=da(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=Qa(l.href);var i=da(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(qn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Bt.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},Bt.set(e,l),i||Fx(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=Za(l),l=da(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 Qa(e){return'href="'+_t(e)+'"'}function qn(e){return'link[rel="stylesheet"]['+e+"]"}function c0(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function Fx(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}),at(t,"link",l),Fe(t),e.head.appendChild(t))}function Za(e){return'[src="'+_t(e)+'"]'}function Yn(e){return"script[async]"+e}function r0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Fe(a),a;var n=S({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),at(a,"style",n),si(a,l.precedence,e),t.instance=a;case"stylesheet":n=Qa(l.href);var i=e.querySelector(qn(n));if(i)return t.state.loading|=4,t.instance=i,Fe(i),i;a=c0(l),(n=Bt.get(n))&&Lc(a,n),i=(e.ownerDocument||e).createElement("link"),Fe(i);var c=i;return c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),at(i,"link",a),t.state.loading|=4,si(i,l.precedence,e),t.instance=i;case"script":return i=Za(l.src),(n=e.querySelector(Yn(i)))?(t.instance=n,Fe(n),n):(a=l,(n=Bt.get(i))&&(a=S({},l),qc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Fe(n),at(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,si(a,l.precedence,e));return t.instance}function si(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Lc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ii=null;function o0(e,t,l){if(ii===null){var a=new Map,n=ii=new Map;n.set(l,a)}else n=ii,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[tn]||i[Pe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(i):a.set(c,[i])}}return a}function f0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Ix(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 d0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Px(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=Qa(a.href),i=t.querySelector(qn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ui.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Fe(i);return}i=t.ownerDocument||t,a=c0(a),(n=Bt.get(n))&&Lc(a,n),i=i.createElement("link"),Fe(i);var c=i;c._p=new Promise(function(d,g){c.onload=d,c.onerror=g}),at(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ui.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Yc=0;function ev(e,t){return e.stylesheets&&e.count===0&&ri(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&ri(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Yc===0&&(Yc=62500*Ox());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ri(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Yc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ri(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ci=null;function ri(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ci=new Map,t.forEach(tv,e),ci=null,ui.call(e))}function tv(e,t){if(!(t.state.loading&4)){var l=ci.get(e);if(l)var a=l.get(null);else{l=new Map,ci.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=ui.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var kn={$$typeof:q,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function lv(e,t,l,a,n,i,c,d,g){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ui(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ui(0),this.hiddenUpdates=Ui(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function m0(e,t,l,a,n,i,c,d,g,R,O,L){return e=new lv(e,t,l,c,g,R,O,L,d),t=1,i===!0&&(t|=24),i=jt(3,null,null,t),e.current=i,i.stateNode=e,t=yu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Su(i),e}function h0(e){return e?(e=Na,e):Na}function x0(e,t,l,a,n,i){n=h0(n),a.context===null?a.context=n:a.pendingContext=n,a=Sl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=El(e,a,t),l!==null&&(ht(l,e,t),yn(l,e,t))}function v0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function kc(e,t){v0(e,t),(e=e.alternate)&&v0(e,t)}function p0(e){if(e.tag===13||e.tag===31){var t=Jl(e,67108864);t!==null&&ht(t,e,67108864),kc(e,67108864)}}function g0(e){if(e.tag===13||e.tag===31){var t=Ct();t=Hi(t);var l=Jl(e,t);l!==null&&ht(l,e,t),kc(e,t)}}var oi=!0;function av(e,t,l,a){var n=U.T;U.T=null;var i=V.p;try{V.p=2,Gc(e,t,l,a)}finally{V.p=i,U.T=n}}function nv(e,t,l,a){var n=U.T;U.T=null;var i=V.p;try{V.p=8,Gc(e,t,l,a)}finally{V.p=i,U.T=n}}function Gc(e,t,l,a){if(oi){var n=Xc(a);if(n===null)Tc(e,t,a,fi,l),b0(e,a);else if(iv(n,e,t,l,a))a.stopPropagation();else if(b0(e,a),t&4&&-1<sv.indexOf(e)){for(;n!==null;){var i=fa(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Xl(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var g=1<<31-yt(c);d.entanglements[1]|=g,c&=~g}Zt(i),(Ne&6)===0&&(Ks=pt()+500,Un(0))}}break;case 31:case 13:d=Jl(i,2),d!==null&&ht(d,i,2),$s(),kc(i,2)}if(i=Xc(a),i===null&&Tc(e,t,a,fi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Tc(e,t,a,null,l)}}function Xc(e){return e=Zi(e),Qc(e)}var fi=null;function Qc(e){if(fi=null,e=oa(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=x(t),e!==null)return e;e=null}else if(l===31){if(e=y(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 fi=e,null}function y0(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(Qm()){case wr:return 2;case Cr:return 8;case es:case Zm:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Zc=!1,Ul=null,Hl=null,Bl=null,Gn=new Map,Xn=new Map,Ll=[],sv="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 b0(e,t){switch(e){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":Hl=null;break;case"mouseover":case"mouseout":Bl=null;break;case"pointerover":case"pointerout":Gn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xn.delete(t.pointerId)}}function Qn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=fa(t),t!==null&&p0(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function iv(e,t,l,a,n){switch(t){case"focusin":return Ul=Qn(Ul,e,t,l,a,n),!0;case"dragenter":return Hl=Qn(Hl,e,t,l,a,n),!0;case"mouseover":return Bl=Qn(Bl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Gn.set(i,Qn(Gn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Xn.set(i,Qn(Xn.get(i)||null,e,t,l,a,n)),!0}return!1}function j0(e){var t=oa(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=x(l),t!==null){e.blockedOn=t,Dr(e.priority,function(){g0(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Dr(e.priority,function(){g0(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 di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Xc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Qi=a,l.target.dispatchEvent(a),Qi=null}else return t=fa(l),t!==null&&p0(t),e.blockedOn=l,!1;t.shift()}return!0}function N0(e,t,l){di(e)&&l.delete(t)}function uv(){Zc=!1,Ul!==null&&di(Ul)&&(Ul=null),Hl!==null&&di(Hl)&&(Hl=null),Bl!==null&&di(Bl)&&(Bl=null),Gn.forEach(N0),Xn.forEach(N0)}function mi(e,t){e.blockedOn===t&&(e.blockedOn=null,Zc||(Zc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,uv)))}var hi=null;function S0(e){hi!==e&&(hi=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){hi===e&&(hi=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(Qc(a||l)===null)continue;break}var i=fa(l);i!==null&&(e.splice(t,3),t-=3,Xu(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Va(e){function t(g){return mi(g,e)}Ul!==null&&mi(Ul,e),Hl!==null&&mi(Hl,e),Bl!==null&&mi(Bl,e),Gn.forEach(t),Xn.forEach(t);for(var l=0;l<Ll.length;l++){var a=Ll[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ll.length&&(l=Ll[0],l.blockedOn===null);)j0(l),l.blockedOn===null&&Ll.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[ct]||null;if(typeof i=="function")c||S0(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ct]||null)d=c.formAction;else if(Qc(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),S0(l)}}}function E0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Vc(e){this._internalRoot=e}xi.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Ct();x0(l,a,e,t,null,null)},xi.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;x0(e.current,2,null,e,null,null),$s(),t[ra]=null}};function xi(e){this._internalRoot=e}xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ar();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ll.length&&t!==0&&t<Ll[l].priority;l++);Ll.splice(l,0,e),l===0&&j0(e)}};var w0=o.version;if(w0!=="19.2.4")throw Error(r(527,w0,"19.2.4"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=v(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var cv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vi.isDisabled&&vi.supportsFiber)try{Ia=vi.inject(cv),gt=vi}catch{}}return Vn.createRoot=function(e,t){if(!m(e))throw Error(r(299));var l=!1,a="",n=Af,i=Df,c=Of;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=m0(e,1,!1,null,null,l,a,null,n,i,c,E0),e[ra]=t.current,Rc(e),new Vc(t)},Vn.hydrateRoot=function(e,t,l){if(!m(e))throw Error(r(299));var a=!1,n="",i=Af,c=Df,d=Of,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),t=m0(e,1,!0,t,l??null,a,n,g,i,c,d,E0),t.context=h0(null),l=t.current,a=Ct(),a=Hi(a),n=Sl(a),n.callback=null,El(l,n,a),l=a,t.current.lanes=l,en(t,l),Zt(t),e[ra]=t.current,Rc(e),new xi(t)},Vn.version="19.2.4",Vn}var U0;function pv(){if(U0)return $c.exports;U0=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(o){console.error(o)}}return u(),$c.exports=vv(),$c.exports}var gv=pv();const yv=rr(gv);/**
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 H0="popstate";function bv(u={}){function o(m,h){let{pathname:x="/",search:y="",hash:p=""}=ca(m.location.hash.substring(1));return!x.startsWith("/")&&!x.startsWith(".")&&(x="/"+x),sr("",{pathname:x,search:y,hash:p},h.state&&h.state.usr||null,h.state&&h.state.key||"default")}function f(m,h){let x=m.document.querySelector("base"),y="";if(x&&x.getAttribute("href")){let p=m.location.href,v=p.indexOf("#");y=v===-1?p:p.slice(0,v)}return y+"#"+(typeof h=="string"?h:Jn(h))}function r(m,h){Lt(m.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(h)})`)}return Nv(o,f,r,u)}function Be(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Lt(u,o){if(!u){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function jv(){return Math.random().toString(36).substring(2,10)}function B0(u,o){return{usr:u.state,key:u.key,idx:o}}function sr(u,o,f=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof o=="string"?ca(o):o,state:f,key:o&&o.key||r||jv()}}function Jn({pathname:u="/",search:o="",hash:f=""}){return o&&o!=="?"&&(u+=o.charAt(0)==="?"?o:"?"+o),f&&f!=="#"&&(u+=f.charAt(0)==="#"?f:"#"+f),u}function ca(u){let o={};if(u){let f=u.indexOf("#");f>=0&&(o.hash=u.substring(f),u=u.substring(0,f));let r=u.indexOf("?");r>=0&&(o.search=u.substring(r),u=u.substring(0,r)),u&&(o.pathname=u)}return o}function Nv(u,o,f,r={}){let{window:m=document.defaultView,v5Compat:h=!1}=r,x=m.history,y="POP",p=null,v=N();v==null&&(v=0,x.replaceState({...x.state,idx:v},""));function N(){return(x.state||{idx:null}).idx}function S(){y="POP";let D=N(),G=D==null?null:D-v;v=D,p&&p({action:y,location:_.location,delta:G})}function z(D,G){y="PUSH";let X=sr(_.location,D,G);f&&f(X,D),v=N()+1;let q=B0(X,v),ae=_.createHref(X);try{x.pushState(q,"",ae)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;m.location.assign(ae)}h&&p&&p({action:y,location:_.location,delta:1})}function A(D,G){y="REPLACE";let X=sr(_.location,D,G);f&&f(X,D),v=N();let q=B0(X,v),ae=_.createHref(X);x.replaceState(q,"",ae),h&&p&&p({action:y,location:_.location,delta:0})}function H(D){return Sv(D)}let _={get action(){return y},get location(){return u(m,x)},listen(D){if(p)throw new Error("A history only accepts one active listener");return m.addEventListener(H0,S),p=D,()=>{m.removeEventListener(H0,S),p=null}},createHref(D){return o(m,D)},createURL:H,encodeLocation(D){let G=H(D);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:z,replace:A,go(D){return x.go(D)}};return _}function Sv(u,o=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Be(f,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:Jn(u);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=f+r),new URL(r,f)}function tm(u,o,f="/"){return Ev(u,o,f,!1)}function Ev(u,o,f,r){let m=typeof o=="string"?ca(o):o,h=hl(m.pathname||"/",f);if(h==null)return null;let x=lm(u);wv(x);let y=null;for(let p=0;y==null&&p<x.length;++p){let v=Hv(h);y=Ov(x[p],v,r)}return y}function lm(u,o=[],f=[],r="",m=!1){let h=(x,y,p=m,v)=>{let N={relativePath:v===void 0?x.path||"":v,caseSensitive:x.caseSensitive===!0,childrenIndex:y,route:x};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(r)&&p)return;Be(N.relativePath.startsWith(r),`Absolute route path "${N.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(r.length)}let S=ml([r,N.relativePath]),z=f.concat(N);x.children&&x.children.length>0&&(Be(x.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),lm(x.children,o,z,S,p)),!(x.path==null&&!x.index)&&o.push({path:S,score:Av(S,x.index),routesMeta:z})};return u.forEach((x,y)=>{var p;if(x.path===""||!((p=x.path)!=null&&p.includes("?")))h(x,y);else for(let v of am(x.path))h(x,y,!0,v)}),o}function am(u){let o=u.split("/");if(o.length===0)return[];let[f,...r]=o,m=f.endsWith("?"),h=f.replace(/\?$/,"");if(r.length===0)return m?[h,""]:[h];let x=am(r.join("/")),y=[];return y.push(...x.map(p=>p===""?h:[h,p].join("/"))),m&&y.push(...x),y.map(p=>u.startsWith("/")&&p===""?"/":p)}function wv(u){u.sort((o,f)=>o.score!==f.score?f.score-o.score:Dv(o.routesMeta.map(r=>r.childrenIndex),f.routesMeta.map(r=>r.childrenIndex)))}var Cv=/^:[\w-]+$/,Rv=3,Tv=2,_v=1,Mv=10,zv=-2,L0=u=>u==="*";function Av(u,o){let f=u.split("/"),r=f.length;return f.some(L0)&&(r+=zv),o&&(r+=Tv),f.filter(m=>!L0(m)).reduce((m,h)=>m+(Cv.test(h)?Rv:h===""?_v:Mv),r)}function Dv(u,o){return u.length===o.length&&u.slice(0,-1).every((r,m)=>r===o[m])?u[u.length-1]-o[o.length-1]:0}function Ov(u,o,f=!1){let{routesMeta:r}=u,m={},h="/",x=[];for(let y=0;y<r.length;++y){let p=r[y],v=y===r.length-1,N=h==="/"?o:o.slice(h.length)||"/",S=Ni({path:p.relativePath,caseSensitive:p.caseSensitive,end:v},N),z=p.route;if(!S&&v&&f&&!r[r.length-1].route.index&&(S=Ni({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},N)),!S)return null;Object.assign(m,S.params),x.push({params:m,pathname:ml([h,S.pathname]),pathnameBase:Yv(ml([h,S.pathnameBase])),route:z}),S.pathnameBase!=="/"&&(h=ml([h,S.pathnameBase]))}return x}function Ni(u,o){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[f,r]=Uv(u.path,u.caseSensitive,u.end),m=o.match(f);if(!m)return null;let h=m[0],x=h.replace(/(.)\/+$/,"$1"),y=m.slice(1);return{params:r.reduce((v,{paramName:N,isOptional:S},z)=>{if(N==="*"){let H=y[z]||"";x=h.slice(0,h.length-H.length).replace(/(.)\/+$/,"$1")}const A=y[z];return S&&!A?v[N]=void 0:v[N]=(A||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:x,pattern:u}}function Uv(u,o=!1,f=!0){Lt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],m="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(x,y,p)=>(r.push({paramName:y,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),m+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?m+="\\/*$":u!==""&&u!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,o?void 0:"i"),r]}function Hv(u){try{return u.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Lt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),u}}function hl(u,o){if(o==="/")return u;if(!u.toLowerCase().startsWith(o.toLowerCase()))return null;let f=o.endsWith("/")?o.length-1:o.length,r=u.charAt(f);return r&&r!=="/"?null:u.slice(f)||"/"}var Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Lv(u,o="/"){let{pathname:f,search:r="",hash:m=""}=typeof u=="string"?ca(u):u,h;return f?(f=f.replace(/\/\/+/g,"/"),f.startsWith("/")?h=q0(f.substring(1),"/"):h=q0(f,o)):h=o,{pathname:h,search:kv(r),hash:Gv(m)}}function q0(u,o){let f=o.replace(/\/+$/,"").split("/");return u.split("/").forEach(m=>{m===".."?f.length>1&&f.pop():m!=="."&&f.push(m)}),f.length>1?f.join("/"):"/"}function Pc(u,o,f,r){return`Cannot include a '${u}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function qv(u){return u.filter((o,f)=>f===0||o.route.path&&o.route.path.length>0)}function fr(u){let o=qv(u);return o.map((f,r)=>r===o.length-1?f.pathname:f.pathnameBase)}function dr(u,o,f,r=!1){let m;typeof u=="string"?m=ca(u):(m={...u},Be(!m.pathname||!m.pathname.includes("?"),Pc("?","pathname","search",m)),Be(!m.pathname||!m.pathname.includes("#"),Pc("#","pathname","hash",m)),Be(!m.search||!m.search.includes("#"),Pc("#","search","hash",m)));let h=u===""||m.pathname==="",x=h?"/":m.pathname,y;if(x==null)y=f;else{let S=o.length-1;if(!r&&x.startsWith("..")){let z=x.split("/");for(;z[0]==="..";)z.shift(),S-=1;m.pathname=z.join("/")}y=S>=0?o[S]:"/"}let p=Lv(m,y),v=x&&x!=="/"&&x.endsWith("/"),N=(h||x===".")&&f.endsWith("/");return!p.pathname.endsWith("/")&&(v||N)&&(p.pathname+="/"),p}var ml=u=>u.join("/").replace(/\/\/+/g,"/"),Yv=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),kv=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Gv=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Xv=class{constructor(u,o,f,r=!1){this.status=u,this.statusText=o||"",this.internal=r,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function Qv(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Zv(u){return u.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sm(u,o){let f=u;if(typeof f!="string"||!Bv.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let r=f,m=!1;if(nm)try{let h=new URL(window.location.href),x=f.startsWith("//")?new URL(h.protocol+f):new URL(f),y=hl(x.pathname,o);x.origin===h.origin&&y!=null?f=y+x.search+x.hash:m=!0}catch{Lt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:m,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var im=["POST","PUT","PATCH","DELETE"];new Set(im);var Vv=["GET",...im];new Set(Vv);var Ka=E.createContext(null);Ka.displayName="DataRouter";var Ci=E.createContext(null);Ci.displayName="DataRouterState";var Kv=E.createContext(!1),um=E.createContext({isTransitioning:!1});um.displayName="ViewTransition";var Jv=E.createContext(new Map);Jv.displayName="Fetchers";var $v=E.createContext(null);$v.displayName="Await";var Rt=E.createContext(null);Rt.displayName="Navigation";var $n=E.createContext(null);$n.displayName="Location";var Jt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var mr=E.createContext(null);mr.displayName="RouteError";var cm="REACT_ROUTER_ERROR",Wv="REDIRECT",Fv="ROUTE_ERROR_RESPONSE";function Iv(u){if(u.startsWith(`${cm}:${Wv}:{`))try{let o=JSON.parse(u.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function Pv(u){if(u.startsWith(`${cm}:${Fv}:{`))try{let o=JSON.parse(u.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Xv(o.status,o.statusText,o.data)}catch{}}function ep(u,{relative:o}={}){Be(Ja(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:r}=E.useContext(Rt),{hash:m,pathname:h,search:x}=Wn(u,{relative:o}),y=h;return f!=="/"&&(y=h==="/"?f:ml([f,h])),r.createHref({pathname:y,search:x,hash:m})}function Ja(){return E.useContext($n)!=null}function kl(){return Be(Ja(),"useLocation() may be used only in the context of a <Router> component."),E.useContext($n).location}var rm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function om(u){E.useContext(Rt).static||E.useLayoutEffect(u)}function hr(){let{isDataRoute:u}=E.useContext(Jt);return u?mp():tp()}function tp(){Be(Ja(),"useNavigate() may be used only in the context of a <Router> component.");let u=E.useContext(Ka),{basename:o,navigator:f}=E.useContext(Rt),{matches:r}=E.useContext(Jt),{pathname:m}=kl(),h=JSON.stringify(fr(r)),x=E.useRef(!1);return om(()=>{x.current=!0}),E.useCallback((p,v={})=>{if(Lt(x.current,rm),!x.current)return;if(typeof p=="number"){f.go(p);return}let N=dr(p,JSON.parse(h),m,v.relative==="path");u==null&&o!=="/"&&(N.pathname=N.pathname==="/"?o:ml([o,N.pathname])),(v.replace?f.replace:f.push)(N,v.state,v)},[o,f,h,m,u])}E.createContext(null);function Wn(u,{relative:o}={}){let{matches:f}=E.useContext(Jt),{pathname:r}=kl(),m=JSON.stringify(fr(f));return E.useMemo(()=>dr(u,JSON.parse(m),r,o==="path"),[u,m,r,o])}function lp(u,o){return fm(u,o)}function fm(u,o,f,r,m){var X;Be(Ja(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=E.useContext(Rt),{matches:x}=E.useContext(Jt),y=x[x.length-1],p=y?y.params:{},v=y?y.pathname:"/",N=y?y.pathnameBase:"/",S=y&&y.route;{let q=S&&S.path||"";mm(v,!S||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (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 z=kl(),A;if(o){let q=typeof o=="string"?ca(o):o;Be(N==="/"||((X=q.pathname)==null?void 0:X.startsWith(N)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${N}" but pathname "${q.pathname}" was given in the \`location\` prop.`),A=q}else A=z;let H=A.pathname||"/",_=H;if(N!=="/"){let q=N.replace(/^\//,"").split("/");_="/"+H.replace(/^\//,"").split("/").slice(q.length).join("/")}let D=tm(u,{pathname:_});Lt(S||D!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),Lt(D==null||D[D.length-1].route.element!==void 0||D[D.length-1].route.Component!==void 0||D[D.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let G=up(D&&D.map(q=>Object.assign({},q,{params:Object.assign({},p,q.params),pathname:ml([N,h.encodeLocation?h.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?N:ml([N,h.encodeLocation?h.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),x,f,r,m);return o&&G?E.createElement($n.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...A},navigationType:"POP"}},G):G}function ap(){let u=dp(),o=Qv(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),f=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},x=null;return console.error("Error handled by React Router default ErrorBoundary:",u),x=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:h},"ErrorBoundary")," or"," ",E.createElement("code",{style:h},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),f?E.createElement("pre",{style:m},f):null,x)}var np=E.createElement(ap,null),dm=class extends E.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,o){return o.location!==u.location||o.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:o.error,location:o.location,revalidation:u.revalidation||o.revalidation}}componentDidCatch(u,o){this.props.onError?this.props.onError(u,o):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const f=Pv(u.digest);f&&(u=f)}let o=u!==void 0?E.createElement(Jt.Provider,{value:this.props.routeContext},E.createElement(mr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?E.createElement(sp,{error:u},o):o}};dm.contextType=Kv;var er=new WeakMap;function sp({children:u,error:o}){let{basename:f}=E.useContext(Rt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=Iv(o.digest);if(r){let m=er.get(o);if(m)throw m;let h=sm(r.location,f);if(nm&&!er.get(o))if(h.isExternal||r.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const x=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:r.replace}));throw er.set(o,x),x}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return u}function ip({routeContext:u,match:o,children:f}){let r=E.useContext(Ka);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(Jt.Provider,{value:u},f)}function up(u,o=[],f=null,r=null,m=null){if(u==null){if(!f)return null;if(f.errors)u=f.matches;else if(o.length===0&&!f.initialized&&f.matches.length>0)u=f.matches;else return null}let h=u,x=f==null?void 0:f.errors;if(x!=null){let N=h.findIndex(S=>S.route.id&&(x==null?void 0:x[S.route.id])!==void 0);Be(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(x).join(",")}`),h=h.slice(0,Math.min(h.length,N+1))}let y=!1,p=-1;if(f)for(let N=0;N<h.length;N++){let S=h[N];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(p=N),S.route.id){let{loaderData:z,errors:A}=f,H=S.route.loader&&!z.hasOwnProperty(S.route.id)&&(!A||A[S.route.id]===void 0);if(S.route.lazy||H){y=!0,p>=0?h=h.slice(0,p+1):h=[h[0]];break}}}let v=f&&r?(N,S)=>{var z,A;r(N,{location:f.location,params:((A=(z=f.matches)==null?void 0:z[0])==null?void 0:A.params)??{},unstable_pattern:Zv(f.matches),errorInfo:S})}:void 0;return h.reduceRight((N,S,z)=>{let A,H=!1,_=null,D=null;f&&(A=x&&S.route.id?x[S.route.id]:void 0,_=S.route.errorElement||np,y&&(p<0&&z===0?(mm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,D=null):p===z&&(H=!0,D=S.route.hydrateFallbackElement||null)));let G=o.concat(h.slice(0,z+1)),X=()=>{let q;return A?q=_:H?q=D:S.route.Component?q=E.createElement(S.route.Component,null):S.route.element?q=S.route.element:q=N,E.createElement(ip,{match:S,routeContext:{outlet:N,matches:G,isDataRoute:f!=null},children:q})};return f&&(S.route.ErrorBoundary||S.route.errorElement||z===0)?E.createElement(dm,{location:f.location,revalidation:f.revalidation,component:_,error:A,children:X(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):X()},null)}function xr(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function cp(u){let o=E.useContext(Ka);return Be(o,xr(u)),o}function rp(u){let o=E.useContext(Ci);return Be(o,xr(u)),o}function op(u){let o=E.useContext(Jt);return Be(o,xr(u)),o}function vr(u){let o=op(u),f=o.matches[o.matches.length-1];return Be(f.route.id,`${u} can only be used on routes that contain a unique "id"`),f.route.id}function fp(){return vr("useRouteId")}function dp(){var r;let u=E.useContext(mr),o=rp("useRouteError"),f=vr("useRouteError");return u!==void 0?u:(r=o.errors)==null?void 0:r[f]}function mp(){let{router:u}=cp("useNavigate"),o=vr("useNavigate"),f=E.useRef(!1);return om(()=>{f.current=!0}),E.useCallback(async(m,h={})=>{Lt(f.current,rm),f.current&&(typeof m=="number"?await u.navigate(m):await u.navigate(m,{fromRouteId:o,...h}))},[u,o])}var Y0={};function mm(u,o,f){!o&&!Y0[u]&&(Y0[u]=!0,Lt(!1,f))}E.memo(hp);function hp({routes:u,future:o,state:f,onError:r}){return fm(u,void 0,f,r,o)}function xp({to:u,replace:o,state:f,relative:r}){Be(Ja(),"<Navigate> may be used only in the context of a <Router> component.");let{static:m}=E.useContext(Rt);Lt(!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}=E.useContext(Jt),{pathname:x}=kl(),y=hr(),p=dr(u,fr(h),x,r==="path"),v=JSON.stringify(p);return E.useEffect(()=>{y(JSON.parse(v),{replace:o,state:f,relative:r})},[y,v,r,o,f]),null}function Vt(u){Be(!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 vp({basename:u="/",children:o=null,location:f,navigationType:r="POP",navigator:m,static:h=!1,unstable_useTransitions:x}){Be(!Ja(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=u.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:y,navigator:m,static:h,unstable_useTransitions:x,future:{}}),[y,m,h,x]);typeof f=="string"&&(f=ca(f));let{pathname:v="/",search:N="",hash:S="",state:z=null,key:A="default"}=f,H=E.useMemo(()=>{let _=hl(v,y);return _==null?null:{location:{pathname:_,search:N,hash:S,state:z,key:A},navigationType:r}},[y,v,N,S,z,A,r]);return Lt(H!=null,`<Router basename="${y}"> is not able to match the URL "${v}${N}${S}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:E.createElement(Rt.Provider,{value:p},E.createElement($n.Provider,{children:o,value:H}))}function pp({children:u,location:o}){return lp(ir(u),o)}function ir(u,o=[]){let f=[];return E.Children.forEach(u,(r,m)=>{if(!E.isValidElement(r))return;let h=[...o,m];if(r.type===E.Fragment){f.push.apply(f,ir(r.props.children,h));return}Be(r.type===Vt,`[${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>`),Be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let x={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&&(x.children=ir(r.props.children,h)),f.push(x)}),f}var yi="get",bi="application/x-www-form-urlencoded";function Ri(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function gp(u){return Ri(u)&&u.tagName.toLowerCase()==="button"}function yp(u){return Ri(u)&&u.tagName.toLowerCase()==="form"}function bp(u){return Ri(u)&&u.tagName.toLowerCase()==="input"}function jp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Np(u,o){return u.button===0&&(!o||o==="_self")&&!jp(u)}var pi=null;function Sp(){if(pi===null)try{new FormData(document.createElement("form"),0),pi=!1}catch{pi=!0}return pi}var Ep=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function tr(u){return u!=null&&!Ep.has(u)?(Lt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bi}"`),null):u}function wp(u,o){let f,r,m,h,x;if(yp(u)){let y=u.getAttribute("action");r=y?hl(y,o):null,f=u.getAttribute("method")||yi,m=tr(u.getAttribute("enctype"))||bi,h=new FormData(u)}else if(gp(u)||bp(u)&&(u.type==="submit"||u.type==="image")){let y=u.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=u.getAttribute("formaction")||y.getAttribute("action");if(r=p?hl(p,o):null,f=u.getAttribute("formmethod")||y.getAttribute("method")||yi,m=tr(u.getAttribute("formenctype"))||tr(y.getAttribute("enctype"))||bi,h=new FormData(y,u),!Sp()){let{name:v,type:N,value:S}=u;if(N==="image"){let z=v?`${v}.`:"";h.append(`${z}x`,"0"),h.append(`${z}y`,"0")}else v&&h.append(v,S)}}else{if(Ri(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=yi,r=null,m=bi,x=u}return h&&m==="text/plain"&&(x=h,h=void 0),{action:r,method:f.toLowerCase(),encType:m,formData:h,body:x}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function pr(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Cp(u,o,f,r){let m=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return f?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${r}`:m.pathname=`${m.pathname}.${r}`:m.pathname==="/"?m.pathname=`_root.${r}`:o&&hl(m.pathname,o)==="/"?m.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:m.pathname=`${m.pathname.replace(/\/$/,"")}.${r}`,m}async function Rp(u,o){if(u.id in o)return o[u.id];try{let f=await import(u.module);return o[u.id]=f,f}catch(f){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Tp(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function _p(u,o,f){let r=await Promise.all(u.map(async m=>{let h=o.routes[m.route.id];if(h){let x=await Rp(h,f);return x.links?x.links():[]}return[]}));return Dp(r.flat(1).filter(Tp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function k0(u,o,f,r,m,h){let x=(p,v)=>f[v]?p.route.id!==f[v].route.id:!0,y=(p,v)=>{var N;return f[v].pathname!==p.pathname||((N=f[v].route.path)==null?void 0:N.endsWith("*"))&&f[v].params["*"]!==p.params["*"]};return h==="assets"?o.filter((p,v)=>x(p,v)||y(p,v)):h==="data"?o.filter((p,v)=>{var S;let N=r.routes[p.route.id];if(!N||!N.hasLoader)return!1;if(x(p,v)||y(p,v))return!0;if(p.route.shouldRevalidate){let z=p.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((S=f[0])==null?void 0:S.params)||{},nextUrl:new URL(u,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof z=="boolean")return z}return!0}):[]}function Mp(u,o,{includeHydrateFallback:f}={}){return zp(u.map(r=>{let m=o.routes[r.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),f&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function zp(u){return[...new Set(u)]}function Ap(u){let o={},f=Object.keys(u).sort();for(let r of f)o[r]=u[r];return o}function Dp(u,o){let f=new Set;return new Set(o),u.reduce((r,m)=>{let h=JSON.stringify(Ap(m));return f.has(h)||(f.add(h),r.push({key:h,link:m})),r},[])}function hm(){let u=E.useContext(Ka);return pr(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function Op(){let u=E.useContext(Ci);return pr(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var gr=E.createContext(void 0);gr.displayName="FrameworkContext";function xm(){let u=E.useContext(gr);return pr(u,"You must render this element inside a <HydratedRouter> element"),u}function Up(u,o){let f=E.useContext(gr),[r,m]=E.useState(!1),[h,x]=E.useState(!1),{onFocus:y,onBlur:p,onMouseEnter:v,onMouseLeave:N,onTouchStart:S}=o,z=E.useRef(null);E.useEffect(()=>{if(u==="render"&&x(!0),u==="viewport"){let _=G=>{G.forEach(X=>{x(X.isIntersecting)})},D=new IntersectionObserver(_,{threshold:.5});return z.current&&D.observe(z.current),()=>{D.disconnect()}}},[u]),E.useEffect(()=>{if(r){let _=setTimeout(()=>{x(!0)},100);return()=>{clearTimeout(_)}}},[r]);let A=()=>{m(!0)},H=()=>{m(!1),x(!1)};return f?u!=="intent"?[h,z,{}]:[h,z,{onFocus:Kn(y,A),onBlur:Kn(p,H),onMouseEnter:Kn(v,A),onMouseLeave:Kn(N,H),onTouchStart:Kn(S,A)}]:[!1,z,{}]}function Kn(u,o){return f=>{u&&u(f),f.defaultPrevented||o(f)}}function Hp({page:u,...o}){let{router:f}=hm(),r=E.useMemo(()=>tm(f.routes,u,f.basename),[f.routes,u,f.basename]);return r?E.createElement(Lp,{page:u,matches:r,...o}):null}function Bp(u){let{manifest:o,routeModules:f}=xm(),[r,m]=E.useState([]);return E.useEffect(()=>{let h=!1;return _p(u,o,f).then(x=>{h||m(x)}),()=>{h=!0}},[u,o,f]),r}function Lp({page:u,matches:o,...f}){let r=kl(),{future:m,manifest:h,routeModules:x}=xm(),{basename:y}=hm(),{loaderData:p,matches:v}=Op(),N=E.useMemo(()=>k0(u,o,v,h,r,"data"),[u,o,v,h,r]),S=E.useMemo(()=>k0(u,o,v,h,r,"assets"),[u,o,v,h,r]),z=E.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let _=new Set,D=!1;if(o.forEach(X=>{var ae;let q=h.routes[X.route.id];!q||!q.hasLoader||(!N.some(Q=>Q.route.id===X.route.id)&&X.route.id in p&&((ae=x[X.route.id])!=null&&ae.shouldRevalidate)||q.hasClientLoader?D=!0:_.add(X.route.id))}),_.size===0)return[];let G=Cp(u,y,m.unstable_trailingSlashAwareDataRequests,"data");return D&&_.size>0&&G.searchParams.set("_routes",o.filter(X=>_.has(X.route.id)).map(X=>X.route.id).join(",")),[G.pathname+G.search]},[y,m.unstable_trailingSlashAwareDataRequests,p,r,h,N,o,u,x]),A=E.useMemo(()=>Mp(S,h),[S,h]),H=Bp(S);return E.createElement(E.Fragment,null,z.map(_=>E.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...f})),A.map(_=>E.createElement("link",{key:_,rel:"modulepreload",href:_,...f})),H.map(({key:_,link:D})=>E.createElement("link",{key:_,nonce:f.nonce,...D,crossOrigin:D.crossOrigin??f.crossOrigin})))}function qp(...u){return o=>{u.forEach(f=>{typeof f=="function"?f(o):f!=null&&(f.current=o)})}}var Yp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Yp&&(window.__reactRouterVersion="7.13.0")}catch{}function kp({basename:u,children:o,unstable_useTransitions:f,window:r}){let m=E.useRef();m.current==null&&(m.current=bv({window:r,v5Compat:!0}));let h=m.current,[x,y]=E.useState({action:h.action,location:h.location}),p=E.useCallback(v=>{f===!1?y(v):E.startTransition(()=>y(v))},[f]);return E.useLayoutEffect(()=>h.listen(p),[h,p]),E.createElement(vp,{basename:u,children:o,location:x.location,navigationType:x.action,navigator:h,unstable_useTransitions:f})}var vm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pm=E.forwardRef(function({onClick:o,discover:f="render",prefetch:r="none",relative:m,reloadDocument:h,replace:x,state:y,target:p,to:v,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:z,...A},H){let{basename:_,unstable_useTransitions:D}=E.useContext(Rt),G=typeof v=="string"&&vm.test(v),X=sm(v,_);v=X.to;let q=ep(v,{relative:m}),[ae,Q,$]=Up(r,A),K=Qp(v,{replace:x,state:y,target:p,preventScrollReset:N,relative:m,viewTransition:S,unstable_defaultShouldRevalidate:z,unstable_useTransitions:D});function Z(ge){o&&o(ge),ge.defaultPrevented||K(ge)}let te=E.createElement("a",{...A,...$,href:X.absoluteURL||q,onClick:X.isExternal||h?o:Z,ref:qp(H,Q),target:p,"data-discover":!G&&f==="render"?"true":void 0});return ae&&!G?E.createElement(E.Fragment,null,te,E.createElement(Hp,{page:q})):te});pm.displayName="Link";var gm=E.forwardRef(function({"aria-current":o="page",caseSensitive:f=!1,className:r="",end:m=!1,style:h,to:x,viewTransition:y,children:p,...v},N){let S=Wn(x,{relative:v.relative}),z=kl(),A=E.useContext(Ci),{navigator:H,basename:_}=E.useContext(Rt),D=A!=null&&$p(S)&&y===!0,G=H.encodeLocation?H.encodeLocation(S).pathname:S.pathname,X=z.pathname,q=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;f||(X=X.toLowerCase(),q=q?q.toLowerCase():null,G=G.toLowerCase()),q&&_&&(q=hl(q,_)||q);const ae=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let Q=X===G||!m&&X.startsWith(G)&&X.charAt(ae)==="/",$=q!=null&&(q===G||!m&&q.startsWith(G)&&q.charAt(G.length)==="/"),K={isActive:Q,isPending:$,isTransitioning:D},Z=Q?o:void 0,te;typeof r=="function"?te=r(K):te=[r,Q?"active":null,$?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let ge=typeof h=="function"?h(K):h;return E.createElement(pm,{...v,"aria-current":Z,className:te,ref:N,style:ge,to:x,viewTransition:y},typeof p=="function"?p(K):p)});gm.displayName="NavLink";var Gp=E.forwardRef(({discover:u="render",fetcherKey:o,navigate:f,reloadDocument:r,replace:m,state:h,method:x=yi,action:y,onSubmit:p,relative:v,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:z,...A},H)=>{let{unstable_useTransitions:_}=E.useContext(Rt),D=Kp(),G=Jp(y,{relative:v}),X=x.toLowerCase()==="get"?"get":"post",q=typeof y=="string"&&vm.test(y),ae=Q=>{if(p&&p(Q),Q.defaultPrevented)return;Q.preventDefault();let $=Q.nativeEvent.submitter,K=($==null?void 0:$.getAttribute("formmethod"))||x,Z=()=>D($||Q.currentTarget,{fetcherKey:o,method:K,navigate:f,replace:m,state:h,relative:v,preventScrollReset:N,viewTransition:S,unstable_defaultShouldRevalidate:z});_&&f!==!1?E.startTransition(()=>Z()):Z()};return E.createElement("form",{ref:H,method:X,action:G,onSubmit:r?p:ae,...A,"data-discover":!q&&u==="render"?"true":void 0})});Gp.displayName="Form";function Xp(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ym(u){let o=E.useContext(Ka);return Be(o,Xp(u)),o}function Qp(u,{target:o,replace:f,state:r,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let v=hr(),N=kl(),S=Wn(u,{relative:h});return E.useCallback(z=>{if(Np(z,o)){z.preventDefault();let A=f!==void 0?f:Jn(N)===Jn(S),H=()=>v(u,{replace:A,state:r,preventScrollReset:m,relative:h,viewTransition:x,unstable_defaultShouldRevalidate:y});p?E.startTransition(()=>H()):H()}},[N,v,S,f,r,o,u,m,h,x,y,p])}var Zp=0,Vp=()=>`__${String(++Zp)}__`;function Kp(){let{router:u}=ym("useSubmit"),{basename:o}=E.useContext(Rt),f=fp(),r=u.fetch,m=u.navigate;return E.useCallback(async(h,x={})=>{let{action:y,method:p,encType:v,formData:N,body:S}=wp(h,o);if(x.navigate===!1){let z=x.fetcherKey||Vp();await r(z,f,x.action||y,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:N,body:S,formMethod:x.method||p,formEncType:x.encType||v,flushSync:x.flushSync})}else await m(x.action||y,{unstable_defaultShouldRevalidate:x.unstable_defaultShouldRevalidate,preventScrollReset:x.preventScrollReset,formData:N,body:S,formMethod:x.method||p,formEncType:x.encType||v,replace:x.replace,state:x.state,fromRouteId:f,flushSync:x.flushSync,viewTransition:x.viewTransition})},[r,m,o,f])}function Jp(u,{relative:o}={}){let{basename:f}=E.useContext(Rt),r=E.useContext(Jt);Be(r,"useFormAction must be used inside a RouteContext");let[m]=r.matches.slice(-1),h={...Wn(u||".",{relative:o})},x=kl();if(u==null){h.search=x.search;let y=new URLSearchParams(h.search),p=y.getAll("index");if(p.some(N=>N==="")){y.delete("index"),p.filter(S=>S).forEach(S=>y.append("index",S));let N=y.toString();h.search=N?`?${N}`:""}}return(!u||u===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(h.pathname=h.pathname==="/"?f:ml([f,h.pathname])),Jn(h)}function $p(u,{relative:o}={}){let f=E.useContext(um);Be(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ym("useViewTransitionState"),m=Wn(u,{relative:o});if(!f.isTransitioning)return!1;let h=hl(f.currentLocation.pathname,r)||f.currentLocation.pathname,x=hl(f.nextLocation.pathname,r)||f.nextLocation.pathname;return Ni(m.pathname,x)!=null||Ni(m.pathname,h)!=null}var Wp=em();const Fp=rr(Wp);/**
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 bm=(...u)=>u.filter((o,f,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===f).join(" ").trim();/**
66
+ * @license lucide-react v0.564.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Ip=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
71
+ * @license lucide-react v0.564.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const Pp=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,f,r)=>r?r.toUpperCase():f.toLowerCase());/**
76
+ * @license lucide-react v0.564.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const G0=u=>{const o=Pp(u);return o.charAt(0).toUpperCase()+o.slice(1)};/**
81
+ * @license lucide-react v0.564.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */var eg={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 tg=u=>{for(const o in u)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1};/**
91
+ * @license lucide-react v0.564.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const lg=E.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:f=2,absoluteStrokeWidth:r,className:m="",children:h,iconNode:x,...y},p)=>E.createElement("svg",{ref:p,...eg,width:o,height:o,stroke:u,strokeWidth:r?Number(f)*24/Number(o):f,className:bm("lucide",m),...!h&&!tg(y)&&{"aria-hidden":"true"},...y},[...x.map(([v,N])=>E.createElement(v,N)),...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 ie=(u,o)=>{const f=E.forwardRef(({className:r,...m},h)=>E.createElement(lg,{ref:h,iconNode:o,className:bm(`lucide-${Ip(G0(u))}`,`lucide-${u}`,r),...m}));return f.displayName=G0(u),f};/**
101
+ * @license lucide-react v0.564.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const ag=[["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"}]],jm=ie("activity",ag);/**
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 ng=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],sg=ie("arrow-down",ng);/**
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 ig=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],X0=ie("arrow-right",ig);/**
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 ug=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],cg=ie("arrow-up-down",ug);/**
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 rg=[["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"}]],og=ie("arrow-up-narrow-wide",rg);/**
126
+ * @license lucide-react v0.564.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const fg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],dg=ie("arrow-up",fg);/**
131
+ * @license lucide-react v0.564.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const mg=[["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"}]],hg=ie("bell",mg);/**
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 xg=[["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=ie("briefcase",xg);/**
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 vg=[["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"}]],Si=ie("calendar",vg);/**
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 pg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ji=ie("check",pg);/**
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 gg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Nm=ie("chevron-down",gg);/**
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 yg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],bg=ie("chevron-left",yg);/**
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 jg=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ng=ie("chevron-right",jg);/**
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 Sg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Eg=ie("chevrons-up-down",Sg);/**
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 wg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Kt=ie("circle-alert",wg);/**
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:"M12 8v8",key:"napkw2"}],["path",{d:"m8 12 4 4 4-4",key:"k98ssh"}]],Z0=ie("circle-arrow-down",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 Rg=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Fn=ie("circle-check-big",Rg);/**
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 Tg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_g=ie("circle-question-mark",Tg);/**
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:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ur=ie("circle-x",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 zg=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ei=ie("clock",zg);/**
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 Ag=[["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"}]],Dg=ie("ellipsis-vertical",Ag);/**
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 Og=[["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"}]],Sm=ie("external-link",Og);/**
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 Ug=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Hg=ie("eye-off",Ug);/**
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 Bg=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Lg=ie("eye",Bg);/**
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 qg=[["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"}]],Em=ie("file-text",qg);/**
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 Yg=[["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"}]],kg=ie("git-pull-request",Yg);/**
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 Gg=[["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"}]],Xg=ie("house",Gg);/**
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 Qg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Zg=ie("info",Qg);/**
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 Vg=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Kg=ie("kanban",Vg);/**
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 Jg=[["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=ie("layout-grid",Jg);/**
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 Wg=[["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"}]],V0=ie("layout-list",Wg);/**
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 Fg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],wm=ie("loader-circle",Fg);/**
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 Ig=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Cm=ie("map",Ig);/**
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 Pg=[["path",{d:"M5 12h14",key:"1ays0h"}]],ey=ie("minus",Pg);/**
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 ty=[["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"}]],Rm=ie("pause",ty);/**
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 ly=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Tm=ie("pen",ly);/**
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 ay=[["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"}]],In=ie("play",ay);/**
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 ny=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],$a=ie("plus",ny);/**
291
+ * @license lucide-react v0.564.0 - ISC
292
+ *
293
+ * This source code is licensed under the ISC license.
294
+ * See the LICENSE file in the root directory of this source tree.
295
+ */const sy=[["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"}]],_m=ie("rotate-ccw",sy);/**
296
+ * @license lucide-react v0.564.0 - ISC
297
+ *
298
+ * This source code is licensed under the ISC license.
299
+ * See the LICENSE file in the root directory of this source tree.
300
+ */const iy=[["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"}]],uy=ie("save",iy);/**
301
+ * @license lucide-react v0.564.0 - ISC
302
+ *
303
+ * This source code is licensed under the ISC license.
304
+ * See the LICENSE file in the root directory of this source tree.
305
+ */const cy=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],yr=ie("search",cy);/**
306
+ * @license lucide-react v0.564.0 - ISC
307
+ *
308
+ * This source code is licensed under the ISC license.
309
+ * See the LICENSE file in the root directory of this source tree.
310
+ */const ry=[["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"}]],Mm=ie("settings",ry);/**
311
+ * @license lucide-react v0.564.0 - ISC
312
+ *
313
+ * This source code is licensed under the ISC license.
314
+ * See the LICENSE file in the root directory of this source tree.
315
+ */const oy=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],fy=ie("square-pen",oy);/**
316
+ * @license lucide-react v0.564.0 - ISC
317
+ *
318
+ * This source code is licensed under the ISC license.
319
+ * See the LICENSE file in the root directory of this source tree.
320
+ */const dy=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],my=ie("terminal",dy);/**
321
+ * @license lucide-react v0.564.0 - ISC
322
+ *
323
+ * This source code is licensed under the ISC license.
324
+ * See the LICENSE file in the root directory of this source tree.
325
+ */const hy=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],zm=ie("trash-2",hy);/**
326
+ * @license lucide-react v0.564.0 - ISC
327
+ *
328
+ * This source code is licensed under the ISC license.
329
+ * See the LICENSE file in the root directory of this source tree.
330
+ */const xy=[["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"}]],vy=ie("triangle-alert",xy);/**
331
+ * @license lucide-react v0.564.0 - ISC
332
+ *
333
+ * This source code is licensed under the ISC license.
334
+ * See the LICENSE file in the root directory of this source tree.
335
+ */const py=[["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"}]],gy=ie("wifi",py);/**
336
+ * @license lucide-react v0.564.0 - ISC
337
+ *
338
+ * This source code is licensed under the ISC license.
339
+ * See the LICENSE file in the root directory of this source tree.
340
+ */const yy=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wa=ie("x",yy),K0=u=>{let o;const f=new Set,r=(v,N)=>{const S=typeof v=="function"?v(o):v;if(!Object.is(S,o)){const z=o;o=N??(typeof S!="object"||S===null)?S:Object.assign({},o,S),f.forEach(A=>A(o,z))}},m=()=>o,y={setState:r,getState:m,getInitialState:()=>p,subscribe:v=>(f.add(v),()=>f.delete(v))},p=o=u(r,m,y);return y},by=u=>u?K0(u):K0,jy=u=>u;function Ny(u,o=jy){const f=Ze.useSyncExternalStore(u.subscribe,()=>o(u.getState()),()=>o(u.getInitialState()));return Ze.useDebugValue(f),f}const J0=u=>{const o=by(u),f=r=>Ny(o,r);return Object.assign(f,o),f},Sy=u=>u?J0(u):J0,Ey="";let Am=!1,cr=null;function wy(u){Am=u}function Cy(u){cr=u}function Ry(u){return encodeURIComponent(u.replace(/\//g,"~"))}function Le(u){return Am&&cr?u.replace("/api/",`/api/projects/${Ry(cr)}/`):u}function Ty(){return qe("/api/projects")}async function qe(u,o){const f=`${Ey}${u}`,r=await fetch(f,{headers:{"Content-Type":"application/json",...o==null?void 0:o.headers},...o});if(!r.ok){const m=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(m.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function Dm(){return qe(Le("/api/status"))}function _y(){return qe(Le("/api/prds"))}function My(){return qe(Le("/api/prs"))}function zy(u,o){const f=`?lines=${encodeURIComponent(o)}`;return qe(Le(`/api/logs/${encodeURIComponent(u)}${f}`))}function Om(){return qe(Le("/api/config"))}function Um(u){return qe(Le("/api/config"),{method:"PUT",body:JSON.stringify(u)})}function Ay(){return qe(Le("/api/doctor"))}function Hm(){return qe(Le("/api/schedule-info"))}function Dy(u){return qe(Le("/api/actions/run"),{method:"POST",headers:u?{"Content-Type":"application/json"}:void 0,body:u?JSON.stringify({prdName:u}):void 0})}function Oy(){return qe(Le("/api/actions/review"),{method:"POST"})}function $0(){return qe(Le("/api/actions/install-cron"),{method:"POST"})}function Uy(){return qe(Le("/api/actions/uninstall-cron"),{method:"POST"})}function Hy(u="all"){return qe(Le("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:u})})}function By(u){return qe(Le("/api/actions/retry"),{method:"POST",body:JSON.stringify({prdName:u})})}function Ly(){return qe(Le("/api/actions/clear-lock"),{method:"POST"})}const Yl=["Draft","Ready","In Progress","Review","Done"];function br(){return qe(Le("/api/board/status"))}function qy(u){return qe(Le("/api/board/issues"),{method:"POST",body:JSON.stringify(u)})}function Bm(u,o){return qe(Le(`/api/board/issues/${u}/move`),{method:"PATCH",body:JSON.stringify({column:o})})}function Yy(u){return qe(Le(`/api/board/issues/${u}`),{method:"DELETE"})}function ky(){return qe(Le("/api/roadmap"))}function Gy(){return qe(Le("/api/roadmap/scan"),{method:"POST"})}function Lm(u){return qe(Le("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:u})})}function xt(u,o=[],f){const r=(f==null?void 0:f.enabled)??!0,[m,h]=E.useState(null),[x,y]=E.useState(!0),[p,v]=E.useState(null),N=E.useRef(u);N.current=u;const S=E.useRef(()=>{(async()=>{v(null);try{const A=await N.current();h(A)}catch(A){v(A instanceof Error?A:new Error("Unknown error"))}})()});return S.current=S.current.bind(S),E.useEffect(()=>{if(!r)return;let z=!1;return y(!0),v(null),(async()=>{try{const H=await N.current();z||h(H)}catch(H){z||v(H instanceof Error?H:new Error("Unknown error"))}finally{z||y(!1)}})(),()=>{z=!0}},[...o,r]),{data:m,loading:x,error:p,refetch:S.current}}function qm(u,o=[]){E.useEffect(()=>{const f=Le("/api/status/events"),r=new EventSource(f);return r.addEventListener("status_changed",m=>{try{const h=JSON.parse(m.data);u(h)}catch{}}),r.addEventListener("executor_started",m=>{try{const h=JSON.parse(m.data);console.log("Executor started with PID:",h.pid)}catch{}}),r.onerror=()=>{},()=>{r.close()}},o)}const Xy=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,vt=Sy(u=>({projectName:"Night Watch",setProjectName:o=>u({projectName:o}),toasts:[],addToast:o=>{const f=Math.random().toString(36).substring(7);u(r=>({toasts:[...r.toasts,{...o,id:f}]})),setTimeout(()=>{u(r=>({toasts:r.toasts.filter(m=>m.id!==f)}))},5e3)},removeToast:o=>u(f=>({toasts:f.toasts.filter(r=>r.id!==o)})),globalModeLoading:!0,setGlobalModeLoading:o=>u({globalModeLoading:o}),isGlobalMode:!1,setGlobalMode:o=>{wy(o),u({isGlobalMode:o})},projects:[],setProjects:o=>u({projects:o}),selectedProjectId:Xy,selectProject:o=>{Cy(o),o?localStorage.setItem("nw-selected-project",o):localStorage.removeItem("nw-selected-project"),u(f=>{const r=f.projects.find(m=>m.name===o);return{selectedProjectId:o,...r?{projectName:r.name}:{}}})}})),Qy=()=>{const[u,o]=E.useState(!1),{projectName:f,isGlobalMode:r,projects:m,selectedProjectId:h,selectProject:x}=vt(),y=[{icon:Xg,label:"Dashboard",path:"/"},{icon:Kg,label:"Board",path:"/board"},{icon:Em,label:"PRDs",path:"/prds",badge:3},{icon:kg,label:"Pull Requests",path:"/prs",badge:1},{icon:Cm,label:"Roadmap",path:"/roadmap"},{icon:Si,label:"Scheduling",path:"/scheduling"},{icon:my,label:"Logs",path:"/logs"},{icon:Mm,label:"Settings",path:"/settings"}];return s.jsxs("aside",{className:`
341
+ relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
342
+ ${u?"w-20":"w-72"} h-screen flex-shrink-0 z-50
343
+ bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
344
+ `,children:[s.jsx("div",{className:`p-6 border-b border-white/5 ${u?"items-center justify-center flex":""}`,children:u?s.jsx("div",{className:"relative group",children:s.jsx("div",{className:"h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white font-bold cursor-pointer shadow-lg shadow-indigo-500/20 group-hover:bg-indigo-500 transition-colors bg-gradient-to-br from-indigo-500 to-indigo-700",title:"Switch Project",children:"NW"})}):s.jsxs("div",{className:"relative w-full",children:[s.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?s.jsxs("div",{className:"relative",children:[s.jsx(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:p=>x(p.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(p=>p.valid).map(p=>s.jsx("option",{value:p.name,children:p.name},p.name))}),s.jsx(Eg,{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:f})]})]})}),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:y.map(p=>s.jsx("li",{children:s.jsx(gm,{to:p.path,className:({isActive:v})=>`
345
+ flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
346
+ ${v?"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"}
347
+ ${u?"justify-center":""}
348
+ `,children:({isActive:v})=>s.jsxs(s.Fragment,{children:[s.jsx(p.icon,{className:`h-5 w-5 transition-colors ${v?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${u?"":"mr-3.5"}`}),!u&&s.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:p.label}),p.badge&&(u?s.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):s.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${v?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:p.badge})),v&&!u&&s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-indigo-500 rounded-r-full shadow-[0_0_10px_rgba(99,102,241,0.4)]"}),u&&s.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:p.label})]})})},p.path))})}),s.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:s.jsx("button",{onClick:()=>o(!u),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:u?s.jsx(Ng,{className:"h-5 w-5"}):s.jsx(bg,{className:"h-5 w-5"})})})]})},Zy=()=>{const{projectName:u}=vt();return s.jsxs("header",{className:"h-20 flex items-center justify-between px-8 z-40 sticky top-0 bg-[#030712]/80 backdrop-blur-md border-b border-white/5",children:[s.jsxs("div",{className:"flex items-center space-x-6",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),s.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:u})]}),s.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),s.jsxs("div",{className:"flex items-center space-x-2 text-xs font-medium px-3 py-1.5 rounded-full border transition-colors bg-emerald-500/5 text-emerald-400 border-emerald-500/20 shadow-[0_0_10px_-4px_rgba(16,185,129,0.3)]",children:[s.jsx(gy,{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(yr,{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(hg,{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(Mm,{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"})]})]})},De=({children:u,className:o="",onClick:f})=>s.jsxs("div",{className:`
349
+ relative bg-[#0b101b] rounded-xl border border-white/5
350
+ shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
351
+ transition-all duration-300
352
+ ${f?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
353
+ ${o}
354
+ `,onClick:f,children:[f&&s.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),s.jsx("div",{className:"relative z-10",children:u})]}),fe=({children:u,variant:o="primary",size:f="md",loading:r=!1,className:m="",disabled:h,...x})=>{const y="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-offset-[#030712] disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98]",p={primary:"bg-indigo-600 text-white hover:bg-indigo-500 focus:ring-indigo-500 shadow-[0_0_15px_-3px_rgba(79,70,229,0.4)] border border-indigo-500/50 hover:shadow-[0_0_20px_-3px_rgba(79,70,229,0.5)]",secondary:"bg-[#1f2937] text-slate-200 hover:bg-[#374151] focus:ring-slate-500 border border-white/5",danger:"bg-red-600/10 text-red-400 hover:bg-red-600/20 focus:ring-red-500 border border-red-900/50 hover:border-red-500/50",ghost:"bg-transparent text-slate-400 hover:bg-white/5 hover:text-slate-200 focus:ring-slate-400",outline:"border border-slate-700/50 bg-transparent text-slate-300 hover:bg-white/5 hover:border-slate-500 focus:ring-slate-400"},v={sm:"h-8 px-3 text-xs tracking-wide",md:"h-10 px-4 py-2 text-sm",lg:"h-12 px-6 text-base",icon:"h-9 w-9"};return s.jsxs("button",{className:`${y} ${p[o]} ${v[f]} ${m}`,disabled:h||r,...x,children:[r&&s.jsx(wm,{className:"mr-2 h-4 w-4 animate-spin"}),u]})},Vy={Draft:"text-slate-400 bg-slate-500/10 ring-slate-500/20",Ready:"text-green-400 bg-green-500/10 ring-green-500/20","In Progress":"text-blue-400 bg-blue-500/10 ring-blue-500/20",Review:"text-amber-400 bg-amber-500/10 ring-amber-500/20",Done:"text-slate-500 bg-slate-600/10 ring-slate-600/20"},Ky=()=>{const u=hr(),[o,f]=E.useState(null),[r,m]=E.useState(!1),[h,x]=E.useState(null),{setProjectName:y,addToast:p,selectedProjectId:v,globalModeLoading:N}=vt(),{data:S,loading:z,error:A,refetch:H}=xt(Dm,[v],{enabled:!N}),{data:_}=xt(Hm,[v],{enabled:!N}),{data:D}=xt(()=>br().catch(()=>null),[v],{enabled:!N});qm(P=>{x(P)},[v]);const G=h||S;if(Ze.useEffect(()=>{G!=null&&G.projectName&&y(G.projectName)},[G,y]),E.useEffect(()=>{const P=setInterval(()=>{H()},3e4);return()=>clearInterval(P)},[H]),E.useEffect(()=>{const P=()=>H();return window.addEventListener("focus",P),()=>window.removeEventListener("focus",P)},[H]),N||z)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(A)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),s.jsx("div",{className:"text-sm text-slate-500",children:A.message}),s.jsx(fe,{onClick:()=>H(),children:"Retry"})]});if(!G)return null;const X=G.prds.filter(P=>P.status==="ready").length,q=G.prds.filter(P=>P.status==="in-progress"),ae=G.prs.length,Q=G.prs.filter(P=>P.reviewScore!==null&&P.reviewScore<70).length,$=G.processes.find(P=>P.name==="executor"),K=G.processes.find(P=>P.name==="reviewer"),Z=async P=>{f(P);try{const k=await Hy(P),le=k.results.every(ye=>ye.success);p({title:le?"Process Cancelled":"Cancel Failed",message:k.results.map(ye=>ye.message).join("; "),type:le?"success":"error"})}catch(k){p({title:"Cancel Failed",message:k instanceof Error?k.message:"Failed to cancel process",type:"error"})}finally{f(null),H()}},te=async()=>{m(!0);try{await Ly(),p({title:"Lock Cleared",message:"Stale executor state removed",type:"success"}),H()}catch(P){p({title:"Clear Failed",message:P instanceof Error?P.message:"Failed to clear lock",type:"error"})}finally{m(!1)}},ge=P=>{if(!P)return"Not scheduled";try{const k=new Date(P),le=new Date,ye=k.getTime()-le.getTime(),Me=Math.floor(ye/6e4);return Me<0?"Running now...":Me<60?`In ${Me} min`:Me<1440?`In ${Math.floor(Me/60)} hr${Me>=120?"s":""}`:`In ${Math.floor(Me/1440)} day${Me>=2880?"s":""}`}catch{return"Unknown"}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[s.jsxs(De,{className:"p-5",onClick:()=>u("/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:X})]}),s.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:s.jsx(Fn,{className:"h-5 w-5"})})]}),s.jsxs("p",{className:"text-xs text-slate-500 mt-4",children:["of ",G.prds.length," total"]})]}),s.jsxs(De,{className:"p-5",onClick:()=>u("/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:q.length})]}),s.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:s.jsx(jm,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4 truncate",children:q.length===1?q[0].name:`${q.length} active`})]}),s.jsxs(De,{className:"p-5",onClick:()=>u("/prs"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:ae})]}),s.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:s.jsx(Ei,{className:"h-5 w-5"})})]}),s.jsx("p",{className:`text-xs mt-4 ${Q>0?"text-red-400 font-medium":"text-slate-500"}`,children:Q>0?`${Q} need work`:"All passing"})]}),s.jsxs(De,{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:G.crontab.installed?"Active":"Inactive"})]}),s.jsx("div",{className:`p-2 rounded-lg ${G.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:s.jsx(Si,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:G.crontab.installed?`${G.crontab.entries.length} entr${G.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),s.jsxs(De,{className:"p-6",children:[s.jsx("h2",{className:"text-base font-semibold text-slate-200 mb-4",children:"System Status"}),s.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),s.jsx("p",{className:"text-sm text-slate-200",children:G.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:G.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:G.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(G.timestamp).toLocaleString()})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(De,{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 ${$!=null&&$.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${$!=null&&$.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:$!=null&&$.running?`PID: ${$.pid} • ${G.activePrd??"Running"}`:"Idle"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[($==null?void 0:$.running)&&s.jsxs(fe,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>Z("run"),disabled:o==="run",children:[s.jsx(ur,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),!($!=null&&$.running)&&q.length>0&&s.jsx(fe,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300",onClick:te,disabled:r,children:r?"Clearing...":"Force Clear"}),s.jsx(fe,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${K!=null&&K.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 ${K!=null&&K.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:K!=null&&K.running?`PID: ${K.pid} • Running`:"Idle"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[(K==null?void 0:K.running)&&s.jsxs(fe,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>Z("review"),disabled:o==="review",children:[s.jsx(ur,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),s.jsx(fe,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),disabled:!(K!=null&&K.running),children:"View Log"})]})]})]})]}),s.jsxs(De,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),s.jsxs("button",{onClick:()=>u("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",s.jsx(X0,{className:"ml-1 h-3 w-3"})]})]}),s.jsxs("div",{className:"space-y-3",children:[s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${_!=null&&_.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(Si,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${_!=null&&_.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:_!=null&&_.paused?"Paused":ge(_==null?void 0:_.executor.nextRun)})]})]})}),s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${_!=null&&_.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(Ei,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${_!=null&&_.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:_!=null&&_.paused?"Paused":ge(_==null?void 0:_.reviewer.nextRun)})]})]})})]})]})]}),s.jsxs("div",{className:"mt-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"GitHub Board"}),s.jsxs("button",{onClick:()=>u("/board"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View board ",s.jsx(X0,{className:"ml-1 h-3 w-3"})]})]}),s.jsx(De,{className:"p-4",children:D?s.jsx("div",{className:"flex flex-wrap gap-3",children:Yl.map(P=>{var le;const k=((le=D.columns[P])==null?void 0:le.length)??0;return s.jsxs("button",{onClick:()=>u("/board"),className:`inline-flex items-center space-x-2 px-3 py-2 rounded-lg ring-1 ring-inset transition-colors hover:opacity-80 ${Vy[P]}`,children:[s.jsx("span",{className:"text-xs font-medium",children:P}),s.jsx("span",{className:"text-xs font-bold",children:k})]},P)})}):s.jsxs("p",{className:"text-sm text-slate-500 italic",children:["Board not configured — run ",s.jsx("code",{className:"font-mono bg-slate-800 px-1.5 py-0.5 rounded text-indigo-300 text-xs",children:"night-watch board setup"})," to enable."]})})]})]})},ua=({children:u,variant:o="default",className:f=""})=>{const r={default:"bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20",success:"bg-emerald-500/10 text-emerald-400 ring-1 ring-inset ring-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 ring-1 ring-inset ring-amber-500/20",error:"bg-red-500/10 text-red-400 ring-1 ring-inset ring-red-500/20",neutral:"bg-slate-500/10 text-slate-400 ring-1 ring-inset ring-slate-500/20",info:"bg-blue-500/10 text-blue-400 ring-1 ring-inset ring-blue-500/20"};return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${f}`,children:u})},Jy=({isOpen:u,onClose:o,title:f,children:r})=>(E.useEffect(()=>{const m=h=>{h.key==="Escape"&&o()};return u&&(document.addEventListener("keydown",m),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",m),document.body.style.overflow="unset"}},[u,o]),u?Fp.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:o,"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:f}),s.jsx("button",{onClick:o,className:"rounded-full p-1 text-slate-400 hover:bg-slate-800 hover:text-slate-300 focus:outline-none focus:ring-2 focus:ring-indigo-500",children:s.jsx(Wa,{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),lr={ready:"Ready","in-progress":"In Progress",blocked:"Blocked","pending-review":"Pending Review",done:"Done"},ar={ready:"success","in-progress":"info",blocked:"error","pending-review":"warning",done:"neutral"},$y=()=>{const[u,o]=E.useState("list"),[f,r]=E.useState(!1),[m,h]=E.useState(null),[x,y]=E.useState(!1),[p,v]=E.useState(!1),[N,S]=E.useState({}),{addToast:z,selectedProjectId:A,globalModeLoading:H}=vt(),{data:_,loading:D,error:G,refetch:X}=xt(_y,[A],{enabled:!H}),q=_??[],{data:ae}=xt(()=>br().catch(()=>null),[A],{enabled:!H}),Q=Ze.useMemo(()=>{const k=new Map;if(!ae)return k;for(const le of Object.values(ae.columns))for(const ye of le)k.set(ye.title.toLowerCase().trim(),ye);return k},[ae]),$=k=>{if(!k.content)return k.name;const le=k.content.match(/^#\s+(.+)$/m);return le?le[1].trim():k.name},K=k=>{const le=$(k).toLowerCase().trim();return Q.get(le)??null},Z=q.map(k=>N[k.name]?{...k,status:N[k.name]}:k);E.useEffect(()=>{if(Object.keys(N).length>0){const k=Object.keys(N).filter(le=>q.some(ye=>ye.name===le&&ye.status!=="ready"));k.length>0&&S(le=>{const ye={...le};for(const Me of k)delete ye[Me];return ye})}},[q,N]),qm(()=>{X()},[A]);const te=async()=>{if(m){v(!0);try{const k=await By(m.name);z({title:"PRD Queued",message:k.message,type:"success"}),h(null),X()}catch(k){z({title:"Retry Failed",message:k instanceof Error?k.message:"Failed to retry PRD",type:"error"})}finally{v(!1)}}},ge=k=>{k.preventDefault(),r(!1)},P=async()=>{if(m){y(!0),S(k=>({...k,[m.name]:"in-progress"}));try{const k=await Dy(m.name);z({title:"Executor Started",message:k.pid?`Started with PID ${k.pid}`:"Executor started",type:"success"}),X()}catch(k){S(le=>{const ye={...le};return delete ye[m.name],ye}),z({title:"Executor Failed",message:k instanceof Error?k.message:"Failed to start executor",type:"error"})}finally{y(!1)}}};return E.useEffect(()=>{const k=setInterval(()=>X(),3e4);return()=>clearInterval(k)},[X]),E.useEffect(()=>{const k=()=>X();return window.addEventListener("focus",k),()=>window.removeEventListener("focus",k)},[X]),E.useEffect(()=>{if(m){const k=Z.find(le=>le.name===m.name);k&&h(k)}},[Z,m]),D?s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading PRDs..."})}):G?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load PRDs"}),s.jsx("div",{className:"text-sm text-slate-500",children:G.message}),s.jsx(fe,{onClick:()=>X(),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(fe,{variant:u==="list"?"secondary":"ghost",size:"icon",onClick:()=>o("list"),children:s.jsx(V0,{className:"h-4 w-4"})}),s.jsx(fe,{variant:u==="card"?"secondary":"ghost",size:"icon",onClick:()=>o("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(fe,{variant:"outline",size:"sm",children:[s.jsx(og,{className:"h-4 w-4 mr-2"}),"Sort"]}),s.jsxs(fe,{onClick:()=>r(!0),size:"sm",children:[s.jsx($a,{className:"h-4 w-4 mr-2"}),"New PRD"]})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto pr-1 pb-10",children:u==="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:[Z.map(k=>s.jsxs("tr",{className:"hover:bg-slate-800/50 group cursor-pointer transition-colors",onClick:()=>h(k),children:[s.jsxs("td",{className:"px-6 py-4",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:k.name}),(()=>{const le=K(k);return le?s.jsxs("a",{href:le.url,target:"_blank",rel:"noopener noreferrer",onClick:ye=>ye.stopPropagation(),className:"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-medium bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20 hover:bg-indigo-500/20 transition-colors",title:`Board: #${le.number} — ${le.column}`,children:["#",le.number," · ",le.column]}):null})()]}),k.unmetDependencies.length>0&&s.jsxs("div",{className:"text-xs text-amber-400 mt-1",children:["Blocked by: ",k.unmetDependencies.join(", ")]})]}),s.jsx("td",{className:"px-6 py-4 whitespace-nowrap",children:s.jsx(ua,{variant:ar[k.status],children:lr[k.status]})}),s.jsx("td",{className:"px-6 py-4",children:k.dependencies.length>0?s.jsx("div",{className:"flex flex-wrap gap-1",children:k.dependencies.map(le=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:le},le))}):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(Dg,{className:"h-4 w-4"})})})]},k.name)),Z.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:[Z.map(k=>s.jsxs(De,{className:"p-5 flex flex-col h-full hover:border-indigo-500/50 transition-colors",onClick:()=>h(k),children:[s.jsxs("div",{className:"flex justify-between items-start mb-4",children:[s.jsx(ua,{variant:ar[k.status],children:lr[k.status]}),k.status==="in-progress"&&s.jsx("div",{className:"h-2 w-2 bg-blue-500 rounded-full animate-pulse"}),k.status==="pending-review"&&s.jsx("div",{className:"h-2 w-2 bg-yellow-500 rounded-full animate-pulse"})]}),s.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:k.name}),(()=>{const le=K(k);return le?s.jsxs("a",{href:le.url,target:"_blank",rel:"noopener noreferrer",onClick:ye=>ye.stopPropagation(),className:"inline-flex items-center px-2 py-0.5 rounded text-[10px] font-medium bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20 hover:bg-indigo-500/20 transition-colors flex-shrink-0",children:["#",le.number," · ",le.column]}):null})()]}),k.content&&s.jsx("p",{className:"text-sm text-slate-400 flex-1 line-clamp-3",children:k.content.replace(/^#.*\n/,"")}),s.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-800",children:[k.dependencies.length>0&&s.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:k.dependencies.map(le=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 text-slate-400 text-xs rounded border border-slate-700",children:le},le))}),k.unmetDependencies.length>0&&s.jsxs("div",{className:"text-xs text-amber-400",children:["Blocked by: ",k.unmetDependencies.join(", ")]})]})]},k.name)),Z.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(Jy,{isOpen:f,onClose:()=>r(!1),title:"Create New PRD",children:s.jsxs("form",{onSubmit:ge,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:[Z.map(k=>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:k.name})]},k.name)),Z.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(fe,{type:"button",variant:"ghost",onClick:()=>r(!1),children:"Cancel"}),s.jsx(fe,{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(V0,{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(ua,{variant:ar[m.status],className:"text-sm px-3 py-1",children:lr[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(k=>s.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-300 text-xs rounded border border-slate-700",children:k},k))}):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.jsx("div",{className:"p-4 border-t border-slate-800 bg-slate-900 flex space-x-3",children:m.status==="done"?s.jsxs(fe,{className:"flex-1",onClick:te,disabled:p,children:[s.jsx(_m,{className:"h-4 w-4 mr-2"}),p?"Moving...":"Retry"]}):s.jsxs(fe,{className:"flex-1",onClick:P,disabled:x||m.status==="in-progress",children:[s.jsx(In,{className:"h-4 w-4 mr-2"}),x?"Executing...":"Execute Now"]})})]})]})]})},W0=u=>{switch(u){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available or CI not configured"}},gi=u=>u===null?"No review yet or review not required":u===100?"PR has been approved":u===0?"Changes have been requested":`Review score: ${u}`,Wy=()=>{const[u,o]=E.useState(null),[f,r]=E.useState(!1),[m,h]=E.useState("all"),[x,y]=E.useState("number"),[p,v]=E.useState("desc"),{addToast:N,selectedProjectId:S,globalModeLoading:z}=vt(),{data:A,loading:H,error:_,refetch:D}=xt(My,[S],{enabled:!z}),G=A??[],X=Z=>{switch(Z){case"pass":return s.jsx(Fn,{className:"h-4 w-4 text-green-500"});case"fail":return s.jsx(ur,{className:"h-4 w-4 text-red-500"});case"pending":return s.jsx(wm,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return s.jsx(_g,{className:"h-4 w-4 text-slate-500"})}},q=E.useMemo(()=>G.filter(Z=>{switch(m){case"needs-work":return Z.ciStatus==="fail"||Z.reviewScore===0;case"pending":return Z.ciStatus==="pending"||Z.ciStatus==="unknown"||Z.reviewScore===null;case"passed":return Z.ciStatus==="pass"&&Z.reviewScore===100;case"all":default:return!0}}),[G,m]),ae=E.useMemo(()=>[...q].sort((te,ge)=>{let P=0;switch(x){case"number":P=te.number-ge.number;break;case"title":P=te.title.localeCompare(ge.title);break;case"branch":P=te.branch.localeCompare(ge.branch);break;case"ciStatus":{const k={fail:0,pending:1,unknown:2,pass:3};P=(k[te.ciStatus]??2)-(k[ge.ciStatus]??2);break}case"reviewScore":{const k=te.reviewScore??-1,le=ge.reviewScore??-1;P=k-le;break}}return p==="asc"?P:-P}),[q,x,p]),Q=Z=>{x===Z?v(p==="asc"?"desc":"asc"):(y(Z),v("desc"))},$=Z=>x!==Z?s.jsx(cg,{className:"h-3 w-3 text-slate-600"}):p==="asc"?s.jsx(dg,{className:"h-3 w-3 text-indigo-400"}):s.jsx(sg,{className:"h-3 w-3 text-indigo-400"});if(H)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(_)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),s.jsx("div",{className:"text-sm text-slate-500",children:_.message}),s.jsx(fe,{onClick:()=>D(),children:"Retry"})]});const K=async()=>{r(!0);try{const Z=await Oy();N({title:"Reviewer Started",message:Z.pid?`Started with PID ${Z.pid}`:"Reviewer started",type:"success"})}catch(Z){N({title:"Reviewer Failed",message:Z instanceof Error?Z.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("button",{onClick:()=>h("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="all"?"bg-slate-800 text-slate-200 border-slate-700":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"All"}),s.jsx("button",{onClick:()=>h("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="needs-work"?"bg-red-900/50 text-red-300 border-red-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Needs Work"}),s.jsx("button",{onClick:()=>h("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="pending"?"bg-amber-900/50 text-amber-300 border-amber-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Pending"}),s.jsx("button",{onClick:()=>h("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${m==="passed"?"bg-green-900/50 text-green-300 border-green-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Passed"})]}),s.jsxs(fe,{size:"sm",onClick:K,disabled:f,children:[s.jsx(yr,{className:"h-4 w-4 mr-2"}),f?"Starting...":"Run Reviewer Now"]})]}),s.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[s.jsx("thead",{className:"bg-slate-950/50",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>Q("number"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Title"}),$("number")]})}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>Q("branch"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Branch"}),$("branch")]})}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>Q("ciStatus"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"CI Status"}),$("ciStatus")]})}),s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>Q("reviewScore"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Review Score"}),$("reviewScore")]})}),s.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),s.jsxs("tbody",{className:"divide-y divide-slate-800",children:[ae.map(Z=>s.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>o(u===Z.number?null:Z.number),children:[s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center",children:[s.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",Z.number]}),s.jsx("span",{className:"font-medium text-slate-200",children:Z.title})]})}),s.jsx("td",{className:"px-6 py-4",children:s.jsx("span",{className:"px-2 py-1 bg-slate-800 text-slate-400 border border-slate-700 rounded text-xs font-mono",children:Z.branch})}),s.jsx("td",{className:"px-6 py-4",children:s.jsxs("div",{className:"flex items-center space-x-2",title:W0(Z.ciStatus),children:[X(Z.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-400",children:Z.ciStatus})]})}),s.jsx("td",{className:"px-6 py-4",children:Z.reviewScore!==null?s.jsxs("div",{className:"flex items-center space-x-2",title:gi(Z.reviewScore),children:[s.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full ${Z.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${Z.reviewScore}%`}})}),s.jsx("span",{className:`text-sm font-bold ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]}):s.jsx("span",{className:"text-slate-600 text-sm",title:gi(null),children:"—"})}),s.jsx("td",{className:"px-6 py-4 text-right",children:s.jsx("a",{href:Z.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:te=>te.stopPropagation(),children:s.jsx(Sm,{className:"h-4 w-4"})})})]},Z.number)),ae.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:G.length===0?"No open PRs found.":`No PRs match the "${m}" filter.`})})]})]})}),u&&s.jsx(De,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const Z=G.find(te=>te.number===u);return Z?s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"font-bold text-slate-200",children:Z.title}),s.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",s.jsx("span",{className:"font-mono",children:Z.branch})]})]}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsxs("div",{className:"text-center",title:W0(Z.ciStatus),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),s.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[X(Z.ciStatus),s.jsx("span",{className:"text-sm capitalize text-slate-300",children:Z.ciStatus})]})]}),Z.reviewScore!==null?s.jsxs("div",{className:"text-center",title:gi(Z.reviewScore),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),s.jsx("div",{className:`text-xl font-bold mt-1 ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]}):s.jsxs("div",{className:"text-center",title:gi(null),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),s.jsx("div",{className:"text-xl font-bold mt-1 text-slate-500",children:"—"})]})]})]}):null})()})]})},jr={Draft:{dot:"bg-slate-500",badge:"neutral"},Ready:{dot:"bg-green-500",badge:"success"},"In Progress":{dot:"bg-blue-500",badge:"info"},Review:{dot:"bg-amber-500",badge:"warning"},Done:{dot:"bg-slate-600",badge:"neutral"}},Fy=({defaultColumn:u,onClose:o,onCreated:f})=>{const[r,m]=E.useState(""),[h,x]=E.useState(""),[y,p]=E.useState(u),[v,N]=E.useState(!1),[S,z]=E.useState(null),{addToast:A}=vt(),H=async _=>{if(_.preventDefault(),!!r.trim()){N(!0),z(null);try{await qy({title:r.trim(),body:h,column:y}),A({title:"Issue created",message:`"${r.trim()}" added to ${y}`,type:"success"}),f(),o()}catch(D){z(D instanceof Error?D.message:"Failed to create issue")}finally{N(!1)}}};return s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:o}),s.jsxs("div",{className:"relative bg-[#0f172a] border border-white/10 rounded-2xl shadow-2xl w-full max-w-lg",children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-100",children:"New Board Issue"}),s.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:s.jsx(Wa,{className:"h-5 w-5"})})]}),s.jsxs("form",{onSubmit:H,className:"p-6 space-y-4",children:[s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Title"}),s.jsx("input",{type:"text",value:r,onChange:_=>m(_.target.value),placeholder:"Issue title...",required:!0,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20"})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Column"}),s.jsx("select",{value:y,onChange:_=>p(_.target.value),className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm focus:outline-none focus:border-indigo-500/50 appearance-none cursor-pointer",children:Yl.map(_=>s.jsx("option",{value:_,children:_},_))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Body (optional)"}),s.jsx("textarea",{value:h,onChange:_=>x(_.target.value),placeholder:"Issue description...",rows:5,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20 resize-none font-mono"})]}),S&&s.jsx("p",{className:"text-sm text-red-400",children:S}),s.jsxs("div",{className:"flex justify-end space-x-3 pt-2",children:[s.jsx(fe,{variant:"ghost",type:"button",onClick:o,children:"Cancel"}),s.jsx(fe,{type:"submit",disabled:v||!r.trim(),children:v?"Creating...":"Create Issue"})]})]})]})]})},Iy=({issue:u,onClose:o,onMoved:f,onClosed:r})=>{const[m,h]=E.useState(!1),[x,y]=E.useState(!1),{addToast:p}=vt(),v=async z=>{if(z!==u.column){h(!0);try{await Bm(u.number,z),p({title:"Issue moved",message:`#${u.number} moved to ${z}`,type:"success"}),f(),o()}catch(A){p({title:"Move failed",message:A instanceof Error?A.message:"Failed to move issue",type:"error"})}finally{h(!1)}}},N=async()=>{if(confirm(`Close issue #${u.number}: "${u.title}"?`)){y(!0);try{await Yy(u.number),p({title:"Issue closed",message:`#${u.number} closed on GitHub`,type:"success"}),r(),o()}catch(z){p({title:"Close failed",message:z instanceof Error?z.message:"Failed to close issue",type:"error"})}finally{y(!1)}}},S=u.column??"Draft";return s.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[s.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:o}),s.jsxs("div",{className:"relative bg-[#0a0f1e] border-l border-white/10 w-full max-w-xl flex flex-col shadow-2xl overflow-hidden",children:[s.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-white/5 flex-shrink-0",children:[s.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[s.jsxs("span",{className:"text-slate-500 text-sm font-mono",children:["#",u.number]}),s.jsx(ua,{variant:jr[S].badge,children:S})]}),s.jsx("h2",{className:"text-lg font-semibold text-slate-100 leading-snug",children:u.title}),u.assignees.length>0&&s.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Assigned to: ",u.assignees.join(", ")]})]}),s.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",children:s.jsx(Wa,{className:"h-5 w-5"})})]}),s.jsxs("div",{className:"flex items-center space-x-3 px-6 py-3 border-b border-white/5 flex-shrink-0 flex-wrap gap-y-2",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"Move to:"}),Yl.filter(z=>z!==u.column).map(z=>s.jsx("button",{onClick:()=>v(z),disabled:m,className:"text-xs px-2.5 py-1 rounded-md bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-slate-100 border border-slate-700 transition-colors disabled:opacity-50",children:z},z))]}),s.jsxs("div",{className:"flex items-center space-x-2 ml-auto",children:[s.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1 text-xs text-indigo-400 hover:text-indigo-300 transition-colors",children:[s.jsx(Sm,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"GitHub"})]}),s.jsx("button",{onClick:N,disabled:x,className:"text-xs px-2.5 py-1 rounded-md bg-red-500/10 text-red-400 hover:bg-red-500/20 border border-red-500/20 transition-colors disabled:opacity-50",children:x?"Closing...":"Close Issue"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:u.body?s.jsx("pre",{className:"text-sm text-slate-300 whitespace-pre-wrap font-mono leading-relaxed break-words",children:u.body}):s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No description provided."})})]})]})},Py=({issue:u,onClick:o,onMoveRequest:f})=>{const[r,m]=E.useState(!1),h=u.column??"Draft";return s.jsxs("div",{className:"relative group",children:[s.jsx(De,{className:"p-3 cursor-pointer hover:border-indigo-500/30 transition-all active:scale-[0.99] select-none",onClick:o,children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsxs("span",{className:"text-[10px] font-mono text-slate-600",children:["#",u.number]}),s.jsx("p",{className:"text-xs font-medium text-slate-200 line-clamp-2 mt-0.5 leading-snug",children:u.title}),u.assignees.length>0&&s.jsx("p",{className:"text-[10px] text-slate-500 mt-1.5 truncate",children:u.assignees.join(", ")})]}),s.jsx("button",{onClick:x=>{x.stopPropagation(),m(y=>!y)},className:"ml-2 p-1 rounded hover:bg-white/10 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",title:"Move issue",children:s.jsx(Nm,{className:"h-3.5 w-3.5"})})]})}),r&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"fixed inset-0 z-30",onClick:()=>m(!1)}),s.jsx("div",{className:"absolute right-0 top-full mt-1 z-40 bg-[#0f172a] border border-white/10 rounded-xl shadow-2xl py-1 min-w-[140px]",children:Yl.filter(x=>x!==h).map(x=>s.jsxs("button",{onClick:()=>{f(u,x),m(!1)},className:"w-full text-left text-xs px-4 py-2 text-slate-300 hover:bg-white/5 hover:text-slate-100 transition-colors flex items-center space-x-2",children:[s.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${jr[x].dot}`}),s.jsx("span",{children:x})]},x))})]})]})},e1=({name:u,issues:o,onIssueClick:f,onNewIssue:r,onMoveIssue:m})=>{const h=jr[u];return s.jsxs("div",{className:"flex flex-col min-w-[220px] max-w-[220px] h-full",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 flex-shrink-0",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${h.dot}`}),s.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider",children:u}),s.jsx("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-800 rounded-full px-1.5 py-0.5",children:o.length})]}),s.jsx("button",{onClick:()=>r(u),className:"p-1 rounded-md hover:bg-white/5 text-slate-600 hover:text-slate-400 transition-colors",title:`Add issue to ${u}`,children:s.jsx($a,{className:"h-3.5 w-3.5"})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide min-h-0",children:o.length===0?s.jsx("div",{className:"border-2 border-dashed border-slate-800 rounded-xl h-24 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-slate-700",children:"No issues"})}):o.map(x=>s.jsx(Py,{issue:x,onClick:()=>f(x),onMoveRequest:m},x.id))})]})},t1=()=>{const[u,o]=E.useState(null),[f,r]=E.useState(null),{addToast:m,selectedProjectId:h,globalModeLoading:x}=vt(),{data:y,loading:p,error:v,refetch:N}=xt(br,[h],{enabled:!x});E.useEffect(()=>{const A=setInterval(()=>N(),3e4);return()=>clearInterval(A)},[N]);const S=E.useCallback(async(A,H)=>{try{await Bm(A.number,H),m({title:"Issue moved",message:`#${A.number} moved to ${H}`,type:"success"}),N()}catch(_){m({title:"Move failed",message:_ instanceof Error?_.message:"Failed to move issue",type:"error"})}},[m,N]);if(x||p)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading board..."})});if(v&&v.message.includes("Board not configured"))return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx("div",{className:"text-4xl",children:"📋"}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"Board not configured"}),s.jsxs("p",{className:"text-slate-500 text-sm max-w-sm text-center",children:["Run ",s.jsx("code",{className:"font-mono bg-slate-800 px-2 py-0.5 rounded text-indigo-300",children:"night-watch board setup"})," in your project to create a GitHub Projects board."]})]});if(v)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx("div",{className:"text-slate-300",children:"Failed to load board"}),s.jsx("div",{className:"text-sm text-slate-500",children:v.message}),s.jsx(fe,{onClick:()=>N(),children:"Retry"})]});if(!y)return null;const z=y.columns;return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Board"}),s.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[Yl.reduce((A,H)=>{var _;return A+(((_=z[H])==null?void 0:_.length)??0)},0)," issues across ",Yl.length," columns"]})]}),s.jsxs(fe,{onClick:()=>r("Ready"),children:[s.jsx($a,{className:"h-4 w-4 mr-2"}),"New Issue"]})]}),s.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden",children:s.jsx("div",{className:"flex space-x-4 h-full pb-4",style:{minWidth:`${Yl.length*236}px`},children:Yl.map(A=>s.jsx(e1,{name:A,issues:z[A]??[],onIssueClick:o,onNewIssue:r,onMoveIssue:S},A))})}),u&&s.jsx(Iy,{issue:u,onClose:()=>o(null),onMoved:()=>N(),onClosed:()=>N()}),f&&s.jsx(Fy,{defaultColumn:f,onClose:()=>r(null),onCreated:()=>N()})]})},st=Ze.forwardRef(({className:u="",label:o,error:f,helperText:r,rightIcon:m,...h},x)=>s.jsxs("div",{className:"w-full",children:[o&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),s.jsxs("div",{className:"relative",children:[s.jsx("input",{ref:x,className:`
355
+ w-full rounded-lg bg-slate-950 border border-slate-800
356
+ px-3 py-2 text-sm text-slate-200
357
+ placeholder:text-slate-600
358
+ focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
359
+ disabled:opacity-50 disabled:cursor-not-allowed
360
+ transition-all duration-200
361
+ ${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
362
+ ${m?"pr-10":""}
363
+ ${u}
364
+ `,...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})]}),f?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));st.displayName="Input";const Ti=Ze.forwardRef(({className:u="",label:o,error:f,helperText:r,options:m,value:h,onChange:x,children:y,...p},v)=>{const N=S=>{x&&x(S.target.value)};return s.jsxs("div",{className:"w-full",children:[o&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{ref:v,className:`
365
+ w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
366
+ px-3 py-2 pr-10 text-sm text-slate-200
367
+ focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
368
+ disabled:opacity-50 disabled:cursor-not-allowed
369
+ transition-all duration-200
370
+ ${f?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
371
+ ${u}
372
+ `,value:h,onChange:N,...p,children:m?m.map(S=>s.jsx("option",{value:S.value,children:S.label},S.value)):y}),s.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:s.jsx(Nm,{className:"h-4 w-4"})})]}),f?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:f}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});Ti.displayName="Select";const Nr=[{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 nr(u){const o=u.trim().split(/\s+/);if(o.length!==5)return u;const[f,r,m,h,x]=o,y=Nr.find(p=>p.value===u);return y?y.label:f==="*/30"&&r==="*"?"Every 30 minutes":f==="0"&&r==="*"?"Every hour":f.startsWith("*/")?`Every ${parseInt(f.replace("*/",""),10)} minutes`:f==="0"&&r.startsWith("*/")?`Every ${parseInt(r.replace("*/",""),10)} hours`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&x==="*"?`Daily at ${F0(r)}`:f==="0"&&r!=="*"&&m==="*"&&h==="*"&&x==="1-5"?`Weekdays at ${F0(r)}`:u}function F0(u){const o=parseInt(u,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function l1(u){const o=Nr.find(f=>f.value===u);return(o==null?void 0:o.value)??"__custom__"}function a1(u){const o=new Date,f=u.getTime()-o.getTime(),r=Math.floor(f/6e4),m=Math.floor(r/60),h=Math.floor(m/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:m<24?`in ${m} hour${m>1?"s":""}`:`in ${h} day${h>1?"s":""}`}function n1(u){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return u.toLocaleDateString("en-US",o)}function s1(u){const o=new Date,f=u.getTime()-o.getTime(),r=Math.floor(f/6e4);return r>=0&&r<30}const i1=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:f}=vt(),[r,m]=E.useState(!1),[h,x]=E.useState(!1),[y,p]=E.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:v,loading:N,error:S,refetch:z}=xt(Hm,[o],{enabled:!f}),{data:A,loading:H,refetch:_}=xt(Om,[o],{enabled:!f});E.useEffect(()=>{const te=setInterval(()=>{z()},3e4);return()=>clearInterval(te)},[z]),E.useEffect(()=>{A&&!y.isEditing&&p({executorSchedule:A.cronSchedule,reviewerSchedule:A.reviewerSchedule,isEditing:!1})},[A,y.isEditing]);const D=async()=>{if(v){m(!0);try{v.paused?(await $0(),u({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await Uy(),u({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),z()}catch(te){u({title:"Action Failed",message:te instanceof Error?te.message:"Failed to toggle schedule state",type:"error"})}finally{m(!1)}}},G=()=>{A&&p({executorSchedule:A.cronSchedule,reviewerSchedule:A.reviewerSchedule,isEditing:!0})},X=()=>{A&&p({executorSchedule:A.cronSchedule,reviewerSchedule:A.reviewerSchedule,isEditing:!1})},q=async()=>{if(A){x(!0);try{await Um({cronSchedule:y.executorSchedule,reviewerSchedule:y.reviewerSchedule}),await $0(),u({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),p(te=>({...te,isEditing:!1})),_(),z()}catch(te){u({title:"Save Failed",message:te instanceof Error?te.message:"Failed to save schedules",type:"error"})}finally{x(!1)}}},ae=(te,ge)=>{if(!te)return s.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const P=new Date(te),k=s1(P);return s.jsxs("div",{className:"flex items-center space-x-2",children:[k&&s.jsxs("span",{className:"relative flex h-3 w-3",children:[s.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),s.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),s.jsxs("div",{className:"text-sm",children:[s.jsx("span",{className:"text-slate-200 font-medium",children:a1(P)}),s.jsxs("span",{className:"text-slate-500 ml-2",children:["(",n1(P),")"]})]})]})},Q=(te,ge,P,k)=>{const le=l1(ge),ye=le==="__custom__";return s.jsxs("div",{className:`space-y-3 ${k?"opacity-50 pointer-events-none":""}`,children:[s.jsx("div",{className:"flex items-center space-x-3",children:s.jsx(Ti,{label:`${te} Preset`,options:Nr,value:le,onChange:Me=>{Me!=="__custom__"&&P(Me)},className:"flex-1"})}),ye&&s.jsx(st,{label:"Custom Cron Expression",value:ge,onChange:Me=>P(Me.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),s.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",s.jsx("span",{className:"text-slate-200",children:nr(ge)})]})]})};if(N||H)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(S||!v||!A)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),s.jsx("div",{className:"text-sm text-slate-500",children:(S==null?void 0:S.message)||"Unknown error"}),s.jsx(fe,{onClick:()=>{z(),_()},children:"Retry"})]});const $=v.paused,K=$?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",Z=$?"Paused":"Active";return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"})}),s.jsx(De,{className:`p-6 border-2 ${K}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(Ei,{className:"h-8 w-8"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),s.jsx("div",{className:"text-2xl font-bold",children:Z})]})]}),s.jsx(fe,{variant:$?"primary":"outline",size:"lg",onClick:D,loading:r,children:$?s.jsxs(s.Fragment,{children:[s.jsx(In,{className:"h-5 w-5 mr-2"}),"Resume"]}):s.jsxs(s.Fragment,{children:[s.jsx(Rm,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(De,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),!y.isEditing&&s.jsxs(fe,{variant:"ghost",size:"sm",onClick:G,children:[s.jsx(fy,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),y.isEditing?Q("Executor",y.executorSchedule,te=>p(ge=>({...ge,executorSchedule:te}))):s.jsx(s.Fragment,{children:s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:nr(A.cronSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:A.cronSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ae(v.executor.nextRun,A.cronSchedule)]}),s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${v.executor.installed?"text-green-400":"text-amber-400"}`,children:[s.jsx(ji,{className:"h-4 w-4"}),s.jsx("span",{children:v.executor.installed?"Installed":"Not installed"})]})]})})]}),s.jsxs(De,{className:`p-6 ${A.reviewerEnabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!A.reviewerEnabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),y.isEditing?Q("Reviewer",y.reviewerSchedule,te=>p(ge=>({...ge,reviewerSchedule:te})),!A.reviewerEnabled):s.jsx(s.Fragment,{children:s.jsx("div",{className:"space-y-4",children:A.reviewerEnabled?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:nr(A.reviewerSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:A.reviewerSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ae(v.reviewer.nextRun,A.reviewerSchedule)]}),s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${v.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[s.jsx(ji,{className:"h-4 w-4"}),s.jsx("span",{children:v.reviewer.installed?"Installed":"Not installed"})]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),s.jsxs(De,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[s.jsx(Si,{className:"h-5 w-5 text-slate-400"}),s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),v.entries.length===0?s.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):s.jsx("div",{className:"space-y-2",children:v.entries.map((te,ge)=>s.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:te},ge))})]}),y.isEditing&&s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[s.jsx(fe,{variant:"ghost",onClick:X,children:"Cancel"}),s.jsxs(fe,{onClick:q,loading:h,children:[s.jsx(ji,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},u1=()=>{const[u,o]=E.useState(!0),[f,r]=E.useState(""),[m,h]=E.useState("executor"),x=E.useRef(null),{selectedProjectId:y,globalModeLoading:p}=vt(),{data:v,loading:N,error:S,refetch:z}=xt(()=>zy(m,500),[m,y],{enabled:!p}),{data:A}=xt(Dm,[y],{enabled:!p}),H=(v==null?void 0:v.lines)||[];E.useEffect(()=>{u&&x.current&&(x.current.scrollTop=x.current.scrollHeight)},[H,u]),E.useEffect(()=>{if(!u)return;const X=window.setInterval(()=>{z()},3e3);return()=>window.clearInterval(X)},[u,m,z]);const _=H.filter(X=>X.toLowerCase().includes(f.toLowerCase())),D=X=>{h(X),r("")},G=X=>{if(!(A!=null&&A.processes))return!1;const q=A.processes.find(ae=>ae.name===X);return(q==null?void 0:q.running)??!1};return S?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),s.jsx("div",{className:"text-sm text-slate-500",children:S.message}),s.jsx(fe,{onClick:()=>z(),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:f,onChange:X=>r(X.target.value)}),s.jsx(yr,{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:()=>D("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"}),G("executor")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>D("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"}),G("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(fe,{size:"sm",variant:"ghost",onClick:()=>z(),children:[s.jsx(Z0,{className:"h-4 w-4 mr-2"}),"Refresh"]}),s.jsxs(fe,{size:"sm",variant:"ghost",onClick:()=>o(!u),children:[u?s.jsx(Rm,{className:"h-4 w-4 mr-2"}):s.jsx(In,{className:"h-4 w-4 mr-2"}),u?"Pause":"Resume"]})]})]}),s.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[s.jsxs("div",{className:"bg-slate-950/50 backdrop-blur text-xs text-slate-500 px-4 py-1.5 flex justify-between border-b border-slate-800",children:[s.jsxs("span",{children:["File: ",m,".log"]}),s.jsxs("span",{children:[_.length," lines"]})]}),s.jsxs("div",{ref:x,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[N?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):_.length===0?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:f?"No logs match your filter":"No logs yet — logs will appear after the first run"}):_.map((X,q)=>{const ae=X.includes("[ERROR]"),Q=X.includes("[WARN]");return s.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${ae?"text-red-400":Q?"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:q+1}),X]},q)}),u&&s.jsx("div",{className:"h-4"})," "]}),!u&&s.jsxs("div",{className:"absolute bottom-4 right-4 bg-indigo-600 text-white px-3 py-1.5 rounded-full shadow-lg shadow-indigo-900/40 text-xs font-medium flex items-center cursor-pointer hover:bg-indigo-500 transition-colors",onClick:()=>o(!0),children:[s.jsx(Z0,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},c1=({tabs:u,activeTab:o,onChange:f,className:r=""})=>{var p,v;const[m,h]=Ze.useState((p=u[0])==null?void 0:p.id),x=o||m,y=N=>{f?f(N):h(N)};return s.jsxs("div",{className:`flex flex-col ${r}`,children:[s.jsx("div",{className:"border-b border-slate-800 mb-6",children:s.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:u.map(N=>s.jsx("button",{onClick:()=>y(N.id),className:`
373
+ whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
374
+ ${x===N.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
375
+ `,children:N.label},N.id))})}),s.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(v=u.find(N=>N.id===x))==null?void 0:v.content})]})},wi=Ze.forwardRef(({className:u="",label:o,checked:f,onChange:r,...m},h)=>{const x=y=>{r&&r(y.target.checked)};return s.jsxs("label",{className:`inline-flex items-center cursor-pointer ${u}`,children:[s.jsxs("div",{className:"relative",children:[s.jsx("input",{type:"checkbox",className:"sr-only peer",ref:h,checked:f,onChange:x,...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"})]}),o&&s.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});wi.displayName="Switch";const I0=u=>({provider:u.provider,defaultBranch:u.defaultBranch,branchPrefix:u.branchPrefix,branchPatterns:u.branchPatterns||[],reviewerEnabled:u.reviewerEnabled,minReviewScore:u.minReviewScore,maxRuntime:u.maxRuntime,reviewerMaxRuntime:u.reviewerMaxRuntime,maxLogSize:u.maxLogSize,cronScheduleOffset:u.cronScheduleOffset??0,maxRetries:u.maxRetries??3,providerEnv:u.providerEnv||{},notifications:u.notifications||{webhooks:[]},prdPriority:u.prdPriority||[],roadmapScanner:u.roadmapScanner||{enabled:!1,roadmapPath:"ROADMAP.md",autoScanInterval:300},templatesDir:u.templatesDir||".night-watch/templates"}),r1=u=>["TOKEN","SECRET","KEY","PASSWORD","AUTH","API_KEY"].some(f=>u.toUpperCase().includes(f)),o1=({value:u,isSensitive:o})=>{const[f,r]=Ze.useState(!1);return o?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm text-slate-300 font-mono",children:f?u:"••••••••••••"}),s.jsx("button",{type:"button",onClick:()=>r(!f),className:"text-slate-500 hover:text-slate-300",children:f?s.jsx(Hg,{className:"h-4 w-4"}):s.jsx(Lg,{className:"h-4 w-4"})})]}):s.jsx("span",{className:"text-sm text-slate-300 font-mono truncate max-w-xs",children:u})},f1=({envVars:u,onChange:o})=>{const[f,r]=Ze.useState(""),[m,h]=Ze.useState(""),[x,y]=Ze.useState(null),[p,v]=Ze.useState(""),N=()=>{if(f.trim()){if(!/^[A-Z_][A-Z0-9_]*$/.test(f)){alert("Key must be uppercase with underscores (e.g., API_KEY)");return}o({...u,[f]:m}),r(""),h("")}},S=D=>{const G={...u};delete G[D],o(G)},z=D=>{y(D),v(u[D])},A=()=>{x&&(o({...u,[x]:p}),y(null),v(""))},H=()=>{y(null),v("")},_=Object.entries(u);return s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Configure environment variables passed to the provider CLI (API keys, base URLs)"}),s.jsx("div",{className:"space-y-2",children:_.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No provider environment variables configured."}):_.map(([D,G])=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[s.jsx("span",{className:"text-sm font-mono text-indigo-400 w-48 truncate",children:D}),x===D?s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[s.jsx("input",{type:"text",value:p,onChange:X=>v(X.target.value),className:"flex-1 bg-slate-800 border border-slate-700 rounded px-2 py-1 text-sm text-slate-200"}),s.jsx("button",{type:"button",onClick:A,className:"p-1 text-green-400 hover:text-green-300",children:s.jsx(ji,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:H,className:"p-1 text-slate-400 hover:text-slate-300",children:s.jsx(Wa,{className:"h-4 w-4"})})]}):s.jsx(o1,{value:G,isSensitive:r1(D)})]}),x!==D&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>z(D),className:"p-1 text-slate-400 hover:text-slate-200",children:s.jsx(Tm,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>S(D),className:"p-1 text-red-400 hover:text-red-300",children:s.jsx(zm,{className:"h-4 w-4"})})]})]},D))}),s.jsxs("div",{className:"flex items-end gap-3 pt-4 border-t border-slate-800",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Key"}),s.jsx("input",{type:"text",value:f,onChange:D=>r(D.target.value.toUpperCase()),placeholder:"e.g., ANTHROPIC_BASE_URL",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Value"}),s.jsx("input",{type:"text",value:m,onChange:D=>h(D.target.value),placeholder:"e.g., https://api.example.com",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs(fe,{onClick:N,disabled:!f.trim(),children:[s.jsx($a,{className:"h-4 w-4 mr-1"}),"Add"]})]})]})},d1=({notifications:u,onChange:o})=>{const[f,r]=Ze.useState(null),[m,h]=Ze.useState(!1),[x,y]=Ze.useState({type:"slack",url:"",events:[]}),p=[{label:"Run Started",value:"run_started"},{label:"Run Succeeded",value:"run_succeeded"},{label:"Run Failed",value:"run_failed"},{label:"Run Timeout",value:"run_timeout"},{label:"Review Completed",value:"review_completed"}],v=()=>{o({webhooks:[...u.webhooks,x]}),y({type:"slack",url:"",events:[]}),h(!1)},N=(H,_)=>{const D=[...u.webhooks];D[H]=_,o({webhooks:D})},S=H=>{o({webhooks:u.webhooks.filter((_,D)=>D!==H)})},z=(H,_)=>H.includes(_)?H.filter(D=>D!==_):[...H,_],A=({webhook:H,onChange:_,onSave:D,onCancel:G,isNew:X})=>s.jsxs("div",{className:"p-4 rounded-md border border-slate-700 bg-slate-900/50 space-y-4",children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsx(Ti,{label:"Type",value:H.type,onChange:q=>{const ae=q;_(ae==="telegram"?{type:ae,botToken:"",chatId:"",events:H.events}:{type:ae,url:"",events:H.events})},options:[{label:"Slack",value:"slack"},{label:"Discord",value:"discord"},{label:"Telegram",value:"telegram"}]}),H.type==="telegram"?s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"relative",children:s.jsx(st,{label:"Bot Token",type:"password",value:H.botToken||"",onChange:q=>_({...H,botToken:q.target.value}),placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz"})}),s.jsx(st,{label:"Chat ID",value:H.chatId||"",onChange:q=>_({...H,chatId:q.target.value}),placeholder:"123456789"})]}):s.jsx("div",{className:"md:col-span-2",children:s.jsx(st,{label:"Webhook URL",type:"password",value:H.url||"",onChange:q=>_({...H,url:q.target.value}),placeholder:"https://hooks.slack.com/services/..."})})]}),s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Events"}),s.jsx("div",{className:"flex flex-wrap gap-2",children:p.map(q=>s.jsx("button",{type:"button",onClick:()=>_({...H,events:z(H.events,q.value)}),className:`px-3 py-1.5 rounded-md text-sm transition-colors ${H.events.includes(q.value)?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:bg-slate-700"}`,children:q.label},q.value))})]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(fe,{variant:"ghost",onClick:G,children:"Cancel"}),s.jsx(fe,{onClick:D,disabled:H.events.length===0||(H.type==="telegram"?!H.botToken||!H.chatId:!H.url),children:X?"Add Webhook":"Save Changes"})]})]});return s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Receive notifications when events occur via Slack, Discord, or Telegram"}),s.jsx("div",{className:"space-y-3",children:u.webhooks.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No webhooks configured."}):u.webhooks.map((H,_)=>s.jsx("div",{children:f===_?s.jsx(A,{webhook:H,onChange:D=>N(_,D),onSave:()=>r(null),onCancel:()=>r(null)}):s.jsxs("div",{className:"flex items-center justify-between p-4 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{className:"flex-1",children:[s.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200 capitalize",children:H.type}),H.type==="telegram"&&s.jsxs("span",{className:"text-xs text-slate-500",children:["Chat ID: ",H.chatId]})]}),s.jsx("div",{className:"flex flex-wrap gap-1",children:H.events.map(D=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 rounded text-xs text-slate-400",children:D.replace("_"," ")},D))})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>r(_),className:"p-2 text-slate-400 hover:text-slate-200",children:s.jsx(Tm,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>S(_),className:"p-2 text-red-400 hover:text-red-300",children:s.jsx(zm,{className:"h-4 w-4"})})]})]})},_))}),m?s.jsx(A,{webhook:x,onChange:y,onSave:v,onCancel:()=>h(!1),isNew:!0}):s.jsxs(fe,{variant:"ghost",onClick:()=>h(!0),children:[s.jsx($a,{className:"h-4 w-4 mr-2"}),"Add Webhook"]})]})},P0=({label:u,value:o,onChange:f,placeholder:r,helpText:m})=>{const[h,x]=Ze.useState(""),y=()=>{h.trim()&&!o.includes(h.trim())&&(f([...o,h.trim()]),x(""))},p=N=>{f(o.filter(S=>S!==N))},v=N=>{N.key==="Enter"&&(N.preventDefault(),y())};return s.jsxs("div",{children:[s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:u}),s.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:o.map(N=>s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-slate-800 rounded text-sm text-slate-300",children:[N,s.jsx("button",{type:"button",onClick:()=>p(N),className:"text-slate-500 hover:text-red-400",children:s.jsx(Wa,{className:"h-3 w-3"})})]},N))}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:h,onChange:N=>x(N.target.value),onKeyDown:v,placeholder:r,className:"flex-1 bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"}),s.jsx(fe,{onClick:y,disabled:!h.trim(),children:s.jsx($a,{className:"h-4 w-4"})})]}),m&&s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:m})]})},m1=()=>{const{addToast:u,projectName:o,selectedProjectId:f,globalModeLoading:r}=vt(),[m,h]=Ze.useState(!1),[x,y]=Ze.useState(null),{data:p,loading:v,error:N,refetch:S}=xt(Om,[f],{enabled:!r}),{data:z,loading:A,refetch:H}=xt(Ay,[f],{enabled:!r}),_=z??[];Ze.useEffect(()=>{p&&y(I0(p))},[p]);const D=(Q,$)=>{y(K=>K&&{...K,[Q]:$})},G=async()=>{if(x){h(!0);try{await Um({provider:x.provider,defaultBranch:x.defaultBranch,branchPrefix:x.branchPrefix,branchPatterns:x.branchPatterns,reviewerEnabled:x.reviewerEnabled,minReviewScore:x.minReviewScore,maxRuntime:x.maxRuntime,reviewerMaxRuntime:x.reviewerMaxRuntime,maxLogSize:x.maxLogSize,cronScheduleOffset:x.cronScheduleOffset,maxRetries:x.maxRetries,providerEnv:x.providerEnv,notifications:x.notifications,prdPriority:x.prdPriority,roadmapScanner:x.roadmapScanner,templatesDir:x.templatesDir}),u({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),S(),H()}catch(Q){u({title:"Save Failed",message:Q instanceof Error?Q.message:"Failed to save configuration",type:"error"})}finally{h(!1)}}},X=()=>{p&&(y(I0(p)),u({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))},q=async Q=>{try{const $=await Lm(Q);D("roadmapScanner",$.roadmapScanner),u({title:Q?"Roadmap Scanner Enabled":"Roadmap Scanner Disabled",message:`Roadmap scanner has been ${Q?"enabled":"disabled"}.`,type:"success"})}catch($){u({title:"Toggle Failed",message:$ instanceof Error?$.message:"Failed to toggle roadmap scanner",type:"error"})}};if(v||!x)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(N)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),s.jsx("div",{className:"text-sm text-slate-500",children:N.message}),s.jsx(fe,{onClick:()=>S(),children:"Retry"})]});const ae=[{id:"general",label:"General",content:s.jsxs(De,{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(st,{label:"Project Name",value:o,disabled:!0}),s.jsx(Ti,{label:"Provider",value:x.provider,onChange:Q=>D("provider",Q),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),s.jsx(st,{label:"Default Branch",value:x.defaultBranch,onChange:Q=>D("defaultBranch",Q.target.value)}),s.jsx(st,{label:"Branch Prefix",value:x.branchPrefix,onChange:Q=>D("branchPrefix",Q.target.value)}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(wi,{label:"Enable Automated Reviews",checked:x.reviewerEnabled,onChange:Q=>D("reviewerEnabled",Q)})})]})]})},{id:"runtime",label:"Runtime",content:s.jsxs(De,{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:x.minReviewScore,onChange:Q=>D("minReviewScore",Number(Q.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:x.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(st,{label:"Max Runtime (Executor)",type:"number",value:String(x.maxRuntime),onChange:Q=>D("maxRuntime",Number(Q.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(st,{label:"Max Runtime (Reviewer)",type:"number",value:String(x.reviewerMaxRuntime),onChange:Q=>D("reviewerMaxRuntime",Number(Q.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(st,{label:"Max Log Size",type:"number",value:String(x.maxLogSize),onChange:Q=>D("maxLogSize",Number(Q.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"bytes"})})]})]})},{id:"env",label:"Provider Env",content:s.jsxs(De,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Provider Environment Variables"}),s.jsx(f1,{envVars:x.providerEnv,onChange:Q=>D("providerEnv",Q)})]})},{id:"notifications",label:"Notifications",content:s.jsxs(De,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Notification Webhooks"}),s.jsx(d1,{notifications:x.notifications,onChange:Q=>D("notifications",Q)})]})},{id:"roadmap",label:"Roadmap",content:s.jsxs(De,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Roadmap Scanner"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automatically scan ROADMAP.md and generate PRDs for unchecked items"})]}),s.jsx(wi,{checked:x.roadmapScanner.enabled,onChange:q})]}),x.roadmapScanner.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(st,{label:"Roadmap Path",value:x.roadmapScanner.roadmapPath,onChange:Q=>D("roadmapScanner",{...x.roadmapScanner,roadmapPath:Q.target.value})}),s.jsx(st,{label:"Auto Scan Interval",type:"number",value:String(x.roadmapScanner.autoScanInterval),onChange:Q=>D("roadmapScanner",{...x.roadmapScanner,autoScanInterval:Math.max(30,Number(Q.target.value||30))}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec (min 30)"})})]})]})},{id:"advanced",label:"Advanced",content:s.jsxs(De,{className:"p-6 space-y-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Advanced Settings"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Less commonly used configuration options"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(st,{label:"Templates Directory",value:x.templatesDir,onChange:Q=>D("templatesDir",Q.target.value),helperText:"Directory for custom template overrides"}),s.jsx(st,{label:"Cron Schedule Offset",type:"number",min:"0",max:"59",value:String(x.cronScheduleOffset),onChange:Q=>{const $=Math.min(59,Math.max(0,Number(Q.target.value||0)));D("cronScheduleOffset",$)},helperText:"Minutes offset (0-59) for cron schedules"}),s.jsx(st,{label:"Max Retries",type:"number",min:"1",value:String(x.maxRetries),onChange:Q=>{const $=Math.max(1,Number(Q.target.value||1));D("maxRetries",$)},helperText:"Retry attempts for rate-limited API calls"})]}),s.jsxs("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:[s.jsx(P0,{label:"Branch Patterns",value:x.branchPatterns,onChange:Q=>D("branchPatterns",Q),placeholder:"e.g., feat/",helpText:"Patterns to match for PR reviews"}),s.jsx(P0,{label:"PRD Priority",value:x.prdPriority,onChange:Q=>D("prdPriority",Q),placeholder:"e.g., feature-x",helpText:"PRDs matching these names are executed first"})]})]})}];return s.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[s.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),s.jsx(c1,{tabs:ae}),s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[s.jsxs(fe,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:X,children:[s.jsx(_m,{className:"h-4 w-4 mr-2"}),"Reset"]}),s.jsxs(fe,{onClick:G,loading:m,children:[s.jsx(uy,{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(jm,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),s.jsx(De,{className:"divide-y divide-slate-800",children:A?s.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):_.map((Q,$)=>{const K=Q.status==="pass",Z=Q.status==="warn",te=K?"bg-green-500/10 text-green-400 border-green-500/20":Z?"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:Q.name}),s.jsx("p",{className:"text-xs text-slate-500",children:Q.detail})]}),s.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${te}`,children:Q.status.toUpperCase()})]},`${Q.name}-${$}`)})})]})]})},h1=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:f}=vt(),[r,m]=E.useState(!1),[h,x]=E.useState(!1),{data:y,loading:p,error:v,refetch:N}=xt(ky,[o],{enabled:!f});E.useEffect(()=>{if(!(y!=null&&y.enabled))return;const X=setInterval(()=>{N()},1e4);return()=>clearInterval(X)},[y==null?void 0:y.enabled,N]);const S=async X=>{x(!0);try{await Lm(X),u({title:X?"Scanner Enabled":"Scanner Disabled",message:X?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:X?"success":"info"}),N()}catch(q){u({title:"Toggle Failed",message:q instanceof Error?q.message:"Failed to toggle scanner",type:"error"})}finally{x(!1)}},z=async()=>{m(!0);try{const X=await Gy();X.created.length>0?u({title:"Scan Complete",message:`Created ${X.created.length} PRD(s): ${X.created.join(", ")}`,type:"success"}):u({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),X.errors.length>0&&u({title:"Scan Errors",message:X.errors.join("; "),type:"warning"}),N()}catch(X){u({title:"Scan Failed",message:X instanceof Error?X.message:"Failed to scan roadmap",type:"error"})}finally{m(!1)}};if(p)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(v)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx(Kt,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),s.jsx("div",{className:"text-sm text-slate-500",children:v.message}),s.jsx(fe,{onClick:()=>N(),children:"Retry"})]});if(!y)return null;if(y.status==="no-roadmap")return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsx("div",{className:"flex items-center justify-between",children:s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),s.jsx(De,{className:"p-12",children:s.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[s.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:s.jsx(Cm,{className:"h-10 w-10 text-slate-500"})}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),s.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",s.jsx("code",{className:"text-indigo-400 bg-indigo-500/10 px-1.5 py-0.5 rounded text-sm",children:"ROADMAP.md"})," in your project root with checklist items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const A=y.totalItems>0?Math.round(y.processedItems/y.totalItems*100):0,H=v1(y.status),_=p1(y.items),D=y.lastScan?g1(y.lastScan):"Never",G=y.autoScanInterval?Math.round(y.autoScanInterval/60):5;return s.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(wi,{label:y.enabled?"Enabled":"Disabled",checked:y.enabled,onChange:S,disabled:h}),s.jsxs(fe,{onClick:z,loading:r,disabled:!y.enabled||y.status==="complete",children:[s.jsx(In,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),s.jsx(De,{className:`p-6 border-2 ${H.borderColor}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(H.icon,{className:`h-8 w-8 ${H.textColor}`}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),s.jsx("div",{className:`text-2xl font-bold ${H.textColor}`,children:H.label})]})]}),s.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[s.jsxs("div",{children:["Last scan: ",s.jsx("span",{className:"text-slate-300",children:D})]}),y.enabled&&y.status!=="complete"&&s.jsxs("div",{children:["Auto-scan: ",s.jsxs("span",{className:"text-slate-300",children:["every ",G," min"]})]}),y.enabled&&y.status==="complete"&&s.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),s.jsxs(De,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),s.jsxs("span",{className:"text-sm text-slate-400",children:[y.processedItems," / ",y.totalItems," items (",A,"%)"]})]}),s.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${A===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${A}%`}})})]}),Object.entries(_).map(([X,q])=>s.jsxs(De,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:X}),s.jsx("div",{className:"space-y-2",children:q.map(ae=>s.jsx(x1,{item:ae},ae.hash))})]},X))]})};function x1({item:u}){const o=u.checked,f=u.processed;return s.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${o?"bg-slate-950/30 border-slate-800/50":f?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[s.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?s.jsx(ey,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):f?s.jsx(Fn,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):s.jsx(Em,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("div",{className:`text-sm font-medium truncate ${o?"line-through text-slate-600":"text-slate-200"}`,children:u.title}),u.description&&s.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:u.description})]})]}),s.jsx("div",{className:"flex-shrink-0 ml-3",children:o?s.jsx(ua,{variant:"neutral",children:"Skipped"}):f?s.jsx(ua,{variant:"success",children:u.prdFile||"Processed"}):s.jsx(ua,{variant:"warning",children:"Pending"})})]})}function v1(u){switch(u){case"complete":return{label:"Complete",icon:Fn,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:Ei,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:In,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:Kt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:Kt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function p1(u){const o={};for(const f of u){const r=f.section||"General";o[r]||(o[r]=[]),o[r].push(f)}return o}function g1(u){try{const o=new Date(u),r=new Date().getTime()-o.getTime(),m=Math.floor(r/6e4);if(m<1)return"Just now";if(m<60)return`${m} min ago`;const h=Math.floor(m/60);return h<24?`${h} hr ago`:`${Math.floor(h/24)} day(s) ago`}catch{return"Unknown"}}const y1=({toast:u,onDismiss:o})=>{const f={success:s.jsx(Fn,{className:"h-5 w-5 text-green-400"}),error:s.jsx(Kt,{className:"h-5 w-5 text-red-400"}),info:s.jsx(Zg,{className:"h-5 w-5 text-blue-400"}),warning:s.jsx(vy,{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:`
376
+ pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
377
+ bg-slate-900 border border-slate-800 border-l-4 ${r[u.type]}
378
+ shadow-lg ring-1 ring-black ring-opacity-5 transition-all
379
+ animate-in slide-in-from-right-full fade-in duration-300
380
+ `,children:s.jsx("div",{className:"p-4",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"flex-shrink-0",children:f[u.type]}),s.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:u.title}),u.message&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:u.message})]}),s.jsx("div",{className:"ml-4 flex flex-shrink-0",children:s.jsxs("button",{type:"button",className:"inline-flex rounded-md text-slate-400 hover:text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",onClick:()=>o(u.id),children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(Wa,{className:"h-5 w-5"})]})})]})})})},b1=()=>{const{toasts:u,removeToast:o}=vt();return s.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex flex-col items-end px-4 py-6 sm:items-end sm:p-6 z-[100] gap-4",children:u.map(f=>s.jsx(y1,{toast:f,onDismiss:o},f.id))})};function j1(){const{setGlobalMode:u,setGlobalModeLoading:o,setProjects:f,selectProject:r,selectedProjectId:m}=vt();E.useEffect(()=>{o(!0),Ty().then(h=>{u(!0),f(h);const x=h.filter(y=>y.valid);m&&x.some(y=>y.name===m)?r(m):x.length>0&&r(x[0].name)}).catch(()=>{u(!1)}).finally(()=>{o(!1)})},[])}const N1=()=>(j1(),s.jsx(kp,{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(Qy,{}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[s.jsx(Zy,{}),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(pp,{children:[s.jsx(Vt,{path:"/",element:s.jsx(Ky,{})}),s.jsx(Vt,{path:"/prds",element:s.jsx($y,{})}),s.jsx(Vt,{path:"/prs",element:s.jsx(Wy,{})}),s.jsx(Vt,{path:"/board",element:s.jsx(t1,{})}),s.jsx(Vt,{path:"/scheduling",element:s.jsx(i1,{})}),s.jsx(Vt,{path:"/logs",element:s.jsx(u1,{})}),s.jsx(Vt,{path:"/roadmap",element:s.jsx(h1,{})}),s.jsx(Vt,{path:"/settings",element:s.jsx(m1,{})}),s.jsx(Vt,{path:"*",element:s.jsx(xp,{to:"/",replace:!0})})]})})})]}),s.jsx(b1,{})]})})),Ym=document.getElementById("root");if(!Ym)throw new Error("Could not find root element to mount to");const S1=yv.createRoot(Ym);S1.render(s.jsx(Ze.StrictMode,{children:s.jsx(N1,{})}));