@caddis/cli 0.4.79 → 0.4.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/bundles/antigravity-plugin/plugin.json +1 -1
  2. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_exit.cpython-311.pyc +0 -0
  3. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_file_lock.cpython-311.pyc +0 -0
  4. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_frontmatter.cpython-311.pyc +0 -0
  5. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_redact.cpython-311.pyc +0 -0
  6. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap.cpython-311.pyc +0 -0
  7. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_roadmap_page.cpython-311.pyc +0 -0
  8. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_rows.cpython-311.pyc +0 -0
  9. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_tidy.cpython-311.pyc +0 -0
  10. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_todo.cpython-311.pyc +0 -0
  11. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_workstreams.cpython-311.pyc +0 -0
  12. package/bundles/antigravity-plugin/scripts/__pycache__/caddis_worktree_safety.cpython-311.pyc +0 -0
  13. package/bundles/antigravity-plugin/scripts/caddis_coordinate.py +128 -7
  14. package/bundles/antigravity-plugin/scripts/caddis_gate.py +3 -3
  15. package/bundles/antigravity-plugin/scripts/caddis_hub_collect.py +8 -0
  16. package/bundles/antigravity-plugin/scripts/caddis_roadmap.py +29 -3
  17. package/bundles/antigravity-plugin/scripts/caddis_roadmap_page.py +4 -3
  18. package/bundles/antigravity-plugin/scripts/caddis_workstreams.py +24 -0
  19. package/bundles/antigravity-plugin/scripts/claudster_doctor.py +24 -0
  20. package/bundles/antigravity-plugin/scripts/schemas/coordinator.schema.json +28 -1
  21. package/bundles/antigravity-plugin/scripts/schemas/hub-collect.schema.json +127 -0
  22. package/bundles/antigravity-plugin/scripts/schemas/hub-relays.schema.json +36 -0
  23. package/bundles/antigravity-plugin/scripts/schemas/hub-roadmaps.schema.json +91 -0
  24. package/bundles/antigravity-plugin/skills/coordinate/SKILL.md +17 -1
  25. package/bundles/antigravity-plugin/skills/cross-review/SKILL.md +1 -1
  26. package/bundles/antigravity-plugin/skills/feature-plan/SKILL.md +18 -9
  27. package/bundles/antigravity-plugin/skills/handoff/SKILL.md +5 -0
  28. package/bundles/antigravity-plugin/skills/implement/SKILL.md +23 -8
  29. package/bundles/antigravity-plugin/skills/mmr/SKILL.md +1 -1
  30. package/bundles/antigravity-plugin/skills/pr-merge/SKILL.md +2 -2
  31. package/bundles/antigravity-plugin/skills/ship/SKILL.md +1 -1
  32. package/bundles/antigravity-plugin/skills/ship-merge/SKILL.md +1 -1
  33. package/bundles/antigravity-plugin/skills/ship-pr/SKILL.md +2 -2
  34. package/bundles/antigravity-plugin-extras/plugin.json +1 -1
  35. package/bundles/antigravity-plugin-extras/skills/cross-review/SKILL.md +1 -1
  36. package/bundles/manifest.json +3 -3
  37. package/dist/allowed-urls.txt +19 -0
  38. package/dist/cli.js +1811 -784
  39. package/dist/export/assets/export-C0_skoDL.css +1 -0
  40. package/dist/export/assets/export-DErZHj4B.js +150 -0
  41. package/dist/export/assets/mark-small-CwCIyjyC.svg +8 -0
  42. package/dist/export/assets/wordmark-CD0s2ofS.svg +99 -0
  43. package/dist/export/fonts/LICENSE-Lucide.txt +43 -0
  44. package/dist/export/fonts/OFL-Atkinson.txt +93 -0
  45. package/dist/export/fonts/OFL-MapleMono.txt +93 -0
  46. package/dist/export/fonts/atkinson-400.849ae6f0.woff2 +0 -0
  47. package/dist/export/fonts/atkinson-700.3a9cc18a.woff2 +0 -0
  48. package/dist/export/fonts/maple-mono-400.071799fd.woff2 +0 -0
  49. package/dist/export/fonts/maple-mono-700.1e17b237.woff2 +0 -0
  50. package/dist/export/index.html +16 -0
  51. package/dist/ui/assets/Activity-CaqQ_HdD.js +6 -0
  52. package/dist/ui/assets/{Guide-D6PTiZmH.js → Guide-9PV1m0e9.js} +1 -1
  53. package/dist/ui/assets/RoadmapTab-CDm42wB2.js +31 -0
  54. package/dist/ui/assets/{index-DWiypj6N.css → index-Cv4RVfyi.css} +1 -1
  55. package/dist/ui/assets/index-Dotj3WfG.js +221 -0
  56. package/dist/ui/assets/time-D00tu2ZP.js +1 -0
  57. package/dist/ui/fonts/LICENSE-Lucide.txt +43 -0
  58. package/dist/ui/index.html +2 -2
  59. package/package.json +2 -2
  60. package/dist/ui/assets/index-D7fsc0PF.js +0 -221
