spexcode 0.5.9 → 0.6.1
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/package.json +1 -1
- package/spec-cli/src/cli.ts +69 -70
- package/spec-cli/src/client.ts +1 -1
- package/spec-cli/src/codex-runtime-generations.ts +97 -7
- package/spec-cli/src/commit-surgery.ts +2 -1
- package/spec-cli/src/contract-filter.ts +58 -42
- package/spec-cli/src/delivery-queue.ts +107 -0
- package/spec-cli/src/doctor.ts +2 -1
- package/spec-cli/src/file-write.ts +22 -0
- package/spec-cli/src/git.ts +30 -8
- package/spec-cli/src/graphStream.ts +79 -11
- package/spec-cli/src/harness.ts +12 -10
- package/spec-cli/src/help.ts +9 -14
- package/spec-cli/src/index.ts +10 -2
- package/spec-cli/src/init.ts +8 -17
- package/spec-cli/src/layout.ts +35 -7
- package/spec-cli/src/materialize.ts +150 -107
- package/spec-cli/src/plugin-harness.ts +19 -8
- package/spec-cli/src/process-identity.ts +13 -0
- package/spec-cli/src/reviews.ts +55 -11
- package/spec-cli/src/session-cursors.ts +11 -17
- package/spec-cli/src/session-follow.ts +6 -6
- package/spec-cli/src/sessions.ts +224 -38
- package/spec-cli/src/uninstall.ts +2 -1
- package/spec-cli/templates/hooks/post-checkout +3 -0
- package/spec-cli/templates/hooks/post-merge +1 -0
- package/spec-cli/templates/spec/project/.plugins/commands/supervisor/spec.md +1 -1
- package/spec-cli/templates/spec/project/.plugins/core/mark-active/mark-active.sh +5 -41
- package/spec-cli/templates/spec/project/.plugins/core/mark-active/spec.md +1 -1
- package/spec-cli/templates/spec/project/.plugins/core/stop-gate/spec.md +1 -1
- package/spec-cli/templates/spec/project/.plugins/core/stop-gate/stop-gate.sh +2 -2
- package/spec-dashboard/dist/assets/{App-b8Nh0sgk.js → App-F9uaAVcH.js} +2 -2
- package/spec-dashboard/dist/assets/{Dashboard-CvAjfRC2.js → Dashboard-Ba_jhxp1.js} +3 -3
- package/spec-dashboard/dist/assets/{EvalsPage-Bz-nMKoS.js → EvalsPage-FixoOg_n.js} +2 -2
- package/spec-dashboard/dist/assets/{IssuesPage-CAP64YWE.js → IssuesPage-CuKLFhH3.js} +1 -1
- package/spec-dashboard/dist/assets/{MobileApp-D9L1Va8Z.js → MobileApp-CHgEHORJ.js} +2 -2
- package/spec-dashboard/dist/assets/{Modal-Drscez-d.js → Modal-CQgYymmr.js} +1 -1
- package/spec-dashboard/dist/assets/{PageScroll-qW6uOJL8.js → PageScroll-hT7UTLvD.js} +1 -1
- package/spec-dashboard/dist/assets/{ProjectsPage-CjybFBmR.js → ProjectsPage-CtXxakF9.js} +1 -1
- package/spec-dashboard/dist/assets/{SessionInterface-Dl9v0JFM.js → SessionInterface-Bpie-9fs.js} +12 -12
- package/spec-dashboard/dist/assets/{SessionWindow-iOk0yHoU.js → SessionWindow-CixDi4PI.js} +1 -1
- package/spec-dashboard/dist/assets/{Settings-BZ1lGRJs.js → Settings-C2MsucfE.js} +1 -1
- package/spec-dashboard/dist/assets/Thread-C6Go8HRh.js +13 -0
- package/spec-dashboard/dist/assets/{data-Bwd3kAVL.js → data-B-RQmit6.js} +1 -1
- package/spec-dashboard/dist/assets/{index-DAbQBBK_.css → index-CsI8DElI.css} +1 -1
- package/spec-dashboard/dist/assets/{index-paP-z_Vd.js → index-DrVao0Ep.js} +2 -2
- package/spec-dashboard/dist/assets/{launch-B-bYdWmh.js → launch-BBH02b1v.js} +1 -1
- package/spec-dashboard/dist/index.html +2 -2
- package/spec-dashboard/src/reviewFilters.js +5 -0
- package/spec-dashboard/src/session.js +5 -1
- package/spec-eval/src/cli.ts +7 -8
- package/spec-eval/src/evaltab.ts +25 -5
- package/spec-eval/src/freshness.ts +52 -8
- package/spec-eval/src/scenariofresh.ts +58 -8
- package/spec-eval/src/scenarios.ts +60 -12
- package/spec-eval/src/sessioneval.ts +122 -30
- package/spec-dashboard/dist/assets/Thread-D_kcDnfd.js +0 -13
- package/spec-eval/src/matrix.ts +0 -693
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/App-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/App-F9uaAVcH.js","assets/data-B-RQmit6.js","assets/EvalsPage-FixoOg_n.js","assets/Thread-C6Go8HRh.js","assets/PageScroll-hT7UTLvD.js","assets/IssuesPage-CuKLFhH3.js","assets/MobileApp-CHgEHORJ.js","assets/SessionWindow-CixDi4PI.js","assets/launch-BBH02b1v.js","assets/launch-Cp579UoJ.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ca={exports:{}},ul={},ja={exports:{}},z={};/**
|
|
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/App-b8Nh0sgk.js
|
|
|
38
38
|
`+l[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{zl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?kn(e):""}function Nd(e){switch(e.tag){case 5:return kn(e.type);case 16:return kn("Lazy");case 13:return kn("Suspense");case 19:return kn("SuspenseList");case 0:case 2:case 15:return e=Rl(e.type,!1),e;case 11:return e=Rl(e.type.render,!1),e;case 1:return e=Rl(e.type,!0),e;default:return""}}function po(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 Ot:return"Fragment";case It:return"Portal";case uo:return"Profiler";case ds:return"StrictMode";case co:return"Suspense";case fo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ua:return(e.displayName||"Context")+".Consumer";case Aa:return(e._context.displayName||"Context")+".Provider";case fs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ps:return t=e.displayName||null,t!==null?t:po(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return po(e(t))}catch{}}return null}function Ld(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 po(t);case 8:return t===ds?"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 pt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ha(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _d(e){var t=Ha(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.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 ur(e){e._valueTracker||(e._valueTracker=_d(e))}function Va(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ha(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Or(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 ho(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ui(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=pt(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 Wa(e,t){t=t.checked,t!=null&&cs(e,"checked",t,!1)}function mo(e,t){Wa(e,t);var n=pt(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")?vo(e,t.type,n):t.hasOwnProperty("defaultValue")&&vo(e,t.type,pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ci(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 vo(e,t,n){(t!=="number"||Or(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sn=Array.isArray;function Zt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+pt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function go(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(w(91));return V({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function di(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(w(92));if(Sn(n)){if(1<n.length)throw Error(w(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:pt(n)}}function Qa(e,t){var n=pt(t.value),r=pt(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 fi(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Ka(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 yo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Ka(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cr,Ga=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cr=cr||document.createElement("div"),cr.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cr.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 Cn={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},$d=["Webkit","ms","Moz","O"];Object.keys(Cn).forEach(function(e){$d.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Cn[t]=Cn[e]})});function Za(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Cn.hasOwnProperty(e)&&Cn[e]?(""+t).trim():t+"px"}function Ya(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Za(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Md=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 wo(e,t){if(t){if(Md[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(w(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(w(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(w(61))}if(t.style!=null&&typeof t.style!="object")throw Error(w(62))}}function ko(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 So=null;function hs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xo=null,Yt=null,Xt=null;function pi(e){if(e=nr(e)){if(typeof xo!="function")throw Error(w(280));var t=e.stateNode;t&&(t=hl(t),xo(e.stateNode,e.type,t))}}function Xa(e){Yt?Xt?Xt.push(e):Xt=[e]:Yt=e}function qa(){if(Yt){var e=Yt,t=Xt;if(Xt=Yt=null,pi(e),t)for(e=0;e<t.length;e++)pi(t[e])}}function Ja(e,t){return e(t)}function ba(){}var Fl=!1;function eu(e,t,n){if(Fl)return e(t,n);Fl=!0;try{return Ja(e,t,n)}finally{Fl=!1,(Yt!==null||Xt!==null)&&(ba(),qa())}}function In(e,t){var n=e.stateNode;if(n===null)return null;var r=hl(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(w(231,t,typeof n));return n}var Eo=!1;if(Ge)try{var pn={};Object.defineProperty(pn,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",pn,pn),window.removeEventListener("test",pn,pn)}catch{Eo=!1}function zd(e,t,n,r,l,o,s,i,a){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(v){this.onError(v)}}var jn=!1,Dr=null,Ar=!1,Co=null,Rd={onError:function(e){jn=!0,Dr=e}};function Fd(e,t,n,r,l,o,s,i,a){jn=!1,Dr=null,zd.apply(Rd,arguments)}function Id(e,t,n,r,l,o,s,i,a){if(Fd.apply(this,arguments),jn){if(jn){var d=Dr;jn=!1,Dr=null}else throw Error(w(198));Ar||(Ar=!0,Co=d)}}function zt(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 tu(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 hi(e){if(zt(e)!==e)throw Error(w(188))}function Od(e){var t=e.alternate;if(!t){if(t=zt(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return hi(l),e;if(o===r)return hi(l),t;o=o.sibling}throw Error(w(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,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){for(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)throw Error(w(189))}}if(n.alternate!==r)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function nu(e){return e=Od(e),e!==null?ru(e):null}function ru(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ru(e);if(t!==null)return t;e=e.sibling}return null}var lu=we.unstable_scheduleCallback,mi=we.unstable_cancelCallback,Dd=we.unstable_shouldYield,Ad=we.unstable_requestPaint,K=we.unstable_now,Ud=we.unstable_getCurrentPriorityLevel,ms=we.unstable_ImmediatePriority,ou=we.unstable_UserBlockingPriority,Ur=we.unstable_NormalPriority,Bd=we.unstable_LowPriority,su=we.unstable_IdlePriority,cl=null,Ae=null;function Hd(e){if(Ae&&typeof Ae.onCommitFiberRoot=="function")try{Ae.onCommitFiberRoot(cl,e,void 0,(e.current.flags&128)===128)}catch{}}var Me=Math.clz32?Math.clz32:Qd,Vd=Math.log,Wd=Math.LN2;function Qd(e){return e>>>=0,e===0?32:31-(Vd(e)/Wd|0)|0}var dr=64,fr=4194304;function xn(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 Br(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~l;i!==0?r=xn(i):(o&=s,o!==0&&(r=xn(o)))}else s=n&~l,s!==0?r=xn(s):o!==0&&(r=xn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&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-Me(t),l=1<<n,r|=e[n],t&=~l;return r}function Kd(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 Gd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Me(o),i=1<<s,a=l[s];a===-1?(!(i&n)||i&r)&&(l[s]=Kd(i,t)):a<=t&&(e.expiredLanes|=i),o&=~i}}function jo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function iu(){var e=dr;return dr<<=1,!(dr&4194240)&&(dr=64),e}function Il(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function er(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Me(t),e[t]=n}function Zd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-Me(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function vs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Me(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var F=0;function au(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var uu,gs,cu,du,fu,To=!1,pr=[],ot=null,st=null,it=null,On=new Map,Dn=new Map,tt=[],Yd="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 vi(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":it=null;break;case"pointerover":case"pointerout":On.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Dn.delete(t.pointerId)}}function hn(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=nr(t),t!==null&&gs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function Xd(e,t,n,r,l){switch(t){case"focusin":return ot=hn(ot,e,t,n,r,l),!0;case"dragenter":return st=hn(st,e,t,n,r,l),!0;case"mouseover":return it=hn(it,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return On.set(o,hn(On.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,Dn.set(o,hn(Dn.get(o)||null,e,t,n,r,l)),!0}return!1}function pu(e){var t=xt(e.target);if(t!==null){var n=zt(t);if(n!==null){if(t=n.tag,t===13){if(t=tu(n),t!==null){e.blockedOn=t,fu(e.priority,function(){cu(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 Tr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);So=r,n.target.dispatchEvent(r),So=null}else return t=nr(n),t!==null&&gs(t),e.blockedOn=n,!1;t.shift()}return!0}function gi(e,t,n){Tr(e)&&n.delete(t)}function qd(){To=!1,ot!==null&&Tr(ot)&&(ot=null),st!==null&&Tr(st)&&(st=null),it!==null&&Tr(it)&&(it=null),On.forEach(gi),Dn.forEach(gi)}function mn(e,t){e.blockedOn===t&&(e.blockedOn=null,To||(To=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,qd)))}function An(e){function t(l){return mn(l,e)}if(0<pr.length){mn(pr[0],e);for(var n=1;n<pr.length;n++){var r=pr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ot!==null&&mn(ot,e),st!==null&&mn(st,e),it!==null&&mn(it,e),On.forEach(t),Dn.forEach(t),n=0;n<tt.length;n++)r=tt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<tt.length&&(n=tt[0],n.blockedOn===null);)pu(n),n.blockedOn===null&&tt.shift()}var qt=qe.ReactCurrentBatchConfig,Hr=!0;function Jd(e,t,n,r){var l=F,o=qt.transition;qt.transition=null;try{F=1,ys(e,t,n,r)}finally{F=l,qt.transition=o}}function bd(e,t,n,r){var l=F,o=qt.transition;qt.transition=null;try{F=4,ys(e,t,n,r)}finally{F=l,qt.transition=o}}function ys(e,t,n,r){if(Hr){var l=Po(e,t,n,r);if(l===null)Kl(e,t,r,Vr,n),vi(e,r);else if(Xd(l,e,t,n,r))r.stopPropagation();else if(vi(e,r),t&4&&-1<Yd.indexOf(e)){for(;l!==null;){var o=nr(l);if(o!==null&&uu(o),o=Po(e,t,n,r),o===null&&Kl(e,t,r,Vr,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else Kl(e,t,r,null,n)}}var Vr=null;function Po(e,t,n,r){if(Vr=null,e=hs(r),e=xt(e),e!==null)if(t=zt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=tu(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 Vr=e,null}function hu(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(Ud()){case ms:return 1;case ou:return 4;case Ur:case Bd:return 16;case su:return 536870912;default:return 16}default:return 16}}var rt=null,ws=null,Pr=null;function mu(){if(Pr)return Pr;var e,t=ws,n=t.length,r,l="value"in rt?rt.value:rt.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return Pr=l.slice(e,1<r?1-r:void 0)}function Nr(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 hr(){return!0}function yi(){return!1}function Se(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?hr:yi,this.isPropagationStopped=yi,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=hr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=hr)},persist:function(){},isPersistent:hr}),t}var cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ks=Se(cn),tr=V({},cn,{view:0,detail:0}),ef=Se(tr),Ol,Dl,vn,dl=V({},tr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ss,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!==vn&&(vn&&e.type==="mousemove"?(Ol=e.screenX-vn.screenX,Dl=e.screenY-vn.screenY):Dl=Ol=0,vn=e),Ol)},movementY:function(e){return"movementY"in e?e.movementY:Dl}}),wi=Se(dl),tf=V({},dl,{dataTransfer:0}),nf=Se(tf),rf=V({},tr,{relatedTarget:0}),Al=Se(rf),lf=V({},cn,{animationName:0,elapsedTime:0,pseudoElement:0}),of=Se(lf),sf=V({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),af=Se(sf),uf=V({},cn,{data:0}),ki=Se(uf),cf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},df={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"},ff={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ff[e])?!!t[e]:!1}function Ss(){return pf}var hf=V({},tr,{key:function(e){if(e.key){var t=cf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Nr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?df[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ss,charCode:function(e){return e.type==="keypress"?Nr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Nr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mf=Se(hf),vf=V({},dl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Si=Se(vf),gf=V({},tr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ss}),yf=Se(gf),wf=V({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),kf=Se(wf),Sf=V({},dl,{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}),xf=Se(Sf),Ef=[9,13,27,32],xs=Ge&&"CompositionEvent"in window,Tn=null;Ge&&"documentMode"in document&&(Tn=document.documentMode);var Cf=Ge&&"TextEvent"in window&&!Tn,vu=Ge&&(!xs||Tn&&8<Tn&&11>=Tn),xi=" ",Ei=!1;function gu(e,t){switch(e){case"keyup":return Ef.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dt=!1;function jf(e,t){switch(e){case"compositionend":return yu(t);case"keypress":return t.which!==32?null:(Ei=!0,xi);case"textInput":return e=t.data,e===xi&&Ei?null:e;default:return null}}function Tf(e,t){if(Dt)return e==="compositionend"||!xs&&gu(e,t)?(e=mu(),Pr=ws=rt=null,Dt=!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 vu&&t.locale!=="ko"?null:t.data;default:return null}}var Pf={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 Ci(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pf[e.type]:t==="textarea"}function wu(e,t,n,r){Xa(r),t=Wr(t,"onChange"),0<t.length&&(n=new ks("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Pn=null,Un=null;function Nf(e){_u(e,0)}function fl(e){var t=Bt(e);if(Va(t))return e}function Lf(e,t){if(e==="change")return t}var ku=!1;if(Ge){var Ul;if(Ge){var Bl="oninput"in document;if(!Bl){var ji=document.createElement("div");ji.setAttribute("oninput","return;"),Bl=typeof ji.oninput=="function"}Ul=Bl}else Ul=!1;ku=Ul&&(!document.documentMode||9<document.documentMode)}function Ti(){Pn&&(Pn.detachEvent("onpropertychange",Su),Un=Pn=null)}function Su(e){if(e.propertyName==="value"&&fl(Un)){var t=[];wu(t,Un,e,hs(e)),eu(Nf,t)}}function _f(e,t,n){e==="focusin"?(Ti(),Pn=t,Un=n,Pn.attachEvent("onpropertychange",Su)):e==="focusout"&&Ti()}function $f(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return fl(Un)}function Mf(e,t){if(e==="click")return fl(t)}function zf(e,t){if(e==="input"||e==="change")return fl(t)}function Rf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Re=typeof Object.is=="function"?Object.is:Rf;function Bn(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 l=n[r];if(!ao.call(t,l)||!Re(e[l],t[l]))return!1}return!0}function Pi(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ni(e,t){var n=Pi(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=Pi(n)}}function xu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Eu(){for(var e=window,t=Or();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Or(e.document)}return t}function Es(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 Ff(e){var t=Eu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xu(n.ownerDocument.documentElement,n)){if(r!==null&&Es(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Ni(n,o);var s=Ni(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>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 If=Ge&&"documentMode"in document&&11>=document.documentMode,At=null,No=null,Nn=null,Lo=!1;function Li(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Lo||At==null||At!==Or(r)||(r=At,"selectionStart"in r&&Es(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}),Nn&&Bn(Nn,r)||(Nn=r,r=Wr(No,"onSelect"),0<r.length&&(t=new ks("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=At)))}function mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ut={animationend:mr("Animation","AnimationEnd"),animationiteration:mr("Animation","AnimationIteration"),animationstart:mr("Animation","AnimationStart"),transitionend:mr("Transition","TransitionEnd")},Hl={},Cu={};Ge&&(Cu=document.createElement("div").style,"AnimationEvent"in window||(delete Ut.animationend.animation,delete Ut.animationiteration.animation,delete Ut.animationstart.animation),"TransitionEvent"in window||delete Ut.transitionend.transition);function pl(e){if(Hl[e])return Hl[e];if(!Ut[e])return e;var t=Ut[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cu)return Hl[e]=t[n];return e}var ju=pl("animationend"),Tu=pl("animationiteration"),Pu=pl("animationstart"),Nu=pl("transitionend"),Lu=new Map,_i="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 mt(e,t){Lu.set(e,t),Mt(t,[e])}for(var Vl=0;Vl<_i.length;Vl++){var Wl=_i[Vl],Of=Wl.toLowerCase(),Df=Wl[0].toUpperCase()+Wl.slice(1);mt(Of,"on"+Df)}mt(ju,"onAnimationEnd");mt(Tu,"onAnimationIteration");mt(Pu,"onAnimationStart");mt("dblclick","onDoubleClick");mt("focusin","onFocus");mt("focusout","onBlur");mt(Nu,"onTransitionEnd");en("onMouseEnter",["mouseout","mouseover"]);en("onMouseLeave",["mouseout","mouseover"]);en("onPointerEnter",["pointerout","pointerover"]);en("onPointerLeave",["pointerout","pointerover"]);Mt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var En="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(" "),Af=new Set("cancel close invalid load scroll toggle".split(" ").concat(En));function $i(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Id(r,t,void 0,e),e.currentTarget=null}function _u(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=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!==o&&l.isPropagationStopped())break e;$i(l,i,d),o=a}else for(s=0;s<r.length;s++){if(i=r[s],a=i.instance,d=i.currentTarget,i=i.listener,a!==o&&l.isPropagationStopped())break e;$i(l,i,d),o=a}}}if(Ar)throw e=Co,Ar=!1,Co=null,e}function D(e,t){var n=t[Ro];n===void 0&&(n=t[Ro]=new Set);var r=e+"__bubble";n.has(r)||($u(t,e,2,!1),n.add(r))}function Ql(e,t,n){var r=0;t&&(r|=4),$u(n,e,r,t)}var vr="_reactListening"+Math.random().toString(36).slice(2);function Hn(e){if(!e[vr]){e[vr]=!0,Da.forEach(function(n){n!=="selectionchange"&&(Af.has(n)||Ql(n,!1,e),Ql(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vr]||(t[vr]=!0,Ql("selectionchange",!1,t))}}function $u(e,t,n,r){switch(hu(t)){case 1:var l=Jd;break;case 4:l=bd;break;default:l=ys}n=l.bind(null,t,n,e),l=void 0,!Eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Kl(e,t,n,r,l){var o=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===l||i.nodeType===8&&i.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var a=s.tag;if((a===3||a===4)&&(a=s.stateNode.containerInfo,a===l||a.nodeType===8&&a.parentNode===l))return;s=s.return}for(;i!==null;){if(s=xt(i),s===null)return;if(a=s.tag,a===5||a===6){r=o=s;continue e}i=i.parentNode}}r=r.return}eu(function(){var d=o,v=hs(n),m=[];e:{var h=Lu.get(e);if(h!==void 0){var g=ks,k=e;switch(e){case"keypress":if(Nr(n)===0)break e;case"keydown":case"keyup":g=mf;break;case"focusin":k="focus",g=Al;break;case"focusout":k="blur",g=Al;break;case"beforeblur":case"afterblur":g=Al;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":g=wi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=nf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=yf;break;case ju:case Tu:case Pu:g=of;break;case Nu:g=kf;break;case"scroll":g=ef;break;case"wheel":g=xf;break;case"copy":case"cut":case"paste":g=af;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Si}var x=(t&4)!==0,N=!x&&e==="scroll",f=x?h!==null?h+"Capture":null:h;x=[];for(var c=d,p;c!==null;){p=c;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,f!==null&&(y=In(c,f),y!=null&&x.push(Vn(c,y,p)))),N)break;c=c.return}0<x.length&&(h=new g(h,k,null,n,v),m.push({event:h,listeners:x}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==So&&(k=n.relatedTarget||n.fromElement)&&(xt(k)||k[Ze]))break e;if((g||h)&&(h=v.window===v?v:(h=v.ownerDocument)?h.defaultView||h.parentWindow:window,g?(k=n.relatedTarget||n.toElement,g=d,k=k?xt(k):null,k!==null&&(N=zt(k),k!==N||k.tag!==5&&k.tag!==6)&&(k=null)):(g=null,k=d),g!==k)){if(x=wi,y="onMouseLeave",f="onMouseEnter",c="mouse",(e==="pointerout"||e==="pointerover")&&(x=Si,y="onPointerLeave",f="onPointerEnter",c="pointer"),N=g==null?h:Bt(g),p=k==null?h:Bt(k),h=new x(y,c+"leave",g,n,v),h.target=N,h.relatedTarget=p,y=null,xt(v)===d&&(x=new x(f,c+"enter",k,n,v),x.target=p,x.relatedTarget=N,y=x),N=y,g&&k)t:{for(x=g,f=k,c=0,p=x;p;p=Ft(p))c++;for(p=0,y=f;y;y=Ft(y))p++;for(;0<c-p;)x=Ft(x),c--;for(;0<p-c;)f=Ft(f),p--;for(;c--;){if(x===f||f!==null&&x===f.alternate)break t;x=Ft(x),f=Ft(f)}x=null}else x=null;g!==null&&Mi(m,h,g,x,!1),k!==null&&N!==null&&Mi(m,N,k,x,!0)}}e:{if(h=d?Bt(d):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var E=Lf;else if(Ci(h))if(ku)E=zf;else{E=$f;var P=_f}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Mf);if(E&&(E=E(e,d))){wu(m,E,n,v);break e}P&&P(e,h,d),e==="focusout"&&(P=h._wrapperState)&&P.controlled&&h.type==="number"&&vo(h,"number",h.value)}switch(P=d?Bt(d):window,e){case"focusin":(Ci(P)||P.contentEditable==="true")&&(At=P,No=d,Nn=null);break;case"focusout":Nn=No=At=null;break;case"mousedown":Lo=!0;break;case"contextmenu":case"mouseup":case"dragend":Lo=!1,Li(m,n,v);break;case"selectionchange":if(If)break;case"keydown":case"keyup":Li(m,n,v)}var T;if(xs)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else Dt?gu(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(vu&&n.locale!=="ko"&&(Dt||S!=="onCompositionStart"?S==="onCompositionEnd"&&Dt&&(T=mu()):(rt=v,ws="value"in rt?rt.value:rt.textContent,Dt=!0)),P=Wr(d,S),0<P.length&&(S=new ki(S,e,null,n,v),m.push({event:S,listeners:P}),T?S.data=T:(T=yu(n),T!==null&&(S.data=T)))),(T=Cf?jf(e,n):Tf(e,n))&&(d=Wr(d,"onBeforeInput"),0<d.length&&(v=new ki("onBeforeInput","beforeinput",null,n,v),m.push({event:v,listeners:d}),v.data=T))}_u(m,t)})}function Vn(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=In(e,n),o!=null&&r.unshift(Vn(e,o,l)),o=In(e,t),o!=null&&r.push(Vn(e,o,l))),e=e.return}return r}function Ft(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mi(e,t,n,r,l){for(var o=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,l?(a=In(n,o),a!=null&&s.unshift(Vn(n,a,i))):l||(a=In(n,o),a!=null&&s.push(Vn(n,a,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Uf=/\r\n?/g,Bf=/\u0000|\uFFFD/g;function zi(e){return(typeof e=="string"?e:""+e).replace(Uf,`
|
|
39
39
|
`).replace(Bf,"")}function gr(e,t,n){if(t=zi(t),zi(e)!==t&&n)throw Error(w(425))}function Qr(){}var _o=null,$o=null;function Mo(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 zo=typeof setTimeout=="function"?setTimeout:void 0,Hf=typeof clearTimeout=="function"?clearTimeout:void 0,Ri=typeof Promise=="function"?Promise:void 0,Vf=typeof queueMicrotask=="function"?queueMicrotask:typeof Ri<"u"?function(e){return Ri.resolve(null).then(e).catch(Wf)}:zo;function Wf(e){setTimeout(function(){throw e})}function Gl(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),An(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);An(t)}function at(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 Fi(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 dn=Math.random().toString(36).slice(2),De="__reactFiber$"+dn,Wn="__reactProps$"+dn,Ze="__reactContainer$"+dn,Ro="__reactEvents$"+dn,Qf="__reactListeners$"+dn,Kf="__reactHandles$"+dn;function xt(e){var t=e[De];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ze]||n[De]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fi(e);e!==null;){if(n=e[De])return n;e=Fi(e)}return t}e=n,n=e.parentNode}return null}function nr(e){return e=e[De]||e[Ze],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bt(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(w(33))}function hl(e){return e[Wn]||null}var Fo=[],Ht=-1;function vt(e){return{current:e}}function A(e){0>Ht||(e.current=Fo[Ht],Fo[Ht]=null,Ht--)}function I(e,t){Ht++,Fo[Ht]=e.current,e.current=t}var ht={},oe=vt(ht),fe=vt(!1),Pt=ht;function tn(e,t){var n=e.type.contextTypes;if(!n)return ht;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function Kr(){A(fe),A(oe)}function Ii(e,t,n){if(oe.current!==ht)throw Error(w(168));I(oe,t),I(fe,n)}function Mu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(w(108,Ld(e)||"Unknown",l));return V({},n,r)}function Gr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ht,Pt=oe.current,I(oe,e),I(fe,fe.current),!0}function Oi(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=Mu(e,t,Pt),r.__reactInternalMemoizedMergedChildContext=e,A(fe),A(oe),I(oe,e)):A(fe),I(fe,n)}var Ve=null,ml=!1,Zl=!1;function zu(e){Ve===null?Ve=[e]:Ve.push(e)}function Gf(e){ml=!0,zu(e)}function gt(){if(!Zl&&Ve!==null){Zl=!0;var e=0,t=F;try{var n=Ve;for(F=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ve=null,ml=!1}catch(l){throw Ve!==null&&(Ve=Ve.slice(e+1)),lu(ms,gt),l}finally{F=t,Zl=!1}}return null}var Vt=[],Wt=0,Zr=null,Yr=0,xe=[],Ee=0,Nt=null,We=1,Qe="";function kt(e,t){Vt[Wt++]=Yr,Vt[Wt++]=Zr,Zr=e,Yr=t}function Ru(e,t,n){xe[Ee++]=We,xe[Ee++]=Qe,xe[Ee++]=Nt,Nt=e;var r=We;e=Qe;var l=32-Me(r)-1;r&=~(1<<l),n+=1;var o=32-Me(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,We=1<<32-Me(t)+l|n<<l|r,Qe=o+e}else We=1<<o|n<<l|r,Qe=e}function Cs(e){e.return!==null&&(kt(e,1),Ru(e,1,0))}function js(e){for(;e===Zr;)Zr=Vt[--Wt],Vt[Wt]=null,Yr=Vt[--Wt],Vt[Wt]=null;for(;e===Nt;)Nt=xe[--Ee],xe[Ee]=null,Qe=xe[--Ee],xe[Ee]=null,We=xe[--Ee],xe[Ee]=null}var ye=null,ge=null,U=!1,$e=null;function Fu(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 Di(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,ye=e,ge=at(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ye=e,ge=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Nt!==null?{id:We,overflow:Qe}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ce(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ye=e,ge=null,!0):!1;default:return!1}}function Io(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Oo(e){if(U){var t=ge;if(t){var n=t;if(!Di(e,t)){if(Io(e))throw Error(w(418));t=at(n.nextSibling);var r=ye;t&&Di(e,t)?Fu(r,n):(e.flags=e.flags&-4097|2,U=!1,ye=e)}}else{if(Io(e))throw Error(w(418));e.flags=e.flags&-4097|2,U=!1,ye=e}}}function Ai(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ye=e}function yr(e){if(e!==ye)return!1;if(!U)return Ai(e),U=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Mo(e.type,e.memoizedProps)),t&&(t=ge)){if(Io(e))throw Iu(),Error(w(418));for(;t;)Fu(e,t),t=at(t.nextSibling)}if(Ai(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ge=at(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ge=null}}else ge=ye?at(e.stateNode.nextSibling):null;return!0}function Iu(){for(var e=ge;e;)e=at(e.nextSibling)}function nn(){ge=ye=null,U=!1}function Ts(e){$e===null?$e=[e]:$e.push(e)}var Zf=qe.ReactCurrentBatchConfig;function gn(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(w(309));var r=n.stateNode}if(!r)throw Error(w(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var i=l.refs;s===null?delete i[o]:i[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(w(284));if(!n._owner)throw Error(w(290,e))}return e}function wr(e,t){throw e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ui(e){var t=e._init;return t(e._payload)}function Ou(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 l(f,c){return f=ft(f,c),f.index=0,f.sibling=null,f}function o(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,y){return c===null||c.tag!==6?(c=to(p,f.mode,y),c.return=f,c):(c=l(c,p),c.return=f,c)}function a(f,c,p,y){var E=p.type;return E===Ot?v(f,c,p.props.children,y,p.key):c!==null&&(c.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===be&&Ui(E)===c.type)?(y=l(c,p.props),y.ref=gn(f,c,p),y.return=f,y):(y=Fr(p.type,p.key,p.props,null,f.mode,y),y.ref=gn(f,c,p),y.return=f,y)}function d(f,c,p,y){return c===null||c.tag!==4||c.stateNode.containerInfo!==p.containerInfo||c.stateNode.implementation!==p.implementation?(c=no(p,f.mode,y),c.return=f,c):(c=l(c,p.children||[]),c.return=f,c)}function v(f,c,p,y,E){return c===null||c.tag!==7?(c=Tt(p,f.mode,y,E),c.return=f,c):(c=l(c,p),c.return=f,c)}function m(f,c,p){if(typeof c=="string"&&c!==""||typeof c=="number")return c=to(""+c,f.mode,p),c.return=f,c;if(typeof c=="object"&&c!==null){switch(c.$$typeof){case ar:return p=Fr(c.type,c.key,c.props,null,f.mode,p),p.ref=gn(f,null,c),p.return=f,p;case It:return c=no(c,f.mode,p),c.return=f,c;case be:var y=c._init;return m(f,y(c._payload),p)}if(Sn(c)||fn(c))return c=Tt(c,f.mode,p,null),c.return=f,c;wr(f,c)}return null}function h(f,c,p,y){var E=c!==null?c.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return E!==null?null:i(f,c,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ar:return p.key===E?a(f,c,p,y):null;case It:return p.key===E?d(f,c,p,y):null;case be:return E=p._init,h(f,c,E(p._payload),y)}if(Sn(p)||fn(p))return E!==null?null:v(f,c,p,y,null);wr(f,p)}return null}function g(f,c,p,y,E){if(typeof y=="string"&&y!==""||typeof y=="number")return f=f.get(p)||null,i(c,f,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ar:return f=f.get(y.key===null?p:y.key)||null,a(c,f,y,E);case It:return f=f.get(y.key===null?p:y.key)||null,d(c,f,y,E);case be:var P=y._init;return g(f,c,p,P(y._payload),E)}if(Sn(y)||fn(y))return f=f.get(p)||null,v(c,f,y,E,null);wr(c,y)}return null}function k(f,c,p,y){for(var E=null,P=null,T=c,S=c=0,O=null;T!==null&&S<p.length;S++){T.index>S?(O=T,T=null):O=T.sibling;var $=h(f,T,p[S],y);if($===null){T===null&&(T=O);break}e&&T&&$.alternate===null&&t(f,T),c=o($,c,S),P===null?E=$:P.sibling=$,P=$,T=O}if(S===p.length)return n(f,T),U&&kt(f,S),E;if(T===null){for(;S<p.length;S++)T=m(f,p[S],y),T!==null&&(c=o(T,c,S),P===null?E=T:P.sibling=T,P=T);return U&&kt(f,S),E}for(T=r(f,T);S<p.length;S++)O=g(T,f,S,p[S],y),O!==null&&(e&&O.alternate!==null&&T.delete(O.key===null?S:O.key),c=o(O,c,S),P===null?E=O:P.sibling=O,P=O);return e&&T.forEach(function(me){return t(f,me)}),U&&kt(f,S),E}function x(f,c,p,y){var E=fn(p);if(typeof E!="function")throw Error(w(150));if(p=E.call(p),p==null)throw Error(w(151));for(var P=E=null,T=c,S=c=0,O=null,$=p.next();T!==null&&!$.done;S++,$=p.next()){T.index>S?(O=T,T=null):O=T.sibling;var me=h(f,T,$.value,y);if(me===null){T===null&&(T=O);break}e&&T&&me.alternate===null&&t(f,T),c=o(me,c,S),P===null?E=me:P.sibling=me,P=me,T=O}if($.done)return n(f,T),U&&kt(f,S),E;if(T===null){for(;!$.done;S++,$=p.next())$=m(f,$.value,y),$!==null&&(c=o($,c,S),P===null?E=$:P.sibling=$,P=$);return U&&kt(f,S),E}for(T=r(f,T);!$.done;S++,$=p.next())$=g(T,f,S,$.value,y),$!==null&&(e&&$.alternate!==null&&T.delete($.key===null?S:$.key),c=o($,c,S),P===null?E=$:P.sibling=$,P=$);return e&&T.forEach(function(Fe){return t(f,Fe)}),U&&kt(f,S),E}function N(f,c,p,y){if(typeof p=="object"&&p!==null&&p.type===Ot&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ar:e:{for(var E=p.key,P=c;P!==null;){if(P.key===E){if(E=p.type,E===Ot){if(P.tag===7){n(f,P.sibling),c=l(P,p.props.children),c.return=f,f=c;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===be&&Ui(E)===P.type){n(f,P.sibling),c=l(P,p.props),c.ref=gn(f,P,p),c.return=f,f=c;break e}n(f,P);break}else t(f,P);P=P.sibling}p.type===Ot?(c=Tt(p.props.children,f.mode,y,p.key),c.return=f,f=c):(y=Fr(p.type,p.key,p.props,null,f.mode,y),y.ref=gn(f,c,p),y.return=f,f=y)}return s(f);case It:e:{for(P=p.key;c!==null;){if(c.key===P)if(c.tag===4&&c.stateNode.containerInfo===p.containerInfo&&c.stateNode.implementation===p.implementation){n(f,c.sibling),c=l(c,p.children||[]),c.return=f,f=c;break e}else{n(f,c);break}else t(f,c);c=c.sibling}c=no(p,f.mode,y),c.return=f,f=c}return s(f);case be:return P=p._init,N(f,c,P(p._payload),y)}if(Sn(p))return k(f,c,p,y);if(fn(p))return x(f,c,p,y);wr(f,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,c!==null&&c.tag===6?(n(f,c.sibling),c=l(c,p),c.return=f,f=c):(n(f,c),c=to(p,f.mode,y),c.return=f,f=c),s(f)):n(f,c)}return N}var rn=Ou(!0),Du=Ou(!1),Xr=vt(null),qr=null,Qt=null,Ps=null;function Ns(){Ps=Qt=qr=null}function Ls(e){var t=Xr.current;A(Xr),e._currentValue=t}function Do(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 Jt(e,t){qr=e,Ps=Qt=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(de=!0),e.firstContext=null)}function Te(e){var t=e._currentValue;if(Ps!==e)if(e={context:e,memoizedValue:t,next:null},Qt===null){if(qr===null)throw Error(w(308));Qt=e,qr.dependencies={lanes:0,firstContext:e}}else Qt=Qt.next=e;return t}var Et=null;function _s(e){Et===null?Et=[e]:Et.push(e)}function Au(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,_s(t)):(n.next=l.next,l.next=n),t.interleaved=n,Ye(e,r)}function Ye(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 et=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Uu(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 ut(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,R&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,Ye(e,n)}return l=r.interleaved,l===null?(t.next=t,_s(r)):(t.next=l.next,l.next=t),r.interleaved=t,Ye(e,n)}function Lr(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,vs(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=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};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,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 Jr(e,t,n,r){var l=e.updateQueue;et=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var a=i,d=a.next;a.next=null,s===null?o=d:s.next=d,s=a;var v=e.alternate;v!==null&&(v=v.updateQueue,i=v.lastBaseUpdate,i!==s&&(i===null?v.firstBaseUpdate=d:i.next=d,v.lastBaseUpdate=a))}if(o!==null){var m=l.baseState;s=0,v=d=a=null,i=o;do{var h=i.lane,g=i.eventTime;if((r&h)===h){v!==null&&(v=v.next={eventTime:g,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var k=e,x=i;switch(h=t,g=n,x.tag){case 1:if(k=x.payload,typeof k=="function"){m=k.call(g,m,h);break e}m=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=x.payload,h=typeof k=="function"?k.call(g,m,h):k,h==null)break e;m=V({},m,h);break e;case 2:et=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[i]:h.push(i))}else g={eventTime:g,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},v===null?(d=v=g,a=m):v=v.next=g,s|=h;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;h=i,i=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(v===null&&(a=m),l.baseState=a,l.firstBaseUpdate=d,l.lastBaseUpdate=v,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);_t|=s,e.lanes=s,e.memoizedState=m}}function Hi(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(w(191,l));l.call(r)}}}var rr={},Ue=vt(rr),Qn=vt(rr),Kn=vt(rr);function Ct(e){if(e===rr)throw Error(w(174));return e}function Ms(e,t){switch(I(Kn,t),I(Qn,e),I(Ue,rr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yo(t,e)}A(Ue),I(Ue,t)}function ln(){A(Ue),A(Qn),A(Kn)}function Bu(e){Ct(Kn.current);var t=Ct(Ue.current),n=yo(t,e.type);t!==n&&(I(Qn,e),I(Ue,n))}function zs(e){Qn.current===e&&(A(Ue),A(Qn))}var B=vt(0);function br(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 Yl=[];function Rs(){for(var e=0;e<Yl.length;e++)Yl[e]._workInProgressVersionPrimary=null;Yl.length=0}var _r=qe.ReactCurrentDispatcher,Xl=qe.ReactCurrentBatchConfig,Lt=0,H=null,Z=null,q=null,el=!1,Ln=!1,Gn=0,Yf=0;function ne(){throw Error(w(321))}function Fs(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 Is(e,t,n,r,l,o){if(Lt=o,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_r.current=e===null||e.memoizedState===null?bf:ep,e=n(r,l),Ln){o=0;do{if(Ln=!1,Gn=0,25<=o)throw Error(w(301));o+=1,q=Z=null,t.updateQueue=null,_r.current=tp,e=n(r,l)}while(Ln)}if(_r.current=tl,t=Z!==null&&Z.next!==null,Lt=0,q=Z=H=null,el=!1,t)throw Error(w(300));return e}function Os(){var e=Gn!==0;return Gn=0,e}function Oe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return q===null?H.memoizedState=q=e:q=q.next=e,q}function Pe(){if(Z===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var t=q===null?H.memoizedState:q.next;if(t!==null)q=t,Z=e;else{if(e===null)throw Error(w(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},q===null?H.memoizedState=q=e:q=q.next=e}return q}function Zn(e,t){return typeof t=="function"?t(e):t}function ql(e){var t=Pe(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=Z,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var i=s=null,a=null,d=o;do{var v=d.lane;if((Lt&v)===v)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:v,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};a===null?(i=a=m,s=r):a=a.next=m,H.lanes|=v,_t|=v}d=d.next}while(d!==null&&d!==o);a===null?s=r:a.next=i,Re(r,t.memoizedState)||(de=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,H.lanes|=o,_t|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jl(e){var t=Pe(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);Re(o,t.memoizedState)||(de=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Hu(){}function Vu(e,t){var n=H,r=Pe(),l=t(),o=!Re(r.memoizedState,l);if(o&&(r.memoizedState=l,de=!0),r=r.queue,Ds(Ku.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||q!==null&&q.memoizedState.tag&1){if(n.flags|=2048,Yn(9,Qu.bind(null,n,r,l,t),void 0,null),J===null)throw Error(w(349));Lt&30||Wu(n,t,l)}return l}function Wu(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 Qu(e,t,n,r){t.value=n,t.getSnapshot=r,Gu(t)&&Zu(e)}function Ku(e,t,n){return n(function(){Gu(t)&&Zu(e)})}function Gu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Re(e,n)}catch{return!0}}function Zu(e){var t=Ye(e,1);t!==null&&ze(t,e,1,-1)}function Vi(e){var t=Oe();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e},t.queue=e,e=e.dispatch=Jf.bind(null,H,e),[t.memoizedState,e]}function Yn(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 Yu(){return Pe().memoizedState}function $r(e,t,n,r){var l=Oe();H.flags|=e,l.memoizedState=Yn(1|t,n,void 0,r===void 0?null:r)}function vl(e,t,n,r){var l=Pe();r=r===void 0?null:r;var o=void 0;if(Z!==null){var s=Z.memoizedState;if(o=s.destroy,r!==null&&Fs(r,s.deps)){l.memoizedState=Yn(t,n,o,r);return}}H.flags|=e,l.memoizedState=Yn(1|t,n,o,r)}function Wi(e,t){return $r(8390656,8,e,t)}function Ds(e,t){return vl(2048,8,e,t)}function Xu(e,t){return vl(4,2,e,t)}function qu(e,t){return vl(4,4,e,t)}function Ju(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 bu(e,t,n){return n=n!=null?n.concat([e]):null,vl(4,4,Ju.bind(null,t,e),n)}function As(){}function ec(e,t){var n=Pe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tc(e,t){var n=Pe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Fs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nc(e,t,n){return Lt&21?(Re(n,t)||(n=iu(),H.lanes|=n,_t|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,de=!0),e.memoizedState=n)}function Xf(e,t){var n=F;F=n!==0&&4>n?n:4,e(!0);var r=Xl.transition;Xl.transition={};try{e(!1),t()}finally{F=n,Xl.transition=r}}function rc(){return Pe().memoizedState}function qf(e,t,n){var r=dt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e))oc(t,n);else if(n=Au(e,t,n,r),n!==null){var l=ie();ze(n,e,r,l),sc(n,t,r)}}function Jf(e,t,n){var r=dt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))oc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,n);if(l.hasEagerState=!0,l.eagerState=i,Re(i,s)){var a=t.interleaved;a===null?(l.next=l,_s(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Au(e,t,l,r),n!==null&&(l=ie(),ze(n,e,r,l),sc(n,t,r))}}function lc(e){var t=e.alternate;return e===H||t!==null&&t===H}function oc(e,t){Ln=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vs(e,n)}}var tl={readContext:Te,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useInsertionEffect:ne,useLayoutEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useMutableSource:ne,useSyncExternalStore:ne,useId:ne,unstable_isNewReconciler:!1},bf={readContext:Te,useCallback:function(e,t){return Oe().memoizedState=[e,t===void 0?null:t],e},useContext:Te,useEffect:Wi,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$r(4194308,4,Ju.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $r(4194308,4,e,t)},useInsertionEffect:function(e,t){return $r(4,2,e,t)},useMemo:function(e,t){var n=Oe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oe();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=qf.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Oe();return e={current:e},t.memoizedState=e},useState:Vi,useDebugValue:As,useDeferredValue:function(e){return Oe().memoizedState=e},useTransition:function(){var e=Vi(!1),t=e[0];return e=Xf.bind(null,e[1]),Oe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=H,l=Oe();if(U){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),J===null)throw Error(w(349));Lt&30||Wu(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Wi(Ku.bind(null,r,o,e),[e]),r.flags|=2048,Yn(9,Qu.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Oe(),t=J.identifierPrefix;if(U){var n=Qe,r=We;n=(r&~(1<<32-Me(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gn++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Yf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ep={readContext:Te,useCallback:ec,useContext:Te,useEffect:Ds,useImperativeHandle:bu,useInsertionEffect:Xu,useLayoutEffect:qu,useMemo:tc,useReducer:ql,useRef:Yu,useState:function(){return ql(Zn)},useDebugValue:As,useDeferredValue:function(e){var t=Pe();return nc(t,Z.memoizedState,e)},useTransition:function(){var e=ql(Zn)[0],t=Pe().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Vu,useId:rc,unstable_isNewReconciler:!1},tp={readContext:Te,useCallback:ec,useContext:Te,useEffect:Ds,useImperativeHandle:bu,useInsertionEffect:Xu,useLayoutEffect:qu,useMemo:tc,useReducer:Jl,useRef:Yu,useState:function(){return Jl(Zn)},useDebugValue:As,useDeferredValue:function(e){var t=Pe();return Z===null?t.memoizedState=e:nc(t,Z.memoizedState,e)},useTransition:function(){var e=Jl(Zn)[0],t=Pe().memoizedState;return[e,t]},useMutableSource:Hu,useSyncExternalStore:Vu,useId:rc,unstable_isNewReconciler:!1};function Le(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 Ao(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 gl={isMounted:function(e){return(e=e._reactInternals)?zt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ie(),l=dt(e),o=Ke(r,l);o.payload=t,n!=null&&(o.callback=n),t=ut(e,o,l),t!==null&&(ze(t,e,l,r),Lr(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ie(),l=dt(e),o=Ke(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ut(e,o,l),t!==null&&(ze(t,e,l,r),Lr(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ie(),r=dt(e),l=Ke(n,r);l.tag=2,t!=null&&(l.callback=t),t=ut(e,l,r),t!==null&&(ze(t,e,r,n),Lr(t,e,r))}};function Qi(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Bn(n,r)||!Bn(l,o):!0}function ic(e,t,n){var r=!1,l=ht,o=t.contextType;return typeof o=="object"&&o!==null?o=Te(o):(l=pe(t)?Pt:oe.current,r=t.contextTypes,o=(r=r!=null)?tn(e,l):ht),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=gl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ki(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&&gl.enqueueReplaceState(t,t.state,null)}function Uo(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},$s(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Te(o):(o=pe(t)?Pt:oe.current,l.context=tn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ao(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&gl.enqueueReplaceState(l,l.state,null),Jr(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function on(e,t){try{var n="",r=t;do n+=Nd(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
40
40
|
Error generating stack: `+o.message+`
|
|
41
|
-
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var np=typeof WeakMap=="function"?WeakMap:Map;function ac(e,t,n){n=Ke(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,qo=r),Bo(e,t)},n}function uc(e,t,n){n=Ke(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Bo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Bo(e,t),typeof r!="function"&&(ct===null?ct=new Set([this]):ct.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Gi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new np;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=vp.bind(null,e,t,n),t.then(e,e))}function Zi(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 Yi(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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,ut(n,t,1))),n.lanes|=1),e)}var rp=qe.ReactCurrentOwner,de=!1;function se(e,t,n,r){t.child=e===null?Du(t,null,n,r):rn(t,e.child,n,r)}function Xi(e,t,n,r,l){n=n.render;var o=t.ref;return Jt(t,l),r=Is(e,t,n,r,o,l),n=Os(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(U&&n&&Cs(t),t.flags|=1,se(e,t,r,l),t.child)}function qi(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Gs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cc(e,t,o,r,l)):(e=Fr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Bn,n(s,r)&&e.ref===t.ref)return Xe(e,t,l)}return t.flags|=1,e=ft(o,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Bn(o,r)&&e.ref===t.ref)if(de=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(de=!0);else return t.lanes=e.lanes,Xe(e,t,l)}return Ho(e,t,n,r,l)}function dc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Gt,ve),ve|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(Gt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,I(Gt,ve),ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,I(Gt,ve),ve|=r;return se(e,t,l,n),t.child}function fc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ho(e,t,n,r,l){var o=pe(n)?Pt:oe.current;return o=tn(t,o),Jt(t,l),n=Is(e,t,n,r,o,l),r=Os(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(U&&r&&Cs(t),t.flags|=1,se(e,t,n,l),t.child)}function Ji(e,t,n,r,l){if(pe(n)){var o=!0;Gr(t)}else o=!1;if(Jt(t,l),t.stateNode===null)Mr(e,t),ic(t,n,r),Uo(t,n,r,l),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=Te(d):(d=pe(n)?Pt:oe.current,d=tn(t,d));var v=n.getDerivedStateFromProps,m=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==d)&&Ki(t,s,r,d),et=!1;var h=t.memoizedState;s.state=h,Jr(t,r,s,l),a=t.memoizedState,i!==r||h!==a||fe.current||et?(typeof v=="function"&&(Ao(t,n,v,r),a=t.memoizedState),(i=et||Qi(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,Uu(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:Le(t.type,i),s.props=d,m=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Te(a):(a=pe(n)?Pt:oe.current,a=tn(t,a));var g=n.getDerivedStateFromProps;(v=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==m||h!==a)&&Ki(t,s,r,a),et=!1,h=t.memoizedState,s.state=h,Jr(t,r,s,l);var k=t.memoizedState;i!==m||h!==k||fe.current||et?(typeof g=="function"&&(Ao(t,n,g,r),k=t.memoizedState),(d=et||Qi(t,n,d,r,h,k,a)||!1)?(v||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,k,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,k,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=k),s.props=r,s.state=k,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 Vo(e,t,n,r,o,l)}function Vo(e,t,n,r,l,o){fc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&Oi(t,n,!1),Xe(e,t,o);r=t.stateNode,rp.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=rn(t,e.child,null,o),t.child=rn(t,null,i,o)):se(e,t,i,o),t.memoizedState=r.state,l&&Oi(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?Ii(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(e,t.context,!1),Ms(e,t.containerInfo)}function bi(e,t,n,r,l){return nn(),Ts(l),t.flags|=256,se(e,t,n,r),t.child}var Wo={dehydrated:null,treeContext:null,retryLane:0};function Qo(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,l=B.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),I(B,l&1),e===null)return Oo(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,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=kl(s,r,0,null),e=Tt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Qo(n),t.memoizedState=Wo,e):Us(t,s));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return lp(e,t,s,r,i,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,i=l.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=ft(l,a),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=ft(i,o):(o=Tt(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Qo(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Wo,r}return o=e.child,e=o.sibling,r=ft(o,{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 Us(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kr(e,t,n,r){return r!==null&&Ts(r),rn(t,e.child,null,n),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=bl(Error(w(422))),kr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=kl({mode:"visible",children:r.children},l,0,null),o=Tt(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&rn(t,e.child,null,s),t.child.memoizedState=Qo(s),t.memoizedState=Wo,o);if(!(t.mode&1))return kr(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(w(419)),r=bl(o,r,void 0),kr(e,t,s,r)}if(i=(s&e.childLanes)!==0,de||i){if(r=J,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Ye(e,l),ze(r,e,l,-1))}return Ks(),r=bl(Error(w(421))),kr(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=gp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ge=at(l.nextSibling),ye=t,U=!0,$e=null,e!==null&&(xe[Ee++]=We,xe[Ee++]=Qe,xe[Ee++]=Nt,We=e.id,Qe=e.overflow,Nt=t),t=Us(t,r.children),t.flags|=4096,t)}function ea(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Do(e.return,t,n)}function eo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function mc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(se(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&&ea(e,n,t);else if(e.tag===19)ea(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(I(B,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&br(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),eo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&br(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}eo(t,!0,n,null,o);break;case"together":eo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mr(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),_t|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function op(e,t,n){switch(t.tag){case 3:pc(t),nn();break;case 5:Bu(t);break;case 1:pe(t.type)&&Gr(t);break;case 4:Ms(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;I(Xr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?hc(e,t,n):(I(B,B.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);I(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),I(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,dc(e,t,n)}return Xe(e,t,n)}var vc,Ko,gc,yc;vc=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}};Ko=function(){};gc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ct(Ue.current);var o=null;switch(n){case"input":l=ho(e,l),r=ho(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=go(e,l),r=go(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qr)}wo(n,r);var s;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var i=l[d];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Rn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var a=r[d];if(i=l!=null?l[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||(o||(o=[]),o.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(o=o||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Rn.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&D("scroll",e),o||i===a||(o=[])):(o=o||[]).push(d,a))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function yn(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 re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sp(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 re(t),null;case 1:return pe(t.type)&&Kr(),re(t),null;case 3:return r=t.stateNode,ln(),A(fe),A(oe),Rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(es($e),$e=null))),Ko(e,t),re(t),null;case 5:zs(t);var l=Ct(Kn.current);if(n=t.type,e!==null&&t.stateNode!=null)gc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(w(166));return re(t),null}if(e=Ct(Ue.current),yr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[De]=t,r[Wn]=o,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(l=0;l<En.length;l++)D(En[l],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":ui(r,o),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},D("invalid",r);break;case"textarea":di(r,o),D("invalid",r)}wo(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&gr(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&gr(r.textContent,i,e),l=["children",""+i]):Rn.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&D("scroll",r)}switch(n){case"input":ur(r),ci(r,o,!0);break;case"textarea":ur(r),fi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Qr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ka(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[De]=t,e[Wn]=r,vc(e,t,!1,!1),t.stateNode=e;e:{switch(s=ko(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;l<En.length;l++)D(En[l],e);l=r;break;case"source":D("error",e),l=r;break;case"img":case"image":case"link":D("error",e),D("load",e),l=r;break;case"details":D("toggle",e),l=r;break;case"input":ui(e,r),l=ho(e,r),D("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),D("invalid",e);break;case"textarea":di(e,r),l=go(e,r),D("invalid",e);break;default:l=r}wo(n,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="style"?Ya(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ga(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fn(e,a):typeof a=="number"&&Fn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&D("scroll",e):a!=null&&cs(e,o,a,s))}switch(n){case"input":ur(e),ci(e,r,!1);break;case"textarea":ur(e),fi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Zt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Zt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Qr)}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 re(t),null;case 6:if(e&&t.stateNode!=null)yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(w(166));if(n=Ct(Kn.current),Ct(Ue.current),yr(t)){if(r=t.stateNode,n=t.memoizedProps,r[De]=t,(o=r.nodeValue!==n)&&(e=ye,e!==null))switch(e.tag){case 3:gr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[De]=t,t.stateNode=r}return re(t),null;case 13:if(A(B),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&ge!==null&&t.mode&1&&!(t.flags&128))Iu(),nn(),t.flags|=98560,o=!1;else if(o=yr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(w(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(w(317));o[De]=t}else nn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;re(t),o=!1}else $e!==null&&(es($e),$e=null),o=!0;if(!o)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):Ks())),t.updateQueue!==null&&(t.flags|=4),re(t),null);case 4:return ln(),Ko(e,t),e===null&&Hn(t.stateNode.containerInfo),re(t),null;case 10:return Ls(t.type._context),re(t),null;case 17:return pe(t.type)&&Kr(),re(t),null;case 19:if(A(B),o=t.memoizedState,o===null)return re(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)yn(o,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=br(e),s!==null){for(t.flags|=128,yn(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(B,B.current&1|2),t.child}e=e.sibling}o.tail!==null&&K()>sn&&(t.flags|=128,r=!0,yn(o,!1),t.lanes=4194304)}else{if(!r)if(e=br(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!U)return re(t),null}else 2*K()-o.renderingStartTime>sn&&n!==1073741824&&(t.flags|=128,r=!0,yn(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=B.current,I(B,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Qs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function ip(e,t){switch(js(t),t.tag){case 1:return pe(t.type)&&Kr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ln(),A(fe),A(oe),Rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zs(t),null;case 13:if(A(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(B),null;case 4:return ln(),null;case 10:return Ls(t.type._context),null;case 22:case 23:return Qs(),null;case 24:return null;default:return null}}var Sr=!1,le=!1,ap=typeof WeakSet=="function"?WeakSet:Set,C=null;function Kt(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 Go(e,t,n){try{n()}catch(r){W(e,t,r)}}var ta=!1;function up(e,t){if(_o=Hr,e=Eu(),Es(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,d=0,v=0,m=e,h=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(i=s+l),m!==o||r!==0&&m.nodeType!==3||(a=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(g=m.firstChild)!==null;)h=m,m=g;for(;;){if(m===e)break t;if(h===n&&++d===l&&(i=s),h===o&&++v===r&&(a=s),(g=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=g}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for($o={focusedElem:e,selectionRange:n},Hr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var x=k.memoizedProps,N=k.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Le(t.type,x),N);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(w(163))}}catch(y){W(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return k=ta,ta=!1,k}function _n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Go(t,n,o)}l=l.next}while(l!==r)}}function yl(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 Zo(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 wc(e){var t=e.alternate;t!==null&&(e.alternate=null,wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[De],delete t[Wn],delete t[Ro],delete t[Qf],delete t[Kf])),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 kc(e){return e.tag===5||e.tag===3||e.tag===4}function na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kc(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 Yo(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=Qr));else if(r!==4&&(e=e.child,e!==null))for(Yo(e,t,n),e=e.sibling;e!==null;)Yo(e,t,n),e=e.sibling}function Xo(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(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}var b=null,_e=!1;function Je(e,t,n){for(n=n.child;n!==null;)Sc(e,t,n),n=n.sibling}function Sc(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(cl,n)}catch{}switch(n.tag){case 5:le||Kt(n,t);case 6:var r=b,l=_e;b=null,Je(e,t,n),b=r,_e=l,b!==null&&(_e?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(_e?(e=b,n=n.stateNode,e.nodeType===8?Gl(e.parentNode,n):e.nodeType===1&&Gl(e,n),An(e)):Gl(b,n.stateNode));break;case 4:r=b,l=_e,b=n.stateNode.containerInfo,_e=!0,Je(e,t,n),b=r,_e=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Go(n,t,s),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!le&&(Kt(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)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,Je(e,t,n),le=r):Je(e,t,n);break;default:Je(e,t,n)}}function ra(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ap),t.forEach(function(r){var l=yp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ne(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:b=i.stateNode,_e=!1;break e;case 3:b=i.stateNode.containerInfo,_e=!0;break e;case 4:b=i.stateNode.containerInfo,_e=!0;break e}i=i.return}if(b===null)throw Error(w(160));Sc(o,s,l),b=null,_e=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(d){W(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xc(t,e),t=t.sibling}function xc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ne(t,e),Ie(e),r&4){try{_n(3,e,e.return),yl(3,e)}catch(x){W(e,e.return,x)}try{_n(5,e,e.return)}catch(x){W(e,e.return,x)}}break;case 1:Ne(t,e),Ie(e),r&512&&n!==null&&Kt(n,n.return);break;case 5:if(Ne(t,e),Ie(e),r&512&&n!==null&&Kt(n,n.return),e.flags&32){var l=e.stateNode;try{Fn(l,"")}catch(x){W(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&Wa(l,o),ko(i,s);var d=ko(i,o);for(s=0;s<a.length;s+=2){var v=a[s],m=a[s+1];v==="style"?Ya(l,m):v==="dangerouslySetInnerHTML"?Ga(l,m):v==="children"?Fn(l,m):cs(l,v,m,d)}switch(i){case"input":mo(l,o);break;case"textarea":Qa(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Zt(l,!!o.multiple,g,!1):h!==!!o.multiple&&(o.defaultValue!=null?Zt(l,!!o.multiple,o.defaultValue,!0):Zt(l,!!o.multiple,o.multiple?[]:"",!1))}l[Wn]=o}catch(x){W(e,e.return,x)}}break;case 6:if(Ne(t,e),Ie(e),r&4){if(e.stateNode===null)throw Error(w(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){W(e,e.return,x)}}break;case 3:if(Ne(t,e),Ie(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{An(t.containerInfo)}catch(x){W(e,e.return,x)}break;case 4:Ne(t,e),Ie(e);break;case 13:Ne(t,e),Ie(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Vs=K())),r&4&&ra(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(le=(d=le)||v,Ne(t,e),le=d):Ne(t,e),Ie(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!v&&e.mode&1)for(C=e,v=e.child;v!==null;){for(m=C=v;C!==null;){switch(h=C,g=h.child,h.tag){case 0:case 11:case 14:case 15:_n(4,h,h.return);break;case 1:Kt(h,h.return);var k=h.stateNode;if(typeof k.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(x){W(r,n,x)}}break;case 5:Kt(h,h.return);break;case 22:if(h.memoizedState!==null){oa(m);continue}}g!==null?(g.return=h,C=g):oa(m)}v=v.sibling}e:for(v=null,m=e;;){if(m.tag===5){if(v===null){v=m;try{l=m.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=m.stateNode,a=m.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Za("display",s))}catch(x){W(e,e.return,x)}}}else if(m.tag===6){if(v===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(x){W(e,e.return,x)}}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;v===m&&(v=null),m=m.return}v===m&&(v=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ne(t,e),Ie(e),r&4&&ra(e);break;case 21:break;default:Ne(t,e),Ie(e)}}function Ie(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kc(n)){var r=n;break e}n=n.return}throw Error(w(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Fn(l,""),r.flags&=-33);var o=na(e);Xo(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,i=na(e);Yo(e,i,s);break;default:throw Error(w(161))}}catch(a){W(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cp(e,t,n){C=e,Ec(e)}function Ec(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var l=C,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Sr;if(!s){var i=l.alternate,a=i!==null&&i.memoizedState!==null||le;i=Sr;var d=le;if(Sr=s,(le=a)&&!d)for(C=l;C!==null;)s=C,a=s.child,s.tag===22&&s.memoizedState!==null?sa(l):a!==null?(a.return=s,C=a):sa(l);for(;o!==null;)C=o,Ec(o),o=o.sibling;C=l,Sr=i,le=d}la(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,C=o):la(e)}}function la(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Hi(t,o,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}Hi(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 v=d.memoizedState;if(v!==null){var m=v.dehydrated;m!==null&&An(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(w(163))}le||t.flags&512&&Zo(t)}catch(h){W(t,t.return,h)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function oa(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function sa(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yl(4,t)}catch(a){W(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){W(t,l,a)}}var o=t.return;try{Zo(t)}catch(a){W(t,o,a)}break;case 5:var s=t.return;try{Zo(t)}catch(a){W(t,s,a)}}}catch(a){W(t,t.return,a)}if(t===e){C=null;break}var i=t.sibling;if(i!==null){i.return=t.return,C=i;break}C=t.return}}var dp=Math.ceil,nl=qe.ReactCurrentDispatcher,Bs=qe.ReactCurrentOwner,je=qe.ReactCurrentBatchConfig,R=0,J=null,G=null,ee=0,ve=0,Gt=vt(0),Y=0,Xn=null,_t=0,wl=0,Hs=0,$n=null,ce=null,Vs=0,sn=1/0,He=null,rl=!1,qo=null,ct=null,xr=!1,lt=null,ll=0,Mn=0,Jo=null,zr=-1,Rr=0;function ie(){return R&6?K():zr!==-1?zr:zr=K()}function dt(e){return e.mode&1?R&2&&ee!==0?ee&-ee:Zf.transition!==null?(Rr===0&&(Rr=iu()),Rr):(e=F,e!==0||(e=window.event,e=e===void 0?16:hu(e.type)),e):1}function ze(e,t,n,r){if(50<Mn)throw Mn=0,Jo=null,Error(w(185));er(e,n,r),(!(R&2)||e!==J)&&(e===J&&(!(R&2)&&(wl|=n),Y===4&&nt(e,ee)),he(e,r),n===1&&R===0&&!(t.mode&1)&&(sn=K()+500,ml&>()))}function he(e,t){var n=e.callbackNode;Gd(e,t);var r=Br(e,e===J?ee:0);if(r===0)n!==null&&mi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&mi(n),t===1)e.tag===0?Gf(ia.bind(null,e)):zu(ia.bind(null,e)),Vf(function(){!(R&6)&>()}),n=null;else{switch(au(r)){case 1:n=ms;break;case 4:n=ou;break;case 16:n=Ur;break;case 536870912:n=su;break;default:n=Ur}n=$c(n,Cc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cc(e,t){if(zr=-1,Rr=0,R&6)throw Error(w(327));var n=e.callbackNode;if(bt()&&e.callbackNode!==n)return null;var r=Br(e,e===J?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ol(e,r);else{t=r;var l=R;R|=2;var o=Tc();(J!==e||ee!==t)&&(He=null,sn=K()+500,jt(e,t));do try{hp();break}catch(i){jc(e,i)}while(!0);Ns(),nl.current=o,R=l,G!==null?t=0:(J=null,ee=0,t=Y)}if(t!==0){if(t===2&&(l=jo(e),l!==0&&(r=l,t=bo(e,l))),t===1)throw n=Xn,jt(e,0),nt(e,r),he(e,K()),n;if(t===6)nt(e,r);else{if(l=e.current.alternate,!(r&30)&&!fp(l)&&(t=ol(e,r),t===2&&(o=jo(e),o!==0&&(r=o,t=bo(e,o))),t===1))throw n=Xn,jt(e,0),nt(e,r),he(e,K()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(w(345));case 2:St(e,ce,He);break;case 3:if(nt(e,r),(r&130023424)===r&&(t=Vs+500-K(),10<t)){if(Br(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ie(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=zo(St.bind(null,e,ce,He),t);break}St(e,ce,He);break;case 4:if(nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Me(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dp(r/1960))-r,10<r){e.timeoutHandle=zo(St.bind(null,e,ce,He),r);break}St(e,ce,He);break;case 5:St(e,ce,He);break;default:throw Error(w(329))}}}return he(e,K()),e.callbackNode===n?Cc.bind(null,e):null}function bo(e,t){var n=$n;return e.current.memoizedState.isDehydrated&&(jt(e,t).flags|=256),e=ol(e,t),e!==2&&(t=ce,ce=n,t!==null&&es(t)),e}function es(e){ce===null?ce=e:ce.push.apply(ce,e)}function fp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Re(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nt(e,t){for(t&=~Hs,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Me(t),r=1<<n;e[n]=-1,t&=~r}}function ia(e){if(R&6)throw Error(w(327));bt();var t=Br(e,0);if(!(t&1))return he(e,K()),null;var n=ol(e,t);if(e.tag!==0&&n===2){var r=jo(e);r!==0&&(t=r,n=bo(e,r))}if(n===1)throw n=Xn,jt(e,0),nt(e,t),he(e,K()),n;if(n===6)throw Error(w(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,St(e,ce,He),he(e,K()),null}function Ws(e,t){var n=R;R|=1;try{return e(t)}finally{R=n,R===0&&(sn=K()+500,ml&>())}}function $t(e){lt!==null&<.tag===0&&!(R&6)&&bt();var t=R;R|=1;var n=je.transition,r=F;try{if(je.transition=null,F=1,e)return e()}finally{F=r,je.transition=n,R=t,!(R&6)&>()}}function Qs(){ve=Gt.current,A(Gt)}function jt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hf(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(js(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Kr();break;case 3:ln(),A(fe),A(oe),Rs();break;case 5:zs(r);break;case 4:ln();break;case 13:A(B);break;case 19:A(B);break;case 10:Ls(r.type._context);break;case 22:case 23:Qs()}n=n.return}if(J=e,G=e=ft(e.current,null),ee=ve=t,Y=0,Xn=null,Hs=wl=_t=0,ce=$n=null,Et!==null){for(t=0;t<Et.length;t++)if(n=Et[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Et=null}return e}function jc(e,t){do{var n=G;try{if(Ns(),_r.current=tl,el){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}el=!1}if(Lt=0,q=Z=H=null,Ln=!1,Gn=0,Bs.current=null,n===null||n.return===null){Y=1,Xn=t,G=null;break}e:{var o=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,v=i,m=v.tag;if(!(v.mode&1)&&(m===0||m===11||m===15)){var h=v.alternate;h?(v.updateQueue=h.updateQueue,v.memoizedState=h.memoizedState,v.lanes=h.lanes):(v.updateQueue=null,v.memoizedState=null)}var g=Zi(s);if(g!==null){g.flags&=-257,Yi(g,s,i,o,t),g.mode&1&&Gi(o,d,t),t=g,a=d;var k=t.updateQueue;if(k===null){var x=new Set;x.add(a),t.updateQueue=x}else k.add(a);break e}else{if(!(t&1)){Gi(o,d,t),Ks();break e}a=Error(w(426))}}else if(U&&i.mode&1){var N=Zi(s);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Yi(N,s,i,o,t),Ts(on(a,i));break e}}o=a=on(a,i),Y!==4&&(Y=2),$n===null?$n=[o]:$n.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=ac(o,a,t);Bi(o,f);break e;case 1:i=a;var c=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ct===null||!ct.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=uc(o,i,t);Bi(o,y);break e}}o=o.return}while(o!==null)}Nc(n)}catch(E){t=E,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function Tc(){var e=nl.current;return nl.current=tl,e===null?tl:e}function Ks(){(Y===0||Y===3||Y===2)&&(Y=4),J===null||!(_t&268435455)&&!(wl&268435455)||nt(J,ee)}function ol(e,t){var n=R;R|=2;var r=Tc();(J!==e||ee!==t)&&(He=null,jt(e,t));do try{pp();break}catch(l){jc(e,l)}while(!0);if(Ns(),R=n,nl.current=r,G!==null)throw Error(w(261));return J=null,ee=0,Y}function pp(){for(;G!==null;)Pc(G)}function hp(){for(;G!==null&&!Dd();)Pc(G)}function Pc(e){var t=_c(e.alternate,e,ve);e.memoizedProps=e.pendingProps,t===null?Nc(e):G=t,Bs.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ip(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,G=null;return}}else if(n=sp(n,t,ve),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);Y===0&&(Y=5)}function St(e,t,n){var r=F,l=je.transition;try{je.transition=null,F=1,mp(e,t,n,r)}finally{je.transition=l,F=r}return null}function mp(e,t,n,r){do bt();while(lt!==null);if(R&6)throw Error(w(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(w(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Zd(e,o),e===J&&(G=J=null,ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xr||(xr=!0,$c(Ur,function(){return bt(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=je.transition,je.transition=null;var s=F;F=1;var i=R;R|=4,Bs.current=null,up(e,n),xc(n,e),Ff($o),Hr=!!_o,$o=_o=null,e.current=n,cp(n),Ad(),R=i,F=s,je.transition=o}else e.current=n;if(xr&&(xr=!1,lt=e,ll=l),o=e.pendingLanes,o===0&&(ct=null),Hd(n.stateNode),he(e,K()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(rl)throw rl=!1,e=qo,qo=null,e;return ll&1&&e.tag!==0&&bt(),o=e.pendingLanes,o&1?e===Jo?Mn++:(Mn=0,Jo=e):Mn=0,gt(),null}function bt(){if(lt!==null){var e=au(ll),t=je.transition,n=F;try{if(je.transition=null,F=16>e?16:e,lt===null)var r=!1;else{if(e=lt,lt=null,ll=0,R&6)throw Error(w(331));var l=R;for(R|=4,C=e.current;C!==null;){var o=C,s=o.child;if(C.flags&16){var i=o.deletions;if(i!==null){for(var a=0;a<i.length;a++){var d=i[a];for(C=d;C!==null;){var v=C;switch(v.tag){case 0:case 11:case 15:_n(8,v,o)}var m=v.child;if(m!==null)m.return=v,C=m;else for(;C!==null;){v=C;var h=v.sibling,g=v.return;if(wc(v),v===d){C=null;break}if(h!==null){h.return=g,C=h;break}C=g}}}var k=o.alternate;if(k!==null){var x=k.child;if(x!==null){k.child=null;do{var N=x.sibling;x.sibling=null,x=N}while(x!==null)}}C=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,C=s;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_n(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,C=f;break e}C=o.return}}var c=e.current;for(C=c;C!==null;){s=C;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,C=p;else e:for(s=c;C!==null;){if(i=C,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:yl(9,i)}}catch(E){W(i,i.return,E)}if(i===s){C=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,C=y;break e}C=i.return}}if(R=l,gt(),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(cl,e)}catch{}r=!0}return r}finally{F=n,je.transition=t}}return!1}function aa(e,t,n){t=on(n,t),t=ac(e,t,1),e=ut(e,t,1),t=ie(),e!==null&&(er(e,1,t),he(e,t))}function W(e,t,n){if(e.tag===3)aa(e,e,n);else for(;t!==null;){if(t.tag===3){aa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ct===null||!ct.has(r))){e=on(n,e),e=uc(t,e,1),t=ut(t,e,1),e=ie(),t!==null&&(er(t,1,e),he(t,e));break}}t=t.return}}function vp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ie(),e.pingedLanes|=e.suspendedLanes&n,J===e&&(ee&n)===n&&(Y===4||Y===3&&(ee&130023424)===ee&&500>K()-Vs?jt(e,0):Hs|=n),he(e,t)}function Lc(e,t){t===0&&(e.mode&1?(t=fr,fr<<=1,!(fr&130023424)&&(fr=4194304)):t=1);var n=ie();e=Ye(e,t),e!==null&&(er(e,t,n),he(e,n))}function gp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lc(e,n)}function yp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(w(314))}r!==null&&r.delete(t),Lc(e,n)}var _c;_c=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,op(e,t,n);de=!!(e.flags&131072)}else de=!1,U&&t.flags&1048576&&Ru(t,Yr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Mr(e,t),e=t.pendingProps;var l=tn(t,oe.current);Jt(t,n),l=Is(null,t,r,e,l,n);var o=Os();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Gr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,$s(t),l.updater=gl,t.stateNode=l,l._reactInternals=t,Uo(t,r,e,n),t=Vo(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Cs(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Mr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=kp(r),e=Le(r,e),l){case 0:t=Ho(null,t,r,e,n);break e;case 1:t=Ji(null,t,r,e,n);break e;case 11:t=Xi(null,t,r,e,n);break e;case 14:t=qi(null,t,r,Le(r.type,e),n);break e}throw Error(w(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ho(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ji(e,t,r,l,n);case 3:e:{if(pc(t),e===null)throw Error(w(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Uu(e,t),Jr(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=on(Error(w(423)),t),t=bi(e,t,r,n,l);break e}else if(r!==l){l=on(Error(w(424)),t),t=bi(e,t,r,n,l);break e}else for(ge=at(t.stateNode.containerInfo.firstChild),ye=t,U=!0,$e=null,n=Du(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nn(),r===l){t=Xe(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return Bu(t),e===null&&Oo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Mo(r,l)?s=null:o!==null&&Mo(r,o)&&(t.flags|=32),fc(e,t),se(e,t,s,n),t.child;case 6:return e===null&&Oo(t),null;case 13:return hc(e,t,n);case 4:return Ms(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Xi(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,I(Xr,r._currentValue),r._currentValue=s,o!==null)if(Re(o.value,s)){if(o.children===l.children&&!fe.current){t=Xe(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ke(-1,n&-n),a.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?a.next=a:(a.next=v.next,v.next=a),d.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Do(o.return,n,t),i.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(w(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),Do(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Jt(t,n),l=Te(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),qi(e,t,r,l,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Mr(e,t),t.tag=1,pe(r)?(e=!0,Gr(t)):e=!1,Jt(t,n),ic(t,r,l),Uo(t,r,l,n),Vo(null,t,r,!0,e,n);case 19:return mc(e,t,n);case 22:return dc(e,t,n)}throw Error(w(156,t.tag))};function $c(e,t){return lu(e,t)}function wp(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 wp(e,t,n,r)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kp(e){if(typeof e=="function")return Gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fs)return 11;if(e===ps)return 14}return 2}function ft(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 Fr(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")Gs(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ot:return Tt(n.children,l,o,t);case ds:s=8,l|=8;break;case uo:return e=Ce(12,n,t,l|2),e.elementType=uo,e.lanes=o,e;case co:return e=Ce(13,n,t,l),e.elementType=co,e.lanes=o,e;case fo:return e=Ce(19,n,t,l),e.elementType=fo,e.lanes=o,e;case Ba:return kl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:s=10;break e;case Ua:s=9;break e;case fs:s=11;break e;case ps:s=14;break e;case be:s=16,r=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=Ce(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Tt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Ba,e.lanes=n,e.stateNode={isHidden:!1},e}function to(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function no(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 Sp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Il(0),this.expirationTimes=Il(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Il(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Zs(e,t,n,r,l,o,s,i,a){return e=new Sp(e,t,n,i,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$s(o),e}function xp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:It,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mc(e){if(!e)return ht;e=e._reactInternals;e:{if(zt(e)!==e||e.tag!==1)throw Error(w(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(w(171))}if(e.tag===1){var n=e.type;if(pe(n))return Mu(e,n,t)}return t}function zc(e,t,n,r,l,o,s,i,a){return e=Zs(n,r,!0,e,l,o,s,i,a),e.context=Mc(null),n=e.current,r=ie(),l=dt(n),o=Ke(r,l),o.callback=t??null,ut(n,o,l),e.current.lanes=l,er(e,l,r),he(e,r),e}function Sl(e,t,n,r){var l=t.current,o=ie(),s=dt(l);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ke(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ut(l,t,s),e!==null&&(ze(e,l,s,o),Lr(e,l,s)),s}function sl(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 ua(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ys(e,t){ua(e,t),(e=e.alternate)&&ua(e,t)}function Ep(){return null}var Rc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xs(e){this._internalRoot=e}xl.prototype.render=Xs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));Sl(e,t,null,null)};xl.prototype.unmount=Xs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$t(function(){Sl(null,e,null,null)}),t[Ze]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=du();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tt.length&&t!==0&&t<tt[n].priority;n++);tt.splice(n,0,e),n===0&&pu(e)}};function qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ca(){}function Cp(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=sl(s);o.call(d)}}var s=zc(t,r,e,0,null,!1,!1,"",ca);return e._reactRootContainer=s,e[Ze]=s.current,Hn(e.nodeType===8?e.parentNode:e),$t(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var i=r;r=function(){var d=sl(a);i.call(d)}}var a=Zs(e,0,!1,null,null,!1,!1,"",ca);return e._reactRootContainer=a,e[Ze]=a.current,Hn(e.nodeType===8?e.parentNode:e),$t(function(){Sl(t,a,n,r)}),a}function Cl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var i=l;l=function(){var a=sl(s);i.call(a)}}Sl(t,s,e,l)}else s=Cp(n,t,e,l,r);return sl(s)}uu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xn(t.pendingLanes);n!==0&&(vs(t,n|1),he(t,K()),!(R&6)&&(sn=K()+500,gt()))}break;case 13:$t(function(){var r=Ye(e,1);if(r!==null){var l=ie();ze(r,e,1,l)}}),Ys(e,1)}};gs=function(e){if(e.tag===13){var t=Ye(e,134217728);if(t!==null){var n=ie();ze(t,e,134217728,n)}Ys(e,134217728)}};cu=function(e){if(e.tag===13){var t=dt(e),n=Ye(e,t);if(n!==null){var r=ie();ze(n,e,t,r)}Ys(e,t)}};du=function(){return F};fu=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};xo=function(e,t,n){switch(t){case"input":if(mo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=hl(r);if(!l)throw Error(w(90));Va(r),mo(r,l)}}}break;case"textarea":Qa(e,n);break;case"select":t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}};Ja=Ws;ba=$t;var jp={usingClientEntryPoint:!1,Events:[nr,Bt,hl,Xa,qa,Ws]},wn={findFiberByHostInstance:xt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tp={bundleType:wn.bundleType,version:wn.version,rendererPackageName:wn.rendererPackageName,rendererConfig:wn.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=nu(e),e===null?null:e.stateNode},findFiberByHostInstance:wn.findFiberByHostInstance||Ep,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{cl=Er.inject(Tp),Ae=Er}catch{}}ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jp;ke.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qs(t))throw Error(w(200));return xp(e,t,null,n)};ke.createRoot=function(e,t){if(!qs(e))throw Error(w(299));var n=!1,r="",l=Rc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Zs(e,1,!1,null,null,n,!1,r,l),e[Ze]=t.current,Hn(e.nodeType===8?e.parentNode:e),new Xs(t)};ke.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(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=nu(t),e=e===null?null:e.stateNode,e};ke.flushSync=function(e){return $t(e)};ke.hydrate=function(e,t,n){if(!El(t))throw Error(w(200));return Cl(null,e,t,!0,n)};ke.hydrateRoot=function(e,t,n){if(!qs(e))throw Error(w(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=Rc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=zc(t,null,e,1,n??null,l,!1,o,s),e[Ze]=t.current,Hn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new xl(t)};ke.render=function(e,t,n){if(!El(t))throw Error(w(200));return Cl(null,e,t,!1,n)};ke.unmountComponentAtNode=function(e){if(!El(e))throw Error(w(40));return e._reactRootContainer?($t(function(){Cl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ze]=null})}),!0):!1};ke.unstable_batchedUpdates=Ws;ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!El(n))throw Error(w(200));if(e==null||e._reactInternals===void 0)throw Error(w(38));return Cl(e,t,n,!1,r)};ke.version="18.3.1-next-f1338f8080-20240426";function Fc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fc)}catch(e){console.error(e)}}Fc(),Fa.exports=ke;var Ic=Fa.exports,da=Ic;io.createRoot=da.createRoot,io.hydrateRoot=da.hydrateRoot;const Pp="modulepreload",Np=function(e){return"/"+e},fa={},jl=function(t,n,r){let l=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"));l=Promise.allSettled(n.map(a=>{if(a=Np(a),a in fa)return;fa[a]=!0;const d=a.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${v}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":Pp,d||(m.as="script"),m.crossOrigin="",m.href=a,i&&m.setAttribute("nonce",i),document.head.appendChild(m),d)return new Promise((h,g)=>{m.addEventListener("load",h),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return l.then(s=>{for(const i of s||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},Js={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",showHistory:({n:e})=>`show ${e} dormant session${e===1?"":"s"} (history is kept, never deleted)`,hideHistory:({n:e})=>`fold the ${e} dormant session${e===1?"":"s"} away`},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",projectOnline:"online",projectOffline:"offline",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",unmeasured:"Unmeasured",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",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…",archive:"archive",resume:"resume & relaunch",quarantine:"quarantine record",quarantineTitle:"quarantine unreadable record",quarantineConfirm:"quarantine",quarantineAdapter:"adapter",quarantineThread:"native thread",quarantineTmux:"tmux session",quarantineWorktree:"worktree path",quarantineBranch:"branch",quarantineRestore:"restore quarantined record",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",issuesNewTitle:"New issue",issuesTitleLabel:"title",issuesBodyLabel:"description",issuesWrite:"Write",issuesPreview:"Preview",issuesPreviewEmpty:"nothing to preview yet",issuesNodesHint:"write [[id]] to link a node",issuesCancel:"Cancel",issuesSend:"Send",issuesPost:"Create",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",tabConversation:"conversation",tabEval:"eval",tabEvalTitle:"open this session's evaluation on the Evals page",toolbarLabel:"session terminal toolbar",conversationToolbarLabel:"session conversation toolbar",surfaceLabel:"current session surface",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:l})=>`open this session's Evals page — ${e} fresh pass, ${t} fresh fail, ${n} need review, ${r} unmeasured, ${l} unknown`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"open Command Box for an atomic prompt or graph command (Alt+I)",commandClose:"close Command Box",commandPlaceholder:"Send an atomic prompt or run a graph 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.",shelfShow:"Archived",shelfHide:"Back to sessions",shelfEmpty:"nothing archived",shelfMsg:"★ archived",shelfSubLive:"cold storage is offline. resume it when you need the same conversation.",shelfSubOffline:"offline cold storage. resume relaunches the same conversation.",shelfRestore:"restore",outcomeWorking:"working...",outcomeSending:"sending...",outcomeDelivered:"delivered",deliveryFailed:({status:e})=>`not delivered (HTTP ${e})`,msgError:"⚠ not delivered — retry",attachTitle:"attach a file (or paste / drop) — uploaded to the session machine, its /tmp path inserted",attachError:"⚠ upload failed",attachQueued:"queued",attachDone:"attached",attachCancelled:"cancelled",attachRetry:"retry upload",attachCancel:"cancel upload",attachDismiss:"dismiss attachment status",cmd:{evalDesc:"open this session's Evals page — eval evidence, diff, merge gates",mergeTitle:"merge this review proposal to main",mergeDesc:"merge this review proposal to main",mergeUnavailableArchived:"merge unavailable — this session is archived",mergeUnavailableNoProposal:"merge unavailable — this session has not proposed a merge; only done --propose merge makes it available",mergeUnavailableNothing:"merge unavailable — done --propose nothing is done without proposing a merge",mergeUnavailableClose:"merge unavailable — done --propose close is awaiting close, not merge",mergeUnavailableLifecycle:"merge unavailable — the merge proposal is no longer awaiting review",mergeUnavailableLiveness:"merge unavailable — the session is not online",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",archiveTitle:"archive this session",archiveDesc:"archive — exact-stop its runtime, keep the worktree and conversation for resume",unarchiveTitle:"resume and relaunch this session",unarchiveDesc:"deprecated — use resume to relaunch the same conversation",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",copy:"copy",copied:"copied",copyFailed:"copy failed — selection kept",sendFailed:"not delivered — the agent may be offline",offlineHint:"agent offline — messages cannot be delivered until it is relaunched"}},Lp={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:"离线",showHistory:({n:e})=>`展开 ${e} 个休眠会话(历史仅收纳,绝不删除)`,hideHistory:({n:e})=>`收起这 ${e} 个休眠会话`},nav:{railLabel:"主导航",graph:"规格节点图(⌥1)",sessions:"会话面板(⌥2)",evals:"Evals(⌥3 / ⌥F)",issues:"议题(⌥4)",settings:"设置(⌥5)",projectChip:"项目:{name} — 切换项目",projectOnline:"在线",projectOffline:"离线",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:"未通过",unmeasured:"未测量",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:"多选…",archive:"归档",resume:"恢复并重新启动",quarantine:"隔离记录",quarantineTitle:"隔离不可读记录",quarantineConfirm:"隔离",quarantineAdapter:"适配器",quarantineThread:"原生线程",quarantineTmux:"tmux 会话",quarantineWorktree:"工作树路径",quarantineBranch:"分支",quarantineRestore:"恢复已隔离记录",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:"新建",issuesNewTitle:"新建 issue",issuesTitleLabel:"标题",issuesBodyLabel:"正文",issuesWrite:"编辑",issuesPreview:"预览",issuesPreviewEmpty:"还没有可预览的内容",issuesNodesHint:"在正文里写 [[id]] 即可关联",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:"终端",tabConversation:"对话",tabEval:"评测",tabEvalTitle:"打开此会话在 Evals 页的评测",toolbarLabel:"会话终端工具栏",conversationToolbarLabel:"会话对话工具栏",surfaceLabel:"当前会话界面",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:l})=>`打开此会话的 Evals 页 — 新鲜通过 ${e},新鲜失败 ${t},待人工复核 ${n},未评测 ${r},覆盖未知 ${l}`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"打开 Command Box,发送完整指令或执行面板命令(Alt+I)",commandClose:"关闭 Command Box",commandPlaceholder:"发送完整指令或执行面板命令",commandSend:"从 Command Box 发送",relaunch:"重新启动",relaunchTitle:"重新启动并恢复此会话",merge:"合并",relaunchResume:"⏵ 重新启动并恢复",merges:({n:e})=>`已合并 ×${e}`,mergesTitle:"合并到 main 的次数",offlineMsg:"⏻ 离线——此工作树没有活动进程。",offlineSubBefore:"工作树及其会话 ",offlineSubAfter:" 仍然完好。重新启动以恢复同一对话。",shelfShow:"已归档",shelfHide:"返回会话列表",shelfEmpty:"没有已归档的会话",shelfMsg:"★ 已归档",shelfSubLive:"冷存档已离线。需要时恢复同一对话。",shelfSubOffline:"离线冷存档。恢复会重新启动同一对话。",shelfRestore:"取回",outcomeWorking:"正在处理...",outcomeSending:"正在发送...",outcomeDelivered:"已送达",deliveryFailed:({status:e})=>`未送达(HTTP ${e})`,msgError:"⚠ 未送达 — 重试",attachTitle:"附加文件(或粘贴 / 拖入)—— 上传到会话所在机器,并插入其 /tmp 路径",attachError:"⚠ 上传失败",attachQueued:"等待上传",attachDone:"已附加",attachCancelled:"已取消",attachRetry:"重试上传",attachCancel:"取消上传",attachDismiss:"隐藏此附件状态",cmd:{evalDesc:"切换到此会话的评测页 —— 评测证据、改动、合并门禁",mergeTitle:"将此待审查提案合并到 main",mergeDesc:"将此待审查提案合并到 main",mergeUnavailableArchived:"不能合并:该会话已归档",mergeUnavailableNoProposal:"不能合并:此会话尚未提出合并;只有 done --propose merge 才会提出可点击的合并",mergeUnavailableNothing:"不能合并:done --propose nothing 表示已完成但未提出合并",mergeUnavailableClose:"不能合并:done --propose close 表示等待关闭,不是合并",mergeUnavailableLifecycle:"不能合并:该合并提案已不处于待审查状态",mergeUnavailableLiveness:"不能合并:该会话未在线",stopTitle:"停止此会话(结束智能体,保留工作树 —— 可恢复)",stopDesc:"停止 —— 结束智能体与 tmux,但保留工作树,之后可恢复",archiveTitle:"归档此会话",archiveDesc:"归档 —— 精确停止运行时,保留工作树与对话以便恢复",unarchiveTitle:"恢复并重新启动此会话",unarchiveDesc:"已弃用 —— 使用恢复以重新启动同一对话",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:"发送",copy:"复制",copied:"已复制",copyFailed:"复制失败 —— 选区已保留",sendFailed:"未送达 —— agent 可能已离线",offlineHint:"agent 已离线 —— 需要重新拉起后消息才能送达"}},ts={en:Js,zh:Lp},Oc="spexcode.lang",Sh=[{code:"en",label:"English"},{code:"zh",label:"中文"}];function _p(){return(typeof navigator<"u"&&navigator.language||"en").toLowerCase().startsWith("zh")?"zh":"en"}function $p(){try{const e=localStorage.getItem(Oc);if(e&&ts[e])return e}catch{}return _p()}function pa(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Mp(e,t){return t?e.replace(/\{(\w+)\}/g,(n,r)=>t[r]!=null?t[r]:`{${r}}`):e}function zp(e,t,n){let r=pa(e,t);return r===void 0&&(r=pa(Js,t)),typeof r=="function"?r(n||{}):typeof r=="string"?Mp(r,n):t}const Dc=_.createContext(null);function Rp({children:e}){const[t,n]=_.useState($p);_.useEffect(()=>{try{document.documentElement.lang=t}catch{}},[t]);const r=_.useCallback(o=>{if(ts[o]){try{localStorage.setItem(Oc,o)}catch{}n(o)}},[]),l=_.useMemo(()=>{const o=ts[t]||Js;return{lang:t,setLang:r,t:(s,i)=>zp(o,s,i)}},[t,r]);return u.jsx(Dc.Provider,{value:l,children:e})}function Fp(){const e=_.useContext(Dc);if(!e)throw new Error("useI18n must be used within <I18nProvider>");return e}function Tl(){return Fp().t}let ns=null;const Ac=e=>!!(e&&e.closest&&e.closest("[data-focus-overlay]")),Ip=e=>e!=null&&e.getClientRects().length?typeof e.checkVisibility=="function"?e.checkVisibility({visibilityProperty:!0}):getComputedStyle(e).visibility!=="hidden"&&getComputedStyle(e).display!=="none":!1,ro=e=>!!(e&&e.isConnected&&!e.disabled&&Ip(e));typeof window<"u"&&window.addEventListener("focusin",e=>{const t=e.target;t&&t!==document.body&&!Ac(t)&&(ns=t)},!0);function xh(){requestAnimationFrame(()=>{if(Ac(document.activeElement))return;if(ro(ns)){ns.focus();return}const e=[...document.querySelectorAll("[data-focus-sink]")].find(ro);ro(e)&&e.focus()})}const Op='input, textarea, select, [contenteditable=""], [contenteditable="true"], .xterm',Dp=(e,t)=>{if(!(e instanceof HTMLElement))return!1;const n=e.getBoundingClientRect();return t.clientX-n.left-e.clientLeft>=e.clientWidth||t.clientY-n.top-e.clientTop>=e.clientHeight};function Ap(e){const t=e.target;t instanceof Element&&(t.closest(Op)||Dp(t,e)||e.preventDefault())}const Up={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"})]})},star:{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z"})},"star-filled":{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z",fill:"currentColor"})},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"})]})},archive:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M21 8v13H3V8"}),u.jsx("path",{d:"M1 3h22v5H1z"}),u.jsx("path",{d:"M10 12h4"})]})},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 qn({name:e,size:t=16,strokeWidth:n,className:r,style:l}){const o=Up[e];if(!o)throw new Error(`unknown icon: ${e}`);const s=o.vb||24;return u.jsx("svg",{width:t,height:t,viewBox:`0 0 ${s} ${s}`,fill:o.fill??"none",stroke:o.stroke??"currentColor",strokeWidth:n??o.sw??1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:r,style:l,children:o.node})}function Bp({icon:e,label:t,onClick:n,className:r,size:l,iconClassName:o,...s}){return u.jsx("button",{type:"button",className:r,"data-tip":t,"aria-label":t,onClick:n,...s,children:u.jsx(qn,{name:e,size:l,className:o})})}const Eh=()=>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"})}),Ch=()=>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"})]}),jh=()=>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"})]}),Th=()=>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 Uc(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 Bc=Uc(typeof location<"u"?location.pathname:""),rs=Bc.id,Hp=Bc.base,Vp=(e,t)=>e.startsWith("/api")?t+e:e,Ph=e=>Vp(e,Hp),Wp=(e,t="#/graph")=>`/p/${encodeURIComponent(e)}/${t}`,Hc=()=>"/projects";function Qp(e,t){return Uc(e).id&&(t||"").replace(/^#\/?/,"").split("?")[0].replace(/\/+$/,"")==="projects"?Hc():null}const Kp="is:issue state:open",bs="is:eval",Gp=e=>ti(bs,"scope",e),Nh=e=>ti(bs,"node",e),Vc=/^([A-Za-z][A-Za-z0-9-]*):(.*)$/s,ha=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e,Wc=e=>/\s/.test(String(e))?`"${e}"`:String(e);function Qc(e){const t=String(e??""),n=[];let r=0;for(;r<t.length;){let l=r;if(/\s/.test(t[r])){for(;l<t.length&&/\s/.test(t[l]);)l++;n.push({ws:!0,raw:t.slice(r,l),start:r,end:l})}else{for(;l<t.length&&!/\s/.test(t[l]);)if(t[l]==='"'){for(l++;l<t.length&&t[l]!=='"';)l++;l<t.length&&l++}else l++;const o=t.slice(r,l),s=Vc.exec(o);n.push(s?{ws:!1,raw:o,start:r,end:l,key:s[1].toLowerCase(),value:ha(s[2])}:{ws:!1,raw:o,start:r,end:l,key:null,value:ha(o)})}r=l}return n}const ei=e=>Qc(e).filter(t=>!t.ws),Kc=e=>e.map(t=>t.raw).join(" "),ma=e=>Kc(ei(e)),Gc=(e,t)=>ma(e)===ma(t),Lh=(e,t)=>{const n=ei(e);for(let r=n.length-1;r>=0;r--)if(n[r].key===t)return n[r].value;return""};function ti(e,t,n){const r=n==null||String(n)===""?null:{ws:!1,raw:`${t}:${Wc(n)}`,key:t,value:String(n)},l=[];let o=!1;for(const s of ei(e)){if(s.key===t){r&&!o&&(l.push(r),o=!0);continue}l.push(s)}return r&&!o&&l.push(r),Kc(l)}const Zp=(e,t)=>{const n=String(e??"").trim();return!n||Gc(n,t)?null:{q:n}},_h=(e,t,n=null)=>{const r=Zp(e,t)||{};return n!=null&&(r.page=String(n)),Object.keys(r).length?r:null},Zc={state:e=>["state",e],concluded:e=>e==="1"?["state","closed"]:null,ok:e=>e==="1"?["state","reviewed"]:null,verdict:e=>["verdict",e],freshness:e=>["freshness",e],kind:e=>e==="all"?null:["evidence",e],store:e=>["store",e],author:e=>["author",e],node:e=>["node",e],filer:e=>["filer",e],live:e=>e==="1"?["session","present"]:null,session:e=>["scope",e]},Yc=e=>Object.keys(Zc).some(t=>(e==null?void 0:e[t])!=null&&e[t]!==""),Yp=e=>/[\s:"]/.test(e)?`"${e.replace(/"/g,"")}"`:e;function Xp(e,t){if(!Yc(t))return null;let n=e;for(const[l,o]of Object.entries(Zc)){const s=t[l];if(s==null||s==="")continue;const i=o(String(s));i&&(n=ti(n,i[0],i[1]))}const r=String(t.q??"").trim();return r&&(n=`${n} ${Yp(r)}`.trim()),n}function $h(e,t,n=[],r={}){const l=String(e??""),o=Math.max(0,Math.min(t??l.length,l.length)),s=Qc(l).find(g=>!g.ws&&g.start<o&&o<=g.end);if(!s)return{start:o,end:o,items:[]};const i=l.slice(s.start,o),a=Vc.exec(i);if(!a){const g=i.toLowerCase();if(!g||g.includes('"'))return{start:s.start,end:s.end,items:[]};const k=n.filter(x=>x.startsWith(g)).slice(0,8).map(x=>({type:"key",key:x,insert:`${x}:`}));return{start:s.start,end:s.end,items:k}}const d=a[1].toLowerCase(),v=a[2].replace(/^"/,"").replace(/"$/,"").toLowerCase(),h=(r[d]||[]).filter(g=>String(g.value).toLowerCase().startsWith(v)&&String(g.value).toLowerCase()!==v).slice(0,8).map(g=>({type:"value",key:d,value:String(g.value),label:g.label||null,insert:`${d}:${Wc(g.value)} `}));return{start:s.start,end:s.end,items:h}}const Xc=["graph","sessions","evals","issues","settings"],va=["q","page"];function qp(e){if(!e)return"";const t=new URLSearchParams;for(const r of va)e[r]!=null&&e[r]!==""&&t.set(r,e[r]);for(const r of Object.keys(e).filter(l=>!va.includes(l)).sort())e[r]!=null&&e[r]!==""&&t.set(r,e[r]);const n=t.toString().replace(/\+/g,"%20");return n?`?${n}`:""}function il(e){const t=(e||"").replace(/^#\/?/,""),n=t.indexOf("?"),r=n>=0?t.slice(0,n):t,l=Object.fromEntries(new URLSearchParams(n>=0?t.slice(n+1):"")),o=r.split("/").filter(Boolean),s=Xc.includes(o[0])?o[0]:"graph",i=(s==="sessions"||s==="evals"||s==="issues")&&o.length>1?o.slice(1).map(decodeURIComponent).join("/"):null;return{page:s,param:i,query:l}}function Jp(e){const r=(e||"").replace(/^#\/?/,"").split("?")[0].split("/").filter(Boolean);if(r[0]!=="sessions"||r[2]!=="eval")return null;const l=decodeURIComponent(r[1]||"");if(!l)return null;const o=r[3]?decodeURIComponent(r[3]):null,s=r.length>4?r.slice(4).map(decodeURIComponent).join("/"):null,i=o&&s?`${o}/${s}`:null;return an("evals",i,{q:i?`scope:${l}`:Gp(l)})}function bp(e){const{page:t,param:n,query:r}=il(e);if(t!=="evals"&&t!=="issues"||!Yc(r))return null;if(n!=null)return an(t,n,r.session?{q:`scope:${r.session}`}:null);const l=t==="issues"?Kp:bs,o=Xp(l,r);return an(t,null,Gc(o,l)?null:{q:o})}function eh(e){const{page:t,param:n,query:r}=il(e);if(t!=="evals"&&t!=="issues"||n!=null||r.page==null||/^[1-9]\d*$/.test(r.page)&&Number.isSafeInteger(Number(r.page)))return null;const{page:l,...o}=r;return an(t,null,o)}const an=(e,t,n=null)=>`#/${e}${t?`/${String(t).split("/").map(encodeURIComponent).join("/")}`:""}${qp(n)}`;function qc(e,t=null,{replace:n=!1,query:r=null}={}){const l=an(e,t,r);window.location.hash!==l&&(n?(window.history.replaceState(null,"",l),window.dispatchEvent(new HashChangeEvent("hashchange"))):window.location.hash=l)}const ga=()=>{const e=Jp(window.location.hash)||bp(window.location.hash)||eh(window.location.hash);return e?(window.history.replaceState(null,"",e),il(e)):il(window.location.hash)};function th(){const[e,t]=_.useState(ga);return _.useEffect(()=>{const n=()=>t(ga());return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}const lr="spexcode",Mh="gateway",ni=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"}]}]),nh=new Map(ni.map(e=>[e.id,e])),rh=/^[a-z0-9-]+[:/][a-z0-9-]+$/i,Jc=new Map([["rocket","mdi:rocket-launch"],["mdi/rocket-launch","mdi:rocket-launch"],["layers","gateway"],["default","spexcode"]]);Object.freeze(ni.map(e=>e.id));function lh(e,t=lr){const n=typeof e=="string"?e.trim():"";return Jc.get(n)||n||t}function Jn(e){const t=typeof e=="string"?e.trim():"";return nh.get(Jc.get(t)||t)||null}function al(e){return rh.test(typeof e=="string"?e.trim():"")}function oh(e){return Object.entries(e).filter(([t])=>t!=="tag").map(([t,n])=>`${t==="className"?"class":t}="${String(n).replaceAll("&","&").replaceAll('"',""")}"`).join(" ")}function sh(e,t=lr){const n=Jn(e)||Jn(t),r=n.shapes.map(l=>`<${l.tag} ${oh(l)}/>`).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 Ir(e,t=lr){const n=lh(e,t);if(Jn(n))return`data:image/svg+xml,${encodeURIComponent(sh(n,t))}`;if(/^https?:\/\//.test(n))return n;if(al(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 zh=Ir,lo=[{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"}],ih=e=>e.split("-").filter(Boolean).map(t=>{var n;return((n=t[0])==null?void 0:n.toUpperCase())+t.slice(1)}).join(" ");function ya(e,t={}){var o;const n=e.replace("/",":"),[r,l]=n.split(":");return{id:n,label:ih(l),source:((o=t[r])==null?void 0:o.name)||r}}function zn({icon:e,fallback:t=lr,size:n=24,className:r,label:l}){const o=Jn(e);return!o&&al(e)?u.jsx("span",{className:r?`identity-iconify ${r}`:"identity-iconify",style:{width:n,height:n,maskImage:`url("${Ir(e,t)}")`,WebkitMaskImage:`url("${Ir(e,t)}")`},role:l?"img":void 0,"aria-label":l||void 0,"aria-hidden":l?void 0:!0}):o?u.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",className:r,role:l?"img":void 0,"aria-label":l||void 0,"aria-hidden":l?void 0:!0,children:[u.jsx("rect",{x:"1",y:"1",width:"22",height:"22",rx:"5",fill:o.bg}),u.jsx("g",{fill:"none",stroke:o.fg,strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:o.shapes.map(({tag:s,...i},a)=>u.jsx(s,{...i},a))})]}):u.jsx("img",{width:n,height:n,src:Ir(e,t),className:r,alt:l||"","aria-hidden":l?void 0:!0})}function Rh({value:e,onChange:t,label:n,editLabel:r,name:l,fallback:o=lr,disabled:s=!1}){const i=Tl(),[a,d]=_.useState(!1),[v,m]=_.useState(""),[h,g]=_.useState("featured"),[k,x]=_.useState({state:"idle",choices:[]}),N=_.useId(),f=Jn(e),c=lo.find(S=>S.id===h)||lo[0];_.useEffect(()=>{if(!a)return;const S=v.trim(),O=S.length>=2?S:h==="featured"?"":"project";if(!O){x({state:"idle",choices:[]});return}const $=new AbortController;x({state:"loading",choices:[]});const me=setTimeout(async()=>{try{const Fe=new URLSearchParams({query:O,limit:"48"});c.prefixes&&Fe.set("prefixes",c.prefixes);const Be=await fetch(`https://api.iconify.design/search?${Fe}`,{signal:$.signal});if(!Be.ok)throw new Error(`Iconify search answered ${Be.status}`);const Rt=await Be.json();if(!Array.isArray(Rt.icons))throw new Error("Iconify search returned an invalid response");x({state:"ready",choices:Rt.icons.filter(al).map(Pl=>ya(Pl,Rt.collections))})}catch(Fe){Fe.name!=="AbortError"&&x({state:"error",choices:[]})}},220);return()=>{clearTimeout(me),$.abort()}},[a,v,h,c.prefixes]);const p=()=>{d(!1),m(""),g("featured"),x({state:"idle",choices:[]})},y=async S=>{await t(S)!==!1&&p()},E=v.trim().toLowerCase(),P=ni.filter(S=>!E||S.label.toLowerCase().includes(E)||S.id.includes(E)).map(S=>({id:S.id,label:S.label,source:""}));let T=k.state==="ready"?k.choices:h==="featured"?P:[];return al(e)&&!T.some(S=>S.id===e.replace("/",":"))&&(T=[ya(e),...T]),u.jsxs("div",{className:a?"identity-control open":"identity-control",children:[u.jsxs("div",{className:"identity-disclosure",children:[u.jsx(zn,{icon:e,fallback:o,size:26,label:`${n}: ${(f==null?void 0:f.label)||e||o}`}),u.jsx(Bp,{icon:"pencil",label:r,className:"proj-act icon identity-edit",size:13,disabled:s,"aria-expanded":a,"aria-controls":N,onClick:()=>{a?p():d(!0)}})]}),a&&u.jsxs("fieldset",{id:N,className:"identity-picker",disabled:s,children:[u.jsx("legend",{children:n}),u.jsxs("div",{className:"identity-search",children:[u.jsx(qn,{name:"search",size:14}),u.jsx("input",{type:"search",value:v,onChange:S=>m(S.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:lo.map(S=>u.jsx("button",{type:"button",className:h===S.id?"identity-source on":"identity-source","aria-pressed":h===S.id,onClick:()=>g(S.id),children:i(S.label)},S.id))}),u.jsx("div",{className:"identity-options",children:T.map(S=>u.jsxs("label",{className:"identity-choice",children:[u.jsx("input",{type:"radio",name:l,value:S.id,checked:e.replace("/",":")===S.id,onChange:()=>y(S.id)}),u.jsx(zn,{icon:S.id,size:28}),u.jsx("span",{className:"identity-choice-name",children:S.label}),S.source&&u.jsx("span",{className:"identity-choice-source",children:S.source})]},S.id))}),k.state==="loading"&&u.jsx("div",{className:"identity-search-status",role:"status",children:i("projects.iconSearching")}),k.state==="ready"&&!T.length&&u.jsx("div",{className:"identity-search-status",children:i("projects.iconSearchEmpty")}),k.state==="error"&&u.jsx("div",{className:"identity-search-status error",role:"alert",children:i("projects.iconSearchFailed")})]})]})}const ah=Xc.filter(e=>e!=="settings");function wa({page:e,active:t,label:n}){return u.jsx("a",{className:t?"rail-btn on":"rail-btn","data-tip":n,"aria-label":n,"aria-current":t?"page":void 0,href:an(e),children:u.jsx(qn,{name:e,size:18})})}function uh({identity:e,projects:t,gatewayIdentity:n,t:r}){const[l,o]=_.useState(!1),s=_.useRef(null);_.useEffect(()=>{if(!l)return;const a=v=>{var m;(m=s.current)!=null&&m.contains(v.target)||o(!1)},d=v=>{v.key==="Escape"&&(v.stopPropagation(),o(!1))};return document.addEventListener("mousedown",a,!0),window.addEventListener("keydown",d,!0),()=>{document.removeEventListener("mousedown",a,!0),window.removeEventListener("keydown",d,!0)}},[l]);const i=(e==null?void 0:e.title)||rs||"";return u.jsxs("div",{className:"proj-chip-wrap",ref:s,children:[u.jsx("button",{type:"button",className:l?"rail-btn proj-chip on":"rail-btn proj-chip","data-tip":r("nav.projectChip",{name:i}),"aria-label":r("nav.projectChip",{name:i}),"aria-haspopup":t?"menu":void 0,"aria-expanded":t?l:void 0,onClick:()=>{t&&o(a=>!a)},children:u.jsx(zn,{icon:e==null?void 0:e.icon,size:26})}),l&&t&&u.jsxs("div",{className:"proj-menu",role:"menu",children:[t.map(a=>{const d=a.online===!1,v=a.id===rs,m=d?r("nav.projectOffline"):a.online===!0?r("nav.projectOnline"):null,h=`proj-menu-item${v?" current":""}${d?" offline":""}`,g=u.jsxs(u.Fragment,{children:[u.jsx(zn,{icon:a.identity.icon,size:16,className:"proj-menu-mark"}),a.gated&&u.jsx(qn,{name:"lock",size:11}),u.jsx("span",{className:"proj-menu-name",children:a.identity.title}),m&&u.jsx("span",{className:`proj-menu-status ${d?"offline":"online"}`,"aria-hidden":"true",children:m}),v&&u.jsx(qn,{name:"check",size:12})]});return d?u.jsx("div",{role:"menuitem","aria-disabled":"true",className:h,children:g},a.id):u.jsx("a",{role:"menuitem",className:h,href:Wp(a.id),children:g},a.id)}),u.jsxs("a",{role:"menuitem",className:"proj-menu-item all",href:Hc(),children:[u.jsx(zn,{icon:n==null?void 0:n.icon,fallback:"gateway",size:16,className:"proj-menu-mark"}),u.jsx("span",{className:"proj-menu-name",children:r("nav.allProjects")})]})]})]})}function ch({page:e,identity:t,catalog:n}){const r=Tl(),l=(n==null?void 0:n.state)==="ok";return u.jsxs("nav",{className:"side-rail","aria-label":r("nav.railLabel"),onMouseDownCapture:Ap,children:[rs&&u.jsx(uh,{identity:t,projects:l?n.projects:null,gatewayIdentity:l?n.gateway.identity:null,t:r}),ah.map(o=>u.jsx(wa,{page:o,active:e===o,label:r(`nav.${o}`)},o)),u.jsx("div",{className:"rail-spacer"}),u.jsx(wa,{page:"settings",active:e==="settings",label:r("nav.settings")})]})}const dh=400,fh=80,oo=7,so=6;function ph(){const[e,t]=_.useState(null),n=_.useRef(null),r=_.useRef(0),l=_.useRef(null),o=_.useRef(null),s=_.useRef(!1);return _.useEffect(()=>{const i=()=>{r.current&&(clearTimeout(r.current),r.current=0)},a=()=>{i(),l.current=null,o.current&&(o.current.getAttribute("aria-describedby")==="ui-tip"&&o.current.removeAttribute("aria-describedby"),o.current=null),t(N=>(N&&(s.current=!0,setTimeout(()=>{l.current||(s.current=!1)},300)),null))},d=N=>{const f=N.getAttribute("data-tip");!f||!N.isConnected||(l.current=N,N.getAttribute("aria-describedby")||(N.setAttribute("aria-describedby","ui-tip"),o.current=N),t({text:f,anchor:N}))},v=(N,f)=>{l.current!==N&&(i(),l.current=N,r.current=setTimeout(()=>{r.current=0,d(N)},f))},m=N=>{var c,p;const f=(p=(c=N.target).closest)==null?void 0:p.call(c,"[data-tip]");f&&v(f,s.current?fh:dh)},h=N=>{var c,p;const f=(p=(c=N.target).closest)==null?void 0:p.call(c,"[data-tip]");!f||f!==l.current||f.contains(N.relatedTarget)||a()},g=N=>{var p,y;const f=(y=(p=N.target).closest)==null?void 0:y.call(p,"[data-tip]");if(!f)return;let c=!0;try{c=f.matches(":focus-visible")}catch{}c&&(i(),d(f))},k=N=>{var c,p;const f=(p=(c=N.target).closest)==null?void 0:p.call(c,"[data-tip]");f&&f===l.current&&a()},x=N=>{N.key==="Escape"&&a()};return document.addEventListener("pointerover",m,!0),document.addEventListener("pointerout",h,!0),document.addEventListener("focusin",g,!0),document.addEventListener("focusout",k,!0),document.addEventListener("keydown",x,!0),document.addEventListener("pointerdown",a,!0),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{i(),document.removeEventListener("pointerover",m,!0),document.removeEventListener("pointerout",h,!0),document.removeEventListener("focusin",g,!0),document.removeEventListener("focusout",k,!0),document.removeEventListener("keydown",x,!0),document.removeEventListener("pointerdown",a,!0),window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[]),_.useEffect(()=>{const i=n.current;if(!e||!i)return;if(!e.anchor.isConnected){t(null);return}const a=e.anchor.getBoundingClientRect(),d=i.getBoundingClientRect(),v=a.top-d.height-oo>=so?"top":"bottom",m=v==="top"?a.top-d.height-oo:a.bottom+oo,h=Math.min(Math.max(a.left+a.width/2-d.width/2,so),window.innerWidth-d.width-so);i.dataset.place=v,i.style.top=`${Math.round(m)}px`,i.style.left=`${Math.round(h)}px`;const g=i.querySelector(".ui-tip-arrow");g&&(g.style.left=`${Math.round(Math.min(Math.max(a.left+a.width/2-h,10),d.width-10))-4}px`);const k=requestAnimationFrame(()=>i.classList.add("show"));return()=>cancelAnimationFrame(k)},[e]),e?Ic.createPortal(u.jsxs("div",{id:"ui-tip",role:"tooltip",ref:n,className:"ui-tip",children:[e.text,u.jsx("span",{className:"ui-tip-arrow","aria-hidden":"true"})]}),document.body):null}const ka="(max-width: 640px)";function hh(){const[e,t]=_.useState(()=>typeof window<"u"&&window.matchMedia(ka).matches);return _.useEffect(()=>{const n=window.matchMedia(ka),r=()=>t(n.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const mh=_.lazy(()=>jl(()=>import("./App-b8Nh0sgk.js").then(e=>e.A),__vite__mapDeps([0,1]))),vh=_.lazy(()=>jl(()=>import("./EvalsPage-Bz-nMKoS.js"),__vite__mapDeps([2,3,4,1]))),gh=_.lazy(()=>jl(()=>import("./IssuesPage-CAP64YWE.js"),__vite__mapDeps([5,1,3,4]))),yh=_.lazy(()=>jl(()=>import("./MobileApp-D9L1Va8Z.js"),__vite__mapDeps([6,7,3,4,1,8,9])));function Sa(e){try{sessionStorage.setItem("spex.focus",e)}catch{}qc("graph")}const xa=e=>qc("sessions",e);function wh({page:e}){const t=hh(),n=Tl(),r=u.jsx("div",{className:"loading",children:n("hud.loading")});return t?u.jsx(_.Suspense,{fallback:r,children:u.jsx(yh,{specs:[],sessions:[]})}):u.jsxs("div",{className:"app",children:[u.jsx(ph,{}),u.jsx(ch,{page:e,identity:null,catalog:null}),u.jsx("div",{className:"app-main",children:u.jsx("div",{className:`page-pane page-${e}`,children:u.jsx(_.Suspense,{fallback:r,children:e==="evals"?u.jsx(vh,{onOpenSession:xa,onFocusNode:Sa}):u.jsx(gh,{onOpenSession:xa,onFocusNode:Sa})})})})]})}function kh(){const e=Tl(),{page:t,param:n}=th(),r=t==="evals"||t==="issues"&&!n,[l,o]=_.useState(()=>!r);_.useEffect(()=>{r||o(!0)},[r]);const s=r&&!l;return u.jsx(_.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:s?u.jsx(wh,{page:t}):u.jsx(mh,{})})}const Ea=Qp(location.pathname,location.hash);Ea?location.replace(Ea):io.createRoot(document.getElementById("root")).render(u.jsx(md.StrictMode,{children:u.jsx(Rp,{children:u.jsx(kh,{})})}));export{Rh as A,Fp as B,Eh as C,Mh as D,bs as E,Ch as F,Th as G,qn as I,Sh as L,jh as O,rs as P,md as R,ch as S,ph as T,jl as _,hh as a,lr as b,Lh as c,Ph as d,Bp as e,th as f,an as g,_h as h,zh as i,u as j,Kp as k,bc as l,Ap as m,qc as n,xh as o,$h as p,Zp as q,_ as r,ti as s,Qc as t,Tl as u,Gp as v,Nh as w,il as x,zn as y,Wp as z};
|
|
41
|
+
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function bl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var np=typeof WeakMap=="function"?WeakMap:Map;function ac(e,t,n){n=Ke(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,qo=r),Bo(e,t)},n}function uc(e,t,n){n=Ke(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){Bo(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Bo(e,t),typeof r!="function"&&(ct===null?ct=new Set([this]):ct.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Gi(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new np;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=vp.bind(null,e,t,n),t.then(e,e))}function Zi(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 Yi(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,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,ut(n,t,1))),n.lanes|=1),e)}var rp=qe.ReactCurrentOwner,de=!1;function se(e,t,n,r){t.child=e===null?Du(t,null,n,r):rn(t,e.child,n,r)}function Xi(e,t,n,r,l){n=n.render;var o=t.ref;return Jt(t,l),r=Is(e,t,n,r,o,l),n=Os(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(U&&n&&Cs(t),t.flags|=1,se(e,t,r,l),t.child)}function qi(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!Gs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cc(e,t,o,r,l)):(e=Fr(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Bn,n(s,r)&&e.ref===t.ref)return Xe(e,t,l)}return t.flags|=1,e=ft(o,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(Bn(o,r)&&e.ref===t.ref)if(de=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(de=!0);else return t.lanes=e.lanes,Xe(e,t,l)}return Ho(e,t,n,r,l)}function dc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},I(Gt,ve),ve|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,I(Gt,ve),ve|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,I(Gt,ve),ve|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,I(Gt,ve),ve|=r;return se(e,t,l,n),t.child}function fc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ho(e,t,n,r,l){var o=pe(n)?Pt:oe.current;return o=tn(t,o),Jt(t,l),n=Is(e,t,n,r,o,l),r=Os(),e!==null&&!de?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Xe(e,t,l)):(U&&r&&Cs(t),t.flags|=1,se(e,t,n,l),t.child)}function Ji(e,t,n,r,l){if(pe(n)){var o=!0;Gr(t)}else o=!1;if(Jt(t,l),t.stateNode===null)Mr(e,t),ic(t,n,r),Uo(t,n,r,l),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=Te(d):(d=pe(n)?Pt:oe.current,d=tn(t,d));var v=n.getDerivedStateFromProps,m=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||a!==d)&&Ki(t,s,r,d),et=!1;var h=t.memoizedState;s.state=h,Jr(t,r,s,l),a=t.memoizedState,i!==r||h!==a||fe.current||et?(typeof v=="function"&&(Ao(t,n,v,r),a=t.memoizedState),(i=et||Qi(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,Uu(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:Le(t.type,i),s.props=d,m=t.pendingProps,h=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Te(a):(a=pe(n)?Pt:oe.current,a=tn(t,a));var g=n.getDerivedStateFromProps;(v=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==m||h!==a)&&Ki(t,s,r,a),et=!1,h=t.memoizedState,s.state=h,Jr(t,r,s,l);var k=t.memoizedState;i!==m||h!==k||fe.current||et?(typeof g=="function"&&(Ao(t,n,g,r),k=t.memoizedState),(d=et||Qi(t,n,d,r,h,k,a)||!1)?(v||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,k,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,k,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=k),s.props=r,s.state=k,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 Vo(e,t,n,r,o,l)}function Vo(e,t,n,r,l,o){fc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&Oi(t,n,!1),Xe(e,t,o);r=t.stateNode,rp.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=rn(t,e.child,null,o),t.child=rn(t,null,i,o)):se(e,t,i,o),t.memoizedState=r.state,l&&Oi(t,n,!0),t.child}function pc(e){var t=e.stateNode;t.pendingContext?Ii(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ii(e,t.context,!1),Ms(e,t.containerInfo)}function bi(e,t,n,r,l){return nn(),Ts(l),t.flags|=256,se(e,t,n,r),t.child}var Wo={dehydrated:null,treeContext:null,retryLane:0};function Qo(e){return{baseLanes:e,cachePool:null,transitions:null}}function hc(e,t,n){var r=t.pendingProps,l=B.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),I(B,l&1),e===null)return Oo(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,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=kl(s,r,0,null),e=Tt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Qo(n),t.memoizedState=Wo,e):Us(t,s));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return lp(e,t,s,r,i,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,i=l.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=ft(l,a),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=ft(i,o):(o=Tt(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Qo(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Wo,r}return o=e.child,e=o.sibling,r=ft(o,{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 Us(e,t){return t=kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kr(e,t,n,r){return r!==null&&Ts(r),rn(t,e.child,null,n),e=Us(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=bl(Error(w(422))),kr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=kl({mode:"visible",children:r.children},l,0,null),o=Tt(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&rn(t,e.child,null,s),t.child.memoizedState=Qo(s),t.memoizedState=Wo,o);if(!(t.mode&1))return kr(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(w(419)),r=bl(o,r,void 0),kr(e,t,s,r)}if(i=(s&e.childLanes)!==0,de||i){if(r=J,r!==null){switch(s&-s){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Ye(e,l),ze(r,e,l,-1))}return Ks(),r=bl(Error(w(421))),kr(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=gp.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ge=at(l.nextSibling),ye=t,U=!0,$e=null,e!==null&&(xe[Ee++]=We,xe[Ee++]=Qe,xe[Ee++]=Nt,We=e.id,Qe=e.overflow,Nt=t),t=Us(t,r.children),t.flags|=4096,t)}function ea(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Do(e.return,t,n)}function eo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function mc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(se(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&&ea(e,n,t);else if(e.tag===19)ea(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(I(B,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&br(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),eo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&br(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}eo(t,!0,n,null,o);break;case"together":eo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mr(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),_t|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=ft(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ft(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function op(e,t,n){switch(t.tag){case 3:pc(t),nn();break;case 5:Bu(t);break;case 1:pe(t.type)&&Gr(t);break;case 4:Ms(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;I(Xr,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(I(B,B.current&1),t.flags|=128,null):n&t.child.childLanes?hc(e,t,n):(I(B,B.current&1),e=Xe(e,t,n),e!==null?e.sibling:null);I(B,B.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),I(B,B.current),r)break;return null;case 22:case 23:return t.lanes=0,dc(e,t,n)}return Xe(e,t,n)}var vc,Ko,gc,yc;vc=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}};Ko=function(){};gc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Ct(Ue.current);var o=null;switch(n){case"input":l=ho(e,l),r=ho(e,r),o=[];break;case"select":l=V({},l,{value:void 0}),r=V({},r,{value:void 0}),o=[];break;case"textarea":l=go(e,l),r=go(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Qr)}wo(n,r);var s;n=null;for(d in l)if(!r.hasOwnProperty(d)&&l.hasOwnProperty(d)&&l[d]!=null)if(d==="style"){var i=l[d];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Rn.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var a=r[d];if(i=l!=null?l[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||(o||(o=[]),o.push(d,n)),n=a;else d==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,i=i?i.__html:void 0,a!=null&&i!==a&&(o=o||[]).push(d,a)):d==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(d,""+a):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Rn.hasOwnProperty(d)?(a!=null&&d==="onScroll"&&D("scroll",e),o||i===a||(o=[])):(o=o||[]).push(d,a))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};yc=function(e,t,n,r){n!==r&&(t.flags|=4)};function yn(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 re(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sp(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 re(t),null;case 1:return pe(t.type)&&Kr(),re(t),null;case 3:return r=t.stateNode,ln(),A(fe),A(oe),Rs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(yr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,$e!==null&&(es($e),$e=null))),Ko(e,t),re(t),null;case 5:zs(t);var l=Ct(Kn.current);if(n=t.type,e!==null&&t.stateNode!=null)gc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(w(166));return re(t),null}if(e=Ct(Ue.current),yr(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[De]=t,r[Wn]=o,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(l=0;l<En.length;l++)D(En[l],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":ui(r,o),D("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},D("invalid",r);break;case"textarea":di(r,o),D("invalid",r)}wo(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&gr(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&gr(r.textContent,i,e),l=["children",""+i]):Rn.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&D("scroll",r)}switch(n){case"input":ur(r),ci(r,o,!0);break;case"textarea":ur(r),fi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Qr)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ka(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[De]=t,e[Wn]=r,vc(e,t,!1,!1),t.stateNode=e;e:{switch(s=ko(n,r),n){case"dialog":D("cancel",e),D("close",e),l=r;break;case"iframe":case"object":case"embed":D("load",e),l=r;break;case"video":case"audio":for(l=0;l<En.length;l++)D(En[l],e);l=r;break;case"source":D("error",e),l=r;break;case"img":case"image":case"link":D("error",e),D("load",e),l=r;break;case"details":D("toggle",e),l=r;break;case"input":ui(e,r),l=ho(e,r),D("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=V({},r,{value:void 0}),D("invalid",e);break;case"textarea":di(e,r),l=go(e,r),D("invalid",e);break;default:l=r}wo(n,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="style"?Ya(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ga(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Fn(e,a):typeof a=="number"&&Fn(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rn.hasOwnProperty(o)?a!=null&&o==="onScroll"&&D("scroll",e):a!=null&&cs(e,o,a,s))}switch(n){case"input":ur(e),ci(e,r,!1);break;case"textarea":ur(e),fi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+pt(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Zt(e,!!r.multiple,o,!1):r.defaultValue!=null&&Zt(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Qr)}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 re(t),null;case 6:if(e&&t.stateNode!=null)yc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(w(166));if(n=Ct(Kn.current),Ct(Ue.current),yr(t)){if(r=t.stateNode,n=t.memoizedProps,r[De]=t,(o=r.nodeValue!==n)&&(e=ye,e!==null))switch(e.tag){case 3:gr(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gr(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[De]=t,t.stateNode=r}return re(t),null;case 13:if(A(B),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(U&&ge!==null&&t.mode&1&&!(t.flags&128))Iu(),nn(),t.flags|=98560,o=!1;else if(o=yr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(w(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(w(317));o[De]=t}else nn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;re(t),o=!1}else $e!==null&&(es($e),$e=null),o=!0;if(!o)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):Ks())),t.updateQueue!==null&&(t.flags|=4),re(t),null);case 4:return ln(),Ko(e,t),e===null&&Hn(t.stateNode.containerInfo),re(t),null;case 10:return Ls(t.type._context),re(t),null;case 17:return pe(t.type)&&Kr(),re(t),null;case 19:if(A(B),o=t.memoizedState,o===null)return re(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)yn(o,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=br(e),s!==null){for(t.flags|=128,yn(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return I(B,B.current&1|2),t.child}e=e.sibling}o.tail!==null&&K()>sn&&(t.flags|=128,r=!0,yn(o,!1),t.lanes=4194304)}else{if(!r)if(e=br(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!U)return re(t),null}else 2*K()-o.renderingStartTime>sn&&n!==1073741824&&(t.flags|=128,r=!0,yn(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=K(),t.sibling=null,n=B.current,I(B,r?n&1|2:n&1),t):(re(t),null);case 22:case 23:return Qs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ve&1073741824&&(re(t),t.subtreeFlags&6&&(t.flags|=8192)):re(t),null;case 24:return null;case 25:return null}throw Error(w(156,t.tag))}function ip(e,t){switch(js(t),t.tag){case 1:return pe(t.type)&&Kr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ln(),A(fe),A(oe),Rs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return zs(t),null;case 13:if(A(B),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));nn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return A(B),null;case 4:return ln(),null;case 10:return Ls(t.type._context),null;case 22:case 23:return Qs(),null;case 24:return null;default:return null}}var Sr=!1,le=!1,ap=typeof WeakSet=="function"?WeakSet:Set,C=null;function Kt(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 Go(e,t,n){try{n()}catch(r){W(e,t,r)}}var ta=!1;function up(e,t){if(_o=Hr,e=Eu(),Es(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,i=-1,a=-1,d=0,v=0,m=e,h=null;t:for(;;){for(var g;m!==n||l!==0&&m.nodeType!==3||(i=s+l),m!==o||r!==0&&m.nodeType!==3||(a=s+r),m.nodeType===3&&(s+=m.nodeValue.length),(g=m.firstChild)!==null;)h=m,m=g;for(;;){if(m===e)break t;if(h===n&&++d===l&&(i=s),h===o&&++v===r&&(a=s),(g=m.nextSibling)!==null)break;m=h,h=m.parentNode}m=g}n=i===-1||a===-1?null:{start:i,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for($o={focusedElem:e,selectionRange:n},Hr=!1,C=t;C!==null;)if(t=C,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,C=e;else for(;C!==null;){t=C;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var x=k.memoizedProps,N=k.memoizedState,f=t.stateNode,c=f.getSnapshotBeforeUpdate(t.elementType===t.type?x:Le(t.type,x),N);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(w(163))}}catch(y){W(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,C=e;break}C=t.return}return k=ta,ta=!1,k}function _n(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Go(t,n,o)}l=l.next}while(l!==r)}}function yl(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 Zo(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 wc(e){var t=e.alternate;t!==null&&(e.alternate=null,wc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[De],delete t[Wn],delete t[Ro],delete t[Qf],delete t[Kf])),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 kc(e){return e.tag===5||e.tag===3||e.tag===4}function na(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kc(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 Yo(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=Qr));else if(r!==4&&(e=e.child,e!==null))for(Yo(e,t,n),e=e.sibling;e!==null;)Yo(e,t,n),e=e.sibling}function Xo(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(Xo(e,t,n),e=e.sibling;e!==null;)Xo(e,t,n),e=e.sibling}var b=null,_e=!1;function Je(e,t,n){for(n=n.child;n!==null;)Sc(e,t,n),n=n.sibling}function Sc(e,t,n){if(Ae&&typeof Ae.onCommitFiberUnmount=="function")try{Ae.onCommitFiberUnmount(cl,n)}catch{}switch(n.tag){case 5:le||Kt(n,t);case 6:var r=b,l=_e;b=null,Je(e,t,n),b=r,_e=l,b!==null&&(_e?(e=b,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):b.removeChild(n.stateNode));break;case 18:b!==null&&(_e?(e=b,n=n.stateNode,e.nodeType===8?Gl(e.parentNode,n):e.nodeType===1&&Gl(e,n),An(e)):Gl(b,n.stateNode));break;case 4:r=b,l=_e,b=n.stateNode.containerInfo,_e=!0,Je(e,t,n),b=r,_e=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Go(n,t,s),l=l.next}while(l!==r)}Je(e,t,n);break;case 1:if(!le&&(Kt(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)}Je(e,t,n);break;case 21:Je(e,t,n);break;case 22:n.mode&1?(le=(r=le)||n.memoizedState!==null,Je(e,t,n),le=r):Je(e,t,n);break;default:Je(e,t,n)}}function ra(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ap),t.forEach(function(r){var l=yp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ne(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:b=i.stateNode,_e=!1;break e;case 3:b=i.stateNode.containerInfo,_e=!0;break e;case 4:b=i.stateNode.containerInfo,_e=!0;break e}i=i.return}if(b===null)throw Error(w(160));Sc(o,s,l),b=null,_e=!1;var a=l.alternate;a!==null&&(a.return=null),l.return=null}catch(d){W(l,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)xc(t,e),t=t.sibling}function xc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ne(t,e),Ie(e),r&4){try{_n(3,e,e.return),yl(3,e)}catch(x){W(e,e.return,x)}try{_n(5,e,e.return)}catch(x){W(e,e.return,x)}}break;case 1:Ne(t,e),Ie(e),r&512&&n!==null&&Kt(n,n.return);break;case 5:if(Ne(t,e),Ie(e),r&512&&n!==null&&Kt(n,n.return),e.flags&32){var l=e.stateNode;try{Fn(l,"")}catch(x){W(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,i=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&Wa(l,o),ko(i,s);var d=ko(i,o);for(s=0;s<a.length;s+=2){var v=a[s],m=a[s+1];v==="style"?Ya(l,m):v==="dangerouslySetInnerHTML"?Ga(l,m):v==="children"?Fn(l,m):cs(l,v,m,d)}switch(i){case"input":mo(l,o);break;case"textarea":Qa(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?Zt(l,!!o.multiple,g,!1):h!==!!o.multiple&&(o.defaultValue!=null?Zt(l,!!o.multiple,o.defaultValue,!0):Zt(l,!!o.multiple,o.multiple?[]:"",!1))}l[Wn]=o}catch(x){W(e,e.return,x)}}break;case 6:if(Ne(t,e),Ie(e),r&4){if(e.stateNode===null)throw Error(w(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){W(e,e.return,x)}}break;case 3:if(Ne(t,e),Ie(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{An(t.containerInfo)}catch(x){W(e,e.return,x)}break;case 4:Ne(t,e),Ie(e);break;case 13:Ne(t,e),Ie(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(Vs=K())),r&4&&ra(e);break;case 22:if(v=n!==null&&n.memoizedState!==null,e.mode&1?(le=(d=le)||v,Ne(t,e),le=d):Ne(t,e),Ie(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!v&&e.mode&1)for(C=e,v=e.child;v!==null;){for(m=C=v;C!==null;){switch(h=C,g=h.child,h.tag){case 0:case 11:case 14:case 15:_n(4,h,h.return);break;case 1:Kt(h,h.return);var k=h.stateNode;if(typeof k.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,k.props=t.memoizedProps,k.state=t.memoizedState,k.componentWillUnmount()}catch(x){W(r,n,x)}}break;case 5:Kt(h,h.return);break;case 22:if(h.memoizedState!==null){oa(m);continue}}g!==null?(g.return=h,C=g):oa(m)}v=v.sibling}e:for(v=null,m=e;;){if(m.tag===5){if(v===null){v=m;try{l=m.stateNode,d?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=m.stateNode,a=m.memoizedProps.style,s=a!=null&&a.hasOwnProperty("display")?a.display:null,i.style.display=Za("display",s))}catch(x){W(e,e.return,x)}}}else if(m.tag===6){if(v===null)try{m.stateNode.nodeValue=d?"":m.memoizedProps}catch(x){W(e,e.return,x)}}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;v===m&&(v=null),m=m.return}v===m&&(v=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Ne(t,e),Ie(e),r&4&&ra(e);break;case 21:break;default:Ne(t,e),Ie(e)}}function Ie(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kc(n)){var r=n;break e}n=n.return}throw Error(w(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Fn(l,""),r.flags&=-33);var o=na(e);Xo(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,i=na(e);Yo(e,i,s);break;default:throw Error(w(161))}}catch(a){W(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cp(e,t,n){C=e,Ec(e)}function Ec(e,t,n){for(var r=(e.mode&1)!==0;C!==null;){var l=C,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Sr;if(!s){var i=l.alternate,a=i!==null&&i.memoizedState!==null||le;i=Sr;var d=le;if(Sr=s,(le=a)&&!d)for(C=l;C!==null;)s=C,a=s.child,s.tag===22&&s.memoizedState!==null?sa(l):a!==null?(a.return=s,C=a):sa(l);for(;o!==null;)C=o,Ec(o),o=o.sibling;C=l,Sr=i,le=d}la(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,C=o):la(e)}}function la(e){for(;C!==null;){var t=C;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:le||yl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!le)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Le(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Hi(t,o,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}Hi(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 v=d.memoizedState;if(v!==null){var m=v.dehydrated;m!==null&&An(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(w(163))}le||t.flags&512&&Zo(t)}catch(h){W(t,t.return,h)}}if(t===e){C=null;break}if(n=t.sibling,n!==null){n.return=t.return,C=n;break}C=t.return}}function oa(e){for(;C!==null;){var t=C;if(t===e){C=null;break}var n=t.sibling;if(n!==null){n.return=t.return,C=n;break}C=t.return}}function sa(e){for(;C!==null;){var t=C;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yl(4,t)}catch(a){W(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(a){W(t,l,a)}}var o=t.return;try{Zo(t)}catch(a){W(t,o,a)}break;case 5:var s=t.return;try{Zo(t)}catch(a){W(t,s,a)}}}catch(a){W(t,t.return,a)}if(t===e){C=null;break}var i=t.sibling;if(i!==null){i.return=t.return,C=i;break}C=t.return}}var dp=Math.ceil,nl=qe.ReactCurrentDispatcher,Bs=qe.ReactCurrentOwner,je=qe.ReactCurrentBatchConfig,R=0,J=null,G=null,ee=0,ve=0,Gt=vt(0),Y=0,Xn=null,_t=0,wl=0,Hs=0,$n=null,ce=null,Vs=0,sn=1/0,He=null,rl=!1,qo=null,ct=null,xr=!1,lt=null,ll=0,Mn=0,Jo=null,zr=-1,Rr=0;function ie(){return R&6?K():zr!==-1?zr:zr=K()}function dt(e){return e.mode&1?R&2&&ee!==0?ee&-ee:Zf.transition!==null?(Rr===0&&(Rr=iu()),Rr):(e=F,e!==0||(e=window.event,e=e===void 0?16:hu(e.type)),e):1}function ze(e,t,n,r){if(50<Mn)throw Mn=0,Jo=null,Error(w(185));er(e,n,r),(!(R&2)||e!==J)&&(e===J&&(!(R&2)&&(wl|=n),Y===4&&nt(e,ee)),he(e,r),n===1&&R===0&&!(t.mode&1)&&(sn=K()+500,ml&>()))}function he(e,t){var n=e.callbackNode;Gd(e,t);var r=Br(e,e===J?ee:0);if(r===0)n!==null&&mi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&mi(n),t===1)e.tag===0?Gf(ia.bind(null,e)):zu(ia.bind(null,e)),Vf(function(){!(R&6)&>()}),n=null;else{switch(au(r)){case 1:n=ms;break;case 4:n=ou;break;case 16:n=Ur;break;case 536870912:n=su;break;default:n=Ur}n=$c(n,Cc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Cc(e,t){if(zr=-1,Rr=0,R&6)throw Error(w(327));var n=e.callbackNode;if(bt()&&e.callbackNode!==n)return null;var r=Br(e,e===J?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ol(e,r);else{t=r;var l=R;R|=2;var o=Tc();(J!==e||ee!==t)&&(He=null,sn=K()+500,jt(e,t));do try{hp();break}catch(i){jc(e,i)}while(!0);Ns(),nl.current=o,R=l,G!==null?t=0:(J=null,ee=0,t=Y)}if(t!==0){if(t===2&&(l=jo(e),l!==0&&(r=l,t=bo(e,l))),t===1)throw n=Xn,jt(e,0),nt(e,r),he(e,K()),n;if(t===6)nt(e,r);else{if(l=e.current.alternate,!(r&30)&&!fp(l)&&(t=ol(e,r),t===2&&(o=jo(e),o!==0&&(r=o,t=bo(e,o))),t===1))throw n=Xn,jt(e,0),nt(e,r),he(e,K()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(w(345));case 2:St(e,ce,He);break;case 3:if(nt(e,r),(r&130023424)===r&&(t=Vs+500-K(),10<t)){if(Br(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ie(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=zo(St.bind(null,e,ce,He),t);break}St(e,ce,He);break;case 4:if(nt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-Me(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dp(r/1960))-r,10<r){e.timeoutHandle=zo(St.bind(null,e,ce,He),r);break}St(e,ce,He);break;case 5:St(e,ce,He);break;default:throw Error(w(329))}}}return he(e,K()),e.callbackNode===n?Cc.bind(null,e):null}function bo(e,t){var n=$n;return e.current.memoizedState.isDehydrated&&(jt(e,t).flags|=256),e=ol(e,t),e!==2&&(t=ce,ce=n,t!==null&&es(t)),e}function es(e){ce===null?ce=e:ce.push.apply(ce,e)}function fp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Re(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nt(e,t){for(t&=~Hs,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Me(t),r=1<<n;e[n]=-1,t&=~r}}function ia(e){if(R&6)throw Error(w(327));bt();var t=Br(e,0);if(!(t&1))return he(e,K()),null;var n=ol(e,t);if(e.tag!==0&&n===2){var r=jo(e);r!==0&&(t=r,n=bo(e,r))}if(n===1)throw n=Xn,jt(e,0),nt(e,t),he(e,K()),n;if(n===6)throw Error(w(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,St(e,ce,He),he(e,K()),null}function Ws(e,t){var n=R;R|=1;try{return e(t)}finally{R=n,R===0&&(sn=K()+500,ml&>())}}function $t(e){lt!==null&<.tag===0&&!(R&6)&&bt();var t=R;R|=1;var n=je.transition,r=F;try{if(je.transition=null,F=1,e)return e()}finally{F=r,je.transition=n,R=t,!(R&6)&>()}}function Qs(){ve=Gt.current,A(Gt)}function jt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Hf(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(js(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Kr();break;case 3:ln(),A(fe),A(oe),Rs();break;case 5:zs(r);break;case 4:ln();break;case 13:A(B);break;case 19:A(B);break;case 10:Ls(r.type._context);break;case 22:case 23:Qs()}n=n.return}if(J=e,G=e=ft(e.current,null),ee=ve=t,Y=0,Xn=null,Hs=wl=_t=0,ce=$n=null,Et!==null){for(t=0;t<Et.length;t++)if(n=Et[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Et=null}return e}function jc(e,t){do{var n=G;try{if(Ns(),_r.current=tl,el){for(var r=H.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}el=!1}if(Lt=0,q=Z=H=null,Ln=!1,Gn=0,Bs.current=null,n===null||n.return===null){Y=1,Xn=t,G=null;break}e:{var o=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,v=i,m=v.tag;if(!(v.mode&1)&&(m===0||m===11||m===15)){var h=v.alternate;h?(v.updateQueue=h.updateQueue,v.memoizedState=h.memoizedState,v.lanes=h.lanes):(v.updateQueue=null,v.memoizedState=null)}var g=Zi(s);if(g!==null){g.flags&=-257,Yi(g,s,i,o,t),g.mode&1&&Gi(o,d,t),t=g,a=d;var k=t.updateQueue;if(k===null){var x=new Set;x.add(a),t.updateQueue=x}else k.add(a);break e}else{if(!(t&1)){Gi(o,d,t),Ks();break e}a=Error(w(426))}}else if(U&&i.mode&1){var N=Zi(s);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Yi(N,s,i,o,t),Ts(on(a,i));break e}}o=a=on(a,i),Y!==4&&(Y=2),$n===null?$n=[o]:$n.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=ac(o,a,t);Bi(o,f);break e;case 1:i=a;var c=o.type,p=o.stateNode;if(!(o.flags&128)&&(typeof c.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(ct===null||!ct.has(p)))){o.flags|=65536,t&=-t,o.lanes|=t;var y=uc(o,i,t);Bi(o,y);break e}}o=o.return}while(o!==null)}Nc(n)}catch(E){t=E,G===n&&n!==null&&(G=n=n.return);continue}break}while(!0)}function Tc(){var e=nl.current;return nl.current=tl,e===null?tl:e}function Ks(){(Y===0||Y===3||Y===2)&&(Y=4),J===null||!(_t&268435455)&&!(wl&268435455)||nt(J,ee)}function ol(e,t){var n=R;R|=2;var r=Tc();(J!==e||ee!==t)&&(He=null,jt(e,t));do try{pp();break}catch(l){jc(e,l)}while(!0);if(Ns(),R=n,nl.current=r,G!==null)throw Error(w(261));return J=null,ee=0,Y}function pp(){for(;G!==null;)Pc(G)}function hp(){for(;G!==null&&!Dd();)Pc(G)}function Pc(e){var t=_c(e.alternate,e,ve);e.memoizedProps=e.pendingProps,t===null?Nc(e):G=t,Bs.current=null}function Nc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ip(n,t),n!==null){n.flags&=32767,G=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Y=6,G=null;return}}else if(n=sp(n,t,ve),n!==null){G=n;return}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);Y===0&&(Y=5)}function St(e,t,n){var r=F,l=je.transition;try{je.transition=null,F=1,mp(e,t,n,r)}finally{je.transition=l,F=r}return null}function mp(e,t,n,r){do bt();while(lt!==null);if(R&6)throw Error(w(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(w(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Zd(e,o),e===J&&(G=J=null,ee=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||xr||(xr=!0,$c(Ur,function(){return bt(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=je.transition,je.transition=null;var s=F;F=1;var i=R;R|=4,Bs.current=null,up(e,n),xc(n,e),Ff($o),Hr=!!_o,$o=_o=null,e.current=n,cp(n),Ad(),R=i,F=s,je.transition=o}else e.current=n;if(xr&&(xr=!1,lt=e,ll=l),o=e.pendingLanes,o===0&&(ct=null),Hd(n.stateNode),he(e,K()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(rl)throw rl=!1,e=qo,qo=null,e;return ll&1&&e.tag!==0&&bt(),o=e.pendingLanes,o&1?e===Jo?Mn++:(Mn=0,Jo=e):Mn=0,gt(),null}function bt(){if(lt!==null){var e=au(ll),t=je.transition,n=F;try{if(je.transition=null,F=16>e?16:e,lt===null)var r=!1;else{if(e=lt,lt=null,ll=0,R&6)throw Error(w(331));var l=R;for(R|=4,C=e.current;C!==null;){var o=C,s=o.child;if(C.flags&16){var i=o.deletions;if(i!==null){for(var a=0;a<i.length;a++){var d=i[a];for(C=d;C!==null;){var v=C;switch(v.tag){case 0:case 11:case 15:_n(8,v,o)}var m=v.child;if(m!==null)m.return=v,C=m;else for(;C!==null;){v=C;var h=v.sibling,g=v.return;if(wc(v),v===d){C=null;break}if(h!==null){h.return=g,C=h;break}C=g}}}var k=o.alternate;if(k!==null){var x=k.child;if(x!==null){k.child=null;do{var N=x.sibling;x.sibling=null,x=N}while(x!==null)}}C=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,C=s;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:_n(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,C=f;break e}C=o.return}}var c=e.current;for(C=c;C!==null;){s=C;var p=s.child;if(s.subtreeFlags&2064&&p!==null)p.return=s,C=p;else e:for(s=c;C!==null;){if(i=C,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:yl(9,i)}}catch(E){W(i,i.return,E)}if(i===s){C=null;break e}var y=i.sibling;if(y!==null){y.return=i.return,C=y;break e}C=i.return}}if(R=l,gt(),Ae&&typeof Ae.onPostCommitFiberRoot=="function")try{Ae.onPostCommitFiberRoot(cl,e)}catch{}r=!0}return r}finally{F=n,je.transition=t}}return!1}function aa(e,t,n){t=on(n,t),t=ac(e,t,1),e=ut(e,t,1),t=ie(),e!==null&&(er(e,1,t),he(e,t))}function W(e,t,n){if(e.tag===3)aa(e,e,n);else for(;t!==null;){if(t.tag===3){aa(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ct===null||!ct.has(r))){e=on(n,e),e=uc(t,e,1),t=ut(t,e,1),e=ie(),t!==null&&(er(t,1,e),he(t,e));break}}t=t.return}}function vp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ie(),e.pingedLanes|=e.suspendedLanes&n,J===e&&(ee&n)===n&&(Y===4||Y===3&&(ee&130023424)===ee&&500>K()-Vs?jt(e,0):Hs|=n),he(e,t)}function Lc(e,t){t===0&&(e.mode&1?(t=fr,fr<<=1,!(fr&130023424)&&(fr=4194304)):t=1);var n=ie();e=Ye(e,t),e!==null&&(er(e,t,n),he(e,n))}function gp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Lc(e,n)}function yp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(w(314))}r!==null&&r.delete(t),Lc(e,n)}var _c;_c=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||fe.current)de=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return de=!1,op(e,t,n);de=!!(e.flags&131072)}else de=!1,U&&t.flags&1048576&&Ru(t,Yr,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Mr(e,t),e=t.pendingProps;var l=tn(t,oe.current);Jt(t,n),l=Is(null,t,r,e,l,n);var o=Os();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,pe(r)?(o=!0,Gr(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,$s(t),l.updater=gl,t.stateNode=l,l._reactInternals=t,Uo(t,r,e,n),t=Vo(null,t,r,!0,o,n)):(t.tag=0,U&&o&&Cs(t),se(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Mr(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=kp(r),e=Le(r,e),l){case 0:t=Ho(null,t,r,e,n);break e;case 1:t=Ji(null,t,r,e,n);break e;case 11:t=Xi(null,t,r,e,n);break e;case 14:t=qi(null,t,r,Le(r.type,e),n);break e}throw Error(w(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ho(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Ji(e,t,r,l,n);case 3:e:{if(pc(t),e===null)throw Error(w(387));r=t.pendingProps,o=t.memoizedState,l=o.element,Uu(e,t),Jr(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=on(Error(w(423)),t),t=bi(e,t,r,n,l);break e}else if(r!==l){l=on(Error(w(424)),t),t=bi(e,t,r,n,l);break e}else for(ge=at(t.stateNode.containerInfo.firstChild),ye=t,U=!0,$e=null,n=Du(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nn(),r===l){t=Xe(e,t,n);break e}se(e,t,r,n)}t=t.child}return t;case 5:return Bu(t),e===null&&Oo(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,Mo(r,l)?s=null:o!==null&&Mo(r,o)&&(t.flags|=32),fc(e,t),se(e,t,s,n),t.child;case 6:return e===null&&Oo(t),null;case 13:return hc(e,t,n);case 4:return Ms(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rn(t,null,r,n):se(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Xi(e,t,r,l,n);case 7:return se(e,t,t.pendingProps,n),t.child;case 8:return se(e,t,t.pendingProps.children,n),t.child;case 12:return se(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,I(Xr,r._currentValue),r._currentValue=s,o!==null)if(Re(o.value,s)){if(o.children===l.children&&!fe.current){t=Xe(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var a=i.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Ke(-1,n&-n),a.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var v=d.pending;v===null?a.next=a:(a.next=v.next,v.next=a),d.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Do(o.return,n,t),i.lanes|=n;break}a=a.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(w(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),Do(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}se(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Jt(t,n),l=Te(l),r=r(l),t.flags|=1,se(e,t,r,n),t.child;case 14:return r=t.type,l=Le(r,t.pendingProps),l=Le(r.type,l),qi(e,t,r,l,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Le(r,l),Mr(e,t),t.tag=1,pe(r)?(e=!0,Gr(t)):e=!1,Jt(t,n),ic(t,r,l),Uo(t,r,l,n),Vo(null,t,r,!0,e,n);case 19:return mc(e,t,n);case 22:return dc(e,t,n)}throw Error(w(156,t.tag))};function $c(e,t){return lu(e,t)}function wp(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 wp(e,t,n,r)}function Gs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kp(e){if(typeof e=="function")return Gs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fs)return 11;if(e===ps)return 14}return 2}function ft(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 Fr(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")Gs(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ot:return Tt(n.children,l,o,t);case ds:s=8,l|=8;break;case uo:return e=Ce(12,n,t,l|2),e.elementType=uo,e.lanes=o,e;case co:return e=Ce(13,n,t,l),e.elementType=co,e.lanes=o,e;case fo:return e=Ce(19,n,t,l),e.elementType=fo,e.lanes=o,e;case Ba:return kl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Aa:s=10;break e;case Ua:s=9;break e;case fs:s=11;break e;case ps:s=14;break e;case be:s=16,r=null;break e}throw Error(w(130,e==null?e:typeof e,""))}return t=Ce(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Tt(e,t,n,r){return e=Ce(7,e,r,t),e.lanes=n,e}function kl(e,t,n,r){return e=Ce(22,e,r,t),e.elementType=Ba,e.lanes=n,e.stateNode={isHidden:!1},e}function to(e,t,n){return e=Ce(6,e,null,t),e.lanes=n,e}function no(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 Sp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Il(0),this.expirationTimes=Il(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Il(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Zs(e,t,n,r,l,o,s,i,a){return e=new Sp(e,t,n,i,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ce(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$s(o),e}function xp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:It,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Mc(e){if(!e)return ht;e=e._reactInternals;e:{if(zt(e)!==e||e.tag!==1)throw Error(w(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(w(171))}if(e.tag===1){var n=e.type;if(pe(n))return Mu(e,n,t)}return t}function zc(e,t,n,r,l,o,s,i,a){return e=Zs(n,r,!0,e,l,o,s,i,a),e.context=Mc(null),n=e.current,r=ie(),l=dt(n),o=Ke(r,l),o.callback=t??null,ut(n,o,l),e.current.lanes=l,er(e,l,r),he(e,r),e}function Sl(e,t,n,r){var l=t.current,o=ie(),s=dt(l);return n=Mc(n),t.context===null?t.context=n:t.pendingContext=n,t=Ke(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ut(l,t,s),e!==null&&(ze(e,l,s,o),Lr(e,l,s)),s}function sl(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 ua(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ys(e,t){ua(e,t),(e=e.alternate)&&ua(e,t)}function Ep(){return null}var Rc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xs(e){this._internalRoot=e}xl.prototype.render=Xs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));Sl(e,t,null,null)};xl.prototype.unmount=Xs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$t(function(){Sl(null,e,null,null)}),t[Ze]=null}};function xl(e){this._internalRoot=e}xl.prototype.unstable_scheduleHydration=function(e){if(e){var t=du();e={blockedOn:null,target:e,priority:t};for(var n=0;n<tt.length&&t!==0&&t<tt[n].priority;n++);tt.splice(n,0,e),n===0&&pu(e)}};function qs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ca(){}function Cp(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var d=sl(s);o.call(d)}}var s=zc(t,r,e,0,null,!1,!1,"",ca);return e._reactRootContainer=s,e[Ze]=s.current,Hn(e.nodeType===8?e.parentNode:e),$t(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var i=r;r=function(){var d=sl(a);i.call(d)}}var a=Zs(e,0,!1,null,null,!1,!1,"",ca);return e._reactRootContainer=a,e[Ze]=a.current,Hn(e.nodeType===8?e.parentNode:e),$t(function(){Sl(t,a,n,r)}),a}function Cl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var i=l;l=function(){var a=sl(s);i.call(a)}}Sl(t,s,e,l)}else s=Cp(n,t,e,l,r);return sl(s)}uu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=xn(t.pendingLanes);n!==0&&(vs(t,n|1),he(t,K()),!(R&6)&&(sn=K()+500,gt()))}break;case 13:$t(function(){var r=Ye(e,1);if(r!==null){var l=ie();ze(r,e,1,l)}}),Ys(e,1)}};gs=function(e){if(e.tag===13){var t=Ye(e,134217728);if(t!==null){var n=ie();ze(t,e,134217728,n)}Ys(e,134217728)}};cu=function(e){if(e.tag===13){var t=dt(e),n=Ye(e,t);if(n!==null){var r=ie();ze(n,e,t,r)}Ys(e,t)}};du=function(){return F};fu=function(e,t){var n=F;try{return F=e,t()}finally{F=n}};xo=function(e,t,n){switch(t){case"input":if(mo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=hl(r);if(!l)throw Error(w(90));Va(r),mo(r,l)}}}break;case"textarea":Qa(e,n);break;case"select":t=n.value,t!=null&&Zt(e,!!n.multiple,t,!1)}};Ja=Ws;ba=$t;var jp={usingClientEntryPoint:!1,Events:[nr,Bt,hl,Xa,qa,Ws]},wn={findFiberByHostInstance:xt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tp={bundleType:wn.bundleType,version:wn.version,rendererPackageName:wn.rendererPackageName,rendererConfig:wn.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=nu(e),e===null?null:e.stateNode},findFiberByHostInstance:wn.findFiberByHostInstance||Ep,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{cl=Er.inject(Tp),Ae=Er}catch{}}ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jp;ke.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qs(t))throw Error(w(200));return xp(e,t,null,n)};ke.createRoot=function(e,t){if(!qs(e))throw Error(w(299));var n=!1,r="",l=Rc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Zs(e,1,!1,null,null,n,!1,r,l),e[Ze]=t.current,Hn(e.nodeType===8?e.parentNode:e),new Xs(t)};ke.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(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=nu(t),e=e===null?null:e.stateNode,e};ke.flushSync=function(e){return $t(e)};ke.hydrate=function(e,t,n){if(!El(t))throw Error(w(200));return Cl(null,e,t,!0,n)};ke.hydrateRoot=function(e,t,n){if(!qs(e))throw Error(w(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=Rc;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=zc(t,null,e,1,n??null,l,!1,o,s),e[Ze]=t.current,Hn(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new xl(t)};ke.render=function(e,t,n){if(!El(t))throw Error(w(200));return Cl(null,e,t,!1,n)};ke.unmountComponentAtNode=function(e){if(!El(e))throw Error(w(40));return e._reactRootContainer?($t(function(){Cl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ze]=null})}),!0):!1};ke.unstable_batchedUpdates=Ws;ke.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!El(n))throw Error(w(200));if(e==null||e._reactInternals===void 0)throw Error(w(38));return Cl(e,t,n,!1,r)};ke.version="18.3.1-next-f1338f8080-20240426";function Fc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Fc)}catch(e){console.error(e)}}Fc(),Fa.exports=ke;var Ic=Fa.exports,da=Ic;io.createRoot=da.createRoot,io.hydrateRoot=da.hydrateRoot;const Pp="modulepreload",Np=function(e){return"/"+e},fa={},jl=function(t,n,r){let l=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"));l=Promise.allSettled(n.map(a=>{if(a=Np(a),a in fa)return;fa[a]=!0;const d=a.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${v}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":Pp,d||(m.as="script"),m.crossOrigin="",m.href=a,i&&m.setAttribute("nonce",i),document.head.appendChild(m),d)return new Promise((h,g)=>{m.addEventListener("load",h),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(s){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s}return l.then(s=>{for(const i of s||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},Js={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",showHistory:({n:e})=>`show ${e} dormant session${e===1?"":"s"} (history is kept, never deleted)`,hideHistory:({n:e})=>`fold the ${e} dormant session${e===1?"":"s"} away`},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",projectOnline:"online",projectOffline:"offline",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",unmeasured:"Unmeasured",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",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…",archive:"archive",resume:"resume & relaunch",quarantine:"quarantine record",quarantineTitle:"quarantine unreadable record",quarantineConfirm:"quarantine",quarantineAdapter:"adapter",quarantineThread:"native thread",quarantineTmux:"tmux session",quarantineWorktree:"worktree path",quarantineBranch:"branch",quarantineRestore:"restore quarantined record",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",issuesNewTitle:"New issue",issuesTitleLabel:"title",issuesBodyLabel:"description",issuesWrite:"Write",issuesPreview:"Preview",issuesPreviewEmpty:"nothing to preview yet",issuesNodesHint:"write [[id]] to link a node",issuesCancel:"Cancel",issuesSend:"Send",issuesPost:"Create",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",tabConversation:"conversation",tabEval:"eval",tabEvalTitle:"open this session's evaluation on the Evals page",toolbarLabel:"session terminal toolbar",conversationToolbarLabel:"session conversation toolbar",surfaceLabel:"current session surface",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:l})=>`open this session's Evals page — ${e} fresh pass, ${t} fresh fail, ${n} need review, ${r} unmeasured, ${l} unknown`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"open Command Box for an atomic prompt or graph command (Alt+I)",commandClose:"close Command Box",commandPlaceholder:"Send an atomic prompt or run a graph 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.",shelfShow:"Archived",shelfHide:"Back to sessions",shelfEmpty:"nothing archived",shelfMsg:"★ archived",shelfSubLive:"cold storage is offline. resume it when you need the same conversation.",shelfSubOffline:"offline cold storage. resume relaunches the same conversation.",shelfRestore:"restore",outcomeWorking:"working...",outcomeSending:"sending...",outcomeDelivered:"delivered",deliveryFailed:({status:e})=>`not delivered (HTTP ${e})`,msgError:"⚠ not delivered — retry",attachTitle:"attach a file (or paste / drop) — uploaded to the session machine, its /tmp path inserted",attachError:"⚠ upload failed",attachQueued:"queued",attachDone:"attached",attachCancelled:"cancelled",attachRetry:"retry upload",attachCancel:"cancel upload",attachDismiss:"dismiss attachment status",cmd:{evalDesc:"open this session's Evals page — eval evidence, diff, merge gates",mergeTitle:"merge this review proposal to main",mergeDesc:"merge this review proposal to main",mergeUnavailableArchived:"merge unavailable — this session is archived",mergeUnavailableNoProposal:"merge unavailable — this session has not proposed a merge; only done --propose merge makes it available",mergeUnavailableNothing:"merge unavailable — done --propose nothing is done without proposing a merge",mergeUnavailableClose:"merge unavailable — done --propose close is awaiting close, not merge",mergeUnavailableLifecycle:"merge unavailable — the merge proposal is no longer awaiting review",mergeUnavailableLiveness:"merge unavailable — the session is not online",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",archiveTitle:"archive this session",archiveDesc:"archive — exact-stop its runtime, keep the worktree and conversation for resume",unarchiveTitle:"resume and relaunch this session",unarchiveDesc:"deprecated — use resume to relaunch the same conversation",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",copy:"copy",copied:"copied",copyFailed:"copy failed — selection kept",sendFailed:"not delivered — the agent may be offline",offlineHint:"agent offline — messages cannot be delivered until it is relaunched"}},Lp={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:"离线",showHistory:({n:e})=>`展开 ${e} 个休眠会话(历史仅收纳,绝不删除)`,hideHistory:({n:e})=>`收起这 ${e} 个休眠会话`},nav:{railLabel:"主导航",graph:"规格节点图(⌥1)",sessions:"会话面板(⌥2)",evals:"Evals(⌥3 / ⌥F)",issues:"议题(⌥4)",settings:"设置(⌥5)",projectChip:"项目:{name} — 切换项目",projectOnline:"在线",projectOffline:"离线",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:"未通过",unmeasured:"未测量",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:"多选…",archive:"归档",resume:"恢复并重新启动",quarantine:"隔离记录",quarantineTitle:"隔离不可读记录",quarantineConfirm:"隔离",quarantineAdapter:"适配器",quarantineThread:"原生线程",quarantineTmux:"tmux 会话",quarantineWorktree:"工作树路径",quarantineBranch:"分支",quarantineRestore:"恢复已隔离记录",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:"新建",issuesNewTitle:"新建 issue",issuesTitleLabel:"标题",issuesBodyLabel:"正文",issuesWrite:"编辑",issuesPreview:"预览",issuesPreviewEmpty:"还没有可预览的内容",issuesNodesHint:"在正文里写 [[id]] 即可关联",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:"终端",tabConversation:"对话",tabEval:"评测",tabEvalTitle:"打开此会话在 Evals 页的评测",toolbarLabel:"会话终端工具栏",conversationToolbarLabel:"会话对话工具栏",surfaceLabel:"当前会话界面",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:l})=>`打开此会话的 Evals 页 — 新鲜通过 ${e},新鲜失败 ${t},待人工复核 ${n},未评测 ${r},覆盖未知 ${l}`,commandBox:"Command Box",commandBtn:"Command Box",commandTitle:"打开 Command Box,发送完整指令或执行面板命令(Alt+I)",commandClose:"关闭 Command Box",commandPlaceholder:"发送完整指令或执行面板命令",commandSend:"从 Command Box 发送",relaunch:"重新启动",relaunchTitle:"重新启动并恢复此会话",merge:"合并",relaunchResume:"⏵ 重新启动并恢复",merges:({n:e})=>`已合并 ×${e}`,mergesTitle:"合并到 main 的次数",offlineMsg:"⏻ 离线——此工作树没有活动进程。",offlineSubBefore:"工作树及其会话 ",offlineSubAfter:" 仍然完好。重新启动以恢复同一对话。",shelfShow:"已归档",shelfHide:"返回会话列表",shelfEmpty:"没有已归档的会话",shelfMsg:"★ 已归档",shelfSubLive:"冷存档已离线。需要时恢复同一对话。",shelfSubOffline:"离线冷存档。恢复会重新启动同一对话。",shelfRestore:"取回",outcomeWorking:"正在处理...",outcomeSending:"正在发送...",outcomeDelivered:"已送达",deliveryFailed:({status:e})=>`未送达(HTTP ${e})`,msgError:"⚠ 未送达 — 重试",attachTitle:"附加文件(或粘贴 / 拖入)—— 上传到会话所在机器,并插入其 /tmp 路径",attachError:"⚠ 上传失败",attachQueued:"等待上传",attachDone:"已附加",attachCancelled:"已取消",attachRetry:"重试上传",attachCancel:"取消上传",attachDismiss:"隐藏此附件状态",cmd:{evalDesc:"切换到此会话的评测页 —— 评测证据、改动、合并门禁",mergeTitle:"将此待审查提案合并到 main",mergeDesc:"将此待审查提案合并到 main",mergeUnavailableArchived:"不能合并:该会话已归档",mergeUnavailableNoProposal:"不能合并:此会话尚未提出合并;只有 done --propose merge 才会提出可点击的合并",mergeUnavailableNothing:"不能合并:done --propose nothing 表示已完成但未提出合并",mergeUnavailableClose:"不能合并:done --propose close 表示等待关闭,不是合并",mergeUnavailableLifecycle:"不能合并:该合并提案已不处于待审查状态",mergeUnavailableLiveness:"不能合并:该会话未在线",stopTitle:"停止此会话(结束智能体,保留工作树 —— 可恢复)",stopDesc:"停止 —— 结束智能体与 tmux,但保留工作树,之后可恢复",archiveTitle:"归档此会话",archiveDesc:"归档 —— 精确停止运行时,保留工作树与对话以便恢复",unarchiveTitle:"恢复并重新启动此会话",unarchiveDesc:"已弃用 —— 使用恢复以重新启动同一对话",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:"发送",copy:"复制",copied:"已复制",copyFailed:"复制失败 —— 选区已保留",sendFailed:"未送达 —— agent 可能已离线",offlineHint:"agent 已离线 —— 需要重新拉起后消息才能送达"}},ts={en:Js,zh:Lp},Oc="spexcode.lang",Sh=[{code:"en",label:"English"},{code:"zh",label:"中文"}];function _p(){return(typeof navigator<"u"&&navigator.language||"en").toLowerCase().startsWith("zh")?"zh":"en"}function $p(){try{const e=localStorage.getItem(Oc);if(e&&ts[e])return e}catch{}return _p()}function pa(e,t){if(typeof t=="string")return t.split(".").reduce((n,r)=>n==null?void 0:n[r],e)}function Mp(e,t){return t?e.replace(/\{(\w+)\}/g,(n,r)=>t[r]!=null?t[r]:`{${r}}`):e}function zp(e,t,n){let r=pa(e,t);return r===void 0&&(r=pa(Js,t)),typeof r=="function"?r(n||{}):typeof r=="string"?Mp(r,n):t}const Dc=_.createContext(null);function Rp({children:e}){const[t,n]=_.useState($p);_.useEffect(()=>{try{document.documentElement.lang=t}catch{}},[t]);const r=_.useCallback(o=>{if(ts[o]){try{localStorage.setItem(Oc,o)}catch{}n(o)}},[]),l=_.useMemo(()=>{const o=ts[t]||Js;return{lang:t,setLang:r,t:(s,i)=>zp(o,s,i)}},[t,r]);return u.jsx(Dc.Provider,{value:l,children:e})}function Fp(){const e=_.useContext(Dc);if(!e)throw new Error("useI18n must be used within <I18nProvider>");return e}function Tl(){return Fp().t}let ns=null;const Ac=e=>!!(e&&e.closest&&e.closest("[data-focus-overlay]")),Ip=e=>e!=null&&e.getClientRects().length?typeof e.checkVisibility=="function"?e.checkVisibility({visibilityProperty:!0}):getComputedStyle(e).visibility!=="hidden"&&getComputedStyle(e).display!=="none":!1,ro=e=>!!(e&&e.isConnected&&!e.disabled&&Ip(e));typeof window<"u"&&window.addEventListener("focusin",e=>{const t=e.target;t&&t!==document.body&&!Ac(t)&&(ns=t)},!0);function xh(){requestAnimationFrame(()=>{if(Ac(document.activeElement))return;if(ro(ns)){ns.focus();return}const e=[...document.querySelectorAll("[data-focus-sink]")].find(ro);ro(e)&&e.focus()})}const Op='input, textarea, select, [contenteditable=""], [contenteditable="true"], .xterm',Dp=(e,t)=>{if(!(e instanceof HTMLElement))return!1;const n=e.getBoundingClientRect();return t.clientX-n.left-e.clientLeft>=e.clientWidth||t.clientY-n.top-e.clientTop>=e.clientHeight};function Ap(e){const t=e.target;t instanceof Element&&(t.closest(Op)||Dp(t,e)||e.preventDefault())}const Up={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"})]})},star:{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z"})},"star-filled":{node:u.jsx("path",{d:"m12 3 2.9 5.9 6.6.9-4.8 4.6 1.2 6.5L12 17.8 6.1 20.9l1.2-6.5L2.5 9.8l6.6-.9Z",fill:"currentColor"})},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"})]})},archive:{node:u.jsxs(u.Fragment,{children:[u.jsx("path",{d:"M21 8v13H3V8"}),u.jsx("path",{d:"M1 3h22v5H1z"}),u.jsx("path",{d:"M10 12h4"})]})},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 qn({name:e,size:t=16,strokeWidth:n,className:r,style:l}){const o=Up[e];if(!o)throw new Error(`unknown icon: ${e}`);const s=o.vb||24;return u.jsx("svg",{width:t,height:t,viewBox:`0 0 ${s} ${s}`,fill:o.fill??"none",stroke:o.stroke??"currentColor",strokeWidth:n??o.sw??1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:r,style:l,children:o.node})}function Bp({icon:e,label:t,onClick:n,className:r,size:l,iconClassName:o,...s}){return u.jsx("button",{type:"button",className:r,"data-tip":t,"aria-label":t,onClick:n,...s,children:u.jsx(qn,{name:e,size:l,className:o})})}const Eh=()=>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"})}),Ch=()=>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"})]}),jh=()=>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"})]}),Th=()=>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 Uc(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 Bc=Uc(typeof location<"u"?location.pathname:""),rs=Bc.id,Hp=Bc.base,Vp=(e,t)=>e.startsWith("/api")?t+e:e,Ph=e=>Vp(e,Hp),Wp=(e,t="#/graph")=>`/p/${encodeURIComponent(e)}/${t}`,Hc=()=>"/projects";function Qp(e,t){return Uc(e).id&&(t||"").replace(/^#\/?/,"").split("?")[0].replace(/\/+$/,"")==="projects"?Hc():null}const Kp="is:issue state:open",bs="is:eval",Gp=e=>ti(bs,"scope",e),Nh=e=>ti(bs,"node",e),Vc=/^([A-Za-z][A-Za-z0-9-]*):(.*)$/s,ha=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):e,Wc=e=>/\s/.test(String(e))?`"${e}"`:String(e);function Qc(e){const t=String(e??""),n=[];let r=0;for(;r<t.length;){let l=r;if(/\s/.test(t[r])){for(;l<t.length&&/\s/.test(t[l]);)l++;n.push({ws:!0,raw:t.slice(r,l),start:r,end:l})}else{for(;l<t.length&&!/\s/.test(t[l]);)if(t[l]==='"'){for(l++;l<t.length&&t[l]!=='"';)l++;l<t.length&&l++}else l++;const o=t.slice(r,l),s=Vc.exec(o);n.push(s?{ws:!1,raw:o,start:r,end:l,key:s[1].toLowerCase(),value:ha(s[2])}:{ws:!1,raw:o,start:r,end:l,key:null,value:ha(o)})}r=l}return n}const ei=e=>Qc(e).filter(t=>!t.ws),Kc=e=>e.map(t=>t.raw).join(" "),ma=e=>Kc(ei(e)),Gc=(e,t)=>ma(e)===ma(t),Lh=(e,t)=>{const n=ei(e);for(let r=n.length-1;r>=0;r--)if(n[r].key===t)return n[r].value;return""};function ti(e,t,n){const r=n==null||String(n)===""?null:{ws:!1,raw:`${t}:${Wc(n)}`,key:t,value:String(n)},l=[];let o=!1;for(const s of ei(e)){if(s.key===t){r&&!o&&(l.push(r),o=!0);continue}l.push(s)}return r&&!o&&l.push(r),Kc(l)}const Zp=(e,t)=>{const n=String(e??"").trim();return!n||Gc(n,t)?null:{q:n}},_h=(e,t,n=null)=>{const r=Zp(e,t)||{};return n!=null&&(r.page=String(n)),Object.keys(r).length?r:null},Zc={state:e=>["state",e],concluded:e=>e==="1"?["state","closed"]:null,ok:e=>e==="1"?["state","reviewed"]:null,verdict:e=>["verdict",e],freshness:e=>["freshness",e],kind:e=>e==="all"?null:["evidence",e],store:e=>["store",e],author:e=>["author",e],node:e=>["node",e],filer:e=>["filer",e],live:e=>e==="1"?["session","present"]:null,session:e=>["scope",e]},Yc=e=>Object.keys(Zc).some(t=>(e==null?void 0:e[t])!=null&&e[t]!==""),Yp=e=>/[\s:"]/.test(e)?`"${e.replace(/"/g,"")}"`:e;function Xp(e,t){if(!Yc(t))return null;let n=e;for(const[l,o]of Object.entries(Zc)){const s=t[l];if(s==null||s==="")continue;const i=o(String(s));i&&(n=ti(n,i[0],i[1]))}const r=String(t.q??"").trim();return r&&(n=`${n} ${Yp(r)}`.trim()),n}function $h(e,t,n=[],r={}){const l=String(e??""),o=Math.max(0,Math.min(t??l.length,l.length)),s=Qc(l).find(g=>!g.ws&&g.start<o&&o<=g.end);if(!s)return{start:o,end:o,items:[]};const i=l.slice(s.start,o),a=Vc.exec(i);if(!a){const g=i.toLowerCase();if(!g||g.includes('"'))return{start:s.start,end:s.end,items:[]};const k=n.filter(x=>x.startsWith(g)).slice(0,8).map(x=>({type:"key",key:x,insert:`${x}:`}));return{start:s.start,end:s.end,items:k}}const d=a[1].toLowerCase(),v=a[2].replace(/^"/,"").replace(/"$/,"").toLowerCase(),h=(r[d]||[]).filter(g=>String(g.value).toLowerCase().startsWith(v)&&String(g.value).toLowerCase()!==v).slice(0,8).map(g=>({type:"value",key:d,value:String(g.value),label:g.label||null,insert:`${d}:${Wc(g.value)} `}));return{start:s.start,end:s.end,items:h}}const Xc=["graph","sessions","evals","issues","settings"],va=["q","page"];function qp(e){if(!e)return"";const t=new URLSearchParams;for(const r of va)e[r]!=null&&e[r]!==""&&t.set(r,e[r]);for(const r of Object.keys(e).filter(l=>!va.includes(l)).sort())e[r]!=null&&e[r]!==""&&t.set(r,e[r]);const n=t.toString().replace(/\+/g,"%20");return n?`?${n}`:""}function il(e){const t=(e||"").replace(/^#\/?/,""),n=t.indexOf("?"),r=n>=0?t.slice(0,n):t,l=Object.fromEntries(new URLSearchParams(n>=0?t.slice(n+1):"")),o=r.split("/").filter(Boolean),s=Xc.includes(o[0])?o[0]:"graph",i=(s==="sessions"||s==="evals"||s==="issues")&&o.length>1?o.slice(1).map(decodeURIComponent).join("/"):null;return{page:s,param:i,query:l}}function Jp(e){const r=(e||"").replace(/^#\/?/,"").split("?")[0].split("/").filter(Boolean);if(r[0]!=="sessions"||r[2]!=="eval")return null;const l=decodeURIComponent(r[1]||"");if(!l)return null;const o=r[3]?decodeURIComponent(r[3]):null,s=r.length>4?r.slice(4).map(decodeURIComponent).join("/"):null,i=o&&s?`${o}/${s}`:null;return an("evals",i,{q:i?`scope:${l}`:Gp(l)})}function bp(e){const{page:t,param:n,query:r}=il(e);if(t!=="evals"&&t!=="issues"||!Yc(r))return null;if(n!=null)return an(t,n,r.session?{q:`scope:${r.session}`}:null);const l=t==="issues"?Kp:bs,o=Xp(l,r);return an(t,null,Gc(o,l)?null:{q:o})}function eh(e){const{page:t,param:n,query:r}=il(e);if(t!=="evals"&&t!=="issues"||n!=null||r.page==null||/^[1-9]\d*$/.test(r.page)&&Number.isSafeInteger(Number(r.page)))return null;const{page:l,...o}=r;return an(t,null,o)}const an=(e,t,n=null)=>`#/${e}${t?`/${String(t).split("/").map(encodeURIComponent).join("/")}`:""}${qp(n)}`;function qc(e,t=null,{replace:n=!1,query:r=null}={}){const l=an(e,t,r);window.location.hash!==l&&(n?(window.history.replaceState(null,"",l),window.dispatchEvent(new HashChangeEvent("hashchange"))):window.location.hash=l)}const ga=()=>{const e=Jp(window.location.hash)||bp(window.location.hash)||eh(window.location.hash);return e?(window.history.replaceState(null,"",e),il(e)):il(window.location.hash)};function th(){const[e,t]=_.useState(ga);return _.useEffect(()=>{const n=()=>t(ga());return window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)},[]),e}const lr="spexcode",Mh="gateway",ni=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"}]}]),nh=new Map(ni.map(e=>[e.id,e])),rh=/^[a-z0-9-]+[:/][a-z0-9-]+$/i,Jc=new Map([["rocket","mdi:rocket-launch"],["mdi/rocket-launch","mdi:rocket-launch"],["layers","gateway"],["default","spexcode"]]);Object.freeze(ni.map(e=>e.id));function lh(e,t=lr){const n=typeof e=="string"?e.trim():"";return Jc.get(n)||n||t}function Jn(e){const t=typeof e=="string"?e.trim():"";return nh.get(Jc.get(t)||t)||null}function al(e){return rh.test(typeof e=="string"?e.trim():"")}function oh(e){return Object.entries(e).filter(([t])=>t!=="tag").map(([t,n])=>`${t==="className"?"class":t}="${String(n).replaceAll("&","&").replaceAll('"',""")}"`).join(" ")}function sh(e,t=lr){const n=Jn(e)||Jn(t),r=n.shapes.map(l=>`<${l.tag} ${oh(l)}/>`).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 Ir(e,t=lr){const n=lh(e,t);if(Jn(n))return`data:image/svg+xml,${encodeURIComponent(sh(n,t))}`;if(/^https?:\/\//.test(n))return n;if(al(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 zh=Ir,lo=[{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"}],ih=e=>e.split("-").filter(Boolean).map(t=>{var n;return((n=t[0])==null?void 0:n.toUpperCase())+t.slice(1)}).join(" ");function ya(e,t={}){var o;const n=e.replace("/",":"),[r,l]=n.split(":");return{id:n,label:ih(l),source:((o=t[r])==null?void 0:o.name)||r}}function zn({icon:e,fallback:t=lr,size:n=24,className:r,label:l}){const o=Jn(e);return!o&&al(e)?u.jsx("span",{className:r?`identity-iconify ${r}`:"identity-iconify",style:{width:n,height:n,maskImage:`url("${Ir(e,t)}")`,WebkitMaskImage:`url("${Ir(e,t)}")`},role:l?"img":void 0,"aria-label":l||void 0,"aria-hidden":l?void 0:!0}):o?u.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",className:r,role:l?"img":void 0,"aria-label":l||void 0,"aria-hidden":l?void 0:!0,children:[u.jsx("rect",{x:"1",y:"1",width:"22",height:"22",rx:"5",fill:o.bg}),u.jsx("g",{fill:"none",stroke:o.fg,strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round",children:o.shapes.map(({tag:s,...i},a)=>u.jsx(s,{...i},a))})]}):u.jsx("img",{width:n,height:n,src:Ir(e,t),className:r,alt:l||"","aria-hidden":l?void 0:!0})}function Rh({value:e,onChange:t,label:n,editLabel:r,name:l,fallback:o=lr,disabled:s=!1}){const i=Tl(),[a,d]=_.useState(!1),[v,m]=_.useState(""),[h,g]=_.useState("featured"),[k,x]=_.useState({state:"idle",choices:[]}),N=_.useId(),f=Jn(e),c=lo.find(S=>S.id===h)||lo[0];_.useEffect(()=>{if(!a)return;const S=v.trim(),O=S.length>=2?S:h==="featured"?"":"project";if(!O){x({state:"idle",choices:[]});return}const $=new AbortController;x({state:"loading",choices:[]});const me=setTimeout(async()=>{try{const Fe=new URLSearchParams({query:O,limit:"48"});c.prefixes&&Fe.set("prefixes",c.prefixes);const Be=await fetch(`https://api.iconify.design/search?${Fe}`,{signal:$.signal});if(!Be.ok)throw new Error(`Iconify search answered ${Be.status}`);const Rt=await Be.json();if(!Array.isArray(Rt.icons))throw new Error("Iconify search returned an invalid response");x({state:"ready",choices:Rt.icons.filter(al).map(Pl=>ya(Pl,Rt.collections))})}catch(Fe){Fe.name!=="AbortError"&&x({state:"error",choices:[]})}},220);return()=>{clearTimeout(me),$.abort()}},[a,v,h,c.prefixes]);const p=()=>{d(!1),m(""),g("featured"),x({state:"idle",choices:[]})},y=async S=>{await t(S)!==!1&&p()},E=v.trim().toLowerCase(),P=ni.filter(S=>!E||S.label.toLowerCase().includes(E)||S.id.includes(E)).map(S=>({id:S.id,label:S.label,source:""}));let T=k.state==="ready"?k.choices:h==="featured"?P:[];return al(e)&&!T.some(S=>S.id===e.replace("/",":"))&&(T=[ya(e),...T]),u.jsxs("div",{className:a?"identity-control open":"identity-control",children:[u.jsxs("div",{className:"identity-disclosure",children:[u.jsx(zn,{icon:e,fallback:o,size:26,label:`${n}: ${(f==null?void 0:f.label)||e||o}`}),u.jsx(Bp,{icon:"pencil",label:r,className:"proj-act icon identity-edit",size:13,disabled:s,"aria-expanded":a,"aria-controls":N,onClick:()=>{a?p():d(!0)}})]}),a&&u.jsxs("fieldset",{id:N,className:"identity-picker",disabled:s,children:[u.jsx("legend",{children:n}),u.jsxs("div",{className:"identity-search",children:[u.jsx(qn,{name:"search",size:14}),u.jsx("input",{type:"search",value:v,onChange:S=>m(S.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:lo.map(S=>u.jsx("button",{type:"button",className:h===S.id?"identity-source on":"identity-source","aria-pressed":h===S.id,onClick:()=>g(S.id),children:i(S.label)},S.id))}),u.jsx("div",{className:"identity-options",children:T.map(S=>u.jsxs("label",{className:"identity-choice",children:[u.jsx("input",{type:"radio",name:l,value:S.id,checked:e.replace("/",":")===S.id,onChange:()=>y(S.id)}),u.jsx(zn,{icon:S.id,size:28}),u.jsx("span",{className:"identity-choice-name",children:S.label}),S.source&&u.jsx("span",{className:"identity-choice-source",children:S.source})]},S.id))}),k.state==="loading"&&u.jsx("div",{className:"identity-search-status",role:"status",children:i("projects.iconSearching")}),k.state==="ready"&&!T.length&&u.jsx("div",{className:"identity-search-status",children:i("projects.iconSearchEmpty")}),k.state==="error"&&u.jsx("div",{className:"identity-search-status error",role:"alert",children:i("projects.iconSearchFailed")})]})]})}const ah=Xc.filter(e=>e!=="settings");function wa({page:e,active:t,label:n}){return u.jsx("a",{className:t?"rail-btn on":"rail-btn","data-tip":n,"aria-label":n,"aria-current":t?"page":void 0,href:an(e),children:u.jsx(qn,{name:e,size:18})})}function uh({identity:e,projects:t,gatewayIdentity:n,t:r}){const[l,o]=_.useState(!1),s=_.useRef(null);_.useEffect(()=>{if(!l)return;const a=v=>{var m;(m=s.current)!=null&&m.contains(v.target)||o(!1)},d=v=>{v.key==="Escape"&&(v.stopPropagation(),o(!1))};return document.addEventListener("mousedown",a,!0),window.addEventListener("keydown",d,!0),()=>{document.removeEventListener("mousedown",a,!0),window.removeEventListener("keydown",d,!0)}},[l]);const i=(e==null?void 0:e.title)||rs||"";return u.jsxs("div",{className:"proj-chip-wrap",ref:s,children:[u.jsx("button",{type:"button",className:l?"rail-btn proj-chip on":"rail-btn proj-chip","data-tip":r("nav.projectChip",{name:i}),"aria-label":r("nav.projectChip",{name:i}),"aria-haspopup":t?"menu":void 0,"aria-expanded":t?l:void 0,onClick:()=>{t&&o(a=>!a)},children:u.jsx(zn,{icon:e==null?void 0:e.icon,size:26})}),l&&t&&u.jsxs("div",{className:"proj-menu",role:"menu",children:[t.map(a=>{const d=a.online===!1,v=a.id===rs,m=d?r("nav.projectOffline"):a.online===!0?r("nav.projectOnline"):null,h=`proj-menu-item${v?" current":""}${d?" offline":""}`,g=u.jsxs(u.Fragment,{children:[u.jsx(zn,{icon:a.identity.icon,size:16,className:"proj-menu-mark"}),a.gated&&u.jsx(qn,{name:"lock",size:11}),u.jsx("span",{className:"proj-menu-name",children:a.identity.title}),m&&u.jsx("span",{className:`proj-menu-status ${d?"offline":"online"}`,"aria-hidden":"true",children:m}),v&&u.jsx(qn,{name:"check",size:12})]});return d?u.jsx("div",{role:"menuitem","aria-disabled":"true",className:h,children:g},a.id):u.jsx("a",{role:"menuitem",className:h,href:Wp(a.id),children:g},a.id)}),u.jsxs("a",{role:"menuitem",className:"proj-menu-item all",href:Hc(),children:[u.jsx(zn,{icon:n==null?void 0:n.icon,fallback:"gateway",size:16,className:"proj-menu-mark"}),u.jsx("span",{className:"proj-menu-name",children:r("nav.allProjects")})]})]})]})}function ch({page:e,identity:t,catalog:n}){const r=Tl(),l=(n==null?void 0:n.state)==="ok";return u.jsxs("nav",{className:"side-rail","aria-label":r("nav.railLabel"),onMouseDownCapture:Ap,children:[rs&&u.jsx(uh,{identity:t,projects:l?n.projects:null,gatewayIdentity:l?n.gateway.identity:null,t:r}),ah.map(o=>u.jsx(wa,{page:o,active:e===o,label:r(`nav.${o}`)},o)),u.jsx("div",{className:"rail-spacer"}),u.jsx(wa,{page:"settings",active:e==="settings",label:r("nav.settings")})]})}const dh=400,fh=80,oo=7,so=6;function ph(){const[e,t]=_.useState(null),n=_.useRef(null),r=_.useRef(0),l=_.useRef(null),o=_.useRef(null),s=_.useRef(!1);return _.useEffect(()=>{const i=()=>{r.current&&(clearTimeout(r.current),r.current=0)},a=()=>{i(),l.current=null,o.current&&(o.current.getAttribute("aria-describedby")==="ui-tip"&&o.current.removeAttribute("aria-describedby"),o.current=null),t(N=>(N&&(s.current=!0,setTimeout(()=>{l.current||(s.current=!1)},300)),null))},d=N=>{const f=N.getAttribute("data-tip");!f||!N.isConnected||(l.current=N,N.getAttribute("aria-describedby")||(N.setAttribute("aria-describedby","ui-tip"),o.current=N),t({text:f,anchor:N}))},v=(N,f)=>{l.current!==N&&(i(),l.current=N,r.current=setTimeout(()=>{r.current=0,d(N)},f))},m=N=>{var c,p;const f=(p=(c=N.target).closest)==null?void 0:p.call(c,"[data-tip]");f&&v(f,s.current?fh:dh)},h=N=>{var c,p;const f=(p=(c=N.target).closest)==null?void 0:p.call(c,"[data-tip]");!f||f!==l.current||f.contains(N.relatedTarget)||a()},g=N=>{var p,y;const f=(y=(p=N.target).closest)==null?void 0:y.call(p,"[data-tip]");if(!f)return;let c=!0;try{c=f.matches(":focus-visible")}catch{}c&&(i(),d(f))},k=N=>{var c,p;const f=(p=(c=N.target).closest)==null?void 0:p.call(c,"[data-tip]");f&&f===l.current&&a()},x=N=>{N.key==="Escape"&&a()};return document.addEventListener("pointerover",m,!0),document.addEventListener("pointerout",h,!0),document.addEventListener("focusin",g,!0),document.addEventListener("focusout",k,!0),document.addEventListener("keydown",x,!0),document.addEventListener("pointerdown",a,!0),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{i(),document.removeEventListener("pointerover",m,!0),document.removeEventListener("pointerout",h,!0),document.removeEventListener("focusin",g,!0),document.removeEventListener("focusout",k,!0),document.removeEventListener("keydown",x,!0),document.removeEventListener("pointerdown",a,!0),window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[]),_.useEffect(()=>{const i=n.current;if(!e||!i)return;if(!e.anchor.isConnected){t(null);return}const a=e.anchor.getBoundingClientRect(),d=i.getBoundingClientRect(),v=a.top-d.height-oo>=so?"top":"bottom",m=v==="top"?a.top-d.height-oo:a.bottom+oo,h=Math.min(Math.max(a.left+a.width/2-d.width/2,so),window.innerWidth-d.width-so);i.dataset.place=v,i.style.top=`${Math.round(m)}px`,i.style.left=`${Math.round(h)}px`;const g=i.querySelector(".ui-tip-arrow");g&&(g.style.left=`${Math.round(Math.min(Math.max(a.left+a.width/2-h,10),d.width-10))-4}px`);const k=requestAnimationFrame(()=>i.classList.add("show"));return()=>cancelAnimationFrame(k)},[e]),e?Ic.createPortal(u.jsxs("div",{id:"ui-tip",role:"tooltip",ref:n,className:"ui-tip",children:[e.text,u.jsx("span",{className:"ui-tip-arrow","aria-hidden":"true"})]}),document.body):null}const ka="(max-width: 640px)";function hh(){const[e,t]=_.useState(()=>typeof window<"u"&&window.matchMedia(ka).matches);return _.useEffect(()=>{const n=window.matchMedia(ka),r=()=>t(n.matches);return n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}const mh=_.lazy(()=>jl(()=>import("./App-F9uaAVcH.js").then(e=>e.A),__vite__mapDeps([0,1]))),vh=_.lazy(()=>jl(()=>import("./EvalsPage-FixoOg_n.js"),__vite__mapDeps([2,3,4,1]))),gh=_.lazy(()=>jl(()=>import("./IssuesPage-CuKLFhH3.js"),__vite__mapDeps([5,1,3,4]))),yh=_.lazy(()=>jl(()=>import("./MobileApp-CHgEHORJ.js"),__vite__mapDeps([6,7,3,4,1,8,9])));function Sa(e){try{sessionStorage.setItem("spex.focus",e)}catch{}qc("graph")}const xa=e=>qc("sessions",e);function wh({page:e}){const t=hh(),n=Tl(),r=u.jsx("div",{className:"loading",children:n("hud.loading")});return t?u.jsx(_.Suspense,{fallback:r,children:u.jsx(yh,{specs:[],sessions:[]})}):u.jsxs("div",{className:"app",children:[u.jsx(ph,{}),u.jsx(ch,{page:e,identity:null,catalog:null}),u.jsx("div",{className:"app-main",children:u.jsx("div",{className:`page-pane page-${e}`,children:u.jsx(_.Suspense,{fallback:r,children:e==="evals"?u.jsx(vh,{onOpenSession:xa,onFocusNode:Sa}):u.jsx(gh,{onOpenSession:xa,onFocusNode:Sa})})})})]})}function kh(){const e=Tl(),{page:t,param:n}=th(),r=t==="evals"||t==="issues"&&!n,[l,o]=_.useState(()=>!r);_.useEffect(()=>{r||o(!0)},[r]);const s=r&&!l;return u.jsx(_.Suspense,{fallback:u.jsx("div",{className:"loading",children:e("hud.loading")}),children:s?u.jsx(wh,{page:t}):u.jsx(mh,{})})}const Ea=Qp(location.pathname,location.hash);Ea?location.replace(Ea):io.createRoot(document.getElementById("root")).render(u.jsx(md.StrictMode,{children:u.jsx(Rp,{children:u.jsx(kh,{})})}));export{Rh as A,Fp as B,Eh as C,Mh as D,bs as E,Ch as F,Th as G,qn as I,Sh as L,jh as O,rs as P,md as R,ch as S,ph as T,jl as _,hh as a,lr as b,Lh as c,Ph as d,Bp as e,th as f,an as g,_h as h,zh as i,u as j,Kp as k,bc as l,Ap as m,qc as n,xh as o,$h as p,Zp as q,_ as r,ti as s,Qc as t,Tl as u,Gp as v,Nh as w,il as x,zn as y,Wp as z};
|