spexcode 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/spec-cli/src/claude-headless.ts +105 -16
- package/spec-cli/src/cli.ts +13 -2
- package/spec-cli/src/codex-headless.ts +13 -0
- package/spec-cli/src/guide.ts +8 -7
- package/spec-cli/src/harness.ts +53 -5
- package/spec-cli/src/host.ts +1 -0
- package/spec-cli/src/opencode-headless.ts +119 -5
- package/spec-cli/src/opencode.ts +8 -4
- package/spec-cli/src/pi-headless.ts +1 -0
- package/spec-cli/src/pty-bridge.ts +31 -4
- package/spec-cli/src/pty-helper.mjs +16 -6
- package/spec-cli/src/pty-native-helper.mjs +22 -0
- package/spec-cli/src/session-timeline.ts +29 -21
- package/spec-cli/src/sessions.ts +72 -32
- package/spec-cli/templates/spexcode.json +1 -0
- package/spec-dashboard/dist/assets/{Dashboard-C_w_wdk5.js → Dashboard-CTAuTyZ3.js} +3 -3
- package/spec-dashboard/dist/assets/{EvalsPage-5_nfIYll.js → EvalsPage-KbMMownG.js} +2 -2
- package/spec-dashboard/dist/assets/{IssuesPage-By-u--95.js → IssuesPage-DmyLb9Rj.js} +1 -1
- package/spec-dashboard/dist/assets/{MobileApp-CVEwjHr9.js → MobileApp-D2RZGt4Z.js} +2 -2
- package/spec-dashboard/dist/assets/{Modal-BqgvzMJD.js → Modal-3brXUhM0.js} +1 -1
- package/spec-dashboard/dist/assets/{PageScroll-B_dKCuXx.js → PageScroll-CadAKuSy.js} +1 -1
- package/spec-dashboard/dist/assets/ProjectsPage-DU3x4Y8l.js +1 -0
- package/spec-dashboard/dist/assets/{SessionInterface-Bh3vq8SU.js → SessionInterface-BtrzlOPs.js} +1 -1
- package/spec-dashboard/dist/assets/{SessionWindow-BuJ5mzjC.js → SessionWindow-BWH5O0jh.js} +1 -1
- package/spec-dashboard/dist/assets/{Settings-B8KFocsz.js → Settings-COgdKTJB.js} +1 -1
- package/spec-dashboard/dist/assets/{TimelineChat-K0wdlweB.js → TimelineChat-DQ21GSJK.js} +1 -1
- package/spec-dashboard/dist/assets/{index-BKaTHjmU.js → index-D6HBvKkJ.js} +2 -2
- package/spec-dashboard/dist/assets/{index-DcnCaBAC.css → index-DFdlYy4H.css} +1 -1
- package/spec-dashboard/dist/index.html +2 -2
- package/spec-dashboard/dist/assets/ProjectsPage-RVP8AqK4.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-CTAuTyZ3.js","assets/SessionWindow-BWH5O0jh.js","assets/PageScroll-CadAKuSy.js","assets/Modal-3brXUhM0.js","assets/bindings-BC9vqpYU.js","assets/Dashboard-C5ap-Sga.css","assets/MobileApp-D2RZGt4Z.js","assets/TimelineChat-DQ21GSJK.js","assets/ProjectsPage-DU3x4Y8l.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka={exports:{}},fo={},Sa={exports:{}},I={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
@@ -38,4 +38,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-C_w_w
|
|
|
38
38
|
`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=s&&0<=i);break}}}finally{Oo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?jn(e):""}function md(e){switch(e.tag){case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return jn("Suspense");case 19:return jn("SuspenseList");case 0:case 2:case 15:return e=Fo(e.type,!1),e;case 11:return e=Fo(e.type.render,!1),e;case 1:return e=Fo(e.type,!0),e;default:return""}}function pl(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 Ut:return"Fragment";case At:return"Portal";case cl:return"Profiler";case us:return"StrictMode";case dl:return"Suspense";case fl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Oa:return(e.displayName||"Context")+".Consumer";case Ra:return(e._context.displayName||"Context")+".Provider";case cs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ds:return t=e.displayName||null,t!==null?t:pl(e.type)||"Memo";case nt:t=e._payload,e=e._init;try{return pl(e(t))}catch{}}return null}function gd(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 pl(t);case 8:return t===us?"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 gt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Da(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vd(e){var t=Da(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(s){r=""+s,l.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cr(e){e._valueTracker||(e._valueTracker=vd(e))}function Aa(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Da(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ar(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 hl(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ii(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=gt(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 Ua(e,t){t=t.checked,t!=null&&as(e,"checked",t,!1)}function ml(e,t){Ua(e,t);var n=gt(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")?gl(e,t.type,n):t.hasOwnProperty("defaultValue")&&gl(e,t.type,gt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ai(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 gl(e,t,n){(t!=="number"||Ar(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function Xt(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=""+gt(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 vl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(S(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ui(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(S(92));if(En(n)){if(1<n.length)throw Error(S(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:gt(n)}}function Ba(e,t){var n=gt(t.value),r=gt(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 ci(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ha(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 yl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ha(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var dr,Va=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(dr=dr||document.createElement("div"),dr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=dr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Pn={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},yd=["Webkit","ms","Moz","O"];Object.keys(Pn).forEach(function(e){yd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Pn[t]=Pn[e]})});function Wa(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Pn.hasOwnProperty(e)&&Pn[e]?(""+t).trim():t+"px"}function Qa(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Wa(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var wd=V({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 wl(e,t){if(t){if(wd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function kl(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 Sl=null;function fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xl=null,qt=null,bt=null;function di(e){if(e=rr(e)){if(typeof xl!="function")throw Error(S(280));var t=e.stateNode;t&&(t=vo(t),xl(e.stateNode,e.type,t))}}function Ga(e){qt?bt?bt.push(e):bt=[e]:qt=e}function Ka(){if(qt){var e=qt,t=bt;if(bt=qt=null,di(e),t)for(e=0;e<t.length;e++)di(t[e])}}function Za(e,t){return e(t)}function Ya(){}var Do=!1;function Ja(e,t,n){if(Do)return e(t,n);Do=!0;try{return Za(e,t,n)}finally{Do=!1,(qt!==null||bt!==null)&&(Ya(),Ka())}}function Dn(e,t){var n=e.stateNode;if(n===null)return null;var r=vo(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(S(231,t,typeof n));return n}var jl=!1;if(Ze)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){jl=!0}}),window.addEventListener("test",gn,gn),window.removeEventListener("test",gn,gn)}catch{jl=!1}function kd(e,t,n,r,o,l,s,i,a){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(g){this.onError(g)}}var Nn=!1,Ur=null,Br=!1,El=null,Sd={onError:function(e){Nn=!0,Ur=e}};function xd(e,t,n,r,o,l,s,i,a){Nn=!1,Ur=null,kd.apply(Sd,arguments)}function jd(e,t,n,r,o,l,s,i,a){if(xd.apply(this,arguments),Nn){if(Nn){var d=Ur;Nn=!1,Ur=null}else throw Error(S(198));Br||(Br=!0,El=d)}}function Ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Xa(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 fi(e){if(Ot(e)!==e)throw Error(S(188))}function Ed(e){var t=e.alternate;if(!t){if(t=Ot(e),t===null)throw Error(S(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 fi(o),e;if(l===r)return fi(o),t;l=l.sibling}throw Error(S(188))}if(n.return!==r.return)n=o,r=l;else{for(var s=!1,i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s){for(i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s)throw Error(S(189))}}if(n.alternate!==r)throw Error(S(190))}if(n.tag!==3)throw Error(S(188));return n.stateNode.current===n?e:t}function qa(e){return e=Ed(e),e!==null?ba(e):null}function ba(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ba(e);if(t!==null)return t;e=e.sibling}return null}var eu=ke.unstable_scheduleCallback,pi=ke.unstable_cancelCallback,Cd=ke.unstable_shouldYield,Td=ke.unstable_requestPaint,G=ke.unstable_now,Pd=ke.unstable_getCurrentPriorityLevel,ps=ke.unstable_ImmediatePriority,tu=ke.unstable_UserBlockingPriority,Hr=ke.unstable_NormalPriority,Nd=ke.unstable_LowPriority,nu=ke.unstable_IdlePriority,po=null,Ue=null;function $d(e){if(Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(po,e,void 0,(e.current.flags&128)===128)}catch{}}var Ie=Math.clz32?Math.clz32:Md,_d=Math.log,Ld=Math.LN2;function Md(e){return e>>>=0,e===0?32:31-(_d(e)/Ld|0)|0}var fr=64,pr=4194304;function Cn(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 Vr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,l=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~o;i!==0?r=Cn(i):(l&=s,l!==0&&(r=Cn(l)))}else s=n&~o,s!==0?r=Cn(s):l!==0&&(r=Cn(l));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,l=t&-t,o>=l||o===16&&(l&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ie(t),o=1<<n,r|=e[n],t&=~o;return r}function Id(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 zd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Ie(l),i=1<<s,a=o[s];a===-1?(!(i&n)||i&r)&&(o[s]=Id(i,t)):a<=t&&(e.expiredLanes|=i),l&=~i}}function Cl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ru(){var e=fr;return fr<<=1,!(fr&4194240)&&(fr=64),e}function Ao(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ie(t),e[t]=n}function Rd(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-Ie(n),l=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~l}}function hs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ie(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var R=0;function ou(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var lu,ms,su,iu,au,Tl=!1,hr=[],at=null,ut=null,ct=null,An=new Map,Un=new Map,ot=[],Od="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 hi(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":An.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Un.delete(t.pointerId)}}function vn(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=rr(t),t!==null&&ms(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Fd(e,t,n,r,o){switch(t){case"focusin":return at=vn(at,e,t,n,r,o),!0;case"dragenter":return ut=vn(ut,e,t,n,r,o),!0;case"mouseover":return ct=vn(ct,e,t,n,r,o),!0;case"pointerover":var l=o.pointerId;return An.set(l,vn(An.get(l)||null,e,t,n,r,o)),!0;case"gotpointercapture":return l=o.pointerId,Un.set(l,vn(Un.get(l)||null,e,t,n,r,o)),!0}return!1}function uu(e){var t=Ct(e.target);if(t!==null){var n=Ot(t);if(n!==null){if(t=n.tag,t===13){if(t=Xa(n),t!==null){e.blockedOn=t,au(e.priority,function(){su(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 Pr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Pl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Sl=r,n.target.dispatchEvent(r),Sl=null}else return t=rr(n),t!==null&&ms(t),e.blockedOn=n,!1;t.shift()}return!0}function mi(e,t,n){Pr(e)&&n.delete(t)}function Dd(){Tl=!1,at!==null&&Pr(at)&&(at=null),ut!==null&&Pr(ut)&&(ut=null),ct!==null&&Pr(ct)&&(ct=null),An.forEach(mi),Un.forEach(mi)}function yn(e,t){e.blockedOn===t&&(e.blockedOn=null,Tl||(Tl=!0,ke.unstable_scheduleCallback(ke.unstable_NormalPriority,Dd)))}function Bn(e){function t(o){return yn(o,e)}if(0<hr.length){yn(hr[0],e);for(var n=1;n<hr.length;n++){var r=hr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(at!==null&&yn(at,e),ut!==null&&yn(ut,e),ct!==null&&yn(ct,e),An.forEach(t),Un.forEach(t),n=0;n<ot.length;n++)r=ot[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ot.length&&(n=ot[0],n.blockedOn===null);)uu(n),n.blockedOn===null&&ot.shift()}var en=qe.ReactCurrentBatchConfig,Wr=!0;function Ad(e,t,n,r){var o=R,l=en.transition;en.transition=null;try{R=1,gs(e,t,n,r)}finally{R=o,en.transition=l}}function Ud(e,t,n,r){var o=R,l=en.transition;en.transition=null;try{R=4,gs(e,t,n,r)}finally{R=o,en.transition=l}}function gs(e,t,n,r){if(Wr){var o=Pl(e,t,n,r);if(o===null)Yo(e,t,r,Qr,n),hi(e,r);else if(Fd(o,e,t,n,r))r.stopPropagation();else if(hi(e,r),t&4&&-1<Od.indexOf(e)){for(;o!==null;){var l=rr(o);if(l!==null&&lu(l),l=Pl(e,t,n,r),l===null&&Yo(e,t,r,Qr,n),l===o)break;o=l}o!==null&&r.stopPropagation()}else Yo(e,t,r,null,n)}}var Qr=null;function Pl(e,t,n,r){if(Qr=null,e=fs(r),e=Ct(e),e!==null)if(t=Ot(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Xa(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 Qr=e,null}function cu(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(Pd()){case ps:return 1;case tu:return 4;case Hr:case Nd:return 16;case nu:return 536870912;default:return 16}default:return 16}}var st=null,vs=null,Nr=null;function du(){if(Nr)return Nr;var e,t=vs,n=t.length,r,o="value"in st?st.value:st.textContent,l=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[l-r];r++);return Nr=o.slice(e,1<r?1-r:void 0)}function $r(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 mr(){return!0}function gi(){return!1}function xe(e){function t(n,r,o,l,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(l):l[i]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?mr:gi,this.isPropagationStopped=gi,this}return V(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=mr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mr)},persist:function(){},isPersistent:mr}),t}var fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ys=xe(fn),nr=V({},fn,{view:0,detail:0}),Bd=xe(nr),Uo,Bo,wn,ho=V({},nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ws,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!==wn&&(wn&&e.type==="mousemove"?(Uo=e.screenX-wn.screenX,Bo=e.screenY-wn.screenY):Bo=Uo=0,wn=e),Uo)},movementY:function(e){return"movementY"in e?e.movementY:Bo}}),vi=xe(ho),Hd=V({},ho,{dataTransfer:0}),Vd=xe(Hd),Wd=V({},nr,{relatedTarget:0}),Ho=xe(Wd),Qd=V({},fn,{animationName:0,elapsedTime:0,pseudoElement:0}),Gd=xe(Qd),Kd=V({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zd=xe(Kd),Yd=V({},fn,{data:0}),yi=xe(Yd),Jd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xd={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"},qd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qd[e])?!!t[e]:!1}function ws(){return bd}var ef=V({},nr,{key:function(e){if(e.key){var t=Jd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$r(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ws,charCode:function(e){return e.type==="keypress"?$r(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$r(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tf=xe(ef),nf=V({},ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wi=xe(nf),rf=V({},nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ws}),of=xe(rf),lf=V({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0}),sf=xe(lf),af=V({},ho,{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}),uf=xe(af),cf=[9,13,27,32],ks=Ze&&"CompositionEvent"in window,$n=null;Ze&&"documentMode"in document&&($n=document.documentMode);var df=Ze&&"TextEvent"in window&&!$n,fu=Ze&&(!ks||$n&&8<$n&&11>=$n),ki=" ",Si=!1;function pu(e,t){switch(e){case"keyup":return cf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bt=!1;function ff(e,t){switch(e){case"compositionend":return hu(t);case"keypress":return t.which!==32?null:(Si=!0,ki);case"textInput":return e=t.data,e===ki&&Si?null:e;default:return null}}function pf(e,t){if(Bt)return e==="compositionend"||!ks&&pu(e,t)?(e=du(),Nr=vs=st=null,Bt=!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 fu&&t.locale!=="ko"?null:t.data;default:return null}}var hf={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 xi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hf[e.type]:t==="textarea"}function mu(e,t,n,r){Ga(r),t=Gr(t,"onChange"),0<t.length&&(n=new ys("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _n=null,Hn=null;function mf(e){Tu(e,0)}function mo(e){var t=Wt(e);if(Aa(t))return e}function gf(e,t){if(e==="change")return t}var gu=!1;if(Ze){var Vo;if(Ze){var Wo="oninput"in document;if(!Wo){var ji=document.createElement("div");ji.setAttribute("oninput","return;"),Wo=typeof ji.oninput=="function"}Vo=Wo}else Vo=!1;gu=Vo&&(!document.documentMode||9<document.documentMode)}function Ei(){_n&&(_n.detachEvent("onpropertychange",vu),Hn=_n=null)}function vu(e){if(e.propertyName==="value"&&mo(Hn)){var t=[];mu(t,Hn,e,fs(e)),Ja(mf,t)}}function vf(e,t,n){e==="focusin"?(Ei(),_n=t,Hn=n,_n.attachEvent("onpropertychange",vu)):e==="focusout"&&Ei()}function yf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mo(Hn)}function wf(e,t){if(e==="click")return mo(t)}function kf(e,t){if(e==="input"||e==="change")return mo(t)}function Sf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Re=typeof Object.is=="function"?Object.is:Sf;function Vn(e,t){if(Re(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(!ul.call(t,o)||!Re(e[o],t[o]))return!1}return!0}function Ci(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ti(e,t){var n=Ci(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=Ci(n)}}function yu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wu(){for(var e=window,t=Ar();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ar(e.document)}return t}function Ss(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 xf(e){var t=wu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yu(n.ownerDocument.documentElement,n)){if(r!==null&&Ss(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=Ti(n,l);var s=Ti(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),l>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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 jf=Ze&&"documentMode"in document&&11>=document.documentMode,Ht=null,Nl=null,Ln=null,$l=!1;function Pi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$l||Ht==null||Ht!==Ar(r)||(r=Ht,"selectionStart"in r&&Ss(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}),Ln&&Vn(Ln,r)||(Ln=r,r=Gr(Nl,"onSelect"),0<r.length&&(t=new ys("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ht)))}function gr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vt={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionend:gr("Transition","TransitionEnd")},Qo={},ku={};Ze&&(ku=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);function go(e){if(Qo[e])return Qo[e];if(!Vt[e])return e;var t=Vt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ku)return Qo[e]=t[n];return e}var Su=go("animationend"),xu=go("animationiteration"),ju=go("animationstart"),Eu=go("transitionend"),Cu=new Map,Ni="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 yt(e,t){Cu.set(e,t),Rt(t,[e])}for(var Go=0;Go<Ni.length;Go++){var Ko=Ni[Go],Ef=Ko.toLowerCase(),Cf=Ko[0].toUpperCase()+Ko.slice(1);yt(Ef,"on"+Cf)}yt(Su,"onAnimationEnd");yt(xu,"onAnimationIteration");yt(ju,"onAnimationStart");yt("dblclick","onDoubleClick");yt("focusin","onFocus");yt("focusout","onBlur");yt(Eu,"onTransitionEnd");rn("onMouseEnter",["mouseout","mouseover"]);rn("onMouseLeave",["mouseout","mouseover"]);rn("onPointerEnter",["pointerout","pointerover"]);rn("onPointerLeave",["pointerout","pointerover"]);Rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tn="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(" "),Tf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tn));function $i(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jd(r,t,void 0,e),e.currentTarget=null}function Tu(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 s=r.length-1;0<=s;s--){var i=r[s],a=i.instance,d=i.currentTarget;if(i=i.listener,a!==l&&o.isPropagationStopped())break e;$i(o,i,d),l=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,d=i.currentTarget,i=i.listener,a!==l&&o.isPropagationStopped())break e;$i(o,i,d),l=a}}}if(Br)throw e=El,Br=!1,El=null,e}function D(e,t){var n=t[zl];n===void 0&&(n=t[zl]=new Set);var r=e+"__bubble";n.has(r)||(Pu(t,e,2,!1),n.add(r))}function Zo(e,t,n){var r=0;t&&(r|=4),Pu(n,e,r,t)}var vr="_reactListening"+Math.random().toString(36).slice(2);function Wn(e){if(!e[vr]){e[vr]=!0,za.forEach(function(n){n!=="selectionchange"&&(Tf.has(n)||Zo(n,!1,e),Zo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vr]||(t[vr]=!0,Zo("selectionchange",!1,t))}}function Pu(e,t,n,r){switch(cu(t)){case 1:var o=Ad;break;case 4:o=Ud;break;default:o=gs}n=o.bind(null,t,n,e),o=void 0,!jl||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 Yo(e,t,n,r,o){var l=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;s=s.return}for(;i!==null;){if(s=Ct(i),s===null)return;if(a=s.tag,a===5||a===6){r=l=s;continue e}i=i.parentNode}}r=r.return}Ja(function(){var d=l,g=fs(n),m=[];e:{var h=Cu.get(e);if(h!==void 0){var w=ys,y=e;switch(e){case"keypress":if($r(n)===0)break e;case"keydown":case"keyup":w=tf;break;case"focusin":y="focus",w=Ho;break;case"focusout":y="blur",w=Ho;break;case"beforeblur":case"afterblur":w=Ho;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":w=vi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=Vd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=of;break;case Su:case xu:case ju:w=Gd;break;case Eu:w=sf;break;case"scroll":w=Bd;break;case"wheel":w=uf;break;case"copy":case"cut":case"paste":w=Zd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=wi}var k=(t&4)!==0,$=!k&&e==="scroll",f=k?h!==null?h+"Capture":null:h;k=[];for(var c=d,p;c!==null;){p=c;var v=p.stateNode;if(p.tag===5&&v!==null&&(p=v,f!==null&&(v=Dn(c,f),v!=null&&k.push(Qn(c,v,p)))),$)break;c=c.return}0<k.length&&(h=new w(h,y,null,n,g),m.push({event:h,listeners:k}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",h&&n!==Sl&&(y=n.relatedTarget||n.fromElement)&&(Ct(y)||y[Ye]))break e;if((w||h)&&(h=g.window===g?g:(h=g.ownerDocument)?h.defaultView||h.parentWindow:window,w?(y=n.relatedTarget||n.toElement,w=d,y=y?Ct(y):null,y!==null&&($=Ot(y),y!==$||y.tag!==5&&y.tag!==6)&&(y=null)):(w=null,y=d),w!==y)){if(k=vi,v="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(k=wi,v="onPointerLeave",f="onPointerEnter",c="pointer"),$=w==null?h:Wt(w),p=y==null?h:Wt(y),h=new k(v,c+"leave",w,n,g),h.target=$,h.relatedTarget=p,v=null,Ct(g)===d&&(k=new k(f,c+"enter",y,n,g),k.target=p,k.relatedTarget=$,v=k),$=v,w&&y)t:{for(k=w,f=y,c=0,p=k;p;p=Dt(p))c++;for(p=0,v=f;v;v=Dt(v))p++;for(;0<c-p;)k=Dt(k),c--;for(;0<p-c;)f=Dt(f),p--;for(;c--;){if(k===f||f!==null&&k===f.alternate)break t;k=Dt(k),f=Dt(f)}k=null}else k=null;w!==null&&_i(m,h,w,k,!1),y!==null&&$!==null&&_i(m,$,y,k,!0)}}e:{if(h=d?Wt(d):window,w=h.nodeName&&h.nodeName.toLowerCase(),w==="select"||w==="input"&&h.type==="file")var j=gf;else if(xi(h))if(gu)j=kf;else{j=yf;var C=vf}else(w=h.nodeName)&&w.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(j=wf);if(j&&(j=j(e,d))){mu(m,j,n,g);break e}C&&C(e,h,d),e==="focusout"&&(C=h._wrapperState)&&C.controlled&&h.type==="number"&&gl(h,"number",h.value)}switch(C=d?Wt(d):window,e){case"focusin":(xi(C)||C.contentEditable==="true")&&(Ht=C,Nl=d,Ln=null);break;case"focusout":Ln=Nl=Ht=null;break;case"mousedown":$l=!0;break;case"contextmenu":case"mouseup":case"dragend":$l=!1,Pi(m,n,g);break;case"selectionchange":if(jf)break;case"keydown":case"keyup":Pi(m,n,g)}var E;if(ks)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 Bt?pu(e,n)&&(x="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(x="onCompositionStart");x&&(fu&&n.locale!=="ko"&&(Bt||x!=="onCompositionStart"?x==="onCompositionEnd"&&Bt&&(E=du()):(st=g,vs="value"in st?st.value:st.textContent,Bt=!0)),C=Gr(d,x),0<C.length&&(x=new yi(x,e,null,n,g),m.push({event:x,listeners:C}),E?x.data=E:(E=hu(n),E!==null&&(x.data=E)))),(E=df?ff(e,n):pf(e,n))&&(d=Gr(d,"onBeforeInput"),0<d.length&&(g=new yi("onBeforeInput","beforeinput",null,n,g),m.push({event:g,listeners:d}),g.data=E))}Tu(m,t)})}function Qn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,l=o.stateNode;o.tag===5&&l!==null&&(o=l,l=Dn(e,n),l!=null&&r.unshift(Qn(e,l,o)),l=Dn(e,t),l!=null&&r.push(Qn(e,l,o))),e=e.return}return r}function Dt(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _i(e,t,n,r,o){for(var l=t._reactName,s=[];n!==null&&n!==r;){var i=n,a=i.alternate,d=i.stateNode;if(a!==null&&a===r)break;i.tag===5&&d!==null&&(i=d,o?(a=Dn(n,l),a!=null&&s.unshift(Qn(n,a,i))):o||(a=Dn(n,l),a!=null&&s.push(Qn(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Pf=/\r\n?/g,Nf=/\u0000|\uFFFD/g;function Li(e){return(typeof e=="string"?e:""+e).replace(Pf,`
|
|
39
39
|
`).replace(Nf,"")}function yr(e,t,n){if(t=Li(t),Li(e)!==t&&n)throw Error(S(425))}function Kr(){}var _l=null,Ll=null;function Ml(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 Il=typeof setTimeout=="function"?setTimeout:void 0,$f=typeof clearTimeout=="function"?clearTimeout:void 0,Mi=typeof Promise=="function"?Promise:void 0,_f=typeof queueMicrotask=="function"?queueMicrotask:typeof Mi<"u"?function(e){return Mi.resolve(null).then(e).catch(Lf)}:Il;function Lf(e){setTimeout(function(){throw e})}function Jo(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),Bn(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Bn(t)}function dt(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 Ii(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var pn=Math.random().toString(36).slice(2),Ae="__reactFiber$"+pn,Gn="__reactProps$"+pn,Ye="__reactContainer$"+pn,zl="__reactEvents$"+pn,Mf="__reactListeners$"+pn,If="__reactHandles$"+pn;function Ct(e){var t=e[Ae];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ye]||n[Ae]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ii(e);e!==null;){if(n=e[Ae])return n;e=Ii(e)}return t}e=n,n=e.parentNode}return null}function rr(e){return e=e[Ae]||e[Ye],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Wt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(S(33))}function vo(e){return e[Gn]||null}var Rl=[],Qt=-1;function wt(e){return{current:e}}function A(e){0>Qt||(e.current=Rl[Qt],Rl[Qt]=null,Qt--)}function O(e,t){Qt++,Rl[Qt]=e.current,e.current=t}var vt={},se=wt(vt),pe=wt(!1),_t=vt;function on(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 he(e){return e=e.childContextTypes,e!=null}function Zr(){A(pe),A(se)}function zi(e,t,n){if(se.current!==vt)throw Error(S(168));O(se,t),O(pe,n)}function Nu(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(S(108,gd(e)||"Unknown",o));return V({},n,r)}function Yr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vt,_t=se.current,O(se,e),O(pe,pe.current),!0}function Ri(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Nu(e,t,_t),r.__reactInternalMemoizedMergedChildContext=e,A(pe),A(se),O(se,e)):A(pe),O(pe,n)}var We=null,yo=!1,Xo=!1;function $u(e){We===null?We=[e]:We.push(e)}function zf(e){yo=!0,$u(e)}function kt(){if(!Xo&&We!==null){Xo=!0;var e=0,t=R;try{var n=We;for(R=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}We=null,yo=!1}catch(o){throw We!==null&&(We=We.slice(e+1)),eu(ps,kt),o}finally{R=t,Xo=!1}}return null}var Gt=[],Kt=0,Jr=null,Xr=0,je=[],Ee=0,Lt=null,Qe=1,Ge="";function jt(e,t){Gt[Kt++]=Xr,Gt[Kt++]=Jr,Jr=e,Xr=t}function _u(e,t,n){je[Ee++]=Qe,je[Ee++]=Ge,je[Ee++]=Lt,Lt=e;var r=Qe;e=Ge;var o=32-Ie(r)-1;r&=~(1<<o),n+=1;var l=32-Ie(t)+o;if(30<l){var s=o-o%5;l=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Qe=1<<32-Ie(t)+o|n<<o|r,Ge=l+e}else Qe=1<<l|n<<o|r,Ge=e}function xs(e){e.return!==null&&(jt(e,1),_u(e,1,0))}function js(e){for(;e===Jr;)Jr=Gt[--Kt],Gt[Kt]=null,Xr=Gt[--Kt],Gt[Kt]=null;for(;e===Lt;)Lt=je[--Ee],je[Ee]=null,Ge=je[--Ee],je[Ee]=null,Qe=je[--Ee],je[Ee]=null}var we=null,ye=null,U=!1,Me=null;function Lu(e,t){var n=Ce(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 Oi(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,we=e,ye=dt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,we=e,ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Lt!==null?{id:Qe,overflow:Ge}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ce(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,we=e,ye=null,!0):!1;default:return!1}}function Ol(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Fl(e){if(U){var t=ye;if(t){var n=t;if(!Oi(e,t)){if(Ol(e))throw Error(S(418));t=dt(n.nextSibling);var r=we;t&&Oi(e,t)?Lu(r,n):(e.flags=e.flags&-4097|2,U=!1,we=e)}}else{if(Ol(e))throw Error(S(418));e.flags=e.flags&-4097|2,U=!1,we=e}}}function Fi(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;we=e}function wr(e){if(e!==we)return!1;if(!U)return Fi(e),U=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ml(e.type,e.memoizedProps)),t&&(t=ye)){if(Ol(e))throw Mu(),Error(S(418));for(;t;)Lu(e,t),t=dt(t.nextSibling)}if(Fi(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ye=dt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ye=null}}else ye=we?dt(e.stateNode.nextSibling):null;return!0}function Mu(){for(var e=ye;e;)e=dt(e.nextSibling)}function ln(){ye=we=null,U=!1}function Es(e){Me===null?Me=[e]:Me.push(e)}var Rf=qe.ReactCurrentBatchConfig;function kn(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(S(309));var r=n.stateNode}if(!r)throw Error(S(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(s){var i=o.refs;s===null?delete i[l]:i[l]=s},t._stringRef=l,t)}if(typeof e!="string")throw Error(S(284));if(!n._owner)throw Error(S(290,e))}return e}function kr(e,t){throw e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Di(e){var t=e._init;return t(e._payload)}function Iu(e){function t(f,c){if(e){var p=f.deletions;p===null?(f.deletions=[c],f.flags|=16):p.push(c)}}function n(f,c){if(!e)return null;for(;c!==null;)t(f,c),c=c.sibling;return null}function r(f,c){for(f=new Map;c!==null;)c.key!==null?f.set(c.key,c):f.set(c.index,c),c=c.sibling;return f}function o(f,c){return f=mt(f,c),f.index=0,f.sibling=null,f}function l(f,c,p){return f.index=p,e?(p=f.alternate,p!==null?(p=p.index,p<c?(f.flags|=2,c):p):(f.flags|=2,c)):(f.flags|=1048576,c)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function i(f,c,p,v){return c===null||c.tag!==6?(c=ol(p,f.mode,v),c.return=f,c):(c=o(c,p),c.return=f,c)}function a(f,c,p,v){var j=p.type;return j===Ut?g(f,c,p.props.children,v,p.key):c!==null&&(c.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===nt&&Di(j)===c.type)?(v=o(c,p.props),v.ref=kn(f,c,p),v.return=f,v):(v=Or(p.type,p.key,p.props,null,f.mode,v),v.ref=kn(f,c,p),v.return=f,v)}function d(f,c,p,v){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=ll(p,f.mode,v),c.return=f,c):(c=o(c,p.children||[]),c.return=f,c)}function g(f,c,p,v,j){return c===null||c.tag!==7?(c=$t(p,f.mode,v,j),c.return=f,c):(c=o(c,p),c.return=f,c)}function m(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=ol(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case ur:return p=Or(c.type,c.key,c.props,null,f.mode,p),p.ref=kn(f,null,c),p.return=f,p;case At:return c=ll(c,f.mode,p),c.return=f,c;case nt:var v=c._init;return m(f,v(c._payload),p)}if(En(c)||mn(c))return c=$t(c,f.mode,p,null),c.return=f,c;kr(f,c)}return null}function h(f,c,p,v){var j=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return j!==null?null:i(f,c,""+p,v);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ur:return p.key===j?a(f,c,p,v):null;case At:return p.key===j?d(f,c,p,v):null;case nt:return j=p._init,h(f,c,j(p._payload),v)}if(En(p)||mn(p))return j!==null?null:g(f,c,p,v,null);kr(f,p)}return null}function w(f,c,p,v,j){if(typeof v=="string"&&v!==""||typeof v=="number")return f=f.get(p)||null,i(c,f,""+v,j);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ur:return f=f.get(v.key===null?p:v.key)||null,a(c,f,v,j);case At:return f=f.get(v.key===null?p:v.key)||null,d(c,f,v,j);case nt:var C=v._init;return w(f,c,p,C(v._payload),j)}if(En(v)||mn(v))return f=f.get(p)||null,g(c,f,v,j,null);kr(c,v)}return null}function y(f,c,p,v){for(var j=null,C=null,E=c,x=c=0,F=null;E!==null&&x<p.length;x++){E.index>x?(F=E,E=null):F=E.sibling;var _=h(f,E,p[x],v);if(_===null){E===null&&(E=F);break}e&&E&&_.alternate===null&&t(f,E),c=l(_,c,x),C===null?j=_:C.sibling=_,C=_,E=F}if(x===p.length)return n(f,E),U&&jt(f,x),j;if(E===null){for(;x<p.length;x++)E=m(f,p[x],v),E!==null&&(c=l(E,c,x),C===null?j=E:C.sibling=E,C=E);return U&&jt(f,x),j}for(E=r(f,E);x<p.length;x++)F=w(E,f,x,p[x],v),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?x:F.key),c=l(F,c,x),C===null?j=F:C.sibling=F,C=F);return e&&E.forEach(function(ge){return t(f,ge)}),U&&jt(f,x),j}function k(f,c,p,v){var j=mn(p);if(typeof j!="function")throw Error(S(150));if(p=j.call(p),p==null)throw Error(S(151));for(var C=j=null,E=c,x=c=0,F=null,_=p.next();E!==null&&!_.done;x++,_=p.next()){E.index>x?(F=E,E=null):F=E.sibling;var ge=h(f,E,_.value,v);if(ge===null){E===null&&(E=F);break}e&&E&&ge.alternate===null&&t(f,E),c=l(ge,c,x),C===null?j=ge:C.sibling=ge,C=ge,E=F}if(_.done)return n(f,E),U&&jt(f,x),j;if(E===null){for(;!_.done;x++,_=p.next())_=m(f,_.value,v),_!==null&&(c=l(_,c,x),C===null?j=_:C.sibling=_,C=_);return U&&jt(f,x),j}for(E=r(f,E);!_.done;x++,_=p.next())_=w(E,f,x,_.value,v),_!==null&&(e&&_.alternate!==null&&E.delete(_.key===null?x:_.key),c=l(_,c,x),C===null?j=_:C.sibling=_,C=_);return e&&E.forEach(function(Oe){return t(f,Oe)}),U&&jt(f,x),j}function $(f,c,p,v){if(typeof p=="object"&&p!==null&&p.type===Ut&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ur:e:{for(var j=p.key,C=c;C!==null;){if(C.key===j){if(j=p.type,j===Ut){if(C.tag===7){n(f,C.sibling),c=o(C,p.props.children),c.return=f,f=c;break e}}else if(C.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===nt&&Di(j)===C.type){n(f,C.sibling),c=o(C,p.props),c.ref=kn(f,C,p),c.return=f,f=c;break e}n(f,C);break}else t(f,C);C=C.sibling}p.type===Ut?(c=$t(p.props.children,f.mode,v,p.key),c.return=f,f=c):(v=Or(p.type,p.key,p.props,null,f.mode,v),v.ref=kn(f,c,p),v.return=f,f=v)}return s(f);case At:e:{for(C=p.key;c!==null;){if(c.key===C)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=o(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=ll(p,f.mode,v),c.return=f,f=c}return s(f);case nt:return C=p._init,$(f,c,C(p._payload),v)}if(En(p))return y(f,c,p,v);if(mn(p))return k(f,c,p,v);kr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=o(c,p),c.return=f,f=c):(n(f,c),c=ol(p,f.mode,v),c.return=f,f=c),s(f)):n(f,c)}return $}var sn=Iu(!0),zu=Iu(!1),qr=wt(null),br=null,Zt=null,Cs=null;function Ts(){Cs=Zt=br=null}function Ps(e){var t=qr.current;A(qr),e._currentValue=t}function Dl(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 tn(e,t){br=e,Cs=Zt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(fe=!0),e.firstContext=null)}function Pe(e){var t=e._currentValue;if(Cs!==e)if(e={context:e,memoizedValue:t,next:null},Zt===null){if(br===null)throw Error(S(308));Zt=e,br.dependencies={lanes:0,firstContext:e}}else Zt=Zt.next=e;return t}var Tt=null;function Ns(e){Tt===null?Tt=[e]:Tt.push(e)}function Ru(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ns(t)):(n.next=o.next,o.next=n),t.interleaved=n,Je(e,r)}function Je(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 rt=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ou(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 Ke(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ft(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Je(e,n)}return o=r.interleaved,o===null?(t.next=t,Ns(r)):(t.next=o.next,o.next=t),r.interleaved=t,Je(e,n)}function _r(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,hs(e,n)}}function Ai(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 s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?o=l=s:l=l.next=s,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 eo(e,t,n,r){var o=e.updateQueue;rt=!1;var l=o.firstBaseUpdate,s=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var a=i,d=a.next;a.next=null,s===null?l=d:s.next=d,s=a;var g=e.alternate;g!==null&&(g=g.updateQueue,i=g.lastBaseUpdate,i!==s&&(i===null?g.firstBaseUpdate=d:i.next=d,g.lastBaseUpdate=a))}if(l!==null){var m=o.baseState;s=0,g=d=a=null,i=l;do{var h=i.lane,w=i.eventTime;if((r&h)===h){g!==null&&(g=g.next={eventTime:w,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var y=e,k=i;switch(h=t,w=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){m=y.call(w,m,h);break e}m=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,h=typeof y=="function"?y.call(w,m,h):y,h==null)break e;m=V({},m,h);break e;case 2:rt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[i]:h.push(i))}else w={eventTime:w,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},g===null?(d=g=w,a=m):g=g.next=w,s|=h;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;h=i,i=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(g===null&&(a=m),o.baseState=a,o.firstBaseUpdate=d,o.lastBaseUpdate=g,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else l===null&&(o.shared.lanes=0);It|=s,e.lanes=s,e.memoizedState=m}}function Ui(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(S(191,o));o.call(r)}}}var or={},Be=wt(or),Kn=wt(or),Zn=wt(or);function Pt(e){if(e===or)throw Error(S(174));return e}function _s(e,t){switch(O(Zn,t),O(Kn,e),O(Be,or),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yl(t,e)}A(Be),O(Be,t)}function an(){A(Be),A(Kn),A(Zn)}function Fu(e){Pt(Zn.current);var t=Pt(Be.current),n=yl(t,e.type);t!==n&&(O(Kn,e),O(Be,n))}function Ls(e){Kn.current===e&&(A(Be),A(Kn))}var B=wt(0);function to(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)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 qo=[];function Ms(){for(var e=0;e<qo.length;e++)qo[e]._workInProgressVersionPrimary=null;qo.length=0}var Lr=qe.ReactCurrentDispatcher,bo=qe.ReactCurrentBatchConfig,Mt=0,H=null,Z=null,X=null,no=!1,Mn=!1,Yn=0,Of=0;function re(){throw Error(S(321))}function Is(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Re(e[n],t[n]))return!1;return!0}function zs(e,t,n,r,o,l){if(Mt=l,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Lr.current=e===null||e.memoizedState===null?Uf:Bf,e=n(r,o),Mn){l=0;do{if(Mn=!1,Yn=0,25<=l)throw Error(S(301));l+=1,X=Z=null,t.updateQueue=null,Lr.current=Hf,e=n(r,o)}while(Mn)}if(Lr.current=ro,t=Z!==null&&Z.next!==null,Mt=0,X=Z=H=null,no=!1,t)throw Error(S(300));return e}function Rs(){var e=Yn!==0;return Yn=0,e}function De(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return X===null?H.memoizedState=X=e:X=X.next=e,X}function Ne(){if(Z===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=X===null?H.memoizedState:X.next;if(t!==null)X=t,Z=e;else{if(e===null)throw Error(S(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},X===null?H.memoizedState=X=e:X=X.next=e}return X}function Jn(e,t){return typeof t=="function"?t(e):t}function el(e){var t=Ne(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=Z,o=r.baseQueue,l=n.pending;if(l!==null){if(o!==null){var s=o.next;o.next=l.next,l.next=s}r.baseQueue=o=l,n.pending=null}if(o!==null){l=o.next,r=r.baseState;var i=s=null,a=null,d=l;do{var g=d.lane;if((Mt&g)===g)a!==null&&(a=a.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var m={lane:g,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};a===null?(i=a=m,s=r):a=a.next=m,H.lanes|=g,It|=g}d=d.next}while(d!==null&&d!==l);a===null?s=r:a.next=i,Re(r,t.memoizedState)||(fe=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do l=o.lane,H.lanes|=l,It|=l,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function tl(e){var t=Ne(),n=t.queue;if(n===null)throw Error(S(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,l=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do l=e(l,s.action),s=s.next;while(s!==o);Re(l,t.memoizedState)||(fe=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function Du(){}function Au(e,t){var n=H,r=Ne(),o=t(),l=!Re(r.memoizedState,o);if(l&&(r.memoizedState=o,fe=!0),r=r.queue,Os(Hu.bind(null,n,r,e),[e]),r.getSnapshot!==t||l||X!==null&&X.memoizedState.tag&1){if(n.flags|=2048,Xn(9,Bu.bind(null,n,r,o,t),void 0,null),q===null)throw Error(S(349));Mt&30||Uu(n,t,o)}return o}function Uu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Bu(e,t,n,r){t.value=n,t.getSnapshot=r,Vu(t)&&Wu(e)}function Hu(e,t,n){return n(function(){Vu(t)&&Wu(e)})}function Vu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Re(e,n)}catch{return!0}}function Wu(e){var t=Je(e,1);t!==null&&ze(t,e,1,-1)}function Bi(e){var t=De();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t.queue=e,e=e.dispatch=Af.bind(null,H,e),[t.memoizedState,e]}function Xn(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=H.updateQueue,t===null?(t={lastEffect:null,stores:null},H.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 Qu(){return Ne().memoizedState}function Mr(e,t,n,r){var o=De();H.flags|=e,o.memoizedState=Xn(1|t,n,void 0,r===void 0?null:r)}function wo(e,t,n,r){var o=Ne();r=r===void 0?null:r;var l=void 0;if(Z!==null){var s=Z.memoizedState;if(l=s.destroy,r!==null&&Is(r,s.deps)){o.memoizedState=Xn(t,n,l,r);return}}H.flags|=e,o.memoizedState=Xn(1|t,n,l,r)}function Hi(e,t){return Mr(8390656,8,e,t)}function Os(e,t){return wo(2048,8,e,t)}function Gu(e,t){return wo(4,2,e,t)}function Ku(e,t){return wo(4,4,e,t)}function Zu(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 Yu(e,t,n){return n=n!=null?n.concat([e]):null,wo(4,4,Zu.bind(null,t,e),n)}function Fs(){}function Ju(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Is(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xu(e,t){var n=Ne();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Is(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function qu(e,t,n){return Mt&21?(Re(n,t)||(n=ru(),H.lanes|=n,It|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,fe=!0),e.memoizedState=n)}function Ff(e,t){var n=R;R=n!==0&&4>n?n:4,e(!0);var r=bo.transition;bo.transition={};try{e(!1),t()}finally{R=n,bo.transition=r}}function bu(){return Ne().memoizedState}function Df(e,t,n){var r=ht(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ec(e))tc(t,n);else if(n=Ru(e,t,n,r),n!==null){var o=ae();ze(n,e,r,o),nc(n,t,r)}}function Af(e,t,n){var r=ht(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ec(e))tc(t,o);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,i=l(s,n);if(o.hasEagerState=!0,o.eagerState=i,Re(i,s)){var a=t.interleaved;a===null?(o.next=o,Ns(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Ru(e,t,o,r),n!==null&&(o=ae(),ze(n,e,r,o),nc(n,t,r))}}function ec(e){var t=e.alternate;return e===H||t!==null&&t===H}function tc(e,t){Mn=no=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hs(e,n)}}var ro={readContext:Pe,useCallback:re,useContext:re,useEffect:re,useImperativeHandle:re,useInsertionEffect:re,useLayoutEffect:re,useMemo:re,useReducer:re,useRef:re,useState:re,useDebugValue:re,useDeferredValue:re,useTransition:re,useMutableSource:re,useSyncExternalStore:re,useId:re,unstable_isNewReconciler:!1},Uf={readContext:Pe,useCallback:function(e,t){return De().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:Hi,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mr(4194308,4,Zu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=De();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=De();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=Df.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=De();return e={current:e},t.memoizedState=e},useState:Bi,useDebugValue:Fs,useDeferredValue:function(e){return De().memoizedState=e},useTransition:function(){var e=Bi(!1),t=e[0];return e=Ff.bind(null,e[1]),De().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,o=De();if(U){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),q===null)throw Error(S(349));Mt&30||Uu(r,t,n)}o.memoizedState=n;var l={value:n,getSnapshot:t};return o.queue=l,Hi(Hu.bind(null,r,l,e),[e]),r.flags|=2048,Xn(9,Bu.bind(null,r,l,n,t),void 0,null),n},useId:function(){var e=De(),t=q.identifierPrefix;if(U){var n=Ge,r=Qe;n=(r&~(1<<32-Ie(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Of++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Bf={readContext:Pe,useCallback:Ju,useContext:Pe,useEffect:Os,useImperativeHandle:Yu,useInsertionEffect:Gu,useLayoutEffect:Ku,useMemo:Xu,useReducer:el,useRef:Qu,useState:function(){return el(Jn)},useDebugValue:Fs,useDeferredValue:function(e){var t=Ne();return qu(t,Z.memoizedState,e)},useTransition:function(){var e=el(Jn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:Du,useSyncExternalStore:Au,useId:bu,unstable_isNewReconciler:!1},Hf={readContext:Pe,useCallback:Ju,useContext:Pe,useEffect:Os,useImperativeHandle:Yu,useInsertionEffect:Gu,useLayoutEffect:Ku,useMemo:Xu,useReducer:tl,useRef:Qu,useState:function(){return tl(Jn)},useDebugValue:Fs,useDeferredValue:function(e){var t=Ne();return Z===null?t.memoizedState=e:qu(t,Z.memoizedState,e)},useTransition:function(){var e=tl(Jn)[0],t=Ne().memoizedState;return[e,t]},useMutableSource:Du,useSyncExternalStore:Au,useId:bu,unstable_isNewReconciler:!1};function _e(e,t){if(e&&e.defaultProps){t=V({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Al(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:V({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ko={isMounted:function(e){return(e=e._reactInternals)?Ot(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ae(),o=ht(e),l=Ke(r,o);l.payload=t,n!=null&&(l.callback=n),t=ft(e,l,o),t!==null&&(ze(t,e,o,r),_r(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ae(),o=ht(e),l=Ke(r,o);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=ft(e,l,o),t!==null&&(ze(t,e,o,r),_r(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ae(),r=ht(e),o=Ke(n,r);o.tag=2,t!=null&&(o.callback=t),t=ft(e,o,r),t!==null&&(ze(t,e,r,n),_r(t,e,r))}};function Vi(e,t,n,r,o,l,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,s):t.prototype&&t.prototype.isPureReactComponent?!Vn(n,r)||!Vn(o,l):!0}function rc(e,t,n){var r=!1,o=vt,l=t.contextType;return typeof l=="object"&&l!==null?l=Pe(l):(o=he(t)?_t:se.current,r=t.contextTypes,l=(r=r!=null)?on(e,o):vt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ko,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=l),t}function Wi(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&&ko.enqueueReplaceState(t,t.state,null)}function Ul(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$s(e);var l=t.contextType;typeof l=="object"&&l!==null?o.context=Pe(l):(l=he(t)?_t:se.current,o.context=on(e,l)),o.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Al(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&&ko.enqueueReplaceState(o,o.state,null),eo(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function un(e,t){try{var n="",r=t;do n+=md(r),r=r.return;while(r);var o=n}catch(l){o=`
|
|
40
40
|
Error generating stack: `+l.message+`
|
|
41
|
-
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vf=typeof WeakMap=="function"?WeakMap:Map;function oc(e,t,n){n=Ke(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lo||(lo=!0,Xl=r),Bl(e,t)},n}function lc(e,t,n){n=Ke(-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(){Bl(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Bl(e,t),typeof r!="function"&&(pt===null?pt=new Set([this]):pt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Qi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vf;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=rp.bind(null,e,t,n),t.then(e,e))}function Gi(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 Ki(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ke(-1,1),t.tag=2,ft(n,t,1))),n.lanes|=1),e)}var Wf=qe.ReactCurrentOwner,fe=!1;function ie(e,t,n,r){t.child=e===null?zu(t,null,n,r):sn(t,e.child,n,r)}function Zi(e,t,n,r,o){n=n.render;var l=t.ref;return tn(t,o),r=zs(e,t,n,r,l,o),n=Rs(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xe(e,t,o)):(U&&n&&xs(t),t.flags|=1,ie(e,t,r,o),t.child)}function Yi(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Qs(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,sc(e,t,l,r,o)):(e=Or(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)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:Vn,n(s,r)&&e.ref===t.ref)return Xe(e,t,o)}return t.flags|=1,e=mt(l,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(Vn(l,r)&&e.ref===t.ref)if(fe=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(fe=!0);else return t.lanes=e.lanes,Xe(e,t,o)}return Hl(e,t,n,r,o)}function ic(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},O(Jt,ve),ve|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,O(Jt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,O(Jt,ve),ve|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,O(Jt,ve),ve|=r;return ie(e,t,o,n),t.child}function ac(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hl(e,t,n,r,o){var l=he(n)?_t:se.current;return l=on(t,l),tn(t,o),n=zs(e,t,n,r,l,o),r=Rs(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xe(e,t,o)):(U&&r&&xs(t),t.flags|=1,ie(e,t,n,o),t.child)}function Ji(e,t,n,r,o){if(he(n)){var l=!0;Yr(t)}else l=!1;if(tn(t,o),t.stateNode===null)Ir(e,t),rc(t,n,r),Ul(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=Pe(d):(d=he(n)?_t:se.current,d=on(t,d));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==d)&&Wi(t,s,r,d),rt=!1;var h=t.memoizedState;s.state=h,eo(t,r,s,o),a=t.memoizedState,i!==r||h!==a||pe.current||rt?(typeof g=="function"&&(Al(t,n,g,r),a=t.memoizedState),(i=rt||Vi(t,n,i,r,h,a,d))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=d,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ou(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:_e(t.type,i),s.props=d,m=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Pe(a):(a=he(n)?_t:se.current,a=on(t,a));var w=n.getDerivedStateFromProps;(g=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==m||h!==a)&&Wi(t,s,r,a),rt=!1,h=t.memoizedState,s.state=h,eo(t,r,s,o);var y=t.memoizedState;i!==m||h!==y||pe.current||rt?(typeof w=="function"&&(Al(t,n,w,r),y=t.memoizedState),(d=rt||Vi(t,n,d,r,h,y,a)||!1)?(g||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=d):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vl(e,t,n,r,l,o)}function Vl(e,t,n,r,o,l){ac(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Ri(t,n,!1),Xe(e,t,l);r=t.stateNode,Wf.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=sn(t,e.child,null,l),t.child=sn(t,null,i,l)):ie(e,t,i,l),t.memoizedState=r.state,o&&Ri(t,n,!0),t.child}function uc(e){var t=e.stateNode;t.pendingContext?zi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zi(e,t.context,!1),_s(e,t.containerInfo)}function Xi(e,t,n,r,o){return ln(),Es(o),t.flags|=256,ie(e,t,n,r),t.child}var Wl={dehydrated:null,treeContext:null,retryLane:0};function Ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function cc(e,t,n){var r=t.pendingProps,o=B.current,l=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),O(B,o&1),e===null)return Fl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=jo(s,r,0,null),e=$t(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ql(n),t.memoizedState=Wl,e):Ds(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return Qf(e,t,s,r,i,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,i=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=mt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?l=mt(i,l):(l=$t(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?Ql(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Wl,r}return l=e.child,e=l.sibling,r=mt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(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 Ds(e,t){return t=jo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sr(e,t,n,r){return r!==null&&Es(r),sn(t,e.child,null,n),e=Ds(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qf(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=nl(Error(S(422))),Sr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=jo({mode:"visible",children:r.children},o,0,null),l=$t(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&sn(t,e.child,null,s),t.child.memoizedState=Ql(s),t.memoizedState=Wl,l);if(!(t.mode&1))return Sr(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,l=Error(S(419)),r=nl(l,r,void 0),Sr(e,t,s,r)}if(i=(s&e.childLanes)!==0,fe||i){if(r=q,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Je(e,o),ze(r,e,o,-1))}return Ws(),r=nl(Error(S(421))),Sr(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=op.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,ye=dt(o.nextSibling),we=t,U=!0,Me=null,e!==null&&(je[Ee++]=Qe,je[Ee++]=Ge,je[Ee++]=Lt,Qe=e.id,Ge=e.overflow,Lt=t),t=Ds(t,r.children),t.flags|=4096,t)}function qi(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dl(e.return,t,n)}function rl(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 dc(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(ie(e,t,r.children,n),r=B.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qi(e,n,t);else if(e.tag===19)qi(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(O(B,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rl(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&&to(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rl(t,!0,n,null,l);break;case"together":rl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ir(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xe(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),It|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=mt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gf(e,t,n){switch(t.tag){case 3:uc(t),ln();break;case 5:Fu(t);break;case 1:he(t.type)&&Yr(t);break;case 4:_s(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;O(qr,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(O(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?cc(e,t,n):(O(B,B.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);O(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),O(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,ic(e,t,n)}return Xe(e,t,n)}var fc,Gl,pc,hc;fc=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}};Gl=function(){};pc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Pt(Be.current);var l=null;switch(n){case"input":o=hl(e,o),r=hl(e,r),l=[];break;case"select":o=V({},o,{value:void 0}),r=V({},r,{value:void 0}),l=[];break;case"textarea":o=vl(e,o),r=vl(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}wl(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var i=o[d];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(On.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var a=r[d];if(i=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&a!==i&&(a!=null||i!=null))if(d==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(l=l||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(On.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&D("scroll",e),l||i===a||(l=[])):(l=l||[]).push(d,a))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}};hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!U)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 oe(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 Kf(e,t,n){var r=t.pendingProps;switch(js(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return he(t.type)&&Zr(),oe(t),null;case 3:return r=t.stateNode,an(),A(pe),A(se),Ms(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Me!==null&&(es(Me),Me=null))),Gl(e,t),oe(t),null;case 5:Ls(t);var o=Pt(Zn.current);if(n=t.type,e!==null&&t.stateNode!=null)pc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return oe(t),null}if(e=Pt(Be.current),wr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ae]=t,r[Gn]=l,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(o=0;o<Tn.length;o++)D(Tn[o],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":ii(r,l),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},D("invalid",r);break;case"textarea":ui(r,l),D("invalid",r)}wl(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var i=l[s];s==="children"?typeof i=="string"?r.textContent!==i&&(l.suppressHydrationWarning!==!0&&yr(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(l.suppressHydrationWarning!==!0&&yr(r.textContent,i,e),o=["children",""+i]):On.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&D("scroll",r)}switch(n){case"input":cr(r),ai(r,l,!0);break;case"textarea":cr(r),ci(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Kr)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ha(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ae]=t,e[Gn]=r,fc(e,t,!1,!1),t.stateNode=e;e:{switch(s=kl(n,r),n){case"dialog":D("cancel",e),D("close",e),o=r;break;case"iframe":case"object":case"embed":D("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tn.length;o++)D(Tn[o],e);o=r;break;case"source":D("error",e),o=r;break;case"img":case"image":case"link":D("error",e),D("load",e),o=r;break;case"details":D("toggle",e),o=r;break;case"input":ii(e,r),o=hl(e,r),D("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=V({},r,{value:void 0}),D("invalid",e);break;case"textarea":ui(e,r),o=vl(e,r),D("invalid",e);break;default:o=r}wl(n,o),i=o;for(l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="style"?Qa(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Va(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fn(e,a):typeof a=="number"&&Fn(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(On.hasOwnProperty(l)?a!=null&&l==="onScroll"&&D("scroll",e):a!=null&&as(e,l,a,s))}switch(n){case"input":cr(e),ai(e,r,!1);break;case"textarea":cr(e),ci(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Xt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Xt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Kr)}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 oe(t),null;case 6:if(e&&t.stateNode!=null)hc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Pt(Zn.current),Pt(Be.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(l=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:yr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return oe(t),null;case 13:if(A(B),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&ye!==null&&t.mode&1&&!(t.flags&128))Mu(),ln(),t.flags|=98560,l=!1;else if(l=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(S(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(S(317));l[Ae]=t}else ln(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),l=!1}else Me!==null&&(es(Me),Me=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||B.current&1?Y===0&&(Y=3):Ws())),t.updateQueue!==null&&(t.flags|=4),oe(t),null);case 4:return an(),Gl(e,t),e===null&&Wn(t.stateNode.containerInfo),oe(t),null;case 10:return Ps(t.type._context),oe(t),null;case 17:return he(t.type)&&Zr(),oe(t),null;case 19:if(A(B),l=t.memoizedState,l===null)return oe(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Sn(l,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=to(e),s!==null){for(t.flags|=128,Sn(l,!1),r=s.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,s=l.alternate,s===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=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return O(B,B.current&1|2),t.child}e=e.sibling}l.tail!==null&&G()>cn&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304)}else{if(!r)if(e=to(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!U)return oe(t),null}else 2*G()-l.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=G(),t.sibling=null,n=B.current,O(B,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Zf(e,t){switch(js(t),t.tag){case 1:return he(t.type)&&Zr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),A(pe),A(se),Ms(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ls(t),null;case 13:if(A(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(B),null;case 4:return an(),null;case 10:return Ps(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var xr=!1,le=!1,Yf=typeof WeakSet=="function"?WeakSet:Set,T=null;function Yt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function Kl(e,t,n){try{n()}catch(r){W(e,t,r)}}var bi=!1;function Jf(e,t){if(_l=Wr,e=wu(),Ss(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 s=0,i=-1,a=-1,d=0,g=0,m=e,h=null;t:for(;;){for(var w;m!==n||o!==0&&m.nodeType!==3||(i=s+o),m!==l||r!==0&&m.nodeType!==3||(a=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++d===o&&(i=s),h===l&&++g===r&&(a=s),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ll={focusedElem:e,selectionRange:n},Wr=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,$=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:_e(t.type,k),$);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(v){W(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return y=bi,bi=!1,y}function In(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&&Kl(t,n,l)}o=o.next}while(o!==r)}}function So(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 Zl(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 mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Gn],delete t[zl],delete t[Mf],delete t[If])),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 gc(e){return e.tag===5||e.tag===3||e.tag===4}function ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gc(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 Yl(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=Kr));else if(r!==4&&(e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}function Jl(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(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}var b=null,Le=!1;function et(e,t,n){for(n=n.child;n!==null;)vc(e,t,n),n=n.sibling}function vc(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(po,n)}catch{}switch(n.tag){case 5:le||Yt(n,t);case 6:var r=b,o=Le;b=null,et(e,t,n),b=r,Le=o,b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?Jo(e.parentNode,n):e.nodeType===1&&Jo(e,n),Bn(e)):Jo(b,n.stateNode));break;case 4:r=b,o=Le,b=n.stateNode.containerInfo,Le=!0,et(e,t,n),b=r,Le=o;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Kl(n,t,s),o=o.next}while(o!==r)}et(e,t,n);break;case 1:if(!le&&(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){W(n,t,i)}et(e,t,n);break;case 21:et(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,et(e,t,n),le=r):et(e,t,n);break;default:et(e,t,n)}}function ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yf),t.forEach(function(r){var o=lp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $e(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,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:b=i.stateNode,Le=!1;break e;case 3:b=i.stateNode.containerInfo,Le=!0;break e;case 4:b=i.stateNode.containerInfo,Le=!0;break e}i=i.return}if(b===null)throw Error(S(160));vc(l,s,o),b=null,Le=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(d){W(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($e(t,e),Fe(e),r&4){try{In(3,e,e.return),So(3,e)}catch(k){W(e,e.return,k)}try{In(5,e,e.return)}catch(k){W(e,e.return,k)}}break;case 1:$e(t,e),Fe(e),r&512&&n!==null&&Yt(n,n.return);break;case 5:if($e(t,e),Fe(e),r&512&&n!==null&&Yt(n,n.return),e.flags&32){var o=e.stateNode;try{Fn(o,"")}catch(k){W(e,e.return,k)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&l.type==="radio"&&l.name!=null&&Ua(o,l),kl(i,s);var d=kl(i,l);for(s=0;s<a.length;s+=2){var g=a[s],m=a[s+1];g==="style"?Qa(o,m):g==="dangerouslySetInnerHTML"?Va(o,m):g==="children"?Fn(o,m):as(o,g,m,d)}switch(i){case"input":ml(o,l);break;case"textarea":Ba(o,l);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var w=l.value;w!=null?Xt(o,!!l.multiple,w,!1):h!==!!l.multiple&&(l.defaultValue!=null?Xt(o,!!l.multiple,l.defaultValue,!0):Xt(o,!!l.multiple,l.multiple?[]:"",!1))}o[Gn]=l}catch(k){W(e,e.return,k)}}break;case 6:if($e(t,e),Fe(e),r&4){if(e.stateNode===null)throw Error(S(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(k){W(e,e.return,k)}}break;case 3:if($e(t,e),Fe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(k){W(e,e.return,k)}break;case 4:$e(t,e),Fe(e);break;case 13:$e(t,e),Fe(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Bs=G())),r&4&&ta(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(le=(d=le)||g,$e(t,e),le=d):$e(t,e),Fe(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!g&&e.mode&1)for(T=e,g=e.child;g!==null;){for(m=T=g;T!==null;){switch(h=T,w=h.child,h.tag){case 0:case 11:case 14:case 15:In(4,h,h.return);break;case 1:Yt(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(k){W(r,n,k)}}break;case 5:Yt(h,h.return);break;case 22:if(h.memoizedState!==null){ra(m);continue}}w!==null?(w.return=h,T=w):ra(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{o=m.stateNode,d?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(i=m.stateNode,a=m.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Wa("display",s))}catch(k){W(e,e.return,k)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(k){W(e,e.return,k)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:$e(t,e),Fe(e),r&4&&ta(e);break;case 21:break;default:$e(t,e),Fe(e)}}function Fe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gc(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Fn(o,""),r.flags&=-33);var l=ea(e);Jl(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=ea(e);Yl(e,i,s);break;default:throw Error(S(161))}}catch(a){W(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xf(e,t,n){T=e,wc(e)}function wc(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var o=T,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||xr;if(!s){var i=o.alternate,a=i!==null&&i.memoizedState!==null||le;i=xr;var d=le;if(xr=s,(le=a)&&!d)for(T=o;T!==null;)s=T,a=s.child,s.tag===22&&s.memoizedState!==null?oa(o):a!==null?(a.return=s,T=a):oa(o);for(;l!==null;)T=l,wc(l),l=l.sibling;T=o,xr=i,le=d}na(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,T=l):na(e)}}function na(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||So(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:_e(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ui(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ui(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var g=d.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Bn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}le||t.flags&512&&Zl(t)}catch(h){W(t,t.return,h)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function ra(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function oa(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{So(4,t)}catch(a){W(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){W(t,o,a)}}var l=t.return;try{Zl(t)}catch(a){W(t,l,a)}break;case 5:var s=t.return;try{Zl(t)}catch(a){W(t,s,a)}}}catch(a){W(t,t.return,a)}if(t===e){T=null;break}var i=t.sibling;if(i!==null){i.return=t.return,T=i;break}T=t.return}}var qf=Math.ceil,oo=qe.ReactCurrentDispatcher,As=qe.ReactCurrentOwner,Te=qe.ReactCurrentBatchConfig,z=0,q=null,K=null,ee=0,ve=0,Jt=wt(0),Y=0,qn=null,It=0,xo=0,Us=0,zn=null,de=null,Bs=0,cn=1/0,Ve=null,lo=!1,Xl=null,pt=null,jr=!1,it=null,so=0,Rn=0,ql=null,zr=-1,Rr=0;function ae(){return z&6?G():zr!==-1?zr:zr=G()}function ht(e){return e.mode&1?z&2&&ee!==0?ee&-ee:Rf.transition!==null?(Rr===0&&(Rr=ru()),Rr):(e=R,e!==0||(e=window.event,e=e===void 0?16:cu(e.type)),e):1}function ze(e,t,n,r){if(50<Rn)throw Rn=0,ql=null,Error(S(185));tr(e,n,r),(!(z&2)||e!==q)&&(e===q&&(!(z&2)&&(xo|=n),Y===4&<(e,ee)),me(e,r),n===1&&z===0&&!(t.mode&1)&&(cn=G()+500,yo&&kt()))}function me(e,t){var n=e.callbackNode;zd(e,t);var r=Vr(e,e===q?ee:0);if(r===0)n!==null&&pi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pi(n),t===1)e.tag===0?zf(la.bind(null,e)):$u(la.bind(null,e)),_f(function(){!(z&6)&&kt()}),n=null;else{switch(ou(r)){case 1:n=ps;break;case 4:n=tu;break;case 16:n=Hr;break;case 536870912:n=nu;break;default:n=Hr}n=Pc(n,kc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kc(e,t){if(zr=-1,Rr=0,z&6)throw Error(S(327));var n=e.callbackNode;if(nn()&&e.callbackNode!==n)return null;var r=Vr(e,e===q?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=io(e,r);else{t=r;var o=z;z|=2;var l=xc();(q!==e||ee!==t)&&(Ve=null,cn=G()+500,Nt(e,t));do try{tp();break}catch(i){Sc(e,i)}while(!0);Ts(),oo.current=l,z=o,K!==null?t=0:(q=null,ee=0,t=Y)}if(t!==0){if(t===2&&(o=Cl(e),o!==0&&(r=o,t=bl(e,o))),t===1)throw n=qn,Nt(e,0),lt(e,r),me(e,G()),n;if(t===6)lt(e,r);else{if(o=e.current.alternate,!(r&30)&&!bf(o)&&(t=io(e,r),t===2&&(l=Cl(e),l!==0&&(r=l,t=bl(e,l))),t===1))throw n=qn,Nt(e,0),lt(e,r),me(e,G()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Et(e,de,Ve);break;case 3:if(lt(e,r),(r&130023424)===r&&(t=Bs+500-G(),10<t)){if(Vr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ae(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Il(Et.bind(null,e,de,Ve),t);break}Et(e,de,Ve);break;case 4:if(lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Ie(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qf(r/1960))-r,10<r){e.timeoutHandle=Il(Et.bind(null,e,de,Ve),r);break}Et(e,de,Ve);break;case 5:Et(e,de,Ve);break;default:throw Error(S(329))}}}return me(e,G()),e.callbackNode===n?kc.bind(null,e):null}function bl(e,t){var n=zn;return e.current.memoizedState.isDehydrated&&(Nt(e,t).flags|=256),e=io(e,t),e!==2&&(t=de,de=n,t!==null&&es(t)),e}function es(e){de===null?de=e:de.push.apply(de,e)}function bf(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(!Re(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 lt(e,t){for(t&=~Us,t&=~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ie(t),r=1<<n;e[n]=-1,t&=~r}}function la(e){if(z&6)throw Error(S(327));nn();var t=Vr(e,0);if(!(t&1))return me(e,G()),null;var n=io(e,t);if(e.tag!==0&&n===2){var r=Cl(e);r!==0&&(t=r,n=bl(e,r))}if(n===1)throw n=qn,Nt(e,0),lt(e,t),me(e,G()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Et(e,de,Ve),me(e,G()),null}function Hs(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(cn=G()+500,yo&&kt())}}function zt(e){it!==null&&it.tag===0&&!(z&6)&&nn();var t=z;z|=1;var n=Te.transition,r=R;try{if(Te.transition=null,R=1,e)return e()}finally{R=r,Te.transition=n,z=t,!(z&6)&&kt()}}function Vs(){ve=Jt.current,A(Jt)}function Nt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$f(n)),K!==null)for(n=K.return;n!==null;){var r=n;switch(js(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Zr();break;case 3:an(),A(pe),A(se),Ms();break;case 5:Ls(r);break;case 4:an();break;case 13:A(B);break;case 19:A(B);break;case 10:Ps(r.type._context);break;case 22:case 23:Vs()}n=n.return}if(q=e,K=e=mt(e.current,null),ee=ve=t,Y=0,qn=null,Us=xo=It=0,de=zn=null,Tt!==null){for(t=0;t<Tt.length;t++)if(n=Tt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}Tt=null}return e}function Sc(e,t){do{var n=K;try{if(Ts(),Lr.current=ro,no){for(var r=H.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}no=!1}if(Mt=0,X=Z=H=null,Mn=!1,Yn=0,As.current=null,n===null||n.return===null){Y=1,qn=t,K=null;break}e:{var l=e,s=n.return,i=n,a=t;if(t=ee,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var d=a,g=i,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var h=g.alternate;h?(g.updateQueue=h.updateQueue,g.memoizedState=h.memoizedState,g.lanes=h.lanes):(g.updateQueue=null,g.memoizedState=null)}var w=Gi(s);if(w!==null){w.flags&=-257,Ki(w,s,i,l,t),w.mode&1&&Qi(l,d,t),t=w,a=d;var y=t.updateQueue;if(y===null){var k=new Set;k.add(a),t.updateQueue=k}else y.add(a);break e}else{if(!(t&1)){Qi(l,d,t),Ws();break e}a=Error(S(426))}}else if(U&&i.mode&1){var $=Gi(s);if($!==null){!($.flags&65536)&&($.flags|=256),Ki($,s,i,l,t),Es(un(a,i));break e}}l=a=un(a,i),Y!==4&&(Y=2),zn===null?zn=[l]:zn.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=oc(l,a,t);Ai(l,f);break e;case 1:i=a;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(pt===null||!pt.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var v=lc(l,i,t);Ai(l,v);break e}}l=l.return}while(l!==null)}Ec(n)}catch(j){t=j,K===n&&n!==null&&(K=n=n.return);continue}break}while(!0)}function xc(){var e=oo.current;return oo.current=ro,e===null?ro:e}function Ws(){(Y===0||Y===3||Y===2)&&(Y=4),q===null||!(It&268435455)&&!(xo&268435455)||lt(q,ee)}function io(e,t){var n=z;z|=2;var r=xc();(q!==e||ee!==t)&&(Ve=null,Nt(e,t));do try{ep();break}catch(o){Sc(e,o)}while(!0);if(Ts(),z=n,oo.current=r,K!==null)throw Error(S(261));return q=null,ee=0,Y}function ep(){for(;K!==null;)jc(K)}function tp(){for(;K!==null&&!Cd();)jc(K)}function jc(e){var t=Tc(e.alternate,e,ve);e.memoizedProps=e.pendingProps,t===null?Ec(e):K=t,As.current=null}function Ec(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Zf(n,t),n!==null){n.flags&=32767,K=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,K=null;return}}else if(n=Kf(n,t,ve),n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);Y===0&&(Y=5)}function Et(e,t,n){var r=R,o=Te.transition;try{Te.transition=null,R=1,np(e,t,n,r)}finally{Te.transition=o,R=r}return null}function np(e,t,n,r){do nn();while(it!==null);if(z&6)throw Error(S(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(S(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Rd(e,l),e===q&&(K=q=null,ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||jr||(jr=!0,Pc(Hr,function(){return nn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Te.transition,Te.transition=null;var s=R;R=1;var i=z;z|=4,As.current=null,Jf(e,n),yc(n,e),xf(Ll),Wr=!!_l,Ll=_l=null,e.current=n,Xf(n),Td(),z=i,R=s,Te.transition=l}else e.current=n;if(jr&&(jr=!1,it=e,so=o),l=e.pendingLanes,l===0&&(pt=null),$d(n.stateNode),me(e,G()),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(lo)throw lo=!1,e=Xl,Xl=null,e;return so&1&&e.tag!==0&&nn(),l=e.pendingLanes,l&1?e===ql?Rn++:(Rn=0,ql=e):Rn=0,kt(),null}function nn(){if(it!==null){var e=ou(so),t=Te.transition,n=R;try{if(Te.transition=null,R=16>e?16:e,it===null)var r=!1;else{if(e=it,it=null,so=0,z&6)throw Error(S(331));var o=z;for(z|=4,T=e.current;T!==null;){var l=T,s=l.child;if(T.flags&16){var i=l.deletions;if(i!==null){for(var a=0;a<i.length;a++){var d=i[a];for(T=d;T!==null;){var g=T;switch(g.tag){case 0:case 11:case 15:In(8,g,l)}var m=g.child;if(m!==null)m.return=g,T=m;else for(;T!==null;){g=T;var h=g.sibling,w=g.return;if(mc(g),g===d){T=null;break}if(h!==null){h.return=w,T=h;break}T=w}}}var y=l.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var $=k.sibling;k.sibling=null,k=$}while(k!==null)}}T=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,T=s;else e:for(;T!==null;){if(l=T,l.flags&2048)switch(l.tag){case 0:case 11:case 15:In(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,T=f;break e}T=l.return}}var c=e.current;for(T=c;T!==null;){s=T;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,T=p;else e:for(s=c;T!==null;){if(i=T,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:So(9,i)}}catch(j){W(i,i.return,j)}if(i===s){T=null;break e}var v=i.sibling;if(v!==null){v.return=i.return,T=v;break e}T=i.return}}if(z=o,kt(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(po,e)}catch{}r=!0}return r}finally{R=n,Te.transition=t}}return!1}function sa(e,t,n){t=un(n,t),t=oc(e,t,1),e=ft(e,t,1),t=ae(),e!==null&&(tr(e,1,t),me(e,t))}function W(e,t,n){if(e.tag===3)sa(e,e,n);else for(;t!==null;){if(t.tag===3){sa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pt===null||!pt.has(r))){e=un(n,e),e=lc(t,e,1),t=ft(t,e,1),e=ae(),t!==null&&(tr(t,1,e),me(t,e));break}}t=t.return}}function rp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ae(),e.pingedLanes|=e.suspendedLanes&n,q===e&&(ee&n)===n&&(Y===4||Y===3&&(ee&130023424)===ee&&500>G()-Bs?Nt(e,0):Us|=n),me(e,t)}function Cc(e,t){t===0&&(e.mode&1?(t=pr,pr<<=1,!(pr&130023424)&&(pr=4194304)):t=1);var n=ae();e=Je(e,t),e!==null&&(tr(e,t,n),me(e,n))}function op(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cc(e,n)}function lp(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(S(314))}r!==null&&r.delete(t),Cc(e,n)}var Tc;Tc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,Gf(e,t,n);fe=!!(e.flags&131072)}else fe=!1,U&&t.flags&1048576&&_u(t,Xr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var o=on(t,se.current);tn(t,n),o=zs(null,t,r,e,o,n);var l=Rs();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,he(r)?(l=!0,Yr(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,$s(t),o.updater=ko,t.stateNode=o,o._reactInternals=t,Ul(t,r,e,n),t=Vl(null,t,r,!0,l,n)):(t.tag=0,U&&l&&xs(t),ie(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ip(r),e=_e(r,e),o){case 0:t=Hl(null,t,r,e,n);break e;case 1:t=Ji(null,t,r,e,n);break e;case 11:t=Zi(null,t,r,e,n);break e;case 14:t=Yi(null,t,r,_e(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Hl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Ji(e,t,r,o,n);case 3:e:{if(uc(t),e===null)throw Error(S(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ou(e,t),eo(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=un(Error(S(423)),t),t=Xi(e,t,r,n,o);break e}else if(r!==o){o=un(Error(S(424)),t),t=Xi(e,t,r,n,o);break e}else for(ye=dt(t.stateNode.containerInfo.firstChild),we=t,U=!0,Me=null,n=zu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ln(),r===o){t=Xe(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return Fu(t),e===null&&Fl(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,Ml(r,o)?s=null:l!==null&&Ml(r,l)&&(t.flags|=32),ac(e,t),ie(e,t,s,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return cc(e,t,n);case 4:return _s(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sn(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Zi(e,t,r,o,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,O(qr,r._currentValue),r._currentValue=s,l!==null)if(Re(l.value,s)){if(l.children===o.children&&!pe.current){t=Xe(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){s=l.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ke(-1,n&-n),a.tag=2;var d=l.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Dl(l.return,n,t),i.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(S(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),Dl(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tn(t,n),o=Pe(o),r=r(o),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,o=_e(r,t.pendingProps),o=_e(r.type,o),Yi(e,t,r,o,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Ir(e,t),t.tag=1,he(r)?(e=!0,Yr(t)):e=!1,tn(t,n),rc(t,r,o),Ul(t,r,o,n),Vl(null,t,r,!0,e,n);case 19:return dc(e,t,n);case 22:return ic(e,t,n)}throw Error(S(156,t.tag))};function Pc(e,t){return eu(e,t)}function sp(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 Ce(e,t,n,r){return new sp(e,t,n,r)}function Qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Qs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cs)return 11;if(e===ds)return 14}return 2}function mt(e,t){var n=e.alternate;return n===null?(n=Ce(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 Or(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Qs(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ut:return $t(n.children,o,l,t);case us:s=8,o|=8;break;case cl:return e=Ce(12,n,t,o|2),e.elementType=cl,e.lanes=l,e;case dl:return e=Ce(13,n,t,o),e.elementType=dl,e.lanes=l,e;case fl:return e=Ce(19,n,t,o),e.elementType=fl,e.lanes=l,e;case Fa:return jo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ra:s=10;break e;case Oa:s=9;break e;case cs:s=11;break e;case ds:s=14;break e;case nt:s=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ce(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function $t(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function jo(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Fa,e.lanes=n,e.stateNode={isHidden:!1},e}function ol(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ap(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=Ao(0),this.expirationTimes=Ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ao(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gs(e,t,n,r,o,l,s,i,a){return e=new ap(e,t,n,i,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ce(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$s(l),e}function up(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Nc(e){if(!e)return vt;e=e._reactInternals;e:{if(Ot(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(he(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(he(n))return Nu(e,n,t)}return t}function $c(e,t,n,r,o,l,s,i,a){return e=Gs(n,r,!0,e,o,l,s,i,a),e.context=Nc(null),n=e.current,r=ae(),o=ht(n),l=Ke(r,o),l.callback=t??null,ft(n,l,o),e.current.lanes=o,tr(e,o,r),me(e,r),e}function Eo(e,t,n,r){var o=t.current,l=ae(),s=ht(o);return n=Nc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ke(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ft(o,t,s),e!==null&&(ze(e,o,s,l),_r(e,o,s)),s}function ao(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 ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ks(e,t){ia(e,t),(e=e.alternate)&&ia(e,t)}function cp(){return null}var _c=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zs(e){this._internalRoot=e}Co.prototype.render=Zs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Eo(e,t,null,null)};Co.prototype.unmount=Zs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zt(function(){Eo(null,e,null,null)}),t[Ye]=null}};function Co(e){this._internalRoot=e}Co.prototype.unstable_scheduleHydration=function(e){if(e){var t=iu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ot.length&&t!==0&&t<ot[n].priority;n++);ot.splice(n,0,e),n===0&&uu(e)}};function Ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function To(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aa(){}function dp(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var d=ao(s);l.call(d)}}var s=$c(t,r,e,0,null,!1,!1,"",aa);return e._reactRootContainer=s,e[Ye]=s.current,Wn(e.nodeType===8?e.parentNode:e),zt(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var d=ao(a);i.call(d)}}var a=Gs(e,0,!1,null,null,!1,!1,"",aa);return e._reactRootContainer=a,e[Ye]=a.current,Wn(e.nodeType===8?e.parentNode:e),zt(function(){Eo(t,a,n,r)}),a}function Po(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var i=o;o=function(){var a=ao(s);i.call(a)}}Eo(t,s,e,o)}else s=dp(n,t,e,o,r);return ao(s)}lu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cn(t.pendingLanes);n!==0&&(hs(t,n|1),me(t,G()),!(z&6)&&(cn=G()+500,kt()))}break;case 13:zt(function(){var r=Je(e,1);if(r!==null){var o=ae();ze(r,e,1,o)}}),Ks(e,1)}};ms=function(e){if(e.tag===13){var t=Je(e,134217728);if(t!==null){var n=ae();ze(t,e,134217728,n)}Ks(e,134217728)}};su=function(e){if(e.tag===13){var t=ht(e),n=Je(e,t);if(n!==null){var r=ae();ze(n,e,t,r)}Ks(e,t)}};iu=function(){return R};au=function(e,t){var n=R;try{return R=e,t()}finally{R=n}};xl=function(e,t,n){switch(t){case"input":if(ml(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=vo(r);if(!o)throw Error(S(90));Aa(r),ml(r,o)}}}break;case"textarea":Ba(e,n);break;case"select":t=n.value,t!=null&&Xt(e,!!n.multiple,t,!1)}};Za=Hs;Ya=zt;var fp={usingClientEntryPoint:!1,Events:[rr,Wt,vo,Ga,Ka,Hs]},xn={findFiberByHostInstance:Ct,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pp={bundleType:xn.bundleType,version:xn.version,rendererPackageName:xn.rendererPackageName,rendererConfig:xn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qa(e),e===null?null:e.stateNode},findFiberByHostInstance:xn.findFiberByHostInstance||cp,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 Er=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Er.isDisabled&&Er.supportsFiber)try{po=Er.inject(pp),Ue=Er}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fp;Se.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ys(t))throw Error(S(200));return up(e,t,null,n)};Se.createRoot=function(e,t){if(!Ys(e))throw Error(S(299));var n=!1,r="",o=_c;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Gs(e,1,!1,null,null,n,!1,r,o),e[Ye]=t.current,Wn(e.nodeType===8?e.parentNode:e),new Zs(t)};Se.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=qa(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e){return zt(e)};Se.hydrate=function(e,t,n){if(!To(t))throw Error(S(200));return Po(null,e,t,!0,n)};Se.hydrateRoot=function(e,t,n){if(!Ys(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=_c;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=$c(t,null,e,1,n??null,o,!1,l,s),e[Ye]=t.current,Wn(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 Co(t)};Se.render=function(e,t,n){if(!To(t))throw Error(S(200));return Po(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!To(e))throw Error(S(40));return e._reactRootContainer?(zt(function(){Po(null,null,e,!1,function(){e._reactRootContainer=null,e[Ye]=null})}),!0):!1};Se.unstable_batchedUpdates=Hs;Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!To(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Po(e,t,n,!1,r)};Se.version="18.3.1-next-f1338f8080-20240426";function Lc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lc)}catch(e){console.error(e)}}Lc(),La.exports=Se;var hp=La.exports,ua=hp;al.createRoot=ua.createRoot,al.hydrateRoot=ua.hydrateRoot;const mp="modulepreload",gp=function(e){return"/"+e},ca={},Js=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=gp(a),a in ca)return;ca[a]=!0;const d=a.endsWith(".css"),g=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${g}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":mp,d||(m.as="script"),m.crossOrigin="",m.href=a,i&&m.setAttribute("nonce",i),document.head.appendChild(m),d)return new Promise((h,w)=>{m.addEventListener("load",h),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${a}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return t().catch(l)})},vp=1e4,yp=2.5*vp;function wp(e,{deadMs:t=yp,setTimeoutImpl:n=setTimeout,clearTimeoutImpl:r=clearTimeout}={}){let o=0;const l=()=>{o&&(r(o),o=0)};return{arm:()=>{l(),o=n(()=>{o=0,e()},t)},disarm:l}}function Mc(e){const t=/^\/p\/([^/]+)(?:\/|$)/.exec(e||"");if(!t)return{id:null,base:""};let n=t[1];try{n=decodeURIComponent(n)}catch{}return{id:n,base:`/p/${t[1]}`}}const Ic=Mc(typeof location<"u"?location.pathname:""),tt=Ic.id,kp=Ic.base,Sp=(e,t)=>e.startsWith("/api")?t+e:e,No=e=>Sp(e,kp),oh=(e,t="#/graph")=>`/p/${encodeURIComponent(e)}/${t}`,xp=()=>"/projects";function jp(e,t){return Mc(e).id&&(t||"").replace(/^#\/?/,"").split("?")[0].replace(/\/+$/,"")==="projects"?xp():null}const Ep=280,sl=54;function lh(e,t){const n={};e.forEach(l=>{var s;l.parent&&(n[s=l.parent]??(n[s]=[])).push(l.id)});const r={},o=(l,s,i)=>{r[l]={x:s*Ep,y:i};const a=t.has(l)?n[l]||[]:[];if(!a.length)return;const d=i-(a.length-1)/2*sl;a.forEach((g,m)=>o(g,s+1,d+m*sl))};return e.filter(l=>!l.parent).forEach((l,s)=>o(l.id,0,s*sl)),r}const da=[150,350,600,900];async function ne(e,t){const n=typeof e=="string"?No(e):e;for(let r=0;;r++)try{return await fetch(n,t)}catch(o){if(r>=da.length)throw o;await new Promise(l=>setTimeout(l,da[r]))}}let Fr="";const fa=()=>{Fr=""};async function Cp(){const e=await ne("/api/graph",{cache:"no-store",headers:Fr?{"If-None-Match":Fr}:{}});if(e.status===304)return null;if(e.status===401||e.status===403){const r=await e.json().catch(()=>null);return{authRequired:(r==null?void 0:r.reason)||"project-login"}}const t=e.headers.get("etag")||"";return{board:await e.json(),seal:()=>{Fr=t}}}const sh=(e,...t)=>No(`/api/specs/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);function Tp({onBoard:e,onLegacyChange:t,onStatus:n}){let r=null,o=!1,l=null,s="";const i=w=>{const{nodes:y=[],sessions:k=[],...$}=w,f=new Map([["meta",$],["nodes#order",y.map(c=>c.id)],["sess#order",k.map(c=>c.id)]]);return y.forEach(c=>f.set("node:"+c.id,c)),k.forEach(c=>f.set("sess:"+c.id,c)),f},a=w=>{const y=(k,$)=>(w.get($)||[]).map(f=>w.get(k+f));return{...w.get("meta")||{},nodes:y("node:","nodes#order"),sessions:y("sess:","sess#order")}},d=()=>{try{r==null||r.close()}catch{}l=null,s="",h()},g=wp(()=>{!r||o||(n==null||n(!1),d(),g.arm(),t==null||t())}),m=()=>g.arm(),h=()=>{if(!o){try{r=new EventSource(No("/api/graph/stream?mode=delta"))}catch{r=null;return}r.addEventListener("graph-full",w=>{m();const{to:y,graph:k}=JSON.parse(w.data);l=i(k),s=y,fa(),e(k,{authoritative:!0,tag:y}),n==null||n(!0)}),r.addEventListener("graph-delta",w=>{m();const y=JSON.parse(w.data);if(!l||s!==y.from){d();return}for(const k of y.del||[])l.delete(k);for(const[k,$]of Object.entries(y.set||{}))l.set(k,$);s=y.to,fa(),e(a(l),{authoritative:!1,tag:y.to}),n==null||n(!0)}),r.addEventListener("graph-changed",()=>{m(),t==null||t()}),r.addEventListener("error",()=>n==null?void 0:n(!1)),r.addEventListener("ping",m),r.addEventListener("ready",m)}};return h(),n==null||n(!1),m(),()=>{o=!0,g.disarm();try{r==null||r.close()}catch{}}}function Pp(e,t,n=!1){if(!(e!=null&&e.sessions))return e;const r=new Set(e.sessions.map(s=>s.id));if(n)for(const s of t.keys())r.has(s)||t.delete(s);let o=!1;const l=e.sessions.map(s=>{var m,h;const i=s.evalSummary;if(!i||!Number.isInteger(i.generation)||!i.epoch)return s;const a=t.get(s.id),d=a&&a.epoch!==i.epoch;if(!a||(d?n:i.generation>=a.generation)){const w=((m=a==null?void 0:a.projection)==null?void 0:m.phase)==="ready"&&a.projection.value?{generation:a.projection.generation,revision:a.projection.revision,value:a.projection.value}:(h=a==null?void 0:a.projection)==null?void 0:h.lastKnown,y=d&&!i.value&&!i.lastKnown&&w?{...i,lastKnown:w}:i;return t.set(s.id,{epoch:y.epoch,generation:y.generation,projection:y}),y!==i?(o=!0,{...s,evalSummary:y}):s}return o=!0,{...s,evalSummary:a.projection}});return o?{...e,sessions:l}:e}const Np=e=>{var t,n;return{title:((t=e==null?void 0:e.identity)==null?void 0:t.title)||(e==null?void 0:e.project)||"",icon:((n=e==null?void 0:e.identity)==null?void 0:n.icon)||(e==null?void 0:e.projectIcon)||"spexcode"}},lr=(e,...t)=>No(`/api/sessions/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);async function ih(e){const t=await ne(lr(e,"timeline"),{cache:"no-store"});return t.ok?t.json():null}async function ah(e){const t=await ne(lr(e,"messages"),{cache:"no-store"});if(!t.ok)throw new Error(`messages HTTP ${t.status}`);return t.json()}function uh(e,t,{onMessage:n,onStatus:r,onError:o}={}){let l;try{l=new EventSource(`${lr(e,"messages","stream")}?cursor=${t}`)}catch(s){return o==null||o(s),()=>{}}return l.addEventListener("ready",()=>r==null?void 0:r(!0)),l.addEventListener("message",s=>{try{n==null||n(JSON.parse(s.data))}catch(i){o==null||o(i)}}),l.addEventListener("stream-error",s=>{var i;try{o==null||o(new Error(((i=JSON.parse(s.data))==null?void 0:i.error)||"message stream failed"))}catch{o==null||o(new Error("message stream failed"))}}),l.addEventListener("error",()=>r==null?void 0:r(!1)),()=>l.close()}async function ch(e){const t=await ne(lr(e));return t.ok?t.json():null}async function dh(e,t,{replyVia:n}={}){const r=await ne(lr(e,"input"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"text",text:t,...n?{replyVia:n}:{}})}),o=await r.json().catch(()=>({}));return{ok:r.ok&&(o==null?void 0:o.ok)!==!1,error:o==null?void 0:o.error}}async function fh(){return(await ne("/api/plugins")).json()}async function ph(){return(await ne("/api/plugins?surface=review")).json()}async function hh(){return(await ne("/api/settings")).json()}async function mh(e){const t=await ne(`/api/issues/${encodeURIComponent(e)}`);if(t.status===404)return!1;if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}async function gh(e,t,n){return(await ne(`/api/issues/${encodeURIComponent(e)}/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:t,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function vh(e){return(await ne(`/api/issues/${encodeURIComponent(e)}/close`,{method:"POST"})).json()}async function yh(e){return(await ne(`/api/issues/${encodeURIComponent(e)}/promote`,{method:"POST"})).json()}async function wh(e,t){return(await ne(`/api/remarks/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:t})})).json()}async function kh({concern:e,body:t,evidence:n,store:r}){return(await ne("/api/issues",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({concern:e,body:t,store:r,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function Sh({node:e,scenario:t,issue:n,body:r,codeSha:o,evidence:l}){return(await ne("/api/remarks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node:e,scenario:t,issue:n,body:r,...o?{codeSha:o}:{},...l!=null&&l.length?{evidence:l}:{}})})).json()}async function xh(e,t){return(await ne(`/api/specs/${encodeURIComponent(e)}/evals/ok`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scenario:t})})).json()}async function jh(e){return(await ne("/api/evidence",{method:"POST",headers:{"Content-Type":"image/png"},body:e})).json()}const be=async e=>(e.headers.get("content-type")||"").includes("json")?e.json().catch(()=>null):null,$p=5e3,zc=(e,t,n)=>({title:typeof(e==null?void 0:e.title)=="string"&&e.title?e.title:t,icon:typeof(e==null?void 0:e.icon)=="string"&&e.icon?e.icon:n});function uo(e){if(!e||typeof e!="object")return null;const t=e.id??e.projectId;return t?{id:String(t),identity:zc(e.identity||{title:e.name,icon:e.icon},e.name||String(t),"spexcode"),root:typeof e.root=="string"?e.root:"",online:typeof e.online=="boolean"?e.online:null,url:e.url||"",port:e.port??null,gated:!!(e.gated??e.locked??e.hasPassword),configRevision:typeof e.configRevision=="string"?e.configRevision:""}:null}const _p=e=>{const t=Array.isArray(e)?e:Array.isArray(e==null?void 0:e.projects)?e.projects:null;return t?t.map(uo).filter(Boolean):null};function Lp(e,t,n){var r;if(!e)return n;if(!t)return null;if(t.state==="ok"){const o=(r=t.projects)==null?void 0:r.find(l=>l.id===e);return(o==null?void 0:o.identity)||{title:e,icon:"spexcode"}}return{title:(n==null?void 0:n.title)||e,icon:(n==null?void 0:n.icon)||"spexcode"}}const Mp=e=>(e==null?void 0:e.state)==="ok"?e.gateway.identity:{title:"Projects",icon:"gateway"},Ip=e=>(e==null?void 0:e.title)||"SpexCode",pa=(e,t)=>(t==null?void 0:t.state)==="absent"&&e&&e.state!=="absent"?e:t;async function zp(){let e;try{e=await fetch("/projects",{cache:"no-store",headers:{Accept:"application/json"}})}catch{return{state:"absent"}}if(e.status===401)return{state:"denied",reason:"admin-login"};if(e.status===403)return{state:"denied",reason:"locked"};if(!e.ok)return{state:"absent"};const t=await be(e),n=_p(t);if(!n)return{state:"absent"};const r=t!=null&&t.gateway&&typeof t.gateway=="object"?{identity:zc(t.gateway,"Projects","gateway"),revision:typeof t.gateway.revision=="string"?t.gateway.revision:""}:{identity:{title:"Projects",icon:"gateway"},revision:""};return{state:"ok",adminGated:!!(t!=null&&t.adminGated),gateway:r,projects:n}}async function Eh(e,{timeoutMs:t=2500}={}){try{const n=await fetch(`/p/${encodeURIComponent(e)}/health`,{cache:"no-store",signal:AbortSignal.timeout(t)});return!n.ok||n.redirected?"unreachable":(await n.text()).trim()==="ok"?"running":"unreachable"}catch{return"unreachable"}}async function $o(e,t,n){let r;try{r=await fetch(e,{method:t,headers:{"Content-Type":"application/json",Accept:"application/json"},...t==="PUT"?{body:JSON.stringify({password:n})}:{}})}catch{return{ok:!1,error:"network"}}const o=await be(r)||{};return{ok:r.ok&&o.ok!==!1,status:r.status,...o.error?{error:o.error}:{}}}const Ch=(e,t)=>$o(`/projects/${encodeURIComponent(e)}/password`,"PUT",t),Th=e=>$o(`/projects/${encodeURIComponent(e)}/password`,"DELETE"),Ph=e=>$o("/projects/admin-password","PUT",e),Nh=()=>$o("/projects/admin-password","DELETE");async function Rp(e,t){const n=e==="admin"?"/login":`/p/${encodeURIComponent(e.projectId)}/login`;let r;try{r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})})}catch{return{ok:!1,error:"network"}}return r.status===401?{ok:!1,error:"wrong-password"}:r.status===403?{ok:!1,error:"locked"}:r.ok||r.redirected?{ok:!0}:{ok:!1,error:`http-${r.status}`}}async function $h(e=""){let t;try{const r=e?`?path=${encodeURIComponent(e)}`:"";t=await fetch(`/projects/browse${r}`,{cache:"no-store",headers:{Accept:"application/json"}})}catch{return{ok:!1,error:"network"}}const n=await be(t);return t.ok?typeof(n==null?void 0:n.path)!="string"||!Array.isArray(n==null?void 0:n.entries)?{ok:!1,error:"unexpected answer"}:{ok:!0,path:n.path,parent:typeof n.parent=="string"?n.parent:null,home:typeof n.home=="string"?n.home:n.path,gitRoot:typeof n.gitRoot=="string"?n.gitRoot:null,initialized:!!n.initialized,cataloged:!!n.cataloged,entries:n.entries.filter(r=>r&&typeof r.name=="string"&&typeof r.path=="string").map(r=>({name:r.name,path:r.path,git:!!r.git,initialized:!!r.initialized}))}:{ok:!1,status:t.status,error:(n==null?void 0:n.error)||`http-${t.status}`}}async function _h(e,t={}){let n;try{n=await fetch("/projects",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({root:e,...t})})}catch{return{ok:!1,error:"network"}}const r=await be(n);if(!n.ok)return{ok:!1,status:n.status,error:(r==null?void 0:r.error)||`http-${n.status}`,...r!=null&&r.init&&typeof r.init=="object"?{code:r.init.code??null,output:String(r.init.output??"")}:{}};const o=uo(r);return o?{ok:!0,project:o,setup:r.setup??null}:{ok:!1,error:"unexpected answer"}}async function Lh(e){let t;try{t=await fetch(`/projects/${encodeURIComponent(e)}/config`,{cache:"no-store",headers:{Accept:"application/json"}})}catch{return{ok:!1,error:"network"}}const n=await be(t);return t.ok?typeof(n==null?void 0:n.content)!="string"||typeof(n==null?void 0:n.revision)!="string"?{ok:!1,error:"unexpected answer"}:{ok:!0,content:n.content,revision:n.revision}:{ok:!1,status:t.status,error:(n==null?void 0:n.error)||`http-${t.status}`}}async function Mh(e,t,n){let r;try{r=await fetch(`/projects/${encodeURIComponent(e)}/config`,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({content:t,revision:n})})}catch{return{ok:!1,error:"network"}}const o=await be(r);return r.ok?typeof(o==null?void 0:o.content)!="string"||typeof(o==null?void 0:o.revision)!="string"?{ok:!1,error:"unexpected answer"}:{ok:!0,content:o.content,revision:o.revision}:{ok:!1,status:r.status,error:(o==null?void 0:o.error)||`http-${r.status}`}}async function Rc(e,t,n){let r;try{r=await fetch(e,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({icon:t,revision:n})})}catch{return{ok:!1,error:"network"}}const o=await be(r);return r.ok?{ok:!0,...o}:{ok:!1,status:r.status,error:(o==null?void 0:o.error)||`http-${r.status}`}}const Ih=(e,t)=>Rc("/projects/icon",e,t),zh=(e,t,n)=>Rc(`/projects/${encodeURIComponent(e)}/icon`,t,n);async function Oc(e,t,n={}){let r;try{r=await fetch(`/projects/${encodeURIComponent(e)}/${t}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)})}catch{return{ok:!1,error:"network"}}const o=await be(r);return r.ok?!o||typeof o!="object"?{ok:!1,error:"unexpected answer"}:{ok:o.ok===!0,code:o.code??null,output:String(o.output??"")}:{ok:!1,status:r.status,error:(o==null?void 0:o.error)||`http-${r.status}`}}const Rh=(e,t)=>Oc(e,"init",{harness:t}),Oh=e=>Oc(e,"doctor");async function Fh(e){let t;try{t=await fetch(`/projects/${encodeURIComponent(e)}/serve`,{method:"POST",headers:{Accept:"application/json"}})}catch{return{ok:!1,error:"network"}}const n=await be(t);return t.status===409?{ok:!0,already:!0,project:uo(n==null?void 0:n.project)}:t.ok?{ok:!0,project:uo(n==null?void 0:n.project)}:{ok:!1,status:t.status,error:(n==null?void 0:n.error)||`http-${t.status}`}}const Xs={common:{new:"new",none:"none",idle:"idle",sessions:"sessions",session:"session",loading:"loading…",noVersions:"no versions yet — this spec is the latest ground truth.",cancel:"cancel",save:"save",close:"close"},status:{working:"working",idle:"idle",offline:"offline",starting:"starting",review:"review",done:"done","close-pending":"close-pending",parked:"parked",error:"error",asking:"asking",queued:"queued",merged:"merged",active:"active",drift:"drift",pending:"pending"},sessionZone:{need:"needs you",run:"running",offline:"offline"},nav:{railLabel:"main navigation",graph:"Spec Node Graph (⌥1)",sessions:"Sessions (⌥2)",evals:"Evals (⌥3 / ⌥F)",issues:"Issues (⌥4)",settings:"Settings (⌥5)",projectChip:"project: {name} — switch project",allProjects:"All projects"},projects:{title:"Projects",count:"{n} project(s)",current:"current",empty:"No projects yet — add a repository by its root path, or run `spex serve` in a repo and its backend registers itself here.",absent:"This deployment serves a single project — the multi-project catalog is not available here.",open:"open",add:"add project",addTitle:"Add project",addPlaceholder:"/abs/path/to/repo",addSubmit:"add",addBusy:"adding…",browseParent:"parent folder",browseHome:"home folder",browseGo:"go",browseLoading:"loading…",folderList:"folders",folderEmpty:"no subfolders",initGit:"initialize Git repository",initSpex:"initialize SpexCode",spexInitialized:"SpexCode initialized",harnessTargets:"harness targets",alreadyAdded:"already in the project catalog",configTitle:"edit spexcode.json",configEditor:"spexcode.json contents",configLoading:"loading…",configSave:"save",configSaving:"saving…",configReload:"reload",configSaved:"saved",configInvalid:"top level must be a valid JSON object",gatewayIcon:"gateway icon",projectIcon:"project icon",editGatewayIcon:"edit gateway icon",editProjectIcon:"edit project icon",gatewaySettings:"gateway settings",iconSearch:"search icons",iconSources:"icon sources",iconSourceFeatured:"Featured",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"Brands",iconSearching:"searching…",iconSearchEmpty:"no matching icons",iconSearchFailed:"icon search unavailable",setupTitle:"setup — init / doctor",harnessLabel:"harness:",harnessRequired:"pick at least one harness target — init refuses to guess",init:"init",doctor:"doctor",running:"running…",start:"start",startBusy:"starting…",opOk:"{op}: exit 0 — succeeded",opFail:"{op}: exit {code} — failed",actionFailed:"the gateway rejected the request",passwordTitle:"project password",passwordPlaceholder:"new project password",passwordSet:"set",passwordClear:"clear",adminPassword:"admin password",adminPasswordPlaceholder:"new administrator password",adminUngated:"No administrator password is set — management works from this machine only. Set one to sign in remotely; you stay signed in.",health:{probing:"checking…",running:"running",unreachable:"unreachable",stopped:"backend stopped — start it from here"}},credential:{adminTitle:"administrator sign-in",adminBody:"This is a private agent workspace. Enter the administrator password to manage projects.",projectTitle:"unlock {name}",projectBody:"This project is protected. Enter its access password to continue.",lockedTitle:"management is locked",lockedBody:"No administrator password is configured, so remote management is locked. Set one from the machine running the gateway, then sign in here.",passwordLabel:"password",wrong:"Incorrect password — try again.",failed:"Sign-in failed — the gateway did not accept the request.",checking:"checking…",unlock:"unlock"},hud:{helpTitle:"help — keymap & legend (?)",loading:"loading specs from git…",loadError:"backend unreachable — the graph failed to load.",retry:"retry"},evalsFeed:{title:"Evals",kind:{video:"video",image:"image",all:"all"},summary:({n:e})=>`${e} current`,datasetEmpty:"No evals yet.",noMatches:"No evals match this view.",annotate:"open & annotate",inSession:"measured by this session",okdTip:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,okChip:({n:e})=>`${e} ok’d`,okChipTitle:"show the fresh, human-ok’d scenarios the feed default-hides",filedBy:({by:e})=>`filed by ${e}`,filedAt:({at:e})=>`filed ${e} ago`,sessionTag:"session"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"All",search:"Search",searchIssues:"Search issues",searchEvals:"Search evals",clearSearch:"Clear search",showing:({shown:e,total:t})=>`showing ${e} of ${t}`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"Current",needsReview:"Needs review",reviewed:"Reviewed",filters:"Filters",activeFilters:({n:e})=>`${e} active filter${e===1?"":"s"}`,facetStore:"Store",facetVerdict:"Verdict",facetFreshness:"Freshness",facetKind:"Evidence",facetAuthor:"Author",facetNode:"Spec node",facetFiler:"Filer",facetState:"State",facetReview:"Human review",facetSession:"Source session",sessionPresent:"Present",sessionMissing:"Missing",openedBy:({by:e})=>`opened by ${e}`,openedAt:({at:e})=>`opened ${e} ago`,verdict:{pass:"Pass",fail:"Fail",unscored:"Unscored"},freshness:{fresh:"Fresh",stale:"Stale"},pagination:"Pagination",previous:"Previous",next:"Next",prevPage:"Previous Page",nextPage:"Next Page",page:({n:e})=>`Page ${e}`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`no eval found for ${e} · ${t}`,issueNotFound:({id:e})=>`no issue found for ${e}`,backToEvals:"← all evals",backToIssues:"← all issues"},detail:{sideReading:"result",sideFiler:"filed by",sideOk:"human-ok",sideStore:"store",sideOriginator:"opened by",sideNodes:"spec nodes",backToEvals:"back to evals",backToIssues:"back to issues",sideQueue:"continue reviewing",queuePrev:"previous",queueNext:"up next",sideIssue:"issue",sideNode:"spec node"},annotator:{title:"annotator",play:"play",pause:"pause",fullscreen:"fullscreen",exitFullscreen:"exit fullscreen",capturing:"capturing frame…",failed:"failed — is the backend up?",comments:({n:e})=>e?`review track (${e})`:"review track",abOlder:"older eval (‹ toward the A / reproduced bug)",abNewer:"newer eval (toward the B / verified fix ›)",abLatest:"latest",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`older results (${e})`,okd:"human-ok",okBy:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,menuReview:"review commands",cmd:{okDesc:"sign off this result — you reviewed it and agree with its verdict; binds to THIS latest result only, monotonic (no un-ok)"}},thread:{anchorNow:"anchor",anchorTitle:"anchor this comment to the current frame",mentionActor:"insert @ — mention a session or summon a worker",mentionNode:"insert [[ — link a spec node",reviewCommands:"insert / — review commands",resolved:"resolved",resolvedBy:"resolved by {by}",openRemark:"open",resolve:"resolve",resolveTitle:"resolve this remark — a second party’s judgment that it is addressed (monotonic: no un-resolve)",retract:"retract",retractTitle:"withdraw your own unresolved remark — removes it from the thread",anchorDegraded:"this step is gone from the current eval — the m:ss is the frozen original, not seekable",originatorIssue:"open the session that filed this issue: {by}",originatorEval:"open the session that filed this eval: {by}"},sessionEval:{btn:"eval",btnTitle:"open this session's evaluation — the measured eval evidence and the merge gates, on the Evals page",scopeDoor:"Back to session terminal",none:"no evaluation for this session yet",unavailable:"evaluation unavailable until the session model loads successfully.",loadFailed:({reason:e})=>`session evaluation failed to load — ${e}`,export:"export",exportTitle:"export this evaluation as a self-contained HTML report",empty:"nothing measured for this session yet.",unmeasured:"unmeasured",unknownCoverage:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`},time:{justNow:"now",minutes:({n:e})=>`${e}m`,hours:({n:e})=>`${e}h`,days:({n:e})=>`${e}d`,weeks:({n:e})=>`${e}w`},legend:{title:"help · keymap & legend",close:"close (esc or ?)",secBoard:"graph keys",secPopup:"node-info popup",secStatus:"status dot",secOp:"overlay op",secOpSub:"(a worktree's pending change)",secBadges:"badges",secRing:"node ring",graph:{move:"move up / down the focused column (siblings)",parent:"to the parent",child:"to the nearest child",zoom:"zoom in / out · reset to overview",info:"open the node-info popup (or double-click a node)",search:"search & jump across nodes, sessions, issues & scenarios",overlayCycle:"cycle through nodes a worktree is changing (⇧ reverse)",fresh:"start a fresh session on the focus node",evals:"open the evals page (the project’s current measured loss)",newChild:"new child node under the focus (chord)",del:"delete the focused node (chord)",settings:"open settings (language…)",help:"open this help"},popup:{switch:"switch pane (spec / history)",scroll:"scroll · reveal the next version",lens:"walk the tree behind the popup — it follows the focus",enter:"inert — the popup is a read-only surface",esc:"close the popup"},statusRows:{merged:"spec & code in sync",active:"in-flight — the dot pulses",drift:"governed code is ahead of its spec",pending:"no committed version yet"},opRows:{added:"added",edited:"edited",deleted:"deleted",moved:"moved"},badgeDrift:"drift: N commits of code ahead of the spec",badgeVer:"version: N content commits to the node's spec.md",ringDashed:"dashed = uncommitted overlay",ringSolid:"solid = committed; ring colour = the author session",ringGhost:"translucent “ghost” = an added node not yet on main"},sessionWindow:{menuLabel:"session actions",rowTitle:"click to lock the graph onto this session · double-click to open it",lockedTitle:"graph locked to this session — click again to release",emptyBefore:"no live worktrees — press ",emptyAfter:" to start one",lock:"lock on graph",rename:"rename",attach:"open in terminal…",select:"select…",close:"close",closeTitle:"close “{name}”?",closeConfirm:"This closes the session and removes its worktree. Any uncommitted changes are lost.",renameTitle:"rename “{name}”",renamePlaceholder:"display name (blank to reset)",attachTitle:"attach to “{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"copy",attachCopied:"copied"},sessionSelect:{selected:({n:e})=>`${e} selected`,close:"close",closeTitle:({n:e})=>e===1?"close 1 session?":`close ${e} sessions?`,closeConfirm:"This closes every selected session and removes its worktree. Any uncommitted changes are lost."},lockHint:{cycleBefore:"press ",cycleNext:" next",cyclePrev:" previous",cycleAfter:({n:e})=>` through this session's ${e} changed nodes`,singleChanged:"this session changed 1 node",empty:"this session has no pending spec changes",release:"release",releaseTitle:"release the lock (or click the session again)"},nodeView:{paneSpec:"spec",paneHistory:"history",paneIssues:"issues",paneEval:"eval",paneEdit:"edit",filterIssues:"filter issues…",filterScenarios:"filter scenarios…",filterNone:"nothing matches the filter.",noEdit:"no pending change — this node has no live edit in flight.",editCommitted:"committed",editDirty:"uncommitted",pendingEdits:({n:e})=>`${e} session${e===1?"":"s"} editing this node`,openIssues:({n:e})=>`${e} open`,closedIssues:({n:e})=>`${e} closed`,noIssues:"no issues linked to this node yet.",hint:"←→/hl/tab switch · j/k/↑↓ scroll · ⇧+nav walk the tree · esc back",statusLabel:"status:",versionLabel:"version:",lastEditedBy:"last edited by:",governs:"// governs",proseNode:"// no file owned · prose node",rawTitle:"raw source",rawOwner:"human",rawNote:"rarely changed · needs approval",expandedTitle:"expanded spec",expandedOwner:"agent",expandedNote:"versioned often · must match raw source",filesChanged:({n:e})=>`${e} file${e===1?"":"s"} changed`,loadingChange:"loading diff…",noChange:"no recorded change yet — this spec is the latest ground truth.",diffLabel:"spec line diff",loadingHistory:"loading history…",eval:{noScenarios:"no scenarios declared — this node has no eval.md to measure.",noReadings:"no measurements yet — run `spex eval add` to file one. The declared scenarios:",staleAxes:({axes:e})=>`stale: ${e} moved since this eval`,staleLabel:"stale:",staleReadoutTitle:"this eval is behind — the axes that moved since it, and for the code axis which governed files drifted and by how many commits (+N)",danglingTitle:"this scenario was renamed or deleted — its remarks have no eval to attach to, but stay resolvable via their refs",danglingGone:"scenario gone",pass:"✓ pass",fail:"✗ fail",note:"≈ note",legacy:"legacy",expected:"expected:",noteLabel:"note:",loadingTranscript:"loading transcript…",loadingData:"loading data…",data:"structured data (JSON)",dataInvalid:"structured data — invalid JSON",miss:"miss original file — the evidence was pruned from the cache.",noImage:"no evidence — the agent attested without a capture.",shotAlt:({scenario:e})=>`captured evidence for ${e}`,openDetail:"open this scenario's eval detail page",passCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & passing`,failCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & failing`}},stats:{aria:"graph statistics",totalTitle:({n:e})=>`${e} spec node${e===1?"":"s"} in the tree`,statusTitle:({n:e,status:t})=>`${e} ${t} — click to walk them`,driftTitle:({n:e})=>`${e} node${e===1?"":"s"} whose code is ahead of its spec — click to walk them`,issueTitle:({n:e})=>`${e} distinct open issue${e===1?"":"s"} linked to the tree — click to walk the nodes carrying them`,scorePass:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & passing — click to walk the nodes carrying them`,scoreFail:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & failing — click to walk the nodes carrying them`,scoreStalePass:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale pass (code moved since the last passing measurement) — click to walk the nodes carrying them`,scoreStaleFail:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale fail (code moved since the last failing measurement) — click to walk the nodes carrying them`,scoreEmpty:({n:e})=>`${e} unmeasured or unscored scenario${e===1?"":"s"} (a blind spot) — click to walk the nodes carrying them`},score:{pass:"current pass — measured, fresh, and passing",fail:"current fail — measured, fresh, and failing",stalePass:"stale — last measured a pass, now out of date",staleFail:"stale — last measured a fail, now out of date",empty:"no current score — never measured, or no pass/fail verdict",missing:"not measured yet — no eval filed for this scenario",count:({satisfied:e,total:t,outstanding:n})=>`${e} of ${t} scenario${t===1?"":"s"} satisfied (fresh & passing)`+(n?` · ${n} outstanding — failing, stale, or unmeasured`:""),openList:"open the Evals list filtered to this node"},specNode:{liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,more:({n:e})=>`${e} more`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`${e} ahead`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?" (uncommitted)":""}`,openIssues:({n:e})=>`${e} open issue${e===1?"":"s"} — open node info to read them`,expandable:({n:e})=>`${e} child${e===1?"":"ren"} — focus to drill in`},nodeMenu:{menuLabel:"node actions",info:"node info",newSession:"new session",newChild:"new child node…",del:"delete node…"},session:{opsTitle:"nodes this session is changing — right-click for session actions",lockTitle:"right-click for session actions, including lock on graph",newSession:"New Session",newSessionTitle:"New Session (⌥+N)",searchTitle:"Search (⌘+/)",issuesOff:"The issues workflow is off.",issuesEmpty:"No issues yet.",issuesNoMatch:"No issues match this view.",issuesLoading:"loading issues…",issuesFocusNode:"focus this node on the graph",issuesReplies:({n:e})=>`${e} ${e===1?"reply":"replies"}`,issuesOpenOnStore:"Open on {store} ↗",issuesThreadsTitle:"threads",issuesStoreAll:"all",issuesStoreLabel:"store",issuesNew:"New",issuesCancel:"Cancel",issuesSend:"Send",issuesPost:"Post",issuesSending:"sending…",issuesPostFailed:"post failed",issuesClosing:"closing…",issuesCloseIssue:"Close issue",issuesCloseIssueTitle:"close this issue — the work is finished or the forge issue should be closed",issuesActing:"working…",issuesPromote:"Promote",issuesPromoteTitle:"promote this local issue to the forge — create the real forge issue first, then close the local thread with the permalink",issuesReplyPlaceholder:"reply…",issuesConcernPlaceholder:"concern — one line",issuesBodyPlaceholder:"details (optional)",inputPlaceholder:"describe the work · @ spec · / command · ⏎ to launch · ⇧⏎ newline",menuCommands:"commands",menuPresets:"command presets",menuSpecNodes:"spec nodes",menuSessions:"sessions",menuHint:"↑↓ pick · ⏎ insert",hint:{before:"type ",mid:" to reference a spec · ",after:" to apply a command preset"},harnessLabel:"agent launcher",launcherLabel:"launcher",launcherTip:"edit spexcode.json / spexcode.local.json to change launchers",tabTerminal:"terminal",tabMessages:"messages",tabConversation:"conversation",fullProcess:"complete process",backToConversation:"back to conversation",tabEval:"eval",tabEvalTitle:"open this session's evaluation on the Evals page",toolbarLabel:"session terminal toolbar",messagesToolbarLabel:"session message toolbar",conversationToolbarLabel:"session conversation toolbar",surfaceLabel:"current session surface",messagesLoading:"loading messages…",messagesEmpty:"waiting for messages…",messagesDisconnected:"message stream disconnected · reconnecting…",messagesUnavailable:"message stream unavailable",messagesYou:"you",messagesAssistant:"assistant",commandsLabel:"available session commands",evalLoading:"loading this session's eval summary",evalUnavailable:"this session's eval summary is unavailable",evalUpdating:({summary:e})=>`updating this session's eval summary — last known: ${e}`,evalDisconnected:({summary:e})=>e?`graph stream disconnected — last known: ${e}`:"graph stream disconnected — eval summary has no last-known value",evalFailedKnown:({summary:e})=>`eval summary update failed — last known: ${e}`,evalPass:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and passing`,evalFail:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and failing`,evalReview:({n:e})=>`${e} measured scenario${e===1?"":"s"} stale or unscored and needing review`,evalBlind:({n:e})=>`${e} declared scenario${e===1?"":"s"} not measured`,evalUnknown:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:o})=>`open this session's Evals page — ${e} fresh pass, ${t} fresh fail, ${n} need review, ${r} unmeasured, ${o} unknown`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"open Command Box for an atomic prompt or board command (Alt/Cmd+I)",commandClose:"close Command Box",commandPlaceholder:"Send an atomic prompt or run a board command",commandSend:"send from Command Box",relaunch:"relaunch",relaunchTitle:"relaunch and resume this session",merge:"merge",relaunchResume:"⏵ relaunch & resume",merges:({n:e})=>`merged ×${e}`,mergesTitle:"times merged to main",offlineMsg:"⏻ offline — no live process for this worktree.",offlineSubBefore:"the worktree and its session ",offlineSubAfter:" are intact. relaunch to resume the same conversation.",msgError:"⚠ not delivered — retry",attachTitle:"attach a file (or paste / drop) — uploaded to the session machine, its /tmp path inserted",attachError:"⚠ upload failed",cmd:{evalDesc:"open this session's Evals page — eval evidence, diff, merge gates",mergeTitle:"merge this session to main",mergeDesc:"merge this session to main",stopTitle:"stop this session (kill the agent, keep the worktree — resumable)",stopDesc:"stop — kill the agent + tmux but KEEP the worktree, so it can be resumed",closeTitle:"close this session (removes the worktree)",closeDesc:"close — remove the worktree + branch, discarding the work (= row menu → Close)"}},settings:{title:"settings",close:"close (esc or ,)",secLanguage:"language",secTheme:"theme",secTerminal:"terminal",terminalFontSize:"font size",secShortcuts:"shortcuts",bindPrompt:"press a key…",shortcutsHint:"click a key to rebind it. nav & chord keys are fixed. (a game controller binds to actions, not keys — rebinding here never touches the pad.)",reset:"reset to defaults"},search:{title:"search nodes, sessions, issues & scenarios",placeholder:"search nodes, sessions, issues, scenarios…",empty:"no match",hint:"↑↓ pick · ⏎ jump · esc close",kind:{spec:"node",session:"session",issue:"issue",scenario:"scenario"}},mobile:{specsTab:"specs",sessionsTab:"sessions",evalsTab:"evals",issuesTab:"issues",childrenTab:({n:e})=>`children ${e}`,liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,noSessions:"no live sessions — tap + above to start one",newSession:"new session",newPlaceholder:"describe the task for a new agent…",launch:"launch",launching:"launching…",launchFailed:"launch failed — the backend refused or is unreachable",back:"back",noEvents:"nothing recorded yet — status changes and messages will land here",asked:"original ask",you:"you",inputPlaceholder:"message the agent…",send:"send",sendFailed:"not delivered — the agent may be offline",offlineHint:"agent offline — messages cannot be delivered until it is relaunched"}},Op={common:{new:"新建",none:"无",idle:"空闲",sessions:"会话",session:"会话",loading:"加载中…",noVersions:"尚无版本——此规格即最新的事实依据。",cancel:"取消",save:"保存",close:"关闭"},status:{working:"工作中",idle:"空闲",offline:"离线",starting:"启动中",review:"待审查",done:"已完成","close-pending":"待关闭",parked:"驻留",error:"错误",asking:"待答",queued:"排队中",merged:"已合并",active:"进行中",drift:"偏移",pending:"待定"},sessionZone:{need:"待你处理",run:"自运行",offline:"离线"},nav:{railLabel:"主导航",graph:"规格节点图(⌥1)",sessions:"会话面板(⌥2)",evals:"Evals(⌥3 / ⌥F)",issues:"议题(⌥4)",settings:"设置(⌥5)",projectChip:"项目:{name} — 切换项目",allProjects:"全部项目"},projects:{title:"项目",count:"{n} 个项目",current:"当前",empty:"还没有项目 — 按仓库根路径添加一个,或在仓库里运行 `spex serve`,它的 backend 会自己注册到这里。",absent:"此部署只服务单个项目 — 这里没有多项目目录。",open:"打开",add:"添加项目",addTitle:"添加项目",addPlaceholder:"/仓库/根/绝对路径",addSubmit:"添加",addBusy:"添加中…",browseParent:"上级目录",browseHome:"主目录",browseGo:"前往",browseLoading:"加载中…",folderList:"文件夹",folderEmpty:"没有子目录",initGit:"初始化 Git 仓库",initSpex:"初始化 SpexCode",spexInitialized:"已初始化 SpexCode",harnessTargets:"harness 目标",alreadyAdded:"已在项目目录中",configTitle:"编辑 spexcode.json",configEditor:"spexcode.json 内容",configLoading:"加载中…",configSave:"保存",configSaving:"保存中…",configReload:"重新加载",configSaved:"已保存",configInvalid:"顶层内容必须是有效的 JSON 对象",gatewayIcon:"gateway 图标",projectIcon:"项目图标",editGatewayIcon:"编辑 gateway 图标",editProjectIcon:"编辑项目图标",gatewaySettings:"gateway 设置",iconSearch:"搜索图标",iconSources:"图标来源",iconSourceFeatured:"精选",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"品牌",iconSearching:"搜索中…",iconSearchEmpty:"没有匹配的图标",iconSearchFailed:"图标搜索暂不可用",setupTitle:"项目操作 — init / doctor",harnessLabel:"harness:",harnessRequired:"至少选择一个 harness 目标 — init 不会替你猜",init:"init",doctor:"doctor",running:"运行中…",start:"启动",startBusy:"启动中…",opOk:"{op}:exit 0 — 成功",opFail:"{op}:exit {code} — 失败",actionFailed:"gateway 拒绝了该请求",passwordTitle:"项目密码",passwordPlaceholder:"新的项目密码",passwordSet:"设置",passwordClear:"清除",adminPassword:"管理员密码",adminPasswordPlaceholder:"新的管理员密码",adminUngated:"尚未设置管理员密码 — 管理仅限本机。设置后即可远程登录;设置动作本身会保持你的登录态。",health:{probing:"检测中…",running:"运行中",unreachable:"不可达",stopped:"backend 已停止 — 可在此启动"}},credential:{adminTitle:"管理员登录",adminBody:"这是一个私有的 agent 工作台。输入管理员密码以管理项目。",projectTitle:"解锁 {name}",projectBody:"该项目受密码保护。输入访问密码以继续。",lockedTitle:"管理已锁定",lockedBody:"尚未配置管理员密码,远程管理已锁定。请在运行 gateway 的机器上设置密码,然后回到这里登录。",passwordLabel:"密码",wrong:"密码不正确 — 请重试。",failed:"登录失败 — gateway 未接受请求。",checking:"校验中…",unlock:"解锁"},hud:{helpTitle:"帮助 — 按键与图例(?)",loading:"正在从 git 加载规格…",loadError:"无法连接后端 —— 看板加载失败。",retry:"重试"},evalsFeed:{title:"评测",kind:{video:"视频",image:"图片",all:"全部"},summary:({n:e})=>`${e} 条当前`,datasetEmpty:"暂无评测。",noMatches:"当前视图没有匹配的评测。",annotate:"打开并标注",inSession:"由本会话测得",okdTip:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,okChip:({n:e})=>`${e} 已签核`,okChipTitle:"显示被默认隐藏的已签核场景",filedBy:({by:e})=>`由 ${e} 提交`,filedAt:({at:e})=>`${e}前提交`,sessionTag:"会话"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"全部",search:"搜索",searchIssues:"搜索 issues",searchEvals:"搜索 evals",clearSearch:"清除搜索",showing:({shown:e,total:t})=>`显示 ${e} / ${t} 条`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"当前",needsReview:"待人工复核",reviewed:"已人工复核",filters:"筛选",activeFilters:({n:e})=>`${e} 个已启用筛选`,facetStore:"存储",facetVerdict:"判定",facetFreshness:"新鲜度",facetKind:"证据",facetAuthor:"发起者",facetNode:"规格节点",facetFiler:"提交者",facetState:"状态",facetReview:"人工复核",facetSession:"来源会话",sessionPresent:"仍在",sessionMissing:"已不在",openedBy:({by:e})=>`由 ${e} 发起`,openedAt:({at:e})=>`${e}前发起`,verdict:{pass:"通过",fail:"未通过",unscored:"未评分"},freshness:{fresh:"最新",stale:"过期"},pagination:"分页",previous:"上一页",next:"下一页",prevPage:"上一页",nextPage:"下一页",page:({n:e})=>`第 ${e} 页`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`找不到 ${e} · ${t} 的评测`,issueNotFound:({id:e})=>`找不到 issue ${e}`,backToEvals:"← 全部评测",backToIssues:"← 全部 issues"},detail:{sideReading:"结果",sideFiler:"提交者",sideOk:"人工签核",sideStore:"存储",sideOriginator:"发起者",sideNodes:"规格节点",backToEvals:"返回评测列表",backToIssues:"返回 issues 列表",sideQueue:"继续查看",queuePrev:"前面",queueNext:"接下来",sideIssue:"议题",sideNode:"规格节点"},annotator:{title:"标注器",play:"播放",pause:"暂停",fullscreen:"全屏",exitFullscreen:"退出全屏",capturing:"正在截取画面…",failed:"失败 — 后端在跑吗?",comments:({n:e})=>e?`评审轨道(${e})`:"评审轨道",abOlder:"更早的 eval(‹ 靠近 A / 复现出的 bug)",abNewer:"更新的 eval(靠近 B / 验证过的修复 ›)",abLatest:"最新",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`更早的结果(${e})`,okd:"已签核",okBy:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,menuReview:"评审命令",cmd:{okDesc:"签核这条结果 — 你已复核并认可其判定;只绑定当前最新结果,单调(无撤销)"}},thread:{anchorNow:"锚定",anchorTitle:"把这条评论锚定到当前帧",mentionActor:"插入 @ —— 提及会话或召唤新工作者",mentionNode:"插入 [[ —— 引用规格节点",reviewCommands:"插入 / —— 评审命令",resolved:"已解决",resolvedBy:"由 {by} 解决",openRemark:"未解决",resolve:"解决",resolveTitle:"解决此评注 —— 第二人的判定(单调:不可撤销解决)",retract:"撤回",retractTitle:"撤回你自己未解决的评注 —— 从线程中移除",anchorDegraded:"该步骤已不在当前测量中——此 m:ss 为原始冻结值,无法跳转",originatorIssue:"打开发起此 issue 的会话:{by}",originatorEval:"打开记录此评测的会话:{by}"},sessionEval:{btn:"评测",btnTitle:"打开此会话的评测页 —— 测得的评测证据与合并门禁(Evals 页会话视角)",scopeDoor:"返回会话终端",none:"此会话暂无评测",unavailable:"会话模型成功加载前无法显示评测。",loadFailed:({reason:e})=>`会话评测加载失败 — ${e}`,export:"导出",exportTitle:"导出本次评测为自包含的 HTML 报告",empty:"该会话尚无测量。",unmeasured:"未测量",unknownCoverage:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`},time:{justNow:"刚刚",minutes:({n:e})=>`${e} 分钟`,hours:({n:e})=>`${e} 小时`,days:({n:e})=>`${e} 天`,weeks:({n:e})=>`${e} 周`},legend:{title:"帮助 · 按键与图例",close:"关闭(esc 或 ?)",secBoard:"面板按键",secPopup:"节点信息弹窗",secStatus:"状态点",secOp:"叠加操作",secOpSub:"(工作树的待定改动)",secBadges:"徽标",secRing:"节点边框",graph:{move:"在聚焦列内上/下移动(同级节点)",parent:"前往父节点",child:"前往最近的子节点",zoom:"放大 / 缩小 · 重置为概览",info:"打开节点信息弹窗(或双击节点)",search:"跨节点、会话、议题与场景搜索并跳转",overlayCycle:"在工作树正在修改的节点间循环(⇧ 反向)",fresh:"在聚焦节点上开启一个全新会话",evals:"打开 evals 页(项目当前的实测损失)",newChild:"在聚焦节点下新建子节点(连击)",del:"删除聚焦节点(连击)",settings:"打开设置(语言…)",help:"打开此帮助"},popup:{switch:"切换页签(规格 / 历史)",scroll:"滚动 · 展开下一版本",lens:"穿透弹窗在树上移动——弹窗跟随焦点",enter:"无操作——弹窗是纯阅读界面",esc:"关闭弹窗"},statusRows:{merged:"规格与代码一致",active:"进行中——状态点会闪动",drift:"受管代码领先于其规格",pending:"尚无已提交的版本"},opRows:{added:"新增",edited:"编辑",deleted:"删除",moved:"移动"},badgeDrift:"偏移:代码领先于规格 N 次提交",badgeVer:"版本:该节点 spec.md 的 N 次内容提交",ringDashed:"虚线 = 未提交的叠加",ringSolid:"实线 = 已提交;边框颜色 = 作者会话",ringGhost:"半透明“幽灵” = 尚未进入 main 的新增节点"},sessionWindow:{menuLabel:"会话操作",rowTitle:"单击将图锁定到此会话 · 双击打开它",lockedTitle:"图已锁定到此会话——再次单击解除",emptyBefore:"没有活动的工作树——按 ",emptyAfter:" 开始一个",lock:"锁定到图谱",rename:"重命名",attach:"在终端中打开…",select:"多选…",close:"关闭",closeTitle:"关闭“{name}”?",closeConfirm:"这将关闭会话并删除其工作树。任何未提交的更改都会丢失。",renameTitle:"重命名“{name}”",renamePlaceholder:"显示名称(留空以重置)",attachTitle:"接入“{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"复制",attachCopied:"已复制"},sessionSelect:{selected:({n:e})=>`已选 ${e} 个`,close:"关闭",closeTitle:({n:e})=>`关闭 ${e} 个会话?`,closeConfirm:"这将关闭每个选中的会话并删除其工作树。任何未提交的更改都会丢失。"},lockHint:{cycleBefore:"按 ",cycleNext:" 下一个",cyclePrev:" 上一个",cycleAfter:({n:e})=>`,浏览此会话更改的 ${e} 个节点`,singleChanged:"此会话更改了 1 个节点",empty:"此会话没有待处理的规格更改",release:"解除",releaseTitle:"解除锁定(或再次单击该会话)"},nodeView:{paneSpec:"规格",paneHistory:"历史",paneIssues:"issue",paneEval:"评测",paneEdit:"改动",filterIssues:"筛选 issue…",filterScenarios:"筛选场景…",filterNone:"没有匹配的条目。",noEdit:"暂无进行中的改动 —— 此节点没有正在编辑的会话。",editCommitted:"已提交",editDirty:"未提交",pendingEdits:({n:e})=>`${e} 个会话正在编辑此节点`,openIssues:({n:e})=>`${e} 个待办`,closedIssues:({n:e})=>`${e} 个已关闭`,noIssues:"尚无关联到此节点的 issue。",hint:"←→/hl/tab 切换 · j/k/↑↓ 滚动 · ⇧+方向 树上移动 · esc 返回",statusLabel:"状态:",versionLabel:"版本:",lastEditedBy:"最后编辑者:",governs:"// 管辖",proseNode:"// 无管辖文件 · 纯文档节点",rawTitle:"原始来源",rawOwner:"人工",rawNote:"极少改动 · 需要审批",expandedTitle:"展开规格",expandedOwner:"智能体",expandedNote:"经常更新版本 · 须与原始来源一致",filesChanged:({n:e})=>`改动 ${e} 个文件`,loadingChange:"正在加载差异…",noChange:"尚无记录的改动——此规格即最新的事实依据。",diffLabel:"规格行差异",loadingHistory:"正在加载历史…",eval:{noScenarios:"尚未声明场景 —— 此节点没有可测量的 eval.md。",noReadings:"尚无测量 —— 运行 `spex eval add` 归档一次。已声明的场景:",staleAxes:({axes:e})=>`已过期:自本次读取以来 ${e} 已变动`,staleLabel:"已过期:",staleReadoutTitle:"这条读取已落后——列出自它以来变动的轴;对于 code 轴,还显示是哪些受管文件漂移了、以及落后了几个提交(+N)",danglingTitle:"该场景已被重命名或删除——其评注无读取可依附,但仍可通过 ref 解决",danglingGone:"场景已失",pass:"✓ 通过",fail:"✗ 未通过",note:"≈ 备注",legacy:"旧版",expected:"预期:",noteLabel:"备注:",loadingTranscript:"正在加载文本记录…",loadingData:"正在加载数据…",data:"结构化数据(JSON)",dataInvalid:"结构化数据 —— 无效 JSON",miss:"原始文件缺失 —— 证据已从缓存中清除。",noImage:"无证据 —— 代理未捕获即作出判定。",shotAlt:({scenario:e})=>`${e} 的捕获证据`,openDetail:"打开该场景的 eval 详情页",passCount:({n:e})=>`${e} 个场景最新且通过`,failCount:({n:e})=>`${e} 个场景最新且未通过`}},stats:{aria:"看板统计",totalTitle:({n:e})=>`树中共有 ${e} 个规格节点`,statusTitle:({n:e,status:t})=>`${e} 个${t} —— 点击逐个走查`,driftTitle:({n:e})=>`${e} 个节点的代码领先于其规格 —— 点击逐个走查`,issueTitle:({n:e})=>`链接到树上的不同未关闭议题共 ${e} 个 —— 点击逐个走查承载它们的节点`,scorePass:({n:e})=>`${e} 个场景测量为最新且通过 —— 点击逐个走查承载它们的节点`,scoreFail:({n:e})=>`${e} 个场景测量为最新且未通过 —— 点击逐个走查承载它们的节点`,scoreStalePass:({n:e})=>`${e} 个场景为过期通过(最近一次通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreStaleFail:({n:e})=>`${e} 个场景为过期未通过(最近一次未通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreEmpty:({n:e})=>`${e} 个场景未测量或未评分(盲点)—— 点击逐个走查承载它们的节点`},score:{pass:"当前通过 —— 已测量、最新且通过",fail:"当前未通过 —— 已测量、最新且未通过",stalePass:"已过期 —— 上次测量为通过,现已过时",staleFail:"已过期 —— 上次测量为未通过,现已过时",empty:"暂无当前评分 —— 从未测量,或无通过/未通过判定",missing:"尚未测量 —— 该场景还没有任何读数",count:({satisfied:e,total:t,outstanding:n})=>`${t} 个场景中有 ${e} 个已满足(最新且通过)`+(n?` · ${n} 个待处理 —— 未通过、已过期或未测量`:""),openList:"打开该节点的 Evals 过滤列表"},specNode:{liveEditors:({n:e})=>`${e} 个实时编辑者`,more:({n:e})=>`还有 ${e} 个`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`领先 ${e}`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?"(未提交)":""}`,openIssues:({n:e})=>`${e} 个待办 issue——打开节点信息查看`,expandable:({n:e})=>`${e} 个子节点——聚焦展开`},nodeMenu:{menuLabel:"节点操作",info:"查看详情",newSession:"新建会话",newChild:"新建子节点…",del:"删除节点…"},session:{opsTitle:"此会话正在改动的节点 —— 右键打开会话操作",lockTitle:"右键打开会话操作,包括锁定到图谱",newSession:"新建会话",newSessionTitle:"新建会话(⌥+N)",searchTitle:"搜索(⌘+/)",issuesOff:"issues 工作流已关闭。",issuesEmpty:"暂无 issue。",issuesNoMatch:"当前视图没有匹配的 issue。",issuesLoading:"正在加载 issues……",issuesFocusNode:"在看板上聚焦此节点",issuesReplies:({n:e})=>`${e} 条回复`,issuesOpenOnStore:"在 {store} 上打开 ↗",issuesThreadsTitle:"讨论帖",issuesStoreAll:"全部",issuesStoreLabel:"来源",issuesNew:"新建",issuesCancel:"取消",issuesSend:"发送",issuesPost:"发布",issuesSending:"发送中……",issuesPostFailed:"发布失败",issuesClosing:"关闭中……",issuesCloseIssue:"关闭 issue",issuesCloseIssueTitle:"关闭此 issue —— 工作已完成,或真实 forge issue 应被关闭",issuesActing:"处理中……",issuesPromote:"升级",issuesPromoteTitle:"升级到 forge —— 先创建真实 forge issue,再用永久链接关闭本地线程",issuesReplyPlaceholder:"回复……",issuesConcernPlaceholder:"关切 —— 一行概述",issuesBodyPlaceholder:"详情(可选)",inputPlaceholder:"描述工作 · @ 规格 · / 命令 · ⏎ 启动 · ⇧⏎ 换行",menuCommands:"命令",menuPresets:"命令预设",menuSpecNodes:"规格节点",menuSessions:"会话",menuHint:"↑↓ 选择 · ⏎ 插入",hint:{before:"输入 ",mid:" 以引用规格 · ",after:" 以套用命令预设"},harnessLabel:"启动智能体",launcherLabel:"启动器",launcherTip:"修改 spexcode.json / spexcode.local.json 来配置启动器",tabTerminal:"终端",tabMessages:"消息",tabConversation:"对话",fullProcess:"完整过程",backToConversation:"返回对话",tabEval:"评测",tabEvalTitle:"打开此会话在 Evals 页的评测",toolbarLabel:"会话终端工具栏",messagesToolbarLabel:"会话消息工具栏",conversationToolbarLabel:"会话对话工具栏",surfaceLabel:"当前会话界面",messagesLoading:"正在加载消息……",messagesEmpty:"正在等待消息……",messagesDisconnected:"消息流已断开 · 正在重连……",messagesUnavailable:"消息流不可用",messagesYou:"你",messagesAssistant:"助手",commandsLabel:"当前可用的会话命令",evalLoading:"正在载入此会话的评测概况",evalUnavailable:"此会话的评测概况不可用",evalUpdating:({summary:e})=>`正在更新此会话的评测概况 — 上次已知:${e}`,evalDisconnected:({summary:e})=>e?`图数据流已断开 — 上次已知:${e}`:"图数据流已断开 — 尚无评测概况",evalFailedKnown:({summary:e})=>`评测概况更新失败 — 上次已知:${e}`,evalPass:({n:e})=>`${e} 个场景为新鲜通过`,evalFail:({n:e})=>`${e} 个场景为新鲜失败`,evalReview:({n:e})=>`${e} 个已评测场景已过期或未评分,需人工复核`,evalBlind:({n:e})=>`${e} 个已声明场景尚未评测`,evalUnknown:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:o})=>`打开此会话的 Evals 页 — 新鲜通过 ${e},新鲜失败 ${t},待人工复核 ${n},未评测 ${r},覆盖未知 ${o}`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"打开 Command Box,发送完整指令或执行面板命令(Alt/Cmd+I)",commandClose:"关闭 Command Box",commandPlaceholder:"发送完整指令或执行面板命令",commandSend:"从 Command Box 发送",relaunch:"重新启动",relaunchTitle:"重新启动并恢复此会话",merge:"合并",relaunchResume:"⏵ 重新启动并恢复",merges:({n:e})=>`已合并 ×${e}`,mergesTitle:"合并到 main 的次数",offlineMsg:"⏻ 离线——此工作树没有活动进程。",offlineSubBefore:"工作树及其会话 ",offlineSubAfter:" 仍然完好。重新启动以恢复同一对话。",msgError:"⚠ 未送达 — 重试",attachTitle:"附加文件(或粘贴 / 拖入)—— 上传到会话所在机器,并插入其 /tmp 路径",attachError:"⚠ 上传失败",cmd:{evalDesc:"切换到此会话的评测页 —— 评测证据、改动、合并门禁",mergeTitle:"将此会话合并到 main",mergeDesc:"将此会话合并到 main",stopTitle:"停止此会话(结束智能体,保留工作树 —— 可恢复)",stopDesc:"停止 —— 结束智能体与 tmux,但保留工作树,之后可恢复",closeTitle:"关闭此会话(移除工作树)",closeDesc:"关闭 —— 移除工作树与分支,丢弃此工作(等同右键菜单 → 关闭)"}},settings:{title:"设置",close:"关闭(esc 或 ,)",secLanguage:"语言",secTheme:"主题",secTerminal:"终端",terminalFontSize:"字体大小",secShortcuts:"快捷键",bindPrompt:"按一个键…",shortcutsHint:"点击某个键即可重绑定。导航键与连击键固定不可改。(手柄绑定的是动作而非按键——这里的重绑定不影响手柄。)",reset:"恢复默认"},search:{title:"搜索节点、会话、议题与场景",placeholder:"搜索节点、会话、议题、场景…",empty:"没有匹配项",hint:"↑↓ 选择 · ⏎ 跳转 · esc 关闭",kind:{spec:"节点",session:"会话",issue:"议题",scenario:"场景"}},mobile:{specsTab:"规格",sessionsTab:"会话",evalsTab:"评测",issuesTab:"issues",childrenTab:({n:e})=>`子节点 ${e}`,liveEditors:({n:e})=>`${e} 个在线编辑者`,noSessions:"没有运行中的会话 —— 点上方 + 新建",newSession:"新建会话",newPlaceholder:"描述要交给新 agent 的任务…",launch:"启动",launching:"启动中…",launchFailed:"启动失败 —— 后端拒绝或不可达",back:"返回",noEvents:"暂无记录 —— 状态变化和消息会出现在这里",asked:"初始任务",you:"我",inputPlaceholder:"给 agent 发消息…",send:"发送",sendFailed:"未送达 —— agent 可能已离线",offlineHint:"agent 已离线 —— 需要重新拉起后消息才能送达"}},ts={en:Xs,zh:Op},Fc="spexcode.lang",Dh=[{code:"en",label:"English"},{code:"zh",label:"中文"}];function Fp(){return(typeof navigator<"u"&&navigator.language||"en").toLowerCase().startsWith("zh")?"zh":"en"}function Dp(){try{const e=localStorage.getItem(Fc);if(e&&ts[e])return e}catch{}return Fp()}function ha(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Ap(e,t){return t?e.replace(/\{(\w+)\}/g,(n,r)=>t[r]!=null?t[r]:`{${r}}`):e}function Up(e,t,n){let r=ha(e,t);return r===void 0&&(r=ha(Xs,t)),typeof r=="function"?r(n||{}):typeof r=="string"?Ap(r,n):t}const Dc=M.createContext(null);function Bp({children:e}){const[t,n]=M.useState(Dp);M.useEffect(()=>{try{document.documentElement.lang=t}catch{}},[t]);const r=M.useCallback(l=>{if(ts[l]){try{localStorage.setItem(Fc,l)}catch{}n(l)}},[]),o=M.useMemo(()=>{const l=ts[t]||Xs;return{lang:t,setLang:r,t:(s,i)=>Up(l,s,i)}},[t,r]);return u.jsx(Dc.Provider,{value:o,children:e})}function Hp(){const e=M.useContext(Dc);if(!e)throw new Error("useI18n must be used within <I18nProvider>");return e}function qs(){return Hp().t}const Vp={plus:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M5 12h14"}),u.jsx("path",{d:"M12 5v14"})]})},x:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M18 6 6 18"}),u.jsx("path",{d:"m6 6 12 12"})]})},"chevron-left":{node:u.jsx("path",{d:"m15 18-6-6 6-6"}),sw:2},"arrow-left":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m12 19-7-7 7-7"}),u.jsx("path",{d:"M19 12H5"})]}),sw:2},"chevron-right":{node:u.jsx("path",{d:"m9 18 6-6-6-6"}),sw:2},"chevron-down":{node:u.jsx("path",{d:"m6 9 6 6 6-6"}),sw:2},check:{node:u.jsx("path",{d:"M20 6 9 17l-5-5"}),sw:2},blank:{node:null},"circle-check":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m4.8 8 2 2L11.5 5.5"})]})},"circle-x":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m5.4 5.4 5.2 5.2"}),u.jsx("path",{d:"m10.6 5.4-5.2 5.2"})]})},"circle-minus":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"M4.8 8h6.4"})]})},"circle-dashed":{vb:16,sw:1.5,node:u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"})},ellipsis:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor",stroke:"none"})]})},"message-square":{node:u.jsx(u.Fragment,{children:u.jsx("path",{d:"M21 15a3 3 0 0 1-3 3H8l-5 3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3Z"})})},send:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m5 12 7-7 7 7"}),u.jsx("path",{d:"M12 19V5"})]}),sw:2},download:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 15V3"}),u.jsx("path",{d:"m7 10 5 5 5-5"}),u.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"})]})},clock:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 6v6l4 2"})]})},search:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("path",{d:"m21 21-4.3-4.3"})]})},filter:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M4 6h16"}),u.jsx("path",{d:"M7 12h10"}),u.jsx("path",{d:"M10 18h4"})]})},info:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 16v-4"}),u.jsx("path",{d:"M12 8h.01"})]}),sw:2},pencil:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 20h9"}),u.jsx("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})},terminal:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m4 17 6-6-6-6"}),u.jsx("path",{d:"M12 19h8"})]}),sw:2},command:{node:u.jsx("path",{d:"M18 9a3 3 0 1 0-3-3v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3Z"})},keyboard:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),u.jsx("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M8 12h.01M12 12h.01M16 12h.01M7 16h10"})]})},"git-merge":{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"6",cy:"6",r:"3"}),u.jsx("circle",{cx:"18",cy:"18",r:"3"}),u.jsx("path",{d:"M6 21V9a9 9 0 0 0 9 9"})]})},"rotate-ccw":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),u.jsx("path",{d:"M3 3v5h5"})]})},"list-checks":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m3 7 2 2 4-4"}),u.jsx("path",{d:"m3 17 2 2 4-4"}),u.jsx("path",{d:"M13 6h8"}),u.jsx("path",{d:"M13 12h8"}),u.jsx("path",{d:"M13 18h8"})]})},trash:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 6h18"}),u.jsx("path",{d:"M8 6V4h8v2"}),u.jsx("path",{d:"M19 6l-1 14H6L5 6"}),u.jsx("path",{d:"M10 11v5"}),u.jsx("path",{d:"M14 11v5"})]})},play:{node:u.jsx("path",{d:"M6 3.5 19.5 12 6 20.5Z"})},pause:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),u.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]})},settings:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},graph:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"6.5",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"1.8",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"11.8",width:"5",height:"4.4",rx:"1"}),u.jsx("path",{d:"M6.5 8.7 h2.2 M11.5 4 h-1.3 q-1.5 0-1.5 1.5 v7 q0 1.5 1.5 1.5 h1.3"})]})},sessions:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M4.6 6.5 l2.6 2.3 -2.6 2.3 M9 12.4 h4"})]})},evals:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 15.5 v-11"}),u.jsx("path",{d:"M2.5 15.5 h13"}),u.jsx("rect",{x:"4.6",y:"10",width:"2.6",height:"3.5",rx:"0.5"}),u.jsx("rect",{x:"8.7",y:"7",width:"2.6",height:"6.5",rx:"0.5"}),u.jsx("path",{d:"M13 6 l1.4 1.4 L16.5 3.6"})]})},issues:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 3.5 h13 v8.4 h-7 l-3.6 3 v-3 h-2.4 z"}),u.jsx("path",{d:"M5.4 6.7 h7.2 M5.4 9.2 h4.8"})]})},projects:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M9 2.2 16 5.8 9 9.4 2 5.8Z"}),u.jsx("path",{d:"M2 9.4 9 13 16 9.4"}),u.jsx("path",{d:"M2 12.8 9 16.4 16 12.8"})]})},"issue-opened":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),u.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"})]})},"issue-closed":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),u.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"})]})},lock:{vb:16,sw:1.3,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1.2"}),u.jsx("path",{d:"M5.5 7 V5 a2.5 2.5 0 0 1 5 0 V7"})]})},paperclip:{vb:16,sw:1.3,node:u.jsx("path",{d:"M12.5 7.2 L7 12.6 a2.6 2.6 0 0 1-3.7-3.7 L9 3.2 a1.7 1.7 0 0 1 2.4 2.4 L5.8 11.2 a0.8 0.8 0 0 1-1.2-1.2 L9.7 5"})},loader:{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.3"}),u.jsx("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5"})]})},maximize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2 6V2h4"}),u.jsx("path",{d:"M14 6V2h-4"}),u.jsx("path",{d:"M2 10v4h4"}),u.jsx("path",{d:"M14 10v4h-4"})]})},minimize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 2v4H2"}),u.jsx("path",{d:"M10 2v4h4"}),u.jsx("path",{d:"M6 14v-4H2"}),u.jsx("path",{d:"M10 14v-4h4"})]})}};function bs({name:e,size:t=16,strokeWidth:n,className:r,style:o}){const l=Vp[e];if(!l)throw new Error(`unknown icon: ${e}`);const s=l.vb||24;return u.jsx("svg",{width:t,height:t,viewBox:`0 0 ${s} ${s}`,fill:l.fill??"none",stroke:l.stroke??"currentColor",strokeWidth:n??l.sw??1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:r,style:o,children:l.node})}function Wp({icon:e,label:t,onClick:n,className:r,size:o,iconClassName:l,...s}){return u.jsx("button",{type:"button",className:r,"data-tip":t,"aria-label":t,onClick:n,...s,children:u.jsx(bs,{name:e,size:o,className:l})})}const Ah=()=>u.jsx("svg",{className:"si-agent-glyph",viewBox:"0 0 24 24","aria-hidden":"true",children:u.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})}),Uh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 160 160","aria-hidden":"true",children:[u.jsx("path",{d:"M135 80C135 49.6243 110.376 25 80 25C49.6243 25 25 49.6243 25 80C25 110.376 49.6243 135 80 135V149C41.8924 149 11 118.108 11 80C11 41.8924 41.8924 11 80 11C118.108 11 149 41.8924 149 80C149 118.108 118.108 149 80 149V135C110.376 135 135 110.376 135 80Z"}),u.jsx("path",{d:"M50.9235 54.3903C54.0216 52.577 58.0026 53.6185 59.8161 56.7165L70.9294 75.7009C72.6642 78.6649 72.6642 82.3345 70.9294 85.2985L59.8161 104.283C58.0026 107.381 54.0216 108.422 50.9235 106.609C47.8255 104.796 46.784 100.815 48.5973 97.7165L58.6745 80.4997L48.5973 63.2829C46.784 60.1848 47.8255 56.2038 50.9235 54.3903Z"}),u.jsx("path",{d:"M112 89.5C115.59 89.5 118.5 92.4101 118.5 96C118.5 99.5899 115.59 102.5 112 102.5H85C81.4101 102.5 78.5 99.5899 78.5 96C78.5 92.4101 81.4101 89.5 85 89.5H112Z"})]}),Bh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 240 300","aria-hidden":"true",children:[u.jsx("path",{d:"M180 240H60V120H180V240Z",opacity:"0.35"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z"})]}),Hh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 45 45","aria-hidden":"true",children:[u.jsx("path",{fillRule:"evenodd",d:"M9.3 9.3h19.8v13.2h-6.6v6.6H15.9v6.6H9.3Zm6.6 6.6v6.6h6.6v-6.6Z"}),u.jsx("path",{d:"M29.1 22.5h6.6v13.2h-6.6Z"})]});function ma({scope:e,projectLabel:t,locked:n,onUnlocked:r}){const o=qs(),[l,s]=M.useState(""),[i,a]=M.useState(!1),[d,g]=M.useState(null),m=e==="admin",h=async w=>{if(w.preventDefault(),!l||i)return;a(!0),g(null);const y=await Rp(m?"admin":{projectId:e.projectId},l);a(!1),y.ok?(s(""),r()):g(y.error==="wrong-password"?o("credential.wrong"):o("credential.failed"))};return u.jsx("div",{className:"cred-wrap",children:u.jsxs("form",{className:"cred-card",onSubmit:h,children:[u.jsx("div",{className:"cred-brand",children:"$ spexcode"}),u.jsxs("div",{className:"cred-title",children:[u.jsx(bs,{name:"lock",size:14,className:"cred-lock"}),n?o("credential.lockedTitle"):m?o("credential.adminTitle"):o("credential.projectTitle",{name:t||e&&e.projectId||""})]}),n?u.jsx("p",{className:"cred-sub",children:o("credential.lockedBody")}):u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"cred-sub",children:o(m?"credential.adminBody":"credential.projectBody")}),d&&u.jsx("div",{className:"cred-err",children:d}),u.jsx("input",{className:"cred-input",type:"password",autoFocus:!0,required:!0,placeholder:"••••••••••","aria-label":o("credential.passwordLabel"),value:l,onChange:w=>s(w.target.value)}),u.jsx("button",{className:"cred-submit",type:"submit",disabled:i||!l,children:o(i?"credential.checking":"credential.unlock")})]})]})})}const ga="(max-width: 640px)";function Qp(){const[e,t]=M.useState(()=>typeof window<"u"&&window.matchMedia(ga).matches);return M.useEffect(()=>{const n=window.matchMedia(ga),r=()=>t(n.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const hn="spexcode",Gp="gateway",ei=Object.freeze([{id:"spexcode",label:"SpexCode",bg:"#166534",fg:"#f0fdf4",shapes:[{tag:"circle",cx:12,cy:6.2,r:2.2},{tag:"circle",cx:6.2,cy:17.5,r:2},{tag:"circle",cx:17.8,cy:17.5,r:2},{tag:"path",d:"M12 8.4v2.1c0 2.2-5.8 1.8-5.8 5"},{tag:"path",d:"M12 10.5c0 2.2 5.8 1.8 5.8 5"}]},{id:"gateway",label:"Gateway",bg:"#155e75",fg:"#ecfeff",shapes:[{tag:"path",d:"m12 3 8 4.2-8 4.2-8-4.2Z"},{tag:"path",d:"m4 11.2 8 4.2 8-4.2"},{tag:"path",d:"m4 15.2 8 4.2 8-4.2"}]},{id:"mdi:rocket-launch",label:"Rocket",bg:"#9f1239",fg:"#fff1f2",shapes:[{tag:"path",d:"M14.5 5.2c2.2-2.2 4.8-2 5.3-1.8.2.5.4 3.1-1.8 5.3l-5.5 5.5-4.2-4.2Z"},{tag:"path",d:"m11.2 6.8-4.1.6-2.5 2.5 4.1.7"},{tag:"path",d:"m16.4 12-1 4.7-2.5 2.5-.7-4.1"},{tag:"circle",cx:16.1,cy:7.1,r:1.2},{tag:"path",d:"M7.6 14.6c-2.2.4-3.4 1.6-3.6 3.8 2.2-.2 3.4-1.4 3.8-3.6"}]},{id:"compass",label:"Compass",bg:"#1d4ed8",fg:"#eff6ff",shapes:[{tag:"circle",cx:12,cy:12,r:8.5},{tag:"path",d:"m15.2 8.8-1.8 4.6-4.6 1.8 1.8-4.6Z"}]},{id:"terminal",label:"Terminal",bg:"#3f3f46",fg:"#fafafa",shapes:[{tag:"rect",x:3.5,y:4.5,width:17,height:15,rx:2},{tag:"path",d:"m7 9 3 3-3 3"},{tag:"path",d:"M12.5 15H17"}]},{id:"package",label:"Package",bg:"#6d28d9",fg:"#f5f3ff",shapes:[{tag:"path",d:"m12 3 8 4.5v9L12 21l-8-4.5v-9Z"},{tag:"path",d:"m4.3 7.7 7.7 4.4 7.7-4.4"},{tag:"path",d:"M12 12.1V21"}]},{id:"database",label:"Database",bg:"#a16207",fg:"#fefce8",shapes:[{tag:"ellipse",cx:12,cy:6,rx:7.5,ry:3},{tag:"path",d:"M4.5 6v6c0 1.7 3.4 3 7.5 3s7.5-1.3 7.5-3V6"},{tag:"path",d:"M4.5 12v6c0 1.7 3.4 3 7.5 3s7.5-1.3 7.5-3v-6"}]},{id:"spark",label:"Spark",bg:"#c2410c",fg:"#fff7ed",shapes:[{tag:"path",d:"m12 3 1.5 5.2L19 10l-5.5 1.8L12 17l-1.5-5.2L5 10l5.5-1.8Z"},{tag:"path",d:"m18.5 15 .7 2.2 2.3.8-2.3.8-.7 2.2-.7-2.2-2.3-.8 2.3-.8Z"}]}]),Kp=new Map(ei.map(e=>[e.id,e])),Zp=/^[a-z0-9-]+[:/][a-z0-9-]+$/i,Ac=new Map([["rocket","mdi:rocket-launch"],["mdi/rocket-launch","mdi:rocket-launch"],["layers","gateway"],["default","spexcode"]]);Object.freeze(ei.map(e=>e.id));function Yp(e,t=hn){const n=typeof e=="string"?e.trim():"";return Ac.get(n)||n||t}function bn(e){const t=typeof e=="string"?e.trim():"";return Kp.get(Ac.get(t)||t)||null}function co(e){return Zp.test(typeof e=="string"?e.trim():"")}function Jp(e){return Object.entries(e).filter(([t])=>t!=="tag").map(([t,n])=>`${t==="className"?"class":t}="${String(n).replaceAll("&","&").replaceAll('"',""")}"`).join(" ")}function Xp(e,t=hn){const n=bn(e)||bn(t),r=n.shapes.map(o=>`<${o.tag} ${Jp(o)}/>`).join("");return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="1" y="1" width="22" height="22" rx="5" fill="${n.bg}"/><g fill="none" stroke="${n.fg}" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${r}</g></svg>`}function Dr(e,t=hn){const n=Yp(e,t);if(bn(n))return`data:image/svg+xml,${encodeURIComponent(Xp(n,t))}`;if(/^https?:\/\//.test(n))return n;if(co(n))return`https://api.iconify.design/${n.replace(":","/")}.svg`;const r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y=".86em" font-size="82" text-anchor="middle">${n.replaceAll("&","&").replaceAll("<","<")}</text></svg>`;return`data:image/svg+xml,${encodeURIComponent(r)}`}const qp=Dr,il=[{id:"featured",label:"projects.iconSourceFeatured"},{id:"material",label:"projects.iconSourceMaterial",prefixes:"mdi,material-symbols"},{id:"lucide",label:"projects.iconSourceLucide",prefixes:"lucide"},{id:"tabler",label:"projects.iconSourceTabler",prefixes:"tabler"},{id:"phosphor",label:"projects.iconSourcePhosphor",prefixes:"ph"},{id:"brands",label:"projects.iconSourceBrands",prefixes:"simple-icons"}],bp=e=>e.split("-").filter(Boolean).map(t=>{var n;return((n=t[0])==null?void 0:n.toUpperCase())+t.slice(1)}).join(" ");function va(e,t={}){var l;const n=e.replace("/",":"),[r,o]=n.split(":");return{id:n,label:bp(o),source:((l=t[r])==null?void 0:l.name)||r}}function ya({icon:e,fallback:t=hn,size:n=24,className:r,label:o}){const l=bn(e);return!l&&co(e)?u.jsx("span",{className:r?`identity-iconify ${r}`:"identity-iconify",style:{width:n,height:n,maskImage:`url("${Dr(e,t)}")`,WebkitMaskImage:`url("${Dr(e,t)}")`},role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0}):l?u.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",className:r,role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0,children:[u.jsx("rect",{x:"1",y:"1",width:"22",height:"22",rx:"5",fill:l.bg}),u.jsx("g",{fill:"none",stroke:l.fg,strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:l.shapes.map(({tag:s,...i},a)=>u.jsx(s,{...i},a))})]}):u.jsx("img",{width:n,height:n,src:Dr(e,t),className:r,alt:o||"","aria-hidden":o?void 0:!0})}function Vh({value:e,onChange:t,label:n,editLabel:r,name:o,fallback:l=hn,disabled:s=!1}){const i=qs(),[a,d]=M.useState(!1),[g,m]=M.useState(""),[h,w]=M.useState("featured"),[y,k]=M.useState({state:"idle",choices:[]}),$=M.useId(),f=bn(e),c=il.find(x=>x.id===h)||il[0];M.useEffect(()=>{if(!a)return;const x=g.trim(),F=x.length>=2?x:h==="featured"?"":"project";if(!F){k({state:"idle",choices:[]});return}const _=new AbortController;k({state:"loading",choices:[]});const ge=setTimeout(async()=>{try{const Oe=new URLSearchParams({query:F,limit:"48"});c.prefixes&&Oe.set("prefixes",c.prefixes);const He=await fetch(`https://api.iconify.design/search?${Oe}`,{signal:_.signal});if(!He.ok)throw new Error(`Iconify search answered ${He.status}`);const Ft=await He.json();if(!Array.isArray(Ft.icons))throw new Error("Iconify search returned an invalid response");k({state:"ready",choices:Ft.icons.filter(co).map(_o=>va(_o,Ft.collections))})}catch(Oe){Oe.name!=="AbortError"&&k({state:"error",choices:[]})}},220);return()=>{clearTimeout(ge),_.abort()}},[a,g,h,c.prefixes]);const p=()=>{d(!1),m(""),w("featured"),k({state:"idle",choices:[]})},v=async x=>{await t(x)!==!1&&p()},j=g.trim().toLowerCase(),C=ei.filter(x=>!j||x.label.toLowerCase().includes(j)||x.id.includes(j)).map(x=>({id:x.id,label:x.label,source:""}));let E=y.state==="ready"?y.choices:h==="featured"?C:[];return co(e)&&!E.some(x=>x.id===e.replace("/",":"))&&(E=[va(e),...E]),u.jsxs("div",{className:a?"identity-control open":"identity-control",children:[u.jsxs("div",{className:"identity-disclosure",children:[u.jsx(ya,{icon:e,fallback:l,size:26,label:`${n}: ${(f==null?void 0:f.label)||e||l}`}),u.jsx(Wp,{icon:"pencil",label:r,className:"proj-act icon identity-edit",size:13,disabled:s,"aria-expanded":a,"aria-controls":$,onClick:()=>{a?p():d(!0)}})]}),a&&u.jsxs("fieldset",{id:$,className:"identity-picker",disabled:s,children:[u.jsx("legend",{children:n}),u.jsxs("div",{className:"identity-search",children:[u.jsx(bs,{name:"search",size:14}),u.jsx("input",{type:"search",value:g,onChange:x=>m(x.target.value),placeholder:i("projects.iconSearch"),"aria-label":i("projects.iconSearch"),spellCheck:!1})]}),u.jsx("div",{className:"identity-sources",role:"group","aria-label":i("projects.iconSources"),children:il.map(x=>u.jsx("button",{type:"button",className:h===x.id?"identity-source on":"identity-source","aria-pressed":h===x.id,onClick:()=>w(x.id),children:i(x.label)},x.id))}),u.jsx("div",{className:"identity-options",children:E.map(x=>u.jsxs("label",{className:"identity-choice",children:[u.jsx("input",{type:"radio",name:o,value:x.id,checked:e.replace("/",":")===x.id,onChange:()=>v(x.id)}),u.jsx(ya,{icon:x.id,size:28}),u.jsx("span",{className:"identity-choice-name",children:x.label}),x.source&&u.jsx("span",{className:"identity-choice-source",children:x.source})]},x.id))}),y.state==="loading"&&u.jsx("div",{className:"identity-search-status",role:"status",children:i("projects.iconSearching")}),y.state==="ready"&&!E.length&&u.jsx("div",{className:"identity-search-status",children:i("projects.iconSearchEmpty")}),y.state==="error"&&u.jsx("div",{className:"identity-search-status error",role:"alert",children:i("projects.iconSearchFailed")})]})]})}const eh=M.lazy(()=>Js(()=>import("./Dashboard-C_w_wdk5.js").then(e=>e.D),__vite__mapDeps([0,1,2,3,4,5]))),th=M.lazy(()=>Js(()=>import("./MobileApp-CVEwjHr9.js"),__vite__mapDeps([6,1,2,7]))),nh=M.lazy(()=>Js(()=>import("./ProjectsPage-RVP8AqK4.js"),__vite__mapDeps([8,3,2])));window.addEventListener("vite:preloadError",e=>{const t=String(e.payload);sessionStorage.getItem("spexcode.chunkReload")!==t&&(sessionStorage.setItem("spexcode.chunkReload",t),e.preventDefault(),location.reload())});function rh(){const e=qs(),t=Qp(),[n,r]=M.useState(null),[o,l]=M.useState(!1),s=M.useRef(new Map),i=M.useCallback((v,j)=>{r(Pp(v,s.current,j))},[]),[a,d]=M.useState(!1),[g,m]=M.useState(null),[h,w]=M.useState(null);M.useEffect(()=>{let v=!0;const j=()=>zp().then(E=>{v&&w(x=>pa(x,E))}).catch(()=>{v&&w(E=>pa(E,{state:"absent"}))});j();const C=setInterval(j,$p);return()=>{v=!1,clearInterval(C)}},[]);const y=M.useRef(0),k=M.useCallback(()=>{const v=++y.current;return Cp().then(j=>{if(!(v!==y.current||!j)){if(j.authRequired){m(j.authRequired);return}m(null),d(!1),i(j.board,!0),j.seal()}}).catch(()=>{v===y.current&&d(!0)})},[i]),$=!tt&&!n&&!!h&&h.state!=="absent",f=!tt&&!n&&h===null;M.useEffect(()=>{if($||f)return;k();const v=Tp({onBoard:(C,E)=>{y.current++,d(!1),i(C,!!(E!=null&&E.authoritative))},onLegacyChange:()=>{k()},onStatus:l}),j=setInterval(()=>{k()},15e3);return()=>{v(),clearInterval(j)}},[k,i,$,f]);const c=n?Np(n):null,p=tt?Lp(tt,h,c):$?Mp(h):c;return M.useEffect(()=>{p&&(document.title=Ip(p))},[p==null?void 0:p.title]),M.useEffect(()=>{if(!p)return;const v=$?Gp:hn,j=qp(p.icon,v);let C=document.querySelector("link[rel~='icon']");C||(C=document.createElement("link"),C.rel="icon",document.head.appendChild(C)),C.getAttribute("href")!==j&&C.setAttribute("href",j)},[p==null?void 0:p.icon,$]),g&&tt?u.jsx(ma,{scope:{projectId:tt},projectLabel:(p==null?void 0:p.title)||tt,onUnlocked:()=>{m(null),k()}}):n?u.jsx(M.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:t?u.jsx(th,{specs:n.nodes,sessions:n.sessions,reloadBoard:k}):u.jsx(eh,{specs:n.nodes,sessions:n.sessions,reload:k,identity:p,catalog:h,boardLive:o})}):$?u.jsx(M.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:u.jsx(nh,{})}):g?u.jsx(ma,{scope:"admin",locked:g==="locked",onUnlocked:()=>{m(null),k()}}):a&&(tt||h&&h.state==="absent")?u.jsxs("div",{className:"loading load-error",children:[u.jsx("span",{children:e("hud.loadError")}),u.jsx("button",{className:"load-retry",onClick:()=>{d(!1),k()},children:e("hud.retry")})]}):u.jsx("div",{className:"loading",children:e("hud.loading")})}const wa=jp(location.pathname,location.hash);wa?location.replace(wa):al.createRoot(document.getElementById("root")).render(u.jsx(nd.StrictMode,{children:u.jsx(Bp,{children:u.jsx(rh,{})})}));export{xh as $,Ih as A,_h as B,$p as C,Mh as D,zh as E,Fh as F,Th as G,Ch as H,bs as I,wp as J,Ah as K,Uh as L,Hh as M,ah as N,Bh as O,tt as P,uh as Q,nd as R,ih as S,ch as T,dh as U,ph as V,jh as W,Ep as X,sl as Y,Sh as Z,Js as _,No as a,yh as a0,vh as a1,gh as a2,mh as a3,kh as a4,Hp as a5,Dh as a6,ya as b,hp as c,ne as d,Wp as e,fh as f,Uc as g,xp as h,hh as i,u as j,wh as k,lh as l,zp as m,Eh as n,ma as o,oh as p,Nh as q,M as r,sh as s,Ph as t,qs as u,Vh as v,$h as w,Lh as x,Rh as y,Oh as z};
|
|
41
|
+
`+l.stack}return{value:e,source:t,stack:o,digest:null}}function nl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Vf=typeof WeakMap=="function"?WeakMap:Map;function oc(e,t,n){n=Ke(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lo||(lo=!0,Xl=r),Bl(e,t)},n}function lc(e,t,n){n=Ke(-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(){Bl(e,t)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){Bl(e,t),typeof r!="function"&&(pt===null?pt=new Set([this]):pt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Qi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vf;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=rp.bind(null,e,t,n),t.then(e,e))}function Gi(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 Ki(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ke(-1,1),t.tag=2,ft(n,t,1))),n.lanes|=1),e)}var Wf=qe.ReactCurrentOwner,fe=!1;function ie(e,t,n,r){t.child=e===null?zu(t,null,n,r):sn(t,e.child,n,r)}function Zi(e,t,n,r,o){n=n.render;var l=t.ref;return tn(t,o),r=zs(e,t,n,r,l,o),n=Rs(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xe(e,t,o)):(U&&n&&xs(t),t.flags|=1,ie(e,t,r,o),t.child)}function Yi(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="function"&&!Qs(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,sc(e,t,l,r,o)):(e=Or(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)){var s=l.memoizedProps;if(n=n.compare,n=n!==null?n:Vn,n(s,r)&&e.ref===t.ref)return Xe(e,t,o)}return t.flags|=1,e=mt(l,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(Vn(l,r)&&e.ref===t.ref)if(fe=!1,t.pendingProps=r=l,(e.lanes&o)!==0)e.flags&131072&&(fe=!0);else return t.lanes=e.lanes,Xe(e,t,o)}return Hl(e,t,n,r,o)}function ic(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},O(Jt,ve),ve|=n;else{if(!(n&1073741824))return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,O(Jt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,O(Jt,ve),ve|=r}else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,O(Jt,ve),ve|=r;return ie(e,t,o,n),t.child}function ac(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hl(e,t,n,r,o){var l=he(n)?_t:se.current;return l=on(t,l),tn(t,o),n=zs(e,t,n,r,l,o),r=Rs(),e!==null&&!fe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Xe(e,t,o)):(U&&r&&xs(t),t.flags|=1,ie(e,t,n,o),t.child)}function Ji(e,t,n,r,o){if(he(n)){var l=!0;Yr(t)}else l=!1;if(tn(t,o),t.stateNode===null)Ir(e,t),rc(t,n,r),Ul(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var a=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=Pe(d):(d=he(n)?_t:se.current,d=on(t,d));var g=n.getDerivedStateFromProps,m=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==d)&&Wi(t,s,r,d),rt=!1;var h=t.memoizedState;s.state=h,eo(t,r,s,o),a=t.memoizedState,i!==r||h!==a||pe.current||rt?(typeof g=="function"&&(Al(t,n,g,r),a=t.memoizedState),(i=rt||Vi(t,n,i,r,h,a,d))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=d,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Ou(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:_e(t.type,i),s.props=d,m=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Pe(a):(a=he(n)?_t:se.current,a=on(t,a));var w=n.getDerivedStateFromProps;(g=typeof w=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==m||h!==a)&&Wi(t,s,r,a),rt=!1,h=t.memoizedState,s.state=h,eo(t,r,s,o);var y=t.memoizedState;i!==m||h!==y||pe.current||rt?(typeof w=="function"&&(Al(t,n,w,r),y=t.memoizedState),(d=rt||Vi(t,n,d,r,h,y,a)||!1)?(g||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,y,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,y,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),s.props=r,s.state=y,s.context=a,r=d):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Vl(e,t,n,r,l,o)}function Vl(e,t,n,r,o,l){ac(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Ri(t,n,!1),Xe(e,t,l);r=t.stateNode,Wf.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=sn(t,e.child,null,l),t.child=sn(t,null,i,l)):ie(e,t,i,l),t.memoizedState=r.state,o&&Ri(t,n,!0),t.child}function uc(e){var t=e.stateNode;t.pendingContext?zi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zi(e,t.context,!1),_s(e,t.containerInfo)}function Xi(e,t,n,r,o){return ln(),Es(o),t.flags|=256,ie(e,t,n,r),t.child}var Wl={dehydrated:null,treeContext:null,retryLane:0};function Ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function cc(e,t,n){var r=t.pendingProps,o=B.current,l=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(l=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),O(B,o&1),e===null)return Fl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,l?(r=t.mode,l=t.child,s={mode:"hidden",children:s},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=s):l=jo(s,r,0,null),e=$t(e,r,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Ql(n),t.memoizedState=Wl,e):Ds(t,s));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return Qf(e,t,s,r,i,o,n);if(l){l=r.fallback,s=t.mode,o=e.child,i=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=mt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?l=mt(i,l):(l=$t(l,s,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,r=l,l=t.child,s=e.child.memoizedState,s=s===null?Ql(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~n,t.memoizedState=Wl,r}return l=e.child,e=l.sibling,r=mt(l,{mode:"visible",children:r.children}),!(t.mode&1)&&(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 Ds(e,t){return t=jo({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Sr(e,t,n,r){return r!==null&&Es(r),sn(t,e.child,null,n),e=Ds(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qf(e,t,n,r,o,l,s){if(n)return t.flags&256?(t.flags&=-257,r=nl(Error(S(422))),Sr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(l=r.fallback,o=t.mode,r=jo({mode:"visible",children:r.children},o,0,null),l=$t(l,o,s,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,t.mode&1&&sn(t,e.child,null,s),t.child.memoizedState=Ql(s),t.memoizedState=Wl,l);if(!(t.mode&1))return Sr(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,l=Error(S(419)),r=nl(l,r,void 0),Sr(e,t,s,r)}if(i=(s&e.childLanes)!==0,fe||i){if(r=q,r!==null){switch(s&-s){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|s)?0:o,o!==0&&o!==l.retryLane&&(l.retryLane=o,Je(e,o),ze(r,e,o,-1))}return Ws(),r=nl(Error(S(421))),Sr(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=op.bind(null,e),o._reactRetry=t,null):(e=l.treeContext,ye=dt(o.nextSibling),we=t,U=!0,Me=null,e!==null&&(je[Ee++]=Qe,je[Ee++]=Ge,je[Ee++]=Lt,Qe=e.id,Ge=e.overflow,Lt=t),t=Ds(t,r.children),t.flags|=4096,t)}function qi(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dl(e.return,t,n)}function rl(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 dc(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(ie(e,t,r.children,n),r=B.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qi(e,n,t);else if(e.tag===19)qi(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(O(B,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&to(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rl(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&&to(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rl(t,!0,n,null,l);break;case"together":rl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ir(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Xe(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),It|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=mt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gf(e,t,n){switch(t.tag){case 3:uc(t),ln();break;case 5:Fu(t);break;case 1:he(t.type)&&Yr(t);break;case 4:_s(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;O(qr,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(O(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?cc(e,t,n):(O(B,B.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);O(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dc(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),O(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,ic(e,t,n)}return Xe(e,t,n)}var fc,Gl,pc,hc;fc=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}};Gl=function(){};pc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Pt(Be.current);var l=null;switch(n){case"input":o=hl(e,o),r=hl(e,r),l=[];break;case"select":o=V({},o,{value:void 0}),r=V({},r,{value:void 0}),l=[];break;case"textarea":o=vl(e,o),r=vl(e,r),l=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Kr)}wl(n,r);var s;n=null;for(d in o)if(!r.hasOwnProperty(d)&&o.hasOwnProperty(d)&&o[d]!=null)if(d==="style"){var i=o[d];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(On.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var a=r[d];if(i=o!=null?o[d]:void 0,r.hasOwnProperty(d)&&a!==i&&(a!=null||i!=null))if(d==="style")if(i){for(s in i)!i.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&i[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(l||(l=[]),l.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(l=l||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(l=l||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(On.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&D("scroll",e),l||i===a||(l=[])):(l=l||[]).push(d,a))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(t.flags|=4)}};hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sn(e,t){if(!U)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 oe(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 Kf(e,t,n){var r=t.pendingProps;switch(js(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return he(t.type)&&Zr(),oe(t),null;case 3:return r=t.stateNode,an(),A(pe),A(se),Ms(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(wr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Me!==null&&(es(Me),Me=null))),Gl(e,t),oe(t),null;case 5:Ls(t);var o=Pt(Zn.current);if(n=t.type,e!==null&&t.stateNode!=null)pc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return oe(t),null}if(e=Pt(Be.current),wr(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Ae]=t,r[Gn]=l,e=(t.mode&1)!==0,n){case"dialog":D("cancel",r),D("close",r);break;case"iframe":case"object":case"embed":D("load",r);break;case"video":case"audio":for(o=0;o<Tn.length;o++)D(Tn[o],r);break;case"source":D("error",r);break;case"img":case"image":case"link":D("error",r),D("load",r);break;case"details":D("toggle",r);break;case"input":ii(r,l),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},D("invalid",r);break;case"textarea":ui(r,l),D("invalid",r)}wl(n,l),o=null;for(var s in l)if(l.hasOwnProperty(s)){var i=l[s];s==="children"?typeof i=="string"?r.textContent!==i&&(l.suppressHydrationWarning!==!0&&yr(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(l.suppressHydrationWarning!==!0&&yr(r.textContent,i,e),o=["children",""+i]):On.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&D("scroll",r)}switch(n){case"input":cr(r),ai(r,l,!0);break;case"textarea":cr(r),ci(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Kr)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ha(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ae]=t,e[Gn]=r,fc(e,t,!1,!1),t.stateNode=e;e:{switch(s=kl(n,r),n){case"dialog":D("cancel",e),D("close",e),o=r;break;case"iframe":case"object":case"embed":D("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tn.length;o++)D(Tn[o],e);o=r;break;case"source":D("error",e),o=r;break;case"img":case"image":case"link":D("error",e),D("load",e),o=r;break;case"details":D("toggle",e),o=r;break;case"input":ii(e,r),o=hl(e,r),D("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=V({},r,{value:void 0}),D("invalid",e);break;case"textarea":ui(e,r),o=vl(e,r),D("invalid",e);break;default:o=r}wl(n,o),i=o;for(l in i)if(i.hasOwnProperty(l)){var a=i[l];l==="style"?Qa(e,a):l==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Va(e,a)):l==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fn(e,a):typeof a=="number"&&Fn(e,""+a):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(On.hasOwnProperty(l)?a!=null&&l==="onScroll"&&D("scroll",e):a!=null&&as(e,l,a,s))}switch(n){case"input":cr(e),ai(e,r,!1);break;case"textarea":cr(e),ci(e);break;case"option":r.value!=null&&e.setAttribute("value",""+gt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?Xt(e,!!r.multiple,l,!1):r.defaultValue!=null&&Xt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Kr)}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 oe(t),null;case 6:if(e&&t.stateNode!=null)hc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(S(166));if(n=Pt(Zn.current),Pt(Be.current),wr(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ae]=t,(l=r.nodeValue!==n)&&(e=we,e!==null))switch(e.tag){case 3:yr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yr(r.nodeValue,n,(e.mode&1)!==0)}l&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ae]=t,t.stateNode=r}return oe(t),null;case 13:if(A(B),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&ye!==null&&t.mode&1&&!(t.flags&128))Mu(),ln(),t.flags|=98560,l=!1;else if(l=wr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!l)throw Error(S(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(S(317));l[Ae]=t}else ln(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;oe(t),l=!1}else Me!==null&&(es(Me),Me=null),l=!0;if(!l)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||B.current&1?Y===0&&(Y=3):Ws())),t.updateQueue!==null&&(t.flags|=4),oe(t),null);case 4:return an(),Gl(e,t),e===null&&Wn(t.stateNode.containerInfo),oe(t),null;case 10:return Ps(t.type._context),oe(t),null;case 17:return he(t.type)&&Zr(),oe(t),null;case 19:if(A(B),l=t.memoizedState,l===null)return oe(t),null;if(r=(t.flags&128)!==0,s=l.rendering,s===null)if(r)Sn(l,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=to(e),s!==null){for(t.flags|=128,Sn(l,!1),r=s.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,s=l.alternate,s===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=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return O(B,B.current&1|2),t.child}e=e.sibling}l.tail!==null&&G()>cn&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304)}else{if(!r)if(e=to(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!U)return oe(t),null}else 2*G()-l.renderingStartTime>cn&&n!==1073741824&&(t.flags|=128,r=!0,Sn(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(n=l.last,n!==null?n.sibling=s:t.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=G(),t.sibling=null,n=B.current,O(B,r?n&1|2:n&1),t):(oe(t),null);case 22:case 23:return Vs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function Zf(e,t){switch(js(t),t.tag){case 1:return he(t.type)&&Zr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),A(pe),A(se),Ms(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ls(t),null;case 13:if(A(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));ln()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(B),null;case 4:return an(),null;case 10:return Ps(t.type._context),null;case 22:case 23:return Vs(),null;case 24:return null;default:return null}}var xr=!1,le=!1,Yf=typeof WeakSet=="function"?WeakSet:Set,T=null;function Yt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){W(e,t,r)}else n.current=null}function Kl(e,t,n){try{n()}catch(r){W(e,t,r)}}var bi=!1;function Jf(e,t){if(_l=Wr,e=wu(),Ss(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 s=0,i=-1,a=-1,d=0,g=0,m=e,h=null;t:for(;;){for(var w;m!==n||o!==0&&m.nodeType!==3||(i=s+o),m!==l||r!==0&&m.nodeType!==3||(a=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(w=m.firstChild)!==null;)h=m,m=w;for(;;){if(m===e)break t;if(h===n&&++d===o&&(i=s),h===l&&++g===r&&(a=s),(w=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=w}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ll={focusedElem:e,selectionRange:n},Wr=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var k=y.memoizedProps,$=y.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?k:_e(t.type,k),$);f.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var p=t.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(v){W(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return y=bi,bi=!1,y}function In(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&&Kl(t,n,l)}o=o.next}while(o!==r)}}function So(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 Zl(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 mc(e){var t=e.alternate;t!==null&&(e.alternate=null,mc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ae],delete t[Gn],delete t[zl],delete t[Mf],delete t[If])),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 gc(e){return e.tag===5||e.tag===3||e.tag===4}function ea(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gc(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 Yl(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=Kr));else if(r!==4&&(e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}function Jl(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(Jl(e,t,n),e=e.sibling;e!==null;)Jl(e,t,n),e=e.sibling}var b=null,Le=!1;function et(e,t,n){for(n=n.child;n!==null;)vc(e,t,n),n=n.sibling}function vc(e,t,n){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(po,n)}catch{}switch(n.tag){case 5:le||Yt(n,t);case 6:var r=b,o=Le;b=null,et(e,t,n),b=r,Le=o,b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(Le?(e=b,n=n.stateNode,e.nodeType===8?Jo(e.parentNode,n):e.nodeType===1&&Jo(e,n),Bn(e)):Jo(b,n.stateNode));break;case 4:r=b,o=Le,b=n.stateNode.containerInfo,Le=!0,et(e,t,n),b=r,Le=o;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var l=o,s=l.destroy;l=l.tag,s!==void 0&&(l&2||l&4)&&Kl(n,t,s),o=o.next}while(o!==r)}et(e,t,n);break;case 1:if(!le&&(Yt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){W(n,t,i)}et(e,t,n);break;case 21:et(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,et(e,t,n),le=r):et(e,t,n);break;default:et(e,t,n)}}function ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yf),t.forEach(function(r){var o=lp.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $e(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,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:b=i.stateNode,Le=!1;break e;case 3:b=i.stateNode.containerInfo,Le=!0;break e;case 4:b=i.stateNode.containerInfo,Le=!0;break e}i=i.return}if(b===null)throw Error(S(160));vc(l,s,o),b=null,Le=!1;var a=o.alternate;a!==null&&(a.return=null),o.return=null}catch(d){W(o,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if($e(t,e),Fe(e),r&4){try{In(3,e,e.return),So(3,e)}catch(k){W(e,e.return,k)}try{In(5,e,e.return)}catch(k){W(e,e.return,k)}}break;case 1:$e(t,e),Fe(e),r&512&&n!==null&&Yt(n,n.return);break;case 5:if($e(t,e),Fe(e),r&512&&n!==null&&Yt(n,n.return),e.flags&32){var o=e.stateNode;try{Fn(o,"")}catch(k){W(e,e.return,k)}}if(r&4&&(o=e.stateNode,o!=null)){var l=e.memoizedProps,s=n!==null?n.memoizedProps:l,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&l.type==="radio"&&l.name!=null&&Ua(o,l),kl(i,s);var d=kl(i,l);for(s=0;s<a.length;s+=2){var g=a[s],m=a[s+1];g==="style"?Qa(o,m):g==="dangerouslySetInnerHTML"?Va(o,m):g==="children"?Fn(o,m):as(o,g,m,d)}switch(i){case"input":ml(o,l);break;case"textarea":Ba(o,l);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!l.multiple;var w=l.value;w!=null?Xt(o,!!l.multiple,w,!1):h!==!!l.multiple&&(l.defaultValue!=null?Xt(o,!!l.multiple,l.defaultValue,!0):Xt(o,!!l.multiple,l.multiple?[]:"",!1))}o[Gn]=l}catch(k){W(e,e.return,k)}}break;case 6:if($e(t,e),Fe(e),r&4){if(e.stateNode===null)throw Error(S(162));o=e.stateNode,l=e.memoizedProps;try{o.nodeValue=l}catch(k){W(e,e.return,k)}}break;case 3:if($e(t,e),Fe(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Bn(t.containerInfo)}catch(k){W(e,e.return,k)}break;case 4:$e(t,e),Fe(e);break;case 13:$e(t,e),Fe(e),o=e.child,o.flags&8192&&(l=o.memoizedState!==null,o.stateNode.isHidden=l,!l||o.alternate!==null&&o.alternate.memoizedState!==null||(Bs=G())),r&4&&ta(e);break;case 22:if(g=n!==null&&n.memoizedState!==null,e.mode&1?(le=(d=le)||g,$e(t,e),le=d):$e(t,e),Fe(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!g&&e.mode&1)for(T=e,g=e.child;g!==null;){for(m=T=g;T!==null;){switch(h=T,w=h.child,h.tag){case 0:case 11:case 14:case 15:In(4,h,h.return);break;case 1:Yt(h,h.return);var y=h.stateNode;if(typeof y.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(k){W(r,n,k)}}break;case 5:Yt(h,h.return);break;case 22:if(h.memoizedState!==null){ra(m);continue}}w!==null?(w.return=h,T=w):ra(m)}g=g.sibling}e:for(g=null,m=e;;){if(m.tag===5){if(g===null){g=m;try{o=m.stateNode,d?(l=o.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(i=m.stateNode,a=m.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Wa("display",s))}catch(k){W(e,e.return,k)}}}else if(m.tag===6){if(g===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(k){W(e,e.return,k)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;g===m&&(g=null),m=m.return}g===m&&(g=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:$e(t,e),Fe(e),r&4&&ta(e);break;case 21:break;default:$e(t,e),Fe(e)}}function Fe(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gc(n)){var r=n;break e}n=n.return}throw Error(S(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Fn(o,""),r.flags&=-33);var l=ea(e);Jl(e,l,o);break;case 3:case 4:var s=r.stateNode.containerInfo,i=ea(e);Yl(e,i,s);break;default:throw Error(S(161))}}catch(a){W(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Xf(e,t,n){T=e,wc(e)}function wc(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var o=T,l=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||xr;if(!s){var i=o.alternate,a=i!==null&&i.memoizedState!==null||le;i=xr;var d=le;if(xr=s,(le=a)&&!d)for(T=o;T!==null;)s=T,a=s.child,s.tag===22&&s.memoizedState!==null?oa(o):a!==null?(a.return=s,T=a):oa(o);for(;l!==null;)T=l,wc(l),l=l.sibling;T=o,xr=i,le=d}na(e)}else o.subtreeFlags&8772&&l!==null?(l.return=o,T=l):na(e)}}function na(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||So(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:_e(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=t.updateQueue;l!==null&&Ui(t,l,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ui(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var g=d.memoizedState;if(g!==null){var m=g.dehydrated;m!==null&&Bn(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}le||t.flags&512&&Zl(t)}catch(h){W(t,t.return,h)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function ra(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function oa(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{So(4,t)}catch(a){W(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){W(t,o,a)}}var l=t.return;try{Zl(t)}catch(a){W(t,l,a)}break;case 5:var s=t.return;try{Zl(t)}catch(a){W(t,s,a)}}}catch(a){W(t,t.return,a)}if(t===e){T=null;break}var i=t.sibling;if(i!==null){i.return=t.return,T=i;break}T=t.return}}var qf=Math.ceil,oo=qe.ReactCurrentDispatcher,As=qe.ReactCurrentOwner,Te=qe.ReactCurrentBatchConfig,z=0,q=null,K=null,ee=0,ve=0,Jt=wt(0),Y=0,qn=null,It=0,xo=0,Us=0,zn=null,de=null,Bs=0,cn=1/0,Ve=null,lo=!1,Xl=null,pt=null,jr=!1,it=null,so=0,Rn=0,ql=null,zr=-1,Rr=0;function ae(){return z&6?G():zr!==-1?zr:zr=G()}function ht(e){return e.mode&1?z&2&&ee!==0?ee&-ee:Rf.transition!==null?(Rr===0&&(Rr=ru()),Rr):(e=R,e!==0||(e=window.event,e=e===void 0?16:cu(e.type)),e):1}function ze(e,t,n,r){if(50<Rn)throw Rn=0,ql=null,Error(S(185));tr(e,n,r),(!(z&2)||e!==q)&&(e===q&&(!(z&2)&&(xo|=n),Y===4&<(e,ee)),me(e,r),n===1&&z===0&&!(t.mode&1)&&(cn=G()+500,yo&&kt()))}function me(e,t){var n=e.callbackNode;zd(e,t);var r=Vr(e,e===q?ee:0);if(r===0)n!==null&&pi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&pi(n),t===1)e.tag===0?zf(la.bind(null,e)):$u(la.bind(null,e)),_f(function(){!(z&6)&&kt()}),n=null;else{switch(ou(r)){case 1:n=ps;break;case 4:n=tu;break;case 16:n=Hr;break;case 536870912:n=nu;break;default:n=Hr}n=Pc(n,kc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kc(e,t){if(zr=-1,Rr=0,z&6)throw Error(S(327));var n=e.callbackNode;if(nn()&&e.callbackNode!==n)return null;var r=Vr(e,e===q?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=io(e,r);else{t=r;var o=z;z|=2;var l=xc();(q!==e||ee!==t)&&(Ve=null,cn=G()+500,Nt(e,t));do try{tp();break}catch(i){Sc(e,i)}while(!0);Ts(),oo.current=l,z=o,K!==null?t=0:(q=null,ee=0,t=Y)}if(t!==0){if(t===2&&(o=Cl(e),o!==0&&(r=o,t=bl(e,o))),t===1)throw n=qn,Nt(e,0),lt(e,r),me(e,G()),n;if(t===6)lt(e,r);else{if(o=e.current.alternate,!(r&30)&&!bf(o)&&(t=io(e,r),t===2&&(l=Cl(e),l!==0&&(r=l,t=bl(e,l))),t===1))throw n=qn,Nt(e,0),lt(e,r),me(e,G()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(S(345));case 2:Et(e,de,Ve);break;case 3:if(lt(e,r),(r&130023424)===r&&(t=Bs+500-G(),10<t)){if(Vr(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ae(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Il(Et.bind(null,e,de,Ve),t);break}Et(e,de,Ve);break;case 4:if(lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-Ie(r);l=1<<s,s=t[s],s>o&&(o=s),r&=~l}if(r=o,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qf(r/1960))-r,10<r){e.timeoutHandle=Il(Et.bind(null,e,de,Ve),r);break}Et(e,de,Ve);break;case 5:Et(e,de,Ve);break;default:throw Error(S(329))}}}return me(e,G()),e.callbackNode===n?kc.bind(null,e):null}function bl(e,t){var n=zn;return e.current.memoizedState.isDehydrated&&(Nt(e,t).flags|=256),e=io(e,t),e!==2&&(t=de,de=n,t!==null&&es(t)),e}function es(e){de===null?de=e:de.push.apply(de,e)}function bf(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(!Re(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 lt(e,t){for(t&=~Us,t&=~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ie(t),r=1<<n;e[n]=-1,t&=~r}}function la(e){if(z&6)throw Error(S(327));nn();var t=Vr(e,0);if(!(t&1))return me(e,G()),null;var n=io(e,t);if(e.tag!==0&&n===2){var r=Cl(e);r!==0&&(t=r,n=bl(e,r))}if(n===1)throw n=qn,Nt(e,0),lt(e,t),me(e,G()),n;if(n===6)throw Error(S(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Et(e,de,Ve),me(e,G()),null}function Hs(e,t){var n=z;z|=1;try{return e(t)}finally{z=n,z===0&&(cn=G()+500,yo&&kt())}}function zt(e){it!==null&&it.tag===0&&!(z&6)&&nn();var t=z;z|=1;var n=Te.transition,r=R;try{if(Te.transition=null,R=1,e)return e()}finally{R=r,Te.transition=n,z=t,!(z&6)&&kt()}}function Vs(){ve=Jt.current,A(Jt)}function Nt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$f(n)),K!==null)for(n=K.return;n!==null;){var r=n;switch(js(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Zr();break;case 3:an(),A(pe),A(se),Ms();break;case 5:Ls(r);break;case 4:an();break;case 13:A(B);break;case 19:A(B);break;case 10:Ps(r.type._context);break;case 22:case 23:Vs()}n=n.return}if(q=e,K=e=mt(e.current,null),ee=ve=t,Y=0,qn=null,Us=xo=It=0,de=zn=null,Tt!==null){for(t=0;t<Tt.length;t++)if(n=Tt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,l=n.pending;if(l!==null){var s=l.next;l.next=o,r.next=s}n.pending=r}Tt=null}return e}function Sc(e,t){do{var n=K;try{if(Ts(),Lr.current=ro,no){for(var r=H.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}no=!1}if(Mt=0,X=Z=H=null,Mn=!1,Yn=0,As.current=null,n===null||n.return===null){Y=1,qn=t,K=null;break}e:{var l=e,s=n.return,i=n,a=t;if(t=ee,i.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var d=a,g=i,m=g.tag;if(!(g.mode&1)&&(m===0||m===11||m===15)){var h=g.alternate;h?(g.updateQueue=h.updateQueue,g.memoizedState=h.memoizedState,g.lanes=h.lanes):(g.updateQueue=null,g.memoizedState=null)}var w=Gi(s);if(w!==null){w.flags&=-257,Ki(w,s,i,l,t),w.mode&1&&Qi(l,d,t),t=w,a=d;var y=t.updateQueue;if(y===null){var k=new Set;k.add(a),t.updateQueue=k}else y.add(a);break e}else{if(!(t&1)){Qi(l,d,t),Ws();break e}a=Error(S(426))}}else if(U&&i.mode&1){var $=Gi(s);if($!==null){!($.flags&65536)&&($.flags|=256),Ki($,s,i,l,t),Es(un(a,i));break e}}l=a=un(a,i),Y!==4&&(Y=2),zn===null?zn=[l]:zn.push(l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var f=oc(l,a,t);Ai(l,f);break e;case 1:i=a;var c=l.type,p=l.stateNode;if(!(l.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(pt===null||!pt.has(p)))){l.flags|=65536,t&=-t,l.lanes|=t;var v=lc(l,i,t);Ai(l,v);break e}}l=l.return}while(l!==null)}Ec(n)}catch(j){t=j,K===n&&n!==null&&(K=n=n.return);continue}break}while(!0)}function xc(){var e=oo.current;return oo.current=ro,e===null?ro:e}function Ws(){(Y===0||Y===3||Y===2)&&(Y=4),q===null||!(It&268435455)&&!(xo&268435455)||lt(q,ee)}function io(e,t){var n=z;z|=2;var r=xc();(q!==e||ee!==t)&&(Ve=null,Nt(e,t));do try{ep();break}catch(o){Sc(e,o)}while(!0);if(Ts(),z=n,oo.current=r,K!==null)throw Error(S(261));return q=null,ee=0,Y}function ep(){for(;K!==null;)jc(K)}function tp(){for(;K!==null&&!Cd();)jc(K)}function jc(e){var t=Tc(e.alternate,e,ve);e.memoizedProps=e.pendingProps,t===null?Ec(e):K=t,As.current=null}function Ec(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Zf(n,t),n!==null){n.flags&=32767,K=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,K=null;return}}else if(n=Kf(n,t,ve),n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);Y===0&&(Y=5)}function Et(e,t,n){var r=R,o=Te.transition;try{Te.transition=null,R=1,np(e,t,n,r)}finally{Te.transition=o,R=r}return null}function np(e,t,n,r){do nn();while(it!==null);if(z&6)throw Error(S(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(S(177));e.callbackNode=null,e.callbackPriority=0;var l=n.lanes|n.childLanes;if(Rd(e,l),e===q&&(K=q=null,ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||jr||(jr=!0,Pc(Hr,function(){return nn(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Te.transition,Te.transition=null;var s=R;R=1;var i=z;z|=4,As.current=null,Jf(e,n),yc(n,e),xf(Ll),Wr=!!_l,Ll=_l=null,e.current=n,Xf(n),Td(),z=i,R=s,Te.transition=l}else e.current=n;if(jr&&(jr=!1,it=e,so=o),l=e.pendingLanes,l===0&&(pt=null),$d(n.stateNode),me(e,G()),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(lo)throw lo=!1,e=Xl,Xl=null,e;return so&1&&e.tag!==0&&nn(),l=e.pendingLanes,l&1?e===ql?Rn++:(Rn=0,ql=e):Rn=0,kt(),null}function nn(){if(it!==null){var e=ou(so),t=Te.transition,n=R;try{if(Te.transition=null,R=16>e?16:e,it===null)var r=!1;else{if(e=it,it=null,so=0,z&6)throw Error(S(331));var o=z;for(z|=4,T=e.current;T!==null;){var l=T,s=l.child;if(T.flags&16){var i=l.deletions;if(i!==null){for(var a=0;a<i.length;a++){var d=i[a];for(T=d;T!==null;){var g=T;switch(g.tag){case 0:case 11:case 15:In(8,g,l)}var m=g.child;if(m!==null)m.return=g,T=m;else for(;T!==null;){g=T;var h=g.sibling,w=g.return;if(mc(g),g===d){T=null;break}if(h!==null){h.return=w,T=h;break}T=w}}}var y=l.alternate;if(y!==null){var k=y.child;if(k!==null){y.child=null;do{var $=k.sibling;k.sibling=null,k=$}while(k!==null)}}T=l}}if(l.subtreeFlags&2064&&s!==null)s.return=l,T=s;else e:for(;T!==null;){if(l=T,l.flags&2048)switch(l.tag){case 0:case 11:case 15:In(9,l,l.return)}var f=l.sibling;if(f!==null){f.return=l.return,T=f;break e}T=l.return}}var c=e.current;for(T=c;T!==null;){s=T;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,T=p;else e:for(s=c;T!==null;){if(i=T,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:So(9,i)}}catch(j){W(i,i.return,j)}if(i===s){T=null;break e}var v=i.sibling;if(v!==null){v.return=i.return,T=v;break e}T=i.return}}if(z=o,kt(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(po,e)}catch{}r=!0}return r}finally{R=n,Te.transition=t}}return!1}function sa(e,t,n){t=un(n,t),t=oc(e,t,1),e=ft(e,t,1),t=ae(),e!==null&&(tr(e,1,t),me(e,t))}function W(e,t,n){if(e.tag===3)sa(e,e,n);else for(;t!==null;){if(t.tag===3){sa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(pt===null||!pt.has(r))){e=un(n,e),e=lc(t,e,1),t=ft(t,e,1),e=ae(),t!==null&&(tr(t,1,e),me(t,e));break}}t=t.return}}function rp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ae(),e.pingedLanes|=e.suspendedLanes&n,q===e&&(ee&n)===n&&(Y===4||Y===3&&(ee&130023424)===ee&&500>G()-Bs?Nt(e,0):Us|=n),me(e,t)}function Cc(e,t){t===0&&(e.mode&1?(t=pr,pr<<=1,!(pr&130023424)&&(pr=4194304)):t=1);var n=ae();e=Je(e,t),e!==null&&(tr(e,t,n),me(e,n))}function op(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cc(e,n)}function lp(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(S(314))}r!==null&&r.delete(t),Cc(e,n)}var Tc;Tc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return fe=!1,Gf(e,t,n);fe=!!(e.flags&131072)}else fe=!1,U&&t.flags&1048576&&_u(t,Xr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var o=on(t,se.current);tn(t,n),o=zs(null,t,r,e,o,n);var l=Rs();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,he(r)?(l=!0,Yr(t)):l=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,$s(t),o.updater=ko,t.stateNode=o,o._reactInternals=t,Ul(t,r,e,n),t=Vl(null,t,r,!0,l,n)):(t.tag=0,U&&l&&xs(t),ie(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=ip(r),e=_e(r,e),o){case 0:t=Hl(null,t,r,e,n);break e;case 1:t=Ji(null,t,r,e,n);break e;case 11:t=Zi(null,t,r,e,n);break e;case 14:t=Yi(null,t,r,_e(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Hl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Ji(e,t,r,o,n);case 3:e:{if(uc(t),e===null)throw Error(S(387));r=t.pendingProps,l=t.memoizedState,o=l.element,Ou(e,t),eo(t,r,null,n);var s=t.memoizedState;if(r=s.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){o=un(Error(S(423)),t),t=Xi(e,t,r,n,o);break e}else if(r!==o){o=un(Error(S(424)),t),t=Xi(e,t,r,n,o);break e}else for(ye=dt(t.stateNode.containerInfo.firstChild),we=t,U=!0,Me=null,n=zu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ln(),r===o){t=Xe(e,t,n);break e}ie(e,t,r,n)}t=t.child}return t;case 5:return Fu(t),e===null&&Fl(t),r=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,s=o.children,Ml(r,o)?s=null:l!==null&&Ml(r,l)&&(t.flags|=32),ac(e,t),ie(e,t,s,n),t.child;case 6:return e===null&&Fl(t),null;case 13:return cc(e,t,n);case 4:return _s(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=sn(t,null,r,n):ie(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Zi(e,t,r,o,n);case 7:return ie(e,t,t.pendingProps,n),t.child;case 8:return ie(e,t,t.pendingProps.children,n),t.child;case 12:return ie(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,s=o.value,O(qr,r._currentValue),r._currentValue=s,l!==null)if(Re(l.value,s)){if(l.children===o.children&&!pe.current){t=Xe(e,t,n);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var i=l.dependencies;if(i!==null){s=l.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(l.tag===1){a=Ke(-1,n&-n),a.tag=2;var d=l.updateQueue;if(d!==null){d=d.shared;var g=d.pending;g===null?a.next=a:(a.next=g.next,g.next=a),d.pending=a}}l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Dl(l.return,n,t),i.lanes|=n;break}a=a.next}}else if(l.tag===10)s=l.type===t.type?null:l.child;else if(l.tag===18){if(s=l.return,s===null)throw Error(S(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),Dl(s,n,t),s=l.sibling}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===t){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}ie(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tn(t,n),o=Pe(o),r=r(o),t.flags|=1,ie(e,t,r,n),t.child;case 14:return r=t.type,o=_e(r,t.pendingProps),o=_e(r.type,o),Yi(e,t,r,o,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_e(r,o),Ir(e,t),t.tag=1,he(r)?(e=!0,Yr(t)):e=!1,tn(t,n),rc(t,r,o),Ul(t,r,o,n),Vl(null,t,r,!0,e,n);case 19:return dc(e,t,n);case 22:return ic(e,t,n)}throw Error(S(156,t.tag))};function Pc(e,t){return eu(e,t)}function sp(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 Ce(e,t,n,r){return new sp(e,t,n,r)}function Qs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ip(e){if(typeof e=="function")return Qs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===cs)return 11;if(e===ds)return 14}return 2}function mt(e,t){var n=e.alternate;return n===null?(n=Ce(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 Or(e,t,n,r,o,l){var s=2;if(r=e,typeof e=="function")Qs(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ut:return $t(n.children,o,l,t);case us:s=8,o|=8;break;case cl:return e=Ce(12,n,t,o|2),e.elementType=cl,e.lanes=l,e;case dl:return e=Ce(13,n,t,o),e.elementType=dl,e.lanes=l,e;case fl:return e=Ce(19,n,t,o),e.elementType=fl,e.lanes=l,e;case Fa:return jo(n,o,l,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ra:s=10;break e;case Oa:s=9;break e;case cs:s=11;break e;case ds:s=14;break e;case nt:s=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ce(s,n,t,o),t.elementType=e,t.type=r,t.lanes=l,t}function $t(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function jo(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Fa,e.lanes=n,e.stateNode={isHidden:!1},e}function ol(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function ll(e,t,n){return t=Ce(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ap(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=Ao(0),this.expirationTimes=Ao(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ao(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gs(e,t,n,r,o,l,s,i,a){return e=new ap(e,t,n,i,a),t===1?(t=1,l===!0&&(t|=8)):t=0,l=Ce(3,null,null,t),e.current=l,l.stateNode=e,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$s(l),e}function up(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:At,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Nc(e){if(!e)return vt;e=e._reactInternals;e:{if(Ot(e)!==e||e.tag!==1)throw Error(S(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(he(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(S(171))}if(e.tag===1){var n=e.type;if(he(n))return Nu(e,n,t)}return t}function $c(e,t,n,r,o,l,s,i,a){return e=Gs(n,r,!0,e,o,l,s,i,a),e.context=Nc(null),n=e.current,r=ae(),o=ht(n),l=Ke(r,o),l.callback=t??null,ft(n,l,o),e.current.lanes=o,tr(e,o,r),me(e,r),e}function Eo(e,t,n,r){var o=t.current,l=ae(),s=ht(o);return n=Nc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ke(l,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ft(o,t,s),e!==null&&(ze(e,o,s,l),_r(e,o,s)),s}function ao(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 ia(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ks(e,t){ia(e,t),(e=e.alternate)&&ia(e,t)}function cp(){return null}var _c=typeof reportError=="function"?reportError:function(e){console.error(e)};function Zs(e){this._internalRoot=e}Co.prototype.render=Zs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));Eo(e,t,null,null)};Co.prototype.unmount=Zs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zt(function(){Eo(null,e,null,null)}),t[Ye]=null}};function Co(e){this._internalRoot=e}Co.prototype.unstable_scheduleHydration=function(e){if(e){var t=iu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ot.length&&t!==0&&t<ot[n].priority;n++);ot.splice(n,0,e),n===0&&uu(e)}};function Ys(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function To(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aa(){}function dp(e,t,n,r,o){if(o){if(typeof r=="function"){var l=r;r=function(){var d=ao(s);l.call(d)}}var s=$c(t,r,e,0,null,!1,!1,"",aa);return e._reactRootContainer=s,e[Ye]=s.current,Wn(e.nodeType===8?e.parentNode:e),zt(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var d=ao(a);i.call(d)}}var a=Gs(e,0,!1,null,null,!1,!1,"",aa);return e._reactRootContainer=a,e[Ye]=a.current,Wn(e.nodeType===8?e.parentNode:e),zt(function(){Eo(t,a,n,r)}),a}function Po(e,t,n,r,o){var l=n._reactRootContainer;if(l){var s=l;if(typeof o=="function"){var i=o;o=function(){var a=ao(s);i.call(a)}}Eo(t,s,e,o)}else s=dp(n,t,e,o,r);return ao(s)}lu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cn(t.pendingLanes);n!==0&&(hs(t,n|1),me(t,G()),!(z&6)&&(cn=G()+500,kt()))}break;case 13:zt(function(){var r=Je(e,1);if(r!==null){var o=ae();ze(r,e,1,o)}}),Ks(e,1)}};ms=function(e){if(e.tag===13){var t=Je(e,134217728);if(t!==null){var n=ae();ze(t,e,134217728,n)}Ks(e,134217728)}};su=function(e){if(e.tag===13){var t=ht(e),n=Je(e,t);if(n!==null){var r=ae();ze(n,e,t,r)}Ks(e,t)}};iu=function(){return R};au=function(e,t){var n=R;try{return R=e,t()}finally{R=n}};xl=function(e,t,n){switch(t){case"input":if(ml(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=vo(r);if(!o)throw Error(S(90));Aa(r),ml(r,o)}}}break;case"textarea":Ba(e,n);break;case"select":t=n.value,t!=null&&Xt(e,!!n.multiple,t,!1)}};Za=Hs;Ya=zt;var fp={usingClientEntryPoint:!1,Events:[rr,Wt,vo,Ga,Ka,Hs]},xn={findFiberByHostInstance:Ct,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pp={bundleType:xn.bundleType,version:xn.version,rendererPackageName:xn.rendererPackageName,rendererConfig:xn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=qa(e),e===null?null:e.stateNode},findFiberByHostInstance:xn.findFiberByHostInstance||cp,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 Er=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Er.isDisabled&&Er.supportsFiber)try{po=Er.inject(pp),Ue=Er}catch{}}Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fp;Se.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ys(t))throw Error(S(200));return up(e,t,null,n)};Se.createRoot=function(e,t){if(!Ys(e))throw Error(S(299));var n=!1,r="",o=_c;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Gs(e,1,!1,null,null,n,!1,r,o),e[Ye]=t.current,Wn(e.nodeType===8?e.parentNode:e),new Zs(t)};Se.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(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=qa(t),e=e===null?null:e.stateNode,e};Se.flushSync=function(e){return zt(e)};Se.hydrate=function(e,t,n){if(!To(t))throw Error(S(200));return Po(null,e,t,!0,n)};Se.hydrateRoot=function(e,t,n){if(!Ys(e))throw Error(S(405));var r=n!=null&&n.hydratedSources||null,o=!1,l="",s=_c;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=$c(t,null,e,1,n??null,o,!1,l,s),e[Ye]=t.current,Wn(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 Co(t)};Se.render=function(e,t,n){if(!To(t))throw Error(S(200));return Po(null,e,t,!1,n)};Se.unmountComponentAtNode=function(e){if(!To(e))throw Error(S(40));return e._reactRootContainer?(zt(function(){Po(null,null,e,!1,function(){e._reactRootContainer=null,e[Ye]=null})}),!0):!1};Se.unstable_batchedUpdates=Hs;Se.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!To(n))throw Error(S(200));if(e==null||e._reactInternals===void 0)throw Error(S(38));return Po(e,t,n,!1,r)};Se.version="18.3.1-next-f1338f8080-20240426";function Lc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lc)}catch(e){console.error(e)}}Lc(),La.exports=Se;var hp=La.exports,ua=hp;al.createRoot=ua.createRoot,al.hydrateRoot=ua.hydrateRoot;const mp="modulepreload",gp=function(e){return"/"+e},ca={},Js=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),i=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));o=Promise.allSettled(n.map(a=>{if(a=gp(a),a in ca)return;ca[a]=!0;const d=a.endsWith(".css"),g=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${g}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":mp,d||(m.as="script"),m.crossOrigin="",m.href=a,i&&m.setAttribute("nonce",i),document.head.appendChild(m),d)return new Promise((h,w)=>{m.addEventListener("load",h),m.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${a}`)))})}))}function l(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return o.then(s=>{for(const i of s||[])i.status==="rejected"&&l(i.reason);return t().catch(l)})},vp=1e4,yp=2.5*vp;function wp(e,{deadMs:t=yp,setTimeoutImpl:n=setTimeout,clearTimeoutImpl:r=clearTimeout}={}){let o=0;const l=()=>{o&&(r(o),o=0)};return{arm:()=>{l(),o=n(()=>{o=0,e()},t)},disarm:l}}function Mc(e){const t=/^\/p\/([^/]+)(?:\/|$)/.exec(e||"");if(!t)return{id:null,base:""};let n=t[1];try{n=decodeURIComponent(n)}catch{}return{id:n,base:`/p/${t[1]}`}}const Ic=Mc(typeof location<"u"?location.pathname:""),tt=Ic.id,kp=Ic.base,Sp=(e,t)=>e.startsWith("/api")?t+e:e,No=e=>Sp(e,kp),lh=(e,t="#/graph")=>`/p/${encodeURIComponent(e)}/${t}`,xp=()=>"/projects";function jp(e,t){return Mc(e).id&&(t||"").replace(/^#\/?/,"").split("?")[0].replace(/\/+$/,"")==="projects"?xp():null}const Ep=280,sl=54;function sh(e,t){const n={};e.forEach(l=>{var s;l.parent&&(n[s=l.parent]??(n[s]=[])).push(l.id)});const r={},o=(l,s,i)=>{r[l]={x:s*Ep,y:i};const a=t.has(l)?n[l]||[]:[];if(!a.length)return;const d=i-(a.length-1)/2*sl;a.forEach((g,m)=>o(g,s+1,d+m*sl))};return e.filter(l=>!l.parent).forEach((l,s)=>o(l.id,0,s*sl)),r}const da=[150,350,600,900];async function ne(e,t){const n=typeof e=="string"?No(e):e;for(let r=0;;r++)try{return await fetch(n,t)}catch(o){if(r>=da.length)throw o;await new Promise(l=>setTimeout(l,da[r]))}}let Fr="";const fa=()=>{Fr=""};async function Cp(){const e=await ne("/api/graph",{cache:"no-store",headers:Fr?{"If-None-Match":Fr}:{}});if(e.status===304)return null;if(e.status===401||e.status===403){const r=await e.json().catch(()=>null);return{authRequired:(r==null?void 0:r.reason)||"project-login"}}const t=e.headers.get("etag")||"";return{board:await e.json(),seal:()=>{Fr=t}}}const ih=(e,...t)=>No(`/api/specs/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);function Tp({onBoard:e,onLegacyChange:t,onStatus:n}){let r=null,o=!1,l=null,s="";const i=w=>{const{nodes:y=[],sessions:k=[],...$}=w,f=new Map([["meta",$],["nodes#order",y.map(c=>c.id)],["sess#order",k.map(c=>c.id)]]);return y.forEach(c=>f.set("node:"+c.id,c)),k.forEach(c=>f.set("sess:"+c.id,c)),f},a=w=>{const y=(k,$)=>(w.get($)||[]).map(f=>w.get(k+f));return{...w.get("meta")||{},nodes:y("node:","nodes#order"),sessions:y("sess:","sess#order")}},d=()=>{try{r==null||r.close()}catch{}l=null,s="",h()},g=wp(()=>{!r||o||(n==null||n(!1),d(),g.arm(),t==null||t())}),m=()=>g.arm(),h=()=>{if(!o){try{r=new EventSource(No("/api/graph/stream?mode=delta"))}catch{r=null;return}r.addEventListener("graph-full",w=>{m();const{to:y,graph:k}=JSON.parse(w.data);l=i(k),s=y,fa(),e(k,{authoritative:!0,tag:y}),n==null||n(!0)}),r.addEventListener("graph-delta",w=>{m();const y=JSON.parse(w.data);if(!l||s!==y.from){d();return}for(const k of y.del||[])l.delete(k);for(const[k,$]of Object.entries(y.set||{}))l.set(k,$);s=y.to,fa(),e(a(l),{authoritative:!1,tag:y.to}),n==null||n(!0)}),r.addEventListener("graph-changed",()=>{m(),t==null||t()}),r.addEventListener("error",()=>n==null?void 0:n(!1)),r.addEventListener("ping",m),r.addEventListener("ready",m)}};return h(),n==null||n(!1),m(),()=>{o=!0,g.disarm();try{r==null||r.close()}catch{}}}function Pp(e,t,n=!1){if(!(e!=null&&e.sessions))return e;const r=new Set(e.sessions.map(s=>s.id));if(n)for(const s of t.keys())r.has(s)||t.delete(s);let o=!1;const l=e.sessions.map(s=>{var m,h;const i=s.evalSummary;if(!i||!Number.isInteger(i.generation)||!i.epoch)return s;const a=t.get(s.id),d=a&&a.epoch!==i.epoch;if(!a||(d?n:i.generation>=a.generation)){const w=((m=a==null?void 0:a.projection)==null?void 0:m.phase)==="ready"&&a.projection.value?{generation:a.projection.generation,revision:a.projection.revision,value:a.projection.value}:(h=a==null?void 0:a.projection)==null?void 0:h.lastKnown,y=d&&!i.value&&!i.lastKnown&&w?{...i,lastKnown:w}:i;return t.set(s.id,{epoch:y.epoch,generation:y.generation,projection:y}),y!==i?(o=!0,{...s,evalSummary:y}):s}return o=!0,{...s,evalSummary:a.projection}});return o?{...e,sessions:l}:e}const Np=e=>{var t,n;return{title:((t=e==null?void 0:e.identity)==null?void 0:t.title)||(e==null?void 0:e.project)||"",icon:((n=e==null?void 0:e.identity)==null?void 0:n.icon)||(e==null?void 0:e.projectIcon)||"spexcode"}},lr=(e,...t)=>No(`/api/sessions/${encodeURIComponent(e)}${t.map(n=>"/"+n).join("")}`);async function ah(e){const t=await ne(lr(e,"timeline"),{cache:"no-store"});return t.ok?t.json():null}async function uh(e){const t=await ne(lr(e,"messages"),{cache:"no-store"});if(!t.ok)throw new Error(`messages HTTP ${t.status}`);return t.json()}function ch(e,t,{onMessage:n,onStatus:r,onError:o}={}){let l;try{l=new EventSource(`${lr(e,"messages","stream")}?cursor=${t}`)}catch(s){return o==null||o(s),()=>{}}return l.addEventListener("ready",()=>r==null?void 0:r(!0)),l.addEventListener("message",s=>{try{n==null||n(JSON.parse(s.data))}catch(i){o==null||o(i)}}),l.addEventListener("stream-error",s=>{var i;try{o==null||o(new Error(((i=JSON.parse(s.data))==null?void 0:i.error)||"message stream failed"))}catch{o==null||o(new Error("message stream failed"))}}),l.addEventListener("error",()=>r==null?void 0:r(!1)),()=>l.close()}async function dh(e){const t=await ne(lr(e));return t.ok?t.json():null}async function fh(e,t,{replyVia:n}={}){const r=await ne(lr(e,"input"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({kind:"text",text:t,...n?{replyVia:n}:{}})}),o=await r.json().catch(()=>({}));return{ok:r.ok&&(o==null?void 0:o.ok)!==!1,error:o==null?void 0:o.error}}async function ph(){return(await ne("/api/plugins")).json()}async function hh(){return(await ne("/api/plugins?surface=review")).json()}async function mh(){return(await ne("/api/settings")).json()}async function gh(e){const t=await ne(`/api/issues/${encodeURIComponent(e)}`);if(t.status===404)return!1;if(!t.ok)throw new Error(`HTTP ${t.status}`);return t.json()}async function vh(e,t,n){return(await ne(`/api/issues/${encodeURIComponent(e)}/reply`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:t,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function yh(e){return(await ne(`/api/issues/${encodeURIComponent(e)}/close`,{method:"POST"})).json()}async function wh(e){return(await ne(`/api/issues/${encodeURIComponent(e)}/promote`,{method:"POST"})).json()}async function kh(e,t){return(await ne(`/api/remarks/${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ref:t})})).json()}async function Sh({concern:e,body:t,evidence:n,store:r}){return(await ne("/api/issues",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({concern:e,body:t,store:r,...n!=null&&n.length?{evidence:n}:{}})})).json()}async function xh({node:e,scenario:t,issue:n,body:r,codeSha:o,evidence:l}){return(await ne("/api/remarks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({node:e,scenario:t,issue:n,body:r,...o?{codeSha:o}:{},...l!=null&&l.length?{evidence:l}:{}})})).json()}async function jh(e,t){return(await ne(`/api/specs/${encodeURIComponent(e)}/evals/ok`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({scenario:t})})).json()}async function Eh(e){return(await ne("/api/evidence",{method:"POST",headers:{"Content-Type":"image/png"},body:e})).json()}const be=async e=>(e.headers.get("content-type")||"").includes("json")?e.json().catch(()=>null):null,$p=5e3,zc=(e,t,n)=>({title:typeof(e==null?void 0:e.title)=="string"&&e.title?e.title:t,icon:typeof(e==null?void 0:e.icon)=="string"&&e.icon?e.icon:n});function uo(e){if(!e||typeof e!="object")return null;const t=e.id??e.projectId;return t?{id:String(t),identity:zc(e.identity||{title:e.name,icon:e.icon},e.name||String(t),"spexcode"),root:typeof e.root=="string"?e.root:"",online:typeof e.online=="boolean"?e.online:null,url:e.url||"",port:e.port??null,gated:!!(e.gated??e.locked??e.hasPassword),configRevision:typeof e.configRevision=="string"?e.configRevision:""}:null}const _p=e=>{const t=Array.isArray(e)?e:Array.isArray(e==null?void 0:e.projects)?e.projects:null;return t?t.map(uo).filter(Boolean):null},Lp=10;function Ch(e,t,n=Lp){const r=Array.isArray(e)?e:[],o=Math.max(1,Math.ceil(r.length/n)),l=Math.min(Math.max(1,Number.isInteger(t)?t:1),o);return{items:r.slice((l-1)*n,l*n),page:l,pageCount:o}}function Mp(e,t,n){var r;if(!e)return n;if(!t)return null;if(t.state==="ok"){const o=(r=t.projects)==null?void 0:r.find(l=>l.id===e);return(o==null?void 0:o.identity)||{title:e,icon:"spexcode"}}return{title:(n==null?void 0:n.title)||e,icon:(n==null?void 0:n.icon)||"spexcode"}}const Ip=e=>(e==null?void 0:e.state)==="ok"?e.gateway.identity:{title:"Projects",icon:"gateway"},zp=e=>(e==null?void 0:e.title)||"SpexCode",pa=(e,t)=>(t==null?void 0:t.state)==="absent"&&e&&e.state!=="absent"?e:t;async function Rp(){let e;try{e=await fetch("/projects",{cache:"no-store",headers:{Accept:"application/json"}})}catch{return{state:"absent"}}if(e.status===401)return{state:"denied",reason:"admin-login"};if(e.status===403)return{state:"denied",reason:"locked"};if(!e.ok)return{state:"absent"};const t=await be(e),n=_p(t);if(!n)return{state:"absent"};const r=t!=null&&t.gateway&&typeof t.gateway=="object"?{identity:zc(t.gateway,"Projects","gateway"),revision:typeof t.gateway.revision=="string"?t.gateway.revision:""}:{identity:{title:"Projects",icon:"gateway"},revision:""};return{state:"ok",adminGated:!!(t!=null&&t.adminGated),gateway:r,projects:n}}async function Th(e,{timeoutMs:t=2500}={}){try{const n=await fetch(`/p/${encodeURIComponent(e)}/health`,{cache:"no-store",signal:AbortSignal.timeout(t)});return!n.ok||n.redirected?"unreachable":(await n.text()).trim()==="ok"?"running":"unreachable"}catch{return"unreachable"}}async function $o(e,t,n){let r;try{r=await fetch(e,{method:t,headers:{"Content-Type":"application/json",Accept:"application/json"},...t==="PUT"?{body:JSON.stringify({password:n})}:{}})}catch{return{ok:!1,error:"network"}}const o=await be(r)||{};return{ok:r.ok&&o.ok!==!1,status:r.status,...o.error?{error:o.error}:{}}}const Ph=(e,t)=>$o(`/projects/${encodeURIComponent(e)}/password`,"PUT",t),Nh=e=>$o(`/projects/${encodeURIComponent(e)}/password`,"DELETE"),$h=e=>$o("/projects/admin-password","PUT",e),_h=()=>$o("/projects/admin-password","DELETE");async function Op(e,t){const n=e==="admin"?"/login":`/p/${encodeURIComponent(e.projectId)}/login`;let r;try{r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:t})})}catch{return{ok:!1,error:"network"}}return r.status===401?{ok:!1,error:"wrong-password"}:r.status===403?{ok:!1,error:"locked"}:r.ok||r.redirected?{ok:!0}:{ok:!1,error:`http-${r.status}`}}async function Lh(e=""){let t;try{const r=e?`?path=${encodeURIComponent(e)}`:"";t=await fetch(`/projects/browse${r}`,{cache:"no-store",headers:{Accept:"application/json"}})}catch{return{ok:!1,error:"network"}}const n=await be(t);return t.ok?typeof(n==null?void 0:n.path)!="string"||!Array.isArray(n==null?void 0:n.entries)?{ok:!1,error:"unexpected answer"}:{ok:!0,path:n.path,parent:typeof n.parent=="string"?n.parent:null,home:typeof n.home=="string"?n.home:n.path,gitRoot:typeof n.gitRoot=="string"?n.gitRoot:null,initialized:!!n.initialized,cataloged:!!n.cataloged,entries:n.entries.filter(r=>r&&typeof r.name=="string"&&typeof r.path=="string").map(r=>({name:r.name,path:r.path,git:!!r.git,initialized:!!r.initialized}))}:{ok:!1,status:t.status,error:(n==null?void 0:n.error)||`http-${t.status}`}}async function Mh(e,t={}){let n;try{n=await fetch("/projects",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({root:e,...t})})}catch{return{ok:!1,error:"network"}}const r=await be(n);if(!n.ok)return{ok:!1,status:n.status,error:(r==null?void 0:r.error)||`http-${n.status}`,...r!=null&&r.init&&typeof r.init=="object"?{code:r.init.code??null,output:String(r.init.output??"")}:{}};const o=uo(r);return o?{ok:!0,project:o,setup:r.setup??null}:{ok:!1,error:"unexpected answer"}}async function Ih(e){let t;try{t=await fetch(`/projects/${encodeURIComponent(e)}/config`,{cache:"no-store",headers:{Accept:"application/json"}})}catch{return{ok:!1,error:"network"}}const n=await be(t);return t.ok?typeof(n==null?void 0:n.content)!="string"||typeof(n==null?void 0:n.revision)!="string"?{ok:!1,error:"unexpected answer"}:{ok:!0,content:n.content,revision:n.revision}:{ok:!1,status:t.status,error:(n==null?void 0:n.error)||`http-${t.status}`}}async function zh(e,t,n){let r;try{r=await fetch(`/projects/${encodeURIComponent(e)}/config`,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({content:t,revision:n})})}catch{return{ok:!1,error:"network"}}const o=await be(r);return r.ok?typeof(o==null?void 0:o.content)!="string"||typeof(o==null?void 0:o.revision)!="string"?{ok:!1,error:"unexpected answer"}:{ok:!0,content:o.content,revision:o.revision}:{ok:!1,status:r.status,error:(o==null?void 0:o.error)||`http-${r.status}`}}async function Rc(e,t,n){let r;try{r=await fetch(e,{method:"PUT",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({icon:t,revision:n})})}catch{return{ok:!1,error:"network"}}const o=await be(r);return r.ok?{ok:!0,...o}:{ok:!1,status:r.status,error:(o==null?void 0:o.error)||`http-${r.status}`}}const Rh=(e,t)=>Rc("/projects/icon",e,t),Oh=(e,t,n)=>Rc(`/projects/${encodeURIComponent(e)}/icon`,t,n);async function Oc(e,t,n={}){let r;try{r=await fetch(`/projects/${encodeURIComponent(e)}/${t}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n)})}catch{return{ok:!1,error:"network"}}const o=await be(r);return r.ok?!o||typeof o!="object"?{ok:!1,error:"unexpected answer"}:{ok:o.ok===!0,code:o.code??null,output:String(o.output??"")}:{ok:!1,status:r.status,error:(o==null?void 0:o.error)||`http-${r.status}`}}const Fh=(e,t)=>Oc(e,"init",{harness:t}),Dh=e=>Oc(e,"doctor");async function Ah(e){let t;try{t=await fetch(`/projects/${encodeURIComponent(e)}/serve`,{method:"POST",headers:{Accept:"application/json"}})}catch{return{ok:!1,error:"network"}}const n=await be(t);return t.status===409?{ok:!0,already:!0,project:uo(n==null?void 0:n.project)}:t.ok?{ok:!0,project:uo(n==null?void 0:n.project)}:{ok:!1,status:t.status,error:(n==null?void 0:n.error)||`http-${t.status}`}}const Xs={common:{new:"new",none:"none",idle:"idle",sessions:"sessions",session:"session",loading:"loading…",noVersions:"no versions yet — this spec is the latest ground truth.",cancel:"cancel",save:"save",close:"close"},status:{working:"working",idle:"idle",offline:"offline",starting:"starting",review:"review",done:"done","close-pending":"close-pending",parked:"parked",error:"error",asking:"asking",queued:"queued",merged:"merged",active:"active",drift:"drift",pending:"pending"},sessionZone:{need:"needs you",run:"running",offline:"offline"},nav:{railLabel:"main navigation",graph:"Spec Node Graph (⌥1)",sessions:"Sessions (⌥2)",evals:"Evals (⌥3 / ⌥F)",issues:"Issues (⌥4)",settings:"Settings (⌥5)",projectChip:"project: {name} — switch project",allProjects:"All projects"},projects:{title:"Projects",count:"{n} project(s)",pagination:"project pages",previousPage:"previous project page",nextPage:"next project page",pageOf:"page {page} of {pages}",current:"current",empty:"No projects yet — add a repository by its root path, or run `spex serve` in a repo and its backend registers itself here.",absent:"This deployment serves a single project — the multi-project catalog is not available here.",open:"open",add:"add project",addTitle:"Add project",addPlaceholder:"/abs/path/to/repo",addSubmit:"add",addBusy:"adding…",browseParent:"parent folder",browseHome:"home folder",browseGo:"go",browseLoading:"loading…",folderList:"folders",folderEmpty:"no subfolders",initGit:"initialize Git repository",initSpex:"initialize SpexCode",spexInitialized:"SpexCode initialized",harnessTargets:"harness targets",alreadyAdded:"already in the project catalog",configTitle:"edit spexcode.json",configEditor:"spexcode.json contents",configLoading:"loading…",configSave:"save",configSaving:"saving…",configReload:"reload",configSaved:"saved",configInvalid:"top level must be a valid JSON object",gatewayIcon:"gateway icon",projectIcon:"project icon",editGatewayIcon:"edit gateway icon",editProjectIcon:"edit project icon",gatewaySettings:"gateway settings",iconSearch:"search icons",iconSources:"icon sources",iconSourceFeatured:"Featured",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"Brands",iconSearching:"searching…",iconSearchEmpty:"no matching icons",iconSearchFailed:"icon search unavailable",setupTitle:"setup — init / doctor",harnessLabel:"harness:",harnessRequired:"pick at least one harness target — init refuses to guess",init:"init",doctor:"doctor",running:"running…",start:"start",startBusy:"starting…",opOk:"{op}: exit 0 — succeeded",opFail:"{op}: exit {code} — failed",actionFailed:"the gateway rejected the request",passwordTitle:"project password",passwordPlaceholder:"new project password",passwordSet:"set",passwordClear:"clear",adminPassword:"admin password",adminPasswordPlaceholder:"new administrator password",adminUngated:"No administrator password is set — management works from this machine only. Set one to sign in remotely; you stay signed in.",health:{probing:"checking…",running:"running",unreachable:"unreachable",stopped:"backend stopped — start it from here"}},credential:{adminTitle:"administrator sign-in",adminBody:"This is a private agent workspace. Enter the administrator password to manage projects.",projectTitle:"unlock {name}",projectBody:"This project is protected. Enter its access password to continue.",lockedTitle:"management is locked",lockedBody:"No administrator password is configured, so remote management is locked. Set one from the machine running the gateway, then sign in here.",passwordLabel:"password",wrong:"Incorrect password — try again.",failed:"Sign-in failed — the gateway did not accept the request.",checking:"checking…",unlock:"unlock"},hud:{helpTitle:"help — keymap & legend (?)",loading:"loading specs from git…",loadError:"backend unreachable — the graph failed to load.",retry:"retry"},evalsFeed:{title:"Evals",kind:{video:"video",image:"image",all:"all"},summary:({n:e})=>`${e} current`,datasetEmpty:"No evals yet.",noMatches:"No evals match this view.",annotate:"open & annotate",inSession:"measured by this session",okdTip:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,okChip:({n:e})=>`${e} ok’d`,okChipTitle:"show the fresh, human-ok’d scenarios the feed default-hides",filedBy:({by:e})=>`filed by ${e}`,filedAt:({at:e})=>`filed ${e} ago`,sessionTag:"session"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"All",search:"Search",searchIssues:"Search issues",searchEvals:"Search evals",clearSearch:"Clear search",showing:({shown:e,total:t})=>`showing ${e} of ${t}`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"Current",needsReview:"Needs review",reviewed:"Reviewed",filters:"Filters",activeFilters:({n:e})=>`${e} active filter${e===1?"":"s"}`,facetStore:"Store",facetVerdict:"Verdict",facetFreshness:"Freshness",facetKind:"Evidence",facetAuthor:"Author",facetNode:"Spec node",facetFiler:"Filer",facetState:"State",facetReview:"Human review",facetSession:"Source session",sessionPresent:"Present",sessionMissing:"Missing",openedBy:({by:e})=>`opened by ${e}`,openedAt:({at:e})=>`opened ${e} ago`,verdict:{pass:"Pass",fail:"Fail",unscored:"Unscored"},freshness:{fresh:"Fresh",stale:"Stale"},pagination:"Pagination",previous:"Previous",next:"Next",prevPage:"Previous Page",nextPage:"Next Page",page:({n:e})=>`Page ${e}`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`no eval found for ${e} · ${t}`,issueNotFound:({id:e})=>`no issue found for ${e}`,backToEvals:"← all evals",backToIssues:"← all issues"},detail:{sideReading:"result",sideFiler:"filed by",sideOk:"human-ok",sideStore:"store",sideOriginator:"opened by",sideNodes:"spec nodes",backToEvals:"back to evals",backToIssues:"back to issues",sideQueue:"continue reviewing",queuePrev:"previous",queueNext:"up next",sideIssue:"issue",sideNode:"spec node"},annotator:{title:"annotator",play:"play",pause:"pause",fullscreen:"fullscreen",exitFullscreen:"exit fullscreen",capturing:"capturing frame…",failed:"failed — is the backend up?",comments:({n:e})=>e?`review track (${e})`:"review track",abOlder:"older eval (‹ toward the A / reproduced bug)",abNewer:"newer eval (toward the B / verified fix ›)",abLatest:"latest",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`older results (${e})`,okd:"human-ok",okBy:({by:e,at:t})=>`human-ok’d by ${e} · ${t}`,menuReview:"review commands",cmd:{okDesc:"sign off this result — you reviewed it and agree with its verdict; binds to THIS latest result only, monotonic (no un-ok)"}},thread:{anchorNow:"anchor",anchorTitle:"anchor this comment to the current frame",mentionActor:"insert @ — mention a session or summon a worker",mentionNode:"insert [[ — link a spec node",reviewCommands:"insert / — review commands",resolved:"resolved",resolvedBy:"resolved by {by}",openRemark:"open",resolve:"resolve",resolveTitle:"resolve this remark — a second party’s judgment that it is addressed (monotonic: no un-resolve)",retract:"retract",retractTitle:"withdraw your own unresolved remark — removes it from the thread",anchorDegraded:"this step is gone from the current eval — the m:ss is the frozen original, not seekable",originatorIssue:"open the session that filed this issue: {by}",originatorEval:"open the session that filed this eval: {by}"},sessionEval:{btn:"eval",btnTitle:"open this session's evaluation — the measured eval evidence and the merge gates, on the Evals page",scopeDoor:"Back to session terminal",none:"no evaluation for this session yet",unavailable:"evaluation unavailable until the session model loads successfully.",loadFailed:({reason:e})=>`session evaluation failed to load — ${e}`,export:"export",exportTitle:"export this evaluation as a self-contained HTML report",empty:"nothing measured for this session yet.",unmeasured:"unmeasured",unknownCoverage:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`},time:{justNow:"now",minutes:({n:e})=>`${e}m`,hours:({n:e})=>`${e}h`,days:({n:e})=>`${e}d`,weeks:({n:e})=>`${e}w`},legend:{title:"help · keymap & legend",close:"close (esc or ?)",secBoard:"graph keys",secPopup:"node-info popup",secStatus:"status dot",secOp:"overlay op",secOpSub:"(a worktree's pending change)",secBadges:"badges",secRing:"node ring",graph:{move:"move up / down the focused column (siblings)",parent:"to the parent",child:"to the nearest child",zoom:"zoom in / out · reset to overview",info:"open the node-info popup (or double-click a node)",search:"search & jump across nodes, sessions, issues & scenarios",overlayCycle:"cycle through nodes a worktree is changing (⇧ reverse)",fresh:"start a fresh session on the focus node",evals:"open the evals page (the project’s current measured loss)",newChild:"new child node under the focus (chord)",del:"delete the focused node (chord)",settings:"open settings (language…)",help:"open this help"},popup:{switch:"switch pane (spec / history)",scroll:"scroll · reveal the next version",lens:"walk the tree behind the popup — it follows the focus",enter:"inert — the popup is a read-only surface",esc:"close the popup"},statusRows:{merged:"spec & code in sync",active:"in-flight — the dot pulses",drift:"governed code is ahead of its spec",pending:"no committed version yet"},opRows:{added:"added",edited:"edited",deleted:"deleted",moved:"moved"},badgeDrift:"drift: N commits of code ahead of the spec",badgeVer:"version: N content commits to the node's spec.md",ringDashed:"dashed = uncommitted overlay",ringSolid:"solid = committed; ring colour = the author session",ringGhost:"translucent “ghost” = an added node not yet on main"},sessionWindow:{menuLabel:"session actions",rowTitle:"click to lock the graph onto this session · double-click to open it",lockedTitle:"graph locked to this session — click again to release",emptyBefore:"no live worktrees — press ",emptyAfter:" to start one",lock:"lock on graph",rename:"rename",attach:"open in terminal…",select:"select…",close:"close",closeTitle:"close “{name}”?",closeConfirm:"This closes the session and removes its worktree. Any uncommitted changes are lost.",renameTitle:"rename “{name}”",renamePlaceholder:"display name (blank to reset)",attachTitle:"attach to “{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"copy",attachCopied:"copied"},sessionSelect:{selected:({n:e})=>`${e} selected`,close:"close",closeTitle:({n:e})=>e===1?"close 1 session?":`close ${e} sessions?`,closeConfirm:"This closes every selected session and removes its worktree. Any uncommitted changes are lost."},lockHint:{cycleBefore:"press ",cycleNext:" next",cyclePrev:" previous",cycleAfter:({n:e})=>` through this session's ${e} changed nodes`,singleChanged:"this session changed 1 node",empty:"this session has no pending spec changes",release:"release",releaseTitle:"release the lock (or click the session again)"},nodeView:{paneSpec:"spec",paneHistory:"history",paneIssues:"issues",paneEval:"eval",paneEdit:"edit",filterIssues:"filter issues…",filterScenarios:"filter scenarios…",filterNone:"nothing matches the filter.",noEdit:"no pending change — this node has no live edit in flight.",editCommitted:"committed",editDirty:"uncommitted",pendingEdits:({n:e})=>`${e} session${e===1?"":"s"} editing this node`,openIssues:({n:e})=>`${e} open`,closedIssues:({n:e})=>`${e} closed`,noIssues:"no issues linked to this node yet.",hint:"←→/hl/tab switch · j/k/↑↓ scroll · ⇧+nav walk the tree · esc back",statusLabel:"status:",versionLabel:"version:",lastEditedBy:"last edited by:",governs:"// governs",proseNode:"// no file owned · prose node",rawTitle:"raw source",rawOwner:"human",rawNote:"rarely changed · needs approval",expandedTitle:"expanded spec",expandedOwner:"agent",expandedNote:"versioned often · must match raw source",filesChanged:({n:e})=>`${e} file${e===1?"":"s"} changed`,loadingChange:"loading diff…",noChange:"no recorded change yet — this spec is the latest ground truth.",diffLabel:"spec line diff",loadingHistory:"loading history…",eval:{noScenarios:"no scenarios declared — this node has no eval.md to measure.",noReadings:"no measurements yet — run `spex eval add` to file one. The declared scenarios:",staleAxes:({axes:e})=>`stale: ${e} moved since this eval`,staleLabel:"stale:",staleReadoutTitle:"this eval is behind — the axes that moved since it, and for the code axis which governed files drifted and by how many commits (+N)",danglingTitle:"this scenario was renamed or deleted — its remarks have no eval to attach to, but stay resolvable via their refs",danglingGone:"scenario gone",pass:"✓ pass",fail:"✗ fail",note:"≈ note",legacy:"legacy",expected:"expected:",noteLabel:"note:",loadingTranscript:"loading transcript…",loadingData:"loading data…",data:"structured data (JSON)",dataInvalid:"structured data — invalid JSON",miss:"miss original file — the evidence was pruned from the cache.",noImage:"no evidence — the agent attested without a capture.",shotAlt:({scenario:e})=>`captured evidence for ${e}`,openDetail:"open this scenario's eval detail page",passCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & passing`,failCount:({n:e})=>`${e} scenario${e===1?"":"s"} fresh & failing`}},stats:{aria:"graph statistics",totalTitle:({n:e})=>`${e} spec node${e===1?"":"s"} in the tree`,statusTitle:({n:e,status:t})=>`${e} ${t} — click to walk them`,driftTitle:({n:e})=>`${e} node${e===1?"":"s"} whose code is ahead of its spec — click to walk them`,issueTitle:({n:e})=>`${e} distinct open issue${e===1?"":"s"} linked to the tree — click to walk the nodes carrying them`,scorePass:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & passing — click to walk the nodes carrying them`,scoreFail:({n:e})=>`${e} scenario${e===1?"":"s"} measured fresh & failing — click to walk the nodes carrying them`,scoreStalePass:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale pass (code moved since the last passing measurement) — click to walk the nodes carrying them`,scoreStaleFail:({n:e})=>`${e} scenario${e===1?"":"s"} with a stale fail (code moved since the last failing measurement) — click to walk the nodes carrying them`,scoreEmpty:({n:e})=>`${e} unmeasured or unscored scenario${e===1?"":"s"} (a blind spot) — click to walk the nodes carrying them`},score:{pass:"current pass — measured, fresh, and passing",fail:"current fail — measured, fresh, and failing",stalePass:"stale — last measured a pass, now out of date",staleFail:"stale — last measured a fail, now out of date",empty:"no current score — never measured, or no pass/fail verdict",missing:"not measured yet — no eval filed for this scenario",count:({satisfied:e,total:t,outstanding:n})=>`${e} of ${t} scenario${t===1?"":"s"} satisfied (fresh & passing)`+(n?` · ${n} outstanding — failing, stale, or unmeasured`:""),openList:"open the Evals list filtered to this node"},specNode:{liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,more:({n:e})=>`${e} more`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`${e} ahead`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?" (uncommitted)":""}`,openIssues:({n:e})=>`${e} open issue${e===1?"":"s"} — open node info to read them`,expandable:({n:e})=>`${e} child${e===1?"":"ren"} — focus to drill in`},nodeMenu:{menuLabel:"node actions",info:"node info",newSession:"new session",newChild:"new child node…",del:"delete node…"},session:{opsTitle:"nodes this session is changing — right-click for session actions",lockTitle:"right-click for session actions, including lock on graph",newSession:"New Session",newSessionTitle:"New Session (⌥+N)",searchTitle:"Search (⌘+/)",issuesOff:"The issues workflow is off.",issuesEmpty:"No issues yet.",issuesNoMatch:"No issues match this view.",issuesLoading:"loading issues…",issuesFocusNode:"focus this node on the graph",issuesReplies:({n:e})=>`${e} ${e===1?"reply":"replies"}`,issuesOpenOnStore:"Open on {store} ↗",issuesThreadsTitle:"threads",issuesStoreAll:"all",issuesStoreLabel:"store",issuesNew:"New",issuesCancel:"Cancel",issuesSend:"Send",issuesPost:"Post",issuesSending:"sending…",issuesPostFailed:"post failed",issuesClosing:"closing…",issuesCloseIssue:"Close issue",issuesCloseIssueTitle:"close this issue — the work is finished or the forge issue should be closed",issuesActing:"working…",issuesPromote:"Promote",issuesPromoteTitle:"promote this local issue to the forge — create the real forge issue first, then close the local thread with the permalink",issuesReplyPlaceholder:"reply…",issuesConcernPlaceholder:"concern — one line",issuesBodyPlaceholder:"details (optional)",inputPlaceholder:"describe the work · @ spec · / command · ⏎ to launch · ⇧⏎ newline",menuCommands:"commands",menuPresets:"command presets",menuSpecNodes:"spec nodes",menuSessions:"sessions",menuHint:"↑↓ pick · ⏎ insert",hint:{before:"type ",mid:" to reference a spec · ",after:" to apply a command preset"},harnessLabel:"agent launcher",launcherLabel:"launcher",launcherTip:"edit spexcode.json / spexcode.local.json to change launchers",tabTerminal:"terminal",tabMessages:"messages",tabConversation:"conversation",fullProcess:"complete process",backToConversation:"back to conversation",tabEval:"eval",tabEvalTitle:"open this session's evaluation on the Evals page",toolbarLabel:"session terminal toolbar",messagesToolbarLabel:"session message toolbar",conversationToolbarLabel:"session conversation toolbar",surfaceLabel:"current session surface",messagesLoading:"loading messages…",messagesEmpty:"waiting for messages…",messagesDisconnected:"message stream disconnected · reconnecting…",messagesUnavailable:"message stream unavailable",messagesYou:"you",messagesAssistant:"assistant",commandsLabel:"available session commands",evalLoading:"loading this session's eval summary",evalUnavailable:"this session's eval summary is unavailable",evalUpdating:({summary:e})=>`updating this session's eval summary — last known: ${e}`,evalDisconnected:({summary:e})=>e?`graph stream disconnected — last known: ${e}`:"graph stream disconnected — eval summary has no last-known value",evalFailedKnown:({summary:e})=>`eval summary update failed — last known: ${e}`,evalPass:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and passing`,evalFail:({n:e})=>`${e} scenario${e===1?"":"s"} fresh and failing`,evalReview:({n:e})=>`${e} measured scenario${e===1?"":"s"} stale or unscored and needing review`,evalBlind:({n:e})=>`${e} declared scenario${e===1?"":"s"} not measured`,evalUnknown:({n:e})=>`${e} changed frontend file${e===1?"":"s"} with unknown eval coverage`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:o})=>`open this session's Evals page — ${e} fresh pass, ${t} fresh fail, ${n} need review, ${r} unmeasured, ${o} unknown`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"open Command Box for an atomic prompt or board command (Alt/Cmd+I)",commandClose:"close Command Box",commandPlaceholder:"Send an atomic prompt or run a board command",commandSend:"send from Command Box",relaunch:"relaunch",relaunchTitle:"relaunch and resume this session",merge:"merge",relaunchResume:"⏵ relaunch & resume",merges:({n:e})=>`merged ×${e}`,mergesTitle:"times merged to main",offlineMsg:"⏻ offline — no live process for this worktree.",offlineSubBefore:"the worktree and its session ",offlineSubAfter:" are intact. relaunch to resume the same conversation.",msgError:"⚠ not delivered — retry",attachTitle:"attach a file (or paste / drop) — uploaded to the session machine, its /tmp path inserted",attachError:"⚠ upload failed",cmd:{evalDesc:"open this session's Evals page — eval evidence, diff, merge gates",mergeTitle:"merge this session to main",mergeDesc:"merge this session to main",stopTitle:"stop this session (kill the agent, keep the worktree — resumable)",stopDesc:"stop — kill the agent + tmux but KEEP the worktree, so it can be resumed",closeTitle:"close this session (removes the worktree)",closeDesc:"close — remove the worktree + branch, discarding the work (= row menu → Close)"}},settings:{title:"settings",close:"close (esc or ,)",secLanguage:"language",secTheme:"theme",secTerminal:"terminal",terminalFontSize:"font size",secShortcuts:"shortcuts",bindPrompt:"press a key…",shortcutsHint:"click a key to rebind it. nav & chord keys are fixed. (a game controller binds to actions, not keys — rebinding here never touches the pad.)",reset:"reset to defaults"},search:{title:"search nodes, sessions, issues & scenarios",placeholder:"search nodes, sessions, issues, scenarios…",empty:"no match",hint:"↑↓ pick · ⏎ jump · esc close",kind:{spec:"node",session:"session",issue:"issue",scenario:"scenario"}},mobile:{specsTab:"specs",sessionsTab:"sessions",evalsTab:"evals",issuesTab:"issues",childrenTab:({n:e})=>`children ${e}`,liveEditors:({n:e})=>`${e} live editor${e===1?"":"s"}`,noSessions:"no live sessions — tap + above to start one",newSession:"new session",newPlaceholder:"describe the task for a new agent…",launch:"launch",launching:"launching…",launchFailed:"launch failed — the backend refused or is unreachable",back:"back",noEvents:"nothing recorded yet — status changes and messages will land here",asked:"original ask",you:"you",inputPlaceholder:"message the agent…",send:"send",sendFailed:"not delivered — the agent may be offline",offlineHint:"agent offline — messages cannot be delivered until it is relaunched"}},Fp={common:{new:"新建",none:"无",idle:"空闲",sessions:"会话",session:"会话",loading:"加载中…",noVersions:"尚无版本——此规格即最新的事实依据。",cancel:"取消",save:"保存",close:"关闭"},status:{working:"工作中",idle:"空闲",offline:"离线",starting:"启动中",review:"待审查",done:"已完成","close-pending":"待关闭",parked:"驻留",error:"错误",asking:"待答",queued:"排队中",merged:"已合并",active:"进行中",drift:"偏移",pending:"待定"},sessionZone:{need:"待你处理",run:"自运行",offline:"离线"},nav:{railLabel:"主导航",graph:"规格节点图(⌥1)",sessions:"会话面板(⌥2)",evals:"Evals(⌥3 / ⌥F)",issues:"议题(⌥4)",settings:"设置(⌥5)",projectChip:"项目:{name} — 切换项目",allProjects:"全部项目"},projects:{title:"项目",count:"{n} 个项目",pagination:"项目分页",previousPage:"上一页项目",nextPage:"下一页项目",pageOf:"第 {page} / {pages} 页",current:"当前",empty:"还没有项目 — 按仓库根路径添加一个,或在仓库里运行 `spex serve`,它的 backend 会自己注册到这里。",absent:"此部署只服务单个项目 — 这里没有多项目目录。",open:"打开",add:"添加项目",addTitle:"添加项目",addPlaceholder:"/仓库/根/绝对路径",addSubmit:"添加",addBusy:"添加中…",browseParent:"上级目录",browseHome:"主目录",browseGo:"前往",browseLoading:"加载中…",folderList:"文件夹",folderEmpty:"没有子目录",initGit:"初始化 Git 仓库",initSpex:"初始化 SpexCode",spexInitialized:"已初始化 SpexCode",harnessTargets:"harness 目标",alreadyAdded:"已在项目目录中",configTitle:"编辑 spexcode.json",configEditor:"spexcode.json 内容",configLoading:"加载中…",configSave:"保存",configSaving:"保存中…",configReload:"重新加载",configSaved:"已保存",configInvalid:"顶层内容必须是有效的 JSON 对象",gatewayIcon:"gateway 图标",projectIcon:"项目图标",editGatewayIcon:"编辑 gateway 图标",editProjectIcon:"编辑项目图标",gatewaySettings:"gateway 设置",iconSearch:"搜索图标",iconSources:"图标来源",iconSourceFeatured:"精选",iconSourceMaterial:"Material",iconSourceLucide:"Lucide",iconSourceTabler:"Tabler",iconSourcePhosphor:"Phosphor",iconSourceBrands:"品牌",iconSearching:"搜索中…",iconSearchEmpty:"没有匹配的图标",iconSearchFailed:"图标搜索暂不可用",setupTitle:"项目操作 — init / doctor",harnessLabel:"harness:",harnessRequired:"至少选择一个 harness 目标 — init 不会替你猜",init:"init",doctor:"doctor",running:"运行中…",start:"启动",startBusy:"启动中…",opOk:"{op}:exit 0 — 成功",opFail:"{op}:exit {code} — 失败",actionFailed:"gateway 拒绝了该请求",passwordTitle:"项目密码",passwordPlaceholder:"新的项目密码",passwordSet:"设置",passwordClear:"清除",adminPassword:"管理员密码",adminPasswordPlaceholder:"新的管理员密码",adminUngated:"尚未设置管理员密码 — 管理仅限本机。设置后即可远程登录;设置动作本身会保持你的登录态。",health:{probing:"检测中…",running:"运行中",unreachable:"不可达",stopped:"backend 已停止 — 可在此启动"}},credential:{adminTitle:"管理员登录",adminBody:"这是一个私有的 agent 工作台。输入管理员密码以管理项目。",projectTitle:"解锁 {name}",projectBody:"该项目受密码保护。输入访问密码以继续。",lockedTitle:"管理已锁定",lockedBody:"尚未配置管理员密码,远程管理已锁定。请在运行 gateway 的机器上设置密码,然后回到这里登录。",passwordLabel:"密码",wrong:"密码不正确 — 请重试。",failed:"登录失败 — gateway 未接受请求。",checking:"校验中…",unlock:"解锁"},hud:{helpTitle:"帮助 — 按键与图例(?)",loading:"正在从 git 加载规格…",loadError:"无法连接后端 —— 看板加载失败。",retry:"重试"},evalsFeed:{title:"评测",kind:{video:"视频",image:"图片",all:"全部"},summary:({n:e})=>`${e} 条当前`,datasetEmpty:"暂无评测。",noMatches:"当前视图没有匹配的评测。",annotate:"打开并标注",inSession:"由本会话测得",okdTip:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,okChip:({n:e})=>`${e} 已签核`,okChipTitle:"显示被默认隐藏的已签核场景",filedBy:({by:e})=>`由 ${e} 提交`,filedAt:({at:e})=>`${e}前提交`,sessionTag:"会话"},reviewState:{issueOpen:"Open",issueClosed:"Closed"},reviewList:{all:"全部",search:"搜索",searchIssues:"搜索 issues",searchEvals:"搜索 evals",clearSearch:"清除搜索",showing:({shown:e,total:t})=>`显示 ${e} / ${t} 条`,issuesTitle:"Issues",open:"Open",closed:"Closed",current:"当前",needsReview:"待人工复核",reviewed:"已人工复核",filters:"筛选",activeFilters:({n:e})=>`${e} 个已启用筛选`,facetStore:"存储",facetVerdict:"判定",facetFreshness:"新鲜度",facetKind:"证据",facetAuthor:"发起者",facetNode:"规格节点",facetFiler:"提交者",facetState:"状态",facetReview:"人工复核",facetSession:"来源会话",sessionPresent:"仍在",sessionMissing:"已不在",openedBy:({by:e})=>`由 ${e} 发起`,openedAt:({at:e})=>`${e}前发起`,verdict:{pass:"通过",fail:"未通过",unscored:"未评分"},freshness:{fresh:"最新",stale:"过期"},pagination:"分页",previous:"上一页",next:"下一页",prevPage:"上一页",nextPage:"下一页",page:({n:e})=>`第 ${e} 页`},reviewShell:{evalNotFound:({node:e,scenario:t})=>`找不到 ${e} · ${t} 的评测`,issueNotFound:({id:e})=>`找不到 issue ${e}`,backToEvals:"← 全部评测",backToIssues:"← 全部 issues"},detail:{sideReading:"结果",sideFiler:"提交者",sideOk:"人工签核",sideStore:"存储",sideOriginator:"发起者",sideNodes:"规格节点",backToEvals:"返回评测列表",backToIssues:"返回 issues 列表",sideQueue:"继续查看",queuePrev:"前面",queueNext:"接下来",sideIssue:"议题",sideNode:"规格节点"},annotator:{title:"标注器",play:"播放",pause:"暂停",fullscreen:"全屏",exitFullscreen:"退出全屏",capturing:"正在截取画面…",failed:"失败 — 后端在跑吗?",comments:({n:e})=>e?`评审轨道(${e})`:"评审轨道",abOlder:"更早的 eval(‹ 靠近 A / 复现出的 bug)",abNewer:"更新的 eval(靠近 B / 验证过的修复 ›)",abLatest:"最新",abPos:({i:e,n:t})=>`${e} / ${t}`,abMore:({n:e})=>`更早的结果(${e})`,okd:"已签核",okBy:({by:e,at:t})=>`已由 ${e} 签核 · ${t}`,menuReview:"评审命令",cmd:{okDesc:"签核这条结果 — 你已复核并认可其判定;只绑定当前最新结果,单调(无撤销)"}},thread:{anchorNow:"锚定",anchorTitle:"把这条评论锚定到当前帧",mentionActor:"插入 @ —— 提及会话或召唤新工作者",mentionNode:"插入 [[ —— 引用规格节点",reviewCommands:"插入 / —— 评审命令",resolved:"已解决",resolvedBy:"由 {by} 解决",openRemark:"未解决",resolve:"解决",resolveTitle:"解决此评注 —— 第二人的判定(单调:不可撤销解决)",retract:"撤回",retractTitle:"撤回你自己未解决的评注 —— 从线程中移除",anchorDegraded:"该步骤已不在当前测量中——此 m:ss 为原始冻结值,无法跳转",originatorIssue:"打开发起此 issue 的会话:{by}",originatorEval:"打开记录此评测的会话:{by}"},sessionEval:{btn:"评测",btnTitle:"打开此会话的评测页 —— 测得的评测证据与合并门禁(Evals 页会话视角)",scopeDoor:"返回会话终端",none:"此会话暂无评测",unavailable:"会话模型成功加载前无法显示评测。",loadFailed:({reason:e})=>`会话评测加载失败 — ${e}`,export:"导出",exportTitle:"导出本次评测为自包含的 HTML 报告",empty:"该会话尚无测量。",unmeasured:"未测量",unknownCoverage:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`},time:{justNow:"刚刚",minutes:({n:e})=>`${e} 分钟`,hours:({n:e})=>`${e} 小时`,days:({n:e})=>`${e} 天`,weeks:({n:e})=>`${e} 周`},legend:{title:"帮助 · 按键与图例",close:"关闭(esc 或 ?)",secBoard:"面板按键",secPopup:"节点信息弹窗",secStatus:"状态点",secOp:"叠加操作",secOpSub:"(工作树的待定改动)",secBadges:"徽标",secRing:"节点边框",graph:{move:"在聚焦列内上/下移动(同级节点)",parent:"前往父节点",child:"前往最近的子节点",zoom:"放大 / 缩小 · 重置为概览",info:"打开节点信息弹窗(或双击节点)",search:"跨节点、会话、议题与场景搜索并跳转",overlayCycle:"在工作树正在修改的节点间循环(⇧ 反向)",fresh:"在聚焦节点上开启一个全新会话",evals:"打开 evals 页(项目当前的实测损失)",newChild:"在聚焦节点下新建子节点(连击)",del:"删除聚焦节点(连击)",settings:"打开设置(语言…)",help:"打开此帮助"},popup:{switch:"切换页签(规格 / 历史)",scroll:"滚动 · 展开下一版本",lens:"穿透弹窗在树上移动——弹窗跟随焦点",enter:"无操作——弹窗是纯阅读界面",esc:"关闭弹窗"},statusRows:{merged:"规格与代码一致",active:"进行中——状态点会闪动",drift:"受管代码领先于其规格",pending:"尚无已提交的版本"},opRows:{added:"新增",edited:"编辑",deleted:"删除",moved:"移动"},badgeDrift:"偏移:代码领先于规格 N 次提交",badgeVer:"版本:该节点 spec.md 的 N 次内容提交",ringDashed:"虚线 = 未提交的叠加",ringSolid:"实线 = 已提交;边框颜色 = 作者会话",ringGhost:"半透明“幽灵” = 尚未进入 main 的新增节点"},sessionWindow:{menuLabel:"会话操作",rowTitle:"单击将图锁定到此会话 · 双击打开它",lockedTitle:"图已锁定到此会话——再次单击解除",emptyBefore:"没有活动的工作树——按 ",emptyAfter:" 开始一个",lock:"锁定到图谱",rename:"重命名",attach:"在终端中打开…",select:"多选…",close:"关闭",closeTitle:"关闭“{name}”?",closeConfirm:"这将关闭会话并删除其工作树。任何未提交的更改都会丢失。",renameTitle:"重命名“{name}”",renamePlaceholder:"显示名称(留空以重置)",attachTitle:"接入“{name}”",attachSpex:"spex",attachTmux:"tmux",attachCopy:"复制",attachCopied:"已复制"},sessionSelect:{selected:({n:e})=>`已选 ${e} 个`,close:"关闭",closeTitle:({n:e})=>`关闭 ${e} 个会话?`,closeConfirm:"这将关闭每个选中的会话并删除其工作树。任何未提交的更改都会丢失。"},lockHint:{cycleBefore:"按 ",cycleNext:" 下一个",cyclePrev:" 上一个",cycleAfter:({n:e})=>`,浏览此会话更改的 ${e} 个节点`,singleChanged:"此会话更改了 1 个节点",empty:"此会话没有待处理的规格更改",release:"解除",releaseTitle:"解除锁定(或再次单击该会话)"},nodeView:{paneSpec:"规格",paneHistory:"历史",paneIssues:"issue",paneEval:"评测",paneEdit:"改动",filterIssues:"筛选 issue…",filterScenarios:"筛选场景…",filterNone:"没有匹配的条目。",noEdit:"暂无进行中的改动 —— 此节点没有正在编辑的会话。",editCommitted:"已提交",editDirty:"未提交",pendingEdits:({n:e})=>`${e} 个会话正在编辑此节点`,openIssues:({n:e})=>`${e} 个待办`,closedIssues:({n:e})=>`${e} 个已关闭`,noIssues:"尚无关联到此节点的 issue。",hint:"←→/hl/tab 切换 · j/k/↑↓ 滚动 · ⇧+方向 树上移动 · esc 返回",statusLabel:"状态:",versionLabel:"版本:",lastEditedBy:"最后编辑者:",governs:"// 管辖",proseNode:"// 无管辖文件 · 纯文档节点",rawTitle:"原始来源",rawOwner:"人工",rawNote:"极少改动 · 需要审批",expandedTitle:"展开规格",expandedOwner:"智能体",expandedNote:"经常更新版本 · 须与原始来源一致",filesChanged:({n:e})=>`改动 ${e} 个文件`,loadingChange:"正在加载差异…",noChange:"尚无记录的改动——此规格即最新的事实依据。",diffLabel:"规格行差异",loadingHistory:"正在加载历史…",eval:{noScenarios:"尚未声明场景 —— 此节点没有可测量的 eval.md。",noReadings:"尚无测量 —— 运行 `spex eval add` 归档一次。已声明的场景:",staleAxes:({axes:e})=>`已过期:自本次读取以来 ${e} 已变动`,staleLabel:"已过期:",staleReadoutTitle:"这条读取已落后——列出自它以来变动的轴;对于 code 轴,还显示是哪些受管文件漂移了、以及落后了几个提交(+N)",danglingTitle:"该场景已被重命名或删除——其评注无读取可依附,但仍可通过 ref 解决",danglingGone:"场景已失",pass:"✓ 通过",fail:"✗ 未通过",note:"≈ 备注",legacy:"旧版",expected:"预期:",noteLabel:"备注:",loadingTranscript:"正在加载文本记录…",loadingData:"正在加载数据…",data:"结构化数据(JSON)",dataInvalid:"结构化数据 —— 无效 JSON",miss:"原始文件缺失 —— 证据已从缓存中清除。",noImage:"无证据 —— 代理未捕获即作出判定。",shotAlt:({scenario:e})=>`${e} 的捕获证据`,openDetail:"打开该场景的 eval 详情页",passCount:({n:e})=>`${e} 个场景最新且通过`,failCount:({n:e})=>`${e} 个场景最新且未通过`}},stats:{aria:"看板统计",totalTitle:({n:e})=>`树中共有 ${e} 个规格节点`,statusTitle:({n:e,status:t})=>`${e} 个${t} —— 点击逐个走查`,driftTitle:({n:e})=>`${e} 个节点的代码领先于其规格 —— 点击逐个走查`,issueTitle:({n:e})=>`链接到树上的不同未关闭议题共 ${e} 个 —— 点击逐个走查承载它们的节点`,scorePass:({n:e})=>`${e} 个场景测量为最新且通过 —— 点击逐个走查承载它们的节点`,scoreFail:({n:e})=>`${e} 个场景测量为最新且未通过 —— 点击逐个走查承载它们的节点`,scoreStalePass:({n:e})=>`${e} 个场景为过期通过(最近一次通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreStaleFail:({n:e})=>`${e} 个场景为过期未通过(最近一次未通过测量后代码有变动)—— 点击逐个走查承载它们的节点`,scoreEmpty:({n:e})=>`${e} 个场景未测量或未评分(盲点)—— 点击逐个走查承载它们的节点`},score:{pass:"当前通过 —— 已测量、最新且通过",fail:"当前未通过 —— 已测量、最新且未通过",stalePass:"已过期 —— 上次测量为通过,现已过时",staleFail:"已过期 —— 上次测量为未通过,现已过时",empty:"暂无当前评分 —— 从未测量,或无通过/未通过判定",missing:"尚未测量 —— 该场景还没有任何读数",count:({satisfied:e,total:t,outstanding:n})=>`${t} 个场景中有 ${e} 个已满足(最新且通过)`+(n?` · ${n} 个待处理 —— 未通过、已过期或未测量`:""),openList:"打开该节点的 Evals 过滤列表"},specNode:{liveEditors:({n:e})=>`${e} 个实时编辑者`,more:({n:e})=>`还有 ${e} 个`,editorTitle:({node:e,status:t,id:n})=>`${e} · ${t} — ${n}`,driftAhead:({n:e})=>`领先 ${e}`,opTitle:({op:e,label:t,uncommitted:n})=>`${e} · ${t}${n?"(未提交)":""}`,openIssues:({n:e})=>`${e} 个待办 issue——打开节点信息查看`,expandable:({n:e})=>`${e} 个子节点——聚焦展开`},nodeMenu:{menuLabel:"节点操作",info:"查看详情",newSession:"新建会话",newChild:"新建子节点…",del:"删除节点…"},session:{opsTitle:"此会话正在改动的节点 —— 右键打开会话操作",lockTitle:"右键打开会话操作,包括锁定到图谱",newSession:"新建会话",newSessionTitle:"新建会话(⌥+N)",searchTitle:"搜索(⌘+/)",issuesOff:"issues 工作流已关闭。",issuesEmpty:"暂无 issue。",issuesNoMatch:"当前视图没有匹配的 issue。",issuesLoading:"正在加载 issues……",issuesFocusNode:"在看板上聚焦此节点",issuesReplies:({n:e})=>`${e} 条回复`,issuesOpenOnStore:"在 {store} 上打开 ↗",issuesThreadsTitle:"讨论帖",issuesStoreAll:"全部",issuesStoreLabel:"来源",issuesNew:"新建",issuesCancel:"取消",issuesSend:"发送",issuesPost:"发布",issuesSending:"发送中……",issuesPostFailed:"发布失败",issuesClosing:"关闭中……",issuesCloseIssue:"关闭 issue",issuesCloseIssueTitle:"关闭此 issue —— 工作已完成,或真实 forge issue 应被关闭",issuesActing:"处理中……",issuesPromote:"升级",issuesPromoteTitle:"升级到 forge —— 先创建真实 forge issue,再用永久链接关闭本地线程",issuesReplyPlaceholder:"回复……",issuesConcernPlaceholder:"关切 —— 一行概述",issuesBodyPlaceholder:"详情(可选)",inputPlaceholder:"描述工作 · @ 规格 · / 命令 · ⏎ 启动 · ⇧⏎ 换行",menuCommands:"命令",menuPresets:"命令预设",menuSpecNodes:"规格节点",menuSessions:"会话",menuHint:"↑↓ 选择 · ⏎ 插入",hint:{before:"输入 ",mid:" 以引用规格 · ",after:" 以套用命令预设"},harnessLabel:"启动智能体",launcherLabel:"启动器",launcherTip:"修改 spexcode.json / spexcode.local.json 来配置启动器",tabTerminal:"终端",tabMessages:"消息",tabConversation:"对话",fullProcess:"完整过程",backToConversation:"返回对话",tabEval:"评测",tabEvalTitle:"打开此会话在 Evals 页的评测",toolbarLabel:"会话终端工具栏",messagesToolbarLabel:"会话消息工具栏",conversationToolbarLabel:"会话对话工具栏",surfaceLabel:"当前会话界面",messagesLoading:"正在加载消息……",messagesEmpty:"正在等待消息……",messagesDisconnected:"消息流已断开 · 正在重连……",messagesUnavailable:"消息流不可用",messagesYou:"你",messagesAssistant:"助手",commandsLabel:"当前可用的会话命令",evalLoading:"正在载入此会话的评测概况",evalUnavailable:"此会话的评测概况不可用",evalUpdating:({summary:e})=>`正在更新此会话的评测概况 — 上次已知:${e}`,evalDisconnected:({summary:e})=>e?`图数据流已断开 — 上次已知:${e}`:"图数据流已断开 — 尚无评测概况",evalFailedKnown:({summary:e})=>`评测概况更新失败 — 上次已知:${e}`,evalPass:({n:e})=>`${e} 个场景为新鲜通过`,evalFail:({n:e})=>`${e} 个场景为新鲜失败`,evalReview:({n:e})=>`${e} 个已评测场景已过期或未评分,需人工复核`,evalBlind:({n:e})=>`${e} 个已声明场景尚未评测`,evalUnknown:({n:e})=>`${e} 个已改前端文件的评测覆盖未知`,evalDoorSummary:({pass:e,fail:t,review:n,blind:r,unknown:o})=>`打开此会话的 Evals 页 — 新鲜通过 ${e},新鲜失败 ${t},待人工复核 ${n},未评测 ${r},覆盖未知 ${o}`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"打开 Command Box,发送完整指令或执行面板命令(Alt/Cmd+I)",commandClose:"关闭 Command Box",commandPlaceholder:"发送完整指令或执行面板命令",commandSend:"从 Command Box 发送",relaunch:"重新启动",relaunchTitle:"重新启动并恢复此会话",merge:"合并",relaunchResume:"⏵ 重新启动并恢复",merges:({n:e})=>`已合并 ×${e}`,mergesTitle:"合并到 main 的次数",offlineMsg:"⏻ 离线——此工作树没有活动进程。",offlineSubBefore:"工作树及其会话 ",offlineSubAfter:" 仍然完好。重新启动以恢复同一对话。",msgError:"⚠ 未送达 — 重试",attachTitle:"附加文件(或粘贴 / 拖入)—— 上传到会话所在机器,并插入其 /tmp 路径",attachError:"⚠ 上传失败",cmd:{evalDesc:"切换到此会话的评测页 —— 评测证据、改动、合并门禁",mergeTitle:"将此会话合并到 main",mergeDesc:"将此会话合并到 main",stopTitle:"停止此会话(结束智能体,保留工作树 —— 可恢复)",stopDesc:"停止 —— 结束智能体与 tmux,但保留工作树,之后可恢复",closeTitle:"关闭此会话(移除工作树)",closeDesc:"关闭 —— 移除工作树与分支,丢弃此工作(等同右键菜单 → 关闭)"}},settings:{title:"设置",close:"关闭(esc 或 ,)",secLanguage:"语言",secTheme:"主题",secTerminal:"终端",terminalFontSize:"字体大小",secShortcuts:"快捷键",bindPrompt:"按一个键…",shortcutsHint:"点击某个键即可重绑定。导航键与连击键固定不可改。(手柄绑定的是动作而非按键——这里的重绑定不影响手柄。)",reset:"恢复默认"},search:{title:"搜索节点、会话、议题与场景",placeholder:"搜索节点、会话、议题、场景…",empty:"没有匹配项",hint:"↑↓ 选择 · ⏎ 跳转 · esc 关闭",kind:{spec:"节点",session:"会话",issue:"议题",scenario:"场景"}},mobile:{specsTab:"规格",sessionsTab:"会话",evalsTab:"评测",issuesTab:"issues",childrenTab:({n:e})=>`子节点 ${e}`,liveEditors:({n:e})=>`${e} 个在线编辑者`,noSessions:"没有运行中的会话 —— 点上方 + 新建",newSession:"新建会话",newPlaceholder:"描述要交给新 agent 的任务…",launch:"启动",launching:"启动中…",launchFailed:"启动失败 —— 后端拒绝或不可达",back:"返回",noEvents:"暂无记录 —— 状态变化和消息会出现在这里",asked:"初始任务",you:"我",inputPlaceholder:"给 agent 发消息…",send:"发送",sendFailed:"未送达 —— agent 可能已离线",offlineHint:"agent 已离线 —— 需要重新拉起后消息才能送达"}},ts={en:Xs,zh:Fp},Fc="spexcode.lang",Uh=[{code:"en",label:"English"},{code:"zh",label:"中文"}];function Dp(){return(typeof navigator<"u"&&navigator.language||"en").toLowerCase().startsWith("zh")?"zh":"en"}function Ap(){try{const e=localStorage.getItem(Fc);if(e&&ts[e])return e}catch{}return Dp()}function ha(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Up(e,t){return t?e.replace(/\{(\w+)\}/g,(n,r)=>t[r]!=null?t[r]:`{${r}}`):e}function Bp(e,t,n){let r=ha(e,t);return r===void 0&&(r=ha(Xs,t)),typeof r=="function"?r(n||{}):typeof r=="string"?Up(r,n):t}const Dc=M.createContext(null);function Hp({children:e}){const[t,n]=M.useState(Ap);M.useEffect(()=>{try{document.documentElement.lang=t}catch{}},[t]);const r=M.useCallback(l=>{if(ts[l]){try{localStorage.setItem(Fc,l)}catch{}n(l)}},[]),o=M.useMemo(()=>{const l=ts[t]||Xs;return{lang:t,setLang:r,t:(s,i)=>Bp(l,s,i)}},[t,r]);return u.jsx(Dc.Provider,{value:o,children:e})}function Vp(){const e=M.useContext(Dc);if(!e)throw new Error("useI18n must be used within <I18nProvider>");return e}function qs(){return Vp().t}const Wp={plus:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M5 12h14"}),u.jsx("path",{d:"M12 5v14"})]})},x:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M18 6 6 18"}),u.jsx("path",{d:"m6 6 12 12"})]})},"chevron-left":{node:u.jsx("path",{d:"m15 18-6-6 6-6"}),sw:2},"arrow-left":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m12 19-7-7 7-7"}),u.jsx("path",{d:"M19 12H5"})]}),sw:2},"chevron-right":{node:u.jsx("path",{d:"m9 18 6-6-6-6"}),sw:2},"chevron-down":{node:u.jsx("path",{d:"m6 9 6 6 6-6"}),sw:2},check:{node:u.jsx("path",{d:"M20 6 9 17l-5-5"}),sw:2},blank:{node:null},"circle-check":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m4.8 8 2 2L11.5 5.5"})]})},"circle-x":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"m5.4 5.4 5.2 5.2"}),u.jsx("path",{d:"m10.6 5.4-5.2 5.2"})]})},"circle-minus":{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"7.25"}),u.jsx("path",{d:"M4.8 8h6.4"})]})},"circle-dashed":{vb:16,sw:1.5,node:u.jsx("circle",{cx:"8",cy:"8",r:"7.25",strokeDasharray:"2 2"})},ellipsis:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor",stroke:"none"}),u.jsx("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor",stroke:"none"})]})},"message-square":{node:u.jsx(u.Fragment,{children:u.jsx("path",{d:"M21 15a3 3 0 0 1-3 3H8l-5 3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3Z"})})},send:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m5 12 7-7 7 7"}),u.jsx("path",{d:"M12 19V5"})]}),sw:2},download:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 15V3"}),u.jsx("path",{d:"m7 10 5 5 5-5"}),u.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"})]})},clock:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 6v6l4 2"})]})},search:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"11",cy:"11",r:"8"}),u.jsx("path",{d:"m21 21-4.3-4.3"})]})},filter:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M4 6h16"}),u.jsx("path",{d:"M7 12h10"}),u.jsx("path",{d:"M10 18h4"})]})},info:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"10"}),u.jsx("path",{d:"M12 16v-4"}),u.jsx("path",{d:"M12 8h.01"})]}),sw:2},pencil:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M12 20h9"}),u.jsx("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"})]})},terminal:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m4 17 6-6-6-6"}),u.jsx("path",{d:"M12 19h8"})]}),sw:2},command:{node:u.jsx("path",{d:"M18 9a3 3 0 1 0-3-3v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3Z"})},keyboard:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),u.jsx("path",{d:"M6 8h.01M10 8h.01M14 8h.01M18 8h.01M8 12h.01M12 12h.01M16 12h.01M7 16h10"})]})},"git-merge":{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"6",cy:"6",r:"3"}),u.jsx("circle",{cx:"18",cy:"18",r:"3"}),u.jsx("path",{d:"M6 21V9a9 9 0 0 0 9 9"})]})},"rotate-ccw":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),u.jsx("path",{d:"M3 3v5h5"})]})},"list-checks":{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"m3 7 2 2 4-4"}),u.jsx("path",{d:"m3 17 2 2 4-4"}),u.jsx("path",{d:"M13 6h8"}),u.jsx("path",{d:"M13 12h8"}),u.jsx("path",{d:"M13 18h8"})]})},trash:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M3 6h18"}),u.jsx("path",{d:"M8 6V4h8v2"}),u.jsx("path",{d:"M19 6l-1 14H6L5 6"}),u.jsx("path",{d:"M10 11v5"}),u.jsx("path",{d:"M14 11v5"})]})},play:{node:u.jsx("path",{d:"M6 3.5 19.5 12 6 20.5Z"})},pause:{node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"6",y:"4",width:"4",height:"16",rx:"1"}),u.jsx("rect",{x:"14",y:"4",width:"4",height:"16",rx:"1"})]})},settings:{node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"12",cy:"12",r:"3"}),u.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},graph:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"6.5",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"1.8",width:"5",height:"4.4",rx:"1"}),u.jsx("rect",{x:"11.5",y:"11.8",width:"5",height:"4.4",rx:"1"}),u.jsx("path",{d:"M6.5 8.7 h2.2 M11.5 4 h-1.3 q-1.5 0-1.5 1.5 v7 q0 1.5 1.5 1.5 h1.3"})]})},sessions:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"1.5",y:"2.5",width:"15",height:"13",rx:"1.6"}),u.jsx("path",{d:"M4.6 6.5 l2.6 2.3 -2.6 2.3 M9 12.4 h4"})]})},evals:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 15.5 v-11"}),u.jsx("path",{d:"M2.5 15.5 h13"}),u.jsx("rect",{x:"4.6",y:"10",width:"2.6",height:"3.5",rx:"0.5"}),u.jsx("rect",{x:"8.7",y:"7",width:"2.6",height:"6.5",rx:"0.5"}),u.jsx("path",{d:"M13 6 l1.4 1.4 L16.5 3.6"})]})},issues:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2.5 3.5 h13 v8.4 h-7 l-3.6 3 v-3 h-2.4 z"}),u.jsx("path",{d:"M5.4 6.7 h7.2 M5.4 9.2 h4.8"})]})},projects:{vb:18,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M9 2.2 16 5.8 9 9.4 2 5.8Z"}),u.jsx("path",{d:"M2 9.4 9 13 16 9.4"}),u.jsx("path",{d:"M2 12.8 9 16.4 16 12.8"})]})},"issue-opened":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}),u.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"})]})},"issue-closed":{vb:16,fill:"currentColor",stroke:"none",node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M11.28 6.78a.75.75 0 0 0-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.06 0l3.5-3.5Z"}),u.jsx("path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 1 0-13 0 6.5 6.5 0 0 0 13 0Z"})]})},lock:{vb:16,sw:1.3,node:u.jsxs(u.Fragment,{children:[u.jsx("rect",{x:"3.5",y:"7",width:"9",height:"6.5",rx:"1.2"}),u.jsx("path",{d:"M5.5 7 V5 a2.5 2.5 0 0 1 5 0 V7"})]})},paperclip:{vb:16,sw:1.3,node:u.jsx("path",{d:"M12.5 7.2 L7 12.6 a2.6 2.6 0 0 1-3.7-3.7 L9 3.2 a1.7 1.7 0 0 1 2.4 2.4 L5.8 11.2 a0.8 0.8 0 0 1-1.2-1.2 L9.7 5"})},loader:{vb:16,sw:1.5,node:u.jsxs(u.Fragment,{children:[u.jsx("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.3"}),u.jsx("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5"})]})},maximize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M2 6V2h4"}),u.jsx("path",{d:"M14 6V2h-4"}),u.jsx("path",{d:"M2 10v4h4"}),u.jsx("path",{d:"M14 10v4h-4"})]})},minimize:{vb:16,sw:1.4,node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M6 2v4H2"}),u.jsx("path",{d:"M10 2v4h4"}),u.jsx("path",{d:"M6 14v-4H2"}),u.jsx("path",{d:"M10 14v-4h4"})]})}};function bs({name:e,size:t=16,strokeWidth:n,className:r,style:o}){const l=Wp[e];if(!l)throw new Error(`unknown icon: ${e}`);const s=l.vb||24;return u.jsx("svg",{width:t,height:t,viewBox:`0 0 ${s} ${s}`,fill:l.fill??"none",stroke:l.stroke??"currentColor",strokeWidth:n??l.sw??1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:r,style:o,children:l.node})}function Qp({icon:e,label:t,onClick:n,className:r,size:o,iconClassName:l,...s}){return u.jsx("button",{type:"button",className:r,"data-tip":t,"aria-label":t,onClick:n,...s,children:u.jsx(bs,{name:e,size:o,className:l})})}const Bh=()=>u.jsx("svg",{className:"si-agent-glyph",viewBox:"0 0 24 24","aria-hidden":"true",children:u.jsx("path",{d:"M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z"})}),Hh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 160 160","aria-hidden":"true",children:[u.jsx("path",{d:"M135 80C135 49.6243 110.376 25 80 25C49.6243 25 25 49.6243 25 80C25 110.376 49.6243 135 80 135V149C41.8924 149 11 118.108 11 80C11 41.8924 41.8924 11 80 11C118.108 11 149 41.8924 149 80C149 118.108 118.108 149 80 149V135C110.376 135 135 110.376 135 80Z"}),u.jsx("path",{d:"M50.9235 54.3903C54.0216 52.577 58.0026 53.6185 59.8161 56.7165L70.9294 75.7009C72.6642 78.6649 72.6642 82.3345 70.9294 85.2985L59.8161 104.283C58.0026 107.381 54.0216 108.422 50.9235 106.609C47.8255 104.796 46.784 100.815 48.5973 97.7165L58.6745 80.4997L48.5973 63.2829C46.784 60.1848 47.8255 56.2038 50.9235 54.3903Z"}),u.jsx("path",{d:"M112 89.5C115.59 89.5 118.5 92.4101 118.5 96C118.5 99.5899 115.59 102.5 112 102.5H85C81.4101 102.5 78.5 99.5899 78.5 96C78.5 92.4101 81.4101 89.5 85 89.5H112Z"})]}),Vh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 240 300","aria-hidden":"true",children:[u.jsx("path",{d:"M180 240H60V120H180V240Z",opacity:"0.35"}),u.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M180 60H60V240H180V60ZM240 300H0V0H240V300Z"})]}),Wh=()=>u.jsxs("svg",{className:"si-agent-glyph",viewBox:"0 0 45 45","aria-hidden":"true",children:[u.jsx("path",{fillRule:"evenodd",d:"M9.3 9.3h19.8v13.2h-6.6v6.6H15.9v6.6H9.3Zm6.6 6.6v6.6h6.6v-6.6Z"}),u.jsx("path",{d:"M29.1 22.5h6.6v13.2h-6.6Z"})]});function ma({scope:e,projectLabel:t,locked:n,onUnlocked:r}){const o=qs(),[l,s]=M.useState(""),[i,a]=M.useState(!1),[d,g]=M.useState(null),m=e==="admin",h=async w=>{if(w.preventDefault(),!l||i)return;a(!0),g(null);const y=await Op(m?"admin":{projectId:e.projectId},l);a(!1),y.ok?(s(""),r()):g(y.error==="wrong-password"?o("credential.wrong"):o("credential.failed"))};return u.jsx("div",{className:"cred-wrap",children:u.jsxs("form",{className:"cred-card",onSubmit:h,children:[u.jsx("div",{className:"cred-brand",children:"$ spexcode"}),u.jsxs("div",{className:"cred-title",children:[u.jsx(bs,{name:"lock",size:14,className:"cred-lock"}),n?o("credential.lockedTitle"):m?o("credential.adminTitle"):o("credential.projectTitle",{name:t||e&&e.projectId||""})]}),n?u.jsx("p",{className:"cred-sub",children:o("credential.lockedBody")}):u.jsxs(u.Fragment,{children:[u.jsx("p",{className:"cred-sub",children:o(m?"credential.adminBody":"credential.projectBody")}),d&&u.jsx("div",{className:"cred-err",children:d}),u.jsx("input",{className:"cred-input",type:"password",autoFocus:!0,required:!0,placeholder:"••••••••••","aria-label":o("credential.passwordLabel"),value:l,onChange:w=>s(w.target.value)}),u.jsx("button",{className:"cred-submit",type:"submit",disabled:i||!l,children:o(i?"credential.checking":"credential.unlock")})]})]})})}const ga="(max-width: 640px)";function Gp(){const[e,t]=M.useState(()=>typeof window<"u"&&window.matchMedia(ga).matches);return M.useEffect(()=>{const n=window.matchMedia(ga),r=()=>t(n.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const hn="spexcode",Kp="gateway",ei=Object.freeze([{id:"spexcode",label:"SpexCode",bg:"#166534",fg:"#f0fdf4",shapes:[{tag:"circle",cx:12,cy:6.2,r:2.2},{tag:"circle",cx:6.2,cy:17.5,r:2},{tag:"circle",cx:17.8,cy:17.5,r:2},{tag:"path",d:"M12 8.4v2.1c0 2.2-5.8 1.8-5.8 5"},{tag:"path",d:"M12 10.5c0 2.2 5.8 1.8 5.8 5"}]},{id:"gateway",label:"Gateway",bg:"#155e75",fg:"#ecfeff",shapes:[{tag:"path",d:"m12 3 8 4.2-8 4.2-8-4.2Z"},{tag:"path",d:"m4 11.2 8 4.2 8-4.2"},{tag:"path",d:"m4 15.2 8 4.2 8-4.2"}]},{id:"mdi:rocket-launch",label:"Rocket",bg:"#9f1239",fg:"#fff1f2",shapes:[{tag:"path",d:"M14.5 5.2c2.2-2.2 4.8-2 5.3-1.8.2.5.4 3.1-1.8 5.3l-5.5 5.5-4.2-4.2Z"},{tag:"path",d:"m11.2 6.8-4.1.6-2.5 2.5 4.1.7"},{tag:"path",d:"m16.4 12-1 4.7-2.5 2.5-.7-4.1"},{tag:"circle",cx:16.1,cy:7.1,r:1.2},{tag:"path",d:"M7.6 14.6c-2.2.4-3.4 1.6-3.6 3.8 2.2-.2 3.4-1.4 3.8-3.6"}]},{id:"compass",label:"Compass",bg:"#1d4ed8",fg:"#eff6ff",shapes:[{tag:"circle",cx:12,cy:12,r:8.5},{tag:"path",d:"m15.2 8.8-1.8 4.6-4.6 1.8 1.8-4.6Z"}]},{id:"terminal",label:"Terminal",bg:"#3f3f46",fg:"#fafafa",shapes:[{tag:"rect",x:3.5,y:4.5,width:17,height:15,rx:2},{tag:"path",d:"m7 9 3 3-3 3"},{tag:"path",d:"M12.5 15H17"}]},{id:"package",label:"Package",bg:"#6d28d9",fg:"#f5f3ff",shapes:[{tag:"path",d:"m12 3 8 4.5v9L12 21l-8-4.5v-9Z"},{tag:"path",d:"m4.3 7.7 7.7 4.4 7.7-4.4"},{tag:"path",d:"M12 12.1V21"}]},{id:"database",label:"Database",bg:"#a16207",fg:"#fefce8",shapes:[{tag:"ellipse",cx:12,cy:6,rx:7.5,ry:3},{tag:"path",d:"M4.5 6v6c0 1.7 3.4 3 7.5 3s7.5-1.3 7.5-3V6"},{tag:"path",d:"M4.5 12v6c0 1.7 3.4 3 7.5 3s7.5-1.3 7.5-3v-6"}]},{id:"spark",label:"Spark",bg:"#c2410c",fg:"#fff7ed",shapes:[{tag:"path",d:"m12 3 1.5 5.2L19 10l-5.5 1.8L12 17l-1.5-5.2L5 10l5.5-1.8Z"},{tag:"path",d:"m18.5 15 .7 2.2 2.3.8-2.3.8-.7 2.2-.7-2.2-2.3-.8 2.3-.8Z"}]}]),Zp=new Map(ei.map(e=>[e.id,e])),Yp=/^[a-z0-9-]+[:/][a-z0-9-]+$/i,Ac=new Map([["rocket","mdi:rocket-launch"],["mdi/rocket-launch","mdi:rocket-launch"],["layers","gateway"],["default","spexcode"]]);Object.freeze(ei.map(e=>e.id));function Jp(e,t=hn){const n=typeof e=="string"?e.trim():"";return Ac.get(n)||n||t}function bn(e){const t=typeof e=="string"?e.trim():"";return Zp.get(Ac.get(t)||t)||null}function co(e){return Yp.test(typeof e=="string"?e.trim():"")}function Xp(e){return Object.entries(e).filter(([t])=>t!=="tag").map(([t,n])=>`${t==="className"?"class":t}="${String(n).replaceAll("&","&").replaceAll('"',""")}"`).join(" ")}function qp(e,t=hn){const n=bn(e)||bn(t),r=n.shapes.map(o=>`<${o.tag} ${Xp(o)}/>`).join("");return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="1" y="1" width="22" height="22" rx="5" fill="${n.bg}"/><g fill="none" stroke="${n.fg}" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${r}</g></svg>`}function Dr(e,t=hn){const n=Jp(e,t);if(bn(n))return`data:image/svg+xml,${encodeURIComponent(qp(n,t))}`;if(/^https?:\/\//.test(n))return n;if(co(n))return`https://api.iconify.design/${n.replace(":","/")}.svg`;const r=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y=".86em" font-size="82" text-anchor="middle">${n.replaceAll("&","&").replaceAll("<","<")}</text></svg>`;return`data:image/svg+xml,${encodeURIComponent(r)}`}const bp=Dr,il=[{id:"featured",label:"projects.iconSourceFeatured"},{id:"material",label:"projects.iconSourceMaterial",prefixes:"mdi,material-symbols"},{id:"lucide",label:"projects.iconSourceLucide",prefixes:"lucide"},{id:"tabler",label:"projects.iconSourceTabler",prefixes:"tabler"},{id:"phosphor",label:"projects.iconSourcePhosphor",prefixes:"ph"},{id:"brands",label:"projects.iconSourceBrands",prefixes:"simple-icons"}],eh=e=>e.split("-").filter(Boolean).map(t=>{var n;return((n=t[0])==null?void 0:n.toUpperCase())+t.slice(1)}).join(" ");function va(e,t={}){var l;const n=e.replace("/",":"),[r,o]=n.split(":");return{id:n,label:eh(o),source:((l=t[r])==null?void 0:l.name)||r}}function ya({icon:e,fallback:t=hn,size:n=24,className:r,label:o}){const l=bn(e);return!l&&co(e)?u.jsx("span",{className:r?`identity-iconify ${r}`:"identity-iconify",style:{width:n,height:n,maskImage:`url("${Dr(e,t)}")`,WebkitMaskImage:`url("${Dr(e,t)}")`},role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0}):l?u.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",className:r,role:o?"img":void 0,"aria-label":o||void 0,"aria-hidden":o?void 0:!0,children:[u.jsx("rect",{x:"1",y:"1",width:"22",height:"22",rx:"5",fill:l.bg}),u.jsx("g",{fill:"none",stroke:l.fg,strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:l.shapes.map(({tag:s,...i},a)=>u.jsx(s,{...i},a))})]}):u.jsx("img",{width:n,height:n,src:Dr(e,t),className:r,alt:o||"","aria-hidden":o?void 0:!0})}function Qh({value:e,onChange:t,label:n,editLabel:r,name:o,fallback:l=hn,disabled:s=!1}){const i=qs(),[a,d]=M.useState(!1),[g,m]=M.useState(""),[h,w]=M.useState("featured"),[y,k]=M.useState({state:"idle",choices:[]}),$=M.useId(),f=bn(e),c=il.find(x=>x.id===h)||il[0];M.useEffect(()=>{if(!a)return;const x=g.trim(),F=x.length>=2?x:h==="featured"?"":"project";if(!F){k({state:"idle",choices:[]});return}const _=new AbortController;k({state:"loading",choices:[]});const ge=setTimeout(async()=>{try{const Oe=new URLSearchParams({query:F,limit:"48"});c.prefixes&&Oe.set("prefixes",c.prefixes);const He=await fetch(`https://api.iconify.design/search?${Oe}`,{signal:_.signal});if(!He.ok)throw new Error(`Iconify search answered ${He.status}`);const Ft=await He.json();if(!Array.isArray(Ft.icons))throw new Error("Iconify search returned an invalid response");k({state:"ready",choices:Ft.icons.filter(co).map(_o=>va(_o,Ft.collections))})}catch(Oe){Oe.name!=="AbortError"&&k({state:"error",choices:[]})}},220);return()=>{clearTimeout(ge),_.abort()}},[a,g,h,c.prefixes]);const p=()=>{d(!1),m(""),w("featured"),k({state:"idle",choices:[]})},v=async x=>{await t(x)!==!1&&p()},j=g.trim().toLowerCase(),C=ei.filter(x=>!j||x.label.toLowerCase().includes(j)||x.id.includes(j)).map(x=>({id:x.id,label:x.label,source:""}));let E=y.state==="ready"?y.choices:h==="featured"?C:[];return co(e)&&!E.some(x=>x.id===e.replace("/",":"))&&(E=[va(e),...E]),u.jsxs("div",{className:a?"identity-control open":"identity-control",children:[u.jsxs("div",{className:"identity-disclosure",children:[u.jsx(ya,{icon:e,fallback:l,size:26,label:`${n}: ${(f==null?void 0:f.label)||e||l}`}),u.jsx(Qp,{icon:"pencil",label:r,className:"proj-act icon identity-edit",size:13,disabled:s,"aria-expanded":a,"aria-controls":$,onClick:()=>{a?p():d(!0)}})]}),a&&u.jsxs("fieldset",{id:$,className:"identity-picker",disabled:s,children:[u.jsx("legend",{children:n}),u.jsxs("div",{className:"identity-search",children:[u.jsx(bs,{name:"search",size:14}),u.jsx("input",{type:"search",value:g,onChange:x=>m(x.target.value),placeholder:i("projects.iconSearch"),"aria-label":i("projects.iconSearch"),spellCheck:!1})]}),u.jsx("div",{className:"identity-sources",role:"group","aria-label":i("projects.iconSources"),children:il.map(x=>u.jsx("button",{type:"button",className:h===x.id?"identity-source on":"identity-source","aria-pressed":h===x.id,onClick:()=>w(x.id),children:i(x.label)},x.id))}),u.jsx("div",{className:"identity-options",children:E.map(x=>u.jsxs("label",{className:"identity-choice",children:[u.jsx("input",{type:"radio",name:o,value:x.id,checked:e.replace("/",":")===x.id,onChange:()=>v(x.id)}),u.jsx(ya,{icon:x.id,size:28}),u.jsx("span",{className:"identity-choice-name",children:x.label}),x.source&&u.jsx("span",{className:"identity-choice-source",children:x.source})]},x.id))}),y.state==="loading"&&u.jsx("div",{className:"identity-search-status",role:"status",children:i("projects.iconSearching")}),y.state==="ready"&&!E.length&&u.jsx("div",{className:"identity-search-status",children:i("projects.iconSearchEmpty")}),y.state==="error"&&u.jsx("div",{className:"identity-search-status error",role:"alert",children:i("projects.iconSearchFailed")})]})]})}const th=M.lazy(()=>Js(()=>import("./Dashboard-CTAuTyZ3.js").then(e=>e.D),__vite__mapDeps([0,1,2,3,4,5]))),nh=M.lazy(()=>Js(()=>import("./MobileApp-D2RZGt4Z.js"),__vite__mapDeps([6,1,2,7]))),rh=M.lazy(()=>Js(()=>import("./ProjectsPage-DU3x4Y8l.js"),__vite__mapDeps([8,3,2])));window.addEventListener("vite:preloadError",e=>{const t=String(e.payload);sessionStorage.getItem("spexcode.chunkReload")!==t&&(sessionStorage.setItem("spexcode.chunkReload",t),e.preventDefault(),location.reload())});function oh(){const e=qs(),t=Gp(),[n,r]=M.useState(null),[o,l]=M.useState(!1),s=M.useRef(new Map),i=M.useCallback((v,j)=>{r(Pp(v,s.current,j))},[]),[a,d]=M.useState(!1),[g,m]=M.useState(null),[h,w]=M.useState(null);M.useEffect(()=>{let v=!0;const j=()=>Rp().then(E=>{v&&w(x=>pa(x,E))}).catch(()=>{v&&w(E=>pa(E,{state:"absent"}))});j();const C=setInterval(j,$p);return()=>{v=!1,clearInterval(C)}},[]);const y=M.useRef(0),k=M.useCallback(()=>{const v=++y.current;return Cp().then(j=>{if(!(v!==y.current||!j)){if(j.authRequired){m(j.authRequired);return}m(null),d(!1),i(j.board,!0),j.seal()}}).catch(()=>{v===y.current&&d(!0)})},[i]),$=!tt&&!n&&!!h&&h.state!=="absent",f=!tt&&!n&&h===null;M.useEffect(()=>{if($||f)return;k();const v=Tp({onBoard:(C,E)=>{y.current++,d(!1),i(C,!!(E!=null&&E.authoritative))},onLegacyChange:()=>{k()},onStatus:l}),j=setInterval(()=>{k()},15e3);return()=>{v(),clearInterval(j)}},[k,i,$,f]);const c=n?Np(n):null,p=tt?Mp(tt,h,c):$?Ip(h):c;return M.useEffect(()=>{p&&(document.title=zp(p))},[p==null?void 0:p.title]),M.useEffect(()=>{if(!p)return;const v=$?Kp:hn,j=bp(p.icon,v);let C=document.querySelector("link[rel~='icon']");C||(C=document.createElement("link"),C.rel="icon",document.head.appendChild(C)),C.getAttribute("href")!==j&&C.setAttribute("href",j)},[p==null?void 0:p.icon,$]),g&&tt?u.jsx(ma,{scope:{projectId:tt},projectLabel:(p==null?void 0:p.title)||tt,onUnlocked:()=>{m(null),k()}}):n?u.jsx(M.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:t?u.jsx(nh,{specs:n.nodes,sessions:n.sessions,reloadBoard:k}):u.jsx(th,{specs:n.nodes,sessions:n.sessions,reload:k,identity:p,catalog:h,boardLive:o})}):$?u.jsx(M.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:u.jsx(rh,{})}):g?u.jsx(ma,{scope:"admin",locked:g==="locked",onUnlocked:()=>{m(null),k()}}):a&&(tt||h&&h.state==="absent")?u.jsxs("div",{className:"loading load-error",children:[u.jsx("span",{children:e("hud.loadError")}),u.jsx("button",{className:"load-retry",onClick:()=>{d(!1),k()},children:e("hud.retry")})]}):u.jsx("div",{className:"loading",children:e("hud.loading")})}const wa=jp(location.pathname,location.hash);wa?location.replace(wa):al.createRoot(document.getElementById("root")).render(u.jsx(nd.StrictMode,{children:u.jsx(Hp,{children:u.jsx(oh,{})})}));export{xh as $,Dh as A,Rh as B,$p as C,Mh as D,zh as E,Oh as F,Ah as G,Nh as H,bs as I,Ph as J,wp as K,Bh as L,Hh as M,Wh as N,Vh as O,tt as P,uh as Q,nd as R,ch as S,ah as T,dh as U,fh as V,hh as W,Ep as X,sl as Y,Eh as Z,Js as _,No as a,jh as a0,wh as a1,yh as a2,vh as a3,gh as a4,Sh as a5,Vp as a6,Uh as a7,ya as b,hp as c,ne as d,Qp as e,ph as f,Uc as g,xp as h,mh as i,u as j,kh as k,sh as l,Rp as m,Th as n,Ch as o,lh as p,ma as q,M as r,ih as s,_h as t,qs as u,$h as v,Qh as w,Lh as x,Ih as y,Fh as z};
|