@jonit-dev/night-watch-cli 1.7.60 → 1.7.63
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 +999 -1764
- package/dist/cli.js.map +1 -1
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +6 -2
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/cron.d.ts.map +1 -1
- package/dist/commands/cron.js +1 -81
- package/dist/commands/cron.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +1 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install.d.ts.map +1 -1
- package/dist/commands/install.js +26 -24
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/qa.d.ts.map +1 -1
- package/dist/commands/qa.js +6 -2
- package/dist/commands/qa.js.map +1 -1
- package/dist/commands/queue.d.ts +8 -0
- package/dist/commands/queue.d.ts.map +1 -0
- package/dist/commands/queue.js +259 -0
- package/dist/commands/queue.js.map +1 -0
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/commands/review.js +6 -2
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +10 -2
- package/dist/commands/run.js.map +1 -1
- package/dist/commands/shared/env-builder.d.ts +5 -2
- package/dist/commands/shared/env-builder.d.ts.map +1 -1
- package/dist/commands/shared/env-builder.js +23 -2
- package/dist/commands/shared/env-builder.js.map +1 -1
- package/dist/commands/slice.d.ts.map +1 -1
- package/dist/commands/slice.js +2 -1
- package/dist/commands/slice.js.map +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -1
- package/dist/commands/uninstall.js +3 -1
- package/dist/commands/uninstall.js.map +1 -1
- package/dist/scripts/night-watch-audit-cron.sh +22 -0
- package/dist/scripts/night-watch-cron.sh +25 -1
- package/dist/scripts/night-watch-helpers.sh +166 -1
- package/dist/scripts/night-watch-pr-reviewer-cron.sh +24 -0
- package/dist/scripts/night-watch-qa-cron.sh +24 -2
- package/dist/scripts/night-watch-slicer-cron.sh +30 -2
- package/dist/scripts/publish.sh +61 -0
- package/dist/templates/audit.md +7 -0
- package/dist/templates/night-watch.config.json +13 -0
- package/dist/templates/qa.md +12 -0
- package/dist/web/assets/index-B3CnV08_.js +365 -0
- package/dist/web/assets/index-BIONU0qz.css +1 -0
- package/dist/web/assets/index-yKEQysks.js +365 -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 f of x.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function d(h){const x={};return h.integrity&&(x.integrity=h.integrity),h.referrerPolicy&&(x.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?x.credentials="include":h.crossOrigin==="anonymous"?x.credentials="omit":x.credentials="same-origin",x}function r(h){if(h.ep)return;h.ep=!0;const x=d(h);fetch(h.href,x)}})();function e0(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var tr={exports:{}},Fn={};/**
|
|
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 _m;function mv(){if(_m)return Fn;_m=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function d(r,h,x){var f=null;if(x!==void 0&&(f=""+x),h.key!==void 0&&(f=""+h.key),"key"in h){x={};for(var b in h)b!=="key"&&(x[b]=h[b])}else x=h;return h=x.ref,{$$typeof:u,type:r,key:f,ref:h!==void 0?h:null,props:x}}return Fn.Fragment=o,Fn.jsx=d,Fn.jsxs=d,Fn}var zm;function hv(){return zm||(zm=1,tr.exports=mv()),tr.exports}var n=hv(),lr={exports:{}},oe={};/**
|
|
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 Dm;function xv(){if(Dm)return oe;Dm=1;var u=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),f=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),D=Symbol.iterator;function z(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,U={};function Q(S,B,K){this.props=S,this.context=B,this.refs=U,this.updater=K||H}Q.prototype.isReactComponent={},Q.prototype.setState=function(S,B){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,B,"setState")},Q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function G(){}G.prototype=Q.prototype;function Y(S,B,K){this.props=S,this.context=B,this.refs=U,this.updater=K||H}var se=Y.prototype=new G;se.constructor=Y,y(se,Q.prototype),se.isPureReactComponent=!0;var re=Array.isArray;function X(){}var F={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function ue(S,B,K){var P=K.ref;return{$$typeof:u,type:S,key:B,ref:P!==void 0?P:null,props:K}}function Z(S,B){return ue(S.type,B,S.props)}function Ce(S){return typeof S=="object"&&S!==null&&S.$$typeof===u}function Te(S){var B={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(K){return B[K]})}var qe=/\/+/g;function R(S,B){return typeof S=="object"&&S!==null&&S.key!=null?Te(""+S.key):B.toString(36)}function le(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(X,X):(S.status="pending",S.then(function(B){S.status==="pending"&&(S.status="fulfilled",S.value=B)},function(B){S.status==="pending"&&(S.status="rejected",S.reason=B)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function _(S,B,K,P,J){var V=typeof S;(V==="undefined"||V==="boolean")&&(S=null);var W=!1;if(S===null)W=!0;else switch(V){case"bigint":case"string":case"number":W=!0;break;case"object":switch(S.$$typeof){case u:case o:W=!0;break;case j:return W=S._init,_(W(S._payload),B,K,P,J)}}if(W)return J=J(S),W=P===""?"."+R(S,0):P,re(J)?(K="",W!=null&&(K=W.replace(qe,"$&/")+"/"),_(J,B,K,"",function(pl){return pl})):J!=null&&(Ce(J)&&(J=Z(J,K+(J.key==null||S&&S.key===J.key?"":(""+J.key).replace(qe,"$&/")+"/")+W)),B.push(J)),1;W=0;var ye=P===""?".":P+":";if(re(S))for(var Ne=0;Ne<S.length;Ne++)P=S[Ne],V=ye+R(P,Ne),W+=_(P,B,K,V,J);else if(Ne=z(S),typeof Ne=="function")for(S=Ne.call(S),Ne=0;!(P=S.next()).done;)P=P.value,V=ye+R(P,Ne++),W+=_(P,B,K,V,J);else if(V==="object"){if(typeof S.then=="function")return _(le(S),B,K,P,J);throw B=String(S),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return W}function $(S,B,K){if(S==null)return S;var P=[],J=0;return _(S,P,"","",function(V){return B.call(K,V,J++)}),P}function te(S){if(S._status===-1){var B=S._result;B=B(),B.then(function(K){(S._status===0||S._status===-1)&&(S._status=1,S._result=K)},function(K){(S._status===0||S._status===-1)&&(S._status=2,S._result=K)}),S._status===-1&&(S._status=0,S._result=B)}if(S._status===1)return S._result.default;throw S._result}var fe=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},me={map:$,forEach:function(S,B,K){$(S,function(){B.apply(this,arguments)},K)},count:function(S){var B=0;return $(S,function(){B++}),B},toArray:function(S){return $(S,function(B){return B})||[]},only:function(S){if(!Ce(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return oe.Activity=p,oe.Children=me,oe.Component=Q,oe.Fragment=d,oe.Profiler=h,oe.PureComponent=Y,oe.StrictMode=r,oe.Suspense=g,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,oe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return F.H.useMemoCache(S)}},oe.cache=function(S){return function(){return S.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(S,B,K){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var P=y({},S.props),J=S.key;if(B!=null)for(V in B.key!==void 0&&(J=""+B.key),B)!ae.call(B,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&B.ref===void 0||(P[V]=B[V]);var V=arguments.length-2;if(V===1)P.children=K;else if(1<V){for(var W=Array(V),ye=0;ye<V;ye++)W[ye]=arguments[ye+2];P.children=W}return ue(S.type,J,P)},oe.createContext=function(S){return S={$$typeof:f,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:x,_context:S},S},oe.createElement=function(S,B,K){var P,J={},V=null;if(B!=null)for(P in B.key!==void 0&&(V=""+B.key),B)ae.call(B,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(J[P]=B[P]);var W=arguments.length-2;if(W===1)J.children=K;else if(1<W){for(var ye=Array(W),Ne=0;Ne<W;Ne++)ye[Ne]=arguments[Ne+2];J.children=ye}if(S&&S.defaultProps)for(P in W=S.defaultProps,W)J[P]===void 0&&(J[P]=W[P]);return ue(S,V,J)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(S){return{$$typeof:b,render:S}},oe.isValidElement=Ce,oe.lazy=function(S){return{$$typeof:j,_payload:{_status:-1,_result:S},_init:te}},oe.memo=function(S,B){return{$$typeof:v,type:S,compare:B===void 0?null:B}},oe.startTransition=function(S){var B=F.T,K={};F.T=K;try{var P=S(),J=F.S;J!==null&&J(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(X,fe)}catch(V){fe(V)}finally{B!==null&&K.types!==null&&(B.types=K.types),F.T=B}},oe.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},oe.use=function(S){return F.H.use(S)},oe.useActionState=function(S,B,K){return F.H.useActionState(S,B,K)},oe.useCallback=function(S,B){return F.H.useCallback(S,B)},oe.useContext=function(S){return F.H.useContext(S)},oe.useDebugValue=function(){},oe.useDeferredValue=function(S,B){return F.H.useDeferredValue(S,B)},oe.useEffect=function(S,B){return F.H.useEffect(S,B)},oe.useEffectEvent=function(S){return F.H.useEffectEvent(S)},oe.useId=function(){return F.H.useId()},oe.useImperativeHandle=function(S,B,K){return F.H.useImperativeHandle(S,B,K)},oe.useInsertionEffect=function(S,B){return F.H.useInsertionEffect(S,B)},oe.useLayoutEffect=function(S,B){return F.H.useLayoutEffect(S,B)},oe.useMemo=function(S,B){return F.H.useMemo(S,B)},oe.useOptimistic=function(S,B){return F.H.useOptimistic(S,B)},oe.useReducer=function(S,B,K){return F.H.useReducer(S,B,K)},oe.useRef=function(S){return F.H.useRef(S)},oe.useState=function(S){return F.H.useState(S)},oe.useSyncExternalStore=function(S,B,K){return F.H.useSyncExternalStore(S,B,K)},oe.useTransition=function(){return F.H.useTransition()},oe.version="19.2.4",oe}var Om;function pr(){return Om||(Om=1,lr.exports=xv()),lr.exports}var C=pr();const Ue=e0(C);var ar={exports:{}},Wn={},nr={exports:{}},sr={};/**
|
|
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 Um;function vv(){return Um||(Um=1,(function(u){function o(_,$){var te=_.length;_.push($);e:for(;0<te;){var fe=te-1>>>1,me=_[fe];if(0<h(me,$))_[fe]=$,_[te]=me,te=fe;else break e}}function d(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var $=_[0],te=_.pop();if(te!==$){_[0]=te;e:for(var fe=0,me=_.length,S=me>>>1;fe<S;){var B=2*(fe+1)-1,K=_[B],P=B+1,J=_[P];if(0>h(K,te))P<me&&0>h(J,K)?(_[fe]=J,_[P]=te,fe=P):(_[fe]=K,_[B]=te,fe=B);else if(P<me&&0>h(J,te))_[fe]=J,_[P]=te,fe=P;else break e}}return $}function h(_,$){var te=_.sortIndex-$.sortIndex;return te!==0?te:_.id-$.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var x=performance;u.unstable_now=function(){return x.now()}}else{var f=Date,b=f.now();u.unstable_now=function(){return f.now()-b}}var g=[],v=[],j=1,p=null,D=3,z=!1,H=!1,y=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function se(_){for(var $=d(v);$!==null;){if($.callback===null)r(v);else if($.startTime<=_)r(v),$.sortIndex=$.expirationTime,o(g,$);else break;$=d(v)}}function re(_){if(y=!1,se(_),!H)if(d(g)!==null)H=!0,X||(X=!0,Te());else{var $=d(v);$!==null&&le(re,$.startTime-_)}}var X=!1,F=-1,ae=5,ue=-1;function Z(){return U?!0:!(u.unstable_now()-ue<ae)}function Ce(){if(U=!1,X){var _=u.unstable_now();ue=_;var $=!0;try{e:{H=!1,y&&(y=!1,G(F),F=-1),z=!0;var te=D;try{t:{for(se(_),p=d(g);p!==null&&!(p.expirationTime>_&&Z());){var fe=p.callback;if(typeof fe=="function"){p.callback=null,D=p.priorityLevel;var me=fe(p.expirationTime<=_);if(_=u.unstable_now(),typeof me=="function"){p.callback=me,se(_),$=!0;break t}p===d(g)&&r(g),se(_)}else r(g);p=d(g)}if(p!==null)$=!0;else{var S=d(v);S!==null&&le(re,S.startTime-_),$=!1}}break e}finally{p=null,D=te,z=!1}$=void 0}}finally{$?Te():X=!1}}}var Te;if(typeof Y=="function")Te=function(){Y(Ce)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,R=qe.port2;qe.port1.onmessage=Ce,Te=function(){R.postMessage(null)}}else Te=function(){Q(Ce,0)};function le(_,$){F=Q(function(){_(u.unstable_now())},$)}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(_){_.callback=null},u.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<_?Math.floor(1e3/_):5},u.unstable_getCurrentPriorityLevel=function(){return D},u.unstable_next=function(_){switch(D){case 1:case 2:case 3:var $=3;break;default:$=D}var te=D;D=$;try{return _()}finally{D=te}},u.unstable_requestPaint=function(){U=!0},u.unstable_runWithPriority=function(_,$){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var te=D;D=_;try{return $()}finally{D=te}},u.unstable_scheduleCallback=function(_,$,te){var fe=u.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?fe+te:fe):te=fe,_){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=te+me,_={id:j++,callback:$,priorityLevel:_,startTime:te,expirationTime:me,sortIndex:-1},te>fe?(_.sortIndex=te,o(v,_),d(g)===null&&_===d(v)&&(y?(G(F),F=-1):y=!0,le(re,te-fe))):(_.sortIndex=me,o(g,_),H||z||(H=!0,X||(X=!0,Te()))),_},u.unstable_shouldYield=Z,u.unstable_wrapCallback=function(_){var $=D;return function(){var te=D;D=$;try{return _.apply(this,arguments)}finally{D=te}}}})(sr)),sr}var Hm;function pv(){return Hm||(Hm=1,nr.exports=vv()),nr.exports}var ir={exports:{}},ut={};/**
|
|
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 qm;function gv(){if(qm)return ut;qm=1;var u=pr();function o(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)v+="&args[]="+encodeURIComponent(arguments[j])}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,j){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:p==null?null:""+p,children:g,containerInfo:v,implementation:j}}var f=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ut.createPortal=function(g,v){var j=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,j)},ut.flushSync=function(g){var v=f.T,j=r.p;try{if(f.T=null,r.p=2,g)return g()}finally{f.T=v,r.p=j,r.d.f()}},ut.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))},ut.prefetchDNS=function(g){typeof g=="string"&&r.d.D(g)},ut.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var j=v.as,p=b(j,v.crossOrigin),D=typeof v.integrity=="string"?v.integrity:void 0,z=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;j==="style"?r.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:p,integrity:D,fetchPriority:z}):j==="script"&&r.d.X(g,{crossOrigin:p,integrity:D,fetchPriority:z,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ut.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var j=b(v.as,v.crossOrigin);r.d.M(g,{crossOrigin:j,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)},ut.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var j=v.as,p=b(j,v.crossOrigin);r.d.L(g,j,{crossOrigin:p,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})}},ut.preloadModule=function(g,v){if(typeof g=="string")if(v){var j=b(v.as,v.crossOrigin);r.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:j,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(g)},ut.requestFormReset=function(g){r.d.r(g)},ut.unstable_batchedUpdates=function(g,v){return g(v)},ut.useFormState=function(g,v,j){return f.H.useFormState(g,v,j)},ut.useFormStatus=function(){return f.H.useHostTransitionStatus()},ut.version="19.2.4",ut}var Bm;function bv(){if(Bm)return ir.exports;Bm=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(),ir.exports=gv(),ir.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 Lm;function yv(){if(Lm)return Wn;Lm=1;var u=pv(),o=pr(),d=bv();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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 s=l.return;if(s===null)break;var i=s.alternate;if(i===null){if(a=s.return,a!==null){l=a;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===l)return g(s),e;if(i===a)return g(s),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=s,a=i;else{for(var c=!1,m=s.child;m;){if(m===l){c=!0,l=s,a=i;break}if(m===a){c=!0,a=s,l=i;break}m=m.sibling}if(!c){for(m=i.child;m;){if(m===l){c=!0,l=i,a=s;break}if(m===a){c=!0,a=i,l=s;break}m=m.sibling}if(!c)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,D=Symbol.for("react.element"),z=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),Ce=Symbol.iterator;function Te(e){return e===null||typeof e!="object"?null:(e=Ce&&e[Ce]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function R(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case y:return"Fragment";case Q:return"Profiler";case U:return"StrictMode";case re:return"Suspense";case X:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case Y:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case se:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:R(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return R(e(t))}catch{}}return null}var le=Array.isArray,_=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},fe=[],me=-1;function S(e){return{current:e}}function B(e){0>me||(e.current=fe[me],fe[me]=null,me--)}function K(e,t){me++,fe[me]=e.current,e.current=t}var P=S(null),J=S(null),V=S(null),W=S(null);function ye(e,t){switch(K(V,t),K(J,e),K(P,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?em(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=em(t),e=tm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(P),K(P,e)}function Ne(){B(P),B(J),B(V)}function pl(e){e.memoizedState!==null&&K(W,e);var t=P.current,l=tm(t,e.type);t!==l&&(K(J,e),K(P,l))}function ma(e){J.current===e&&(B(P),B(J)),W.current===e&&(B(W),$n._currentValue=te)}var gl,Tr;function $l(e){if(gl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gl=t&&t[1]||"",Tr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+gl+e+Tr}var Bi=!1;function Li(e,t){if(!e||Bi)return"";Bi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(O){var A=O}Reflect.construct(e,[],k)}else{try{k.call()}catch(O){A=O}e.call(k.prototype)}}else{try{throw Error()}catch(O){A=O}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(O){if(O&&A&&typeof O.stack=="string")return[O.stack,A.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],m=i[1];if(c&&m){var N=c.split(`
|
|
44
|
+
`),M=m.split(`
|
|
45
|
+
`);for(s=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(a===N.length||s===M.length)for(a=N.length-1,s=M.length-1;1<=a&&0<=s&&N[a]!==M[s];)s--;for(;1<=a&&0<=s;a--,s--)if(N[a]!==M[s]){if(a!==1||s!==1)do if(a--,s--,0>s||N[a]!==M[s]){var q=`
|
|
46
|
+
`+N[a].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=a&&0<=s);break}}}finally{Bi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?$l(l):""}function X0(e,t){switch(e.tag){case 26:case 27:case 5:return $l(e.type);case 16:return $l("Lazy");case 13:return e.child!==t&&t!==null?$l("Suspense Fallback"):$l("Suspense");case 19:return $l("SuspenseList");case 0:case 15:return Li(e.type,!1);case 11:return Li(e.type.render,!1);case 1:return Li(e.type,!0);case 31:return $l("Activity");default:return""}}function Mr(e){try{var t="",l=null;do t+=X0(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Yi=Object.prototype.hasOwnProperty,ki=u.unstable_scheduleCallback,Gi=u.unstable_cancelCallback,V0=u.unstable_shouldYield,$0=u.unstable_requestPaint,vt=u.unstable_now,Z0=u.unstable_getCurrentPriorityLevel,Ar=u.unstable_ImmediatePriority,_r=u.unstable_UserBlockingPriority,os=u.unstable_NormalPriority,K0=u.unstable_LowPriority,zr=u.unstable_IdlePriority,J0=u.log,F0=u.unstable_setDisableYieldValue,an=null,pt=null;function bl(e){if(typeof J0=="function"&&F0(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(an,e)}catch{}}var gt=Math.clz32?Math.clz32:I0,W0=Math.log,P0=Math.LN2;function I0(e){return e>>>=0,e===0?32:31-(W0(e)/P0|0)|0}var ds=256,fs=262144,ms=4194304;function Zl(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 hs(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var s=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var m=a&134217727;return m!==0?(a=m&~i,a!==0?s=Zl(a):(c&=m,c!==0?s=Zl(c):l||(l=m&~e,l!==0&&(s=Zl(l))))):(m=a&~i,m!==0?s=Zl(m):c!==0?s=Zl(c):l||(l=a&~e,l!==0&&(s=Zl(l)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:s}function nn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eh(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 Dr(){var e=ms;return ms<<=1,(ms&62914560)===0&&(ms=4194304),e}function Qi(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function sn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function th(e,t,l,a,s,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var m=e.entanglements,N=e.expirationTimes,M=e.hiddenUpdates;for(l=c&~l;0<l;){var q=31-gt(l),k=1<<q;m[q]=0,N[q]=-1;var A=M[q];if(A!==null)for(M[q]=null,q=0;q<A.length;q++){var O=A[q];O!==null&&(O.lane&=-536870913)}l&=~k}a!==0&&Or(e,a,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Or(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-gt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Ur(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-gt(l),s=1<<a;s&t|e[a]&t&&(e[a]|=t),l&=~s}}function Hr(e,t){var l=t&-t;return l=(l&42)!==0?1:Xi(l),(l&(e.suspendedLanes|t))!==0?0:l}function Xi(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 Vi(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qr(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Em(e.type))}function Br(e,t){var l=$.p;try{return $.p=e,t()}finally{$.p=l}}var yl=Math.random().toString(36).slice(2),tt="__reactFiber$"+yl,rt="__reactProps$"+yl,ha="__reactContainer$"+yl,$i="__reactEvents$"+yl,lh="__reactListeners$"+yl,ah="__reactHandles$"+yl,Lr="__reactResources$"+yl,un="__reactMarker$"+yl;function Zi(e){delete e[tt],delete e[rt],delete e[$i],delete e[lh],delete e[ah]}function xa(e){var t=e[tt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ha]||l[tt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=cm(e);e!==null;){if(l=e[tt])return l;e=cm(e)}return t}e=l,l=e.parentNode}return null}function va(e){if(e=e[tt]||e[ha]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function cn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function pa(e){var t=e[Lr];return t||(t=e[Lr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[un]=!0}var Yr=new Set,kr={};function Kl(e,t){ga(e,t),ga(e+"Capture",t)}function ga(e,t){for(kr[e]=t,e=0;e<t.length;e++)Yr.add(t[e])}var nh=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]*$"),Gr={},Qr={};function sh(e){return Yi.call(Qr,e)?!0:Yi.call(Gr,e)?!1:nh.test(e)?Qr[e]=!0:(Gr[e]=!0,!1)}function xs(e,t,l){if(sh(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 vs(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 Ft(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 At(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ih(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 s=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.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 Ki(e){if(!e._valueTracker){var t=Xr(e)?"checked":"value";e._valueTracker=ih(e,t,""+e[t])}}function Vr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Xr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ps(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 uh=/[\n"\\]/g;function _t(e){return e.replace(uh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ji(e,t,l,a,s,i,c,m){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+At(t)):e.value!==""+At(t)&&(e.value=""+At(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?Fi(e,c,At(t)):l!=null?Fi(e,c,At(l)):a!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+At(m):e.removeAttribute("name")}function $r(e,t,l,a,s,i,c,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Ki(e);return}l=l!=null?""+At(l):"",t=t!=null?""+At(t):l,m||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=m?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Ki(e)}function Fi(e,t,l){t==="number"&&ps(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ba(e,t,l,a){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&a&&(e[l].defaultSelected=!0)}else{for(l=""+At(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Zr(e,t,l){if(t!=null&&(t=""+At(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+At(l):""}function Kr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(le(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=At(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ki(e)}function ya(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var ch=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 Jr(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||ch.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Fr(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 s in t)a=t[s],t.hasOwnProperty(s)&&l[s]!==a&&Jr(e,s,a)}else for(var i in t)t.hasOwnProperty(i)&&Jr(e,i,t[i])}function Wi(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 rh=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"]]),oh=/^[\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 gs(e){return oh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Wt(){}var Pi=null;function Ii(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ja=null,Na=null;function Wr(e){var t=va(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ji(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 s=a[rt]||null;if(!s)throw Error(r(90));Ji(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Vr(a)}break e;case"textarea":Zr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ba(e,!!l.multiple,t,!1)}}}var eu=!1;function Pr(e,t,l){if(eu)return e(t,l);eu=!0;try{var a=e(t);return a}finally{if(eu=!1,(ja!==null||Na!==null)&&(si(),ja&&(t=ja,e=Na,Na=ja=null,Wr(t),e)))for(t=0;t<e.length;t++)Wr(e[t])}}function rn(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"),tu=!1;if(Pt)try{var on={};Object.defineProperty(on,"passive",{get:function(){tu=!0}}),window.addEventListener("test",on,on),window.removeEventListener("test",on,on)}catch{tu=!1}var jl=null,lu=null,bs=null;function Ir(){if(bs)return bs;var e,t=lu,l=t.length,a,s="value"in jl?jl.value:jl.textContent,i=s.length;for(e=0;e<l&&t[e]===s[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===s[i-a];a++);return bs=s.slice(e,1<a?1-a:void 0)}function ys(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 js(){return!0}function eo(){return!1}function ot(e){function t(l,a,s,i,c){this._reactName=l,this._targetInst=s,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(l=e[m],this[m]=l?l(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?js:eo,this.isPropagationStopped=eo,this}return p(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=js)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),t}var Jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=ot(Jl),dn=p({},Jl,{view:0,detail:0}),dh=ot(dn),au,nu,fn,Ss=p({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iu,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!==fn&&(fn&&e.type==="mousemove"?(au=e.screenX-fn.screenX,nu=e.screenY-fn.screenY):nu=au=0,fn=e),au)},movementY:function(e){return"movementY"in e?e.movementY:nu}}),to=ot(Ss),fh=p({},Ss,{dataTransfer:0}),mh=ot(fh),hh=p({},dn,{relatedTarget:0}),su=ot(hh),xh=p({},Jl,{animationName:0,elapsedTime:0,pseudoElement:0}),vh=ot(xh),ph=p({},Jl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gh=ot(ph),bh=p({},Jl,{data:0}),lo=ot(bh),yh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jh={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"},Nh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nh[e])?!!t[e]:!1}function iu(){return Sh}var Eh=p({},dn,{key:function(e){if(e.key){var t=yh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ys(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iu,charCode:function(e){return e.type==="keypress"?ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wh=ot(Eh),Ch=p({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ao=ot(Ch),Rh=p({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iu}),Th=ot(Rh),Mh=p({},Jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ah=ot(Mh),_h=p({},Ss,{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}),zh=ot(_h),Dh=p({},Jl,{newState:0,oldState:0}),Oh=ot(Dh),Uh=[9,13,27,32],uu=Pt&&"CompositionEvent"in window,mn=null;Pt&&"documentMode"in document&&(mn=document.documentMode);var Hh=Pt&&"TextEvent"in window&&!mn,no=Pt&&(!uu||mn&&8<mn&&11>=mn),so=" ",io=!1;function uo(e,t){switch(e){case"keyup":return Uh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sa=!1;function qh(e,t){switch(e){case"compositionend":return co(t);case"keypress":return t.which!==32?null:(io=!0,so);case"textInput":return e=t.data,e===so&&io?null:e;default:return null}}function Bh(e,t){if(Sa)return e==="compositionend"||!uu&&uo(e,t)?(e=Ir(),bs=lu=jl=null,Sa=!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 no&&t.locale!=="ko"?null:t.data;default:return null}}var Lh={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 ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lh[e.type]:t==="textarea"}function oo(e,t,l,a){ja?Na?Na.push(a):Na=[a]:ja=a,t=fi(t,"onChange"),0<t.length&&(l=new Ns("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var hn=null,xn=null;function Yh(e){Kf(e,0)}function Es(e){var t=cn(e);if(Vr(t))return e}function fo(e,t){if(e==="change")return t}var mo=!1;if(Pt){var cu;if(Pt){var ru="oninput"in document;if(!ru){var ho=document.createElement("div");ho.setAttribute("oninput","return;"),ru=typeof ho.oninput=="function"}cu=ru}else cu=!1;mo=cu&&(!document.documentMode||9<document.documentMode)}function xo(){hn&&(hn.detachEvent("onpropertychange",vo),xn=hn=null)}function vo(e){if(e.propertyName==="value"&&Es(xn)){var t=[];oo(t,xn,e,Ii(e)),Pr(Yh,t)}}function kh(e,t,l){e==="focusin"?(xo(),hn=t,xn=l,hn.attachEvent("onpropertychange",vo)):e==="focusout"&&xo()}function Gh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Es(xn)}function Qh(e,t){if(e==="click")return Es(t)}function Xh(e,t){if(e==="input"||e==="change")return Es(t)}function Vh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Vh;function vn(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 s=l[a];if(!Yi.call(t,s)||!bt(e[s],t[s]))return!1}return!0}function po(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var l=po(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=po(l)}}function bo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ps(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=ps(e.document)}return t}function ou(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 $h=Pt&&"documentMode"in document&&11>=document.documentMode,Ea=null,du=null,pn=null,fu=!1;function jo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;fu||Ea==null||Ea!==ps(a)||(a=Ea,"selectionStart"in a&&ou(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}),pn&&vn(pn,a)||(pn=a,a=fi(du,"onSelect"),0<a.length&&(t=new Ns("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Ea)))}function Fl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var wa={animationend:Fl("Animation","AnimationEnd"),animationiteration:Fl("Animation","AnimationIteration"),animationstart:Fl("Animation","AnimationStart"),transitionrun:Fl("Transition","TransitionRun"),transitionstart:Fl("Transition","TransitionStart"),transitioncancel:Fl("Transition","TransitionCancel"),transitionend:Fl("Transition","TransitionEnd")},mu={},No={};Pt&&(No=document.createElement("div").style,"AnimationEvent"in window||(delete wa.animationend.animation,delete wa.animationiteration.animation,delete wa.animationstart.animation),"TransitionEvent"in window||delete wa.transitionend.transition);function Wl(e){if(mu[e])return mu[e];if(!wa[e])return e;var t=wa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in No)return mu[e]=t[l];return e}var So=Wl("animationend"),Eo=Wl("animationiteration"),wo=Wl("animationstart"),Zh=Wl("transitionrun"),Kh=Wl("transitionstart"),Jh=Wl("transitioncancel"),Co=Wl("transitionend"),Ro=new Map,hu="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(" ");hu.push("scrollEnd");function kt(e,t){Ro.set(e,t),Kl(t,[e])}var ws=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)},zt=[],Ca=0,xu=0;function Cs(){for(var e=Ca,t=xu=Ca=0;t<e;){var l=zt[t];zt[t++]=null;var a=zt[t];zt[t++]=null;var s=zt[t];zt[t++]=null;var i=zt[t];if(zt[t++]=null,a!==null&&s!==null){var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}i!==0&&To(l,s,i)}}function Rs(e,t,l,a){zt[Ca++]=e,zt[Ca++]=t,zt[Ca++]=l,zt[Ca++]=a,xu|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function vu(e,t,l,a){return Rs(e,t,l,a),Ts(e)}function Pl(e,t){return Rs(e,null,null,t),Ts(e)}function To(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var s=!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||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-gt(l),e=i.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=l|536870912),i):null}function Ts(e){if(50<Ln)throw Ln=0,wc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ra={};function Fh(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 Fh(e,t,l,a)}function pu(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 Mo(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 Ms(e,t,l,a,s,i){var c=0;if(a=e,typeof e=="function")pu(e)&&(c=1);else if(typeof e=="string")c=tv(e,l,P.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=yt(31,l,t,s),e.elementType=ue,e.lanes=i,e;case y:return Il(l.children,s,i,t);case U:c=8,s|=24;break;case Q:return e=yt(12,l,t,s|2),e.elementType=Q,e.lanes=i,e;case re:return e=yt(13,l,t,s),e.elementType=re,e.lanes=i,e;case X:return e=yt(19,l,t,s),e.elementType=X,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:c=10;break e;case G:c=9;break e;case se:c=11;break e;case F:c=14;break e;case ae: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,s),t.elementType=e,t.type=a,t.lanes=i,t}function Il(e,t,l,a){return e=yt(7,e,a,t),e.lanes=l,e}function gu(e,t,l){return e=yt(6,e,null,t),e.lanes=l,e}function Ao(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function bu(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 _o=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var l=_o.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Mr(t)},_o.set(e,t),t)}return{value:e,source:t,stack:Mr(t)}}var Ta=[],Ma=0,As=null,gn=0,Ot=[],Ut=0,Nl=null,Xt=1,Vt="";function el(e,t){Ta[Ma++]=gn,Ta[Ma++]=As,As=e,gn=t}function zo(e,t,l){Ot[Ut++]=Xt,Ot[Ut++]=Vt,Ot[Ut++]=Nl,Nl=e;var a=Xt;e=Vt;var s=32-gt(a)-1;a&=~(1<<s),l+=1;var i=32-gt(t)+s;if(30<i){var c=s-s%5;i=(a&(1<<c)-1).toString(32),a>>=c,s-=c,Xt=1<<32-gt(t)+s|l<<s|a,Vt=i+e}else Xt=1<<i|l<<s|a,Vt=e}function yu(e){e.return!==null&&(el(e,1),zo(e,1,0))}function ju(e){for(;e===As;)As=Ta[--Ma],Ta[Ma]=null,gn=Ta[--Ma],Ta[Ma]=null;for(;e===Nl;)Nl=Ot[--Ut],Ot[Ut]=null,Vt=Ot[--Ut],Ot[Ut]=null,Xt=Ot[--Ut],Ot[Ut]=null}function Do(e,t){Ot[Ut++]=Xt,Ot[Ut++]=Vt,Ot[Ut++]=Nl,Xt=t.id,Vt=t.overflow,Nl=e}var lt=null,Be=null,je=!1,Sl=null,Ht=!1,Nu=Error(r(519));function El(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bn(Dt(t,e)),Nu}function Oo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[tt]=e,t[rt]=a,l){case"dialog":ve("cancel",t),ve("close",t);break;case"iframe":case"object":case"embed":ve("load",t);break;case"video":case"audio":for(l=0;l<kn.length;l++)ve(kn[l],t);break;case"source":ve("error",t);break;case"img":case"image":case"link":ve("error",t),ve("load",t);break;case"details":ve("toggle",t);break;case"input":ve("invalid",t),$r(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ve("invalid",t);break;case"textarea":ve("invalid",t),Kr(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||Pf(t.textContent,l)?(a.popover!=null&&(ve("beforetoggle",t),ve("toggle",t)),a.onScroll!=null&&ve("scroll",t),a.onScrollEnd!=null&&ve("scrollend",t),a.onClick!=null&&(t.onclick=Wt),t=!0):t=!1,t||El(e,!0)}function Uo(e){for(lt=e.return;lt;)switch(lt.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:lt=lt.return}}function Aa(e){if(e!==lt)return!1;if(!je)return Uo(e),je=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Yc(e.type,e.memoizedProps)),l=!l),l&&Be&&El(e),Uo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Be=um(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Be=um(e)}else t===27?(t=Be,Bl(e.type)?(e=Vc,Vc=null,Be=e):Be=t):Be=lt?Bt(e.stateNode.nextSibling):null;return!0}function ea(){Be=lt=null,je=!1}function Su(){var e=Sl;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),Sl=null),e}function bn(e){Sl===null?Sl=[e]:Sl.push(e)}var Eu=S(null),ta=null,tl=null;function wl(e,t,l){K(Eu,t._currentValue),t._currentValue=l}function ll(e){e._currentValue=Eu.current,B(Eu)}function wu(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 Cu(e,t,l,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var c=s.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=s;for(var N=0;N<t.length;N++)if(m.context===t[N]){i.lanes|=l,m=i.alternate,m!==null&&(m.lanes|=l),wu(i.return,l,e),a||(c=null);break e}i=m.next}}else if(s.tag===18){if(c=s.return,c===null)throw Error(r(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),wu(c,l,e),c=null}else c=s.child;if(c!==null)c.return=s;else for(c=s;c!==null;){if(c===e){c=null;break}if(s=c.sibling,s!==null){s.return=c.return,c=s;break}c=c.return}s=c}}function _a(e,t,l,a){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var c=s.alternate;if(c===null)throw Error(r(387));if(c=c.memoizedProps,c!==null){var m=s.type;bt(s.pendingProps.value,c.value)||(e!==null?e.push(m):e=[m])}}else if(s===W.current){if(c=s.alternate,c===null)throw Error(r(387));c.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push($n):e=[$n])}s=s.return}e!==null&&Cu(t,e,l,a),t.flags|=262144}function _s(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function la(e){ta=e,tl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Ho(ta,e)}function zs(e,t){return ta===null&&la(e),Ho(e,t)}function Ho(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 Wh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ph=u.unstable_scheduleCallback,Ih=u.unstable_NormalPriority,$e={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ru(){return{controller:new Wh,data:new Map,refCount:0}}function yn(e){e.refCount--,e.refCount===0&&Ph(Ih,function(){e.controller.abort()})}var jn=null,Tu=0,za=0,Da=null;function ex(e,t){if(jn===null){var l=jn=[];Tu=0,za=_c(),Da={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Tu++,t.then(qo,qo),t}function qo(){if(--Tu===0&&jn!==null){Da!==null&&(Da.status="fulfilled");var e=jn;jn=null,za=0,Da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tx(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),a}var Bo=_.S;_.S=function(e,t){Nf=vt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ex(e,t),Bo!==null&&Bo(e,t)};var aa=S(null);function Mu(){var e=aa.current;return e!==null?e:Oe.pooledCache}function Ds(e,t){t===null?K(aa,aa.current):K(aa,t.pool)}function Lo(){var e=Mu();return e===null?null:{parent:$e._currentValue,pool:e}}var Oa=Error(r(460)),Au=Error(r(474)),Os=Error(r(542)),Us={then:function(){}};function Yo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ko(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Wt,Wt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qo(e),e;default:if(typeof t.status=="string")t.then(Wt,Wt);else{if(e=Oe,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qo(e),e}throw sa=t,Oa}}function na(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(sa=l,Oa):l}}var sa=null;function Go(){if(sa===null)throw Error(r(459));var e=sa;return sa=null,e}function Qo(e){if(e===Oa||e===Os)throw Error(r(483))}var Ua=null,Nn=0;function Hs(e){var t=Nn;return Nn+=1,Ua===null&&(Ua=[]),ko(Ua,e,t)}function Sn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qs(e,t){throw t.$$typeof===D?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xo(e){function t(w,E){if(e){var T=w.deletions;T===null?(w.deletions=[E],w.flags|=16):T.push(E)}}function l(w,E){if(!e)return null;for(;E!==null;)t(w,E),E=E.sibling;return null}function a(w){for(var E=new Map;w!==null;)w.key!==null?E.set(w.key,w):E.set(w.index,w),w=w.sibling;return E}function s(w,E){return w=It(w,E),w.index=0,w.sibling=null,w}function i(w,E,T){return w.index=T,e?(T=w.alternate,T!==null?(T=T.index,T<E?(w.flags|=67108866,E):T):(w.flags|=67108866,E)):(w.flags|=1048576,E)}function c(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function m(w,E,T,L){return E===null||E.tag!==6?(E=gu(T,w.mode,L),E.return=w,E):(E=s(E,T),E.return=w,E)}function N(w,E,T,L){var ne=T.type;return ne===y?q(w,E,T.props.children,L,T.key):E!==null&&(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&na(ne)===E.type)?(E=s(E,T.props),Sn(E,T),E.return=w,E):(E=Ms(T.type,T.key,T.props,null,w.mode,L),Sn(E,T),E.return=w,E)}function M(w,E,T,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==T.containerInfo||E.stateNode.implementation!==T.implementation?(E=bu(T,w.mode,L),E.return=w,E):(E=s(E,T.children||[]),E.return=w,E)}function q(w,E,T,L,ne){return E===null||E.tag!==7?(E=Il(T,w.mode,L,ne),E.return=w,E):(E=s(E,T),E.return=w,E)}function k(w,E,T){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=gu(""+E,w.mode,T),E.return=w,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case z:return T=Ms(E.type,E.key,E.props,null,w.mode,T),Sn(T,E),T.return=w,T;case H:return E=bu(E,w.mode,T),E.return=w,E;case ae:return E=na(E),k(w,E,T)}if(le(E)||Te(E))return E=Il(E,w.mode,T,null),E.return=w,E;if(typeof E.then=="function")return k(w,Hs(E),T);if(E.$$typeof===Y)return k(w,zs(w,E),T);qs(w,E)}return null}function A(w,E,T,L){var ne=E!==null?E.key:null;if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return ne!==null?null:m(w,E,""+T,L);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case z:return T.key===ne?N(w,E,T,L):null;case H:return T.key===ne?M(w,E,T,L):null;case ae:return T=na(T),A(w,E,T,L)}if(le(T)||Te(T))return ne!==null?null:q(w,E,T,L,null);if(typeof T.then=="function")return A(w,E,Hs(T),L);if(T.$$typeof===Y)return A(w,E,zs(w,T),L);qs(w,T)}return null}function O(w,E,T,L,ne){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return w=w.get(T)||null,m(E,w,""+L,ne);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case z:return w=w.get(L.key===null?T:L.key)||null,N(E,w,L,ne);case H:return w=w.get(L.key===null?T:L.key)||null,M(E,w,L,ne);case ae:return L=na(L),O(w,E,T,L,ne)}if(le(L)||Te(L))return w=w.get(T)||null,q(E,w,L,ne,null);if(typeof L.then=="function")return O(w,E,T,Hs(L),ne);if(L.$$typeof===Y)return O(w,E,T,zs(E,L),ne);qs(E,L)}return null}function I(w,E,T,L){for(var ne=null,Ee=null,ee=E,he=E=0,ge=null;ee!==null&&he<T.length;he++){ee.index>he?(ge=ee,ee=null):ge=ee.sibling;var we=A(w,ee,T[he],L);if(we===null){ee===null&&(ee=ge);break}e&&ee&&we.alternate===null&&t(w,ee),E=i(we,E,he),Ee===null?ne=we:Ee.sibling=we,Ee=we,ee=ge}if(he===T.length)return l(w,ee),je&&el(w,he),ne;if(ee===null){for(;he<T.length;he++)ee=k(w,T[he],L),ee!==null&&(E=i(ee,E,he),Ee===null?ne=ee:Ee.sibling=ee,Ee=ee);return je&&el(w,he),ne}for(ee=a(ee);he<T.length;he++)ge=O(ee,w,he,T[he],L),ge!==null&&(e&&ge.alternate!==null&&ee.delete(ge.key===null?he:ge.key),E=i(ge,E,he),Ee===null?ne=ge:Ee.sibling=ge,Ee=ge);return e&&ee.forEach(function(Ql){return t(w,Ql)}),je&&el(w,he),ne}function ie(w,E,T,L){if(T==null)throw Error(r(151));for(var ne=null,Ee=null,ee=E,he=E=0,ge=null,we=T.next();ee!==null&&!we.done;he++,we=T.next()){ee.index>he?(ge=ee,ee=null):ge=ee.sibling;var Ql=A(w,ee,we.value,L);if(Ql===null){ee===null&&(ee=ge);break}e&&ee&&Ql.alternate===null&&t(w,ee),E=i(Ql,E,he),Ee===null?ne=Ql:Ee.sibling=Ql,Ee=Ql,ee=ge}if(we.done)return l(w,ee),je&&el(w,he),ne;if(ee===null){for(;!we.done;he++,we=T.next())we=k(w,we.value,L),we!==null&&(E=i(we,E,he),Ee===null?ne=we:Ee.sibling=we,Ee=we);return je&&el(w,he),ne}for(ee=a(ee);!we.done;he++,we=T.next())we=O(ee,w,he,we.value,L),we!==null&&(e&&we.alternate!==null&&ee.delete(we.key===null?he:we.key),E=i(we,E,he),Ee===null?ne=we:Ee.sibling=we,Ee=we);return e&&ee.forEach(function(fv){return t(w,fv)}),je&&el(w,he),ne}function De(w,E,T,L){if(typeof T=="object"&&T!==null&&T.type===y&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case z:e:{for(var ne=T.key;E!==null;){if(E.key===ne){if(ne=T.type,ne===y){if(E.tag===7){l(w,E.sibling),L=s(E,T.props.children),L.return=w,w=L;break e}}else if(E.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===ae&&na(ne)===E.type){l(w,E.sibling),L=s(E,T.props),Sn(L,T),L.return=w,w=L;break e}l(w,E);break}else t(w,E);E=E.sibling}T.type===y?(L=Il(T.props.children,w.mode,L,T.key),L.return=w,w=L):(L=Ms(T.type,T.key,T.props,null,w.mode,L),Sn(L,T),L.return=w,w=L)}return c(w);case H:e:{for(ne=T.key;E!==null;){if(E.key===ne)if(E.tag===4&&E.stateNode.containerInfo===T.containerInfo&&E.stateNode.implementation===T.implementation){l(w,E.sibling),L=s(E,T.children||[]),L.return=w,w=L;break e}else{l(w,E);break}else t(w,E);E=E.sibling}L=bu(T,w.mode,L),L.return=w,w=L}return c(w);case ae:return T=na(T),De(w,E,T,L)}if(le(T))return I(w,E,T,L);if(Te(T)){if(ne=Te(T),typeof ne!="function")throw Error(r(150));return T=ne.call(T),ie(w,E,T,L)}if(typeof T.then=="function")return De(w,E,Hs(T),L);if(T.$$typeof===Y)return De(w,E,zs(w,T),L);qs(w,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,E!==null&&E.tag===6?(l(w,E.sibling),L=s(E,T),L.return=w,w=L):(l(w,E),L=gu(T,w.mode,L),L.return=w,w=L),c(w)):l(w,E)}return function(w,E,T,L){try{Nn=0;var ne=De(w,E,T,L);return Ua=null,ne}catch(ee){if(ee===Oa||ee===Os)throw ee;var Ee=yt(29,ee,null,w.mode);return Ee.lanes=L,Ee.return=w,Ee}finally{}}}var ia=Xo(!0),Vo=Xo(!1),Cl=!1;function _u(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zu(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 Rl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Tl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=Ts(e),To(e,null,l),t}return Rs(e,a,t,l),Ts(e)}function En(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,Ur(e,l)}}function Du(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var s=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?s=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?s=i=t:i=i.next=t}else s=i=t;l={baseState:a.baseState,firstBaseUpdate:s,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 Ou=!1;function wn(){if(Ou){var e=Da;if(e!==null)throw e}}function Cn(e,t,l,a){Ou=!1;var s=e.updateQueue;Cl=!1;var i=s.firstBaseUpdate,c=s.lastBaseUpdate,m=s.shared.pending;if(m!==null){s.shared.pending=null;var N=m,M=N.next;N.next=null,c===null?i=M:c.next=M,c=N;var q=e.alternate;q!==null&&(q=q.updateQueue,m=q.lastBaseUpdate,m!==c&&(m===null?q.firstBaseUpdate=M:m.next=M,q.lastBaseUpdate=N))}if(i!==null){var k=s.baseState;c=0,q=M=N=null,m=i;do{var A=m.lane&-536870913,O=A!==m.lane;if(O?(pe&A)===A:(a&A)===A){A!==0&&A===za&&(Ou=!0),q!==null&&(q=q.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var I=e,ie=m;A=t;var De=l;switch(ie.tag){case 1:if(I=ie.payload,typeof I=="function"){k=I.call(De,k,A);break e}k=I;break e;case 3:I.flags=I.flags&-65537|128;case 0:if(I=ie.payload,A=typeof I=="function"?I.call(De,k,A):I,A==null)break e;k=p({},k,A);break e;case 2:Cl=!0}}A=m.callback,A!==null&&(e.flags|=64,O&&(e.flags|=8192),O=s.callbacks,O===null?s.callbacks=[A]:O.push(A))}else O={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},q===null?(M=q=O,N=k):q=q.next=O,c|=A;if(m=m.next,m===null){if(m=s.shared.pending,m===null)break;O=m,m=O.next,O.next=null,s.lastBaseUpdate=O,s.shared.pending=null}}while(!0);q===null&&(N=k),s.baseState=N,s.firstBaseUpdate=M,s.lastBaseUpdate=q,i===null&&(s.shared.lanes=0),Dl|=c,e.lanes=c,e.memoizedState=k}}function $o(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Zo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)$o(l[e],t)}var Ha=S(null),Bs=S(0);function Ko(e,t){e=dl,K(Bs,e),K(Ha,t),dl=e|t.baseLanes}function Uu(){K(Bs,dl),K(Ha,Ha.current)}function Hu(){dl=Bs.current,B(Ha),B(Bs)}var jt=S(null),qt=null;function Ml(e){var t=e.alternate;K(Xe,Xe.current&1),K(jt,e),qt===null&&(t===null||Ha.current!==null||t.memoizedState!==null)&&(qt=e)}function qu(e){K(Xe,Xe.current),K(jt,e),qt===null&&(qt=e)}function Jo(e){e.tag===22?(K(Xe,Xe.current),K(jt,e),qt===null&&(qt=e)):Al()}function Al(){K(Xe,Xe.current),K(jt,jt.current)}function Nt(e){B(jt),qt===e&&(qt=null),B(Xe)}var Xe=S(0);function Ls(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Qc(l)||Xc(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,de=null,_e=null,Ze=null,Ys=!1,qa=!1,ua=!1,ks=0,Rn=0,Ba=null,lx=0;function Ge(){throw Error(r(321))}function Bu(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 Lu(e,t,l,a,s,i){return al=i,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?zd:ec,ua=!1,i=l(a,s),ua=!1,qa&&(i=Wo(t,l,a,s)),Fo(e),i}function Fo(e){_.H=An;var t=_e!==null&&_e.next!==null;if(al=0,Ze=_e=de=null,Ys=!1,Rn=0,Ba=null,t)throw Error(r(300));e===null||Ke||(e=e.dependencies,e!==null&&_s(e)&&(Ke=!0))}function Wo(e,t,l,a){de=e;var s=0;do{if(qa&&(Ba=null),Rn=0,qa=!1,25<=s)throw Error(r(301));if(s+=1,Ze=_e=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}_.H=Dd,i=t(l,a)}while(qa);return i}function ax(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?Tn(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(de.flags|=1024),t}function Yu(){var e=ks!==0;return ks=0,e}function ku(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Gu(e){if(Ys){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ys=!1}al=0,Ze=_e=de=null,qa=!1,Rn=ks=0,Ba=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?de.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Ve(){if(_e===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ze===null?de.memoizedState:Ze.next;if(t!==null)Ze=t,_e=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ze===null?de.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Gs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tn(e){var t=Rn;return Rn+=1,Ba===null&&(Ba=[]),e=ko(Ba,e,t),t=de,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?zd:ec),e}function Qs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tn(e);if(e.$$typeof===Y)return at(e)}throw Error(r(438,String(e)))}function Qu(e){var t=null,l=de.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=de.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Gs(),de.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 Xs(e){var t=Ve();return Xu(t,_e,e)}function Xu(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var s=e.baseQueue,i=a.pending;if(i!==null){if(s!==null){var c=s.next;s.next=i.next,i.next=c}t.baseQueue=s=i,a.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var m=c=null,N=null,M=t,q=!1;do{var k=M.lane&-536870913;if(k!==M.lane?(pe&k)===k:(al&k)===k){var A=M.revertLane;if(A===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),k===za&&(q=!0);else if((al&A)===A){M=M.next,A===za&&(q=!0);continue}else k={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},N===null?(m=N=k,c=i):N=N.next=k,de.lanes|=A,Dl|=A;k=M.action,ua&&l(i,k),i=M.hasEagerState?M.eagerState:l(i,k)}else A={lane:k,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},N===null?(m=N=A,c=i):N=N.next=A,de.lanes|=k,Dl|=k;M=M.next}while(M!==null&&M!==t);if(N===null?c=i:N.next=m,!bt(i,e.memoizedState)&&(Ke=!0,q&&(l=Da,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=N,a.lastRenderedState=i}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Vu(e){var t=Ve(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,s=l.pending,i=t.memoizedState;if(s!==null){l.pending=null;var c=s=s.next;do i=e(i,c.action),c=c.next;while(c!==s);bt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Po(e,t,l){var a=de,s=Ve(),i=je;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var c=!bt((_e||s).memoizedState,l);if(c&&(s.memoizedState=l,Ke=!0),s=s.queue,Ku(td.bind(null,a,s,e),[e]),s.getSnapshot!==t||c||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,La(9,{destroy:void 0},ed.bind(null,a,s,l,t),null),Oe===null)throw Error(r(349));i||(al&127)!==0||Io(a,t,l)}return l}function Io(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=de.updateQueue,t===null?(t=Gs(),de.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ed(e,t,l,a){t.value=l,t.getSnapshot=a,ld(t)&&ad(e)}function td(e,t,l){return l(function(){ld(t)&&ad(e)})}function ld(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!bt(e,l)}catch{return!0}}function ad(e){var t=Pl(e,2);t!==null&&xt(t,e,2)}function $u(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),ua){bl(!0);try{l()}finally{bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:e},t}function nd(e,t,l,a){return e.baseState=l,Xu(e,_e,typeof a=="function"?a:nl)}function nx(e,t,l,a,s){if(Zs(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};_.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,sd(t,i)):(i.next=l.next,t.pending=l.next=i)}}function sd(e,t){var l=t.action,a=t.payload,s=e.state;if(t.isTransition){var i=_.T,c={};_.T=c;try{var m=l(s,a),N=_.S;N!==null&&N(c,m),id(e,t,m)}catch(M){Zu(e,t,M)}finally{i!==null&&c.types!==null&&(i.types=c.types),_.T=i}}else try{i=l(s,a),id(e,t,i)}catch(M){Zu(e,t,M)}}function id(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ud(e,t,a)},function(a){return Zu(e,t,a)}):ud(e,t,l)}function ud(e,t,l){t.status="fulfilled",t.value=l,cd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,sd(e,l)))}function Zu(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,cd(t),t=t.next;while(t!==a)}e.action=null}function cd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rd(e,t){return t}function od(e,t){if(je){var l=Oe.formState;if(l!==null){e:{var a=de;if(je){if(Be){t:{for(var s=Be,i=Ht;s.nodeType!==8;){if(!i){s=null;break t}if(s=Bt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){Be=Bt(s.nextSibling),a=s.data==="F!";break e}}El(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rd,lastRenderedState:t},l.queue=a,l=Md.bind(null,de,a),a.dispatch=l,a=$u(!1),i=Iu.bind(null,de,!1,a.queue),a=ct(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,l=nx.bind(null,de,s,i,l),s.dispatch=l,a.memoizedState=e,[t,l,!1]}function dd(e){var t=Ve();return fd(t,_e,e)}function fd(e,t,l){if(t=Xu(e,t,rd)[0],e=Xs(nl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tn(t)}catch(c){throw c===Oa?Os:c}else a=t;t=Ve();var s=t.queue,i=s.dispatch;return l!==t.memoizedState&&(de.flags|=2048,La(9,{destroy:void 0},sx.bind(null,s,l),null)),[a,i,e]}function sx(e,t){e.action=t}function md(e){var t=Ve(),l=_e;if(l!==null)return fd(t,l,e);Ve(),t=t.memoizedState,l=Ve();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function La(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=de.updateQueue,t===null&&(t=Gs(),de.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 hd(){return Ve().memoizedState}function Vs(e,t,l,a){var s=ct();de.flags|=e,s.memoizedState=La(1|t,{destroy:void 0},l,a===void 0?null:a)}function $s(e,t,l,a){var s=Ve();a=a===void 0?null:a;var i=s.memoizedState.inst;_e!==null&&a!==null&&Bu(a,_e.memoizedState.deps)?s.memoizedState=La(t,i,l,a):(de.flags|=e,s.memoizedState=La(1|t,i,l,a))}function xd(e,t){Vs(8390656,8,e,t)}function Ku(e,t){$s(2048,8,e,t)}function ix(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Gs(),de.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function vd(e){var t=Ve().memoizedState;return ix({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function pd(e,t){return $s(4,2,e,t)}function gd(e,t){return $s(4,4,e,t)}function bd(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 yd(e,t,l){l=l!=null?l.concat([e]):null,$s(4,4,bd.bind(null,t,e),l)}function Ju(){}function jd(e,t){var l=Ve();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Bu(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Nd(e,t){var l=Ve();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Bu(t,a[1]))return a[0];if(a=e(),ua){bl(!0);try{e()}finally{bl(!1)}}return l.memoizedState=[a,t],a}function Fu(e,t,l){return l===void 0||(al&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ef(),de.lanes|=e,Dl|=e,l)}function Sd(e,t,l,a){return bt(l,t)?l:Ha.current!==null?(e=Fu(e,l,a),bt(e,t)||(Ke=!0),e):(al&42)===0||(al&1073741824)!==0&&(pe&261930)===0?(Ke=!0,e.memoizedState=l):(e=Ef(),de.lanes|=e,Dl|=e,t)}function Ed(e,t,l,a,s){var i=$.p;$.p=i!==0&&8>i?i:8;var c=_.T,m={};_.T=m,Iu(e,!1,t,l);try{var N=s(),M=_.S;if(M!==null&&M(m,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var q=tx(N,a);Mn(e,t,q,wt(e))}else Mn(e,t,a,wt(e))}catch(k){Mn(e,t,{then:function(){},status:"rejected",reason:k},wt())}finally{$.p=i,c!==null&&m.types!==null&&(c.types=m.types),_.T=c}}function ux(){}function Wu(e,t,l,a){if(e.tag!==5)throw Error(r(476));var s=wd(e).queue;Ed(e,s,t,te,l===null?ux:function(){return Cd(e),l(a)})}function wd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:te},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:nl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cd(e){var t=wd(e);t.next===null&&(t=e.alternate.memoizedState),Mn(e,t.next.queue,{},wt())}function Pu(){return at($n)}function Rd(){return Ve().memoizedState}function Td(){return Ve().memoizedState}function cx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=wt();e=Rl(l);var a=Tl(t,e,l);a!==null&&(xt(a,t,l),En(a,t,l)),t={cache:Ru()},e.payload=t;return}t=t.return}}function rx(e,t,l){var a=wt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zs(e)?Ad(t,l):(l=vu(e,t,l,a),l!==null&&(xt(l,e,a),_d(l,t,a)))}function Md(e,t,l){var a=wt();Mn(e,t,l,a)}function Mn(e,t,l,a){var s={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Zs(e))Ad(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,m=i(c,l);if(s.hasEagerState=!0,s.eagerState=m,bt(m,c))return Rs(e,t,s,0),Oe===null&&Cs(),!1}catch{}finally{}if(l=vu(e,t,s,a),l!==null)return xt(l,e,a),_d(l,t,a),!0}return!1}function Iu(e,t,l,a){if(a={lane:2,revertLane:_c(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Zs(e)){if(t)throw Error(r(479))}else t=vu(e,l,a,2),t!==null&&xt(t,e,2)}function Zs(e){var t=e.alternate;return e===de||t!==null&&t===de}function Ad(e,t){qa=Ys=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _d(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ur(e,l)}}var An={readContext:at,use:Qs,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};An.useEffectEvent=Ge;var zd={readContext:at,use:Qs,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:xd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Vs(4194308,4,bd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){Vs(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(ua){bl(!0);try{e()}finally{bl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var s=l(t);if(ua){bl(!0);try{l(t)}finally{bl(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=rx.bind(null,de,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=$u(e);var t=e.queue,l=Md.bind(null,de,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ju,useDeferredValue:function(e,t){var l=ct();return Fu(l,e,t)},useTransition:function(){var e=$u(!1);return e=Ed.bind(null,de,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=de,s=ct();if(je){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Oe===null)throw Error(r(349));(pe&127)!==0||Io(a,t,l)}s.memoizedState=l;var i={value:l,getSnapshot:t};return s.queue=i,xd(td.bind(null,a,i,e),[e]),a.flags|=2048,La(9,{destroy:void 0},ed.bind(null,a,i,l,t),null),l},useId:function(){var e=ct(),t=Oe.identifierPrefix;if(je){var l=Vt,a=Xt;l=(a&~(1<<32-gt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=ks++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pu,useFormState:od,useActionState:od,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=Iu.bind(null,de,!0,l),l.dispatch=t,[e,t]},useMemoCache:Qu,useCacheRefresh:function(){return ct().memoizedState=cx.bind(null,de)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},ec={readContext:at,use:Qs,useCallback:jd,useContext:at,useEffect:Ku,useImperativeHandle:yd,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:Nd,useReducer:Xs,useRef:hd,useState:function(){return Xs(nl)},useDebugValue:Ju,useDeferredValue:function(e,t){var l=Ve();return Sd(l,_e.memoizedState,e,t)},useTransition:function(){var e=Xs(nl)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Tn(e),t]},useSyncExternalStore:Po,useId:Rd,useHostTransitionStatus:Pu,useFormState:dd,useActionState:dd,useOptimistic:function(e,t){var l=Ve();return nd(l,_e,e,t)},useMemoCache:Qu,useCacheRefresh:Td};ec.useEffectEvent=vd;var Dd={readContext:at,use:Qs,useCallback:jd,useContext:at,useEffect:Ku,useImperativeHandle:yd,useInsertionEffect:pd,useLayoutEffect:gd,useMemo:Nd,useReducer:Vu,useRef:hd,useState:function(){return Vu(nl)},useDebugValue:Ju,useDeferredValue:function(e,t){var l=Ve();return _e===null?Fu(l,e,t):Sd(l,_e.memoizedState,e,t)},useTransition:function(){var e=Vu(nl)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:Tn(e),t]},useSyncExternalStore:Po,useId:Rd,useHostTransitionStatus:Pu,useFormState:md,useActionState:md,useOptimistic:function(e,t){var l=Ve();return _e!==null?nd(l,_e,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Qu,useCacheRefresh:Td};Dd.useEffectEvent=vd;function tc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:p({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var lc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=wt(),s=Rl(a);s.payload=t,l!=null&&(s.callback=l),t=Tl(e,s,a),t!==null&&(xt(t,e,a),En(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=wt(),s=Rl(a);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=Tl(e,s,a),t!==null&&(xt(t,e,a),En(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=wt(),a=Rl(l);a.tag=2,t!=null&&(a.callback=t),t=Tl(e,a,l),t!==null&&(xt(t,e,l),En(t,e,l))}};function Od(e,t,l,a,s,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!vn(l,a)||!vn(s,i):!0}function Ud(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&&lc.enqueueReplaceState(t,t.state,null)}function ca(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=p({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function Hd(e){ws(e)}function qd(e){console.error(e)}function Bd(e){ws(e)}function Ks(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Ld(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ac(e,t,l){return l=Rl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ks(e,t)},l}function Yd(e){return e=Rl(e),e.tag=3,e}function kd(e,t,l,a){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var i=a.value;e.payload=function(){return s(i)},e.callback=function(){Ld(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Ld(t,l,a),typeof s!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function ox(e,t,l,a,s){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&_a(t,l,s,!0),l=jt.current,l!==null){switch(l.tag){case 31:case 13:return qt===null?ii():l.alternate===null&&Qe===0&&(Qe=3),l.flags&=-257,l.flags|=65536,l.lanes=s,a===Us?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Tc(e,a,s)),!1;case 22:return l.flags|=65536,a===Us?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)),Tc(e,a,s)),!1}throw Error(r(435,l.tag))}return Tc(e,a,s),ii(),!1}if(je)return t=jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Nu&&(e=Error(r(422),{cause:a}),bn(Dt(e,l)))):(a!==Nu&&(t=Error(r(423),{cause:a}),bn(Dt(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=Dt(a,l),s=ac(e.stateNode,a,s),Du(e,s),Qe!==4&&(Qe=2)),!1;var i=Error(r(520),{cause:a});if(i=Dt(i,l),Bn===null?Bn=[i]:Bn.push(i),Qe!==4&&(Qe=2),t===null)return!0;a=Dt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=ac(l.stateNode,a,e),Du(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"&&(Ol===null||!Ol.has(i))))return l.flags|=65536,s&=-s,l.lanes|=s,s=Yd(s),kd(s,e,l,a),Du(l,s),!1}l=l.return}while(l!==null);return!1}var nc=Error(r(461)),Ke=!1;function nt(e,t,l,a){t.child=e===null?Vo(t,null,l,a):ia(t,e.child,l,a)}function Gd(e,t,l,a,s){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var m in a)m!=="ref"&&(c[m]=a[m])}else c=a;return la(t),a=Lu(e,t,l,c,i,s),m=Yu(),e!==null&&!Ke?(ku(e,t,s),sl(e,t,s)):(je&&m&&yu(t),t.flags|=1,nt(e,t,a,s),t.child)}function Qd(e,t,l,a,s){if(e===null){var i=l.type;return typeof i=="function"&&!pu(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Xd(e,t,i,a,s)):(e=Ms(l.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!fc(e,s)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:vn,l(c,a)&&e.ref===t.ref)return sl(e,t,s)}return t.flags|=1,e=It(i,a),e.ref=t.ref,e.return=t,t.child=e}function Xd(e,t,l,a,s){if(e!==null){var i=e.memoizedProps;if(vn(i,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=i,fc(e,s))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,sl(e,t,s)}return sc(e,t,l,a,s)}function Vd(e,t,l,a){var s=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,s=0;a!==null;)s=s|a.lanes|a.childLanes,a=a.sibling;a=s&~i}else a=0,t.child=null;return $d(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ds(t,i!==null?i.cachePool:null),i!==null?Ko(t,i):Uu(),Jo(t);else return a=t.lanes=536870912,$d(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ds(t,i.cachePool),Ko(t,i),Al(),t.memoizedState=null):(e!==null&&Ds(t,null),Uu(),Al());return nt(e,t,s,l),t.child}function _n(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function $d(e,t,l,a,s){var i=Mu();return i=i===null?null:{parent:$e._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ds(t,null),Uu(),Jo(t),e!==null&&_a(e,t,a,!0),t.childLanes=s,null}function Js(e,t){return t=Ws({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zd(e,t,l){return ia(t,e.child,null,l),e=Js(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function dx(e,t,l){var a=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(a.mode==="hidden")return e=Js(t,a),t.lanes=536870912,_n(null,e);if(qu(t),(e=Be)?(e=im(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nl!==null?{id:Xt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},l=Ao(e),l.return=t,t.child=l,lt=t,Be=null)):e=null,e===null)throw El(t);return t.lanes=536870912,null}return Js(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(qu(t),s)if(t.flags&256)t.flags&=-257,t=Zd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Ke||_a(e,t,l,!1),s=(l&e.childLanes)!==0,Ke||s){if(a=Oe,a!==null&&(c=Hr(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,Pl(e,c),xt(a,e,c),nc;ii(),t=Zd(e,t,l)}else e=i.treeContext,Be=Bt(c.nextSibling),lt=t,je=!0,Sl=null,Ht=!1,e!==null&&Do(t,e),t=Js(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 Fs(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 sc(e,t,l,a,s){return la(t),l=Lu(e,t,l,a,void 0,s),a=Yu(),e!==null&&!Ke?(ku(e,t,s),sl(e,t,s)):(je&&a&&yu(t),t.flags|=1,nt(e,t,l,s),t.child)}function Kd(e,t,l,a,s,i){return la(t),t.updateQueue=null,l=Wo(t,a,l,s),Fo(e),a=Yu(),e!==null&&!Ke?(ku(e,t,i),sl(e,t,i)):(je&&a&&yu(t),t.flags|=1,nt(e,t,l,i),t.child)}function Jd(e,t,l,a,s){if(la(t),t.stateNode===null){var i=Ra,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=lc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},_u(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?at(c):Ra,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(tc(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&&lc.enqueueReplaceState(i,i.state,null),Cn(t,a,i,s),wn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,N=ca(l,m);i.props=N;var M=i.context,q=l.contextType;c=Ra,typeof q=="object"&&q!==null&&(c=at(q));var k=l.getDerivedStateFromProps;q=typeof k=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,q||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||M!==c)&&Ud(t,i,a,c),Cl=!1;var A=t.memoizedState;i.state=A,Cn(t,a,i,s),wn(),M=t.memoizedState,m||A!==M||Cl?(typeof k=="function"&&(tc(t,l,k,a),M=t.memoizedState),(N=Cl||Od(t,l,N,a,A,M,c))?(q||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=N):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,zu(e,t),c=t.memoizedProps,q=ca(l,c),i.props=q,k=t.pendingProps,A=i.context,M=l.contextType,N=Ra,typeof M=="object"&&M!==null&&(N=at(M)),m=l.getDerivedStateFromProps,(M=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==k||A!==N)&&Ud(t,i,a,N),Cl=!1,A=t.memoizedState,i.state=A,Cn(t,a,i,s),wn();var O=t.memoizedState;c!==k||A!==O||Cl||e!==null&&e.dependencies!==null&&_s(e.dependencies)?(typeof m=="function"&&(tc(t,l,m,a),O=t.memoizedState),(q=Cl||Od(t,l,q,a,A,O,N)||e!==null&&e.dependencies!==null&&_s(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,O,N),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,O,N)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=O),i.props=a,i.state=O,i.context=N,a=q):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Fs(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=ia(t,e.child,null,s),t.child=ia(t,null,l,s)):nt(e,t,l,s),t.memoizedState=i.state,e=t.child):e=sl(e,t,s),e}function Fd(e,t,l,a){return ea(),t.flags|=256,nt(e,t,l,a),t.child}var ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uc(e){return{baseLanes:e,cachePool:Lo()}}function cc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Et),e}function Wd(e,t,l){var a=t.pendingProps,s=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),c&&(s=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(s?Ml(t):Al(),(e=Be)?(e=im(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Nl!==null?{id:Xt,overflow:Vt}:null,retryLane:536870912,hydrationErrors:null},l=Ao(e),l.return=t,t.child=l,lt=t,Be=null)):e=null,e===null)throw El(t);return Xc(e)?t.lanes=32:t.lanes=536870912,null}var m=a.children;return a=a.fallback,s?(Al(),s=t.mode,m=Ws({mode:"hidden",children:m},s),a=Il(a,s,l,null),m.return=t,a.return=t,m.sibling=a,t.child=m,a=t.child,a.memoizedState=uc(l),a.childLanes=cc(e,c,l),t.memoizedState=ic,_n(null,a)):(Ml(t),rc(t,m))}var N=e.memoizedState;if(N!==null&&(m=N.dehydrated,m!==null)){if(i)t.flags&256?(Ml(t),t.flags&=-257,t=oc(e,t,l)):t.memoizedState!==null?(Al(),t.child=e.child,t.flags|=128,t=null):(Al(),m=a.fallback,s=t.mode,a=Ws({mode:"visible",children:a.children},s),m=Il(m,s,l,null),m.flags|=2,a.return=t,m.return=t,a.sibling=m,t.child=a,ia(t,e.child,null,l),a=t.child,a.memoizedState=uc(l),a.childLanes=cc(e,c,l),t.memoizedState=ic,t=_n(null,a));else if(Ml(t),Xc(m)){if(c=m.nextSibling&&m.nextSibling.dataset,c)var M=c.dgst;c=M,a=Error(r(419)),a.stack="",a.digest=c,bn({value:a,source:null,stack:null}),t=oc(e,t,l)}else if(Ke||_a(e,t,l,!1),c=(l&e.childLanes)!==0,Ke||c){if(c=Oe,c!==null&&(a=Hr(c,l),a!==0&&a!==N.retryLane))throw N.retryLane=a,Pl(e,a),xt(c,e,a),nc;Qc(m)||ii(),t=oc(e,t,l)}else Qc(m)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Be=Bt(m.nextSibling),lt=t,je=!0,Sl=null,Ht=!1,e!==null&&Do(t,e),t=rc(t,a.children),t.flags|=4096);return t}return s?(Al(),m=a.fallback,s=t.mode,N=e.child,M=N.sibling,a=It(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,M!==null?m=It(M,m):(m=Il(m,s,l,null),m.flags|=2),m.return=t,a.return=t,a.sibling=m,t.child=a,_n(null,a),a=t.child,m=e.child.memoizedState,m===null?m=uc(l):(s=m.cachePool,s!==null?(N=$e._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=Lo(),m={baseLanes:m.baseLanes|l,cachePool:s}),a.memoizedState=m,a.childLanes=cc(e,c,l),t.memoizedState=ic,_n(e.child,a)):(Ml(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 rc(e,t){return t=Ws({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ws(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function oc(e,t,l){return ia(t,e.child,null,l),e=rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pd(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),wu(e.return,t,l)}function dc(e,t,l,a,s,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:s,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=s,c.treeForkCount=i)}function Id(e,t,l){var a=t.pendingProps,s=a.revealOrder,i=a.tail;a=a.children;var c=Xe.current,m=(c&2)!==0;if(m?(c=c&1|2,t.flags|=128):c&=1,K(Xe,c),nt(e,t,a,l),a=je?gn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pd(e,l,t);else if(e.tag===19)Pd(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(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&Ls(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),dc(t,!1,s,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ls(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}dc(t,!0,l,null,i,a);break;case"together":dc(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),Dl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(_a(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 fc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&_s(e)))}function fx(e,t,l){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),wl(t,$e,e.memoizedState.cache),ea();break;case 27:case 5:pl(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:wl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qu(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ml(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Wd(e,t,l):(Ml(t),e=sl(e,t,l),e!==null?e.sibling:null);Ml(t);break;case 19:var s=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(_a(e,t,l,!1),a=(l&t.childLanes)!==0),s){if(a)return Id(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,Vd(e,t,l,t.pendingProps);case 24:wl(t,$e,e.memoizedState.cache)}return sl(e,t,l)}function ef(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!fc(e,l)&&(t.flags&128)===0)return Ke=!1,fx(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,je&&(t.flags&1048576)!==0&&zo(t,gn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=na(t.elementType),t.type=e,typeof e=="function")pu(e)?(a=ca(e,a),t.tag=1,t=Jd(null,t,e,a,l)):(t.tag=0,t=sc(null,t,e,a,l));else{if(e!=null){var s=e.$$typeof;if(s===se){t.tag=11,t=Gd(null,t,e,a,l);break e}else if(s===F){t.tag=14,t=Qd(null,t,e,a,l);break e}}throw t=R(e)||e,Error(r(306,t,""))}}return t;case 0:return sc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,s=ca(a,t.pendingProps),Jd(e,t,a,s,l);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;s=i.element,zu(e,t),Cn(t,a,null,l);var c=t.memoizedState;if(a=c.cache,wl(t,$e,a),a!==i.cache&&Cu(t,[$e],l,!0),wn(),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=Fd(e,t,a,l);break e}else if(a!==s){s=Dt(Error(r(424)),t),bn(s),t=Fd(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(Be=Bt(e.firstChild),lt=t,je=!0,Sl=null,Ht=!0,l=Vo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(ea(),a===s){t=sl(e,t,l);break e}nt(e,t,a,l)}t=t.child}return t;case 26:return Fs(e,t),e===null?(l=fm(t.type,null,t.pendingProps,null))?t.memoizedState=l:je||(l=t.type,e=t.pendingProps,a=mi(V.current).createElement(l),a[tt]=t,a[rt]=e,st(a,l,e),Ie(a),t.stateNode=a):t.memoizedState=fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pl(t),e===null&&je&&(a=t.stateNode=rm(t.type,t.pendingProps,V.current),lt=t,Ht=!0,s=Be,Bl(t.type)?(Vc=s,Be=Bt(a.firstChild)):Be=s),nt(e,t,t.pendingProps.children,l),Fs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((s=a=Be)&&(a=Gx(a,t.type,t.pendingProps,Ht),a!==null?(t.stateNode=a,lt=t,Be=Bt(a.firstChild),Ht=!1,s=!0):s=!1),s||El(t)),pl(t),s=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Yc(s,i)?a=null:c!==null&&Yc(s,c)&&(t.flags|=32),t.memoizedState!==null&&(s=Lu(e,t,ax,null,null,l),$n._currentValue=s),Fs(e,t),nt(e,t,a,l),t.child;case 6:return e===null&&je&&((e=l=Be)&&(l=Qx(l,t.pendingProps,Ht),l!==null?(t.stateNode=l,lt=t,Be=null,e=!0):e=!1),e||El(t)),null;case 13:return Wd(e,t,l);case 4:return ye(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=ia(t,null,a,l):nt(e,t,a,l),t.child;case 11:return Gd(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,wl(t,t.type,a.value),nt(e,t,a.children,l),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,la(t),s=at(s),a=a(s),t.flags|=1,nt(e,t,a,l),t.child;case 14:return Qd(e,t,t.type,t.pendingProps,l);case 15:return Xd(e,t,t.type,t.pendingProps,l);case 19:return Id(e,t,l);case 31:return dx(e,t,l);case 22:return Vd(e,t,l,t.pendingProps);case 24:return la(t),a=at($e),e===null?(s=Mu(),s===null&&(s=Oe,i=Ru(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=l),s=i),t.memoizedState={parent:a,cache:s},_u(t),wl(t,$e,s)):((e.lanes&l)!==0&&(zu(e,t),Cn(t,null,null,l),wn()),s=e.memoizedState,i=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),wl(t,$e,a)):(a=i.cache,wl(t,$e,a),a!==s.cache&&Cu(t,[$e],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 mc(e,t,l,a,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Tf())e.flags|=8192;else throw sa=Us,Au}else e.flags&=-16777217}function tf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!pm(t))if(Tf())e.flags|=8192;else throw sa=Us,Au}function Ps(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dr():536870912,e.lanes|=t,Qa|=t)}function zn(e,t){if(!je)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 Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function mx(e,t,l){var a=t.pendingProps;switch(ju(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ll($e),Ne(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Aa(t)?il(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Su())),Le(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(il(t),i!==null?(Le(t),tf(t,i)):(Le(t),mc(t,s,null,a,l))):i?i!==e.memoizedState?(il(t),Le(t),tf(t,i)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&il(t),Le(t),mc(t,s,e,a,l)),null;case 27:if(ma(t),l=V.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}e=P.current,Aa(t)?Oo(t):(e=rm(s,a,l),t.stateNode=e,il(t))}return Le(t),null;case 5:if(ma(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&il(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}if(i=P.current,Aa(t))Oo(t);else{var c=mi(V.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",s);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(s,{is:a.is}):c.createElement(s)}}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,s,a),s){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 Le(t),mc(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=V.current,Aa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,s=lt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[tt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Pf(e.nodeValue,l)),e||El(t,!0)}else e=mi(e).createTextNode(a),e[tt]=t,t.stateNode=e}return Le(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Aa(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 ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else l=Su(),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 Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Aa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[tt]=t}else ea(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),s=!1}else s=Su(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)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,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==s&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Ps(t,t.updateQueue),Le(t),null);case 4:return Ne(),e===null&&Uc(t.stateNode.containerInfo),Le(t),null;case 10:return ll(t.type),Le(t),null;case 19:if(B(Xe),a=t.memoizedState,a===null)return Le(t),null;if(s=(t.flags&128)!==0,i=a.rendering,i===null)if(s)zn(a,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ls(e),i!==null){for(t.flags|=128,zn(a,!1),e=i.updateQueue,t.updateQueue=e,Ps(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mo(l,e),l=l.sibling;return K(Xe,Xe.current&1|2),je&&el(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&vt()>ai&&(t.flags|=128,s=!0,zn(a,!1),t.lanes=4194304)}else{if(!s)if(e=Ls(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ps(t,e),zn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!je)return Le(t),null}else 2*vt()-a.renderingStartTime>ai&&l!==536870912&&(t.flags|=128,s=!0,zn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vt(),e.sibling=null,l=Xe.current,K(Xe,s?l&1|2:l&1),je&&el(t,a.treeForkCount),e):(Le(t),null);case 22:case 23:return Nt(t),Hu(),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&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Ps(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&B(aa),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ll($e),Le(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function hx(e,t){switch(ju(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ll($e),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ma(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(r(340));ea()}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));ea()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(Xe),null;case 4:return Ne(),null;case 10:return ll(t.type),null;case 22:case 23:return Nt(t),Hu(),e!==null&&B(aa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ll($e),null;case 25:return null;default:return null}}function lf(e,t){switch(ju(t),t.tag){case 3:ll($e),Ne();break;case 26:case 27:case 5:ma(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:B(Xe);break;case 10:ll(t.type);break;case 22:case 23:Nt(t),Hu(),e!==null&&B(aa);break;case 24:ll($e)}}function Dn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var s=a.next;l=s;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!==s)}}catch(m){Ae(t,t.return,m)}}function _l(e,t,l){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var i=s.next;a=i;do{if((a.tag&e)===e){var c=a.inst,m=c.destroy;if(m!==void 0){c.destroy=void 0,s=t;var N=l,M=m;try{M()}catch(q){Ae(s,N,q)}}}a=a.next}while(a!==i)}}catch(q){Ae(t,t.return,q)}}function af(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Zo(t,l)}catch(a){Ae(e,e.return,a)}}}function nf(e,t,l){l.props=ca(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ae(e,t,a)}}function On(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(s){Ae(e,t,s)}}function $t(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(s){Ae(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){Ae(e,t,s)}else l.current=null}function sf(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(s){Ae(e,e.return,s)}}function hc(e,t,l){try{var a=e.stateNode;Hx(a,e.type,l,t),a[rt]=t}catch(s){Ae(e,e.return,s)}}function uf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Bl(e.type)||e.tag===4}function xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uf(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&&Bl(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 vc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Wt));else if(a!==4&&(a===27&&Bl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(vc(e,t,l),e=e.sibling;e!==null;)vc(e,t,l),e=e.sibling}function Is(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&&Bl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Is(e,t,l),e=e.sibling;e!==null;)Is(e,t,l),e=e.sibling}function cf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);st(t,a,l),t[tt]=e,t[rt]=l}catch(i){Ae(e,e.return,i)}}var ul=!1,Je=!1,pc=!1,rf=typeof WeakSet=="function"?WeakSet:Set,et=null;function xx(e,t){if(e=e.containerInfo,Bc=yi,e=yo(e),ou(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 s=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,m=-1,N=-1,M=0,q=0,k=e,A=null;t:for(;;){for(var O;k!==l||s!==0&&k.nodeType!==3||(m=c+s),k!==i||a!==0&&k.nodeType!==3||(N=c+a),k.nodeType===3&&(c+=k.nodeValue.length),(O=k.firstChild)!==null;)A=k,k=O;for(;;){if(k===e)break t;if(A===l&&++M===s&&(m=c),A===i&&++q===a&&(N=c),(O=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=O}l=m===-1||N===-1?null:{start:m,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(Lc={focusedElem:e,selectionRange:l},yi=!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++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,s=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var I=ca(l.type,s);e=a.getSnapshotBeforeUpdate(I,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ae(l,l.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Gc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Gc(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 of(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:rl(e,l),a&4&&Dn(5,l);break;case 1:if(rl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Ae(l,l.return,c)}else{var s=ca(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Ae(l,l.return,c)}}a&64&&af(l),a&512&&On(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{Zo(e,t)}catch(c){Ae(l,l.return,c)}}break;case 27:t===null&&a&4&&cf(l);case 26:case 5:rl(e,l),t===null&&a&4&&sf(l),a&512&&On(l,l.return);break;case 12:rl(e,l);break;case 31:rl(e,l),a&4&&mf(e,l);break;case 13:rl(e,l),a&4&&hf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Ex.bind(null,l),Xx(e,l))));break;case 22:if(a=l.memoizedState!==null||ul,!a){t=t!==null&&t.memoizedState!==null||Je,s=ul;var i=Je;ul=a,(Je=t)&&!i?ol(e,l,(l.subtreeFlags&8772)!==0):rl(e,l),ul=s,Je=i}break;case 30:break;default:rl(e,l)}}function df(e){var t=e.alternate;t!==null&&(e.alternate=null,df(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Zi(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 Ye=null,dt=!1;function cl(e,t,l){for(l=l.child;l!==null;)ff(e,t,l),l=l.sibling}function ff(e,t,l){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(an,l)}catch{}switch(l.tag){case 26:Je||$t(l,t),cl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Je||$t(l,t);var a=Ye,s=dt;Bl(l.type)&&(Ye=l.stateNode,dt=!1),cl(e,t,l),Qn(l.stateNode),Ye=a,dt=s;break;case 5:Je||$t(l,t);case 6:if(a=Ye,s=dt,Ye=null,cl(e,t,l),Ye=a,dt=s,Ye!==null)if(dt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(l.stateNode)}catch(i){Ae(l,t,i)}else try{Ye.removeChild(l.stateNode)}catch(i){Ae(l,t,i)}break;case 18:Ye!==null&&(dt?(e=Ye,nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Wa(e)):nm(Ye,l.stateNode));break;case 4:a=Ye,s=dt,Ye=l.stateNode.containerInfo,dt=!0,cl(e,t,l),Ye=a,dt=s;break;case 0:case 11:case 14:case 15:_l(2,l,t),Je||_l(4,l,t),cl(e,t,l);break;case 1:Je||($t(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&nf(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 mf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wa(e)}catch(l){Ae(t,t.return,l)}}}function hf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wa(e)}catch(l){Ae(t,t.return,l)}}function vx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rf),t;default:throw Error(r(435,e.tag))}}function ei(e,t){var l=vx(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var s=wx.bind(null,e,a);a.then(s,s)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var s=l[a],i=e,c=t,m=c;e:for(;m!==null;){switch(m.tag){case 27:if(Bl(m.type)){Ye=m.stateNode,dt=!1;break e}break;case 5:Ye=m.stateNode,dt=!1;break e;case 3:case 4:Ye=m.stateNode.containerInfo,dt=!0;break e}m=m.return}if(Ye===null)throw Error(r(160));ff(i,c,s),Ye=null,dt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xf(t,e),t=t.sibling}var Gt=null;function xf(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&&(_l(3,e,e.return),Dn(3,e),_l(5,e,e.return));break;case 1:ft(t,e),mt(e),a&512&&(Je||l===null||$t(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 s=Gt;if(ft(t,e),mt(e),a&512&&(Je||l===null||$t(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,s=s.ownerDocument||s;t:switch(a){case"title":i=s.getElementsByTagName("title")[0],(!i||i[un]||i[tt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(a),s.head.insertBefore(i,s.querySelector("head > title"))),st(i,a,l),i[tt]=e,Ie(i),a=i;break e;case"link":var c=xm("link","href",s).get(a+(l.href||""));if(c){for(var m=0;m<c.length;m++)if(i=c[m],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(m,1);break t}}i=s.createElement(a),st(i,a,l),s.head.appendChild(i);break;case"meta":if(c=xm("meta","content",s).get(a+(l.content||""))){for(m=0;m<c.length;m++)if(i=c[m],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(m,1);break t}}i=s.createElement(a),st(i,a,l),s.head.appendChild(i);break;default:throw Error(r(468,a))}i[tt]=e,Ie(i),a=i}e.stateNode=a}else vm(s,e.type,e.stateNode);else e.stateNode=hm(s,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?vm(s,e.type,e.stateNode):hm(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&hc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),mt(e),a&512&&(Je||l===null||$t(l,l.return)),l!==null&&a&4&&hc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),mt(e),a&512&&(Je||l===null||$t(l,l.return)),e.flags&32){s=e.stateNode;try{ya(s,"")}catch(I){Ae(e,e.return,I)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,hc(e,s,l!==null?l.memoizedProps:s)),a&1024&&(pc=!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(I){Ae(e,e.return,I)}}break;case 3:if(vi=null,s=Gt,Gt=hi(t.containerInfo),ft(t,e),Gt=s,mt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Wa(t.containerInfo)}catch(I){Ae(e,e.return,I)}pc&&(pc=!1,vf(e));break;case 4:a=Gt,Gt=hi(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,ei(e,a)));break;case 13:ft(t,e),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(li=vt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ei(e,a)));break;case 22:s=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,M=ul,q=Je;if(ul=M||s,Je=q||N,ft(t,e),Je=q,ul=M,mt(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||N||ul||Je||ra(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){N=l=t;try{if(i=N.stateNode,s)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{m=N.stateNode;var k=N.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;m.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(I){Ae(N,N.return,I)}}}else if(t.tag===6){if(l===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(I){Ae(N,N.return,I)}}}else if(t.tag===18){if(l===null){N=t;try{var O=N.stateNode;s?sm(O,!0):sm(N.stateNode,!1)}catch(I){Ae(N,N.return,I)}}}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,ei(e,l))));break;case 19:ft(t,e),mt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ei(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(uf(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var s=l.stateNode,i=xc(e);Is(e,i,s);break;case 5:var c=l.stateNode;l.flags&32&&(ya(c,""),l.flags&=-33);var m=xc(e);Is(e,m,c);break;case 3:case 4:var N=l.stateNode.containerInfo,M=xc(e);vc(e,M,N);break;default:throw Error(r(161))}}catch(q){Ae(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vf(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;)of(e,t.alternate,t),t=t.sibling}function ra(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_l(4,t,t.return),ra(t);break;case 1:$t(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&nf(t,t.return,l),ra(t);break;case 27:Qn(t.stateNode);case 26:case 5:$t(t,t.return),ra(t);break;case 22:t.memoizedState===null&&ra(t);break;case 30:ra(t);break;default:ra(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,s=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:ol(s,i,l),Dn(4,i);break;case 1:if(ol(s,i,l),a=i,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Ae(a,a.return,M)}if(a=i,s=a.updateQueue,s!==null){var m=a.stateNode;try{var N=s.shared.hiddenCallbacks;if(N!==null)for(s.shared.hiddenCallbacks=null,s=0;s<N.length;s++)$o(N[s],m)}catch(M){Ae(a,a.return,M)}}l&&c&64&&af(i),On(i,i.return);break;case 27:cf(i);case 26:case 5:ol(s,i,l),l&&a===null&&c&4&&sf(i),On(i,i.return);break;case 12:ol(s,i,l);break;case 31:ol(s,i,l),l&&c&4&&mf(s,i);break;case 13:ol(s,i,l),l&&c&4&&hf(s,i);break;case 22:i.memoizedState===null&&ol(s,i,l),On(i,i.return);break;case 30:break;default:ol(s,i,l)}t=t.sibling}}function gc(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&&yn(l))}function bc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yn(e))}function Qt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)pf(e,t,l,a),t=t.sibling}function pf(e,t,l,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Qt(e,t,l,a),s&2048&&Dn(9,t);break;case 1:Qt(e,t,l,a);break;case 3:Qt(e,t,l,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&yn(e)));break;case 12:if(s&2048){Qt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,m=i.onPostCommit;typeof m=="function"&&m(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Ae(t,t.return,N)}}else Qt(e,t,l,a);break;case 31:Qt(e,t,l,a);break;case 13:Qt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Qt(e,t,l,a):Un(e,t):i._visibility&2?Qt(e,t,l,a):(i._visibility|=2,Ya(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),s&2048&&gc(c,t);break;case 24:Qt(e,t,l,a),s&2048&&bc(t.alternate,t);break;default:Qt(e,t,l,a)}}function Ya(e,t,l,a,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,m=l,N=a,M=c.flags;switch(c.tag){case 0:case 11:case 15:Ya(i,c,m,N,s),Dn(8,c);break;case 23:break;case 22:var q=c.stateNode;c.memoizedState!==null?q._visibility&2?Ya(i,c,m,N,s):Un(i,c):(q._visibility|=2,Ya(i,c,m,N,s)),s&&M&2048&&gc(c.alternate,c);break;case 24:Ya(i,c,m,N,s),s&&M&2048&&bc(c.alternate,c);break;default:Ya(i,c,m,N,s)}t=t.sibling}}function Un(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,s=a.flags;switch(a.tag){case 22:Un(l,a),s&2048&&gc(a.alternate,a);break;case 24:Un(l,a),s&2048&&bc(a.alternate,a);break;default:Un(l,a)}t=t.sibling}}var Hn=8192;function ka(e,t,l){if(e.subtreeFlags&Hn)for(e=e.child;e!==null;)gf(e,t,l),e=e.sibling}function gf(e,t,l){switch(e.tag){case 26:ka(e,t,l),e.flags&Hn&&e.memoizedState!==null&&lv(l,Gt,e.memoizedState,e.memoizedProps);break;case 5:ka(e,t,l);break;case 3:case 4:var a=Gt;Gt=hi(e.stateNode.containerInfo),ka(e,t,l),Gt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Hn,Hn=16777216,ka(e,t,l),Hn=a):ka(e,t,l));break;default:ka(e,t,l)}}function bf(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 qn(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,jf(a,e)}bf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yf(e),e=e.sibling}function yf(e){switch(e.tag){case 0:case 11:case 15:qn(e),e.flags&2048&&_l(9,e,e.return);break;case 3:qn(e);break;case 12:qn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ti(e)):qn(e);break;default:qn(e)}}function ti(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,jf(a,e)}bf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),ti(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ti(t));break;default:ti(t)}e=e.sibling}}function jf(e,t){for(;et!==null;){var l=et;switch(l.tag){case 0:case 11:case 15:_l(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:yn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,et=a;else e:for(l=e;et!==null;){a=et;var s=a.sibling,i=a.return;if(df(a),a===l){et=null;break e}if(s!==null){s.return=i,et=s;break e}et=i}}}var px={getCacheForType:function(e){var t=at($e),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return at($e).controller.signal}},gx=typeof WeakMap=="function"?WeakMap:Map,Re=0,Oe=null,xe=null,pe=0,Me=0,St=null,zl=!1,Ga=!1,yc=!1,dl=0,Qe=0,Dl=0,oa=0,jc=0,Et=0,Qa=0,Bn=null,ht=null,Nc=!1,li=0,Nf=0,ai=1/0,ni=null,Ol=null,We=0,Ul=null,Xa=null,fl=0,Sc=0,Ec=null,Sf=null,Ln=0,wc=null;function wt(){return(Re&2)!==0&&pe!==0?pe&-pe:_.T!==null?_c():qr()}function Ef(){if(Et===0)if((pe&536870912)===0||je){var e=fs;fs<<=1,(fs&3932160)===0&&(fs=262144),Et=e}else Et=536870912;return e=jt.current,e!==null&&(e.flags|=32),Et}function xt(e,t,l){(e===Oe&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Va(e,0),Hl(e,pe,Et,!1)),sn(e,l),((Re&2)===0||e!==Oe)&&(e===Oe&&((Re&2)===0&&(oa|=l),Qe===4&&Hl(e,pe,Et,!1)),Zt(e))}function wf(e,t,l){if((Re&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||nn(e,t),s=a?jx(e,t):Rc(e,t,!0),i=a;do{if(s===0){Ga&&!a&&Hl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!bx(l)){s=Rc(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var m=e;s=Bn;var N=m.current.memoizedState.isDehydrated;if(N&&(Va(m,c).flags|=256),c=Rc(m,c,!1),c!==2){if(yc&&!N){m.errorRecoveryDisabledLanes|=i,oa|=i,s=4;break e}i=ht,ht=s,i!==null&&(ht===null?ht=i:ht.push.apply(ht,i))}s=c}if(i=!1,s!==2)continue}}if(s===1){Va(e,0),Hl(e,t,0,!0);break}e:{switch(a=e,i=s,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Hl(a,t,Et,!zl);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=li+300-vt(),10<s)){if(Hl(a,t,Et,!zl),hs(a,0,!0)!==0)break e;fl=t,a.timeoutHandle=lm(Cf.bind(null,a,l,ht,ni,Nc,t,Et,oa,Qa,zl,i,"Throttled",-0,0),s);break e}Cf(a,l,ht,ni,Nc,t,Et,oa,Qa,zl,i,null,-0,0)}}break}while(!0);Zt(e)}function Cf(e,t,l,a,s,i,c,m,N,M,q,k,A,O){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Wt},gf(t,i,k);var I=(i&62914560)===i?li-vt():(i&4194048)===i?Nf-vt():0;if(I=av(k,I),I!==null){fl=i,e.cancelPendingCommit=I(Of.bind(null,e,t,i,l,a,s,c,m,N,q,k,null,A,O)),Hl(e,i,c,!M);return}}Of(e,t,i,l,a,s,c,m,N)}function bx(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 s=l[a],i=s.getSnapshot;s=s.value;try{if(!bt(i(),s))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 Hl(e,t,l,a){t&=~jc,t&=~oa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var i=31-gt(s),c=1<<i;a[i]=-1,s&=~c}l!==0&&Or(e,l,t)}function si(){return(Re&6)===0?(Yn(0),!1):!0}function Cc(){if(xe!==null){if(Me===0)var e=xe.return;else e=xe,tl=ta=null,Gu(e),Ua=null,Nn=0,e=xe;for(;e!==null;)lf(e.alternate,e),e=e.return;xe=null}}function Va(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Lx(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),fl=0,Cc(),Oe=e,xe=l=It(e.current,null),pe=t,Me=0,St=null,zl=!1,Ga=nn(e,t),yc=!1,Qa=Et=jc=oa=Dl=Qe=0,ht=Bn=null,Nc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-gt(a),i=1<<s;t|=e[s],a&=~i}return dl=t,Cs(),l}function Rf(e,t){de=null,_.H=An,t===Oa||t===Os?(t=Go(),Me=3):t===Au?(t=Go(),Me=4):Me=t===nc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,xe===null&&(Qe=1,Ks(e,Dt(t,e.current)))}function Tf(){var e=jt.current;return e===null?!0:(pe&4194048)===pe?qt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===qt:!1}function Mf(){var e=_.H;return _.H=An,e===null?An:e}function Af(){var e=_.A;return _.A=px,e}function ii(){Qe=4,zl||(pe&4194048)!==pe&&jt.current!==null||(Ga=!0),(Dl&134217727)===0&&(oa&134217727)===0||Oe===null||Hl(Oe,pe,Et,!1)}function Rc(e,t,l){var a=Re;Re|=2;var s=Mf(),i=Af();(Oe!==e||pe!==t)&&(ni=null,Va(e,t)),t=!1;var c=Qe;e:do try{if(Me!==0&&xe!==null){var m=xe,N=St;switch(Me){case 8:Cc(),c=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(t=!0);var M=Me;if(Me=0,St=null,$a(e,m,N,M),l&&Ga){c=0;break e}break;default:M=Me,Me=0,St=null,$a(e,m,N,M)}}yx(),c=Qe;break}catch(q){Rf(e,q)}while(!0);return t&&e.shellSuspendCounter++,tl=ta=null,Re=a,_.H=s,_.A=i,xe===null&&(Oe=null,pe=0,Cs()),c}function yx(){for(;xe!==null;)_f(xe)}function jx(e,t){var l=Re;Re|=2;var a=Mf(),s=Af();Oe!==e||pe!==t?(ni=null,ai=vt()+500,Va(e,t)):Ga=nn(e,t);e:do try{if(Me!==0&&xe!==null){t=xe;var i=St;t:switch(Me){case 1:Me=0,St=null,$a(e,t,i,1);break;case 2:case 9:if(Yo(i)){Me=0,St=null,zf(t);break}t=function(){Me!==2&&Me!==9||Oe!==e||(Me=7),Zt(e)},i.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Yo(i)?(Me=0,St=null,zf(t)):(Me=0,St=null,$a(e,t,i,7));break;case 5:var c=null;switch(xe.tag){case 26:c=xe.memoizedState;case 5:case 27:var m=xe;if(c?pm(c):m.stateNode.complete){Me=0,St=null;var N=m.sibling;if(N!==null)xe=N;else{var M=m.return;M!==null?(xe=M,ui(M)):xe=null}break t}}Me=0,St=null,$a(e,t,i,5);break;case 6:Me=0,St=null,$a(e,t,i,6);break;case 8:Cc(),Qe=6;break e;default:throw Error(r(462))}}Nx();break}catch(q){Rf(e,q)}while(!0);return tl=ta=null,_.H=a,_.A=s,Re=l,xe!==null?0:(Oe=null,pe=0,Cs(),Qe)}function Nx(){for(;xe!==null&&!V0();)_f(xe)}function _f(e){var t=ef(e.alternate,e,dl);e.memoizedProps=e.pendingProps,t===null?ui(e):xe=t}function zf(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Kd(l,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=Kd(l,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Gu(t);default:lf(l,t),t=xe=Mo(t,dl),t=ef(l,t,dl)}e.memoizedProps=e.pendingProps,t===null?ui(e):xe=t}function $a(e,t,l,a){tl=ta=null,Gu(t),Ua=null,Nn=0;var s=t.return;try{if(ox(e,s,t,l,pe)){Qe=1,Ks(e,Dt(l,e.current)),xe=null;return}}catch(i){if(s!==null)throw xe=s,i;Qe=1,Ks(e,Dt(l,e.current)),xe=null;return}t.flags&32768?(je||a===1?e=!0:Ga||(pe&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=jt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Df(t,e)):ui(t)}function ui(e){var t=e;do{if((t.flags&32768)!==0){Df(t,zl);return}e=t.return;var l=mx(t.alternate,t,dl);if(l!==null){xe=l;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Qe===0&&(Qe=5)}function Df(e,t){do{var l=hx(e.alternate,e);if(l!==null){l.flags&=32767,xe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=l}while(e!==null);Qe=6,xe=null}function Of(e,t,l,a,s,i,c,m,N){e.cancelPendingCommit=null;do ci();while(We!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=xu,th(e,l,i,c,m,N),e===Oe&&(xe=Oe=null,pe=0),Xa=t,Ul=e,fl=l,Sc=i,Ec=s,Sf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Cx(os,function(){return Lf(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,s=$.p,$.p=2,c=Re,Re|=4;try{xx(e,t,l)}finally{Re=c,$.p=s,_.T=a}}We=1,Uf(),Hf(),qf()}}function Uf(){if(We===1){We=0;var e=Ul,t=Xa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=$.p;$.p=2;var s=Re;Re|=4;try{xf(t,e);var i=Lc,c=yo(e.containerInfo),m=i.focusedElem,N=i.selectionRange;if(c!==m&&m&&m.ownerDocument&&bo(m.ownerDocument.documentElement,m)){if(N!==null&&ou(m)){var M=N.start,q=N.end;if(q===void 0&&(q=M),"selectionStart"in m)m.selectionStart=M,m.selectionEnd=Math.min(q,m.value.length);else{var k=m.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var O=A.getSelection(),I=m.textContent.length,ie=Math.min(N.start,I),De=N.end===void 0?ie:Math.min(N.end,I);!O.extend&&ie>De&&(c=De,De=ie,ie=c);var w=go(m,ie),E=go(m,De);if(w&&E&&(O.rangeCount!==1||O.anchorNode!==w.node||O.anchorOffset!==w.offset||O.focusNode!==E.node||O.focusOffset!==E.offset)){var T=k.createRange();T.setStart(w.node,w.offset),O.removeAllRanges(),ie>De?(O.addRange(T),O.extend(E.node,E.offset)):(T.setEnd(E.node,E.offset),O.addRange(T))}}}}for(k=[],O=m;O=O.parentNode;)O.nodeType===1&&k.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<k.length;m++){var L=k[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}yi=!!Bc,Lc=Bc=null}finally{Re=s,$.p=a,_.T=l}}e.current=t,We=2}}function Hf(){if(We===2){We=0;var e=Ul,t=Xa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=$.p;$.p=2;var s=Re;Re|=4;try{of(e,t.alternate,t)}finally{Re=s,$.p=a,_.T=l}}We=3}}function qf(){if(We===4||We===3){We=0,$0();var e=Ul,t=Xa,l=fl,a=Sf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,Xa=Ul=null,Bf(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ol=null),Vi(l),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(an,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,s=$.p,$.p=2,_.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var m=a[c];i(m.value,{componentStack:m.stack})}}finally{_.T=t,$.p=s}}(fl&3)!==0&&ci(),Zt(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===wc?Ln++:(Ln=0,wc=e):Ln=0,Yn(0)}}function Bf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,yn(t)))}function ci(){return Uf(),Hf(),qf(),Lf()}function Lf(){if(We!==5)return!1;var e=Ul,t=Sc;Sc=0;var l=Vi(fl),a=_.T,s=$.p;try{$.p=32>l?32:l,_.T=null,l=Ec,Ec=null;var i=Ul,c=fl;if(We=0,Xa=Ul=null,fl=0,(Re&6)!==0)throw Error(r(331));var m=Re;if(Re|=4,yf(i.current),pf(i,i.current,c,l),Re=m,Yn(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(an,i)}catch{}return!0}finally{$.p=s,_.T=a,Bf(e,t)}}function Yf(e,t,l){t=Dt(l,t),t=ac(e.stateNode,t,2),e=Tl(e,t,2),e!==null&&(sn(e,2),Zt(e))}function Ae(e,t,l){if(e.tag===3)Yf(e,e,l);else for(;t!==null;){if(t.tag===3){Yf(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){e=Dt(l,e),l=Yd(2),a=Tl(t,l,2),a!==null&&(kd(l,a,t,e),sn(a,2),Zt(a));break}}t=t.return}}function Tc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new gx;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(l)||(yc=!0,s.add(l),e=Sx.bind(null,e,t,l),t.then(e,e))}function Sx(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Oe===e&&(pe&l)===l&&(Qe===4||Qe===3&&(pe&62914560)===pe&&300>vt()-li?(Re&2)===0&&Va(e,0):jc|=l,Qa===pe&&(Qa=0)),Zt(e)}function kf(e,t){t===0&&(t=Dr()),e=Pl(e,t),e!==null&&(sn(e,t),Zt(e))}function Ex(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),kf(e,l)}function wx(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(l=s.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),kf(e,l)}function Cx(e,t){return ki(e,t)}var ri=null,Za=null,Mc=!1,oi=!1,Ac=!1,ql=0;function Zt(e){e!==Za&&e.next===null&&(Za===null?ri=Za=e:Za=Za.next=e),oi=!0,Mc||(Mc=!0,Tx())}function Yn(e,t){if(!Ac&&oi){Ac=!0;do for(var l=!1,a=ri;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var i=0;else{var c=a.suspendedLanes,m=a.pingedLanes;i=(1<<31-gt(42|e)+1)-1,i&=s&~(c&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Vf(a,i))}else i=pe,i=hs(a,a===Oe?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||nn(a,i)||(l=!0,Vf(a,i));a=a.next}while(l);Ac=!1}}function Rx(){Gf()}function Gf(){oi=Mc=!1;var e=0;ql!==0&&Bx()&&(e=ql);for(var t=vt(),l=null,a=ri;a!==null;){var s=a.next,i=Qf(a,t);i===0?(a.next=null,l===null?ri=s:l.next=s,s===null&&(Za=l)):(l=a,(e!==0||(i&3)!==0)&&(oi=!0)),a=s}We!==0&&We!==5||Yn(e),ql!==0&&(ql=0)}function Qf(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-gt(i),m=1<<c,N=s[c];N===-1?((m&l)===0||(m&a)!==0)&&(s[c]=eh(m,t)):N<=t&&(e.expiredLanes|=m),i&=~m}if(t=Oe,l=pe,l=hs(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Gi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||nn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Gi(a),Vi(l)){case 2:case 8:l=_r;break;case 32:l=os;break;case 268435456:l=zr;break;default:l=os}return a=Xf.bind(null,e),l=ki(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Gi(a),e.callbackPriority=2,e.callbackNode=null,2}function Xf(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ci()&&e.callbackNode!==l)return null;var a=pe;return a=hs(e,e===Oe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(wf(e,a,t),Qf(e,vt()),e.callbackNode!=null&&e.callbackNode===l?Xf.bind(null,e):null)}function Vf(e,t){if(ci())return null;wf(e,t,!0)}function Tx(){Yx(function(){(Re&6)!==0?ki(Ar,Rx):Gf()})}function _c(){if(ql===0){var e=za;e===0&&(e=ds,ds<<=1,(ds&261888)===0&&(ds=256)),ql=e}return ql}function $f(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gs(""+e)}function Zf(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 Mx(e,t,l,a,s){if(t==="submit"&&l&&l.stateNode===s){var i=$f((s[rt]||null).action),c=a.submitter;c&&(t=(t=c[rt]||null)?$f(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var m=new Ns("action","action",null,a,s);e.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ql!==0){var N=c?Zf(s,c):new FormData(s);Wu(l,{pending:!0,data:N,method:s.method,action:i},null,N)}}else typeof i=="function"&&(m.preventDefault(),N=c?Zf(s,c):new FormData(s),Wu(l,{pending:!0,data:N,method:s.method,action:i},i,N))},currentTarget:s}]})}}for(var zc=0;zc<hu.length;zc++){var Dc=hu[zc],Ax=Dc.toLowerCase(),_x=Dc[0].toUpperCase()+Dc.slice(1);kt(Ax,"on"+_x)}kt(So,"onAnimationEnd"),kt(Eo,"onAnimationIteration"),kt(wo,"onAnimationStart"),kt("dblclick","onDoubleClick"),kt("focusin","onFocus"),kt("focusout","onBlur"),kt(Zh,"onTransitionRun"),kt(Kh,"onTransitionStart"),kt(Jh,"onTransitionCancel"),kt(Co,"onTransitionEnd"),ga("onMouseEnter",["mouseout","mouseover"]),ga("onMouseLeave",["mouseout","mouseover"]),ga("onPointerEnter",["pointerout","pointerover"]),ga("onPointerLeave",["pointerout","pointerover"]),Kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kn="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(" "),zx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kn));function Kf(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],s=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var m=a[c],N=m.instance,M=m.currentTarget;if(m=m.listener,N!==i&&s.isPropagationStopped())break e;i=m,s.currentTarget=M;try{i(s)}catch(q){ws(q)}s.currentTarget=null,i=N}else for(c=0;c<a.length;c++){if(m=a[c],N=m.instance,M=m.currentTarget,m=m.listener,N!==i&&s.isPropagationStopped())break e;i=m,s.currentTarget=M;try{i(s)}catch(q){ws(q)}s.currentTarget=null,i=N}}}}function ve(e,t){var l=t[$i];l===void 0&&(l=t[$i]=new Set);var a=e+"__bubble";l.has(a)||(Jf(t,e,2,!1),l.add(a))}function Oc(e,t,l){var a=0;t&&(a|=4),Jf(l,e,a,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function Uc(e){if(!e[di]){e[di]=!0,Yr.forEach(function(l){l!=="selectionchange"&&(zx.has(l)||Oc(l,!1,e),Oc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,Oc("selectionchange",!1,t))}}function Jf(e,t,l,a){switch(Em(t)){case 2:var s=iv;break;case 8:s=uv;break;default:s=Fc}l=s.bind(null,t,l,e),s=void 0,!tu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function Hc(e,t,l,a,s){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var m=a.stateNode.containerInfo;if(m===s)break;if(c===4)for(c=a.return;c!==null;){var N=c.tag;if((N===3||N===4)&&c.stateNode.containerInfo===s)return;c=c.return}for(;m!==null;){if(c=xa(m),c===null)return;if(N=c.tag,N===5||N===6||N===26||N===27){a=i=c;continue e}m=m.parentNode}}a=a.return}Pr(function(){var M=i,q=Ii(l),k=[];e:{var A=Ro.get(e);if(A!==void 0){var O=Ns,I=e;switch(e){case"keypress":if(ys(l)===0)break e;case"keydown":case"keyup":O=wh;break;case"focusin":I="focus",O=su;break;case"focusout":I="blur",O=su;break;case"beforeblur":case"afterblur":O=su;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":O=to;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=Th;break;case So:case Eo:case wo:O=vh;break;case Co:O=Ah;break;case"scroll":case"scrollend":O=dh;break;case"wheel":O=zh;break;case"copy":case"cut":case"paste":O=gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=ao;break;case"toggle":case"beforetoggle":O=Oh}var ie=(t&4)!==0,De=!ie&&(e==="scroll"||e==="scrollend"),w=ie?A!==null?A+"Capture":null:A;ie=[];for(var E=M,T;E!==null;){var L=E;if(T=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||T===null||w===null||(L=rn(E,w),L!=null&&ie.push(Gn(E,L,T))),De)break;E=E.return}0<ie.length&&(A=new O(A,I,null,l,q),k.push({event:A,listeners:ie}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",A&&l!==Pi&&(I=l.relatedTarget||l.fromElement)&&(xa(I)||I[ha]))break e;if((O||A)&&(A=q.window===q?q:(A=q.ownerDocument)?A.defaultView||A.parentWindow:window,O?(I=l.relatedTarget||l.toElement,O=M,I=I?xa(I):null,I!==null&&(De=x(I),ie=I.tag,I!==De||ie!==5&&ie!==27&&ie!==6)&&(I=null)):(O=null,I=M),O!==I)){if(ie=to,L="onMouseLeave",w="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ie=ao,L="onPointerLeave",w="onPointerEnter",E="pointer"),De=O==null?A:cn(O),T=I==null?A:cn(I),A=new ie(L,E+"leave",O,l,q),A.target=De,A.relatedTarget=T,L=null,xa(q)===M&&(ie=new ie(w,E+"enter",I,l,q),ie.target=T,ie.relatedTarget=De,L=ie),De=L,O&&I)t:{for(ie=Dx,w=O,E=I,T=0,L=w;L;L=ie(L))T++;L=0;for(var ne=E;ne;ne=ie(ne))L++;for(;0<T-L;)w=ie(w),T--;for(;0<L-T;)E=ie(E),L--;for(;T--;){if(w===E||E!==null&&w===E.alternate){ie=w;break t}w=ie(w),E=ie(E)}ie=null}else ie=null;O!==null&&Ff(k,A,O,ie,!1),I!==null&&De!==null&&Ff(k,De,I,ie,!0)}}e:{if(A=M?cn(M):window,O=A.nodeName&&A.nodeName.toLowerCase(),O==="select"||O==="input"&&A.type==="file")var Ee=fo;else if(ro(A))if(mo)Ee=Xh;else{Ee=Gh;var ee=kh}else O=A.nodeName,!O||O.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?M&&Wi(M.elementType)&&(Ee=fo):Ee=Qh;if(Ee&&(Ee=Ee(e,M))){oo(k,Ee,l,q);break e}ee&&ee(e,A,M),e==="focusout"&&M&&A.type==="number"&&M.memoizedProps.value!=null&&Fi(A,"number",A.value)}switch(ee=M?cn(M):window,e){case"focusin":(ro(ee)||ee.contentEditable==="true")&&(Ea=ee,du=M,pn=null);break;case"focusout":pn=du=Ea=null;break;case"mousedown":fu=!0;break;case"contextmenu":case"mouseup":case"dragend":fu=!1,jo(k,l,q);break;case"selectionchange":if($h)break;case"keydown":case"keyup":jo(k,l,q)}var he;if(uu)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else Sa?uo(e,l)&&(ge="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ge="onCompositionStart");ge&&(no&&l.locale!=="ko"&&(Sa||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&Sa&&(he=Ir()):(jl=q,lu="value"in jl?jl.value:jl.textContent,Sa=!0)),ee=fi(M,ge),0<ee.length&&(ge=new lo(ge,e,null,l,q),k.push({event:ge,listeners:ee}),he?ge.data=he:(he=co(l),he!==null&&(ge.data=he)))),(he=Hh?qh(e,l):Bh(e,l))&&(ge=fi(M,"onBeforeInput"),0<ge.length&&(ee=new lo("onBeforeInput","beforeinput",null,l,q),k.push({event:ee,listeners:ge}),ee.data=he)),Mx(k,e,M,l,q)}Kf(k,t)})}function Gn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fi(e,t){for(var l=t+"Capture",a=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=rn(e,l),s!=null&&a.unshift(Gn(e,s,i)),s=rn(e,t),s!=null&&a.push(Gn(e,s,i))),e.tag===3)return a;e=e.return}return[]}function Dx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ff(e,t,l,a,s){for(var i=t._reactName,c=[];l!==null&&l!==a;){var m=l,N=m.alternate,M=m.stateNode;if(m=m.tag,N!==null&&N===a)break;m!==5&&m!==26&&m!==27||M===null||(N=M,s?(M=rn(l,i),M!=null&&c.unshift(Gn(l,M,N))):s||(M=rn(l,i),M!=null&&c.push(Gn(l,M,N)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var Ox=/\r\n?/g,Ux=/\u0000|\uFFFD/g;function Wf(e){return(typeof e=="string"?e:""+e).replace(Ox,`
|
|
49
|
+
`).replace(Ux,"")}function Pf(e,t){return t=Wf(t),Wf(e)===t}function ze(e,t,l,a,s,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ya(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ya(e,""+a);break;case"className":vs(e,"class",a);break;case"tabIndex":vs(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":vs(e,l,a);break;case"style":Fr(e,a,i);break;case"data":if(t!=="object"){vs(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=gs(""+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"&&ze(e,t,"name",s.name,s,null),ze(e,t,"formEncType",s.formEncType,s,null),ze(e,t,"formMethod",s.formMethod,s,null),ze(e,t,"formTarget",s.formTarget,s,null)):(ze(e,t,"encType",s.encType,s,null),ze(e,t,"method",s.method,s,null),ze(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=gs(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Wt);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("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(s.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=gs(""+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":ve("beforetoggle",e),ve("toggle",e),xs(e,"popover",a);break;case"xlinkActuate":Ft(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ft(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ft(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ft(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ft(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ft(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ft(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":xs(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=rh.get(l)||l,xs(e,l,a))}}function qc(e,t,l,a,s,i){switch(l){case"style":Fr(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(s.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ya(e,a):(typeof a=="number"||typeof a=="bigint")&&ya(e,""+a);break;case"onScroll":a!=null&&ve("scroll",e);break;case"onScrollEnd":a!=null&&ve("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Wt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kr.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),i=e[rt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,s);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):xs(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":ve("error",e),ve("load",e);var a=!1,s=!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":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,i,c,l,null)}}s&&ze(e,t,"srcSet",l.srcSet,l,null),a&&ze(e,t,"src",l.src,l,null);return;case"input":ve("invalid",e);var m=i=c=s=null,N=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var q=l[a];if(q!=null)switch(a){case"name":s=q;break;case"type":c=q;break;case"checked":N=q;break;case"defaultChecked":M=q;break;case"value":i=q;break;case"defaultValue":m=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:ze(e,t,a,q,l,null)}}$r(e,i,m,N,M,c,s,!1);return;case"select":ve("invalid",e),a=c=i=null;for(s in l)if(l.hasOwnProperty(s)&&(m=l[s],m!=null))switch(s){case"value":i=m;break;case"defaultValue":c=m;break;case"multiple":a=m;default:ze(e,t,s,m,l,null)}t=i,l=c,e.multiple=!!a,t!=null?ba(e,!!a,t,!1):l!=null&&ba(e,!!a,l,!0);return;case"textarea":ve("invalid",e),i=s=a=null;for(c in l)if(l.hasOwnProperty(c)&&(m=l[c],m!=null))switch(c){case"value":a=m;break;case"defaultValue":s=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:ze(e,t,c,m,l,null)}Kr(e,a,s,i);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ze(e,t,N,a,l,null)}return;case"dialog":ve("beforetoggle",e),ve("toggle",e),ve("cancel",e),ve("close",e);break;case"iframe":case"object":ve("load",e);break;case"video":case"audio":for(a=0;a<kn.length;a++)ve(kn[a],e);break;case"image":ve("error",e),ve("load",e);break;case"details":ve("toggle",e);break;case"embed":case"source":case"link":ve("error",e),ve("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:ze(e,t,M,a,l,null)}return;default:if(Wi(t)){for(q in l)l.hasOwnProperty(q)&&(a=l[q],a!==void 0&&qc(e,t,q,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&ze(e,t,m,a,l,null))}function Hx(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 s=null,i=null,c=null,m=null,N=null,M=null,q=null;for(O in l){var k=l[O];if(l.hasOwnProperty(O)&&k!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":N=k;default:a.hasOwnProperty(O)||ze(e,t,O,null,a,k)}}for(var A in a){var O=a[A];if(k=l[A],a.hasOwnProperty(A)&&(O!=null||k!=null))switch(A){case"type":i=O;break;case"name":s=O;break;case"checked":M=O;break;case"defaultChecked":q=O;break;case"value":c=O;break;case"defaultValue":m=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==k&&ze(e,t,A,O,a,k)}}Ji(e,c,m,N,M,q,i,s);return;case"select":O=c=m=A=null;for(i in l)if(N=l[i],l.hasOwnProperty(i)&&N!=null)switch(i){case"value":break;case"multiple":O=N;default:a.hasOwnProperty(i)||ze(e,t,i,null,a,N)}for(s in a)if(i=a[s],N=l[s],a.hasOwnProperty(s)&&(i!=null||N!=null))switch(s){case"value":A=i;break;case"defaultValue":m=i;break;case"multiple":c=i;default:i!==N&&ze(e,t,s,i,a,N)}t=m,l=c,a=O,A!=null?ba(e,!!l,A,!1):!!a!=!!l&&(t!=null?ba(e,!!l,t,!0):ba(e,!!l,l?[]:"",!1));return;case"textarea":O=A=null;for(m in l)if(s=l[m],l.hasOwnProperty(m)&&s!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:ze(e,t,m,null,a,s)}for(c in a)if(s=a[c],i=l[c],a.hasOwnProperty(c)&&(s!=null||i!=null))switch(c){case"value":A=s;break;case"defaultValue":O=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==i&&ze(e,t,c,s,a,i)}Zr(e,A,O);return;case"option":for(var I in l)if(A=l[I],l.hasOwnProperty(I)&&A!=null&&!a.hasOwnProperty(I))switch(I){case"selected":e.selected=!1;break;default:ze(e,t,I,null,a,A)}for(N in a)if(A=a[N],O=l[N],a.hasOwnProperty(N)&&A!==O&&(A!=null||O!=null))switch(N){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:ze(e,t,N,A,a,O)}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 ie in l)A=l[ie],l.hasOwnProperty(ie)&&A!=null&&!a.hasOwnProperty(ie)&&ze(e,t,ie,null,a,A);for(M in a)if(A=a[M],O=l[M],a.hasOwnProperty(M)&&A!==O&&(A!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(137,t));break;default:ze(e,t,M,A,a,O)}return;default:if(Wi(t)){for(var De in l)A=l[De],l.hasOwnProperty(De)&&A!==void 0&&!a.hasOwnProperty(De)&&qc(e,t,De,void 0,a,A);for(q in a)A=a[q],O=l[q],!a.hasOwnProperty(q)||A===O||A===void 0&&O===void 0||qc(e,t,q,A,a,O);return}}for(var w in l)A=l[w],l.hasOwnProperty(w)&&A!=null&&!a.hasOwnProperty(w)&&ze(e,t,w,null,a,A);for(k in a)A=a[k],O=l[k],!a.hasOwnProperty(k)||A===O||A==null&&O==null||ze(e,t,k,A,a,O)}function If(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var s=l[a],i=s.transferSize,c=s.initiatorType,m=s.duration;if(i&&m&&If(c)){for(c=0,m=s.responseEnd,a+=1;a<l.length;a++){var N=l[a],M=N.startTime;if(M>m)break;var q=N.transferSize,k=N.initiatorType;q&&If(k)&&(N=N.responseEnd,c+=q*(N<m?1:(m-M)/(N-M)))}if(--a,t+=8*(i+c)/(s.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 Bc=null,Lc=null;function mi(e){return e.nodeType===9?e:e.ownerDocument}function em(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 tm(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 Yc(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 kc=null;function Bx(){var e=window.event;return e&&e.type==="popstate"?e===kc?!1:(kc=e,!0):(kc=null,!1)}var lm=typeof setTimeout=="function"?setTimeout:void 0,Lx=typeof clearTimeout=="function"?clearTimeout:void 0,am=typeof Promise=="function"?Promise:void 0,Yx=typeof queueMicrotask=="function"?queueMicrotask:typeof am<"u"?function(e){return am.resolve(null).then(e).catch(kx)}:lm;function kx(e){setTimeout(function(){throw e})}function Bl(e){return e==="head"}function nm(e,t){var l=t,a=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(s),Wa(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Qn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Qn(l);for(var i=l.firstChild;i;){var c=i.nextSibling,m=i.nodeName;i[un]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&Qn(e.ownerDocument.body);l=s}while(l);Wa(t)}function sm(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 Gc(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":Gc(l),Zi(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gx(e,t,l,a){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[un])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!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Bt(e.nextSibling),e===null)break}return null}function Qx(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Bt(e.nextSibling),e===null))return null;return e}function im(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Bt(e.nextSibling),e===null))return null;return e}function Qc(e){return e.data==="$?"||e.data==="$~"}function Xc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xx(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 Bt(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 Vc=null;function um(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Bt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function cm(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 rm(e,t,l){switch(t=mi(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 Qn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Zi(e)}var Lt=new Map,om=new Set;function hi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ml=$.d;$.d={f:Vx,r:$x,D:Zx,C:Kx,L:Jx,m:Fx,X:Px,S:Wx,M:Ix};function Vx(){var e=ml.f(),t=si();return e||t}function $x(e){var t=va(e);t!==null&&t.tag===5&&t.type==="form"?Cd(t):ml.r(e)}var Ka=typeof document>"u"?null:document;function dm(e,t,l){var a=Ka;if(a&&typeof t=="string"&&t){var s=_t(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),om.has(s)||(om.add(s),e={rel:e,crossOrigin:l,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Zx(e){ml.D(e),dm("dns-prefetch",e,null)}function Kx(e,t){ml.C(e,t),dm("preconnect",e,t)}function Jx(e,t,l){ml.L(e,t,l);var a=Ka;if(a&&e&&t){var s='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+_t(l.imageSizes)+'"]')):s+='[href="'+_t(e)+'"]';var i=s;switch(t){case"style":i=Ja(e);break;case"script":i=Fa(e)}Lt.has(i)||(e=p({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Lt.set(i,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Xn(i))||t==="script"&&a.querySelector(Vn(i))||(t=a.createElement("link"),st(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Fx(e,t){ml.m(e,t);var l=Ka;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',i=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Fa(e)}if(!Lt.has(i)&&(e=p({rel:"modulepreload",href:e},t),Lt.set(i,e),l.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Vn(i)))return}a=l.createElement("link"),st(a,"link",e),Ie(a),l.head.appendChild(a)}}}function Wx(e,t,l){ml.S(e,t,l);var a=Ka;if(a&&e){var s=pa(a).hoistableStyles,i=Ja(e);t=t||"default";var c=s.get(i);if(!c){var m={loading:0,preload:null};if(c=a.querySelector(Xn(i)))m.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Lt.get(i))&&$c(e,l);var N=c=a.createElement("link");Ie(N),st(N,"link",e),N._p=new Promise(function(M,q){N.onload=M,N.onerror=q}),N.addEventListener("load",function(){m.loading|=1}),N.addEventListener("error",function(){m.loading|=2}),m.loading|=4,xi(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:m},s.set(i,c)}}}function Px(e,t){ml.X(e,t);var l=Ka;if(l&&e){var a=pa(l).hoistableScripts,s=Fa(e),i=a.get(s);i||(i=l.querySelector(Vn(s)),i||(e=p({src:e,async:!0},t),(t=Lt.get(s))&&Zc(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(s,i))}}function Ix(e,t){ml.M(e,t);var l=Ka;if(l&&e){var a=pa(l).hoistableScripts,s=Fa(e),i=a.get(s);i||(i=l.querySelector(Vn(s)),i||(e=p({src:e,async:!0,type:"module"},t),(t=Lt.get(s))&&Zc(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(s,i))}}function fm(e,t,l,a){var s=(s=V.current)?hi(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ja(l.href),l=pa(s).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=Ja(l.href);var i=pa(s).hoistableStyles,c=i.get(e);if(c||(s=s.ownerDocument||s,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=s.querySelector(Xn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Lt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Lt.set(e,l),i||ev(s,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=Fa(l),l=pa(s).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 Ja(e){return'href="'+_t(e)+'"'}function Xn(e){return'link[rel="stylesheet"]['+e+"]"}function mm(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function ev(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 Fa(e){return'[src="'+_t(e)+'"]'}function Vn(e){return"script[async]"+e}function hm(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 s=p({},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",s),xi(a,l.precedence,e),t.instance=a;case"stylesheet":s=Ja(l.href);var i=e.querySelector(Xn(s));if(i)return t.state.loading|=4,t.instance=i,Ie(i),i;a=mm(l),(s=Lt.get(s))&&$c(a,s),i=(e.ownerDocument||e).createElement("link"),Ie(i);var c=i;return c._p=new Promise(function(m,N){c.onload=m,c.onerror=N}),st(i,"link",a),t.state.loading|=4,xi(i,l.precedence,e),t.instance=i;case"script":return i=Fa(l.src),(s=e.querySelector(Vn(i)))?(t.instance=s,Ie(s),s):(a=l,(s=Lt.get(i))&&(a=p({},l),Zc(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ie(s),st(s,"link",a),e.head.appendChild(s),t.instance=s);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,xi(a,l.precedence,e));return t.instance}function xi(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,i=s,c=0;c<a.length;c++){var m=a[c];if(m.dataset.precedence===t)i=m;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var vi=null;function xm(e,t,l){if(vi===null){var a=new Map,s=vi=new Map;s.set(l,a)}else s=vi,a=s.get(l),a||(a=new Map,s.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var i=l[s];if(!(i[un]||i[tt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var m=a.get(c);m?m.push(i):a.set(c,[i])}}return a}function vm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function tv(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 pm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lv(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 s=Ja(a.href),i=t.querySelector(Xn(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=pi.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ie(i);return}i=t.ownerDocument||t,a=mm(a),(s=Lt.get(s))&&$c(a,s),i=i.createElement("link"),Ie(i);var c=i;c._p=new Promise(function(m,N){c.onload=m,c.onerror=N}),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=pi.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Kc=0;function av(e,t){return e.stylesheets&&e.count===0&&bi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&bi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Kc===0&&(Kc=62500*qx());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Kc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(s)}}:null}function pi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gi=null;function bi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gi=new Map,t.forEach(nv,e),gi=null,pi.call(e))}function nv(e,t){if(!(t.state.loading&4)){var l=gi.get(e);if(l)var a=l.get(null);else{l=new Map,gi.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var c=s[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}s=t.instance,c=s.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,s),l.set(c,s),this.count++,a=pi.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var $n={$$typeof:Y,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function sv(e,t,l,a,s,i,c,m,N){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=Qi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qi(0),this.hiddenUpdates=Qi(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function gm(e,t,l,a,s,i,c,m,N,M,q,k){return e=new sv(e,t,l,c,N,M,q,k,m),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=Ru(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},_u(i),e}function bm(e){return e?(e=Ra,e):Ra}function ym(e,t,l,a,s,i){s=bm(s),a.context===null?a.context=s:a.pendingContext=s,a=Rl(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Tl(e,a,t),l!==null&&(xt(l,e,t),En(l,e,t))}function jm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Jc(e,t){jm(e,t),(e=e.alternate)&&jm(e,t)}function Nm(e){if(e.tag===13||e.tag===31){var t=Pl(e,67108864);t!==null&&xt(t,e,67108864),Jc(e,67108864)}}function Sm(e){if(e.tag===13||e.tag===31){var t=wt();t=Xi(t);var l=Pl(e,t);l!==null&&xt(l,e,t),Jc(e,t)}}var yi=!0;function iv(e,t,l,a){var s=_.T;_.T=null;var i=$.p;try{$.p=2,Fc(e,t,l,a)}finally{$.p=i,_.T=s}}function uv(e,t,l,a){var s=_.T;_.T=null;var i=$.p;try{$.p=8,Fc(e,t,l,a)}finally{$.p=i,_.T=s}}function Fc(e,t,l,a){if(yi){var s=Wc(a);if(s===null)Hc(e,t,a,ji,l),wm(e,a);else if(rv(s,e,t,l,a))a.stopPropagation();else if(wm(e,a),t&4&&-1<cv.indexOf(e)){for(;s!==null;){var i=va(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Zl(i.pendingLanes);if(c!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;c;){var N=1<<31-gt(c);m.entanglements[1]|=N,c&=~N}Zt(i),(Re&6)===0&&(ai=vt()+500,Yn(0))}}break;case 31:case 13:m=Pl(i,2),m!==null&&xt(m,i,2),si(),Jc(i,2)}if(i=Wc(a),i===null&&Hc(e,t,a,ji,l),i===s)break;s=i}s!==null&&a.stopPropagation()}else Hc(e,t,a,null,l)}}function Wc(e){return e=Ii(e),Pc(e)}var ji=null;function Pc(e){if(ji=null,e=xa(e),e!==null){var t=x(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=b(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ji=e,null}function Em(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(Z0()){case Ar:return 2;case _r:return 8;case os:case K0:return 32;case zr:return 268435456;default:return 32}default:return 32}}var Ic=!1,Ll=null,Yl=null,kl=null,Zn=new Map,Kn=new Map,Gl=[],cv="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 wm(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":Yl=null;break;case"mouseover":case"mouseout":kl=null;break;case"pointerover":case"pointerout":Zn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kn.delete(t.pointerId)}}function Jn(e,t,l,a,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[s]},t!==null&&(t=va(t),t!==null&&Nm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function rv(e,t,l,a,s){switch(t){case"focusin":return Ll=Jn(Ll,e,t,l,a,s),!0;case"dragenter":return Yl=Jn(Yl,e,t,l,a,s),!0;case"mouseover":return kl=Jn(kl,e,t,l,a,s),!0;case"pointerover":var i=s.pointerId;return Zn.set(i,Jn(Zn.get(i)||null,e,t,l,a,s)),!0;case"gotpointercapture":return i=s.pointerId,Kn.set(i,Jn(Kn.get(i)||null,e,t,l,a,s)),!0}return!1}function Cm(e){var t=xa(e.target);if(t!==null){var l=x(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Br(e.priority,function(){Sm(l)});return}}else if(t===31){if(t=b(l),t!==null){e.blockedOn=t,Br(e.priority,function(){Sm(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 Ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Wc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Pi=a,l.target.dispatchEvent(a),Pi=null}else return t=va(l),t!==null&&Nm(t),e.blockedOn=l,!1;t.shift()}return!0}function Rm(e,t,l){Ni(e)&&l.delete(t)}function ov(){Ic=!1,Ll!==null&&Ni(Ll)&&(Ll=null),Yl!==null&&Ni(Yl)&&(Yl=null),kl!==null&&Ni(kl)&&(kl=null),Zn.forEach(Rm),Kn.forEach(Rm)}function Si(e,t){e.blockedOn===t&&(e.blockedOn=null,Ic||(Ic=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,ov)))}var Ei=null;function Tm(e){Ei!==e&&(Ei=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ei===e&&(Ei=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(Pc(a||l)===null)continue;break}var i=va(l);i!==null&&(e.splice(t,3),t-=3,Wu(i,{pending:!0,data:s,method:l.method,action:a},a,s))}}))}function Wa(e){function t(N){return Si(N,e)}Ll!==null&&Si(Ll,e),Yl!==null&&Si(Yl,e),kl!==null&&Si(kl,e),Zn.forEach(t),Kn.forEach(t);for(var l=0;l<Gl.length;l++){var a=Gl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Gl.length&&(l=Gl[0],l.blockedOn===null);)Cm(l),l.blockedOn===null&&Gl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var s=l[a],i=l[a+1],c=s[rt]||null;if(typeof i=="function")c||Tm(l);else if(c){var m=null;if(i&&i.hasAttribute("formAction")){if(s=i,c=i[rt]||null)m=c.formAction;else if(Pc(s)!==null)continue}else m=c.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Tm(l)}}}function Mm(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return s=c})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=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,s=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),s!==null&&(s(),s=null)}}}function er(e){this._internalRoot=e}wi.prototype.render=er.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=wt();ym(l,a,e,t,null,null)},wi.prototype.unmount=er.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ym(e.current,2,null,e,null,null),si(),t[ha]=null}};function wi(e){this._internalRoot=e}wi.prototype.unstable_scheduleHydration=function(e){if(e){var t=qr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Gl.length&&t!==0&&t<Gl[l].priority;l++);Gl.splice(l,0,e),l===0&&Cm(e)}};var Am=o.version;if(Am!=="19.2.4")throw Error(r(527,Am,"19.2.4"));$.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?j(e):null,e=e===null?null:e.stateNode,e};var dv={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ci=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ci.isDisabled&&Ci.supportsFiber)try{an=Ci.inject(dv),pt=Ci}catch{}}return Wn.createRoot=function(e,t){if(!h(e))throw Error(r(299));var l=!1,a="",s=Hd,i=qd,c=Bd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=gm(e,1,!1,null,null,l,a,null,s,i,c,Mm),e[ha]=t.current,Uc(e),new er(t)},Wn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(r(299));var a=!1,s="",i=Hd,c=qd,m=Bd,N=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(N=l.formState)),t=gm(e,1,!0,t,l??null,a,s,N,i,c,m,Mm),t.context=bm(null),l=t.current,a=wt(),a=Xi(a),s=Rl(a),s.callback=null,Tl(l,s,a),l=a,t.current.lanes=l,sn(t,l),Zt(t),e[ha]=t.current,Uc(e),new wi(t)},Wn.version="19.2.4",Wn}var Ym;function jv(){if(Ym)return ar.exports;Ym=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=yv(),ar.exports}var Nv=jv();const Sv=e0(Nv);/**
|
|
50
|
+
* react-router v7.13.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var km="popstate";function Ev(u={}){function o(h,x){let{pathname:f="/",search:b="",hash:g=""}=fa(h.location.hash.substring(1));return!f.startsWith("/")&&!f.startsWith(".")&&(f="/"+f),mr("",{pathname:f,search:b,hash:g},x.state&&x.state.usr||null,x.state&&x.state.key||"default")}function d(h,x){let f=h.document.querySelector("base"),b="";if(f&&f.getAttribute("href")){let g=h.location.href,v=g.indexOf("#");b=v===-1?g:g.slice(0,v)}return b+"#"+(typeof x=="string"?x:ls(x))}function r(h,x){Yt(h.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(x)})`)}return Cv(o,d,r,u)}function ke(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Yt(u,o){if(!u){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function wv(){return Math.random().toString(36).substring(2,10)}function Gm(u,o){return{usr:u.state,key:u.key,idx:o}}function mr(u,o,d=null,r){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof o=="string"?fa(o):o,state:d,key:o&&o.key||r||wv()}}function ls({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 fa(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 Cv(u,o,d,r={}){let{window:h=document.defaultView,v5Compat:x=!1}=r,f=h.history,b="POP",g=null,v=j();v==null&&(v=0,f.replaceState({...f.state,idx:v},""));function j(){return(f.state||{idx:null}).idx}function p(){b="POP";let U=j(),Q=U==null?null:U-v;v=U,g&&g({action:b,location:y.location,delta:Q})}function D(U,Q){b="PUSH";let G=mr(y.location,U,Q);d&&d(G,U),v=j()+1;let Y=Gm(G,v),se=y.createHref(G);try{f.pushState(Y,"",se)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;h.location.assign(se)}x&&g&&g({action:b,location:y.location,delta:1})}function z(U,Q){b="REPLACE";let G=mr(y.location,U,Q);d&&d(G,U),v=j();let Y=Gm(G,v),se=y.createHref(G);f.replaceState(Y,"",se),x&&g&&g({action:b,location:y.location,delta:0})}function H(U){return Rv(U)}let y={get action(){return b},get location(){return u(h,f)},listen(U){if(g)throw new Error("A history only accepts one active listener");return h.addEventListener(km,p),g=U,()=>{h.removeEventListener(km,p),g=null}},createHref(U){return o(h,U)},createURL:H,encodeLocation(U){let Q=H(U);return{pathname:Q.pathname,search:Q.search,hash:Q.hash}},push:D,replace:z,go(U){return f.go(U)}};return y}function Rv(u,o=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),ke(d,"No window.location.(origin|href) available to create URL");let r=typeof u=="string"?u:ls(u);return r=r.replace(/ $/,"%20"),!o&&r.startsWith("//")&&(r=d+r),new URL(r,d)}function t0(u,o,d="/"){return Tv(u,o,d,!1)}function Tv(u,o,d,r){let h=typeof o=="string"?fa(o):o,x=vl(h.pathname||"/",d);if(x==null)return null;let f=l0(u);Mv(f);let b=null;for(let g=0;b==null&&g<f.length;++g){let v=Yv(x);b=Bv(f[g],v,r)}return b}function l0(u,o=[],d=[],r="",h=!1){let x=(f,b,g=h,v)=>{let j={relativePath:v===void 0?f.path||"":v,caseSensitive:f.caseSensitive===!0,childrenIndex:b,route:f};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(r)&&g)return;ke(j.relativePath.startsWith(r),`Absolute route path "${j.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(r.length)}let p=xl([r,j.relativePath]),D=d.concat(j);f.children&&f.children.length>0&&(ke(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),l0(f.children,o,D,p,g)),!(f.path==null&&!f.index)&&o.push({path:p,score:Hv(p,f.index),routesMeta:D})};return u.forEach((f,b)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))x(f,b);else for(let v of a0(f.path))x(f,b,!0,v)}),o}function a0(u){let o=u.split("/");if(o.length===0)return[];let[d,...r]=o,h=d.endsWith("?"),x=d.replace(/\?$/,"");if(r.length===0)return h?[x,""]:[x];let f=a0(r.join("/")),b=[];return b.push(...f.map(g=>g===""?x:[x,g].join("/"))),h&&b.push(...f),b.map(g=>u.startsWith("/")&&g===""?"/":g)}function Mv(u){u.sort((o,d)=>o.score!==d.score?d.score-o.score:qv(o.routesMeta.map(r=>r.childrenIndex),d.routesMeta.map(r=>r.childrenIndex)))}var Av=/^:[\w-]+$/,_v=3,zv=2,Dv=1,Ov=10,Uv=-2,Qm=u=>u==="*";function Hv(u,o){let d=u.split("/"),r=d.length;return d.some(Qm)&&(r+=Uv),o&&(r+=zv),d.filter(h=>!Qm(h)).reduce((h,x)=>h+(Av.test(x)?_v:x===""?Dv:Ov),r)}function qv(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 Bv(u,o,d=!1){let{routesMeta:r}=u,h={},x="/",f=[];for(let b=0;b<r.length;++b){let g=r[b],v=b===r.length-1,j=x==="/"?o:o.slice(x.length)||"/",p=zi({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},j),D=g.route;if(!p&&v&&d&&!r[r.length-1].route.index&&(p=zi({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},j)),!p)return null;Object.assign(h,p.params),f.push({params:h,pathname:xl([x,p.pathname]),pathnameBase:Xv(xl([x,p.pathnameBase])),route:D}),p.pathnameBase!=="/"&&(x=xl([x,p.pathnameBase]))}return f}function zi(u,o){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[d,r]=Lv(u.path,u.caseSensitive,u.end),h=o.match(d);if(!h)return null;let x=h[0],f=x.replace(/(.)\/+$/,"$1"),b=h.slice(1);return{params:r.reduce((v,{paramName:j,isOptional:p},D)=>{if(j==="*"){let H=b[D]||"";f=x.slice(0,x.length-H.length).replace(/(.)\/+$/,"$1")}const z=b[D];return p&&!z?v[j]=void 0:v[j]=(z||"").replace(/%2F/g,"/"),v},{}),pathname:x,pathnameBase:f,pattern:u}}function Lv(u,o=!1,d=!0){Yt(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let r=[],h="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,b,g)=>(r.push({paramName:b,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 Yv(u){try{return u.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Yt(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),u}}function vl(u,o){if(o==="/")return u;if(!u.toLowerCase().startsWith(o.toLowerCase()))return null;let d=o.endsWith("/")?o.length-1:o.length,r=u.charAt(d);return r&&r!=="/"?null:u.slice(d)||"/"}var kv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Gv(u,o="/"){let{pathname:d,search:r="",hash:h=""}=typeof u=="string"?fa(u):u,x;return d?(d=d.replace(/\/\/+/g,"/"),d.startsWith("/")?x=Xm(d.substring(1),"/"):x=Xm(d,o)):x=o,{pathname:x,search:Vv(r),hash:$v(h)}}function Xm(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 ur(u,o,d,r){return`Cannot include a '${u}' character in a manually specified \`to.${o}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qv(u){return u.filter((o,d)=>d===0||o.route.path&&o.route.path.length>0)}function gr(u){let o=Qv(u);return o.map((d,r)=>r===o.length-1?d.pathname:d.pathnameBase)}function br(u,o,d,r=!1){let h;typeof u=="string"?h=fa(u):(h={...u},ke(!h.pathname||!h.pathname.includes("?"),ur("?","pathname","search",h)),ke(!h.pathname||!h.pathname.includes("#"),ur("#","pathname","hash",h)),ke(!h.search||!h.search.includes("#"),ur("#","search","hash",h)));let x=u===""||h.pathname==="",f=x?"/":h.pathname,b;if(f==null)b=d;else{let p=o.length-1;if(!r&&f.startsWith("..")){let D=f.split("/");for(;D[0]==="..";)D.shift(),p-=1;h.pathname=D.join("/")}b=p>=0?o[p]:"/"}let g=Gv(h,b),v=f&&f!=="/"&&f.endsWith("/"),j=(x||f===".")&&d.endsWith("/");return!g.pathname.endsWith("/")&&(v||j)&&(g.pathname+="/"),g}var xl=u=>u.join("/").replace(/\/\/+/g,"/"),Xv=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),Vv=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,$v=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,Zv=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 Kv(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function Jv(u){return u.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var n0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(u,o){let d=u;if(typeof d!="string"||!kv.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let r=d,h=!1;if(n0)try{let x=new URL(window.location.href),f=d.startsWith("//")?new URL(x.protocol+d):new URL(d),b=vl(f.pathname,o);f.origin===x.origin&&b!=null?d=b+f.search+f.hash:h=!0}catch{Yt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:h,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var i0=["POST","PUT","PATCH","DELETE"];new Set(i0);var Fv=["GET",...i0];new Set(Fv);var tn=C.createContext(null);tn.displayName="DataRouter";var Ui=C.createContext(null);Ui.displayName="DataRouterState";var Wv=C.createContext(!1),u0=C.createContext({isTransitioning:!1});u0.displayName="ViewTransition";var Pv=C.createContext(new Map);Pv.displayName="Fetchers";var Iv=C.createContext(null);Iv.displayName="Await";var Tt=C.createContext(null);Tt.displayName="Navigation";var ns=C.createContext(null);ns.displayName="Location";var Jt=C.createContext({outlet:null,matches:[],isDataRoute:!1});Jt.displayName="Route";var yr=C.createContext(null);yr.displayName="RouteError";var c0="REACT_ROUTER_ERROR",ep="REDIRECT",tp="ROUTE_ERROR_RESPONSE";function lp(u){if(u.startsWith(`${c0}:${ep}:{`))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 ap(u){if(u.startsWith(`${c0}:${tp}:{`))try{let o=JSON.parse(u.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new Zv(o.status,o.statusText,o.data)}catch{}}function np(u,{relative:o}={}){ke(ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:r}=C.useContext(Tt),{hash:h,pathname:x,search:f}=ss(u,{relative:o}),b=x;return d!=="/"&&(b=x==="/"?d:xl([d,x])),r.createHref({pathname:b,search:f,hash:h})}function ln(){return C.useContext(ns)!=null}function Vl(){return ke(ln(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(ns).location}var r0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function o0(u){C.useContext(Tt).static||C.useLayoutEffect(u)}function jr(){let{isDataRoute:u}=C.useContext(Jt);return u?pp():sp()}function sp(){ke(ln(),"useNavigate() may be used only in the context of a <Router> component.");let u=C.useContext(tn),{basename:o,navigator:d}=C.useContext(Tt),{matches:r}=C.useContext(Jt),{pathname:h}=Vl(),x=JSON.stringify(gr(r)),f=C.useRef(!1);return o0(()=>{f.current=!0}),C.useCallback((g,v={})=>{if(Yt(f.current,r0),!f.current)return;if(typeof g=="number"){d.go(g);return}let j=br(g,JSON.parse(x),h,v.relative==="path");u==null&&o!=="/"&&(j.pathname=j.pathname==="/"?o:xl([o,j.pathname])),(v.replace?d.replace:d.push)(j,v.state,v)},[o,d,x,h,u])}C.createContext(null);function ss(u,{relative:o}={}){let{matches:d}=C.useContext(Jt),{pathname:r}=Vl(),h=JSON.stringify(gr(d));return C.useMemo(()=>br(u,JSON.parse(h),r,o==="path"),[u,h,r,o])}function ip(u,o){return d0(u,o)}function d0(u,o,d,r,h){var G;ke(ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:x}=C.useContext(Tt),{matches:f}=C.useContext(Jt),b=f[f.length-1],g=b?b.params:{},v=b?b.pathname:"/",j=b?b.pathnameBase:"/",p=b&&b.route;{let Y=p&&p.path||"";m0(v,!p||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${Y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let D=Vl(),z;if(o){let Y=typeof o=="string"?fa(o):o;ke(j==="/"||((G=Y.pathname)==null?void 0:G.startsWith(j)),`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 "${j}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),z=Y}else z=D;let H=z.pathname||"/",y=H;if(j!=="/"){let Y=j.replace(/^\//,"").split("/");y="/"+H.replace(/^\//,"").split("/").slice(Y.length).join("/")}let U=t0(u,{pathname:y});Yt(p||U!=null,`No routes matched location "${z.pathname}${z.search}${z.hash}" `),Yt(U==null||U[U.length-1].route.element!==void 0||U[U.length-1].route.Component!==void 0||U[U.length-1].route.lazy!==void 0,`Matched leaf route at location "${z.pathname}${z.search}${z.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 Q=dp(U&&U.map(Y=>Object.assign({},Y,{params:Object.assign({},g,Y.params),pathname:xl([j,x.encodeLocation?x.encodeLocation(Y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?j:xl([j,x.encodeLocation?x.encodeLocation(Y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),f,d,r,h);return o&&Q?C.createElement(ns.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...z},navigationType:"POP"}},Q):Q}function up(){let u=vp(),o=Kv(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),d=u instanceof Error?u.stack:null,r="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:r},x={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",u),f=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:x},"ErrorBoundary")," or"," ",C.createElement("code",{style:x},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},o),d?C.createElement("pre",{style:h},d):null,f)}var cp=C.createElement(up,null),f0=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=ap(u.digest);d&&(u=d)}let o=u!==void 0?C.createElement(Jt.Provider,{value:this.props.routeContext},C.createElement(yr.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?C.createElement(rp,{error:u},o):o}};f0.contextType=Wv;var cr=new WeakMap;function rp({children:u,error:o}){let{basename:d}=C.useContext(Tt);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let r=lp(o.digest);if(r){let h=cr.get(o);if(h)throw h;let x=s0(r.location,d);if(n0&&!cr.get(o))if(x.isExternal||r.reloadDocument)window.location.href=x.absoluteURL||x.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(x.to,{replace:r.replace}));throw cr.set(o,f),f}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${x.absoluteURL||x.to}`})}}return u}function op({routeContext:u,match:o,children:d}){let r=C.useContext(tn);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 dp(u,o=[],d=null,r=null,h=null){if(u==null){if(!d)return null;if(d.errors)u=d.matches;else if(o.length===0&&!d.initialized&&d.matches.length>0)u=d.matches;else return null}let x=u,f=d==null?void 0:d.errors;if(f!=null){let j=x.findIndex(p=>p.route.id&&(f==null?void 0:f[p.route.id])!==void 0);ke(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),x=x.slice(0,Math.min(x.length,j+1))}let b=!1,g=-1;if(d)for(let j=0;j<x.length;j++){let p=x[j];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(g=j),p.route.id){let{loaderData:D,errors:z}=d,H=p.route.loader&&!D.hasOwnProperty(p.route.id)&&(!z||z[p.route.id]===void 0);if(p.route.lazy||H){b=!0,g>=0?x=x.slice(0,g+1):x=[x[0]];break}}}let v=d&&r?(j,p)=>{var D,z;r(j,{location:d.location,params:((z=(D=d.matches)==null?void 0:D[0])==null?void 0:z.params)??{},unstable_pattern:Jv(d.matches),errorInfo:p})}:void 0;return x.reduceRight((j,p,D)=>{let z,H=!1,y=null,U=null;d&&(z=f&&p.route.id?f[p.route.id]:void 0,y=p.route.errorElement||cp,b&&(g<0&&D===0?(m0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,U=null):g===D&&(H=!0,U=p.route.hydrateFallbackElement||null)));let Q=o.concat(x.slice(0,D+1)),G=()=>{let Y;return z?Y=y:H?Y=U:p.route.Component?Y=C.createElement(p.route.Component,null):p.route.element?Y=p.route.element:Y=j,C.createElement(op,{match:p,routeContext:{outlet:j,matches:Q,isDataRoute:d!=null},children:Y})};return d&&(p.route.ErrorBoundary||p.route.errorElement||D===0)?C.createElement(f0,{location:d.location,revalidation:d.revalidation,component:y,error:z,children:G(),routeContext:{outlet:null,matches:Q,isDataRoute:!0},onError:v}):G()},null)}function Nr(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fp(u){let o=C.useContext(tn);return ke(o,Nr(u)),o}function mp(u){let o=C.useContext(Ui);return ke(o,Nr(u)),o}function hp(u){let o=C.useContext(Jt);return ke(o,Nr(u)),o}function Sr(u){let o=hp(u),d=o.matches[o.matches.length-1];return ke(d.route.id,`${u} can only be used on routes that contain a unique "id"`),d.route.id}function xp(){return Sr("useRouteId")}function vp(){var r;let u=C.useContext(yr),o=mp("useRouteError"),d=Sr("useRouteError");return u!==void 0?u:(r=o.errors)==null?void 0:r[d]}function pp(){let{router:u}=fp("useNavigate"),o=Sr("useNavigate"),d=C.useRef(!1);return o0(()=>{d.current=!0}),C.useCallback(async(h,x={})=>{Yt(d.current,r0),d.current&&(typeof h=="number"?await u.navigate(h):await u.navigate(h,{fromRouteId:o,...x}))},[u,o])}var Vm={};function m0(u,o,d){!o&&!Vm[u]&&(Vm[u]=!0,Yt(!1,d))}C.memo(gp);function gp({routes:u,future:o,state:d,onError:r}){return d0(u,void 0,d,r,o)}function bp({to:u,replace:o,state:d,relative:r}){ke(ln(),"<Navigate> may be used only in the context of a <Router> component.");let{static:h}=C.useContext(Tt);Yt(!h,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:x}=C.useContext(Jt),{pathname:f}=Vl(),b=jr(),g=br(u,gr(x),f,r==="path"),v=JSON.stringify(g);return C.useEffect(()=>{b(JSON.parse(v),{replace:o,state:d,relative:r})},[b,v,r,o,d]),null}function hl(u){ke(!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 yp({basename:u="/",children:o=null,location:d,navigationType:r="POP",navigator:h,static:x=!1,unstable_useTransitions:f}){ke(!ln(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=u.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:b,navigator:h,static:x,unstable_useTransitions:f,future:{}}),[b,h,x,f]);typeof d=="string"&&(d=fa(d));let{pathname:v="/",search:j="",hash:p="",state:D=null,key:z="default"}=d,H=C.useMemo(()=>{let y=vl(v,b);return y==null?null:{location:{pathname:y,search:j,hash:p,state:D,key:z},navigationType:r}},[b,v,j,p,D,z,r]);return Yt(H!=null,`<Router basename="${b}"> is not able to match the URL "${v}${j}${p}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:C.createElement(Tt.Provider,{value:g},C.createElement(ns.Provider,{children:o,value:H}))}function jp({children:u,location:o}){return ip(hr(u),o)}function hr(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,hr(r.props.children,x));return}ke(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>`),ke(!r.props.index||!r.props.children,"An index route cannot have child routes.");let f={id:r.props.id||x.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(f.children=hr(r.props.children,x)),d.push(f)}),d}var Ti="get",Mi="application/x-www-form-urlencoded";function Hi(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Np(u){return Hi(u)&&u.tagName.toLowerCase()==="button"}function Sp(u){return Hi(u)&&u.tagName.toLowerCase()==="form"}function Ep(u){return Hi(u)&&u.tagName.toLowerCase()==="input"}function wp(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Cp(u,o){return u.button===0&&(!o||o==="_self")&&!wp(u)}var Ri=null;function Rp(){if(Ri===null)try{new FormData(document.createElement("form"),0),Ri=!1}catch{Ri=!0}return Ri}var Tp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rr(u){return u!=null&&!Tp.has(u)?(Yt(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mi}"`),null):u}function Mp(u,o){let d,r,h,x,f;if(Sp(u)){let b=u.getAttribute("action");r=b?vl(b,o):null,d=u.getAttribute("method")||Ti,h=rr(u.getAttribute("enctype"))||Mi,x=new FormData(u)}else if(Np(u)||Ep(u)&&(u.type==="submit"||u.type==="image")){let b=u.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=u.getAttribute("formaction")||b.getAttribute("action");if(r=g?vl(g,o):null,d=u.getAttribute("formmethod")||b.getAttribute("method")||Ti,h=rr(u.getAttribute("formenctype"))||rr(b.getAttribute("enctype"))||Mi,x=new FormData(b,u),!Rp()){let{name:v,type:j,value:p}=u;if(j==="image"){let D=v?`${v}.`:"";x.append(`${D}x`,"0"),x.append(`${D}y`,"0")}else v&&x.append(v,p)}}else{if(Hi(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=Ti,r=null,h=Mi,f=u}return x&&h==="text/plain"&&(f=x,x=void 0),{action:r,method:d.toLowerCase(),encType:h,formData:x,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Er(u,o){if(u===!1||u===null||typeof u>"u")throw new Error(o)}function Ap(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 _p(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 zp(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 Dp(u,o,d){let r=await Promise.all(u.map(async h=>{let x=o.routes[h.route.id];if(x){let f=await _p(x,d);return f.links?f.links():[]}return[]}));return qp(r.flat(1).filter(zp).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function $m(u,o,d,r,h,x){let f=(g,v)=>d[v]?g.route.id!==d[v].route.id:!0,b=(g,v)=>{var j;return d[v].pathname!==g.pathname||((j=d[v].route.path)==null?void 0:j.endsWith("*"))&&d[v].params["*"]!==g.params["*"]};return x==="assets"?o.filter((g,v)=>f(g,v)||b(g,v)):x==="data"?o.filter((g,v)=>{var p;let j=r.routes[g.route.id];if(!j||!j.hasLoader)return!1;if(f(g,v)||b(g,v))return!0;if(g.route.shouldRevalidate){let D=g.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((p=d[0])==null?void 0:p.params)||{},nextUrl:new URL(u,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function Op(u,o,{includeHydrateFallback:d}={}){return Up(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 Up(u){return[...new Set(u)]}function Hp(u){let o={},d=Object.keys(u).sort();for(let r of d)o[r]=u[r];return o}function qp(u,o){let d=new Set;return new Set(o),u.reduce((r,h)=>{let x=JSON.stringify(Hp(h));return d.has(x)||(d.add(x),r.push({key:x,link:h})),r},[])}function h0(){let u=C.useContext(tn);return Er(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function Bp(){let u=C.useContext(Ui);return Er(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var wr=C.createContext(void 0);wr.displayName="FrameworkContext";function x0(){let u=C.useContext(wr);return Er(u,"You must render this element inside a <HydratedRouter> element"),u}function Lp(u,o){let d=C.useContext(wr),[r,h]=C.useState(!1),[x,f]=C.useState(!1),{onFocus:b,onBlur:g,onMouseEnter:v,onMouseLeave:j,onTouchStart:p}=o,D=C.useRef(null);C.useEffect(()=>{if(u==="render"&&f(!0),u==="viewport"){let y=Q=>{Q.forEach(G=>{f(G.isIntersecting)})},U=new IntersectionObserver(y,{threshold:.5});return D.current&&U.observe(D.current),()=>{U.disconnect()}}},[u]),C.useEffect(()=>{if(r){let y=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(y)}}},[r]);let z=()=>{h(!0)},H=()=>{h(!1),f(!1)};return d?u!=="intent"?[x,D,{}]:[x,D,{onFocus:Pn(b,z),onBlur:Pn(g,H),onMouseEnter:Pn(v,z),onMouseLeave:Pn(j,H),onTouchStart:Pn(p,z)}]:[!1,D,{}]}function Pn(u,o){return d=>{u&&u(d),d.defaultPrevented||o(d)}}function Yp({page:u,...o}){let{router:d}=h0(),r=C.useMemo(()=>t0(d.routes,u,d.basename),[d.routes,u,d.basename]);return r?C.createElement(Gp,{page:u,matches:r,...o}):null}function kp(u){let{manifest:o,routeModules:d}=x0(),[r,h]=C.useState([]);return C.useEffect(()=>{let x=!1;return Dp(u,o,d).then(f=>{x||h(f)}),()=>{x=!0}},[u,o,d]),r}function Gp({page:u,matches:o,...d}){let r=Vl(),{future:h,manifest:x,routeModules:f}=x0(),{basename:b}=h0(),{loaderData:g,matches:v}=Bp(),j=C.useMemo(()=>$m(u,o,v,x,r,"data"),[u,o,v,x,r]),p=C.useMemo(()=>$m(u,o,v,x,r,"assets"),[u,o,v,x,r]),D=C.useMemo(()=>{if(u===r.pathname+r.search+r.hash)return[];let y=new Set,U=!1;if(o.forEach(G=>{var se;let Y=x.routes[G.route.id];!Y||!Y.hasLoader||(!j.some(re=>re.route.id===G.route.id)&&G.route.id in g&&((se=f[G.route.id])!=null&&se.shouldRevalidate)||Y.hasClientLoader?U=!0:y.add(G.route.id))}),y.size===0)return[];let Q=Ap(u,b,h.unstable_trailingSlashAwareDataRequests,"data");return U&&y.size>0&&Q.searchParams.set("_routes",o.filter(G=>y.has(G.route.id)).map(G=>G.route.id).join(",")),[Q.pathname+Q.search]},[b,h.unstable_trailingSlashAwareDataRequests,g,r,x,j,o,u,f]),z=C.useMemo(()=>Op(p,x),[p,x]),H=kp(p);return C.createElement(C.Fragment,null,D.map(y=>C.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...d})),z.map(y=>C.createElement("link",{key:y,rel:"modulepreload",href:y,...d})),H.map(({key:y,link:U})=>C.createElement("link",{key:y,nonce:d.nonce,...U,crossOrigin:U.crossOrigin??d.crossOrigin})))}function Qp(...u){return o=>{u.forEach(d=>{typeof d=="function"?d(o):d!=null&&(d.current=o)})}}var Xp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Xp&&(window.__reactRouterVersion="7.13.0")}catch{}function Vp({basename:u,children:o,unstable_useTransitions:d,window:r}){let h=C.useRef();h.current==null&&(h.current=Ev({window:r,v5Compat:!0}));let x=h.current,[f,b]=C.useState({action:x.action,location:x.location}),g=C.useCallback(v=>{d===!1?b(v):C.startTransition(()=>b(v))},[d]);return C.useLayoutEffect(()=>x.listen(g),[x,g]),C.createElement(yp,{basename:u,children:o,location:f.location,navigationType:f.action,navigator:x,unstable_useTransitions:d})}var v0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,p0=C.forwardRef(function({onClick:o,discover:d="render",prefetch:r="none",relative:h,reloadDocument:x,replace:f,state:b,target:g,to:v,preventScrollReset:j,viewTransition:p,unstable_defaultShouldRevalidate:D,...z},H){let{basename:y,unstable_useTransitions:U}=C.useContext(Tt),Q=typeof v=="string"&&v0.test(v),G=s0(v,y);v=G.to;let Y=np(v,{relative:h}),[se,re,X]=Lp(r,z),F=Kp(v,{replace:f,state:b,target:g,preventScrollReset:j,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:D,unstable_useTransitions:U});function ae(Z){o&&o(Z),Z.defaultPrevented||F(Z)}let ue=C.createElement("a",{...z,...X,href:G.absoluteURL||Y,onClick:G.isExternal||x?o:ae,ref:Qp(H,re),target:g,"data-discover":!Q&&d==="render"?"true":void 0});return se&&!Q?C.createElement(C.Fragment,null,ue,C.createElement(Yp,{page:Y})):ue});p0.displayName="Link";var g0=C.forwardRef(function({"aria-current":o="page",caseSensitive:d=!1,className:r="",end:h=!1,style:x,to:f,viewTransition:b,children:g,...v},j){let p=ss(f,{relative:v.relative}),D=Vl(),z=C.useContext(Ui),{navigator:H,basename:y}=C.useContext(Tt),U=z!=null&&Ip(p)&&b===!0,Q=H.encodeLocation?H.encodeLocation(p).pathname:p.pathname,G=D.pathname,Y=z&&z.navigation&&z.navigation.location?z.navigation.location.pathname:null;d||(G=G.toLowerCase(),Y=Y?Y.toLowerCase():null,Q=Q.toLowerCase()),Y&&y&&(Y=vl(Y,y)||Y);const se=Q!=="/"&&Q.endsWith("/")?Q.length-1:Q.length;let re=G===Q||!h&&G.startsWith(Q)&&G.charAt(se)==="/",X=Y!=null&&(Y===Q||!h&&Y.startsWith(Q)&&Y.charAt(Q.length)==="/"),F={isActive:re,isPending:X,isTransitioning:U},ae=re?o:void 0,ue;typeof r=="function"?ue=r(F):ue=[r,re?"active":null,X?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let Z=typeof x=="function"?x(F):x;return C.createElement(p0,{...v,"aria-current":ae,className:ue,ref:j,style:Z,to:f,viewTransition:b},typeof g=="function"?g(F):g)});g0.displayName="NavLink";var $p=C.forwardRef(({discover:u="render",fetcherKey:o,navigate:d,reloadDocument:r,replace:h,state:x,method:f=Ti,action:b,onSubmit:g,relative:v,preventScrollReset:j,viewTransition:p,unstable_defaultShouldRevalidate:D,...z},H)=>{let{unstable_useTransitions:y}=C.useContext(Tt),U=Wp(),Q=Pp(b,{relative:v}),G=f.toLowerCase()==="get"?"get":"post",Y=typeof b=="string"&&v0.test(b),se=re=>{if(g&&g(re),re.defaultPrevented)return;re.preventDefault();let X=re.nativeEvent.submitter,F=(X==null?void 0:X.getAttribute("formmethod"))||f,ae=()=>U(X||re.currentTarget,{fetcherKey:o,method:F,navigate:d,replace:h,state:x,relative:v,preventScrollReset:j,viewTransition:p,unstable_defaultShouldRevalidate:D});y&&d!==!1?C.startTransition(()=>ae()):ae()};return C.createElement("form",{ref:H,method:G,action:Q,onSubmit:r?g:se,...z,"data-discover":!Y&&u==="render"?"true":void 0})});$p.displayName="Form";function Zp(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function b0(u){let o=C.useContext(tn);return ke(o,Zp(u)),o}function Kp(u,{target:o,replace:d,state:r,preventScrollReset:h,relative:x,viewTransition:f,unstable_defaultShouldRevalidate:b,unstable_useTransitions:g}={}){let v=jr(),j=Vl(),p=ss(u,{relative:x});return C.useCallback(D=>{if(Cp(D,o)){D.preventDefault();let z=d!==void 0?d:ls(j)===ls(p),H=()=>v(u,{replace:z,state:r,preventScrollReset:h,relative:x,viewTransition:f,unstable_defaultShouldRevalidate:b});g?C.startTransition(()=>H()):H()}},[j,v,p,d,r,o,u,h,x,f,b,g])}var Jp=0,Fp=()=>`__${String(++Jp)}__`;function Wp(){let{router:u}=b0("useSubmit"),{basename:o}=C.useContext(Tt),d=xp(),r=u.fetch,h=u.navigate;return C.useCallback(async(x,f={})=>{let{action:b,method:g,encType:v,formData:j,body:p}=Mp(x,o);if(f.navigate===!1){let D=f.fetcherKey||Fp();await r(D,d,f.action||b,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:j,body:p,formMethod:f.method||g,formEncType:f.encType||v,flushSync:f.flushSync})}else await h(f.action||b,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:j,body:p,formMethod:f.method||g,formEncType:f.encType||v,replace:f.replace,state:f.state,fromRouteId:d,flushSync:f.flushSync,viewTransition:f.viewTransition})},[r,h,o,d])}function Pp(u,{relative:o}={}){let{basename:d}=C.useContext(Tt),r=C.useContext(Jt);ke(r,"useFormAction must be used inside a RouteContext");let[h]=r.matches.slice(-1),x={...ss(u||".",{relative:o})},f=Vl();if(u==null){x.search=f.search;let b=new URLSearchParams(x.search),g=b.getAll("index");if(g.some(j=>j==="")){b.delete("index"),g.filter(p=>p).forEach(p=>b.append("index",p));let j=b.toString();x.search=j?`?${j}`:""}}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])),ls(x)}function Ip(u,{relative:o}={}){let d=C.useContext(u0);ke(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=b0("useViewTransitionState"),h=ss(u,{relative:o});if(!d.isTransitioning)return!1;let x=vl(d.currentLocation.pathname,r)||d.currentLocation.pathname,f=vl(d.nextLocation.pathname,r)||d.nextLocation.pathname;return zi(h.pathname,f)!=null||zi(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 y0=(...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 eg=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 tg=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 Zm=u=>{const o=tg(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 lg={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 ag=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 ng=C.forwardRef(({color:u="currentColor",size:o=24,strokeWidth:d=2,absoluteStrokeWidth:r,className:h="",children:x,iconNode:f,...b},g)=>C.createElement("svg",{ref:g,...lg,width:o,height:o,stroke:u,strokeWidth:r?Number(d)*24/Number(o):d,className:y0("lucide",h),...!x&&!ag(b)&&{"aria-hidden":"true"},...b},[...f.map(([v,j])=>C.createElement(v,j)),...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 ce=(u,o)=>{const d=C.forwardRef(({className:r,...h},x)=>C.createElement(ng,{ref:x,iconNode:o,className:y0(`lucide-${eg(Zm(u))}`,`lucide-${u}`,r),...h}));return d.displayName=Zm(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 sg=[["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"}]],j0=ce("activity",sg);/**
|
|
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"}]],ug=ce("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 cg=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Km=ce("arrow-right",cg);/**
|
|
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 rg=[["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"}]],og=ce("arrow-up-down",rg);/**
|
|
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 dg=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],fg=ce("arrow-up",dg);/**
|
|
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 mg=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],hg=ce("bell",mg);/**
|
|
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 xg=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],Jm=ce("briefcase",xg);/**
|
|
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 vg=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Di=ce("calendar",vg);/**
|
|
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 pg=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ai=ce("check",pg);/**
|
|
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 gg=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],bg=ce("chevron-down",gg);/**
|
|
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 yg=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],jg=ce("chevron-left",yg);/**
|
|
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 Ng=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Sg=ce("chevron-right",Ng);/**
|
|
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 Eg=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],wg=ce("chevrons-up-down",Eg);/**
|
|
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 Cg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Kt=ce("circle-alert",Cg);/**
|
|
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 Rg=[["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"}]],Fm=ce("circle-arrow-down",Rg);/**
|
|
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 Tg=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],is=ce("circle-check-big",Tg);/**
|
|
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 Mg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],xr=ce("circle-x",Mg);/**
|
|
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 Ag=[["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"}]],N0=ce("clipboard-list",Ag);/**
|
|
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 _g=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Oi=ce("clock",_g);/**
|
|
196
|
+
* @license lucide-react v0.564.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const zg=[["path",{d:"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"}]],S0=ce("external-link",zg);/**
|
|
201
|
+
* @license lucide-react v0.564.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Dg=[["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"}]],Og=ce("eye-off",Dg);/**
|
|
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 Ug=[["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"}]],Hg=ce("eye",Ug);/**
|
|
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 qg=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Bg=ce("file-text",qg);/**
|
|
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 Lg=[["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"}]],Yg=ce("git-pull-request",Lg);/**
|
|
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 kg=[["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"}]],Gg=ce("house",kg);/**
|
|
226
|
+
* @license lucide-react v0.564.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const Qg=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Xg=ce("info",Qg);/**
|
|
231
|
+
* @license lucide-react v0.564.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const Vg=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],$g=ce("kanban",Vg);/**
|
|
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 Zg=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],E0=ce("loader-circle",Zg);/**
|
|
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 Kg=[["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"}]],w0=ce("map",Kg);/**
|
|
246
|
+
* @license lucide-react v0.564.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const Jg=[["path",{d:"M5 12h14",key:"1ays0h"}]],Fg=ce("minus",Jg);/**
|
|
251
|
+
* @license lucide-react v0.564.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const Wg=[["rect",{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"}]],C0=ce("pause",Wg);/**
|
|
256
|
+
* @license lucide-react v0.564.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const Pg=[["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"}]],R0=ce("pen",Pg);/**
|
|
261
|
+
* @license lucide-react v0.564.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const Ig=[["path",{d:"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"}]],qi=ce("play",Ig);/**
|
|
266
|
+
* @license lucide-react v0.564.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const eb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],us=ce("plus",eb);/**
|
|
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 tb=[["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"}]],lb=ce("rotate-ccw",tb);/**
|
|
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 ab=[["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"}]],nb=ce("save",ab);/**
|
|
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 sb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],cs=ce("search",sb);/**
|
|
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 ib=[["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"}]],T0=ce("settings",ib);/**
|
|
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 ub=[["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"}]],cb=ce("square-pen",ub);/**
|
|
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 rb=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],ob=ce("terminal",rb);/**
|
|
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 db=[["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"}]],M0=ce("test-tube-diagonal",db);/**
|
|
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 fb=[["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"}]],A0=ce("trash-2",fb);/**
|
|
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 mb=[["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"}]],hb=ce("triangle-alert",mb);/**
|
|
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 xb=[["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"}]],vb=ce("wifi",xb);/**
|
|
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 pb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rs=ce("x",pb),Cr="";let _0=!1,vr=null;function gb(u){_0=u}function bb(u){vr=u}function yb(u){return encodeURIComponent(u.replace(/\//g,"~"))}function Fe(u){return _0&&vr?u.replace("/api/",`/api/projects/${yb(vr)}/`):u}function jb(){return Pe("/api/projects")}async function Pe(u,o){const d=`${Cr}${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 z0(){return Pe(Fe("/api/status"))}function D0(){return Pe(Fe("/api/prs"))}function Nb(u,o){const d=`?lines=${encodeURIComponent(o)}`;return Pe(Fe(`/api/logs/${encodeURIComponent(u)}${d}`))}function O0(){return Pe(Fe("/api/config"))}function da(u){return Pe(Fe("/api/config"),{method:"PUT",body:JSON.stringify(u)})}function Sb(){return Pe(Fe("/api/doctor"))}function U0(){return Pe(Fe("/api/schedule-info"))}function Eb(){return Pe(Fe("/api/actions/review"),{method:"POST"})}function ts(){return Pe(Fe("/api/actions/install-cron"),{method:"POST"})}function wb(){return Pe(Fe("/api/actions/uninstall-cron"),{method:"POST"})}function Cb(u="all"){return Pe(Fe("/api/actions/cancel"),{method:"POST",body:JSON.stringify({type:u})})}const Xl=["Draft","Ready","In Progress","Review","Done"];function H0(){return Pe(Fe("/api/board/status"))}function Rb(u){return Pe(Fe("/api/board/issues"),{method:"POST",body:JSON.stringify(u)})}function q0(u,o){return Pe(Fe(`/api/board/issues/${u}/move`),{method:"PATCH",body:JSON.stringify({column:o})})}async function Tb(u){const o=`${Cr}${Fe(`/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 Mb(){return Pe(Fe("/api/actions/clear-lock"),{method:"POST"})}function Ab(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=`${Cr}${Fe("/api/status/events")}`,f=new EventSource(x);return f.addEventListener("status_changed",b=>{try{const g=JSON.parse(b.data);h.current(g)}catch{}}),()=>{f.close()}},[r,...o])}function _b(){return Pe(Fe("/api/roadmap"))}function zb(){return Pe(Fe("/api/roadmap/scan"),{method:"POST"})}function B0(u){return Pe(Fe("/api/roadmap/toggle"),{method:"PUT",body:JSON.stringify({enabled:u})})}function Rt(u,o=[],d){const r=(d==null?void 0:d.enabled)??!0,[h,x]=C.useState(null),[f,b]=C.useState(!0),[g,v]=C.useState(null),j=C.useRef(u);j.current=u;const p=C.useRef(()=>{(async()=>{v(null);try{const z=await j.current();x(z)}catch(z){v(z instanceof Error?z:new Error("Unknown error"))}})()});return p.current=p.current.bind(p),C.useEffect(()=>{if(!r)return;let D=!1;return b(!0),v(null),(async()=>{try{const H=await j.current();D||x(H)}catch(H){D||v(H instanceof Error?H:new Error("Unknown error"))}finally{D||b(!1)}})(),()=>{D=!0}},[...o,r]),{data:h,loading:f,error:g,refetch:p.current}}const Wm=u=>{let o;const d=new Set,r=(v,j)=>{const p=typeof v=="function"?v(o):v;if(!Object.is(p,o)){const D=o;o=j??(typeof p!="object"||p===null)?p:Object.assign({},o,p),d.forEach(z=>z(o,D))}},h=()=>o,b={setState:r,getState:h,getInitialState:()=>g,subscribe:v=>(d.add(v),()=>d.delete(v))},g=o=u(r,h,b);return b},Db=u=>u?Wm(u):Wm,Ob=u=>u;function Ub(u,o=Ob){const d=Ue.useSyncExternalStore(u.subscribe,()=>o(u.getState()),()=>o(u.getInitialState()));return Ue.useDebugValue(d),d}const Pm=u=>{const o=Db(u),d=r=>Ub(o,r);return Object.assign(d,o),d},Hb=u=>u?Pm(u):Pm,qb=typeof localStorage<"u"?localStorage.getItem("nw-selected-project"):null,Mt=Hb(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=>{gb(o),u({isGlobalMode:o})},projects:[],setProjects:o=>u({projects:o}),selectedProjectId:qb,selectProject:o=>{bb(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}:{}}})}})),Bb=()=>{const[u,o]=C.useState(!1),{projectName:d,isGlobalMode:r,projects:h,selectedProjectId:x,selectProject:f,globalModeLoading:b}=Mt(),{data:g}=Rt(D0,[x],{enabled:!b}),v=(g==null?void 0:g.length)??0,j=C.useMemo(()=>[{icon:Gg,label:"Dashboard",path:"/"},{icon:$g,label:"Board",path:"/board"},{icon:Yg,label:"Pull Requests",path:"/prs",badge:v},{icon:w0,label:"Roadmap",path:"/roadmap"},{icon:Di,label:"Scheduling",path:"/scheduling"},{icon:ob,label:"Logs",path:"/logs"},{icon:T0,label:"Settings",path:"/settings"}],[v]);return n.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:[n.jsx("div",{className:`p-6 border-b border-white/5 ${u?"items-center justify-center flex":""}`,children:u?n.jsx("div",{className:"relative group",children:n.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"})}):n.jsxs("div",{className:"relative w-full",children:[n.jsx("label",{className:"text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-3 block pl-1",children:r?"Projects":"Workspace"}),r?n.jsxs("div",{className:"relative",children:[n.jsx(Jm,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 h-4 w-4 text-indigo-400 pointer-events-none"}),n.jsx("select",{value:x||"",onChange:p=>f(p.target.value),className:"w-full bg-[#111827] border border-white/10 text-slate-200 rounded-lg py-3 pl-10 pr-8 text-sm font-medium shadow-sm appearance-none cursor-pointer hover:border-white/20 transition-colors focus:outline-none focus:border-indigo-500/50 focus:ring-1 focus:ring-indigo-500/20",children:h.filter(p=>p.valid).map(p=>n.jsx("option",{value:p.name,children:p.name},p.name))}),n.jsx(wg,{className:"absolute right-3 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-slate-500 pointer-events-none"})]}):n.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:[n.jsx(Jm,{className:"h-4 w-4 text-indigo-400 mr-3"}),n.jsx("span",{className:"truncate",children:d})]})]})}),n.jsx("nav",{className:"flex-1 py-6 overflow-y-auto overflow-x-hidden scrollbar-hide",children:n.jsx("ul",{className:"space-y-1.5 px-4",children:j.map(p=>n.jsx(Ue.Fragment,{children:n.jsx("li",{children:n.jsx(g0,{to:p.path,className:({isActive:D})=>`
|
|
330
|
+
flex items-center px-3.5 py-3 rounded-xl transition-all duration-200 group relative
|
|
331
|
+
${D?"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:D})=>n.jsxs(n.Fragment,{children:[n.jsx(p.icon,{className:`h-5 w-5 transition-colors ${D?"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&&n.jsx("span",{className:"flex-1 text-sm font-medium tracking-wide",children:p.label}),p.badge&&(u?n.jsx("span",{className:"absolute top-2 right-2 h-2 w-2 bg-indigo-500 rounded-full border border-[#030712] shadow-sm"}):n.jsx("span",{className:`text-[10px] font-bold px-2 py-0.5 rounded-md ${D?"bg-indigo-500/20 text-indigo-300":"bg-white/5 text-slate-400 border border-white/5"}`,children:p.badge})),D&&!u&&n.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&&n.jsx("div",{className:"absolute left-full ml-4 px-3 py-1.5 bg-[#111827] text-white text-xs font-medium rounded-md border border-white/10 shadow-xl opacity-0 group-hover:opacity-100 pointer-events-none whitespace-nowrap z-50 transition-opacity translate-x-2 group-hover:translate-x-0",children:p.label})]})})})},p.path))})}),n.jsx("div",{className:"p-4 border-t border-white/5 flex justify-end",children:n.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?n.jsx(Sg,{className:"h-5 w-5"}):n.jsx(jg,{className:"h-5 w-5"})})})]})},Lb=()=>{const{projectName:u}=Mt();return n.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:[n.jsxs("div",{className:"flex items-center space-x-6",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-xs font-mono text-indigo-400 mb-0.5 tracking-tight",children:"Active Project"}),n.jsx("h1",{className:"text-xl font-semibold text-white tracking-tight leading-none",children:u})]}),n.jsx("div",{className:"h-8 w-px bg-white/10 mx-2"}),n.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:[n.jsx(vb,{className:"h-3.5 w-3.5"}),n.jsx("span",{className:"uppercase tracking-wider text-[10px]",children:"Online"})]})]}),n.jsxs("div",{className:"flex items-center space-x-5",children:[n.jsxs("div",{className:"relative hidden md:block group",children:[n.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]"}),n.jsx(cs,{className:"absolute left-3.5 top-2.5 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400 transition-colors"})]}),n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsxs("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full relative transition-all",children:[n.jsx(hg,{className:"h-5 w-5"}),n.jsx("span",{className:"absolute top-2.5 right-2.5 h-2 w-2 bg-red-500 rounded-full ring-2 ring-[#030712]"})]}),n.jsx("button",{className:"p-2.5 text-slate-400 hover:text-white hover:bg-white/5 rounded-full transition-all",children:n.jsx(T0,{className:"h-5 w-5"})})]}),n.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"})]})]})},Yb=({toast:u,onDismiss:o})=>{const d={success:n.jsx(is,{className:"h-5 w-5 text-green-400"}),error:n.jsx(Kt,{className:"h-5 w-5 text-red-400"}),info:n.jsx(Xg,{className:"h-5 w-5 text-blue-400"}),warning:n.jsx(hb,{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 n.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:n.jsx("div",{className:"p-4",children:n.jsxs("div",{className:"flex items-start",children:[n.jsx("div",{className:"flex-shrink-0",children:d[u.type]}),n.jsxs("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[n.jsx("p",{className:"text-sm font-medium text-slate-200",children:u.title}),u.message&&n.jsx("p",{className:"mt-1 text-sm text-slate-400",children:u.message})]}),n.jsx("div",{className:"ml-4 flex flex-shrink-0",children:n.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:[n.jsx("span",{className:"sr-only",children:"Close"}),n.jsx(rs,{className:"h-5 w-5"})]})})]})})})},kb=()=>{const{toasts:u,removeToast:o}=Mt();return n.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=>n.jsx(Yb,{toast:d,onDismiss:o},d.id))})};function Gb(){const{setGlobalMode:u,setGlobalModeLoading:o,setProjects:d,selectProject:r,selectedProjectId:h}=Mt();C.useEffect(()=>{o(!0),jb().then(x=>{u(!0),d(x);const f=x.filter(b=>b.valid);h&&f.some(b=>b.name===h)?r(h):f.length>0&&r(f[0].name)}).catch(()=>{u(!1)}).finally(()=>{o(!1)})},[])}const be=({children:u,className:o="",onClick:d})=>n.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&&n.jsx("div",{className:"absolute inset-0 bg-indigo-500/0 group-hover:bg-indigo-500/[0.02] transition-colors rounded-xl pointer-events-none"}),n.jsx("div",{className:"relative z-10",children:u})]}),Se=({children:u,variant:o="primary",size:d="md",loading:r=!1,className:h="",disabled:x,...f})=>{const b="inline-flex items-center justify-center rounded-lg font-medium transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-offset-[#030712] disabled:opacity-50 disabled:pointer-events-none active:scale-[0.98]",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 n.jsxs("button",{className:`${b} ${g[o]} ${v[d]} ${h}`,disabled:x||r,...f,children:[r&&n.jsx(E0,{className:"mr-2 h-4 w-4 animate-spin"}),u]})},_i=({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 n.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded text-[11px] font-medium tracking-wide ${r[o]} ${d}`,children:u})},L0={Draft:{dot:"bg-slate-500",badge:"neutral"},Ready:{dot:"bg-green-500",badge:"success"},"In Progress":{dot:"bg-blue-500",badge:"info"},Review:{dot:"bg-amber-500",badge:"warning"},Done:{dot:"bg-slate-600",badge:"neutral"}},Qb=({defaultColumn:u,onClose:o,onCreated:d})=>{const[r,h]=C.useState(""),[x,f]=C.useState(""),[b,g]=C.useState(u),[v,j]=C.useState(!1),[p,D]=C.useState(null),{addToast:z}=Mt(),H=async y=>{if(y.preventDefault(),!!r.trim()){j(!0),D(null);try{await Rb({title:r.trim(),body:x,column:b}),z({title:"Issue created",message:`"${r.trim()}" added to ${b}`,type:"success"}),d(),o()}catch(U){D(U instanceof Error?U.message:"Failed to create issue")}finally{j(!1)}}};return n.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[n.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:o}),n.jsxs("div",{className:"relative bg-[#0f172a] border border-white/10 rounded-2xl shadow-2xl w-full max-w-lg",children:[n.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[n.jsx("h2",{className:"text-lg font-semibold text-slate-100",children:"New Board Issue"}),n.jsx("button",{onClick:o,className:"p-1.5 rounded-lg hover:bg-white/5 text-slate-500 hover:text-slate-300 transition-colors",children:n.jsx(rs,{className:"h-5 w-5"})})]}),n.jsxs("form",{onSubmit:H,className:"p-6 space-y-4",children:[n.jsxs("div",{children:[n.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Title"}),n.jsx("input",{type:"text",value:r,onChange:y=>h(y.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"})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Column"}),n.jsx("select",{value:b,onChange:y=>g(y.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:Xl.map(y=>n.jsx("option",{value:y,children:y},y))})]}),n.jsxs("div",{children:[n.jsx("label",{className:"text-xs font-medium text-slate-400 uppercase tracking-wide block mb-1.5",children:"Body (optional)"}),n.jsx("textarea",{value:x,onChange:y=>f(y.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"})]}),p&&n.jsx("p",{className:"text-sm text-red-400",children:p}),n.jsxs("div",{className:"flex justify-end space-x-3 pt-2",children:[n.jsx(Se,{variant:"ghost",type:"button",onClick:o,children:"Cancel"}),n.jsx(Se,{type:"submit",disabled:v||!r.trim(),children:v?"Creating...":"Create Issue"})]})]})]})]})},Xb=({issue:u,onClose:o,onMoved:d,onClosed:r})=>{const[h,x]=C.useState(!1),[f,b]=C.useState(!1),{addToast:g}=Mt(),v=async D=>{if(D!==u.column){x(!0);try{await q0(u.number,D),g({title:"Issue moved",message:`#${u.number} moved to ${D}`,type:"success"}),d(),o()}catch(z){g({title:"Move failed",message:z instanceof Error?z.message:"Failed to move issue",type:"error"})}finally{x(!1)}}},j=async()=>{if(confirm(`Close issue #${u.number}: "${u.title}"?`)){b(!0);try{await Tb(u.number),g({title:"Issue closed",message:`#${u.number} closed on GitHub`,type:"success"}),r(),o()}catch(D){g({title:"Close failed",message:D instanceof Error?D.message:"Failed to close issue",type:"error"})}finally{b(!1)}}},p=u.column??"Draft";return n.jsxs("div",{className:"fixed inset-0 z-50 flex justify-end",children:[n.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:o}),n.jsxs("div",{className:"relative bg-[#0a0f1e] border-l border-white/10 w-full max-w-xl flex flex-col shadow-2xl overflow-hidden",children:[n.jsxs("div",{className:"flex items-start justify-between p-6 border-b border-white/5 flex-shrink-0",children:[n.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-2",children:[n.jsxs("span",{className:"text-slate-500 text-sm font-mono",children:["#",u.number]}),n.jsx(_i,{variant:L0[p].badge,children:p})]}),n.jsx("h2",{className:"text-lg font-semibold text-slate-100 leading-snug",children:u.title}),u.assignees.length>0&&n.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:["Assigned to: ",u.assignees.join(", ")]})]}),n.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:n.jsx(rs,{className:"h-5 w-5"})})]}),n.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:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:"text-xs text-slate-500",children:"Move to:"}),Xl.filter(D=>D!==u.column).map(D=>n.jsx("button",{onClick:()=>v(D),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:D},D))]}),n.jsxs("div",{className:"flex items-center space-x-2 ml-auto",children:[u.url&&!u.url.startsWith("local://")&&n.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:[n.jsx(S0,{className:"h-3.5 w-3.5"}),n.jsx("span",{children:"GitHub"})]}),n.jsx("button",{onClick:j,disabled:f,className:"text-xs px-2.5 py-1 rounded-md bg-red-500/10 text-red-400 hover:bg-red-500/20 border border-red-500/20 transition-colors disabled:opacity-50",children:f?"Closing...":"Close Issue"})]})]}),n.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:u.body?n.jsx("pre",{className:"text-sm text-slate-300 whitespace-pre-wrap font-mono leading-relaxed break-words",children:u.body}):n.jsx("p",{className:"text-slate-500 text-sm italic",children:"No description provided."})})]})]})},Vb=({issue:u,onClick:o,onDragStart:d})=>{const[r,h]=C.useState(!1);return n.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:n.jsxs(be,{className:`p-3 cursor-grab hover:border-indigo-500/30 transition-all select-none ${r?"opacity-30":""}`,onClick:o,children:[n.jsxs("span",{className:"text-[10px] font-mono text-slate-600",children:["#",u.number]}),n.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&&n.jsx("p",{className:"text-[10px] text-slate-500 mt-1.5 truncate",children:u.assignees.join(", ")})]})})},$b=({name:u,issues:o,draggingIssue:d,onIssueClick:r,onNewIssue:h,onMoveIssue:x,onDragStart:f})=>{const b=L0[u],[g,v]=C.useState(!1),j=d!==null&&d.column!==u;return n.jsxs("div",{className:`flex flex-col min-w-[220px] max-w-[220px] h-full rounded-xl transition-colors ${g&&j?"bg-indigo-500/5 ring-1 ring-indigo-500/30":""}`,onDragOver:p=>{j&&(p.preventDefault(),p.dataTransfer.dropEffect="move",v(!0))},onDragLeave:()=>v(!1),onDrop:p=>{p.preventDefault(),v(!1),d&&d.column!==u&&x(d,u)},children:[n.jsxs("div",{className:"flex items-center justify-between mb-3 flex-shrink-0",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{className:`w-2.5 h-2.5 rounded-full ${b.dot}`}),n.jsx("span",{className:"text-xs font-semibold text-slate-400 uppercase tracking-wider",children:u}),n.jsx("span",{className:"text-[10px] font-bold text-slate-600 bg-slate-800 rounded-full px-1.5 py-0.5",children:o.length})]}),n.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:n.jsx(us,{className:"h-3.5 w-3.5"})})]}),n.jsx("div",{className:"flex-1 overflow-y-auto space-y-2 pr-1 scrollbar-hide min-h-0",children:o.length===0?n.jsx("div",{className:`border-2 border-dashed rounded-xl h-24 flex items-center justify-center transition-colors ${g&&j?"border-indigo-500/40":"border-slate-800"}`,children:n.jsx("span",{className:"text-xs text-slate-700",children:g&&j?"Drop here":"No issues"})}):o.map(p=>n.jsx(Vb,{issue:p,onClick:()=>r(p),onDragStart:f},p.id))})]})},Zb=()=>{const[u,o]=C.useState(null),[d,r]=C.useState(null),[h,x]=C.useState(null),[f,b]=C.useState(null),g=C.useRef(!1),{addToast:v,selectedProjectId:j,globalModeLoading:p}=Mt(),{data:D,loading:z,error:H,refetch:y}=Rt(H0,[j],{enabled:!p});C.useEffect(()=>{const G=setInterval(()=>{g.current||y()},3e4);return()=>clearInterval(G)},[y]);const U=C.useCallback(async(G,Y)=>{x(null);const se=f??(D==null?void 0:D.columns);if(!se)return;const re=se,X={};for(const ae of Xl)X[ae]=(se[ae]??[]).filter(ue=>ue.number!==G.number);const F={...G,column:Y};X[Y]=[...X[Y]??[],F],b(X),o(ae=>(ae==null?void 0:ae.number)===G.number?F:ae),g.current=!0;try{await q0(G.number,Y),y(),setTimeout(()=>{b(null),g.current=!1},800)}catch(ae){b(re),o(ue=>(ue==null?void 0:ue.number)===G.number?G:ue),g.current=!1,v({title:"Move failed",message:ae instanceof Error?ae.message:"Failed to move issue",type:"error"})}},[v,y,f,D]);if(p||z)return n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-slate-400",children:"Loading board..."})});if(H&&H.message.includes("Board not configured"))return n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx("div",{className:"text-4xl",children:"📋"}),n.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"Board not configured"}),n.jsxs("p",{className:"text-slate-500 text-sm max-w-sm text-center",children:["Run ",n.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 n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx("div",{className:"text-slate-300",children:"Failed to load board"}),n.jsx("div",{className:"text-sm text-slate-500",children:H.message}),n.jsx(Se,{onClick:()=>y(),children:"Retry"})]});if(!D)return null;const Q=f??D.columns;return n.jsxs("div",{className:"flex flex-col h-full",children:[n.jsxs("div",{className:"flex items-center justify-between mb-6 flex-shrink-0",children:[n.jsxs("div",{children:[n.jsx("h1",{className:"text-2xl font-bold text-slate-100",children:"Board"}),n.jsxs("p",{className:"text-sm text-slate-500 mt-1",children:[Xl.reduce((G,Y)=>{var se;return G+(((se=Q[Y])==null?void 0:se.length)??0)},0)," issues across ",Xl.length," columns"]})]}),n.jsxs(Se,{onClick:()=>r("Ready"),children:[n.jsx(us,{className:"h-4 w-4 mr-2"}),"New Issue"]})]}),n.jsx("div",{className:"flex-1 overflow-x-auto overflow-y-hidden",onDragEnd:()=>x(null),children:n.jsx("div",{className:"flex space-x-4 h-full pb-4",style:{minWidth:`${Xl.length*236}px`},children:Xl.map(G=>n.jsx($b,{name:G,issues:Q[G]??[],draggingIssue:h,onIssueClick:o,onNewIssue:r,onMoveIssue:U,onDragStart:x},G))})}),u&&n.jsx(Xb,{issue:u,onClose:()=>o(null),onMoved:()=>y(),onClosed:()=>y()}),d&&n.jsx(Qb,{defaultColumn:d,onClose:()=>r(null),onCreated:()=>y()})]})},Kb={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"},Jb=()=>{var R,le,_,$,te,fe,me,S,B,K,P;const u=jr(),[o,d]=C.useState(null),[r,h]=C.useState(!1),[x,f]=C.useState(null),{setProjectName:b,addToast:g,selectedProjectId:v,globalModeLoading:j}=Mt(),{data:p,loading:D,error:z,refetch:H}=Rt(z0,[v],{enabled:!j}),{data:y}=Rt(U0,[v],{enabled:!j}),{data:U}=Rt(()=>H0().catch(()=>null),[v],{enabled:!j});Ab(J=>{f(J)},[v,j],{enabled:!j});const Q=x||p;if(Ue.useEffect(()=>{Q!=null&&Q.projectName&&b(Q.projectName)},[Q,b]),C.useEffect(()=>{const J=setInterval(()=>{H()},3e4);return()=>clearInterval(J)},[H]),C.useEffect(()=>{const J=()=>H();return window.addEventListener("focus",J),()=>window.removeEventListener("focus",J)},[H]),j||D)return n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(z)return n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx(Kt,{className:"h-12 w-12 text-red-400"}),n.jsx("div",{className:"text-slate-300",children:"Failed to load dashboard data"}),n.jsx("div",{className:"text-sm text-slate-500",children:z.message}),n.jsx(Se,{onClick:()=>H(),children:"Retry"})]});if(!Q)return null;const G=Q.prs.length,Y=Q.prs.filter(J=>J.reviewScore!==null&&J.reviewScore<70).length,se=((R=U==null?void 0:U.columns.Ready)==null?void 0:R.length)??0,re=((le=U==null?void 0:U.columns["In Progress"])==null?void 0:le.length)??0,X=Q.processes.find(J=>J.name==="executor"),F=Q.processes.find(J=>J.name==="reviewer"),ae=Q.processes.find(J=>J.name==="qa"),ue=Q.processes.find(J=>J.name==="audit"),Z=Q.processes.find(J=>J.name==="planner"),Ce=async J=>{d(J);try{const V=await Cb(J),W=V.results.every(ye=>ye.success);g({title:W?"Process Cancelled":"Cancel Failed",message:V.results.map(ye=>ye.message).join("; "),type:W?"success":"error"})}catch(V){g({title:"Cancel Failed",message:V instanceof Error?V.message:"Failed to cancel process",type:"error"})}finally{d(null),H()}},Te=async()=>{h(!0);try{await Mb(),g({title:"Lock Cleared",message:"Stale executor state removed",type:"success"}),H()}catch(J){g({title:"Clear Failed",message:J instanceof Error?J.message:"Failed to clear lock",type:"error"})}finally{h(!1)}},qe=J=>{if(!J)return"Not scheduled";try{const V=new Date(J),W=new Date,ye=V.getTime()-W.getTime(),Ne=Math.floor(ye/6e4);return Ne<0?"Running now...":Ne<60?`In ${Ne} min`:Ne<1440?`In ${Math.floor(Ne/60)} hr${Ne>=120?"s":""}`:`In ${Math.floor(Ne/1440)} day${Ne>=2880?"s":""}`}catch{return"Unknown"}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsxs(be,{className:"p-5",onClick:()=>u("/board"),children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Board Ready"}),n.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:se})]}),n.jsx("div",{className:"p-2 bg-green-500/10 rounded-lg text-green-400",children:n.jsx(is,{className:"h-5 w-5"})})]}),n.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues ready to start"})]}),n.jsxs(be,{className:"p-5",onClick:()=>u("/board"),children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-slate-500",children:"In Progress"}),n.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:re})]}),n.jsx("div",{className:"p-2 bg-blue-500/10 rounded-lg text-blue-400",children:n.jsx(j0,{className:"h-5 w-5"})})]}),n.jsx("p",{className:"text-xs text-slate-500 mt-4",children:"issues in progress"})]}),n.jsxs(be,{className:"p-5",onClick:()=>u("/prs"),children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Open PRs"}),n.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:G})]}),n.jsx("div",{className:"p-2 bg-purple-500/10 rounded-lg text-purple-400",children:n.jsx(Oi,{className:"h-5 w-5"})})]}),n.jsx("p",{className:`text-xs mt-4 ${Y>0?"text-red-400 font-medium":"text-slate-500"}`,children:Y>0?`${Y} need work`:"All passing"})]}),n.jsxs(be,{className:"p-5",children:[n.jsxs("div",{className:"flex justify-between items-start",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-slate-500",children:"Cron Status"}),n.jsx("h3",{className:"text-3xl font-bold text-slate-100 mt-1",children:Q.crontab.installed?"Active":"Inactive"})]}),n.jsx("div",{className:`p-2 rounded-lg ${Q.crontab.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-700/50 text-slate-500"}`,children:n.jsx(Di,{className:"h-5 w-5"})})]}),n.jsx("p",{className:"text-xs text-slate-500 mt-4",children:Q.crontab.installed?`${Q.crontab.entries.length} entr${Q.crontab.entries.length===1?"y":"ies"} installed`:"No crontab entries"})]})]}),n.jsxs(be,{className:"p-6",children:[n.jsx("h2",{className:"text-base font-semibold text-slate-200 mb-4",children:"System Status"}),n.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Project"}),n.jsx("p",{className:"text-sm text-slate-200",children:Q.projectName})]}),n.jsxs("div",{children:[n.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Provider"}),n.jsx("p",{className:"text-sm text-slate-200 capitalize",children:Q.config.provider})]}),n.jsxs("div",{children:[n.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase mb-1",children:"Last Updated"}),n.jsx("p",{className:"text-sm text-slate-200",children:new Date(Q.timestamp).toLocaleString()})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs(be,{className:"p-6",children:[n.jsx("h3",{className:"text-base font-semibold text-slate-200 mb-4",children:"Process Status"}),n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.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"}`}),n.jsxs("div",{children:[n.jsx("div",{className:`font-medium ${X!=null&&X.running?"text-slate-200":"text-slate-400"}`,children:"Executor"}),n.jsx("div",{className:"text-xs text-slate-500",children:X!=null&&X.running?`PID: ${X.pid} • ${Q.activePrd??"Running"}`:"Idle"})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[(X==null?void 0:X.running)&&n.jsxs(Se,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>Ce("run"),disabled:o==="run",children:[n.jsx(xr,{className:"h-4 w-4 mr-1"}),o==="run"?"Stopping...":"Stop"]}),!(X!=null&&X.running)&&Q.activePrd&&n.jsx(Se,{size:"sm",variant:"ghost",className:"text-amber-400 hover:text-amber-300",onClick:Te,disabled:r,children:r?"Clearing...":"Force Clear"}),n.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${F!=null&&F.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),n.jsxs("div",{children:[n.jsx("div",{className:`font-medium ${F!=null&&F.running?"text-slate-200":"text-slate-400"}`,children:"Reviewer"}),n.jsx("div",{className:"text-xs text-slate-500",children:F!=null&&F.running?`PID: ${F.pid} • Running`:"Idle"})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[(F==null?void 0:F.running)&&n.jsxs(Se,{size:"sm",variant:"ghost",className:"text-red-400 hover:text-red-300",onClick:()=>Ce("review"),disabled:o==="review",children:[n.jsx(xr,{className:"h-4 w-4 mr-1"}),o==="review"?"Stopping...":"Stop"]}),n.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),disabled:!(F!=null&&F.running),children:"View Log"})]})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${ae!=null&&ae.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),n.jsxs("div",{children:[n.jsx("div",{className:`font-medium ${ae!=null&&ae.running?"text-slate-200":"text-slate-400"}`,children:"QA"}),n.jsx("div",{className:"text-xs text-slate-500",children:ae!=null&&ae.running?`PID: ${ae.pid} • Running`:"Idle"})]})]}),n.jsx("div",{className:"flex items-center space-x-2",children:n.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`h-2.5 w-2.5 rounded-full ${ue!=null&&ue.running?"bg-green-500 animate-pulse shadow-[0_0_8px_rgba(34,197,94,0.5)]":"bg-slate-700"}`}),n.jsxs("div",{children:[n.jsx("div",{className:`font-medium ${ue!=null&&ue.running?"text-slate-200":"text-slate-400"}`,children:"Auditor"}),n.jsx("div",{className:"text-xs text-slate-500",children:ue!=null&&ue.running?`PID: ${ue.pid} • Running`:"Idle"})]})]}),n.jsx("div",{className:"flex items-center space-x-2",children:n.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:[n.jsxs("div",{className:"flex items-center space-x-3",children:[n.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"}`}),n.jsxs("div",{children:[n.jsx("div",{className:`font-medium ${Z!=null&&Z.running?"text-slate-200":"text-slate-400"}`,children:"Planner"}),n.jsx("div",{className:"text-xs text-slate-500",children:Z!=null&&Z.running?`PID: ${Z.pid} • Writing PRDs`:"Idle"})]})]}),n.jsx("div",{className:"flex items-center space-x-2",children:n.jsx(Se,{size:"sm",variant:"ghost",onClick:()=>u("/logs"),children:"View Log"})})]})]})]}),n.jsxs(be,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-base font-semibold text-slate-200",children:"Scheduling"}),n.jsxs("button",{onClick:()=>u("/scheduling"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["Manage Schedules ",n.jsx(Km,{className:"ml-1 h-3 w-3"})]})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`p-1.5 rounded-md ${y!=null&&y.executor.installed?"bg-indigo-500/10 text-indigo-400":"bg-slate-800 text-slate-500"}`,children:n.jsx(Di,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:`text-sm font-medium ${y!=null&&y.executor.installed?"text-slate-200":"text-slate-500"}`,children:"Executor"}),n.jsx("div",{className:"text-xs text-slate-500",children:y!=null&&y.paused?"Paused":qe(y==null?void 0:y.executor.nextRun)})]})]})}),n.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`p-1.5 rounded-md ${y!=null&&y.reviewer.installed?"bg-purple-500/10 text-purple-400":"bg-slate-800 text-slate-500"}`,children:n.jsx(Oi,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:`text-sm font-medium ${y!=null&&y.reviewer.installed?"text-slate-200":"text-slate-500"}`,children:"Reviewer"}),n.jsx("div",{className:"text-xs text-slate-500",children:y!=null&&y.paused?"Paused":qe(y==null?void 0:y.reviewer.nextRun)})]})]})}),n.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`p-1.5 rounded-md ${(_=y==null?void 0:y.qa)!=null&&_.installed?"bg-green-500/10 text-green-400":"bg-slate-800 text-slate-500"}`,children:n.jsx(M0,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:`text-sm font-medium ${($=y==null?void 0:y.qa)!=null&&$.installed?"text-slate-200":"text-slate-500"}`,children:"QA"}),n.jsx("div",{className:"text-xs text-slate-500",children:y!=null&&y.paused?"Paused":qe((te=y==null?void 0:y.qa)==null?void 0:te.nextRun)})]})]})}),n.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`p-1.5 rounded-md ${(fe=y==null?void 0:y.audit)!=null&&fe.installed?"bg-amber-500/10 text-amber-400":"bg-slate-800 text-slate-500"}`,children:n.jsx(cs,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:`text-sm font-medium ${(me=y==null?void 0:y.audit)!=null&&me.installed?"text-slate-200":"text-slate-500"}`,children:"Auditor"}),n.jsx("div",{className:"text-xs text-slate-500",children:y!=null&&y.paused?"Paused":qe((S=y==null?void 0:y.audit)==null?void 0:S.nextRun)})]})]})}),n.jsx("div",{className:"flex items-center justify-between p-3 bg-slate-950/50 rounded-lg border border-slate-800",children:n.jsxs("div",{className:"flex items-center space-x-3",children:[n.jsx("div",{className:`p-1.5 rounded-md ${(B=y==null?void 0:y.planner)!=null&&B.installed?"bg-cyan-500/10 text-cyan-400":"bg-slate-800 text-slate-500"}`,children:n.jsx(N0,{className:"h-4 w-4"})}),n.jsxs("div",{children:[n.jsx("div",{className:`text-sm font-medium ${(K=y==null?void 0:y.planner)!=null&&K.installed?"text-slate-200":"text-slate-500"}`,children:"Planner"}),n.jsx("div",{className:"text-xs text-slate-500",children:y!=null&&y.paused?"Paused":qe((P=y==null?void 0:y.planner)==null?void 0:P.nextRun)})]})]})})]})]})]}),n.jsxs("div",{className:"mt-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h2",{className:"text-lg font-semibold text-slate-200",children:"GitHub Board"}),n.jsxs("button",{onClick:()=>u("/board"),className:"text-sm text-indigo-400 hover:text-indigo-300 flex items-center transition-colors",children:["View board ",n.jsx(Km,{className:"ml-1 h-3 w-3"})]})]}),n.jsx(be,{className:"p-4",children:U?n.jsx("div",{className:"flex flex-wrap gap-3",children:Xl.map(J=>{var W;const V=((W=U.columns[J])==null?void 0:W.length)??0;return n.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 ${Kb[J]}`,children:[n.jsx("span",{className:"text-xs font-medium",children:J}),n.jsx("span",{className:"text-xs font-bold",children:V})]},J)})}):n.jsxs("p",{className:"text-sm text-slate-500 italic",children:["Board not configured — run ",n.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."]})})]})]})},Fb=()=>{const[u,o]=C.useState(!0),[d,r]=C.useState(""),[h,x]=C.useState("executor"),f=C.useRef(null),{selectedProjectId:b,globalModeLoading:g}=Mt(),{data:v,loading:j,error:p,refetch:D}=Rt(()=>Nb(h,500),[h,b],{enabled:!g}),{data:z}=Rt(z0,[b],{enabled:!g}),H=(v==null?void 0:v.lines)||[];C.useEffect(()=>{u&&f.current&&(f.current.scrollTop=f.current.scrollHeight)},[H,u]),C.useEffect(()=>{if(!u)return;const G=window.setInterval(()=>{D()},3e3);return()=>window.clearInterval(G)},[u,h,D]);const y=H.filter(G=>G.toLowerCase().includes(d.toLowerCase())),U=G=>{x(G),r("")},Q=G=>{if(!(z!=null&&z.processes))return!1;const Y=z.processes.find(se=>se.name===G);return(Y==null?void 0:Y.running)??!1};return p?n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx(Kt,{className:"h-12 w-12 text-red-400"}),n.jsx("div",{className:"text-slate-300",children:"Failed to load logs"}),n.jsx("div",{className:"text-sm text-slate-500",children:p.message}),n.jsx(Se,{onClick:()=>D(),children:"Retry"})]}):n.jsxs("div",{className:"flex flex-col h-[calc(100vh-8rem)]",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4 bg-slate-900 p-2 rounded-lg border border-slate-800 shadow-sm",children:[n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsxs("div",{className:"relative group",children:[n.jsx("input",{type:"text",placeholder:"Filter logs...",className:"pl-9 pr-4 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-slate-200 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-transparent w-64 placeholder:text-slate-600",value:d,onChange:G=>r(G.target.value)}),n.jsx(cs,{className:"absolute left-2.5 top-2 h-4 w-4 text-slate-500 group-focus-within:text-indigo-400"})]}),n.jsx("div",{className:"h-6 w-px bg-slate-700 mx-2"}),n.jsxs("div",{className:"flex space-x-1",children:[n.jsx("button",{onClick:()=>U("executor"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="executor"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{children:"Executor"}),Q("executor")&&n.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),n.jsx("button",{onClick:()=>U("reviewer"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="reviewer"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{children:"Reviewer"}),Q("reviewer")&&n.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),n.jsx("button",{onClick:()=>U("qa"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="qa"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{children:"QA"}),Q("qa")&&n.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),n.jsx("button",{onClick:()=>U("audit"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="audit"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{children:"Auditor"}),Q("audit")&&n.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})}),n.jsx("button",{onClick:()=>U("planner"),className:`px-3 py-1.5 rounded text-sm font-medium transition-colors ${h==="planner"?"bg-slate-800 text-slate-200 shadow-sm border border-slate-700":"text-slate-400 hover:bg-slate-800 hover:text-slate-200"}`,children:n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsx("span",{children:"Planner"}),Q("planner")&&n.jsx("div",{className:"h-2 w-2 bg-green-500 rounded-full animate-pulse"})]})})]})]}),n.jsxs("div",{className:"flex items-center space-x-2",children:[n.jsxs(Se,{size:"sm",variant:"ghost",onClick:()=>D(),children:[n.jsx(Fm,{className:"h-4 w-4 mr-2"}),"Refresh"]}),n.jsxs(Se,{size:"sm",variant:"ghost",onClick:()=>o(!u),children:[u?n.jsx(C0,{className:"h-4 w-4 mr-2"}):n.jsx(qi,{className:"h-4 w-4 mr-2"}),u?"Pause":"Resume"]})]})]}),n.jsxs("div",{className:"flex-1 bg-slate-900 rounded-xl overflow-hidden shadow-inner border border-slate-800 flex flex-col relative",children:[n.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:[n.jsxs("span",{children:["File: ",h,".log"]}),n.jsxs("span",{children:[y.length," lines"]})]}),n.jsxs("div",{ref:f,className:"flex-1 overflow-y-auto p-4 font-mono text-sm terminal-scroll bg-slate-900",children:[j?n.jsx("div",{className:"flex items-center justify-center h-full text-slate-500",children:"Loading logs..."}):y.length===0?n.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"}):y.map((G,Y)=>{const se=G.includes("[ERROR]"),re=G.includes("[WARN]");return n.jsxs("div",{className:`leading-6 hover:bg-slate-800/50 px-2 rounded -mx-2 ${se?"text-red-400":re?"text-amber-400":"text-slate-300"}`,children:[n.jsx("span",{className:"text-slate-600 select-none w-10 inline-block text-right mr-4 text-xs opacity-50",children:Y+1}),G]},Y)}),u&&n.jsx("div",{className:"h-4"})," "]}),!u&&n.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:[n.jsx(Fm,{className:"h-4 w-4 mr-2"}),"Scroll to bottom"]})]})]})},Wb=()=>{const[u,o]=C.useState(null),[d,r]=C.useState(!1),[h,x]=C.useState("all"),[f,b]=C.useState("number"),[g,v]=C.useState("desc"),{addToast:j,selectedProjectId:p,globalModeLoading:D}=Mt(),{data:z,loading:H,error:y,refetch:U}=Rt(D0,[p],{enabled:!D}),Q=z??[],G=Z=>{switch(Z){case"pass":return n.jsx(is,{className:"h-4 w-4 text-green-500"});case"fail":return n.jsx(xr,{className:"h-4 w-4 text-red-500"});case"pending":return n.jsx(E0,{className:"h-4 w-4 text-amber-500 animate-spin"});default:return n.jsx(Kt,{className:"h-4 w-4 text-slate-500"})}},Y=Z=>{switch(Z){case"pass":return"All CI checks passed";case"fail":return"One or more CI checks failed";case"pending":return"CI checks are still running";default:return"No CI data available"}},se=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(()=>Q.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}}),[Q,h]),X=C.useMemo(()=>[...re].sort((Ce,Te)=>{let qe=0;switch(f){case"number":qe=Ce.number-Te.number;break;case"title":qe=Ce.title.localeCompare(Te.title);break;case"branch":qe=Ce.branch.localeCompare(Te.branch);break;case"ciStatus":{const R={fail:0,pending:1,unknown:2,pass:3};qe=(R[Ce.ciStatus]??2)-(R[Te.ciStatus]??2);break}case"reviewScore":{const R=Ce.reviewScore??-1,le=Te.reviewScore??-1;qe=R-le;break}}return g==="asc"?qe:-qe}),[re,f,g]),F=Z=>{f===Z?v(g==="asc"?"desc":"asc"):(b(Z),v("desc"))},ae=Z=>f!==Z?n.jsx(og,{className:"h-3 w-3 text-slate-600"}):g==="asc"?n.jsx(fg,{className:"h-3 w-3 text-indigo-400"}):n.jsx(ug,{className:"h-3 w-3 text-indigo-400"});if(H)return n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-slate-400",children:"Loading PRs..."})});if(y)return n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx(Kt,{className:"h-12 w-12 text-red-400"}),n.jsx("div",{className:"text-slate-300",children:"Failed to load PRs"}),n.jsx("div",{className:"text-sm text-slate-500",children:y.message}),n.jsx(Se,{onClick:()=>U(),children:"Retry"})]});const ue=async()=>{r(!0);try{const Z=await Eb();j({title:"Reviewer Started",message:Z.pid?`Started with PID ${Z.pid}`:"Reviewer started",type:"success"})}catch(Z){j({title:"Reviewer Failed",message:Z instanceof Error?Z.message:"Failed to start reviewer",type:"error"})}finally{r(!1)}};return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex space-x-1",children:[n.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"}),n.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"}),n.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"}),n.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"})]}),n.jsxs(Se,{size:"sm",onClick:ue,disabled:d,children:[n.jsx(cs,{className:"h-4 w-4 mr-2"}),d?"Starting...":"Run Reviewer Now"]})]}),n.jsx("div",{className:"bg-slate-900 rounded-lg shadow-sm border border-slate-800 overflow-hidden",children:n.jsxs("table",{className:"min-w-full divide-y divide-slate-800",children:[n.jsx("thead",{className:"bg-slate-950/50",children:n.jsxs("tr",{children:[n.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:()=>F("number"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Title"}),ae("number")]})}),n.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:()=>F("branch"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Branch"}),ae("branch")]})}),n.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:()=>F("ciStatus"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"CI Status"}),ae("ciStatus")]})}),n.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:()=>F("reviewScore"),children:n.jsxs("div",{className:"flex items-center space-x-1",children:[n.jsx("span",{children:"Review Score"}),ae("reviewScore")]})}),n.jsx("th",{className:"px-6 py-3 text-right text-xs font-medium text-slate-500 uppercase tracking-wider",children:"Actions"})]})}),n.jsxs("tbody",{className:"divide-y divide-slate-800",children:[X.map(Z=>n.jsxs("tr",{className:"hover:bg-slate-800/50 cursor-pointer transition-colors",onClick:()=>o(u===Z.number?null:Z.number),children:[n.jsx("td",{className:"px-6 py-4",children:n.jsxs("div",{className:"flex items-center",children:[n.jsxs("span",{className:"text-slate-500 font-mono mr-2",children:["#",Z.number]}),n.jsx("span",{className:"font-medium text-slate-200",children:Z.title})]})}),n.jsx("td",{className:"px-6 py-4",children:n.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})}),n.jsx("td",{className:"px-6 py-4",children:n.jsxs("div",{className:"flex items-center space-x-2",title:Y(Z.ciStatus),children:[G(Z.ciStatus),n.jsx("span",{className:"text-sm capitalize text-slate-400",children:Z.ciStatus})]})}),n.jsx("td",{className:"px-6 py-4",children:Z.reviewScore!==null?n.jsxs("div",{className:"flex items-center space-x-2",title:se(Z.reviewScore),children:[n.jsx("div",{className:"w-24 h-2 bg-slate-800 rounded-full overflow-hidden",children:n.jsx("div",{className:`h-full ${Z.reviewScore>=70?"bg-green-500":"bg-red-500"}`,style:{width:`${Z.reviewScore}%`}})}),n.jsx("span",{className:`text-sm font-bold ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]}):n.jsx("span",{className:"text-slate-600 text-sm",title:"No review decision yet",children:"—"})}),n.jsx("td",{className:"px-6 py-4 text-right",children:n.jsx("a",{href:Z.url,target:"_blank",rel:"noopener noreferrer",className:"text-slate-500 hover:text-indigo-400",onClick:Ce=>Ce.stopPropagation(),children:n.jsx(S0,{className:"h-4 w-4"})})})]},Z.number)),X.length===0&&n.jsx("tr",{children:n.jsx("td",{colSpan:5,className:"px-6 py-12 text-center text-slate-500",children:Q.length===0?"No open PRs found.":`No PRs match the "${h}" filter.`})})]})]})}),u&&n.jsx(be,{className:"p-6 bg-slate-900 border-indigo-900/50 animate-in fade-in slide-in-from-top-4 duration-300",children:(()=>{const Z=Q.find(Ce=>Ce.number===u);return Z?n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"font-bold text-slate-200",children:Z.title}),n.jsxs("p",{className:"text-sm text-slate-400 mt-1",children:["Branch: ",n.jsx("span",{className:"font-mono",children:Z.branch})]})]}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsxs("div",{className:"text-center",title:Y(Z.ciStatus),children:[n.jsx("div",{className:"text-xs text-slate-500",children:"CI Status"}),n.jsxs("div",{className:"flex items-center space-x-1 mt-1",children:[G(Z.ciStatus),n.jsx("span",{className:"text-sm capitalize text-slate-300",children:Z.ciStatus})]})]}),Z.reviewScore!==null&&n.jsxs("div",{className:"text-center",title:se(Z.reviewScore),children:[n.jsx("div",{className:"text-xs text-slate-500",children:"Review Score"}),n.jsx("div",{className:`text-xl font-bold mt-1 ${Z.reviewScore>=70?"text-green-500":"text-red-500"}`,children:Z.reviewScore})]})]})]}):null})()})]})},it=Ue.forwardRef(({className:u="",label:o,checked:d,onChange:r,...h},x)=>{const f=b=>{r&&r(b.target.checked)};return n.jsxs("label",{className:`inline-flex items-center cursor-pointer ${u}`,children:[n.jsxs("div",{className:"relative",children:[n.jsx("input",{type:"checkbox",className:"sr-only peer",ref:x,checked:d,onChange:f,...h}),n.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&&n.jsx("span",{className:"ml-3 text-sm font-medium text-slate-300 select-none",children:o})]})});it.displayName="Switch";const Pb=()=>{const{addToast:u,selectedProjectId:o,globalModeLoading:d}=Mt(),[r,h]=C.useState(!1),[x,f]=C.useState(!1),{data:b,loading:g,error:v,refetch:j}=Rt(_b,[o],{enabled:!d});C.useEffect(()=>{if(!(b!=null&&b.enabled))return;const G=setInterval(()=>{j()},1e4);return()=>clearInterval(G)},[b==null?void 0:b.enabled,j]);const p=async G=>{f(!0);try{await B0(G),u({title:G?"Scanner Enabled":"Scanner Disabled",message:G?"Roadmap scanner is now active.":"Roadmap scanner has been paused.",type:G?"success":"info"}),j()}catch(Y){u({title:"Toggle Failed",message:Y instanceof Error?Y.message:"Failed to toggle scanner",type:"error"})}finally{f(!1)}},D=async()=>{h(!0);try{const G=await zb();G.created.length>0?u({title:"Scan Complete",message:`Created ${G.created.length} PRD(s): ${G.created.join(", ")}`,type:"success"}):u({title:"Scan Complete",message:"No new PRDs to create.",type:"info"}),G.errors.length>0&&u({title:"Scan Errors",message:G.errors.join("; "),type:"warning"}),j()}catch(G){u({title:"Scan Failed",message:G instanceof Error?G.message:"Failed to scan roadmap",type:"error"})}finally{h(!1)}};if(g)return n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-slate-400",children:"Loading roadmap scanner..."})});if(v)return n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx(Kt,{className:"h-12 w-12 text-red-400"}),n.jsx("div",{className:"text-slate-300",children:"Failed to load roadmap data"}),n.jsx("div",{className:"text-sm text-slate-500",children:v.message}),n.jsx(Se,{onClick:()=>j(),children:"Retry"})]});if(!b)return null;if(b.status==="no-roadmap")return n.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[n.jsx("div",{className:"flex items-center justify-between",children:n.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"})}),n.jsx(be,{className:"p-12",children:n.jsxs("div",{className:"flex flex-col items-center text-center space-y-4",children:[n.jsx("div",{className:"p-4 bg-slate-800 rounded-full",children:n.jsx(w0,{className:"h-10 w-10 text-slate-500"})}),n.jsx("h2",{className:"text-xl font-semibold text-slate-200",children:"No ROADMAP.md Found"}),n.jsxs("p",{className:"text-slate-400 max-w-md",children:["Create a ",n.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 (",n.jsx("code",{className:"text-slate-300 text-sm",children:"- [ ] Feature"}),") or heading-based items (",n.jsx("code",{className:"text-slate-300 text-sm",children:"### Feature"}),") to get started."]})]})})]});const z=b.totalItems>0?Math.round(b.processedItems/b.totalItems*100):0,H=ey(b.status),y=ty(b.items),U=b.lastScan?ly(b.lastScan):"Never",Q=b.autoScanInterval?Math.round(b.autoScanInterval/60):5;return n.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Roadmap Scanner"}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx(it,{label:b.enabled?"Enabled":"Disabled",checked:b.enabled,onChange:p,disabled:x}),n.jsxs(Se,{onClick:D,loading:r,disabled:!b.enabled||b.status==="complete",children:[n.jsx(qi,{className:"h-4 w-4 mr-2"}),"Scan Now"]})]})]}),n.jsx(be,{className:`p-6 border-2 ${H.borderColor}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx(H.icon,{className:`h-8 w-8 ${H.textColor}`}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400",children:"Scanner Status"}),n.jsx("div",{className:`text-2xl font-bold ${H.textColor}`,children:H.label})]})]}),n.jsxs("div",{className:"text-right text-sm text-slate-400 space-y-1",children:[n.jsxs("div",{children:["Last scan: ",n.jsx("span",{className:"text-slate-300",children:U})]}),b.enabled&&b.status!=="complete"&&n.jsxs("div",{children:["Auto-scan: ",n.jsxs("span",{className:"text-slate-300",children:["every ",Q," min"]})]}),b.enabled&&b.status==="complete"&&n.jsx("div",{className:"text-emerald-400",children:"Auto-scan paused - all items sliced"})]})]})}),n.jsxs(be,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsx("h3",{className:"text-sm font-medium text-slate-300",children:"Progress"}),n.jsxs("span",{className:"text-sm text-slate-400",children:[b.processedItems," / ",b.totalItems," items (",z,"%)"]})]}),n.jsx("div",{className:"w-full h-3 bg-slate-800 rounded-full overflow-hidden",children:n.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${z===100?"bg-gradient-to-r from-emerald-500 to-emerald-400":"bg-gradient-to-r from-indigo-600 to-indigo-400"}`,style:{width:`${z}%`}})})]}),Object.entries(y).map(([G,Y])=>n.jsxs(be,{className:"p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:G}),n.jsx("div",{className:"space-y-2",children:Y.map(se=>n.jsx(Ib,{item:se},se.hash))})]},G))]})};function Ib({item:u}){const o=u.checked,d=u.processed;return n.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:[n.jsxs("div",{className:"flex items-center space-x-3 min-w-0 flex-1",children:[o?n.jsx(Fg,{className:"h-4 w-4 text-slate-600 flex-shrink-0"}):d?n.jsx(is,{className:"h-4 w-4 text-emerald-400 flex-shrink-0"}):n.jsx(Bg,{className:"h-4 w-4 text-slate-500 flex-shrink-0"}),n.jsxs("div",{className:"min-w-0",children:[n.jsx("div",{className:`text-sm font-medium truncate ${o?"line-through text-slate-600":"text-slate-200"}`,children:u.title}),u.description&&n.jsx("div",{className:"text-xs text-slate-500 truncate mt-0.5",children:u.description})]})]}),n.jsx("div",{className:"flex-shrink-0 ml-3",children:o?n.jsx(_i,{variant:"neutral",children:"Skipped"}):d?n.jsx(_i,{variant:"success",children:u.prdFile||"Processed"}):n.jsx(_i,{variant:"warning",children:"Pending"})})]})}function ey(u){switch(u){case"complete":return{label:"Complete",icon:is,textColor:"text-emerald-400",borderColor:"border-emerald-500/20 bg-emerald-500/5"};case"idle":return{label:"Idle",icon:Oi,textColor:"text-blue-400",borderColor:"border-blue-500/20 bg-blue-500/5"};case"scanning":return{label:"Scanning",icon:qi,textColor:"text-indigo-400",borderColor:"border-indigo-500/20 bg-indigo-500/5"};case"disabled":return{label:"Disabled",icon:Kt,textColor:"text-slate-400",borderColor:"border-slate-500/20 bg-slate-500/5"};default:return{label:"No Roadmap",icon:Kt,textColor:"text-slate-500",borderColor:"border-slate-500/20"}}}function ty(u){const o={};for(const d of u){const r=d.section||"General";o[r]||(o[r]=[]),o[r].push(d)}return o}function ly(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 He=Ue.forwardRef(({className:u="",label:o,error:d,helperText:r,rightIcon:h,...x},f)=>{const b=Ue.useId(),g=x.id??b,v=d?`${g}-error`:void 0,j=!d&&r?`${g}-help`:void 0,p=[v,j].filter(Boolean).join(" ")||void 0;return n.jsxs("div",{className:"w-full",children:[o&&n.jsx("label",{htmlFor:g,className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),n.jsxs("div",{className:"relative",children:[n.jsx("input",{ref:f,id:g,"aria-describedby":p,"aria-invalid":d?!0:x["aria-invalid"],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&&n.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none text-slate-500",children:h})]}),d?n.jsx("p",{id:v,className:"mt-1.5 text-xs text-red-400",children:d}):r?n.jsx("p",{id:j,className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});He.displayName="Input";const Ct=Ue.forwardRef(({className:u="",label:o,error:d,helperText:r,options:h,value:x,onChange:f,children:b,...g},v)=>{const j=Ue.useId(),p=g.id??j,D=d?`${p}-error`:void 0,z=!d&&r?`${p}-help`:void 0,H=[D,z].filter(Boolean).join(" ")||void 0,y=U=>{f&&f(U.target.value)};return n.jsxs("div",{className:"w-full",children:[o&&n.jsx("label",{htmlFor:p,className:"block text-sm font-medium text-slate-400 mb-1.5",children:o}),n.jsxs("div",{className:"relative",children:[n.jsx("select",{ref:v,id:p,"aria-describedby":H,"aria-invalid":d?!0:g["aria-invalid"],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:y,...g,children:h?h.map(U=>n.jsx("option",{value:U.value,children:U.label},U.value)):b}),n.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-slate-500",children:n.jsx(bg,{className:"h-4 w-4"})})]}),d?n.jsx("p",{id:D,className:"mt-1.5 text-xs text-red-400",children:d}):r?n.jsx("p",{id:z,className:"mt-1.5 text-xs text-slate-500",children:r}):null]})});Ct.displayName="Select";const as=[{label:"Balanced (recommended)",value:"5 */3 * * *",description:"Every 3 hours at minute 5 (good default, low burst risk)"},{label:"Every 6 hours (very safe)",value:"10 */6 * * *",description:"Every 6 hours at minute 10"},{label:"Every 4 hours",value:"10 */4 * * *",description:"Every 4 hours at minute 10"},{label:"Twice daily",value:"20 2,14 * * *",description:"At 02:20 and 14:20 UTC"},{label:"Daily",value:"30 3 * * *",description:"Once per day at 03:30 UTC"},{label:"Weekdays only",value:"30 9 * * 1-5",description:"At 09:30 UTC, Monday to Friday"},{label:"Weekly (Monday)",value:"40 3 * * 1",description:"At 03:40 UTC every Monday"},{label:"Custom",value:"__custom__",description:"Enter your own cron expression"}],Rr=[{id:"night-surge",label:"Night Surge",description:"Overnight execution with staggered jobs to avoid API bursts.",schedules:{executor:"5 21,0,3,6 * * *",reviewer:"25 9,17 * * *",qa:"45 22 * * *",audit:"50 4 * * 1",slicer:"35 20 * * *"},hints:{executor:"9pm, 12am, 3am, 6am",reviewer:"9:25am & 5:25pm",qa:"10:45pm",audit:"Mon 4:50am",slicer:"8:35pm kickoff"}},{id:"always-on",label:"Always On (Recommended)",description:"24/7 with conservative cadence and minute staggering to reduce rate limits.",schedules:{executor:"5 */3 * * *",reviewer:"25 */6 * * *",qa:"45 2,14 * * *",audit:"50 3 * * 1",slicer:"35 */12 * * *"},hints:{executor:"Every 3h at :05",reviewer:"Every 6h at :25",qa:"2:45am & 2:45pm",audit:"Mon 3:50am",slicer:"Every 12h at :35"}},{id:"day-shift",label:"Day Shift",description:"Weekday daytime cadence with staggered minutes per job.",schedules:{executor:"5 9-18 * * 1-5",reviewer:"25 12,18 * * 1-5",qa:"45 11,17 * * 1-5",audit:"50 9 * * 1",slicer:"35 8 * * 1"},hints:{executor:"Hourly at :05, weekdays",reviewer:"12:25pm & 6:25pm, weekdays",qa:"11:45am & 5:45pm, weekdays",audit:"Mon 9:50am",slicer:"Mon 8:35am"}},{id:"minimal",label:"Minimal",description:"Lowest API usage with one lightweight run per day (weekly heavy jobs).",schedules:{executor:"5 2 * * *",reviewer:"25 8 * * *",qa:"45 3 * * 0",audit:"50 4 * * 0",slicer:"35 1 * * 1"},hints:{executor:"Daily 2:05am",reviewer:"Daily 8:25am",qa:"Sun 3:45am",audit:"Sun 4:50am",slicer:"Mon 1:35am"}}];function en(u){return u.trim().replace(/\s+/g," ")}function Ia(u,o){return en(u)===en(o)}function ay(u){if(u)return Rr.find(o=>o.id===u)}function Y0(u,o,d,r,h,x){return Ia(u.schedules.executor,o)&&Ia(u.schedules.reviewer,d)&&Ia(u.schedules.qa,r)&&Ia(u.schedules.audit,h)&&Ia(u.schedules.slicer,x)}function ny(u,o,d,r,h){return Rr.find(x=>Y0(x,u,o,d,r,h))}function k0(u,o,d,r,h,x){const f=ay(u);return f&&Y0(f,o,d,r,h,x)?f:ny(o,d,r,h,x)}function or(u){const o=en(u),d=o.split(/\s+/);if(d.length!==5)return o;const[r,h,x,f,b]=d,g=/^\d+$/.test(r),v=as.find(j=>en(j.value)===o);if(v)return v.label;if(r==="*/30"&&h==="*")return"Every 30 minutes";if(r==="0"&&h==="*")return"Every hour";if(r.startsWith("*/"))return`Every ${parseInt(r.replace("*/",""),10)} minutes`;if(g&&h.startsWith("*/")&&x==="*"&&f==="*"&&b==="*"){const j=parseInt(h.replace("*/",""),10);return r==="0"?`Every ${j} hours`:`Every ${j} hours at :${r.padStart(2,"0")}`}if(r==="0"&&h.startsWith("*/"))return`Every ${parseInt(h.replace("*/",""),10)} hours`;if(r==="0"&&h.includes("-")){const[j,p]=h.split("-");return`Every hour from ${In(j)} to ${In(p)}`}if(g&&h.includes("-")&&x==="*"&&f==="*"&&b==="*"){const[j,p]=h.split("-");return`Every hour from ${es(j,r)} to ${es(p,r)}`}if(r==="0"&&h.includes(",")){const j=h.split(",").map(In);return j.length<=3?`At ${j.join(" and ")}`:`At ${j.slice(0,-1).join(", ")}, and ${j[j.length-1]}`}if(g&&h.includes(",")&&x==="*"&&f==="*"&&(b==="*"||b==="1-5")){const j=h.split(",").map(D=>es(D,r)),p=b==="1-5"?"Weekdays at ":"At ";return j.length<=3?`${p}${j.join(" and ")}`:`${p}${j.slice(0,-1).join(", ")}, and ${j[j.length-1]}`}return r==="0"&&h!=="*"&&x==="*"&&f==="*"&&b==="*"?`Daily at ${In(h)}`:g&&h!=="*"&&x==="*"&&f==="*"&&b==="*"?`Daily at ${es(h,r)}`:r==="0"&&h!=="*"&&x==="*"&&f==="*"&&b==="1-5"?`Weekdays at ${In(h)}`:g&&h!=="*"&&x==="*"&&f==="*"&&b==="1-5"?`Weekdays at ${es(h,r)}`:o}function In(u){const o=parseInt(u,10);return o===0?"12 AM":o<12?`${o} AM`:o===12?"12 PM":`${o-12} PM`}function es(u,o){const d=o.padStart(2,"0"),r=parseInt(u,10);return Number.isNaN(r)?`${u}:${d}`:r===0?`12:${d} AM`:r<12?`${r}:${d} AM`:r===12?`12:${d} PM`:`${r-12}:${d} PM`}function G0(u){const o=en(u),d=as.find(r=>en(r.value)===o);return(d==null?void 0:d.value)??"__custom__"}function sy(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 iy(u){const o={weekday:"short",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0};return u.toLocaleDateString("en-US",o)}function uy(u){const o=new Date,d=u.getTime()-o.getTime(),r=Math.floor(d/6e4);return r>=0&&r<30}const cy=()=>{var $,te,fe,me,S,B,K,P,J;const{addToast:u,selectedProjectId:o,globalModeLoading:d}=Mt(),[r,h]=C.useState(!1),[x,f]=C.useState(!1),[b,g]=C.useState(null),[v,j]=C.useState({executorSchedule:"",reviewerSchedule:"",isEditing:!1}),{data:p,loading:D,error:z,refetch:H}=Rt(U0,[o],{enabled:!d}),{data:y,loading:U,refetch:Q}=Rt(O0,[o],{enabled:!d});C.useEffect(()=>{const V=setInterval(()=>{H()},3e4);return()=>clearInterval(V)},[H]),C.useEffect(()=>{y&&!v.isEditing&&j({executorSchedule:y.cronSchedule,reviewerSchedule:y.reviewerSchedule,isEditing:!1})},[y,v.isEditing]);const G=()=>{Q(),H()},Y=(V,W)=>V instanceof Error?V.message:W,se=async()=>{if(p){h(!0);try{p.paused?(await ts(),u({title:"Schedule Resumed",message:"Cron schedules have been reactivated.",type:"success"})):(await wb(),u({title:"Schedule Paused",message:"Cron schedules have been deactivated.",type:"info"})),G()}catch(V){u({title:"Action Failed",message:Y(V,"Failed to toggle schedule state"),type:"error"})}finally{h(!1)}}},re=()=>{y&&j({executorSchedule:y.cronSchedule,reviewerSchedule:y.reviewerSchedule,isEditing:!0})},X=()=>{y&&j({executorSchedule:y.cronSchedule,reviewerSchedule:y.reviewerSchedule,isEditing:!1})},F=async()=>{if(y){f(!0);try{await da({cronSchedule:v.executorSchedule,reviewerSchedule:v.reviewerSchedule});let V="";try{await ts()}catch(W){V=Y(W,"Failed to reinstall cron schedules")}j(W=>({...W,isEditing:!1})),G(),u(V?{title:"Schedules Saved (Cron Reinstall Failed)",message:V,type:"warning"}:{title:"Schedule Updated",message:"Cron schedules have been saved and installed.",type:"success"})}catch(V){u({title:"Save Failed",message:Y(V,"Failed to save schedules"),type:"error"})}finally{f(!1)}}},ae=async(V,W)=>{if(y){g(V);try{V==="executor"?await da({executorEnabled:W}):V==="reviewer"?await da({reviewerEnabled:W}):V==="qa"?await da({qa:{...y.qa,enabled:W}}):V==="audit"?await da({audit:{...y.audit,enabled:W}}):await da({roadmapScanner:{...y.roadmapScanner,enabled:W}});let ye="";try{await ts()}catch(Ne){ye=Y(Ne,"Failed to reinstall cron schedules")}G(),u(ye?{title:"Job Saved (Cron Reinstall Failed)",message:ye,type:"warning"}:{title:"Job Updated",message:`${V[0].toUpperCase()+V.slice(1)} ${W?"enabled":"disabled"}.`,type:"success"})}catch(ye){u({title:"Update Failed",message:Y(ye,"Failed to update job configuration"),type:"error"})}finally{g(null)}}},ue=V=>{if(!V)return n.jsx("span",{className:"text-slate-500",children:"Not scheduled"});const W=new Date(V),ye=uy(W);return n.jsxs("div",{className:"flex items-center space-x-2",children:[ye&&n.jsxs("span",{className:"relative flex h-3 w-3",children:[n.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75"}),n.jsx("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-green-500"})]}),n.jsxs("div",{className:"text-sm",children:[n.jsx("span",{className:"text-slate-200 font-medium",children:sy(W)}),n.jsxs("span",{className:"text-slate-500 ml-2",children:["(",iy(W),")"]})]})]})},Z=(V,W,ye,Ne)=>{const pl=G0(W),ma=pl==="__custom__";return n.jsxs("div",{className:`space-y-3 ${Ne?"opacity-50 pointer-events-none":""}`,children:[n.jsx("div",{className:"flex items-center space-x-3",children:n.jsx(Ct,{label:`${V} Preset`,options:as,value:pl,onChange:gl=>{gl!=="__custom__"&&ye(gl)},className:"flex-1"})}),ma&&n.jsx(He,{label:"Custom Cron Expression",value:W,onChange:gl=>ye(gl.target.value),placeholder:"* * * * *",helperText:"Format: minute hour day month weekday (e.g., 0 */2 * * * for every 2 hours)"}),n.jsxs("div",{className:"text-sm text-slate-400",children:["Human-readable: ",n.jsx("span",{className:"text-slate-200",children:or(W)})]})]})},Ce=V=>{if(!V||V.delayMinutes<=0)return n.jsx("div",{className:"text-xs text-slate-500 mt-2",children:"Starts directly at the scheduled time."});const W=[];return V.balancedDelayMinutes>0&&W.push(`auto +${V.balancedDelayMinutes}m`),V.manualDelayMinutes>0&&W.push(`manual +${V.manualDelayMinutes}m`),n.jsxs("div",{className:"text-xs text-slate-500 mt-2",children:["Delayed after cron fire:",n.jsxs("span",{className:"text-slate-300",children:[" ",W.join(" • ")]})]})};if(D||U)return n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-slate-400",children:"Loading scheduling information..."})});if(z||!p||!y)return n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx(Kt,{className:"h-12 w-12 text-red-400"}),n.jsx("div",{className:"text-slate-300",children:"Failed to load schedule information"}),n.jsx("div",{className:"text-sm text-slate-500",children:(z==null?void 0:z.message)||"Unknown error"}),n.jsx(Se,{onClick:()=>{H(),Q()},children:"Retry"})]});const Te=p.paused,qe=Te?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-green-500/10 text-green-400 border-green-500/20",R=Te?"Paused":"Active",le=k0(y.scheduleBundleId,y.cronSchedule,y.reviewerSchedule,y.qa.schedule,y.audit.schedule,y.roadmapScanner.slicerSchedule||"35 */12 * * *"),_=(V,W,ye)=>!le||!Ia(le.schedules[V],W)?or(ye):`${le.label} • ${le.hints[V]}`;return n.jsxs("div",{className:"space-y-6 max-w-6xl mx-auto",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h1",{className:"text-3xl font-bold text-slate-100",children:"Scheduling"}),le&&n.jsxs("div",{className:"text-right",children:[n.jsx("div",{className:"text-xs uppercase tracking-wide text-slate-500",children:"Schedule Bundle"}),n.jsx("div",{className:"text-sm font-medium text-indigo-300",children:le.label}),n.jsxs("div",{className:"text-xs text-slate-500",children:["Priority ",p.schedulingPriority,"/5 across registered projects"]})]})]}),n.jsx(be,{className:`p-6 border-2 ${qe}`,children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx(Oi,{className:"h-8 w-8"}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400",children:"Cron Status"}),n.jsx("div",{className:"text-2xl font-bold",children:R}),n.jsx("div",{className:"text-sm text-slate-500 mt-1",children:"Automatic balancing spreads registered projects before queueing overlaps."})]})]}),n.jsx(Se,{variant:Te?"primary":"outline",size:"lg",onClick:se,loading:r,children:Te?n.jsxs(n.Fragment,{children:[n.jsx(qi,{className:"h-5 w-5 mr-2"}),"Resume"]}):n.jsxs(n.Fragment,{children:[n.jsx(C0,{className:"h-5 w-5 mr-2"}),"Pause"]})})]})}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsxs(be,{className:`p-6 ${y.executorEnabled===!1?"opacity-50":""}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Executor Schedule"}),y.executorEnabled===!1?n.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"}):!v.isEditing&&n.jsxs(Se,{variant:"ghost",size:"sm",onClick:re,children:[n.jsx(cb,{className:"h-4 w-4 mr-1"}),"Edit"]})]}),v.isEditing?Z("Executor",v.executorSchedule,V=>j(W=>({...W,executorSchedule:V})),y.executorEnabled===!1):n.jsx(n.Fragment,{children:n.jsx("div",{className:"space-y-4",children:y.executorEnabled!==!1?n.jsxs(n.Fragment,{children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),n.jsx("div",{className:"text-lg text-slate-200 font-medium",children:_("executor",y.cronSchedule,p.executor.schedule)}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.executor.schedule}),Ce(p.executor)]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ue(p.executor.nextRun)]}),n.jsxs("div",{className:`flex items-center space-x-2 text-sm ${p.executor.installed?"text-green-400":"text-amber-400"}`,children:[n.jsx(Ai,{className:"h-4 w-4"}),n.jsx("span",{children:p.executor.installed?"Installed":"Not installed"})]})]}):n.jsx("div",{className:"text-slate-500 text-sm",children:"Executor is disabled in settings."})})})]}),n.jsxs(be,{className:`p-6 ${y.reviewerEnabled?"":"opacity-50"}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Reviewer Schedule"}),!y.reviewerEnabled&&n.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),v.isEditing?Z("Reviewer",v.reviewerSchedule,V=>j(W=>({...W,reviewerSchedule:V})),!y.reviewerEnabled):n.jsx(n.Fragment,{children:n.jsx("div",{className:"space-y-4",children:y.reviewerEnabled?n.jsxs(n.Fragment,{children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),n.jsx("div",{className:"text-lg text-slate-200 font-medium",children:_("reviewer",y.reviewerSchedule,p.reviewer.schedule)}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:p.reviewer.schedule}),Ce(p.reviewer)]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ue(p.reviewer.nextRun)]}),n.jsxs("div",{className:`flex items-center space-x-2 text-sm ${p.reviewer.installed?"text-green-400":"text-amber-400"}`,children:[n.jsx(Ai,{className:"h-4 w-4"}),n.jsx("span",{children:p.reviewer.installed?"Installed":"Not installed"})]})]}):n.jsx("div",{className:"text-slate-500 text-sm",children:"Automated reviews are disabled. Enable them in Settings to configure the reviewer schedule."})})})]})]}),n.jsxs(be,{className:"p-6",children:[n.jsx("h3",{className:"text-lg font-semibold text-slate-200 mb-4",children:"Job Enablement"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Executor"}),n.jsx("div",{className:"text-xs text-slate-500",children:"Creates implementation PRs from PRDs"})]}),n.jsx(it,{checked:y.executorEnabled!==!1,disabled:b!==null,"aria-label":"Toggle executor automation",onChange:V=>ae("executor",V)})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Reviewer"}),n.jsx("div",{className:"text-xs text-slate-500",children:"Reviews PRs and manages merge readiness"})]}),n.jsx(it,{checked:y.reviewerEnabled,disabled:b!==null,"aria-label":"Toggle reviewer automation",onChange:V=>ae("reviewer",V)})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-slate-200",children:"QA"}),n.jsx("div",{className:"text-xs text-slate-500",children:"Generates and runs quality checks on PRs"})]}),n.jsx(it,{checked:y.qa.enabled,disabled:b!==null,"aria-label":"Toggle QA automation",onChange:V=>ae("qa",V)})]}),n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Auditor"}),n.jsx("div",{className:"text-xs text-slate-500",children:"Runs automated audit reports"})]}),n.jsx(it,{checked:y.audit.enabled,disabled:b!==null,"aria-label":"Toggle audit automation",onChange:V=>ae("audit",V)})]}),n.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:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Planner"}),n.jsx("div",{className:"text-xs text-slate-500",children:"Creates PRDs from audit findings and pending roadmap items"})]}),n.jsx(it,{checked:y.roadmapScanner.enabled,disabled:b!==null,"aria-label":"Toggle planner automation",onChange:V=>ae("planner",V)})]})]})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[n.jsxs(be,{className:`p-6 ${y.qa.enabled?"":"opacity-50"}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[n.jsx(M0,{className:"h-4 w-4"}),"QA"]}),!y.qa.enabled&&n.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),y.qa.enabled?n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),n.jsx("div",{className:"text-lg text-slate-200 font-medium",children:_("qa",y.qa.schedule,(($=p.qa)==null?void 0:$.schedule)??y.qa.schedule)}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:((te=p.qa)==null?void 0:te.schedule)??y.qa.schedule}),Ce(p.qa)]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ue((fe=p.qa)==null?void 0:fe.nextRun)]})]}):n.jsx("div",{className:"text-slate-500 text-sm",children:"QA is disabled in settings."})]}),n.jsxs(be,{className:`p-6 ${y.audit.enabled?"":"opacity-50"}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[n.jsx(cs,{className:"h-4 w-4"}),"Auditor"]}),!y.audit.enabled&&n.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),y.audit.enabled?n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),n.jsx("div",{className:"text-lg text-slate-200 font-medium",children:_("audit",y.audit.schedule,((me=p.audit)==null?void 0:me.schedule)??y.audit.schedule)}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:((S=p.audit)==null?void 0:S.schedule)??y.audit.schedule}),Ce(p.audit)]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ue((B=p.audit)==null?void 0:B.nextRun)]})]}):n.jsx("div",{className:"text-slate-500 text-sm",children:"Audit is disabled in settings."})]}),n.jsxs(be,{className:`p-6 ${y.roadmapScanner.enabled?"":"opacity-50"}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("h3",{className:"text-lg font-semibold text-slate-200 flex items-center gap-2",children:[n.jsx(N0,{className:"h-4 w-4"}),"Planner"]}),!y.roadmapScanner.enabled&&n.jsx("span",{className:"text-xs text-slate-500 bg-slate-800 px-2 py-1 rounded",children:"Disabled"})]}),y.roadmapScanner.enabled?n.jsxs("div",{className:"space-y-4",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Schedule"}),n.jsx("div",{className:"text-lg text-slate-200 font-medium",children:_("slicer",y.roadmapScanner.slicerSchedule,((K=p.planner)==null?void 0:K.schedule)??y.roadmapScanner.slicerSchedule)}),n.jsx("div",{className:"text-xs text-slate-500 font-mono mt-1",children:((P=p.planner)==null?void 0:P.schedule)??y.roadmapScanner.slicerSchedule}),Ce(p.planner)]}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-slate-400 mb-1",children:"Next Run"}),ue((J=p.planner)==null?void 0:J.nextRun)]})]}):n.jsx("div",{className:"text-slate-500 text-sm",children:"Planner uses roadmap scanner scheduling."})]})]}),n.jsxs(be,{className:"p-6",children:[n.jsxs("div",{className:"flex items-center space-x-2 mb-4",children:[n.jsx(Di,{className:"h-5 w-5 text-slate-400"}),n.jsx("h3",{className:"text-lg font-semibold text-slate-200",children:"Active Crontab Entries"})]}),p.entries.length===0?n.jsx("div",{className:"text-slate-500 text-sm",children:"No crontab entries found."}):n.jsx("div",{className:"space-y-2",children:p.entries.map((V,W)=>n.jsx("div",{className:"bg-slate-950/50 rounded-lg p-3 font-mono text-sm text-slate-300 border border-slate-800",children:V},W))})]}),v.isEditing&&n.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-4 border-t border-slate-800",children:[n.jsx(Se,{variant:"ghost",onClick:X,children:"Cancel"}),n.jsxs(Se,{onClick:F,loading:x,children:[n.jsx(Ai,{className:"h-4 w-4 mr-2"}),"Save & Install"]})]})]})},Pa=({label:u,value:o,onChange:d,helperText:r,placeholder:h="5 */3 * * *"})=>{const x=G0(o),f=x==="__custom__",b=j=>{j!=="__custom__"&&d(j)},g=j=>{d(j.target.value)},v=as.find(j=>j.value===x);return n.jsxs("div",{className:"space-y-3",children:[n.jsx(Ct,{label:u,value:x,onChange:b,options:as.map(j=>({label:j.label,value:j.value})),helperText:f?void 0:(v==null?void 0:v.description)||r}),f&&n.jsxs("div",{className:"space-y-2 mt-2",children:[n.jsx(He,{label:"Cron Expression",value:o,onChange:g,placeholder:h}),n.jsxs("div",{className:"text-xs text-slate-500 bg-slate-900/40 p-3 rounded-md border border-slate-800/60",children:[n.jsx("strong",{className:"text-slate-400",children:"Format:"})," minute hour day month weekday",n.jsx("br",{}),n.jsx("strong",{className:"text-slate-400",children:"Examples:"})," ",n.jsx("code",{className:"bg-slate-950 px-1 py-0.5 rounded text-indigo-300",children:"0 * * * *"})," (hourly),"," ",n.jsx("code",{className:"bg-slate-950 px-1 py-0.5 rounded text-indigo-300",children:"0 0 * * *"})," (daily at midnight)"]})]})]})},ry=({tabs:u,activeTab:o,onChange:d,className:r=""})=>{var g,v;const[h,x]=Ue.useState((g=u[0])==null?void 0:g.id),f=o||h,b=j=>{d?d(j):x(j)};return n.jsxs("div",{className:`flex flex-col ${r}`,children:[n.jsx("div",{className:"border-b border-slate-800 mb-6",children:n.jsx("nav",{className:"-mb-px flex space-x-8 overflow-x-auto scrollbar-hide",children:u.map(j=>n.jsx("button",{onClick:()=>b(j.id),className:`
|
|
363
|
+
whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm transition-all duration-200
|
|
364
|
+
${f===j.id?"border-indigo-500 text-indigo-400":"border-transparent text-slate-500 hover:text-slate-300 hover:border-slate-700"}
|
|
365
|
+
`,children:j.label},j.id))})}),n.jsx("div",{className:"flex-1 animate-in fade-in slide-in-from-bottom-2 duration-300",children:(v=u.find(j=>j.id===f))==null?void 0:v.content})]})},dr=u=>{var o,d,r,h,x,f,b;return{provider:u.provider,providerLabel:u.providerLabel??"",defaultBranch:u.defaultBranch,prdDir:u.prdDir||"docs/prds",branchPrefix:u.branchPrefix,branchPatterns:u.branchPatterns||[],executorEnabled:u.executorEnabled??!0,reviewerEnabled:u.reviewerEnabled,minReviewScore:u.minReviewScore,maxRuntime:u.maxRuntime,reviewerMaxRuntime:u.reviewerMaxRuntime,maxLogSize:u.maxLogSize,cronSchedule:u.cronSchedule||"5 */3 * * *",reviewerSchedule:u.reviewerSchedule||"25 */6 * * *",scheduleBundleId:u.scheduleBundleId??null,cronScheduleOffset:u.cronScheduleOffset??0,schedulingPriority:u.schedulingPriority??3,maxRetries:u.maxRetries??3,reviewerMaxRetries:u.reviewerMaxRetries??2,reviewerRetryDelay:u.reviewerRetryDelay??30,providerEnv:u.providerEnv||{},notifications:u.notifications||{webhooks:[]},prdPriority:u.prdPriority||[],roadmapScanner:{enabled:((o=u.roadmapScanner)==null?void 0:o.enabled)??!0,roadmapPath:((d=u.roadmapScanner)==null?void 0:d.roadmapPath)??"ROADMAP.md",autoScanInterval:((r=u.roadmapScanner)==null?void 0:r.autoScanInterval)??300,slicerSchedule:((h=u.roadmapScanner)==null?void 0:h.slicerSchedule)??"35 */12 * * *",slicerMaxRuntime:((x=u.roadmapScanner)==null?void 0:x.slicerMaxRuntime)??600,priorityMode:((f=u.roadmapScanner)==null?void 0:f.priorityMode)??"roadmap-first",issueColumn:((b=u.roadmapScanner)==null?void 0:b.issueColumn)??"Draft"},templatesDir:u.templatesDir||".night-watch/templates",boardProvider:u.boardProvider||{enabled:!0,provider:"github"},jobProviders:u.jobProviders||{},autoMerge:u.autoMerge??!1,autoMergeMethod:u.autoMergeMethod??"squash",fallbackOnRateLimit:u.fallbackOnRateLimit??!0,claudeModel:u.claudeModel??"sonnet",qa:u.qa||{enabled:!0,schedule:"45 2,14 * * *",maxRuntime:3600,branchPatterns:[],artifacts:"both",skipLabel:"skip-qa",autoInstallPlaywright:!0},audit:u.audit||{enabled:!0,schedule:"50 3 * * 1",maxRuntime:1800},queue:u.queue||{enabled:!0,maxConcurrency:1,maxWaitTime:7200,priority:{executor:50,reviewer:40,slicer:30,qa:20,audit:10}}}},Im=u=>{const o=k0(u.scheduleBundleId,u.cronSchedule,u.reviewerSchedule,u.qa.schedule,u.audit.schedule,u.roadmapScanner.slicerSchedule??"35 */12 * * *");return o?{mode:"template",selectedTemplateId:o.id}:{mode:"custom",selectedTemplateId:""}},oy=u=>["TOKEN","SECRET","KEY","PASSWORD","AUTH","API_KEY"].some(d=>u.toUpperCase().includes(d)),dy=({value:u,isSensitive:o})=>{const[d,r]=Ue.useState(!1);return o?n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-sm text-slate-300 font-mono",children:d?u:"••••••••••••"}),n.jsx("button",{type:"button",onClick:()=>r(!d),className:"text-slate-500 hover:text-slate-300","aria-label":d?"Hide sensitive value":"Show sensitive value",title:d?"Hide sensitive value":"Show sensitive value",children:d?n.jsx(Og,{className:"h-4 w-4"}):n.jsx(Hg,{className:"h-4 w-4"})})]}):n.jsx("span",{className:"text-sm text-slate-300 font-mono truncate max-w-xs",children:u})},fy=({envVars:u,onChange:o})=>{const[d,r]=Ue.useState(""),[h,x]=Ue.useState(""),[f,b]=Ue.useState(null),[g,v]=Ue.useState(""),j=()=>{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("")}},p=U=>{const Q={...u};delete Q[U],o(Q)},D=U=>{b(U),v(u[U])},z=()=>{f&&(o({...u,[f]:g}),b(null),v(""))},H=()=>{b(null),v("")},y=Object.entries(u);return n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Configure environment variables passed to the provider CLI (API keys, base URLs)"}),n.jsx("div",{className:"space-y-2",children:y.length===0?n.jsx("p",{className:"text-slate-500 text-sm italic",children:"No provider environment variables configured."}):y.map(([U,Q])=>n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{className:"flex items-center gap-4 flex-1 min-w-0",children:[n.jsx("span",{className:"text-sm font-mono text-indigo-400 w-48 truncate",children:U}),f===U?n.jsxs("div",{className:"flex items-center gap-2 flex-1",children:[n.jsx("input",{type:"text",value:g,onChange:G=>v(G.target.value),className:"flex-1 bg-slate-800 border border-slate-700 rounded px-2 py-1 text-sm text-slate-200"}),n.jsx("button",{type:"button",onClick:z,className:"p-1 text-green-400 hover:text-green-300","aria-label":`Save ${U} value`,title:`Save ${U} value`,children:n.jsx(Ai,{className:"h-4 w-4"})}),n.jsx("button",{type:"button",onClick:H,className:"p-1 text-slate-400 hover:text-slate-300","aria-label":`Cancel editing ${U}`,title:`Cancel editing ${U}`,children:n.jsx(rs,{className:"h-4 w-4"})})]}):n.jsx(dy,{value:Q,isSensitive:oy(U)})]}),f!==U&&n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("button",{type:"button",onClick:()=>D(U),className:"p-1 text-slate-400 hover:text-slate-200","aria-label":`Edit ${U}`,title:`Edit ${U}`,children:n.jsx(R0,{className:"h-4 w-4"})}),n.jsx("button",{type:"button",onClick:()=>p(U),className:"p-1 text-red-400 hover:text-red-300","aria-label":`Delete ${U}`,title:`Delete ${U}`,children:n.jsx(A0,{className:"h-4 w-4"})})]})]},U))}),n.jsxs("div",{className:"flex items-end gap-3 pt-4 border-t border-slate-800",children:[n.jsxs("div",{className:"flex-1",children:[n.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Key"}),n.jsx("input",{type:"text",value:d,onChange:U=>r(U.target.value.toUpperCase()),placeholder:"e.g., ANTHROPIC_BASE_URL",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),n.jsxs("div",{className:"flex-1",children:[n.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-1",children:"Value"}),n.jsx("input",{type:"text",value:h,onChange:U=>x(U.target.value),placeholder:"e.g., https://api.example.com",className:"w-full bg-slate-800 border border-slate-700 rounded px-3 py-2 text-sm text-slate-200 placeholder-slate-500"})]}),n.jsxs(Se,{onClick:j,disabled:!d.trim(),children:[n.jsx(us,{className:"h-4 w-4 mr-1"}),"Add"]})]})]})},my=({notifications:u,onChange:o})=>{const[d,r]=Ue.useState(null),[h,x]=Ue.useState(!1),[f,b]=Ue.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,f]}),b({type:"slack",url:"",events:[]}),x(!1)},j=(H,y)=>{const U=[...u.webhooks];U[H]=y,o({webhooks:U})},p=H=>{o({webhooks:u.webhooks.filter((y,U)=>U!==H)})},D=(H,y)=>H.includes(y)?H.filter(U=>U!==y):[...H,y],z=({webhook:H,onChange:y,onSave:U,onCancel:Q,isNew:G})=>n.jsxs("div",{className:"p-4 rounded-md border border-slate-700 bg-slate-900/50 space-y-4",children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[n.jsx(Ct,{label:"Type",value:H.type,onChange:Y=>{const se=Y;y(se==="telegram"?{type:se,botToken:"",chatId:"",events:H.events}:{type:se,url:"",events:H.events})},options:[{label:"Slack",value:"slack"},{label:"Discord",value:"discord"},{label:"Telegram",value:"telegram"}]}),H.type==="telegram"?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"relative",children:n.jsx(He,{label:"Bot Token",type:"password",value:H.botToken||"",onChange:Y=>y({...H,botToken:Y.target.value}),placeholder:"123456789:ABCdefGHIjklMNOpqrsTUVwxyz"})}),n.jsx(He,{label:"Chat ID",value:H.chatId||"",onChange:Y=>y({...H,chatId:Y.target.value}),placeholder:"123456789"})]}):n.jsx("div",{className:"md:col-span-2",children:n.jsx(He,{label:"Webhook URL",type:"password",value:H.url||"",onChange:Y=>y({...H,url:Y.target.value}),placeholder:"https://hooks.slack.com/services/..."})})]}),n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Events"}),n.jsx("div",{className:"flex flex-wrap gap-2",children:g.map(Y=>n.jsx("button",{type:"button",onClick:()=>y({...H,events:D(H.events,Y.value)}),className:`px-3 py-1.5 rounded-md text-sm transition-colors ${H.events.includes(Y.value)?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:bg-slate-700"}`,children:Y.label},Y.value))})]}),n.jsxs("div",{className:"flex justify-end gap-2",children:[n.jsx(Se,{variant:"ghost",onClick:Q,children:"Cancel"}),n.jsx(Se,{onClick:U,disabled:H.events.length===0||(H.type==="telegram"?!H.botToken||!H.chatId:!H.url),children:G?"Add Webhook":"Save Changes"})]})]});return n.jsxs("div",{className:"space-y-4",children:[n.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"Receive notifications when events occur via Slack, Discord, or Telegram"}),n.jsx("div",{className:"space-y-3",children:u.webhooks.length===0?n.jsx("p",{className:"text-slate-500 text-sm italic",children:"No webhooks configured."}):u.webhooks.map((H,y)=>n.jsx("div",{children:d===y?n.jsx(z,{webhook:H,onChange:U=>j(y,U),onSave:()=>r(null),onCancel:()=>r(null)}):n.jsxs("div",{className:"flex items-center justify-between p-4 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{className:"flex-1",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200 capitalize",children:H.type}),H.type==="telegram"&&n.jsxs("span",{className:"text-xs text-slate-500",children:["Chat ID: ",H.chatId]})]}),n.jsx("div",{className:"flex flex-wrap gap-1",children:H.events.map(U=>n.jsx("span",{className:"px-2 py-0.5 bg-slate-800 rounded text-xs text-slate-400",children:U.replace("_"," ")},U))})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("button",{type:"button",onClick:()=>r(y),className:"p-2 text-slate-400 hover:text-slate-200","aria-label":`Edit ${H.type} webhook`,title:`Edit ${H.type} webhook`,children:n.jsx(R0,{className:"h-4 w-4"})}),n.jsx("button",{type:"button",onClick:()=>p(y),className:"p-2 text-red-400 hover:text-red-300","aria-label":`Delete ${H.type} webhook`,title:`Delete ${H.type} webhook`,children:n.jsx(A0,{className:"h-4 w-4"})})]})]})},y))}),h?n.jsx(z,{webhook:f,onChange:b,onSave:v,onCancel:()=>x(!1),isNew:!0}):n.jsxs(Se,{variant:"ghost",onClick:()=>x(!0),children:[n.jsx(us,{className:"h-4 w-4 mr-2"}),"Add Webhook"]})]})},fr=({label:u,value:o,onChange:d,placeholder:r,helpText:h})=>{const[x,f]=Ue.useState(""),b=()=>{x.trim()&&!o.includes(x.trim())&&(d([...o,x.trim()]),f(""))},g=j=>{d(o.filter(p=>p!==j))},v=j=>{j.key==="Enter"&&(j.preventDefault(),b())};return n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:u}),n.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:o.map(j=>n.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 bg-slate-800 rounded text-sm text-slate-300",children:[j,n.jsx("button",{type:"button",onClick:()=>g(j),className:"text-slate-500 hover:text-red-400","aria-label":`Remove ${j}`,title:`Remove ${j}`,children:n.jsx(rs,{className:"h-3 w-3"})})]},j))}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx("input",{type:"text",value:x,onChange:j=>f(j.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"}),n.jsx(Se,{onClick:b,disabled:!x.trim(),"aria-label":`Add ${u.toLowerCase()} value`,children:n.jsx(us,{className:"h-4 w-4"})})]}),h&&n.jsx("p",{className:"text-xs text-slate-500 mt-1",children:h})]})},hy=()=>{const{addToast:u,projectName:o,selectedProjectId:d,globalModeLoading:r}=Mt(),[h,x]=Ue.useState(!1),[f,b]=Ue.useState(null),g=Ue.useRef(!1),[v,j]=Ue.useState("template"),[p,D]=Ue.useState("always-on"),{data:z,loading:H,error:y,refetch:U}=Rt(O0,[d],{enabled:!r}),{data:Q,loading:G,refetch:Y}=Rt(Sb,[d],{enabled:!r}),se=Q??[],re=Ue.useCallback(R=>{const le=Im(R);j(le.mode),D(le.selectedTemplateId)},[]);Ue.useEffect(()=>{if(z)if(g.current)g.current=!1;else{const R=dr(z);b(R),re(R)}},[z,re]);const X=(R,le)=>{b(_=>_&&{..._,[R]:le})},F=()=>{if(j("template"),!f)return;const R=Im(f);R.mode==="template"&&(D(R.selectedTemplateId),X("scheduleBundleId",R.selectedTemplateId))},ae=()=>{j("custom"),X("scheduleBundleId",null),D("")},ue=R=>{D(R.id),b(le=>le&&{...le,cronSchedule:R.schedules.executor,reviewerSchedule:R.schedules.reviewer,scheduleBundleId:R.id,qa:{...le.qa,schedule:R.schedules.qa},audit:{...le.audit,schedule:R.schedules.audit},roadmapScanner:{...le.roadmapScanner,slicerSchedule:R.schedules.slicer},fallbackOnRateLimit:!0})},Z=async()=>{var _,$,te;if(!f)return;const R=f.cronSchedule!==(z==null?void 0:z.cronSchedule)||f.reviewerSchedule!==(z==null?void 0:z.reviewerSchedule)||f.cronScheduleOffset!==((z==null?void 0:z.cronScheduleOffset)??0)||f.schedulingPriority!==((z==null?void 0:z.schedulingPriority)??3)||f.executorEnabled!==((z==null?void 0:z.executorEnabled)??!0)||f.reviewerEnabled!==((z==null?void 0:z.reviewerEnabled)??!0)||f.queue.enabled!==(((_=z==null?void 0:z.queue)==null?void 0:_.enabled)??!0)||f.qa.enabled!==((z==null?void 0:z.qa.enabled)??!0)||f.qa.schedule!==(z==null?void 0:z.qa.schedule)||f.audit.enabled!==((z==null?void 0:z.audit.enabled)??!0)||f.audit.schedule!==(z==null?void 0:z.audit.schedule)||f.roadmapScanner.enabled!==((($=z==null?void 0:z.roadmapScanner)==null?void 0:$.enabled)??!0)||(f.roadmapScanner.slicerSchedule||"35 */12 * * *")!==(((te=z==null?void 0:z.roadmapScanner)==null?void 0:te.slicerSchedule)||"35 */12 * * *"),le={};for(const[fe,me]of Object.entries(f.jobProviders))me!=null&&me!==""&&(le[fe]=me);x(!0);try{const fe=await da({provider:f.provider,providerLabel:f.providerLabel.trim(),defaultBranch:f.defaultBranch,prdDir:f.prdDir,branchPrefix:f.branchPrefix,branchPatterns:f.branchPatterns,executorEnabled:f.executorEnabled,reviewerEnabled:f.reviewerEnabled,minReviewScore:f.minReviewScore,maxRuntime:f.maxRuntime,reviewerMaxRuntime:f.reviewerMaxRuntime,maxLogSize:f.maxLogSize,cronSchedule:f.cronSchedule,reviewerSchedule:f.reviewerSchedule,scheduleBundleId:v==="template"?f.scheduleBundleId:null,cronScheduleOffset:f.cronScheduleOffset,schedulingPriority:f.schedulingPriority,maxRetries:f.maxRetries,reviewerMaxRetries:f.reviewerMaxRetries,reviewerRetryDelay:f.reviewerRetryDelay,providerEnv:f.providerEnv,notifications:f.notifications,prdPriority:f.prdPriority,roadmapScanner:f.roadmapScanner,templatesDir:f.templatesDir,boardProvider:f.boardProvider,jobProviders:le,autoMerge:f.autoMerge,autoMergeMethod:f.autoMergeMethod,fallbackOnRateLimit:f.fallbackOnRateLimit,claudeModel:f.claudeModel,qa:f.qa,audit:f.audit,queue:f.queue}),me=dr(fe);b(me),re(me);let S="";if(R)try{await ts()}catch(B){S=B instanceof Error?B.message:"failed to reinstall cron schedules"}u(S?{title:"Settings Saved (Cron Reinstall Failed)",message:S,type:"warning"}:{title:"Settings Saved",message:R?"Configuration updated and cron schedules reinstalled.":"Configuration updated successfully.",type:"success"}),g.current=!0,U(),Y()}catch(fe){u({title:"Save Failed",message:fe instanceof Error?fe.message:"Failed to save configuration",type:"error"})}finally{x(!1)}},Ce=()=>{if(z){const R=dr(z);b(R),re(R),u({title:"Reset Complete",message:"Unsaved changes were discarded.",type:"info"})}},Te=async R=>{try{const le=await B0(R);X("roadmapScanner",le.roadmapScanner);let _="";try{await ts()}catch($){_=$ instanceof Error?$.message:"Failed to reinstall cron schedules"}u(_?{title:"Planner Saved (Cron Reinstall Failed)",message:_,type:"warning"}:{title:R?"Roadmap Scanner Enabled":"Roadmap Scanner Disabled",message:`Roadmap scanner has been ${R?"enabled":"disabled"}.`,type:"success"})}catch(le){u({title:"Toggle Failed",message:le instanceof Error?le.message:"Failed to toggle roadmap scanner",type:"error"})}};if(H||!f)return n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-slate-400",children:"Loading settings..."})});if(y)return n.jsxs("div",{className:"flex flex-col items-center justify-center h-full space-y-4",children:[n.jsx(Kt,{className:"h-12 w-12 text-red-400"}),n.jsx("div",{className:"text-slate-300",children:"Failed to load settings"}),n.jsx("div",{className:"text-sm text-slate-500",children:y.message}),n.jsx(Se,{onClick:()=>U(),children:"Retry"})]});const qe=[{id:"general",label:"General",content:n.jsx(be,{className:"p-6 space-y-6",children:n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Project Configuration"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-4",children:[n.jsx(He,{label:"Project Name",value:o,disabled:!0}),n.jsx(He,{label:"Default Branch",value:f.defaultBranch,onChange:R=>X("defaultBranch",R.target.value)}),n.jsx(He,{label:"PRD Directory",value:f.prdDir,onChange:R=>X("prdDir",R.target.value),helperText:"Directory containing PRD files (relative to project root)"}),n.jsx(He,{label:"Branch Prefix",value:f.branchPrefix,onChange:R=>X("branchPrefix",R.target.value)}),n.jsx("div",{className:"md:col-span-2",children:n.jsx(it,{label:"Enable PRD Executor",checked:f.executorEnabled,onChange:R=>X("executorEnabled",R)})}),n.jsx("div",{className:"md:col-span-2",children:n.jsx(it,{label:"Enable Automated Reviews",checked:f.reviewerEnabled,onChange:R=>X("reviewerEnabled",R)})}),n.jsx("div",{className:"md:col-span-2",children:n.jsx(it,{label:"Auto-merge approved PRs",checked:f.autoMerge,onChange:R=>X("autoMerge",R)})}),f.autoMerge&&n.jsx(Ct,{label:"Merge Method",value:f.autoMergeMethod,onChange:R=>X("autoMergeMethod",R),options:[{label:"Squash",value:"squash"},{label:"Merge",value:"merge"},{label:"Rebase",value:"rebase"}]})]}),n.jsx("div",{className:"pt-4 mt-4 border-t border-slate-800",children:n.jsx(fr,{label:"Branch Patterns",value:f.branchPatterns,onChange:R=>X("branchPatterns",R),placeholder:"e.g., feat/",helpText:"Branch patterns matched by reviewer and related automation jobs"})})]})})},{id:"providers",label:"Providers",content:n.jsxs("div",{className:"space-y-6",children:[n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Global Provider"}),n.jsx("p",{className:"text-sm text-slate-400 mt-1",children:"Default AI provider used for all jobs unless overridden below"})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsx(Ct,{label:"Provider",value:f.provider,onChange:R=>X("provider",R),options:[{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]}),n.jsx(He,{label:"Provider Label",value:f.providerLabel,onChange:R=>X("providerLabel",R.target.value),placeholder:"e.g. GLM-5 (auto-derived if blank)",helperText:"Human-friendly name shown in PR comments, review footers, and commit attribution"}),n.jsx(Ct,{label:"Claude Model",value:f.claudeModel,onChange:R=>X("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)"}),n.jsxs("div",{className:"md:col-span-2",children:[n.jsx(it,{label:"Fallback on Rate Limit",checked:f.fallbackOnRateLimit,onChange:R=>X("fallbackOnRateLimit",R)}),n.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"})]})]})]}),n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Per-Job Provider Overrides"}),n.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.'})]}),n.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:le})=>n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40 gap-4",children:[n.jsx("span",{className:"text-sm font-medium text-slate-200 whitespace-nowrap",children:le}),n.jsx("div",{className:"w-64",children:n.jsx(Ct,{value:f.jobProviders[R]??"",onChange:_=>{const $={...f.jobProviders};_===""?delete $[R]:$[R]=_,X("jobProviders",$)},options:[{label:"Use Global (default)",value:""},{label:"Anthropic (Claude)",value:"claude"},{label:"OpenAI (Codex)",value:"codex"}]})})]},R))})]}),n.jsxs(be,{className:"p-6",children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Provider Environment Variables"}),n.jsx(fy,{envVars:f.providerEnv,onChange:R=>X("providerEnv",R)})]})]})},{id:"runtime",label:"Runtime",content:n.jsxs("div",{className:"space-y-6",children:[n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{children:[n.jsx("label",{className:"block text-sm font-medium text-slate-400 mb-2",children:"Min Review Score (0-100)"}),n.jsxs("div",{className:"flex items-center space-x-4",children:[n.jsx("input",{type:"range",min:"0",max:"100",value:f.minReviewScore,onChange:R=>X("minReviewScore",Number(R.target.value)),className:"w-full h-2 bg-slate-800 rounded-lg appearance-none cursor-pointer accent-indigo-500"}),n.jsx("span",{className:"text-sm font-bold text-slate-200 w-10",children:f.minReviewScore})]}),n.jsx("p",{className:"text-xs text-slate-500 mt-1",children:'PRs below this score will be marked as "Needs Work".'})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsx(He,{label:"Max Runtime (Executor)",type:"number",value:String(f.maxRuntime),onChange:R=>X("maxRuntime",Number(R.target.value||0)),rightIcon:n.jsx("span",{className:"text-xs",children:"sec"})}),n.jsx(He,{label:"Max Runtime (Reviewer)",type:"number",value:String(f.reviewerMaxRuntime),onChange:R=>X("reviewerMaxRuntime",Number(R.target.value||0)),rightIcon:n.jsx("span",{className:"text-xs",children:"sec"})}),n.jsx(He,{label:"Max Log Size",type:"number",value:String(f.maxLogSize),onChange:R=>X("maxLogSize",Number(R.target.value||0)),rightIcon:n.jsx("span",{className:"text-xs",children:"bytes"})})]})]}),n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Retry Settings"}),n.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."})]}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsx(He,{label:"Max Retry Attempts",type:"number",min:"0",max:"10",value:String(f.reviewerMaxRetries),onChange:R=>{const le=Math.min(10,Math.max(0,Number(R.target.value||0)));X("reviewerMaxRetries",le)},helperText:"Additional fix attempts after initial review. 0 = no retries."}),n.jsx(He,{label:"Retry Delay (seconds)",type:"number",min:"0",max:"300",value:String(f.reviewerRetryDelay),onChange:R=>{const le=Math.min(300,Math.max(0,Number(R.target.value||0)));X("reviewerRetryDelay",le)},helperText:"Wait time between retry attempts to let CI settle."})]})]})]})},{id:"schedules",label:"Schedules",content:n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-start justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-1",children:"Job Schedules"}),n.jsx("p",{className:"text-sm text-slate-400",children:"Configure when automated jobs run using a preset template or custom cron expressions"})]}),n.jsxs("div",{className:"flex rounded-lg border border-slate-700 overflow-hidden shrink-0",children:[n.jsx("button",{type:"button",className:`px-4 py-1.5 text-sm font-medium transition-colors ${v==="template"?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:text-slate-200"}`,onClick:F,children:"Template"}),n.jsx("button",{type:"button",className:`px-4 py-1.5 text-sm font-medium transition-colors ${v==="custom"?"bg-indigo-600 text-white":"bg-slate-800 text-slate-400 hover:text-slate-200"}`,onClick:ae,children:"Custom"})]})]}),v==="template"?n.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Rr.map(R=>{const le=p===R.id;return n.jsxs("button",{type:"button",onClick:()=>ue(R),className:`text-left p-4 rounded-lg border transition-colors ${le?"border-indigo-500 bg-indigo-950/40":"border-slate-700 bg-slate-800/30 hover:border-slate-600"}`,children:[n.jsx("div",{className:"font-medium text-slate-200 mb-1",children:R.label}),n.jsx("p",{className:"text-xs text-slate-400 mb-3",children:R.description}),n.jsx("div",{className:"space-y-0.5",children:[["Executor",R.hints.executor],["Reviewer",R.hints.reviewer],["QA",R.hints.qa],["Audit",R.hints.audit],["Slicer",R.hints.slicer]].map(([_,$])=>n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-xs text-slate-500 w-16 shrink-0",children:_}),n.jsx("span",{className:"text-xs text-slate-400",children:$})]},_))})]},R.id)})}):n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsx(Pa,{label:"PRD Execution Schedule",value:f.cronSchedule,onChange:R=>X("cronSchedule",R)}),n.jsx(Pa,{label:"PR Review Schedule",value:f.reviewerSchedule,onChange:R=>X("reviewerSchedule",R)}),n.jsx(Pa,{label:"QA Schedule",value:f.qa.schedule,onChange:R=>X("qa",{...f.qa,schedule:R})}),n.jsx(Pa,{label:"Audit Schedule",value:f.audit.schedule,onChange:R=>X("audit",{...f.audit,schedule:R})}),f.roadmapScanner.enabled&&n.jsx(Pa,{label:"Planner Schedule",value:f.roadmapScanner.slicerSchedule||"35 */12 * * *",onChange:R=>X("roadmapScanner",{...f.roadmapScanner,slicerSchedule:R})})]}),n.jsxs("div",{className:"pt-4 border-t border-slate-800 grid grid-cols-1 md:grid-cols-3 gap-6",children:[n.jsx(Ct,{label:"Scheduling Priority",value:String(f.schedulingPriority),onChange:R=>X("schedulingPriority",Number(R)),options:[{label:"1 · Lowest",value:"1"},{label:"2 · Low",value:"2"},{label:"3 · Balanced",value:"3"},{label:"4 · High",value:"4"},{label:"5 · Highest",value:"5"}],helperText:"Higher-priority projects get earlier balanced start slots and win queue tie-breakers first."}),n.jsx("div",{className:"rounded-xl border border-slate-800 bg-slate-950/50 p-4",children:n.jsxs("div",{className:"flex items-center justify-between gap-4",children:[n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-slate-200",children:"Global Queue"}),n.jsx("p",{className:"text-xs text-slate-400 mt-1",children:"Queue overlapping jobs across projects instead of letting them burst the provider API."})]}),n.jsx(it,{checked:f.queue.enabled,onChange:R=>X("queue",{...f.queue,enabled:R})})]})}),n.jsx(He,{label:"Extra Start Delay",type:"number",min:"0",max:"59",value:String(f.cronScheduleOffset),onChange:R=>{const le=Math.min(59,Math.max(0,Number(R.target.value||0)));X("cronScheduleOffset",le)},helperText:"Manual delay in minutes added before cron jobs start. This stacks on top of automatic balancing."})]})]})},{id:"notifications",label:"Notifications",content:n.jsxs(be,{className:"p-6",children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200 mb-2",children:"Notification Webhooks"}),n.jsx(my,{notifications:f.notifications,onChange:R=>X("notifications",R)})]})},{id:"roadmap",label:"Planner",content:n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Planner"}),n.jsx("p",{className:"text-sm text-slate-400",children:"Generate one PRD per run using ROADMAP.md first, then audit findings when roadmap work is exhausted"})]}),n.jsx(it,{checked:f.roadmapScanner.enabled,"aria-label":"Enable planner",onChange:Te})]}),f.roadmapScanner.enabled&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[n.jsx(He,{label:"Roadmap File Path",value:f.roadmapScanner.roadmapPath,onChange:R=>X("roadmapScanner",{...f.roadmapScanner,roadmapPath:R.target.value}),helperText:"Primary planning source (relative to project root)."}),n.jsx(Pa,{label:"Planner Schedule",value:f.roadmapScanner.slicerSchedule||"35 */12 * * *",onChange:R=>X("roadmapScanner",{...f.roadmapScanner,slicerSchedule:R})})]}),n.jsxs("div",{className:"pt-4 border-t border-slate-800",children:[n.jsx("h4",{className:"text-md font-medium text-slate-200 mb-4",children:"Planner Execution"}),n.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Planner creates one PRD at a time and can auto-create a board issue for handoff."}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsx(He,{label:"Planner Max Runtime",type:"number",value:String(f.roadmapScanner.slicerMaxRuntime||""),onChange:R=>X("roadmapScanner",{...f.roadmapScanner,slicerMaxRuntime:Number(R.target.value||0)}),rightIcon:n.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for planner tasks"}),n.jsx(Ct,{label:"Planner Priority Mode",value:f.roadmapScanner.priorityMode||"roadmap-first",onChange:R=>X("roadmapScanner",{...f.roadmapScanner,priorityMode:R==="audit-first"?"audit-first":"roadmap-first"}),options:[{label:"Roadmap first (recommended)",value:"roadmap-first"},{label:"Audit first",value:"audit-first"}],helperText:"Choose whether planner consumes roadmap items or audit findings first."}),n.jsx(Ct,{label:"Planner Issue Column",value:f.roadmapScanner.issueColumn||"Draft",onChange:R=>X("roadmapScanner",{...f.roadmapScanner,issueColumn:R==="Ready"?"Ready":"Draft"}),options:[{label:"Draft (default)",value:"Draft"},{label:"Ready",value:"Ready"}],helperText:"Column where planner-created issues are added after PRD generation."})]})]})]})]})},{id:"board",label:"Board",content:n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Board Provider"}),n.jsx("p",{className:"text-sm text-slate-400",children:"Track PRDs and their status using GitHub Projects or local SQLite"})]}),n.jsx(it,{checked:f.boardProvider.enabled,onChange:R=>X("boardProvider",{...f.boardProvider,enabled:R})})]}),f.boardProvider.enabled&&n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[n.jsx(Ct,{label:"Board Provider",value:f.boardProvider.provider,onChange:R=>X("boardProvider",{...f.boardProvider,provider:R}),options:[{label:"GitHub Projects",value:"github"},{label:"Local (SQLite)",value:"local"}]}),f.boardProvider.provider==="github"&&n.jsxs(n.Fragment,{children:[n.jsx(He,{label:"Project Number",type:"number",value:String(f.boardProvider.projectNumber||""),onChange:R=>X("boardProvider",{...f.boardProvider,projectNumber:R.target.value?Number(R.target.value):void 0}),helperText:"GitHub Projects V2 project number"}),n.jsx(He,{label:"Repository",value:f.boardProvider.repo||"",onChange:R=>X("boardProvider",{...f.boardProvider,repo:R.target.value||void 0}),helperText:"owner/repo (auto-detected if empty)"})]}),f.boardProvider.provider==="local"&&n.jsx("div",{className:"md:col-span-2",children:n.jsx("p",{className:"text-sm text-slate-400",children:"Local board uses SQLite for storage — no additional configuration needed."})})]})]})},{id:"qa",label:"QA",content:n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Quality Assurance"}),n.jsx("p",{className:"text-sm text-slate-400",children:"Automated UI testing using Playwright"})]}),n.jsx(it,{checked:f.qa.enabled,onChange:R=>X("qa",{...f.qa,enabled:R})})]}),f.qa.enabled&&n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:[n.jsx(He,{label:"Max Runtime",type:"number",value:String(f.qa.maxRuntime),onChange:R=>X("qa",{...f.qa,maxRuntime:Number(R.target.value||0)}),rightIcon:n.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for QA tasks (default: 3600 seconds)"}),n.jsx(Ct,{label:"Artifacts",value:f.qa.artifacts,onChange:R=>X("qa",{...f.qa,artifacts:R}),options:[{label:"Screenshots",value:"screenshot"},{label:"Videos",value:"video"},{label:"Both",value:"both"}],helperText:"What artifacts to capture for UI tests"}),n.jsx(He,{label:"Skip Label",value:f.qa.skipLabel,onChange:R=>X("qa",{...f.qa,skipLabel:R.target.value}),helperText:"GitHub label to skip QA (PRs with this label are excluded)"})]}),n.jsxs("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:[n.jsx(fr,{label:"QA Branch Patterns",value:f.qa.branchPatterns,onChange:R=>X("qa",{...f.qa,branchPatterns:R}),placeholder:"e.g., qa/, test/",helpText:"Branch patterns to match for QA (defaults to top-level branchPatterns if empty)"}),n.jsxs("div",{className:"flex items-center justify-between p-3 rounded-md border border-slate-800 bg-slate-950/40",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-sm font-medium text-slate-200",children:"Auto-install Playwright"}),n.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Automatically install Playwright browsers if missing during QA run"})]}),n.jsx(it,{checked:f.qa.autoInstallPlaywright,onChange:R=>X("qa",{...f.qa,autoInstallPlaywright:R})})]})]})]})]})},{id:"audit",label:"Audit",content:n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Code Audit"}),n.jsx("p",{className:"text-sm text-slate-400",children:"Automated code quality and security audits"})]}),n.jsx(it,{checked:f.audit.enabled,onChange:R=>X("audit",{...f.audit,enabled:R})})]}),f.audit.enabled&&n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 pt-4 border-t border-slate-800",children:n.jsx(He,{label:"Max Runtime",type:"number",value:String(f.audit.maxRuntime),onChange:R=>X("audit",{...f.audit,maxRuntime:Number(R.target.value||0)}),rightIcon:n.jsx("span",{className:"text-xs",children:"sec"}),helperText:"Maximum runtime for audit tasks (default: 1800 seconds)"})})]})},{id:"advanced",label:"Advanced",content:n.jsxs(be,{className:"p-6 space-y-6",children:[n.jsx("h3",{className:"text-lg font-medium text-slate-200",children:"Advanced Settings"}),n.jsx("p",{className:"text-sm text-slate-400",children:"Templates, retry policy, and PRD execution priority"}),n.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[n.jsx(He,{label:"Templates Directory",value:f.templatesDir,onChange:R=>X("templatesDir",R.target.value),helperText:"Directory for custom template overrides"}),n.jsx(He,{label:"Max Retries",type:"number",min:"1",value:String(f.maxRetries),onChange:R=>{const le=Math.max(1,Number(R.target.value||1));X("maxRetries",le)},helperText:"Retry attempts for rate-limited API calls"})]}),n.jsx("div",{className:"pt-4 border-t border-slate-800 space-y-4",children:n.jsx(fr,{label:"PRD Priority",value:f.prdPriority,onChange:R=>X("prdPriority",R),placeholder:"e.g., feature-x",helpText:"PRDs matching these names are executed first"})})]})}];return n.jsxs("div",{className:"max-w-4xl mx-auto pb-10",children:[n.jsx("h2",{className:"text-2xl font-bold text-slate-100 mb-6",children:"Settings"}),n.jsx(ry,{tabs:qe}),n.jsxs("div",{className:"flex items-center justify-end space-x-4 pt-6 mt-6 border-t border-slate-800",children:[n.jsxs(Se,{variant:"ghost",className:"text-slate-400 hover:text-slate-300",onClick:Ce,children:[n.jsx(lb,{className:"h-4 w-4 mr-2"}),"Reset"]}),n.jsxs(Se,{onClick:Z,loading:h,children:[n.jsx(nb,{className:"h-4 w-4 mr-2"}),"Save Changes"]})]}),n.jsxs("div",{className:"mt-12",children:[n.jsxs("h3",{className:"text-lg font-bold text-slate-200 mb-4 flex items-center",children:[n.jsx(j0,{className:"h-5 w-5 mr-2 text-indigo-500"}),"System Health"]}),n.jsx(be,{className:"divide-y divide-slate-800",children:G?n.jsx("div",{className:"p-4 text-sm text-slate-500",children:"Loading health checks..."}):se.map((R,le)=>{const _=R.status==="pass",$=R.status==="warn",te=_?"bg-green-500/10 text-green-400 border-green-500/20":$?"bg-amber-500/10 text-amber-400 border-amber-500/20":"bg-red-500/10 text-red-400 border-red-500/20";return n.jsxs("div",{className:"p-4 flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("p",{className:"text-sm font-medium text-slate-200",children:R.name}),n.jsx("p",{className:"text-xs text-slate-500",children:R.detail})]}),n.jsx("span",{className:`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border ${te}`,children:R.status.toUpperCase()})]},`${R.name}-${le}`)})})]})]})},xy=()=>(Gb(),n.jsx(Vp,{children:n.jsxs("div",{className:"flex h-screen bg-[#030712] text-slate-300 overflow-hidden relative",children:[n.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"}),n.jsx(Bb,{}),n.jsxs("div",{className:"flex-1 flex flex-col min-w-0 z-10",children:[n.jsx(Lb,{}),n.jsx("main",{className:"flex-1 overflow-auto p-6 scroll-smooth relative",children:n.jsx("div",{className:"max-w-7xl mx-auto w-full",children:n.jsxs(jp,{children:[n.jsx(hl,{path:"/",element:n.jsx(Jb,{})}),n.jsx(hl,{path:"/prs",element:n.jsx(Wb,{})}),n.jsx(hl,{path:"/board",element:n.jsx(Zb,{})}),n.jsx(hl,{path:"/scheduling",element:n.jsx(cy,{})}),n.jsx(hl,{path:"/logs",element:n.jsx(Fb,{})}),n.jsx(hl,{path:"/roadmap",element:n.jsx(Pb,{})}),n.jsx(hl,{path:"/settings",element:n.jsx(hy,{})}),n.jsx(hl,{path:"*",element:n.jsx(bp,{to:"/",replace:!0})})]})})})]}),n.jsx(kb,{})]})})),Q0=document.getElementById("root");if(!Q0)throw new Error("Could not find root element to mount to");const vy=Sv.createRoot(Q0);vy.render(n.jsx(Ue.StrictMode,{children:n.jsx(xy,{})}));
|