@jonit-dev/night-watch-cli 1.7.46 → 1.7.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1097 -705
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +21 -1
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +14 -37
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +20 -12
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +37 -5
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/prd.d.ts.map +1 -1
- package/dist/commands/prd.js +2 -6
- package/dist/commands/prd.js.map +1 -1
- package/dist/commands/prds.d.ts.map +1 -1
- package/dist/commands/prds.js +1 -1
- package/dist/commands/prds.js.map +1 -1
- package/dist/commands/qa.d.ts.map +1 -1
- package/dist/commands/qa.js +20 -0
- package/dist/commands/qa.js.map +1 -1
- package/dist/commands/review.d.ts +10 -0
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands/review.js +38 -0
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +7 -2
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/slice.d.ts.map +1 -1
- package/dist/commands/slice.js +88 -17
- package/dist/commands/slice.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +75 -0
- package/dist/commands/status.js.map +1 -1
- package/dist/scripts/night-watch-audit-cron.sh +19 -0
- package/dist/scripts/night-watch-cron.sh +2 -2
- package/dist/scripts/night-watch-helpers.sh +47 -1
- package/dist/scripts/night-watch-pr-reviewer-cron.sh +168 -35
- package/dist/scripts/night-watch-qa-cron.sh +19 -0
- package/dist/scripts/night-watch-slicer-cron.sh +10 -1
- package/dist/templates/night-watch-slicer.md +18 -3
- package/dist/templates/night-watch.config.json +1 -0
- package/dist/templates/night-watch.md +10 -37
- package/dist/web/assets/index-Ba-4YvTQ.js +365 -0
- package/dist/web/assets/index-DpVirMEe.css +1 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))r(h);new MutationObserver(h=>{for(const x of h)if(x.type==="childList")for(const m of x.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function d(h){const x={};return h.integrity&&(x.integrity=h.integrity),h.referrerPolicy&&(x.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?x.credentials="include":h.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function r(h){if(h.ep)return;h.ep=!0;const x=d(h);fetch(h.href,x)}})();function Jm(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var Pc={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 Cm;function iv(){if(Cm)return Zn;Cm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(r,h,x){var m=null;if(x!==void 0&&(m=""+x),h.key!==void 0&&(m=""+h.key),"key"in h){x={};for(var y in h)y!=="key"&&(x[y]=h[y])}else x=h;return h=x.ref,{$$typeof:u,type:r,key:m,ref:h!==void 0?h:null,props:x}}return Zn.Fragment=o,Zn.jsx=d,Zn.jsxs=d,Zn}var Rm;function uv(){return Rm||(Rm=1,Pc.exports=iv()),Pc.exports}var s=uv(),Ic={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 Tm;function cv(){if(Tm)return ue;Tm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),O=Symbol.iterator;function Q(N){return N===null||typeof N!="object"?null:(N=O&&N[O]||N["@@iterator"],typeof N=="function"?N:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},p=Object.assign,q={};function A(N,Y,K){this.props=N,this.context=Y,this.refs=q,this.updater=K||H}A.prototype.isReactComponent={},A.prototype.setState=function(N,Y){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,Y,"setState")},A.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=A.prototype;function G(N,Y,K){this.props=N,this.context=Y,this.refs=q,this.updater=K||H}var le=G.prototype=new k;le.constructor=G,p(le,A.prototype),le.isPureReactComponent=!0;var re=Array.isArray;function R(){}var X={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function ne(N,Y,K){var W=K.ref;return{$$typeof:u,type:N,key:Y,ref:W!==void 0?W:null,props:K}}function Z(N,Y){return ne(N.type,Y,N.props)}function Ae(N){return typeof N=="object"&&N!==null&&N.$$typeof===u}function ze(N){var Y={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(K){return Y[K]})}var He=/\/+/g;function Ve(N,Y){return typeof N=="object"&&N!==null&&N.key!=null?ze(""+N.key):Y.toString(36)}function I(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(R,R):(N.status="pending",N.then(function(Y){N.status==="pending"&&(N.status="fulfilled",N.value=Y)},function(Y){N.status==="pending"&&(N.status="rejected",N.reason=Y)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function z(N,Y,K,W,$){var se=typeof N;(se==="undefined"||se==="boolean")&&(N=null);var de=!1;if(N===null)de=!0;else switch(se){case"bigint":case"string":case"number":de=!0;break;case"object":switch(N.$$typeof){case u:case o:de=!0;break;case E:return de=N._init,z(de(N._payload),Y,K,W,$)}}if(de)return $=$(N),de=W===""?"."+Ve(N,0):W,re($)?(K="",de!=null&&(K=de.replace(He,"$&/")+"/"),z($,Y,K,"",function(Pa){return Pa})):$!=null&&(Ae($)&&($=Z($,K+($.key==null||N&&N.key===$.key?"":(""+$.key).replace(He,"$&/")+"/")+de)),Y.push($)),1;de=0;var ke=W===""?".":W+":";if(re(N))for(var Ee=0;Ee<N.length;Ee++)W=N[Ee],se=ke+Ve(W,Ee),de+=z(W,Y,K,se,$);else if(Ee=Q(N),typeof Ee=="function")for(N=Ee.call(N),Ee=0;!(W=N.next()).done;)W=W.value,se=ke+Ve(W,Ee++),de+=z(W,Y,K,se,$);else if(se==="object"){if(typeof N.then=="function")return z(I(N),Y,K,W,$);throw Y=String(N),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return de}function V(N,Y,K){if(N==null)return N;var W=[],$=0;return z(N,W,"","",function(se){return Y.call(K,se,$++)}),W}function ee(N){if(N._status===-1){var Y=N._result;Y=Y(),Y.then(function(K){(N._status===0||N._status===-1)&&(N._status=1,N._result=K)},function(K){(N._status===0||N._status===-1)&&(N._status=2,N._result=K)}),N._status===-1&&(N._status=0,N._result=Y)}if(N._status===1)return N._result.default;throw N._result}var pe=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ye={map:V,forEach:function(N,Y,K){V(N,function(){Y.apply(this,arguments)},K)},count:function(N){var Y=0;return V(N,function(){Y++}),Y},toArray:function(N){return V(N,function(Y){return Y})||[]},only:function(N){if(!Ae(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ue.Activity=j,ue.Children=ye,ue.Component=A,ue.Fragment=d,ue.Profiler=h,ue.PureComponent=G,ue.StrictMode=r,ue.Suspense=g,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,ue.__COMPILER_RUNTIME={__proto__:null,c:function(N){return X.H.useMemoCache(N)}},ue.cache=function(N){return function(){return N.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(N,Y,K){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var W=p({},N.props),$=N.key;if(Y!=null)for(se in Y.key!==void 0&&($=""+Y.key),Y)!J.call(Y,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&Y.ref===void 0||(W[se]=Y[se]);var se=arguments.length-2;if(se===1)W.children=K;else if(1<se){for(var de=Array(se),ke=0;ke<se;ke++)de[ke]=arguments[ke+2];W.children=de}return ne(N.type,$,W)},ue.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:x,_context:N},N},ue.createElement=function(N,Y,K){var W,$={},se=null;if(Y!=null)for(W in Y.key!==void 0&&(se=""+Y.key),Y)J.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&($[W]=Y[W]);var de=arguments.length-2;if(de===1)$.children=K;else if(1<de){for(var ke=Array(de),Ee=0;Ee<de;Ee++)ke[Ee]=arguments[Ee+2];$.children=ke}if(N&&N.defaultProps)for(W in de=N.defaultProps,de)$[W]===void 0&&($[W]=de[W]);return ne(N,se,$)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(N){return{$$typeof:y,render:N}},ue.isValidElement=Ae,ue.lazy=function(N){return{$$typeof:E,_payload:{_status:-1,_result:N},_init:ee}},ue.memo=function(N,Y){return{$$typeof:v,type:N,compare:Y===void 0?null:Y}},ue.startTransition=function(N){var Y=X.T,K={};X.T=K;try{var W=N(),$=X.S;$!==null&&$(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(R,pe)}catch(se){pe(se)}finally{Y!==null&&K.types!==null&&(Y.types=K.types),X.T=Y}},ue.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},ue.use=function(N){return X.H.use(N)},ue.useActionState=function(N,Y,K){return X.H.useActionState(N,Y,K)},ue.useCallback=function(N,Y){return X.H.useCallback(N,Y)},ue.useContext=function(N){return X.H.useContext(N)},ue.useDebugValue=function(){},ue.useDeferredValue=function(N,Y){return X.H.useDeferredValue(N,Y)},ue.useEffect=function(N,Y){return X.H.useEffect(N,Y)},ue.useEffectEvent=function(N){return X.H.useEffectEvent(N)},ue.useId=function(){return X.H.useId()},ue.useImperativeHandle=function(N,Y,K){return X.H.useImperativeHandle(N,Y,K)},ue.useInsertionEffect=function(N,Y){return X.H.useInsertionEffect(N,Y)},ue.useLayoutEffect=function(N,Y){return X.H.useLayoutEffect(N,Y)},ue.useMemo=function(N,Y){return X.H.useMemo(N,Y)},ue.useOptimistic=function(N,Y){return X.H.useOptimistic(N,Y)},ue.useReducer=function(N,Y,K){return X.H.useReducer(N,Y,K)},ue.useRef=function(N){return X.H.useRef(N)},ue.useState=function(N){return X.H.useState(N)},ue.useSyncExternalStore=function(N,Y,K){return X.H.useSyncExternalStore(N,Y,K)},ue.useTransition=function(){return X.H.useTransition()},ue.version="19.2.4",ue}var Mm;function mr(){return Mm||(Mm=1,Ic.exports=cv()),Ic.exports}var C=mr();const Ge=Jm(C);var er={exports:{}},Kn={},tr={exports:{}},lr={};/**
|
|
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 _m;function rv(){return _m||(_m=1,(function(u){function o(z,V){var ee=z.length;z.push(V);e:for(;0<ee;){var pe=ee-1>>>1,ye=z[pe];if(0<h(ye,V))z[pe]=V,z[ee]=ye,ee=pe;else break e}}function d(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var V=z[0],ee=z.pop();if(ee!==V){z[0]=ee;e:for(var pe=0,ye=z.length,N=ye>>>1;pe<N;){var Y=2*(pe+1)-1,K=z[Y],W=Y+1,$=z[W];if(0>h(K,ee))W<ye&&0>h($,K)?(z[pe]=$,z[W]=ee,pe=W):(z[pe]=K,z[Y]=ee,pe=Y);else if(W<ye&&0>h($,ee))z[pe]=$,z[W]=ee,pe=W;else break e}}return V}function h(z,V){var ee=z.sortIndex-V.sortIndex;return ee!==0?ee:z.id-V.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;u.unstable_now=function(){return x.now()}}else{var m=Date,y=m.now();u.unstable_now=function(){return m.now()-y}}var g=[],v=[],E=1,j=null,O=3,Q=!1,H=!1,p=!1,q=!1,A=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function le(z){for(var V=d(v);V!==null;){if(V.callback===null)r(v);else if(V.startTime<=z)r(v),V.sortIndex=V.expirationTime,o(g,V);else break;V=d(v)}}function re(z){if(p=!1,le(z),!H)if(d(g)!==null)H=!0,R||(R=!0,ze());else{var V=d(v);V!==null&&I(re,V.startTime-z)}}var R=!1,X=-1,J=5,ne=-1;function Z(){return q?!0:!(u.unstable_now()-ne<J)}function Ae(){if(q=!1,R){var z=u.unstable_now();ne=z;var V=!0;try{e:{H=!1,p&&(p=!1,k(X),X=-1),Q=!0;var ee=O;try{t:{for(le(z),j=d(g);j!==null&&!(j.expirationTime>z&&Z());){var pe=j.callback;if(typeof pe=="function"){j.callback=null,O=j.priorityLevel;var ye=pe(j.expirationTime<=z);if(z=u.unstable_now(),typeof ye=="function"){j.callback=ye,le(z),V=!0;break t}j===d(g)&&r(g),le(z)}else r(g);j=d(g)}if(j!==null)V=!0;else{var N=d(v);N!==null&&I(re,N.startTime-z),V=!1}}break e}finally{j=null,O=ee,Q=!1}V=void 0}}finally{V?ze():R=!1}}}var ze;if(typeof G=="function")ze=function(){G(Ae)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,Ve=He.port2;He.port1.onmessage=Ae,ze=function(){Ve.postMessage(null)}}else ze=function(){A(Ae,0)};function I(z,V){X=A(function(){z(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(z){z.callback=null},u.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<z?Math.floor(1e3/z):5},u.unstable_getCurrentPriorityLevel=function(){return O},u.unstable_next=function(z){switch(O){case 1:case 2:case 3:var V=3;break;default:V=O}var ee=O;O=V;try{return z()}finally{O=ee}},u.unstable_requestPaint=function(){q=!0},u.unstable_runWithPriority=function(z,V){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var ee=O;O=z;try{return V()}finally{O=ee}},u.unstable_scheduleCallback=function(z,V,ee){var pe=u.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?pe+ee:pe):ee=pe,z){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3}return ye=ee+ye,z={id:E++,callback:V,priorityLevel:z,startTime:ee,expirationTime:ye,sortIndex:-1},ee>pe?(z.sortIndex=ee,o(v,z),d(g)===null&&z===d(v)&&(p?(k(X),X=-1):p=!0,I(re,ee-pe))):(z.sortIndex=ye,o(g,z),H||Q||(H=!0,R||(R=!0,ze()))),z},u.unstable_shouldYield=Z,u.unstable_wrapCallback=function(z){var V=O;return function(){var ee=O;O=V;try{return z.apply(this,arguments)}finally{O=ee}}}})(lr)),lr}var Am;function ov(){return Am||(Am=1,tr.exports=rv()),tr.exports}var ar={exports:{}},it={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var zm;function dv(){if(zm)return it;zm=1;var u=mr();function o(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)v+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var r={d:{f:d,r:function(){throw Error(o(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},h=Symbol.for("react.portal");function x(g,v,E){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:j==null?null:""+j,children:g,containerInfo:v,implementation:E}}var m=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,it.createPortal=function(g,v){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(o(299));return x(g,v,null,E)},it.flushSync=function(g){var v=m.T,E=r.p;try{if(m.T=null,r.p=2,g)return g()}finally{m.T=v,r.p=E,r.d.f()}},it.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(g,v))},it.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},it.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var E=v.as,j=y(E,v.crossOrigin),O=typeof v.integrity=="string"?v.integrity:void 0,Q=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;E==="style"?r.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:j,integrity:O,fetchPriority:Q}):E==="script"&&r.d.X(g,{crossOrigin:j,integrity:O,fetchPriority:Q,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},it.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var E=y(v.as,v.crossOrigin);r.d.M(g,{crossOrigin:E,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(g)},it.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var E=v.as,j=y(E,v.crossOrigin);r.d.L(g,E,{crossOrigin:j,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},it.preloadModule=function(g,v){if(typeof g=="string")if(v){var E=y(v.as,v.crossOrigin);r.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:E,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(g)},it.requestFormReset=function(g){r.d.r(g)},it.unstable_batchedUpdates=function(g,v){return g(v)},it.useFormState=function(g,v,E){return m.H.useFormState(g,v,E)},it.useFormStatus=function(){return m.H.useHostTransitionStatus()},it.version="19.2.4",it}var Dm;function fv(){if(Dm)return ar.exports;Dm=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(),ar.exports=dv(),ar.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 Om;function mv(){if(Om)return Kn;Om=1;var u=ov(),o=mr(),d=fv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function m(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 g(e){if(x(e)!==e)throw Error(r(188))}function v(e){var t=e.alternate;if(!t){if(t=x(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return g(n),e;if(i===a)return g(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,f=n.child;f;){if(f===l){c=!0,l=n,a=i;break}if(f===a){c=!0,a=n,l=i;break}f=f.sibling}if(!c){for(f=i.child;f;){if(f===l){c=!0,l=i,a=n;break}if(f===a){c=!0,a=i,l=n;break}f=f.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function E(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,O=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),G=Symbol.for("react.context"),le=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function ze(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var He=Symbol.for("react.client.reference");function Ve(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===He?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case A:return"Profiler";case q:return"StrictMode";case re:return"Suspense";case R:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case G:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case le:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return t=e.displayName||null,t!==null?t:Ve(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return Ve(e(t))}catch{}}return null}var I=Array.isArray,z=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},pe=[],ye=-1;function N(e){return{current:e}}function Y(e){0>ye||(e.current=pe[ye],pe[ye]=null,ye--)}function K(e,t){ye++,pe[ye]=e.current,e.current=t}var W=N(null),$=N(null),se=N(null),de=N(null);function ke(e,t){switch(K(se,t),K($,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jf(t),e=Wf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),K(W,e)}function Ee(){Y(W),Y($),Y(se)}function Pa(e){e.memoizedState!==null&&K(de,e);var t=W.current,l=Wf(t,e.type);t!==l&&(K($,e),K(W,l))}function ss(e){$.current===e&&(Y(W),Y($)),de.current===e&&(Y(de),kn._currentValue=ee)}var Oi,Sr;function Xl(e){if(Oi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Oi=t&&t[1]||"",Sr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Oi+e+Sr}var Ui=!1;function Hi(e,t){if(!e||Ui)return"";Ui=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(D){var _=D}Reflect.construct(e,[],L)}else{try{L.call()}catch(D){_=D}e.call(L.prototype)}}else{try{throw Error()}catch(D){_=D}(L=e())&&typeof L.catch=="function"&&L.catch(function(){})}}catch(D){if(D&&_&&typeof D.stack=="string")return[D.stack,_.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],f=i[1];if(c&&f){var b=c.split(`
|
|
44
|
+
`),M=f.split(`
|
|
45
|
+
`);for(n=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;n<M.length&&!M[n].includes("DetermineComponentFrameRoot");)n++;if(a===b.length||n===M.length)for(a=b.length-1,n=M.length-1;1<=a&&0<=n&&b[a]!==M[n];)n--;for(;1<=a&&0<=n;a--,n--)if(b[a]!==M[n]){if(a!==1||n!==1)do if(a--,n--,0>n||b[a]!==M[n]){var U=`
|
|
46
|
+
`+b[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=n);break}}}finally{Ui=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Xl(l):""}function q0(e,t){switch(e.tag){case 26:case 27:case 5:return Xl(e.type);case 16:return Xl("Lazy");case 13:return e.child!==t&&t!==null?Xl("Suspense Fallback"):Xl("Suspense");case 19:return Xl("SuspenseList");case 0:case 15:return Hi(e.type,!1);case 11:return Hi(e.type.render,!1);case 1:return Hi(e.type,!0);case 31:return Xl("Activity");default:return""}}function Er(e){try{var t="",l=null;do t+=q0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var qi=Object.prototype.hasOwnProperty,Bi=u.unstable_scheduleCallback,Li=u.unstable_cancelCallback,B0=u.unstable_shouldYield,L0=u.unstable_requestPaint,vt=u.unstable_now,Y0=u.unstable_getCurrentPriorityLevel,wr=u.unstable_ImmediatePriority,Cr=u.unstable_UserBlockingPriority,is=u.unstable_NormalPriority,G0=u.unstable_LowPriority,Rr=u.unstable_IdlePriority,k0=u.log,Q0=u.unstable_setDisableYieldValue,Ia=null,gt=null;function gl(e){if(typeof k0=="function"&&Q0(e),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Ia,e)}catch{}}var pt=Math.clz32?Math.clz32:Z0,X0=Math.log,V0=Math.LN2;function Z0(e){return e>>>=0,e===0?32:31-(X0(e)/V0|0)|0}var us=256,cs=262144,rs=4194304;function Vl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function os(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~i,a!==0?n=Vl(a):(c&=f,c!==0?n=Vl(c):l||(l=f&~e,l!==0&&(n=Vl(l))))):(f=a&~i,f!==0?n=Vl(f):c!==0?n=Vl(c):l||(l=a&~e,l!==0&&(n=Vl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function en(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function K0(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tr(){var e=rs;return rs<<=1,(rs&62914560)===0&&(rs=4194304),e}function Yi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function tn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $0(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 f=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(l=c&~l;0<l;){var U=31-pt(l),L=1<<U;f[U]=0,b[U]=-1;var _=M[U];if(_!==null)for(M[U]=null,U=0;U<_.length;U++){var D=_[U];D!==null&&(D.lane&=-536870913)}l&=~L}a!==0&&Mr(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Mr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function _r(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-pt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ar(e,t){var l=t&-t;return l=(l&42)!==0?1:Gi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Gi(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ki(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zr(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:bm(e.type))}function Dr(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var pl=Math.random().toString(36).slice(2),tt="__reactFiber$"+pl,rt="__reactProps$"+pl,fa="__reactContainer$"+pl,Qi="__reactEvents$"+pl,J0="__reactListeners$"+pl,W0="__reactHandles$"+pl,Or="__reactResources$"+pl,ln="__reactMarker$"+pl;function Xi(e){delete e[tt],delete e[rt],delete e[Qi],delete e[J0],delete e[W0]}function ma(e){var t=e[tt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[fa]||l[tt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=am(e);e!==null;){if(l=e[tt])return l;e=am(e)}return t}e=l,l=e.parentNode}return null}function ha(e){if(e=e[tt]||e[fa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function an(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function xa(e){var t=e[Or];return t||(t=e[Or]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[ln]=!0}var Ur=new Set,Hr={};function Zl(e,t){va(e,t),va(e+"Capture",t)}function va(e,t){for(Hr[e]=t,e=0;e<t.length;e++)Ur.add(t[e])}var F0=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]*$"),qr={},Br={};function P0(e){return qi.call(Br,e)?!0:qi.call(qr,e)?!1:F0.test(e)?Br[e]=!0:(qr[e]=!0,!1)}function ds(e,t,l){if(P0(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function fs(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Wt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Mt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Lr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function I0(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 Vi(e){if(!e._valueTracker){var t=Lr(e)?"checked":"value";e._valueTracker=I0(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=Lr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ms(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var eh=/[\n"\\]/g;function _t(e){return e.replace(eh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zi(e,t,l,a,n,i,c,f){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Mt(t)):e.value!==""+Mt(t)&&(e.value=""+Mt(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Ki(e,c,Mt(t)):l!=null?Ki(e,c,Mt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Mt(f):e.removeAttribute("name")}function Gr(e,t,l,a,n,i,c,f){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)){Vi(e);return}l=l!=null?""+Mt(l):"",t=t!=null?""+Mt(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Vi(e)}function Ki(e,t,l){t==="number"&&ms(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ga(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Mt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function kr(e,t,l){if(t!=null&&(t=""+Mt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Mt(l):""}function Qr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(I(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Mt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Vi(e)}function pa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var th=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 Xr(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||th.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Vr(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&&Xr(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Xr(e,i,t[i])}function $i(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 lh=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"]]),ah=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hs(e){return ah.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ft(){}var Ji=null;function Wi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ba=null,ya=null;function Zr(e){var t=ha(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(r(90));Zi(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":kr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ga(e,!!l.multiple,t,!1)}}}var Fi=!1;function Kr(e,t,l){if(Fi)return e(t,l);Fi=!0;try{var a=e(t);return a}finally{if(Fi=!1,(ba!==null||ya!==null)&&(ti(),ba&&(t=ba,e=ya,ya=ba=null,Zr(t),e)))for(t=0;t<e.length;t++)Zr(e[t])}}function nn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var Pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pi=!1;if(Pt)try{var sn={};Object.defineProperty(sn,"passive",{get:function(){Pi=!0}}),window.addEventListener("test",sn,sn),window.removeEventListener("test",sn,sn)}catch{Pi=!1}var bl=null,Ii=null,xs=null;function $r(){if(xs)return xs;var e,t=Ii,l=t.length,a,n="value"in bl?bl.value:bl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return xs=n.slice(e,1<a?1-a:void 0)}function vs(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gs(){return!0}function Jr(){return!1}function ot(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?gs:Jr,this.isPropagationStopped=Jr,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=gs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),t}var Kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ps=ot(Kl),un=j({},Kl,{view:0,detail:0}),nh=ot(un),eu,tu,cn,bs=j({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:au,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!==cn&&(cn&&e.type==="mousemove"?(eu=e.screenX-cn.screenX,tu=e.screenY-cn.screenY):tu=eu=0,cn=e),eu)},movementY:function(e){return"movementY"in e?e.movementY:tu}}),Wr=ot(bs),sh=j({},bs,{dataTransfer:0}),ih=ot(sh),uh=j({},un,{relatedTarget:0}),lu=ot(uh),ch=j({},Kl,{animationName:0,elapsedTime:0,pseudoElement:0}),rh=ot(ch),oh=j({},Kl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),dh=ot(oh),fh=j({},Kl,{data:0}),Fr=ot(fh),mh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hh={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"},xh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xh[e])?!!t[e]:!1}function au(){return vh}var gh=j({},un,{key:function(e){if(e.key){var t=mh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:au,charCode:function(e){return e.type==="keypress"?vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ph=ot(gh),bh=j({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=ot(bh),yh=j({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:au}),jh=ot(yh),Nh=j({},Kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sh=ot(Nh),Eh=j({},bs,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wh=ot(Eh),Ch=j({},Kl,{newState:0,oldState:0}),Rh=ot(Ch),Th=[9,13,27,32],nu=Pt&&"CompositionEvent"in window,rn=null;Pt&&"documentMode"in document&&(rn=document.documentMode);var Mh=Pt&&"TextEvent"in window&&!rn,Ir=Pt&&(!nu||rn&&8<rn&&11>=rn),eo=" ",to=!1;function lo(e,t){switch(e){case"keyup":return Th.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 ja=!1;function _h(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 Ah(e,t){if(ja)return e==="compositionend"||!nu&&lo(e,t)?(e=$r(),xs=Ii=bl=null,ja=!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 Ir&&t.locale!=="ko"?null:t.data;default:return null}}var zh={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"?!!zh[e.type]:t==="textarea"}function so(e,t,l,a){ba?ya?ya.push(a):ya=[a]:ba=a,t=ci(t,"onChange"),0<t.length&&(l=new ps("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var on=null,dn=null;function Dh(e){Qf(e,0)}function ys(e){var t=an(e);if(Yr(t))return e}function io(e,t){if(e==="change")return t}var uo=!1;if(Pt){var su;if(Pt){var iu="oninput"in document;if(!iu){var co=document.createElement("div");co.setAttribute("oninput","return;"),iu=typeof co.oninput=="function"}su=iu}else su=!1;uo=su&&(!document.documentMode||9<document.documentMode)}function ro(){on&&(on.detachEvent("onpropertychange",oo),dn=on=null)}function oo(e){if(e.propertyName==="value"&&ys(dn)){var t=[];so(t,dn,e,Wi(e)),Kr(Dh,t)}}function Oh(e,t,l){e==="focusin"?(ro(),on=t,dn=l,on.attachEvent("onpropertychange",oo)):e==="focusout"&&ro()}function Uh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ys(dn)}function Hh(e,t){if(e==="click")return ys(t)}function qh(e,t){if(e==="input"||e==="change")return ys(t)}function Bh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Bh;function 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(!qi.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=ms(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ms(e.document)}return t}function uu(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 Lh=Pt&&"documentMode"in document&&11>=document.documentMode,Na=null,cu=null,mn=null,ru=!1;function vo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ru||Na==null||Na!==ms(a)||(a=Na,"selectionStart"in a&&uu(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}),mn&&fn(mn,a)||(mn=a,a=ci(cu,"onSelect"),0<a.length&&(t=new ps("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Na)))}function $l(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Sa={animationend:$l("Animation","AnimationEnd"),animationiteration:$l("Animation","AnimationIteration"),animationstart:$l("Animation","AnimationStart"),transitionrun:$l("Transition","TransitionRun"),transitionstart:$l("Transition","TransitionStart"),transitioncancel:$l("Transition","TransitionCancel"),transitionend:$l("Transition","TransitionEnd")},ou={},go={};Pt&&(go=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Jl(e){if(ou[e])return ou[e];if(!Sa[e])return e;var t=Sa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in go)return ou[e]=t[l];return e}var po=Jl("animationend"),bo=Jl("animationiteration"),yo=Jl("animationstart"),Yh=Jl("transitionrun"),Gh=Jl("transitionstart"),kh=Jl("transitioncancel"),jo=Jl("transitionend"),No=new Map,du="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(" ");du.push("scrollEnd");function Yt(e,t){No.set(e,t),Zl(t,[e])}var js=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},At=[],Ea=0,fu=0;function Ns(){for(var e=Ea,t=fu=Ea=0;t<e;){var l=At[t];At[t++]=null;var a=At[t];At[t++]=null;var n=At[t];At[t++]=null;var i=At[t];if(At[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&So(l,n,i)}}function Ss(e,t,l,a){At[Ea++]=e,At[Ea++]=t,At[Ea++]=l,At[Ea++]=a,fu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function mu(e,t,l,a){return Ss(e,t,l,a),Es(e)}function Wl(e,t){return Ss(e,null,null,t),Es(e)}function 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-pt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function Es(e){if(50<Un)throw Un=0,Nc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wa={};function Qh(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,l,a){return new Qh(e,t,l,a)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function It(e,t){var l=e.alternate;return l===null?(l=yt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function 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 ws(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")hu(e)&&(c=1);else if(typeof e=="string")c=$x(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=yt(31,l,t,n),e.elementType=ne,e.lanes=i,e;case p:return Fl(l.children,n,i,t);case q:c=8,n|=24;break;case A:return e=yt(12,l,t,n|2),e.elementType=A,e.lanes=i,e;case re:return e=yt(13,l,t,n),e.elementType=re,e.lanes=i,e;case R:return e=yt(19,l,t,n),e.elementType=R,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:c=10;break e;case k:c=9;break e;case le:c=11;break e;case X:c=14;break e;case J:c=16,a=null;break e}c=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=yt(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Fl(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function xu(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function wo(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function vu(e,t,l){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var 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 Ca=[],Ra=0,Cs=null,hn=0,Dt=[],Ot=0,yl=null,Qt=1,Xt="";function el(e,t){Ca[Ra++]=hn,Ca[Ra++]=Cs,Cs=e,hn=t}function Ro(e,t,l){Dt[Ot++]=Qt,Dt[Ot++]=Xt,Dt[Ot++]=yl,yl=e;var a=Qt;e=Xt;var n=32-pt(a)-1;a&=~(1<<n),l+=1;var i=32-pt(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,Qt=1<<32-pt(t)+n|l<<n|a,Xt=i+e}else Qt=1<<i|l<<n|a,Xt=e}function gu(e){e.return!==null&&(el(e,1),Ro(e,1,0))}function pu(e){for(;e===Cs;)Cs=Ca[--Ra],Ca[Ra]=null,hn=Ca[--Ra],Ca[Ra]=null;for(;e===yl;)yl=Dt[--Ot],Dt[Ot]=null,Xt=Dt[--Ot],Dt[Ot]=null,Qt=Dt[--Ot],Dt[Ot]=null}function To(e,t){Dt[Ot++]=Qt,Dt[Ot++]=Xt,Dt[Ot++]=yl,Qt=t.id,Xt=t.overflow,yl=e}var lt=null,De=null,ge=!1,jl=null,Ut=!1,bu=Error(r(519));function Nl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xn(zt(t,e)),bu}function Mo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[tt]=e,t[rt]=a,l){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(l=0;l<qn.length;l++)me(qn[l],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),Gr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Qr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Kf(t.textContent,l)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=Ft),t=!0):t=!1,t||Nl(e,!0)}function _o(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:lt=lt.return}}function Ta(e){if(e!==lt)return!1;if(!ge)return _o(e),ge=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||qc(e.type,e.memoizedProps)),l=!l),l&&De&&Nl(e),_o(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=lm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));De=lm(e)}else t===27?(t=De,Hl(e.type)?(e=kc,kc=null,De=e):De=t):De=lt?qt(e.stateNode.nextSibling):null;return!0}function Pl(){De=lt=null,ge=!1}function yu(){var e=jl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),jl=null),e}function xn(e){jl===null?jl=[e]:jl.push(e)}var ju=N(null),Il=null,tl=null;function Sl(e,t,l){K(ju,t._currentValue),t._currentValue=l}function ll(e){e._currentValue=ju.current,Y(ju)}function Nu(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 Su(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 f=i;i=n;for(var b=0;b<t.length;b++)if(f.context===t[b]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),Nu(i.return,l,e),a||(c=null);break e}i=f.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),Nu(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 Ma(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 f=n.type;bt(n.pendingProps.value,c.value)||(e!==null?e.push(f):e=[f])}}else if(n===de.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&&Su(t,e,l,a),t.flags|=262144}function Rs(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Il=e,tl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Ao(Il,e)}function Ts(e,t){return Il===null&&ea(e),Ao(e,t)}function Ao(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},tl===null){if(e===null)throw Error(r(308));tl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else tl=tl.next=t;return l}var Xh=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()})}},Vh=u.unstable_scheduleCallback,Zh=u.unstable_NormalPriority,Ze={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Eu(){return{controller:new Xh,data:new Map,refCount:0}}function vn(e){e.refCount--,e.refCount===0&&Vh(Zh,function(){e.controller.abort()})}var gn=null,wu=0,_a=0,Aa=null;function Kh(e,t){if(gn===null){var l=gn=[];wu=0,_a=Tc(),Aa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return wu++,t.then(zo,zo),t}function zo(){if(--wu===0&&gn!==null){Aa!==null&&(Aa.status="fulfilled");var e=gn;gn=null,_a=0,Aa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $h(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=z.S;z.S=function(e,t){gf=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kh(e,t),Do!==null&&Do(e,t)};var ta=N(null);function Cu(){var e=ta.current;return e!==null?e:_e.pooledCache}function Ms(e,t){t===null?K(ta,ta.current):K(ta,t.pool)}function Oo(){var e=Cu();return e===null?null:{parent:Ze._currentValue,pool:e}}var za=Error(r(460)),Ru=Error(r(474)),_s=Error(r(542)),As={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(Ft,Ft),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bo(e),e;default:if(typeof t.status=="string")t.then(Ft,Ft);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bo(e),e}throw aa=t,za}}function la(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(aa=l,za):l}}var aa=null;function qo(){if(aa===null)throw Error(r(459));var e=aa;return aa=null,e}function Bo(e){if(e===za||e===_s)throw Error(r(483))}var Da=null,pn=0;function zs(e){var t=pn;return pn+=1,Da===null&&(Da=[]),Ho(Da,e,t)}function bn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ds(e,t){throw t.$$typeof===O?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Lo(e){function t(w,S){if(e){var T=w.deletions;T===null?(w.deletions=[S],w.flags|=16):T.push(S)}}function l(w,S){if(!e)return null;for(;S!==null;)t(w,S),S=S.sibling;return null}function a(w){for(var S=new Map;w!==null;)w.key!==null?S.set(w.key,w):S.set(w.index,w),w=w.sibling;return S}function n(w,S){return w=It(w,S),w.index=0,w.sibling=null,w}function i(w,S,T){return w.index=T,e?(T=w.alternate,T!==null?(T=T.index,T<S?(w.flags|=67108866,S):T):(w.flags|=67108866,S)):(w.flags|=1048576,S)}function c(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function f(w,S,T,B){return S===null||S.tag!==6?(S=xu(T,w.mode,B),S.return=w,S):(S=n(S,T),S.return=w,S)}function b(w,S,T,B){var te=T.type;return te===p?U(w,S,T.props.children,B,T.key):S!==null&&(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&la(te)===S.type)?(S=n(S,T.props),bn(S,T),S.return=w,S):(S=ws(T.type,T.key,T.props,null,w.mode,B),bn(S,T),S.return=w,S)}function M(w,S,T,B){return S===null||S.tag!==4||S.stateNode.containerInfo!==T.containerInfo||S.stateNode.implementation!==T.implementation?(S=vu(T,w.mode,B),S.return=w,S):(S=n(S,T.children||[]),S.return=w,S)}function U(w,S,T,B,te){return S===null||S.tag!==7?(S=Fl(T,w.mode,B,te),S.return=w,S):(S=n(S,T),S.return=w,S)}function L(w,S,T){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=xu(""+S,w.mode,T),S.return=w,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Q:return T=ws(S.type,S.key,S.props,null,w.mode,T),bn(T,S),T.return=w,T;case H:return S=vu(S,w.mode,T),S.return=w,S;case J:return S=la(S),L(w,S,T)}if(I(S)||ze(S))return S=Fl(S,w.mode,T,null),S.return=w,S;if(typeof S.then=="function")return L(w,zs(S),T);if(S.$$typeof===G)return L(w,Ts(w,S),T);Ds(w,S)}return null}function _(w,S,T,B){var te=S!==null?S.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return te!==null?null:f(w,S,""+T,B);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Q:return T.key===te?b(w,S,T,B):null;case H:return T.key===te?M(w,S,T,B):null;case J:return T=la(T),_(w,S,T,B)}if(I(T)||ze(T))return te!==null?null:U(w,S,T,B,null);if(typeof T.then=="function")return _(w,S,zs(T),B);if(T.$$typeof===G)return _(w,S,Ts(w,T),B);Ds(w,T)}return null}function D(w,S,T,B,te){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return w=w.get(T)||null,f(S,w,""+B,te);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Q:return w=w.get(B.key===null?T:B.key)||null,b(S,w,B,te);case H:return w=w.get(B.key===null?T:B.key)||null,M(S,w,B,te);case J:return B=la(B),D(w,S,T,B,te)}if(I(B)||ze(B))return w=w.get(T)||null,U(S,w,B,te,null);if(typeof B.then=="function")return D(w,S,T,zs(B),te);if(B.$$typeof===G)return D(w,S,T,Ts(S,B),te);Ds(S,B)}return null}function F(w,S,T,B){for(var te=null,je=null,P=S,oe=S=0,xe=null;P!==null&&oe<T.length;oe++){P.index>oe?(xe=P,P=null):xe=P.sibling;var Ne=_(w,P,T[oe],B);if(Ne===null){P===null&&(P=xe);break}e&&P&&Ne.alternate===null&&t(w,P),S=i(Ne,S,oe),je===null?te=Ne:je.sibling=Ne,je=Ne,P=xe}if(oe===T.length)return l(w,P),ge&&el(w,oe),te;if(P===null){for(;oe<T.length;oe++)P=L(w,T[oe],B),P!==null&&(S=i(P,S,oe),je===null?te=P:je.sibling=P,je=P);return ge&&el(w,oe),te}for(P=a(P);oe<T.length;oe++)xe=D(P,w,oe,T[oe],B),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?oe:xe.key),S=i(xe,S,oe),je===null?te=xe:je.sibling=xe,je=xe);return e&&P.forEach(function(Gl){return t(w,Gl)}),ge&&el(w,oe),te}function ae(w,S,T,B){if(T==null)throw Error(r(151));for(var te=null,je=null,P=S,oe=S=0,xe=null,Ne=T.next();P!==null&&!Ne.done;oe++,Ne=T.next()){P.index>oe?(xe=P,P=null):xe=P.sibling;var Gl=_(w,P,Ne.value,B);if(Gl===null){P===null&&(P=xe);break}e&&P&&Gl.alternate===null&&t(w,P),S=i(Gl,S,oe),je===null?te=Gl:je.sibling=Gl,je=Gl,P=xe}if(Ne.done)return l(w,P),ge&&el(w,oe),te;if(P===null){for(;!Ne.done;oe++,Ne=T.next())Ne=L(w,Ne.value,B),Ne!==null&&(S=i(Ne,S,oe),je===null?te=Ne:je.sibling=Ne,je=Ne);return ge&&el(w,oe),te}for(P=a(P);!Ne.done;oe++,Ne=T.next())Ne=D(P,w,oe,Ne.value,B),Ne!==null&&(e&&Ne.alternate!==null&&P.delete(Ne.key===null?oe:Ne.key),S=i(Ne,S,oe),je===null?te=Ne:je.sibling=Ne,je=Ne);return e&&P.forEach(function(sv){return t(w,sv)}),ge&&el(w,oe),te}function Me(w,S,T,B){if(typeof T=="object"&&T!==null&&T.type===p&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case Q:e:{for(var te=T.key;S!==null;){if(S.key===te){if(te=T.type,te===p){if(S.tag===7){l(w,S.sibling),B=n(S,T.props.children),B.return=w,w=B;break e}}else if(S.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===J&&la(te)===S.type){l(w,S.sibling),B=n(S,T.props),bn(B,T),B.return=w,w=B;break e}l(w,S);break}else t(w,S);S=S.sibling}T.type===p?(B=Fl(T.props.children,w.mode,B,T.key),B.return=w,w=B):(B=ws(T.type,T.key,T.props,null,w.mode,B),bn(B,T),B.return=w,w=B)}return c(w);case H:e:{for(te=T.key;S!==null;){if(S.key===te)if(S.tag===4&&S.stateNode.containerInfo===T.containerInfo&&S.stateNode.implementation===T.implementation){l(w,S.sibling),B=n(S,T.children||[]),B.return=w,w=B;break e}else{l(w,S);break}else t(w,S);S=S.sibling}B=vu(T,w.mode,B),B.return=w,w=B}return c(w);case J:return T=la(T),Me(w,S,T,B)}if(I(T))return F(w,S,T,B);if(ze(T)){if(te=ze(T),typeof te!="function")throw Error(r(150));return T=te.call(T),ae(w,S,T,B)}if(typeof T.then=="function")return Me(w,S,zs(T),B);if(T.$$typeof===G)return Me(w,S,Ts(w,T),B);Ds(w,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,S!==null&&S.tag===6?(l(w,S.sibling),B=n(S,T),B.return=w,w=B):(l(w,S),B=xu(T,w.mode,B),B.return=w,w=B),c(w)):l(w,S)}return function(w,S,T,B){try{pn=0;var te=Me(w,S,T,B);return Da=null,te}catch(P){if(P===za||P===_s)throw P;var je=yt(29,P,null,w.mode);return je.lanes=B,je.return=w,je}finally{}}}var na=Lo(!0),Yo=Lo(!1),El=!1;function Tu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Cl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Es(e),So(e,null,l),t}return Ss(e,a,t,l),Es(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,_r(e,l)}}function _u(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 Au=!1;function jn(){if(Au){var e=Aa;if(e!==null)throw e}}function Nn(e,t,l,a){Au=!1;var n=e.updateQueue;El=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var b=f,M=b.next;b.next=null,c===null?i=M:c.next=M,c=b;var U=e.alternate;U!==null&&(U=U.updateQueue,f=U.lastBaseUpdate,f!==c&&(f===null?U.firstBaseUpdate=M:f.next=M,U.lastBaseUpdate=b))}if(i!==null){var L=n.baseState;c=0,U=M=b=null,f=i;do{var _=f.lane&-536870913,D=_!==f.lane;if(D?(he&_)===_:(a&_)===_){_!==0&&_===_a&&(Au=!0),U!==null&&(U=U.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var F=e,ae=f;_=t;var Me=l;switch(ae.tag){case 1:if(F=ae.payload,typeof F=="function"){L=F.call(Me,L,_);break e}L=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ae.payload,_=typeof F=="function"?F.call(Me,L,_):F,_==null)break e;L=j({},L,_);break e;case 2:El=!0}}_=f.callback,_!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[_]:D.push(_))}else D={lane:_,tag:f.tag,payload:f.payload,callback:f.callback,next:null},U===null?(M=U=D,b=L):U=U.next=D,c|=_;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;D=f,f=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);U===null&&(b=L),n.baseState=b,n.firstBaseUpdate=M,n.lastBaseUpdate=U,i===null&&(n.shared.lanes=0),Al|=c,e.lanes=c,e.memoizedState=L}}function Go(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function ko(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Go(l[e],t)}var Oa=N(null),Os=N(0);function Qo(e,t){e=dl,K(Os,e),K(Oa,t),dl=e|t.baseLanes}function zu(){K(Os,dl),K(Oa,Oa.current)}function Du(){dl=Os.current,Y(Oa),Y(Os)}var jt=N(null),Ht=null;function Rl(e){var t=e.alternate;K(Qe,Qe.current&1),K(jt,e),Ht===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Ht=e)}function Ou(e){K(Qe,Qe.current),K(jt,e),Ht===null&&(Ht=e)}function Xo(e){e.tag===22?(K(Qe,Qe.current),K(jt,e),Ht===null&&(Ht=e)):Tl()}function Tl(){K(Qe,Qe.current),K(jt,jt.current)}function Nt(e){Y(jt),Ht===e&&(Ht=null),Y(Qe)}var Qe=N(0);function Us(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Yc(l)||Gc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var al=0,ce=null,Re=null,Ke=null,Hs=!1,Ua=!1,sa=!1,qs=0,Sn=0,Ha=null,Jh=0;function Le(){throw Error(r(321))}function Uu(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 Hu(e,t,l,a,n,i){return al=i,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Rd:Fu,sa=!1,i=l(a,n),sa=!1,Ua&&(i=Zo(t,l,a,n)),Vo(e),i}function Vo(e){z.H=Cn;var t=Re!==null&&Re.next!==null;if(al=0,Ke=Re=ce=null,Hs=!1,Sn=0,Ha=null,t)throw Error(r(300));e===null||$e||(e=e.dependencies,e!==null&&Rs(e)&&($e=!0))}function Zo(e,t,l,a){ce=e;var n=0;do{if(Ua&&(Ha=null),Sn=0,Ua=!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)}z.H=Td,i=t(l,a)}while(Ua);return i}function Wh(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?En(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ce.flags|=1024),t}function qu(){var e=qs!==0;return qs=0,e}function Bu(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Lu(e){if(Hs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hs=!1}al=0,Ke=Re=ce=null,Ua=!1,Sn=qs=0,Ha=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ce.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Xe(){if(Re===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ke===null?ce.memoizedState:Ke.next;if(t!==null)Ke=t,Re=e;else{if(e===null)throw ce.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?ce.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function Bs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function En(e){var t=Sn;return Sn+=1,Ha===null&&(Ha=[]),e=Ho(Ha,e,t),t=ce,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Rd:Fu),e}function Ls(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return En(e);if(e.$$typeof===G)return at(e)}throw Error(r(438,String(e)))}function Yu(e){var t=null,l=ce.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ce.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=Bs(),ce.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Z;return t.index++,l}function nl(e,t){return typeof t=="function"?t(e):t}function Ys(e){var t=Xe();return Gu(t,Re,e)}function Gu(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var f=c=null,b=null,M=t,U=!1;do{var L=M.lane&-536870913;if(L!==M.lane?(he&L)===L:(al&L)===L){var _=M.revertLane;if(_===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),L===_a&&(U=!0);else if((al&_)===_){M=M.next,_===_a&&(U=!0);continue}else L={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(f=b=L,c=i):b=b.next=L,ce.lanes|=_,Al|=_;L=M.action,sa&&l(i,L),i=M.hasEagerState?M.eagerState:l(i,L)}else _={lane:L,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(f=b=_,c=i):b=b.next=_,ce.lanes|=L,Al|=L;M=M.next}while(M!==null&&M!==t);if(b===null?c=i:b.next=f,!bt(i,e.memoizedState)&&($e=!0,U&&(l=Aa,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=b,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function ku(e){var t=Xe(),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)||($e=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Ko(e,t,l){var a=ce,n=Xe(),i=ge;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,$e=!0),n=n.queue,Vu(Wo.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,qa(9,{destroy:void 0},Jo.bind(null,a,n,l,t),null),_e===null)throw Error(r(349));i||(al&127)!==0||$o(a,t,l)}return l}function $o(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ce.updateQueue,t===null?(t=Bs(),ce.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Jo(e,t,l,a){t.value=l,t.getSnapshot=a,Fo(t)&&Po(e)}function Wo(e,t,l){return l(function(){Fo(t)&&Po(e)})}function Fo(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!bt(e,l)}catch{return!0}}function Po(e){var t=Wl(e,2);t!==null&&xt(t,e,2)}function Qu(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),sa){gl(!0);try{l()}finally{gl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:e},t}function Io(e,t,l,a){return e.baseState=l,Gu(e,Re,typeof a=="function"?a:nl)}function Fh(e,t,l,a,n){if(Qs(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};z.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,ed(t,i)):(i.next=l.next,t.pending=l.next=i)}}function ed(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=z.T,c={};z.T=c;try{var f=l(n,a),b=z.S;b!==null&&b(c,f),td(e,t,f)}catch(M){Xu(e,t,M)}finally{i!==null&&c.types!==null&&(i.types=c.types),z.T=i}}else try{i=l(n,a),td(e,t,i)}catch(M){Xu(e,t,M)}}function td(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ld(e,t,a)},function(a){return Xu(e,t,a)}):ld(e,t,l)}function ld(e,t,l){t.status="fulfilled",t.value=l,ad(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ed(e,l)))}function Xu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,ad(t),t=t.next;while(t!==a)}e.action=null}function ad(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function nd(e,t){return t}function sd(e,t){if(ge){var l=_e.formState;if(l!==null){e:{var a=ce;if(ge){if(De){t:{for(var n=De,i=Ut;n.nodeType!==8;){if(!i){n=null;break t}if(n=qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){De=qt(n.nextSibling),a=n.data==="F!";break e}}Nl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nd,lastRenderedState:t},l.queue=a,l=Ed.bind(null,ce,a),a.dispatch=l,a=Qu(!1),i=Wu.bind(null,ce,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Fh.bind(null,ce,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function id(e){var t=Xe();return ud(t,Re,e)}function ud(e,t,l){if(t=Gu(e,t,nd)[0],e=Ys(nl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=En(t)}catch(c){throw c===za?_s:c}else a=t;t=Xe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ce.flags|=2048,qa(9,{destroy:void 0},Ph.bind(null,n,l),null)),[a,i,e]}function Ph(e,t){e.action=t}function cd(e){var t=Xe(),l=Re;if(l!==null)return ud(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function qa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ce.updateQueue,t===null&&(t=Bs(),ce.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 rd(){return Xe().memoizedState}function Gs(e,t,l,a){var n=ct();ce.flags|=e,n.memoizedState=qa(1|t,{destroy:void 0},l,a===void 0?null:a)}function ks(e,t,l,a){var n=Xe();a=a===void 0?null:a;var i=n.memoizedState.inst;Re!==null&&a!==null&&Uu(a,Re.memoizedState.deps)?n.memoizedState=qa(t,i,l,a):(ce.flags|=e,n.memoizedState=qa(1|t,i,l,a))}function od(e,t){Gs(8390656,8,e,t)}function Vu(e,t){ks(2048,8,e,t)}function Ih(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=Bs(),ce.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function dd(e){var t=Xe().memoizedState;return Ih({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function fd(e,t){return ks(4,2,e,t)}function md(e,t){return ks(4,4,e,t)}function hd(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 xd(e,t,l){l=l!=null?l.concat([e]):null,ks(4,4,hd.bind(null,t,e),l)}function Zu(){}function vd(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Uu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function gd(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Uu(t,a[1]))return a[0];if(a=e(),sa){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a}function Ku(e,t,l){return l===void 0||(al&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=bf(),ce.lanes|=e,Al|=e,l)}function pd(e,t,l,a){return bt(l,t)?l:Oa.current!==null?(e=Ku(e,l,a),bt(e,t)||($e=!0),e):(al&42)===0||(al&1073741824)!==0&&(he&261930)===0?($e=!0,e.memoizedState=l):(e=bf(),ce.lanes|=e,Al|=e,t)}function bd(e,t,l,a,n){var i=V.p;V.p=i!==0&&8>i?i:8;var c=z.T,f={};z.T=f,Wu(e,!1,t,l);try{var b=n(),M=z.S;if(M!==null&&M(f,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var U=$h(b,a);wn(e,t,U,wt(e))}else wn(e,t,a,wt(e))}catch(L){wn(e,t,{then:function(){},status:"rejected",reason:L},wt())}finally{V.p=i,c!==null&&f.types!==null&&(c.types=f.types),z.T=c}}function ex(){}function $u(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=yd(e).queue;bd(e,n,t,ee,l===null?ex:function(){return jd(e),l(a)})}function yd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function jd(e){var t=yd(e);t.next===null&&(t=e.alternate.memoizedState),wn(e,t.next.queue,{},wt())}function Ju(){return at(kn)}function Nd(){return Xe().memoizedState}function Sd(){return Xe().memoizedState}function tx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=wl(l);var a=Cl(t,e,l);a!==null&&(xt(a,t,l),yn(a,t,l)),t={cache:Eu()},e.payload=t;return}t=t.return}}function lx(e,t,l){var a=wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qs(e)?wd(t,l):(l=mu(e,t,l,a),l!==null&&(xt(l,e,a),Cd(l,t,a)))}function Ed(e,t,l){var a=wt();wn(e,t,l,a)}function wn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Qs(e))wd(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,f=i(c,l);if(n.hasEagerState=!0,n.eagerState=f,bt(f,c))return Ss(e,t,n,0),_e===null&&Ns(),!1}catch{}finally{}if(l=mu(e,t,n,a),l!==null)return xt(l,e,a),Cd(l,t,a),!0}return!1}function Wu(e,t,l,a){if(a={lane:2,revertLane:Tc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Qs(e)){if(t)throw Error(r(479))}else t=mu(e,l,a,2),t!==null&&xt(t,e,2)}function Qs(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function wd(e,t){Ua=Hs=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Cd(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,_r(e,l)}}var Cn={readContext:at,use:Ls,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};Cn.useEffectEvent=Le;var Rd={readContext:at,use:Ls,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:od,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Gs(4194308,4,hd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Gs(4194308,4,e,t)},useInsertionEffect:function(e,t){Gs(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(sa){gl(!0);try{e()}finally{gl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(sa){gl(!0);try{l(t)}finally{gl(!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=lx.bind(null,ce,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Qu(e);var t=e.queue,l=Ed.bind(null,ce,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Zu,useDeferredValue:function(e,t){var l=ct();return Ku(l,e,t)},useTransition:function(){var e=Qu(!1);return e=bd.bind(null,ce,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ce,n=ct();if(ge){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),_e===null)throw Error(r(349));(he&127)!==0||$o(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,od(Wo.bind(null,a,i,e),[e]),a.flags|=2048,qa(9,{destroy:void 0},Jo.bind(null,a,i,l,t),null),l},useId:function(){var e=ct(),t=_e.identifierPrefix;if(ge){var l=Xt,a=Qt;l=(a&~(1<<32-pt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=qs++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Jh++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ju,useFormState:sd,useActionState:sd,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Wu.bind(null,ce,!0,l),l.dispatch=t,[e,t]},useMemoCache:Yu,useCacheRefresh:function(){return ct().memoizedState=tx.bind(null,ce)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((Se&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Fu={readContext:at,use:Ls,useCallback:vd,useContext:at,useEffect:Vu,useImperativeHandle:xd,useInsertionEffect:fd,useLayoutEffect:md,useMemo:gd,useReducer:Ys,useRef:rd,useState:function(){return Ys(nl)},useDebugValue:Zu,useDeferredValue:function(e,t){var l=Xe();return pd(l,Re.memoizedState,e,t)},useTransition:function(){var e=Ys(nl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:En(e),t]},useSyncExternalStore:Ko,useId:Nd,useHostTransitionStatus:Ju,useFormState:id,useActionState:id,useOptimistic:function(e,t){var l=Xe();return Io(l,Re,e,t)},useMemoCache:Yu,useCacheRefresh:Sd};Fu.useEffectEvent=dd;var Td={readContext:at,use:Ls,useCallback:vd,useContext:at,useEffect:Vu,useImperativeHandle:xd,useInsertionEffect:fd,useLayoutEffect:md,useMemo:gd,useReducer:ku,useRef:rd,useState:function(){return ku(nl)},useDebugValue:Zu,useDeferredValue:function(e,t){var l=Xe();return Re===null?Ku(l,e,t):pd(l,Re.memoizedState,e,t)},useTransition:function(){var e=ku(nl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:En(e),t]},useSyncExternalStore:Ko,useId:Nd,useHostTransitionStatus:Ju,useFormState:cd,useActionState:cd,useOptimistic:function(e,t){var l=Xe();return Re!==null?Io(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Yu,useCacheRefresh:Sd};Td.useEffectEvent=dd;function Pu(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:j({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Iu={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),n=wl(a);n.payload=t,l!=null&&(n.callback=l),t=Cl(e,n,a),t!==null&&(xt(t,e,a),yn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),n=wl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Cl(e,n,a),t!==null&&(xt(t,e,a),yn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=wl(l);a.tag=2,t!=null&&(a.callback=t),t=Cl(e,a,l),t!==null&&(xt(t,e,l),yn(t,e,l))}};function Md(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 _d(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&&Iu.enqueueReplaceState(t,t.state,null)}function ia(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=j({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Ad(e){js(e)}function zd(e){console.error(e)}function Dd(e){js(e)}function Xs(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Od(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 ec(e,t,l){return l=wl(l),l.tag=3,l.payload={element:null},l.callback=function(){Xs(e,t)},l}function Ud(e){return e=wl(e),e.tag=3,e}function Hd(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(){Od(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Od(t,l,a),typeof n!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function ax(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ma(t,l,n,!0),l=jt.current,l!==null){switch(l.tag){case 31:case 13:return Ht===null?li():l.alternate===null&&Ye===0&&(Ye=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===As?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),wc(e,a,n)),!1;case 22:return l.flags|=65536,a===As?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),wc(e,a,n)),!1}throw Error(r(435,l.tag))}return wc(e,a,n),li(),!1}if(ge)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==bu&&(e=Error(r(422),{cause:a}),xn(zt(e,l)))):(a!==bu&&(t=Error(r(423),{cause:a}),xn(zt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=zt(a,l),n=ec(e.stateNode,a,n),_u(e,n),Ye!==4&&(Ye=2)),!1;var i=Error(r(520),{cause:a});if(i=zt(i,l),On===null?On=[i]:On.push(i),Ye!==4&&(Ye=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=ec(l.stateNode,a,e),_u(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(zl===null||!zl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ud(n),Hd(n,e,l,a),_u(l,n),!1}l=l.return}while(l!==null);return!1}var tc=Error(r(461)),$e=!1;function nt(e,t,l,a){t.child=e===null?Yo(t,null,l,a):na(t,e.child,l,a)}function qd(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var f in a)f!=="ref"&&(c[f]=a[f])}else c=a;return ea(t),a=Hu(e,t,l,c,i,n),f=qu(),e!==null&&!$e?(Bu(e,t,n),sl(e,t,n)):(ge&&f&&gu(t),t.flags|=1,nt(e,t,a,n),t.child)}function Bd(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!hu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Ld(e,t,i,a,n)):(e=ws(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!rc(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:fn,l(c,a)&&e.ref===t.ref)return sl(e,t,n)}return t.flags|=1,e=It(i,a),e.ref=t.ref,e.return=t,t.child=e}function Ld(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(fn(i,a)&&e.ref===t.ref)if($e=!1,t.pendingProps=a=i,rc(e,n))(e.flags&131072)!==0&&($e=!0);else return t.lanes=e.lanes,sl(e,t,n)}return lc(e,t,l,a,n)}function Yd(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Gd(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ms(t,i!==null?i.cachePool:null),i!==null?Qo(t,i):zu(),Xo(t);else return a=t.lanes=536870912,Gd(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ms(t,i.cachePool),Qo(t,i),Tl(),t.memoizedState=null):(e!==null&&Ms(t,null),zu(),Tl());return nt(e,t,n,l),t.child}function Rn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gd(e,t,l,a,n){var i=Cu();return i=i===null?null:{parent:Ze._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ms(t,null),zu(),Xo(t),e!==null&&Ma(e,t,a,!0),t.childLanes=n,null}function Vs(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 kd(e,t,l){return na(t,e.child,null,l),e=Vs(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function nx(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(a.mode==="hidden")return e=Vs(t,a),t.lanes=536870912,Rn(null,e);if(Ou(t),(e=De)?(e=tm(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Qt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=wo(e),l.return=t,t.child=l,lt=t,De=null)):e=null,e===null)throw Nl(t);return t.lanes=536870912,null}return Vs(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(Ou(t),n)if(t.flags&256)t.flags&=-257,t=kd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if($e||Ma(e,t,l,!1),n=(l&e.childLanes)!==0,$e||n){if(a=_e,a!==null&&(c=Ar(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Wl(e,c),xt(a,e,c),tc;li(),t=kd(e,t,l)}else e=i.treeContext,De=qt(c.nextSibling),lt=t,ge=!0,jl=null,Ut=!1,e!==null&&To(t,e),t=Vs(t,a),t.flags|=4096;return t}return e=It(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zs(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function lc(e,t,l,a,n){return ea(t),l=Hu(e,t,l,a,void 0,n),a=qu(),e!==null&&!$e?(Bu(e,t,n),sl(e,t,n)):(ge&&a&&gu(t),t.flags|=1,nt(e,t,l,n),t.child)}function Qd(e,t,l,a,n,i){return ea(t),t.updateQueue=null,l=Zo(t,a,l,n),Vo(e),a=qu(),e!==null&&!$e?(Bu(e,t,i),sl(e,t,i)):(ge&&a&&gu(t),t.flags|=1,nt(e,t,l,i),t.child)}function Xd(e,t,l,a,n){if(ea(t),t.stateNode===null){var i=wa,c=l.contextType;typeof c=="object"&&c!==null&&(i=at(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Iu,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Tu(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?at(c):wa,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(Pu(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&&Iu.enqueueReplaceState(i,i.state,null),Nn(t,a,i,n),jn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var f=t.memoizedProps,b=ia(l,f);i.props=b;var M=i.context,U=l.contextType;c=wa,typeof U=="object"&&U!==null&&(c=at(U));var L=l.getDerivedStateFromProps;U=typeof L=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,U||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||M!==c)&&_d(t,i,a,c),El=!1;var _=t.memoizedState;i.state=_,Nn(t,a,i,n),jn(),M=t.memoizedState,f||_!==M||El?(typeof L=="function"&&(Pu(t,l,L,a),M=t.memoizedState),(b=El||Md(t,l,b,a,_,M,c))?(U||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=M),i.props=a,i.state=M,i.context=c,a=b):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Mu(e,t),c=t.memoizedProps,U=ia(l,c),i.props=U,L=t.pendingProps,_=i.context,M=l.contextType,b=wa,typeof M=="object"&&M!==null&&(b=at(M)),f=l.getDerivedStateFromProps,(M=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==L||_!==b)&&_d(t,i,a,b),El=!1,_=t.memoizedState,i.state=_,Nn(t,a,i,n),jn();var D=t.memoizedState;c!==L||_!==D||El||e!==null&&e.dependencies!==null&&Rs(e.dependencies)?(typeof f=="function"&&(Pu(t,l,f,a),D=t.memoizedState),(U=El||Md(t,l,U,a,_,D,b)||e!==null&&e.dependencies!==null&&Rs(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,D,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,D,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),i.props=a,i.state=D,i.context=b,a=U):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Zs(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=na(t,e.child,null,n),t.child=na(t,null,l,n)):nt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=sl(e,t,n),e}function Vd(e,t,l,a){return Pl(),t.flags|=256,nt(e,t,l,a),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nc(e){return{baseLanes:e,cachePool:Oo()}}function sc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Et),e}function Zd(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:(Qe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(n?Rl(t):Tl(),(e=De)?(e=tm(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yl!==null?{id:Qt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},l=wo(e),l.return=t,t.child=l,lt=t,De=null)):e=null,e===null)throw Nl(t);return Gc(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Tl(),n=t.mode,f=Ks({mode:"hidden",children:f},n),a=Fl(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=nc(l),a.childLanes=sc(e,c,l),t.memoizedState=ac,Rn(null,a)):(Rl(t),ic(t,f))}var b=e.memoizedState;if(b!==null&&(f=b.dehydrated,f!==null)){if(i)t.flags&256?(Rl(t),t.flags&=-257,t=uc(e,t,l)):t.memoizedState!==null?(Tl(),t.child=e.child,t.flags|=128,t=null):(Tl(),f=a.fallback,n=t.mode,a=Ks({mode:"visible",children:a.children},n),f=Fl(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,na(t,e.child,null,l),a=t.child,a.memoizedState=nc(l),a.childLanes=sc(e,c,l),t.memoizedState=ac,t=Rn(null,a));else if(Rl(t),Gc(f)){if(c=f.nextSibling&&f.nextSibling.dataset,c)var M=c.dgst;c=M,a=Error(r(419)),a.stack="",a.digest=c,xn({value:a,source:null,stack:null}),t=uc(e,t,l)}else if($e||Ma(e,t,l,!1),c=(l&e.childLanes)!==0,$e||c){if(c=_e,c!==null&&(a=Ar(c,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Wl(e,a),xt(c,e,a),tc;Yc(f)||li(),t=uc(e,t,l)}else Yc(f)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,De=qt(f.nextSibling),lt=t,ge=!0,jl=null,Ut=!1,e!==null&&To(t,e),t=ic(t,a.children),t.flags|=4096);return t}return n?(Tl(),f=a.fallback,n=t.mode,b=e.child,M=b.sibling,a=It(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,M!==null?f=It(M,f):(f=Fl(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,Rn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=nc(l):(n=f.cachePool,n!==null?(b=Ze._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=Oo(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=sc(e,c,l),t.memoizedState=ac,Rn(e.child,a)):(Rl(t),l=e.child,e=l.sibling,l=It(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function ic(e,t){return t=Ks({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ks(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function uc(e,t,l){return na(t,e.child,null,l),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Nu(e.return,t,l)}function cc(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 $d(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Qe.current,f=(c&2)!==0;if(f?(c=c&1|2,t.flags|=128):c&=1,K(Qe,c),nt(e,t,a,l),a=ge?hn:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kd(e,l,t);else if(e.tag===19)Kd(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Us(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),cc(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Us(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}cc(t,!0,l,null,i,a);break;case"together":cc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function sl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Al|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ma(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 rc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rs(e)))}function sx(e,t,l){switch(t.tag){case 3:ke(t,t.stateNode.containerInfo),Sl(t,Ze,e.memoizedState.cache),Pl();break;case 27:case 5:Pa(t);break;case 4:ke(t,t.stateNode.containerInfo);break;case 10:Sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ou(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Rl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Zd(e,t,l):(Rl(t),e=sl(e,t,l),e!==null?e.sibling:null);Rl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ma(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return $d(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Qe,Qe.current),a)break;return null;case 22:return t.lanes=0,Yd(e,t,l,t.pendingProps);case 24:Sl(t,Ze,e.memoizedState.cache)}return sl(e,t,l)}function Jd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)$e=!0;else{if(!rc(e,l)&&(t.flags&128)===0)return $e=!1,sx(e,t,l);$e=(e.flags&131072)!==0}else $e=!1,ge&&(t.flags&1048576)!==0&&Ro(t,hn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=la(t.elementType),t.type=e,typeof e=="function")hu(e)?(a=ia(e,a),t.tag=1,t=Xd(null,t,e,a,l)):(t.tag=0,t=lc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===le){t.tag=11,t=qd(null,t,e,a,l);break e}else if(n===X){t.tag=14,t=Bd(null,t,e,a,l);break e}}throw t=Ve(e)||e,Error(r(306,t,""))}}return t;case 0:return lc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ia(a,t.pendingProps),Xd(e,t,a,n,l);case 3:e:{if(ke(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Mu(e,t),Nn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,Sl(t,Ze,a),a!==i.cache&&Su(t,[Ze],l,!0),jn(),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=Vd(e,t,a,l);break e}else if(a!==n){n=zt(Error(r(424)),t),xn(n),t=Vd(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(De=qt(e.firstChild),lt=t,ge=!0,jl=null,Ut=!0,l=Yo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Pl(),a===n){t=sl(e,t,l);break e}nt(e,t,a,l)}t=t.child}return t;case 26:return Zs(e,t),e===null?(l=um(t.type,null,t.pendingProps,null))?t.memoizedState=l:ge||(l=t.type,e=t.pendingProps,a=ri(se.current).createElement(l),a[tt]=t,a[rt]=e,st(a,l,e),Ie(a),t.stateNode=a):t.memoizedState=um(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pa(t),e===null&&ge&&(a=t.stateNode=nm(t.type,t.pendingProps,se.current),lt=t,Ut=!0,n=De,Hl(t.type)?(kc=n,De=qt(a.firstChild)):De=n),nt(e,t,t.pendingProps.children,l),Zs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((n=a=De)&&(a=Ux(a,t.type,t.pendingProps,Ut),a!==null?(t.stateNode=a,lt=t,De=qt(a.firstChild),Ut=!1,n=!0):n=!1),n||Nl(t)),Pa(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,qc(n,i)?a=null:c!==null&&qc(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Hu(e,t,Wh,null,null,l),kn._currentValue=n),Zs(e,t),nt(e,t,a,l),t.child;case 6:return e===null&&ge&&((e=l=De)&&(l=Hx(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,lt=t,De=null,e=!0):e=!1),e||Nl(t)),null;case 13:return Zd(e,t,l);case 4:return ke(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=na(t,null,a,l):nt(e,t,a,l),t.child;case 11:return qd(e,t,t.type,t.pendingProps,l);case 7:return nt(e,t,t.pendingProps,l),t.child;case 8:return nt(e,t,t.pendingProps.children,l),t.child;case 12:return nt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Sl(t,t.type,a.value),nt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,ea(t),n=at(n),a=a(n),t.flags|=1,nt(e,t,a,l),t.child;case 14:return Bd(e,t,t.type,t.pendingProps,l);case 15:return Ld(e,t,t.type,t.pendingProps,l);case 19:return $d(e,t,l);case 31:return nx(e,t,l);case 22:return Yd(e,t,l,t.pendingProps);case 24:return ea(t),a=at(Ze),e===null?(n=Cu(),n===null&&(n=_e,i=Eu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Tu(t),Sl(t,Ze,n)):((e.lanes&l)!==0&&(Mu(e,t),Nn(t,null,null,l),jn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Sl(t,Ze,a)):(a=i.cache,Sl(t,Ze,a),a!==n.cache&&Su(t,[Ze],l,!0))),nt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function il(e){e.flags|=4}function oc(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(Sf())e.flags|=8192;else throw aa=As,Ru}else e.flags&=-16777217}function Wd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fm(t))if(Sf())e.flags|=8192;else throw aa=As,Ru}function $s(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Tr():536870912,e.lanes|=t,Ga|=t)}function Tn(e,t){if(!ge)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 Oe(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 ix(e,t,l){var a=t.pendingProps;switch(pu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ll(Ze),Ee(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Ta(t)?il(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,yu())),Oe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(il(t),i!==null?(Oe(t),Wd(t,i)):(Oe(t),oc(t,n,null,a,l))):i?i!==e.memoizedState?(il(t),Oe(t),Wd(t,i)):(Oe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&il(t),Oe(t),oc(t,n,e,a,l)),null;case 27:if(ss(t),l=se.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}e=W.current,Ta(t)?Mo(t):(e=nm(n,a,l),t.stateNode=e,il(t))}return Oe(t),null;case 5:if(ss(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}if(i=W.current,Ta(t))Mo(t);else{var c=ri(se.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[tt]=t,i[rt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(st(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&il(t)}}return Oe(t),oc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=se.current,Ta(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=lt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[tt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Kf(e.nodeValue,l)),e||Nl(t,!0)}else e=ri(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Oe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Ta(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),e=!1}else l=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ta(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[tt]=t}else Pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),n=!1}else n=yu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),$s(t,t.updateQueue),Oe(t),null);case 4:return Ee(),e===null&&zc(t.stateNode.containerInfo),Oe(t),null;case 10:return ll(t.type),Oe(t),null;case 19:if(Y(Qe),a=t.memoizedState,a===null)return Oe(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Tn(a,!1);else{if(Ye!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Us(e),i!==null){for(t.flags|=128,Tn(a,!1),e=i.updateQueue,t.updateQueue=e,$s(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Eo(l,e),l=l.sibling;return K(Qe,Qe.current&1|2),ge&&el(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&vt()>Is&&(t.flags|=128,n=!0,Tn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Us(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,$s(t,e),Tn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ge)return Oe(t),null}else 2*vt()-a.renderingStartTime>Is&&l!==536870912&&(t.flags|=128,n=!0,Tn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vt(),e.sibling=null,l=Qe.current,K(Qe,n?l&1|2:l&1),ge&&el(t,a.treeForkCount),e):(Oe(t),null);case 22:case 23:return Nt(t),Du(),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&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),l=t.updateQueue,l!==null&&$s(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(ta),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ll(Ze),Oe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ux(e,t){switch(pu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ll(Ze),Ee(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ss(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(r(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Qe),null;case 4:return Ee(),null;case 10:return ll(t.type),null;case 22:case 23:return Nt(t),Du(),e!==null&&Y(ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ll(Ze),null;case 25:return null;default:return null}}function Fd(e,t){switch(pu(t),t.tag){case 3:ll(Ze),Ee();break;case 26:case 27:case 5:ss(t);break;case 4:Ee();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:Y(Qe);break;case 10:ll(t.type);break;case 22:case 23:Nt(t),Du(),e!==null&&Y(ta);break;case 24:ll(Ze)}}function Mn(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(f){Ce(t,t.return,f)}}function Ml(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,f=c.destroy;if(f!==void 0){c.destroy=void 0,n=t;var b=l,M=f;try{M()}catch(U){Ce(n,b,U)}}}a=a.next}while(a!==i)}}catch(U){Ce(t,t.return,U)}}function Pd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{ko(t,l)}catch(a){Ce(e,e.return,a)}}}function Id(e,t,l){l.props=ia(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ce(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){Ce(e,t,n)}}function Vt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ce(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){Ce(e,t,n)}else l.current=null}function ef(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){Ce(e,e.return,n)}}function dc(e,t,l){try{var a=e.stateNode;Mx(a,e.type,l,t),a[rt]=t}catch(n){Ce(e,e.return,n)}}function tf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Hl(e.type)||e.tag===4}function fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Hl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ft));else if(a!==4&&(a===27&&Hl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(mc(e,t,l),e=e.sibling;e!==null;)mc(e,t,l),e=e.sibling}function Js(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Hl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Js(e,t,l),e=e.sibling;e!==null;)Js(e,t,l),e=e.sibling}function lf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);st(t,a,l),t[tt]=e,t[rt]=l}catch(i){Ce(e,e.return,i)}}var ul=!1,Je=!1,hc=!1,af=typeof WeakSet=="function"?WeakSet:Set,et=null;function cx(e,t){if(e=e.containerInfo,Uc=vi,e=xo(e),uu(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,f=-1,b=-1,M=0,U=0,L=e,_=null;t:for(;;){for(var D;L!==l||n!==0&&L.nodeType!==3||(f=c+n),L!==i||a!==0&&L.nodeType!==3||(b=c+a),L.nodeType===3&&(c+=L.nodeValue.length),(D=L.firstChild)!==null;)_=L,L=D;for(;;){if(L===e)break t;if(_===l&&++M===n&&(f=c),_===i&&++U===a&&(b=c),(D=L.nextSibling)!==null)break;L=_,_=L.parentNode}L=D}l=f===-1||b===-1?null:{start:f,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Hc={focusedElem:e,selectionRange:l},vi=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var F=ia(l.type,n);e=a.getSnapshotBeforeUpdate(F,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ae){Ce(l,l.return,ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Lc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Lc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function nf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(e,l),a&4&&Mn(5,l);break;case 1:if(rl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ce(l,l.return,c)}else{var n=ia(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ce(l,l.return,c)}}a&64&&Pd(l),a&512&&_n(l,l.return);break;case 3:if(rl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{ko(e,t)}catch(c){Ce(l,l.return,c)}}break;case 27:t===null&&a&4&&lf(l);case 26:case 5:rl(e,l),t===null&&a&4&&ef(l),a&512&&_n(l,l.return);break;case 12:rl(e,l);break;case 31:rl(e,l),a&4&&cf(e,l);break;case 13:rl(e,l),a&4&&rf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=gx.bind(null,l),qx(e,l))));break;case 22:if(a=l.memoizedState!==null||ul,!a){t=t!==null&&t.memoizedState!==null||Je,n=ul;var i=Je;ul=a,(Je=t)&&!i?ol(e,l,(l.subtreeFlags&8772)!==0):rl(e,l),ul=n,Je=i}break;case 30:break;default:rl(e,l)}}function sf(e){var t=e.alternate;t!==null&&(e.alternate=null,sf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xi(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 qe=null,dt=!1;function cl(e,t,l){for(l=l.child;l!==null;)uf(e,t,l),l=l.sibling}function uf(e,t,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Ia,l)}catch{}switch(l.tag){case 26:Je||Vt(l,t),cl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Je||Vt(l,t);var a=qe,n=dt;Hl(l.type)&&(qe=l.stateNode,dt=!1),cl(e,t,l),Ln(l.stateNode),qe=a,dt=n;break;case 5:Je||Vt(l,t);case 6:if(a=qe,n=dt,qe=null,cl(e,t,l),qe=a,dt=n,qe!==null)if(dt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(l.stateNode)}catch(i){Ce(l,t,i)}else try{qe.removeChild(l.stateNode)}catch(i){Ce(l,t,i)}break;case 18:qe!==null&&(dt?(e=qe,If(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ja(e)):If(qe,l.stateNode));break;case 4:a=qe,n=dt,qe=l.stateNode.containerInfo,dt=!0,cl(e,t,l),qe=a,dt=n;break;case 0:case 11:case 14:case 15:Ml(2,l,t),Je||Ml(4,l,t),cl(e,t,l);break;case 1:Je||(Vt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Id(l,t,a)),cl(e,t,l);break;case 21:cl(e,t,l);break;case 22:Je=(a=Je)||l.memoizedState!==null,cl(e,t,l),Je=a;break;default:cl(e,t,l)}}function cf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ja(e)}catch(l){Ce(t,t.return,l)}}}function rf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ja(e)}catch(l){Ce(t,t.return,l)}}function rx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new af),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new af),t;default:throw Error(r(435,e.tag))}}function Ws(e,t){var l=rx(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=px.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,f=c;e:for(;f!==null;){switch(f.tag){case 27:if(Hl(f.type)){qe=f.stateNode,dt=!1;break e}break;case 5:qe=f.stateNode,dt=!1;break e;case 3:case 4:qe=f.stateNode.containerInfo,dt=!0;break e}f=f.return}if(qe===null)throw Error(r(160));uf(i,c,n),qe=null,dt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)of(t,e),t=t.sibling}var Gt=null;function of(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),mt(e),a&4&&(Ml(3,e,e.return),Mn(3,e),Ml(5,e,e.return));break;case 1:ft(t,e),mt(e),a&512&&(Je||l===null||Vt(l,l.return)),a&64&&ul&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Gt;if(ft(t,e),mt(e),a&512&&(Je||l===null||Vt(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[ln]||i[tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),st(i,a,l),i[tt]=e,Ie(i),a=i;break e;case"link":var c=om("link","href",n).get(a+(l.href||""));if(c){for(var f=0;f<c.length;f++)if(i=c[f],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(f,1);break t}}i=n.createElement(a),st(i,a,l),n.head.appendChild(i);break;case"meta":if(c=om("meta","content",n).get(a+(l.content||""))){for(f=0;f<c.length;f++)if(i=c[f],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(f,1);break t}}i=n.createElement(a),st(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[tt]=e,Ie(i),a=i}e.stateNode=a}else dm(n,e.type,e.stateNode);else e.stateNode=rm(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?dm(n,e.type,e.stateNode):rm(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&dc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),mt(e),a&512&&(Je||l===null||Vt(l,l.return)),l!==null&&a&4&&dc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),mt(e),a&512&&(Je||l===null||Vt(l,l.return)),e.flags&32){n=e.stateNode;try{pa(n,"")}catch(F){Ce(e,e.return,F)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,dc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(hc=!0);break;case 6:if(ft(t,e),mt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(F){Ce(e,e.return,F)}}break;case 3:if(fi=null,n=Gt,Gt=oi(t.containerInfo),ft(t,e),Gt=n,mt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ja(t.containerInfo)}catch(F){Ce(e,e.return,F)}hc&&(hc=!1,df(e));break;case 4:a=Gt,Gt=oi(e.stateNode.containerInfo),ft(t,e),mt(e),Gt=a;break;case 12:ft(t,e),mt(e);break;case 31:ft(t,e),mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ws(e,a)));break;case 13:ft(t,e),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ps=vt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ws(e,a)));break;case 22:n=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,M=ul,U=Je;if(ul=M||n,Je=U||b,ft(t,e),Je=U,ul=M,mt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||b||ul||Je||ua(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(i=b.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{f=b.stateNode;var L=b.memoizedProps.style,_=L!=null&&L.hasOwnProperty("display")?L.display:null;f.style.display=_==null||typeof _=="boolean"?"":(""+_).trim()}}catch(F){Ce(b,b.return,F)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(F){Ce(b,b.return,F)}}}else if(t.tag===18){if(l===null){b=t;try{var D=b.stateNode;n?em(D,!0):em(b.stateNode,!1)}catch(F){Ce(b,b.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Ws(e,l))));break;case 19:ft(t,e),mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ws(e,a)));break;case 30:break;case 21:break;default:ft(t,e),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(tf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=fc(e);Js(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(pa(c,""),l.flags&=-33);var f=fc(e);Js(e,f,c);break;case 3:case 4:var b=l.stateNode.containerInfo,M=fc(e);mc(e,M,b);break;default:throw Error(r(161))}}catch(U){Ce(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function df(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;df(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function rl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nf(e,t.alternate,t),t=t.sibling}function ua(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ml(4,t,t.return),ua(t);break;case 1:Vt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Id(t,t.return,l),ua(t);break;case 27:Ln(t.stateNode);case 26:case 5:Vt(t,t.return),ua(t);break;case 22:t.memoizedState===null&&ua(t);break;case 30:ua(t);break;default:ua(t)}e=e.sibling}}function ol(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:ol(n,i,l),Mn(4,i);break;case 1:if(ol(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){Ce(a,a.return,M)}if(a=i,n=a.updateQueue,n!==null){var f=a.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)Go(b[n],f)}catch(M){Ce(a,a.return,M)}}l&&c&64&&Pd(i),_n(i,i.return);break;case 27:lf(i);case 26:case 5:ol(n,i,l),l&&a===null&&c&4&&ef(i),_n(i,i.return);break;case 12:ol(n,i,l);break;case 31:ol(n,i,l),l&&c&4&&cf(n,i);break;case 13:ol(n,i,l),l&&c&4&&rf(n,i);break;case 22:i.memoizedState===null&&ol(n,i,l),_n(i,i.return);break;case 30:break;default:ol(n,i,l)}t=t.sibling}}function xc(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&&vn(l))}function vc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vn(e))}function kt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ff(e,t,l,a),t=t.sibling}function ff(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:kt(e,t,l,a),n&2048&&Mn(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&&vn(e)));break;case 12:if(n&2048){kt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,f=i.onPostCommit;typeof f=="function"&&f(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}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):An(e,t):i._visibility&2?kt(e,t,l,a):(i._visibility|=2,Ba(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&xc(c,t);break;case 24:kt(e,t,l,a),n&2048&&vc(t.alternate,t);break;default:kt(e,t,l,a)}}function Ba(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,f=l,b=a,M=c.flags;switch(c.tag){case 0:case 11:case 15:Ba(i,c,f,b,n),Mn(8,c);break;case 23:break;case 22:var U=c.stateNode;c.memoizedState!==null?U._visibility&2?Ba(i,c,f,b,n):An(i,c):(U._visibility|=2,Ba(i,c,f,b,n)),n&&M&2048&&xc(c.alternate,c);break;case 24:Ba(i,c,f,b,n),n&&M&2048&&vc(c.alternate,c);break;default:Ba(i,c,f,b,n)}t=t.sibling}}function An(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:An(l,a),n&2048&&xc(a.alternate,a);break;case 24:An(l,a),n&2048&&vc(a.alternate,a);break;default:An(l,a)}t=t.sibling}}var zn=8192;function La(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)mf(e,t,l),e=e.sibling}function mf(e,t,l){switch(e.tag){case 26:La(e,t,l),e.flags&zn&&e.memoizedState!==null&&Jx(l,Gt,e.memoizedState,e.memoizedProps);break;case 5:La(e,t,l);break;case 3:case 4:var a=Gt;Gt=oi(e.stateNode.containerInfo),La(e,t,l),Gt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,La(e,t,l),zn=a):La(e,t,l));break;default:La(e,t,l)}}function hf(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 Dn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];et=a,vf(a,e)}hf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xf(e),e=e.sibling}function xf(e){switch(e.tag){case 0:case 11:case 15:Dn(e),e.flags&2048&&Ml(9,e,e.return);break;case 3:Dn(e);break;case 12:Dn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fs(e)):Dn(e);break;default:Dn(e)}}function Fs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];et=a,vf(a,e)}hf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ml(8,t,t.return),Fs(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Fs(t));break;default:Fs(t)}e=e.sibling}}function vf(e,t){for(;et!==null;){var l=et;switch(l.tag){case 0:case 11:case 15:Ml(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:vn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,et=a;else e:for(l=e;et!==null;){a=et;var n=a.sibling,i=a.return;if(sf(a),a===l){et=null;break e}if(n!==null){n.return=i,et=n;break e}et=i}}}var ox={getCacheForType:function(e){var t=at(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return at(Ze).controller.signal}},dx=typeof WeakMap=="function"?WeakMap:Map,Se=0,_e=null,fe=null,he=0,we=0,St=null,_l=!1,Ya=!1,gc=!1,dl=0,Ye=0,Al=0,ca=0,pc=0,Et=0,Ga=0,On=null,ht=null,bc=!1,Ps=0,gf=0,Is=1/0,ei=null,zl=null,Fe=0,Dl=null,ka=null,fl=0,yc=0,jc=null,pf=null,Un=0,Nc=null;function wt(){return(Se&2)!==0&&he!==0?he&-he:z.T!==null?Tc():zr()}function bf(){if(Et===0)if((he&536870912)===0||ge){var e=cs;cs<<=1,(cs&3932160)===0&&(cs=262144),Et=e}else Et=536870912;return e=jt.current,e!==null&&(e.flags|=32),Et}function xt(e,t,l){(e===_e&&(we===2||we===9)||e.cancelPendingCommit!==null)&&(Qa(e,0),Ol(e,he,Et,!1)),tn(e,l),((Se&2)===0||e!==_e)&&(e===_e&&((Se&2)===0&&(ca|=l),Ye===4&&Ol(e,he,Et,!1)),Zt(e))}function yf(e,t,l){if((Se&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||en(e,t),n=a?hx(e,t):Ec(e,t,!0),i=a;do{if(n===0){Ya&&!a&&Ol(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!fx(l)){n=Ec(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 f=e;n=On;var b=f.current.memoizedState.isDehydrated;if(b&&(Qa(f,c).flags|=256),c=Ec(f,c,!1),c!==2){if(gc&&!b){f.errorRecoveryDisabledLanes|=i,ca|=i,n=4;break e}i=ht,ht=n,i!==null&&(ht===null?ht=i:ht.push.apply(ht,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Qa(e,0),Ol(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ol(a,t,Et,!_l);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Ps+300-vt(),10<n)){if(Ol(a,t,Et,!_l),os(a,0,!0)!==0)break e;fl=t,a.timeoutHandle=Ff(jf.bind(null,a,l,ht,ei,bc,t,Et,ca,Ga,_l,i,"Throttled",-0,0),n);break e}jf(a,l,ht,ei,bc,t,Et,ca,Ga,_l,i,null,-0,0)}}break}while(!0);Zt(e)}function jf(e,t,l,a,n,i,c,f,b,M,U,L,_,D){if(e.timeoutHandle=-1,L=t.subtreeFlags,L&8192||(L&16785408)===16785408){L={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ft},mf(t,i,L);var F=(i&62914560)===i?Ps-vt():(i&4194048)===i?gf-vt():0;if(F=Wx(L,F),F!==null){fl=i,e.cancelPendingCommit=F(Mf.bind(null,e,t,i,l,a,n,c,f,b,U,L,null,_,D)),Ol(e,i,c,!M);return}}Mf(e,t,i,l,a,n,c,f,b)}function fx(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!bt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ol(e,t,l,a){t&=~pc,t&=~ca,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-pt(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&Mr(e,l,t)}function ti(){return(Se&6)===0?(Hn(0),!1):!0}function Sc(){if(fe!==null){if(we===0)var e=fe.return;else e=fe,tl=Il=null,Lu(e),Da=null,pn=0,e=fe;for(;e!==null;)Fd(e.alternate,e),e=e.return;fe=null}}function Qa(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,zx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fl=0,Sc(),_e=e,fe=l=It(e.current,null),he=t,we=0,St=null,_l=!1,Ya=en(e,t),gc=!1,Ga=Et=pc=ca=Al=Ye=0,ht=On=null,bc=!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-pt(a),i=1<<n;t|=e[n],a&=~i}return dl=t,Ns(),l}function Nf(e,t){ce=null,z.H=Cn,t===za||t===_s?(t=qo(),we=3):t===Ru?(t=qo(),we=4):we=t===tc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,fe===null&&(Ye=1,Xs(e,zt(t,e.current)))}function Sf(){var e=jt.current;return e===null?!0:(he&4194048)===he?Ht===null:(he&62914560)===he||(he&536870912)!==0?e===Ht:!1}function Ef(){var e=z.H;return z.H=Cn,e===null?Cn:e}function wf(){var e=z.A;return z.A=ox,e}function li(){Ye=4,_l||(he&4194048)!==he&&jt.current!==null||(Ya=!0),(Al&134217727)===0&&(ca&134217727)===0||_e===null||Ol(_e,he,Et,!1)}function Ec(e,t,l){var a=Se;Se|=2;var n=Ef(),i=wf();(_e!==e||he!==t)&&(ei=null,Qa(e,t)),t=!1;var c=Ye;e:do try{if(we!==0&&fe!==null){var f=fe,b=St;switch(we){case 8:Sc(),c=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var M=we;if(we=0,St=null,Xa(e,f,b,M),l&&Ya){c=0;break e}break;default:M=we,we=0,St=null,Xa(e,f,b,M)}}mx(),c=Ye;break}catch(U){Nf(e,U)}while(!0);return t&&e.shellSuspendCounter++,tl=Il=null,Se=a,z.H=n,z.A=i,fe===null&&(_e=null,he=0,Ns()),c}function mx(){for(;fe!==null;)Cf(fe)}function hx(e,t){var l=Se;Se|=2;var a=Ef(),n=wf();_e!==e||he!==t?(ei=null,Is=vt()+500,Qa(e,t)):Ya=en(e,t);e:do try{if(we!==0&&fe!==null){t=fe;var i=St;t:switch(we){case 1:we=0,St=null,Xa(e,t,i,1);break;case 2:case 9:if(Uo(i)){we=0,St=null,Rf(t);break}t=function(){we!==2&&we!==9||_e!==e||(we=7),Zt(e)},i.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:Uo(i)?(we=0,St=null,Rf(t)):(we=0,St=null,Xa(e,t,i,7));break;case 5:var c=null;switch(fe.tag){case 26:c=fe.memoizedState;case 5:case 27:var f=fe;if(c?fm(c):f.stateNode.complete){we=0,St=null;var b=f.sibling;if(b!==null)fe=b;else{var M=f.return;M!==null?(fe=M,ai(M)):fe=null}break t}}we=0,St=null,Xa(e,t,i,5);break;case 6:we=0,St=null,Xa(e,t,i,6);break;case 8:Sc(),Ye=6;break e;default:throw Error(r(462))}}xx();break}catch(U){Nf(e,U)}while(!0);return tl=Il=null,z.H=a,z.A=n,Se=l,fe!==null?0:(_e=null,he=0,Ns(),Ye)}function xx(){for(;fe!==null&&!B0();)Cf(fe)}function Cf(e){var t=Jd(e.alternate,e,dl);e.memoizedProps=e.pendingProps,t===null?ai(e):fe=t}function Rf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Qd(l,t,t.pendingProps,t.type,void 0,he);break;case 11:t=Qd(l,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Lu(t);default:Fd(l,t),t=fe=Eo(t,dl),t=Jd(l,t,dl)}e.memoizedProps=e.pendingProps,t===null?ai(e):fe=t}function Xa(e,t,l,a){tl=Il=null,Lu(t),Da=null,pn=0;var n=t.return;try{if(ax(e,n,t,l,he)){Ye=1,Xs(e,zt(l,e.current)),fe=null;return}}catch(i){if(n!==null)throw fe=n,i;Ye=1,Xs(e,zt(l,e.current)),fe=null;return}t.flags&32768?(ge||a===1?e=!0:Ya||(he&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=jt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Tf(t,e)):ai(t)}function ai(e){var t=e;do{if((t.flags&32768)!==0){Tf(t,_l);return}e=t.return;var l=ix(t.alternate,t,dl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ye===0&&(Ye=5)}function Tf(e,t){do{var l=ux(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);Ye=6,fe=null}function Mf(e,t,l,a,n,i,c,f,b){e.cancelPendingCommit=null;do ni();while(Fe!==0);if((Se&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=fu,$0(e,l,i,c,f,b),e===_e&&(fe=_e=null,he=0),ka=t,Dl=e,fl=l,yc=i,jc=n,pf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,bx(is,function(){return Of(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=z.T,z.T=null,n=V.p,V.p=2,c=Se,Se|=4;try{cx(e,t,l)}finally{Se=c,V.p=n,z.T=a}}Fe=1,_f(),Af(),zf()}}function _f(){if(Fe===1){Fe=0;var e=Dl,t=ka,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var a=V.p;V.p=2;var n=Se;Se|=4;try{of(t,e);var i=Hc,c=xo(e.containerInfo),f=i.focusedElem,b=i.selectionRange;if(c!==f&&f&&f.ownerDocument&&ho(f.ownerDocument.documentElement,f)){if(b!==null&&uu(f)){var M=b.start,U=b.end;if(U===void 0&&(U=M),"selectionStart"in f)f.selectionStart=M,f.selectionEnd=Math.min(U,f.value.length);else{var L=f.ownerDocument||document,_=L&&L.defaultView||window;if(_.getSelection){var D=_.getSelection(),F=f.textContent.length,ae=Math.min(b.start,F),Me=b.end===void 0?ae:Math.min(b.end,F);!D.extend&&ae>Me&&(c=Me,Me=ae,ae=c);var w=mo(f,ae),S=mo(f,Me);if(w&&S&&(D.rangeCount!==1||D.anchorNode!==w.node||D.anchorOffset!==w.offset||D.focusNode!==S.node||D.focusOffset!==S.offset)){var T=L.createRange();T.setStart(w.node,w.offset),D.removeAllRanges(),ae>Me?(D.addRange(T),D.extend(S.node,S.offset)):(T.setEnd(S.node,S.offset),D.addRange(T))}}}}for(L=[],D=f;D=D.parentNode;)D.nodeType===1&&L.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<L.length;f++){var B=L[f];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}vi=!!Uc,Hc=Uc=null}finally{Se=n,V.p=a,z.T=l}}e.current=t,Fe=2}}function Af(){if(Fe===2){Fe=0;var e=Dl,t=ka,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var a=V.p;V.p=2;var n=Se;Se|=4;try{nf(e,t.alternate,t)}finally{Se=n,V.p=a,z.T=l}}Fe=3}}function zf(){if(Fe===4||Fe===3){Fe=0,L0();var e=Dl,t=ka,l=fl,a=pf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,ka=Dl=null,Df(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),ki(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=z.T,n=V.p,V.p=2,z.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var f=a[c];i(f.value,{componentStack:f.stack})}}finally{z.T=t,V.p=n}}(fl&3)!==0&&ni(),Zt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Nc?Un++:(Un=0,Nc=e):Un=0,Hn(0)}}function Df(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vn(t)))}function ni(){return _f(),Af(),zf(),Of()}function Of(){if(Fe!==5)return!1;var e=Dl,t=yc;yc=0;var l=ki(fl),a=z.T,n=V.p;try{V.p=32>l?32:l,z.T=null,l=jc,jc=null;var i=Dl,c=fl;if(Fe=0,ka=Dl=null,fl=0,(Se&6)!==0)throw Error(r(331));var f=Se;if(Se|=4,xf(i.current),ff(i,i.current,c,l),Se=f,Hn(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Ia,i)}catch{}return!0}finally{V.p=n,z.T=a,Df(e,t)}}function Uf(e,t,l){t=zt(l,t),t=ec(e.stateNode,t,2),e=Cl(e,t,2),e!==null&&(tn(e,2),Zt(e))}function Ce(e,t,l){if(e.tag===3)Uf(e,e,l);else for(;t!==null;){if(t.tag===3){Uf(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zl===null||!zl.has(a))){e=zt(l,e),l=Ud(2),a=Cl(t,l,2),a!==null&&(Hd(l,a,t,e),tn(a,2),Zt(a));break}}t=t.return}}function wc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new dx;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(gc=!0,n.add(l),e=vx.bind(null,e,t,l),t.then(e,e))}function vx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,_e===e&&(he&l)===l&&(Ye===4||Ye===3&&(he&62914560)===he&&300>vt()-Ps?(Se&2)===0&&Qa(e,0):pc|=l,Ga===he&&(Ga=0)),Zt(e)}function Hf(e,t){t===0&&(t=Tr()),e=Wl(e,t),e!==null&&(tn(e,t),Zt(e))}function gx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hf(e,l)}function px(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),Hf(e,l)}function bx(e,t){return Bi(e,t)}var si=null,Va=null,Cc=!1,ii=!1,Rc=!1,Ul=0;function Zt(e){e!==Va&&e.next===null&&(Va===null?si=Va=e:Va=Va.next=e),ii=!0,Cc||(Cc=!0,jx())}function Hn(e,t){if(!Rc&&ii){Rc=!0;do for(var l=!1,a=si;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-pt(42|e)+1)-1,i&=n&~(c&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Yf(a,i))}else i=he,i=os(a,a===_e?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||en(a,i)||(l=!0,Yf(a,i));a=a.next}while(l);Rc=!1}}function yx(){qf()}function qf(){ii=Cc=!1;var e=0;Ul!==0&&Ax()&&(e=Ul);for(var t=vt(),l=null,a=si;a!==null;){var n=a.next,i=Bf(a,t);i===0?(a.next=null,l===null?si=n:l.next=n,n===null&&(Va=l)):(l=a,(e!==0||(i&3)!==0)&&(ii=!0)),a=n}Fe!==0&&Fe!==5||Hn(e),Ul!==0&&(Ul=0)}function Bf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-pt(i),f=1<<c,b=n[c];b===-1?((f&l)===0||(f&a)!==0)&&(n[c]=K0(f,t)):b<=t&&(e.expiredLanes|=f),i&=~f}if(t=_e,l=he,l=os(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Li(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||en(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Li(a),ki(l)){case 2:case 8:l=Cr;break;case 32:l=is;break;case 268435456:l=Rr;break;default:l=is}return a=Lf.bind(null,e),l=Bi(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Li(a),e.callbackPriority=2,e.callbackNode=null,2}function Lf(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ni()&&e.callbackNode!==l)return null;var a=he;return a=os(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(yf(e,a,t),Bf(e,vt()),e.callbackNode!=null&&e.callbackNode===l?Lf.bind(null,e):null)}function Yf(e,t){if(ni())return null;yf(e,t,!0)}function jx(){Dx(function(){(Se&6)!==0?Bi(wr,yx):qf()})}function Tc(){if(Ul===0){var e=_a;e===0&&(e=us,us<<=1,(us&261888)===0&&(us=256)),Ul=e}return Ul}function Gf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hs(""+e)}function kf(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 Nx(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Gf((n[rt]||null).action),c=a.submitter;c&&(t=(t=c[rt]||null)?Gf(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var f=new ps("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Ul!==0){var b=c?kf(n,c):new FormData(n);$u(l,{pending:!0,data:b,method:n.method,action:i},null,b)}}else typeof i=="function"&&(f.preventDefault(),b=c?kf(n,c):new FormData(n),$u(l,{pending:!0,data:b,method:n.method,action:i},i,b))},currentTarget:n}]})}}for(var Mc=0;Mc<du.length;Mc++){var _c=du[Mc],Sx=_c.toLowerCase(),Ex=_c[0].toUpperCase()+_c.slice(1);Yt(Sx,"on"+Ex)}Yt(po,"onAnimationEnd"),Yt(bo,"onAnimationIteration"),Yt(yo,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Yh,"onTransitionRun"),Yt(Gh,"onTransitionStart"),Yt(kh,"onTransitionCancel"),Yt(jo,"onTransitionEnd"),va("onMouseEnter",["mouseout","mouseover"]),va("onMouseLeave",["mouseout","mouseover"]),va("onPointerEnter",["pointerout","pointerover"]),va("onPointerLeave",["pointerout","pointerover"]),Zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qn="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(" "),wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qn));function Qf(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 f=a[c],b=f.instance,M=f.currentTarget;if(f=f.listener,b!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=M;try{i(n)}catch(U){js(U)}n.currentTarget=null,i=b}else for(c=0;c<a.length;c++){if(f=a[c],b=f.instance,M=f.currentTarget,f=f.listener,b!==i&&n.isPropagationStopped())break e;i=f,n.currentTarget=M;try{i(n)}catch(U){js(U)}n.currentTarget=null,i=b}}}}function me(e,t){var l=t[Qi];l===void 0&&(l=t[Qi]=new Set);var a=e+"__bubble";l.has(a)||(Xf(t,e,2,!1),l.add(a))}function Ac(e,t,l){var a=0;t&&(a|=4),Xf(l,e,a,t)}var ui="_reactListening"+Math.random().toString(36).slice(2);function zc(e){if(!e[ui]){e[ui]=!0,Ur.forEach(function(l){l!=="selectionchange"&&(wx.has(l)||Ac(l,!1,e),Ac(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ui]||(t[ui]=!0,Ac("selectionchange",!1,t))}}function Xf(e,t,l,a){switch(bm(t)){case 2:var n=Ix;break;case 8:n=ev;break;default:n=Kc}l=n.bind(null,t,l,e),n=void 0,!Pi||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 Dc(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 f=a.stateNode.containerInfo;if(f===n)break;if(c===4)for(c=a.return;c!==null;){var b=c.tag;if((b===3||b===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;f!==null;){if(c=ma(f),c===null)return;if(b=c.tag,b===5||b===6||b===26||b===27){a=i=c;continue e}f=f.parentNode}}a=a.return}Kr(function(){var M=i,U=Wi(l),L=[];e:{var _=No.get(e);if(_!==void 0){var D=ps,F=e;switch(e){case"keypress":if(vs(l)===0)break e;case"keydown":case"keyup":D=ph;break;case"focusin":F="focus",D=lu;break;case"focusout":F="blur",D=lu;break;case"beforeblur":case"afterblur":D=lu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Wr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=ih;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=jh;break;case po:case bo:case yo:D=rh;break;case jo:D=Sh;break;case"scroll":case"scrollend":D=nh;break;case"wheel":D=wh;break;case"copy":case"cut":case"paste":D=dh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Pr;break;case"toggle":case"beforetoggle":D=Rh}var ae=(t&4)!==0,Me=!ae&&(e==="scroll"||e==="scrollend"),w=ae?_!==null?_+"Capture":null:_;ae=[];for(var S=M,T;S!==null;){var B=S;if(T=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||T===null||w===null||(B=nn(S,w),B!=null&&ae.push(Bn(S,B,T))),Me)break;S=S.return}0<ae.length&&(_=new D(_,F,null,l,U),L.push({event:_,listeners:ae}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",_&&l!==Ji&&(F=l.relatedTarget||l.fromElement)&&(ma(F)||F[fa]))break e;if((D||_)&&(_=U.window===U?U:(_=U.ownerDocument)?_.defaultView||_.parentWindow:window,D?(F=l.relatedTarget||l.toElement,D=M,F=F?ma(F):null,F!==null&&(Me=x(F),ae=F.tag,F!==Me||ae!==5&&ae!==27&&ae!==6)&&(F=null)):(D=null,F=M),D!==F)){if(ae=Wr,B="onMouseLeave",w="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(ae=Pr,B="onPointerLeave",w="onPointerEnter",S="pointer"),Me=D==null?_:an(D),T=F==null?_:an(F),_=new ae(B,S+"leave",D,l,U),_.target=Me,_.relatedTarget=T,B=null,ma(U)===M&&(ae=new ae(w,S+"enter",F,l,U),ae.target=T,ae.relatedTarget=Me,B=ae),Me=B,D&&F)t:{for(ae=Cx,w=D,S=F,T=0,B=w;B;B=ae(B))T++;B=0;for(var te=S;te;te=ae(te))B++;for(;0<T-B;)w=ae(w),T--;for(;0<B-T;)S=ae(S),B--;for(;T--;){if(w===S||S!==null&&w===S.alternate){ae=w;break t}w=ae(w),S=ae(S)}ae=null}else ae=null;D!==null&&Vf(L,_,D,ae,!1),F!==null&&Me!==null&&Vf(L,Me,F,ae,!0)}}e:{if(_=M?an(M):window,D=_.nodeName&&_.nodeName.toLowerCase(),D==="select"||D==="input"&&_.type==="file")var je=io;else if(no(_))if(uo)je=qh;else{je=Uh;var P=Oh}else D=_.nodeName,!D||D.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?M&&$i(M.elementType)&&(je=io):je=Hh;if(je&&(je=je(e,M))){so(L,je,l,U);break e}P&&P(e,_,M),e==="focusout"&&M&&_.type==="number"&&M.memoizedProps.value!=null&&Ki(_,"number",_.value)}switch(P=M?an(M):window,e){case"focusin":(no(P)||P.contentEditable==="true")&&(Na=P,cu=M,mn=null);break;case"focusout":mn=cu=Na=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,vo(L,l,U);break;case"selectionchange":if(Lh)break;case"keydown":case"keyup":vo(L,l,U)}var oe;if(nu)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else ja?lo(e,l)&&(xe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(xe="onCompositionStart");xe&&(Ir&&l.locale!=="ko"&&(ja||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&ja&&(oe=$r()):(bl=U,Ii="value"in bl?bl.value:bl.textContent,ja=!0)),P=ci(M,xe),0<P.length&&(xe=new Fr(xe,e,null,l,U),L.push({event:xe,listeners:P}),oe?xe.data=oe:(oe=ao(l),oe!==null&&(xe.data=oe)))),(oe=Mh?_h(e,l):Ah(e,l))&&(xe=ci(M,"onBeforeInput"),0<xe.length&&(P=new Fr("onBeforeInput","beforeinput",null,l,U),L.push({event:P,listeners:xe}),P.data=oe)),Nx(L,e,M,l,U)}Qf(L,t)})}function Bn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ci(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=nn(e,l),n!=null&&a.unshift(Bn(e,n,i)),n=nn(e,t),n!=null&&a.push(Bn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Cx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vf(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var f=l,b=f.alternate,M=f.stateNode;if(f=f.tag,b!==null&&b===a)break;f!==5&&f!==26&&f!==27||M===null||(b=M,n?(M=nn(l,i),M!=null&&c.unshift(Bn(l,M,b))):n||(M=nn(l,i),M!=null&&c.push(Bn(l,M,b)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Rx=/\r\n?/g,Tx=/\u0000|\uFFFD/g;function Zf(e){return(typeof e=="string"?e:""+e).replace(Rx,`
|
|
49
|
+
`).replace(Tx,"")}function Kf(e,t){return t=Zf(t),Zf(e)===t}function Te(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||pa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&pa(e,""+a);break;case"className":fs(e,"class",a);break;case"tabIndex":fs(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":fs(e,l,a);break;case"style":Vr(e,a,i);break;case"data":if(t!=="object"){fs(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=hs(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&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=hs(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Ft);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=hs(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":me("beforetoggle",e),me("toggle",e),ds(e,"popover",a);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ds(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=lh.get(l)||l,ds(e,l,a))}}function Oc(e,t,l,a,n,i){switch(l){case"style":Vr(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?pa(e,a):(typeof a=="number"||typeof a=="bigint")&&pa(e,""+a);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!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[rt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ds(e,l,a)}}}function st(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("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":me("invalid",e);var f=i=c=n=null,b=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":n=U;break;case"type":c=U;break;case"checked":b=U;break;case"defaultChecked":M=U;break;case"value":i=U;break;case"defaultValue":f=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:Te(e,t,a,U,l,null)}}Gr(e,i,f,b,M,c,n,!1);return;case"select":me("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":c=f;break;case"multiple":a=f;default:Te(e,t,n,f,l,null)}t=i,l=c,e.multiple=!!a,t!=null?ga(e,!!a,t,!1):l!=null&&ga(e,!!a,l,!0);return;case"textarea":me("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(f=l[c],f!=null))switch(c){case"value":a=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:Te(e,t,c,f,l,null)}Qr(e,a,n,i);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,b,a,l,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<qn.length;a++)me(qn[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("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(M in l)if(l.hasOwnProperty(M)&&(a=l[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Te(e,t,M,a,l,null)}return;default:if($i(t)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&Oc(e,t,U,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&Te(e,t,f,a,l,null))}function Mx(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,f=null,b=null,M=null,U=null;for(D in l){var L=l[D];if(l.hasOwnProperty(D)&&L!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":b=L;default:a.hasOwnProperty(D)||Te(e,t,D,null,a,L)}}for(var _ in a){var D=a[_];if(L=l[_],a.hasOwnProperty(_)&&(D!=null||L!=null))switch(_){case"type":i=D;break;case"name":n=D;break;case"checked":M=D;break;case"defaultChecked":U=D;break;case"value":c=D;break;case"defaultValue":f=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:D!==L&&Te(e,t,_,D,a,L)}}Zi(e,c,f,b,M,U,i,n);return;case"select":D=c=f=_=null;for(i in l)if(b=l[i],l.hasOwnProperty(i)&&b!=null)switch(i){case"value":break;case"multiple":D=b;default:a.hasOwnProperty(i)||Te(e,t,i,null,a,b)}for(n in a)if(i=a[n],b=l[n],a.hasOwnProperty(n)&&(i!=null||b!=null))switch(n){case"value":_=i;break;case"defaultValue":f=i;break;case"multiple":c=i;default:i!==b&&Te(e,t,n,i,a,b)}t=f,l=c,a=D,_!=null?ga(e,!!l,_,!1):!!a!=!!l&&(t!=null?ga(e,!!l,t,!0):ga(e,!!l,l?[]:"",!1));return;case"textarea":D=_=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Te(e,t,f,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":_=n;break;case"defaultValue":D=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)}kr(e,_,D);return;case"option":for(var F in l)if(_=l[F],l.hasOwnProperty(F)&&_!=null&&!a.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Te(e,t,F,null,a,_)}for(b in a)if(_=a[b],D=l[b],a.hasOwnProperty(b)&&_!==D&&(_!=null||D!=null))switch(b){case"selected":e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:Te(e,t,b,_,a,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ae in l)_=l[ae],l.hasOwnProperty(ae)&&_!=null&&!a.hasOwnProperty(ae)&&Te(e,t,ae,null,a,_);for(M in a)if(_=a[M],D=l[M],a.hasOwnProperty(M)&&_!==D&&(_!=null||D!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:Te(e,t,M,_,a,D)}return;default:if($i(t)){for(var Me in l)_=l[Me],l.hasOwnProperty(Me)&&_!==void 0&&!a.hasOwnProperty(Me)&&Oc(e,t,Me,void 0,a,_);for(U in a)_=a[U],D=l[U],!a.hasOwnProperty(U)||_===D||_===void 0&&D===void 0||Oc(e,t,U,_,a,D);return}}for(var w in l)_=l[w],l.hasOwnProperty(w)&&_!=null&&!a.hasOwnProperty(w)&&Te(e,t,w,null,a,_);for(L in a)_=a[L],D=l[L],!a.hasOwnProperty(L)||_===D||_==null&&D==null||Te(e,t,L,_,a,D)}function $f(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _x(){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,f=n.duration;if(i&&f&&$f(c)){for(c=0,f=n.responseEnd,a+=1;a<l.length;a++){var b=l[a],M=b.startTime;if(M>f)break;var U=b.transferSize,L=b.initiatorType;U&&$f(L)&&(b=b.responseEnd,c+=U*(b<f?1:(f-M)/(b-M)))}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 Uc=null,Hc=null;function ri(e){return e.nodeType===9?e:e.ownerDocument}function Jf(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 Wf(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 qc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bc=null;function Ax(){var e=window.event;return e&&e.type==="popstate"?e===Bc?!1:(Bc=e,!0):(Bc=null,!1)}var Ff=typeof setTimeout=="function"?setTimeout:void 0,zx=typeof clearTimeout=="function"?clearTimeout:void 0,Pf=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof Pf<"u"?function(e){return Pf.resolve(null).then(e).catch(Ox)}:Ff;function Ox(e){setTimeout(function(){throw e})}function Hl(e){return e==="head"}function If(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),Ja(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,f=i.nodeName;i[ln]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Ln(e.ownerDocument.body);l=n}while(l);Ja(t)}function em(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 Lc(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":Lc(l),Xi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ux(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[ln])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function Hx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=qt(e.nextSibling),e===null))return null;return e}function tm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function Yc(e){return e.data==="$?"||e.data==="$~"}function Gc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qx(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kc=null;function lm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function am(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 nm(e,t,l){switch(t=ri(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ln(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xi(e)}var Bt=new Map,sm=new Set;function oi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ml=V.d;V.d={f:Bx,r:Lx,D:Yx,C:Gx,L:kx,m:Qx,X:Vx,S:Xx,M:Zx};function Bx(){var e=ml.f(),t=ti();return e||t}function Lx(e){var t=ha(e);t!==null&&t.tag===5&&t.type==="form"?jd(t):ml.r(e)}var Za=typeof document>"u"?null:document;function im(e,t,l){var a=Za;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),sm.has(n)||(sm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Yx(e){ml.D(e),im("dns-prefetch",e,null)}function Gx(e,t){ml.C(e,t),im("preconnect",e,t)}function kx(e,t,l){ml.L(e,t,l);var a=Za;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=Ka(e);break;case"script":i=$a(e)}Bt.has(i)||(e=j({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(Yn(i))||t==="script"&&a.querySelector(Gn(i))||(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Qx(e,t){ml.m(e,t);var l=Za;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=$a(e)}if(!Bt.has(i)&&(e=j({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(Gn(i)))return}a=l.createElement("link"),st(a,"link",e),Ie(a),l.head.appendChild(a)}}}function Xx(e,t,l){ml.S(e,t,l);var a=Za;if(a&&e){var n=xa(a).hoistableStyles,i=Ka(e);t=t||"default";var c=n.get(i);if(!c){var f={loading:0,preload:null};if(c=a.querySelector(Yn(i)))f.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Bt.get(i))&&Qc(e,l);var b=c=a.createElement("link");Ie(b),st(b,"link",e),b._p=new Promise(function(M,U){b.onload=M,b.onerror=U}),b.addEventListener("load",function(){f.loading|=1}),b.addEventListener("error",function(){f.loading|=2}),f.loading|=4,di(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:f},n.set(i,c)}}}function Vx(e,t){ml.X(e,t);var l=Za;if(l&&e){var a=xa(l).hoistableScripts,n=$a(e),i=a.get(n);i||(i=l.querySelector(Gn(n)),i||(e=j({src:e,async:!0},t),(t=Bt.get(n))&&Xc(e,t),i=l.createElement("script"),Ie(i),st(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Zx(e,t){ml.M(e,t);var l=Za;if(l&&e){var a=xa(l).hoistableScripts,n=$a(e),i=a.get(n);i||(i=l.querySelector(Gn(n)),i||(e=j({src:e,async:!0,type:"module"},t),(t=Bt.get(n))&&Xc(e,t),i=l.createElement("script"),Ie(i),st(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function um(e,t,l,a){var n=(n=se.current)?oi(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ka(l.href),l=xa(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=Ka(l.href);var i=xa(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(Yn(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||Kx(n,e,l,c.state))),t&&a===null)throw Error(r(528,""));return c}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$a(l),l=xa(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 Ka(e){return'href="'+_t(e)+'"'}function Yn(e){return'link[rel="stylesheet"]['+e+"]"}function cm(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Kx(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),st(t,"link",l),Ie(t),e.head.appendChild(t))}function $a(e){return'[src="'+_t(e)+'"]'}function Gn(e){return"script[async]"+e}function rm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Ie(a),a;var n=j({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),st(a,"style",n),di(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ka(l.href);var i=e.querySelector(Yn(n));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;a=cm(l),(n=Bt.get(n))&&Qc(a,n),i=(e.ownerDocument||e).createElement("link"),Ie(i);var c=i;return c._p=new Promise(function(f,b){c.onload=f,c.onerror=b}),st(i,"link",a),t.state.loading|=4,di(i,l.precedence,e),t.instance=i;case"script":return i=$a(l.src),(n=e.querySelector(Gn(i)))?(t.instance=n,Ie(n),n):(a=l,(n=Bt.get(i))&&(a=j({},l),Xc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ie(n),st(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,di(a,l.precedence,e));return t.instance}function di(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var f=a[c];if(f.dataset.precedence===t)i=f;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 Qc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Xc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var fi=null;function om(e,t,l){if(fi===null){var a=new Map,n=fi=new Map;n.set(l,a)}else n=fi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[ln]||i[tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var f=a.get(c);f?f.push(i):a.set(c,[i])}}return a}function dm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function $x(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 fm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Jx(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=Ka(a.href),i=t.querySelector(Yn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ie(i);return}i=t.ownerDocument||t,a=cm(a),(n=Bt.get(n))&&Qc(a,n),i=i.createElement("link"),Ie(i);var c=i;c._p=new Promise(function(f,b){c.onload=f,c.onerror=b}),st(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=mi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Vc=0;function Wx(e,t){return e.stylesheets&&e.count===0&&xi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&xi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Vc===0&&(Vc=62500*_x());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Vc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function mi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var hi=null;function xi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,hi=new Map,t.forEach(Fx,e),hi=null,mi.call(e))}function Fx(e,t){if(!(t.state.loading&4)){var l=hi.get(e);if(l)var a=l.get(null);else{l=new Map,hi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=mi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var kn={$$typeof:G,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Px(e,t,l,a,n,i,c,f,b){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=Yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yi(0),this.hiddenUpdates=Yi(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function mm(e,t,l,a,n,i,c,f,b,M,U,L){return e=new Px(e,t,l,c,b,M,U,L,f),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=Eu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Tu(i),e}function hm(e){return e?(e=wa,e):wa}function xm(e,t,l,a,n,i){n=hm(n),a.context===null?a.context=n:a.pendingContext=n,a=wl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Cl(e,a,t),l!==null&&(xt(l,e,t),yn(l,e,t))}function vm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Zc(e,t){vm(e,t),(e=e.alternate)&&vm(e,t)}function gm(e){if(e.tag===13||e.tag===31){var t=Wl(e,67108864);t!==null&&xt(t,e,67108864),Zc(e,67108864)}}function pm(e){if(e.tag===13||e.tag===31){var t=wt();t=Gi(t);var l=Wl(e,t);l!==null&&xt(l,e,t),Zc(e,t)}}var vi=!0;function Ix(e,t,l,a){var n=z.T;z.T=null;var i=V.p;try{V.p=2,Kc(e,t,l,a)}finally{V.p=i,z.T=n}}function ev(e,t,l,a){var n=z.T;z.T=null;var i=V.p;try{V.p=8,Kc(e,t,l,a)}finally{V.p=i,z.T=n}}function Kc(e,t,l,a){if(vi){var n=$c(a);if(n===null)Dc(e,t,a,gi,l),ym(e,a);else if(lv(n,e,t,l,a))a.stopPropagation();else if(ym(e,a),t&4&&-1<tv.indexOf(e)){for(;n!==null;){var i=ha(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Vl(i.pendingLanes);if(c!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;c;){var b=1<<31-pt(c);f.entanglements[1]|=b,c&=~b}Zt(i),(Se&6)===0&&(Is=vt()+500,Hn(0))}}break;case 31:case 13:f=Wl(i,2),f!==null&&xt(f,i,2),ti(),Zc(i,2)}if(i=$c(a),i===null&&Dc(e,t,a,gi,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Dc(e,t,a,null,l)}}function $c(e){return e=Wi(e),Jc(e)}var gi=null;function Jc(e){if(gi=null,e=ma(e),e!==null){var t=x(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=m(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 gi=e,null}function bm(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(Y0()){case wr:return 2;case Cr:return 8;case is:case G0:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Wc=!1,ql=null,Bl=null,Ll=null,Qn=new Map,Xn=new Map,Yl=[],tv="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 ym(e,t){switch(e){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":Ll=null;break;case"pointerover":case"pointerout":Qn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xn.delete(t.pointerId)}}function Vn(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=ha(t),t!==null&&gm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function lv(e,t,l,a,n){switch(t){case"focusin":return ql=Vn(ql,e,t,l,a,n),!0;case"dragenter":return Bl=Vn(Bl,e,t,l,a,n),!0;case"mouseover":return Ll=Vn(Ll,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Qn.set(i,Vn(Qn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Xn.set(i,Vn(Xn.get(i)||null,e,t,l,a,n)),!0}return!1}function jm(e){var t=ma(e.target);if(t!==null){var l=x(t);if(l!==null){if(t=l.tag,t===13){if(t=m(l),t!==null){e.blockedOn=t,Dr(e.priority,function(){pm(l)});return}}else if(t===31){if(t=y(l),t!==null){e.blockedOn=t,Dr(e.priority,function(){pm(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 pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=$c(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Ji=a,l.target.dispatchEvent(a),Ji=null}else return t=ha(l),t!==null&&gm(t),e.blockedOn=l,!1;t.shift()}return!0}function Nm(e,t,l){pi(e)&&l.delete(t)}function av(){Wc=!1,ql!==null&&pi(ql)&&(ql=null),Bl!==null&&pi(Bl)&&(Bl=null),Ll!==null&&pi(Ll)&&(Ll=null),Qn.forEach(Nm),Xn.forEach(Nm)}function bi(e,t){e.blockedOn===t&&(e.blockedOn=null,Wc||(Wc=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,av)))}var yi=null;function Sm(e){yi!==e&&(yi=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){yi===e&&(yi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Jc(a||l)===null)continue;break}var i=ha(l);i!==null&&(e.splice(t,3),t-=3,$u(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ja(e){function t(b){return bi(b,e)}ql!==null&&bi(ql,e),Bl!==null&&bi(Bl,e),Ll!==null&&bi(Ll,e),Qn.forEach(t),Xn.forEach(t);for(var l=0;l<Yl.length;l++){var a=Yl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Yl.length&&(l=Yl[0],l.blockedOn===null);)jm(l),l.blockedOn===null&&Yl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[rt]||null;if(typeof i=="function")c||Sm(l);else if(c){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[rt]||null)f=c.formAction;else if(Jc(n)!==null)continue}else f=c.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Sm(l)}}}function Em(){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 Fc(e){this._internalRoot=e}ji.prototype.render=Fc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=wt();xm(l,a,e,t,null,null)},ji.prototype.unmount=Fc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xm(e.current,2,null,e,null,null),ti(),t[fa]=null}};function ji(e){this._internalRoot=e}ji.prototype.unstable_scheduleHydration=function(e){if(e){var t=zr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Yl.length&&t!==0&&t<Yl[l].priority;l++);Yl.splice(l,0,e),l===0&&jm(e)}};var wm=o.version;if(wm!=="19.2.4")throw Error(r(527,wm,"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?E(e):null,e=e===null?null:e.stateNode,e};var nv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ni=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ni.isDisabled&&Ni.supportsFiber)try{Ia=Ni.inject(nv),gt=Ni}catch{}}return Kn.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,a="",n=Ad,i=zd,c=Dd;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=mm(e,1,!1,null,null,l,a,null,n,i,c,Em),e[fa]=t.current,zc(e),new Fc(t)},Kn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var a=!1,n="",i=Ad,c=zd,f=Dd,b=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&&(f=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=mm(e,1,!0,t,l??null,a,n,b,i,c,f,Em),t.context=hm(null),l=t.current,a=wt(),a=Gi(a),n=wl(a),n.callback=null,Cl(l,n,a),l=a,t.current.lanes=l,tn(t,l),Zt(t),e[fa]=t.current,zc(e),new ji(t)},Kn.version="19.2.4",Kn}var Um;function hv(){if(Um)return er.exports;Um=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(),er.exports=mv(),er.exports}var xv=hv();const vv=Jm(xv);/**
|
|
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 Hm="popstate";function gv(u={}){function o(h,x){let{pathname:m="/",search:y="",hash:g=""}=da(h.location.hash.substring(1));return!m.startsWith("/")&&!m.startsWith(".")&&(m="/"+m),rr("",{pathname:m,search:y,hash:g},x.state&&x.state.usr||null,x.state&&x.state.key||"default")}function d(h,x){let m=h.document.querySelector("base"),y="";if(m&&m.getAttribute("href")){let g=h.location.href,v=g.indexOf("#");y=v===-1?g:g.slice(0,v)}return y+"#"+(typeof x=="string"?x:Fn(x))}function r(h,x){Lt(h.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(x)})`)}return bv(o,d,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 pv(){return Math.random().toString(36).substring(2,10)}function qm(u,o){return{usr:u.state,key:u.key,idx:o}}function rr(u,o,d=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof o=="string"?da(o):o,state:d,key:o&&o.key||r||pv()}}function Fn({pathname:u="/",search:o="",hash:d=""}){return o&&o!=="?"&&(u+=o.charAt(0)==="?"?o:"?"+o),d&&d!=="#"&&(u+=d.charAt(0)==="#"?d:"#"+d),u}function da(u){let o={};if(u){let d=u.indexOf("#");d>=0&&(o.hash=u.substring(d),u=u.substring(0,d));let r=u.indexOf("?");r>=0&&(o.search=u.substring(r),u=u.substring(0,r)),u&&(o.pathname=u)}return o}function bv(u,o,d,r={}){let{window:h=document.defaultView,v5Compat:x=!1}=r,m=h.history,y="POP",g=null,v=E();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function E(){return(m.state||{idx:null}).idx}function j(){y="POP";let q=E(),A=q==null?null:q-v;v=q,g&&g({action:y,location:p.location,delta:A})}function O(q,A){y="PUSH";let k=rr(p.location,q,A);d&&d(k,q),v=E()+1;let G=qm(k,v),le=p.createHref(k);try{m.pushState(G,"",le)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;h.location.assign(le)}x&&g&&g({action:y,location:p.location,delta:1})}function Q(q,A){y="REPLACE";let k=rr(p.location,q,A);d&&d(k,q),v=E();let G=qm(k,v),le=p.createHref(k);m.replaceState(G,"",le),x&&g&&g({action:y,location:p.location,delta:0})}function H(q){return yv(q)}let p={get action(){return y},get location(){return u(h,m)},listen(q){if(g)throw new Error("A history only accepts one active listener");return h.addEventListener(Hm,j),g=q,()=>{h.removeEventListener(Hm,j),g=null}},createHref(q){return o(h,q)},createURL:H,encodeLocation(q){let A=H(q);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:O,replace:Q,go(q){return m.go(q)}};return p}function yv(u,o=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Be(d,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:Fn(u);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=d+r),new URL(r,d)}function Wm(u,o,d="/"){return jv(u,o,d,!1)}function jv(u,o,d,r){let h=typeof o=="string"?da(o):o,x=vl(h.pathname||"/",d);if(x==null)return null;let m=Fm(u);Nv(m);let y=null;for(let g=0;y==null&&g<m.length;++g){let v=Dv(x);y=Av(m[g],v,r)}return y}function Fm(u,o=[],d=[],r="",h=!1){let x=(m,y,g=h,v)=>{let E={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:y,route:m};if(E.relativePath.startsWith("/")){if(!E.relativePath.startsWith(r)&&g)return;Be(E.relativePath.startsWith(r),`Absolute route path "${E.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),E.relativePath=E.relativePath.slice(r.length)}let j=xl([r,E.relativePath]),O=d.concat(E);m.children&&m.children.length>0&&(Be(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${j}".`),Fm(m.children,o,O,j,g)),!(m.path==null&&!m.index)&&o.push({path:j,score:Mv(j,m.index),routesMeta:O})};return u.forEach((m,y)=>{var g;if(m.path===""||!((g=m.path)!=null&&g.includes("?")))x(m,y);else for(let v of Pm(m.path))x(m,y,!0,v)}),o}function Pm(u){let o=u.split("/");if(o.length===0)return[];let[d,...r]=o,h=d.endsWith("?"),x=d.replace(/\?$/,"");if(r.length===0)return h?[x,""]:[x];let m=Pm(r.join("/")),y=[];return y.push(...m.map(g=>g===""?x:[x,g].join("/"))),h&&y.push(...m),y.map(g=>u.startsWith("/")&&g===""?"/":g)}function Nv(u){u.sort((o,d)=>o.score!==d.score?d.score-o.score:_v(o.routesMeta.map(r=>r.childrenIndex),d.routesMeta.map(r=>r.childrenIndex)))}var Sv=/^:[\w-]+$/,Ev=3,wv=2,Cv=1,Rv=10,Tv=-2,Bm=u=>u==="*";function Mv(u,o){let d=u.split("/"),r=d.length;return d.some(Bm)&&(r+=Tv),o&&(r+=wv),d.filter(h=>!Bm(h)).reduce((h,x)=>h+(Sv.test(x)?Ev:x===""?Cv:Rv),r)}function _v(u,o){return u.length===o.length&&u.slice(0,-1).every((r,h)=>r===o[h])?u[u.length-1]-o[o.length-1]:0}function Av(u,o,d=!1){let{routesMeta:r}=u,h={},x="/",m=[];for(let y=0;y<r.length;++y){let g=r[y],v=y===r.length-1,E=x==="/"?o:o.slice(x.length)||"/",j=Ti({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},E),O=g.route;if(!j&&v&&d&&!r[r.length-1].route.index&&(j=Ti({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},E)),!j)return null;Object.assign(h,j.params),m.push({params:h,pathname:xl([x,j.pathname]),pathnameBase:qv(xl([x,j.pathnameBase])),route:O}),j.pathnameBase!=="/"&&(x=xl([x,j.pathnameBase]))}return m}function Ti(u,o){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[d,r]=zv(u.path,u.caseSensitive,u.end),h=o.match(d);if(!h)return null;let x=h[0],m=x.replace(/(.)\/+$/,"$1"),y=h.slice(1);return{params:r.reduce((v,{paramName:E,isOptional:j},O)=>{if(E==="*"){let H=y[O]||"";m=x.slice(0,x.length-H.length).replace(/(.)\/+$/,"$1")}const Q=y[O];return j&&!Q?v[E]=void 0:v[E]=(Q||"").replace(/%2F/g,"/"),v},{}),pathname:x,pathnameBase:m,pattern:u}}function zv(u,o=!1,d=!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=[],h="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,y,g)=>(r.push({paramName:y,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(r.push({paramName:"*"}),h+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?h+="\\/*$":u!==""&&u!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,o?void 0:"i"),r]}function Dv(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 vl(u,o){if(o==="/")return u;if(!u.toLowerCase().startsWith(o.toLowerCase()))return null;let d=o.endsWith("/")?o.length-1:o.length,r=u.charAt(d);return r&&r!=="/"?null:u.slice(d)||"/"}var Ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Uv(u,o="/"){let{pathname:d,search:r="",hash:h=""}=typeof u=="string"?da(u):u,x;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?x=Lm(d.substring(1),"/"):x=Lm(d,o)):x=o,{pathname:x,search:Bv(r),hash:Lv(h)}}function Lm(u,o){let d=o.replace(/\/+$/,"").split("/");return u.split("/").forEach(h=>{h===".."?d.length>1&&d.pop():h!=="."&&d.push(h)}),d.length>1?d.join("/"):"/"}function nr(u,o,d,r){return`Cannot include a '${u}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hv(u){return u.filter((o,d)=>d===0||o.route.path&&o.route.path.length>0)}function hr(u){let o=Hv(u);return o.map((d,r)=>r===o.length-1?d.pathname:d.pathnameBase)}function xr(u,o,d,r=!1){let h;typeof u=="string"?h=da(u):(h={...u},Be(!h.pathname||!h.pathname.includes("?"),nr("?","pathname","search",h)),Be(!h.pathname||!h.pathname.includes("#"),nr("#","pathname","hash",h)),Be(!h.search||!h.search.includes("#"),nr("#","search","hash",h)));let x=u===""||h.pathname==="",m=x?"/":h.pathname,y;if(m==null)y=d;else{let j=o.length-1;if(!r&&m.startsWith("..")){let O=m.split("/");for(;O[0]==="..";)O.shift(),j-=1;h.pathname=O.join("/")}y=j>=0?o[j]:"/"}let g=Uv(h,y),v=m&&m!=="/"&&m.endsWith("/"),E=(x||m===".")&&d.endsWith("/");return!g.pathname.endsWith("/")&&(v||E)&&(g.pathname+="/"),g}var xl=u=>u.join("/").replace(/\/\/+/g,"/"),qv=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Bv=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,Lv=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Yv=class{constructor(u,o,d,r=!1){this.status=u,this.statusText=o||"",this.internal=r,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function Gv(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function kv(u){return u.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Im=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function e0(u,o){let d=u;if(typeof d!="string"||!Ov.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let r=d,h=!1;if(Im)try{let x=new URL(window.location.href),m=d.startsWith("//")?new URL(x.protocol+d):new URL(d),y=vl(m.pathname,o);m.origin===x.origin&&y!=null?d=y+m.search+m.hash:h=!0}catch{Lt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:h,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var t0=["POST","PUT","PATCH","DELETE"];new Set(t0);var Qv=["GET",...t0];new Set(Qv);var Wa=C.createContext(null);Wa.displayName="DataRouter";var Ai=C.createContext(null);Ai.displayName="DataRouterState";var Xv=C.createContext(!1),l0=C.createContext({isTransitioning:!1});l0.displayName="ViewTransition";var Vv=C.createContext(new Map);Vv.displayName="Fetchers";var Zv=C.createContext(null);Zv.displayName="Await";var Rt=C.createContext(null);Rt.displayName="Navigation";var In=C.createContext(null);In.displayName="Location";var Jt=C.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var vr=C.createContext(null);vr.displayName="RouteError";var a0="REACT_ROUTER_ERROR",Kv="REDIRECT",$v="ROUTE_ERROR_RESPONSE";function Jv(u){if(u.startsWith(`${a0}:${Kv}:{`))try{let o=JSON.parse(u.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function Wv(u){if(u.startsWith(`${a0}:${$v}:{`))try{let o=JSON.parse(u.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Yv(o.status,o.statusText,o.data)}catch{}}function Fv(u,{relative:o}={}){Be(Fa(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:r}=C.useContext(Rt),{hash:h,pathname:x,search:m}=es(u,{relative:o}),y=x;return d!=="/"&&(y=x==="/"?d:xl([d,x])),r.createHref({pathname:y,search:m,hash:h})}function Fa(){return C.useContext(In)!=null}function Ql(){return Be(Fa(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(In).location}var n0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s0(u){C.useContext(Rt).static||C.useLayoutEffect(u)}function gr(){let{isDataRoute:u}=C.useContext(Jt);return u?og():Pv()}function Pv(){Be(Fa(),"useNavigate() may be used only in the context of a <Router> component.");let u=C.useContext(Wa),{basename:o,navigator:d}=C.useContext(Rt),{matches:r}=C.useContext(Jt),{pathname:h}=Ql(),x=JSON.stringify(hr(r)),m=C.useRef(!1);return s0(()=>{m.current=!0}),C.useCallback((g,v={})=>{if(Lt(m.current,n0),!m.current)return;if(typeof g=="number"){d.go(g);return}let E=xr(g,JSON.parse(x),h,v.relative==="path");u==null&&o!=="/"&&(E.pathname=E.pathname==="/"?o:xl([o,E.pathname])),(v.replace?d.replace:d.push)(E,v.state,v)},[o,d,x,h,u])}C.createContext(null);function es(u,{relative:o}={}){let{matches:d}=C.useContext(Jt),{pathname:r}=Ql(),h=JSON.stringify(hr(d));return C.useMemo(()=>xr(u,JSON.parse(h),r,o==="path"),[u,h,r,o])}function Iv(u,o){return i0(u,o)}function i0(u,o,d,r,h){var k;Be(Fa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:x}=C.useContext(Rt),{matches:m}=C.useContext(Jt),y=m[m.length-1],g=y?y.params:{},v=y?y.pathname:"/",E=y?y.pathnameBase:"/",j=y&&y.route;{let G=j&&j.path||"";c0(v,!j||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${G}">) 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="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let O=Ql(),Q;if(o){let G=typeof o=="string"?da(o):o;Be(E==="/"||((k=G.pathname)==null?void 0:k.startsWith(E)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${E}" but pathname "${G.pathname}" was given in the \`location\` prop.`),Q=G}else Q=O;let H=Q.pathname||"/",p=H;if(E!=="/"){let G=E.replace(/^\//,"").split("/");p="/"+H.replace(/^\//,"").split("/").slice(G.length).join("/")}let q=Wm(u,{pathname:p});Lt(j||q!=null,`No routes matched location "${Q.pathname}${Q.search}${Q.hash}" `),Lt(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${Q.pathname}${Q.search}${Q.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 A=ng(q&&q.map(G=>Object.assign({},G,{params:Object.assign({},g,G.params),pathname:xl([E,x.encodeLocation?x.encodeLocation(G.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?E:xl([E,x.encodeLocation?x.encodeLocation(G.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),m,d,r,h);return o&&A?C.createElement(In.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...Q},navigationType:"POP"}},A):A}function eg(){let u=rg(),o=Gv(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),d=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},x={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",u),m=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:x},"ErrorBoundary")," or"," ",C.createElement("code",{style:x},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},o),d?C.createElement("pre",{style:h},d):null,m)}var tg=C.createElement(eg,null),u0=class extends C.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,o){return o.location!==u.location||o.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:o.error,location:o.location,revalidation:u.revalidation||o.revalidation}}componentDidCatch(u,o){this.props.onError?this.props.onError(u,o):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const d=Wv(u.digest);d&&(u=d)}let o=u!==void 0?C.createElement(Jt.Provider,{value:this.props.routeContext},C.createElement(vr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?C.createElement(lg,{error:u},o):o}};u0.contextType=Xv;var sr=new WeakMap;function lg({children:u,error:o}){let{basename:d}=C.useContext(Rt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=Jv(o.digest);if(r){let h=sr.get(o);if(h)throw h;let x=e0(r.location,d);if(Im&&!sr.get(o))if(x.isExternal||r.reloadDocument)window.location.href=x.absoluteURL||x.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(x.to,{replace:r.replace}));throw sr.set(o,m),m}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${x.absoluteURL||x.to}`})}}return u}function ag({routeContext:u,match:o,children:d}){let r=C.useContext(Wa);return r&&r.static&&r.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=o.route.id),C.createElement(Jt.Provider,{value:u},d)}function ng(u,o=[],d=null,r=null,h=null){if(u==null){if(!d)return null;if(d.errors)u=d.matches;else if(o.length===0&&!d.initialized&&d.matches.length>0)u=d.matches;else return null}let x=u,m=d==null?void 0:d.errors;if(m!=null){let E=x.findIndex(j=>j.route.id&&(m==null?void 0:m[j.route.id])!==void 0);Be(E>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),x=x.slice(0,Math.min(x.length,E+1))}let y=!1,g=-1;if(d)for(let E=0;E<x.length;E++){let j=x[E];if((j.route.HydrateFallback||j.route.hydrateFallbackElement)&&(g=E),j.route.id){let{loaderData:O,errors:Q}=d,H=j.route.loader&&!O.hasOwnProperty(j.route.id)&&(!Q||Q[j.route.id]===void 0);if(j.route.lazy||H){y=!0,g>=0?x=x.slice(0,g+1):x=[x[0]];break}}}let v=d&&r?(E,j)=>{var O,Q;r(E,{location:d.location,params:((Q=(O=d.matches)==null?void 0:O[0])==null?void 0:Q.params)??{},unstable_pattern:kv(d.matches),errorInfo:j})}:void 0;return x.reduceRight((E,j,O)=>{let Q,H=!1,p=null,q=null;d&&(Q=m&&j.route.id?m[j.route.id]:void 0,p=j.route.errorElement||tg,y&&(g<0&&O===0?(c0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,q=null):g===O&&(H=!0,q=j.route.hydrateFallbackElement||null)));let A=o.concat(x.slice(0,O+1)),k=()=>{let G;return Q?G=p:H?G=q:j.route.Component?G=C.createElement(j.route.Component,null):j.route.element?G=j.route.element:G=E,C.createElement(ag,{match:j,routeContext:{outlet:E,matches:A,isDataRoute:d!=null},children:G})};return d&&(j.route.ErrorBoundary||j.route.errorElement||O===0)?C.createElement(u0,{location:d.location,revalidation:d.revalidation,component:p,error:Q,children:k(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:v}):k()},null)}function pr(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sg(u){let o=C.useContext(Wa);return Be(o,pr(u)),o}function ig(u){let o=C.useContext(Ai);return Be(o,pr(u)),o}function ug(u){let o=C.useContext(Jt);return Be(o,pr(u)),o}function br(u){let o=ug(u),d=o.matches[o.matches.length-1];return Be(d.route.id,`${u} can only be used on routes that contain a unique "id"`),d.route.id}function cg(){return br("useRouteId")}function rg(){var r;let u=C.useContext(vr),o=ig("useRouteError"),d=br("useRouteError");return u!==void 0?u:(r=o.errors)==null?void 0:r[d]}function og(){let{router:u}=sg("useNavigate"),o=br("useNavigate"),d=C.useRef(!1);return s0(()=>{d.current=!0}),C.useCallback(async(h,x={})=>{Lt(d.current,n0),d.current&&(typeof h=="number"?await u.navigate(h):await u.navigate(h,{fromRouteId:o,...x}))},[u,o])}var Ym={};function c0(u,o,d){!o&&!Ym[u]&&(Ym[u]=!0,Lt(!1,d))}C.memo(dg);function dg({routes:u,future:o,state:d,onError:r}){return i0(u,void 0,d,r,o)}function fg({to:u,replace:o,state:d,relative:r}){Be(Fa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:h}=C.useContext(Rt);Lt(!h,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:x}=C.useContext(Jt),{pathname:m}=Ql(),y=gr(),g=xr(u,hr(x),m,r==="path"),v=JSON.stringify(g);return C.useEffect(()=>{y(JSON.parse(v),{replace:o,state:d,relative:r})},[y,v,r,o,d]),null}function hl(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 mg({basename:u="/",children:o=null,location:d,navigationType:r="POP",navigator:h,static:x=!1,unstable_useTransitions:m}){Be(!Fa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=u.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:y,navigator:h,static:x,unstable_useTransitions:m,future:{}}),[y,h,x,m]);typeof d=="string"&&(d=da(d));let{pathname:v="/",search:E="",hash:j="",state:O=null,key:Q="default"}=d,H=C.useMemo(()=>{let p=vl(v,y);return p==null?null:{location:{pathname:p,search:E,hash:j,state:O,key:Q},navigationType:r}},[y,v,E,j,O,Q,r]);return Lt(H!=null,`<Router basename="${y}"> is not able to match the URL "${v}${E}${j}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:C.createElement(Rt.Provider,{value:g},C.createElement(In.Provider,{children:o,value:H}))}function hg({children:u,location:o}){return Iv(or(u),o)}function or(u,o=[]){let d=[];return C.Children.forEach(u,(r,h)=>{if(!C.isValidElement(r))return;let x=[...o,h];if(r.type===C.Fragment){d.push.apply(d,or(r.props.children,x));return}Be(r.type===hl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||x.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=or(r.props.children,x)),d.push(m)}),d}var Ei="get",wi="application/x-www-form-urlencoded";function zi(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function xg(u){return zi(u)&&u.tagName.toLowerCase()==="button"}function vg(u){return zi(u)&&u.tagName.toLowerCase()==="form"}function gg(u){return zi(u)&&u.tagName.toLowerCase()==="input"}function pg(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function bg(u,o){return u.button===0&&(!o||o==="_self")&&!pg(u)}var Si=null;function yg(){if(Si===null)try{new FormData(document.createElement("form"),0),Si=!1}catch{Si=!0}return Si}var jg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ir(u){return u!=null&&!jg.has(u)?(Lt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wi}"`),null):u}function Ng(u,o){let d,r,h,x,m;if(vg(u)){let y=u.getAttribute("action");r=y?vl(y,o):null,d=u.getAttribute("method")||Ei,h=ir(u.getAttribute("enctype"))||wi,x=new FormData(u)}else if(xg(u)||gg(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 g=u.getAttribute("formaction")||y.getAttribute("action");if(r=g?vl(g,o):null,d=u.getAttribute("formmethod")||y.getAttribute("method")||Ei,h=ir(u.getAttribute("formenctype"))||ir(y.getAttribute("enctype"))||wi,x=new FormData(y,u),!yg()){let{name:v,type:E,value:j}=u;if(E==="image"){let O=v?`${v}.`:"";x.append(`${O}x`,"0"),x.append(`${O}y`,"0")}else v&&x.append(v,j)}}else{if(zi(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=Ei,r=null,h=wi,m=u}return x&&h==="text/plain"&&(m=x,x=void 0),{action:r,method:d.toLowerCase(),encType:h,formData:x,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function yr(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Sg(u,o,d,r){let h=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return d?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${r}`:h.pathname=`${h.pathname}.${r}`:h.pathname==="/"?h.pathname=`_root.${r}`:o&&vl(h.pathname,o)==="/"?h.pathname=`${o.replace(/\/$/,"")}/_root.${r}`:h.pathname=`${h.pathname.replace(/\/$/,"")}.${r}`,h}async function Eg(u,o){if(u.id in o)return o[u.id];try{let d=await import(u.module);return o[u.id]=d,d}catch(d){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function wg(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 Cg(u,o,d){let r=await Promise.all(u.map(async h=>{let x=o.routes[h.route.id];if(x){let m=await Eg(x,d);return m.links?m.links():[]}return[]}));return _g(r.flat(1).filter(wg).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function Gm(u,o,d,r,h,x){let m=(g,v)=>d[v]?g.route.id!==d[v].route.id:!0,y=(g,v)=>{var E;return d[v].pathname!==g.pathname||((E=d[v].route.path)==null?void 0:E.endsWith("*"))&&d[v].params["*"]!==g.params["*"]};return x==="assets"?o.filter((g,v)=>m(g,v)||y(g,v)):x==="data"?o.filter((g,v)=>{var j;let E=r.routes[g.route.id];if(!E||!E.hasLoader)return!1;if(m(g,v)||y(g,v))return!0;if(g.route.shouldRevalidate){let O=g.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((j=d[0])==null?void 0:j.params)||{},nextUrl:new URL(u,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof O=="boolean")return O}return!0}):[]}function Rg(u,o,{includeHydrateFallback:d}={}){return Tg(u.map(r=>{let h=o.routes[r.route.id];if(!h)return[];let x=[h.module];return h.clientActionModule&&(x=x.concat(h.clientActionModule)),h.clientLoaderModule&&(x=x.concat(h.clientLoaderModule)),d&&h.hydrateFallbackModule&&(x=x.concat(h.hydrateFallbackModule)),h.imports&&(x=x.concat(h.imports)),x}).flat(1))}function Tg(u){return[...new Set(u)]}function Mg(u){let o={},d=Object.keys(u).sort();for(let r of d)o[r]=u[r];return o}function _g(u,o){let d=new Set;return new Set(o),u.reduce((r,h)=>{let x=JSON.stringify(Mg(h));return d.has(x)||(d.add(x),r.push({key:x,link:h})),r},[])}function r0(){let u=C.useContext(Wa);return yr(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function Ag(){let u=C.useContext(Ai);return yr(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var jr=C.createContext(void 0);jr.displayName="FrameworkContext";function o0(){let u=C.useContext(jr);return yr(u,"You must render this element inside a <HydratedRouter> element"),u}function zg(u,o){let d=C.useContext(jr),[r,h]=C.useState(!1),[x,m]=C.useState(!1),{onFocus:y,onBlur:g,onMouseEnter:v,onMouseLeave:E,onTouchStart:j}=o,O=C.useRef(null);C.useEffect(()=>{if(u==="render"&&m(!0),u==="viewport"){let p=A=>{A.forEach(k=>{m(k.isIntersecting)})},q=new IntersectionObserver(p,{threshold:.5});return O.current&&q.observe(O.current),()=>{q.disconnect()}}},[u]),C.useEffect(()=>{if(r){let p=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(p)}}},[r]);let Q=()=>{h(!0)},H=()=>{h(!1),m(!1)};return d?u!=="intent"?[x,O,{}]:[x,O,{onFocus:$n(y,Q),onBlur:$n(g,H),onMouseEnter:$n(v,Q),onMouseLeave:$n(E,H),onTouchStart:$n(j,Q)}]:[!1,O,{}]}function $n(u,o){return d=>{u&&u(d),d.defaultPrevented||o(d)}}function Dg({page:u,...o}){let{router:d}=r0(),r=C.useMemo(()=>Wm(d.routes,u,d.basename),[d.routes,u,d.basename]);return r?C.createElement(Ug,{page:u,matches:r,...o}):null}function Og(u){let{manifest:o,routeModules:d}=o0(),[r,h]=C.useState([]);return C.useEffect(()=>{let x=!1;return Cg(u,o,d).then(m=>{x||h(m)}),()=>{x=!0}},[u,o,d]),r}function Ug({page:u,matches:o,...d}){let r=Ql(),{future:h,manifest:x,routeModules:m}=o0(),{basename:y}=r0(),{loaderData:g,matches:v}=Ag(),E=C.useMemo(()=>Gm(u,o,v,x,r,"data"),[u,o,v,x,r]),j=C.useMemo(()=>Gm(u,o,v,x,r,"assets"),[u,o,v,x,r]),O=C.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let p=new Set,q=!1;if(o.forEach(k=>{var le;let G=x.routes[k.route.id];!G||!G.hasLoader||(!E.some(re=>re.route.id===k.route.id)&&k.route.id in g&&((le=m[k.route.id])!=null&&le.shouldRevalidate)||G.hasClientLoader?q=!0:p.add(k.route.id))}),p.size===0)return[];let A=Sg(u,y,h.unstable_trailingSlashAwareDataRequests,"data");return q&&p.size>0&&A.searchParams.set("_routes",o.filter(k=>p.has(k.route.id)).map(k=>k.route.id).join(",")),[A.pathname+A.search]},[y,h.unstable_trailingSlashAwareDataRequests,g,r,x,E,o,u,m]),Q=C.useMemo(()=>Rg(j,x),[j,x]),H=Og(j);return C.createElement(C.Fragment,null,O.map(p=>C.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...d})),Q.map(p=>C.createElement("link",{key:p,rel:"modulepreload",href:p,...d})),H.map(({key:p,link:q})=>C.createElement("link",{key:p,nonce:d.nonce,...q,crossOrigin:q.crossOrigin??d.crossOrigin})))}function Hg(...u){return o=>{u.forEach(d=>{typeof d=="function"?d(o):d!=null&&(d.current=o)})}}var qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qg&&(window.__reactRouterVersion="7.13.0")}catch{}function Bg({basename:u,children:o,unstable_useTransitions:d,window:r}){let h=C.useRef();h.current==null&&(h.current=gv({window:r,v5Compat:!0}));let x=h.current,[m,y]=C.useState({action:x.action,location:x.location}),g=C.useCallback(v=>{d===!1?y(v):C.startTransition(()=>y(v))},[d]);return C.useLayoutEffect(()=>x.listen(g),[x,g]),C.createElement(mg,{basename:u,children:o,location:m.location,navigationType:m.action,navigator:x,unstable_useTransitions:d})}var d0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f0=C.forwardRef(function({onClick:o,discover:d="render",prefetch:r="none",relative:h,reloadDocument:x,replace:m,state:y,target:g,to:v,preventScrollReset:E,viewTransition:j,unstable_defaultShouldRevalidate:O,...Q},H){let{basename:p,unstable_useTransitions:q}=C.useContext(Rt),A=typeof v=="string"&&d0.test(v),k=e0(v,p);v=k.to;let G=Fv(v,{relative:h}),[le,re,R]=zg(r,Q),X=Gg(v,{replace:m,state:y,target:g,preventScrollReset:E,relative:h,viewTransition:j,unstable_defaultShouldRevalidate:O,unstable_useTransitions:q});function J(Z){o&&o(Z),Z.defaultPrevented||X(Z)}let ne=C.createElement("a",{...Q,...R,href:k.absoluteURL||G,onClick:k.isExternal||x?o:J,ref:Hg(H,re),target:g,"data-discover":!A&&d==="render"?"true":void 0});return le&&!A?C.createElement(C.Fragment,null,ne,C.createElement(Dg,{page:G})):ne});f0.displayName="Link";var m0=C.forwardRef(function({"aria-current":o="page",caseSensitive:d=!1,className:r="",end:h=!1,style:x,to:m,viewTransition:y,children:g,...v},E){let j=es(m,{relative:v.relative}),O=Ql(),Q=C.useContext(Ai),{navigator:H,basename:p}=C.useContext(Rt),q=Q!=null&&Zg(j)&&y===!0,A=H.encodeLocation?H.encodeLocation(j).pathname:j.pathname,k=O.pathname,G=Q&&Q.navigation&&Q.navigation.location?Q.navigation.location.pathname:null;d||(k=k.toLowerCase(),G=G?G.toLowerCase():null,A=A.toLowerCase()),G&&p&&(G=vl(G,p)||G);const le=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let re=k===A||!h&&k.startsWith(A)&&k.charAt(le)==="/",R=G!=null&&(G===A||!h&&G.startsWith(A)&&G.charAt(A.length)==="/"),X={isActive:re,isPending:R,isTransitioning:q},J=re?o:void 0,ne;typeof r=="function"?ne=r(X):ne=[r,re?"active":null,R?"pending":null,q?"transitioning":null].filter(Boolean).join(" ");let Z=typeof x=="function"?x(X):x;return C.createElement(f0,{...v,"aria-current":J,className:ne,ref:E,style:Z,to:m,viewTransition:y},typeof g=="function"?g(X):g)});m0.displayName="NavLink";var Lg=C.forwardRef(({discover:u="render",fetcherKey:o,navigate:d,reloadDocument:r,replace:h,state:x,method:m=Ei,action:y,onSubmit:g,relative:v,preventScrollReset:E,viewTransition:j,unstable_defaultShouldRevalidate:O,...Q},H)=>{let{unstable_useTransitions:p}=C.useContext(Rt),q=Xg(),A=Vg(y,{relative:v}),k=m.toLowerCase()==="get"?"get":"post",G=typeof y=="string"&&d0.test(y),le=re=>{if(g&&g(re),re.defaultPrevented)return;re.preventDefault();let R=re.nativeEvent.submitter,X=(R==null?void 0:R.getAttribute("formmethod"))||m,J=()=>q(R||re.currentTarget,{fetcherKey:o,method:X,navigate:d,replace:h,state:x,relative:v,preventScrollReset:E,viewTransition:j,unstable_defaultShouldRevalidate:O});p&&d!==!1?C.startTransition(()=>J()):J()};return C.createElement("form",{ref:H,method:k,action:A,onSubmit:r?g:le,...Q,"data-discover":!G&&u==="render"?"true":void 0})});Lg.displayName="Form";function Yg(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function h0(u){let o=C.useContext(Wa);return Be(o,Yg(u)),o}function Gg(u,{target:o,replace:d,state:r,preventScrollReset:h,relative:x,viewTransition:m,unstable_defaultShouldRevalidate:y,unstable_useTransitions:g}={}){let v=gr(),E=Ql(),j=es(u,{relative:x});return C.useCallback(O=>{if(bg(O,o)){O.preventDefault();let Q=d!==void 0?d:Fn(E)===Fn(j),H=()=>v(u,{replace:Q,state:r,preventScrollReset:h,relative:x,viewTransition:m,unstable_defaultShouldRevalidate:y});g?C.startTransition(()=>H()):H()}},[E,v,j,d,r,o,u,h,x,m,y,g])}var kg=0,Qg=()=>`__${String(++kg)}__`;function Xg(){let{router:u}=h0("useSubmit"),{basename:o}=C.useContext(Rt),d=cg(),r=u.fetch,h=u.navigate;return C.useCallback(async(x,m={})=>{let{action:y,method:g,encType:v,formData:E,body:j}=Ng(x,o);if(m.navigate===!1){let O=m.fetcherKey||Qg();await r(O,d,m.action||y,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:E,body:j,formMethod:m.method||g,formEncType:m.encType||v,flushSync:m.flushSync})}else await h(m.action||y,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:E,body:j,formMethod:m.method||g,formEncType:m.encType||v,replace:m.replace,state:m.state,fromRouteId:d,flushSync:m.flushSync,viewTransition:m.viewTransition})},[r,h,o,d])}function Vg(u,{relative:o}={}){let{basename:d}=C.useContext(Rt),r=C.useContext(Jt);Be(r,"useFormAction must be used inside a RouteContext");let[h]=r.matches.slice(-1),x={...es(u||".",{relative:o})},m=Ql();if(u==null){x.search=m.search;let y=new URLSearchParams(x.search),g=y.getAll("index");if(g.some(E=>E==="")){y.delete("index"),g.filter(j=>j).forEach(j=>y.append("index",j));let E=y.toString();x.search=E?`?${E}`:""}}return(!u||u===".")&&h.route.index&&(x.search=x.search?x.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(x.pathname=x.pathname==="/"?d:xl([d,x.pathname])),Fn(x)}function Zg(u,{relative:o}={}){let d=C.useContext(l0);Be(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=h0("useViewTransitionState"),h=es(u,{relative:o});if(!d.isTransitioning)return!1;let x=vl(d.currentLocation.pathname,r)||d.currentLocation.pathname,m=vl(d.nextLocation.pathname,r)||d.nextLocation.pathname;return Ti(h.pathname,m)!=null||Ti(h.pathname,x)!=null}/**
|
|
61
|
+
* @license lucide-react v0.564.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const x0=(...u)=>u.filter((o,d,r)=>!!o&&o.trim()!==""&&r.indexOf(o)===d).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.564.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const Kg=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 $g=u=>u.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,d,r)=>r?r.toUpperCase():d.toLowerCase());/**
|
|
76
|
+
* @license lucide-react v0.564.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const km=u=>{const o=$g(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 Jg={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 Wg=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 Fg=C.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:d=2,absoluteStrokeWidth:r,className:h="",children:x,iconNode:m,...y},g)=>C.createElement("svg",{ref:g,...Jg,width:o,height:o,stroke:u,strokeWidth:r?Number(d)*24/Number(o):d,className:x0("lucide",h),...!x&&!Wg(y)&&{"aria-hidden":"true"},...y},[...m.map(([v,E])=>C.createElement(v,E)),...Array.isArray(x)?x:[x]]));/**
|
|
96
|
+
* @license lucide-react v0.564.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const ie=(u,o)=>{const d=C.forwardRef(({className:r,...h},x)=>C.createElement(Fg,{ref:x,iconNode:o,className:x0(`lucide-${Kg(km(u))}`,`lucide-${u}`,r),...h}));return d.displayName=km(u),d};/**
|
|
101
|
+
* @license lucide-react v0.564.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Pg=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],v0=ie("activity",Pg);/**
|
|
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 Ig=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],ep=ie("arrow-down",Ig);/**
|
|
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 tp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Qm=ie("arrow-right",tp);/**
|
|
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 lp=[["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"}]],ap=ie("arrow-up-down",lp);/**
|
|
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 np=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],sp=ie("arrow-up",np);/**
|
|
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 ip=[["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"}]],up=ie("bell",ip);/**
|
|
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 cp=[["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"}]],Xm=ie("briefcase",cp);/**
|
|
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 rp=[["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"}]],Mi=ie("calendar",rp);/**
|
|
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 op=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ci=ie("check",op);/**
|
|
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 dp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],fp=ie("chevron-down",dp);/**
|
|
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 mp=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],hp=ie("chevron-left",mp);/**
|
|
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 xp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vp=ie("chevron-right",xp);/**
|
|
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 gp=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],pp=ie("chevrons-up-down",gp);/**
|
|
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 bp=[["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"}]],$t=ie("circle-alert",bp);/**
|
|
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 yp=[["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"}]],Vm=ie("circle-arrow-down",yp);/**
|
|
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 jp=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ts=ie("circle-check-big",jp);/**
|
|
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 Np=[["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"}]],dr=ie("circle-x",Np);/**
|
|
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 Sp=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],g0=ie("clipboard-list",Sp);/**
|
|
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 Ep=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],_i=ie("clock",Ep);/**
|
|
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 wp=[["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"}]],p0=ie("external-link",wp);/**
|
|
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 Cp=[["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"}]],Rp=ie("eye-off",Cp);/**
|
|
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 Tp=[["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"}]],Mp=ie("eye",Tp);/**
|
|
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 _p=[["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"}]],Ap=ie("file-text",_p);/**
|
|
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 zp=[["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"}]],Dp=ie("git-pull-request",zp);/**
|
|
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 Op=[["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"}]],Up=ie("house",Op);/**
|
|
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 Hp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],qp=ie("info",Hp);/**
|
|
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 Bp=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],Lp=ie("kanban",Bp);/**
|
|
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 Yp=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],b0=ie("loader-circle",Yp);/**
|
|
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 Gp=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],y0=ie("map",Gp);/**
|
|
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 kp=[["path",{d:"M5 12h14",key:"1ays0h"}]],Qp=ie("minus",kp);/**
|
|
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 Xp=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],j0=ie("pause",Xp);/**
|
|
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 Vp=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],N0=ie("pen",Vp);/**
|
|
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 Zp=[["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"}]],Di=ie("play",Zp);/**
|
|
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 Kp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ls=ie("plus",Kp);/**
|
|
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 $p=[["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"}]],Jp=ie("rotate-ccw",$p);/**
|
|
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 Wp=[["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"}]],Fp=ie("save",Wp);/**
|
|
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 Pp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],as=ie("search",Pp);/**
|
|
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 Ip=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],S0=ie("settings",Ip);/**
|
|
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 eb=[["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"}]],tb=ie("square-pen",eb);/**
|
|
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 lb=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ab=ie("terminal",lb);/**
|
|
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 nb=[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]],E0=ie("test-tube-diagonal",nb);/**
|
|
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 sb=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],w0=ie("trash-2",sb);/**
|
|
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 ib=[["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"}]],ub=ie("triangle-alert",ib);/**
|
|
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 cb=[["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"}]],rb=ie("wifi",cb);/**
|
|
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 ob=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ns=ie("x",ob),Nr="";let C0=!1,fr=null;function db(u){C0=u}function fb(u){fr=u}function mb(u){return encodeURIComponent(u.replace(/\//g,"~"))}function We(u){return C0&&fr?u.replace("/api/",`/api/projects/${mb(fr)}/`):u}function hb(){return Pe("/api/projects")}async function Pe(u,o){const d=`${Nr}${u}`,r=await fetch(d,{headers:{"Content-Type":"application/json",...o==null?void 0:o.headers},...o});if(!r.ok){const h=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(h.error||`HTTP ${r.status}: ${r.statusText}`)}return r.json()}function R0(){return Pe(We("/api/status"))}function T0(){return Pe(We("/api/prs"))}function xb(u,o){const d=`?lines=${encodeURIComponent(o)}`;return Pe(We(`/api/logs/${encodeURIComponent(u)}${d}`))}function M0(){return Pe(We("/api/config"))}function ra(u){return Pe(We("/api/config"),{method:"PUT",body:JSON.stringify(u)})}function vb(){return Pe(We("/api/doctor"))}function _0(){return Pe(We("/api/schedule-info"))}function gb(){return Pe(We("/api/actions/review"),{method:"POST"})}function Zm(){return Pe(We("/api/actions/install-cron"),{method:"POST"})}function pb(){return Pe(We("/api/actions/uninstall-cron"),{method:"POST"})}function bb(u="all"){return Pe(We("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:u})})}const kl=["Draft","Ready","In Progress","Review","Done"];function A0(){return Pe(We("/api/board/status"))}function yb(u){return Pe(We("/api/board/issues"),{method:"POST",body:JSON.stringify(u)})}function z0(u,o){return Pe(We(`/api/board/issues/${u}/move`),{method:"PATCH",body:JSON.stringify({column:o})})}async function jb(u){const o=`${Nr}${We(`/api/board/issues/${u}`)}`,d=await fetch(o,{headers:{"Content-Type":"application/json"},method:"DELETE"});if(!d.ok){const r=await d.json().catch(()=>({error:"Unknown error"}));throw new Error(r.error||`HTTP ${d.status}: ${d.statusText}`)}}function Nb(){return Pe(We("/api/actions/clear-lock"),{method:"POST"})}function Sb(u,o=[],d){const r=(d==null?void 0:d.enabled)??!0,h=C.useRef(u);h.current=u,C.useEffect(()=>{if(!r)return;const x=`${Nr}${We("/api/status/events")}`,m=new EventSource(x);return m.addEventListener("status_changed",y=>{try{const g=JSON.parse(y.data);h.current(g)}catch{}}),()=>{m.close()}},[r,...o])}function Eb(){return Pe(We("/api/roadmap"))}function wb(){return Pe(We("/api/roadmap/scan"),{method:"POST"})}function D0(u){return Pe(We("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:u})})}function Ct(u,o=[],d){const r=(d==null?void 0:d.enabled)??!0,[h,x]=C.useState(null),[m,y]=C.useState(!0),[g,v]=C.useState(null),E=C.useRef(u);E.current=u;const j=C.useRef(()=>{(async()=>{v(null);try{const Q=await E.current();x(Q)}catch(Q){v(Q instanceof Error?Q:new Error("Unknown error"))}})()});return j.current=j.current.bind(j),C.useEffect(()=>{if(!r)return;let O=!1;return y(!0),v(null),(async()=>{try{const H=await E.current();O||x(H)}catch(H){O||v(H instanceof Error?H:new Error("Unknown error"))}finally{O||y(!1)}})(),()=>{O=!0}},[...o,r]),{data:h,loading:m,error:g,refetch:j.current}}const Km=u=>{let o;const d=new Set,r=(v,E)=>{const j=typeof v=="function"?v(o):v;if(!Object.is(j,o)){const O=o;o=E??(typeof j!="object"||j===null)?j:Object.assign({},o,j),d.forEach(Q=>Q(o,O))}},h=()=>o,y={setState:r,getState:h,getInitialState:()=>g,subscribe:v=>(d.add(v),()=>d.delete(v))},g=o=u(r,h,y);return y},Cb=u=>u?Km(u):Km,Rb=u=>u;function Tb(u,o=Rb){const d=Ge.useSyncExternalStore(u.subscribe,()=>o(u.getState()),()=>o(u.getInitialState()));return Ge.useDebugValue(d),d}const $m=u=>{const o=Cb(u),d=r=>Tb(o,r);return Object.assign(d,o),d},Mb=u=>u?$m(u):$m,_b=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Tt=Mb(u=>({projectName:"Night Watch",setProjectName:o=>u({projectName:o}),toasts:[],addToast:o=>{const d=Math.random().toString(36).substring(7);u(r=>({toasts:[...r.toasts,{...o,id:d}]})),setTimeout(()=>{u(r=>({toasts:r.toasts.filter(h=>h.id!==d)}))},5e3)},removeToast:o=>u(d=>({toasts:d.toasts.filter(r=>r.id!==o)})),globalModeLoading:!0,setGlobalModeLoading:o=>u({globalModeLoading:o}),isGlobalMode:!1,setGlobalMode:o=>{db(o),u({isGlobalMode:o})},projects:[],setProjects:o=>u({projects:o}),selectedProjectId:_b,selectProject:o=>{fb(o),o?localStorage.setItem("nw-selected-project",o):localStorage.removeItem("nw-selected-project"),u(d=>{const r=d.projects.find(h=>h.name===o);return{selectedProjectId:o,...r?{projectName:r.name}:{}}})}})),Ab=()=>{const[u,o]=C.useState(!1),{projectName:d,isGlobalMode:r,projects:h,selectedProjectId:x,selectProject:m,globalModeLoading:y}=Tt(),{data:g}=Ct(T0,[x],{enabled:!y}),v=(g==null?void 0:g.length)??0,E=C.useMemo(()=>[{icon:Up,label:"Dashboard",path:"/"},{icon:Lp,label:"Board",path:"/board"},{icon:Dp,label:"Pull Requests",path:"/prs",badge:v},{icon:y0,label:"Roadmap",path:"/roadmap"},{icon:Mi,label:"Scheduling",path:"/scheduling"},{icon:ab,label:"Logs",path:"/logs"},{icon:S0,label:"Settings",path:"/settings"}],[v]);return s.jsxs("aside",{className:`
|
|
326
|
+
relative flex flex-col transition-all duration-300 ease-[cubic-bezier(0.25,0.1,0.25,1)]
|
|
327
|
+
${u?"w-20":"w-72"} h-screen flex-shrink-0 z-50
|
|
328
|
+
bg-[#030712]/80 backdrop-blur-xl border-r border-white/5
|
|
329
|
+
`,children:[s.jsx("div",{className:`p-6 border-b border-white/5 ${u?"items-center justify-center flex":""}`,children:u?s.jsx("div",{className:"relative group",children:s.jsx("div",{className:"h-10 w-10 bg-indigo-600 rounded-xl flex items-center justify-center text-white font-bold cursor-pointer shadow-lg shadow-indigo-500/20 group-hover:bg-indigo-500 transition-colors bg-gradient-to-br from-indigo-500 to-indigo-700",title:"Switch Project",children:"NW"})}):s.jsxs("div",{className:"relative w-full",children:[s.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?s.jsxs("div",{className:"relative",children:[s.jsx(Xm,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),s.jsx("select",{value:x||"",onChange:j=>m(j.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:h.filter(j=>j.valid).map(j=>s.jsx("option",{value:j.name,children:j.name},j.name))}),s.jsx(pp,{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(Xm,{className:"h-4 w-4 text-indigo-400 mr-3"}),s.jsx("span",{className:"truncate",children:d})]})]})}),s.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:s.jsx("ul",{className:"space-y-1.5 px-4",children:E.map(j=>s.jsx(Ge.Fragment,{children:s.jsx("li",{children:s.jsx(m0,{to:j.path,className:({isActive:O})=>`
|
|
330
|
+
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
331
|
+
${O?"bg-indigo-500/10 text-indigo-300 shadow-[inset_0_1px_0_0_rgba(255,255,255,0.05)]":"text-slate-400 hover:bg-white/5 hover:text-slate-200"}
|
|
332
|
+
${u?"justify-center":""}
|
|
333
|
+
`,children:({isActive:O})=>s.jsxs(s.Fragment,{children:[s.jsx(j.icon,{className:`h-5 w-5 transition-colors ${O?"text-indigo-400 drop-shadow-[0_0_8px_rgba(99,102,241,0.5)]":"text-slate-500 group-hover:text-slate-300"} ${u?"":"mr-3.5"}`}),!u&&s.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:j.label}),j.badge&&(u?s.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):s.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${O?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:j.badge})),O&&!u&&s.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-1 h-6 bg-indigo-500 rounded-r-full shadow-[0_0_10px_rgba(99,102,241,0.4)]"}),u&&s.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:j.label})]})})})},j.path))})}),s.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:s.jsx("button",{onClick:()=>o(!u),className:"p-2 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:u?s.jsx(vp,{className:"h-5 w-5"}):s.jsx(hp,{className:"h-5 w-5"})})})]})},zb=()=>{const{projectName:u}=Tt();return s.jsxs("header",{className:"h-20 flex items-center justify-between px-8 z-40 sticky top-0 bg-[#030712]/80 backdrop-blur-md border-b border-white/5",children:[s.jsxs("div",{className:"flex items-center space-x-6",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),s.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:u})]}),s.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),s.jsxs("div",{className:"flex items-center space-x-2 text-xs font-medium px-3 py-1.5 rounded-full border transition-colors bg-emerald-500/5 text-emerald-400 border-emerald-500/20 shadow-[0_0_10px_-4px_rgba(16,185,129,0.3)]",children:[s.jsx(rb,{className:"h-3.5 w-3.5"}),s.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),s.jsxs("div",{className:"flex items-center space-x-5",children:[s.jsxs("div",{className:"relative hidden md:block group",children:[s.jsx("input",{type:"text",placeholder:"Search ( / )",className:"w-72 pl-10 pr-4 py-2 rounded-lg border border-white/5 bg-white/5 text-sm text-slate-200 focus:outline-none focus:ring-1 focus:ring-indigo-500/50 focus:border-indigo-500/50 transition-all placeholder:text-slate-600 focus:bg-[#0b101b]"}),s.jsx(as,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[s.jsx(up,{className:"h-5 w-5"}),s.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),s.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:s.jsx(S0,{className:"h-5 w-5"})})]}),s.jsx("div",{className:"h-9 w-9 rounded-full bg-gradient-to-tr from-indigo-600 to-purple-600 ring-2 ring-white/10 flex items-center justify-center text-white font-bold text-xs shadow-lg",children:"AD"})]})]})},Db=({toast:u,onDismiss:o})=>{const d={success:s.jsx(ts,{className:"h-5 w-5 text-green-400"}),error:s.jsx($t,{className:"h-5 w-5 text-red-400"}),info:s.jsx(qp,{className:"h-5 w-5 text-blue-400"}),warning:s.jsx(ub,{className:"h-5 w-5 text-amber-400"})},r={success:"border-l-green-500",error:"border-l-red-500",info:"border-l-blue-500",warning:"border-l-amber-500"};return s.jsx("div",{className:`
|
|
334
|
+
pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg
|
|
335
|
+
bg-slate-900 border border-slate-800 border-l-4 ${r[u.type]}
|
|
336
|
+
shadow-lg ring-1 ring-black ring-opacity-5 transition-all
|
|
337
|
+
animate-in slide-in-from-right-full fade-in duration-300
|
|
338
|
+
`,children:s.jsx("div",{className:"p-4",children:s.jsxs("div",{className:"flex items-start",children:[s.jsx("div",{className:"flex-shrink-0",children:d[u.type]}),s.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:u.title}),u.message&&s.jsx("p",{className:"mt-1 text-sm text-slate-400",children:u.message})]}),s.jsx("div",{className:"ml-4 flex flex-shrink-0",children:s.jsxs("button",{type:"button",className:"inline-flex rounded-md text-slate-400 hover:text-slate-200 focus:outline-none focus:ring-2 focus:ring-indigo-500",onClick:()=>o(u.id),children:[s.jsx("span",{className:"sr-only",children:"Close"}),s.jsx(ns,{className:"h-5 w-5"})]})})]})})})},Ob=()=>{const{toasts:u,removeToast:o}=Tt();return s.jsx("div",{"aria-live":"assertive",className:"pointer-events-none fixed inset-0 flex flex-col items-end px-4 py-6 sm:items-end sm:p-6 z-[100] gap-4",children:u.map(d=>s.jsx(Db,{toast:d,onDismiss:o},d.id))})};function Ub(){const{setGlobalMode:u,setGlobalModeLoading:o,setProjects:d,selectProject:r,selectedProjectId:h}=Tt();C.useEffect(()=>{o(!0),hb().then(x=>{u(!0),d(x);const m=x.filter(y=>y.valid);h&&m.some(y=>y.name===h)?r(h):m.length>0&&r(m[0].name)}).catch(()=>{u(!1)}).finally(()=>{o(!1)})},[])}const ve=({children:u,className:o="",onClick:d})=>s.jsxs("div",{className:`
|
|
339
|
+
relative bg-[#0b101b] rounded-xl border border-white/5
|
|
340
|
+
shadow-[0_4px_20px_-4px_rgba(0,0,0,0.5)]
|
|
341
|
+
transition-all duration-300
|
|
342
|
+
${d?"cursor-pointer hover:border-indigo-500/30 hover:shadow-indigo-500/5 group":""}
|
|
343
|
+
${o}
|
|
344
|
+
`,onClick:d,children:[d&&s.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),s.jsx("div",{className:"relative z-10",children:u})]}),be=({children:u,variant:o="primary",size:d="md",loading:r=!1,className:h="",disabled:x,...m})=>{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]",g={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} ${g[o]} ${v[d]} ${h}`,disabled:x||r,...m,children:[r&&s.jsx(b0,{className:"mr-2 h-4 w-4 animate-spin"}),u]})},Ri=({children:u,variant:o="default",className:d=""})=>{const r={default:"bg-indigo-500/10 text-indigo-400 ring-1 ring-inset ring-indigo-500/20",success:"bg-emerald-500/10 text-emerald-400 ring-1 ring-inset ring-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 ring-1 ring-inset ring-amber-500/20",error:"bg-red-500/10 text-red-400 ring-1 ring-inset ring-red-500/20",neutral:"bg-slate-500/10 text-slate-400 ring-1 ring-inset ring-slate-500/20",info:"bg-blue-500/10 text-blue-400 ring-1 ring-inset ring-blue-500/20"};return s.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${d}`,children:u})},O0={Draft:{dot:"bg-slate-500",badge:"neutral"},Ready:{dot:"bg-green-500",badge:"success"},"In Progress":{dot:"bg-blue-500",badge:"info"},Review:{dot:"bg-amber-500",badge:"warning"},Done:{dot:"bg-slate-600",badge:"neutral"}},Hb=({defaultColumn:u,onClose:o,onCreated:d})=>{const[r,h]=C.useState(""),[x,m]=C.useState(""),[y,g]=C.useState(u),[v,E]=C.useState(!1),[j,O]=C.useState(null),{addToast:Q}=Tt(),H=async p=>{if(p.preventDefault(),!!r.trim()){E(!0),O(null);try{await yb({title:r.trim(),body:x,column:y}),Q({title:"Issue created",message:`"${r.trim()}" added to ${y}`,type:"success"}),d(),o()}catch(q){O(q instanceof Error?q.message:"Failed to create issue")}finally{E(!1)}}};return s.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[s.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:o}),s.jsxs("div",{className:"relative bg-[#0f172a] border border-white/10 rounded-2xl shadow-2xl w-full max-w-lg",children:[s.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[s.jsx("h2",{className:"text-lg font-semibold text-slate-100",children:"New Board Issue"}),s.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:s.jsx(ns,{className:"h-5 w-5"})})]}),s.jsxs("form",{onSubmit: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:p=>h(p.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=>g(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:kl.map(p=>s.jsx("option",{value:p,children:p},p))})]}),s.jsxs("div",{children:[s.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Body (optional)"}),s.jsx("textarea",{value:x,onChange:p=>m(p.target.value),placeholder:"Issue description...",rows:5,className:"w-full bg-slate-950/50 border border-white/10 text-slate-200 rounded-lg px-3 py-2.5 text-sm placeholder-slate-600 focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20 resize-none font-mono"})]}),j&&s.jsx("p",{className:"text-sm text-red-400",children:j}),s.jsxs("div",{className:"flex justify-end space-x-3 pt-2",children:[s.jsx(be,{variant:"ghost",type:"button",onClick:o,children:"Cancel"}),s.jsx(be,{type:"submit",disabled:v||!r.trim(),children:v?"Creating...":"Create Issue"})]})]})]})]})},qb=({issue:u,onClose:o,onMoved:d,onClosed:r})=>{const[h,x]=C.useState(!1),[m,y]=C.useState(!1),{addToast:g}=Tt(),v=async O=>{if(O!==u.column){x(!0);try{await z0(u.number,O),g({title:"Issue moved",message:`#${u.number} moved to ${O}`,type:"success"}),d(),o()}catch(Q){g({title:"Move failed",message:Q instanceof Error?Q.message:"Failed to move issue",type:"error"})}finally{x(!1)}}},E=async()=>{if(confirm(`Close issue #${u.number}: "${u.title}"?`)){y(!0);try{await jb(u.number),g({title:"Issue closed",message:`#${u.number} closed on GitHub`,type:"success"}),r(),o()}catch(O){g({title:"Close failed",message:O instanceof Error?O.message:"Failed to close issue",type:"error"})}finally{y(!1)}}},j=u.column??"Draft";return s.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[s.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:o}),s.jsxs("div",{className:"relative bg-[#0a0f1e] border-l border-white/10 w-full max-w-xl flex flex-col shadow-2xl overflow-hidden",children:[s.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-white/5 flex-shrink-0",children:[s.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[s.jsxs("span",{className:"text-slate-500 text-sm font-mono",children:["#",u.number]}),s.jsx(Ri,{variant:O0[j].badge,children:j})]}),s.jsx("h2",{className:"text-lg font-semibold text-slate-100 leading-snug",children:u.title}),u.assignees.length>0&&s.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Assigned to: ",u.assignees.join(", ")]})]}),s.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors flex-shrink-0",children:s.jsx(ns,{className:"h-5 w-5"})})]}),s.jsxs("div",{className:"flex items-center space-x-3 px-6 py-3 border-b border-white/5 flex-shrink-0 flex-wrap gap-y-2",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:"text-xs text-slate-500",children:"Move to:"}),kl.filter(O=>O!==u.column).map(O=>s.jsx("button",{onClick:()=>v(O),disabled:h,className:"text-xs px-2.5 py-1 rounded-md bg-slate-800 text-slate-300 hover:bg-slate-700 hover:text-slate-100 border border-slate-700 transition-colors disabled:opacity-50",children:O},O))]}),s.jsxs("div",{className:"flex items-center space-x-2 ml-auto",children:[u.url&&!u.url.startsWith("local://")&&s.jsxs("a",{href:u.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center space-x-1 text-xs text-indigo-400 hover:text-indigo-300 transition-colors",children:[s.jsx(p0,{className:"h-3.5 w-3.5"}),s.jsx("span",{children:"GitHub"})]}),s.jsx("button",{onClick:E,disabled:m,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:m?"Closing...":"Close Issue"})]})]}),s.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:u.body?s.jsx("pre",{className:"text-sm text-slate-300 whitespace-pre-wrap font-mono leading-relaxed break-words",children:u.body}):s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No description provided."})})]})]})},Bb=({issue:u,onClick:o,onDragStart:d})=>{const[r,h]=C.useState(!1);return s.jsx("div",{className:"relative",draggable:!0,onDragStart:x=>{x.dataTransfer.setData("issueNumber",String(u.number)),x.dataTransfer.effectAllowed="move",h(!0),d(u)},onDragEnd:()=>h(!1),children:s.jsxs(ve,{className:`p-3 cursor-grab hover:border-indigo-500/30 transition-all select-none ${r?"opacity-30":""}`,onClick:o,children:[s.jsxs("span",{className:"text-[10px] font-mono text-slate-600",children:["#",u.number]}),s.jsx("p",{className:"text-xs font-medium text-slate-200 line-clamp-2 mt-0.5 leading-snug",children:u.title}),u.assignees.length>0&&s.jsx("p",{className:"text-[10px] text-slate-500 mt-1.5 truncate",children:u.assignees.join(", ")})]})})},Lb=({name:u,issues:o,draggingIssue:d,onIssueClick:r,onNewIssue:h,onMoveIssue:x,onDragStart:m})=>{const y=O0[u],[g,v]=C.useState(!1),E=d!==null&&d.column!==u;return s.jsxs("div",{className:`flex flex-col min-w-[220px] max-w-[220px] h-full rounded-xl transition-colors ${g&&E?"bg-indigo-500/5 ring-1 ring-indigo-500/30":""}`,onDragOver:j=>{E&&(j.preventDefault(),j.dataTransfer.dropEffect="move",v(!0))},onDragLeave:()=>v(!1),onDrop:j=>{j.preventDefault(),v(!1),d&&d.column!==u&&x(d,u)},children:[s.jsxs("div",{className:"flex items-center justify-between mb-3 flex-shrink-0",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${y.dot}`}),s.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider",children:u}),s.jsx("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-800 rounded-full px-1.5 py-0.5",children:o.length})]}),s.jsx("button",{onClick:()=>h(u),className:"p-1 rounded-md hover:bg-white/5 text-slate-600 hover:text-slate-400 transition-colors",title:`Add issue to ${u}`,children:s.jsx(ls,{className:"h-3.5 w-3.5"})})]}),s.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide min-h-0",children:o.length===0?s.jsx("div",{className:`border-2 border-dashed rounded-xl h-24 flex items-center justify-center transition-colors ${g&&E?"border-indigo-500/40":"border-slate-800"}`,children:s.jsx("span",{className:"text-xs text-slate-700",children:g&&E?"Drop here":"No issues"})}):o.map(j=>s.jsx(Bb,{issue:j,onClick:()=>r(j),onDragStart:m},j.id))})]})},Yb=()=>{const[u,o]=C.useState(null),[d,r]=C.useState(null),[h,x]=C.useState(null),[m,y]=C.useState(null),g=C.useRef(!1),{addToast:v,selectedProjectId:E,globalModeLoading:j}=Tt(),{data:O,loading:Q,error:H,refetch:p}=Ct(A0,[E],{enabled:!j});C.useEffect(()=>{const k=setInterval(()=>{g.current||p()},3e4);return()=>clearInterval(k)},[p]);const q=C.useCallback(async(k,G)=>{x(null);const le=m??(O==null?void 0:O.columns);if(!le)return;const re=le,R={};for(const J of kl)R[J]=(le[J]??[]).filter(ne=>ne.number!==k.number);const X={...k,column:G};R[G]=[...R[G]??[],X],y(R),o(J=>(J==null?void 0:J.number)===k.number?X:J),g.current=!0;try{await z0(k.number,G),p(),setTimeout(()=>{y(null),g.current=!1},800)}catch(J){y(re),o(ne=>(ne==null?void 0:ne.number)===k.number?k:ne),g.current=!1,v({title:"Move failed",message:J instanceof Error?J.message:"Failed to move issue",type:"error"})}},[v,p,m,O]);if(j||Q)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading board..."})});if(H&&H.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(H)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:H.message}),s.jsx(be,{onClick:()=>p(),children:"Retry"})]});if(!O)return null;const A=m??O.columns;return s.jsxs("div",{className:"flex flex-col h-full",children:[s.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Board"}),s.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[kl.reduce((k,G)=>{var le;return k+(((le=A[G])==null?void 0:le.length)??0)},0)," issues across ",kl.length," columns"]})]}),s.jsxs(be,{onClick:()=>r("Ready"),children:[s.jsx(ls,{className:"h-4 w-4 mr-2"}),"New Issue"]})]}),s.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden",onDragEnd:()=>x(null),children:s.jsx("div",{className:"flex space-x-4 h-full pb-4",style:{minWidth:`${kl.length*236}px`},children:kl.map(k=>s.jsx(Lb,{name:k,issues:A[k]??[],draggingIssue:h,onIssueClick:o,onNewIssue:r,onMoveIssue:q,onDragStart:x},k))})}),u&&s.jsx(qb,{issue:u,onClose:()=>o(null),onMoved:()=>p(),onClosed:()=>p()}),d&&s.jsx(Hb,{defaultColumn:d,onClose:()=>r(null),onCreated:()=>p()})]})},Gb={Draft:"text-slate-400 bg-slate-500/10 ring-slate-500/20",Ready:"text-green-400 bg-green-500/10 ring-green-500/20","In Progress":"text-blue-400 bg-blue-500/10 ring-blue-500/20",Review:"text-amber-400 bg-amber-500/10 ring-amber-500/20",Done:"text-slate-500 bg-slate-600/10 ring-slate-600/20"},kb=()=>{var Ve,I,z,V,ee,pe,ye,N,Y,K,W;const u=gr(),[o,d]=C.useState(null),[r,h]=C.useState(!1),[x,m]=C.useState(null),{setProjectName:y,addToast:g,selectedProjectId:v,globalModeLoading:E}=Tt(),{data:j,loading:O,error:Q,refetch:H}=Ct(R0,[v],{enabled:!E}),{data:p}=Ct(_0,[v],{enabled:!E}),{data:q}=Ct(()=>A0().catch(()=>null),[v],{enabled:!E});Sb($=>{m($)},[v,E],{enabled:!E});const A=x||j;if(Ge.useEffect(()=>{A!=null&&A.projectName&&y(A.projectName)},[A,y]),C.useEffect(()=>{const $=setInterval(()=>{H()},3e4);return()=>clearInterval($)},[H]),C.useEffect(()=>{const $=()=>H();return window.addEventListener("focus",$),()=>window.removeEventListener("focus",$)},[H]),E||O)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(Q)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx($t,{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:Q.message}),s.jsx(be,{onClick:()=>H(),children:"Retry"})]});if(!A)return null;const k=A.prs.length,G=A.prs.filter($=>$.reviewScore!==null&&$.reviewScore<70).length,le=((Ve=q==null?void 0:q.columns.Ready)==null?void 0:Ve.length)??0,re=((I=q==null?void 0:q.columns["In Progress"])==null?void 0:I.length)??0,R=A.processes.find($=>$.name==="executor"),X=A.processes.find($=>$.name==="reviewer"),J=A.processes.find($=>$.name==="qa"),ne=A.processes.find($=>$.name==="audit"),Z=A.processes.find($=>$.name==="planner"),Ae=async $=>{d($);try{const se=await bb($),de=se.results.every(ke=>ke.success);g({title:de?"Process Cancelled":"Cancel Failed",message:se.results.map(ke=>ke.message).join("; "),type:de?"success":"error"})}catch(se){g({title:"Cancel Failed",message:se instanceof Error?se.message:"Failed to cancel process",type:"error"})}finally{d(null),H()}},ze=async()=>{h(!0);try{await Nb(),g({title:"Lock Cleared",message:"Stale executor state removed",type:"success"}),H()}catch($){g({title:"Clear Failed",message:$ instanceof Error?$.message:"Failed to clear lock",type:"error"})}finally{h(!1)}},He=$=>{if(!$)return"Not scheduled";try{const se=new Date($),de=new Date,ke=se.getTime()-de.getTime(),Ee=Math.floor(ke/6e4);return Ee<0?"Running now...":Ee<60?`In ${Ee} min`:Ee<1440?`In ${Math.floor(Ee/60)} hr${Ee>=120?"s":""}`:`In ${Math.floor(Ee/1440)} day${Ee>=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(ve,{className:"p-5",onClick:()=>u("/board"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Board Ready"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:le})]}),s.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:s.jsx(ts,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues ready to start"})]}),s.jsxs(ve,{className:"p-5",onClick:()=>u("/board"),children:[s.jsxs("div",{className:"flex justify-between items-start",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),s.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:re})]}),s.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:s.jsx(v0,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues in progress"})]}),s.jsxs(ve,{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:k})]}),s.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:s.jsx(_i,{className:"h-5 w-5"})})]}),s.jsx("p",{className:`text-xs mt-4 ${G>0?"text-red-400 font-medium":"text-slate-500"}`,children:G>0?`${G} need work`:"All passing"})]}),s.jsxs(ve,{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:A.crontab.installed?"Active":"Inactive"})]}),s.jsx("div",{className:`p-2 rounded-lg ${A.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:s.jsx(Mi,{className:"h-5 w-5"})})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-4",children:A.crontab.installed?`${A.crontab.entries.length} entr${A.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),s.jsxs(ve,{className:"p-6",children:[s.jsx("h2",{className:"text-base font-semibold text-slate-200 mb-4",children:"System Status"}),s.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),s.jsx("p",{className:"text-sm text-slate-200",children:A.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:A.config.provider})]}),s.jsxs("div",{children:[s.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),s.jsx("p",{className:"text-sm text-slate-200",children:new Date(A.timestamp).toLocaleString()})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(ve,{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 ${R!=null&&R.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 ${R!=null&&R.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:R!=null&&R.running?`PID: ${R.pid} • ${A.activePrd??"Running"}`:"Idle"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[(R==null?void 0:R.running)&&s.jsxs(be,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>Ae("run"),disabled:o==="run",children:[s.jsx(dr,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),!(R!=null&&R.running)&&A.activePrd&&s.jsx(be,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300",onClick:ze,disabled:r,children:r?"Clearing...":"Force Clear"}),s.jsx(be,{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 ${X!=null&&X.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 ${X!=null&&X.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:X!=null&&X.running?`PID: ${X.pid} • Running`:"Idle"})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[(X==null?void 0:X.running)&&s.jsxs(be,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>Ae("review"),disabled:o==="review",children:[s.jsx(dr,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),s.jsx(be,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),disabled:!(X!=null&&X.running),children:"View Log"})]})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${J!=null&&J.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 ${J!=null&&J.running?"text-slate-200":"text-slate-400"}`,children:"QA"}),s.jsx("div",{className:"text-xs text-slate-500",children:J!=null&&J.running?`PID: ${J.pid} • Running`:"Idle"})]})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsx(be,{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 ${ne!=null&&ne.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${ne!=null&&ne.running?"text-slate-200":"text-slate-400"}`,children:"Auditor"}),s.jsx("div",{className:"text-xs text-slate-500",children:ne!=null&&ne.running?`PID: ${ne.pid} • Running`:"Idle"})]})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsx(be,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${Z!=null&&Z.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),s.jsxs("div",{children:[s.jsx("div",{className:`font-medium ${Z!=null&&Z.running?"text-slate-200":"text-slate-400"}`,children:"Planner"}),s.jsx("div",{className:"text-xs text-slate-500",children:Z!=null&&Z.running?`PID: ${Z.pid} • Writing PRDs`:"Idle"})]})]}),s.jsx("div",{className:"flex items-center space-x-2",children:s.jsx(be,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]})]})]}),s.jsxs(ve,{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(Qm,{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 ${p!=null&&p.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(Mi,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${p!=null&&p.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:p!=null&&p.paused?"Paused":He(p==null?void 0:p.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 ${p!=null&&p.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(_i,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${p!=null&&p.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:p!=null&&p.paused?"Paused":He(p==null?void 0:p.reviewer.nextRun)})]})]})}),s.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:s.jsxs("div",{className:"flex items-center space-x-3",children:[s.jsx("div",{className:`p-1.5 rounded-md ${(z=p==null?void 0:p.qa)!=null&&z.installed?"bg-green-500/10 text-green-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(E0,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${(V=p==null?void 0:p.qa)!=null&&V.installed?"text-slate-200":"text-slate-500"}`,children:"QA"}),s.jsx("div",{className:"text-xs text-slate-500",children:p!=null&&p.paused?"Paused":He((ee=p==null?void 0:p.qa)==null?void 0:ee.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 ${(pe=p==null?void 0:p.audit)!=null&&pe.installed?"bg-amber-500/10 text-amber-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(as,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${(ye=p==null?void 0:p.audit)!=null&&ye.installed?"text-slate-200":"text-slate-500"}`,children:"Auditor"}),s.jsx("div",{className:"text-xs text-slate-500",children:p!=null&&p.paused?"Paused":He((N=p==null?void 0:p.audit)==null?void 0:N.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 ${(Y=p==null?void 0:p.planner)!=null&&Y.installed?"bg-cyan-500/10 text-cyan-400":"bg-slate-800 text-slate-500"}`,children:s.jsx(g0,{className:"h-4 w-4"})}),s.jsxs("div",{children:[s.jsx("div",{className:`text-sm font-medium ${(K=p==null?void 0:p.planner)!=null&&K.installed?"text-slate-200":"text-slate-500"}`,children:"Planner"}),s.jsx("div",{className:"text-xs text-slate-500",children:p!=null&&p.paused?"Paused":He((W=p==null?void 0:p.planner)==null?void 0:W.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(Qm,{className:"ml-1 h-3 w-3"})]})]}),s.jsx(ve,{className:"p-4",children:q?s.jsx("div",{className:"flex flex-wrap gap-3",children:kl.map($=>{var de;const se=((de=q.columns[$])==null?void 0:de.length)??0;return s.jsxs("button",{onClick:()=>u("/board"),className:`inline-flex items-center space-x-2 px-3 py-2 rounded-lg ring-1 ring-inset transition-colors hover:opacity-80 ${Gb[$]}`,children:[s.jsx("span",{className:"text-xs font-medium",children:$}),s.jsx("span",{className:"text-xs font-bold",children:se})]},$)})}):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."]})})]})]})},Qb=()=>{const[u,o]=C.useState(!0),[d,r]=C.useState(""),[h,x]=C.useState("executor"),m=C.useRef(null),{selectedProjectId:y,globalModeLoading:g}=Tt(),{data:v,loading:E,error:j,refetch:O}=Ct(()=>xb(h,500),[h,y],{enabled:!g}),{data:Q}=Ct(R0,[y],{enabled:!g}),H=(v==null?void 0:v.lines)||[];C.useEffect(()=>{u&&m.current&&(m.current.scrollTop=m.current.scrollHeight)},[H,u]),C.useEffect(()=>{if(!u)return;const k=window.setInterval(()=>{O()},3e3);return()=>window.clearInterval(k)},[u,h,O]);const p=H.filter(k=>k.toLowerCase().includes(d.toLowerCase())),q=k=>{x(k),r("")},A=k=>{if(!(Q!=null&&Q.processes))return!1;const G=Q.processes.find(le=>le.name===k);return(G==null?void 0:G.running)??!1};return j?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx($t,{className:"h-12 w-12 text-red-400"}),s.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),s.jsx("div",{className:"text-sm text-slate-500",children:j.message}),s.jsx(be,{onClick:()=>O(),children:"Retry"})]}):s.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[s.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs("div",{className:"relative group",children:[s.jsx("input",{type:"text",placeholder:"Filter logs...",className:"pl-9 pr-4 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent w-64 placeholder:text-slate-600",value:d,onChange:k=>r(k.target.value)}),s.jsx(as,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),s.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("button",{onClick:()=>q("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="executor"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Executor"}),A("executor")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>q("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="reviewer"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Reviewer"}),A("reviewer")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>q("qa"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="qa"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"QA"}),A("qa")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>q("audit"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="audit"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Auditor"}),A("audit")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),s.jsx("button",{onClick:()=>q("planner"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="planner"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsx("span",{children:"Planner"}),A("planner")&&s.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),s.jsxs("div",{className:"flex items-center space-x-2",children:[s.jsxs(be,{size:"sm",variant:"ghost",onClick:()=>O(),children:[s.jsx(Vm,{className:"h-4 w-4 mr-2"}),"Refresh"]}),s.jsxs(be,{size:"sm",variant:"ghost",onClick:()=>o(!u),children:[u?s.jsx(j0,{className:"h-4 w-4 mr-2"}):s.jsx(Di,{className:"h-4 w-4 mr-2"}),u?"Pause":"Resume"]})]})]}),s.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[s.jsxs("div",{className:"bg-slate-950/50 backdrop-blur text-xs text-slate-500 px-4 py-1.5 flex justify-between border-b border-slate-800",children:[s.jsxs("span",{children:["File: ",h,".log"]}),s.jsxs("span",{children:[p.length," lines"]})]}),s.jsxs("div",{ref:m,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[E?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):p.length===0?s.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:d?"No logs match your filter":"No logs yet — logs will appear after the first run"}):p.map((k,G)=>{const le=k.includes("[ERROR]"),re=k.includes("[WARN]");return s.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${le?"text-red-400":re?"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:G+1}),k]},G)}),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(Vm,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Xb=()=>{const[u,o]=C.useState(null),[d,r]=C.useState(!1),[h,x]=C.useState("all"),[m,y]=C.useState("number"),[g,v]=C.useState("desc"),{addToast:E,selectedProjectId:j,globalModeLoading:O}=Tt(),{data:Q,loading:H,error:p,refetch:q}=Ct(T0,[j],{enabled:!O}),A=Q??[],k=Z=>{switch(Z){case"pass":return s.jsx(ts,{className:"h-4 w-4 text-green-500"});case"fail":return s.jsx(dr,{className:"h-4 w-4 text-red-500"});case"pending":return s.jsx(b0,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return s.jsx($t,{className:"h-4 w-4 text-slate-500"})}},G=Z=>{switch(Z){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available"}},le=Z=>Z===null?"No review decision yet":Z===100?"PR has been approved":Z===0?"Changes have been requested":`Review score: ${Z}`,re=C.useMemo(()=>A.filter(Z=>{switch(h){case"needs-work":return Z.ciStatus==="fail"||Z.reviewScore===0;case"pending":return Z.ciStatus==="pending"||Z.ciStatus==="unknown"||Z.reviewScore===null;case"passed":return Z.ciStatus==="pass"&&Z.reviewScore===100;case"all":default:return!0}}),[A,h]),R=C.useMemo(()=>[...re].sort((Ae,ze)=>{let He=0;switch(m){case"number":He=Ae.number-ze.number;break;case"title":He=Ae.title.localeCompare(ze.title);break;case"branch":He=Ae.branch.localeCompare(ze.branch);break;case"ciStatus":{const Ve={fail:0,pending:1,unknown:2,pass:3};He=(Ve[Ae.ciStatus]??2)-(Ve[ze.ciStatus]??2);break}case"reviewScore":{const Ve=Ae.reviewScore??-1,I=ze.reviewScore??-1;He=Ve-I;break}}return g==="asc"?He:-He}),[re,m,g]),X=Z=>{m===Z?v(g==="asc"?"desc":"asc"):(y(Z),v("desc"))},J=Z=>m!==Z?s.jsx(ap,{className:"h-3 w-3 text-slate-600"}):g==="asc"?s.jsx(sp,{className:"h-3 w-3 text-indigo-400"}):s.jsx(ep,{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(p)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx($t,{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:p.message}),s.jsx(be,{onClick:()=>q(),children:"Retry"})]});const ne=async()=>{r(!0);try{const Z=await gb();E({title:"Reviewer Started",message:Z.pid?`Started with PID ${Z.pid}`:"Reviewer started",type:"success"})}catch(Z){E({title:"Reviewer Failed",message:Z instanceof Error?Z.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex space-x-1",children:[s.jsx("button",{onClick:()=>x("all"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="all"?"bg-slate-800 text-slate-200 border-slate-700":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"All"}),s.jsx("button",{onClick:()=>x("needs-work"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="needs-work"?"bg-red-900/50 text-red-300 border-red-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Needs Work"}),s.jsx("button",{onClick:()=>x("pending"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="pending"?"bg-amber-900/50 text-amber-300 border-amber-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Pending"}),s.jsx("button",{onClick:()=>x("passed"),className:`px-3 py-1 rounded-full text-xs font-medium cursor-pointer border transition-colors ${h==="passed"?"bg-green-900/50 text-green-300 border-green-800":"text-slate-500 hover:bg-slate-800 hover:text-slate-300 border-transparent"}`,children:"Passed"})]}),s.jsxs(be,{size:"sm",onClick:ne,disabled:d,children:[s.jsx(as,{className:"h-4 w-4 mr-2"}),d?"Starting...":"Run Reviewer Now"]})]}),s.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:s.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[s.jsx("thead",{className:"bg-slate-950/50",children:s.jsxs("tr",{children:[s.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-slate-500 uppercase tracking-wider cursor-pointer hover:text-slate-300",onClick:()=>X("number"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Title"}),J("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:()=>X("branch"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Branch"}),J("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:()=>X("ciStatus"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"CI Status"}),J("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:()=>X("reviewScore"),children:s.jsxs("div",{className:"flex items-center space-x-1",children:[s.jsx("span",{children:"Review Score"}),J("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:[R.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:G(Z.ciStatus),children:[k(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:le(Z.reviewScore),children:[s.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:s.jsx("div",{className:`h-full ${Z.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${Z.reviewScore}%`}})}),s.jsx("span",{className:`text-sm font-bold ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]}):s.jsx("span",{className:"text-slate-600 text-sm",title:"No review decision yet",children:"—"})}),s.jsx("td",{className:"px-6 py-4 text-right",children:s.jsx("a",{href:Z.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:Ae=>Ae.stopPropagation(),children:s.jsx(p0,{className:"h-4 w-4"})})})]},Z.number)),R.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:A.length===0?"No open PRs found.":`No PRs match the "${h}" filter.`})})]})]})}),u&&s.jsx(ve,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const Z=A.find(Ae=>Ae.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:G(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:[k(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:le(Z.reviewScore),children:[s.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),s.jsx("div",{className:`text-xl font-bold mt-1 ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]})]})]}):null})()})]})},ut=Ge.forwardRef(({className:u="",label:o,checked:d,onChange:r,...h},x)=>{const m=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:x,checked:d,onChange:m,...h}),s.jsx("div",{className:"w-11 h-6 bg-slate-800 peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-indigo-500/50 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-slate-400 after:border-slate-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-indigo-600 peer-checked:after:bg-white peer-disabled:opacity-50 peer-disabled:cursor-not-allowed"})]}),o&&s.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});ut.displayName="Switch";const Vb=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:d}=Tt(),[r,h]=C.useState(!1),[x,m]=C.useState(!1),{data:y,loading:g,error:v,refetch:E}=Ct(Eb,[o],{enabled:!d});C.useEffect(()=>{if(!(y!=null&&y.enabled))return;const k=setInterval(()=>{E()},1e4);return()=>clearInterval(k)},[y==null?void 0:y.enabled,E]);const j=async k=>{m(!0);try{await D0(k),u({title:k?"Scanner Enabled":"Scanner Disabled",message:k?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:k?"success":"info"}),E()}catch(G){u({title:"Toggle Failed",message:G instanceof Error?G.message:"Failed to toggle scanner",type:"error"})}finally{m(!1)}},O=async()=>{h(!0);try{const k=await wb();k.created.length>0?u({title:"Scan Complete",message:`Created ${k.created.length} PRD(s): ${k.created.join(", ")}`,type:"success"}):u({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),k.errors.length>0&&u({title:"Scan Errors",message:k.errors.join("; "),type:"warning"}),E()}catch(k){u({title:"Scan Failed",message:k instanceof Error?k.message:"Failed to scan roadmap",type:"error"})}finally{h(!1)}};if(g)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($t,{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(be,{onClick:()=>E(),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(ve,{className:"p-12",children:s.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[s.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:s.jsx(y0,{className:"h-10 w-10 text-slate-500"})}),s.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),s.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",s.jsx("code",{className:"text-indigo-400 bg-indigo-500/10 px-1.5 py-0.5 rounded text-sm",children:"ROADMAP.md"})," in your project root with checklist items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",s.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const Q=y.totalItems>0?Math.round(y.processedItems/y.totalItems*100):0,H=Kb(y.status),p=$b(y.items),q=y.lastScan?Jb(y.lastScan):"Never",A=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(ut,{label:y.enabled?"Enabled":"Disabled",checked:y.enabled,onChange:j,disabled:x}),s.jsxs(be,{onClick:O,loading:r,disabled:!y.enabled||y.status==="complete",children:[s.jsx(Di,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),s.jsx(ve,{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:q})]}),y.enabled&&y.status!=="complete"&&s.jsxs("div",{children:["Auto-scan: ",s.jsxs("span",{className:"text-slate-300",children:["every ",A," min"]})]}),y.enabled&&y.status==="complete"&&s.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),s.jsxs(ve,{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 (",Q,"%)"]})]}),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 ${Q===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${Q}%`}})})]}),Object.entries(p).map(([k,G])=>s.jsxs(ve,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:k}),s.jsx("div",{className:"space-y-2",children:G.map(le=>s.jsx(Zb,{item:le},le.hash))})]},k))]})};function Zb({item:u}){const o=u.checked,d=u.processed;return s.jsxs("div",{className:`flex items-center justify-between p-3 rounded-lg border ${o?"bg-slate-950/30 border-slate-800/50":d?"bg-emerald-500/5 border-emerald-500/10":"bg-slate-950/50 border-slate-800"}`,children:[s.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?s.jsx(Qp,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):d?s.jsx(ts,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):s.jsx(Ap,{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(Ri,{variant:"neutral",children:"Skipped"}):d?s.jsx(Ri,{variant:"success",children:u.prdFile||"Processed"}):s.jsx(Ri,{variant:"warning",children:"Pending"})})]})}function Kb(u){switch(u){case"complete":return{label:"Complete",icon:ts,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:_i,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:Di,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:$t,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:$t,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function $b(u){const o={};for(const d of u){const r=d.section||"General";o[r]||(o[r]=[]),o[r].push(d)}return o}function Jb(u){try{const o=new Date(u),r=new Date().getTime()-o.getTime(),h=Math.floor(r/6e4);if(h<1)return"Just now";if(h<60)return`${h} min ago`;const x=Math.floor(h/60);return x<24?`${x} hr ago`:`${Math.floor(x/24)} day(s) ago`}catch{return"Unknown"}}const Ue=Ge.forwardRef(({className:u="",label:o,error:d,helperText:r,rightIcon:h,...x},m)=>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:m,className:`
|
|
345
|
+
w-full rounded-lg bg-slate-950 border border-slate-800
|
|
346
|
+
px-3 py-2 text-sm text-slate-200
|
|
347
|
+
placeholder:text-slate-600
|
|
348
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
349
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
350
|
+
transition-all duration-200
|
|
351
|
+
${d?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
352
|
+
${h?"pr-10":""}
|
|
353
|
+
${u}
|
|
354
|
+
`,...x}),h&&s.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:h})]}),d?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:d}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]}));Ue.displayName="Input";const Kt=Ge.forwardRef(({className:u="",label:o,error:d,helperText:r,options:h,value:x,onChange:m,children:y,...g},v)=>{const E=j=>{m&&m(j.target.value)};return s.jsxs("div",{className:"w-full",children:[o&&s.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{ref:v,className:`
|
|
355
|
+
w-full appearance-none rounded-lg bg-slate-950 border border-slate-800
|
|
356
|
+
px-3 py-2 pr-10 text-sm text-slate-200
|
|
357
|
+
focus:outline-none focus:ring-2 focus:ring-indigo-500/50 focus:border-indigo-500
|
|
358
|
+
disabled:opacity-50 disabled:cursor-not-allowed
|
|
359
|
+
transition-all duration-200
|
|
360
|
+
${d?"border-red-500/50 focus:ring-red-500/50 focus:border-red-500":""}
|
|
361
|
+
${u}
|
|
362
|
+
`,value:x,onChange:E,...g,children:h?h.map(j=>s.jsx("option",{value:j.value,children:j.label},j.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(fp,{className:"h-4 w-4"})})]}),d?s.jsx("p",{className:"mt-1.5 text-xs text-red-400",children:d}):r?s.jsx("p",{className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});Kt.displayName="Select";const Pn=[{label:"Night Watch (default)",value:"0 0-21 * * *",description:"Every hour from midnight to 9pm UTC"},{label:"Every 3 hours",value:"0 0,3,6,9,12,15,18,21 * * *",description:"At minute 0 past every 3rd hour"},{label:"Business hours",value:"0 0,1,2,3,4,5,6,7,8,11,14,17,20 * * *",description:"During typical US business hours"},{label:"Workday (9-5)",value:"0 9,10,11,12,13,14,15,16,17 * * 1-5",description:"Hourly, Monday to Friday, 9am-5pm UTC"},{label:"Twice daily",value:"0 0,12 * * *",description:"At midnight and noon UTC"},{label:"Hourly",value:"0 * * * *",description:"At minute 0 of every hour"},{label:"Every 30 minutes",value:"*/30 * * * *",description:"Twice per hour"},{label:"Daily at midnight",value:"0 0 * * *",description:"Once per day at 00:00 UTC"},{label:"Weekdays at 9 AM",value:"0 9 * * 1-5",description:"Monday to Friday at 9am UTC"},{label:"Custom",value:"__custom__",description:"Enter your own cron expression"}];function oa(u){const o=u.trim().split(/\s+/);if(o.length!==5)return u;const[d,r,h,x,m]=o,y=Pn.find(g=>g.value===u);if(y)return y.label;if(d==="*/30"&&r==="*")return"Every 30 minutes";if(d==="0"&&r==="*")return"Every hour";if(d.startsWith("*/"))return`Every ${parseInt(d.replace("*/",""),10)} minutes`;if(d==="0"&&r.startsWith("*/"))return`Every ${parseInt(r.replace("*/",""),10)} hours`;if(d==="0"&&r!=="*"&&h==="*"&&x==="*"&&m==="*")return`Daily at ${Jn(r)}`;if(d==="0"&&r!=="*"&&h==="*"&&x==="*"&&m==="1-5")return`Weekdays at ${Jn(r)}`;if(d==="0"&&r.includes("-")){const[g,v]=r.split("-");return`Every hour from ${Jn(g)} to ${Jn(v)}`}if(d==="0"&&r.includes(",")){const g=r.split(",").map(Jn);return g.length<=3?`At ${g.join(" and ")}`:`At ${g.slice(0,-1).join(", ")}, and ${g[g.length-1]}`}return u}function Jn(u){const o=parseInt(u,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function U0(u){const o=Pn.find(d=>d.value===u);return(o==null?void 0:o.value)??"__custom__"}function Wb(u){const o=new Date,d=u.getTime()-o.getTime(),r=Math.floor(d/6e4),h=Math.floor(r/60),x=Math.floor(h/24);return r<1?"less than a minute":r<60?`in ${r} minute${r>1?"s":""}`:h<24?`in ${h} hour${h>1?"s":""}`:`in ${x} day${x>1?"s":""}`}function Fb(u){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return u.toLocaleDateString("en-US",o)}function Pb(u){const o=new Date,d=u.getTime()-o.getTime(),r=Math.floor(d/6e4);return r>=0&&r<30}const Ib=()=>{var ze,He,Ve;const{addToast:u,selectedProjectId:o,globalModeLoading:d}=Tt(),[r,h]=C.useState(!1),[x,m]=C.useState(!1),[y,g]=C.useState(null),[v,E]=C.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:j,loading:O,error:Q,refetch:H}=Ct(_0,[o],{enabled:!d}),{data:p,loading:q,refetch:A}=Ct(M0,[o],{enabled:!d});C.useEffect(()=>{const I=setInterval(()=>{H()},3e4);return()=>clearInterval(I)},[H]),C.useEffect(()=>{p&&!v.isEditing&&E({executorSchedule:p.cronSchedule,reviewerSchedule:p.reviewerSchedule,isEditing:!1})},[p,v.isEditing]);const k=async()=>{if(j){h(!0);try{j.paused?(await Zm(),u({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await pb(),u({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),H()}catch(I){u({title:"Action Failed",message:I instanceof Error?I.message:"Failed to toggle schedule state",type:"error"})}finally{h(!1)}}},G=()=>{p&&E({executorSchedule:p.cronSchedule,reviewerSchedule:p.reviewerSchedule,isEditing:!0})},le=()=>{p&&E({executorSchedule:p.cronSchedule,reviewerSchedule:p.reviewerSchedule,isEditing:!1})},re=async()=>{if(p){m(!0);try{await ra({cronSchedule:v.executorSchedule,reviewerSchedule:v.reviewerSchedule}),await Zm(),u({title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"}),E(I=>({...I,isEditing:!1})),A(),H()}catch(I){u({title:"Save Failed",message:I instanceof Error?I.message:"Failed to save schedules",type:"error"})}finally{m(!1)}}},R=async(I,z)=>{if(p){g(I);try{I==="executor"?await ra({executorEnabled:z}):I==="reviewer"?await ra({reviewerEnabled:z}):I==="qa"?await ra({qa:{...p.qa,enabled:z}}):I==="audit"?await ra({audit:{...p.audit,enabled:z}}):await ra({roadmapScanner:{...p.roadmapScanner,enabled:z}}),u({title:"Job Updated",message:`${I[0].toUpperCase()+I.slice(1)} ${z?"enabled":"disabled"}.`,type:"success"}),A(),H()}catch(V){u({title:"Update Failed",message:V instanceof Error?V.message:"Failed to update job configuration",type:"error"})}finally{g(null)}}},X=(I,z)=>{if(!I)return s.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const V=new Date(I),ee=Pb(V);return s.jsxs("div",{className:"flex items-center space-x-2",children:[ee&&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:Wb(V)}),s.jsxs("span",{className:"text-slate-500 ml-2",children:["(",Fb(V),")"]})]})]})},J=(I,z,V,ee)=>{const pe=U0(z),ye=pe==="__custom__";return s.jsxs("div",{className:`space-y-3 ${ee?"opacity-50 pointer-events-none":""}`,children:[s.jsx("div",{className:"flex items-center space-x-3",children:s.jsx(Kt,{label:`${I} Preset`,options:Pn,value:pe,onChange:N=>{N!=="__custom__"&&V(N)},className:"flex-1"})}),ye&&s.jsx(Ue,{label:"Custom Cron Expression",value:z,onChange:N=>V(N.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:oa(z)})]})]})};if(O||q)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(Q||!j||!p)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx($t,{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:(Q==null?void 0:Q.message)||"Unknown error"}),s.jsx(be,{onClick:()=>{H(),A()},children:"Retry"})]});const ne=j.paused,Z=ne?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",Ae=ne?"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(ve,{className:`p-6 border-2 ${Z}`,children:s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center space-x-4",children:[s.jsx(_i,{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:Ae})]})]}),s.jsx(be,{variant:ne?"primary":"outline",size:"lg",onClick:k,loading:r,children:ne?s.jsxs(s.Fragment,{children:[s.jsx(Di,{className:"h-5 w-5 mr-2"}),"Resume"]}):s.jsxs(s.Fragment,{children:[s.jsx(j0,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsxs(ve,{className:`p-6 ${p.executorEnabled===!1?"opacity-50":""}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),p.executorEnabled===!1?s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"}):!v.isEditing&&s.jsxs(be,{variant:"ghost",size:"sm",onClick:G,children:[s.jsx(tb,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),v.isEditing?J("Executor",v.executorSchedule,I=>E(z=>({...z,executorSchedule:I})),p.executorEnabled===!1):s.jsx(s.Fragment,{children:s.jsx("div",{className:"space-y-4",children:p.executorEnabled!==!1?s.jsxs(s.Fragment,{children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:oa(p.cronSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.cronSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X(j.executor.nextRun,p.cronSchedule)]}),s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${j.executor.installed?"text-green-400":"text-amber-400"}`,children:[s.jsx(Ci,{className:"h-4 w-4"}),s.jsx("span",{children:j.executor.installed?"Installed":"Not installed"})]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Executor is disabled in settings."})})})]}),s.jsxs(ve,{className:`p-6 ${p.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"}),!p.reviewerEnabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),v.isEditing?J("Reviewer",v.reviewerSchedule,I=>E(z=>({...z,reviewerSchedule:I})),!p.reviewerEnabled):s.jsx(s.Fragment,{children:s.jsx("div",{className:"space-y-4",children:p.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:oa(p.reviewerSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.reviewerSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X(j.reviewer.nextRun,p.reviewerSchedule)]}),s.jsxs("div",{className:`flex items-center space-x-2 text-sm ${j.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[s.jsx(Ci,{className:"h-4 w-4"}),s.jsx("span",{children:j.reviewer.installed?"Installed":"Not installed"})]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),s.jsxs(ve,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:"Job Enablement"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Executor"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Creates implementation PRs from PRDs"})]}),s.jsx(ut,{checked:p.executorEnabled!==!1,disabled:y!==null,onChange:I=>R("executor",I)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Reviewer"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Reviews PRs and manages merge readiness"})]}),s.jsx(ut,{checked:p.reviewerEnabled,disabled:y!==null,onChange:I=>R("reviewer",I)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"QA"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Generates and runs quality checks on PRs"})]}),s.jsx(ut,{checked:p.qa.enabled,disabled:y!==null,onChange:I=>R("qa",I)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Auditor"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Runs automated audit reports"})]}),s.jsx(ut,{checked:p.audit.enabled,disabled:y!==null,onChange:I=>R("audit",I)})]}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40 md:col-span-2",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Planner"}),s.jsx("div",{className:"text-xs text-slate-500",children:"Creates PRDs from audit findings and pending roadmap items"})]}),s.jsx(ut,{checked:p.roadmapScanner.enabled,disabled:y!==null,onChange:I=>R("planner",I)})]})]})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[s.jsxs(ve,{className:`p-6 ${p.qa.enabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[s.jsx(E0,{className:"h-4 w-4"}),"QA"]}),!p.qa.enabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),p.qa.enabled?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:oa(p.qa.schedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.qa.schedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X((ze=j.qa)==null?void 0:ze.nextRun,p.qa.schedule)]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"QA is disabled in settings."})]}),s.jsxs(ve,{className:`p-6 ${p.audit.enabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[s.jsx(as,{className:"h-4 w-4"}),"Auditor"]}),!p.audit.enabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),p.audit.enabled?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:oa(p.audit.schedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.audit.schedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X((He=j.audit)==null?void 0:He.nextRun,p.audit.schedule)]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Audit is disabled in settings."})]}),s.jsxs(ve,{className:`p-6 ${p.roadmapScanner.enabled?"":"opacity-50"}`,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[s.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[s.jsx(g0,{className:"h-4 w-4"}),"Planner"]}),!p.roadmapScanner.enabled&&s.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),p.roadmapScanner.enabled?s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),s.jsx("div",{className:"text-lg text-slate-200 font-medium",children:oa(p.roadmapScanner.slicerSchedule)}),s.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.roadmapScanner.slicerSchedule})]}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),X((Ve=j.planner)==null?void 0:Ve.nextRun,p.roadmapScanner.slicerSchedule)]})]}):s.jsx("div",{className:"text-slate-500 text-sm",children:"Planner uses roadmap scanner scheduling."})]})]}),s.jsxs(ve,{className:"p-6",children:[s.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[s.jsx(Mi,{className:"h-5 w-5 text-slate-400"}),s.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),j.entries.length===0?s.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):s.jsx("div",{className:"space-y-2",children:j.entries.map((I,z)=>s.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:I},z))})]}),v.isEditing&&s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[s.jsx(be,{variant:"ghost",onClick:le,children:"Cancel"}),s.jsxs(be,{onClick:re,loading:x,children:[s.jsx(Ci,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},ey=({tabs:u,activeTab:o,onChange:d,className:r=""})=>{var g,v;const[h,x]=Ge.useState((g=u[0])==null?void 0:g.id),m=o||h,y=E=>{d?d(E):x(E)};return s.jsxs("div",{className:`flex flex-col ${r}`,children:[s.jsx("div",{className:"border-b border-slate-800 mb-6",children:s.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:u.map(E=>s.jsx("button",{onClick:()=>y(E.id),className:`
|
|
363
|
+
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
364
|
+
${m===E.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
365
|
+
`,children:E.label},E.id))})}),s.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(v=u.find(E=>E.id===m))==null?void 0:v.content})]})},Wn=({label:u,value:o,onChange:d,helperText:r,placeholder:h="0 0-21 * * *"})=>{const x=U0(o),m=x==="__custom__",y=E=>{E!=="__custom__"&&d(E)},g=E=>{d(E.target.value)},v=Pn.find(E=>E.value===x);return s.jsxs("div",{className:"space-y-2",children:[s.jsx(Kt,{label:u,value:x,onChange:y,options:Pn.map(E=>({label:E.label,value:E.value})),helperText:(v==null?void 0:v.description)||r}),m&&s.jsxs(s.Fragment,{children:[s.jsx(Ue,{label:"Custom Cron Expression",value:o,onChange:g,helperText:"Custom cron expression (format: minute hour day month weekday)",placeholder:h}),s.jsxs("div",{className:"text-xs text-slate-500 mt-1",children:[s.jsx("strong",{children:"Cron format:"})," minute hour day month weekday",s.jsx("br",{}),s.jsx("strong",{children:"Examples:"})," ",s.jsx("code",{children:"0 * * * *"})," (hourly),"," ",s.jsx("code",{children:"0 0 * * *"})," (daily at midnight),"," ",s.jsx("code",{children:"0 0-21/3 * * *"})," (every 3 hours from 0-21)"]})]}),!m&&s.jsxs("div",{className:"text-sm text-slate-400 mt-1",children:[s.jsx("span",{className:"text-slate-500",children:"Schedule:"})," ",s.jsx("span",{className:"text-slate-200",children:oa(o)})]})]})},ur=u=>({provider:u.provider,defaultBranch:u.defaultBranch,prdDir:u.prdDir||"docs/PRDs/night-watch",branchPrefix:u.branchPrefix,branchPatterns:u.branchPatterns||[],executorEnabled:u.executorEnabled??!0,reviewerEnabled:u.reviewerEnabled,minReviewScore:u.minReviewScore,maxRuntime:u.maxRuntime,reviewerMaxRuntime:u.reviewerMaxRuntime,maxLogSize:u.maxLogSize,cronSchedule:u.cronSchedule||"0 0-21 * * *",reviewerSchedule:u.reviewerSchedule||"0 0,3,6,9,12,15,18,21 * * *",cronScheduleOffset:u.cronScheduleOffset??0,maxRetries:u.maxRetries??3,reviewerMaxRetries:u.reviewerMaxRetries??2,reviewerRetryDelay:u.reviewerRetryDelay??30,providerEnv:u.providerEnv||{},notifications:u.notifications||{webhooks:[]},prdPriority:u.prdPriority||[],roadmapScanner:u.roadmapScanner||{enabled:!0,roadmapPath:"ROADMAP.md",autoScanInterval:300},templatesDir:u.templatesDir||".night-watch/templates",boardProvider:u.boardProvider||{enabled:!0,provider:"github"},jobProviders:u.jobProviders||{},autoMerge:u.autoMerge??!1,autoMergeMethod:u.autoMergeMethod??"squash",fallbackOnRateLimit:u.fallbackOnRateLimit??!1,claudeModel:u.claudeModel??"sonnet",qa:u.qa||{enabled:!0,schedule:"30 1,7,13,19 * * *",maxRuntime:3600,branchPatterns:[],artifacts:"both",skipLabel:"skip-qa",autoInstallPlaywright:!0},audit:u.audit||{enabled:!0,schedule:"0 2,8,14,20 * * *",maxRuntime:1800}}),ty=u=>["TOKEN","SECRET","KEY","PASSWORD","AUTH","API_KEY"].some(d=>u.toUpperCase().includes(d)),ly=({value:u,isSensitive:o})=>{const[d,r]=Ge.useState(!1);return o?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("span",{className:"text-sm text-slate-300 font-mono",children:d?u:"••••••••••••"}),s.jsx("button",{type:"button",onClick:()=>r(!d),className:"text-slate-500 hover:text-slate-300",children:d?s.jsx(Rp,{className:"h-4 w-4"}):s.jsx(Mp,{className:"h-4 w-4"})})]}):s.jsx("span",{className:"text-sm text-slate-300 font-mono truncate max-w-xs",children:u})},ay=({envVars:u,onChange:o})=>{const[d,r]=Ge.useState(""),[h,x]=Ge.useState(""),[m,y]=Ge.useState(null),[g,v]=Ge.useState(""),E=()=>{if(d.trim()){if(!/^[A-Z_][A-Z0-9_]*$/.test(d)){alert("Key must be uppercase with underscores (e.g., API_KEY)");return}o({...u,[d]:h}),r(""),x("")}},j=q=>{const A={...u};delete A[q],o(A)},O=q=>{y(q),v(u[q])},Q=()=>{m&&(o({...u,[m]:g}),y(null),v(""))},H=()=>{y(null),v("")},p=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:p.length===0?s.jsx("p",{className:"text-slate-500 text-sm italic",children:"No provider environment variables configured."}):p.map(([q,A])=>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:q}),m===q?s.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[s.jsx("input",{type:"text",value:g,onChange:k=>v(k.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:Q,className:"p-1 text-green-400 hover:text-green-300",children:s.jsx(Ci,{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(ns,{className:"h-4 w-4"})})]}):s.jsx(ly,{value:A,isSensitive:ty(q)})]}),m!==q&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>O(q),className:"p-1 text-slate-400 hover:text-slate-200",children:s.jsx(N0,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>j(q),className:"p-1 text-red-400 hover:text-red-300",children:s.jsx(w0,{className:"h-4 w-4"})})]})]},q))}),s.jsxs("div",{className:"flex items-end gap-3 pt-4 border-t border-slate-800",children:[s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Key"}),s.jsx("input",{type:"text",value:d,onChange:q=>r(q.target.value.toUpperCase()),placeholder:"e.g., ANTHROPIC_BASE_URL",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),s.jsxs("div",{className:"flex-1",children:[s.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Value"}),s.jsx("input",{type:"text",value:h,onChange:q=>x(q.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(be,{onClick:E,disabled:!d.trim(),children:[s.jsx(ls,{className:"h-4 w-4 mr-1"}),"Add"]})]})]})},ny=({notifications:u,onChange:o})=>{const[d,r]=Ge.useState(null),[h,x]=Ge.useState(!1),[m,y]=Ge.useState({type:"slack",url:"",events:[]}),g=[{label:"Run Started",value:"run_started"},{label:"Run Succeeded",value:"run_succeeded"},{label:"Run Failed",value:"run_failed"},{label:"Run Timeout",value:"run_timeout"},{label:"Review Completed",value:"review_completed"},{label:"PR Auto-Merged",value:"pr_auto_merged"},{label:"Rate Limit Fallback",value:"rate_limit_fallback"},{label:"QA Completed",value:"qa_completed"}],v=()=>{o({webhooks:[...u.webhooks,m]}),y({type:"slack",url:"",events:[]}),x(!1)},E=(H,p)=>{const q=[...u.webhooks];q[H]=p,o({webhooks:q})},j=H=>{o({webhooks:u.webhooks.filter((p,q)=>q!==H)})},O=(H,p)=>H.includes(p)?H.filter(q=>q!==p):[...H,p],Q=({webhook:H,onChange:p,onSave:q,onCancel:A,isNew:k})=>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(Kt,{label:"Type",value:H.type,onChange:G=>{const le=G;p(le==="telegram"?{type:le,botToken:"",chatId:"",events:H.events}:{type:le,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(Ue,{label:"Bot Token",type:"password",value:H.botToken||"",onChange:G=>p({...H,botToken:G.target.value}),placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz"})}),s.jsx(Ue,{label:"Chat ID",value:H.chatId||"",onChange:G=>p({...H,chatId:G.target.value}),placeholder:"123456789"})]}):s.jsx("div",{className:"md:col-span-2",children:s.jsx(Ue,{label:"Webhook URL",type:"password",value:H.url||"",onChange:G=>p({...H,url:G.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:g.map(G=>s.jsx("button",{type:"button",onClick:()=>p({...H,events:O(H.events,G.value)}),className:`px-3 py-1.5 rounded-md text-sm transition-colors ${H.events.includes(G.value)?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:bg-slate-700"}`,children:G.label},G.value))})]}),s.jsxs("div",{className:"flex justify-end gap-2",children:[s.jsx(be,{variant:"ghost",onClick:A,children:"Cancel"}),s.jsx(be,{onClick:q,disabled:H.events.length===0||(H.type==="telegram"?!H.botToken||!H.chatId:!H.url),children:k?"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,p)=>s.jsx("div",{children:d===p?s.jsx(Q,{webhook:H,onChange:q=>E(p,q),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(q=>s.jsx("span",{className:"px-2 py-0.5 bg-slate-800 rounded text-xs text-slate-400",children:q.replace("_"," ")},q))})]}),s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("button",{type:"button",onClick:()=>r(p),className:"p-2 text-slate-400 hover:text-slate-200",children:s.jsx(N0,{className:"h-4 w-4"})}),s.jsx("button",{type:"button",onClick:()=>j(p),className:"p-2 text-red-400 hover:text-red-300",children:s.jsx(w0,{className:"h-4 w-4"})})]})]})},p))}),h?s.jsx(Q,{webhook:m,onChange:y,onSave:v,onCancel:()=>x(!1),isNew:!0}):s.jsxs(be,{variant:"ghost",onClick:()=>x(!0),children:[s.jsx(ls,{className:"h-4 w-4 mr-2"}),"Add Webhook"]})]})},cr=({label:u,value:o,onChange:d,placeholder:r,helpText:h})=>{const[x,m]=Ge.useState(""),y=()=>{x.trim()&&!o.includes(x.trim())&&(d([...o,x.trim()]),m(""))},g=E=>{d(o.filter(j=>j!==E))},v=E=>{E.key==="Enter"&&(E.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(E=>s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-slate-800 rounded text-sm text-slate-300",children:[E,s.jsx("button",{type:"button",onClick:()=>g(E),className:"text-slate-500 hover:text-red-400",children:s.jsx(ns,{className:"h-3 w-3"})})]},E))}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx("input",{type:"text",value:x,onChange:E=>m(E.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(be,{onClick:y,disabled:!x.trim(),children:s.jsx(ls,{className:"h-4 w-4"})})]}),h&&s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:h})]})},sy=()=>{const{addToast:u,projectName:o,selectedProjectId:d,globalModeLoading:r}=Tt(),[h,x]=Ge.useState(!1),[m,y]=Ge.useState(null),g=Ge.useRef(!1),{data:v,loading:E,error:j,refetch:O}=Ct(M0,[d],{enabled:!r}),{data:Q,loading:H,refetch:p}=Ct(vb,[d],{enabled:!r}),q=Q??[];Ge.useEffect(()=>{v&&(g.current?g.current=!1:y(ur(v)))},[v]);const A=(R,X)=>{y(J=>J&&{...J,[R]:X})},k=async()=>{if(!m)return;const R={};for(const[X,J]of Object.entries(m.jobProviders))J!=null&&J!==""&&(R[X]=J);x(!0);try{const X=await ra({provider:m.provider,defaultBranch:m.defaultBranch,prdDir:m.prdDir,branchPrefix:m.branchPrefix,branchPatterns:m.branchPatterns,executorEnabled:m.executorEnabled,reviewerEnabled:m.reviewerEnabled,minReviewScore:m.minReviewScore,maxRuntime:m.maxRuntime,reviewerMaxRuntime:m.reviewerMaxRuntime,maxLogSize:m.maxLogSize,cronSchedule:m.cronSchedule,reviewerSchedule:m.reviewerSchedule,cronScheduleOffset:m.cronScheduleOffset,maxRetries:m.maxRetries,reviewerMaxRetries:m.reviewerMaxRetries,reviewerRetryDelay:m.reviewerRetryDelay,providerEnv:m.providerEnv,notifications:m.notifications,prdPriority:m.prdPriority,roadmapScanner:m.roadmapScanner,templatesDir:m.templatesDir,boardProvider:m.boardProvider,jobProviders:R,autoMerge:m.autoMerge,autoMergeMethod:m.autoMergeMethod,fallbackOnRateLimit:m.fallbackOnRateLimit,claudeModel:m.claudeModel,qa:m.qa,audit:m.audit});y(ur(X)),u({title:"Settings Saved",message:"Configuration updated successfully.",type:"success"}),g.current=!0,O(),p()}catch(X){u({title:"Save Failed",message:X instanceof Error?X.message:"Failed to save configuration",type:"error"})}finally{x(!1)}},G=()=>{v&&(y(ur(v)),u({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"}))},le=async R=>{try{const X=await D0(R);A("roadmapScanner",X.roadmapScanner),u({title:R?"Roadmap Scanner Enabled":"Roadmap Scanner Disabled",message:`Roadmap scanner has been ${R?"enabled":"disabled"}.`,type:"success"})}catch(X){u({title:"Toggle Failed",message:X instanceof Error?X.message:"Failed to toggle roadmap scanner",type:"error"})}};if(E||!m)return s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(j)return s.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[s.jsx($t,{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:j.message}),s.jsx(be,{onClick:()=>O(),children:"Retry"})]});const re=[{id:"general",label:"General",content:s.jsx(ve,{className:"p-6 space-y-6",children:s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-4",children:[s.jsx(Ue,{label:"Project Name",value:o,disabled:!0}),s.jsx(Ue,{label:"Default Branch",value:m.defaultBranch,onChange:R=>A("defaultBranch",R.target.value)}),s.jsx(Ue,{label:"Branch Prefix",value:m.branchPrefix,onChange:R=>A("branchPrefix",R.target.value)}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(ut,{label:"Enable PRD Executor",checked:m.executorEnabled,onChange:R=>A("executorEnabled",R)})}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(ut,{label:"Enable Automated Reviews",checked:m.reviewerEnabled,onChange:R=>A("reviewerEnabled",R)})}),s.jsx("div",{className:"md:col-span-2",children:s.jsx(ut,{label:"Auto-merge approved PRs",checked:m.autoMerge,onChange:R=>A("autoMerge",R)})}),m.autoMerge&&s.jsx(Kt,{label:"Merge Method",value:m.autoMergeMethod,onChange:R=>A("autoMergeMethod",R),options:[{label:"Squash",value:"squash"},{label:"Merge",value:"merge"},{label:"Rebase",value:"rebase"}]})]})]})})},{id:"providers",label:"Providers",content:s.jsxs("div",{className:"space-y-6",children:[s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Global Provider"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Default AI provider used for all jobs unless overridden below"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Kt,{label:"Provider",value:m.provider,onChange:R=>A("provider",R),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),s.jsx(Kt,{label:"Claude Model",value:m.claudeModel,onChange:R=>A("claudeModel",R),options:[{label:"Sonnet (claude-sonnet-4-6)",value:"sonnet"},{label:"Opus (claude-opus-4-6)",value:"opus"}],helperText:"Model used for native Claude execution (when no proxy is set or after fallback)"}),s.jsxs("div",{className:"md:col-span-2",children:[s.jsx(ut,{label:"Fallback on Rate Limit",checked:m.fallbackOnRateLimit,onChange:R=>A("fallbackOnRateLimit",R)}),s.jsx("p",{className:"text-xs text-slate-500 mt-2",children:"When enabled, automatically fall back to native Claude API after rate-limit on proxy provider"})]})]})]}),s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Per-Job Provider Overrides"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:'Override the AI provider for specific job types. Leave as "Use Global" to use the default provider.'})]}),s.jsx("div",{className:"space-y-4",children:[{key:"executor",label:"Executor"},{key:"reviewer",label:"Reviewer"},{key:"qa",label:"QA"},{key:"audit",label:"Audit"},{key:"slicer",label:"Planner"}].map(({key:R,label:X})=>s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:X}),s.jsx(Kt,{value:m.jobProviders[R]??"",onChange:J=>{const ne={...m.jobProviders};J===""?delete ne[R]:ne[R]=J,A("jobProviders",ne)},options:[{label:"Use Global (default)",value:""},{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]})]},R))})]}),s.jsxs(ve,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Provider Environment Variables"}),s.jsx(ay,{envVars:m.providerEnv,onChange:R=>A("providerEnv",R)})]})]})},{id:"runtime",label:"Runtime",content:s.jsxs("div",{className:"space-y-6",children:[s.jsxs(ve,{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:m.minReviewScore,onChange:R=>A("minReviewScore",Number(R.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),s.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:m.minReviewScore})]}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Ue,{label:"Max Runtime (Executor)",type:"number",value:String(m.maxRuntime),onChange:R=>A("maxRuntime",Number(R.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(Ue,{label:"Max Runtime (Reviewer)",type:"number",value:String(m.reviewerMaxRuntime),onChange:R=>A("reviewerMaxRuntime",Number(R.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"})}),s.jsx(Ue,{label:"Max Log Size",type:"number",value:String(m.maxLogSize),onChange:R=>A("maxLogSize",Number(R.target.value||0)),rightIcon:s.jsx("span",{className:"text-xs",children:"bytes"})})]})]}),s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Retry Settings"}),s.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Configure automatic retry behavior for the PR reviewer when fixes do not fully resolve issues."})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Ue,{label:"Max Retry Attempts",type:"number",min:"0",max:"10",value:String(m.reviewerMaxRetries),onChange:R=>{const X=Math.min(10,Math.max(0,Number(R.target.value||0)));A("reviewerMaxRetries",X)},helperText:"Additional fix attempts after initial review. 0 = no retries."}),s.jsx(Ue,{label:"Retry Delay (seconds)",type:"number",min:"0",max:"300",value:String(m.reviewerRetryDelay),onChange:R=>{const X=Math.min(300,Math.max(0,Number(R.target.value||0)));A("reviewerRetryDelay",X)},helperText:"Wait time between retry attempts to let CI settle."})]})]})]})},{id:"schedules",label:"Schedules",content:s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Job Schedules"}),s.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Configure when automated jobs run using cron expressions or presets"})]}),s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[s.jsx(Wn,{label:"PRD Execution Schedule",value:m.cronSchedule,onChange:R=>A("cronSchedule",R)}),s.jsx(Wn,{label:"PR Review Schedule",value:m.reviewerSchedule,onChange:R=>A("reviewerSchedule",R)}),s.jsx(Wn,{label:"QA Schedule",value:m.qa.schedule,onChange:R=>A("qa",{...m.qa,schedule:R})}),s.jsx(Wn,{label:"Audit Schedule",value:m.audit.schedule,onChange:R=>A("audit",{...m.audit,schedule:R})}),m.roadmapScanner.enabled&&s.jsx(Wn,{label:"Planner Schedule",value:m.roadmapScanner.slicerSchedule||"0 */6 * * *",onChange:R=>A("roadmapScanner",{...m.roadmapScanner,slicerSchedule:R})}),s.jsx(Ue,{label:"Cron Schedule Offset",type:"number",min:"0",max:"59",value:String(m.cronScheduleOffset),onChange:R=>{const X=Math.min(59,Math.max(0,Number(R.target.value||0)));A("cronScheduleOffset",X)},helperText:"Minutes offset (0-59) applied to all cron schedules during install. Helps stagger multiple projects."})]})]})},{id:"notifications",label:"Notifications",content:s.jsxs(ve,{className:"p-6",children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Notification Webhooks"}),s.jsx(ny,{notifications:m.notifications,onChange:R=>A("notifications",R)})]})},{id:"roadmap",label:"Roadmap",content:s.jsxs(ve,{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(ut,{checked:m.roadmapScanner.enabled,onChange:le})]}),m.roadmapScanner.enabled&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(Ue,{label:"Roadmap Path",value:m.roadmapScanner.roadmapPath,onChange:R=>A("roadmapScanner",{...m.roadmapScanner,roadmapPath:R.target.value}),helperText:"Path to ROADMAP.md file (relative to project root)"}),s.jsx(Ue,{label:"Auto Scan Interval",type:"number",value:String(m.roadmapScanner.autoScanInterval),onChange:R=>A("roadmapScanner",{...m.roadmapScanner,autoScanInterval:Math.max(30,Number(R.target.value||30))}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec (min 30)"}),helperText:"How often to check for new roadmap items"})]}),s.jsxs("div",{className:"pt-4 border-t border-slate-800",children:[s.jsx("h4",{className:"text-md font-medium text-slate-200 mb-4",children:"Planner Configuration"}),s.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"The Planner generates detailed PRDs from roadmap items using AI"}),s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:s.jsx(Ue,{label:"Planner Max Runtime",type:"number",value:String(m.roadmapScanner.slicerMaxRuntime||""),onChange:R=>A("roadmapScanner",{...m.roadmapScanner,slicerMaxRuntime:Number(R.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for planner tasks"})})]})]})]})},{id:"board",label:"Board",content:s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Board Provider"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Track PRDs and their status using GitHub Projects or local SQLite"})]}),s.jsx(ut,{checked:m.boardProvider.enabled,onChange:R=>A("boardProvider",{...m.boardProvider,enabled:R})})]}),m.boardProvider.enabled&&s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(Kt,{label:"Board Provider",value:m.boardProvider.provider,onChange:R=>A("boardProvider",{...m.boardProvider,provider:R}),options:[{label:"GitHub Projects",value:"github"},{label:"Local (SQLite)",value:"local"}]}),m.boardProvider.provider==="github"&&s.jsxs(s.Fragment,{children:[s.jsx(Ue,{label:"Project Number",type:"number",value:String(m.boardProvider.projectNumber||""),onChange:R=>A("boardProvider",{...m.boardProvider,projectNumber:R.target.value?Number(R.target.value):void 0}),helperText:"GitHub Projects V2 project number"}),s.jsx(Ue,{label:"Repository",value:m.boardProvider.repo||"",onChange:R=>A("boardProvider",{...m.boardProvider,repo:R.target.value||void 0}),helperText:"owner/repo (auto-detected if empty)"})]}),m.boardProvider.provider==="local"&&s.jsx("div",{className:"md:col-span-2",children:s.jsx("p",{className:"text-sm text-slate-400",children:"Local board uses SQLite for storage — no additional configuration needed."})})]})]})},{id:"qa",label:"QA",content:s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Quality Assurance"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automated UI testing using Playwright"})]}),s.jsx(ut,{checked:m.qa.enabled,onChange:R=>A("qa",{...m.qa,enabled:R})})]}),m.qa.enabled&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[s.jsx(Ue,{label:"Max Runtime",type:"number",value:String(m.qa.maxRuntime),onChange:R=>A("qa",{...m.qa,maxRuntime:Number(R.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for QA tasks (default: 3600 seconds)"}),s.jsx(Kt,{label:"Artifacts",value:m.qa.artifacts,onChange:R=>A("qa",{...m.qa,artifacts:R}),options:[{label:"Screenshots",value:"screenshot"},{label:"Videos",value:"video"},{label:"Both",value:"both"}],helperText:"What artifacts to capture for UI tests"}),s.jsx(Ue,{label:"Skip Label",value:m.qa.skipLabel,onChange:R=>A("qa",{...m.qa,skipLabel:R.target.value}),helperText:"GitHub label to skip QA (PRs with this label are excluded)"})]}),s.jsxs("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:[s.jsx(cr,{label:"QA Branch Patterns",value:m.qa.branchPatterns,onChange:R=>A("qa",{...m.qa,branchPatterns:R}),placeholder:"e.g., qa/, test/",helpText:"Branch patterns to match for QA (defaults to top-level branchPatterns if empty)"}),s.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[s.jsxs("div",{children:[s.jsx("span",{className:"text-sm font-medium text-slate-200",children:"Auto-install Playwright"}),s.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Automatically install Playwright browsers if missing during QA run"})]}),s.jsx(ut,{checked:m.qa.autoInstallPlaywright,onChange:R=>A("qa",{...m.qa,autoInstallPlaywright:R})})]})]})]})]})},{id:"audit",label:"Audit",content:s.jsxs(ve,{className:"p-6 space-y-6",children:[s.jsxs("div",{className:"flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Code Audit"}),s.jsx("p",{className:"text-sm text-slate-400",children:"Automated code quality and security audits"})]}),s.jsx(ut,{checked:m.audit.enabled,onChange:R=>A("audit",{...m.audit,enabled:R})})]}),m.audit.enabled&&s.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:s.jsx(Ue,{label:"Max Runtime",type:"number",value:String(m.audit.maxRuntime),onChange:R=>A("audit",{...m.audit,maxRuntime:Number(R.target.value||0)}),rightIcon:s.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for audit tasks (default: 1800 seconds)"})})]})},{id:"advanced",label:"Advanced",content:s.jsxs(ve,{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(Ue,{label:"Templates Directory",value:m.templatesDir,onChange:R=>A("templatesDir",R.target.value),helperText:"Directory for custom template overrides"}),s.jsx(Ue,{label:"Max Retries",type:"number",min:"1",value:String(m.maxRetries),onChange:R=>{const X=Math.max(1,Number(R.target.value||1));A("maxRetries",X)},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(cr,{label:"Branch Patterns",value:m.branchPatterns,onChange:R=>A("branchPatterns",R),placeholder:"e.g., feat/",helpText:"Patterns to match for PR reviews"}),s.jsx(cr,{label:"PRD Priority",value:m.prdPriority,onChange:R=>A("prdPriority",R),placeholder:"e.g., feature-x",helpText:"PRDs matching these names are executed first"})]})]})}];return s.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[s.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),s.jsx(ey,{tabs:re}),s.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[s.jsxs(be,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:G,children:[s.jsx(Jp,{className:"h-4 w-4 mr-2"}),"Reset"]}),s.jsxs(be,{onClick:k,loading:h,children:[s.jsx(Fp,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),s.jsxs("div",{className:"mt-12",children:[s.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[s.jsx(v0,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),s.jsx(ve,{className:"divide-y divide-slate-800",children:H?s.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):q.map((R,X)=>{const J=R.status==="pass",ne=R.status==="warn",Z=J?"bg-green-500/10 text-green-400 border-green-500/20":ne?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return s.jsxs("div",{className:"p-4 flex items-center justify-between",children:[s.jsxs("div",{children:[s.jsx("p",{className:"text-sm font-medium text-slate-200",children:R.name}),s.jsx("p",{className:"text-xs text-slate-500",children:R.detail})]}),s.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${Z}`,children:R.status.toUpperCase()})]},`${R.name}-${X}`)})})]})]})},iy=()=>(Ub(),s.jsx(Bg,{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(Ab,{}),s.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[s.jsx(zb,{}),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(hg,{children:[s.jsx(hl,{path:"/",element:s.jsx(kb,{})}),s.jsx(hl,{path:"/prs",element:s.jsx(Xb,{})}),s.jsx(hl,{path:"/board",element:s.jsx(Yb,{})}),s.jsx(hl,{path:"/scheduling",element:s.jsx(Ib,{})}),s.jsx(hl,{path:"/logs",element:s.jsx(Qb,{})}),s.jsx(hl,{path:"/roadmap",element:s.jsx(Vb,{})}),s.jsx(hl,{path:"/settings",element:s.jsx(sy,{})}),s.jsx(hl,{path:"*",element:s.jsx(fg,{to:"/",replace:!0})})]})})})]}),s.jsx(Ob,{})]})})),H0=document.getElementById("root");if(!H0)throw new Error("Could not find root element to mount to");const uy=vv.createRoot(H0);uy.render(s.jsx(Ge.StrictMode,{children:s.jsx(iy,{})}));
|