@caddis/cli 0.4.100 → 0.4.102
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/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_status.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
- package/bundles/antigravity-plugin/scripts/caddis_guide.json +2 -2
- package/bundles/antigravity-plugin/scripts/caddis_todo.py +9 -3
- package/bundles/manifest.json +2 -2
- package/dist/export/assets/export-DKXFSE8J.css +1 -0
- package/dist/export/index.html +2 -2
- package/dist/ui/assets/Activity-B816JVqx.js +1 -0
- package/dist/ui/assets/{Guide-DEa3jRqb.js → Guide-CnL1DiTr.js} +1 -1
- package/dist/ui/assets/Palette-BIlBqNvr.css +1 -0
- package/dist/ui/assets/Palette-BKM_A64G.js +11 -0
- package/dist/ui/assets/RoadmapTab-DhC4-kqv.js +21 -0
- package/dist/ui/assets/external-link-DagTFCsV.js +6 -0
- package/dist/ui/assets/index-Bj5qA-fq.js +226 -0
- package/dist/ui/assets/index-FqnApO4t.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +1 -1
- package/dist/export/assets/export-DhwQd2qc.css +0 -1
- package/dist/ui/assets/Activity-Dzbd3259.js +0 -6
- package/dist/ui/assets/RoadmapTab-C84_hqg3.js +0 -26
- package/dist/ui/assets/index-BAdqZpU0.js +0 -221
- package/dist/ui/assets/index-DXOh6JPC.css +0 -1
- /package/dist/export/assets/{export-66K2bB7C.js → export-B1Le4b3E.js} +0 -0
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Guide-DEa3jRqb.js","assets/Guide-Bict51LS.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var ri={exports:{}},Ir={},oi={exports:{}},oe={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Ec;function Nh(){if(Ec)return oe;Ec=1;var o=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),$=Symbol.iterator;function C(k){return k===null||typeof k!="object"?null:(k=$&&k[$]||k["@@iterator"],typeof k=="function"?k:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,F={};function U(k,R,re){this.props=k,this.context=R,this.refs=F,this.updater=re||P}U.prototype.isReactComponent={},U.prototype.setState=function(k,R){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,R,"setState")},U.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function J(){}J.prototype=U.prototype;function A(k,R,re){this.props=k,this.context=R,this.refs=F,this.updater=re||P}var je=A.prototype=new J;je.constructor=A,j(je,U.prototype),je.isPureReactComponent=!0;var X=Array.isArray,ne=Object.prototype.hasOwnProperty,fe={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function V(k,R,re){var le,ie={},ae=null,he=null;if(R!=null)for(le in R.ref!==void 0&&(he=R.ref),R.key!==void 0&&(ae=""+R.key),R)ne.call(R,le)&&!I.hasOwnProperty(le)&&(ie[le]=R[le]);var ce=arguments.length-2;if(ce===1)ie.children=re;else if(1<ce){for(var ke=Array(ce),tt=0;tt<ce;tt++)ke[tt]=arguments[tt+2];ie.children=ke}if(k&&k.defaultProps)for(le in ce=k.defaultProps,ce)ie[le]===void 0&&(ie[le]=ce[le]);return{$$typeof:o,type:k,key:ae,ref:he,props:ie,_owner:fe.current}}function te(k,R){return{$$typeof:o,type:k.type,key:R,ref:k.ref,props:k.props,_owner:k._owner}}function pe(k){return typeof k=="object"&&k!==null&&k.$$typeof===o}function Ue(k){var R={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(re){return R[re]})}var ze=/\/+/g;function Ee(k,R){return typeof k=="object"&&k!==null&&k.key!=null?Ue(""+k.key):R.toString(36)}function et(k,R,re,le,ie){var ae=typeof k;(ae==="undefined"||ae==="boolean")&&(k=null);var he=!1;if(k===null)he=!0;else switch(ae){case"string":case"number":he=!0;break;case"object":switch(k.$$typeof){case o:case s:he=!0}}if(he)return he=k,ie=ie(he),k=le===""?"."+Ee(he,0):le,X(ie)?(re="",k!=null&&(re=k.replace(ze,"$&/")+"/"),et(ie,R,re,"",function(tt){return tt})):ie!=null&&(pe(ie)&&(ie=te(ie,re+(!ie.key||he&&he.key===ie.key?"":(""+ie.key).replace(ze,"$&/")+"/")+k)),R.push(ie)),1;if(he=0,le=le===""?".":le+":",X(k))for(var ce=0;ce<k.length;ce++){ae=k[ce];var ke=le+Ee(ae,ce);he+=et(ae,R,re,ke,ie)}else if(ke=C(k),typeof ke=="function")for(k=ke.call(k),ce=0;!(ae=k.next()).done;)ae=ae.value,ke=le+Ee(ae,ce++),he+=et(ae,R,re,ke,ie);else if(ae==="object")throw R=String(k),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.");return he}function it(k,R,re){if(k==null)return k;var le=[],ie=0;return et(k,le,"","",function(ae){return R.call(re,ae,ie++)}),le}function Ie(k){if(k._status===-1){var R=k._result;R=R(),R.then(function(re){(k._status===0||k._status===-1)&&(k._status=1,k._result=re)},function(re){(k._status===0||k._status===-1)&&(k._status=2,k._result=re)}),k._status===-1&&(k._status=0,k._result=R)}if(k._status===1)return k._result.default;throw k._result}var we={current:null},M={transition:null},G={ReactCurrentDispatcher:we,ReactCurrentBatchConfig:M,ReactCurrentOwner:fe};function W(){throw Error("act(...) is not supported in production builds of React.")}return oe.Children={map:it,forEach:function(k,R,re){it(k,function(){R.apply(this,arguments)},re)},count:function(k){var R=0;return it(k,function(){R++}),R},toArray:function(k){return it(k,function(R){return R})||[]},only:function(k){if(!pe(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},oe.Component=U,oe.Fragment=a,oe.Profiler=f,oe.PureComponent=A,oe.StrictMode=u,oe.Suspense=v,oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,oe.act=W,oe.cloneElement=function(k,R,re){if(k==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+k+".");var le=j({},k.props),ie=k.key,ae=k.ref,he=k._owner;if(R!=null){if(R.ref!==void 0&&(ae=R.ref,he=fe.current),R.key!==void 0&&(ie=""+R.key),k.type&&k.type.defaultProps)var ce=k.type.defaultProps;for(ke in R)ne.call(R,ke)&&!I.hasOwnProperty(ke)&&(le[ke]=R[ke]===void 0&&ce!==void 0?ce[ke]:R[ke])}var ke=arguments.length-2;if(ke===1)le.children=re;else if(1<ke){ce=Array(ke);for(var tt=0;tt<ke;tt++)ce[tt]=arguments[tt+2];le.children=ce}return{$$typeof:o,type:k.type,key:ie,ref:ae,props:le,_owner:he}},oe.createContext=function(k){return k={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},k.Provider={$$typeof:p,_context:k},k.Consumer=k},oe.createElement=V,oe.createFactory=function(k){var R=V.bind(null,k);return R.type=k,R},oe.createRef=function(){return{current:null}},oe.forwardRef=function(k){return{$$typeof:g,render:k}},oe.isValidElement=pe,oe.lazy=function(k){return{$$typeof:E,_payload:{_status:-1,_result:k},_init:Ie}},oe.memo=function(k,R){return{$$typeof:_,type:k,compare:R===void 0?null:R}},oe.startTransition=function(k){var R=M.transition;M.transition={};try{k()}finally{M.transition=R}},oe.unstable_act=W,oe.useCallback=function(k,R){return we.current.useCallback(k,R)},oe.useContext=function(k){return we.current.useContext(k)},oe.useDebugValue=function(){},oe.useDeferredValue=function(k){return we.current.useDeferredValue(k)},oe.useEffect=function(k,R){return we.current.useEffect(k,R)},oe.useId=function(){return we.current.useId()},oe.useImperativeHandle=function(k,R,re){return we.current.useImperativeHandle(k,R,re)},oe.useInsertionEffect=function(k,R){return we.current.useInsertionEffect(k,R)},oe.useLayoutEffect=function(k,R){return we.current.useLayoutEffect(k,R)},oe.useMemo=function(k,R){return we.current.useMemo(k,R)},oe.useReducer=function(k,R,re){return we.current.useReducer(k,R,re)},oe.useRef=function(k){return we.current.useRef(k)},oe.useState=function(k){return we.current.useState(k)},oe.useSyncExternalStore=function(k,R,re){return we.current.useSyncExternalStore(k,R,re)},oe.useTransition=function(){return we.current.useTransition()},oe.version="18.3.1",oe}var Cc;function xi(){return Cc||(Cc=1,oi.exports=Nh()),oi.exports}/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var $c;function _h(){if($c)return Ir;$c=1;var o=xi(),s=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function h(g,v,_){var E,$={},C=null,P=null;_!==void 0&&(C=""+_),v.key!==void 0&&(C=""+v.key),v.ref!==void 0&&(P=v.ref);for(E in v)u.call(v,E)&&!p.hasOwnProperty(E)&&($[E]=v[E]);if(g&&g.defaultProps)for(E in v=g.defaultProps,v)$[E]===void 0&&($[E]=v[E]);return{$$typeof:s,type:g,key:C,ref:P,props:$,_owner:f.current}}return Ir.Fragment=a,Ir.jsx=h,Ir.jsxs=h,Ir}var Tc;function jh(){return Tc||(Tc=1,ri.exports=_h()),ri.exports}var d=jh(),O=xi(),el={},li={exports:{}},Ze={},si={exports:{}},ii={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var Pc;function Eh(){return Pc||(Pc=1,(function(o){function s(M,G){var W=M.length;M.push(G);e:for(;0<W;){var k=W-1>>>1,R=M[k];if(0<f(R,G))M[k]=G,M[W]=R,W=k;else break e}}function a(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var G=M[0],W=M.pop();if(W!==G){M[0]=W;e:for(var k=0,R=M.length,re=R>>>1;k<re;){var le=2*(k+1)-1,ie=M[le],ae=le+1,he=M[ae];if(0>f(ie,W))ae<R&&0>f(he,ie)?(M[k]=he,M[ae]=W,k=ae):(M[k]=ie,M[le]=W,k=le);else if(ae<R&&0>f(he,W))M[k]=he,M[ae]=W,k=ae;else break e}}return G}function f(M,G){var W=M.sortIndex-G.sortIndex;return W!==0?W:M.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;o.unstable_now=function(){return p.now()}}else{var h=Date,g=h.now();o.unstable_now=function(){return h.now()-g}}var v=[],_=[],E=1,$=null,C=3,P=!1,j=!1,F=!1,U=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function je(M){for(var G=a(_);G!==null;){if(G.callback===null)u(_);else if(G.startTime<=M)u(_),G.sortIndex=G.expirationTime,s(v,G);else break;G=a(_)}}function X(M){if(F=!1,je(M),!j)if(a(v)!==null)j=!0,Ie(ne);else{var G=a(_);G!==null&&we(X,G.startTime-M)}}function ne(M,G){j=!1,F&&(F=!1,J(V),V=-1),P=!0;var W=C;try{for(je(G),$=a(v);$!==null&&(!($.expirationTime>G)||M&&!Ue());){var k=$.callback;if(typeof k=="function"){$.callback=null,C=$.priorityLevel;var R=k($.expirationTime<=G);G=o.unstable_now(),typeof R=="function"?$.callback=R:$===a(v)&&u(v),je(G)}else u(v);$=a(v)}if($!==null)var re=!0;else{var le=a(_);le!==null&&we(X,le.startTime-G),re=!1}return re}finally{$=null,C=W,P=!1}}var fe=!1,I=null,V=-1,te=5,pe=-1;function Ue(){return!(o.unstable_now()-pe<te)}function ze(){if(I!==null){var M=o.unstable_now();pe=M;var G=!0;try{G=I(!0,M)}finally{G?Ee():(fe=!1,I=null)}}else fe=!1}var Ee;if(typeof A=="function")Ee=function(){A(ze)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,it=et.port2;et.port1.onmessage=ze,Ee=function(){it.postMessage(null)}}else Ee=function(){U(ze,0)};function Ie(M){I=M,fe||(fe=!0,Ee())}function we(M,G){V=U(function(){M(o.unstable_now())},G)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(M){M.callback=null},o.unstable_continueExecution=function(){j||P||(j=!0,Ie(ne))},o.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<M?Math.floor(1e3/M):5},o.unstable_getCurrentPriorityLevel=function(){return C},o.unstable_getFirstCallbackNode=function(){return a(v)},o.unstable_next=function(M){switch(C){case 1:case 2:case 3:var G=3;break;default:G=C}var W=C;C=G;try{return M()}finally{C=W}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(M,G){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var W=C;C=M;try{return G()}finally{C=W}},o.unstable_scheduleCallback=function(M,G,W){var k=o.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?k+W:k):W=k,M){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,M={id:E++,callback:G,priorityLevel:M,startTime:W,expirationTime:R,sortIndex:-1},W>k?(M.sortIndex=W,s(_,M),a(v)===null&&M===a(_)&&(F?(J(V),V=-1):F=!0,we(X,W-k))):(M.sortIndex=R,s(v,M),j||P||(j=!0,Ie(ne))),M},o.unstable_shouldYield=Ue,o.unstable_wrapCallback=function(M){var G=C;return function(){var W=C;C=G;try{return M.apply(this,arguments)}finally{C=W}}}})(ii)),ii}var Rc;function Ch(){return Rc||(Rc=1,si.exports=Eh()),si.exports}/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Lc;function $h(){if(Lc)return Ze;Lc=1;var o=xi(),s=Ch();function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var u=new Set,f={};function p(e,t){h(e,t),h(e+"Capture",t)}function h(e,t){for(f[e]=t,e=0;e<t.length;e++)u.add(t[e])}var g=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,_=/^[: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]*$/,E={},$={};function C(e){return v.call($,e)?!0:v.call(E,e)?!1:_.test(e)?$[e]=!0:(E[e]=!0,!1)}function P(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function j(e,t,n,r){if(t===null||typeof t>"u"||P(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function F(e,t,n,r,l,i,c){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=c}var U={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){U[e]=new F(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];U[t]=new F(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){U[e]=new F(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){U[e]=new F(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){U[e]=new F(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){U[e]=new F(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){U[e]=new F(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){U[e]=new F(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){U[e]=new F(e,5,!1,e.toLowerCase(),null,!1,!1)});var J=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(J,A);U[t]=new F(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(J,A);U[t]=new F(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(J,A);U[t]=new F(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){U[e]=new F(e,1,!1,e.toLowerCase(),null,!1,!1)}),U.xlinkHref=new F("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){U[e]=new F(e,1,!1,e.toLowerCase(),null,!0,!0)});function je(e,t,n,r){var l=U.hasOwnProperty(t)?U[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(j(t,n,l,r)&&(n=null),r||l===null?C(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var X=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ne=Symbol.for("react.element"),fe=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),te=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),Ue=Symbol.for("react.context"),ze=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),it=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),we=Symbol.for("react.offscreen"),M=Symbol.iterator;function G(e){return e===null||typeof e!="object"?null:(e=M&&e[M]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,k;function R(e){if(k===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);k=t&&t[1]||""}return`
|
|
35
|
-
`+k+e}var re=!1;function le(e,t){if(!e||re)return"";re=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(N){var r=N}Reflect.construct(e,[],t)}else{try{t.call()}catch(N){r=N}e.call(t.prototype)}else{try{throw Error()}catch(N){r=N}e()}}catch(N){if(N&&r&&typeof N.stack=="string"){for(var l=N.stack.split(`
|
|
36
|
-
`),i=r.stack.split(`
|
|
37
|
-
`),c=l.length-1,m=i.length-1;1<=c&&0<=m&&l[c]!==i[m];)m--;for(;1<=c&&0<=m;c--,m--)if(l[c]!==i[m]){if(c!==1||m!==1)do if(c--,m--,0>m||l[c]!==i[m]){var y=`
|
|
38
|
-
`+l[c].replace(" at new "," at ");return e.displayName&&y.includes("<anonymous>")&&(y=y.replace("<anonymous>",e.displayName)),y}while(1<=c&&0<=m);break}}}finally{re=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function ie(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function ae(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case I:return"Fragment";case fe:return"Portal";case te:return"Profiler";case V:return"StrictMode";case Ee:return"Suspense";case et:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ue:return(e.displayName||"Context")+".Consumer";case pe:return(e._context.displayName||"Context")+".Provider";case ze:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case it:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case Ie:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ae(t);case 8:return t===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ce(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ke(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tt(e){var t=ke(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(c){r=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(c){r=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wr(e){e._valueTracker||(e._valueTracker=tt(e))}function Li(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ke(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Vr(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}}function cl(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ce(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Di(e,t){t=t.checked,t!=null&&je(e,"checked",t,!1)}function dl(e,t){Di(e,t);var n=ce(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fl(e,t.type,n):t.hasOwnProperty("defaultValue")&&fl(e,t.type,ce(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oi(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fl(e,t,n){(t!=="number"||Vr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Zn=Array.isArray;function xn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ce(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function pl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(a(92));if(Zn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ce(n)}}function Ii(e,t){var n=ce(t.value),r=ce(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ai(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Fi(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Fi(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var br,Ui=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(br=br||document.createElement("div"),br.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=br.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Jn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var er={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cf=["Webkit","ms","Moz","O"];Object.keys(er).forEach(function(e){Cf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),er[t]=er[e]})});function Hi(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||er.hasOwnProperty(e)&&er[e]?(""+t).trim():t+"px"}function Bi(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Hi(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var $f=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ml(e,t){if(t){if($f[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(a(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(a(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(t.style!=null&&typeof t.style!="object")throw Error(a(62))}}function gl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 yl=null;function vl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wl=null,Sn=null,Nn=null;function Wi(e){if(e=Sr(e)){if(typeof wl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=mo(t),wl(e.stateNode,e.type,t))}}function Vi(e){Sn?Nn?Nn.push(e):Nn=[e]:Sn=e}function bi(){if(Sn){var e=Sn,t=Nn;if(Nn=Sn=null,Wi(e),t)for(e=0;e<t.length;e++)Wi(t[e])}}function qi(e,t){return e(t)}function Qi(){}var kl=!1;function Ki(e,t,n){if(kl)return e(t,n);kl=!0;try{return qi(e,t,n)}finally{kl=!1,(Sn!==null||Nn!==null)&&(Qi(),bi())}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var r=mo(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(a(231,t,typeof n));return n}var xl=!1;if(g)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){xl=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{xl=!1}function Tf(e,t,n,r,l,i,c,m,y){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(L){this.onError(L)}}var rr=!1,qr=null,Qr=!1,Sl=null,Pf={onError:function(e){rr=!0,qr=e}};function Rf(e,t,n,r,l,i,c,m,y){rr=!1,qr=null,Tf.apply(Pf,arguments)}function Lf(e,t,n,r,l,i,c,m,y){if(Rf.apply(this,arguments),rr){if(rr){var N=qr;rr=!1,qr=null}else throw Error(a(198));Qr||(Qr=!0,Sl=N)}}function on(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Yi(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 Gi(e){if(on(e)!==e)throw Error(a(188))}function zf(e){var t=e.alternate;if(!t){if(t=on(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var i=l.alternate;if(i===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return Gi(l),e;if(i===r)return Gi(l),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=l,r=i;else{for(var c=!1,m=l.child;m;){if(m===n){c=!0,n=l,r=i;break}if(m===r){c=!0,r=l,n=i;break}m=m.sibling}if(!c){for(m=i.child;m;){if(m===n){c=!0,n=i,r=l;break}if(m===r){c=!0,r=i,n=l;break}m=m.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(n.tag!==3)throw Error(a(188));return n.stateNode.current===n?e:t}function Xi(e){return e=zf(e),e!==null?Zi(e):null}function Zi(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Zi(e);if(t!==null)return t;e=e.sibling}return null}var Ji=s.unstable_scheduleCallback,ea=s.unstable_cancelCallback,Df=s.unstable_shouldYield,Of=s.unstable_requestPaint,$e=s.unstable_now,Mf=s.unstable_getCurrentPriorityLevel,Nl=s.unstable_ImmediatePriority,ta=s.unstable_UserBlockingPriority,Kr=s.unstable_NormalPriority,If=s.unstable_LowPriority,na=s.unstable_IdlePriority,Yr=null,Nt=null;function Af(e){if(Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Yr,e,void 0,(e.current.flags&128)===128)}catch{}}var ht=Math.clz32?Math.clz32:Hf,Ff=Math.log,Uf=Math.LN2;function Hf(e){return e>>>=0,e===0?32:31-(Ff(e)/Uf|0)|0}var Gr=64,Xr=4194304;function or(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,c=n&268435455;if(c!==0){var m=c&~l;m!==0?r=or(m):(i&=c,i!==0&&(r=or(i)))}else c=n&~l,c!==0?r=or(c):i!==0&&(r=or(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&l)===0&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-ht(t),l=1<<n,r|=e[n],t&=~l;return r}function Bf(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,i=e.pendingLanes;0<i;){var c=31-ht(i),m=1<<c,y=l[c];y===-1?((m&n)===0||(m&r)!==0)&&(l[c]=Bf(m,t)):y<=t&&(e.expiredLanes|=m),i&=~m}}function _l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ra(){var e=Gr;return Gr<<=1,(Gr&4194240)===0&&(Gr=64),e}function jl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ht(t),e[t]=n}function Vf(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-ht(n),i=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~i}}function El(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ht(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var de=0;function oa(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var la,Cl,sa,ia,aa,$l=!1,Jr=[],At=null,Ft=null,Ut=null,sr=new Map,ir=new Map,Ht=[],bf="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 submit".split(" ");function ua(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Ft=null;break;case"mouseover":case"mouseout":Ut=null;break;case"pointerover":case"pointerout":sr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ir.delete(t.pointerId)}}function ar(e,t,n,r,l,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[l]},t!==null&&(t=Sr(t),t!==null&&Cl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function qf(e,t,n,r,l){switch(t){case"focusin":return At=ar(At,e,t,n,r,l),!0;case"dragenter":return Ft=ar(Ft,e,t,n,r,l),!0;case"mouseover":return Ut=ar(Ut,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return sr.set(i,ar(sr.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,ir.set(i,ar(ir.get(i)||null,e,t,n,r,l)),!0}return!1}function ca(e){var t=ln(e.target);if(t!==null){var n=on(t);if(n!==null){if(t=n.tag,t===13){if(t=Yi(n),t!==null){e.blockedOn=t,aa(e.priority,function(){sa(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function eo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yl=r,n.target.dispatchEvent(r),yl=null}else return t=Sr(n),t!==null&&Cl(t),e.blockedOn=n,!1;t.shift()}return!0}function da(e,t,n){eo(e)&&n.delete(t)}function Qf(){$l=!1,At!==null&&eo(At)&&(At=null),Ft!==null&&eo(Ft)&&(Ft=null),Ut!==null&&eo(Ut)&&(Ut=null),sr.forEach(da),ir.forEach(da)}function ur(e,t){e.blockedOn===t&&(e.blockedOn=null,$l||($l=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Qf)))}function cr(e){function t(l){return ur(l,e)}if(0<Jr.length){ur(Jr[0],e);for(var n=1;n<Jr.length;n++){var r=Jr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(At!==null&&ur(At,e),Ft!==null&&ur(Ft,e),Ut!==null&&ur(Ut,e),sr.forEach(t),ir.forEach(t),n=0;n<Ht.length;n++)r=Ht[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ht.length&&(n=Ht[0],n.blockedOn===null);)ca(n),n.blockedOn===null&&Ht.shift()}var _n=X.ReactCurrentBatchConfig,to=!0;function Kf(e,t,n,r){var l=de,i=_n.transition;_n.transition=null;try{de=1,Tl(e,t,n,r)}finally{de=l,_n.transition=i}}function Yf(e,t,n,r){var l=de,i=_n.transition;_n.transition=null;try{de=4,Tl(e,t,n,r)}finally{de=l,_n.transition=i}}function Tl(e,t,n,r){if(to){var l=Pl(e,t,n,r);if(l===null)Ql(e,t,r,no,n),ua(e,r);else if(qf(l,e,t,n,r))r.stopPropagation();else if(ua(e,r),t&4&&-1<bf.indexOf(e)){for(;l!==null;){var i=Sr(l);if(i!==null&&la(i),i=Pl(e,t,n,r),i===null&&Ql(e,t,r,no,n),i===l)break;l=i}l!==null&&r.stopPropagation()}else Ql(e,t,r,null,n)}}var no=null;function Pl(e,t,n,r){if(no=null,e=vl(r),e=ln(e),e!==null)if(t=on(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Yi(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return no=e,null}function fa(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Mf()){case Nl:return 1;case ta:return 4;case Kr:case If:return 16;case na:return 536870912;default:return 16}default:return 16}}var Bt=null,Rl=null,ro=null;function pa(){if(ro)return ro;var e,t=Rl,n=t.length,r,l="value"in Bt?Bt.value:Bt.textContent,i=l.length;for(e=0;e<n&&t[e]===l[e];e++);var c=n-e;for(r=1;r<=c&&t[n-r]===l[i-r];r++);return ro=l.slice(e,1<r?1-r:void 0)}function oo(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 lo(){return!0}function ha(){return!1}function nt(e){function t(n,r,l,i,c){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(n=e[m],this[m]=n?n(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?lo:ha,this.isPropagationStopped=ha,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lo)},persist:function(){},isPersistent:lo}),t}var jn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ll=nt(jn),dr=W({},jn,{view:0,detail:0}),Gf=nt(dr),zl,Dl,fr,so=W({},dr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ml,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!==fr&&(fr&&e.type==="mousemove"?(zl=e.screenX-fr.screenX,Dl=e.screenY-fr.screenY):Dl=zl=0,fr=e),zl)},movementY:function(e){return"movementY"in e?e.movementY:Dl}}),ma=nt(so),Xf=W({},so,{dataTransfer:0}),Zf=nt(Xf),Jf=W({},dr,{relatedTarget:0}),Ol=nt(Jf),ep=W({},jn,{animationName:0,elapsedTime:0,pseudoElement:0}),tp=nt(ep),np=W({},jn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rp=nt(np),op=W({},jn,{data:0}),ga=nt(op),lp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sp={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"},ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ap(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ip[e])?!!t[e]:!1}function Ml(){return ap}var up=W({},dr,{key:function(e){if(e.key){var t=lp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ml,charCode:function(e){return e.type==="keypress"?oo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cp=nt(up),dp=W({},so,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ya=nt(dp),fp=W({},dr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ml}),pp=nt(fp),hp=W({},jn,{propertyName:0,elapsedTime:0,pseudoElement:0}),mp=nt(hp),gp=W({},so,{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}),yp=nt(gp),vp=[9,13,27,32],Il=g&&"CompositionEvent"in window,pr=null;g&&"documentMode"in document&&(pr=document.documentMode);var wp=g&&"TextEvent"in window&&!pr,va=g&&(!Il||pr&&8<pr&&11>=pr),wa=" ",ka=!1;function xa(e,t){switch(e){case"keyup":return vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var En=!1;function kp(e,t){switch(e){case"compositionend":return Sa(t);case"keypress":return t.which!==32?null:(ka=!0,wa);case"textInput":return e=t.data,e===wa&&ka?null:e;default:return null}}function xp(e,t){if(En)return e==="compositionend"||!Il&&xa(e,t)?(e=pa(),ro=Rl=Bt=null,En=!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 va&&t.locale!=="ko"?null:t.data;default:return null}}var Sp={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 Na(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sp[e.type]:t==="textarea"}function _a(e,t,n,r){Vi(r),t=fo(t,"onChange"),0<t.length&&(n=new Ll("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hr=null,mr=null;function Np(e){Ba(e,0)}function io(e){var t=Rn(e);if(Li(t))return e}function _p(e,t){if(e==="change")return t}var ja=!1;if(g){var Al;if(g){var Fl="oninput"in document;if(!Fl){var Ea=document.createElement("div");Ea.setAttribute("oninput","return;"),Fl=typeof Ea.oninput=="function"}Al=Fl}else Al=!1;ja=Al&&(!document.documentMode||9<document.documentMode)}function Ca(){hr&&(hr.detachEvent("onpropertychange",$a),mr=hr=null)}function $a(e){if(e.propertyName==="value"&&io(mr)){var t=[];_a(t,mr,e,vl(e)),Ki(Np,t)}}function jp(e,t,n){e==="focusin"?(Ca(),hr=t,mr=n,hr.attachEvent("onpropertychange",$a)):e==="focusout"&&Ca()}function Ep(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return io(mr)}function Cp(e,t){if(e==="click")return io(t)}function $p(e,t){if(e==="input"||e==="change")return io(t)}function Tp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:Tp;function gr(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!v.call(t,l)||!mt(e[l],t[l]))return!1}return!0}function Ta(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pa(e,t){var n=Ta(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ta(n)}}function Ra(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ra(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function La(){for(var e=window,t=Vr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vr(e.document)}return t}function Ul(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")}function Pp(e){var t=La(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ra(n.ownerDocument.documentElement,n)){if(r!==null&&Ul(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Pa(n,i);var c=Pa(n,r);l&&c&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==c.node||e.focusOffset!==c.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(c.node,c.offset)):(t.setEnd(c.node,c.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rp=g&&"documentMode"in document&&11>=document.documentMode,Cn=null,Hl=null,yr=null,Bl=!1;function za(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bl||Cn==null||Cn!==Vr(r)||(r=Cn,"selectionStart"in r&&Ul(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yr&&gr(yr,r)||(yr=r,r=fo(Hl,"onSelect"),0<r.length&&(t=new Ll("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Cn)))}function ao(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var $n={animationend:ao("Animation","AnimationEnd"),animationiteration:ao("Animation","AnimationIteration"),animationstart:ao("Animation","AnimationStart"),transitionend:ao("Transition","TransitionEnd")},Wl={},Da={};g&&(Da=document.createElement("div").style,"AnimationEvent"in window||(delete $n.animationend.animation,delete $n.animationiteration.animation,delete $n.animationstart.animation),"TransitionEvent"in window||delete $n.transitionend.transition);function uo(e){if(Wl[e])return Wl[e];if(!$n[e])return e;var t=$n[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Da)return Wl[e]=t[n];return e}var Oa=uo("animationend"),Ma=uo("animationiteration"),Ia=uo("animationstart"),Aa=uo("transitionend"),Fa=new Map,Ua="abort auxClick 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(" ");function Wt(e,t){Fa.set(e,t),p(t,[e])}for(var Vl=0;Vl<Ua.length;Vl++){var bl=Ua[Vl],Lp=bl.toLowerCase(),zp=bl[0].toUpperCase()+bl.slice(1);Wt(Lp,"on"+zp)}Wt(Oa,"onAnimationEnd"),Wt(Ma,"onAnimationIteration"),Wt(Ia,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(Aa,"onTransitionEnd"),h("onMouseEnter",["mouseout","mouseover"]),h("onMouseLeave",["mouseout","mouseover"]),h("onPointerEnter",["pointerout","pointerover"]),h("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vr="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(" "),Dp=new Set("cancel close invalid load scroll toggle".split(" ").concat(vr));function Ha(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Lf(r,t,void 0,e),e.currentTarget=null}function Ba(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var c=r.length-1;0<=c;c--){var m=r[c],y=m.instance,N=m.currentTarget;if(m=m.listener,y!==i&&l.isPropagationStopped())break e;Ha(l,m,N),i=y}else for(c=0;c<r.length;c++){if(m=r[c],y=m.instance,N=m.currentTarget,m=m.listener,y!==i&&l.isPropagationStopped())break e;Ha(l,m,N),i=y}}}if(Qr)throw e=Sl,Qr=!1,Sl=null,e}function ye(e,t){var n=t[Jl];n===void 0&&(n=t[Jl]=new Set);var r=e+"__bubble";n.has(r)||(Wa(t,e,2,!1),n.add(r))}function ql(e,t,n){var r=0;t&&(r|=4),Wa(n,e,r,t)}var co="_reactListening"+Math.random().toString(36).slice(2);function wr(e){if(!e[co]){e[co]=!0,u.forEach(function(n){n!=="selectionchange"&&(Dp.has(n)||ql(n,!1,e),ql(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[co]||(t[co]=!0,ql("selectionchange",!1,t))}}function Wa(e,t,n,r){switch(fa(t)){case 1:var l=Kf;break;case 4:l=Yf;break;default:l=Tl}n=l.bind(null,t,n,e),l=void 0,!xl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Ql(e,t,n,r,l){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var c=r.tag;if(c===3||c===4){var m=r.stateNode.containerInfo;if(m===l||m.nodeType===8&&m.parentNode===l)break;if(c===4)for(c=r.return;c!==null;){var y=c.tag;if((y===3||y===4)&&(y=c.stateNode.containerInfo,y===l||y.nodeType===8&&y.parentNode===l))return;c=c.return}for(;m!==null;){if(c=ln(m),c===null)return;if(y=c.tag,y===5||y===6){r=i=c;continue e}m=m.parentNode}}r=r.return}Ki(function(){var N=i,L=vl(n),z=[];e:{var T=Fa.get(e);if(T!==void 0){var H=Ll,b=e;switch(e){case"keypress":if(oo(n)===0)break e;case"keydown":case"keyup":H=cp;break;case"focusin":b="focus",H=Ol;break;case"focusout":b="blur",H=Ol;break;case"beforeblur":case"afterblur":H=Ol;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=ma;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Zf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=pp;break;case Oa:case Ma:case Ia:H=tp;break;case Aa:H=mp;break;case"scroll":H=Gf;break;case"wheel":H=yp;break;case"copy":case"cut":case"paste":H=rp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=ya}var q=(t&4)!==0,Te=!q&&e==="scroll",x=q?T!==null?T+"Capture":null:T;q=[];for(var w=N,S;w!==null;){S=w;var D=S.stateNode;if(S.tag===5&&D!==null&&(S=D,x!==null&&(D=tr(w,x),D!=null&&q.push(kr(w,D,S)))),Te)break;w=w.return}0<q.length&&(T=new H(T,b,null,n,L),z.push({event:T,listeners:q}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",T&&n!==yl&&(b=n.relatedTarget||n.fromElement)&&(ln(b)||b[Tt]))break e;if((H||T)&&(T=L.window===L?L:(T=L.ownerDocument)?T.defaultView||T.parentWindow:window,H?(b=n.relatedTarget||n.toElement,H=N,b=b?ln(b):null,b!==null&&(Te=on(b),b!==Te||b.tag!==5&&b.tag!==6)&&(b=null)):(H=null,b=N),H!==b)){if(q=ma,D="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(q=ya,D="onPointerLeave",x="onPointerEnter",w="pointer"),Te=H==null?T:Rn(H),S=b==null?T:Rn(b),T=new q(D,w+"leave",H,n,L),T.target=Te,T.relatedTarget=S,D=null,ln(L)===N&&(q=new q(x,w+"enter",b,n,L),q.target=S,q.relatedTarget=Te,D=q),Te=D,H&&b)t:{for(q=H,x=b,w=0,S=q;S;S=Tn(S))w++;for(S=0,D=x;D;D=Tn(D))S++;for(;0<w-S;)q=Tn(q),w--;for(;0<S-w;)x=Tn(x),S--;for(;w--;){if(q===x||x!==null&&q===x.alternate)break t;q=Tn(q),x=Tn(x)}q=null}else q=null;H!==null&&Va(z,T,H,q,!1),b!==null&&Te!==null&&Va(z,Te,b,q,!0)}}e:{if(T=N?Rn(N):window,H=T.nodeName&&T.nodeName.toLowerCase(),H==="select"||H==="input"&&T.type==="file")var Q=_p;else if(Na(T))if(ja)Q=$p;else{Q=Ep;var K=jp}else(H=T.nodeName)&&H.toLowerCase()==="input"&&(T.type==="checkbox"||T.type==="radio")&&(Q=Cp);if(Q&&(Q=Q(e,N))){_a(z,Q,n,L);break e}K&&K(e,T,N),e==="focusout"&&(K=T._wrapperState)&&K.controlled&&T.type==="number"&&fl(T,"number",T.value)}switch(K=N?Rn(N):window,e){case"focusin":(Na(K)||K.contentEditable==="true")&&(Cn=K,Hl=N,yr=null);break;case"focusout":yr=Hl=Cn=null;break;case"mousedown":Bl=!0;break;case"contextmenu":case"mouseup":case"dragend":Bl=!1,za(z,n,L);break;case"selectionchange":if(Rp)break;case"keydown":case"keyup":za(z,n,L)}var Y;if(Il)e:{switch(e){case"compositionstart":var Z="onCompositionStart";break e;case"compositionend":Z="onCompositionEnd";break e;case"compositionupdate":Z="onCompositionUpdate";break e}Z=void 0}else En?xa(e,n)&&(Z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(va&&n.locale!=="ko"&&(En||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&En&&(Y=pa()):(Bt=L,Rl="value"in Bt?Bt.value:Bt.textContent,En=!0)),K=fo(N,Z),0<K.length&&(Z=new ga(Z,e,null,n,L),z.push({event:Z,listeners:K}),Y?Z.data=Y:(Y=Sa(n),Y!==null&&(Z.data=Y)))),(Y=wp?kp(e,n):xp(e,n))&&(N=fo(N,"onBeforeInput"),0<N.length&&(L=new ga("onBeforeInput","beforeinput",null,n,L),z.push({event:L,listeners:N}),L.data=Y))}Ba(z,t)})}function kr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fo(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,i=l.stateNode;l.tag===5&&i!==null&&(l=i,i=tr(e,n),i!=null&&r.unshift(kr(e,i,l)),i=tr(e,t),i!=null&&r.push(kr(e,i,l))),e=e.return}return r}function Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Va(e,t,n,r,l){for(var i=t._reactName,c=[];n!==null&&n!==r;){var m=n,y=m.alternate,N=m.stateNode;if(y!==null&&y===r)break;m.tag===5&&N!==null&&(m=N,l?(y=tr(n,i),y!=null&&c.unshift(kr(n,y,m))):l||(y=tr(n,i),y!=null&&c.push(kr(n,y,m)))),n=n.return}c.length!==0&&e.push({event:t,listeners:c})}var Op=/\r\n?/g,Mp=/\u0000|\uFFFD/g;function ba(e){return(typeof e=="string"?e:""+e).replace(Op,`
|
|
39
|
-
`).replace(Mp,"")}function po(e,t,n){if(t=ba(t),ba(e)!==t&&n)throw Error(a(425))}function ho(){}var Kl=null,Yl=null;function Gl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xl=typeof setTimeout=="function"?setTimeout:void 0,Ip=typeof clearTimeout=="function"?clearTimeout:void 0,qa=typeof Promise=="function"?Promise:void 0,Ap=typeof queueMicrotask=="function"?queueMicrotask:typeof qa<"u"?function(e){return qa.resolve(null).then(e).catch(Fp)}:Xl;function Fp(e){setTimeout(function(){throw e})}function Zl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),cr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);cr(t)}function Vt(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==="$?")break;if(t==="/$")return null}}return e}function Qa(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),_t="__reactFiber$"+Pn,xr="__reactProps$"+Pn,Tt="__reactContainer$"+Pn,Jl="__reactEvents$"+Pn,Up="__reactListeners$"+Pn,Hp="__reactHandles$"+Pn;function ln(e){var t=e[_t];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Qa(e);e!==null;){if(n=e[_t])return n;e=Qa(e)}return t}e=n,n=e.parentNode}return null}function Sr(e){return e=e[_t]||e[Tt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Rn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function mo(e){return e[xr]||null}var es=[],Ln=-1;function bt(e){return{current:e}}function ve(e){0>Ln||(e.current=es[Ln],es[Ln]=null,Ln--)}function me(e,t){Ln++,es[Ln]=e.current,e.current=t}var qt={},He=bt(qt),Qe=bt(!1),sn=qt;function zn(e,t){var n=e.type.contextTypes;if(!n)return qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Ke(e){return e=e.childContextTypes,e!=null}function go(){ve(Qe),ve(He)}function Ka(e,t,n){if(He.current!==qt)throw Error(a(168));me(He,t),me(Qe,n)}function Ya(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(a(108,he(e)||"Unknown",l));return W({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||qt,sn=He.current,me(He,e),me(Qe,Qe.current),!0}function Ga(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ya(e,t,sn),r.__reactInternalMemoizedMergedChildContext=e,ve(Qe),ve(He),me(He,e)):ve(Qe),me(Qe,n)}var Pt=null,vo=!1,ts=!1;function Xa(e){Pt===null?Pt=[e]:Pt.push(e)}function Bp(e){vo=!0,Xa(e)}function Qt(){if(!ts&&Pt!==null){ts=!0;var e=0,t=de;try{var n=Pt;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pt=null,vo=!1}catch(l){throw Pt!==null&&(Pt=Pt.slice(e+1)),Ji(Nl,Qt),l}finally{de=t,ts=!1}}return null}var Dn=[],On=0,wo=null,ko=0,at=[],ut=0,an=null,Rt=1,Lt="";function un(e,t){Dn[On++]=ko,Dn[On++]=wo,wo=e,ko=t}function Za(e,t,n){at[ut++]=Rt,at[ut++]=Lt,at[ut++]=an,an=e;var r=Rt;e=Lt;var l=32-ht(r)-1;r&=~(1<<l),n+=1;var i=32-ht(t)+l;if(30<i){var c=l-l%5;i=(r&(1<<c)-1).toString(32),r>>=c,l-=c,Rt=1<<32-ht(t)+l|n<<l|r,Lt=i+e}else Rt=1<<i|n<<l|r,Lt=e}function ns(e){e.return!==null&&(un(e,1),Za(e,1,0))}function rs(e){for(;e===wo;)wo=Dn[--On],Dn[On]=null,ko=Dn[--On],Dn[On]=null;for(;e===an;)an=at[--ut],at[ut]=null,Lt=at[--ut],at[ut]=null,Rt=at[--ut],at[ut]=null}var rt=null,ot=null,xe=!1,gt=null;function Ja(e,t){var n=pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function eu(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,ot=Vt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,ot=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=an!==null?{id:Rt,overflow:Lt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,ot=null,!0):!1;default:return!1}}function os(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ls(e){if(xe){var t=ot;if(t){var n=t;if(!eu(e,t)){if(os(e))throw Error(a(418));t=Vt(n.nextSibling);var r=rt;t&&eu(e,t)?Ja(r,n):(e.flags=e.flags&-4097|2,xe=!1,rt=e)}}else{if(os(e))throw Error(a(418));e.flags=e.flags&-4097|2,xe=!1,rt=e}}}function tu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function xo(e){if(e!==rt)return!1;if(!xe)return tu(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Gl(e.type,e.memoizedProps)),t&&(t=ot)){if(os(e))throw nu(),Error(a(418));for(;t;)Ja(e,t),t=Vt(t.nextSibling)}if(tu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ot=Vt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ot=null}}else ot=rt?Vt(e.stateNode.nextSibling):null;return!0}function nu(){for(var e=ot;e;)e=Vt(e.nextSibling)}function Mn(){ot=rt=null,xe=!1}function ss(e){gt===null?gt=[e]:gt.push(e)}var Wp=X.ReactCurrentBatchConfig;function Nr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var l=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(c){var m=l.refs;c===null?delete m[i]:m[i]=c},t._stringRef=i,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ru(e){var t=e._init;return t(e._payload)}function ou(e){function t(x,w){if(e){var S=x.deletions;S===null?(x.deletions=[w],x.flags|=16):S.push(w)}}function n(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function r(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function l(x,w){return x=tn(x,w),x.index=0,x.sibling=null,x}function i(x,w,S){return x.index=S,e?(S=x.alternate,S!==null?(S=S.index,S<w?(x.flags|=2,w):S):(x.flags|=2,w)):(x.flags|=1048576,w)}function c(x){return e&&x.alternate===null&&(x.flags|=2),x}function m(x,w,S,D){return w===null||w.tag!==6?(w=Xs(S,x.mode,D),w.return=x,w):(w=l(w,S),w.return=x,w)}function y(x,w,S,D){var Q=S.type;return Q===I?L(x,w,S.props.children,D,S.key):w!==null&&(w.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ie&&ru(Q)===w.type)?(D=l(w,S.props),D.ref=Nr(x,w,S),D.return=x,D):(D=qo(S.type,S.key,S.props,null,x.mode,D),D.ref=Nr(x,w,S),D.return=x,D)}function N(x,w,S,D){return w===null||w.tag!==4||w.stateNode.containerInfo!==S.containerInfo||w.stateNode.implementation!==S.implementation?(w=Zs(S,x.mode,D),w.return=x,w):(w=l(w,S.children||[]),w.return=x,w)}function L(x,w,S,D,Q){return w===null||w.tag!==7?(w=yn(S,x.mode,D,Q),w.return=x,w):(w=l(w,S),w.return=x,w)}function z(x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Xs(""+w,x.mode,S),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ne:return S=qo(w.type,w.key,w.props,null,x.mode,S),S.ref=Nr(x,null,w),S.return=x,S;case fe:return w=Zs(w,x.mode,S),w.return=x,w;case Ie:var D=w._init;return z(x,D(w._payload),S)}if(Zn(w)||G(w))return w=yn(w,x.mode,S,null),w.return=x,w;So(x,w)}return null}function T(x,w,S,D){var Q=w!==null?w.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return Q!==null?null:m(x,w,""+S,D);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ne:return S.key===Q?y(x,w,S,D):null;case fe:return S.key===Q?N(x,w,S,D):null;case Ie:return Q=S._init,T(x,w,Q(S._payload),D)}if(Zn(S)||G(S))return Q!==null?null:L(x,w,S,D,null);So(x,S)}return null}function H(x,w,S,D,Q){if(typeof D=="string"&&D!==""||typeof D=="number")return x=x.get(S)||null,m(w,x,""+D,Q);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case ne:return x=x.get(D.key===null?S:D.key)||null,y(w,x,D,Q);case fe:return x=x.get(D.key===null?S:D.key)||null,N(w,x,D,Q);case Ie:var K=D._init;return H(x,w,S,K(D._payload),Q)}if(Zn(D)||G(D))return x=x.get(S)||null,L(w,x,D,Q,null);So(w,D)}return null}function b(x,w,S,D){for(var Q=null,K=null,Y=w,Z=w=0,Me=null;Y!==null&&Z<S.length;Z++){Y.index>Z?(Me=Y,Y=null):Me=Y.sibling;var ue=T(x,Y,S[Z],D);if(ue===null){Y===null&&(Y=Me);break}e&&Y&&ue.alternate===null&&t(x,Y),w=i(ue,w,Z),K===null?Q=ue:K.sibling=ue,K=ue,Y=Me}if(Z===S.length)return n(x,Y),xe&&un(x,Z),Q;if(Y===null){for(;Z<S.length;Z++)Y=z(x,S[Z],D),Y!==null&&(w=i(Y,w,Z),K===null?Q=Y:K.sibling=Y,K=Y);return xe&&un(x,Z),Q}for(Y=r(x,Y);Z<S.length;Z++)Me=H(Y,x,Z,S[Z],D),Me!==null&&(e&&Me.alternate!==null&&Y.delete(Me.key===null?Z:Me.key),w=i(Me,w,Z),K===null?Q=Me:K.sibling=Me,K=Me);return e&&Y.forEach(function(nn){return t(x,nn)}),xe&&un(x,Z),Q}function q(x,w,S,D){var Q=G(S);if(typeof Q!="function")throw Error(a(150));if(S=Q.call(S),S==null)throw Error(a(151));for(var K=Q=null,Y=w,Z=w=0,Me=null,ue=S.next();Y!==null&&!ue.done;Z++,ue=S.next()){Y.index>Z?(Me=Y,Y=null):Me=Y.sibling;var nn=T(x,Y,ue.value,D);if(nn===null){Y===null&&(Y=Me);break}e&&Y&&nn.alternate===null&&t(x,Y),w=i(nn,w,Z),K===null?Q=nn:K.sibling=nn,K=nn,Y=Me}if(ue.done)return n(x,Y),xe&&un(x,Z),Q;if(Y===null){for(;!ue.done;Z++,ue=S.next())ue=z(x,ue.value,D),ue!==null&&(w=i(ue,w,Z),K===null?Q=ue:K.sibling=ue,K=ue);return xe&&un(x,Z),Q}for(Y=r(x,Y);!ue.done;Z++,ue=S.next())ue=H(Y,x,Z,ue.value,D),ue!==null&&(e&&ue.alternate!==null&&Y.delete(ue.key===null?Z:ue.key),w=i(ue,w,Z),K===null?Q=ue:K.sibling=ue,K=ue);return e&&Y.forEach(function(Sh){return t(x,Sh)}),xe&&un(x,Z),Q}function Te(x,w,S,D){if(typeof S=="object"&&S!==null&&S.type===I&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case ne:e:{for(var Q=S.key,K=w;K!==null;){if(K.key===Q){if(Q=S.type,Q===I){if(K.tag===7){n(x,K.sibling),w=l(K,S.props.children),w.return=x,x=w;break e}}else if(K.elementType===Q||typeof Q=="object"&&Q!==null&&Q.$$typeof===Ie&&ru(Q)===K.type){n(x,K.sibling),w=l(K,S.props),w.ref=Nr(x,K,S),w.return=x,x=w;break e}n(x,K);break}else t(x,K);K=K.sibling}S.type===I?(w=yn(S.props.children,x.mode,D,S.key),w.return=x,x=w):(D=qo(S.type,S.key,S.props,null,x.mode,D),D.ref=Nr(x,w,S),D.return=x,x=D)}return c(x);case fe:e:{for(K=S.key;w!==null;){if(w.key===K)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(x,w.sibling),w=l(w,S.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=Zs(S,x.mode,D),w.return=x,x=w}return c(x);case Ie:return K=S._init,Te(x,w,K(S._payload),D)}if(Zn(S))return b(x,w,S,D);if(G(S))return q(x,w,S,D);So(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(x,w.sibling),w=l(w,S),w.return=x,x=w):(n(x,w),w=Xs(S,x.mode,D),w.return=x,x=w),c(x)):n(x,w)}return Te}var In=ou(!0),lu=ou(!1),No=bt(null),_o=null,An=null,is=null;function as(){is=An=_o=null}function us(e){var t=No.current;ve(No),e._currentValue=t}function cs(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Fn(e,t){_o=e,is=An=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function ct(e){var t=e._currentValue;if(is!==e)if(e={context:e,memoizedValue:t,next:null},An===null){if(_o===null)throw Error(a(308));An=e,_o.dependencies={lanes:0,firstContext:e}}else An=An.next=e;return t}var cn=null;function ds(e){cn===null?cn=[e]:cn.push(e)}function su(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ds(t)):(n.next=l.next,l.next=n),t.interleaved=n,zt(e,r)}function zt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Kt=!1;function fs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function iu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(se&2)!==0){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,zt(e,n)}return l=r.interleaved,l===null?(t.next=t,ds(r)):(t.next=l.next,l.next=t),r.interleaved=t,zt(e,n)}function jo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}function au(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var c={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?l=i=c:i=i.next=c,n=n.next}while(n!==null);i===null?l=i=t:i=i.next=t}else l=i=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Eo(e,t,n,r){var l=e.updateQueue;Kt=!1;var i=l.firstBaseUpdate,c=l.lastBaseUpdate,m=l.shared.pending;if(m!==null){l.shared.pending=null;var y=m,N=y.next;y.next=null,c===null?i=N:c.next=N,c=y;var L=e.alternate;L!==null&&(L=L.updateQueue,m=L.lastBaseUpdate,m!==c&&(m===null?L.firstBaseUpdate=N:m.next=N,L.lastBaseUpdate=y))}if(i!==null){var z=l.baseState;c=0,L=N=y=null,m=i;do{var T=m.lane,H=m.eventTime;if((r&T)===T){L!==null&&(L=L.next={eventTime:H,lane:0,tag:m.tag,payload:m.payload,callback:m.callback,next:null});e:{var b=e,q=m;switch(T=t,H=n,q.tag){case 1:if(b=q.payload,typeof b=="function"){z=b.call(H,z,T);break e}z=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=q.payload,T=typeof b=="function"?b.call(H,z,T):b,T==null)break e;z=W({},z,T);break e;case 2:Kt=!0}}m.callback!==null&&m.lane!==0&&(e.flags|=64,T=l.effects,T===null?l.effects=[m]:T.push(m))}else H={eventTime:H,lane:T,tag:m.tag,payload:m.payload,callback:m.callback,next:null},L===null?(N=L=H,y=z):L=L.next=H,c|=T;if(m=m.next,m===null){if(m=l.shared.pending,m===null)break;T=m,m=T.next,T.next=null,l.lastBaseUpdate=T,l.shared.pending=null}}while(!0);if(L===null&&(y=z),l.baseState=y,l.firstBaseUpdate=N,l.lastBaseUpdate=L,t=l.shared.interleaved,t!==null){l=t;do c|=l.lane,l=l.next;while(l!==t)}else i===null&&(l.shared.lanes=0);pn|=c,e.lanes=c,e.memoizedState=z}}function uu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(a(191,l));l.call(r)}}}var _r={},jt=bt(_r),jr=bt(_r),Er=bt(_r);function dn(e){if(e===_r)throw Error(a(174));return e}function ps(e,t){switch(me(Er,t),me(jr,e),me(jt,_r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=hl(t,e)}ve(jt),me(jt,t)}function Un(){ve(jt),ve(jr),ve(Er)}function cu(e){dn(Er.current);var t=dn(jt.current),n=hl(t,e.type);t!==n&&(me(jr,e),me(jt,n))}function hs(e){jr.current===e&&(ve(jt),ve(jr))}var Ne=bt(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 ms=[];function gs(){for(var e=0;e<ms.length;e++)ms[e]._workInProgressVersionPrimary=null;ms.length=0}var $o=X.ReactCurrentDispatcher,ys=X.ReactCurrentBatchConfig,fn=0,_e=null,Re=null,De=null,To=!1,Cr=!1,$r=0,Vp=0;function Be(){throw Error(a(321))}function vs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mt(e[n],t[n]))return!1;return!0}function ws(e,t,n,r,l,i){if(fn=i,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=e===null||e.memoizedState===null?Kp:Yp,e=n(r,l),Cr){i=0;do{if(Cr=!1,$r=0,25<=i)throw Error(a(301));i+=1,De=Re=null,t.updateQueue=null,$o.current=Gp,e=n(r,l)}while(Cr)}if($o.current=Lo,t=Re!==null&&Re.next!==null,fn=0,De=Re=_e=null,To=!1,t)throw Error(a(300));return e}function ks(){var e=$r!==0;return $r=0,e}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?_e.memoizedState=De=e:De=De.next=e,De}function dt(){if(Re===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=De===null?_e.memoizedState:De.next;if(t!==null)De=t,Re=e;else{if(e===null)throw Error(a(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},De===null?_e.memoizedState=De=e:De=De.next=e}return De}function Tr(e,t){return typeof t=="function"?t(e):t}function xs(e){var t=dt(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Re,l=r.baseQueue,i=n.pending;if(i!==null){if(l!==null){var c=l.next;l.next=i.next,i.next=c}r.baseQueue=l=i,n.pending=null}if(l!==null){i=l.next,r=r.baseState;var m=c=null,y=null,N=i;do{var L=N.lane;if((fn&L)===L)y!==null&&(y=y.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),r=N.hasEagerState?N.eagerState:e(r,N.action);else{var z={lane:L,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};y===null?(m=y=z,c=r):y=y.next=z,_e.lanes|=L,pn|=L}N=N.next}while(N!==null&&N!==i);y===null?c=r:y.next=m,mt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=c,t.baseQueue=y,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do i=l.lane,_e.lanes|=i,pn|=i,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ss(e){var t=dt(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(l!==null){n.pending=null;var c=l=l.next;do i=e(i,c.action),c=c.next;while(c!==l);mt(i,t.memoizedState)||(Ye=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function du(){}function fu(e,t){var n=_e,r=dt(),l=t(),i=!mt(r.memoizedState,l);if(i&&(r.memoizedState=l,Ye=!0),r=r.queue,Ns(mu.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,Pr(9,hu.bind(null,n,r,l,t),void 0,null),Oe===null)throw Error(a(349));(fn&30)!==0||pu(n,t,l)}return l}function pu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function hu(e,t,n,r){t.value=n,t.getSnapshot=r,gu(t)&&yu(e)}function mu(e,t,n){return n(function(){gu(t)&&yu(e)})}function gu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mt(e,n)}catch{return!0}}function yu(e){var t=zt(e,1);t!==null&&kt(t,e,1,-1)}function vu(e){var t=Et();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Tr,lastRenderedState:e},t.queue=e,e=e.dispatch=Qp.bind(null,_e,e),[t.memoizedState,e]}function Pr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function wu(){return dt().memoizedState}function Po(e,t,n,r){var l=Et();_e.flags|=e,l.memoizedState=Pr(1|t,n,void 0,r===void 0?null:r)}function Ro(e,t,n,r){var l=dt();r=r===void 0?null:r;var i=void 0;if(Re!==null){var c=Re.memoizedState;if(i=c.destroy,r!==null&&vs(r,c.deps)){l.memoizedState=Pr(t,n,i,r);return}}_e.flags|=e,l.memoizedState=Pr(1|t,n,i,r)}function ku(e,t){return Po(8390656,8,e,t)}function Ns(e,t){return Ro(2048,8,e,t)}function xu(e,t){return Ro(4,2,e,t)}function Su(e,t){return Ro(4,4,e,t)}function Nu(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _u(e,t,n){return n=n!=null?n.concat([e]):null,Ro(4,4,Nu.bind(null,t,e),n)}function _s(){}function ju(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Eu(e,t){var n=dt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&vs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Cu(e,t,n){return(fn&21)===0?(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n):(mt(n,t)||(n=ra(),_e.lanes|=n,pn|=n,e.baseState=!0),t)}function bp(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=ys.transition;ys.transition={};try{e(!1),t()}finally{de=n,ys.transition=r}}function $u(){return dt().memoizedState}function qp(e,t,n){var r=Jt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Tu(e))Pu(t,n);else if(n=su(e,t,n,r),n!==null){var l=qe();kt(n,e,r,l),Ru(n,t,r)}}function Qp(e,t,n){var r=Jt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tu(e))Pu(t,l);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,n);if(l.hasEagerState=!0,l.eagerState=m,mt(m,c)){var y=t.interleaved;y===null?(l.next=l,ds(t)):(l.next=y.next,y.next=l),t.interleaved=l;return}}catch{}finally{}n=su(e,t,l,r),n!==null&&(l=qe(),kt(n,e,r,l),Ru(n,t,r))}}function Tu(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Pu(e,t){Cr=To=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ru(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,El(e,n)}}var Lo={readContext:ct,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},Kp={readContext:ct,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:ku,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Po(4194308,4,Nu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Po(4194308,4,e,t)},useInsertionEffect:function(e,t){return Po(4,2,e,t)},useMemo:function(e,t){var n=Et();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Et();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qp.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:vu,useDebugValue:_s,useDeferredValue:function(e){return Et().memoizedState=e},useTransition:function(){var e=vu(!1),t=e[0];return e=bp.bind(null,e[1]),Et().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,l=Et();if(xe){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Oe===null)throw Error(a(349));(fn&30)!==0||pu(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,ku(mu.bind(null,r,i,e),[e]),r.flags|=2048,Pr(9,hu.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Et(),t=Oe.identifierPrefix;if(xe){var n=Lt,r=Rt;n=(r&~(1<<32-ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=$r++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Vp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Yp={readContext:ct,useCallback:ju,useContext:ct,useEffect:Ns,useImperativeHandle:_u,useInsertionEffect:xu,useLayoutEffect:Su,useMemo:Eu,useReducer:xs,useRef:wu,useState:function(){return xs(Tr)},useDebugValue:_s,useDeferredValue:function(e){var t=dt();return Cu(t,Re.memoizedState,e)},useTransition:function(){var e=xs(Tr)[0],t=dt().memoizedState;return[e,t]},useMutableSource:du,useSyncExternalStore:fu,useId:$u,unstable_isNewReconciler:!1},Gp={readContext:ct,useCallback:ju,useContext:ct,useEffect:Ns,useImperativeHandle:_u,useInsertionEffect:xu,useLayoutEffect:Su,useMemo:Eu,useReducer:Ss,useRef:wu,useState:function(){return Ss(Tr)},useDebugValue:_s,useDeferredValue:function(e){var t=dt();return Re===null?t.memoizedState=e:Cu(t,Re.memoizedState,e)},useTransition:function(){var e=Ss(Tr)[0],t=dt().memoizedState;return[e,t]},useMutableSource:du,useSyncExternalStore:fu,useId:$u,unstable_isNewReconciler:!1};function yt(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function js(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zo={isMounted:function(e){return(e=e._reactInternals)?on(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qe(),l=Jt(e),i=Dt(r,l);i.payload=t,n!=null&&(i.callback=n),t=Yt(e,i,l),t!==null&&(kt(t,e,l,r),jo(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qe(),l=Jt(e),i=Dt(r,l);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Yt(e,i,l),t!==null&&(kt(t,e,l,r),jo(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qe(),r=Jt(e),l=Dt(n,r);l.tag=2,t!=null&&(l.callback=t),t=Yt(e,l,r),t!==null&&(kt(t,e,r,n),jo(t,e,r))}};function Lu(e,t,n,r,l,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,c):t.prototype&&t.prototype.isPureReactComponent?!gr(n,r)||!gr(l,i):!0}function zu(e,t,n){var r=!1,l=qt,i=t.contextType;return typeof i=="object"&&i!==null?i=ct(i):(l=Ke(t)?sn:He.current,r=t.contextTypes,i=(r=r!=null)?zn(e,l):qt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=zo,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function Du(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zo.enqueueReplaceState(t,t.state,null)}function Es(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},fs(e);var i=t.contextType;typeof i=="object"&&i!==null?l.context=ct(i):(i=Ke(t)?sn:He.current,l.context=zn(e,i)),l.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(js(e,t,i,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&zo.enqueueReplaceState(l,l.state,null),Eo(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Hn(e,t){try{var n="",r=t;do n+=ie(r),r=r.return;while(r);var l=n}catch(i){l=`
|
|
40
|
-
Error generating stack: `+i.message+`
|
|
41
|
-
`+i.stack}return{value:e,source:t,stack:l,digest:null}}function Cs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function $s(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xp=typeof WeakMap=="function"?WeakMap:Map;function Ou(e,t,n){n=Dt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Uo||(Uo=!0,Ws=r),$s(e,t)},n}function Mu(e,t,n){n=Dt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){$s(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){$s(e,t),typeof r!="function"&&(Xt===null?Xt=new Set([this]):Xt.add(this));var c=t.stack;this.componentDidCatch(t.value,{componentStack:c!==null?c:""})}),n}function Iu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xp;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=dh.bind(null,e,t,n),t.then(e,e))}function Au(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Fu(e,t,n,r,l){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Dt(-1,1),t.tag=2,Yt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Zp=X.ReactCurrentOwner,Ye=!1;function be(e,t,n,r){t.child=e===null?lu(t,null,n,r):In(t,e.child,n,r)}function Uu(e,t,n,r,l){n=n.render;var i=t.ref;return Fn(t,l),r=ws(e,t,n,r,i,l),n=ks(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ot(e,t,l)):(xe&&n&&ns(t),t.flags|=1,be(e,t,r,l),t.child)}function Hu(e,t,n,r,l){if(e===null){var i=n.type;return typeof i=="function"&&!Gs(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Bu(e,t,i,r,l)):(e=qo(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&l)===0){var c=i.memoizedProps;if(n=n.compare,n=n!==null?n:gr,n(c,r)&&e.ref===t.ref)return Ot(e,t,l)}return t.flags|=1,e=tn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Bu(e,t,n,r,l){if(e!==null){var i=e.memoizedProps;if(gr(i,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=i,(e.lanes&l)!==0)(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,Ot(e,t,l)}return Ts(e,t,n,r,l)}function Wu(e,t,n){var r=t.pendingProps,l=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(Wn,lt),lt|=n;else{if((n&1073741824)===0)return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(Wn,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,me(Wn,lt),lt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,me(Wn,lt),lt|=r;return be(e,t,l,n),t.child}function Vu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,n,r,l){var i=Ke(n)?sn:He.current;return i=zn(t,i),Fn(t,l),n=ws(e,t,n,r,i,l),r=ks(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Ot(e,t,l)):(xe&&r&&ns(t),t.flags|=1,be(e,t,n,l),t.child)}function bu(e,t,n,r,l){if(Ke(n)){var i=!0;yo(t)}else i=!1;if(Fn(t,l),t.stateNode===null)Oo(e,t),zu(t,n,r),Es(t,n,r,l),r=!0;else if(e===null){var c=t.stateNode,m=t.memoizedProps;c.props=m;var y=c.context,N=n.contextType;typeof N=="object"&&N!==null?N=ct(N):(N=Ke(n)?sn:He.current,N=zn(t,N));var L=n.getDerivedStateFromProps,z=typeof L=="function"||typeof c.getSnapshotBeforeUpdate=="function";z||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==r||y!==N)&&Du(t,c,r,N),Kt=!1;var T=t.memoizedState;c.state=T,Eo(t,r,c,l),y=t.memoizedState,m!==r||T!==y||Qe.current||Kt?(typeof L=="function"&&(js(t,n,L,r),y=t.memoizedState),(m=Kt||Lu(t,n,m,r,T,y,N))?(z||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=y),c.props=r,c.state=y,c.context=N,r=m):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,iu(e,t),m=t.memoizedProps,N=t.type===t.elementType?m:yt(t.type,m),c.props=N,z=t.pendingProps,T=c.context,y=n.contextType,typeof y=="object"&&y!==null?y=ct(y):(y=Ke(n)?sn:He.current,y=zn(t,y));var H=n.getDerivedStateFromProps;(L=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==z||T!==y)&&Du(t,c,r,y),Kt=!1,T=t.memoizedState,c.state=T,Eo(t,r,c,l);var b=t.memoizedState;m!==z||T!==b||Qe.current||Kt?(typeof H=="function"&&(js(t,n,H,r),b=t.memoizedState),(N=Kt||Lu(t,n,N,r,T,b,y)||!1)?(L||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,b,y),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,b,y)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),c.props=r,c.state=b,c.context=y,r=N):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,i,l)}function Ps(e,t,n,r,l,i){Vu(e,t);var c=(t.flags&128)!==0;if(!r&&!c)return l&&Ga(t,n,!1),Ot(e,t,i);r=t.stateNode,Zp.current=t;var m=c&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&c?(t.child=In(t,e.child,null,i),t.child=In(t,null,m,i)):be(e,t,m,i),t.memoizedState=r.state,l&&Ga(t,n,!0),t.child}function qu(e){var t=e.stateNode;t.pendingContext?Ka(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ka(e,t.context,!1),ps(e,t.containerInfo)}function Qu(e,t,n,r,l){return Mn(),ss(l),t.flags|=256,be(e,t,n,r),t.child}var Rs={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ku(e,t,n){var r=t.pendingProps,l=Ne.current,i=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(l&2)!==0),m?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),me(Ne,l&1),e===null)return ls(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(c=r.children,e=r.fallback,i?(r=t.mode,i=t.child,c={mode:"hidden",children:c},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=c):i=Qo(c,r,0,null),e=yn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ls(n),t.memoizedState=Rs,e):zs(t,c));if(l=e.memoizedState,l!==null&&(m=l.dehydrated,m!==null))return Jp(e,t,c,r,m,l,n);if(i){i=r.fallback,c=t.mode,l=e.child,m=l.sibling;var y={mode:"hidden",children:r.children};return(c&1)===0&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=y,t.deletions=null):(r=tn(l,y),r.subtreeFlags=l.subtreeFlags&14680064),m!==null?i=tn(m,i):(i=yn(i,c,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,c=e.child.memoizedState,c=c===null?Ls(n):{baseLanes:c.baseLanes|n,cachePool:null,transitions:c.transitions},i.memoizedState=c,i.childLanes=e.childLanes&~n,t.memoizedState=Rs,r}return i=e.child,e=i.sibling,r=tn(i,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function zs(e,t){return t=Qo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Do(e,t,n,r){return r!==null&&ss(r),In(t,e.child,null,n),e=zs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jp(e,t,n,r,l,i,c){if(n)return t.flags&256?(t.flags&=-257,r=Cs(Error(a(422))),Do(e,t,c,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,l=t.mode,r=Qo({mode:"visible",children:r.children},l,0,null),i=yn(i,l,c,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&In(t,e.child,null,c),t.child.memoizedState=Ls(c),t.memoizedState=Rs,i);if((t.mode&1)===0)return Do(e,t,c,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var m=r.dgst;return r=m,i=Error(a(419)),r=Cs(i,r,void 0),Do(e,t,c,r)}if(m=(c&e.childLanes)!==0,Ye||m){if(r=Oe,r!==null){switch(c&-c){case 4:l=2;break;case 16:l=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(r.suspendedLanes|c))!==0?0:l,l!==0&&l!==i.retryLane&&(i.retryLane=l,zt(e,l),kt(r,e,l,-1))}return Ys(),r=Cs(Error(a(421))),Do(e,t,c,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=fh.bind(null,e),l._reactRetry=t,null):(e=i.treeContext,ot=Vt(l.nextSibling),rt=t,xe=!0,gt=null,e!==null&&(at[ut++]=Rt,at[ut++]=Lt,at[ut++]=an,Rt=e.id,Lt=e.overflow,an=t),t=zs(t,r.children),t.flags|=4096,t)}function Yu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cs(e.return,t,n)}function Ds(e,t,n,r,l){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=l)}function Gu(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(be(e,t,r.children,n),r=Ne.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yu(e,n,t);else if(e.tag===19)Yu(e,n,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}r&=1}if(me(Ne,r),(t.mode&1)===0)t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ds(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&Co(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ds(t,!0,n,null,i);break;case"together":Ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Oo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ot(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function eh(e,t,n){switch(t.tag){case 3:qu(t),Mn();break;case 5:cu(t);break;case 1:Ke(t.type)&&yo(t);break;case 4:ps(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;me(No,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(Ne,Ne.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Ku(e,t,n):(me(Ne,Ne.current&1),e=Ot(e,t,n),e!==null?e.sibling:null);me(Ne,Ne.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Gu(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),me(Ne,Ne.current),r)break;return null;case 22:case 23:return t.lanes=0,Wu(e,t,n)}return Ot(e,t,n)}var Xu,Os,Zu,Ju;Xu=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Os=function(){},Zu=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,dn(jt.current);var i=null;switch(n){case"input":l=cl(e,l),r=cl(e,r),i=[];break;case"select":l=W({},l,{value:void 0}),r=W({},r,{value:void 0}),i=[];break;case"textarea":l=pl(e,l),r=pl(e,r),i=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ho)}ml(n,r);var c;n=null;for(N in l)if(!r.hasOwnProperty(N)&&l.hasOwnProperty(N)&&l[N]!=null)if(N==="style"){var m=l[N];for(c in m)m.hasOwnProperty(c)&&(n||(n={}),n[c]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(f.hasOwnProperty(N)?i||(i=[]):(i=i||[]).push(N,null));for(N in r){var y=r[N];if(m=l!=null?l[N]:void 0,r.hasOwnProperty(N)&&y!==m&&(y!=null||m!=null))if(N==="style")if(m){for(c in m)!m.hasOwnProperty(c)||y&&y.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in y)y.hasOwnProperty(c)&&m[c]!==y[c]&&(n||(n={}),n[c]=y[c])}else n||(i||(i=[]),i.push(N,n)),n=y;else N==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,m=m?m.__html:void 0,y!=null&&m!==y&&(i=i||[]).push(N,y)):N==="children"?typeof y!="string"&&typeof y!="number"||(i=i||[]).push(N,""+y):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(f.hasOwnProperty(N)?(y!=null&&N==="onScroll"&&ye("scroll",e),i||m===y||(i=[])):(i=i||[]).push(N,y))}n&&(i=i||[]).push("style",n);var N=i;(t.updateQueue=N)&&(t.flags|=4)}},Ju=function(e,t,n,r){n!==r&&(t.flags|=4)};function Rr(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function th(e,t,n){var r=t.pendingProps;switch(rs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return Ke(t.type)&&go(),We(t),null;case 3:return r=t.stateNode,Un(),ve(Qe),ve(He),gs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gt!==null&&(qs(gt),gt=null))),Os(e,t),We(t),null;case 5:hs(t);var l=dn(Er.current);if(n=t.type,e!==null&&t.stateNode!=null)Zu(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return We(t),null}if(e=dn(jt.current),xo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_t]=t,r[xr]=i,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(l=0;l<vr.length;l++)ye(vr[l],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":zi(r,i),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ye("invalid",r);break;case"textarea":Mi(r,i),ye("invalid",r)}ml(n,i),l=null;for(var c in i)if(i.hasOwnProperty(c)){var m=i[c];c==="children"?typeof m=="string"?r.textContent!==m&&(i.suppressHydrationWarning!==!0&&po(r.textContent,m,e),l=["children",m]):typeof m=="number"&&r.textContent!==""+m&&(i.suppressHydrationWarning!==!0&&po(r.textContent,m,e),l=["children",""+m]):f.hasOwnProperty(c)&&m!=null&&c==="onScroll"&&ye("scroll",r)}switch(n){case"input":Wr(r),Oi(r,i,!0);break;case"textarea":Wr(r),Ai(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ho)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{c=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Fi(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),n==="select"&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[_t]=t,e[xr]=r,Xu(e,t,!1,!1),t.stateNode=e;e:{switch(c=gl(n,r),n){case"dialog":ye("cancel",e),ye("close",e),l=r;break;case"iframe":case"object":case"embed":ye("load",e),l=r;break;case"video":case"audio":for(l=0;l<vr.length;l++)ye(vr[l],e);l=r;break;case"source":ye("error",e),l=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),l=r;break;case"details":ye("toggle",e),l=r;break;case"input":zi(e,r),l=cl(e,r),ye("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=W({},r,{value:void 0}),ye("invalid",e);break;case"textarea":Mi(e,r),l=pl(e,r),ye("invalid",e);break;default:l=r}ml(n,l),m=l;for(i in m)if(m.hasOwnProperty(i)){var y=m[i];i==="style"?Bi(e,y):i==="dangerouslySetInnerHTML"?(y=y?y.__html:void 0,y!=null&&Ui(e,y)):i==="children"?typeof y=="string"?(n!=="textarea"||y!=="")&&Jn(e,y):typeof y=="number"&&Jn(e,""+y):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(f.hasOwnProperty(i)?y!=null&&i==="onScroll"&&ye("scroll",e):y!=null&&je(e,i,y,c))}switch(n){case"input":Wr(e),Oi(e,r,!1);break;case"textarea":Wr(e),Ai(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ce(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xn(e,!!r.multiple,i,!1):r.defaultValue!=null&&xn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=ho)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return We(t),null;case 6:if(e&&t.stateNode!=null)Ju(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(a(166));if(n=dn(Er.current),dn(jt.current),xo(t)){if(r=t.stateNode,n=t.memoizedProps,r[_t]=t,(i=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:po(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&po(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_t]=t,t.stateNode=r}return We(t),null;case 13:if(ve(Ne),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&ot!==null&&(t.mode&1)!==0&&(t.flags&128)===0)nu(),Mn(),t.flags|=98560,i=!1;else if(i=xo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(a(317));i[_t]=t}else Mn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else gt!==null&&(qs(gt),gt=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ne.current&1)!==0?Le===0&&(Le=3):Ys())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Un(),Os(e,t),e===null&&wr(t.stateNode.containerInfo),We(t),null;case 10:return us(t.type._context),We(t),null;case 17:return Ke(t.type)&&go(),We(t),null;case 19:if(ve(Ne),i=t.memoizedState,i===null)return We(t),null;if(r=(t.flags&128)!==0,c=i.rendering,c===null)if(r)Rr(i,!1);else{if(Le!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Co(e),c!==null){for(t.flags|=128,Rr(i,!1),r=c.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,c=i.alternate,c===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,e=c.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(Ne,Ne.current&1|2),t.child}e=e.sibling}i.tail!==null&&$e()>Vn&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Co(c),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!xe)return We(t),null}else 2*$e()-i.renderingStartTime>Vn&&n!==1073741824&&(t.flags|=128,r=!0,Rr(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(n=i.last,n!==null?n.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$e(),t.sibling=null,n=Ne.current,me(Ne,r?n&1|2:n&1),t):(We(t),null);case 22:case 23:return Ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(lt&1073741824)!==0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function nh(e,t){switch(rs(t),t.tag){case 1:return Ke(t.type)&&go(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Un(),ve(Qe),ve(He),gs(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return hs(t),null;case 13:if(ve(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Mn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Ne),null;case 4:return Un(),null;case 10:return us(t.type._context),null;case 22:case 23:return Ks(),null;case 24:return null;default:return null}}var Mo=!1,Ve=!1,rh=typeof WeakSet=="function"?WeakSet:Set,B=null;function Bn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ce(e,t,r)}else n.current=null}function Ms(e,t,n){try{n()}catch(r){Ce(e,t,r)}}var ec=!1;function oh(e,t){if(Kl=to,e=La(),Ul(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var c=0,m=-1,y=-1,N=0,L=0,z=e,T=null;t:for(;;){for(var H;z!==n||l!==0&&z.nodeType!==3||(m=c+l),z!==i||r!==0&&z.nodeType!==3||(y=c+r),z.nodeType===3&&(c+=z.nodeValue.length),(H=z.firstChild)!==null;)T=z,z=H;for(;;){if(z===e)break t;if(T===n&&++N===l&&(m=c),T===i&&++L===r&&(y=c),(H=z.nextSibling)!==null)break;z=T,T=z.parentNode}z=H}n=m===-1||y===-1?null:{start:m,end:y}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yl={focusedElem:e,selectionRange:n},to=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var b=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var q=b.memoizedProps,Te=b.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?q:yt(t.type,q),Te);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(D){Ce(t,t.return,D)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return b=ec,ec=!1,b}function Lr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Ms(t,n,i)}l=l.next}while(l!==r)}}function Io(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Is(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function tc(e){var t=e.alternate;t!==null&&(e.alternate=null,tc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_t],delete t[xr],delete t[Jl],delete t[Up],delete t[Hp])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function nc(e){return e.tag===5||e.tag===3||e.tag===4}function rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nc(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.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 As(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ho));else if(r!==4&&(e=e.child,e!==null))for(As(e,t,n),e=e.sibling;e!==null;)As(e,t,n),e=e.sibling}function Fs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fs(e,t,n),e=e.sibling;e!==null;)Fs(e,t,n),e=e.sibling}var Ae=null,vt=!1;function Gt(e,t,n){for(n=n.child;n!==null;)oc(e,t,n),n=n.sibling}function oc(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Yr,n)}catch{}switch(n.tag){case 5:Ve||Bn(n,t);case 6:var r=Ae,l=vt;Ae=null,Gt(e,t,n),Ae=r,vt=l,Ae!==null&&(vt?(e=Ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ae.removeChild(n.stateNode));break;case 18:Ae!==null&&(vt?(e=Ae,n=n.stateNode,e.nodeType===8?Zl(e.parentNode,n):e.nodeType===1&&Zl(e,n),cr(e)):Zl(Ae,n.stateNode));break;case 4:r=Ae,l=vt,Ae=n.stateNode.containerInfo,vt=!0,Gt(e,t,n),Ae=r,vt=l;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,c=i.destroy;i=i.tag,c!==void 0&&((i&2)!==0||(i&4)!==0)&&Ms(n,t,c),l=l.next}while(l!==r)}Gt(e,t,n);break;case 1:if(!Ve&&(Bn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(m){Ce(n,t,m)}Gt(e,t,n);break;case 21:Gt(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,Gt(e,t,n),Ve=r):Gt(e,t,n);break;default:Gt(e,t,n)}}function lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rh),t.forEach(function(r){var l=ph.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var i=e,c=t,m=c;e:for(;m!==null;){switch(m.tag){case 5:Ae=m.stateNode,vt=!1;break e;case 3:Ae=m.stateNode.containerInfo,vt=!0;break e;case 4:Ae=m.stateNode.containerInfo,vt=!0;break e}m=m.return}if(Ae===null)throw Error(a(160));oc(i,c,l),Ae=null,vt=!1;var y=l.alternate;y!==null&&(y.return=null),l.return=null}catch(N){Ce(l,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)sc(t,e),t=t.sibling}function sc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(wt(t,e),Ct(e),r&4){try{Lr(3,e,e.return),Io(3,e)}catch(q){Ce(e,e.return,q)}try{Lr(5,e,e.return)}catch(q){Ce(e,e.return,q)}}break;case 1:wt(t,e),Ct(e),r&512&&n!==null&&Bn(n,n.return);break;case 5:if(wt(t,e),Ct(e),r&512&&n!==null&&Bn(n,n.return),e.flags&32){var l=e.stateNode;try{Jn(l,"")}catch(q){Ce(e,e.return,q)}}if(r&4&&(l=e.stateNode,l!=null)){var i=e.memoizedProps,c=n!==null?n.memoizedProps:i,m=e.type,y=e.updateQueue;if(e.updateQueue=null,y!==null)try{m==="input"&&i.type==="radio"&&i.name!=null&&Di(l,i),gl(m,c);var N=gl(m,i);for(c=0;c<y.length;c+=2){var L=y[c],z=y[c+1];L==="style"?Bi(l,z):L==="dangerouslySetInnerHTML"?Ui(l,z):L==="children"?Jn(l,z):je(l,L,z,N)}switch(m){case"input":dl(l,i);break;case"textarea":Ii(l,i);break;case"select":var T=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!i.multiple;var H=i.value;H!=null?xn(l,!!i.multiple,H,!1):T!==!!i.multiple&&(i.defaultValue!=null?xn(l,!!i.multiple,i.defaultValue,!0):xn(l,!!i.multiple,i.multiple?[]:"",!1))}l[xr]=i}catch(q){Ce(e,e.return,q)}}break;case 6:if(wt(t,e),Ct(e),r&4){if(e.stateNode===null)throw Error(a(162));l=e.stateNode,i=e.memoizedProps;try{l.nodeValue=i}catch(q){Ce(e,e.return,q)}}break;case 3:if(wt(t,e),Ct(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cr(t.containerInfo)}catch(q){Ce(e,e.return,q)}break;case 4:wt(t,e),Ct(e);break;case 13:wt(t,e),Ct(e),l=e.child,l.flags&8192&&(i=l.memoizedState!==null,l.stateNode.isHidden=i,!i||l.alternate!==null&&l.alternate.memoizedState!==null||(Bs=$e())),r&4&&lc(e);break;case 22:if(L=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(N=Ve)||L,wt(t,e),Ve=N):wt(t,e),Ct(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!L&&(e.mode&1)!==0)for(B=e,L=e.child;L!==null;){for(z=B=L;B!==null;){switch(T=B,H=T.child,T.tag){case 0:case 11:case 14:case 15:Lr(4,T,T.return);break;case 1:Bn(T,T.return);var b=T.stateNode;if(typeof b.componentWillUnmount=="function"){r=T,n=T.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(q){Ce(r,n,q)}}break;case 5:Bn(T,T.return);break;case 22:if(T.memoizedState!==null){uc(z);continue}}H!==null?(H.return=T,B=H):uc(z)}L=L.sibling}e:for(L=null,z=e;;){if(z.tag===5){if(L===null){L=z;try{l=z.stateNode,N?(i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(m=z.stateNode,y=z.memoizedProps.style,c=y!=null&&y.hasOwnProperty("display")?y.display:null,m.style.display=Hi("display",c))}catch(q){Ce(e,e.return,q)}}}else if(z.tag===6){if(L===null)try{z.stateNode.nodeValue=N?"":z.memoizedProps}catch(q){Ce(e,e.return,q)}}else if((z.tag!==22&&z.tag!==23||z.memoizedState===null||z===e)&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===e)break e;for(;z.sibling===null;){if(z.return===null||z.return===e)break e;L===z&&(L=null),z=z.return}L===z&&(L=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:wt(t,e),Ct(e),r&4&&lc(e);break;case 21:break;default:wt(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(nc(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Jn(l,""),r.flags&=-33);var i=rc(e);Fs(e,i,l);break;case 3:case 4:var c=r.stateNode.containerInfo,m=rc(e);As(e,m,c);break;default:throw Error(a(161))}}catch(y){Ce(e,e.return,y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lh(e,t,n){B=e,ic(e)}function ic(e,t,n){for(var r=(e.mode&1)!==0;B!==null;){var l=B,i=l.child;if(l.tag===22&&r){var c=l.memoizedState!==null||Mo;if(!c){var m=l.alternate,y=m!==null&&m.memoizedState!==null||Ve;m=Mo;var N=Ve;if(Mo=c,(Ve=y)&&!N)for(B=l;B!==null;)c=B,y=c.child,c.tag===22&&c.memoizedState!==null?cc(l):y!==null?(y.return=c,B=y):cc(l);for(;i!==null;)B=i,ic(i),i=i.sibling;B=l,Mo=m,Ve=N}ac(e)}else(l.subtreeFlags&8772)!==0&&i!==null?(i.return=l,B=i):ac(e)}}function ac(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:Ve||Io(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:yt(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&uu(t,i,r);break;case 3:var c=t.updateQueue;if(c!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}uu(t,c,n)}break;case 5:var m=t.stateNode;if(n===null&&t.flags&4){n=m;var y=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":y.autoFocus&&n.focus();break;case"img":y.src&&(n.src=y.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var N=t.alternate;if(N!==null){var L=N.memoizedState;if(L!==null){var z=L.dehydrated;z!==null&&cr(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}Ve||t.flags&512&&Is(t)}catch(T){Ce(t,t.return,T)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function uc(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function cc(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Io(4,t)}catch(y){Ce(t,n,y)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(y){Ce(t,l,y)}}var i=t.return;try{Is(t)}catch(y){Ce(t,i,y)}break;case 5:var c=t.return;try{Is(t)}catch(y){Ce(t,c,y)}}}catch(y){Ce(t,t.return,y)}if(t===e){B=null;break}var m=t.sibling;if(m!==null){m.return=t.return,B=m;break}B=t.return}}var sh=Math.ceil,Ao=X.ReactCurrentDispatcher,Us=X.ReactCurrentOwner,ft=X.ReactCurrentBatchConfig,se=0,Oe=null,Pe=null,Fe=0,lt=0,Wn=bt(0),Le=0,zr=null,pn=0,Fo=0,Hs=0,Dr=null,Ge=null,Bs=0,Vn=1/0,Mt=null,Uo=!1,Ws=null,Xt=null,Ho=!1,Zt=null,Bo=0,Or=0,Vs=null,Wo=-1,Vo=0;function qe(){return(se&6)!==0?$e():Wo!==-1?Wo:Wo=$e()}function Jt(e){return(e.mode&1)===0?1:(se&2)!==0&&Fe!==0?Fe&-Fe:Wp.transition!==null?(Vo===0&&(Vo=ra()),Vo):(e=de,e!==0||(e=window.event,e=e===void 0?16:fa(e.type)),e)}function kt(e,t,n,r){if(50<Or)throw Or=0,Vs=null,Error(a(185));lr(e,n,r),((se&2)===0||e!==Oe)&&(e===Oe&&((se&2)===0&&(Fo|=n),Le===4&&en(e,Fe)),Xe(e,r),n===1&&se===0&&(t.mode&1)===0&&(Vn=$e()+500,vo&&Qt()))}function Xe(e,t){var n=e.callbackNode;Wf(e,t);var r=Zr(e,e===Oe?Fe:0);if(r===0)n!==null&&ea(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&ea(n),t===1)e.tag===0?Bp(fc.bind(null,e)):Xa(fc.bind(null,e)),Ap(function(){(se&6)===0&&Qt()}),n=null;else{switch(oa(r)){case 1:n=Nl;break;case 4:n=ta;break;case 16:n=Kr;break;case 536870912:n=na;break;default:n=Kr}n=kc(n,dc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dc(e,t){if(Wo=-1,Vo=0,(se&6)!==0)throw Error(a(327));var n=e.callbackNode;if(bn()&&e.callbackNode!==n)return null;var r=Zr(e,e===Oe?Fe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=bo(e,r);else{t=r;var l=se;se|=2;var i=hc();(Oe!==e||Fe!==t)&&(Mt=null,Vn=$e()+500,mn(e,t));do try{uh();break}catch(m){pc(e,m)}while(!0);as(),Ao.current=i,se=l,Pe!==null?t=0:(Oe=null,Fe=0,t=Le)}if(t!==0){if(t===2&&(l=_l(e),l!==0&&(r=l,t=bs(e,l))),t===1)throw n=zr,mn(e,0),en(e,r),Xe(e,$e()),n;if(t===6)en(e,r);else{if(l=e.current.alternate,(r&30)===0&&!ih(l)&&(t=bo(e,r),t===2&&(i=_l(e),i!==0&&(r=i,t=bs(e,i))),t===1))throw n=zr,mn(e,0),en(e,r),Xe(e,$e()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:gn(e,Ge,Mt);break;case 3:if(en(e,r),(r&130023424)===r&&(t=Bs+500-$e(),10<t)){if(Zr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){qe(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=Xl(gn.bind(null,e,Ge,Mt),t);break}gn(e,Ge,Mt);break;case 4:if(en(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var c=31-ht(r);i=1<<c,c=t[c],c>l&&(l=c),r&=~i}if(r=l,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sh(r/1960))-r,10<r){e.timeoutHandle=Xl(gn.bind(null,e,Ge,Mt),r);break}gn(e,Ge,Mt);break;case 5:gn(e,Ge,Mt);break;default:throw Error(a(329))}}}return Xe(e,$e()),e.callbackNode===n?dc.bind(null,e):null}function bs(e,t){var n=Dr;return e.current.memoizedState.isDehydrated&&(mn(e,t).flags|=256),e=bo(e,t),e!==2&&(t=Ge,Ge=n,t!==null&&qs(t)),e}function qs(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function ih(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],i=l.getSnapshot;l=l.value;try{if(!mt(i(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 en(e,t){for(t&=~Hs,t&=~Fo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ht(t),r=1<<n;e[n]=-1,t&=~r}}function fc(e){if((se&6)!==0)throw Error(a(327));bn();var t=Zr(e,0);if((t&1)===0)return Xe(e,$e()),null;var n=bo(e,t);if(e.tag!==0&&n===2){var r=_l(e);r!==0&&(t=r,n=bs(e,r))}if(n===1)throw n=zr,mn(e,0),en(e,t),Xe(e,$e()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gn(e,Ge,Mt),Xe(e,$e()),null}function Qs(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(Vn=$e()+500,vo&&Qt())}}function hn(e){Zt!==null&&Zt.tag===0&&(se&6)===0&&bn();var t=se;se|=1;var n=ft.transition,r=de;try{if(ft.transition=null,de=1,e)return e()}finally{de=r,ft.transition=n,se=t,(se&6)===0&&Qt()}}function Ks(){lt=Wn.current,ve(Wn)}function mn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ip(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(rs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&go();break;case 3:Un(),ve(Qe),ve(He),gs();break;case 5:hs(r);break;case 4:Un();break;case 13:ve(Ne);break;case 19:ve(Ne);break;case 10:us(r.type._context);break;case 22:case 23:Ks()}n=n.return}if(Oe=e,Pe=e=tn(e.current,null),Fe=lt=t,Le=0,zr=null,Hs=Fo=pn=0,Ge=Dr=null,cn!==null){for(t=0;t<cn.length;t++)if(n=cn[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,i=n.pending;if(i!==null){var c=i.next;i.next=l,r.next=c}n.pending=r}cn=null}return e}function pc(e,t){do{var n=Pe;try{if(as(),$o.current=Lo,To){for(var r=_e.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}To=!1}if(fn=0,De=Re=_e=null,Cr=!1,$r=0,Us.current=null,n===null||n.return===null){Le=1,zr=t,Pe=null;break}e:{var i=e,c=n.return,m=n,y=t;if(t=Fe,m.flags|=32768,y!==null&&typeof y=="object"&&typeof y.then=="function"){var N=y,L=m,z=L.tag;if((L.mode&1)===0&&(z===0||z===11||z===15)){var T=L.alternate;T?(L.updateQueue=T.updateQueue,L.memoizedState=T.memoizedState,L.lanes=T.lanes):(L.updateQueue=null,L.memoizedState=null)}var H=Au(c);if(H!==null){H.flags&=-257,Fu(H,c,m,i,t),H.mode&1&&Iu(i,N,t),t=H,y=N;var b=t.updateQueue;if(b===null){var q=new Set;q.add(y),t.updateQueue=q}else b.add(y);break e}else{if((t&1)===0){Iu(i,N,t),Ys();break e}y=Error(a(426))}}else if(xe&&m.mode&1){var Te=Au(c);if(Te!==null){(Te.flags&65536)===0&&(Te.flags|=256),Fu(Te,c,m,i,t),ss(Hn(y,m));break e}}i=y=Hn(y,m),Le!==4&&(Le=2),Dr===null?Dr=[i]:Dr.push(i),i=c;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var x=Ou(i,y,t);au(i,x);break e;case 1:m=y;var w=i.type,S=i.stateNode;if((i.flags&128)===0&&(typeof w.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Xt===null||!Xt.has(S)))){i.flags|=65536,t&=-t,i.lanes|=t;var D=Mu(i,m,t);au(i,D);break e}}i=i.return}while(i!==null)}gc(n)}catch(Q){t=Q,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function hc(){var e=Ao.current;return Ao.current=Lo,e===null?Lo:e}function Ys(){(Le===0||Le===3||Le===2)&&(Le=4),Oe===null||(pn&268435455)===0&&(Fo&268435455)===0||en(Oe,Fe)}function bo(e,t){var n=se;se|=2;var r=hc();(Oe!==e||Fe!==t)&&(Mt=null,mn(e,t));do try{ah();break}catch(l){pc(e,l)}while(!0);if(as(),se=n,Ao.current=r,Pe!==null)throw Error(a(261));return Oe=null,Fe=0,Le}function ah(){for(;Pe!==null;)mc(Pe)}function uh(){for(;Pe!==null&&!Df();)mc(Pe)}function mc(e){var t=wc(e.alternate,e,lt);e.memoizedProps=e.pendingProps,t===null?gc(e):Pe=t,Us.current=null}function gc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=th(n,t,lt),n!==null){Pe=n;return}}else{if(n=nh(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Le=6,Pe=null;return}}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Le===0&&(Le=5)}function gn(e,t,n){var r=de,l=ft.transition;try{ft.transition=null,de=1,ch(e,t,n,r)}finally{ft.transition=l,de=r}return null}function ch(e,t,n,r){do bn();while(Zt!==null);if((se&6)!==0)throw Error(a(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(Vf(e,i),e===Oe&&(Pe=Oe=null,Fe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ho||(Ho=!0,kc(Kr,function(){return bn(),null})),i=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||i){i=ft.transition,ft.transition=null;var c=de;de=1;var m=se;se|=4,Us.current=null,oh(e,n),sc(n,e),Pp(Yl),to=!!Kl,Yl=Kl=null,e.current=n,lh(n),Of(),se=m,de=c,ft.transition=i}else e.current=n;if(Ho&&(Ho=!1,Zt=e,Bo=l),i=e.pendingLanes,i===0&&(Xt=null),Af(n.stateNode),Xe(e,$e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Uo)throw Uo=!1,e=Ws,Ws=null,e;return(Bo&1)!==0&&e.tag!==0&&bn(),i=e.pendingLanes,(i&1)!==0?e===Vs?Or++:(Or=0,Vs=e):Or=0,Qt(),null}function bn(){if(Zt!==null){var e=oa(Bo),t=ft.transition,n=de;try{if(ft.transition=null,de=16>e?16:e,Zt===null)var r=!1;else{if(e=Zt,Zt=null,Bo=0,(se&6)!==0)throw Error(a(331));var l=se;for(se|=4,B=e.current;B!==null;){var i=B,c=i.child;if((B.flags&16)!==0){var m=i.deletions;if(m!==null){for(var y=0;y<m.length;y++){var N=m[y];for(B=N;B!==null;){var L=B;switch(L.tag){case 0:case 11:case 15:Lr(8,L,i)}var z=L.child;if(z!==null)z.return=L,B=z;else for(;B!==null;){L=B;var T=L.sibling,H=L.return;if(tc(L),L===N){B=null;break}if(T!==null){T.return=H,B=T;break}B=H}}}var b=i.alternate;if(b!==null){var q=b.child;if(q!==null){b.child=null;do{var Te=q.sibling;q.sibling=null,q=Te}while(q!==null)}}B=i}}if((i.subtreeFlags&2064)!==0&&c!==null)c.return=i,B=c;else e:for(;B!==null;){if(i=B,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Lr(9,i,i.return)}var x=i.sibling;if(x!==null){x.return=i.return,B=x;break e}B=i.return}}var w=e.current;for(B=w;B!==null;){c=B;var S=c.child;if((c.subtreeFlags&2064)!==0&&S!==null)S.return=c,B=S;else e:for(c=w;B!==null;){if(m=B,(m.flags&2048)!==0)try{switch(m.tag){case 0:case 11:case 15:Io(9,m)}}catch(Q){Ce(m,m.return,Q)}if(m===c){B=null;break e}var D=m.sibling;if(D!==null){D.return=m.return,B=D;break e}B=m.return}}if(se=l,Qt(),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Yr,e)}catch{}r=!0}return r}finally{de=n,ft.transition=t}}return!1}function yc(e,t,n){t=Hn(n,t),t=Ou(e,t,1),e=Yt(e,t,1),t=qe(),e!==null&&(lr(e,1,t),Xe(e,t))}function Ce(e,t,n){if(e.tag===3)yc(e,e,n);else for(;t!==null;){if(t.tag===3){yc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xt===null||!Xt.has(r))){e=Hn(n,e),e=Mu(t,e,1),t=Yt(t,e,1),e=qe(),t!==null&&(lr(t,1,e),Xe(t,e));break}}t=t.return}}function dh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=qe(),e.pingedLanes|=e.suspendedLanes&n,Oe===e&&(Fe&n)===n&&(Le===4||Le===3&&(Fe&130023424)===Fe&&500>$e()-Bs?mn(e,0):Hs|=n),Xe(e,t)}function vc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Xr,Xr<<=1,(Xr&130023424)===0&&(Xr=4194304)));var n=qe();e=zt(e,t),e!==null&&(lr(e,t,n),Xe(e,n))}function fh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vc(e,n)}function ph(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),vc(e,n)}var wc;wc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ye=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ye=!1,eh(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,xe&&(t.flags&1048576)!==0&&Za(t,ko,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oo(e,t),e=t.pendingProps;var l=zn(t,He.current);Fn(t,n),l=ws(null,t,r,e,l,n);var i=ks();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(i=!0,yo(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,fs(t),l.updater=zo,t.stateNode=l,l._reactInternals=t,Es(t,r,e,n),t=Ps(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&ns(t),be(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Oo(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=mh(r),e=yt(r,e),l){case 0:t=Ts(null,t,r,e,n);break e;case 1:t=bu(null,t,r,e,n);break e;case 11:t=Uu(null,t,r,e,n);break e;case 14:t=Hu(null,t,r,yt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:yt(r,l),Ts(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:yt(r,l),bu(e,t,r,l,n);case 3:e:{if(qu(t),e===null)throw Error(a(387));r=t.pendingProps,i=t.memoizedState,l=i.element,iu(e,t),Eo(t,r,null,n);var c=t.memoizedState;if(r=c.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:c.cache,pendingSuspenseBoundaries:c.pendingSuspenseBoundaries,transitions:c.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=Hn(Error(a(423)),t),t=Qu(e,t,r,n,l);break e}else if(r!==l){l=Hn(Error(a(424)),t),t=Qu(e,t,r,n,l);break e}else for(ot=Vt(t.stateNode.containerInfo.firstChild),rt=t,xe=!0,gt=null,n=lu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Mn(),r===l){t=Ot(e,t,n);break e}be(e,t,r,n)}t=t.child}return t;case 5:return cu(t),e===null&&ls(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,c=l.children,Gl(r,l)?c=null:i!==null&&Gl(r,i)&&(t.flags|=32),Vu(e,t),be(e,t,c,n),t.child;case 6:return e===null&&ls(t),null;case 13:return Ku(e,t,n);case 4:return ps(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=In(t,null,r,n):be(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:yt(r,l),Uu(e,t,r,l,n);case 7:return be(e,t,t.pendingProps,n),t.child;case 8:return be(e,t,t.pendingProps.children,n),t.child;case 12:return be(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,c=l.value,me(No,r._currentValue),r._currentValue=c,i!==null)if(mt(i.value,c)){if(i.children===l.children&&!Qe.current){t=Ot(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var m=i.dependencies;if(m!==null){c=i.child;for(var y=m.firstContext;y!==null;){if(y.context===r){if(i.tag===1){y=Dt(-1,n&-n),y.tag=2;var N=i.updateQueue;if(N!==null){N=N.shared;var L=N.pending;L===null?y.next=y:(y.next=L.next,L.next=y),N.pending=y}}i.lanes|=n,y=i.alternate,y!==null&&(y.lanes|=n),cs(i.return,n,t),m.lanes|=n;break}y=y.next}}else if(i.tag===10)c=i.type===t.type?null:i.child;else if(i.tag===18){if(c=i.return,c===null)throw Error(a(341));c.lanes|=n,m=c.alternate,m!==null&&(m.lanes|=n),cs(c,n,t),c=i.sibling}else c=i.child;if(c!==null)c.return=i;else for(c=i;c!==null;){if(c===t){c=null;break}if(i=c.sibling,i!==null){i.return=c.return,c=i;break}c=c.return}i=c}be(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Fn(t,n),l=ct(l),r=r(l),t.flags|=1,be(e,t,r,n),t.child;case 14:return r=t.type,l=yt(r,t.pendingProps),l=yt(r.type,l),Hu(e,t,r,l,n);case 15:return Bu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:yt(r,l),Oo(e,t),t.tag=1,Ke(r)?(e=!0,yo(t)):e=!1,Fn(t,n),zu(t,r,l),Es(t,r,l,n),Ps(null,t,r,!0,e,n);case 19:return Gu(e,t,n);case 22:return Wu(e,t,n)}throw Error(a(156,t.tag))};function kc(e,t){return Ji(e,t)}function hh(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new hh(e,t,n,r)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mh(e){if(typeof e=="function")return Gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ze)return 11;if(e===it)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qo(e,t,n,r,l,i){var c=2;if(r=e,typeof e=="function")Gs(e)&&(c=1);else if(typeof e=="string")c=5;else e:switch(e){case I:return yn(n.children,l,i,t);case V:c=8,l|=8;break;case te:return e=pt(12,n,t,l|2),e.elementType=te,e.lanes=i,e;case Ee:return e=pt(13,n,t,l),e.elementType=Ee,e.lanes=i,e;case et:return e=pt(19,n,t,l),e.elementType=et,e.lanes=i,e;case we:return Qo(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case pe:c=10;break e;case Ue:c=9;break e;case ze:c=11;break e;case it:c=14;break e;case Ie:c=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=pt(c,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function yn(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Qo(e,t,n,r){return e=pt(22,e,r,t),e.elementType=we,e.lanes=n,e.stateNode={isHidden:!1},e}function Xs(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Zs(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gh(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jl(0),this.expirationTimes=jl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Js(e,t,n,r,l,i,c,m,y){return e=new gh(e,t,n,m,y),t===1?(t=1,i===!0&&(t|=8)):t=0,i=pt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fs(i),e}function yh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fe,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function xc(e){if(!e)return qt;e=e._reactInternals;e:{if(on(e)!==e||e.tag!==1)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ke(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(a(171))}if(e.tag===1){var n=e.type;if(Ke(n))return Ya(e,n,t)}return t}function Sc(e,t,n,r,l,i,c,m,y){return e=Js(n,r,!0,e,l,i,c,m,y),e.context=xc(null),n=e.current,r=qe(),l=Jt(n),i=Dt(r,l),i.callback=t??null,Yt(n,i,l),e.current.lanes=l,lr(e,l,r),Xe(e,r),e}function Ko(e,t,n,r){var l=t.current,i=qe(),c=Jt(l);return n=xc(n),t.context===null?t.context=n:t.pendingContext=n,t=Dt(i,c),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yt(l,t,c),e!==null&&(kt(e,l,c,i),jo(e,l,c)),c}function Yo(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Nc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ei(e,t){Nc(e,t),(e=e.alternate)&&Nc(e,t)}function vh(){return null}var _c=typeof reportError=="function"?reportError:function(e){console.error(e)};function ti(e){this._internalRoot=e}Go.prototype.render=ti.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Ko(e,t,null,null)},Go.prototype.unmount=ti.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hn(function(){Ko(null,e,null,null)}),t[Tt]=null}};function Go(e){this._internalRoot=e}Go.prototype.unstable_scheduleHydration=function(e){if(e){var t=ia();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ht.length&&t!==0&&t<Ht[n].priority;n++);Ht.splice(n,0,e),n===0&&ca(e)}};function ni(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jc(){}function wh(e,t,n,r,l){if(l){if(typeof r=="function"){var i=r;r=function(){var N=Yo(c);i.call(N)}}var c=Sc(t,r,e,0,null,!1,!1,"",jc);return e._reactRootContainer=c,e[Tt]=c.current,wr(e.nodeType===8?e.parentNode:e),hn(),c}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var m=r;r=function(){var N=Yo(y);m.call(N)}}var y=Js(e,0,!1,null,null,!1,!1,"",jc);return e._reactRootContainer=y,e[Tt]=y.current,wr(e.nodeType===8?e.parentNode:e),hn(function(){Ko(t,y,n,r)}),y}function Zo(e,t,n,r,l){var i=n._reactRootContainer;if(i){var c=i;if(typeof l=="function"){var m=l;l=function(){var y=Yo(c);m.call(y)}}Ko(t,c,e,l)}else c=wh(n,t,e,l,r);return Yo(c)}la=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=or(t.pendingLanes);n!==0&&(El(t,n|1),Xe(t,$e()),(se&6)===0&&(Vn=$e()+500,Qt()))}break;case 13:hn(function(){var r=zt(e,1);if(r!==null){var l=qe();kt(r,e,1,l)}}),ei(e,1)}},Cl=function(e){if(e.tag===13){var t=zt(e,134217728);if(t!==null){var n=qe();kt(t,e,134217728,n)}ei(e,134217728)}},sa=function(e){if(e.tag===13){var t=Jt(e),n=zt(e,t);if(n!==null){var r=qe();kt(n,e,t,r)}ei(e,t)}},ia=function(){return de},aa=function(e,t){var n=de;try{return de=e,t()}finally{de=n}},wl=function(e,t,n){switch(t){case"input":if(dl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=mo(r);if(!l)throw Error(a(90));Li(r),dl(r,l)}}}break;case"textarea":Ii(e,n);break;case"select":t=n.value,t!=null&&xn(e,!!n.multiple,t,!1)}},qi=Qs,Qi=hn;var kh={usingClientEntryPoint:!1,Events:[Sr,Rn,mo,Vi,bi,Qs]},Mr={findFiberByHostInstance:ln,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xh={bundleType:Mr.bundleType,version:Mr.version,rendererPackageName:Mr.rendererPackageName,rendererConfig:Mr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xi(e),e===null?null:e.stateNode},findFiberByHostInstance:Mr.findFiberByHostInstance||vh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jo.isDisabled&&Jo.supportsFiber)try{Yr=Jo.inject(xh),Nt=Jo}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kh,Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ni(t))throw Error(a(200));return yh(e,t,null,n)},Ze.createRoot=function(e,t){if(!ni(e))throw Error(a(299));var n=!1,r="",l=_c;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Js(e,1,!1,null,null,n,!1,r,l),e[Tt]=t.current,wr(e.nodeType===8?e.parentNode:e),new ti(t)},Ze.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=Xi(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e){return hn(e)},Ze.hydrate=function(e,t,n){if(!Xo(t))throw Error(a(200));return Zo(null,e,t,!0,n)},Ze.hydrateRoot=function(e,t,n){if(!ni(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,l=!1,i="",c=_c;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),t=Sc(t,null,e,1,n??null,l,!1,i,c),e[Tt]=t.current,wr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Go(t)},Ze.render=function(e,t,n){if(!Xo(t))throw Error(a(200));return Zo(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!Xo(e))throw Error(a(40));return e._reactRootContainer?(hn(function(){Zo(null,null,e,!1,function(){e._reactRootContainer=null,e[Tt]=null})}),!0):!1},Ze.unstable_batchedUpdates=Qs,Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xo(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Zo(e,t,n,!1,r)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}var zc;function ld(){if(zc)return li.exports;zc=1;function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(s){console.error(s)}}return o(),li.exports=$h(),li.exports}var Dc;function Th(){if(Dc)return el;Dc=1;var o=ld();return el.createRoot=o.createRoot,el.hydrateRoot=o.hydrateRoot,el}var Ph=Th();const Rh=(function(){const s=typeof document<"u"&&document.createElement("link").relList;return s&&s.supports&&s.supports("modulepreload")?"modulepreload":"preload"})(),Lh=function(o){return"/"+o},Oc={},Si=function(s,a,u){let f=Promise.resolve();if(a&&a.length>0){let h=function(_){return Promise.all(_.map(E=>Promise.resolve(E).then($=>({status:"fulfilled",value:$}),$=>({status:"rejected",reason:$}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),v=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=h(a.map(_=>{if(_=Lh(_),_ in Oc)return;Oc[_]=!0;const E=_.endsWith(".css"),$=E?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${_}"]${$}`))return;const C=document.createElement("link");if(C.rel=E?"stylesheet":Rh,E||(C.as="script"),C.crossOrigin="",C.href=_,v&&C.setAttribute("nonce",v),document.head.appendChild(C),E)return new Promise((P,j)=>{C.addEventListener("load",P),C.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${_}`)))})}))}function p(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return f.then(h=>{for(const g of h||[])g.status==="rejected"&&p(g.reason);return s().catch(p)})},sd="caddis-hub-tab",zh="X-Caddis-Hub-Tab",Dh="X-CSRF-Token";class hi extends Error{constructor(s,a){super(a),this.status=s}}function id(){try{return window.localStorage}catch{return null}}let mi=null;function Oh(o=window.location,s=window.history,a=id()){const u=/(?:^#|&)tab=([^&]+)/.exec(o.hash);if(!(u!=null&&u[1]))return;let f;try{f=decodeURIComponent(u[1])}catch{return}mi=f;try{a==null||a.setItem(sd,f)}catch{}s.replaceState(null,"",o.pathname+o.search)}function ad(o=id()){try{return(o==null?void 0:o.getItem(sd))||mi}catch{return mi}}function ud(o,s){const a={Accept:"application/json"};return o&&(a[zh]=o),s&&(a[Dh]=s),a}async function Ni(o){const s=ad();if(!s)throw new hi(401,"no tab token");const a=await fetch(o,{headers:ud(s),credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new hi(a.status,`${o} answered ${a.status}`);return await a.json()}const Mh=()=>Ni("/api/session"),Ih=()=>Ni("/api/state"),Ah=(o,s,a)=>Ni("/api/plan-phase?repo="+encodeURIComponent(o)+"&plan="+encodeURIComponent(s)+"&key="+encodeURIComponent(a));let ol=null;async function Fh(){return ol||(ol=(await Mh()).csrf_token),ol}async function Uh(o){const s=ad();if(!s)return{ok:!1,status:401,error:"unauthorized",reason:"Signed out. Run caddis hub open."};const a=async()=>fetch("/api/actions",{method:"POST",headers:{...ud(s,await Fh()),"Content-Type":"application/json"},body:JSON.stringify(o),credentials:"same-origin",cache:"no-store"});try{let u=await a();u.status===403&&(ol=null,u=await a());const f=await u.json().catch(()=>({}));return u.status===202&&f.request&&typeof f.request=="object"?{ok:!0,request:f.request}:{ok:!1,status:u.status,error:typeof f.error=="string"?f.error:"failed",reason:typeof f.reason=="string"?f.reason:`The hub answered ${u.status}.`}}catch{return{ok:!1,status:0,error:"network",reason:"The hub did not answer."}}}function Hh(o){const[s,a]=O.useState({}),u=(p,h)=>a(g=>({...g,[p]:h})),f=O.useCallback(p=>{u(p.key,{status:"sending",reason:null,requestId:null,at:Date.now()}),Uh(p.body).then(h=>{h.ok?u(p.key,{status:"sent",reason:null,requestId:h.request.id,at:Date.now()}):u(p.key,{status:"refused",reason:h.reason,requestId:null,at:Date.now()}),o()})},[o]);return{local:s,run:f}}/**
|
|
42
|
-
* @license lucide-react v1.61.0 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const Bh=o=>o==null?void 0:o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
47
|
-
* @license lucide-react v1.61.0 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/function Wh(o,s,a=[]){if(s==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:Bh(o),size:24,node:s,...a.length>0?{aliases:a}:{}}}/**
|
|
52
|
-
* @license lucide-react v1.61.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const Vh=o=>{let s="",a=!1;for(const u of o){if(u==="-"||u==="_"||u<=" "){a=s.length>0;continue}s.length===0?s+=u.toLowerCase():s+=a?u.toUpperCase():u,a=!1}return s};/**
|
|
57
|
-
* @license lucide-react v1.61.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const bh=o=>{const s=Vh(o);return s.charAt(0).toUpperCase()+s.slice(1)};/**
|
|
62
|
-
* @license lucide-react v1.61.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const gi=(...o)=>o.filter((s,a,u)=>!!s&&s.trim()!==""&&u.indexOf(s)===a).join(" ").trim();/**
|
|
67
|
-
* @license lucide-react v1.61.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const vn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
72
|
-
* @license lucide-react v1.61.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/function ai(o){return o!=null}function qh(o,s={}){var C,P;const a=s.attributeNames??{},u=j=>a[j]??j,f=o.size??o.width??vn.width,p=o.size??o.height??vn.height,h=((C=o.aliases)==null?void 0:C.filter(j=>typeof j=="string"&&j.trim()!=="").map(j=>`lucide-${j}`))??[],g=[...o.name?[`lucide-${o.name}`]:[],...h],v=((P=s.className)==null?void 0:P.split(" ").filter(Boolean))??[],_=s.includeDefaultClasses===!1?gi(...v):gi("lucide",...g,...v),E=s.absoluteStrokeWidth?Number(s.strokeWidth??vn["stroke-width"])*Number(o.size??o.width??vn.width)/Number(s.size??s.width??vn.width):s.strokeWidth??vn["stroke-width"];return["svg",{...Object.entries(vn).reduce((j,[F,U])=>(j[u(F)]=U,j),{}),..."color"in s&&s.color&&{[u("stroke")]:s.color},..."size"in s&&ai(s.size)&&{[u("width")]:s.size,[u("height")]:s.size},..."width"in s&&ai(s.width)&&{[u("width")]:s.width},..."height"in s&&ai(s.height)&&{[u("height")]:s.height},[u("stroke-width")]:E,..._&&{[u("class")]:_},[u("viewBox")]:`0 0 ${f} ${p}`,...s.hasA11yProp===!1?{[u("aria-hidden")]:"true"}:{},..."attributes"in s&&s.attributes},o.node.map(j=>{const[F,U,J]=j,A=s.nonScalingStroke?{[u("vector-effect")]:"non-scaling-stroke",...U}:U;return J?[F,A,J]:[F,A]})]}/**
|
|
77
|
-
* @license lucide-react v1.61.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/function Qh(o,s={}){return qh(o,{...s,attributeNames:{...s.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
|
|
82
|
-
* @license lucide-react v1.61.0 - ISC
|
|
83
|
-
*
|
|
84
|
-
* This source code is licensed under the ISC license.
|
|
85
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const Kh=o=>{for(const s in o)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},Yh=O.createContext({}),Gh=()=>O.useContext(Yh),Xh=O.forwardRef(({color:o,size:s,width:a,height:u,strokeWidth:f,absoluteStrokeWidth:p,nonScalingStroke:h,className:g="",children:v,iconNode:_=[],icon:E={node:_,aliases:[],size:24},...$},C)=>{const{size:P=24,strokeWidth:j=2,absoluteStrokeWidth:F=!1,nonScalingStroke:U=!1,color:J="currentColor",className:A=""}=Gh()??{},je=!!v||Kh($),[X,ne,fe=[]]=Qh(E,{color:o??J,width:a??s??P,height:u??s??P,strokeWidth:f??j,absoluteStrokeWidth:p??F,nonScalingStroke:h??U,className:gi(A,g),hasA11yProp:je,attributes:$});return O.createElement(X,{ref:C,...ne},[...fe.map(([I,V])=>O.createElement(I,V)),...Array.isArray(v)?v:[v]])});/**
|
|
87
|
-
* @license lucide-react v1.61.0 - ISC
|
|
88
|
-
*
|
|
89
|
-
* This source code is licensed under the ISC license.
|
|
90
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/function ge(o,s=[],a=[]){const u=typeof o=="string"?Wh(o,s,a):o,f=O.forwardRef(({className:p,...h},g)=>O.createElement(Xh,{ref:g,icon:u,className:p,...h}));return u.name&&(f.displayName=bh(u.name)),f}/**
|
|
92
|
-
* @license lucide-react v1.61.0 - ISC
|
|
93
|
-
*
|
|
94
|
-
* This source code is licensed under the ISC license.
|
|
95
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
-
*/const cd={name:"activity",size:24,node:[["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"}]]};cd.node;const Zh=ge(cd);/**
|
|
97
|
-
* @license lucide-react v1.61.0 - ISC
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the ISC license.
|
|
100
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
-
*/const dd={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};dd.node;const Jh=ge(dd);/**
|
|
102
|
-
* @license lucide-react v1.61.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const fd={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};fd.node;const em=ge(fd);/**
|
|
107
|
-
* @license lucide-react v1.61.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const pd={name:"bell",size:24,node:[["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"}]]};pd.node;const tm=ge(pd);/**
|
|
112
|
-
* @license lucide-react v1.61.0 - ISC
|
|
113
|
-
*
|
|
114
|
-
* This source code is licensed under the ISC license.
|
|
115
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
-
*/const hd={name:"book-open",size:24,node:[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]};hd.node;const nm=ge(hd);/**
|
|
117
|
-
* @license lucide-react v1.61.0 - ISC
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the ISC license.
|
|
120
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/const md={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};md.node;const al=ge(md);/**
|
|
122
|
-
* @license lucide-react v1.61.0 - ISC
|
|
123
|
-
*
|
|
124
|
-
* This source code is licensed under the ISC license.
|
|
125
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
-
*/const gd={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};gd.node;const rm=ge(gd);/**
|
|
127
|
-
* @license lucide-react v1.61.0 - ISC
|
|
128
|
-
*
|
|
129
|
-
* This source code is licensed under the ISC license.
|
|
130
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
-
*/const yd={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};yd.node;const _i=ge(yd);/**
|
|
132
|
-
* @license lucide-react v1.61.0 - ISC
|
|
133
|
-
*
|
|
134
|
-
* This source code is licensed under the ISC license.
|
|
135
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
-
*/const vd={name:"folder-plus",size:24,node:[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};vd.node;const om=ge(vd);/**
|
|
137
|
-
* @license lucide-react v1.61.0 - ISC
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the ISC license.
|
|
140
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
-
*/const wd={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]]};wd.node;const lm=ge(wd);/**
|
|
142
|
-
* @license lucide-react v1.61.0 - ISC
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the ISC license.
|
|
145
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/const kd={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};kd.node;const sm=ge(kd);/**
|
|
147
|
-
* @license lucide-react v1.61.0 - ISC
|
|
148
|
-
*
|
|
149
|
-
* This source code is licensed under the ISC license.
|
|
150
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/const xd={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};xd.node;const im=ge(xd);/**
|
|
152
|
-
* @license lucide-react v1.61.0 - ISC
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the ISC license.
|
|
155
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/const Sd={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};Sd.node;const am=ge(Sd);/**
|
|
157
|
-
* @license lucide-react v1.61.0 - ISC
|
|
158
|
-
*
|
|
159
|
-
* This source code is licensed under the ISC license.
|
|
160
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
-
*/const Nd={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};Nd.node;const um=ge(Nd);/**
|
|
162
|
-
* @license lucide-react v1.61.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/const _d={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};_d.node;const cm=ge(_d);/**
|
|
167
|
-
* @license lucide-react v1.61.0 - ISC
|
|
168
|
-
*
|
|
169
|
-
* This source code is licensed under the ISC license.
|
|
170
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
-
*/const jd={name:"octagon-alert",size:24,node:[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],aliases:["alert-octagon"]};jd.node;const dm=ge(jd);/**
|
|
172
|
-
* @license lucide-react v1.61.0 - ISC
|
|
173
|
-
*
|
|
174
|
-
* This source code is licensed under the ISC license.
|
|
175
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
-
*/const Ed={name:"octagon-x",size:24,node:[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-octagon"]};Ed.node;const fm=ge(Ed);/**
|
|
177
|
-
* @license lucide-react v1.61.0 - ISC
|
|
178
|
-
*
|
|
179
|
-
* This source code is licensed under the ISC license.
|
|
180
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
-
*/const Cd={name:"pause",size:24,node:[["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"}]]};Cd.node;const pm=ge(Cd);/**
|
|
182
|
-
* @license lucide-react v1.61.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const $d={name:"play",size:24,node:[["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"}]]};$d.node;const hm=ge($d);/**
|
|
187
|
-
* @license lucide-react v1.61.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const Td={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};Td.node;const mm=ge(Td);/**
|
|
192
|
-
* @license lucide-react v1.61.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const Pd={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};Pd.node;const gm=ge(Pd);/**
|
|
197
|
-
* @license lucide-react v1.61.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const Rd={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};Rd.node;const ym=ge(Rd);/**
|
|
202
|
-
* @license lucide-react v1.61.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const Ld={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};Ld.node;const zd=ge(Ld);/**
|
|
207
|
-
* @license lucide-react v1.61.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const Dd={name:"triangle-alert",size:24,node:[["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"}]],aliases:["alert-triangle"]};Dd.node;const Od=ge(Dd);/**
|
|
212
|
-
* @license lucide-react v1.61.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const Md={name:"user",size:24,node:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]};Md.node;const vm=ge(Md);/**
|
|
217
|
-
* @license lucide-react v1.61.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const Id={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Id.node;const wm=ge(Id),ji={hotfix:"Mark hotfix",unhotfix:"Unmark hotfix",hold:"Hold",release:"Release",approve:"Approve",decline:"Decline"},ll={hotfix:"hotfix",unhotfix:"hotfix",hold:"hold",release:"hold",approve:"approve",decline:"approve"},Ad=o=>o.repo_id??null,Fd=(o,s,a)=>`${o}:${ll[s]}:${a}`;function Ud(o,s){const a=Ad(o),u=Bd(o,s.pr)??s.headSha;if(!a||!u)return[];const f=p=>({key:Fd(a,p,s.pr),label:ji[p],body:{repo_id:a,action:p,pr:s.pr,head_sha:u}});return[f(s.hotfix?"unhotfix":"hotfix"),f(s.held?"release":"hold")]}function Hd(o,s){const a=Ad(o);if(!a)return[];const u=s.pr!==null?Bd(o,s.pr)??s.head_sha:null;return["approve","decline"].map(f=>({key:Fd(a,f,s.what),label:ji[f],body:{repo_id:a,action:f,pr:s.pr,head_sha:u,what:s.what}}))}function Bd(o,s){var a,u,f;return((f=(u=(a=o.github)==null?void 0:a.prs)==null?void 0:u.find(p=>p.number===s))==null?void 0:f.head_sha)??null}function Wd(o){return o.actions?o.actions.enabled?null:o.actions.reason??"Actions need a live coordinator.":"Actions need a live coordinator."}function Vd(o,s){var f;const a=Wd(o);return a||s.pr===null?a:(((f=o.coordinator)==null?void 0:f.queue)??[]).some(p=>(p==null?void 0:p.pr)===s.pr)?null:`PR #${s.pr} is not in the coordinator queue.`}function km(o,s){var f;const a=((f=o.coordinator)==null?void 0:f.requests)??[],u=ll[s.body.action];for(let p=a.length-1;p>=0;p--){const h=a[p],g=h.action;if(!(!(g in ll)||ll[g]!==u)&&(s.body.what!==void 0?h.what===s.body.what&&h.pr===s.body.pr:h.pr===s.body.pr))return h}return null}function bd(o){const s=ji[o.action]??o.action;switch(o.status){case"requested":return`${s}: requested. Waiting for the coordinator.`;case"done":return`${s}: done.`;case"rejected":return`${s}: rejected${o.reason?`: ${o.reason}`:""}.`;case"expired":return`${s}: expired before the coordinator read it.`;case"not_picked_up":return`${s}: not picked up. The coordinator has not read requests for 2 min.`}}const qd=o=>o==="done"?"good":o==="requested"?"muted":o==="not_picked_up"?"warn":"bad";function xm(o,s,a){const u=km(o,s);return(a==null?void 0:a.status)==="sending"?{text:`${s.label}: sending...`,tone:"muted"}:(a==null?void 0:a.status)==="refused"?{text:`${s.label}: refused. ${a.reason??""}`.trim(),tone:"bad"}:(a==null?void 0:a.status)==="sent"&&(!u||u.id!==a.requestId)?{text:`${s.label}: requested. Waiting for the coordinator.`,tone:"muted"}:u?{text:bd(u),tone:qd(u.status)}:null}function Ei({repo:o,specs:s,act:a,compact:u=!1,reason:f}){if(s.length===0)return null;const p=f!==void 0?f:Wd(o),h=new Set,g=[];for(const v of s){if(h.has(v.key))continue;h.add(v.key);const _=xm(o,v,a.local[v.key]);_&&g.push({key:v.key,..._})}return d.jsxs("div",{className:`action-row${u?" compact":""}`,"data-testid":"actions",children:[d.jsx("div",{className:"action-buttons",children:s.map(v=>{var _;return d.jsx("button",{type:"button",className:"btn btn-act",disabled:p!==null||((_=a.local[v.key])==null?void 0:_.status)==="sending",title:p??void 0,onClick:()=>a.run(v),"data-testid":`act-${v.body.action}`,children:v.label},`${v.key}:${v.body.action}`)})}),p&&!u&&d.jsx("span",{className:"action-reason","data-testid":"action-reason",children:p}),g.map(v=>d.jsx("span",{className:`request-status tone-${v.tone}`,"data-testid":"request-status",role:"status",children:v.text},v.key))]})}function Qd({item:o}){const s=o.recommendation,a=o.from?`from ${o.from}`:o.source==="coordinator"?"from the coordinator":"from the asking session";return d.jsxs("div",{className:"detail-block recommendation","data-testid":"recommendation",children:[d.jsxs("span",{className:"detail-label",children:["Recommendation, ",a]}),s?d.jsxs(d.Fragment,{children:[d.jsxs("span",{children:[d.jsx("strong",{className:`rec-${s.decision}`,children:s.decision==="approve"?"Approve":"Hold"}),s.reason?`: ${s.reason}`:""]}),s.evidence&&d.jsxs("span",{className:"rec-evidence",children:["Evidence: ",s.evidence]})]}):d.jsx("span",{children:"No recommendation was recorded. Read the source before you decide."}),d.jsx("span",{className:"rec-note",children:"A recommendation is not an approval. Only your click approves."})]})}function Kd(o){var s,a;try{(a=(s=navigator.clipboard)==null?void 0:s.writeText(o))==null||a.catch(()=>{})}catch{}}const Mc="caddis hub";function Sm(o){return o>0?`(${o}) ${Mc}`:Mc}function xt(o,s){if(!o)return"unknown";const a=Date.parse(o);if(Number.isNaN(a))return"unknown";const u=Math.max(0,Math.round((s-a)/1e3));if(u<5)return"just now";if(u<60)return`${u} s ago`;const f=Math.floor(u/60);if(f<60)return`${f} min ago`;const p=Math.floor(f/60);return p<24?`${p} h ago`:`${Math.floor(p/24)} d ago`}const Nm=(o,s)=>`Updated ${xt(o,s)}`;function Fr(o){if(!o)return"unknown";const s=new Date(o);return Number.isNaN(s.getTime())?"unknown":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const _m=300;function jm(o){const s=Number(o==null?void 0:o.advise_eur),a=Number(o==null?void 0:o.committed_eur),u=Number.isFinite(s)&&s>0?s:_m,f=Number.isFinite(a)?a:0;return{committedEur:f,adviseEur:u,advisory:(o==null?void 0:o.advisory)===!0||f>=u,pct:Math.min(100,Math.max(0,f/u*100))}}const Em=o=>Number.isInteger(o)?String(o):o.toFixed(2),Yd=o=>Object.values(o.sources??{}).some(s=>!s.ok||s.stale),Cm=500;function Gd(o){const s=o==null?void 0:o.github_rate;if(!s||typeof s!="object")return null;let a=null;for(const[u,f]of Object.entries(s)){const p=f,h=typeof(p==null?void 0:p.remaining)=="number"&&Number.isFinite(p.remaining)?p.remaining:NaN;Number.isNaN(h)||(!a||h<a.remaining)&&(a={account:u,remaining:h,resetAt:typeof(p==null?void 0:p.reset_at)=="string"?p.reset_at:null})}return a}function $m(o){const s=Gd(o);return s&&s.remaining<Cm?s:null}const Tm=o=>o instanceof HTMLElement&&/^(INPUT|TEXTAREA|SELECT)$/.test(o.tagName),Ic={j:"next",J:"next",ArrowDown:"next",k:"prev",K:"prev",ArrowUp:"prev",Enter:"open",c:"copy",C:"copy"};function Pm(o,s,a,u){if(a||s.ctrl||s.meta||s.alt)return null;const f=Object.hasOwn(Ic,o)?Ic[o]:null;return f==="open"&&u?null:f}function Rm(o,s,a){if(a<=0)return-1;const u=o==="next"?s+1:s-1;return Math.min(a-1,Math.max(0,u))}function Xd({page:o,head:s,stale:a,children:u}){return d.jsxs("header",{className:`page-head${a?" stale":""}`,"data-testid":"page-head","data-stale":a?"true":void 0,children:[d.jsxs("div",{className:"page-head-text",children:[d.jsx("h1",{className:"page-title page-eyebrow",children:o}),d.jsx("p",{className:"headline","data-testid":"headline",children:s.title}),d.jsx("p",{className:"headline-sub","data-testid":"headline-sub",children:s.sub})]}),u]})}var Lm=ld();const zm=150,Dm=100,tl=8,nl=8;function Om(o,s,a){const u=o.bottom+tl+s.height<=a.height-nl,f=o.top-tl-s.height>=nl,p=u||!f?"below":"above",h=p==="below"?o.bottom+tl:o.top-tl-s.height,g=Math.max(0,Math.min(h,a.height-s.height)),v=Math.max(0,a.width-s.width-nl),_=Math.max(nl,Math.min(o.left,v));return{top:g,left:Math.min(_,v),placement:p}}let qn=null;const Mm=o=>o==null||o===!1||o==="";function yi({content:o,children:s}){const a=O.useId(),u=Mm(o),[f,p]=O.useState(!1),[h,g]=O.useState(null),v=O.useRef(null),_=O.useRef(null),E=O.useRef(void 0),$=O.useCallback(()=>{window.clearTimeout(E.current),E.current=void 0},[]),C=O.useCallback(X=>{X&&(v.current=X),$(),E.current=window.setTimeout(()=>p(!0),zm)},[$]),P=O.useCallback(()=>{$(),E.current=window.setTimeout(()=>p(!1),Dm)},[$]),j=O.useCallback(()=>{$(),p(!0)},[$]),F=f&&!u,U=O.useCallback(()=>{$(),p(!1)},[$]);O.useEffect(()=>{if(F)return qn&&qn!==U&&qn(),qn=U,()=>{qn===U&&(qn=null)}},[F,U]),O.useEffect(()=>$,[$]),O.useEffect(()=>{u&&($(),p(!1))},[u,$]),O.useEffect(()=>{if(!F)return;const X=ne=>{ne.key==="Escape"&&($(),p(!1))};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[F,$]);const J=O.useCallback(()=>{const X=v.current,ne=_.current;if(!X||!ne)return;const fe=ne.getBoundingClientRect();g(Om(X.getBoundingClientRect(),{width:fe.width,height:fe.height},{width:window.innerWidth,height:window.innerHeight}))},[]);if(O.useLayoutEffect(()=>{if(!F){g(null);return}return J(),window.addEventListener("resize",J),window.addEventListener("scroll",J,!0),()=>{window.removeEventListener("resize",J),window.removeEventListener("scroll",J,!0)}},[F,o,J]),u)return s;const A=s.props,je=O.cloneElement(s,{onPointerEnter:X=>{var ne;(ne=A.onPointerEnter)==null||ne.call(A,X),f?j():C(X.currentTarget)},onPointerLeave:X=>{var ne;(ne=A.onPointerLeave)==null||ne.call(A,X),P()},onFocus:X=>{var ne;(ne=A.onFocus)==null||ne.call(A,X),f?j():C(X.currentTarget)},onBlur:X=>{var ne;(ne=A.onBlur)==null||ne.call(A,X),P()},"aria-describedby":F?a:A["aria-describedby"]});return d.jsxs(d.Fragment,{children:[je,F&&Lm.createPortal(d.jsx("div",{ref:_,id:a,role:"tooltip",className:"tip","data-testid":"tip","data-placement":h==null?void 0:h.placement,style:{position:"fixed",top:(h==null?void 0:h.top)??0,left:(h==null?void 0:h.left)??0,visibility:h?"visible":"hidden"},onPointerEnter:j,onPointerLeave:P,children:o}),document.body)]})}function Zd(o,s,a){if(!o)return"unknown";const u=new Date(o);if(Number.isNaN(u.getTime()))return"unknown";try{return new Intl.DateTimeFormat(s,{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:a,timeZoneName:"short"}).format(u)}catch{return u.toISOString()}}const Je=o=>Array.isArray(o)?o:[],Im={todo:"to do","in-progress":"in progress",done:"done",moved:"moved",blocked:"blocked"},rn=new Set(["done","not-needed"]),Qy="No roadmap or plan",Ky="/caddis:roadmap";function Yy(o){const s=o.also.length>0?`; also ${o.also.map(a=>`#${a}`).join(", ")}`:"";return`on branch (${o.draft?"draft ":""}PR #${o.pr}${s})`}const Ac=o=>typeof o=="number"&&Number.isInteger(o)&&o>0;function Am(o){const s=Se(o);return Ac(s.pr)?{pr:s.pr,draft:s.draft===!0,also:Je(s.also).filter(Ac)}:null}const Gy=[{key:"todo",label:"To do"},{key:"in-progress",label:"In progress"},{key:"blocked",label:"Blocked"},{key:"done",label:"Done"}];function Fm(o){const s={todo:[],"in-progress":[],blocked:[],done:[]};for(const a of o.rows)s[a.state==="moved"?"done":a.state].push(a);return s}function Xy(o){const s=Fm(o),a=o.rows.length,u=s.done.length;return{total:a,done:u,inProgress:s["in-progress"].length,blocked:s.blocked.length,todo:s.todo.length,pct:a===0?0:Math.round(u/a*100)}}function Zy(o){let s=null;for(const a of o)a.open===0||a.rows.length===0||(!s||(a.changedAt??-1)>(s.changedAt??-1))&&(s=a);return s?s.path:null}const Jy=10,Se=o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{},ee=o=>typeof o=="string"?o:"",It=o=>typeof o=="string"&&o?o:null,Ur=o=>typeof o=="number"&&Number.isInteger(o)?o:0,Jd=new Set(["todo","in-progress","done","moved","blocked"]);function Ci(o,s){const a=o.github;return[...new Set(Je(s).filter(u=>typeof u=="number"&&Number.isInteger(u)))].map(u=>{var h,g;const f=(h=a==null?void 0:a.prs)==null?void 0:h.find(v=>v.number===u),p=((g=a==null?void 0:a.merges)==null?void 0:g.some(v=>v.number===u))??!1;return{number:u,url:a!=null&&a.repo?`https://github.com/${a.repo}/pull/${u}`:null,stage:f?"in review":p?"merged":null,detail:f?`required checks ${f.required_state}`:null}})}function ef(o,s){const a=o.filter(u=>u.stage).map(u=>`#${u.number} ${u.stage}${u.detail?` (${u.detail})`:""}`);return a.length?a.join(", "):Im[s]}function ev(o){return[o.model&&`model ${o.model}`,o.lane&&`lane ${o.lane.split(" ")[0]}`,o.risk&&`risk ${o.risk}`].filter(Boolean).join(" · ")}function Um(o,s){const a=Se(s),u=ee(a.ref),f=u.lastIndexOf("#"),p=ee(a.state),h=Jd.has(ee(a.tile))?ee(a.tile):p==="done"?"done":"todo",g=ee(a.risk),v=Ci(o,a.prs);return{ref:u,plan:ee(a.plan)||(f>0?u.slice(0,f):""),num:Ur(a.num)||f>0&&Number(u.slice(f+1))||0,name:ee(a.name)||u,model:ee(a.model),lane:ee(a.lane),risk:g,highRisk:g.toLowerCase().includes("high"),tracker:ee(a.tracker),tile:h,prs:v,stage:ef(v,h)}}const Fc=(o,s)=>{const a=Se(s);return{milestone:o,type:ee(a.type),reason:ee(a.reason),check:ee(a.check)}};function tf(o,s){return rn.has(o)?"done":s.some(a=>a.type==="owner-gate")?"wait":s.length||o==="blocked"?"block":o==="in-progress"?"prog":"todo"}const wn=o=>o==="done"||o==="moved";function Hm(o,s){const a=Se(o),u=Se(a.lock),f=Se(a.stale_lock),p=Se(a.last_stop);let h=null;return ee(p.reason)==="running"?h="running now":ee(p.reason)&&(h=`${ee(p.reason)}${p.exit!==void 0&&p.exit!==null?` (exit ${String(p.exit)})`:""}`),{running:Object.keys(u).length?{batch:String(u.batch??""),since:It(u.started_utc),host:It(u.host),pid:u.pid===void 0?null:String(u.pid)}:null,staleBatch:Object.keys(f).length?String(f.batch??""):null,lastStop:h,lastStopAt:It(p.utc),stopReason:ee(p.reason)||null,errors:Je(a.errors).map(String),next:s}}function nf(o){const s=new Map(o.map(u=>[u.id,u.status])),a={now:[],next:[],later:[]};for(const u of o){if(rn.has(u.status))continue;const f=u.depends.every(p=>rn.has(s.get(p)??""));u.status==="in-progress"||f&&u.blockers.length===0?a.now.push(u):u.depends.some(p=>a.now.some(h=>h.id===p))?a.next.push(u):a.later.push(u)}return a}function Bm(o,s){const a=Se(s),u=Je(a.milestones).map(E=>{const $=Se(E),C=ee($.id),P=Je($.blockers).map(U=>Fc(C,U)),j=Je($.phases).map(U=>Um(o,U)),F=ee($.status);return{id:C,status:F,owner:ee($.owner)||"runner",target:It($.target),depends:Je($.depends).map(String),phases:j,blockers:P,done:j.filter(U=>wn(U.tile)).length,total:j.length,tone:tf(F,P)}}),f=u.flatMap(E=>E.phases),p=Se(a.next),h=Object.keys(p).length?`${ee(p.milestone)} ${ee(p.plan)}#${String(p.phase)}`:null,g=(Je(a.lanes).length?Je(a.lanes).map(String):[...new Set(f.map(E=>E.plan))]).map(E=>({plan:E,done:f.filter($=>$.plan===E&&wn($.tile)).length,total:f.filter($=>$.plan===E).length})),v=u.flatMap(E=>E.blockers),_=Array.isArray(a.waiting)?Je(a.waiting).map(E=>Fc(ee(Se(E).milestone),{...Se(E),type:"owner-gate"})):u.filter(E=>!rn.has(E.status)).flatMap(E=>E.blockers.filter($=>$.type==="owner-gate"));return{slug:ee(a.roadmap),kind:"roadmap",branch:It(a.branch),originCommit:It(a.origin_commit),milestones:u,lanes:g,gates:_,blockers:v,kpis:{phasesDone:f.filter(E=>wn(E.tile)).length,phasesTotal:f.length,milestonesDone:Ur(a.done)||u.filter(E=>rn.has(E.status)).length,milestonesTotal:Ur(a.total)||u.length,inProgress:f.filter(E=>E.tile==="in-progress").map(E=>E.ref),highRisk:f.filter(E=>E.highRisk).length,next:h??"none ready"},board:nf(u),runner:Hm(a.runner,h),detailError:It(a.detail_error)}}const Wm=o=>typeof o=="string"&&Jd.has(o)?o:"todo",rf=o=>{var s;return((s=o.trim().split(/\s+/)[0])==null?void 0:s.toLowerCase())??""};function $i(o){return(o.split("/").pop()??"").replace(/\.md$/,"")}function tv(o,s){var E,$;const a=$i(s.path),u=[];let f=!1;for(const C of s.rows){const P=((E=C.milestone)==null?void 0:E.trim())||null;P?u.includes(P)||u.push(P):f=!0}(f||u.length===0)&&(u.includes("Phases")||u.push("Phases"));const p=new Map(u.map(C=>[C,[]])),h=s.rows.map((C,P)=>{var X,ne;const j=C.key||rf(C.phase),F=Array.from(C.status.matchAll(/#(\d+)/g),fe=>Number(fe[1])),U=Ci(o,F),J=C.state,A={ref:`${a}#${j}`,plan:a,num:P+1,name:C.phase,model:"",lane:"",risk:"",highRisk:!1,tracker:C.status,tile:J,prs:U,stage:ef(U,J)},je=((X=C.milestone)==null?void 0:X.trim())||"Phases";return(ne=p.get(je))==null||ne.push(A),A}),g=u.map((C,P)=>{const j=p.get(C)??[],F=j.filter(A=>wn(A.tile)).length,U=j.length,J=U>0&&F===U?"done":j.some(A=>A.tile==="in-progress"||wn(A.tile))?"in-progress":"todo";return{id:C,status:J,owner:"",target:null,depends:P>0?[u[P-1]]:[],phases:j,blockers:[],done:F,total:U,tone:tf(J,[])}}),v=h.filter(C=>wn(C.tile)).length,_=h.length;return{slug:a,kind:"plan",branch:null,originCommit:null,milestones:g,lanes:[{plan:a,done:v,total:_}],gates:[],blockers:[],kpis:{phasesDone:v,phasesTotal:_,milestonesDone:g.filter(C=>rn.has(C.status)).length,milestonesTotal:g.length,inProgress:h.filter(C=>C.tile==="in-progress").map(C=>C.ref),highRisk:0,next:(($=h.find(C=>!wn(C.tile)))==null?void 0:$.name)??""},board:nf(g),runner:{running:null,staleBatch:null,lastStop:null,lastStopAt:null,stopReason:null,errors:[],next:null},detailError:null}}function nv(o,s,a){const u=o.milestones.flatMap(_=>_.phases).find(_=>_.ref===a);if(!u)return null;const f=s.find(_=>$i(_.path)===u.plan),p=a.lastIndexOf("#"),h=(p>=0?a.slice(p+1):a).toLowerCase(),g=!!(f!=null&&f.phases&&Object.prototype.hasOwnProperty.call(f.phases,h)),v=g?f==null?void 0:f.phases[h]:void 0;return{title:v!=null&&v.title?v.title:u.name,text:typeof(v==null?void 0:v.text)=="string"&&v.text.length>0?v.text:null,hasSection:g,planPath:(f==null?void 0:f.path)??null,key:h,phase:u}}function Vm(o){return Je(Se(o).plans).map(s=>Se(s)).filter(s=>!s.error&&!["done","closed","archived"].includes(ee(s.status).toLowerCase())).map(s=>{const a={};for(const[u,f]of Object.entries(Se(s.phases))){const p=Se(f);a[u]=typeof p.text=="string"?{title:ee(p.title),text:p.text}:{title:ee(p.title)}}return{path:ee(s.path),title:ee(s.title)||ee(s.path),rows:Je(s.tracker).map(u=>{const f=Se(u),p=ee(f.phase);return{phase:p,status:ee(f.status),state:Wm(f.state),key:ee(f.key)||rf(p),milestone:ee(f.milestone).trim()||null}}),phases:a,open:Ur(s.open_rows),changedAt:typeof s.changed_at=="number"&&Number.isFinite(s.changed_at)?s.changed_at:null,overlay:Am(s.overlay)}})}function bm(o){return Je(Se(Se(o.plans).done).plans).map(s=>Se(s)).filter(s=>!s.error&&ee(s.path)).map(s=>({path:ee(s.path),title:ee(s.title)||ee(s.path),closedAt:typeof s.closed_at=="number"&&Number.isFinite(s.closed_at)?s.closed_at:null,phases:Ur(s.phases),pr:typeof s.pr=="number"&&Number.isInteger(s.pr)&&s.pr>0?Ci(o,[s.pr])[0]??null:null}))}function Xn(o){const s=Se(o.roadmaps),a=It(o.error)??It(s.error),u=[],f=[];for(const _ of Je(s.roadmaps)){const E=Se(_);ee(E.error)?f.push({slug:ee(E.roadmap),error:ee(E.error)}):ee(E.roadmap)&&u.push(Bm(o,E))}const p=Vm(o.plans),h=new Set(u.flatMap(_=>_.lanes.map(E=>E.plan))),g=p.filter(_=>_.rows.length>0&&_.open>0&&!h.has($i(_.path))),v={roadmaps:u,errors:f,plans:p,otherPlans:g,repoError:a,done:bm(o)};return u.length||f.length?{mode:"roadmaps",...v}:a&&!o.roadmaps&&!o.plans?{mode:"error",...v}:p.length?{mode:"plans",...v}:{mode:a?"error":"none",...v}}const rv=o=>o.mode==="roadmaps"&&o.roadmaps.length===1&&o.errors.length===0;function of(o){const s=o.milestones.flatMap(h=>h.phases).filter(h=>h.tile==="blocked").length,{phasesDone:a,phasesTotal:u}=o.kpis,f=o.gates.length?"wait":s?"block":u&&a>=u?"done":o.kpis.inProgress.length||a?"prog":"todo",p=o.runner;return{slug:o.slug,branch:o.branch,milestonesDone:o.kpis.milestonesDone,milestonesTotal:o.kpis.milestonesTotal,phasesDone:a,phasesTotal:u,pct:u?Math.round(100*a/u):0,next:o.runner.next??"none ready",runner:p.running||p.stopReason==="running"?"running":p.stopReason?`stopped: ${p.stopReason}`:"idle",gates:o.gates.length,dots:o.milestones.map(h=>({id:h.id,status:h.status})),tone:f}}function qm(o){const s=[];for(const a of Xn(o).roadmaps){const u=new Map(a.milestones.map(f=>[f.id,f.status]));for(const f of a.milestones)rn.has(f.status)||!f.depends.every(p=>rn.has(u.get(p)??""))||f.blockers.filter(p=>p.type==="owner-gate").forEach((p,h)=>s.push({roadmap:a.slug,milestone:f.id,reason:p.reason,check:p.check,id:`${a.slug}:${f.id}:${h}`}))}return s}const Ti=o=>o.roadmaps.reduce((s,a)=>s+a.gates.length,0),Uc=(o,s)=>o.toLowerCase().includes(s);function ov(o,s){const a=s.trim().toLowerCase();if(!a)return null;const u={milestones:new Set,phases:new Set,count:0};for(const f of o.milestones){const p=Uc([f.id,f.status,f.owner,f.target??""].join(" "),a);let h=!1;for(const g of f.phases){const v=Uc([g.ref,g.name,g.model,g.lane,g.risk,g.tracker,g.prs.map(_=>`#${_.number}`).join(" ")].join(" "),a);(v||p)&&(u.phases.add(g.ref),h=!0),v&&(u.count+=1)}p&&(u.count+=1),(p||h)&&u.milestones.add(f.id)}return u}function Qm(o){const s=Ti(Xn(o));return s>0?`Roadmap · ${s} gate${s===1?"":"s"}`:"Roadmap"}const Km=o=>!o.sources.collector.ok||o.sources.collector.stale,Ym=24*3600;function Gm(o){if(!o)return"";const s=Se(o),a=typeof s.count=="number"?s.count:0;return s.state==="on"?a===1?" · 1 plan from a PR branch":a>1?` · ${a} plans from PR branches`:"":s.state==="off"?` · branch progress off (${ee(s.reason)||"unknown"})`:""}function lv(o,s){const a=Se(o),u=ee(a.source);if(!u)return null;if(u==="working-tree")return{text:"Plans from the working tree (no origin branch found)",old:!1};const f=ee(a.commit).slice(0,7),p=typeof a.commit_at=="number"?a.commit_at:null,h=typeof a.fetched_at=="number"?a.fetched_at:null;return{text:`Plans from ${u}`+(f?` @ ${f}`:"")+(p!==null?` · commit ${xt(new Date(p*1e3).toISOString(),s)}`:"")+(h===null?" · fetch time unknown":` · last fetch ${xt(new Date(h*1e3).toISOString(),s)}`)+Gm(a.overlay),old:h!==null&&s/1e3-h>Ym}}const lf="caddis.hub.roadmapView";function sv(o){if(!o)return"timeline";try{return o.getItem(lf)==="board"?"board":"timeline"}catch{return"timeline"}}function iv(o,s){if(o)try{o.setItem(lf,s)}catch{}}const vi={waiting:"Waiting","owner-gate":"Owner gate",blocked:"Blocked","blocked-merge":"Blocked merge",coordinator:"Coordinator",hub:"Hub"},Xm={collector:"Roadmap and relay data",agents:"Session list",github:"GitHub data",coordinator:"Coordinator data"},Kn=o=>Array.isArray(o)?o:[],$t=o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{},st=o=>typeof o=="string"&&o?o:null,Yn=o=>typeof o=="number"&&Number.isFinite(o)?o:null,kn=o=>{var s;return((s=o.github)==null?void 0:s.repo)??o.name},Hc=o=>o.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase(),ul=o=>o.agent&&o.agent!=="claude"?o.agent:null,St=(o,s)=>!!o&&!!s&&Hc(o)===Hc(s);function sf(o){var a;const s=[];for(const u of Kn((a=o.relays)==null?void 0:a.relays)){const f=$t(u),p=st(f.name),h=st(f.status);!p||!h||s.push({name:p,status:h,statusArg:st(f.status_arg)??"",updatedAt:st(f.updated_at),nextStep:st(f.next_step)})}return s}function af(o){return Array.isArray(o.owner_items)?o.owner_items:sf(o).filter(s=>s.status==="OWNER-GATE"&&s.statusArg).map(s=>({id:`gate:${s.name}:${s.statusArg}`,what:`owner gate ${s.statusArg} (${s.name})`,pr:null,head_sha:null,source:"relay",recommendation:null,from:s.name,since:s.updatedAt,relay:s.name}))}function Hr(o){var a;const s=[];for(const u of Kn((a=o.coordinator)==null?void 0:a.queue)){const f=$t(u),p=Yn(f.pr);if(p===null)continue;const h=[];for(const g of Kn(f.waits_on)){const v=$t(g),_=Yn(v.pr);_!==null&&h.push({repo:st(v.repo)??"",pr:_})}s.push({pr:p,headSha:st(f.head_sha)??"",title:st(f.title)??"",state:st(f.state)??"waiting",whyWaiting:st(f.why_waiting)??"",waitsOn:h,hotfix:f.hotfix===!0,held:f.held===!0,since:st(f.entered_ready_at)})}return s}function uf(o){var a;const s=(a=o.coordinator)==null?void 0:a.merging_now;return Yn(s)??Yn($t(s).pr)}function Zm(o){const s=new Set,a=[];for(const u of o)u.waiting_class!=="owner"||s.has(u.session_id)||(s.add(u.session_id),a.push(u));return a}function Jm(o,s){var p,h;let a=null;for(const g of o.repos){const v=kn(g);for(const _ of Kn((p=g.coordinator)==null?void 0:p.deploy_checks)){const E=$t(_),$=Date.parse(st(E.at)??""),C=Yn(E.pr);if(Number.isNaN($)||C===null)continue;const P=st(E.health);(!a||$>a.at)&&(a={at:$,label:`${v} #${C}`,ok:P==="ok"?!0:P==="failed"?!1:null,how:`health ${P??"unknown"}`})}for(const _ of((h=g.github)==null?void 0:h.merges)??[]){const E=Date.parse(_.merged_at);if(Number.isNaN(E)||a&&a.at>=E)continue;const $=_.runs??[],C=$.some(j=>j.conclusion==="failure"),P=$.length>0&&$.every(j=>j.conclusion==="success");a={at:E,label:`${v} #${_.number}`,ok:C?!1:P?!0:null,how:C?"deploy failed":P?"deploy pass":"merged"}}}if(!a)return null;const u=Math.max(0,Math.round((s-a.at)/6e4)),f=u<60?`${u} min ago`:u<1440?`${Math.floor(u/60)} h ago`:`${Math.floor(u/1440)} d ago`;return{label:a.label,sub:`${f} · ${a.how}`,ok:a.ok}}function eg(o,s,a){var p;let u=0;for(const h of o.repos)(p=h.coordinator)!=null&&p.responding&&(u+=Hr(h).filter(g=>g.state!=="blocked").length);const f=o.sessions.filter(h=>!["idle","done","unknown"].includes(h.status)).length;return{waitingOnYou:a.filter(h=>h.folder==="needs").length,blockedMerges:a.filter(h=>h.kind==="blocked-merge").length,inQueue:u,workingSessions:f,lastDeploy:Jm(o,s)}}function tg(o){const s=new Date(o);return Number.isNaN(s.getTime())?"unknown":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Bc=(o,s)=>{var a;return(a=o.github)!=null&&a.repo?`gh pr checks ${s} -R ${o.github.repo}`:`gh pr checks ${s}`};function ng(o,s){var h,g;const a=[],u=new Set,f=v=>{u.has(v.id)||(u.add(v.id),a.push(v))},p=v=>o.repos.find(_=>St(_.path,v));for(const v of Zm(o.sessions)){const _=p(v.repo_path),E=v.name??v.session_id.slice(0,8),$=ul(v);f({id:`waiting:${v.session_id}`,kind:"waiting",folder:"needs",repo:_?kn(_):"no repo",title:`${E}${$?` (${$})`:""} waits on ${v.waiting_for??"you"}`,why:"The session cannot continue until you answer.",next:"Open the session and answer.",cmd:E,since:v.waiting_since,source:"agents"})}for(const v of o.repos){const _=kn(v),E=sf(v);for(const j of af(v)){const F=j.relay?E.find(J=>J.name===j.relay):void 0,U=j.source==="relay"?(h=/^owner gate (\S+) /.exec(j.what))==null?void 0:h[1]:void 0;f({id:`owner:${v.path}:${j.id}`,kind:"owner-gate",folder:"approvals",repo:_,repoPath:v.path,title:U?`Gate ${U}: owner approval needed`:`${j.pr!==null?`PR #${j.pr}: `:""}${j.what}`,why:j.source==="relay"?"The plan stops at this owner gate. The next phase cannot start without you.":"This is on the owner-only list. Only your click approves it.",next:(F==null?void 0:F.nextStep)??(j.source==="relay"?"Read the relay, then decide.":"Read the recommendation, then decide."),cmd:j.relay?`.caddis/relay/${j.relay}.md`:j.what,since:j.since,owner:j,source:j.source==="relay"?"collector":"coordinator"})}for(const j of qm(v))f({id:`rmgate:${v.path}:${j.id}`,kind:"owner-gate",folder:"approvals",repo:_,repoPath:v.path,title:`Roadmap ${j.roadmap}, gate ${j.milestone}: ${j.reason}`,why:`Milestone ${j.milestone} of roadmap ${j.roadmap} waits for you. Everything before it is done.`,next:"Decide, then record the gate in the roadmap with /caddis:roadmap (a docs PR).",cmd:j.check||"/caddis:roadmap",since:null,source:"collector"});for(const j of E)j.status==="BLOCKED"&&j.statusArg.toLowerCase().startsWith("owner")&&f({id:`blocked:${v.path}:${j.name}`,kind:"blocked",folder:"needs",repo:_,repoPath:v.path,title:`Relay ${j.name}: STATUS: BLOCKED owner`,why:"The relay says the owner must decide before the next step.",next:j.nextStep??"Read the relay and decide.",cmd:`.caddis/relay/${j.name}.md`,since:j.updatedAt,source:"collector"});const $=!!v.coordinator&&v.coordinator.responding;for(const j of Hr(v))j.state==="blocked"&&f({id:`merge:${v.path}:${j.pr}`,kind:"blocked-merge",folder:"blocked",repo:_,repoPath:v.path,title:`PR #${j.pr}${j.title?` ${j.title}`:""}: blocked`,why:j.whyWaiting||"The coordinator skips it until it is unblocked.",next:"Ask the PR session to fix it, or hold the PR.",cmd:Bc(v,j.pr),since:j.since,queue:{pr:j.pr,headSha:j.headSha,hotfix:j.hotfix,held:j.held},source:"coordinator"});const C=new Map(Hr(v).map(j=>[j.pr,j]));for(const j of((g=v.github)==null?void 0:g.prs)??[]){if(j.draft||j.required_state!=="fail")continue;const F=j.checks.filter(J=>J.required&&J.conclusion==="failure").map(J=>J.name),U=C.get(j.number);f({id:`merge:${v.path}:${j.number}`,kind:"blocked-merge",folder:"blocked",repo:_,repoPath:v.path,title:`PR #${j.number}: required check ${F.length>0?`${F.join(", ")} `:""}failed`,why:$?"The coordinator skips it until the check passes at the head.":"This repo has no live coordinator, so its session merges its own PRs.",next:"Fix the check in the PR session.",cmd:Bc(v,j.number),since:j.updated_at,...U?{queue:{pr:U.pr,headSha:U.headSha,hotfix:U.hotfix,held:U.held}}:{},source:"github"})}const P=v.coordinator;P&&!P.responding&&P.heartbeat_at&&P.status!=="stopped"&&f({id:`coordinator:${v.path}`,kind:"coordinator",folder:"needs",repo:_,repoPath:v.path,title:`Coordinator not responding since ${tg(P.heartbeat_at)}`,why:"No heartbeat for 3 min. Its queue is frozen; the lane shows GitHub data.",next:"Check the coordinator session, then restart it.",cmd:"/caddis:coordinate",since:P.heartbeat_at,source:"coordinator"})}for(const v of["collector","agents","github","coordinator"]){const _=o.sources[v];_.ok||!_.stale||f({id:`hub:${v}`,kind:"hub",folder:"needs",repo:"hub",title:`${Xm[v]} has failed for over 3 min`,why:_.last_error??"The source has not answered.",next:"Read the error. The hub keeps the last good data.",cmd:"caddis hub status",since:_.last_ok_at})}return{items:a,tiles:eg(o,s,a)}}const rg=24*36e5,og=()=>({open:{},resolved:[]}),lg=(o,s)=>{var u;const a=(u=o.sources)==null?void 0:u[s];return!!a&&(!a.ok||a.stale)};function sg(o,s){var u;if(!s.repoPath)return!1;const a=(u=o.repos)==null?void 0:u.find(f=>St(f.path,s.repoPath));if(!a)return!1;if(s.source==="github"){const f=a.github;return!!f&&typeof f.error=="string"&&!Array.isArray(f.prs)}if(s.source==="collector"){const f=$t(a.relays);return(typeof a.error=="string"||typeof f.error=="string")&&!Array.isArray(f.relays)}return!1}function Wc(o,s,a){const u=new Set(s.map(p=>p.id)),f=s.map(p=>p.stale?{...p,stale:!1}:p);for(const[p,h]of Object.entries(o))u.has(p)||!h.source||!lg(a,h.source)&&!sg(a,h)||f.push({...h,stale:!0});return f}function ig(o,s,a){const u=new Map(s.map(p=>[p.id,p])),f=o.resolved.filter(p=>a-p.resolvedAt<rg&&!u.has(p.item.id));for(const[p,h]of Object.entries(o.open))!u.has(p)&&!f.some(g=>g.item.id===p)&&f.push({item:h,resolvedAt:a});return f.sort((p,h)=>h.resolvedAt-p.resolvedAt),{open:Object.fromEntries(u),resolved:f}}function Vc(o){const s=$t(o);return typeof s.id=="string"&&typeof s.title=="string"&&typeof s.kind=="string"&&typeof s.folder=="string"}function ag(o){const s=$t(o),a={};for(const[f,p]of Object.entries($t(s.open)))Vc(p)&&(a[f]=p);const u=[];for(const f of Kn(s.resolved)){const p=$t(f),h=Yn(p.resolvedAt);Vc(p.item)&&h!==null&&u.push({item:p.item,resolvedAt:h})}return{open:a,resolved:u}}const bc="Start a session in the folder: the hub adds it.";function cf(){return d.jsxs("section",{className:"first-run","data-testid":"first-run","aria-label":"Get started",children:[d.jsx("h2",{children:"No repos yet"}),d.jsxs("p",{children:[d.jsx(zd,{size:16,"aria-hidden":"true"})," Start a Claude Code session in a repo. The hub finds it by itself."]}),d.jsx("p",{children:"Or add a folder. The hub checks that it is a git repo."}),d.jsxs("button",{type:"button",className:"btn",disabled:!0,title:bc,"data-testid":"add-folder",children:[d.jsx(om,{size:16,"aria-hidden":"true"}),"Add a folder"]}),d.jsxs("span",{className:"first-run-reason",children:[" ",bc]})]})}function ug(o){const s=o.replace(/^#\/?/,"").split("/"),a=s[0];if(a==="overview")return{page:"overview"};if(a==="activity")return{page:"activity"};if(a==="guide")try{const u=s[1]==="details"||s[1]==="wall"||s[1]==="map"?s[1]:"poster",f=s[2]?decodeURIComponent(s[2]):null;return{page:"guide",tab:u,item:f}}catch{return{page:"inbox"}}if(a==="repo"&&s[1])try{const u=s[2]==="roadmap"||s[2]==="sessions"?s[2]:"flow",f=u==="roadmap"&&s[3]?decodeURIComponent(s[3]):null;return{page:"repo",id:decodeURIComponent(s[1]),tab:u,roadmap:f}}catch{return{page:"inbox"}}return{page:"inbox"}}const Br=o=>o.repo_id??o.path,sl=o=>`#/repo/${encodeURIComponent(o)}`;function df(o,s,a){return s==="flow"?sl(o):`${sl(o)}/${s}${s==="roadmap"&&a?`/${encodeURIComponent(a)}`:""}`}function cg(o,s){return o==="poster"?"#/guide":o==="wall"?"#/guide/wall":o==="map"?"#/guide/map":`#/guide/details${s?`/${encodeURIComponent(s)}`:""}`}function ff(o,s,a=5){const u=[];for(const p of o.repos){const h=p.github;for(const g of(h==null?void 0:h.merges)??[])u.push({key:`${p.path}:${g.number}`,repo:kn(p),pr:g.number,title:`#${g.number} ${g.title}`,url:h!=null&&h.repo?`https://github.com/${h.repo}/pull/${g.number}`:null,at:g.merged_at,age:xt(g.merged_at,s)})}const f=p=>{const h=Date.parse(p);return Number.isNaN(h)?0:h};return u.sort((p,h)=>f(h.at)-f(p.at)).slice(0,a)}function dg(o,s=6){const a=[];for(const u of o.repos)for(const f of Xn(u).roadmaps){const p=of(f),h=p.phasesTotal>0?` · ${p.phasesDone}/${p.phasesTotal} phases`:"";a.push({key:`${u.path}:${f.slug}`,slug:f.slug,repo:kn(u),href:df(Br(u),"roadmap",f.slug),label:`${p.milestonesDone} of ${p.milestonesTotal} milestones${h}`,segs:f.milestones.map(g=>({id:g.id,tone:g.tone}))})}return a.slice(0,s)}const fg=["busy","running","working"],Pi=o=>fg.includes(o),qc=(o,s,a)=>`${o} ${o===1?s:a}`;function pf(o,s,a){const u=s===0?"Nothing needs you.":s===1?"1 thing needs you.":`${s} things need you.`,f=o.sessions.filter(g=>Pi(g.status)).length,p=[qc(f,"agent working","agents working")],h=ff(o,a,1)[0];return h&&p.push(`last ship ${h.age} (${h.repo} #${h.pr})`),p.push(qc(o.repos.length,"repo watched","repos watched")),{title:u,sub:p.join(" · ")}}const pg={waiting:{Icon:vm,tone:"cyan"},"owner-gate":{Icon:gm,tone:"amber"},blocked:{Icon:em,tone:"violet"},"blocked-merge":{Icon:lm,tone:"pink"},coordinator:{Icon:dm,tone:"red"},hub:{Icon:Od,tone:"grey"},resolved:{Icon:al,tone:"grey"}};function hf({kind:o}){const{Icon:s,tone:a}=pg[o];return d.jsx("span",{className:`kind-tile tile-${a}`,"aria-hidden":"true",children:d.jsx(s,{size:17,strokeWidth:2.2})})}function hg({state:o,nowMs:s}){const a=dg(o),u=ff(o,s);return a.length===0&&u.length===0?null:d.jsxs("section",{className:"inbox-strips","aria-label":"Roadmaps and recent ships",children:[a.length>0&&d.jsxs("div",{className:"strip-card","data-testid":"strip-roadmaps",children:[d.jsx("h2",{className:"strip-title",children:"Roadmaps"}),a.map(f=>d.jsxs("div",{className:"strip-rm",children:[d.jsxs("div",{className:"strip-rm-head",children:[d.jsxs("span",{className:"strip-rm-name",children:[d.jsx("a",{href:f.href,children:f.slug})," ",d.jsx("span",{className:"mono strip-repo",children:f.repo})]}),d.jsx("span",{className:"strip-rm-label",children:f.label})]}),d.jsx("div",{className:"seg-bar",children:f.segs.map(p=>d.jsx("span",{className:`seg seg-${p.tone}`,title:`${p.id}: ${p.tone}`},p.id))})]},f.key))]}),u.length>0&&d.jsxs("div",{className:"strip-card strip-ships","data-testid":"strip-shipped",children:[d.jsx("h2",{className:"strip-title",children:"Shipped"}),u.map(f=>d.jsxs("div",{className:"ship-row",children:[d.jsx(al,{size:14,strokeWidth:2.6,"aria-hidden":"true",className:"ship-check"}),d.jsx("span",{className:"mono ship-repo",children:f.repo}),d.jsx("span",{className:"ship-title",children:f.url?d.jsx("a",{href:f.url,target:"_blank",rel:"noreferrer noopener",children:f.title}):f.title}),d.jsx("span",{className:"ship-age",children:f.age.replace(/ ago$/,"")})]},f.key))]})]})}const mg=[{id:"needs",label:"Needs you"},{id:"approvals",label:"Approvals"},{id:"blocked",label:"Blocked"},{id:"resolved",label:"Resolved"}];function Qc({iso:o,nowMs:s,focusable:a=!1}){const u=gg(o,s);return o?d.jsx(yi,{content:Zd(o),children:d.jsx("time",{dateTime:o,tabIndex:a?0:void 0,children:u})}):d.jsx(d.Fragment,{children:u})}const gg=(o,s)=>o?xt(o,s).replace(/ ago$/,""):"unknown";function yg(o,s){return o?s.owner?Hd(o,s.owner):s.queue?Ud(o,s.queue):[]:[]}function vg({state:o,nowMs:s,api:a,act:u}){const[f,p]=O.useState("needs"),[h,g]=O.useState(null),[v,_]=O.useState(!1),[E,$]=O.useState(!1),C=O.useRef(new Map),{model:P,resolved:j,read:F}=a,U={needs:P.items.filter(I=>I.folder==="needs").length,approvals:P.items.filter(I=>I.folder==="approvals").length,blocked:P.items.filter(I=>I.folder==="blocked").length,resolved:j.length},J=f==="resolved"?j.map(I=>({item:I.item,resolved:!0,since:new Date(I.resolvedAt).toISOString()})):P.items.filter(I=>I.folder===f).map(I=>({item:I,resolved:!1,since:I.since})),A=J.find(I=>I.item.id===h)??J[0]??null,je=I=>{p(I),g(null),_(!1)},X=I=>{g(I.item.id),_(!0),I.resolved||a.markRead(I.item.id)},ne=I=>{Kd(I.item.cmd),$(!0),window.setTimeout(()=>$(!1),1500)},fe=O.useRef({rows:J,sel:A,pickItem:X,copySel:ne});return fe.current={rows:J,sel:A,pickItem:X,copySel:ne},O.useEffect(()=>{const I=V=>{var Ie;const te=V.target,pe=te instanceof HTMLButtonElement||te instanceof HTMLAnchorElement,Ue=Pm(V.key,{ctrl:V.ctrlKey,meta:V.metaKey,alt:V.altKey},Tm(te),pe),{rows:ze,sel:Ee,pickItem:et,copySel:it}=fe.current;if(!(!Ue||!Ee)){if(Ue==="next"||Ue==="prev"){const we=Rm(Ue,ze.findIndex(G=>G.item.id===Ee.item.id),ze.length),M=ze[we];if(!M)return;g(M.item.id),(Ie=C.current.get(M.item.id))==null||Ie.scrollIntoView({block:"nearest"})}else Ue==="open"?et(Ee):it(Ee);V.preventDefault()}};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[]),d.jsxs(d.Fragment,{children:[d.jsx(Xd,{page:"Inbox",head:pf(o,P.items.length,s),stale:Yd(o),children:d.jsx("div",{className:"pill-group",role:"tablist","aria-label":"Folders",children:mg.map(({id:I,label:V})=>d.jsxs("button",{type:"button",role:"tab","aria-selected":f===I,className:`folder-btn pill${f===I?" sel":""}`,onClick:()=>je(I),"data-testid":`folder-${I}`,children:[V,d.jsx("strong",{className:"pill-count",children:U[I]})]},I))})}),o.repos.length===0&&d.jsx(cf,{}),a.notify.supported&&d.jsxs("div",{className:"notify-row",children:[d.jsxs("button",{type:"button",className:"btn",onClick:a.notify.enable,disabled:a.notify.enabled,children:[d.jsx(tm,{size:16,"aria-hidden":"true"}),a.notify.enabled?"Notifications on":"Notify me"]}),d.jsx("span",{children:a.notify.enabled?"One browser notification per new item.":"Opt in to a browser notification for each new item."})]}),d.jsxs("div",{className:`mailbox${v&&A?" show-detail":""}`,children:[d.jsxs("div",{className:"mailbox-list","data-testid":"inbox-list",children:[J.map(I=>{const V=!I.resolved&&!F.has(I.item.id),te=(A==null?void 0:A.item.id)===I.item.id;return d.jsxs("button",{ref:pe=>{pe?C.current.set(I.item.id,pe):C.current.delete(I.item.id)},type:"button",className:`item-btn${te?" sel":""}`,"aria-current":te?"true":void 0,onClick:()=>X(I),"data-testid":"inbox-item",children:[d.jsx("span",{className:`unread-dot${V?" on":""}`,role:"img","aria-label":V?"Unread":"Read"}),d.jsx(hf,{kind:I.resolved?"resolved":I.item.kind}),d.jsxs("span",{className:"item-main",children:[d.jsx("span",{className:"item-title",children:I.item.title}),d.jsxs("span",{className:"item-meta",children:[d.jsx("span",{children:I.resolved?"Resolved":vi[I.item.kind]}),d.jsx("span",{"aria-hidden":"true",children:"·"}),d.jsx("span",{className:"mono",children:I.item.repo}),!I.resolved&&I.item.stale&&d.jsx("span",{className:"chip chip-stale","data-testid":"stale-chip",title:"Its source is failing. Last good data is shown.",children:"stale"})]})]}),d.jsx("span",{className:"item-age",children:d.jsx(Qc,{iso:I.since,nowMs:s})})]},I.item.id)}),J.length===0&&d.jsxs("div",{className:"list-empty","data-testid":"inbox-empty",children:[d.jsx("strong",{children:f==="resolved"?"Nothing resolved in the last 24 h":"Nothing needs you"}),d.jsxs("div",{children:["Last check ",xt(o.generated_at,s),"."]})]})]}),A&&d.jsxs("article",{className:"mailbox-detail","data-testid":"inbox-detail","aria-label":"Item detail",children:[d.jsxs("button",{type:"button",className:"btn back-btn",onClick:()=>_(!1),children:[d.jsx(Jh,{size:16,"aria-hidden":"true"}),"Back"]}),d.jsxs("span",{className:"item-meta detail-meta",children:[d.jsx("span",{className:`chip chip-${A.resolved?"resolved":A.item.kind}`,children:A.resolved?"Resolved":vi[A.item.kind]}),d.jsx("span",{className:"mono",children:A.item.repo}),d.jsxs("span",{children:["· ",A.resolved?"resolved":"since"," ",d.jsx(Qc,{iso:A.since,nowMs:s,focusable:!0})]}),!A.resolved&&A.item.stale&&d.jsx("span",{className:"chip chip-stale",children:"stale"})]}),d.jsx("h2",{children:A.item.title}),d.jsxs("div",{className:"detail-block",children:[d.jsx("span",{className:"detail-label",children:"Why it matters"}),d.jsx("span",{children:A.resolved?"The source cleared. No action is needed.":A.item.why})]}),!A.resolved&&A.item.owner&&d.jsx(Qd,{item:A.item.owner}),d.jsxs("div",{className:"detail-block",children:[d.jsx("span",{className:"detail-label",children:"Next step"}),d.jsx("span",{children:A.resolved?"Nothing.":A.item.next}),d.jsx("code",{className:"cmd",children:A.item.cmd})]}),d.jsxs("div",{className:"detail-actions",children:[d.jsxs("button",{type:"button",className:"btn btn-primary",onClick:()=>ne(A),children:[E?d.jsx(al,{size:16,"aria-hidden":"true"}):d.jsx(_i,{size:16,"aria-hidden":"true"}),A.item.kind==="waiting"?"Copy session name":"Copy command"]}),!A.resolved&&(()=>{const I=o.repos.find(pe=>St(pe.path,A.item.repoPath)),V=yg(I,A.item);if(!I||V.length===0)return null;const te=A.item.owner?Vd(I,A.item.owner):void 0;return d.jsx(Ei,{repo:I,specs:V,act:u,reason:te})})()]}),d.jsxs("p",{className:"key-hints",children:[d.jsx("kbd",{children:"J"})," ",d.jsx("kbd",{children:"K"})," move · ",d.jsx("kbd",{children:"Enter"})," open · ",d.jsx("kbd",{children:"C"})," copy"]})]},A.item.id)]}),d.jsx(hg,{state:o,nowMs:s})]})}const mf="caddis-hub-inbox-history",Kc="caddis-hub-inbox-read",rl="caddis-hub-inbox-notified",Yc="caddis-hub-inbox-notify";function Gn(){try{return window.localStorage}catch{return null}}function gf(o,s){try{const a=s==null?void 0:s.getItem(o);return a?JSON.parse(a):null}catch{return null}}function yf(o,s,a){try{a==null||a.setItem(o,JSON.stringify(s))}catch{}}const wg=(o=Gn())=>{const s=gf(mf,o);return s?ag(s):og()},kg=(o,s=Gn())=>yf(mf,o,s);function ui(o,s=Gn()){const a=gf(o,s);return new Set(Array.isArray(a)?a.filter(u=>typeof u=="string"):[])}function ci(o,s,a=Gn()){yf(o,[...s].slice(-500),a)}const xg={items:[],tiles:{waitingOnYou:0,blockedMerges:0,inQueue:0,workingSessions:0,lastDeploy:null}},di=()=>typeof window<"u"&&"Notification"in window;function Sg(o,s){const a=O.useMemo(()=>o?ng(o,s):xg,[o,s]),[u,f]=O.useState(()=>wg()),p=O.useMemo(()=>{if(!o)return a;const C=Wc(u.open,a.items,o),P=j=>C.filter(j).length;return{items:C,tiles:{...a.tiles,waitingOnYou:P(j=>j.folder==="needs"),blockedMerges:P(j=>j.kind==="blocked-merge")}}},[o,a,u.open]),[h,g]=O.useState(()=>ui(Kc)),[v,_]=O.useState(()=>{var C;try{return di()&&((C=Gn())==null?void 0:C.getItem(Yc))==="1"&&Notification.permission==="granted"}catch{return!1}});O.useEffect(()=>{o&&f(C=>{const P=ig(C,Wc(C.open,a.items,o),Date.now());return kg(P),P})},[o,a]),O.useEffect(()=>{if(!v||!o)return;const C=ui(rl);let P=!1;for(const j of p.items)if(!C.has(j.id)){C.add(j.id),P=!0;try{new Notification(`caddis hub: ${j.repo}`,{body:j.title,tag:j.id})}catch{}}P&&ci(rl,C)},[v,o,p]);const E=O.useCallback(C=>{g(P=>{if(P.has(C))return P;const j=new Set(P).add(C);return ci(Kc,j),j})},[]),$=O.useCallback(()=>{di()&&Notification.requestPermission().then(C=>{var j;if(C!=="granted")return;try{(j=Gn())==null||j.setItem(Yc,"1")}catch{}const P=ui(rl);for(const F of p.items)P.add(F.id);ci(rl,P),_(!0)})},[p]);return{model:p,resolved:u.resolved,read:h,markRead:E,notify:{supported:di(),enabled:v,enable:$}}}function Ng(o,s){const a=Number.isNaN(o)?0:Math.min(1,Math.max(0,o)),u=2*Math.PI*s;return`${(u*a).toFixed(1)} ${u.toFixed(1)}`}function vf({fraction:o,size:s,stroke:a=5,tone:u,label:f,text:p}){const h=s/2,g=h-a/2-1.5;return d.jsxs("svg",{className:`ring ring-${u}`,width:s,height:s,viewBox:`0 0 ${s} ${s}`,role:"img","aria-label":f,children:[d.jsx("circle",{className:"ring-track",cx:h,cy:h,r:g,fill:"none",strokeWidth:a}),d.jsx("circle",{className:"ring-fill",cx:h,cy:h,r:g,fill:"none",strokeWidth:a,strokeLinecap:"round",strokeDasharray:Ng(o,g),transform:`rotate(-90 ${h} ${h})`}),p!==void 0&&d.jsx("text",{className:"ring-text",x:h,y:h,textAnchor:"middle",dominantBaseline:"central",children:p})]})}function wf({slot:o,size:s}){const a=jm(o),u=Em(a.adviseEur);return d.jsxs("div",{className:"spend-block",children:[d.jsx(vf,{fraction:a.pct/100,size:s,tone:a.advisory?"warn":"good",label:`agy spend in the last 24 h: EUR ${a.committedEur.toFixed(2)}. Note level EUR ${u}.`}),d.jsxs("span",{className:"spend-text",children:[d.jsxs("span",{className:"spend-line",children:[d.jsxs("span",{className:"spend-amount",children:["€",a.committedEur.toFixed(2)]})," ",d.jsx("span",{className:"spend-label",children:"agy, 24 h"})]}),d.jsxs("span",{className:`spend-note${a.advisory?" hot":""}`,children:["Note at €",u]})]})]})}const _g=["busy","running","working"],Gc=(o,s,a)=>`${o} ${o===1?s:a}`;function Ri(o,s){return o.sessions.some(a=>St(a.repo_path,s.path)&&_g.includes(a.status))}function jg(o,s){var f,p;const a=Ti(Xn(s));if(a>0)return Gc(a,"gate","gates");if(o.sessions.some(h=>St(h.repo_path,s.path)&&h.waiting_class==="owner"))return"waiting on you";if(Ri(o,s))return"working";const u=((p=(f=s.github)==null?void 0:f.prs)==null?void 0:p.length)??0;return u>0?Gc(u,"PR","PRs"):""}const Xc="No coordinator: each session merges its own PRs.",Eg="/caddis:coordinate",Cg="gh auth login -h github.com",kf=o=>{const s=o?new Date(o):null;return s&&!Number.isNaN(s.getTime())?s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"unknown"},Zc=o=>`Coordinator not responding since ${kf(o)}`,Jc=o=>`Coordinator stopped at ${kf(o)}`;function $g(o,s){const a=o?Date.parse(o):NaN;if(Number.isNaN(a))return"unknown";const u=Math.max(0,Math.round((s-a)/6e4));return u<60?`${u} min ago`:u<1440?`${Math.floor(u/60)} h ago`:`${Math.floor(u/1440)} d ago`}const Tg=(o,s,a)=>o==="waiting"?{sub:`waiting: ${s??"unknown"}`,tone:a==="peer"?"muted":"warn"}:o==="busy"||o==="running"||o==="working"?{sub:"busy",tone:"good"}:{sub:o,tone:"muted"},fi=(o,s)=>{const a=o.whyWaiting||o.state,u=[o.hotfix?"hotfix":"",o.held&&!a.includes("held")?"held":"",a].filter(Boolean);return{key:`q${o.pr}`,title:`#${o.pr} ${o.title}`.trim(),sub:s?"last known queue":u.join(" · "),tone:o.hotfix||o.held?"warn":"muted",grey:s,queue:{pr:o.pr,headSha:o.headSha,hotfix:o.hotfix,held:o.held}}};function Pg(o,s,a){var je,X,ne,fe,I;const u=s.coordinator,f=u?u.status==="stopped"?"stopped":u.responding?"coordinator":"down":"none",p=kn(s),h=o.sessions.filter(V=>St(V.repo_path,s.path)).map(V=>{const te=Tg(V.status,V.waiting_for,V.waiting_class),pe=ul(V);return{key:`s${V.session_id}`,title:V.name??V.session_id.slice(0,8),sub:pe?`${pe} · ${te.sub}`:te.sub,tone:te.tone}}),g=[],v=new Set;for(const V of((je=s.github)==null?void 0:je.prs)??[]){if(V.draft||V.required_state!=="fail")continue;const te=V.checks.filter(pe=>pe.required&&pe.conclusion==="failure").map(pe=>pe.name);v.add(V.number),g.push({key:`b${V.number}`,title:`#${V.number} ${V.title}`,sub:te.length>0?`${te.join(", ")} failed`:"required check failed",tone:"bad"})}const _=Hr(s),E=[],$=[];if(f==="coordinator"){const V=uf(s);for(const te of _)te.state==="blocked"?v.has(te.pr)||(v.add(te.pr),g.push({key:`b${te.pr}`,title:`#${te.pr} ${te.title}`.trim(),sub:te.whyWaiting||"blocked",tone:"bad"})):te.state==="merging"||te.pr===V?$.push(fi(te,!1)):E.push(fi(te,!1))}else if(f==="down"||f==="stopped")for(const V of _)V.state!=="blocked"&&E.push(fi(V,!0));const C=(((X=s.github)==null?void 0:X.merges)??[]).slice().sort((V,te)=>Date.parse(te.merged_at)-Date.parse(V.merged_at)).slice(0,3).map(V=>{const te=V.runs??[],pe=te.some(Ee=>Ee.conclusion==="failure"),Ue=te.length>0&&te.every(Ee=>Ee.conclusion==="success"),ze=$g(V.merged_at,a);return{key:`d${V.number}`,title:`#${V.number} ${V.title}`,sub:pe?`deploy failed · ${ze}`:Ue?`deployed ${ze}`:`merged ${ze}`,tone:pe?"bad":Ue?"good":"muted"}});let P=null;f==="none"?P=`${Xc} Start one with ${Eg}.`:f==="down"?P=`${Zc((u==null?void 0:u.heartbeat_at)??null)}. The lane shows GitHub data; the last known queue is greyed.`:f==="stopped"&&(P=`${Jc((u==null?void 0:u.stopped_at)??null)}. Each session merges its own PRs until one starts again (/caddis:coordinate). The last known queue is greyed.`);const j=(ne=o.sources)!=null&&ne.agents?!o.sources.agents.ok:!1,F=(fe=s.github)!=null&&fe.error?{account:s.github.account??null,error:s.github.error,command:Cg}:null;let U;f==="down"?U=Zc((u==null?void 0:u.heartbeat_at)??null):f==="stopped"?U=Jc((u==null?void 0:u.stopped_at)??null):U=[f==="none"?"No coordinator":"",j?"sessions unknown":h.length>0?`${h.length} session${h.length===1?"":"s"}`:"no sessions running",g.length>0?`${g.length} blocked`:"",E.length>0?`${E.length} waiting`:"",$.length>0?`${$.length} merging`:"",C.length>0?`${C.length} deployed`:""].filter(Boolean).join(" · ");const J=o.sessions.some(V=>St(V.repo_path,s.path)&&V.waiting_class==="owner"),A=f==="down"||s.error||(I=s.github)!=null&&I.error?"blocked":J?"attention":f==="none"||f==="stopped"?"idle":"ok";return{id:s.path,name:p,mode:f,tone:A,note:P,github:F,summary:U,columns:[{id:"sessions",title:"Sessions",cards:h,emptyText:j?'Sessions unknown: "claude agents" failed':"No sessions running"},{id:"blocked",title:"Blocked",cards:g,emptyText:"None"},{id:"waiting",title:"Waiting for its turn",cards:E,emptyText:f==="none"?Xc:"None"},{id:"merging",title:"Merging now",cards:$,emptyText:"None"},{id:"done",title:"Done and deployed",cards:C,emptyText:"None"}]}}const Qn=(o,s,a)=>`${o} ${o===1?s:a}`;function Rg(o,s,a){var g;if(a.mode==="down")return{status:"Coordinator down",statusTone:"bad"};if(a.mode==="stopped")return{status:"Coordinator stopped",statusTone:"bad"};const u=Ti(Xn(s));if(u>0)return{status:Qn(u,"gate","gates"),statusTone:"warn"};const f=o.sessions.filter(v=>St(v.repo_path,s.path)&&v.waiting_class==="owner").length;if(f>0)return{status:`${f} waiting on you`,statusTone:"warn"};const p=((g=s.github)==null?void 0:g.prs)??[],h=p.filter(v=>v.required_state==="fail").length;return h>0?{status:Qn(h,"PR failing","PRs failing"),statusTone:"bad"}:Ri(o,s)?{status:"Agent working",statusTone:"good"}:p.length>0?{status:Qn(p.length,"PR waiting","PRs waiting"),statusTone:"muted"}:{status:"Quiet",statusTone:"muted"}}function Lg(o){const s=Xn(o),a=s.roadmaps[0];if(a){const f=of(a);return`Roadmap ${f.slug}: ${f.milestonesDone} of ${f.milestonesTotal} milestones`}const u=s.plans.filter(f=>f.open>0).length;return u>0?Qn(u,"open plan","open plans"):"No roadmap"}function zg(o){var a;let s=null;for(const u of((a=o.github)==null?void 0:a.merges)??[])!Number.isNaN(Date.parse(u.merged_at))&&(!s||Date.parse(u.merged_at)>Date.parse(s))&&(s=u.merged_at);return s}function Dg(o,s){return o.repos.map(a=>{var C;const u=Pg(o,a,s),f=u.columns.find(P=>P.id==="sessions"),p=o.sessions.filter(P=>St(P.repo_path,a.path)&&Pi(P.status)).length,h=f&&f.cards.length>0?`${Qn(f.cards.length,"session","sessions")} · ${p} busy`:(f==null?void 0:f.emptyText)??"",g=((C=a.github)==null?void 0:C.prs)??[],v=g.length,_=g.filter(P=>P.required_state==="pass").length,E=zg(a),$=Br(a);return{id:$,name:a.name,href:sl($),tone:u.tone,mode:u.mode,...Rg(o,a,u),line:Lg(a),sessions:h,note:u.note,github:u.github,prsOpen:v,prsPassing:_,ringLabel:v>0?`${_}/${v}`:"0",foot:`${v>0?Qn(v,"open PR","open PRs"):"No open PRs"} · ${E?`shipped ${xt(E,s)}`:"never shipped"}`}})}function Og(o){const s=[],a=[];for(const u of o.sessions){const f=o.repos.find(g=>St(g.path,u.repo_path)),p=(u.repo_path??"").replace(/[\\/]+$/,"").split(/[\\/]/).pop()??"",h={key:u.key,name:u.name??u.session_id.slice(0,8),repo:(f==null?void 0:f.name)??p,status:u.status};(Pi(u.status)?s:a).push(h)}return{busy:s,other:a}}const Mg=3,pi=5,Ig=(o,s)=>o?xt(o,s).replace(/ ago$/,""):null;function Ag(o){return o.prsOpen===0?"muted":o.prsPassing===o.prsOpen?"good":"prog"}function Fg({item:o,primary:s,nowMs:a}){const[u,f]=O.useState(!1),p=Ig(o.since,a),h=o.kind==="waiting"?"Copy session name":"Copy command";return d.jsxs("li",{className:"ov-need","data-testid":"ov-need",children:[d.jsx(hf,{kind:o.kind}),d.jsxs("span",{className:"ov-need-main",children:[d.jsx("span",{className:"ov-need-title",children:o.title}),d.jsxs("span",{className:"ov-need-meta",children:[vi[o.kind]," · ",d.jsx("span",{className:"mono",children:o.repo}),p?` · ${p}`:""]})]}),d.jsxs("button",{type:"button",className:`btn ${s?"btn-primary":"btn-ghost"}`,onClick:()=>{Kd(o.cmd),f(!0),window.setTimeout(()=>f(!1),1500)},children:[u?d.jsx(al,{size:15,"aria-hidden":"true"}):d.jsx(_i,{size:15,"aria-hidden":"true"}),u?"Copied":h]})]})}function Ug({c:o}){return d.jsxs("article",{className:`repo-card ${o.mode}`,"data-testid":"repo-card",children:[d.jsxs("div",{className:"repo-card-head",children:[d.jsxs("span",{className:"repo-card-id",children:[d.jsx("a",{className:"repo-card-link",href:o.href,children:o.name}),d.jsx("span",{className:`repo-card-status tone-${o.statusTone}`,"data-testid":"repo-card-status",children:o.status})]}),d.jsx(vf,{fraction:o.prsOpen>0?o.prsPassing/o.prsOpen:0,size:48,text:o.ringLabel,tone:Ag(o),label:o.prsOpen>0?`${o.prsPassing} of ${o.prsOpen} open PRs pass required checks`:"No open PRs"})]}),d.jsx("p",{className:"repo-card-line","data-testid":"repo-card-line",children:o.line}),d.jsx("p",{className:"repo-card-sessions","data-testid":"repo-card-sessions",children:o.sessions}),o.note&&d.jsx("p",{className:"lane-note repo-card-note","data-testid":"repo-card-note",children:o.note}),o.github&&d.jsxs("div",{className:"lane-note gh-fail","data-testid":"gh-fail",role:"status",children:["GitHub access failed for ",o.github.account?`account ${o.github.account}`:"this repo",o.github.error?` (${o.github.error})`:"",". Sign in again with ",d.jsx("code",{className:"cmd",children:o.github.command})]}),d.jsx("p",{className:"repo-card-foot",children:o.foot})]})}function Hg({state:o,nowMs:s,api:a}){const u=a.model.items,f=Og(o),p=Dg(o,s),h=f.other.slice(0,pi);return d.jsxs(d.Fragment,{children:[d.jsx(Xd,{page:"Overview",head:pf(o,u.length,s),stale:Yd(o)}),o.repos.length===0&&d.jsx(cf,{}),d.jsxs("div",{className:"ov-top",children:[d.jsxs("section",{className:"ov-needs glass-panel","aria-label":"Needs you","data-testid":"ov-needs",children:[d.jsxs("div",{className:"ov-panel-head",children:[d.jsx("h2",{children:"Needs you"}),d.jsxs("a",{className:"ov-all",href:"#/inbox",children:["All ",u.length," items"]})]}),u.length===0?d.jsx("p",{className:"ov-empty",children:"Nothing needs you."}):d.jsx("ul",{className:"ov-need-list",children:u.slice(0,Mg).map((g,v)=>d.jsx(Fg,{item:g,primary:v===0,nowMs:s},g.id))})]}),d.jsxs("section",{className:"ov-live glass-panel","aria-label":"Live now","data-testid":"ov-live",children:[d.jsx("div",{className:"ov-panel-head",children:d.jsx("h2",{children:"Live now"})}),f.busy.length===0?d.jsx("p",{className:"ov-empty",children:"No agent is working."}):f.busy.map(g=>d.jsxs("div",{className:"live-row","data-testid":"live-session",children:[d.jsxs("span",{className:"live-mark","aria-hidden":"true",children:[d.jsx("span",{className:"live-orb"}),d.jsx("span",{className:"live-core",children:d.jsx(zd,{size:20})})]}),d.jsxs("span",{className:"live-text",children:[d.jsx("span",{className:"live-name",children:g.name}),d.jsxs("span",{className:"live-where",children:["Working in ",g.repo]})]})]},g.key)),h.length>0&&d.jsxs("ul",{className:"live-idle",children:[h.map(g=>d.jsxs("li",{"data-testid":"idle-session",children:[d.jsx("span",{className:"live-idle-dot","aria-hidden":"true"}),d.jsx("span",{className:"live-idle-name",children:g.name}),d.jsx("span",{className:"mono live-idle-repo",children:g.repo})]},g.key)),f.other.length>pi&&d.jsxs("li",{className:"live-more",children:["+",f.other.length-pi," more"]})]}),d.jsx("div",{className:"ov-spend",children:d.jsx(wf,{slot:o.spend,size:44})})]})]}),d.jsxs("section",{className:"ov-repos","aria-label":"Repos",children:[d.jsxs("div",{className:"ov-repos-head",children:[d.jsx("h2",{children:"Repos"}),d.jsxs("span",{children:[p.length," watched"]})]}),d.jsx("div",{className:"repo-cards","data-testid":"repo-cards",children:p.map(g=>d.jsx(Ug,{c:g},g.id))})]})]})}const Bg=["D1","D2","D3","D4","D5"],il=o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{};function Wg(o){const s=(a,u)=>{if(a.state==="merging")return[0,0,0,"",u];const f=a.hotfix?1:2;return a.state==="ready"&&!a.held?[f,0,a.since?0:1,a.since??"",u]:[f,1,0,"",u]};return o.map((a,u)=>({q:a,r:s(a,u)})).sort((a,u)=>{for(let f=0;f<a.r.length;f++){const p=a.r[f],h=u.r[f];if(p<h)return-1;if(p>h)return 1}return 0}).map(a=>a.q)}function xf(o){const s=o.coordinator;return s?s.status==="stopped"?"stopped":s.responding?"live":"down":"none"}function Vg(o){const s=o.coordinator,a=typeof il(s==null?void 0:s.coordinator_session).name=="string"?String(il(s==null?void 0:s.coordinator_session).name):null;switch(xf(o)){case"none":return"No coordinator: each session merges its own PRs. Start one with /caddis:coordinate.";case"stopped":return`Coordinator stopped at ${Fr(s==null?void 0:s.stopped_at)}. The last known queue is greyed.`;case"down":return`Coordinator not responding since ${Fr(s==null?void 0:s.heartbeat_at)}. The last known queue is greyed.`;case"live":return`Coordinator ${a??""} live, heartbeat ${Fr(s==null?void 0:s.heartbeat_at)}.`.replace(" "," ")}}function bg(o){var a;const s=[];for(const u of Kn((a=o.coordinator)==null?void 0:a.deploy_checks)){const f=il(u);if(typeof f.pr!="number")continue;const p=il(f.checks),h=Object.keys(p).length?Bg.map(g=>({name:g,mark:typeof p[g]=="string"?String(p[g]):"skip"})):null;s.push({pr:f.pr,mergeSha:typeof f.merge_sha=="string"?f.merge_sha.slice(0,10):"",run:typeof f.deploy_run=="number"?f.deploy_run:null,health:typeof f.health=="string"?f.health:"unknown",at:typeof f.at=="string"?f.at:null,checks:h,reason:typeof f.reason=="string"&&f.reason?f.reason:null})}return s.reverse()}function qg(o,s){var h,g;const a=xf(s),u=uf(s),f=Wg(Hr(s)),p=new Set(f.map(v=>v.pr));return{mode:a,statusText:Vg(s),grey:a==="stopped"||a==="down",merging:a==="live"?u:null,queue:f.map((v,_)=>({...v,position:_+1,merging:v.state==="merging"||v.pr===u})),deploys:bg(s),owner:af(s),unqueued:(((h=s.github)==null?void 0:h.prs)??[]).filter(v=>!v.draft&&!p.has(v.number)).map(v=>({number:v.number,title:v.title,requiredState:v.required_state,headSha:v.head_sha})),requests:[...((g=s.coordinator)==null?void 0:g.requests)??[]].reverse()}}const Qg=O.createContext(null),ed={waiting:0,busy:1,working:1,idle:2},Kg=o=>({key:o.key,name:o.name??o.session_id,kind:o.kind,agent:ul(o),status:o.status,waitingFor:o.waiting_for,waitingClass:o.waiting_class,since:o.waiting_since,copies:o.copies,copyWarning:o.copies>1?`${o.copies} copies`:null});function Sf(o,s){const a=o.sources.agents,u=!a.ok&&a.last_ok_at===null,f=o.sessions.filter(h=>St(h.repo_path,s.path)&&(!u||ul(h)!==null)).map(Kg).sort((h,g)=>+(g.waitingClass==="owner")-+(h.waitingClass==="owner")||(ed[h.status]??3)-(ed[g.status]??3)||h.name.localeCompare(g.name));return{unknown:u&&f.length===0,error:a.ok?null:a.last_error,rows:f}}function Yg(o,s){const a=Sf(o,s).rows.length;return a>0?`Sessions · ${a}`:"Sessions"}async function Gg(o){try{return await navigator.clipboard.writeText(o),!0}catch{return!1}}const td={owner:"you",peer:"a peer session"};function Xg({state:o,repo:s,nowMs:a}){const u=Sf(o,s),[f,p]=O.useState(null),h=async(g,v)=>{await Gg(v)&&(p(g),window.setTimeout(()=>p(_=>_===g?null:_),2e3))};return d.jsxs("div",{className:"flow","data-testid":"sessions",children:[u.error&&d.jsxs("div",{className:"lane-note","data-testid":"sessions-error",children:[u.unknown?"Sessions unknown: ":"The last sessions read failed: ",u.error]}),u.unknown?d.jsx("p",{className:"col-empty",children:"The hub could not read the session list. PRs and deploys are on the Flow tab."}):u.rows.length===0?d.jsx("p",{className:"col-empty","data-testid":"sessions-empty",children:"No sessions running. PRs and deploys are on the Flow tab."}):d.jsx("ul",{className:"flow-list","data-testid":"sessions-table","aria-label":"Sessions of this repo",children:u.rows.map(g=>d.jsxs("li",{className:"flow-row","data-testid":"session-row",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsx("span",{className:"flow-title mono",children:g.name}),g.agent&&d.jsx("span",{className:"chip tone-muted","data-testid":"session-agent",children:g.agent}),d.jsx(yi,{content:g.waitingFor?`${g.status}: waiting for ${g.waitingClass?td[g.waitingClass]:"an answer"}: ${g.waitingFor}`:g.status,children:d.jsx("span",{className:`chip tone-${g.status==="waiting"?"warn":g.status==="busy"||g.status==="working"?"good":"muted"}`,tabIndex:0,children:g.status})}),g.copyWarning&&d.jsx("span",{className:"chip tone-bad","data-testid":"session-copies",children:g.copyWarning}),d.jsxs("button",{type:"button",className:"btn btn-act",onClick:()=>void h(g.key,g.name),"aria-label":`Copy session name ${g.name}`,children:[d.jsx(_i,{size:14,"aria-hidden":"true"}),f===g.key?"Copied":"Copy name"]})]}),d.jsxs("span",{className:"flow-why",children:[g.kind,g.waitingFor?` · waiting for ${g.waitingClass?td[g.waitingClass]:"an answer"}: ${g.waitingFor}`:"",g.since&&d.jsxs(d.Fragment,{children:[" · since ",d.jsx(yi,{content:Zd(g.since),children:d.jsx("time",{dateTime:g.since,tabIndex:0,children:xt(g.since,a)})})]})]}),g.copyWarning&&d.jsxs("span",{className:"flow-why tone-bad",children:["The same session runs in ",g.copies," windows. Close the extra copy."]})]},g.key))})]})}const Zg=O.lazy(()=>Si(()=>import("./RoadmapTab-C84_hqg3.js"),[])),Jg=[{id:"flow",label:"Flow"},{id:"roadmap",label:"Roadmap"},{id:"sessions",label:"Sessions"}],ey={ready:"good",merging:"good",blocked:"bad",held:"warn",ci:"muted",waiting:"muted"};function ty({repo:o,item:s,grey:a,act:u}){return d.jsxs("li",{className:`flow-row${a?" grey":""}`,"data-testid":"queue-item",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsx("span",{className:"flow-pos mono",children:s.position}),d.jsxs("span",{className:"flow-title",children:["#",s.pr," ",s.title]})]}),d.jsxs("div",{className:"flow-flags",children:[d.jsx("span",{className:`chip tone-${ey[s.state]??"muted"}`,children:s.state}),s.merging&&d.jsx("span",{className:"chip tone-good",children:"merging now"}),s.hotfix&&d.jsx("span",{className:"chip tone-warn","data-testid":"flag-hotfix",children:"hotfix"}),s.held&&d.jsx("span",{className:"chip tone-warn","data-testid":"flag-held",children:"held"})]}),s.whyWaiting&&d.jsx("span",{className:"flow-why",children:s.whyWaiting}),s.waitsOn.length>0&&d.jsxs("span",{className:"flow-why",children:["Waits on ",s.waitsOn.map(f=>`${f.repo.replace("__","/")}#${f.pr}`).join(", ")]}),d.jsx(Ei,{repo:o,specs:Ud(o,{pr:s.pr,headSha:s.headSha,hotfix:s.hotfix,held:s.held}),act:u})]})}function ny({state:o,repo:s,nowMs:a,act:u}){const f=qg(o,s);return d.jsxs("div",{className:"flow","data-testid":"flow",children:[d.jsx("div",{className:`lane-note flow-status ${f.mode}`,"data-testid":"flow-status",children:f.statusText}),f.owner.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Owner approvals",children:[d.jsxs("h2",{className:"flow-h",children:["Needs your approval · ",f.owner.length]}),d.jsx("ul",{className:"flow-list",children:f.owner.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"owner-item",children:[d.jsxs("span",{className:"flow-title",children:[p.pr!==null?`#${p.pr} `:"",p.what]}),d.jsx(Qd,{item:p}),d.jsx(Ei,{repo:s,specs:Hd(s,p),act:u,reason:Vd(s,p)})]},p.id))})]}),d.jsxs("section",{className:"flow-section","aria-label":"Merge queue",children:[d.jsxs("h2",{className:"flow-h",children:["Merge queue · ",f.queue.length,f.grey?" · last known":""]}),f.mode==="none"?d.jsx("p",{className:"col-empty",children:"No queue: this repo has no coordinator."}):f.queue.length===0?d.jsx("p",{className:"col-empty",children:"The queue is empty."}):d.jsx("ol",{className:"flow-list",children:f.queue.map(p=>d.jsx(ty,{repo:s,item:p,grey:f.grey,act:u},p.pr))})]}),d.jsxs("section",{className:"flow-section","aria-label":"Deploy checks",children:[d.jsx("h2",{className:"flow-h",children:"Deploy checks"}),f.deploys.length===0?d.jsx("p",{className:"col-empty",children:"No deploy check recorded."}):d.jsx("ul",{className:"flow-list",children:f.deploys.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"deploy-check",children:[d.jsxs("div",{className:"flow-row-head",children:[d.jsxs("span",{className:"flow-title",children:["#",p.pr," ",d.jsx("span",{className:"mono",children:p.mergeSha})]}),d.jsxs("span",{className:`chip tone-${p.health==="ok"?"good":p.health==="failed"?"bad":"muted"}`,children:["health ",p.health]})]}),p.checks&&d.jsx("div",{className:"flow-flags","data-testid":"deploy-marks",children:p.checks.map(h=>d.jsxs("span",{className:`chip tone-${h.mark==="pass"?"good":h.mark==="fail"?"bad":"muted"}`,children:[h.name," ",h.mark]},h.name))}),d.jsxs("span",{className:"flow-why",children:[p.run!==null?`run ${p.run} · `:"",xt(p.at,a),p.reason?` · ${p.reason}`:""]})]},`${p.pr}-${p.mergeSha}`))})]}),f.unqueued.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Open PRs not in the queue",children:[d.jsxs("h2",{className:"flow-h",children:["Open PRs not in the queue · ",f.unqueued.length]}),d.jsx("ul",{className:"flow-list",children:f.unqueued.map(p=>d.jsxs("li",{className:"flow-row","data-testid":"unqueued-pr",children:[d.jsxs("span",{className:"flow-title",children:["#",p.number," ",p.title]}),d.jsxs("span",{className:`flow-why tone-${p.requiredState==="fail"?"bad":p.requiredState==="pass"?"good":"muted"}`,children:["required checks ",p.requiredState]})]},p.number))})]}),f.requests.length>0&&d.jsxs("section",{className:"flow-section","aria-label":"Your requests",children:[d.jsx("h2",{className:"flow-h",children:"Your requests"}),d.jsx("ul",{className:"flow-list",children:f.requests.slice(0,10).map(p=>d.jsxs("li",{className:"flow-row","data-testid":"request-log",children:[d.jsx("span",{className:`tone-${qd(p.status)}`,children:bd(p)}),d.jsxs("span",{className:"flow-why",children:[p.pr!==null?`PR #${p.pr}`:p.what," · ",xt(p.created_at,a)]})]},p.id))})]})]})}function ry({state:o,repo:s,nowMs:a,act:u,tab:f,roadmap:p}){const h=Br(s);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"page-header",children:[d.jsx("h1",{className:"page-title",children:kn(s)}),d.jsx("span",{className:"page-subtitle",children:s.name})]}),d.jsx("nav",{className:"repo-tabs",role:"tablist","aria-label":"Repo views",children:Jg.map(g=>d.jsx("a",{role:"tab","aria-selected":f===g.id,"aria-current":f===g.id?"page":void 0,className:`folder-btn${f===g.id?" sel":""}`,href:df(h,g.id),"data-testid":`tab-${g.id}`,children:g.id==="roadmap"?Qm(s):g.id==="sessions"?Yg(o,s):g.label},g.id))}),f==="flow"&&d.jsx(ny,{state:o,repo:s,nowMs:a,act:u}),f==="roadmap"&&d.jsx(O.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(Qg.Provider,{value:Ah,children:d.jsx(Zg,{repo:s,slug:p,stale:Km(o),lastOkAt:o.sources.collector.last_ok_at},p??"")})}),f==="sessions"&&d.jsx(Xg,{state:o,repo:s,nowMs:a})]})}const oy=1e4,ly=2e3;function sy(o,s){return o&&s&&s!==o?s:null}let wi=null;const ki=new Set,iy=o=>(ki.add(o),()=>ki.delete(o));function ay(){return O.useSyncExternalStore(iy,()=>wi)}function uy(){const[o,s]=O.useState(null),[a,u]=O.useState(null),[f,p]=O.useState(!0),h=O.useRef(void 0),g=O.useRef(!0),v=O.useRef(null),_=O.useCallback(async()=>{var $,C;try{const P=await Ih();if(!g.current)return;s(P),u(null),v.current??(v.current=(($=P.versions)==null?void 0:$.hub)||null);const j=sy(v.current,(C=P.versions)==null?void 0:C.hub);j&&wi===null&&(wi=j,ki.forEach(F=>F()),window.setTimeout(()=>window.location.reload(),ly))}catch(P){if(!g.current)return;u(P instanceof hi&&P.status===401?"unauthorized":"network")}finally{g.current&&p(!1)}},[]);O.useEffect(()=>{g.current=!0;const $=()=>window.clearInterval(h.current),C=()=>{$(),h.current=window.setInterval(()=>void _(),oy)},P=()=>{document.hidden?$():(_(),C())};return _(),document.hidden||C(),document.addEventListener("visibilitychange",P),()=>{g.current=!1,$(),document.removeEventListener("visibilitychange",P)}},[_]);const E=O.useCallback(()=>void _(),[_]);return{state:o,error:a,loading:f,refresh:E}}const cy=1,nd={collector:"Plans and roadmaps",agents:"Claude sessions",github:"GitHub",coordinator:"Coordinator"};function dy(o){var u,f;const s=[];(o.schema>cy||o.update_needed)&&s.push({id:"schema",tone:"bad",text:"This hub is older than its data. Update the hub:",command:"npm i -g @caddis/cli@latest"});const a=(u=o.sources)==null?void 0:u.agents;a&&!a.ok&&s.push({id:"agents-failed",tone:"bad",text:`Session list unavailable: "claude agents" failed${a.last_error?` (${a.last_error})`:""}.`});for(const p of Object.keys(nd)){const h=(f=o.sources)==null?void 0:f[p];h!=null&&h.stale&&(p==="agents"&&!h.ok||s.push({id:`stale-${p}`,tone:"warn",text:`${nd[p]} data is stale. Last good read: ${h.last_ok_at?Fr(h.last_ok_at):"never"}.`}))}return s}function fy({state:o}){const s=dy(o),a=ay();return s.length===0&&!a?null:d.jsxs("div",{className:"banners",role:"region","aria-label":"Warnings",children:[a&&d.jsxs("div",{className:"banner warn",role:"status","data-testid":"banner-hub-updated",children:[d.jsx(mm,{size:16,"aria-hidden":"true"}),d.jsxs("span",{children:["caddis hub updated to ",a,", reloading"]})]}),s.map(u=>d.jsxs("div",{className:`banner ${u.tone}`,role:"status","data-testid":`banner-${u.id}`,children:[u.tone==="bad"?d.jsx(fm,{size:16,"aria-hidden":"true"}):d.jsx(Od,{size:16,"aria-hidden":"true"}),d.jsxs("span",{children:[u.text,u.command&&d.jsxs(d.Fragment,{children:[" ",d.jsx("code",{className:"cmd",children:u.command})]})]})]},u.id))]})}const Nf="caddis-hub-motion",py=["on","off"];function _f(){try{return window.localStorage}catch{return null}}function hy(o=_f()){try{return(o==null?void 0:o.getItem(Nf))==="off"?"off":"on"}catch{return"on"}}function my(o,s=_f()){try{s==null||s.setItem(Nf,o)}catch{}}const jf="caddis-hub-theme",gy=["dark","light","system"];function Ef(){try{return window.localStorage}catch{return null}}function yy(o=Ef()){try{const s=o==null?void 0:o.getItem(jf);return s==="dark"||s==="light"||s==="system"?s:"system"}catch{return"system"}}function vy(o,s=Ef()){try{s==null||s.setItem(jf,o)}catch{}}function wy(o,s){return o==="system"?s?"dark":"light":o}const ky={dark:cm,light:ym,system:um},xy={on:hm,off:pm},Sy={on:"motion",off:"still"};function Ny({state:o,nowMs:s,theme:a,onTheme:u,motion:f,onMotion:p}){const h=o==null?void 0:o.versions,g=$m(o),v=Gd(o);return d.jsx("footer",{className:"sidebar-footer",children:d.jsxs("div",{className:"footer-card",children:[d.jsx(wf,{slot:o==null?void 0:o.spend,size:36}),d.jsxs("div",{className:"updated-line",children:[d.jsx(rm,{size:13,"aria-hidden":"true"}),d.jsx("span",{"data-testid":"data-age",children:o?Nm(o.generated_at,s):"Waiting for data"})]}),v&&!g&&d.jsxs("div",{className:"quota-line mono","data-testid":"quota",children:["GitHub quota ",v.remaining," left (",v.account,")"]}),g&&d.jsxs("div",{className:"quota-low","data-testid":"quota-low",role:"status",children:["GitHub quota low: ",g.remaining," left (",g.account,")",g.resetAt?`, resets ${Fr(g.resetAt)}`:"",". Polling slows."]}),h&&d.jsxs("div",{className:"versions mono",children:[d.jsxs("span",{className:"versions-item",children:["hub ",h.hub]}),d.jsxs("span",{className:"versions-item",children:["pool ",h.pool??"-"]}),d.jsxs("span",{className:"versions-item",children:["plugin ",h.plugin??"-"]})]}),d.jsxs("div",{className:"footer-toggles",children:[d.jsx("div",{className:"theme-switch",role:"group","aria-label":"Theme",children:gy.map(_=>{const E=ky[_];return d.jsxs("button",{type:"button",className:`theme-btn${a===_?" active":""}`,"aria-pressed":a===_,title:_,onClick:()=>u(_),children:[d.jsx(E,{size:14,"aria-hidden":"true"}),d.jsx("span",{children:_})]},_)})}),d.jsx("div",{className:"theme-switch",role:"group","aria-label":"Motion",children:py.map(_=>{const E=xy[_];return d.jsxs("button",{type:"button",className:`theme-btn${f===_?" active":""}`,"aria-pressed":f===_,title:_==="on"?"Animations on":"Animations off",onClick:()=>p(_),children:[d.jsx(E,{size:14,"aria-hidden":"true"}),d.jsx("span",{children:Sy[_]})]},_)})})]})]})})}function _y(){return d.jsxs("div",{className:"skeleton","data-testid":"loading","aria-busy":"true","aria-label":"Loading",children:[d.jsx("div",{className:"sk-line sk-title"}),d.jsx("div",{className:"sk-block"}),d.jsx("div",{className:"sk-block"})]})}function jy({onRetry:o}){return d.jsxs("div",{className:"notice","data-testid":"load-error",role:"status",children:[d.jsx("p",{children:"The hub did not answer. Retrying."}),d.jsx("button",{type:"button",className:"btn",onClick:o,children:"Retry now"})]})}const Ey="/assets/mark-anim-DZa95SHo.webp",Cy="/assets/mark-still-CcPgBc_-.png",$y="/assets/wordmark-CD0s2ofS.svg";function rd(){return d.jsxs("span",{className:"brand-logo",children:[d.jsx("img",{src:Ey,alt:"",width:36,height:36,className:"brand-mark brand-mark-anim"}),d.jsx("img",{src:Cy,alt:"",width:36,height:36,className:"brand-mark brand-mark-still"}),d.jsxs("span",{className:"brand-stack",children:[d.jsx("img",{src:$y,alt:"CADDIS",width:100,height:20,className:"brand-wordmark"}),d.jsx("span",{className:"brand-sub",children:"hub"})]})]})}const Ty="a[href], button";function Py(o,s,a){return a?s<=0?o-1:s-1:s>=o-1?0:s+1}function Ry(o,s,a,u){const f=O.useRef(!1),p=O.useRef(s);p.current=s,O.useEffect(()=>{var v,_;if(!o){f.current&&((v=u.current)==null||v.focus()),f.current=!1;return}f.current=!0;const h=()=>{var E;return[...((E=a.current)==null?void 0:E.querySelectorAll(Ty))??[]]};(_=h()[0])==null||_.focus();const g=E=>{var P;if(E.key==="Escape"){p.current();return}if(E.key!=="Tab")return;const $=h();if($.length===0)return;E.preventDefault();const C=$.indexOf(document.activeElement);(P=$[Py($.length,C,E.shiftKey)])==null||P.focus()};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[o,a,u])}const Ly=[["poster","Poster"],["details","Details"],["wall","Wall poster"],["map","Map"]];function zy(o,s){var f;return o.error||(f=o.github)!=null&&f.error?"blocked":s.sessions.some(p=>p.repo_path===o.path&&p.waiting_class==="owner")||o.coordinator&&s.sources.coordinator.stale?"attention":!o.coordinator&&!s.sessions.some(p=>p.repo_path===o.path)?"idle":"ok"}function Ar({href:o,active:s,icon:a,label:u,badge:f,hint:p,onGo:h}){return d.jsx("li",{children:d.jsxs("a",{className:`nav-link${s?" active":""}`,href:o,"aria-current":s?"page":void 0,onClick:h,children:[d.jsxs("span",{className:"nav-link-left",children:[a,d.jsx("span",{className:"nav-text",children:u})]}),p&&d.jsx("span",{className:"nav-hint",children:p}),f]})})}function Dy({route:o,state:s,inbox:a,open:u,onToggle:f,children:p}){const h=()=>f(!1),g=O.useRef(null),v=O.useRef(null);return Ry(u,h,g,v),d.jsxs(d.Fragment,{children:[d.jsxs("header",{className:"mobile-topbar",children:[d.jsxs("button",{ref:v,type:"button",className:"menu-btn","aria-label":u?"Close navigation menu":"Open navigation menu","aria-expanded":u,"aria-controls":"app-sidebar",onClick:()=>f(!u),children:[u?d.jsx(wm,{size:18}):d.jsx(am,{size:18}),d.jsx("span",{children:"Menu"})]}),d.jsx(rd,{})]}),d.jsx("div",{className:`drawer-backdrop${u?" open":""}`,onClick:h,"aria-hidden":"true"}),d.jsxs("aside",{ref:g,className:`sidebar${u?" drawer-open":""}`,id:"app-sidebar",role:u?"dialog":void 0,"aria-modal":u?!0:void 0,"aria-label":u?"Navigation":void 0,children:[d.jsxs("nav",{className:"sidebar-top","aria-label":"Main",children:[d.jsx("div",{className:"brand-row",children:d.jsx(rd,{})}),d.jsxs("ul",{className:"nav-list",children:[d.jsx(Ar,{href:"#/inbox",active:o.page==="inbox",icon:d.jsx(sm,{size:18}),label:"Inbox",badge:a>0?d.jsx("span",{className:"inbox-badge",children:a}):void 0,onGo:h}),d.jsx(Ar,{href:"#/overview",active:o.page==="overview",icon:d.jsx(im,{size:18}),label:"Overview",onGo:h}),d.jsx(Ar,{href:"#/activity",active:o.page==="activity",icon:d.jsx(Zh,{size:18}),label:"Activity",onGo:h}),d.jsx(Ar,{href:"#/guide",active:o.page==="guide",icon:d.jsx(nm,{size:18}),label:"caddis guide",onGo:h}),o.page==="guide"&&d.jsx("li",{children:d.jsx("ul",{className:"nav-sublist","aria-label":"caddis guide pages",children:Ly.map(([_,E])=>{const $=o.tab===_;return d.jsx("li",{children:d.jsx("a",{className:`nav-link nav-sublink${$?" active":""}`,href:cg(_),"aria-current":$?"true":void 0,onClick:h,children:d.jsx("span",{className:"nav-text",children:E})})},_)})})})]}),d.jsx("div",{className:"nav-section-label",children:"Repos"}),d.jsxs("ul",{className:"nav-list",children:[(s==null?void 0:s.repos.length)===0&&d.jsx("li",{className:"nav-empty",children:"No repos yet"}),s==null?void 0:s.repos.map(_=>{const E=Br(_),$=o.page==="repo"&&o.id===E;return d.jsx(Ar,{href:sl(E),active:$,icon:d.jsx("span",{className:`repo-dot ${zy(_,s)}${Ri(s,_)?" working":""}`,"aria-hidden":"true"}),label:_.name,hint:jg(s,_),onGo:h},_.path)})]})]}),p]})]})}const Oy="/assets/favicon-DtHQyAC1.svg",My="/assets/favicon-dot-DHAVYP15.svg",Iy=o=>o?My:Oy;function Ay(o){let s=document.querySelector('link[rel="icon"]');s||(s=document.createElement("link"),s.rel="icon",document.head.appendChild(s)),s.type="image/svg+xml",s.href=Iy(o)}const Fy=()=>{var o;return((o=window.matchMedia)==null?void 0:o.call(window,"(prefers-color-scheme: dark)").matches)??!0};function Uy(){const[o,s]=O.useState(()=>yy());return O.useEffect(()=>{const a=()=>{document.documentElement.dataset.theme=wy(o,Fy())};if(a(),o!=="system"||!window.matchMedia)return;const u=window.matchMedia("(prefers-color-scheme: dark)");return u.addEventListener("change",a),()=>u.removeEventListener("change",a)},[o]),[o,a=>{vy(a),s(a)}]}function Hy(){const[o,s]=O.useState(()=>hy());return O.useEffect(()=>{document.documentElement.dataset.motion=o},[o]),[o,a=>{my(a),s(a)}]}const By=O.lazy(()=>Si(()=>import("./Guide-DEa3jRqb.js"),__vite__mapDeps([0,1])).then(o=>({default:o.Guide}))),Wy=O.lazy(()=>Si(()=>import("./Activity-Dzbd3259.js"),[]));function Vy(o){const[s,a]=O.useState(()=>Date.now());return O.useEffect(()=>{const u=window.setInterval(()=>a(Date.now()),o);return()=>window.clearInterval(u)},[o]),s}function by(){const[o,s]=O.useState(()=>window.location.hash);return O.useEffect(()=>{const a=()=>s(window.location.hash);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),ug(o)}function qy(){const{state:o,error:s,loading:a,refresh:u}=uy(),f=Hh(u),p=Vy(5e3),h=by(),[g,v]=Uy(),[_,E]=Hy(),[$,C]=O.useState(!1),P=Sg(o,p),j=P.model.items.length;O.useEffect(()=>{document.title=Sm(j),Ay(j>0)},[j]);let F;if(s==="unauthorized")F=d.jsxs("div",{className:"notice","data-testid":"signin",children:[d.jsx("h1",{className:"page-title",children:"Signed out"}),d.jsxs("p",{children:["Run ",d.jsx("code",{className:"cmd",children:"caddis hub open"})," to sign in."]})]});else if(!o)F=a?d.jsx(_y,{}):d.jsx(jy,{onRetry:u});else if(h.page==="inbox")F=d.jsx(vg,{state:o,nowMs:p,api:P,act:f});else if(h.page==="overview")F=d.jsx(Hg,{state:o,nowMs:p,api:P});else if(h.page==="repo"){const U=o.repos.find(J=>Br(J)===h.id);F=U?d.jsx(ry,{state:o,repo:U,nowMs:p,act:f,tab:h.tab,roadmap:h.roadmap},h.id):d.jsxs("div",{className:"notice",children:[d.jsx("h1",{className:"page-title",children:h.id}),d.jsx("p",{children:"This repo is not in the hub registry."})]})}else h.page==="guide"?F=d.jsx(O.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(By,{guide:o.guide,versions:o.versions,tab:h.tab,item:h.item})}):F=d.jsx(O.Suspense,{fallback:d.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:d.jsx(Wy,{state:o})});return d.jsxs("div",{className:"app-shell",children:[d.jsx(Dy,{route:h,state:o,inbox:j,open:$,onToggle:C,children:d.jsx(Ny,{state:o,nowMs:p,theme:g,onTheme:v,motion:_,onMotion:E})}),d.jsx("main",{className:"main-area",id:"main-content",children:d.jsxs("div",{className:"page-wrap",children:[o&&d.jsx(fy,{state:o}),s==="network"&&o&&d.jsx("div",{className:"banner warn",role:"status",children:"The hub did not answer. Showing the last data."}),F]})})]})}Oh();const od=document.getElementById("root");od&&Ph.createRoot(od).render(d.jsx(O.StrictMode,{children:d.jsx(qy,{})}));export{rv as A,ov as B,Ky as C,Bg as D,Km as E,Qy as N,dm as O,Qg as P,yi as T,Kn as a,Br as b,ge as c,kn as d,df as e,sv as f,cg as g,nv as h,Tm as i,d as j,Im as k,Zd as l,of as m,Jy as n,Xy as o,ev as p,Fm as q,O as r,Gy as s,Zy as t,Yy as u,tv as v,iv as w,Xn as x,Fr as y,lv as z};
|