@@ -0,0 +1,221 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RoadmapTab-CDm42wB2.js","assets/time-D00tu2ZP.js","assets/Guide-9PV1m0e9.js","assets/Guide-zcVFGUxR.css","assets/Activity-CaqQ_HdD.js"])))=>i.map(i=>d[i]);
2
+ var Gi={exports:{}},Rr={},Xi={exports:{}},b={};/**
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 fc;function Up(){if(fc)return b;fc=1;var i=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),$=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),L=Symbol.iterator;function P(w){return w===null||typeof w!="object"?null:(w=L&&w[L]||w["@@iterator"],typeof w=="function"?w:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,K={};function W(w,C,J){this.props=w,this.context=C,this.refs=K,this.updater=J||O}W.prototype.isReactComponent={},W.prototype.setState=function(w,C){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,C,"setState")},W.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function V(){}V.prototype=W.prototype;function Ee(w,C,J){this.props=w,this.context=C,this.refs=K,this.updater=J||O}var $e=Ee.prototype=new V;$e.constructor=Ee,_($e,W.prototype),$e.isPureReactComponent=!0;var M=Array.isArray,he=Object.prototype.hasOwnProperty,me={current:null},Se={key:!0,ref:!0,__self:!0,__source:!0};function G(w,C,J){var ee,oe={},le=null,ue=null;if(C!=null)for(ee in C.ref!==void 0&&(ue=C.ref),C.key!==void 0&&(le=""+C.key),C)he.call(C,ee)&&!Se.hasOwnProperty(ee)&&(oe[ee]=C[ee]);var se=arguments.length-2;if(se===1)oe.children=J;else if(1<se){for(var ge=Array(se),Je=0;Je<se;Je++)ge[Je]=arguments[Je+2];oe.children=ge}if(w&&w.defaultProps)for(ee in se=w.defaultProps,se)oe[ee]===void 0&&(oe[ee]=se[ee]);return{$$typeof:i,type:w,key:le,ref:ue,props:oe,_owner:me.current}}function re(w,C){return{$$typeof:i,type:w.type,key:C,ref:w.ref,props:w.props,_owner:w._owner}}function Le(w){return typeof w=="object"&&w!==null&&w.$$typeof===i}function wt(w){var C={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(J){return C[J]})}var Ve=/\/+/g;function De(w,C){return typeof w=="object"&&w!==null&&w.key!=null?wt(""+w.key):C.toString(36)}function dt(w,C,J,ee,oe){var le=typeof w;(le==="undefined"||le==="boolean")&&(w=null);var ue=!1;if(w===null)ue=!0;else switch(le){case"string":case"number":ue=!0;break;case"object":switch(w.$$typeof){case i:case s:ue=!0}}if(ue)return ue=w,oe=oe(ue),w=ee===""?"."+De(ue,0):ee,M(oe)?(J="",w!=null&&(J=w.replace(Ve,"$&/")+"/"),dt(oe,C,J,"",function(Je){return Je})):oe!=null&&(Le(oe)&&(oe=re(oe,J+(!oe.key||ue&&ue.key===oe.key?"":(""+oe.key).replace(Ve,"$&/")+"/")+w)),C.push(oe)),1;if(ue=0,ee=ee===""?".":ee+":",M(w))for(var se=0;se<w.length;se++){le=w[se];var ge=ee+De(le,se);ue+=dt(le,C,J,ge,oe)}else if(ge=P(w),typeof ge=="function")for(w=ge.call(w),se=0;!(le=w.next()).done;)le=le.value,ge=ee+De(le,se++),ue+=dt(le,C,J,ge,oe);else if(le==="object")throw C=String(w),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.");return ue}function kt(w,C,J){if(w==null)return w;var ee=[],oe=0;return dt(w,ee,"","",function(le){return C.call(J,le,oe++)}),ee}function qe(w){if(w._status===-1){var C=w._result;C=C(),C.then(function(J){(w._status===0||w._status===-1)&&(w._status=1,w._result=J)},function(J){(w._status===0||w._status===-1)&&(w._status=2,w._result=J)}),w._status===-1&&(w._status=0,w._result=C)}if(w._status===1)return w._result.default;throw w._result}var ke={current:null},D={transition:null},Y={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:D,ReactCurrentOwner:me};function F(){throw Error("act(...) is not supported in production builds of React.")}return b.Children={map:kt,forEach:function(w,C,J){kt(w,function(){C.apply(this,arguments)},J)},count:function(w){var C=0;return kt(w,function(){C++}),C},toArray:function(w){return kt(w,function(C){return C})||[]},only:function(w){if(!Le(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},b.Component=W,b.Fragment=a,b.Profiler=f,b.PureComponent=Ee,b.StrictMode=d,b.Suspense=y,b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Y,b.act=F,b.cloneElement=function(w,C,J){if(w==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+w+".");var ee=_({},w.props),oe=w.key,le=w.ref,ue=w._owner;if(C!=null){if(C.ref!==void 0&&(le=C.ref,ue=me.current),C.key!==void 0&&(oe=""+C.key),w.type&&w.type.defaultProps)var se=w.type.defaultProps;for(ge in C)he.call(C,ge)&&!Se.hasOwnProperty(ge)&&(ee[ge]=C[ge]===void 0&&se!==void 0?se[ge]:C[ge])}var ge=arguments.length-2;if(ge===1)ee.children=J;else if(1<ge){se=Array(ge);for(var Je=0;Je<ge;Je++)se[Je]=arguments[Je+2];ee.children=se}return{$$typeof:i,type:w.type,key:oe,ref:le,props:ee,_owner:ue}},b.createContext=function(w){return w={$$typeof:v,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},w.Provider={$$typeof:h,_context:w},w.Consumer=w},b.createElement=G,b.createFactory=function(w){var C=G.bind(null,w);return C.type=w,C},b.createRef=function(){return{current:null}},b.forwardRef=function(w){return{$$typeof:S,render:w}},b.isValidElement=Le,b.lazy=function(w){return{$$typeof:j,_payload:{_status:-1,_result:w},_init:qe}},b.memo=function(w,C){return{$$typeof:$,type:w,compare:C===void 0?null:C}},b.startTransition=function(w){var C=D.transition;D.transition={};try{w()}finally{D.transition=C}},b.unstable_act=F,b.useCallback=function(w,C){return ke.current.useCallback(w,C)},b.useContext=function(w){return ke.current.useContext(w)},b.useDebugValue=function(){},b.useDeferredValue=function(w){return ke.current.useDeferredValue(w)},b.useEffect=function(w,C){return ke.current.useEffect(w,C)},b.useId=function(){return ke.current.useId()},b.useImperativeHandle=function(w,C,J){return ke.current.useImperativeHandle(w,C,J)},b.useInsertionEffect=function(w,C){return ke.current.useInsertionEffect(w,C)},b.useLayoutEffect=function(w,C){return ke.current.useLayoutEffect(w,C)},b.useMemo=function(w,C){return ke.current.useMemo(w,C)},b.useReducer=function(w,C,J){return ke.current.useReducer(w,C,J)},b.useRef=function(w){return ke.current.useRef(w)},b.useState=function(w){return ke.current.useState(w)},b.useSyncExternalStore=function(w,C,J){return ke.current.useSyncExternalStore(w,C,J)},b.useTransition=function(){return ke.current.useTransition()},b.version="18.3.1",b}var pc;function ds(){return pc||(pc=1,Xi.exports=Up()),Xi.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 hc;function Hp(){if(hc)return Rr;hc=1;var i=ds(),s=Symbol.for("react.element"),a=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,f=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function v(S,y,$){var j,L={},P=null,O=null;$!==void 0&&(P=""+$),y.key!==void 0&&(P=""+y.key),y.ref!==void 0&&(O=y.ref);for(j in y)d.call(y,j)&&!h.hasOwnProperty(j)&&(L[j]=y[j]);if(S&&S.defaultProps)for(j in y=S.defaultProps,y)L[j]===void 0&&(L[j]=y[j]);return{$$typeof:s,type:S,key:P,ref:O,props:L,_owner:f.current}}return Rr.Fragment=a,Rr.jsx=v,Rr.jsxs=v,Rr}var mc;function Bp(){return mc||(mc=1,Gi.exports=Hp()),Gi.exports}var c=Bp(),Z=ds(),Go={},Zi={exports:{}},Ze={},Ji={exports:{}},bi={};/**
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 gc;function Wp(){return gc||(gc=1,(function(i){function s(D,Y){var F=D.length;D.push(Y);e:for(;0<F;){var w=F-1>>>1,C=D[w];if(0<f(C,Y))D[w]=Y,D[F]=C,F=w;else break e}}function a(D){return D.length===0?null:D[0]}function d(D){if(D.length===0)return null;var Y=D[0],F=D.pop();if(F!==Y){D[0]=F;e:for(var w=0,C=D.length,J=C>>>1;w<J;){var ee=2*(w+1)-1,oe=D[ee],le=ee+1,ue=D[le];if(0>f(oe,F))le<C&&0>f(ue,oe)?(D[w]=ue,D[le]=F,w=le):(D[w]=oe,D[ee]=F,w=ee);else if(le<C&&0>f(ue,F))D[w]=ue,D[le]=F,w=le;else break e}}return Y}function f(D,Y){var F=D.sortIndex-Y.sortIndex;return F!==0?F:D.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var v=Date,S=v.now();i.unstable_now=function(){return v.now()-S}}var y=[],$=[],j=1,L=null,P=3,O=!1,_=!1,K=!1,W=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,Ee=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $e(D){for(var Y=a($);Y!==null;){if(Y.callback===null)d($);else if(Y.startTime<=D)d($),Y.sortIndex=Y.expirationTime,s(y,Y);else break;Y=a($)}}function M(D){if(K=!1,$e(D),!_)if(a(y)!==null)_=!0,qe(he);else{var Y=a($);Y!==null&&ke(M,Y.startTime-D)}}function he(D,Y){_=!1,K&&(K=!1,V(G),G=-1),O=!0;var F=P;try{for($e(Y),L=a(y);L!==null&&(!(L.expirationTime>Y)||D&&!wt());){var w=L.callback;if(typeof w=="function"){L.callback=null,P=L.priorityLevel;var C=w(L.expirationTime<=Y);Y=i.unstable_now(),typeof C=="function"?L.callback=C:L===a(y)&&d(y),$e(Y)}else d(y);L=a(y)}if(L!==null)var J=!0;else{var ee=a($);ee!==null&&ke(M,ee.startTime-Y),J=!1}return J}finally{L=null,P=F,O=!1}}var me=!1,Se=null,G=-1,re=5,Le=-1;function wt(){return!(i.unstable_now()-Le<re)}function Ve(){if(Se!==null){var D=i.unstable_now();Le=D;var Y=!0;try{Y=Se(!0,D)}finally{Y?De():(me=!1,Se=null)}}else me=!1}var De;if(typeof Ee=="function")De=function(){Ee(Ve)};else if(typeof MessageChannel<"u"){var dt=new MessageChannel,kt=dt.port2;dt.port1.onmessage=Ve,De=function(){kt.postMessage(null)}}else De=function(){W(Ve,0)};function qe(D){Se=D,me||(me=!0,De())}function ke(D,Y){G=W(function(){D(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(D){D.callback=null},i.unstable_continueExecution=function(){_||O||(_=!0,qe(he))},i.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<D?Math.floor(1e3/D):5},i.unstable_getCurrentPriorityLevel=function(){return P},i.unstable_getFirstCallbackNode=function(){return a(y)},i.unstable_next=function(D){switch(P){case 1:case 2:case 3:var Y=3;break;default:Y=P}var F=P;P=Y;try{return D()}finally{P=F}},i.unstable_pauseExecution=function(){},i.unstable_requestPaint=function(){},i.unstable_runWithPriority=function(D,Y){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var F=P;P=D;try{return Y()}finally{P=F}},i.unstable_scheduleCallback=function(D,Y,F){var w=i.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?w+F:w):F=w,D){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=F+C,D={id:j++,callback:Y,priorityLevel:D,startTime:F,expirationTime:C,sortIndex:-1},F>w?(D.sortIndex=F,s($,D),a(y)===null&&D===a($)&&(K?(V(G),G=-1):K=!0,ke(M,F-w))):(D.sortIndex=C,s(y,D),_||O||(_=!0,qe(he))),D},i.unstable_shouldYield=wt,i.unstable_wrapCallback=function(D){var Y=P;return function(){var F=P;P=Y;try{return D.apply(this,arguments)}finally{P=F}}}})(bi)),bi}var yc;function Vp(){return yc||(yc=1,Ji.exports=Wp()),Ji.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 vc;function qp(){if(vc)return Ze;vc=1;var i=ds(),s=Vp();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 d=new Set,f={};function h(e,t){v(e,t),v(e+"Capture",t)}function v(e,t){for(f[e]=t,e=0;e<t.length;e++)d.add(t[e])}var S=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=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]*$/,j={},L={};function P(e){return y.call(L,e)?!0:y.call(j,e)?!1:$.test(e)?L[e]=!0:(j[e]=!0,!1)}function O(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 _(e,t,n,r){if(t===null||typeof t>"u"||O(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 K(e,t,n,r,o,l,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=u}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){W[e]=new K(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];W[t]=new K(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){W[e]=new K(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){W[e]=new K(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){W[e]=new K(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){W[e]=new K(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){W[e]=new K(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){W[e]=new K(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){W[e]=new K(e,5,!1,e.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function Ee(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(V,Ee);W[t]=new K(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(V,Ee);W[t]=new K(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(V,Ee);W[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!1,!1)}),W.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!0,!0)});function $e(e,t,n,r){var o=W.hasOwnProperty(t)?W[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_(t,n,o,r)&&(n=null),r||o===null?P(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var M=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,he=Symbol.for("react.element"),me=Symbol.for("react.portal"),Se=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),wt=Symbol.for("react.context"),Ve=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),D=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=D&&e[D]||e["@@iterator"],typeof e=="function"?e:null)}var F=Object.assign,w;function C(e){if(w===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);w=t&&t[1]||""}return`
35
+ `+w+e}var J=!1;function ee(e,t){if(!e||J)return"";J=!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 o=N.stack.split(`
36
+ `),l=r.stack.split(`
37
+ `),u=o.length-1,p=l.length-1;1<=u&&0<=p&&o[u]!==l[p];)p--;for(;1<=u&&0<=p;u--,p--)if(o[u]!==l[p]){if(u!==1||p!==1)do if(u--,p--,0>p||o[u]!==l[p]){var m=`
38
+ `+o[u].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=u&&0<=p);break}}}finally{J=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?C(e):""}function oe(e){switch(e.tag){case 5:return C(e.type);case 16:return C("Lazy");case 13:return C("Suspense");case 19:return C("SuspenseList");case 0:case 2:case 15:return e=ee(e.type,!1),e;case 11:return e=ee(e.type.render,!1),e;case 1:return e=ee(e.type,!0),e;default:return""}}function le(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 Se:return"Fragment";case me:return"Portal";case re:return"Profiler";case G:return"StrictMode";case De:return"Suspense";case dt:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wt:return(e.displayName||"Context")+".Consumer";case Le:return(e._context.displayName||"Context")+".Provider";case Ve:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kt:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case qe:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}function ue(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 le(t);case 8:return t===G?"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 se(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Je(e){var t=ge(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 o=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(u){r=""+u,l.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ar(e){e._valueTracker||(e._valueTracker=Je(e))}function vs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ge(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fr(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 nl(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ws(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=se(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 ks(e,t){t=t.checked,t!=null&&$e(e,"checked",t,!1)}function rl(e,t){ks(e,t);var n=se(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")?ol(e,t.type,n):t.hasOwnProperty("defaultValue")&&ol(e,t.type,se(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xs(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 ol(e,t,n){(t!=="number"||Fr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Kn=Array.isArray;function wn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+se(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ll(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(a(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ss(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(Kn(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:se(n)}}function Ns(e,t){var n=se(t.value),r=se(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 _s(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function js(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 il(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?js(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ur,Es=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ur=Ur||document.createElement("div"),Ur.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ur.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gn={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},Wd=["Webkit","ms","Moz","O"];Object.keys(Gn).forEach(function(e){Wd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gn[t]=Gn[e]})});function Cs(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gn.hasOwnProperty(e)&&Gn[e]?(""+t).trim():t+"px"}function Ts(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cs(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Vd=F({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 sl(e,t){if(t){if(Vd[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 al(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 ul=null;function cl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dl=null,kn=null,xn=null;function $s(e){if(e=yr(e)){if(typeof dl!="function")throw Error(a(280));var t=e.stateNode;t&&(t=uo(t),dl(e.stateNode,e.type,t))}}function zs(e){kn?xn?xn.push(e):xn=[e]:kn=e}function Ps(){if(kn){var e=kn,t=xn;if(xn=kn=null,$s(e),t)for(e=0;e<t.length;e++)$s(t[e])}}function Rs(e,t){return e(t)}function Ls(){}var fl=!1;function Ds(e,t,n){if(fl)return e(t,n);fl=!0;try{return Rs(e,t,n)}finally{fl=!1,(kn!==null||xn!==null)&&(Ls(),Ps())}}function Xn(e,t){var n=e.stateNode;if(n===null)return null;var r=uo(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 pl=!1;if(S)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){pl=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch{pl=!1}function qd(e,t,n,r,o,l,u,p,m){var N=Array.prototype.slice.call(arguments,3);try{t.apply(n,N)}catch(T){this.onError(T)}}var Jn=!1,Hr=null,Br=!1,hl=null,Qd={onError:function(e){Jn=!0,Hr=e}};function Kd(e,t,n,r,o,l,u,p,m){Jn=!1,Hr=null,qd.apply(Qd,arguments)}function Yd(e,t,n,r,o,l,u,p,m){if(Kd.apply(this,arguments),Jn){if(Jn){var N=Hr;Jn=!1,Hr=null}else throw Error(a(198));Br||(Br=!0,hl=N)}}function nn(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 Os(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 Ms(e){if(nn(e)!==e)throw Error(a(188))}function Gd(e){var t=e.alternate;if(!t){if(t=nn(e),t===null)throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var l=o.alternate;if(l===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===l.child){for(l=o.child;l;){if(l===n)return Ms(o),e;if(l===r)return Ms(o),t;l=l.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=l;else{for(var u=!1,p=o.child;p;){if(p===n){u=!0,n=o,r=l;break}if(p===r){u=!0,r=o,n=l;break}p=p.sibling}if(!u){for(p=l.child;p;){if(p===n){u=!0,n=l,r=o;break}if(p===r){u=!0,r=l,n=o;break}p=p.sibling}if(!u)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 Is(e){return e=Gd(e),e!==null?As(e):null}function As(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=As(e);if(t!==null)return t;e=e.sibling}return null}var Fs=s.unstable_scheduleCallback,Us=s.unstable_cancelCallback,Xd=s.unstable_shouldYield,Zd=s.unstable_requestPaint,Ne=s.unstable_now,Jd=s.unstable_getCurrentPriorityLevel,ml=s.unstable_ImmediatePriority,Hs=s.unstable_UserBlockingPriority,Wr=s.unstable_NormalPriority,bd=s.unstable_LowPriority,Bs=s.unstable_IdlePriority,Vr=null,xt=null;function ef(e){if(xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Vr,e,void 0,(e.current.flags&128)===128)}catch{}}var ft=Math.clz32?Math.clz32:rf,tf=Math.log,nf=Math.LN2;function rf(e){return e>>>=0,e===0?32:31-(tf(e)/nf|0)|0}var qr=64,Qr=4194304;function bn(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 Kr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,u=n&268435455;if(u!==0){var p=u&~o;p!==0?r=bn(p):(l&=u,l!==0&&(r=bn(l)))}else u=n&~o,u!==0?r=bn(u):l!==0&&(r=bn(l));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&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-ft(t),o=1<<n,r|=e[n],t&=~o;return r}function of(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 lf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-ft(l),p=1<<u,m=o[u];m===-1?((p&n)===0||(p&r)!==0)&&(o[u]=of(p,t)):m<=t&&(e.expiredLanes|=p),l&=~p}}function gl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ws(){var e=qr;return qr<<=1,(qr&4194240)===0&&(qr=64),e}function yl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function er(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ft(t),e[t]=n}function sf(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 o=31-ft(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function vl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ft(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var ae=0;function Vs(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var qs,wl,Qs,Ks,Ys,kl=!1,Yr=[],Mt=null,It=null,At=null,tr=new Map,nr=new Map,Ft=[],af="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 Gs(e,t){switch(e){case"focusin":case"focusout":Mt=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":tr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nr.delete(t.pointerId)}}function rr(e,t,n,r,o,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[o]},t!==null&&(t=yr(t),t!==null&&wl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function uf(e,t,n,r,o){switch(t){case"focusin":return Mt=rr(Mt,e,t,n,r,o),!0;case"dragenter":return It=rr(It,e,t,n,r,o),!0;case"mouseover":return At=rr(At,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return tr.set(l,rr(tr.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,nr.set(l,rr(nr.get(l)||null,e,t,n,r,o)),!0}return!1}function Xs(e){var t=rn(e.target);if(t!==null){var n=nn(t);if(n!==null){if(t=n.tag,t===13){if(t=Os(n),t!==null){e.blockedOn=t,Ys(e.priority,function(){Qs(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 Gr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ul=r,n.target.dispatchEvent(r),ul=null}else return t=yr(n),t!==null&&wl(t),e.blockedOn=n,!1;t.shift()}return!0}function Zs(e,t,n){Gr(e)&&n.delete(t)}function cf(){kl=!1,Mt!==null&&Gr(Mt)&&(Mt=null),It!==null&&Gr(It)&&(It=null),At!==null&&Gr(At)&&(At=null),tr.forEach(Zs),nr.forEach(Zs)}function or(e,t){e.blockedOn===t&&(e.blockedOn=null,kl||(kl=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,cf)))}function lr(e){function t(o){return or(o,e)}if(0<Yr.length){or(Yr[0],e);for(var n=1;n<Yr.length;n++){var r=Yr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mt!==null&&or(Mt,e),It!==null&&or(It,e),At!==null&&or(At,e),tr.forEach(t),nr.forEach(t),n=0;n<Ft.length;n++)r=Ft[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ft.length&&(n=Ft[0],n.blockedOn===null);)Xs(n),n.blockedOn===null&&Ft.shift()}var Sn=M.ReactCurrentBatchConfig,Xr=!0;function df(e,t,n,r){var o=ae,l=Sn.transition;Sn.transition=null;try{ae=1,xl(e,t,n,r)}finally{ae=o,Sn.transition=l}}function ff(e,t,n,r){var o=ae,l=Sn.transition;Sn.transition=null;try{ae=4,xl(e,t,n,r)}finally{ae=o,Sn.transition=l}}function xl(e,t,n,r){if(Xr){var o=Sl(e,t,n,r);if(o===null)Fl(e,t,r,Zr,n),Gs(e,r);else if(uf(o,e,t,n,r))r.stopPropagation();else if(Gs(e,r),t&4&&-1<af.indexOf(e)){for(;o!==null;){var l=yr(o);if(l!==null&&qs(l),l=Sl(e,t,n,r),l===null&&Fl(e,t,r,Zr,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Fl(e,t,r,null,n)}}var Zr=null;function Sl(e,t,n,r){if(Zr=null,e=cl(r),e=rn(e),e!==null)if(t=nn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Os(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 Zr=e,null}function Js(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(Jd()){case ml:return 1;case Hs:return 4;case Wr:case bd:return 16;case Bs:return 536870912;default:return 16}default:return 16}}var Ut=null,Nl=null,Jr=null;function bs(){if(Jr)return Jr;var e,t=Nl,n=t.length,r,o="value"in Ut?Ut.value:Ut.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===o[l-r];r++);return Jr=o.slice(e,1<r?1-r:void 0)}function br(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 eo(){return!0}function ea(){return!1}function be(e){function t(n,r,o,l,u){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=u,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(l):l[p]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?eo:ea,this.isPropagationStopped=ea,this}return F(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=eo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=eo)},persist:function(){},isPersistent:eo}),t}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_l=be(Nn),ir=F({},Nn,{view:0,detail:0}),pf=be(ir),jl,El,sr,to=F({},ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tl,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!==sr&&(sr&&e.type==="mousemove"?(jl=e.screenX-sr.screenX,El=e.screenY-sr.screenY):El=jl=0,sr=e),jl)},movementY:function(e){return"movementY"in e?e.movementY:El}}),ta=be(to),hf=F({},to,{dataTransfer:0}),mf=be(hf),gf=F({},ir,{relatedTarget:0}),Cl=be(gf),yf=F({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0}),vf=be(yf),wf=F({},Nn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kf=be(wf),xf=F({},Nn,{data:0}),na=be(xf),Sf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nf={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"},_f={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_f[e])?!!t[e]:!1}function Tl(){return jf}var Ef=F({},ir,{key:function(e){if(e.key){var t=Sf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tl,charCode:function(e){return e.type==="keypress"?br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cf=be(Ef),Tf=F({},to,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ra=be(Tf),$f=F({},ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tl}),zf=be($f),Pf=F({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rf=be(Pf),Lf=F({},to,{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}),Df=be(Lf),Of=[9,13,27,32],$l=S&&"CompositionEvent"in window,ar=null;S&&"documentMode"in document&&(ar=document.documentMode);var Mf=S&&"TextEvent"in window&&!ar,oa=S&&(!$l||ar&&8<ar&&11>=ar),la=" ",ia=!1;function sa(e,t){switch(e){case"keyup":return Of.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _n=!1;function If(e,t){switch(e){case"compositionend":return aa(t);case"keypress":return t.which!==32?null:(ia=!0,la);case"textInput":return e=t.data,e===la&&ia?null:e;default:return null}}function Af(e,t){if(_n)return e==="compositionend"||!$l&&sa(e,t)?(e=bs(),Jr=Nl=Ut=null,_n=!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 oa&&t.locale!=="ko"?null:t.data;default:return null}}var Ff={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 ua(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ff[e.type]:t==="textarea"}function ca(e,t,n,r){zs(r),t=io(t,"onChange"),0<t.length&&(n=new _l("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ur=null,cr=null;function Uf(e){Ta(e,0)}function no(e){var t=$n(e);if(vs(t))return e}function Hf(e,t){if(e==="change")return t}var da=!1;if(S){var zl;if(S){var Pl="oninput"in document;if(!Pl){var fa=document.createElement("div");fa.setAttribute("oninput","return;"),Pl=typeof fa.oninput=="function"}zl=Pl}else zl=!1;da=zl&&(!document.documentMode||9<document.documentMode)}function pa(){ur&&(ur.detachEvent("onpropertychange",ha),cr=ur=null)}function ha(e){if(e.propertyName==="value"&&no(cr)){var t=[];ca(t,cr,e,cl(e)),Ds(Uf,t)}}function Bf(e,t,n){e==="focusin"?(pa(),ur=t,cr=n,ur.attachEvent("onpropertychange",ha)):e==="focusout"&&pa()}function Wf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return no(cr)}function Vf(e,t){if(e==="click")return no(t)}function qf(e,t){if(e==="input"||e==="change")return no(t)}function Qf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pt=typeof Object.is=="function"?Object.is:Qf;function dr(e,t){if(pt(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 o=n[r];if(!y.call(t,o)||!pt(e[o],t[o]))return!1}return!0}function ma(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ga(e,t){var n=ma(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=ma(n)}}function ya(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ya(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function va(){for(var e=window,t=Fr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fr(e.document)}return t}function Rl(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 Kf(e){var t=va(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ya(n.ownerDocument.documentElement,n)){if(r!==null&&Rl(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 o=n.textContent.length,l=Math.min(r.start,o);r=r.end===void 0?l:Math.min(r.end,o),!e.extend&&l>r&&(o=r,r=l,l=o),o=ga(n,l);var u=ga(n,r);o&&u&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.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 Yf=S&&"documentMode"in document&&11>=document.documentMode,jn=null,Ll=null,fr=null,Dl=!1;function wa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dl||jn==null||jn!==Fr(r)||(r=jn,"selectionStart"in r&&Rl(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}),fr&&dr(fr,r)||(fr=r,r=io(Ll,"onSelect"),0<r.length&&(t=new _l("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function ro(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var En={animationend:ro("Animation","AnimationEnd"),animationiteration:ro("Animation","AnimationIteration"),animationstart:ro("Animation","AnimationStart"),transitionend:ro("Transition","TransitionEnd")},Ol={},ka={};S&&(ka=document.createElement("div").style,"AnimationEvent"in window||(delete En.animationend.animation,delete En.animationiteration.animation,delete En.animationstart.animation),"TransitionEvent"in window||delete En.transitionend.transition);function oo(e){if(Ol[e])return Ol[e];if(!En[e])return e;var t=En[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ka)return Ol[e]=t[n];return e}var xa=oo("animationend"),Sa=oo("animationiteration"),Na=oo("animationstart"),_a=oo("transitionend"),ja=new Map,Ea="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 Ht(e,t){ja.set(e,t),h(t,[e])}for(var Ml=0;Ml<Ea.length;Ml++){var Il=Ea[Ml],Gf=Il.toLowerCase(),Xf=Il[0].toUpperCase()+Il.slice(1);Ht(Gf,"on"+Xf)}Ht(xa,"onAnimationEnd"),Ht(Sa,"onAnimationIteration"),Ht(Na,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(_a,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pr="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(" "),Zf=new Set("cancel close invalid load scroll toggle".split(" ").concat(pr));function Ca(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Yd(r,t,void 0,e),e.currentTarget=null}function Ta(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var u=r.length-1;0<=u;u--){var p=r[u],m=p.instance,N=p.currentTarget;if(p=p.listener,m!==l&&o.isPropagationStopped())break e;Ca(o,p,N),l=m}else for(u=0;u<r.length;u++){if(p=r[u],m=p.instance,N=p.currentTarget,p=p.listener,m!==l&&o.isPropagationStopped())break e;Ca(o,p,N),l=m}}}if(Br)throw e=hl,Br=!1,hl=null,e}function fe(e,t){var n=t[ql];n===void 0&&(n=t[ql]=new Set);var r=e+"__bubble";n.has(r)||($a(t,e,2,!1),n.add(r))}function Al(e,t,n){var r=0;t&&(r|=4),$a(n,e,r,t)}var lo="_reactListening"+Math.random().toString(36).slice(2);function hr(e){if(!e[lo]){e[lo]=!0,d.forEach(function(n){n!=="selectionchange"&&(Zf.has(n)||Al(n,!1,e),Al(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[lo]||(t[lo]=!0,Al("selectionchange",!1,t))}}function $a(e,t,n,r){switch(Js(t)){case 1:var o=df;break;case 4:o=ff;break;default:o=xl}n=o.bind(null,t,n,e),o=void 0,!pl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Fl(e,t,n,r,o){var l=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var p=r.stateNode.containerInfo;if(p===o||p.nodeType===8&&p.parentNode===o)break;if(u===4)for(u=r.return;u!==null;){var m=u.tag;if((m===3||m===4)&&(m=u.stateNode.containerInfo,m===o||m.nodeType===8&&m.parentNode===o))return;u=u.return}for(;p!==null;){if(u=rn(p),u===null)return;if(m=u.tag,m===5||m===6){r=l=u;continue e}p=p.parentNode}}r=r.return}Ds(function(){var N=l,T=cl(n),z=[];e:{var E=ja.get(e);if(E!==void 0){var I=_l,U=e;switch(e){case"keypress":if(br(n)===0)break e;case"keydown":case"keyup":I=Cf;break;case"focusin":U="focus",I=Cl;break;case"focusout":U="blur",I=Cl;break;case"beforeblur":case"afterblur":I=Cl;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":I=ta;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=mf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=zf;break;case xa:case Sa:case Na:I=vf;break;case _a:I=Rf;break;case"scroll":I=pf;break;case"wheel":I=Df;break;case"copy":case"cut":case"paste":I=kf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=ra}var H=(t&4)!==0,_e=!H&&e==="scroll",k=H?E!==null?E+"Capture":null:E;H=[];for(var g=N,x;g!==null;){x=g;var R=x.stateNode;if(x.tag===5&&R!==null&&(x=R,k!==null&&(R=Xn(g,k),R!=null&&H.push(mr(g,R,x)))),_e)break;g=g.return}0<H.length&&(E=new I(E,U,null,n,T),z.push({event:E,listeners:H}))}}if((t&7)===0){e:{if(E=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",E&&n!==ul&&(U=n.relatedTarget||n.fromElement)&&(rn(U)||U[Ct]))break e;if((I||E)&&(E=T.window===T?T:(E=T.ownerDocument)?E.defaultView||E.parentWindow:window,I?(U=n.relatedTarget||n.toElement,I=N,U=U?rn(U):null,U!==null&&(_e=nn(U),U!==_e||U.tag!==5&&U.tag!==6)&&(U=null)):(I=null,U=N),I!==U)){if(H=ta,R="onMouseLeave",k="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(H=ra,R="onPointerLeave",k="onPointerEnter",g="pointer"),_e=I==null?E:$n(I),x=U==null?E:$n(U),E=new H(R,g+"leave",I,n,T),E.target=_e,E.relatedTarget=x,R=null,rn(T)===N&&(H=new H(k,g+"enter",U,n,T),H.target=x,H.relatedTarget=_e,R=H),_e=R,I&&U)t:{for(H=I,k=U,g=0,x=H;x;x=Cn(x))g++;for(x=0,R=k;R;R=Cn(R))x++;for(;0<g-x;)H=Cn(H),g--;for(;0<x-g;)k=Cn(k),x--;for(;g--;){if(H===k||k!==null&&H===k.alternate)break t;H=Cn(H),k=Cn(k)}H=null}else H=null;I!==null&&za(z,E,I,H,!1),U!==null&&_e!==null&&za(z,_e,U,H,!0)}}e:{if(E=N?$n(N):window,I=E.nodeName&&E.nodeName.toLowerCase(),I==="select"||I==="input"&&E.type==="file")var B=Hf;else if(ua(E))if(da)B=qf;else{B=Wf;var q=Bf}else(I=E.nodeName)&&I.toLowerCase()==="input"&&(E.type==="checkbox"||E.type==="radio")&&(B=Vf);if(B&&(B=B(e,N))){ca(z,B,n,T);break e}q&&q(e,E,N),e==="focusout"&&(q=E._wrapperState)&&q.controlled&&E.type==="number"&&ol(E,"number",E.value)}switch(q=N?$n(N):window,e){case"focusin":(ua(q)||q.contentEditable==="true")&&(jn=q,Ll=N,fr=null);break;case"focusout":fr=Ll=jn=null;break;case"mousedown":Dl=!0;break;case"contextmenu":case"mouseup":case"dragend":Dl=!1,wa(z,n,T);break;case"selectionchange":if(Yf)break;case"keydown":case"keyup":wa(z,n,T)}var Q;if($l)e:{switch(e){case"compositionstart":var X="onCompositionStart";break e;case"compositionend":X="onCompositionEnd";break e;case"compositionupdate":X="onCompositionUpdate";break e}X=void 0}else _n?sa(e,n)&&(X="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(X="onCompositionStart");X&&(oa&&n.locale!=="ko"&&(_n||X!=="onCompositionStart"?X==="onCompositionEnd"&&_n&&(Q=bs()):(Ut=T,Nl="value"in Ut?Ut.value:Ut.textContent,_n=!0)),q=io(N,X),0<q.length&&(X=new na(X,e,null,n,T),z.push({event:X,listeners:q}),Q?X.data=Q:(Q=aa(n),Q!==null&&(X.data=Q)))),(Q=Mf?If(e,n):Af(e,n))&&(N=io(N,"onBeforeInput"),0<N.length&&(T=new na("onBeforeInput","beforeinput",null,n,T),z.push({event:T,listeners:N}),T.data=Q))}Ta(z,t)})}function mr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function io(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=Xn(e,n),l!=null&&r.unshift(mr(e,l,o)),l=Xn(e,t),l!=null&&r.push(mr(e,l,o))),e=e.return}return r}function Cn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function za(e,t,n,r,o){for(var l=t._reactName,u=[];n!==null&&n!==r;){var p=n,m=p.alternate,N=p.stateNode;if(m!==null&&m===r)break;p.tag===5&&N!==null&&(p=N,o?(m=Xn(n,l),m!=null&&u.unshift(mr(n,m,p))):o||(m=Xn(n,l),m!=null&&u.push(mr(n,m,p)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var Jf=/\r\n?/g,bf=/\u0000|\uFFFD/g;function Pa(e){return(typeof e=="string"?e:""+e).replace(Jf,`
39
+ `).replace(bf,"")}function so(e,t,n){if(t=Pa(t),Pa(e)!==t&&n)throw Error(a(425))}function ao(){}var Ul=null,Hl=null;function Bl(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 Wl=typeof setTimeout=="function"?setTimeout:void 0,ep=typeof clearTimeout=="function"?clearTimeout:void 0,Ra=typeof Promise=="function"?Promise:void 0,tp=typeof queueMicrotask=="function"?queueMicrotask:typeof Ra<"u"?function(e){return Ra.resolve(null).then(e).catch(np)}:Wl;function np(e){setTimeout(function(){throw e})}function Vl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),lr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);lr(t)}function Bt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function La(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 Tn=Math.random().toString(36).slice(2),St="__reactFiber$"+Tn,gr="__reactProps$"+Tn,Ct="__reactContainer$"+Tn,ql="__reactEvents$"+Tn,rp="__reactListeners$"+Tn,op="__reactHandles$"+Tn;function rn(e){var t=e[St];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[St]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=La(e);e!==null;){if(n=e[St])return n;e=La(e)}return t}e=n,n=e.parentNode}return null}function yr(e){return e=e[St]||e[Ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $n(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(a(33))}function uo(e){return e[gr]||null}var Ql=[],zn=-1;function Wt(e){return{current:e}}function pe(e){0>zn||(e.current=Ql[zn],Ql[zn]=null,zn--)}function ce(e,t){zn++,Ql[zn]=e.current,e.current=t}var Vt={},Ae=Wt(Vt),Qe=Wt(!1),on=Vt;function Pn(e,t){var n=e.type.contextTypes;if(!n)return Vt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},l;for(l in n)o[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ke(e){return e=e.childContextTypes,e!=null}function co(){pe(Qe),pe(Ae)}function Da(e,t,n){if(Ae.current!==Vt)throw Error(a(168));ce(Ae,t),ce(Qe,n)}function Oa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(a(108,ue(e)||"Unknown",o));return F({},n,r)}function fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vt,on=Ae.current,ce(Ae,e),ce(Qe,Qe.current),!0}function Ma(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Oa(e,t,on),r.__reactInternalMemoizedMergedChildContext=e,pe(Qe),pe(Ae),ce(Ae,e)):pe(Qe),ce(Qe,n)}var Tt=null,po=!1,Kl=!1;function Ia(e){Tt===null?Tt=[e]:Tt.push(e)}function lp(e){po=!0,Ia(e)}function qt(){if(!Kl&&Tt!==null){Kl=!0;var e=0,t=ae;try{var n=Tt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Tt=null,po=!1}catch(o){throw Tt!==null&&(Tt=Tt.slice(e+1)),Fs(ml,qt),o}finally{ae=t,Kl=!1}}return null}var Rn=[],Ln=0,ho=null,mo=0,ot=[],lt=0,ln=null,$t=1,zt="";function sn(e,t){Rn[Ln++]=mo,Rn[Ln++]=ho,ho=e,mo=t}function Aa(e,t,n){ot[lt++]=$t,ot[lt++]=zt,ot[lt++]=ln,ln=e;var r=$t;e=zt;var o=32-ft(r)-1;r&=~(1<<o),n+=1;var l=32-ft(t)+o;if(30<l){var u=o-o%5;l=(r&(1<<u)-1).toString(32),r>>=u,o-=u,$t=1<<32-ft(t)+o|n<<o|r,zt=l+e}else $t=1<<l|n<<o|r,zt=e}function Yl(e){e.return!==null&&(sn(e,1),Aa(e,1,0))}function Gl(e){for(;e===ho;)ho=Rn[--Ln],Rn[Ln]=null,mo=Rn[--Ln],Rn[Ln]=null;for(;e===ln;)ln=ot[--lt],ot[lt]=null,zt=ot[--lt],ot[lt]=null,$t=ot[--lt],ot[lt]=null}var et=null,tt=null,ye=!1,ht=null;function Fa(e,t){var n=ut(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 Ua(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,et=e,tt=Bt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ln!==null?{id:$t,overflow:zt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ut(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,tt=null,!0):!1;default:return!1}}function Xl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zl(e){if(ye){var t=tt;if(t){var n=t;if(!Ua(e,t)){if(Xl(e))throw Error(a(418));t=Bt(n.nextSibling);var r=et;t&&Ua(e,t)?Fa(r,n):(e.flags=e.flags&-4097|2,ye=!1,et=e)}}else{if(Xl(e))throw Error(a(418));e.flags=e.flags&-4097|2,ye=!1,et=e}}}function Ha(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function go(e){if(e!==et)return!1;if(!ye)return Ha(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bl(e.type,e.memoizedProps)),t&&(t=tt)){if(Xl(e))throw Ba(),Error(a(418));for(;t;)Fa(e,t),t=Bt(t.nextSibling)}if(Ha(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){tt=Bt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=et?Bt(e.stateNode.nextSibling):null;return!0}function Ba(){for(var e=tt;e;)e=Bt(e.nextSibling)}function Dn(){tt=et=null,ye=!1}function Jl(e){ht===null?ht=[e]:ht.push(e)}var ip=M.ReactCurrentBatchConfig;function vr(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 o=r,l=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===l?t.ref:(t=function(u){var p=o.refs;u===null?delete p[l]:p[l]=u},t._stringRef=l,t)}if(typeof e!="string")throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function yo(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wa(e){var t=e._init;return t(e._payload)}function Va(e){function t(k,g){if(e){var x=k.deletions;x===null?(k.deletions=[g],k.flags|=16):x.push(g)}}function n(k,g){if(!e)return null;for(;g!==null;)t(k,g),g=g.sibling;return null}function r(k,g){for(k=new Map;g!==null;)g.key!==null?k.set(g.key,g):k.set(g.index,g),g=g.sibling;return k}function o(k,g){return k=bt(k,g),k.index=0,k.sibling=null,k}function l(k,g,x){return k.index=x,e?(x=k.alternate,x!==null?(x=x.index,x<g?(k.flags|=2,g):x):(k.flags|=2,g)):(k.flags|=1048576,g)}function u(k){return e&&k.alternate===null&&(k.flags|=2),k}function p(k,g,x,R){return g===null||g.tag!==6?(g=Wi(x,k.mode,R),g.return=k,g):(g=o(g,x),g.return=k,g)}function m(k,g,x,R){var B=x.type;return B===Se?T(k,g,x.props.children,R,x.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===qe&&Wa(B)===g.type)?(R=o(g,x.props),R.ref=vr(k,g,x),R.return=k,R):(R=Ho(x.type,x.key,x.props,null,k.mode,R),R.ref=vr(k,g,x),R.return=k,R)}function N(k,g,x,R){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=Vi(x,k.mode,R),g.return=k,g):(g=o(g,x.children||[]),g.return=k,g)}function T(k,g,x,R,B){return g===null||g.tag!==7?(g=mn(x,k.mode,R,B),g.return=k,g):(g=o(g,x),g.return=k,g)}function z(k,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Wi(""+g,k.mode,x),g.return=k,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case he:return x=Ho(g.type,g.key,g.props,null,k.mode,x),x.ref=vr(k,null,g),x.return=k,x;case me:return g=Vi(g,k.mode,x),g.return=k,g;case qe:var R=g._init;return z(k,R(g._payload),x)}if(Kn(g)||Y(g))return g=mn(g,k.mode,x,null),g.return=k,g;yo(k,g)}return null}function E(k,g,x,R){var B=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return B!==null?null:p(k,g,""+x,R);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case he:return x.key===B?m(k,g,x,R):null;case me:return x.key===B?N(k,g,x,R):null;case qe:return B=x._init,E(k,g,B(x._payload),R)}if(Kn(x)||Y(x))return B!==null?null:T(k,g,x,R,null);yo(k,x)}return null}function I(k,g,x,R,B){if(typeof R=="string"&&R!==""||typeof R=="number")return k=k.get(x)||null,p(g,k,""+R,B);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case he:return k=k.get(R.key===null?x:R.key)||null,m(g,k,R,B);case me:return k=k.get(R.key===null?x:R.key)||null,N(g,k,R,B);case qe:var q=R._init;return I(k,g,x,q(R._payload),B)}if(Kn(R)||Y(R))return k=k.get(x)||null,T(g,k,R,B,null);yo(g,R)}return null}function U(k,g,x,R){for(var B=null,q=null,Q=g,X=g=0,Re=null;Q!==null&&X<x.length;X++){Q.index>X?(Re=Q,Q=null):Re=Q.sibling;var ie=E(k,Q,x[X],R);if(ie===null){Q===null&&(Q=Re);break}e&&Q&&ie.alternate===null&&t(k,Q),g=l(ie,g,X),q===null?B=ie:q.sibling=ie,q=ie,Q=Re}if(X===x.length)return n(k,Q),ye&&sn(k,X),B;if(Q===null){for(;X<x.length;X++)Q=z(k,x[X],R),Q!==null&&(g=l(Q,g,X),q===null?B=Q:q.sibling=Q,q=Q);return ye&&sn(k,X),B}for(Q=r(k,Q);X<x.length;X++)Re=I(Q,k,X,x[X],R),Re!==null&&(e&&Re.alternate!==null&&Q.delete(Re.key===null?X:Re.key),g=l(Re,g,X),q===null?B=Re:q.sibling=Re,q=Re);return e&&Q.forEach(function(en){return t(k,en)}),ye&&sn(k,X),B}function H(k,g,x,R){var B=Y(x);if(typeof B!="function")throw Error(a(150));if(x=B.call(x),x==null)throw Error(a(151));for(var q=B=null,Q=g,X=g=0,Re=null,ie=x.next();Q!==null&&!ie.done;X++,ie=x.next()){Q.index>X?(Re=Q,Q=null):Re=Q.sibling;var en=E(k,Q,ie.value,R);if(en===null){Q===null&&(Q=Re);break}e&&Q&&en.alternate===null&&t(k,Q),g=l(en,g,X),q===null?B=en:q.sibling=en,q=en,Q=Re}if(ie.done)return n(k,Q),ye&&sn(k,X),B;if(Q===null){for(;!ie.done;X++,ie=x.next())ie=z(k,ie.value,R),ie!==null&&(g=l(ie,g,X),q===null?B=ie:q.sibling=ie,q=ie);return ye&&sn(k,X),B}for(Q=r(k,Q);!ie.done;X++,ie=x.next())ie=I(Q,k,X,ie.value,R),ie!==null&&(e&&ie.alternate!==null&&Q.delete(ie.key===null?X:ie.key),g=l(ie,g,X),q===null?B=ie:q.sibling=ie,q=ie);return e&&Q.forEach(function(Fp){return t(k,Fp)}),ye&&sn(k,X),B}function _e(k,g,x,R){if(typeof x=="object"&&x!==null&&x.type===Se&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case he:e:{for(var B=x.key,q=g;q!==null;){if(q.key===B){if(B=x.type,B===Se){if(q.tag===7){n(k,q.sibling),g=o(q,x.props.children),g.return=k,k=g;break e}}else if(q.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===qe&&Wa(B)===q.type){n(k,q.sibling),g=o(q,x.props),g.ref=vr(k,q,x),g.return=k,k=g;break e}n(k,q);break}else t(k,q);q=q.sibling}x.type===Se?(g=mn(x.props.children,k.mode,R,x.key),g.return=k,k=g):(R=Ho(x.type,x.key,x.props,null,k.mode,R),R.ref=vr(k,g,x),R.return=k,k=R)}return u(k);case me:e:{for(q=x.key;g!==null;){if(g.key===q)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(k,g.sibling),g=o(g,x.children||[]),g.return=k,k=g;break e}else{n(k,g);break}else t(k,g);g=g.sibling}g=Vi(x,k.mode,R),g.return=k,k=g}return u(k);case qe:return q=x._init,_e(k,g,q(x._payload),R)}if(Kn(x))return U(k,g,x,R);if(Y(x))return H(k,g,x,R);yo(k,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(k,g.sibling),g=o(g,x),g.return=k,k=g):(n(k,g),g=Wi(x,k.mode,R),g.return=k,k=g),u(k)):n(k,g)}return _e}var On=Va(!0),qa=Va(!1),vo=Wt(null),wo=null,Mn=null,bl=null;function ei(){bl=Mn=wo=null}function ti(e){var t=vo.current;pe(vo),e._currentValue=t}function ni(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 In(e,t){wo=e,bl=Mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ye=!0),e.firstContext=null)}function it(e){var t=e._currentValue;if(bl!==e)if(e={context:e,memoizedValue:t,next:null},Mn===null){if(wo===null)throw Error(a(308));Mn=e,wo.dependencies={lanes:0,firstContext:e}}else Mn=Mn.next=e;return t}var an=null;function ri(e){an===null?an=[e]:an.push(e)}function Qa(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ri(t)):(n.next=o.next,o.next=n),t.interleaved=n,Pt(e,r)}function Pt(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 Qt=!1;function oi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ka(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 Rt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ne&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Pt(e,n)}return o=r.interleaved,o===null?(t.next=t,ri(r)):(t.next=o.next,o.next=t),r.interleaved=t,Pt(e,n)}function ko(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,vl(e,n)}}function Ya(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=u:l=l.next=u,n=n.next}while(n!==null);l===null?o=l=t:l=l.next=t}else o=l=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:l,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 xo(e,t,n,r){var o=e.updateQueue;Qt=!1;var l=o.firstBaseUpdate,u=o.lastBaseUpdate,p=o.shared.pending;if(p!==null){o.shared.pending=null;var m=p,N=m.next;m.next=null,u===null?l=N:u.next=N,u=m;var T=e.alternate;T!==null&&(T=T.updateQueue,p=T.lastBaseUpdate,p!==u&&(p===null?T.firstBaseUpdate=N:p.next=N,T.lastBaseUpdate=m))}if(l!==null){var z=o.baseState;u=0,T=N=m=null,p=l;do{var E=p.lane,I=p.eventTime;if((r&E)===E){T!==null&&(T=T.next={eventTime:I,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var U=e,H=p;switch(E=t,I=n,H.tag){case 1:if(U=H.payload,typeof U=="function"){z=U.call(I,z,E);break e}z=U;break e;case 3:U.flags=U.flags&-65537|128;case 0:if(U=H.payload,E=typeof U=="function"?U.call(I,z,E):U,E==null)break e;z=F({},z,E);break e;case 2:Qt=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,E=o.effects,E===null?o.effects=[p]:E.push(p))}else I={eventTime:I,lane:E,tag:p.tag,payload:p.payload,callback:p.callback,next:null},T===null?(N=T=I,m=z):T=T.next=I,u|=E;if(p=p.next,p===null){if(p=o.shared.pending,p===null)break;E=p,p=E.next,E.next=null,o.lastBaseUpdate=E,o.shared.pending=null}}while(!0);if(T===null&&(m=z),o.baseState=m,o.firstBaseUpdate=N,o.lastBaseUpdate=T,t=o.shared.interleaved,t!==null){o=t;do u|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);dn|=u,e.lanes=u,e.memoizedState=z}}function Ga(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(a(191,o));o.call(r)}}}var wr={},Nt=Wt(wr),kr=Wt(wr),xr=Wt(wr);function un(e){if(e===wr)throw Error(a(174));return e}function li(e,t){switch(ce(xr,t),ce(kr,e),ce(Nt,wr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:il(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=il(t,e)}pe(Nt),ce(Nt,t)}function An(){pe(Nt),pe(kr),pe(xr)}function Xa(e){un(xr.current);var t=un(Nt.current),n=il(t,e.type);t!==n&&(ce(kr,e),ce(Nt,n))}function ii(e){kr.current===e&&(pe(Nt),pe(kr))}var ve=Wt(0);function So(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 si=[];function ai(){for(var e=0;e<si.length;e++)si[e]._workInProgressVersionPrimary=null;si.length=0}var No=M.ReactCurrentDispatcher,ui=M.ReactCurrentBatchConfig,cn=0,we=null,Ce=null,ze=null,_o=!1,Sr=!1,Nr=0,sp=0;function Fe(){throw Error(a(321))}function ci(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!pt(e[n],t[n]))return!1;return!0}function di(e,t,n,r,o,l){if(cn=l,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,No.current=e===null||e.memoizedState===null?dp:fp,e=n(r,o),Sr){l=0;do{if(Sr=!1,Nr=0,25<=l)throw Error(a(301));l+=1,ze=Ce=null,t.updateQueue=null,No.current=pp,e=n(r,o)}while(Sr)}if(No.current=Co,t=Ce!==null&&Ce.next!==null,cn=0,ze=Ce=we=null,_o=!1,t)throw Error(a(300));return e}function fi(){var e=Nr!==0;return Nr=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?we.memoizedState=ze=e:ze=ze.next=e,ze}function st(){if(Ce===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=ze===null?we.memoizedState:ze.next;if(t!==null)ze=t,Ce=e;else{if(e===null)throw Error(a(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},ze===null?we.memoizedState=ze=e:ze=ze.next=e}return ze}function _r(e,t){return typeof t=="function"?t(e):t}function pi(e){var t=st(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=Ce,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var u=o.next;o.next=l.next,l.next=u}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var p=u=null,m=null,N=l;do{var T=N.lane;if((cn&T)===T)m!==null&&(m=m.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:T,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};m===null?(p=m=z,u=r):m=m.next=z,we.lanes|=T,dn|=T}N=N.next}while(N!==null&&N!==l);m===null?u=r:m.next=p,pt(r,t.memoizedState)||(Ye=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=m,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,we.lanes|=l,dn|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function hi(e){var t=st(),n=t.queue;if(n===null)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var u=o=o.next;do l=e(l,u.action),u=u.next;while(u!==o);pt(l,t.memoizedState)||(Ye=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Za(){}function Ja(e,t){var n=we,r=st(),o=t(),l=!pt(r.memoizedState,o);if(l&&(r.memoizedState=o,Ye=!0),r=r.queue,mi(tu.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,jr(9,eu.bind(null,n,r,o,t),void 0,null),Pe===null)throw Error(a(349));(cn&30)!==0||ba(n,t,o)}return o}function ba(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function eu(e,t,n,r){t.value=n,t.getSnapshot=r,nu(t)&&ru(e)}function tu(e,t,n){return n(function(){nu(t)&&ru(e)})}function nu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!pt(e,n)}catch{return!0}}function ru(e){var t=Pt(e,1);t!==null&&vt(t,e,1,-1)}function ou(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_r,lastRenderedState:e},t.queue=e,e=e.dispatch=cp.bind(null,we,e),[t.memoizedState,e]}function jr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=we.updateQueue,t===null?(t={lastEffect:null,stores:null},we.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 lu(){return st().memoizedState}function jo(e,t,n,r){var o=_t();we.flags|=e,o.memoizedState=jr(1|t,n,void 0,r===void 0?null:r)}function Eo(e,t,n,r){var o=st();r=r===void 0?null:r;var l=void 0;if(Ce!==null){var u=Ce.memoizedState;if(l=u.destroy,r!==null&&ci(r,u.deps)){o.memoizedState=jr(t,n,l,r);return}}we.flags|=e,o.memoizedState=jr(1|t,n,l,r)}function iu(e,t){return jo(8390656,8,e,t)}function mi(e,t){return Eo(2048,8,e,t)}function su(e,t){return Eo(4,2,e,t)}function au(e,t){return Eo(4,4,e,t)}function uu(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 cu(e,t,n){return n=n!=null?n.concat([e]):null,Eo(4,4,uu.bind(null,t,e),n)}function gi(){}function du(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ci(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fu(e,t){var n=st();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ci(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pu(e,t,n){return(cn&21)===0?(e.baseState&&(e.baseState=!1,Ye=!0),e.memoizedState=n):(pt(n,t)||(n=Ws(),we.lanes|=n,dn|=n,e.baseState=!0),t)}function ap(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=ui.transition;ui.transition={};try{e(!1),t()}finally{ae=n,ui.transition=r}}function hu(){return st().memoizedState}function up(e,t,n){var r=Zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},mu(e))gu(t,n);else if(n=Qa(e,t,n,r),n!==null){var o=We();vt(n,e,r,o),yu(n,t,r)}}function cp(e,t,n){var r=Zt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(mu(e))gu(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var u=t.lastRenderedState,p=l(u,n);if(o.hasEagerState=!0,o.eagerState=p,pt(p,u)){var m=t.interleaved;m===null?(o.next=o,ri(t)):(o.next=m.next,m.next=o),t.interleaved=o;return}}catch{}finally{}n=Qa(e,t,o,r),n!==null&&(o=We(),vt(n,e,r,o),yu(n,t,r))}}function mu(e){var t=e.alternate;return e===we||t!==null&&t===we}function gu(e,t){Sr=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yu(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vl(e,n)}}var Co={readContext:it,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},dp={readContext:it,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:iu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,jo(4194308,4,uu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return jo(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();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=up.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:ou,useDebugValue:gi,useDeferredValue:function(e){return _t().memoizedState=e},useTransition:function(){var e=ou(!1),t=e[0];return e=ap.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=we,o=_t();if(ye){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Pe===null)throw Error(a(349));(cn&30)!==0||ba(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,iu(tu.bind(null,r,l,e),[e]),r.flags|=2048,jr(9,eu.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=_t(),t=Pe.identifierPrefix;if(ye){var n=zt,r=$t;n=(r&~(1<<32-ft(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Nr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=sp++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fp={readContext:it,useCallback:du,useContext:it,useEffect:mi,useImperativeHandle:cu,useInsertionEffect:su,useLayoutEffect:au,useMemo:fu,useReducer:pi,useRef:lu,useState:function(){return pi(_r)},useDebugValue:gi,useDeferredValue:function(e){var t=st();return pu(t,Ce.memoizedState,e)},useTransition:function(){var e=pi(_r)[0],t=st().memoizedState;return[e,t]},useMutableSource:Za,useSyncExternalStore:Ja,useId:hu,unstable_isNewReconciler:!1},pp={readContext:it,useCallback:du,useContext:it,useEffect:mi,useImperativeHandle:cu,useInsertionEffect:su,useLayoutEffect:au,useMemo:fu,useReducer:hi,useRef:lu,useState:function(){return hi(_r)},useDebugValue:gi,useDeferredValue:function(e){var t=st();return Ce===null?t.memoizedState=e:pu(t,Ce.memoizedState,e)},useTransition:function(){var e=hi(_r)[0],t=st().memoizedState;return[e,t]},useMutableSource:Za,useSyncExternalStore:Ja,useId:hu,unstable_isNewReconciler:!1};function mt(e,t){if(e&&e.defaultProps){t=F({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function yi(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var To={isMounted:function(e){return(e=e._reactInternals)?nn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),l=Rt(r,o);l.payload=t,n!=null&&(l.callback=n),t=Kt(e,l,o),t!==null&&(vt(t,e,o,r),ko(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=We(),o=Zt(e),l=Rt(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=Kt(e,l,o),t!==null&&(vt(t,e,o,r),ko(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=We(),r=Zt(e),o=Rt(n,r);o.tag=2,t!=null&&(o.callback=t),t=Kt(e,o,r),t!==null&&(vt(t,e,r,n),ko(t,e,r))}};function vu(e,t,n,r,o,l,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,u):t.prototype&&t.prototype.isPureReactComponent?!dr(n,r)||!dr(o,l):!0}function wu(e,t,n){var r=!1,o=Vt,l=t.contextType;return typeof l=="object"&&l!==null?l=it(l):(o=Ke(t)?on:Ae.current,r=t.contextTypes,l=(r=r!=null)?Pn(e,o):Vt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=To,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function ku(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&&To.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},oi(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=it(l):(l=Ke(t)?on:Ae.current,o.context=Pn(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(yi(e,t,l,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&To.enqueueReplaceState(o,o.state,null),xo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Fn(e,t){try{var n="",r=t;do n+=oe(r),r=r.return;while(r);var o=n}catch(l){o=`
40
+ Error generating stack: `+l.message+`
41
+ `+l.stack}return{value:e,source:t,stack:o,digest:null}}function wi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ki(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hp=typeof WeakMap=="function"?WeakMap:Map;function xu(e,t,n){n=Rt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Oo||(Oo=!0,Oi=r),ki(e,t)},n}function Su(e,t,n){n=Rt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ki(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){ki(e,t),typeof r!="function"&&(Gt===null?Gt=new Set([this]):Gt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function Nu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hp;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Tp.bind(null,e,t,n),t.then(e,e))}function _u(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 ju(e,t,n,r,o){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=Rt(-1,1),t.tag=2,Kt(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var mp=M.ReactCurrentOwner,Ye=!1;function Be(e,t,n,r){t.child=e===null?qa(t,null,n,r):On(t,e.child,n,r)}function Eu(e,t,n,r,o){n=n.render;var l=t.ref;return In(t,o),r=di(e,t,n,r,l,o),n=fi(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ye&&n&&Yl(t),t.flags|=1,Be(e,t,r,o),t.child)}function Cu(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Bi(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Tu(e,t,l,r,o)):(e=Ho(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,(e.lanes&o)===0){var u=l.memoizedProps;if(n=n.compare,n=n!==null?n:dr,n(u,r)&&e.ref===t.ref)return Lt(e,t,o)}return t.flags|=1,e=bt(l,r),e.ref=t.ref,e.return=t,t.child=e}function Tu(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(dr(l,r)&&e.ref===t.ref)if(Ye=!1,t.pendingProps=r=l,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ye=!0);else return t.lanes=e.lanes,Lt(e,t,o)}return xi(e,t,n,r,o)}function $u(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(Hn,nt),nt|=n;else{if((n&1073741824)===0)return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ce(Hn,nt),nt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,ce(Hn,nt),nt|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,ce(Hn,nt),nt|=r;return Be(e,t,o,n),t.child}function zu(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xi(e,t,n,r,o){var l=Ke(n)?on:Ae.current;return l=Pn(t,l),In(t,o),n=di(e,t,n,r,l,o),r=fi(),e!==null&&!Ye?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Lt(e,t,o)):(ye&&r&&Yl(t),t.flags|=1,Be(e,t,n,o),t.child)}function Pu(e,t,n,r,o){if(Ke(n)){var l=!0;fo(t)}else l=!1;if(In(t,o),t.stateNode===null)zo(e,t),wu(t,n,r),vi(t,n,r,o),r=!0;else if(e===null){var u=t.stateNode,p=t.memoizedProps;u.props=p;var m=u.context,N=n.contextType;typeof N=="object"&&N!==null?N=it(N):(N=Ke(n)?on:Ae.current,N=Pn(t,N));var T=n.getDerivedStateFromProps,z=typeof T=="function"||typeof u.getSnapshotBeforeUpdate=="function";z||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==r||m!==N)&&ku(t,u,r,N),Qt=!1;var E=t.memoizedState;u.state=E,xo(t,r,u,o),m=t.memoizedState,p!==r||E!==m||Qe.current||Qt?(typeof T=="function"&&(yi(t,n,T,r),m=t.memoizedState),(p=Qt||vu(t,n,p,r,E,m,N))?(z||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=m),u.props=r,u.state=m,u.context=N,r=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Ka(e,t),p=t.memoizedProps,N=t.type===t.elementType?p:mt(t.type,p),u.props=N,z=t.pendingProps,E=u.context,m=n.contextType,typeof m=="object"&&m!==null?m=it(m):(m=Ke(n)?on:Ae.current,m=Pn(t,m));var I=n.getDerivedStateFromProps;(T=typeof I=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p!==z||E!==m)&&ku(t,u,r,m),Qt=!1,E=t.memoizedState,u.state=E,xo(t,r,u,o);var U=t.memoizedState;p!==z||E!==U||Qe.current||Qt?(typeof I=="function"&&(yi(t,n,I,r),U=t.memoizedState),(N=Qt||vu(t,n,N,r,E,U,m)||!1)?(T||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,U,m),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,U,m)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),u.props=r,u.state=U,u.context=m,r=N):(typeof u.componentDidUpdate!="function"||p===e.memoizedProps&&E===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&E===e.memoizedState||(t.flags|=1024),r=!1)}return Si(e,t,n,r,l,o)}function Si(e,t,n,r,o,l){zu(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return o&&Ma(t,n,!1),Lt(e,t,l);r=t.stateNode,mp.current=t;var p=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=On(t,e.child,null,l),t.child=On(t,null,p,l)):Be(e,t,p,l),t.memoizedState=r.state,o&&Ma(t,n,!0),t.child}function Ru(e){var t=e.stateNode;t.pendingContext?Da(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Da(e,t.context,!1),li(e,t.containerInfo)}function Lu(e,t,n,r,o){return Dn(),Jl(o),t.flags|=256,Be(e,t,n,r),t.child}var Ni={dehydrated:null,treeContext:null,retryLane:0};function _i(e){return{baseLanes:e,cachePool:null,transitions:null}}function Du(e,t,n){var r=t.pendingProps,o=ve.current,l=!1,u=(t.flags&128)!==0,p;if((p=u)||(p=e!==null&&e.memoizedState===null?!1:(o&2)!==0),p?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ce(ve,o&1),e===null)return Zl(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):(u=r.children,e=r.fallback,l?(r=t.mode,l=t.child,u={mode:"hidden",children:u},(r&1)===0&&l!==null?(l.childLanes=0,l.pendingProps=u):l=Bo(u,r,0,null),e=mn(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=_i(n),t.memoizedState=Ni,e):ji(t,u));if(o=e.memoizedState,o!==null&&(p=o.dehydrated,p!==null))return gp(e,t,u,r,p,o,n);if(l){l=r.fallback,u=t.mode,o=e.child,p=o.sibling;var m={mode:"hidden",children:r.children};return(u&1)===0&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=m,t.deletions=null):(r=bt(o,m),r.subtreeFlags=o.subtreeFlags&14680064),p!==null?l=bt(p,l):(l=mn(l,u,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,u=e.child.memoizedState,u=u===null?_i(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ni,r}return l=e.child,e=l.sibling,r=bt(l,{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 ji(e,t){return t=Bo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $o(e,t,n,r){return r!==null&&Jl(r),On(t,e.child,null,n),e=ji(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gp(e,t,n,r,o,l,u){if(n)return t.flags&256?(t.flags&=-257,r=wi(Error(a(422))),$o(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=Bo({mode:"visible",children:r.children},o,0,null),l=mn(l,o,u,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,(t.mode&1)!==0&&On(t,e.child,null,u),t.child.memoizedState=_i(u),t.memoizedState=Ni,l);if((t.mode&1)===0)return $o(e,t,u,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var p=r.dgst;return r=p,l=Error(a(419)),r=wi(l,r,void 0),$o(e,t,u,r)}if(p=(u&e.childLanes)!==0,Ye||p){if(r=Pe,r!==null){switch(u&-u){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(r.suspendedLanes|u))!==0?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Pt(e,o),vt(r,e,o,-1))}return Hi(),r=wi(Error(a(421))),$o(e,t,u,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=$p.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,tt=Bt(o.nextSibling),et=t,ye=!0,ht=null,e!==null&&(ot[lt++]=$t,ot[lt++]=zt,ot[lt++]=ln,$t=e.id,zt=e.overflow,ln=t),t=ji(t,r.children),t.flags|=4096,t)}function Ou(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ni(e.return,t,n)}function Ei(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o)}function Mu(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Be(e,t,r.children,n),r=ve.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&&Ou(e,n,t);else if(e.tag===19)Ou(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(ce(ve,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&So(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ei(t,!1,o,n,l);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&So(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ei(t,!0,n,null,l);break;case"together":Ei(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function zo(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Lt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dn|=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=bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yp(e,t,n){switch(t.tag){case 3:Ru(t),Dn();break;case 5:Xa(t);break;case 1:Ke(t.type)&&fo(t);break;case 4:li(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ce(vo,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(ve,ve.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Du(e,t,n):(ce(ve,ve.current&1),e=Lt(e,t,n),e!==null?e.sibling:null);ce(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Mu(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ce(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,$u(e,t,n)}return Lt(e,t,n)}var Iu,Ci,Au,Fu;Iu=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}},Ci=function(){},Au=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,un(Nt.current);var l=null;switch(n){case"input":o=nl(e,o),r=nl(e,r),l=[];break;case"select":o=F({},o,{value:void 0}),r=F({},r,{value:void 0}),l=[];break;case"textarea":o=ll(e,o),r=ll(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ao)}sl(n,r);var u;n=null;for(N in o)if(!r.hasOwnProperty(N)&&o.hasOwnProperty(N)&&o[N]!=null)if(N==="style"){var p=o[N];for(u in p)p.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(f.hasOwnProperty(N)?l||(l=[]):(l=l||[]).push(N,null));for(N in r){var m=r[N];if(p=o!=null?o[N]:void 0,r.hasOwnProperty(N)&&m!==p&&(m!=null||p!=null))if(N==="style")if(p){for(u in p)!p.hasOwnProperty(u)||m&&m.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in m)m.hasOwnProperty(u)&&p[u]!==m[u]&&(n||(n={}),n[u]=m[u])}else n||(l||(l=[]),l.push(N,n)),n=m;else N==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,p=p?p.__html:void 0,m!=null&&p!==m&&(l=l||[]).push(N,m)):N==="children"?typeof m!="string"&&typeof m!="number"||(l=l||[]).push(N,""+m):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(f.hasOwnProperty(N)?(m!=null&&N==="onScroll"&&fe("scroll",e),l||p===m||(l=[])):(l=l||[]).push(N,m))}n&&(l=l||[]).push("style",n);var N=l;(t.updateQueue=N)&&(t.flags|=4)}},Fu=function(e,t,n,r){n!==r&&(t.flags|=4)};function Er(e,t){if(!ye)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 Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vp(e,t,n){var r=t.pendingProps;switch(Gl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ke(t.type)&&co(),Ue(t),null;case 3:return r=t.stateNode,An(),pe(Qe),pe(Ae),ai(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(go(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ht!==null&&(Ai(ht),ht=null))),Ci(e,t),Ue(t),null;case 5:ii(t);var o=un(xr.current);if(n=t.type,e!==null&&t.stateNode!=null)Au(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(a(166));return Ue(t),null}if(e=un(Nt.current),go(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[St]=t,r[gr]=l,e=(t.mode&1)!==0,n){case"dialog":fe("cancel",r),fe("close",r);break;case"iframe":case"object":case"embed":fe("load",r);break;case"video":case"audio":for(o=0;o<pr.length;o++)fe(pr[o],r);break;case"source":fe("error",r);break;case"img":case"image":case"link":fe("error",r),fe("load",r);break;case"details":fe("toggle",r);break;case"input":ws(r,l),fe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},fe("invalid",r);break;case"textarea":Ss(r,l),fe("invalid",r)}sl(n,l),o=null;for(var u in l)if(l.hasOwnProperty(u)){var p=l[u];u==="children"?typeof p=="string"?r.textContent!==p&&(l.suppressHydrationWarning!==!0&&so(r.textContent,p,e),o=["children",p]):typeof p=="number"&&r.textContent!==""+p&&(l.suppressHydrationWarning!==!0&&so(r.textContent,p,e),o=["children",""+p]):f.hasOwnProperty(u)&&p!=null&&u==="onScroll"&&fe("scroll",r)}switch(n){case"input":Ar(r),xs(r,l,!0);break;case"textarea":Ar(r),_s(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=ao)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=js(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[St]=t,e[gr]=r,Iu(e,t,!1,!1),t.stateNode=e;e:{switch(u=al(n,r),n){case"dialog":fe("cancel",e),fe("close",e),o=r;break;case"iframe":case"object":case"embed":fe("load",e),o=r;break;case"video":case"audio":for(o=0;o<pr.length;o++)fe(pr[o],e);o=r;break;case"source":fe("error",e),o=r;break;case"img":case"image":case"link":fe("error",e),fe("load",e),o=r;break;case"details":fe("toggle",e),o=r;break;case"input":ws(e,r),o=nl(e,r),fe("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=F({},r,{value:void 0}),fe("invalid",e);break;case"textarea":Ss(e,r),o=ll(e,r),fe("invalid",e);break;default:o=r}sl(n,o),p=o;for(l in p)if(p.hasOwnProperty(l)){var m=p[l];l==="style"?Ts(e,m):l==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&Es(e,m)):l==="children"?typeof m=="string"?(n!=="textarea"||m!=="")&&Yn(e,m):typeof m=="number"&&Yn(e,""+m):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(f.hasOwnProperty(l)?m!=null&&l==="onScroll"&&fe("scroll",e):m!=null&&$e(e,l,m,u))}switch(n){case"input":Ar(e),xs(e,r,!1);break;case"textarea":Ar(e),_s(e);break;case"option":r.value!=null&&e.setAttribute("value",""+se(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?wn(e,!!r.multiple,l,!1):r.defaultValue!=null&&wn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ao)}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 Ue(t),null;case 6:if(e&&t.stateNode!=null)Fu(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(a(166));if(n=un(xr.current),un(Nt.current),go(t)){if(r=t.stateNode,n=t.memoizedProps,r[St]=t,(l=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:so(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&so(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[St]=t,t.stateNode=r}return Ue(t),null;case 13:if(pe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&tt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ba(),Dn(),t.flags|=98560,l=!1;else if(l=go(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(a(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(a(317));l[St]=t}else Dn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),l=!1}else ht!==null&&(Ai(ht),ht=null),l=!0;if(!l)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||(ve.current&1)!==0?Te===0&&(Te=3):Hi())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return An(),Ci(e,t),e===null&&hr(t.stateNode.containerInfo),Ue(t),null;case 10:return ti(t.type._context),Ue(t),null;case 17:return Ke(t.type)&&co(),Ue(t),null;case 19:if(pe(ve),l=t.memoizedState,l===null)return Ue(t),null;if(r=(t.flags&128)!==0,u=l.rendering,u===null)if(r)Er(l,!1);else{if(Te!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=So(e),u!==null){for(t.flags|=128,Er(l,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=14680066,u=l.alternate,u===null?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(ve,ve.current&1|2),t.child}e=e.sibling}l.tail!==null&&Ne()>Bn&&(t.flags|=128,r=!0,Er(l,!1),t.lanes=4194304)}else{if(!r)if(e=So(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Er(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!ye)return Ue(t),null}else 2*Ne()-l.renderingStartTime>Bn&&n!==1073741824&&(t.flags|=128,r=!0,Er(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(n=l.last,n!==null?n.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ne(),t.sibling=null,n=ve.current,ce(ve,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Ui(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(nt&1073741824)!==0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(a(156,t.tag))}function wp(e,t){switch(Gl(t),t.tag){case 1:return Ke(t.type)&&co(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(),pe(Qe),pe(Ae),ai(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ii(t),null;case 13:if(pe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Dn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ve),null;case 4:return An(),null;case 10:return ti(t.type._context),null;case 22:case 23:return Ui(),null;case 24:return null;default:return null}}var Po=!1,He=!1,kp=typeof WeakSet=="function"?WeakSet:Set,A=null;function Un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xe(e,t,r)}else n.current=null}function Ti(e,t,n){try{n()}catch(r){xe(e,t,r)}}var Uu=!1;function xp(e,t){if(Ul=Xr,e=va(),Rl(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 o=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var u=0,p=-1,m=-1,N=0,T=0,z=e,E=null;t:for(;;){for(var I;z!==n||o!==0&&z.nodeType!==3||(p=u+o),z!==l||r!==0&&z.nodeType!==3||(m=u+r),z.nodeType===3&&(u+=z.nodeValue.length),(I=z.firstChild)!==null;)E=z,z=I;for(;;){if(z===e)break t;if(E===n&&++N===o&&(p=u),E===l&&++T===r&&(m=u),(I=z.nextSibling)!==null)break;z=E,E=z.parentNode}z=I}n=p===-1||m===-1?null:{start:p,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hl={focusedElem:e,selectionRange:n},Xr=!1,A=t;A!==null;)if(t=A,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,A=e;else for(;A!==null;){t=A;try{var U=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(U!==null){var H=U.memoizedProps,_e=U.memoizedState,k=t.stateNode,g=k.getSnapshotBeforeUpdate(t.elementType===t.type?H:mt(t.type,H),_e);k.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(R){xe(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,A=e;break}A=t.return}return U=Uu,Uu=!1,U}function Cr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&Ti(t,n,l)}o=o.next}while(o!==r)}}function Ro(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 $i(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 Hu(e){var t=e.alternate;t!==null&&(e.alternate=null,Hu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[St],delete t[gr],delete t[ql],delete t[rp],delete t[op])),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 Bu(e){return e.tag===5||e.tag===3||e.tag===4}function Wu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bu(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 zi(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=ao));else if(r!==4&&(e=e.child,e!==null))for(zi(e,t,n),e=e.sibling;e!==null;)zi(e,t,n),e=e.sibling}function Pi(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(Pi(e,t,n),e=e.sibling;e!==null;)Pi(e,t,n),e=e.sibling}var Oe=null,gt=!1;function Yt(e,t,n){for(n=n.child;n!==null;)Vu(e,t,n),n=n.sibling}function Vu(e,t,n){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Vr,n)}catch{}switch(n.tag){case 5:He||Un(n,t);case 6:var r=Oe,o=gt;Oe=null,Yt(e,t,n),Oe=r,gt=o,Oe!==null&&(gt?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(gt?(e=Oe,n=n.stateNode,e.nodeType===8?Vl(e.parentNode,n):e.nodeType===1&&Vl(e,n),lr(e)):Vl(Oe,n.stateNode));break;case 4:r=Oe,o=gt,Oe=n.stateNode.containerInfo,gt=!0,Yt(e,t,n),Oe=r,gt=o;break;case 0:case 11:case 14:case 15:if(!He&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,u=l.destroy;l=l.tag,u!==void 0&&((l&2)!==0||(l&4)!==0)&&Ti(n,t,u),o=o.next}while(o!==r)}Yt(e,t,n);break;case 1:if(!He&&(Un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(p){xe(n,t,p)}Yt(e,t,n);break;case 21:Yt(e,t,n);break;case 22:n.mode&1?(He=(r=He)||n.memoizedState!==null,Yt(e,t,n),He=r):Yt(e,t,n);break;default:Yt(e,t,n)}}function qu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kp),t.forEach(function(r){var o=zp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var l=e,u=t,p=u;e:for(;p!==null;){switch(p.tag){case 5:Oe=p.stateNode,gt=!1;break e;case 3:Oe=p.stateNode.containerInfo,gt=!0;break e;case 4:Oe=p.stateNode.containerInfo,gt=!0;break e}p=p.return}if(Oe===null)throw Error(a(160));Vu(l,u,o),Oe=null,gt=!1;var m=o.alternate;m!==null&&(m.return=null),o.return=null}catch(N){xe(o,t,N)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Qu(t,e),t=t.sibling}function Qu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yt(t,e),jt(e),r&4){try{Cr(3,e,e.return),Ro(3,e)}catch(H){xe(e,e.return,H)}try{Cr(5,e,e.return)}catch(H){xe(e,e.return,H)}}break;case 1:yt(t,e),jt(e),r&512&&n!==null&&Un(n,n.return);break;case 5:if(yt(t,e),jt(e),r&512&&n!==null&&Un(n,n.return),e.flags&32){var o=e.stateNode;try{Yn(o,"")}catch(H){xe(e,e.return,H)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,u=n!==null?n.memoizedProps:l,p=e.type,m=e.updateQueue;if(e.updateQueue=null,m!==null)try{p==="input"&&l.type==="radio"&&l.name!=null&&ks(o,l),al(p,u);var N=al(p,l);for(u=0;u<m.length;u+=2){var T=m[u],z=m[u+1];T==="style"?Ts(o,z):T==="dangerouslySetInnerHTML"?Es(o,z):T==="children"?Yn(o,z):$e(o,T,z,N)}switch(p){case"input":rl(o,l);break;case"textarea":Ns(o,l);break;case"select":var E=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var I=l.value;I!=null?wn(o,!!l.multiple,I,!1):E!==!!l.multiple&&(l.defaultValue!=null?wn(o,!!l.multiple,l.defaultValue,!0):wn(o,!!l.multiple,l.multiple?[]:"",!1))}o[gr]=l}catch(H){xe(e,e.return,H)}}break;case 6:if(yt(t,e),jt(e),r&4){if(e.stateNode===null)throw Error(a(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(H){xe(e,e.return,H)}}break;case 3:if(yt(t,e),jt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lr(t.containerInfo)}catch(H){xe(e,e.return,H)}break;case 4:yt(t,e),jt(e);break;case 13:yt(t,e),jt(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Di=Ne())),r&4&&qu(e);break;case 22:if(T=n!==null&&n.memoizedState!==null,e.mode&1?(He=(N=He)||T,yt(t,e),He=N):yt(t,e),jt(e),r&8192){if(N=e.memoizedState!==null,(e.stateNode.isHidden=N)&&!T&&(e.mode&1)!==0)for(A=e,T=e.child;T!==null;){for(z=A=T;A!==null;){switch(E=A,I=E.child,E.tag){case 0:case 11:case 14:case 15:Cr(4,E,E.return);break;case 1:Un(E,E.return);var U=E.stateNode;if(typeof U.componentWillUnmount=="function"){r=E,n=E.return;try{t=r,U.props=t.memoizedProps,U.state=t.memoizedState,U.componentWillUnmount()}catch(H){xe(r,n,H)}}break;case 5:Un(E,E.return);break;case 22:if(E.memoizedState!==null){Gu(z);continue}}I!==null?(I.return=E,A=I):Gu(z)}T=T.sibling}e:for(T=null,z=e;;){if(z.tag===5){if(T===null){T=z;try{o=z.stateNode,N?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(p=z.stateNode,m=z.memoizedProps.style,u=m!=null&&m.hasOwnProperty("display")?m.display:null,p.style.display=Cs("display",u))}catch(H){xe(e,e.return,H)}}}else if(z.tag===6){if(T===null)try{z.stateNode.nodeValue=N?"":z.memoizedProps}catch(H){xe(e,e.return,H)}}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;T===z&&(T=null),z=z.return}T===z&&(T=null),z.sibling.return=z.return,z=z.sibling}}break;case 19:yt(t,e),jt(e),r&4&&qu(e);break;case 21:break;default:yt(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Bu(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Yn(o,""),r.flags&=-33);var l=Wu(e);Pi(e,l,o);break;case 3:case 4:var u=r.stateNode.containerInfo,p=Wu(e);zi(e,p,u);break;default:throw Error(a(161))}}catch(m){xe(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sp(e,t,n){A=e,Ku(e)}function Ku(e,t,n){for(var r=(e.mode&1)!==0;A!==null;){var o=A,l=o.child;if(o.tag===22&&r){var u=o.memoizedState!==null||Po;if(!u){var p=o.alternate,m=p!==null&&p.memoizedState!==null||He;p=Po;var N=He;if(Po=u,(He=m)&&!N)for(A=o;A!==null;)u=A,m=u.child,u.tag===22&&u.memoizedState!==null?Xu(o):m!==null?(m.return=u,A=m):Xu(o);for(;l!==null;)A=l,Ku(l),l=l.sibling;A=o,Po=p,He=N}Yu(e)}else(o.subtreeFlags&8772)!==0&&l!==null?(l.return=o,A=l):Yu(e)}}function Yu(e){for(;A!==null;){var t=A;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:He||Ro(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!He)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ga(t,l,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ga(t,u,n)}break;case 5:var p=t.stateNode;if(n===null&&t.flags&4){n=p;var m=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src&&(n.src=m.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 T=N.memoizedState;if(T!==null){var z=T.dehydrated;z!==null&&lr(z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(a(163))}He||t.flags&512&&$i(t)}catch(E){xe(t,t.return,E)}}if(t===e){A=null;break}if(n=t.sibling,n!==null){n.return=t.return,A=n;break}A=t.return}}function Gu(e){for(;A!==null;){var t=A;if(t===e){A=null;break}var n=t.sibling;if(n!==null){n.return=t.return,A=n;break}A=t.return}}function Xu(e){for(;A!==null;){var t=A;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ro(4,t)}catch(m){xe(t,n,m)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(m){xe(t,o,m)}}var l=t.return;try{$i(t)}catch(m){xe(t,l,m)}break;case 5:var u=t.return;try{$i(t)}catch(m){xe(t,u,m)}}}catch(m){xe(t,t.return,m)}if(t===e){A=null;break}var p=t.sibling;if(p!==null){p.return=t.return,A=p;break}A=t.return}}var Np=Math.ceil,Lo=M.ReactCurrentDispatcher,Ri=M.ReactCurrentOwner,at=M.ReactCurrentBatchConfig,ne=0,Pe=null,je=null,Me=0,nt=0,Hn=Wt(0),Te=0,Tr=null,dn=0,Do=0,Li=0,$r=null,Ge=null,Di=0,Bn=1/0,Dt=null,Oo=!1,Oi=null,Gt=null,Mo=!1,Xt=null,Io=0,zr=0,Mi=null,Ao=-1,Fo=0;function We(){return(ne&6)!==0?Ne():Ao!==-1?Ao:Ao=Ne()}function Zt(e){return(e.mode&1)===0?1:(ne&2)!==0&&Me!==0?Me&-Me:ip.transition!==null?(Fo===0&&(Fo=Ws()),Fo):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Js(e.type)),e)}function vt(e,t,n,r){if(50<zr)throw zr=0,Mi=null,Error(a(185));er(e,n,r),((ne&2)===0||e!==Pe)&&(e===Pe&&((ne&2)===0&&(Do|=n),Te===4&&Jt(e,Me)),Xe(e,r),n===1&&ne===0&&(t.mode&1)===0&&(Bn=Ne()+500,po&&qt()))}function Xe(e,t){var n=e.callbackNode;lf(e,t);var r=Kr(e,e===Pe?Me:0);if(r===0)n!==null&&Us(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Us(n),t===1)e.tag===0?lp(Ju.bind(null,e)):Ia(Ju.bind(null,e)),tp(function(){(ne&6)===0&&qt()}),n=null;else{switch(Vs(r)){case 1:n=ml;break;case 4:n=Hs;break;case 16:n=Wr;break;case 536870912:n=Bs;break;default:n=Wr}n=ic(n,Zu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Zu(e,t){if(Ao=-1,Fo=0,(ne&6)!==0)throw Error(a(327));var n=e.callbackNode;if(Wn()&&e.callbackNode!==n)return null;var r=Kr(e,e===Pe?Me:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Uo(e,r);else{t=r;var o=ne;ne|=2;var l=ec();(Pe!==e||Me!==t)&&(Dt=null,Bn=Ne()+500,pn(e,t));do try{Ep();break}catch(p){bu(e,p)}while(!0);ei(),Lo.current=l,ne=o,je!==null?t=0:(Pe=null,Me=0,t=Te)}if(t!==0){if(t===2&&(o=gl(e),o!==0&&(r=o,t=Ii(e,o))),t===1)throw n=Tr,pn(e,0),Jt(e,r),Xe(e,Ne()),n;if(t===6)Jt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!_p(o)&&(t=Uo(e,r),t===2&&(l=gl(e),l!==0&&(r=l,t=Ii(e,l))),t===1))throw n=Tr,pn(e,0),Jt(e,r),Xe(e,Ne()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:hn(e,Ge,Dt);break;case 3:if(Jt(e,r),(r&130023424)===r&&(t=Di+500-Ne(),10<t)){if(Kr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){We(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Wl(hn.bind(null,e,Ge,Dt),t);break}hn(e,Ge,Dt);break;case 4:if(Jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-ft(r);l=1<<u,u=t[u],u>o&&(o=u),r&=~l}if(r=o,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Np(r/1960))-r,10<r){e.timeoutHandle=Wl(hn.bind(null,e,Ge,Dt),r);break}hn(e,Ge,Dt);break;case 5:hn(e,Ge,Dt);break;default:throw Error(a(329))}}}return Xe(e,Ne()),e.callbackNode===n?Zu.bind(null,e):null}function Ii(e,t){var n=$r;return e.current.memoizedState.isDehydrated&&(pn(e,t).flags|=256),e=Uo(e,t),e!==2&&(t=Ge,Ge=n,t!==null&&Ai(t)),e}function Ai(e){Ge===null?Ge=e:Ge.push.apply(Ge,e)}function _p(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 o=n[r],l=o.getSnapshot;o=o.value;try{if(!pt(l(),o))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 Jt(e,t){for(t&=~Li,t&=~Do,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ft(t),r=1<<n;e[n]=-1,t&=~r}}function Ju(e){if((ne&6)!==0)throw Error(a(327));Wn();var t=Kr(e,0);if((t&1)===0)return Xe(e,Ne()),null;var n=Uo(e,t);if(e.tag!==0&&n===2){var r=gl(e);r!==0&&(t=r,n=Ii(e,r))}if(n===1)throw n=Tr,pn(e,0),Jt(e,t),Xe(e,Ne()),n;if(n===6)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,hn(e,Ge,Dt),Xe(e,Ne()),null}function Fi(e,t){var n=ne;ne|=1;try{return e(t)}finally{ne=n,ne===0&&(Bn=Ne()+500,po&&qt())}}function fn(e){Xt!==null&&Xt.tag===0&&(ne&6)===0&&Wn();var t=ne;ne|=1;var n=at.transition,r=ae;try{if(at.transition=null,ae=1,e)return e()}finally{ae=r,at.transition=n,ne=t,(ne&6)===0&&qt()}}function Ui(){nt=Hn.current,pe(Hn)}function pn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ep(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Gl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&co();break;case 3:An(),pe(Qe),pe(Ae),ai();break;case 5:ii(r);break;case 4:An();break;case 13:pe(ve);break;case 19:pe(ve);break;case 10:ti(r.type._context);break;case 22:case 23:Ui()}n=n.return}if(Pe=e,je=e=bt(e.current,null),Me=nt=t,Te=0,Tr=null,Li=Do=dn=0,Ge=$r=null,an!==null){for(t=0;t<an.length;t++)if(n=an[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var u=l.next;l.next=o,r.next=u}n.pending=r}an=null}return e}function bu(e,t){do{var n=je;try{if(ei(),No.current=Co,_o){for(var r=we.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}_o=!1}if(cn=0,ze=Ce=we=null,Sr=!1,Nr=0,Ri.current=null,n===null||n.return===null){Te=1,Tr=t,je=null;break}e:{var l=e,u=n.return,p=n,m=t;if(t=Me,p.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){var N=m,T=p,z=T.tag;if((T.mode&1)===0&&(z===0||z===11||z===15)){var E=T.alternate;E?(T.updateQueue=E.updateQueue,T.memoizedState=E.memoizedState,T.lanes=E.lanes):(T.updateQueue=null,T.memoizedState=null)}var I=_u(u);if(I!==null){I.flags&=-257,ju(I,u,p,l,t),I.mode&1&&Nu(l,N,t),t=I,m=N;var U=t.updateQueue;if(U===null){var H=new Set;H.add(m),t.updateQueue=H}else U.add(m);break e}else{if((t&1)===0){Nu(l,N,t),Hi();break e}m=Error(a(426))}}else if(ye&&p.mode&1){var _e=_u(u);if(_e!==null){(_e.flags&65536)===0&&(_e.flags|=256),ju(_e,u,p,l,t),Jl(Fn(m,p));break e}}l=m=Fn(m,p),Te!==4&&(Te=2),$r===null?$r=[l]:$r.push(l),l=u;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var k=xu(l,m,t);Ya(l,k);break e;case 1:p=m;var g=l.type,x=l.stateNode;if((l.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Gt===null||!Gt.has(x)))){l.flags|=65536,t&=-t,l.lanes|=t;var R=Su(l,p,t);Ya(l,R);break e}}l=l.return}while(l!==null)}nc(n)}catch(B){t=B,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function ec(){var e=Lo.current;return Lo.current=Co,e===null?Co:e}function Hi(){(Te===0||Te===3||Te===2)&&(Te=4),Pe===null||(dn&268435455)===0&&(Do&268435455)===0||Jt(Pe,Me)}function Uo(e,t){var n=ne;ne|=2;var r=ec();(Pe!==e||Me!==t)&&(Dt=null,pn(e,t));do try{jp();break}catch(o){bu(e,o)}while(!0);if(ei(),ne=n,Lo.current=r,je!==null)throw Error(a(261));return Pe=null,Me=0,Te}function jp(){for(;je!==null;)tc(je)}function Ep(){for(;je!==null&&!Xd();)tc(je)}function tc(e){var t=lc(e.alternate,e,nt);e.memoizedProps=e.pendingProps,t===null?nc(e):je=t,Ri.current=null}function nc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=vp(n,t,nt),n!==null){je=n;return}}else{if(n=wp(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Te=6,je=null;return}}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);Te===0&&(Te=5)}function hn(e,t,n){var r=ae,o=at.transition;try{at.transition=null,ae=1,Cp(e,t,n,r)}finally{at.transition=o,ae=r}return null}function Cp(e,t,n,r){do Wn();while(Xt!==null);if((ne&6)!==0)throw Error(a(327));n=e.finishedWork;var o=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 l=n.lanes|n.childLanes;if(sf(e,l),e===Pe&&(je=Pe=null,Me=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Mo||(Mo=!0,ic(Wr,function(){return Wn(),null})),l=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||l){l=at.transition,at.transition=null;var u=ae;ae=1;var p=ne;ne|=4,Ri.current=null,xp(e,n),Qu(n,e),Kf(Hl),Xr=!!Ul,Hl=Ul=null,e.current=n,Sp(n),Zd(),ne=p,ae=u,at.transition=l}else e.current=n;if(Mo&&(Mo=!1,Xt=e,Io=o),l=e.pendingLanes,l===0&&(Gt=null),ef(n.stateNode),Xe(e,Ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Oo)throw Oo=!1,e=Oi,Oi=null,e;return(Io&1)!==0&&e.tag!==0&&Wn(),l=e.pendingLanes,(l&1)!==0?e===Mi?zr++:(zr=0,Mi=e):zr=0,qt(),null}function Wn(){if(Xt!==null){var e=Vs(Io),t=at.transition,n=ae;try{if(at.transition=null,ae=16>e?16:e,Xt===null)var r=!1;else{if(e=Xt,Xt=null,Io=0,(ne&6)!==0)throw Error(a(331));var o=ne;for(ne|=4,A=e.current;A!==null;){var l=A,u=l.child;if((A.flags&16)!==0){var p=l.deletions;if(p!==null){for(var m=0;m<p.length;m++){var N=p[m];for(A=N;A!==null;){var T=A;switch(T.tag){case 0:case 11:case 15:Cr(8,T,l)}var z=T.child;if(z!==null)z.return=T,A=z;else for(;A!==null;){T=A;var E=T.sibling,I=T.return;if(Hu(T),T===N){A=null;break}if(E!==null){E.return=I,A=E;break}A=I}}}var U=l.alternate;if(U!==null){var H=U.child;if(H!==null){U.child=null;do{var _e=H.sibling;H.sibling=null,H=_e}while(H!==null)}}A=l}}if((l.subtreeFlags&2064)!==0&&u!==null)u.return=l,A=u;else e:for(;A!==null;){if(l=A,(l.flags&2048)!==0)switch(l.tag){case 0:case 11:case 15:Cr(9,l,l.return)}var k=l.sibling;if(k!==null){k.return=l.return,A=k;break e}A=l.return}}var g=e.current;for(A=g;A!==null;){u=A;var x=u.child;if((u.subtreeFlags&2064)!==0&&x!==null)x.return=u,A=x;else e:for(u=g;A!==null;){if(p=A,(p.flags&2048)!==0)try{switch(p.tag){case 0:case 11:case 15:Ro(9,p)}}catch(B){xe(p,p.return,B)}if(p===u){A=null;break e}var R=p.sibling;if(R!==null){R.return=p.return,A=R;break e}A=p.return}}if(ne=o,qt(),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Vr,e)}catch{}r=!0}return r}finally{ae=n,at.transition=t}}return!1}function rc(e,t,n){t=Fn(n,t),t=xu(e,t,1),e=Kt(e,t,1),t=We(),e!==null&&(er(e,1,t),Xe(e,t))}function xe(e,t,n){if(e.tag===3)rc(e,e,n);else for(;t!==null;){if(t.tag===3){rc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gt===null||!Gt.has(r))){e=Fn(n,e),e=Su(t,e,1),t=Kt(t,e,1),e=We(),t!==null&&(er(t,1,e),Xe(t,e));break}}t=t.return}}function Tp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=We(),e.pingedLanes|=e.suspendedLanes&n,Pe===e&&(Me&n)===n&&(Te===4||Te===3&&(Me&130023424)===Me&&500>Ne()-Di?pn(e,0):Li|=n),Xe(e,t)}function oc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Qr,Qr<<=1,(Qr&130023424)===0&&(Qr=4194304)));var n=We();e=Pt(e,t),e!==null&&(er(e,t,n),Xe(e,n))}function $p(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),oc(e,n)}function zp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}r!==null&&r.delete(t),oc(e,n)}var lc;lc=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,yp(e,t,n);Ye=(e.flags&131072)!==0}else Ye=!1,ye&&(t.flags&1048576)!==0&&Aa(t,mo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;zo(e,t),e=t.pendingProps;var o=Pn(t,Ae.current);In(t,n),o=di(null,t,r,e,o,n);var l=fi();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ke(r)?(l=!0,fo(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,oi(t),o.updater=To,t.stateNode=o,o._reactInternals=t,vi(t,r,e,n),t=Si(null,t,r,!0,l,n)):(t.tag=0,ye&&l&&Yl(t),Be(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(zo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Rp(r),e=mt(r,e),o){case 0:t=xi(null,t,r,e,n);break e;case 1:t=Pu(null,t,r,e,n);break e;case 11:t=Eu(null,t,r,e,n);break e;case 14:t=Cu(null,t,r,mt(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),xi(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Pu(e,t,r,o,n);case 3:e:{if(Ru(t),e===null)throw Error(a(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ka(e,t),xo(t,r,null,n);var u=t.memoizedState;if(r=u.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=Fn(Error(a(423)),t),t=Lu(e,t,r,n,o);break e}else if(r!==o){o=Fn(Error(a(424)),t),t=Lu(e,t,r,n,o);break e}else for(tt=Bt(t.stateNode.containerInfo.firstChild),et=t,ye=!0,ht=null,n=qa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Dn(),r===o){t=Lt(e,t,n);break e}Be(e,t,r,n)}t=t.child}return t;case 5:return Xa(t),e===null&&Zl(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,u=o.children,Bl(r,o)?u=null:l!==null&&Bl(r,l)&&(t.flags|=32),zu(e,t),Be(e,t,u,n),t.child;case 6:return e===null&&Zl(t),null;case 13:return Du(e,t,n);case 4:return li(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=On(t,null,r,n):Be(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Eu(e,t,r,o,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,o=t.pendingProps,l=t.memoizedProps,u=o.value,ce(vo,r._currentValue),r._currentValue=u,l!==null)if(pt(l.value,u)){if(l.children===o.children&&!Qe.current){t=Lt(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var p=l.dependencies;if(p!==null){u=l.child;for(var m=p.firstContext;m!==null;){if(m.context===r){if(l.tag===1){m=Rt(-1,n&-n),m.tag=2;var N=l.updateQueue;if(N!==null){N=N.shared;var T=N.pending;T===null?m.next=m:(m.next=T.next,T.next=m),N.pending=m}}l.lanes|=n,m=l.alternate,m!==null&&(m.lanes|=n),ni(l.return,n,t),p.lanes|=n;break}m=m.next}}else if(l.tag===10)u=l.type===t.type?null:l.child;else if(l.tag===18){if(u=l.return,u===null)throw Error(a(341));u.lanes|=n,p=u.alternate,p!==null&&(p.lanes|=n),ni(u,n,t),u=l.sibling}else u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===t){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}Be(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,In(t,n),o=it(o),r=r(o),t.flags|=1,Be(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),Cu(e,t,r,o,n);case 15:return Tu(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),zo(e,t),t.tag=1,Ke(r)?(e=!0,fo(t)):e=!1,In(t,n),wu(t,r,o),vi(t,r,o,n),Si(null,t,r,!0,e,n);case 19:return Mu(e,t,n);case 22:return $u(e,t,n)}throw Error(a(156,t.tag))};function ic(e,t){return Fs(e,t)}function Pp(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 ut(e,t,n,r){return new Pp(e,t,n,r)}function Bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Rp(e){if(typeof e=="function")return Bi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ve)return 11;if(e===kt)return 14}return 2}function bt(e,t){var n=e.alternate;return n===null?(n=ut(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 Ho(e,t,n,r,o,l){var u=2;if(r=e,typeof e=="function")Bi(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Se:return mn(n.children,o,l,t);case G:u=8,o|=8;break;case re:return e=ut(12,n,t,o|2),e.elementType=re,e.lanes=l,e;case De:return e=ut(13,n,t,o),e.elementType=De,e.lanes=l,e;case dt:return e=ut(19,n,t,o),e.elementType=dt,e.lanes=l,e;case ke:return Bo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Le:u=10;break e;case wt:u=9;break e;case Ve:u=11;break e;case kt:u=14;break e;case qe:u=16,r=null;break e}throw Error(a(130,e==null?e:typeof e,""))}return t=ut(u,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function mn(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Bo(e,t,n,r){return e=ut(22,e,r,t),e.elementType=ke,e.lanes=n,e.stateNode={isHidden:!1},e}function Wi(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Vi(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Lp(e,t,n,r,o){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=yl(0),this.expirationTimes=yl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qi(e,t,n,r,o,l,u,p,m){return e=new Lp(e,t,n,p,m),t===1?(t=1,l===!0&&(t|=8)):t=0,l=ut(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oi(l),e}function Dp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:me,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function sc(e){if(!e)return Vt;e=e._reactInternals;e:{if(nn(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 Oa(e,n,t)}return t}function ac(e,t,n,r,o,l,u,p,m){return e=qi(n,r,!0,e,o,l,u,p,m),e.context=sc(null),n=e.current,r=We(),o=Zt(n),l=Rt(r,o),l.callback=t??null,Kt(n,l,o),e.current.lanes=o,er(e,o,r),Xe(e,r),e}function Wo(e,t,n,r){var o=t.current,l=We(),u=Zt(o);return n=sc(n),t.context===null?t.context=n:t.pendingContext=n,t=Rt(l,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Kt(o,t,u),e!==null&&(vt(e,o,u,l),ko(e,o,u)),u}function Vo(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 uc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Qi(e,t){uc(e,t),(e=e.alternate)&&uc(e,t)}function Op(){return null}var cc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ki(e){this._internalRoot=e}qo.prototype.render=Ki.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));Wo(e,t,null,null)},qo.prototype.unmount=Ki.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fn(function(){Wo(null,e,null,null)}),t[Ct]=null}};function qo(e){this._internalRoot=e}qo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ks();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ft.length&&t!==0&&t<Ft[n].priority;n++);Ft.splice(n,0,e),n===0&&Xs(e)}};function Yi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Qo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dc(){}function Mp(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var N=Vo(u);l.call(N)}}var u=ac(t,r,e,0,null,!1,!1,"",dc);return e._reactRootContainer=u,e[Ct]=u.current,hr(e.nodeType===8?e.parentNode:e),fn(),u}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var p=r;r=function(){var N=Vo(m);p.call(N)}}var m=qi(e,0,!1,null,null,!1,!1,"",dc);return e._reactRootContainer=m,e[Ct]=m.current,hr(e.nodeType===8?e.parentNode:e),fn(function(){Wo(t,m,n,r)}),m}function Ko(e,t,n,r,o){var l=n._reactRootContainer;if(l){var u=l;if(typeof o=="function"){var p=o;o=function(){var m=Vo(u);p.call(m)}}Wo(t,u,e,o)}else u=Mp(n,t,e,o,r);return Vo(u)}qs=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=bn(t.pendingLanes);n!==0&&(vl(t,n|1),Xe(t,Ne()),(ne&6)===0&&(Bn=Ne()+500,qt()))}break;case 13:fn(function(){var r=Pt(e,1);if(r!==null){var o=We();vt(r,e,1,o)}}),Qi(e,1)}},wl=function(e){if(e.tag===13){var t=Pt(e,134217728);if(t!==null){var n=We();vt(t,e,134217728,n)}Qi(e,134217728)}},Qs=function(e){if(e.tag===13){var t=Zt(e),n=Pt(e,t);if(n!==null){var r=We();vt(n,e,t,r)}Qi(e,t)}},Ks=function(){return ae},Ys=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}},dl=function(e,t,n){switch(t){case"input":if(rl(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 o=uo(r);if(!o)throw Error(a(90));vs(r),rl(r,o)}}}break;case"textarea":Ns(e,n);break;case"select":t=n.value,t!=null&&wn(e,!!n.multiple,t,!1)}},Rs=Fi,Ls=fn;var Ip={usingClientEntryPoint:!1,Events:[yr,$n,uo,zs,Ps,Fi]},Pr={findFiberByHostInstance:rn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ap={bundleType:Pr.bundleType,version:Pr.version,rendererPackageName:Pr.rendererPackageName,rendererConfig:Pr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Is(e),e===null?null:e.stateNode},findFiberByHostInstance:Pr.findFiberByHostInstance||Op,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 Yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yo.isDisabled&&Yo.supportsFiber)try{Vr=Yo.inject(Ap),xt=Yo}catch{}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ip,Ze.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yi(t))throw Error(a(200));return Dp(e,t,null,n)},Ze.createRoot=function(e,t){if(!Yi(e))throw Error(a(299));var n=!1,r="",o=cc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qi(e,1,!1,null,null,n,!1,r,o),e[Ct]=t.current,hr(e.nodeType===8?e.parentNode:e),new Ki(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=Is(t),e=e===null?null:e.stateNode,e},Ze.flushSync=function(e){return fn(e)},Ze.hydrate=function(e,t,n){if(!Qo(t))throw Error(a(200));return Ko(null,e,t,!0,n)},Ze.hydrateRoot=function(e,t,n){if(!Yi(e))throw Error(a(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",u=cc;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=ac(t,null,e,1,n??null,o,!1,l,u),e[Ct]=t.current,hr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new qo(t)},Ze.render=function(e,t,n){if(!Qo(t))throw Error(a(200));return Ko(null,e,t,!1,n)},Ze.unmountComponentAtNode=function(e){if(!Qo(e))throw Error(a(40));return e._reactRootContainer?(fn(function(){Ko(null,null,e,!1,function(){e._reactRootContainer=null,e[Ct]=null})}),!0):!1},Ze.unstable_batchedUpdates=Fi,Ze.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qo(n))throw Error(a(200));if(e==null||e._reactInternals===void 0)throw Error(a(38));return Ko(e,t,n,!1,r)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}var wc;function Qp(){if(wc)return Zi.exports;wc=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),Zi.exports=qp(),Zi.exports}var kc;function Kp(){if(kc)return Go;kc=1;var i=Qp();return Go.createRoot=i.createRoot,Go.hydrateRoot=i.hydrateRoot,Go}var Yp=Kp();const Gp=(function(){const s=typeof document<"u"&&document.createElement("link").relList;return s&&s.supports&&s.supports("modulepreload")?"modulepreload":"preload"})(),Xp=function(i){return"/"+i},xc={},fs=function(s,a,d){let f=Promise.resolve();if(a&&a.length>0){let v=function($){return Promise.all($.map(j=>Promise.resolve(j).then(L=>({status:"fulfilled",value:L}),L=>({status:"rejected",reason:L}))))};document.getElementsByTagName("link");const S=document.querySelector("meta[property=csp-nonce]"),y=(S==null?void 0:S.nonce)||(S==null?void 0:S.getAttribute("nonce"));f=v(a.map($=>{if($=Xp($),$ in xc)return;xc[$]=!0;const j=$.endsWith(".css"),L=j?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${$}"]${L}`))return;const P=document.createElement("link");if(P.rel=j?"stylesheet":Gp,j||(P.as="script"),P.crossOrigin="",P.href=$,y&&P.setAttribute("nonce",y),document.head.appendChild(P),j)return new Promise((O,_)=>{P.addEventListener("load",O),P.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${$}`)))})}))}function h(v){const S=new Event("vite:preloadError",{cancelable:!0});if(S.payload=v,window.dispatchEvent(S),!S.defaultPrevented)throw v}return f.then(v=>{for(const S of v||[])S.status==="rejected"&&h(S.reason);return s().catch(h)})},Hc="caddis-hub-tab",Zp="X-Caddis-Hub-Tab",Jp="X-CSRF-Token";class is extends Error{constructor(s,a){super(a),this.status=s}}function Bc(){try{return window.sessionStorage}catch{return null}}let ss=null;function bp(i=window.location,s=window.history,a=Bc()){const d=/(?:^#|&)tab=([^&]+)/.exec(i.hash);if(!(d!=null&&d[1]))return;let f;try{f=decodeURIComponent(d[1])}catch{return}ss=f;try{a==null||a.setItem(Hc,f)}catch{}s.replaceState(null,"",i.pathname+i.search)}function Wc(i=Bc()){try{return(i==null?void 0:i.getItem(Hc))||ss}catch{return ss}}function Vc(i,s){const a={Accept:"application/json"};return i&&(a[Zp]=i),s&&(a[Jp]=s),a}async function qc(i){const s=Wc();if(!s)throw new is(401,"no tab token");const a=await fetch(i,{headers:Vc(s),credentials:"same-origin",cache:"no-store"});if(!a.ok)throw new is(a.status,`${i} answered ${a.status}`);return await a.json()}const eh=()=>qc("/api/session"),th=()=>qc("/api/state");let Zo=null;async function nh(){return Zo||(Zo=(await eh()).csrf_token),Zo}async function rh(i){const s=Wc();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:{...Vc(s,await nh()),"Content-Type":"application/json"},body:JSON.stringify(i),credentials:"same-origin",cache:"no-store"});try{let d=await a();d.status===403&&(Zo=null,d=await a());const f=await d.json().catch(()=>({}));return d.status===202&&f.request&&typeof f.request=="object"?{ok:!0,request:f.request}:{ok:!1,status:d.status,error:typeof f.error=="string"?f.error:"failed",reason:typeof f.reason=="string"?f.reason:`The hub answered ${d.status}.`}}catch{return{ok:!1,status:0,error:"network",reason:"The hub did not answer."}}}function oh(i){const[s,a]=Z.useState({}),d=(h,v)=>a(S=>({...S,[h]:v})),f=Z.useCallback(h=>{d(h.key,{status:"sending",reason:null,requestId:null,at:Date.now()}),rh(h.body).then(v=>{v.ok?d(h.key,{status:"sent",reason:null,requestId:v.request.id,at:Date.now()}):d(h.key,{status:"refused",reason:v.reason,requestId:null,at:Date.now()}),i()})},[i]);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 lh=i=>i==null?void 0:i.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 ih(i,s,a=[]){if(s==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:lh(i),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 sh=i=>{let s="",a=!1;for(const d of i){if(d==="-"||d==="_"||d<=" "){a=s.length>0;continue}s.length===0?s+=d.toLowerCase():s+=a?d.toUpperCase():d,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 ah=i=>{const s=sh(i);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 as=(...i)=>i.filter((s,a,d)=>!!s&&s.trim()!==""&&d.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 gn={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 es(i){return i!=null}function uh(i,s={}){var P,O;const a=s.attributeNames??{},d=_=>a[_]??_,f=i.size??i.width??gn.width,h=i.size??i.height??gn.height,v=((P=i.aliases)==null?void 0:P.filter(_=>typeof _=="string"&&_.trim()!=="").map(_=>`lucide-${_}`))??[],S=[...i.name?[`lucide-${i.name}`]:[],...v],y=((O=s.className)==null?void 0:O.split(" ").filter(Boolean))??[],$=s.includeDefaultClasses===!1?as(...y):as("lucide",...S,...y),j=s.absoluteStrokeWidth?Number(s.strokeWidth??gn["stroke-width"])*Number(i.size??i.width??gn.width)/Number(s.size??s.width??gn.width):s.strokeWidth??gn["stroke-width"];return["svg",{...Object.entries(gn).reduce((_,[K,W])=>(_[d(K)]=W,_),{}),..."color"in s&&s.color&&{[d("stroke")]:s.color},..."size"in s&&es(s.size)&&{[d("width")]:s.size,[d("height")]:s.size},..."width"in s&&es(s.width)&&{[d("width")]:s.width},..."height"in s&&es(s.height)&&{[d("height")]:s.height},[d("stroke-width")]:j,...$&&{[d("class")]:$},[d("viewBox")]:`0 0 ${f} ${h}`,...s.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in s&&s.attributes},i.node.map(_=>{const[K,W,V]=_,Ee=s.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...W}:W;return V?[K,Ee,V]:[K,Ee]})]}/**
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 ch(i,s={}){return uh(i,{...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 dh=i=>{for(const s in i)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1},fh=Z.createContext({}),ph=()=>Z.useContext(fh),hh=Z.forwardRef(({color:i,size:s,width:a,height:d,strokeWidth:f,absoluteStrokeWidth:h,nonScalingStroke:v,className:S="",children:y,iconNode:$=[],icon:j={node:$,aliases:[],size:24},...L},P)=>{const{size:O=24,strokeWidth:_=2,absoluteStrokeWidth:K=!1,nonScalingStroke:W=!1,color:V="currentColor",className:Ee=""}=ph()??{},$e=!!y||dh(L),[M,he,me=[]]=ch(j,{color:i??V,width:a??s??O,height:d??s??O,strokeWidth:f??_,absoluteStrokeWidth:h??K,nonScalingStroke:v??W,className:as(Ee,S),hasA11yProp:$e,attributes:L});return Z.createElement(M,{ref:P,...he},[...me.map(([Se,G])=>Z.createElement(Se,G)),...Array.isArray(y)?y:[y]])});/**
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 de(i,s=[],a=[]){const d=typeof i=="string"?ih(i,s,a):i,f=Z.forwardRef(({className:h,...v},S)=>Z.createElement(hh,{ref:S,icon:d,className:h,...v}));return d.name&&(f.displayName=ah(d.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 Qc={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"}]]};Qc.node;const mh=de(Qc);/**
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 Kc={name:"archive",size:24,node:[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]};Kc.node;const gh=de(Kc);/**
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 Yc={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};Yc.node;const yh=de(Yc);/**
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 Gc={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"}]]};Gc.node;const vh=de(Gc);/**
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 Xc={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"}]]};Xc.node;const Zc=de(Xc);/**
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 Jc={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"}]]};Jc.node;const wh=de(Jc);/**
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 bc={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};bc.node;const kh=de(bc);/**
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 ed={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};ed.node;const xh=de(ed);/**
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 td={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};td.node;const Sh=de(td);/**
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 nd={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"}]]};nd.node;const rd=de(nd);/**
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 od={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"}]]};od.node;const Nh=de(od);/**
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 ld={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"}]]};ld.node;const _h=de(ld);/**
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 id={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"}]]};id.node;const jh=de(id);/**
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 sd={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"}]]};sd.node;const Eh=de(sd);/**
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 ad={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};ad.node;const Ch=de(ad);/**
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 ud={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"}]]};ud.node;const Th=de(ud);/**
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 cd={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"}]]};cd.node;const $h=de(cd);/**
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 dd={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"]};dd.node;const zh=de(dd);/**
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 fd={name:"rocket",size:24,node:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]};fd.node;const Ph=de(fd);/**
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 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 Rh=de(pd);/**
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 hd={name:"shield-off",size:24,node:[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]]};hd.node;const Lh=de(hd);/**
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 md={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"}]]};md.node;const Dh=de(md);/**
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 gd={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};gd.node;const yd=de(gd);/**
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 vd={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"]};vd.node;const Oh=de(vd);/**
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 wd={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"}]]};wd.node;const Mh=de(wd);/**
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 kd={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};kd.node;const Ih=de(kd),ps={hotfix:"Mark hotfix",unhotfix:"Unmark hotfix",hold:"Hold",release:"Release",approve:"Approve",decline:"Decline"},Jo={hotfix:"hotfix",unhotfix:"hotfix",hold:"hold",release:"hold",approve:"approve",decline:"approve"},xd=i=>i.repo_id??null,Sd=(i,s,a)=>`${i}:${Jo[s]}:${a}`;function hs(i,s){const a=xd(i),d=_d(i,s.pr)??s.headSha;if(!a||!d)return[];const f=h=>({key:Sd(a,h,s.pr),label:ps[h],body:{repo_id:a,action:h,pr:s.pr,head_sha:d}});return[f(s.hotfix?"unhotfix":"hotfix"),f(s.held?"release":"hold")]}function Nd(i,s){const a=xd(i);if(!a)return[];const d=s.pr!==null?_d(i,s.pr)??s.head_sha:null;return["approve","decline"].map(f=>({key:Sd(a,f,s.what),label:ps[f],body:{repo_id:a,action:f,pr:s.pr,head_sha:d,what:s.what}}))}function _d(i,s){var a,d,f;return((f=(d=(a=i.github)==null?void 0:a.prs)==null?void 0:d.find(h=>h.number===s))==null?void 0:f.head_sha)??null}function jd(i){return i.actions?i.actions.enabled?null:i.actions.reason??"Actions need a live coordinator.":"Actions need a live coordinator."}function Ed(i,s){var f;const a=jd(i);return a||s.pr===null?a:(((f=i.coordinator)==null?void 0:f.queue)??[]).some(h=>(h==null?void 0:h.pr)===s.pr)?null:`PR #${s.pr} is not in the coordinator queue.`}function Ah(i,s){var f;const a=((f=i.coordinator)==null?void 0:f.requests)??[],d=Jo[s.body.action];for(let h=a.length-1;h>=0;h--){const v=a[h],S=v.action;if(!(!(S in Jo)||Jo[S]!==d)&&(s.body.what!==void 0?v.what===s.body.what&&v.pr===s.body.pr:v.pr===s.body.pr))return v}return null}function Cd(i){const s=ps[i.action]??i.action;switch(i.status){case"requested":return`${s}: requested. Waiting for the coordinator.`;case"done":return`${s}: done.`;case"rejected":return`${s}: rejected${i.reason?`: ${i.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 Td=i=>i==="done"?"good":i==="requested"?"muted":i==="not_picked_up"?"warn":"bad";function Fh(i,s,a){const d=Ah(i,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"&&(!d||d.id!==a.requestId)?{text:`${s.label}: requested. Waiting for the coordinator.`,tone:"muted"}:d?{text:Cd(d),tone:Td(d.status)}:null}function tl({repo:i,specs:s,act:a,compact:d=!1,reason:f}){if(s.length===0)return null;const h=f!==void 0?f:jd(i),v=new Set,S=[];for(const y of s){if(v.has(y.key))continue;v.add(y.key);const $=Fh(i,y,a.local[y.key]);$&&S.push({key:y.key,...$})}return c.jsxs("div",{className:`action-row${d?" compact":""}`,"data-testid":"actions",children:[c.jsx("div",{className:"action-buttons",children:s.map(y=>{var $;return c.jsx("button",{type:"button",className:"btn btn-act",disabled:h!==null||(($=a.local[y.key])==null?void 0:$.status)==="sending",title:h??void 0,onClick:()=>a.run(y),"data-testid":`act-${y.body.action}`,children:y.label},`${y.key}:${y.body.action}`)})}),h&&!d&&c.jsx("span",{className:"action-reason","data-testid":"action-reason",children:h}),S.map(y=>c.jsx("span",{className:`request-status tone-${y.tone}`,"data-testid":"request-status",role:"status",children:y.text},y.key))]})}function $d({item:i}){const s=i.recommendation,a=i.from?`from ${i.from}`:i.source==="coordinator"?"from the coordinator":"from the asking session";return c.jsxs("div",{className:"detail-block recommendation","data-testid":"recommendation",children:[c.jsxs("span",{className:"detail-label",children:["Recommendation, ",a]}),s?c.jsxs(c.Fragment,{children:[c.jsxs("span",{children:[c.jsx("strong",{className:`rec-${s.decision}`,children:s.decision==="approve"?"Approve":"Hold"}),s.reason?`: ${s.reason}`:""]}),s.evidence&&c.jsxs("span",{className:"rec-evidence",children:["Evidence: ",s.evidence]})]}):c.jsx("span",{children:"No recommendation was recorded. Read the source before you decide."}),c.jsx("span",{className:"rec-note",children:"A recommendation is not an approval. Only your click approves."})]})}const Sc="caddis hub";function Uh(i){return i>0?`(${i}) ${Sc}`:Sc}function Vn(i,s){if(!i)return"unknown";const a=Date.parse(i);if(Number.isNaN(a))return"unknown";const d=Math.max(0,Math.round((s-a)/1e3));if(d<5)return"just now";if(d<60)return`${d} s ago`;const f=Math.floor(d/60);if(f<60)return`${f} min ago`;const h=Math.floor(f/60);return h<24?`${h} h ago`:`${Math.floor(h/24)} d ago`}const Hh=(i,s)=>`Updated ${Vn(i,s)}`;function Or(i){if(!i)return"unknown";const s=new Date(i);return Number.isNaN(s.getTime())?"unknown":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Bh(i){const s=Number(i==null?void 0:i.cap_eur),a=Number(i==null?void 0:i.committed_eur),d=(i==null?void 0:i.configured)===!0&&Number.isFinite(s)&&s>0,f=Number.isFinite(a)?a:0;return{configured:d,capEur:d?s:0,committedEur:f,pct:d?Math.min(100,Math.max(0,f/s*100)):0}}const us=i=>Object.values(i.sources??{}).some(s=>!s.ok||s.stale),Wh=500;function zd(i){const s=i==null?void 0:i.github_rate;if(!s||typeof s!="object")return null;let a=null;for(const[d,f]of Object.entries(s)){const h=f,v=typeof(h==null?void 0:h.remaining)=="number"&&Number.isFinite(h.remaining)?h.remaining:NaN;Number.isNaN(v)||(!a||v<a.remaining)&&(a={account:d,remaining:v,resetAt:typeof(h==null?void 0:h.reset_at)=="string"?h.reset_at:null})}return a}function Vh(i){const s=zd(i);return s&&s.remaining<Wh?s:null}const ct=i=>Array.isArray(i)?i:[],qh={todo:"to do","in-progress":"in progress",done:"done",moved:"moved",blocked:"blocked"},yn=new Set(["done","not-needed"]),Ng="No roadmap or plan",_g="/caddis:roadmap",Ie=i=>i&&typeof i=="object"&&!Array.isArray(i)?i:{},te=i=>typeof i=="string"?i:"",Ot=i=>typeof i=="string"&&i?i:null,bo=i=>typeof i=="number"&&Number.isInteger(i)?i:0,Qh=new Set(["todo","in-progress","done","moved","blocked"]);function Kh(i,s){const a=i.github;return[...new Set(ct(s).filter(d=>typeof d=="number"&&Number.isInteger(d)))].map(d=>{var v,S;const f=(v=a==null?void 0:a.prs)==null?void 0:v.find(y=>y.number===d),h=((S=a==null?void 0:a.merges)==null?void 0:S.some(y=>y.number===d))??!1;return{number:d,url:a!=null&&a.repo?`https://github.com/${a.repo}/pull/${d}`:null,stage:f?"in review":h?"merged":null,detail:f?`required checks ${f.required_state}`:null}})}function Yh(i,s){const a=Ie(s),d=te(a.ref),f=d.lastIndexOf("#"),h=te(a.state),v=Qh.has(te(a.tile))?te(a.tile):h==="done"?"done":"todo",S=te(a.risk),y=Kh(i,a.prs),$=y.filter(j=>j.stage).map(j=>`#${j.number} ${j.stage}${j.detail?` (${j.detail})`:""}`);return{ref:d,plan:te(a.plan)||(f>0?d.slice(0,f):""),num:bo(a.num)||f>0&&Number(d.slice(f+1))||0,name:te(a.name)||d,model:te(a.model),lane:te(a.lane),risk:S,highRisk:S.toLowerCase().includes("high"),tracker:te(a.tracker),tile:v,prs:y,stage:$.length?$.join(", "):qh[v]}}const Nc=(i,s)=>{const a=Ie(s);return{milestone:i,type:te(a.type),reason:te(a.reason),check:te(a.check)}};function Gh(i,s){return yn.has(i)?"done":s.some(a=>a.type==="owner-gate")?"wait":s.length||i==="blocked"?"block":i==="in-progress"?"prog":"todo"}const ts=i=>i==="done"||i==="moved";function Xh(i,s){const a=Ie(i),d=Ie(a.lock),f=Ie(a.stale_lock),h=Ie(a.last_stop);let v=null;return te(h.reason)==="running"?v="running now":te(h.reason)&&(v=`${te(h.reason)}${h.exit!==void 0&&h.exit!==null?` (exit ${String(h.exit)})`:""}`),{running:Object.keys(d).length?{batch:String(d.batch??""),since:Ot(d.started_utc),host:Ot(d.host),pid:d.pid===void 0?null:String(d.pid)}:null,staleBatch:Object.keys(f).length?String(f.batch??""):null,lastStop:v,lastStopAt:Ot(h.utc),stopReason:te(h.reason)||null,errors:ct(a.errors).map(String),next:s}}function Zh(i){const s=new Map(i.map(d=>[d.id,d.status])),a={now:[],next:[],later:[]};for(const d of i){if(yn.has(d.status))continue;const f=d.depends.every(h=>yn.has(s.get(h)??""));d.status==="in-progress"||f&&d.blockers.length===0?a.now.push(d):d.depends.some(h=>a.now.some(v=>v.id===h))?a.next.push(d):a.later.push(d)}return a}function Jh(i,s){const a=Ie(s),d=ct(a.milestones).map(j=>{const L=Ie(j),P=te(L.id),O=ct(L.blockers).map(W=>Nc(P,W)),_=ct(L.phases).map(W=>Yh(i,W)),K=te(L.status);return{id:P,status:K,owner:te(L.owner)||"runner",target:Ot(L.target),depends:ct(L.depends).map(String),phases:_,blockers:O,done:_.filter(W=>ts(W.tile)).length,total:_.length,tone:Gh(K,O)}}),f=d.flatMap(j=>j.phases),h=Ie(a.next),v=Object.keys(h).length?`${te(h.milestone)} ${te(h.plan)}#${String(h.phase)}`:null,S=(ct(a.lanes).length?ct(a.lanes).map(String):[...new Set(f.map(j=>j.plan))]).map(j=>({plan:j,done:f.filter(L=>L.plan===j&&ts(L.tile)).length,total:f.filter(L=>L.plan===j).length})),y=d.flatMap(j=>j.blockers),$=Array.isArray(a.waiting)?ct(a.waiting).map(j=>Nc(te(Ie(j).milestone),{...Ie(j),type:"owner-gate"})):d.filter(j=>!yn.has(j.status)).flatMap(j=>j.blockers.filter(L=>L.type==="owner-gate"));return{slug:te(a.roadmap),branch:Ot(a.branch),originCommit:Ot(a.origin_commit),milestones:d,lanes:S,gates:$,blockers:y,kpis:{phasesDone:f.filter(j=>ts(j.tile)).length,phasesTotal:f.length,milestonesDone:bo(a.done)||d.filter(j=>yn.has(j.status)).length,milestonesTotal:bo(a.total)||d.length,inProgress:f.filter(j=>j.tile==="in-progress").map(j=>j.ref),highRisk:f.filter(j=>j.highRisk).length,next:v??"none ready"},board:Zh(d),runner:Xh(a.runner,v),detailError:Ot(a.detail_error)}}function bh(i){return ct(Ie(i).plans).map(s=>Ie(s)).filter(s=>!s.error&&!["done","closed","archived"].includes(te(s.status).toLowerCase())).map(s=>({path:te(s.path),title:te(s.title)||te(s.path),rows:ct(s.tracker).map(a=>({phase:te(Ie(a).phase),status:te(Ie(a).status)})),open:bo(s.open_rows)}))}function Pd(i){const s=Ie(i.roadmaps),a=Ot(i.error)??Ot(s.error),d=[],f=[];for(const S of ct(s.roadmaps)){const y=Ie(S);te(y.error)?f.push({slug:te(y.roadmap),error:te(y.error)}):te(y.roadmap)&&d.push(Jh(i,y))}const h=bh(i.plans),v={roadmaps:d,errors:f,plans:h,repoError:a};return d.length||f.length?{mode:"roadmaps",...v}:a&&!i.roadmaps&&!i.plans?{mode:"error",...v}:h.length?{mode:"plans",...v}:{mode:a?"error":"none",...v}}const jg=i=>i.mode==="roadmaps"&&i.roadmaps.length===1&&i.errors.length===0;function Eg(i){const s=i.milestones.flatMap(v=>v.phases).filter(v=>v.tile==="blocked").length,{phasesDone:a,phasesTotal:d}=i.kpis,f=i.gates.length?"wait":s?"block":d&&a>=d?"done":i.kpis.inProgress.length||a?"prog":"todo",h=i.runner;return{slug:i.slug,branch:i.branch,milestonesDone:i.kpis.milestonesDone,milestonesTotal:i.kpis.milestonesTotal,phasesDone:a,phasesTotal:d,pct:d?Math.round(100*a/d):0,next:i.runner.next??"none ready",runner:h.running||h.stopReason==="running"?"running":h.stopReason?`stopped: ${h.stopReason}`:"idle",gates:i.gates.length,dots:i.milestones.map(v=>({id:v.id,status:v.status})),tone:f}}function em(i){const s=[];for(const a of Pd(i).roadmaps){const d=new Map(a.milestones.map(f=>[f.id,f.status]));for(const f of a.milestones)yn.has(f.status)||!f.depends.every(h=>yn.has(d.get(h)??""))||f.blockers.filter(h=>h.type==="owner-gate").forEach((h,v)=>s.push({roadmap:a.slug,milestone:f.id,reason:h.reason,check:h.check,id:`${a.slug}:${f.id}:${v}`}))}return s}const tm=i=>i.roadmaps.reduce((s,a)=>s+a.gates.length,0),_c=(i,s)=>i.toLowerCase().includes(s);function Cg(i,s){const a=s.trim().toLowerCase();if(!a)return null;const d={milestones:new Set,phases:new Set,count:0};for(const f of i.milestones){const h=_c([f.id,f.status,f.owner,f.target??""].join(" "),a);let v=!1;for(const S of f.phases){const y=_c([S.ref,S.name,S.model,S.lane,S.risk,S.tracker,S.prs.map($=>`#${$.number}`).join(" ")].join(" "),a);(y||h)&&(d.phases.add(S.ref),v=!0),y&&(d.count+=1)}h&&(d.count+=1),(h||v)&&d.milestones.add(f.id)}return d}function nm(i){const s=tm(Pd(i));return s>0?`Roadmap · ${s} gate${s===1?"":"s"}`:"Roadmap"}const rm=i=>!i.sources.collector.ok||i.sources.collector.stale,jc={waiting:"Waiting","owner-gate":"Owner gate",blocked:"Blocked","blocked-merge":"Blocked merge",coordinator:"Coordinator",hub:"Hub"},om={collector:"Roadmap and relay data",agents:"Session list",github:"GitHub data",coordinator:"Coordinator data"},qn=i=>Array.isArray(i)?i:[],Et=i=>i&&typeof i=="object"&&!Array.isArray(i)?i:{},rt=i=>typeof i=="string"&&i?i:null,Qn=i=>typeof i=="number"&&Number.isFinite(i)?i:null,Mr=i=>{var s;return((s=i.github)==null?void 0:s.repo)??i.name},Ec=i=>i.replace(/\\/g,"/").replace(/\/+$/,"").toLowerCase(),vn=(i,s)=>!!i&&!!s&&Ec(i)===Ec(s);function Rd(i){var a;const s=[];for(const d of qn((a=i.relays)==null?void 0:a.relays)){const f=Et(d),h=rt(f.name),v=rt(f.status);!h||!v||s.push({name:h,status:v,statusArg:rt(f.status_arg)??"",updatedAt:rt(f.updated_at),nextStep:rt(f.next_step)})}return s}function Ld(i){return Array.isArray(i.owner_items)?i.owner_items:Rd(i).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 Ir(i){var a;const s=[];for(const d of qn((a=i.coordinator)==null?void 0:a.queue)){const f=Et(d),h=Qn(f.pr);if(h===null)continue;const v=[];for(const S of qn(f.waits_on)){const y=Et(S),$=Qn(y.pr);$!==null&&v.push({repo:rt(y.repo)??"",pr:$})}s.push({pr:h,headSha:rt(f.head_sha)??"",title:rt(f.title)??"",state:rt(f.state)??"waiting",whyWaiting:rt(f.why_waiting)??"",waitsOn:v,hotfix:f.hotfix===!0,held:f.held===!0,since:rt(f.entered_ready_at)})}return s}function Dd(i){var a;const s=(a=i.coordinator)==null?void 0:a.merging_now;return Qn(s)??Qn(Et(s).pr)}function lm(i){const s=new Set,a=[];for(const d of i)d.waiting_class!=="owner"||s.has(d.session_id)||(s.add(d.session_id),a.push(d));return a}function im(i,s){var h,v;let a=null;for(const S of i.repos){const y=Mr(S);for(const $ of qn((h=S.coordinator)==null?void 0:h.deploy_checks)){const j=Et($),L=Date.parse(rt(j.at)??""),P=Qn(j.pr);if(Number.isNaN(L)||P===null)continue;const O=rt(j.health);(!a||L>a.at)&&(a={at:L,label:`${y} #${P}`,ok:O==="ok"?!0:O==="failed"?!1:null,how:`health ${O??"unknown"}`})}for(const $ of((v=S.github)==null?void 0:v.merges)??[]){const j=Date.parse($.merged_at);if(Number.isNaN(j)||a&&a.at>=j)continue;const L=$.runs??[],P=L.some(_=>_.conclusion==="failure"),O=L.length>0&&L.every(_=>_.conclusion==="success");a={at:j,label:`${y} #${$.number}`,ok:P?!1:O?!0:null,how:P?"deploy failed":O?"deploy pass":"merged"}}}if(!a)return null;const d=Math.max(0,Math.round((s-a.at)/6e4)),f=d<60?`${d} min ago`:d<1440?`${Math.floor(d/60)} h ago`:`${Math.floor(d/1440)} d ago`;return{label:a.label,sub:`${f} · ${a.how}`,ok:a.ok}}function sm(i,s,a){var h;let d=0;for(const v of i.repos)(h=v.coordinator)!=null&&h.responding&&(d+=Ir(v).filter(S=>S.state!=="blocked").length);const f=i.sessions.filter(v=>!["idle","done","unknown"].includes(v.status)).length;return{waitingOnYou:a.filter(v=>v.folder==="needs").length,blockedMerges:a.filter(v=>v.kind==="blocked-merge").length,inQueue:d,workingSessions:f,lastDeploy:im(i,s)}}function am(i){const s=new Date(i);return Number.isNaN(s.getTime())?"unknown":s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}const Cc=(i,s)=>{var a;return(a=i.github)!=null&&a.repo?`gh pr checks ${s} -R ${i.github.repo}`:`gh pr checks ${s}`};function um(i,s){var v,S;const a=[],d=new Set,f=y=>{d.has(y.id)||(d.add(y.id),a.push(y))},h=y=>i.repos.find($=>vn($.path,y));for(const y of lm(i.sessions)){const $=h(y.repo_path),j=y.name??y.session_id.slice(0,8);f({id:`waiting:${y.session_id}`,kind:"waiting",folder:"needs",repo:$?Mr($):"no repo",title:`${j} waits on ${y.waiting_for??"you"}`,why:"The session cannot continue until you answer.",next:"Open the session and answer.",cmd:j,since:y.waiting_since,source:"agents"})}for(const y of i.repos){const $=Mr(y),j=Rd(y);for(const _ of Ld(y)){const K=_.relay?j.find(V=>V.name===_.relay):void 0,W=_.source==="relay"?(v=/^owner gate (\S+) /.exec(_.what))==null?void 0:v[1]:void 0;f({id:`owner:${y.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:$,repoPath:y.path,title:W?`Gate ${W}: owner approval needed`:`${_.pr!==null?`PR #${_.pr}: `:""}${_.what}`,why:_.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:(K==null?void 0:K.nextStep)??(_.source==="relay"?"Read the relay, then decide.":"Read the recommendation, then decide."),cmd:_.relay?`.caddis/relay/${_.relay}.md`:_.what,since:_.since,owner:_,source:_.source==="relay"?"collector":"coordinator"})}for(const _ of em(y))f({id:`rmgate:${y.path}:${_.id}`,kind:"owner-gate",folder:"approvals",repo:$,repoPath:y.path,title:`Roadmap ${_.roadmap}, gate ${_.milestone}: ${_.reason}`,why:`Milestone ${_.milestone} of roadmap ${_.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:_.check||"/caddis:roadmap",since:null,source:"collector"});for(const _ of j)_.status==="BLOCKED"&&_.statusArg.toLowerCase().startsWith("owner")&&f({id:`blocked:${y.path}:${_.name}`,kind:"blocked",folder:"needs",repo:$,repoPath:y.path,title:`Relay ${_.name}: STATUS: BLOCKED owner`,why:"The relay says the owner must decide before the next step.",next:_.nextStep??"Read the relay and decide.",cmd:`.caddis/relay/${_.name}.md`,since:_.updatedAt,source:"collector"});const L=!!y.coordinator&&y.coordinator.responding;for(const _ of Ir(y))_.state==="blocked"&&f({id:`merge:${y.path}:${_.pr}`,kind:"blocked-merge",folder:"blocked",repo:$,repoPath:y.path,title:`PR #${_.pr}${_.title?` ${_.title}`:""}: blocked`,why:_.whyWaiting||"The coordinator skips it until it is unblocked.",next:"Ask the PR session to fix it, or hold the PR.",cmd:Cc(y,_.pr),since:_.since,queue:{pr:_.pr,headSha:_.headSha,hotfix:_.hotfix,held:_.held},source:"coordinator"});const P=new Map(Ir(y).map(_=>[_.pr,_]));for(const _ of((S=y.github)==null?void 0:S.prs)??[]){if(_.draft||_.required_state!=="fail")continue;const K=_.checks.filter(V=>V.required&&V.conclusion==="failure").map(V=>V.name),W=P.get(_.number);f({id:`merge:${y.path}:${_.number}`,kind:"blocked-merge",folder:"blocked",repo:$,repoPath:y.path,title:`PR #${_.number}: required check ${K.length>0?`${K.join(", ")} `:""}failed`,why:L?"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:Cc(y,_.number),since:_.updated_at,...W?{queue:{pr:W.pr,headSha:W.headSha,hotfix:W.hotfix,held:W.held}}:{},source:"github"})}const O=y.coordinator;O&&!O.responding&&O.heartbeat_at&&O.status!=="stopped"&&f({id:`coordinator:${y.path}`,kind:"coordinator",folder:"needs",repo:$,repoPath:y.path,title:`Coordinator not responding since ${am(O.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:O.heartbeat_at,source:"coordinator"})}for(const y of["collector","agents","github","coordinator"]){const $=i.sources[y];$.ok||!$.stale||f({id:`hub:${y}`,kind:"hub",folder:"needs",repo:"hub",title:`${om[y]} 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:sm(i,s,a)}}const cm=24*36e5,dm=()=>({open:{},resolved:[]}),fm=(i,s)=>{var d;const a=(d=i.sources)==null?void 0:d[s];return!!a&&(!a.ok||a.stale)};function pm(i,s){var d;if(!s.repoPath)return!1;const a=(d=i.repos)==null?void 0:d.find(f=>vn(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=Et(a.relays);return(typeof a.error=="string"||typeof f.error=="string")&&!Array.isArray(f.relays)}return!1}function Tc(i,s,a){const d=new Set(s.map(h=>h.id)),f=s.map(h=>h.stale?{...h,stale:!1}:h);for(const[h,v]of Object.entries(i))d.has(h)||!v.source||!fm(a,v.source)&&!pm(a,v)||f.push({...v,stale:!0});return f}function hm(i,s,a){const d=new Map(s.map(h=>[h.id,h])),f=i.resolved.filter(h=>a-h.resolvedAt<cm&&!d.has(h.item.id));for(const[h,v]of Object.entries(i.open))!d.has(h)&&!f.some(S=>S.item.id===h)&&f.push({item:v,resolvedAt:a});return f.sort((h,v)=>v.resolvedAt-h.resolvedAt),{open:Object.fromEntries(d),resolved:f}}function $c(i){const s=Et(i);return typeof s.id=="string"&&typeof s.title=="string"&&typeof s.kind=="string"&&typeof s.folder=="string"}function mm(i){const s=Et(i),a={};for(const[f,h]of Object.entries(Et(s.open)))$c(h)&&(a[f]=h);const d=[];for(const f of qn(s.resolved)){const h=Et(f),v=Qn(h.resolvedAt);$c(h.item)&&v!==null&&d.push({item:h.item,resolvedAt:v})}return{open:a,resolved:d}}const zc="Start a session in the folder: the hub adds it.";function Od(){return c.jsxs("section",{className:"first-run","data-testid":"first-run","aria-label":"Get started",children:[c.jsx("h2",{children:"No repos yet"}),c.jsxs("p",{children:[c.jsx(yd,{size:16,"aria-hidden":"true"})," Start a Claude Code session in a repo. The hub finds it by itself."]}),c.jsx("p",{children:"Or add a folder. The hub checks that it is a git repo."}),c.jsxs("button",{type:"button",className:"btn",disabled:!0,title:zc,"data-testid":"add-folder",children:[c.jsx(Nh,{size:16,"aria-hidden":"true"}),"Add a folder"]}),c.jsxs("span",{className:"first-run-reason",children:[" ",zc]})]})}const Lr={size:15,"aria-hidden":!0};function Md({tiles:i,stale:s=!1}){const a=i.lastDeploy;return c.jsxs("div",{className:`kpi-strip${s?" stale":""}`,"data-testid":"tiles","data-stale":s?"true":void 0,children:[c.jsxs("div",{className:`kpi-tile${i.waitingOnYou>0?" urgent":""}`,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(Mh,{...Lr}),"Waiting on you"]}),c.jsx("span",{className:"kpi-num accent","data-testid":"tile-waiting",children:i.waitingOnYou})]}),c.jsxs("div",{className:`kpi-tile${i.blockedMerges>0?" danger":""}`,children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(vh,{...Lr}),"Blocked merges"]}),c.jsx("span",{className:"kpi-num bad","data-testid":"tile-blocked",children:i.blockedMerges})]}),c.jsxs("div",{className:"kpi-tile",children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(_h,{...Lr}),"In merge queue"]}),c.jsx("span",{className:"kpi-num","data-testid":"tile-queue",children:i.inQueue})]}),c.jsxs("div",{className:"kpi-tile",children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(yd,{...Lr}),"Working sessions"]}),c.jsx("span",{className:"kpi-num","data-testid":"tile-working",children:i.workingSessions})]}),c.jsxs("div",{className:"kpi-tile deploy",children:[c.jsxs("span",{className:"kpi-label",children:[c.jsx(Ph,{...Lr}),"Last prod deploy"]}),a?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:`kpi-val ${a.ok===!0?"tone-good":a.ok===!1?"tone-bad":""}`,children:a.label}),c.jsx("span",{className:"kpi-sub tone-muted",children:a.sub})]}):c.jsx("span",{className:"kpi-val tone-muted",children:"No deploy yet"})]})]})}const gm=[{id:"needs",label:"Needs you",Icon:Zc},{id:"approvals",label:"Approvals",Icon:Rh},{id:"blocked",label:"Blocked",Icon:Lh},{id:"resolved",label:"Resolved, 24 h",Icon:gh}],Pc=(i,s)=>i?Vn(i,s).replace(/ ago$/,""):"unknown";function ym(i){var s;try{(s=navigator.clipboard)==null||s.writeText(i)}catch{}}function vm(i,s){return i?s.owner?Nd(i,s.owner):s.queue?hs(i,s.queue):[]:[]}function wm({state:i,nowMs:s,api:a,act:d}){const[f,h]=Z.useState("needs"),[v,S]=Z.useState(null),[y,$]=Z.useState(!1),[j,L]=Z.useState(!1),{model:P,resolved:O,read:_}=a,K={needs:P.items.filter(M=>M.folder==="needs").length,approvals:P.items.filter(M=>M.folder==="approvals").length,blocked:P.items.filter(M=>M.folder==="blocked").length,resolved:O.length},W=f==="resolved"?O.map(M=>({item:M.item,resolved:!0,since:new Date(M.resolvedAt).toISOString()})):P.items.filter(M=>M.folder===f).map(M=>({item:M,resolved:!1,since:M.since})),V=W.find(M=>M.item.id===v)??W[0]??null,Ee=M=>{h(M),S(null),$(!1)},$e=M=>{S(M.item.id),$(!0),M.resolved||a.markRead(M.item.id)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"Inbox"}),c.jsxs("span",{className:"page-subtitle",children:[i.repos.length," repos · ",i.sessions.length," sessions"]})]}),i.repos.length===0&&c.jsx(Od,{}),c.jsx(Md,{tiles:P.tiles,stale:us(i)}),a.notify.supported&&c.jsxs("div",{className:"notify-row",children:[c.jsxs("button",{type:"button",className:"btn",onClick:a.notify.enable,disabled:a.notify.enabled,children:[c.jsx(Zc,{size:16,"aria-hidden":"true"}),a.notify.enabled?"Notifications on":"Notify me"]}),c.jsx("span",{children:a.notify.enabled?"One browser notification per new item.":"Opt in to a browser notification for each new item."})]}),c.jsxs("div",{className:`mailbox${y&&V?" show-detail":""}`,children:[c.jsx("div",{className:"mailbox-folders",role:"tablist","aria-label":"Folders",children:gm.map(({id:M,label:he,Icon:me})=>c.jsxs("button",{type:"button",role:"tab","aria-selected":f===M,className:`folder-btn${f===M?" sel":""}`,onClick:()=>Ee(M),"data-testid":`folder-${M}`,children:[c.jsx(me,{size:16,"aria-hidden":"true"}),c.jsx("span",{children:he}),c.jsx("strong",{children:K[M]})]},M))}),c.jsxs("div",{className:"mailbox-list","data-testid":"inbox-list",children:[W.map(M=>{const he=!M.resolved&&!_.has(M.item.id);return c.jsxs("button",{type:"button",className:`item-btn${(V==null?void 0:V.item.id)===M.item.id?" sel":""}`,onClick:()=>$e(M),"data-testid":"inbox-item",children:[c.jsx("span",{className:`unread-dot${he?" on":""}`,role:"img","aria-label":he?"Unread":"Read"}),c.jsxs("span",{className:"item-main",children:[c.jsxs("span",{className:"item-meta",children:[c.jsx("span",{className:`chip chip-${M.resolved?"resolved":M.item.kind}`,children:M.resolved?"Resolved":jc[M.item.kind]}),c.jsx("span",{className:"mono",children:M.item.repo}),c.jsxs("span",{children:["· ",Pc(M.since,s)]}),!M.resolved&&M.item.stale&&c.jsx("span",{className:"chip chip-stale","data-testid":"stale-chip",title:"Its source is failing. Last good data is shown.",children:"stale"})]}),c.jsx("span",{className:"item-title",children:M.item.title})]})]},M.item.id)}),W.length===0&&c.jsxs("div",{className:"list-empty","data-testid":"inbox-empty",children:[c.jsx("strong",{children:f==="resolved"?"Nothing resolved in the last 24 h":"Nothing needs you"}),c.jsxs("div",{children:["Last check ",Vn(i.generated_at,s),"."]})]})]}),V&&c.jsxs("article",{className:"mailbox-detail","data-testid":"inbox-detail","aria-label":"Item detail",children:[c.jsxs("button",{type:"button",className:"btn back-btn",onClick:()=>$(!1),children:[c.jsx(yh,{size:16,"aria-hidden":"true"}),"Back"]}),c.jsxs("span",{className:"item-meta",children:[c.jsx("span",{className:`chip chip-${V.resolved?"resolved":V.item.kind}`,children:V.resolved?"Resolved":jc[V.item.kind]}),c.jsx("span",{className:"mono",children:V.item.repo}),c.jsxs("span",{children:["· ",V.resolved?"resolved":"since"," ",Pc(V.since,s)]}),!V.resolved&&V.item.stale&&c.jsx("span",{className:"chip chip-stale",children:"stale"})]}),c.jsx("h2",{children:V.item.title}),c.jsxs("div",{className:"detail-block",children:[c.jsx("span",{className:"detail-label",children:"Why it matters"}),c.jsx("span",{children:V.resolved?"The source cleared. No action is needed.":V.item.why})]}),!V.resolved&&V.item.owner&&c.jsx($d,{item:V.item.owner}),c.jsxs("div",{className:"detail-block",children:[c.jsx("span",{className:"detail-label",children:"Next step"}),c.jsx("span",{children:V.resolved?"Nothing.":V.item.next}),c.jsx("code",{className:"cmd",children:V.item.cmd})]}),c.jsx("div",{className:"detail-actions",children:c.jsxs("button",{type:"button",className:"btn",onClick:()=>{ym(V.item.cmd),L(!0),window.setTimeout(()=>L(!1),1500)},children:[j?c.jsx(kh,{size:16,"aria-hidden":"true"}):c.jsx(rd,{size:16,"aria-hidden":"true"}),V.item.kind==="waiting"?"Copy session name":"Copy command"]})}),!V.resolved&&(()=>{const M=i.repos.find(Se=>vn(Se.path,V.item.repoPath)),he=vm(M,V.item);if(!M||he.length===0)return null;const me=V.item.owner?Ed(M,V.item.owner):void 0;return c.jsx(tl,{repo:M,specs:he,act:d,reason:me})})()]})]})]})}const Id="caddis-hub-inbox-history",Rc="caddis-hub-inbox-read",Xo="caddis-hub-inbox-notified",Lc="caddis-hub-inbox-notify",Ad="caddis-hub-lanes-folded";function tn(){try{return window.localStorage}catch{return null}}function ms(i,s){try{const a=s==null?void 0:s.getItem(i);return a?JSON.parse(a):null}catch{return null}}function gs(i,s,a){try{a==null||a.setItem(i,JSON.stringify(s))}catch{}}const km=(i=tn())=>{const s=ms(Id,i);return s?mm(s):dm()},xm=(i,s=tn())=>gs(Id,i,s);function ns(i,s=tn()){const a=ms(i,s);return new Set(Array.isArray(a)?a.filter(d=>typeof d=="string"):[])}function rs(i,s,a=tn()){gs(i,[...s].slice(-500),a)}const Sm={items:[],tiles:{waitingOnYou:0,blockedMerges:0,inQueue:0,workingSessions:0,lastDeploy:null}},os=()=>typeof window<"u"&&"Notification"in window;function Nm(i,s){const a=Z.useMemo(()=>i?um(i,s):Sm,[i,s]),[d,f]=Z.useState(()=>km()),h=Z.useMemo(()=>{if(!i)return a;const P=Tc(d.open,a.items,i),O=_=>P.filter(_).length;return{items:P,tiles:{...a.tiles,waitingOnYou:O(_=>_.folder==="needs"),blockedMerges:O(_=>_.kind==="blocked-merge")}}},[i,a,d.open]),[v,S]=Z.useState(()=>ns(Rc)),[y,$]=Z.useState(()=>{var P;try{return os()&&((P=tn())==null?void 0:P.getItem(Lc))==="1"&&Notification.permission==="granted"}catch{return!1}});Z.useEffect(()=>{i&&f(P=>{const O=hm(P,Tc(P.open,a.items,i),Date.now());return xm(O),O})},[i,a]),Z.useEffect(()=>{if(!y||!i)return;const P=ns(Xo);let O=!1;for(const _ of h.items)if(!P.has(_.id)){P.add(_.id),O=!0;try{new Notification(`caddis hub: ${_.repo}`,{body:_.title,tag:_.id})}catch{}}O&&rs(Xo,P)},[y,i,h]);const j=Z.useCallback(P=>{S(O=>{if(O.has(P))return O;const _=new Set(O).add(P);return rs(Rc,_),_})},[]),L=Z.useCallback(()=>{os()&&Notification.requestPermission().then(P=>{var _;if(P!=="granted")return;try{(_=tn())==null||_.setItem(Lc,"1")}catch{}const O=ns(Xo);for(const K of h.items)O.add(K.id);rs(Xo,O),$(!0)})},[h]);return{model:h,resolved:d.resolved,read:v,markRead:j,notify:{supported:os(),enabled:y,enable:L}}}const Dc="No coordinator: each session merges its own PRs.",_m="/caddis:coordinate",jm="gh auth login -h github.com",Fd=i=>{const s=i?new Date(i):null;return s&&!Number.isNaN(s.getTime())?s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"unknown"},Oc=i=>`Coordinator not responding since ${Fd(i)}`,Mc=i=>`Coordinator stopped at ${Fd(i)}`;function Em(i,s){const a=i?Date.parse(i):NaN;if(Number.isNaN(a))return"unknown";const d=Math.max(0,Math.round((s-a)/6e4));return d<60?`${d} min ago`:d<1440?`${Math.floor(d/60)} h ago`:`${Math.floor(d/1440)} d ago`}const Cm=(i,s,a)=>i==="waiting"?{sub:`waiting: ${s??"unknown"}`,tone:a==="peer"?"muted":"warn"}:i==="busy"||i==="running"||i==="working"?{sub:"busy",tone:"good"}:{sub:i,tone:"muted"},ls=(i,s)=>{const a=i.whyWaiting||i.state,d=[i.hotfix?"hotfix":"",i.held&&!a.includes("held")?"held":"",a].filter(Boolean);return{key:`q${i.pr}`,title:`#${i.pr} ${i.title}`.trim(),sub:s?"last known queue":d.join(" · "),tone:i.hotfix||i.held?"warn":"muted",grey:s,queue:{pr:i.pr,headSha:i.headSha,hotfix:i.hotfix,held:i.held}}};function Tm(i,s,a){var $e,M,he,me,Se;const d=s.coordinator,f=d?d.status==="stopped"?"stopped":d.responding?"coordinator":"down":"none",h=Mr(s),v=i.sessions.filter(G=>vn(G.repo_path,s.path)).map(G=>{const re=Cm(G.status,G.waiting_for,G.waiting_class);return{key:`s${G.session_id}`,title:G.name??G.session_id.slice(0,8),sub:re.sub,tone:re.tone}}),S=[],y=new Set;for(const G of(($e=s.github)==null?void 0:$e.prs)??[]){if(G.draft||G.required_state!=="fail")continue;const re=G.checks.filter(Le=>Le.required&&Le.conclusion==="failure").map(Le=>Le.name);y.add(G.number),S.push({key:`b${G.number}`,title:`#${G.number} ${G.title}`,sub:re.length>0?`${re.join(", ")} failed`:"required check failed",tone:"bad"})}const $=Ir(s),j=[],L=[];if(f==="coordinator"){const G=Dd(s);for(const re of $)re.state==="blocked"?y.has(re.pr)||(y.add(re.pr),S.push({key:`b${re.pr}`,title:`#${re.pr} ${re.title}`.trim(),sub:re.whyWaiting||"blocked",tone:"bad"})):re.state==="merging"||re.pr===G?L.push(ls(re,!1)):j.push(ls(re,!1))}else if(f==="down"||f==="stopped")for(const G of $)G.state!=="blocked"&&j.push(ls(G,!0));const P=(((M=s.github)==null?void 0:M.merges)??[]).slice().sort((G,re)=>Date.parse(re.merged_at)-Date.parse(G.merged_at)).slice(0,3).map(G=>{const re=G.runs??[],Le=re.some(De=>De.conclusion==="failure"),wt=re.length>0&&re.every(De=>De.conclusion==="success"),Ve=Em(G.merged_at,a);return{key:`d${G.number}`,title:`#${G.number} ${G.title}`,sub:Le?`deploy failed · ${Ve}`:wt?`deployed ${Ve}`:`merged ${Ve}`,tone:Le?"bad":wt?"good":"muted"}});let O=null;f==="none"?O=`${Dc} Start one with ${_m}.`:f==="down"?O=`${Oc((d==null?void 0:d.heartbeat_at)??null)}. The lane shows GitHub data; the last known queue is greyed.`:f==="stopped"&&(O=`${Mc((d==null?void 0:d.stopped_at)??null)}. Each session merges its own PRs until one starts again (/caddis:coordinate). The last known queue is greyed.`);const _=(he=i.sources)!=null&&he.agents?!i.sources.agents.ok:!1,K=(me=s.github)!=null&&me.error?{account:s.github.account??null,error:s.github.error,command:jm}:null;let W;f==="down"?W=Oc((d==null?void 0:d.heartbeat_at)??null):f==="stopped"?W=Mc((d==null?void 0:d.stopped_at)??null):W=[f==="none"?"No coordinator":"",_?"sessions unknown":v.length>0?`${v.length} session${v.length===1?"":"s"}`:"no sessions running",S.length>0?`${S.length} blocked`:"",j.length>0?`${j.length} waiting`:"",L.length>0?`${L.length} merging`:"",P.length>0?`${P.length} deployed`:""].filter(Boolean).join(" · ");const V=i.sessions.some(G=>vn(G.repo_path,s.path)&&G.waiting_class==="owner"),Ee=f==="down"||s.error||(Se=s.github)!=null&&Se.error?"blocked":V?"attention":f==="none"||f==="stopped"?"idle":"ok";return{id:s.path,name:h,mode:f,tone:Ee,note:O,github:K,summary:W,columns:[{id:"sessions",title:"Sessions",cards:v,emptyText:_?'Sessions unknown: "claude agents" failed':"No sessions running"},{id:"blocked",title:"Blocked",cards:S,emptyText:"None"},{id:"waiting",title:"Waiting for its turn",cards:j,emptyText:f==="none"?Dc:"None"},{id:"merging",title:"Merging now",cards:L,emptyText:"None"},{id:"done",title:"Done and deployed",cards:P,emptyText:"None"}]}}const $m=(i,s)=>i.repos.map(a=>Tm(i,a,s)),zm={ok:"var(--green)",attention:"var(--mk-warn)",blocked:"var(--mk-bad)",idle:"var(--text-dim)"};function Pm(){const i=ms(Ad,tn());return i&&typeof i=="object"&&!Array.isArray(i)?i:{}}function Rm({state:i,nowMs:s,api:a,act:d}){const[f,h]=Z.useState(()=>Pm()),v=$m(i,s),S=y=>{h($=>{const j={...$,[y]:!$[y]};return gs(Ad,j,tn()),j})};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:"Overview"}),c.jsxs("span",{className:"page-subtitle",children:[i.repos.length," repos · ",i.sessions.length," sessions"]})]}),i.repos.length===0&&c.jsx(Od,{}),c.jsx(Md,{tiles:a.model.tiles,stale:us(i)}),c.jsx("div",{className:`lanes${us(i)?" stale":""}`,"data-testid":"lanes",children:v.map(y=>{const $=!f[y.id],j=i.repos.find(L=>vn(L.path,y.id));return c.jsxs("section",{className:`lane ${y.mode}`,"data-testid":"lane","aria-label":y.name,children:[c.jsxs("button",{type:"button",className:"lane-head","aria-expanded":$,onClick:()=>S(y.id),children:[c.jsx("span",{"aria-hidden":"true",style:{width:9,height:9,borderRadius:"50%",background:zm[y.tone],flexShrink:0}}),c.jsx("span",{className:"lane-name",children:y.name}),c.jsx("span",{className:"lane-summary","data-testid":"lane-summary",children:y.summary}),c.jsx(xh,{className:"chev",size:18,"aria-hidden":"true",style:{transform:$?"rotate(180deg)":"none"}})]}),$&&c.jsxs("div",{className:"lane-body",children:[y.github&&c.jsxs("div",{className:"lane-note gh-fail","data-testid":"gh-fail",role:"status",children:["GitHub access failed for ",y.github.account?`account ${y.github.account}`:"this repo",y.github.error?` (${y.github.error})`:"",". Sign in again with"," ",c.jsx("code",{className:"cmd",children:y.github.command})]}),y.note&&c.jsx("div",{className:"lane-note","data-testid":"lane-note",children:y.note}),c.jsx("div",{className:"lane-cols",children:y.columns.map(L=>c.jsxs("div",{className:"lane-col","data-testid":`col-${L.id}`,children:[c.jsxs("span",{className:"col-title",children:[L.title," · ",L.cards.length]}),L.cards.map(P=>c.jsxs("div",{className:`card${P.grey?" grey":""}`,"data-testid":"lane-card",children:[c.jsx("span",{className:"card-title",children:P.title}),c.jsx("span",{className:`card-sub tone-${P.tone}`,children:P.sub}),j&&P.queue&&c.jsx(tl,{repo:j,specs:hs(j,P.queue),act:d,compact:!0})]},P.key)),L.cards.length===0&&c.jsx("span",{className:"col-empty",children:L.emptyText})]},L.id))})]})]},y.id)})})]})}function Lm(i){const s=i.replace(/^#\/?/,"").split("/"),a=s[0];if(a==="overview")return{page:"overview"};if(a==="activity")return{page:"activity"};if(a==="guide")return{page:"guide"};if(a==="repo"&&s[1])try{const d=s[2]==="roadmap"||s[2]==="sessions"?s[2]:"flow",f=d==="roadmap"&&s[3]?decodeURIComponent(s[3]):null;return{page:"repo",id:decodeURIComponent(s[1]),tab:d,roadmap:f}}catch{return{page:"inbox"}}return{page:"inbox"}}const ys=i=>i.repo_id??i.path,cs=i=>`#/repo/${encodeURIComponent(i)}`;function Dm(i,s,a){return s==="flow"?cs(i):`${cs(i)}/${s}${s==="roadmap"&&a?`/${encodeURIComponent(a)}`:""}`}const Om=["D1","D2","D3","D4","D5"],el=i=>i&&typeof i=="object"&&!Array.isArray(i)?i:{};function Mm(i){const s=(a,d)=>{if(a.state==="merging")return[0,0,0,"",d];const f=a.hotfix?1:2;return a.state==="ready"&&!a.held?[f,0,a.since?0:1,a.since??"",d]:[f,1,0,"",d]};return i.map((a,d)=>({q:a,r:s(a,d)})).sort((a,d)=>{for(let f=0;f<a.r.length;f++){const h=a.r[f],v=d.r[f];if(h<v)return-1;if(h>v)return 1}return 0}).map(a=>a.q)}function Ud(i){const s=i.coordinator;return s?s.status==="stopped"?"stopped":s.responding?"live":"down":"none"}function Im(i){const s=i.coordinator,a=typeof el(s==null?void 0:s.coordinator_session).name=="string"?String(el(s==null?void 0:s.coordinator_session).name):null;switch(Ud(i)){case"none":return"No coordinator: each session merges its own PRs. Start one with /caddis:coordinate.";case"stopped":return`Coordinator stopped at ${Or(s==null?void 0:s.stopped_at)}. The last known queue is greyed.`;case"down":return`Coordinator not responding since ${Or(s==null?void 0:s.heartbeat_at)}. The last known queue is greyed.`;case"live":return`Coordinator ${a??""} live, heartbeat ${Or(s==null?void 0:s.heartbeat_at)}.`.replace(" "," ")}}function Am(i){var a;const s=[];for(const d of qn((a=i.coordinator)==null?void 0:a.deploy_checks)){const f=el(d);if(typeof f.pr!="number")continue;const h=el(f.checks),v=Object.keys(h).length?Om.map(S=>({name:S,mark:typeof h[S]=="string"?String(h[S]):"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:v,reason:typeof f.reason=="string"&&f.reason?f.reason:null})}return s.reverse()}function Fm(i,s){var v,S;const a=Ud(s),d=Dd(s),f=Mm(Ir(s)),h=new Set(f.map(y=>y.pr));return{mode:a,statusText:Im(s),grey:a==="stopped"||a==="down",merging:a==="live"?d:null,queue:f.map((y,$)=>({...y,position:$+1,merging:y.state==="merging"||y.pr===d})),deploys:Am(s),owner:Ld(s),unqueued:(((v=s.github)==null?void 0:v.prs)??[]).filter(y=>!y.draft&&!h.has(y.number)).map(y=>({number:y.number,title:y.title,requiredState:y.required_state,headSha:y.head_sha})),requests:[...((S=s.coordinator)==null?void 0:S.requests)??[]].reverse()}}const Ic={waiting:0,busy:1,idle:2},Um=i=>({key:i.key,name:i.name??i.session_id,kind:i.kind,status:i.status,waitingFor:i.waiting_for,waitingClass:i.waiting_class,since:i.waiting_since,copies:i.copies,copyWarning:i.copies>1?`${i.copies} copies`:null});function Hm(i,s){const a=i.sources.agents,d=i.sessions.filter(h=>vn(h.repo_path,s.path)).map(Um).sort((h,v)=>+(v.waitingClass==="owner")-+(h.waitingClass==="owner")||(Ic[h.status]??3)-(Ic[v.status]??3)||h.name.localeCompare(v.name)),f=!a.ok&&a.last_ok_at===null;return{unknown:f,error:a.ok?null:a.last_error,rows:f?[]:d}}async function Bm(i){try{return await navigator.clipboard.writeText(i),!0}catch{return!1}}const Wm={owner:"you",peer:"a peer session"};function Vm({state:i,repo:s,nowMs:a}){const d=Hm(i,s),[f,h]=Z.useState(null),v=async(S,y)=>{await Bm(y)&&(h(S),window.setTimeout(()=>h($=>$===S?null:$),2e3))};return c.jsxs("div",{className:"flow","data-testid":"sessions",children:[d.error&&c.jsxs("div",{className:"lane-note","data-testid":"sessions-error",children:[d.unknown?"Sessions unknown: ":"The last sessions read failed: ",d.error]}),d.unknown?c.jsx("p",{className:"col-empty",children:"The hub could not read the session list. PRs and deploys are on the Flow tab."}):d.rows.length===0?c.jsx("p",{className:"col-empty","data-testid":"sessions-empty",children:"No sessions running. PRs and deploys are on the Flow tab."}):c.jsx("ul",{className:"flow-list","data-testid":"sessions-table","aria-label":"Sessions of this repo",children:d.rows.map(S=>c.jsxs("li",{className:"flow-row","data-testid":"session-row",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsx("span",{className:"flow-title mono",children:S.name}),c.jsx("span",{className:`chip tone-${S.status==="waiting"?"warn":S.status==="busy"?"good":"muted"}`,children:S.status}),S.copyWarning&&c.jsx("span",{className:"chip tone-bad","data-testid":"session-copies",children:S.copyWarning}),c.jsxs("button",{type:"button",className:"btn btn-act",onClick:()=>void v(S.key,S.name),"aria-label":`Copy session name ${S.name}`,children:[c.jsx(rd,{size:14,"aria-hidden":"true"}),f===S.key?"Copied":"Copy name"]})]}),c.jsxs("span",{className:"flow-why",children:[S.kind,S.waitingFor?` · waiting for ${S.waitingClass?Wm[S.waitingClass]:"an answer"}: ${S.waitingFor}`:"",S.since?` · since ${Vn(S.since,a)}`:""]}),S.copyWarning&&c.jsxs("span",{className:"flow-why tone-bad",children:["The same session runs in ",S.copies," windows. Close the extra copy."]})]},S.key))})]})}const qm=Z.lazy(()=>fs(()=>import("./RoadmapTab-CDm42wB2.js"),__vite__mapDeps([0,1]))),Qm=[{id:"flow",label:"Flow"},{id:"roadmap",label:"Roadmap"},{id:"sessions",label:"Sessions"}],Km={ready:"good",merging:"good",blocked:"bad",held:"warn",ci:"muted",waiting:"muted"};function Ym({repo:i,item:s,grey:a,act:d}){return c.jsxs("li",{className:`flow-row${a?" grey":""}`,"data-testid":"queue-item",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsx("span",{className:"flow-pos mono",children:s.position}),c.jsxs("span",{className:"flow-title",children:["#",s.pr," ",s.title]})]}),c.jsxs("div",{className:"flow-flags",children:[c.jsx("span",{className:`chip tone-${Km[s.state]??"muted"}`,children:s.state}),s.merging&&c.jsx("span",{className:"chip tone-good",children:"merging now"}),s.hotfix&&c.jsx("span",{className:"chip tone-warn","data-testid":"flag-hotfix",children:"hotfix"}),s.held&&c.jsx("span",{className:"chip tone-warn","data-testid":"flag-held",children:"held"})]}),s.whyWaiting&&c.jsx("span",{className:"flow-why",children:s.whyWaiting}),s.waitsOn.length>0&&c.jsxs("span",{className:"flow-why",children:["Waits on ",s.waitsOn.map(f=>`${f.repo.replace("__","/")}#${f.pr}`).join(", ")]}),c.jsx(tl,{repo:i,specs:hs(i,{pr:s.pr,headSha:s.headSha,hotfix:s.hotfix,held:s.held}),act:d})]})}function Gm({state:i,repo:s,nowMs:a,act:d}){const f=Fm(i,s);return c.jsxs("div",{className:"flow","data-testid":"flow",children:[c.jsx("div",{className:`lane-note flow-status ${f.mode}`,"data-testid":"flow-status",children:f.statusText}),f.owner.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Owner approvals",children:[c.jsxs("h2",{className:"flow-h",children:["Needs your approval · ",f.owner.length]}),c.jsx("ul",{className:"flow-list",children:f.owner.map(h=>c.jsxs("li",{className:"flow-row","data-testid":"owner-item",children:[c.jsxs("span",{className:"flow-title",children:[h.pr!==null?`#${h.pr} `:"",h.what]}),c.jsx($d,{item:h}),c.jsx(tl,{repo:s,specs:Nd(s,h),act:d,reason:Ed(s,h)})]},h.id))})]}),c.jsxs("section",{className:"flow-section","aria-label":"Merge queue",children:[c.jsxs("h2",{className:"flow-h",children:["Merge queue · ",f.queue.length,f.grey?" · last known":""]}),f.mode==="none"?c.jsx("p",{className:"col-empty",children:"No queue: this repo has no coordinator."}):f.queue.length===0?c.jsx("p",{className:"col-empty",children:"The queue is empty."}):c.jsx("ol",{className:"flow-list",children:f.queue.map(h=>c.jsx(Ym,{repo:s,item:h,grey:f.grey,act:d},h.pr))})]}),c.jsxs("section",{className:"flow-section","aria-label":"Deploy checks",children:[c.jsx("h2",{className:"flow-h",children:"Deploy checks"}),f.deploys.length===0?c.jsx("p",{className:"col-empty",children:"No deploy check recorded."}):c.jsx("ul",{className:"flow-list",children:f.deploys.map(h=>c.jsxs("li",{className:"flow-row","data-testid":"deploy-check",children:[c.jsxs("div",{className:"flow-row-head",children:[c.jsxs("span",{className:"flow-title",children:["#",h.pr," ",c.jsx("span",{className:"mono",children:h.mergeSha})]}),c.jsxs("span",{className:`chip tone-${h.health==="ok"?"good":h.health==="failed"?"bad":"muted"}`,children:["health ",h.health]})]}),h.checks&&c.jsx("div",{className:"flow-flags","data-testid":"deploy-marks",children:h.checks.map(v=>c.jsxs("span",{className:`chip tone-${v.mark==="pass"?"good":v.mark==="fail"?"bad":"muted"}`,children:[v.name," ",v.mark]},v.name))}),c.jsxs("span",{className:"flow-why",children:[h.run!==null?`run ${h.run} · `:"",Vn(h.at,a),h.reason?` · ${h.reason}`:""]})]},`${h.pr}-${h.mergeSha}`))})]}),f.unqueued.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Open PRs not in the queue",children:[c.jsxs("h2",{className:"flow-h",children:["Open PRs not in the queue · ",f.unqueued.length]}),c.jsx("ul",{className:"flow-list",children:f.unqueued.map(h=>c.jsxs("li",{className:"flow-row","data-testid":"unqueued-pr",children:[c.jsxs("span",{className:"flow-title",children:["#",h.number," ",h.title]}),c.jsxs("span",{className:`flow-why tone-${h.requiredState==="fail"?"bad":h.requiredState==="pass"?"good":"muted"}`,children:["required checks ",h.requiredState]})]},h.number))})]}),f.requests.length>0&&c.jsxs("section",{className:"flow-section","aria-label":"Your requests",children:[c.jsx("h2",{className:"flow-h",children:"Your requests"}),c.jsx("ul",{className:"flow-list",children:f.requests.slice(0,10).map(h=>c.jsxs("li",{className:"flow-row","data-testid":"request-log",children:[c.jsx("span",{className:`tone-${Td(h.status)}`,children:Cd(h)}),c.jsxs("span",{className:"flow-why",children:[h.pr!==null?`PR #${h.pr}`:h.what," · ",Vn(h.created_at,a)]})]},h.id))})]})]})}function Xm({state:i,repo:s,nowMs:a,act:d,tab:f,roadmap:h}){const v=ys(s);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"page-header",children:[c.jsx("h1",{className:"page-title",children:Mr(s)}),c.jsx("span",{className:"page-subtitle",children:s.name})]}),c.jsx("nav",{className:"repo-tabs",role:"tablist","aria-label":"Repo views",children:Qm.map(S=>c.jsx("a",{role:"tab","aria-selected":f===S.id,"aria-current":f===S.id?"page":void 0,className:`folder-btn${f===S.id?" sel":""}`,href:Dm(v,S.id),"data-testid":`tab-${S.id}`,children:S.id==="roadmap"?nm(s):S.label},S.id))}),f==="flow"&&c.jsx(Gm,{state:i,repo:s,nowMs:a,act:d}),f==="roadmap"&&c.jsx(Z.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(qm,{repo:s,slug:h,stale:rm(i),lastOkAt:i.sources.collector.last_ok_at},h??"")}),f==="sessions"&&c.jsx(Vm,{state:i,repo:s,nowMs:a})]})}const Zm=1,Ac={collector:"Plans and roadmaps",agents:"Claude sessions",github:"GitHub",coordinator:"Coordinator"};function Jm(i){var d,f;const s=[];(i.schema>Zm||i.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=(d=i.sources)==null?void 0:d.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 h of Object.keys(Ac)){const v=(f=i.sources)==null?void 0:f[h];v!=null&&v.stale&&(h==="agents"&&!v.ok||s.push({id:`stale-${h}`,tone:"warn",text:`${Ac[h]} data is stale. Last good read: ${v.last_ok_at?Or(v.last_ok_at):"never"}.`}))}return s}function bm({state:i}){const s=Jm(i);return s.length===0?null:c.jsx("div",{className:"banners",role:"region","aria-label":"Warnings",children:s.map(a=>c.jsxs("div",{className:`banner ${a.tone}`,role:"status","data-testid":`banner-${a.id}`,children:[a.tone==="bad"?c.jsx(zh,{size:16,"aria-hidden":"true"}):c.jsx(Oh,{size:16,"aria-hidden":"true"}),c.jsxs("span",{children:[a.text,a.command&&c.jsxs(c.Fragment,{children:[" ",c.jsx("code",{className:"cmd",children:a.command})]})]})]},a.id))})}const Hd="caddis-hub-theme",eg=["dark","light","system"];function Bd(){try{return window.localStorage}catch{return null}}function tg(i=Bd()){try{const s=i==null?void 0:i.getItem(Hd);return s==="dark"||s==="light"||s==="system"?s:"system"}catch{return"system"}}function ng(i,s=Bd()){try{s==null||s.setItem(Hd,i)}catch{}}function rg(i,s){return i==="system"?s?"dark":"light":i}const og={dark:$h,light:Dh,system:Th};function lg({state:i,nowMs:s,theme:a,onTheme:d}){const f=Bh(i==null?void 0:i.spend),h=i==null?void 0:i.versions,v=Vh(i),S=zd(i);return c.jsxs("footer",{className:"sidebar-footer",children:[c.jsxs("div",{className:"footer-meta",children:[c.jsxs("div",{className:"updated-line",children:[c.jsx(Sh,{size:14,"aria-hidden":"true"}),c.jsx("span",{"data-testid":"data-age",children:i?Hh(i.generated_at,s):"Waiting for data"})]}),c.jsxs("div",{className:"spend-box",children:[c.jsxs("div",{className:"spend-row",children:[c.jsx("span",{children:"agy spend (24 h)"}),c.jsx("span",{className:"mono",children:f.configured?`${f.committedEur.toFixed(2)} / ${f.capEur.toFixed(0)} EUR`:"no cap set"})]}),c.jsx("div",{className:"meter-track",role:"progressbar","aria-label":"agy spend","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(f.pct),children:c.jsx("div",{className:`meter-fill${f.pct>=80?" hot":""}`,style:{width:`${f.pct}%`}})})]}),S&&!v&&c.jsxs("div",{className:"quota-line mono","data-testid":"quota",children:["GitHub quota ",S.remaining," left (",S.account,")"]}),v&&c.jsxs("div",{className:"quota-low","data-testid":"quota-low",role:"status",children:["GitHub quota low: ",v.remaining," left (",v.account,")",v.resetAt?`, resets ${Or(v.resetAt)}`:"",". Polling slows."]}),h&&c.jsxs("div",{className:"versions mono",children:["hub ",h.hub," | pool ",h.pool??"-"," | plugin ",h.plugin??"-"]})]}),c.jsx("div",{className:"theme-switch",role:"group","aria-label":"Theme",children:eg.map(y=>{const $=og[y];return c.jsxs("button",{type:"button",className:`theme-btn${a===y?" active":""}`,"aria-pressed":a===y,title:y,onClick:()=>d(y),children:[c.jsx($,{size:15,"aria-hidden":"true"}),c.jsx("span",{children:y})]},y)})})]})}const ig="/assets/mark-small-CwCIyjyC.svg",sg="/assets/wordmark-CD0s2ofS.svg";function Fc(){return c.jsxs("span",{className:"brand-logo",children:[c.jsx("img",{src:ig,alt:"",width:36,height:36,className:"brand-mark"}),c.jsxs("span",{className:"brand-stack",children:[c.jsx("img",{src:sg,alt:"CADDIS",width:100,height:20,className:"brand-wordmark"}),c.jsx("span",{className:"brand-sub",children:"hub"})]})]})}function ag(i,s){var f;return i.error||(f=i.github)!=null&&f.error?"blocked":s.sessions.some(h=>h.repo_path===i.path&&h.waiting_class==="owner")||i.coordinator&&s.sources.coordinator.stale?"attention":!i.coordinator&&!s.sessions.some(h=>h.repo_path===i.path)?"idle":"ok"}function Dr({href:i,active:s,icon:a,label:d,badge:f,onGo:h}){return c.jsx("li",{children:c.jsxs("a",{className:`nav-link${s?" active":""}`,href:i,"aria-current":s?"page":void 0,onClick:h,children:[c.jsxs("span",{className:"nav-link-left",children:[a,c.jsx("span",{className:"nav-text",children:d})]}),f]})})}function ug({route:i,state:s,inbox:a,open:d,onToggle:f,children:h}){const v=()=>f(!1);return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"mobile-topbar",children:[c.jsxs("button",{type:"button",className:"menu-btn","aria-label":"Open navigation menu","aria-expanded":d,"aria-controls":"app-sidebar",onClick:()=>f(!d),children:[d?c.jsx(Ih,{size:18}):c.jsx(Ch,{size:18}),c.jsx("span",{children:"Menu"})]}),c.jsx(Fc,{})]}),c.jsx("div",{className:`drawer-backdrop${d?" open":""}`,onClick:v,"aria-hidden":"true"}),c.jsxs("aside",{className:`sidebar${d?" drawer-open":""}`,id:"app-sidebar",children:[c.jsxs("nav",{className:"sidebar-top","aria-label":"Main",children:[c.jsx("div",{className:"brand-row",children:c.jsx(Fc,{})}),c.jsxs("ul",{className:"nav-list",children:[c.jsx(Dr,{href:"#/inbox",active:i.page==="inbox",icon:c.jsx(jh,{size:18}),label:"Inbox",badge:a>0?c.jsx("span",{className:"inbox-badge",children:a}):void 0,onGo:v}),c.jsx(Dr,{href:"#/overview",active:i.page==="overview",icon:c.jsx(Eh,{size:18}),label:"Overview",onGo:v})]}),c.jsx("div",{className:"nav-section-label",children:"Repos"}),c.jsxs("ul",{className:"nav-list",children:[(s==null?void 0:s.repos.length)===0&&c.jsx("li",{className:"nav-empty",children:"No repos yet"}),s==null?void 0:s.repos.map(S=>{const y=ys(S),$=i.page==="repo"&&i.id===y;return c.jsx(Dr,{href:cs(y),active:$,icon:c.jsx("span",{className:`repo-dot ${ag(S,s)}`,"aria-hidden":"true"}),label:S.name,onGo:v},S.path)})]}),c.jsx("div",{className:"nav-section-label",children:"More"}),c.jsxs("ul",{className:"nav-list",children:[c.jsx(Dr,{href:"#/activity",active:i.page==="activity",icon:c.jsx(mh,{size:18}),label:"Activity",onGo:v}),c.jsx(Dr,{href:"#/guide",active:i.page==="guide",icon:c.jsx(wh,{size:18}),label:"caddis guide",onGo:v})]})]}),h]})]})}const cg="/assets/favicon-DtHQyAC1.svg",dg="/assets/favicon-dot-DHAVYP15.svg",fg=i=>i?dg:cg;function pg(i){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=fg(i)}const hg=()=>{var i;return((i=window.matchMedia)==null?void 0:i.call(window,"(prefers-color-scheme: dark)").matches)??!0};function mg(){const[i,s]=Z.useState(()=>tg());return Z.useEffect(()=>{const a=()=>{document.documentElement.dataset.theme=rg(i,hg())};if(a(),i!=="system"||!window.matchMedia)return;const d=window.matchMedia("(prefers-color-scheme: dark)");return d.addEventListener("change",a),()=>d.removeEventListener("change",a)},[i]),[i,a=>{ng(a),s(a)}]}const gg=1e4;function yg(){const[i,s]=Z.useState(null),[a,d]=Z.useState(null),[f,h]=Z.useState(!0),v=Z.useRef(void 0),S=Z.useRef(!0),y=Z.useCallback(async()=>{try{const j=await th();if(!S.current)return;s(j),d(null)}catch(j){if(!S.current)return;d(j instanceof is&&j.status===401?"unauthorized":"network")}finally{S.current&&h(!1)}},[]);Z.useEffect(()=>{S.current=!0;const j=()=>window.clearInterval(v.current),L=()=>{j(),v.current=window.setInterval(()=>void y(),gg)},P=()=>{document.hidden?j():(y(),L())};return y(),document.hidden||L(),document.addEventListener("visibilitychange",P),()=>{S.current=!1,j(),document.removeEventListener("visibilitychange",P)}},[y]);const $=Z.useCallback(()=>void y(),[y]);return{state:i,error:a,loading:f,refresh:$}}const vg=Z.lazy(()=>fs(()=>import("./Guide-9PV1m0e9.js"),__vite__mapDeps([2,3])).then(i=>({default:i.Guide}))),wg=Z.lazy(()=>fs(()=>import("./Activity-CaqQ_HdD.js"),__vite__mapDeps([4,1])));function kg(i){const[s,a]=Z.useState(()=>Date.now());return Z.useEffect(()=>{const d=window.setInterval(()=>a(Date.now()),i);return()=>window.clearInterval(d)},[i]),s}function xg(){const[i,s]=Z.useState(()=>window.location.hash);return Z.useEffect(()=>{const a=()=>s(window.location.hash);return window.addEventListener("hashchange",a),()=>window.removeEventListener("hashchange",a)},[]),Lm(i)}function Sg(){const{state:i,error:s,loading:a,refresh:d}=yg(),f=oh(d),h=kg(5e3),v=xg(),[S,y]=mg(),[$,j]=Z.useState(!1),L=Nm(i,h),P=L.model.items.length;Z.useEffect(()=>{document.title=Uh(P),pg(P>0)},[P]);let O;if(s==="unauthorized")O=c.jsxs("div",{className:"notice","data-testid":"signin",children:[c.jsx("h1",{className:"page-title",children:"Signed out"}),c.jsxs("p",{children:["Run ",c.jsx("code",{className:"cmd",children:"caddis hub open"})," to sign in."]})]});else if(!i)O=c.jsx("p",{className:"page-subtitle",children:a?"Loading...":"The hub did not answer. Retrying."});else if(v.page==="inbox")O=c.jsx(wm,{state:i,nowMs:h,api:L,act:f});else if(v.page==="overview")O=c.jsx(Rm,{state:i,nowMs:h,api:L,act:f});else if(v.page==="repo"){const _=i.repos.find(K=>ys(K)===v.id);O=_?c.jsx(Xm,{state:i,repo:_,nowMs:h,act:f,tab:v.tab,roadmap:v.roadmap},v.id):c.jsxs("div",{className:"notice",children:[c.jsx("h1",{className:"page-title",children:v.id}),c.jsx("p",{children:"This repo is not in the hub registry."})]})}else v.page==="guide"?O=c.jsx(Z.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(vg,{guide:i.guide,versions:i.versions})}):O=c.jsx(Z.Suspense,{fallback:c.jsx("p",{className:"page-subtitle",children:"Loading..."}),children:c.jsx(wg,{state:i})});return c.jsxs("div",{className:"app-shell",children:[c.jsx(ug,{route:v,state:i,inbox:P,open:$,onToggle:j,children:c.jsx(lg,{state:i,nowMs:h,theme:S,onTheme:y})}),c.jsx("main",{className:"main-area",id:"main-content",children:c.jsxs("div",{className:"page-wrap",children:[i&&c.jsx(bm,{state:i}),s==="network"&&i&&c.jsx("div",{className:"banner warn",role:"status",children:"The hub did not answer. Showing the last data."}),O]})})]})}bp();const Uc=document.getElementById("root");Uc&&Yp.createRoot(Uc).render(c.jsx(Z.StrictMode,{children:c.jsx(Sg,{})}));export{Om as D,Ng as N,qh as T,qn as a,ys as b,de as c,Mr as d,Dm as e,Pd as f,Or as g,Cg as h,_g as i,c as j,rm as k,Eg as l,jg as o,Z as r};