vectorforce 0.3.3 → 0.3.7
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/CHANGELOG.md +27 -0
- package/README.md +90 -8
- package/bin/vf.js +140 -93
- package/package.json +1 -1
- package/src/mcp/harness-config.js +346 -75
- package/src/mcp/mcp-server.js +81 -9
- package/src/operations/project-service.js +18 -1
- package/src/studio/server.js +104 -18
- package/studio/dist/assets/{index-C0_eVpV1.js → index-Cizk5468.js} +1 -1
- package/studio/dist/assets/index-w62XkQKM.css +2 -0
- package/studio/dist/index.html +2 -2
- package/studio/dist/assets/index-CxTK-2ty.css +0 -2
|
@@ -6,4 +6,4 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
6
6
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ze=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Re(n):``}function Ve(e,t){switch(e.tag){case 26:case 27:case 5:return Re(e.type);case 16:return Re(`Lazy`);case 13:return e.child!==t&&t!==null?Re(`Suspense Fallback`):Re(`Suspense`);case 19:return Re(`SuspenseList`);case 0:case 15:return Be(e.type,!1);case 11:return Be(e.type.render,!1);case 1:return Be(e.type,!0);case 31:return Re(`Activity`);case 30:return Re(`ViewTransition`);default:return``}}function He(e){try{var t=``,n=null;do t+=Ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
8
|
`+e.stack}}var Ue=Object.prototype.hasOwnProperty,We=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,qe=t.unstable_requestPaint,Je=t.unstable_now,Ye=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Ze=t.unstable_UserBlockingPriority,Qe=t.unstable_NormalPriority,$e=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=t.log,nt=t.unstable_setDisableYieldValue,rt=null,it=null;function at(e){if(typeof tt==`function`&&nt(e),it&&typeof it.setStrictMode==`function`)try{it.setStrictMode(rt,e)}catch{}}var ot=Math.clz32?Math.clz32:lt,st=Math.log,ct=Math.LN2;function lt(e){return e>>>=0,e===0?32:31-(st(e)/ct|0)|0}var ut=256,dt=262144,ft=4194304;function pt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=pt(n))):i=pt(o):i=pt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=pt(n))):i=pt(o)):i=pt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ht(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-ot(n),i=1<<r;t|=e[r],n&=~i}return t}function _t(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vt(){var e=ft;return ft<<=1,!(ft&62914560)&&(ft=4194304),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ot(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&St(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function St(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ot(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function wt(e,t){var n=t&-t;return n=n&42?1:Tt(n),(n&(e.suspendedLanes|t))===0?n:0}function Tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Et(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Dt(){var e=k.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function Ot(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var kt=Math.random().toString(36).slice(2),At=`__reactFiber$`+kt,jt=`__reactProps$`+kt,Mt=`__reactContainer$`+kt,Nt=`__reactEvents$`+kt,Pt=`__reactListeners$`+kt,Ft=`__reactHandles$`+kt,It=`__reactResources$`+kt,j=`__reactMarker$`+kt,Lt=`__reactLoad$`+kt;function Rt(e){delete e[At],delete e[jt],delete e[Pt],delete e[Ft]}function zt(e){var t;if(t=e[At])return t;for(var n=e.parentNode;n;){if(t=n[Mt]||n[At]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[At])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Bt(e){if(e=e[At]||e[Mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ht(e){var t=e[It];return t||=e[It]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ut(e){e[j]=!0}function Wt(e){e[Lt]=void 0}var Gt=new Set,Kt={};function qt(e,t){Jt(e,t),Jt(e+`Capture`,t)}function Jt(e,t){for(Kt[e]=t,e=0;e<t.length;e++)Gt.add(t[e])}var Yt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Xt={},Zt={};function Qt(e){return Ue.call(Zt,e)?!0:Ue.call(Xt,e)?!1:Yt.test(e)?Zt[e]=!0:(Xt[e]=!0,!1)}var M=!1;function $t(){var e=M;return M=!1,e}function en(e,t,n){if(Qt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function tn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function nn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function rn(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function an(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function on(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){if(!e._valueTracker){var t=an(e)?`checked`:`value`;e._valueTracker=on(e,t,``+e[t])}}function cn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=an(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var ln=/[\n"\\]/g;function un(e){return e.replace(ln,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function dn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+rn(t)):e.value!==``+rn(t)&&(e.value=``+rn(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):pn(e,rn(n)):o===`number`&&e.value==t?pn(e,rn(e.value)):pn(e,rn(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+rn(s):e.removeAttribute(`name`)}function fn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){sn(e);return}n=n==null?``:``+rn(n),t=t==null?n:``+rn(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),sn(e)}function pn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function mn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+rn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function hn(e,t,n){t!=null&&(t=``+rn(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+rn(n)}function gn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(Se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=rn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),sn(e)}function _n(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function yn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||vn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function bn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,M=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(yn(e,a,r),M=!0)}else for(var o in t)t.hasOwnProperty(o)&&yn(e,o,t[o])}function xn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Sn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Cn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wn(e){return Cn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Tn(){}var En=null;function Dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var On=null,kn=null;function An(e){var t=Bt(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(dn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+un(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[jt]||null;if(!a)throw Error(i(90));dn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&cn(r)}break a;case`textarea`:hn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}}}var jn=!1;function Mn(e,t,n){if(jn)return e(t,n);jn=!0;try{return e(t)}finally{if(jn=!1,(On!==null||kn!==null)&&(zd(),On&&(t=On,e=kn,kn=On=null,An(t),e)))for(t=0;t<e.length;t++)An(e[t])}}function Nn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[jt]||null;if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Pn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Fn=!1;if(Pn)try{var In={};Object.defineProperty(In,"passive",{get:function(){Fn=!0}}),window.addEventListener(`test`,In,In),window.removeEventListener(`test`,In,In)}catch{Fn=!1}var Ln=null,Rn=null,zn=null;function Bn(){if(zn)return zn;var e,t=Rn,n=t.length,r,i=`value`in Ln?Ln.value:Ln.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return zn=i.slice(e,1<r?1-r:void 0)}function Vn(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 Hn(){return!0}function Un(){return!1}function Wn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Hn:Un,this.isPropagationStopped=Un,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){},isPersistent:Hn}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kn=Wn(Gn),qn=E({},Gn,{view:0,detail:0}),Jn=Wn(qn),Yn,Xn,Zn,Qn=E({},qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,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!==Zn&&(Zn&&e.type===`mousemove`?(Yn=e.screenX-Zn.screenX,Xn=e.screenY-Zn.screenY):Xn=Yn=0,Zn=e),Yn)},movementY:function(e){return`movementY`in e?e.movementY:Xn}}),$n=Wn(Qn),er=Wn(E({},Qn,{dataTransfer:0})),tr=Wn(E({},qn,{relatedTarget:0})),nr=Wn(E({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0})),rr=Wn(E({},Gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),ir=Wn(E({},Gn,{data:0})),ar={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},or={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`},sr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sr[e])?!!t[e]:!1}function lr(){return cr}var ur=Wn(E({},qn,{key:function(e){if(e.key){var t=ar[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Vn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?or[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(e){return e.type===`keypress`?Vn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Vn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),dr=Wn(E({},Qn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),fr=Wn(E({},Gn,{submitter:0})),pr=Wn(E({},qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr})),mr=Wn(E({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),hr=Wn(E({},Qn,{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})),gr=Wn(E({},Gn,{newState:0,oldState:0,source:0})),_r=[9,13,27,32],vr=Pn&&`CompositionEvent`in window,yr=null;Pn&&`documentMode`in document&&(yr=document.documentMode);var br=Pn&&`TextEvent`in window&&!yr,xr=Pn&&(!vr||yr&&8<yr&&11>=yr),Sr=` `,Cr=!1;function wr(e,t){switch(e){case`keyup`:return _r.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Er=!1;function Dr(e,t){switch(e){case`compositionend`:return Tr(t);case`keypress`:return t.which===32?(Cr=!0,Sr):null;case`textInput`:return e=t.data,e===Sr&&Cr?null:e;default:return null}}function Or(e,t){if(Er)return e===`compositionend`||!vr&&wr(e,t)?(e=Bn(),zn=Rn=Ln=null,Er=!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 xr&&t.locale!==`ko`?null:t.data;default:return null}}var kr={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 Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!kr[e.type]:t===`textarea`}function jr(e,t,n,r){On?kn?kn.push(r):kn=[r]:On=r,t=Jf(t,`onChange`),0<t.length&&(n=new Kn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Mr=null,Nr=null;function Pr(e){Vf(e,0)}function Fr(e){if(cn(Vt(e)))return e}function Ir(e,t){if(e===`change`)return t}var Lr=!1;if(Pn){var Rr;if(Pn){var zr=`oninput`in document;if(!zr){var Br=document.createElement(`div`);Br.setAttribute(`oninput`,`return;`),zr=typeof Br.oninput==`function`}Rr=zr}else Rr=!1;Lr=Rr&&(!document.documentMode||9<document.documentMode)}function Vr(){Mr&&(Mr.detachEvent(`onpropertychange`,Hr),Nr=Mr=null)}function Hr(e){if(e.propertyName===`value`&&Fr(Nr)){var t=[];jr(t,Nr,e,Dn(e)),Mn(Pr,t)}}function Ur(e,t,n){e===`focusin`?(Vr(),Mr=t,Nr=n,Mr.attachEvent(`onpropertychange`,Hr)):e===`focusout`&&Vr()}function Wr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Fr(Nr)}function Gr(e,t){if(e===`click`)return Fr(t)}function Kr(e,t){if(e===`input`||e===`change`)return Fr(t)}function qr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Jr=typeof Object.is==`function`?Object.is:qr;function Yr(e,t){if(Jr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)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 i=n[r];if(!Ue.call(t,i)||!Jr(e[i],t[i]))return!1}return!0}function Xr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qr(e,t){var n=Zr(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Zr(n)}}function $r(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$r(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ei(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Xr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Xr(e.document)}return t}function ti(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var ni=Pn&&`documentMode`in document&&11>=document.documentMode,ri=null,ii=null,ai=null,oi=!1;function si(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;oi||ri==null||ri!==Xr(r)||(r=ri,`selectionStart`in r&&ti(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}),ai&&Yr(ai,r)||(ai=r,r=Jf(ii,`onSelect`),0<r.length&&(t=new Kn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ri)))}function ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var li={animationend:ci(`Animation`,`AnimationEnd`),animationiteration:ci(`Animation`,`AnimationIteration`),animationstart:ci(`Animation`,`AnimationStart`),transitionrun:ci(`Transition`,`TransitionRun`),transitionstart:ci(`Transition`,`TransitionStart`),transitioncancel:ci(`Transition`,`TransitionCancel`),transitionend:ci(`Transition`,`TransitionEnd`)},ui={},di={};Pn&&(di=document.createElement(`div`).style,`AnimationEvent`in window||(delete li.animationend.animation,delete li.animationiteration.animation,delete li.animationstart.animation),`TransitionEvent`in window||delete li.transitionend.transition);function fi(e){if(ui[e])return ui[e];if(!li[e])return e;var t=li[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in di)return ui[e]=t[n];return e}var pi=fi(`animationend`),mi=fi(`animationiteration`),hi=fi(`animationstart`),gi=fi(`transitionrun`),_i=fi(`transitionstart`),vi=fi(`transitioncancel`),yi=fi(`transitionend`),bi=new Map,xi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);xi.push(`scrollEnd`);function Si(e,t){bi.set(e,t),qt(t,[e])}var Ci=0;function wi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=bd.identifierPrefix;var n=Ci++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function Ti(e){if(e==null||typeof e==`string`)return e;var t=null,n=Od;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Ei(e,t){return e=Ti(e),t=Ti(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Di=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Oi=[],ki=0,Ai=0;function ji(){for(var e=ki,t=Ai=ki=0;t<e;){var n=Oi[t];Oi[t++]=null;var r=Oi[t];Oi[t++]=null;var i=Oi[t];Oi[t++]=null;var a=Oi[t];if(Oi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Fi(n,i,a)}}function Mi(e,t,n,r){Oi[ki++]=e,Oi[ki++]=t,Oi[ki++]=n,Oi[ki++]=r,Ai|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ni(e,t,n,r){return Mi(e,t,n,r),Ii(e)}function Pi(e,t){return Mi(e,null,null,t),Ii(e)}function Fi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ot(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ii(e){if(50<kd)throw kd=0,Ad=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Li={};function Ri(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.refCleanup=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 zi(e,t,n,r){return new Ri(e,t,n,r)}function Bi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vi(e,t){var n=e.alternate;return n===null?(n=zi(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&1206910976,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.refCleanup=e.refCleanup,n}function Hi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ui(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Bi(r)&&(s=1);else if(typeof r==`string`)s=qm(e,n,Oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case pe:return e=zi(31,n,t,a),e.elementType=pe,e.lanes=o,e;case ie:return Wi(n.children,a,o,t);case D:s=8,a|=24;break;case ae:return e=zi(12,n,t,a|2),e.elementType=ae,e.lanes=o,e;case le:return e=zi(13,n,t,a),e.elementType=le,e.lanes=o,e;case ue:return e=zi(19,n,t,a),e.elementType=ue,e.lanes=o,e;case me:case ge:return e=a|32,e=zi(30,n,t,e),e.elementType=ge,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case se:s=10;break a;case oe:s=9;break a;case ce:s=11;break a;case de:s=14;break a;case fe:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=zi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Wi(e,t,n,r){return e=zi(7,e,r,t),e.lanes=n,e}function Gi(e,t,n){return e=zi(6,e,null,t),e.lanes=n,e}function Ki(e){var t=zi(18,null,null,0);return t.stateNode=e,t}function qi(e,t,n){return t=zi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ji=new WeakMap;function Yi(e,t){if(typeof e==`object`&&e){var n=Ji.get(e);return n===void 0?(t={value:e,source:t,stack:He(t)},Ji.set(e,t),t):n}return{value:e,source:t,stack:He(t)}}var Xi=[],Zi=0,Qi=null,$i=0,ea=[],ta=0,na=null,ra=1,ia=``;function aa(e,t){Xi[Zi++]=$i,Xi[Zi++]=Qi,Qi=e,$i=t}function oa(e,t,n){ea[ta++]=ra,ea[ta++]=ia,ea[ta++]=na,na=e;var r=ra;e=ia;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ra=1<<32-ot(t)+i|n<<i|r,ia=a+e}else ra=1<<a|n<<i|r,ia=e}function sa(e){e.return!==null&&(aa(e,1),oa(e,1,0))}function ca(e){for(;e===Qi;)Qi=Xi[--Zi],Xi[Zi]=null,$i=Xi[--Zi],Xi[Zi]=null;for(;e===na;)na=ea[--ta],ea[ta]=null,ia=ea[--ta],ea[ta]=null,ra=ea[--ta],ea[ta]=null}function la(e,t){ea[ta++]=ra,ea[ta++]=ia,ea[ta++]=na,ra=t.id,ia=t.overflow,na=e}var ua=null,N=null,P=!1,da=null,fa=!1,pa=Error(i(519));function ma(e){throw ba(Yi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),pa}function ha(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[At]=e,t[jt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Q(zf[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),fn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),gn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||ep(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=Tn),t=!0):t=!1,t||ma(e,!0)}function ga(e){for(ua=e.return;ua;)switch(ua.tag){case 5:case 31:case 13:fa=!1;return;case 27:case 3:fa=!0;return;default:ua=ua.return}}function _a(e){if(e!==ua)return!1;if(!P)return ga(e),P=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&N&&ma(e),ga(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));N=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));N=dm(e)}else t===27?(t=N,Sp(e.type)?(e=um,um=null,N=e):N=t):N=ua?lm(e.stateNode.nextSibling):null;return!0}function va(){N=ua=null,P=!1}function ya(){var e=da;return e!==null&&(pd===null?pd=e:pd.push.apply(pd,e),da=null),e}function ba(e){da===null?da=[e]:da.push(e)}var xa=Ee(null),Sa=null,Ca=null;function wa(e,t,n){A(xa,t._currentValue),t._currentValue=n}function Ta(e){e._currentValue=xa.current,De(xa)}function Ea(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Da(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ea(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ea(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Ea(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Oa(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Jr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===je.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}a=a.return}return e!==null&&Da(t,e,n,r),t.flags|=262144,e!==null}function ka(e){for(e=e.firstContext;e!==null;){if(!Jr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){Sa=e,Ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ja(e){return Na(Sa,e)}function Ma(e,t){return Sa===null&&Aa(e),Na(e,t)}function Na(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ca===null){if(e===null)throw Error(i(308));Ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ca=Ca.next=t;return n}var Pa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Fa=t.unstable_scheduleCallback,Ia=t.unstable_NormalPriority,F={$$typeof:se,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function La(){return{controller:new Pa,data:new Map,refCount:0}}function Ra(e){e.refCount--,e.refCount===0&&Fa(Ia,function(){e.controller.abort()})}function za(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ba=null;function Va(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Ha=null,Ua=0,Wa=0,Ga=null;function Ka(e,t){if(Ha===null){var n=Ha=[];Ua=0,Wa=Pf(),Ga={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ua++,t.then(qa,qa),t}function qa(){if(--Ua===0&&(Ba=null,Ha!==null)){Ga!==null&&(Ga.status=`fulfilled`);var e=Ha;Ha=null,Wa=0,Ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ja(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ya=O.S;O.S=function(e,t){if(gd=Je(),typeof t==`object`&&t&&typeof t.then==`function`&&Ka(e,t),Ba!==null)for(var n=bf;n!==null;)za(n,Ba),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)za(r,n),r=r.next;if(Wa!==0){r=Ba,r===null&&(r=Ba=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ya!==null&&Ya(e,t)};var Xa=Ee(null);function Za(){var e=Xa.current;return e===null?G.pooledCache:e}function Qa(e,t){t===null?A(Xa,Xa.current):A(Xa,t.pool)}function $a(){var e=Za();return e===null?null:{parent:F._currentValue,pool:e}}var eo=Error(i(460)),to=Error(i(474)),no=Error(i(542)),ro={then:function(){}};function io(e){return e=e.status,e===`fulfilled`||e===`rejected`}function ao(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Tn,Tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,lo(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(Tn,Tn);else{if(e=G,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,lo(e),e}throw so=t,eo}}function oo(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(so=e,eo):e}}var so=null;function co(){if(so===null)throw Error(i(459));var e=so;return so=null,e}function lo(e){if(e===eo||e===no)throw Error(i(483))}var uo=null,fo=0;function po(e){var t=fo;return fo+=1,uo===null&&(uo=[]),ao(uo,e,t)}function mo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ho(e,t){throw t.$$typeof===te?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function go(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Vi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Gi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===ie?(e=d(e,t,n.props.children,r,n.key),mo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===fe&&oo(i)===t.type)?(t=a(t,n.props),mo(t,n),t.return=e,t):(t=Ui(n.type,n.key,n.props,null,e.mode,r),mo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=qi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Wi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Gi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case ne:return n=Ui(t.type,t.key,t.props,null,e.mode,n),mo(n,t),n.return=e,n;case re:return t=qi(t,e.mode,n),t.return=e,t;case fe:return t=oo(t),f(e,t,n)}if(Se(t)||ye(t))return t=Wi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,po(t),n);if(t.$$typeof===se)return f(e,Ma(e,t),n);ho(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case ne:return n.key===i?l(e,t,n,r):null;case re:return n.key===i?u(e,t,n,r):null;case fe:return n=oo(n),p(e,t,n,r)}if(Se(n)||ye(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,po(n),r);if(n.$$typeof===se)return p(e,t,Ma(e,n),r);ho(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case ne:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case re:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case fe:return r=oo(r),m(e,t,n,r,i)}if(Se(r)||ye(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,po(r),i);if(r.$$typeof===se)return m(e,t,n,Ma(t,r),i);ho(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),P&&aa(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return P&&aa(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),P&&aa(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),P&&aa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return P&&aa(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),P&&aa(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ie&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ne:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ie){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),mo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===fe&&oo(l)===r.type){n(e,r.sibling),c=a(r,o.props),mo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ie?(c=Wi(o.props.children,e.mode,c,o.key),mo(c,o),c.return=e,e=c):(c=Ui(o.type,o.key,o.props,null,e.mode,c),mo(c,o),c.return=e,e=c)}return s(e);case re:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=qi(o,e.mode,c),c.return=e,e=c}return s(e);case fe:return o=oo(o),_(e,r,o,c)}if(Se(o))return h(e,r,o,c);if(ye(o)){if(l=ye(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,po(o),c);if(o.$$typeof===se)return _(e,r,Ma(e,o),c);ho(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Gi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{fo=0;var i=_(e,t,n,r);return uo=null,i}catch(t){if(t===eo||t===no)throw t;var a=zi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var _o=go(!0),vo=go(!1),yo=!1;function bo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function So(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Co(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ii(e),Fi(e,null,n),t}return Mi(e,r,t,n),Ii(e)}function wo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}function To(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Eo=!1;function Do(){if(Eo){var e=Ga;if(e!==null)throw e}}function Oo(e,t,n,r){Eo=!1;var i=e.updateQueue;yo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(q&f)===f:(r&f)===f){f!==0&&f===Wa&&(Eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=E({},d,f);break a;case 2:yo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),sd|=o,e.lanes=o,e.memoizedState=d}}function ko(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ao(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ko(n[e],t)}var jo=Ee(null),Mo=Ee(0);function No(e,t){e=od,A(Mo,e),A(jo,t),od=e|t.baseLanes}function Po(){A(Mo,od),A(jo,jo.current)}function Fo(){od=Mo.current,De(jo),De(Mo)}var Io=Ee(null),Lo=null;function Ro(e){var t=e.alternate;A(Uo,Uo.current&1),A(Io,e),Lo===null&&(t===null||jo.current!==null||t.memoizedState!==null)&&(Lo=e)}function zo(e){A(Uo,Uo.current),A(Io,e),Lo===null&&(Lo=e)}function Bo(e){e.tag===22?(A(Uo,Uo.current),A(Io,e),Lo===null&&(Lo=e)):Vo()}function Vo(){A(Uo,Uo.current),A(Io,Io.current)}function Ho(e){De(Io),Lo===e&&(Lo=null),De(Uo)}var Uo=Ee(0);function Wo(e,t){A(Io,Io.current),A(Uo,t)}function Go(e){De(Uo),De(Io),Lo===e&&(Lo=null)}function Ko(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qo=0,I=null,L=null,R=null,Jo=!1,Yo=!1,Xo=!1,Zo=0,Qo=0,$o=null,es=0;function z(){throw Error(i(321))}function ts(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jr(e[n],t[n]))return!1;return!0}function ns(e,t,n,r,i,a){return qo=a,I=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?vc:yc,Xo=!1,a=n(r,i),Xo=!1,Yo&&(a=is(t,n,r,i)),rs(e),a}function rs(e){O.H=_c;var t=L!==null&&L.next!==null;if(qo=0,R=L=I=null,Jo=!1,Qo=0,$o=null,t)throw Error(i(300));e===null||Ic||(e=e.dependencies,e!==null&&ka(e)&&(Ic=!0))}function is(e,t,n,r){I=e;var a=0;do{if(Yo&&($o=null),Qo=0,Yo=!1,25<=a)throw Error(i(301));if(a+=1,R=L=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=bc,o=t(n,r)}while(Yo);return o}function as(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?ds(t):t,e=e.useState()[0],(L===null?null:L.memoizedState)!==e&&(I.flags|=1024),t}function os(){var e=Zo!==0;return Zo=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cs(e){if(Jo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jo=!1}qo=0,R=L=I=null,Yo=!1,Qo=Zo=0,$o=null}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return R===null?I.memoizedState=R=e:R=R.next=e,R}function B(){if(L===null){var e=I.alternate;e=e===null?null:e.memoizedState}else e=L.next;var t=R===null?I.memoizedState:R.next;if(t!==null)R=t,L=e;else{if(e===null)throw I.alternate===null?Error(i(467)):Error(i(310));L=e,e={memoizedState:L.memoizedState,baseState:L.baseState,baseQueue:L.baseQueue,queue:L.queue,next:null},R===null?I.memoizedState=R=e:R=R.next=e}return R}function us(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ds(e){var t=Qo;return Qo+=1,$o===null&&($o=[]),e=ao($o,e,t),t=I,(R===null?t.memoizedState:R.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?vc:yc),e}function fs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ds(e);if(e.$$typeof===_e)return;if(e.$$typeof===se)return ja(e)}throw Error(i(438,String(e)))}function ps(e){var t=null,n=I.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=I.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=us(),I.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=he;return t.index++,n}function ms(e,t){return typeof t==`function`?t(e):t}function hs(e){return gs(B(),L,e)}function gs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(qo&f)===f:(q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Wa&&(d=!0);else if((qo&p)===p){u=u.next,p===Wa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,I.lanes|=p,sd|=p;f=u.action,Xo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,I.lanes|=f,sd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Jr(o,e.memoizedState)&&(Ic=!0,d&&(n=Ga,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function _s(e){var t=B(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Jr(o,t.memoizedState)||(Ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vs(e,t,n){var r=I,a=B(),o=P;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Jr((L||a).memoizedState,n);if(s&&(a.memoizedState=n,Ic=!0),a=a.queue,Us(xs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||R!==null&&!!(R.memoizedState.tag&1),Rs(e?9:8,{destroy:void 0},bs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,G===null)throw Error(i(349));o||qo&127||ys(r,t,n)}return n}function ys(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=I.updateQueue,t===null?(t=us(),I.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function bs(e,t,n,r){t.value=n,t.getSnapshot=r,Ss(t)&&Cs(e)}function xs(e,t,n){return n(function(){Ss(t)&&Cs(e)})}function Ss(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jr(e,n)}catch{return!0}}function Cs(e){var t=Pi(e,2);t!==null&&Pd(t,e,2)}function ws(e){var t=ls();if(typeof e==`function`){var n=e;if(e=n(),Xo){at(!0);try{n()}finally{at(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:e},t}function Ts(e,t,n,r){return e.baseState=n,gs(e,L,typeof r==`function`?r:ms)}function Es(e,t,n,r,a){if(mc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ds(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ds(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};o.types=a===null?null:a.types,O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Os(e,t,s)}catch(n){As(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Os(e,t,a)}catch(n){As(e,t,n)}}function Os(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){ks(e,t,n)},function(n){return As(e,t,n)}):ks(e,t,n)}function ks(e,t,n){t.status=`fulfilled`,t.value=n,js(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ds(e,n)))}function As(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,js(t),t=t.next;while(t!==r)}e.action=null}function js(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ms(e,t){return t}function Ns(e,t){if(P){var n=G.formState;if(n!==null){a:{var r=I;if(P){if(N){b:{for(var i=N,a=fa;i.nodeType!==8;)if(!a||(i=lm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){N=lm(i.nextSibling),r=i.data===`F!`;break a}}ma(r)}r=!1}r&&(t=n[0])}}return n=ls(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ms,lastRenderedState:t},n.queue=r,n=dc.bind(null,I,r),r.dispatch=n,r=ws(!1),a=pc.bind(null,I,!1,r.queue),r=ls(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Es.bind(null,I,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ps(e){return Fs(B(),L,e)}function Fs(e,t,n){if(t=gs(e,t,Ms)[0],e=hs(ms)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ds(t)}catch(e){throw e===eo?no:e}else r=t;t=B();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(I.flags|=2048,Rs(9,{destroy:void 0},Is.bind(null,i,n),null)),[r,a,e]}function Is(e,t){e.action=t}function Ls(e){var t=B(),n=L;if(n!==null)return Fs(t,n,e);B(),t=t.memoizedState,n=B();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=I.updateQueue,t===null&&(t=us(),I.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function zs(){return B().memoizedState}function Bs(e,t,n,r){var i=ls();I.flags|=e,i.memoizedState=Rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function Vs(e,t,n,r){var i=B();r=r===void 0?null:r;var a=i.memoizedState.inst;L!==null&&r!==null&&ts(r,L.memoizedState.deps)?i.memoizedState=Rs(t,a,n,r):(I.flags|=e,i.memoizedState=Rs(1|t,a,n,r))}function Hs(e,t){Bs(8390656,8,e,t)}function Us(e,t){Vs(2048,8,e,t)}function Ws(e){I.flags|=4;var t=I.updateQueue;if(t===null)t=us(),I.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Gs(e){var t=B().memoizedState;return Ws({ref:t,nextImpl:e}),function(){if(W&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ks(e,t){return Vs(4,2,e,t)}function qs(e,t){return Vs(4,4,e,t)}function Js(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ys(e,t,n){n=n==null?null:n.concat([e]),Vs(4,4,Js.bind(null,t,e),n)}function Xs(){}function Zs(e,t){var n=B();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ts(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=B();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ts(t,r[1]))return r[0];if(r=e(),Xo){at(!0);try{e()}finally{at(!1)}}return n.memoizedState=[r,t],r}function $s(e,t,n){return n===void 0||qo&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=Md(),I.lanes|=e,sd|=e,n)}function ec(e,t,n,r){return Jr(n,t)?n:jo.current===null?!(qo&106)||qo&1073741824&&!(q&261930)?(Ic=!0,e.memoizedState=n):(e=Md(),I.lanes|=e,sd|=e,t):(e=$s(e,n,r),Jr(e,t)||(Ic=!0),e)}function tc(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};s.types=o===null?null:o.types,O.T=s,pc(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?fc(e,t,Ja(c,r),jd(e)):fc(e,t,r,jd(e))}catch(n){fc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function nc(){}function rc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ic(e).queue;tc(e,a,t,Ce,n===null?nc:function(){return ac(e),n(r)})}function ic(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ce,baseState:Ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:Ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ms,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ac(e){var t=ic(e);t.next===null&&(t=e.alternate.memoizedState),fc(e,t.next.queue,{},jd())}function oc(){return ja(sh)}function sc(){return B().memoizedState}function cc(){return B().memoizedState}function lc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=So(n);var r=Co(t,e,n);r!==null&&(Pd(r,t,n),wo(r,t,n)),t={cache:La()},e.payload=t;return}t=t.return}}function uc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mc(e)?hc(t,n):(n=Ni(e,t,n,r),n!==null&&(Pd(n,e,r),gc(n,t,r)))}function dc(e,t,n){fc(e,t,n,jd())}function fc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mc(e))hc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Jr(s,o))return Mi(e,t,i,0),G===null&&ji(),!1}catch{}if(n=Ni(e,t,i,r),n!==null)return Pd(n,e,r),gc(n,t,r),!0}return!1}function pc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},mc(e)){if(t)throw Error(i(479))}else t=Ni(e,n,r,2),t!==null&&Pd(t,e,2)}function mc(e){var t=e.alternate;return e===I||t!==null&&t===I}function hc(e,t){Yo=Jo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}var _c={readContext:ja,use:fs,useCallback:z,useContext:z,useEffect:z,useImperativeHandle:z,useLayoutEffect:z,useInsertionEffect:z,useMemo:z,useReducer:z,useRef:z,useState:z,useDebugValue:z,useDeferredValue:z,useTransition:z,useSyncExternalStore:z,useId:z,useHostTransitionStatus:z,useFormState:z,useActionState:z,useOptimistic:z,useMemoCache:z,useCacheRefresh:z,useEffectEvent:z},vc={readContext:ja,use:fs,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:ja,useEffect:Hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Bs(4194308,4,Js.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bs(4194308,4,e,t)},useInsertionEffect:function(e,t){Bs(4,2,e,t)},useMemo:function(e,t){var n=ls();t=t===void 0?null:t;var r=e();if(Xo){at(!0);try{e()}finally{at(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ls();if(n!==void 0){var i=n(t);if(Xo){at(!0);try{n(t)}finally{at(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=uc.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:function(e){e=ws(e);var t=e.queue,n=dc.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Xs,useDeferredValue:function(e,t){return $s(ls(),e,t)},useTransition:function(){var e=ws(!1);return e=tc.bind(null,I,e.queue,!0,!1),ls().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,a=ls();if(P){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),G===null)throw Error(i(349));q&127||ys(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Hs(xs.bind(null,r,o,e),[e]),r.flags|=2048,Rs(9,{destroy:void 0},bs.bind(null,r,o,n,t),null),n},useId:function(){var e=ls(),t=G.identifierPrefix;if(P){var n=ia,r=ra;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Zo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=es++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e){var t=ls();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=pc.bind(null,I,!0,n),n.dispatch=t,[e,t]},useMemoCache:ps,useCacheRefresh:function(){return ls().memoizedState=lc.bind(null,I)},useEffectEvent:function(e){var t=ls(),n={impl:e};return t.memoizedState=n,function(){if(W&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},yc={readContext:ja,use:fs,useCallback:Zs,useContext:ja,useEffect:Us,useImperativeHandle:Ys,useInsertionEffect:Ks,useLayoutEffect:qs,useMemo:Qs,useReducer:hs,useRef:zs,useState:function(){return hs(ms)},useDebugValue:Xs,useDeferredValue:function(e,t){return ec(B(),L.memoizedState,e,t)},useTransition:function(){var e=hs(ms)[0],t=B().memoizedState;return[typeof e==`boolean`?e:ds(e),t]},useSyncExternalStore:vs,useId:sc,useHostTransitionStatus:oc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){return Ts(B(),L,e,t)},useMemoCache:ps,useCacheRefresh:cc,useEffectEvent:Gs},bc={readContext:ja,use:fs,useCallback:Zs,useContext:ja,useEffect:Us,useImperativeHandle:Ys,useInsertionEffect:Ks,useLayoutEffect:qs,useMemo:Qs,useReducer:_s,useRef:zs,useState:function(){return _s(ms)},useDebugValue:Xs,useDeferredValue:function(e,t){var n=B();return L===null?$s(n,e,t):ec(n,L.memoizedState,e,t)},useTransition:function(){var e=_s(ms)[0],t=B().memoizedState;return[typeof e==`boolean`?e:ds(e),t]},useSyncExternalStore:vs,useId:sc,useHostTransitionStatus:oc,useFormState:Ls,useActionState:Ls,useOptimistic:function(e,t){var n=B();return L===null?(n.baseState=e,[e,n.queue.dispatch]):Ts(n,L,e,t)},useMemoCache:ps,useCacheRefresh:cc,useEffectEvent:Gs};function xc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:E({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jd(),i=So(r);i.payload=t,n!=null&&(i.callback=n),t=Co(e,i,r),t!==null&&(Pd(t,e,r),wo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jd(),i=So(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Co(e,i,r),t!==null&&(Pd(t,e,r),wo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jd(),r=So(n);r.tag=2,t!=null&&(r.callback=t),t=Co(e,r,n),t!==null&&(Pd(t,e,n),wo(t,e,n))}};function Cc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Yr(n,r)||!Yr(i,a):!0}function wc(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&&Sc.enqueueReplaceState(t,t.state,null)}function Tc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=E({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ec(e){Di(e)}function Dc(e){console.error(e)}function Oc(e){Di(e)}function kc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ac(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function jc(e,t,n){return n=So(n),n.tag=3,n.payload={element:null},n.callback=function(){kc(e,t)},n}function Mc(e){return e=So(e),e.tag=3,e}function Nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ac(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ac(t,n,r),typeof i!=`function`&&(yd===null?yd=new Set([this]):yd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Pc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Oa(t,n,a,!0),n=Io.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Lo===null?Kd():n.alternate===null&&Y===0&&(Y=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ro?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,a)),!1;case 22:return n.flags|=65536,r===ro?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),mf(e,r,a)),!1}throw Error(i(435,n.tag))}return mf(e,r,a),Kd(),!1}if(P)return t=Io.current,t===null?(r!==pa&&(t=Error(i(423),{cause:r}),ba(Yi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Yi(r,n),a=jc(e.stateNode,r,a),To(e,a),Y!==4&&(Y=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==pa&&(e=Error(i(422),{cause:r}),ba(Yi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Yi(o,n),fd===null?fd=[o]:fd.push(o),Y!==4&&(Y=2),t===null)return!0;r=Yi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=jc(n.stateNode,r,e),To(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(yd===null||!yd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Mc(a),Nc(a,e,n,r),To(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Fc=Error(i(461)),Ic=!1;function Lc(e,t,n,r){t.child=e===null?vo(t,null,n,r):_o(t,e.child,n,r)}function Rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Aa(t),r=ns(e,t,n,o,a,i),s=os(),e!==null&&!Ic?(ss(e,t,i),fl(e,t,i)):(P&&s&&sa(t),t.flags|=1,Lc(e,t,r,i),t.child)}function zc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Bi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Bc(e,t,a,r,i)):(e=Ui(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!pl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Yr:n,n(o,r)&&e.ref===t.ref)return fl(e,t,i)}return t.flags|=1,e=Vi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Bc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Yr(a,r)&&e.ref===t.ref){if(Ic=!1,t.pendingProps=r=a,pl(e,i))e.flags&131072&&(Ic=!0);else return t.lanes=e.lanes,fl(e,t,i)}}return Jc(e,t,n,r,i)}function Vc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Qa(t,a===null?null:a.cachePool),a===null?Po():No(t,a),Bo(t);else return r=t.lanes=536870912,Uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Qa(t,null),Po(),Vo()):(Qa(t,a.cachePool),No(t,a),Vo(),t.memoizedState=null);return Lc(e,t,i,n),t.child}function Hc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Uc(e,t,n,r,i){var a=Za();return a=a===null?null:{parent:F._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Qa(t,null),Po(),Bo(t),e!==null&&Oa(e,t,r,!0),t.childLanes=i,null}function Wc(e,t){return t=rl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gc(e,t,n){return _o(t,e.child,null,n),e=Wc(t,t.pendingProps),e.flags|=2,Ho(t),t.memoizedState=null,e}function Kc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(P){if(r.mode===`hidden`)return e=Wc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Hc(null,e);if(zo(t),(e=N)?(e=am(e,fa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:na===null?null:{id:ra,overflow:ia},retryLane:536870912,hydrationErrors:null},n=Ki(e),n.return=t,t.child=n,ua=t,N=null)):e=null,e===null)throw ma(t);return t.lanes=536870912,null}return Wc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(zo(t),a){if(t.flags&256)t.flags&=-257,t=Gc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Ic||Oa(e,t,n,!1),a=(n&e.childLanes)!==0,Ic||a){if(jo.current===null){if(r=G,r!==null&&(s=wt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Pi(e,s),Pd(r,e,s),Fc;Kd()}t=Gc(e,t,n)}else e=o.treeContext,N=lm(s.nextSibling),ua=t,P=!0,da=null,fa=!1,e!==null&&la(t,e),t=Wc(t,r),t.flags|=134221824;return t}return e=Vi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Jc(e,t,n,r,i){return Aa(t),n=ns(e,t,n,r,void 0,i),r=os(),e!==null&&!Ic?(ss(e,t,i),fl(e,t,i)):(P&&r&&sa(t),t.flags|=1,Lc(e,t,n,i),t.child)}function Yc(e,t,n,r,i,a){return Aa(t),t.updateQueue=null,n=is(t,r,n,i),rs(e),r=os(),e!==null&&!Ic?(ss(e,t,a),fl(e,t,a)):(P&&r&&sa(t),t.flags|=1,Lc(e,t,n,a),t.child)}function Xc(e,t,n,r,i){if(Aa(t),t.stateNode===null){var a=Li,o=n.contextType;typeof o==`object`&&o&&(a=ja(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Sc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},bo(t),o=n.contextType,a.context=typeof o==`object`&&o?ja(o):Li,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(xc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Sc.enqueueReplaceState(a,a.state,null),Oo(t,r,a,i),Do(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Tc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Li,typeof u==`object`&&u&&(o=ja(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&wc(t,a,r,o),yo=!1;var f=t.memoizedState;a.state=f,Oo(t,r,a,i),Do(),l=t.memoizedState,s||f!==l||yo?(typeof d==`function`&&(xc(t,n,d,r),l=t.memoizedState),(c=yo||Cc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,xo(e,t),o=t.memoizedProps,u=Tc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Li,typeof l==`object`&&l&&(c=ja(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&wc(t,a,r,c),yo=!1,f=t.memoizedState,a.state=f,Oo(t,r,a,i),Do();var p=t.memoizedState;o!==d||f!==p||yo||e!==null&&e.dependencies!==null&&ka(e.dependencies)?(typeof s==`function`&&(xc(t,n,s,r),p=t.memoizedState),(u=yo||Cc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ka(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,qc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=_o(t,e.child,null,i),t.child=_o(t,null,n,i)):Lc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=fl(e,t,i),e}function Zc(e,t,n,r){return va(),t.flags|=256,Lc(e,t,n,r),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $c(e){return{baseLanes:e,cachePool:$a()}}function el(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ud),e}function tl(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Uo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(P){if(i?Ro(t):Vo(),(e=N)?(e=am(e,fa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:na===null?null:{id:ra,overflow:ia},retryLane:536870912,hydrationErrors:null},n=Ki(e),n.return=t,t.child=n,ua=t,N=null)):e=null,e===null)throw ma(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Vo(),i=t.mode,a=rl({mode:`hidden`,children:a},i),r=Wi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=$c(n),r.childLanes=el(e,o,n),t.memoizedState=Qc,Hc(null,r)):(Ro(t),nl(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return al(e,t,a,o,r,c,s,n)}return i?(Vo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Vi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Wi(i,a,n,null),i.flags|=2):i=Vi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Hc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=$c(n):(a=i.cachePool,a===null?a=$a():(s=F._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=el(e,o,n),t.memoizedState=Qc,Hc(e.child,r)):(Ro(t),n=e.child,e=n.sibling,n=Vi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function nl(e,t){return t=rl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function rl(e,t){return e=zi(22,e,null,t),e.lanes=0,e}function il(e,t,n){return _o(t,e.child,null,n),e=nl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function al(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Ro(t),t.flags&=-257,il(e,t,c)):t.memoizedState===null?(Vo(),o=a.fallback,s=t.mode,a=rl({mode:`visible`,children:a.children},s),o=Wi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,_o(t,e.child,null,c),a=t.child,a.memoizedState=$c(c),a.childLanes=el(e,r,c),t.memoizedState=Qc,Hc(null,a)):(Vo(),t.child=e.child,t.flags|=128,null);if(Ro(t),sm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,ba({value:a,source:null,stack:null})),il(e,t,c)}if(Ic||Oa(e,t,c,!1),r=(c&e.childLanes)!==0,Ic||r){if(jo.current!==null)return il(e,t,c);if(r=G,r!==null&&(a=wt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Pi(e,a),Pd(r,e,a),Fc;return om(o)||Kd(),il(e,t,c)}return om(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,N=lm(o.nextSibling),ua=t,P=!0,da=null,fa=!1,e!==null&&la(t,e),t=nl(t,a.children),t.flags|=134221824,t)}function ol(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ea(e.return,t,n)}function sl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ko(n)===null&&(t=e),e=e.sibling}return t}function cl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function ll(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function ul(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Uo.current;if(t.flags&128)return Wo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Wo(t,o),i===`backwards`&&e!==null?(ll(e),Lc(e,t,r,n),ll(e)):Lc(e,t,r,n),r=P?$i:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ol(e,n,t);else if(e.tag===19)ol(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=sl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,ll(t)),cl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ko(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cl(t,!0,n,null,a,r);break;case`together`:cl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=sl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cl(t,!1,i,n,a,r)}return t.child}function dl(e,t,n){var r=t.pendingProps;return wa(t,t.type,r.value),Lc(e,t,r.children,n),t.child}function fl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Oa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Vi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ka(e)))}function ml(e,t,n){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),wa(t,F,e.memoizedState.cache),va();break;case 27:case 5:Pe(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,zo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Ro(t),t.flags|=128,null;r=Oa(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?tl(e,t,n):(Ro(t),e=fl(e,t,n),e===null?null:e.sibling)}Ro(t);break;case 19:if(t.flags&128)return ul(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Oa(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return ul(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Wo(t,Uo.current),r)break;return null;case 22:return t.lanes=0,Vc(e,t,n,t.pendingProps);case 24:wa(t,F,e.memoizedState.cache)}return fl(e,t,n)}function hl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Ic=!0;else{if(!pl(e,n)&&!(t.flags&128))return Ic=!1,ml(e,t,n);Ic=!!(e.flags&131072)}}else Ic=!1,P&&t.flags&1048576&&oa(t,$i,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=oo(t.elementType),t.type=e,typeof e==`function`)Bi(e)?(r=Tc(e,r),t.tag=1,t=Xc(null,t,e,r,n)):(t.tag=0,t=Jc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===ce){t.tag=11,t=Rc(null,t,e,r,n);break a}if(a===de){t.tag=14,t=zc(null,t,e,r,n);break a}if(a===se){t.tag=10,t.type=e,t=dl(null,t,n);break a}}throw t=xe(e)||e,Error(i(306,t,``))}}return t;case 0:return Jc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Tc(r,t.pendingProps),Xc(e,t,r,a,n);case 3:a:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,xo(e,t),Oo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,wa(t,F,r),r!==o.cache&&Da(t,[F],n,!0),Do(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Zc(e,t,r,n);break a}if(r!==a){a=Yi(Error(i(424)),t),ba(a),t=Zc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(N=lm(e.firstChild),ua=t,P=!0,da=null,fa=!0,n=vo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(va(),r===a){t=fl(e,t,n);break a}Lc(e,t,r,n)}t=t.child}return t;case 26:return qc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:P||(t.stateNode=fp(t.type,t.pendingProps,Ae.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pe(t),e===null&&P&&(r=t.stateNode=hm(t.type,t.pendingProps,Ae.current),ua=t,fa=!0,a=N,Sp(t.type)?(um=a,N=lm(r.firstChild)):N=a),Lc(e,t,t.pendingProps.children,n),qc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&P&&((a=r=N)&&(r=rm(r,t.type,t.pendingProps,fa),r===null?a=!1:(t.stateNode=r,ua=t,N=lm(r.firstChild),fa=!1,a=!0)),a||ma(t)),Pe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,pp(a,o)?r=null:s!==null&&pp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=ns(e,t,as,null,null,n),sh._currentValue=a),qc(e,t),Lc(e,t,r,n),t.child;case 6:return e===null&&P&&((e=n=N)&&(n=im(n,t.pendingProps,fa),n===null?e=!1:(t.stateNode=n,ua=t,N=null,e=!0)),e||ma(t)),null;case 13:return tl(e,t,n);case 4:return Me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_o(t,null,r,n):Lc(e,t,r,n),t.child;case 11:return Rc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,qc(e,t),Lc(e,t,r,n),t.child;case 8:return Lc(e,t,t.pendingProps.children,n),t.child;case 12:return Lc(e,t,t.pendingProps.children,n),t.child;case 10:return dl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Aa(t),a=ja(a),r=r(a),t.flags|=1,Lc(e,t,r,n),t.child;case 14:return zc(e,t,t.type,t.pendingProps,n);case 15:return Bc(e,t,t.type,t.pendingProps,n);case 19:return ul(e,t,n);case 31:return Kc(e,t,n);case 22:return Vc(e,t,n,t.pendingProps);case 24:return Aa(t),r=ja(F),e===null?(a=Za(),a===null&&(a=G,o=La(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},bo(t),wa(t,F,a)):((e.lanes&n)!==0&&(xo(e,t),Oo(t,null,null,n),Do()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,wa(t,F,r),r!==a.cache&&Da(t,[F],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),wa(t,F,r))),Lc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:P&&sa(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:qc(e,t),Lc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function gl(e){e.flags|=4}function _l(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Ud())e.flags|=8192;else throw so=ro,to}}else e.flags&=-16777217}function vl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Ud())e.flags|=8192;else throw so=ro,to}}function yl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:vt(),e.lanes|=t,dd|=t)}function bl(e,t){if(!P)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function V(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function xl(e,t,n){var r=t.pendingProps;switch(ca(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return V(t),null;case 1:return V(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ta(F),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_a(t)?gl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ya())),V(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(gl(t),o===null?(V(t),_l(t,a,null,r,n)):(V(t),vl(t,o))):o?o===e.memoizedState?(V(t),t.flags&=-16777217):(gl(t),V(t),vl(t,o)):(e=e.memoizedProps,e!==r&&gl(t),V(t),_l(t,a,e,r,n)),null;case 27:if(Fe(t),n=Ae.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return V(t),t.subtreeFlags&=-33554433,null}e=Oe.current,_a(t)?ha(t,e):(e=hm(a,r,n),t.stateNode=e,gl(t))}return V(t),t.subtreeFlags&=-33554433,null;case 5:if(Fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return V(t),t.subtreeFlags&=-33554433,null}if(o=Oe.current,_a(t))ha(t,o);else{var s=lp(Ae.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[At]=t,o[jt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(np(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&gl(t)}}return V(t),t.subtreeFlags&=-33554433,_l(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&gl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=Ae.current,_a(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ua,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[At]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ma(t,!0)}else e=lp(e).createTextNode(r),e[At]=t,t.stateNode=e}return V(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=_a(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[At]=t}else va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),e=!1}else n=ya(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ho(t),t):(Ho(t),null);if(t.flags&128)throw Error(i(558))}return V(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=_a(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[At]=t}else va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;V(t),a=!1}else a=ya(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ho(t),t):(Ho(t),null)}return Ho(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),yl(t,t.updateQueue),V(t),null);case 4:return Ne(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,V(t),null;case 10:return Ta(t.type),V(t),null;case 19:if(Go(t),r=t.memoizedState,r===null)return V(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)bl(r,!1);else{if(Y!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ko(e),o!==null){for(t.flags|=128,bl(r,!1),e=o.updateQueue,t.updateQueue=e,yl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hi(n,e),n=n.sibling;return Wo(t,Uo.current&1|2),P&&aa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Je()>_d&&(t.flags|=128,a=!0,bl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Ko(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,yl(t,e),bl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!P)return V(t),null}else 2*Je()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,bl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Je(),e.sibling=null,o=Uo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||P?Wo(t,o):(n=o,A(Io,t),A(Uo,n),Lo===null&&(Lo=t)),P&&aa(t,r.treeForkCount),e}return V(t),null;case 22:case 23:return Ho(t),Fo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(V(t),t.subtreeFlags&6&&(t.flags|=8192)):V(t),n=t.updateQueue,n!==null&&yl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&De(Xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ta(F),V(t),null;case 25:return null;case 30:return t.flags|=33554432,V(t),null}throw Error(i(156,t.tag))}function Sl(e,t){switch(ca(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ta(F),Ne(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 31:if(t.memoizedState!==null){if(Ho(t),t.alternate===null)throw Error(i(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ho(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Go(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ne(),null;case 10:return Ta(t.type),null;case 22:case 23:return Ho(t),Fo(),e!==null&&De(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ta(F),null;case 25:return null;default:return null}}function Cl(e,t){switch(ca(t),t.tag){case 3:Ta(F),Ne();break;case 26:case 27:case 5:Fe(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&Ho(t);break;case 13:Ho(t);break;case 19:Go(t);break;case 10:Ta(t.type);break;case 22:case 23:Ho(t),Fo(),e!==null&&De(Xa);break;case 24:Ta(F)}}function wl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Tl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function El(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ao(t,n)}catch(t){Z(e,e.return,t)}}}function Dl(e,t,n){n.props=Tc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Ol(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=wi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function Al(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)em(e.stateNode,t[n])}function jl(e){for(var t=e.return;t!==null&&(Pl(t)&&em(e.stateNode,t.stateNode),!Nl(t));)t=t.return}function Ml(e){for(var t=e.return;t!==null&&(Pl(t)&&tm(e.stateNode,t.stateNode),!Nl(t));)t=t.return}function Nl(e){return e.tag===5||e.tag===3||e.tag===27}function Pl(e){return e&&e.tag===7&&e.stateNode!==null}function Fl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Il(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[jt]=t}catch(t){Z(e,e.return,t)}}function Ll(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Rl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ll(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Sp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tn)),Al(e,r),M=!0;else if(i!==4&&(i===27&&(Al(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(zl(e,t,n,r),e=e.sibling;e!==null;)zl(e,t,n,r),e=e.sibling}function Bl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Al(e,r),M=!0;else if(i!==4&&(i===27&&(Al(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Bl(e,t,n,r),e=e.sibling;e!==null;)Bl(e,t,n,r),e=e.sibling}function Vl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[At]=e,t[jt]=n}catch(t){Z(e,e.return,t)}}var Hl=!1,Ul=null;function Wl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Hl=!0)}var Gl=null;function Kl(){var e=Gl;return Gl=null,e}var ql=0;function Jl(e,t,n,r,i){return ql=0,Yl(e.child,t,n,r,i)}function Yl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Hl=!0,Tp(o,ql===0?t:t+`_`+ql,n),ql++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Yl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Xl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Xl(e.child,t)),e=e.sibling}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Zl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=Ei(t.default,t.share),t!==`none`&&(Jl(e,n,t,null,!1)||Xl(e.child,!1))}e=e.sibling}}function Ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=wi(r,n),a=Ei(r.default,n.paired?r.share:r.enter);a===`none`?Zl(e):Jl(e,i,a,null,!1)?(Zl(e),n.paired||t||Nd(e,r.onEnter)):Xl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e,t),e=e.sibling;else Zl(e)}function $l(e){if(Ul!==null&&Ul.size!==0){var t=Ul;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Ei(n.default,n.share);if(a!==`none`&&(Jl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Nd(e,n.onShare)):Xl(e.child,!1)),t.delete(r),t.size===0)break}}}$l(e)}e=e.sibling}}}function eu(e){if(e.tag===30){var t=e.memoizedProps,n=wi(t,e.stateNode),r=Ul===null?void 0:Ul.get(n),i=Ei(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Jl(e,n,i,null,!1)?r===void 0?Nd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Ul.delete(n),Nd(e,t.onShare)):Xl(e.child,!1)),Ul!==null&&$l(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else Ul!==null&&$l(e)}function tu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=wi(t,e.stateNode);t=Ei(t.default,t.update),e.flags&=-5,t!==`none`&&Jl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&tu(e);e=e.sibling}}function nu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Xl(e.child,!1))}nu(e)}e=e.sibling}}function ru(e){if(e.tag===30)e.stateNode.paired=null,Xl(e.child,!1),nu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ru(e),e=e.sibling;else nu(e)}function iu(e){for(e=e.child;e!==null;)e.tag===30?Xl(e.child,!1):e.subtreeFlags&33554432&&iu(e),e=e.sibling}function au(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&ql<a.length){var l=a[ql],u=Op(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Tp(c,ql===0?n:n+`_`+ql,i),s&&e.flags&4||(Gl===null&&(Gl=[]),Gl.push(c,ql===0?r:r+`_`+ql,t.memoizedProps)),ql++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:au(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ou(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=wi(n,r),a=Ei(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;ql=0,i=au(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Nd(e,n.onUpdate))}else e.subtreeFlags&33554432&&ou(e,t);e=e.sibling}}var su=!1,H=!1,cu=!1,lu=!1,uu=typeof WeakSet==`function`?WeakSet:Set,du=null,fu=!1,pu=!1,mu=!1,hu=!1;function gu(e,t,n){if(e=e.containerInfo,sp=gh,e=ei(e),ti(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,du=t,t=n?9270:1024;du!==null;){if(e=du,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&eu(r[a]);if(e.alternate===null&&e.flags&2)n&&Wl(e),_u(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&eu(r),_u(n);continue}if(r!==null&&r.memoizedState!==null){n&&Wl(e),_u(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,du=r):(n&&tu(e),_u(n))}}Ul=null}function _u(e){for(;du!==null;){var t=du,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Tc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){Z(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=wi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=Ei(a.default,a.update),a!==`none`&&Jl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,du=r;break}du=t.return}}function vu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Lu(e,n),r&4&&wl(5,n);break;case 1:if(Lu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Tc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}}r&64&&El(n),r&512&&Ol(n,n.return);break;case 3:if(Lu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ao(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&Vl(n);case 26:case 5:Lu(e,n),t===null&&r&4&&Fl(n),r&512&&Ol(n,n.return);break;case 12:Lu(e,n);break;case 31:Lu(e,n),r&4&&Eu(e,n);break;case 13:Lu(e,n),r&4&&Du(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_f.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||su,!r){var a=t!==null&&t.memoizedState!==null||H;t=su,i=H,su=r,(H=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),zu(e,n,r)):Lu(e,n),su=t,H=i}break;case 30:Lu(e,n),r&512&&Ol(n,n.return);break;case 7:r&512&&Ol(n,n.return);default:Lu(e,n)}}function yu(e,t){for(e=e.child;e!==null;)bu(e,t),e=e.sibling}function bu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){Z(e,e.return,t)}xu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,M=!0}catch(t){Z(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){Z(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&yu(e,t);break;default:yu(e,t)}}function xu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:bu(n,r);break a;case 22:n.memoizedState===null&&xu(n,r);break a;default:xu(n,r)}}e=e.sibling}}function Su(e){var t=e.alternate;t!==null&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var U=null,Cu=!1;function wu(e,t,n){for(n=n.child;n!==null;)Tu(e,t,n),n=n.sibling}function Tu(e,t,n){if(it&&typeof it.onCommitFiberUnmount==`function`)try{it.onCommitFiberUnmount(rt,n)}catch{}switch(n.tag){case 26:H||kl(n,t),wu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!H&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:H||kl(n,t),Ml(n);var r=U,i=Cu;Sp(n.type)&&(U=n.stateNode,Cu=!1),wu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),U=r,Cu=i;break;case 5:H||kl(n,t),Ml(n);case 6:if(n.tag===6&&Ml(n),r=U,i=Cu,U=null,wu(e,t,n),U=r,Cu=i,U!==null){if(Cu)try{(U.nodeType===9?U.body:U.nodeName===`HTML`?U.ownerDocument.body:U).removeChild(n.stateNode),M=!0}catch(e){Z(n,t,e)}else try{U.removeChild(n.stateNode),M=!0}catch(e){Z(n,t,e)}}break;case 18:U!==null&&(Cu?(e=U,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(U,n.stateNode));break;case 4:r=U,i=Cu,U=n.stateNode.containerInfo,Cu=!0,wu(e,t,n),U=r,Cu=i;break;case 0:case 11:case 14:case 15:Tl(2,n,t),H||Tl(4,n,t),wu(e,t,n);break;case 1:H||(kl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Dl(n,t,r)),wu(e,t,n);break;case 21:wu(e,t,n);break;case 22:H=(r=H)||n.memoizedState!==null,wu(e,t,n),H=r;break;case 30:kl(n,t),wu(e,t,n);break;case 7:H||kl(n,t),wu(e,t,n);break;default:wu(e,t,n)}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){Z(t,t.return,e)}}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){Z(t,t.return,e)}}function Ou(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uu),t;default:throw Error(i(435,e.tag))}}function ku(e,t){var n=Ou(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function Au(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){U=l.stateNode,Cu=!1;break a}break;case 5:U=l.stateNode,Cu=!1;break a;case 3:case 4:U=l.stateNode.containerInfo,Cu=!0;break a}l=l.return}if(U===null)throw Error(i(160));Tu(s,c,o),U=null,Cu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Mu(t,e,n),t=t.sibling}var ju=null;function Mu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Au(t,e,n),Nu(e),a&4&&(Tl(3,e,e.return),wl(3,e),Tl(5,e,e.return));break;case 1:Au(t,e,n),Nu(e),a&512&&(H||r===null||kl(r,r.return)),a&64&&su&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=ju,Au(t,e,n),Nu(e),a&512&&(H||r===null||kl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(su)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[j]||r[At]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),np(r,t,n),r[At]=e,Ut(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Gm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),np(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[At]=e,Ut(r),t=r}e.stateNode=t}}else su||Km(o,e.type,e.stateNode)}else e.stateNode=Bm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Il(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||H||t.parentNode.removeChild(t)):a.count--,n===null?su||Km(o,e.type,e.stateNode):Bm(o,n,e.memoizedProps))}break;case 27:Au(t,e,n),Nu(e),a&512&&(H||r===null||kl(r,r.return)),r!==null&&a&4&&Il(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=cu,cu=!1,Au(t,e,n),cu=o,Nu(e),a&512&&(H||r===null||kl(r,r.return)),e.flags&32){t=e.stateNode;try{_n(t,``),M=!0}catch(t){Z(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Il(e,t,r===null?t:r.memoizedProps)),a&1024&&(lu=!0);break;case 6:if(Au(t,e,n),Nu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,M=!0}catch(t){Z(e,e.return,t)}}break;case 3:if(M=!1,Wm=null,o=ju,ju=bm(t.containerInfo),Au(t,e,n),ju=o,Nu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){Z(e,e.return,t)}lu&&(lu=!1,Pu(e)),M=!1;break;case 4:a=cu,cu=su,r=$t(),o=ju,ju=bm(e.stateNode.containerInfo),Au(t,e,n),Nu(e),ju=o,M&&pu&&(mu=!0),M=r,cu=a;break;case 12:Au(t,e,n),Nu(e);break;case 31:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 13:Au(t,e,n),Nu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(hd=Je()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=su,l=H,u=cu;su=c||o,cu=u||o,H=l||s,Au(t,e,n),H=l,cu=u,su=c,Nu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||su||H||(t=s||H,n=su,r=H,su=o||su,H=t,Ru(e,2),su=n,H=r),!o&&cu||yu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,ku(e,n))));break;case 19:Au(t,e,n),Nu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,ku(e,t)));break;case 30:a&512&&(H||r===null||kl(r,r.return)),a=$t(),o=pu,s=(n&335544064)===n,c=e.memoizedProps,pu=s&&Ei(c.default,c.update)!==`none`,Au(t,e,n),Nu(e),s&&r!==null&&M&&(e.flags|=4),pu=o,M=a;break;case 21:break;case 7:a&512&&(H||r===null||kl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Au(t,e,n),Nu(e)}}function Nu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ll(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Pl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Nl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Bl(e,Rl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(_n(l,``),n.flags&=-33),Bl(e,Rl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;zl(e,Rl(e),u,s);break;default:throw Error(i(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Fu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Iu(t,e),t=t.sibling;else ou(t,!1)}function Iu(e,t){var n=e.alternate;if(n===null)Ql(e,!1);else switch(e.tag){case 3:if(hu=fu=!1,Kl(),Fu(t,e),!fu&&!mu){if(e=Gl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),hu=!0}Gl=null;break;case 5:Fu(t,e);break;case 4:r=fu,fu=!1,Fu(t,e),fu&&(mu=!0),fu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Fu(t,e):Ql(e,!1));break;case 30:r=fu,i=Kl(),fu=!1,Fu(t,e),fu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=wi(a,o),o=wi(n.memoizedProps,o);var s=Ei(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,ql=0,t=au(e,n,t,o,s,a,!0),ql!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Nd(e,e.memoizedProps.onUpdate),Gl=i):i!==null&&(i.push.apply(i,Gl),Gl=i),fu=e.flags&32?!0:r;break;default:Fu(t,e)}}function Lu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vu(e,t.alternate,t),t=t.sibling}function Ru(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Tl(4,n,n.return),Ru(n,r);break;case 1:kl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Dl(n,n.return,i),Ru(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:kl(n,n.return),n.tag!==5&&n.tag!==27||Ml(n),Ru(n,r);break;case 6:Ml(n);break;case 26:kl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||H||i.parentNode.removeChild(i),Ru(n,r);break;case 22:n.memoizedState===null&&Ru(n,r);break;case 30:kl(n,n.return),Ru(n,r);break;case 7:kl(n,n.return);default:Ru(n,r)}e=e.sibling}}function zu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:zu(i,a,n),wl(4,a);break;case 1:if(zu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)ko(l[i],c)}catch(e){Z(r,r.return,e)}}s&&o&64&&El(a),Ol(a,a.return);break;case 27:n&2&&Vl(a);case 5:a.tag!==5&&a.tag!==27||jl(a),zu(i,a,n),s&&r===null&&o&4&&Fl(a),Ol(a,a.return);break;case 6:jl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||su||Km(bm(c.ownerDocument),a.type,c),zu(i,a,n),s&&r===null&&o&4&&Fl(a),Ol(a,a.return);break;case 12:zu(i,a,n);break;case 31:zu(i,a,n),s&&o&4&&Eu(i,a);break;case 13:zu(i,a,n),s&&o&4&&Du(i,a);break;case 22:a.memoizedState===null&&zu(i,a,n),Ol(a,a.return);break;case 30:zu(i,a,n),Ol(a,a.return);break;case 7:Ol(a,a.return);default:zu(i,a,n)}t=t.sibling}}function Bu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ra(n))}function Vu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ra(e))}function Hu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Uu(e,t,n,r),t=t.sibling;else i&&iu(t)}function Uu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&ru(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Hu(e,t,n,r),a&2048&&wl(9,t);break;case 1:Hu(e,t,n,r);break;case 3:Hu(e,t,n,r),i&&hu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Ra(a)));break;case 12:if(a&2048){Hu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else Hu(e,t,n,r);break;case 31:Hu(e,t,n,r);break;case 13:Hu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&ru(t),o._visibility&2?Hu(e,t,n,r):(o._visibility|=2,Wu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&ru(s),o._visibility&2?Hu(e,t,n,r):Gu(e,t)),a&2048&&Bu(s,t);break;case 24:Hu(e,t,n,r),a&2048&&Vu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Xl(a.child,!0),Xl(t.child,!0))),Hu(e,t,n,r);break;default:Hu(e,t,n,r)}}function Wu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Wu(a,o,s,c,i),wl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Wu(a,o,s,c,i)):u._visibility&2?Wu(a,o,s,c,i):Gu(a,o),i&&l&2048&&Bu(o.alternate,o);break;case 24:Wu(a,o,s,c,i),i&&l&2048&&Vu(o.alternate,o);break;default:Wu(a,o,s,c,i)}t=t.sibling}}function Gu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Gu(n,r),i&2048&&Bu(r.alternate,r);break;case 24:Gu(n,r),i&2048&&Vu(r.alternate,r);break;default:Gu(n,r)}t=t.sibling}}var Ku=8192;function qu(e,t,n){if(e.subtreeFlags&Ku)for(e=e.child;e!==null;)Ju(e,t,n),e=e.sibling}function Ju(e,t,n){switch(e.tag){case 26:qu(e,t,n),e.flags&Ku&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,ju,e.memoizedState,e.memoizedProps));break;case 5:qu(e,t,n),e.flags&Ku&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=ju;ju=bm(e.stateNode.containerInfo),qu(e,t,n),ju=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ku,Ku=16777216,qu(e,t,n),Ku=r):qu(e,t,n));break;case 30:if((e.flags&Ku)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Ul===null&&(Ul=new Map),Ul.set(r,i)}qu(e,t,n);break;default:qu(e,t,n)}}function Yu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];du=r,$u(r,e)}Yu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zu(e),e=e.sibling}function Zu(e){switch(e.tag){case 0:case 11:case 15:Xu(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:Xu(e);break;case 12:Xu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qu(e)):Xu(e);break;default:Xu(e)}}function Qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];du=r,$u(r,e)}Yu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Qu(t));break;default:Qu(t)}e=e.sibling}}function $u(e,t){for(;du!==null;){var n=du;switch(n.tag){case 0:case 11:case 15:Tl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,du=r;else a:for(n=e;du!==null;){r=du;var i=r.sibling,a=r.return;if(Su(r),r===n){du=null;break a}if(i!==null){i.return=a,du=i;break a}du=a}}}var ed={getCacheForType:function(e){var t=ja(F),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ja(F).controller.signal}},td=typeof WeakMap==`function`?WeakMap:Map,W=0,G=null,K=null,q=0,J=0,nd=null,rd=!1,id=!1,ad=!1,od=0,Y=0,sd=0,cd=0,ld=0,ud=0,dd=0,fd=null,pd=null,md=!1,hd=0,gd=0,_d=1/0,vd=null,yd=null,X=0,bd=null,xd=null,Sd=0,Cd=0,wd=null,Td=null,Ed=null,Dd=null,Od=null,kd=0,Ad=null;function jd(){return W&2&&q!==0?q&-q:O.T===null?Dt():Pf()}function Md(){if(ud===0){if(!(q&536870912)||P){var e=dt;dt<<=1,!(dt&3932160)&&(dt=262144),ud=e}else ud=536870912}return e=Io.current,e!==null&&(e.flags|=32),ud}function Nd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(wi(e.memoizedProps,n))),Dd===null&&(Dd=[]),Dd.push(t.bind(null,r))}}function Pd(e,t,n){(e===G&&(J===2||J===9)||e.cancelPendingCommit!==null)&&(Vd(e,0),Rd(e,q,ud,!1)),bt(e,n),(!(W&2)||e!==G)&&(e===G&&(!(W&2)&&(cd|=n),Y===4&&Rd(e,q,ud,!1)),Ef(e))}function Fd(e,t,n){if(W&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ht(e,t),a=r?Yd(e,t):qd(e,t,!0),o=r;do{if(a===0){id&&!r&&Rd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ld(n))a=qd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=fd;var l=c.current.memoizedState.isDehydrated;if(l&&(Vd(c,s).flags|=256),s=qd(c,s,!1),s!==2&&s!==6){if(ad&&!l){c.errorRecoveryDisabledLanes|=o,cd|=o,a=4;break a}o=pd,pd=a,o!==null&&(pd===null?pd=o:pd.push.apply(pd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Vd(e,0),Rd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Rd(r,t,ud,!rd);break a;case 2:pd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=hd+300-Je(),10<a)){if(Rd(r,t,ud,!rd),mt(r,0,!0)!==0)break a;Sd=t,r.timeoutHandle=gp(Id.bind(null,r,n,pd,vd,md,t,ud,cd,dd,rd,o,`Throttled`,-0,0),a);break a}Id(r,n,pd,vd,md,t,ud,cd,dd,rd,o,null,-0,0)}break}}while(1);Ef(e)}function Id(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},Ul=null,Ju(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?hd-Je():(a&4194048)===a?gd-Je():0,m=eh(d,m),m!==null)?(Sd=a,e.cancelPendingCommit=m(nf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Rd(e,a,o,!l)):nf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ld(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Jr(a(),i))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 Rd(e,t,n,r){t=gt(e,t),t&=~ld,t&=~cd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ot(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&St(e,n,t)}function zd(){return W&6?!0:(Df(0,!1),!1)}function Bd(){if(K!==null){if(J===0)var e=K.return;else e=K,Ca=Sa=null,cs(e),uo=null,fo=0,e=K;for(;e!==null;)Cl(e.alternate,e),e=e.return;K=null}}function Vd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sd=0,Bd(),G=e,K=n=Vi(e.current,null),q=t,J=0,nd=null,rd=!1,id=ht(e,t),ad=!1,dd=ud=ld=cd=sd=Y=0,pd=fd=null,md=!1,od=gt(e,t),ji(),n}function Hd(e,t){I=null,O.H=_c,t===eo||t===no?(t=co(),J=3):t===to?(t=co(),J=4):J=t===Fc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,nd=t,K===null&&(Y=1,kc(e,Yi(t,e.current)))}function Ud(){var e=Io.current;return e===null?!0:(q&4194048)===q?Lo===null:(q&62914560)===q||q&536870912?e===Lo:!1}function Wd(){var e=O.H;return O.H=_c,e===null?_c:e}function Gd(){var e=O.A;return O.A=ed,e}function Kd(){Y=4,rd||(q&4194048)!==q&&Io.current!==null||(id=!0),!(sd&134217727)&&!(cd&134217727)||G===null||Rd(G,q,ud,!1)}function qd(e,t,n){var r=W;W|=2;var i=Wd(),a=Gd();(G!==e||q!==t)&&(vd=null,Vd(e,t)),t=!1;var o=Y;a:do try{if(J!==0&&K!==null){var s=K,c=nd;switch(J){case 8:Bd(),o=6;break a;case 3:case 2:case 9:case 6:Io.current===null&&(t=!0);var l=J;if(J=0,nd=null,$d(e,s,c,l),n&&id){o=0;break a}break;default:l=J,J=0,nd=null,$d(e,s,c,l)}}Jd(),o=Y;break}catch(t){Hd(e,t)}while(1);return t&&e.shellSuspendCounter++,Ca=Sa=null,W=r,O.H=i,O.A=a,K===null&&(G=null,q=0,ji()),o}function Jd(){for(;K!==null;)Zd(K)}function Yd(e,t){var n=W;W|=2;var r=Wd(),a=Gd();G!==e||q!==t?(vd=null,_d=Je()+500,Vd(e,t)):id=ht(e,t);a:do try{if(J!==0&&K!==null){t=K;var o=nd;b:switch(J){case 1:J=0,nd=null,$d(e,t,o,1);break;case 2:case 9:if(io(o)){J=0,nd=null,Qd(t);break}t=function(){J!==2&&J!==9||G!==e||(J=7),Ef(e)},o.then(t,t);break a;case 3:J=7;break a;case 4:J=5;break a;case 7:io(o)?(J=0,nd=null,Qd(t)):(J=0,nd=null,$d(e,t,o,7));break;case 5:var s=null;switch(K.tag){case 26:s=K.memoizedState;case 5:case 27:var c=K;if(s?Ym(s):c.stateNode.complete){J=0,nd=null;var l=c.sibling;if(l!==null)K=l;else{var u=c.return;u===null?K=null:(K=u,ef(u))}break b}}J=0,nd=null,$d(e,t,o,5);break;case 6:J=0,nd=null,$d(e,t,o,6);break;case 8:Bd(),Y=6;break a;default:throw Error(i(462))}}Xd();break}catch(t){Hd(e,t)}while(1);return Ca=Sa=null,O.H=r,O.A=a,W=n,K===null?(G=null,q=0,ji(),Y):0}function Xd(){for(;K!==null&&!Ke();)Zd(K)}function Zd(e){var t=hl(e.alternate,e,od);e.memoizedProps=e.pendingProps,t===null?ef(e):K=t}function Qd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Yc(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=Yc(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:cs(t);var r=t;r===ua&&(P?(ga(r),r.tag===5&&r.stateNode!=null&&(N=r.stateNode)):(ga(r),P=!0));default:Cl(n,t),t=K=Hi(t,od),t=hl(n,t,od)}e.memoizedProps=e.pendingProps,t===null?ef(e):K=t}function $d(e,t,n,r){Ca=Sa=null,cs(t),uo=null,fo=0;var i=t.return;try{if(Pc(e,i,t,n,q)){Y=1,kc(e,Yi(n,e.current)),K=null;return}}catch(t){if(i!==null)throw K=i,t;Y=1,kc(e,Yi(n,e.current)),K=null;return}t.flags&32768?(P||r===1?e=!0:id||q&536870912?e=!1:(rd=e=!0,(r===2||r===9||r===3||r===6)&&(r=Io.current,r!==null&&r.tag===13&&(r.flags|=16384))),tf(t,e)):ef(t)}function ef(e){var t=e;do{if(t.flags&32768){tf(t,rd);return}e=t.return;var n=xl(t.alternate,t,od);if(n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);Y===0&&(Y=5)}function tf(e,t){do{var n=Sl(e.alternate,e);if(n!==null){n.flags&=32767,K=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=n}while(e!==null);Y=6,K=null}function nf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do df();while(X!==0);if(W&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===G&&(K=G=null,q=0),xd=t,bd=e,Sd=n,wd=a,Td=r,rf(e,t,n,s,c,l,f)}}function rf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Cd=s,s|=Ai,xt(e,n,s,r,i,a),Dd=null,(n&335544064)===n?(Od=Va(e),r=10262):(Od=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(Qe,function(){return ff(),null})):(e.callbackNode=null,e.callbackPriority=0),Hl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=O.T,O.T=null,i=k.p,k.p=2,a=W,W|=4;try{gu(e,t,n)}finally{W=a,k.p=i,O.T=r}}X=1,Hl?Ed=Mp(o,e.containerInfo,Od,sf,cf,of,lf,ff,af,null,null):(sf(),cf(),lf())}function af(e){if(X!==0){var t=bd.onRecoverableError;t(e,{componentStack:null})}}function of(){X===3&&(X=0,Iu(xd,bd),X=4)}function sf(){if(X===1){X=0;var e=bd,t=xd,n=Sd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=O.T,O.T=null;var i=k.p;k.p=2;var a=W;W|=4;try{pu=mu=!1,Mu(t,e,n),n=cp;var o=ei(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&$r(s.ownerDocument.documentElement,s)){if(c!==null&&ti(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Qr(s,h),v=Qr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gh=!!sp,cp=sp=null}finally{W=a,k.p=i,O.T=r}}e.current=t,X=2}}function cf(){if(X===2){X=0;var e=bd,t=xd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=W;W|=4;try{vu(e,t.alternate,t)}finally{W=i,k.p=r,O.T=n}}X=3}}function lf(){if(X===4||X===3){X=0;var e=Ed;Ed=null,qe();var t=bd,n=xd,r=Sd,i=Td,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?X=5:(X=0,xd=bd=null,uf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(yd=null),Et(r),n=n.stateNode,it&&typeof it.onCommitFiberRoot==`function`)try{it.onCommitFiberRoot(rt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=O.T,a=k.p,k.p=2,O.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{O.T=n,k.p=a}}if(i=Dd,o=Od,Od=null,i!==null&&(Dd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Sd&3&&df(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===Ad?kd++:(kd=0,Ad=t):(kd=0,Ad=null),Df(0,!1)}}function uf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ra(t)))}function df(){return Ed!==null&&(Ed.skipTransition(),Ed=null),sf(),cf(),lf(),ff()}function ff(){if(X!==5)return!1;var e=bd,t=Cd;Cd=0;var n=Et(Sd),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=wd,wd=null;var o=bd,s=Sd;if(X=0,xd=bd=null,Sd=0,W&6)throw Error(i(331));var c=W;if(W|=4,Zu(o.current),Uu(o,o.current,s,n),W=c,Df(0,!1),it&&typeof it.onPostCommitFiberRoot==`function`)try{it.onPostCommitFiberRoot(rt,o)}catch{}return!0}finally{k.p=a,O.T=r,uf(e,t)}}function pf(e,t,n){t=Yi(n,t),t=jc(e.stateNode,t,2),e=Co(e,t,2),e!==null&&(bt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=Yi(n,e),n=Mc(2),r=Co(t,n,2),r!==null&&(Nc(n,r,t,e),bt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ad=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,G===e&&(q&n)===n&&(Y===4||Y===3&&(q&62914560)===q&&300>Je()-hd?W&2?ld|=n:Vd(e,0):ld|=n,dd===q&&(dd=0)),Ef(e)}function gf(e,t){t===0&&(t=vt()),e=Pi(e,t),e!==null&&(bt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return We(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ot(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=q,a=mt(r,r===G?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ht(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=Je(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}X!==0&&X!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ot(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=_t(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=G,n=q,n=mt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(J===2||J===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ge(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ht(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ge(r),Et(n)){case 2:case 8:n=Ze;break;case 32:n=Qe;break;case 268435456:n=et;break;default:n=Qe}return r=jf.bind(null,e),n=We(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ge(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(X!==0&&X!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=q;return r=mt(e,e===G?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Fd(e,r,t),Af(e,Je()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(df())return null;Fd(e,t,!0)}function Nf(){bp(function(){W&6?We(Xe,Of):kf()})}function Pf(){if(Tf===0){var e=Wa;e===0&&(e=ut,ut<<=1,!(ut&261888)&&(ut=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:wn(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[jt]||null).action),o=r.submitter;o&&(t=(t=o[jt]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Kn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);rc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),rc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<xi.length;Lf++){var Rf=xi[Lf];Si(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}Si(pi,`onAnimationEnd`),Si(mi,`onAnimationIteration`),Si(hi,`onAnimationStart`),Si(`dblclick`,`onDoubleClick`),Si(`focusin`,`onFocus`),Si(`focusout`,`onBlur`),Si(gi,`onTransitionRun`),Si(_i,`onTransitionStart`),Si(vi,`onTransitionCancel`),Si(yi,`onTransitionEnd`),Jt(`onMouseEnter`,[`mouseout`,`mouseover`]),Jt(`onMouseLeave`,[`mouseout`,`mouseover`]),Jt(`onPointerEnter`,[`pointerout`,`pointerover`]),Jt(`onPointerLeave`,[`pointerout`,`pointerover`]),qt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),qt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),qt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),qt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`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(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Di(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Di(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[Nt];n===void 0&&(n=t[Nt]=new Set);var r=e+`__bubble`;n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Hf(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var Uf=`_reactListening`+Math.random().toString(36).slice(2);function Wf(e){if(!e[Uf]){e[Uf]=!0,Gt.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Hf(t,!1,e),Hf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uf]||(t[Uf]=!0,Hf(`selectionchange`,!1,t))}}function Gf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!Fn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Kf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=zt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Mn(function(){var r=a,i=Dn(n),s=[];a:{var c=bi.get(e);if(c!==void 0){var l=Kn,u=e;switch(e){case`keypress`:if(Vn(n)===0)break a;case`keydown`:case`keyup`:l=ur;break;case`focusin`:u=`focus`,l=tr;break;case`focusout`:u=`blur`,l=tr;break;case`beforeblur`:case`afterblur`:l=tr;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=$n;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=er;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=pr;break;case pi:case mi:case hi:l=nr;break;case yi:l=mr;break;case`scroll`:case`scrollend`:l=Jn;break;case`wheel`:l=hr;break;case`copy`:case`cut`:case`paste`:l=rr;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=dr;break;case`submit`:l=fr;break;case`toggle`:case`beforetoggle`:l=gr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Nn(m,p),g!=null&&d.push(qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==En&&(u=n.relatedTarget||n.fromElement)&&(zt(u)||u[Mt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?zt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=$n,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=dr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Vt(c),h=l==null?u:Vt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,zt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?ee(c,l,Yf):null,c!==null&&Xf(s,u,c,d,!1),l!==null&&f!==null&&Xf(s,f,l,d,!0)))}a:{if(c=r?Vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Ir;else if(Ar(c)){if(Lr)_=Kr;else{_=Wr;var v=Ur}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&xn(r.elementType)&&(_=Ir):_=Gr;if(_&&=_(e,r)){jr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Vt(r):window,e){case`focusin`:(Ar(v)||v.contentEditable===`true`)&&(ri=v,ii=r,ai=null);break;case`focusout`:ai=ii=ri=null;break;case`mousedown`:oi=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:oi=!1,si(s,n,i);break;case`selectionchange`:if(ni)break;case`keydown`:case`keyup`:si(s,n,i)}var y;if(vr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Er?wr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(xr&&n.locale!==`ko`&&(Er||b!==`onCompositionStart`?b===`onCompositionEnd`&&Er&&(y=Bn()):(Ln=i,Rn=`value`in Ln?Ln.value:Ln.textContent,Er=!0)),v=Jf(r,b),0<v.length&&(b=new ir(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=Tr(n),y!==null&&(b.data=y)))),(y=br?Dr(e,n):Or(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new ir(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),If(s,e,r,n,i)}Vf(s,t)})}function qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Nn(e,n),i!=null&&r.unshift(qf(e,i,a)),i=Nn(e,t),i!=null&&r.push(qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Yf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Nn(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=Nn(n,a),l!=null&&o.push(qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function $f(e){return(typeof e==`string`?e:``+e).replace(Zf,`
|
|
9
|
-
`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&_n(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:bn(e,r,o);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Tn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=wn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Sn.get(n)||n,en(e,n,r);else return}M=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:bn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)_n(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Tn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[jt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}M=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):en(e,n,r)}return}M=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}fn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&mn(e,!!r,n,!0):mn(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}gn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(xn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(M=!0),o=m;break;case`name`:m!==f&&(M=!0),a=m;break;case`checked`:m!==f&&(M=!0),u=m;break;case`defaultChecked`:m!==f&&(M=!0),d=m;break;case`value`:m!==f&&(M=!0),s=m;break;case`defaultValue`:m!==f&&(M=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}dn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(M=!0),p=o;break;case`defaultValue`:o!==l&&(M=!0),c=o;break;case`multiple`:o!==l&&(M=!0),s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?mn(e,!!n,n?[]:``,!1):mn(e,!!n,t,!0)):mn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(M=!0),p=a;break;case`defaultValue`:a!==o&&(M=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}hn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(M=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(xn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[At]=r,n[jt]=t,np(n,e,t),Ut(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[j]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:E({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=zt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=ee(n,a,T),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=ee(r,a,T),t===null?t=!1:(h(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];h(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Zp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),Zp(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[j])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&$(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Tn&&(e.onclick=null),Rt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=k.d;k.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=zd();return e||t}function Cm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?ac(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=un(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ut(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+un(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+un(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+un(n.imageSizes)+`"]`)):i+=`[href="`+un(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=E({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Wt(o)}),Ut(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+un(r)+`"][href="`+un(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=E({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ut(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ht(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=E({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ut(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=E({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=E({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Ae.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ht(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ht(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+un(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Wt.bind(null,t),np(t,`link`,n),Ut(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+un(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+un(n.href)+`"]`);if(r)return t.instance=r,Ut(r),r;var a=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ut(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ut(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ut(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ut(a),a):(r=n,(a=vm.get(o))&&(r=E({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ut(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[j]||a[At]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ut(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:se,Provider:null,Consumer:null,_currentValue:Ce,_currentValue2:Ce,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.hiddenUpdates=yt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=zi(3,null,null,t),e.current=a,a.stateNode=e,t=La(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},bo(a),e}function uh(e){return e?(e=Li,e):Li}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=So(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Co(e,r,t),n!==null&&(Pd(n,e,t),wo(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Pi(e,67108864);t!==null&&Pd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=jd();t=Tt(t);var n=Pi(e,t);n!==null&&Pd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,yh(e,t,n,r)}finally{k.p=a,O.T=i}}function vh(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,yh(e,t,n,r)}finally{k.p=a,O.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Kf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=pt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ot(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(W&6)&&(_d=Je()+500,Df(0,!1))}}break;case 31:case 13:s=Pi(a,2),s!==null&&Pd(s,a,2),zd(),ph(a,2)}if(a=bh(r),a===null&&Kf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function bh(e){return e=Dn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=zt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 xh=e,null}function Ch(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ye()){case Xe:return 2;case Ze:return 8;case Qe:case $e:return 32;case et:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Bt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=zt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){hh(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 Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);En=r,n.target.dispatchEvent(r),En=null}else return t=Bt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,rc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[jt]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[jt]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dh(n,jd(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),zd(),t[Mt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=n.version;if(Kh!==`19.3.1`)throw Error(i(527,Kh,`19.3.1`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{rt=Jh.inject(qh),it=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ec,s=Dc,c=Oc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,o,s,c,Uh),e[Mt]=t.current,Wf(e),new Wh(t)}})),g=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=g(),y=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function b(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:y(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var x=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},S=e=>{let t=x(e);return t.charAt(0).toUpperCase()+t.slice(1)},C=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),w={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function T(e){return e!=null}function ee(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??w.width,a=e.size??e.height??w.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?C(...c):C(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??w[`stroke-width`])*Number(e.size??e.width??w.width)/Number(t.size??t.width??w.width):t.strokeWidth??w[`stroke-width`];return[`svg`,{...Object.entries(w).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&T(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&T(t.width)&&{[r(`width`)]:t.width},...`height`in t&&T(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function E(e,t={}){return ee(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var te=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ne=(0,_.createContext)({}),re=()=>(0,_.useContext)(ne),ie=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=re()??{},b=!!c||te(d),[x,S,w=[]]=E(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:C(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(x,{ref:f,...S},[...w.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function D(e,t=[],n=[]){let r=typeof e==`string`?b(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(ie,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=S(r.name)),i}var ae={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};ae.node;var oe=D(ae),se={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};se.node;var ce=D(se),le={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};le.node;var ue=D(le),de={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};de.node;var fe=D(de),pe={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};pe.node;var me=D(pe),he={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};he.node;var ge=D(he),_e={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};_e.node;var ve=D(_e),ye={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};ye.node;var be=D(ye),xe={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};xe.node;var Se=D(xe),O={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};O.node;var k=D(O),Ce={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Ce.node;var we=D(Ce),Te={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Te.node;var Ee=D(Te),De={name:`file-braces`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]],aliases:[`file-json`]};De.node;var A=D(De),Oe={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};Oe.node;var ke=D(Oe),Ae={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Ae.node;var je=D(Ae),Me={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Me.node;var Ne=D(Me),Pe={name:`git-commit-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]],aliases:[`git-commit`]};Pe.node;var Fe=D(Pe),Ie={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};Ie.node;var Le=D(Ie),Re={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};Re.node;var ze=D(Re),Be={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};Be.node;var Ve=D(Be),He={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};He.node;var Ue=D(He),We={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};We.node;var Ge=D(We),Ke={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};Ke.node;var qe=D(Ke),Je={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Je.node;var Ye=D(Je),Xe={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Xe.node;var Ze=D(Xe),Qe={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Qe.node;var $e=D(Qe),et={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};et.node;var tt=D(et),nt={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};nt.node;var rt=D(nt),it={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};it.node;var at=D(it),ot={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};ot.node;var st=D(ot),ct={name:`share-2`,size:24,node:[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]};ct.node;var lt=D(ct),ut={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};ut.node;var dt=D(ut),ft={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};ft.node;var pt=D(ft),mt={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};mt.node;var ht=D(mt),gt={name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]};gt.node;var _t=D(gt),vt={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};vt.node;var yt=D(vt),bt={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};bt.node;var xt=D(bt),St={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};St.node;var Ct=D(St),wt={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};wt.node;var Tt=D(wt),Et={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Et.node;var Dt=D(Et),Ot={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Ot.node;var kt=D(Ot),At={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};At.node;var jt=D(At),Mt={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Mt.node;var Nt=D(Mt),Pt={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};Pt.node;var Ft=D(Pt),It=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),j=o(((e,t)=>{t.exports=It()}))();function Lt({currentTab:e,setCurrentTab:t,projectData:n}){return(0,j.jsxs)(`aside`,{className:`w-64 border-r border-slate-800/80 bg-[#0c121e]/90 flex flex-col justify-between shrink-0 h-screen select-none`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`p-5 border-b border-slate-800/80 flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 via-indigo-500 to-purple-500 flex items-center justify-center shadow-lg shadow-indigo-500/20 glow-indigo`,children:(0,j.jsx)(k,{className:`w-5 h-5 text-white`})}),(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`font-extrabold text-white tracking-tight text-base`,children:`VectorForce`}),(0,j.jsx)(`span`,{className:`text-[10px] uppercase font-bold tracking-widest px-1.5 py-0.5 rounded bg-indigo-500/20 text-indigo-400 border border-indigo-500/30`,children:`Studio`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 font-medium truncate`,children:`AI Engineering Memory`})]})]}),(0,j.jsx)(`nav`,{className:`p-3 space-y-1`,children:[{id:`dashboard`,label:`Dashboard`,icon:Ve},{id:`graph`,label:`Project Graph`,icon:Ge,badge:`WOW`},{id:`ai`,label:`AI Workspace`,icon:ht,highlight:!0},{id:`memory`,label:`Memory & Ontology`,icon:we},{id:`timeline`,label:`Timeline & History`,icon:tt},{id:`team`,label:`Team & Handoff`,icon:jt},{id:`settings`,label:`Settings`,icon:st}].map(n=>{let r=n.icon,i=e===n.id;return(0,j.jsxs)(`button`,{onClick:()=>t(n.id),className:`w-full flex items-center justify-between px-3.5 py-2.5 rounded-xl font-medium text-sm transition-all duration-200 ${i?`bg-gradient-to-r from-indigo-600/90 to-purple-600/90 text-white shadow-md shadow-indigo-600/25 border border-indigo-400/30`:`text-slate-400 hover:text-slate-200 hover:bg-slate-800/50`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(r,{className:`w-4 h-4 ${i?`text-white`:n.highlight?`text-indigo-400`:`text-slate-400`}`}),(0,j.jsx)(`span`,{children:n.label})]}),n.badge&&(0,j.jsx)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-purple-500/20 text-purple-300 border border-purple-500/30`,children:n.badge}),n.highlight&&!i&&(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-indigo-500 animate-pulse`})]},n.id)})})]}),(0,j.jsx)(`div`,{className:`p-4 border-t border-slate-800/80`,children:(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900/80 border border-slate-800 flex flex-col gap-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,j.jsxs)(`span`,{className:`text-slate-400 flex items-center gap-1.5 font-medium`,children:[(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-emerald-500 animate-ping`}),`Meta Muse Spark`]}),(0,j.jsx)(`span`,{className:`text-emerald-400 font-semibold text-[11px]`,children:`Online`})]}),(0,j.jsxs)(`div`,{className:`text-[11px] text-slate-500 flex items-center justify-between`,children:[(0,j.jsx)(`span`,{children:`Storage: SQLite WAL`}),(0,j.jsx)(`span`,{className:`text-slate-400 font-mono`,children:`0.1.0`})]}),(0,j.jsxs)(`div`,{className:`pt-1.5 border-t border-slate-800/60 flex items-center gap-1.5 text-[11px] text-indigo-300/90 font-medium`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-indigo-400 shrink-0`}),(0,j.jsx)(`span`,{className:`truncate`,children:`Local-First & Zero Leaks`})]})]})})]})}function Rt({projectData:e,theme:t,onToggleTheme:n,onOpenCheckpointModal:r,onTriggerReasoning:i,isScanningDrift:a,onScanDrift:o}){let s=e?.health?.driftDetected;return(0,j.jsxs)(`header`,{className:`h-16 border-b border-slate-800/80 bg-[#090d16]/80 backdrop-blur-md px-6 flex items-center justify-between shrink-0 sticky top-0 z-20`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`font-bold text-white text-base tracking-tight`,children:e?.project?.name||`VectorForce`}),(0,j.jsxs)(`span`,{className:`text-xs px-2 py-0.5 rounded-full bg-slate-800 text-slate-400 font-mono`,children:[e?.project?.id?.slice(0,12),`...`]})]}),(0,j.jsx)(`div`,{className:`h-4 w-px bg-slate-800`}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs text-slate-400 font-mono`,children:[(0,j.jsx)(Ne,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`main`}),(0,j.jsx)(`span`,{className:`text-slate-600`,children:`@`}),(0,j.jsx)(`span`,{className:`text-slate-300`,children:`6593b6f`})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`button`,{onClick:o,disabled:a,className:`flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-full border transition-all ${s?`bg-amber-500/10 border-amber-500/30 text-amber-300 animate-pulse`:`bg-emerald-500/10 border-emerald-500/30 text-emerald-300`}`,title:`Click to re-verify workspace and document drift`,children:[s?(0,j.jsx)(dt,{className:`w-3.5 h-3.5 text-amber-400`}):(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:s?`Drift Detected`:`No Drift`}),(0,j.jsx)($e,{className:`w-3 h-3 text-slate-500 ${a?`animate-spin`:``}`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-full bg-indigo-500/10 border border-indigo-500/30 text-indigo-300 font-medium`,children:[(0,j.jsx)(ht,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Meta Llama 3.3 / Muse`})]}),(0,j.jsxs)(`button`,{onClick:()=>i(),className:`flex items-center gap-1.5 text-xs font-semibold px-3 py-1.5 rounded-lg bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white shadow-md shadow-indigo-600/20 transition-all hover:scale-[1.02] active:scale-[0.98]`,children:[(0,j.jsx)(Ft,{className:`w-3.5 h-3.5 text-yellow-300 fill-yellow-300`}),(0,j.jsx)(`span`,{children:`Ask VectorForce`})]}),(0,j.jsxs)(`button`,{onClick:r,className:`flex items-center gap-1.5 text-xs font-medium px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700/80 transition-all`,children:[(0,j.jsx)(Ze,{className:`w-3.5 h-3.5 text-slate-400`}),(0,j.jsx)(`span`,{children:`Checkpoint`})]}),(0,j.jsx)(`button`,{onClick:n,className:`flex items-center gap-1.5 text-xs font-medium px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700/80 transition-all hover:scale-105 active:scale-95 cursor-pointer shadow-sm`,title:t===`light`?`Switch to Dark Mode`:`Switch to Light Mode`,"aria-label":`Toggle Light / Dark Mode`,children:t===`light`?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Ue,{className:`w-3.5 h-3.5 text-indigo-500 fill-indigo-500/20`}),(0,j.jsx)(`span`,{className:`font-semibold text-slate-700`,children:`Dark`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(xt,{className:`w-3.5 h-3.5 text-amber-400 fill-amber-400/20`}),(0,j.jsx)(`span`,{className:`font-semibold text-slate-200`,children:`Light`})]})})]})]})}function zt({projectData:e,onNavigateToTab:t,onTriggerReasoning:n,onOpenCheckpointModal:r,onRefreshData:i}){let[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)([]),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(!1),v=e?.checkpoints?.[0],y=e?.health?.driftDetected,b=v?.task_id||e?.tasks?.[0]?.task_id||`main`;(0,_.useEffect)(()=>{fetch(`/api/todos`).then(e=>e.ok?e.json():null).then(e=>{e&&Array.isArray(e.todos)&&c(e.todos)}).catch(()=>{})},[]);let x=e=>{e.preventDefault(),a.trim()&&n(a)},S=async e=>{if(e.preventDefault(),!l.trim())return;let t=await fetch(`/api/todos`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`add`,text:l,taskId:b})}).catch(()=>null);if(t&&t.ok){let e=await t.json();c(e.todos||[]),u(``)}},C=async e=>{let t=await fetch(`/api/todos`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`toggle`,id:e})}).catch(()=>null);if(t&&t.ok){let e=await t.json();c(e.todos||[])}},w=async e=>{let t=await fetch(`/api/todos`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`delete`,id:e})}).catch(()=>null);if(t&&t.ok){let e=await t.json();c(e.todos||[])}},T=async e=>{if(e.preventDefault(),!d.trim())return;let t=await fetch(`/api/tasks`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({taskId:d.trim(),title:p.trim()||d.trim()})}).catch(()=>null);t&&t.ok&&(f(``),m(``),g(!1),i&&i())},ee=async e=>{let t=e.status===`completed`?`active`:`completed`,n=await fetch(`/api/tasks`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`status`,taskId:e.task_id,status:t})}).catch(()=>null);n&&n.ok&&i&&i()};return(0,j.jsxs)(`div`,{className:`p-8 max-w-7xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`relative overflow-hidden rounded-2xl glass-panel p-6 border border-indigo-500/20 shadow-xl bg-gradient-to-r from-indigo-950/40 via-purple-950/20 to-slate-900/60`,children:[(0,j.jsx)(`div`,{className:`absolute top-0 right-0 -mt-12 -mr-12 w-64 h-64 bg-indigo-500/10 rounded-full blur-3xl pointer-events-none`}),(0,j.jsxs)(`div`,{className:`relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-2 max-w-2xl`,children:[(0,j.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-2.5 py-1 rounded-full bg-indigo-500/20 border border-indigo-500/30 text-indigo-300 text-xs font-semibold`,children:[(0,j.jsx)(ht,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`AI Engineering Memory Online`})]}),(0,j.jsx)(`h1`,{className:`text-2xl md:text-3xl font-extrabold text-white tracking-tight`,children:`Resume Your Engineering Context`}),(0,j.jsxs)(`p`,{className:`text-sm text-slate-300/90 leading-relaxed`,children:[`Last session recorded in task `,(0,j.jsx)(`span`,{className:`font-semibold text-indigo-300`,children:v?.task_id}),` by `,(0,j.jsx)(`span`,{className:`text-slate-200`,children:v?.author}),`. Zero cloud leaks, verified local SQLite state.`]})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 shrink-0`,children:[(0,j.jsxs)(`button`,{onClick:()=>n(`Continue work on ${b}`),className:`flex items-center gap-2 px-5 py-3 rounded-xl bg-gradient-to-r from-indigo-600 via-indigo-500 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-sm shadow-lg shadow-indigo-600/30 transition-all hover:scale-105 active:scale-95 cursor-pointer`,children:[(0,j.jsx)(Ye,{className:`w-4 h-4 fill-white`}),(0,j.jsx)(`span`,{children:`Resume Session`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`settings`),className:`px-4 py-3 rounded-xl glass-panel-subtle hover:bg-slate-800 text-slate-200 font-medium text-sm transition-all border border-slate-700/60 flex items-center gap-2 cursor-pointer`,children:[(0,j.jsx)(st,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Configure Model`})]}),(0,j.jsx)(`button`,{onClick:()=>t(`graph`),className:`px-4 py-3 rounded-xl glass-panel-subtle hover:bg-slate-800 text-slate-300 font-medium text-sm transition-all border border-slate-700/60 cursor-pointer`,children:`Inspect Topology`})]})]}),(0,j.jsx)(`form`,{onSubmit:x,className:`mt-6 relative z-10`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-2 p-1.5 rounded-xl bg-slate-900/90 border border-slate-700/80 focus-within:border-indigo-500/80 transition-all shadow-inner`,children:[(0,j.jsx)(ht,{className:`w-4 h-4 text-indigo-400 ml-3 shrink-0`}),(0,j.jsx)(`input`,{type:`text`,value:a,onChange:e=>o(e.target.value),placeholder:`Ask VectorForce: "What changed this week?", "Analyze architectural risk", "Continue task..."`,className:`w-full bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none px-2`}),(0,j.jsxs)(`button`,{type:`submit`,className:`px-4 py-2 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-xs flex items-center gap-1.5 transition-all shrink-0 cursor-pointer`,children:[(0,j.jsx)(`span`,{children:`Ask AI`}),(0,j.jsx)(oe,{className:`w-3.5 h-3.5`})]})]})})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-5`,children:[(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Health Score`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-emerald-500/10 border border-emerald-500/30 flex items-center justify-center`,children:(0,j.jsx)(pt,{className:`w-4 h-4 text-emerald-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3 flex items-baseline gap-2`,children:[(0,j.jsxs)(`span`,{className:`text-3xl font-black text-white`,children:[e?.health?.score,`%`]}),(0,j.jsx)(`span`,{className:`text-xs font-semibold text-emerald-400`,children:`Optimal`})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Memory Chain:`}),(0,j.jsx)(`span`,{className:`text-emerald-400 font-medium`,children:`Verified`})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Drift Status:`}),(0,j.jsx)(`span`,{className:y?`text-amber-400 font-medium`:`text-emerald-400 font-medium`,children:y?`Tamper Flagged`:`Zero Drift`})]})]})]}),(0,j.jsxs)(`div`,{onClick:()=>t(`settings`),className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between cursor-pointer`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`AI Reasoning`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-indigo-500/10 border border-indigo-500/30 flex items-center justify-center`,children:(0,j.jsx)(k,{className:`w-4 h-4 text-indigo-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3`,children:[(0,j.jsx)(`div`,{className:`text-base font-bold text-white truncate`,children:e?.ai?.model||`Meta Muse Spark Open`}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-emerald-400 animate-pulse`}),(0,j.jsxs)(`span`,{className:`text-xs text-indigo-300 font-medium`,children:[e?.ai?.provider||`fireworks`,` · Click to change`]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Mode:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-mono`,children:`UI Configurable`})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Context Budget:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-mono`,children:`128k–1M`})]})]})]}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Ontology & Memory`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-purple-500/10 border border-purple-500/30 flex items-center justify-center`,children:(0,j.jsx)(we,{className:`w-4 h-4 text-purple-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3 flex items-baseline gap-2`,children:[(0,j.jsx)(`span`,{className:`text-3xl font-black text-white`,children:e?.stats?.symbolsIndexed}),(0,j.jsx)(`span`,{className:`text-xs font-medium text-slate-400`,children:`Symbols`})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Files Indexed:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-mono`,children:e?.stats?.filesIndexed})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Decisions Recorded:`}),(0,j.jsx)(`span`,{className:`text-indigo-400 font-mono font-bold`,children:e?.stats?.decisionsCount})]})]})]}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Provenance Chain`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-blue-500/10 border border-blue-500/30 flex items-center justify-center`,children:(0,j.jsx)(ze,{className:`w-4 h-4 text-blue-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3 flex items-baseline gap-2`,children:[(0,j.jsx)(`span`,{className:`text-3xl font-black text-white`,children:e?.checkpoints?.length}),(0,j.jsx)(`span`,{className:`text-xs font-medium text-slate-400`,children:`Checkpoints`})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Active Tasks:`}),(0,j.jsx)(`span`,{className:`text-blue-400 font-mono font-medium`,children:e?.stats?.activeTasks??e?.tasks?.length})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Allowlisted Docs:`}),(0,j.jsx)(`span`,{className:`text-slate-300 font-mono`,children:e?.stats?.allowlistedDocs})]})]})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6`,children:[(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel border border-slate-800/80 space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(_t,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`Engineering To-Do & Next Steps`})]}),(0,j.jsx)(`button`,{type:`button`,onClick:r,className:`text-xs px-2.5 py-1 rounded-lg bg-indigo-500/15 hover:bg-indigo-500/25 text-indigo-300 border border-indigo-500/30 font-semibold cursor-pointer`,children:`+ Commit Checkpoint`})]}),(0,j.jsxs)(`form`,{onSubmit:S,className:`flex gap-2`,children:[(0,j.jsx)(`input`,{type:`text`,value:l,onChange:e=>u(e.target.value),placeholder:`Add an engineering action item or next step...`,className:`flex-1 bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500`}),(0,j.jsxs)(`button`,{type:`submit`,className:`px-3.5 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-semibold flex items-center gap-1 shrink-0 cursor-pointer`,children:[(0,j.jsx)(Ze,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Add`})]})]}),(0,j.jsx)(`div`,{className:`space-y-2 max-h-52 overflow-y-auto pr-1`,children:s.length===0?(0,j.jsx)(`p`,{className:`text-xs text-slate-500 py-3 text-center`,children:`No pending action items. Add a to-do above to track your next engineering step!`}):s.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-3 p-2.5 rounded-xl bg-slate-900/70 border border-slate-800/80 text-xs`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>C(e.id),className:`flex items-center gap-2.5 text-left flex-1 cursor-pointer`,children:[e.done?(0,j.jsx)(_t,{className:`w-4 h-4 text-emerald-400 shrink-0`}):(0,j.jsx)(yt,{className:`w-4 h-4 text-slate-500 shrink-0`}),(0,j.jsx)(`span`,{className:e.done?`line-through text-slate-500`:`text-slate-200`,children:e.text})]}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>w(e.id),className:`text-slate-500 hover:text-rose-400 transition-colors cursor-pointer`,title:`Delete item`,children:(0,j.jsx)(Tt,{className:`w-3.5 h-3.5`})})]},e.id))})]}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel border border-slate-800/80 space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ze,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`Workspace Tasks Manager`})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>g(e=>!e),className:`text-xs px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 font-semibold flex items-center gap-1 cursor-pointer`,children:[(0,j.jsx)(Ze,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`New Task`})]})]}),h&&(0,j.jsxs)(`form`,{onSubmit:T,className:`grid grid-cols-1 sm:grid-cols-3 gap-2 p-3 rounded-xl bg-slate-900 border border-slate-800`,children:[(0,j.jsx)(`input`,{type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`Task ID (e.g. feat-qr)`,className:`bg-slate-950 border border-slate-800 rounded-lg px-2.5 py-1.5 text-xs text-white font-mono focus:outline-none focus:border-indigo-500`,required:!0}),(0,j.jsx)(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),placeholder:`Task title...`,className:`bg-slate-950 border border-slate-800 rounded-lg px-2.5 py-1.5 text-xs text-white focus:outline-none focus:border-indigo-500`}),(0,j.jsx)(`button`,{type:`submit`,className:`px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold cursor-pointer`,children:`Create Task`})]}),(0,j.jsx)(`div`,{className:`space-y-2 max-h-52 overflow-y-auto pr-1`,children:(e?.tasks||[]).map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-3 p-3 rounded-xl bg-slate-900/70 border border-slate-800/80 text-xs`,children:[(0,j.jsxs)(`div`,{className:`min-w-0`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`font-mono font-bold text-indigo-300`,children:e.task_id}),(0,j.jsx)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded uppercase ${e.status===`completed`?`bg-slate-800 text-slate-400`:`bg-emerald-500/15 text-emerald-400 border border-emerald-500/30`}`,children:e.status})]}),(0,j.jsx)(`p`,{className:`text-slate-300 truncate mt-0.5`,children:e.title})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(`Analyze task ${e.task_id}: ${e.title}`),className:`px-2 py-1 rounded bg-indigo-500/15 text-indigo-300 hover:bg-indigo-500/25 font-semibold cursor-pointer`,children:`Reason ▶`}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>ee(e),className:`px-2 py-1 rounded bg-slate-800 hover:bg-slate-700 text-slate-300 cursor-pointer`,children:e.status===`completed`?`Reopen`:`Complete ✓`})]})]},e.task_id))})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 gap-6`,children:[(0,j.jsxs)(`div`,{className:`lg:col-span-2 space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(be,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Recent Provenance Checkpoints`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`timeline`),className:`text-xs text-indigo-400 hover:text-indigo-300 font-semibold flex items-center gap-1 cursor-pointer`,children:[(0,j.jsxs)(`span`,{children:[`View All (`,e?.checkpoints?.length,`)`]}),(0,j.jsx)(oe,{className:`w-3.5 h-3.5`})]})]}),(0,j.jsx)(`div`,{className:`space-y-3`,children:e?.checkpoints?.slice(0,3).map(e=>(0,j.jsxs)(`div`,{className:`p-4 rounded-xl glass-panel glass-panel-hover border border-slate-800/80 space-y-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-400`,children:e.id.slice(0,8)}),(0,j.jsx)(`span`,{className:`text-xs font-semibold px-2 py-0.5 rounded bg-slate-800 text-slate-300`,children:e.task_id}),e.drift&&(0,j.jsxs)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30 flex items-center gap-1`,children:[(0,j.jsx)(Dt,{className:`w-3 h-3 text-amber-400`}),`Drift`]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 mt-1 font-medium leading-relaxed`,children:e.summary})]}),(0,j.jsx)(`span`,{className:`text-[11px] text-slate-500 shrink-0 font-medium`,children:e.timestamp})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2 pt-2 border-t border-slate-800/60 text-xs text-slate-400`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[11px]`,children:[(0,j.jsx)(Fe,{className:`w-3.5 h-3.5 text-slate-500`}),(0,j.jsx)(`span`,{className:`font-mono text-slate-300`,children:e.commit})]}),(0,j.jsxs)(`span`,{className:`text-[11px] text-slate-500 truncate max-w-[200px]`,children:[`By `,e.author]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.decisions?.map(e=>(0,j.jsx)(`span`,{className:`text-[10px] font-mono px-1.5 py-0.5 rounded bg-indigo-500/10 text-indigo-300 border border-indigo-500/20`,children:e},e)),(0,j.jsx)(`button`,{onClick:()=>n(`Review checkpoint ${e.id.slice(0,8)}`),className:`text-[11px] font-semibold text-indigo-400 hover:text-indigo-300 px-2 py-0.5 rounded hover:bg-indigo-500/10 transition-colors cursor-pointer`,children:`Reason ▶`})]})]})]},e.id))})]}),(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Active Architectural Decisions`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`memory`),className:`text-xs text-indigo-400 hover:text-indigo-300 font-semibold cursor-pointer`,children:[`All (`,e?.decisions?.length,`)`]})]}),(0,j.jsx)(`div`,{className:`space-y-3`,children:e?.decisions?.slice(0,3).map(e=>(0,j.jsxs)(`div`,{className:`p-3.5 rounded-xl glass-panel-subtle border border-slate-800/80 space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-300`,children:e.id}),(0,j.jsx)(`span`,{className:`text-[10px] font-mono text-slate-500`,children:e.taskId})]}),(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-200`,children:e.title}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 leading-relaxed`,children:e.rationale})]},e.id))}),(0,j.jsxs)(`div`,{className:`p-4 rounded-xl bg-amber-500/5 border border-amber-500/20 space-y-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-bold text-amber-300 uppercase tracking-wider`,children:[(0,j.jsx)(Dt,{className:`w-3.5 h-3.5 text-amber-400`}),(0,j.jsx)(`span`,{children:`Non-Negotiable Invariants`})]}),(0,j.jsx)(`ul`,{className:`text-xs text-slate-300 space-y-1.5 list-disc list-inside`,children:(e?.constraints||[]).slice(0,4).map((e,t)=>(0,j.jsx)(`li`,{children:e},t))})]})]})]})]})}function Bt({projectData:e,onTriggerReasoning:t}){let[n,r]=(0,_.useState)(`auth-service`),[i,a]=(0,_.useState)(`all`),[o,s]=(0,_.useState)(``),c=e?.modules||[],l=c.find(e=>e.id===n)||c[0],u=c.filter(e=>{let t=i===`all`||e.category.toLowerCase()===i.toLowerCase(),n=!o||e.name.toLowerCase().includes(o.toLowerCase())||e.id.toLowerCase().includes(o.toLowerCase());return t&&n});return(0,j.jsxs)(`div`,{className:`flex h-[calc(100vh-4rem)] overflow-hidden`,children:[(0,j.jsxs)(`div`,{className:`flex-1 flex flex-col bg-[#070b13] relative overflow-hidden`,children:[(0,j.jsxs)(`div`,{className:`p-4 flex items-center justify-between z-10 border-b border-slate-800/80 bg-[#090d16]/80 backdrop-blur-md`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Ge,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h1`,{className:`text-base font-bold text-white`,children:`Engineering Project Graph`})]}),(0,j.jsx)(`span`,{className:`text-xs px-2.5 py-0.5 rounded-full bg-indigo-500/10 text-indigo-300 border border-indigo-500/20 font-medium`,children:`Live Semantic Topology`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`div`,{className:`relative`,children:[(0,j.jsx)(rt,{className:`w-3.5 h-3.5 text-slate-500 absolute left-2.5 top-1/2 -translate-y-1/2`}),(0,j.jsx)(`input`,{type:`text`,placeholder:`Find module...`,value:o,onChange:e=>s(e.target.value),className:`bg-slate-900/90 border border-slate-700/80 rounded-lg text-xs text-white pl-8 pr-3 py-1.5 focus:outline-none focus:border-indigo-500`})]}),(0,j.jsx)(`div`,{className:`flex items-center bg-slate-900 border border-slate-800 rounded-lg p-0.5 text-xs`,children:[`all`,`Security`,`AI / Copilot`,`Core`,`Integration`].map(e=>(0,j.jsx)(`button`,{onClick:()=>a(e),className:`px-2.5 py-1 rounded-md capitalize transition-all ${i===e?`bg-indigo-600 text-white font-semibold shadow`:`text-slate-400 hover:text-slate-200`}`,children:e},e))})]})]}),(0,j.jsxs)(`div`,{className:`flex-1 relative overflow-auto p-8 flex items-center justify-center`,children:[(0,j.jsx)(`div`,{className:`absolute inset-0 bg-[radial-gradient(#1e293b_1px,transparent_1px)] [background-size:24px_24px] opacity-40 pointer-events-none`}),(0,j.jsxs)(`svg`,{className:`absolute inset-0 w-full h-full pointer-events-none`,children:[(0,j.jsx)(`defs`,{children:(0,j.jsxs)(`linearGradient`,{id:`edge-gradient`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`100%`,children:[(0,j.jsx)(`stop`,{offset:`0%`,stopColor:`#6366f1`,stopOpacity:`0.6`}),(0,j.jsx)(`stop`,{offset:`100%`,stopColor:`#a855f7`,stopOpacity:`0.6`})]})}),[{from:`mcp-bridge`,to:`context-store`},{from:`mcp-bridge`,to:`auth-service`},{from:`mcp-bridge`,to:`ai-reasoning`},{from:`auth-service`,to:`context-store`},{from:`ai-reasoning`,to:`code-index`},{from:`ai-reasoning`,to:`context-store`},{from:`ai-reasoning`,to:`briefing-engine`},{from:`code-index`,to:`context-store`},{from:`briefing-engine`,to:`context-store`},{from:`handoff-service`,to:`context-store`}].map((e,t)=>{let n=c.find(t=>t.id===e.from),r=c.find(t=>t.id===e.to);return!n||!r?null:(0,j.jsxs)(`g`,{children:[(0,j.jsx)(`line`,{x1:n.x+110,y1:n.y+40,x2:r.x+110,y2:r.y+40,stroke:`url(#edge-gradient)`,strokeWidth:`2`,strokeDasharray:`4 4`,className:`animate-pulse`}),(0,j.jsx)(`circle`,{cx:(n.x+r.x)/2+110,cy:(n.y+r.y)/2+40,r:`3`,fill:`#a855f7`,className:`animate-ping`})]},t)})]}),(0,j.jsx)(`div`,{className:`relative w-[1000px] h-[650px]`,children:u.map(e=>{let t=e.id===n,i=e.drift;return(0,j.jsxs)(`div`,{onClick:()=>r(e.id),style:{left:`${e.x}px`,top:`${e.y}px`},className:`absolute w-56 p-4 rounded-xl cursor-pointer transition-all duration-300 select-none ${t?`bg-slate-900 border-2 border-indigo-400 shadow-xl shadow-indigo-500/25 scale-105 z-20`:`bg-slate-900/85 hover:bg-slate-800/90 border border-slate-700/80 hover:border-slate-500 shadow-lg z-10`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,j.jsx)(`span`,{className:`text-[10px] uppercase font-bold tracking-wider px-2 py-0.5 rounded bg-slate-800 text-slate-400 border border-slate-700`,children:e.category}),i?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30`,children:[(0,j.jsx)(dt,{className:`w-3 h-3 text-amber-400 animate-pulse`}),`Drift`]}):(0,j.jsx)(`span`,{className:`flex items-center gap-1 text-[10px] font-medium text-emerald-400`,children:(0,j.jsx)(pt,{className:`w-3.5 h-3.5`})})]}),(0,j.jsx)(`h3`,{className:`font-bold text-sm text-white mt-2 leading-snug`,children:e.name}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 mt-1 line-clamp-2`,children:e.description}),(0,j.jsxs)(`div`,{className:`mt-3 pt-2.5 border-t border-slate-800 flex items-center justify-between text-[11px] text-slate-400`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(ke,{className:`w-3.5 h-3.5 text-slate-500`}),(0,j.jsxs)(`span`,{children:[e.files,` files`]})]}),(0,j.jsxs)(`span`,{className:`text-indigo-400 font-semibold hover:underline flex items-center gap-0.5`,children:[`Inspect `,(0,j.jsx)(oe,{className:`w-3 h-3`})]})]})]},e.id)})})]})]}),l&&(0,j.jsxs)(`aside`,{className:`w-96 border-l border-slate-800/80 bg-[#0c121e]/95 p-6 flex flex-col justify-between overflow-y-auto shrink-0 z-20`,children:[(0,j.jsxs)(`div`,{className:`space-y-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-2 border-b border-slate-800 pb-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs uppercase font-bold tracking-wider px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-400 border border-indigo-500/20`,children:l.category}),(0,j.jsx)(`span`,{className:`text-xs font-semibold px-2 py-0.5 rounded ${l.drift?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:`bg-emerald-500/10 text-emerald-300 border border-emerald-500/30`}`,children:l.status})]}),(0,j.jsx)(`h2`,{className:`text-xl font-extrabold text-white`,children:l.name}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 leading-relaxed`,children:l.description})]}),l.drift&&(0,j.jsxs)(`div`,{className:`p-3.5 rounded-xl bg-amber-500/10 border border-amber-500/30 space-y-1.5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs font-bold text-amber-300`,children:[(0,j.jsx)(dt,{className:`w-4 h-4 text-amber-400`}),(0,j.jsx)(`span`,{children:`Tamper / Drift Flagged`})]}),(0,j.jsxs)(`p`,{className:`text-xs text-amber-200/80 leading-relaxed`,children:[`Document `,(0,j.jsx)(`code`,{className:`text-amber-100 font-mono`,children:`docs/spec.md`}),` was modified on disk. VectorForce isolated the injected text as Untrusted Reference Data.`]})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider`,children:`Module Ownership`}),(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 flex items-center justify-between text-xs`,children:[(0,j.jsx)(`span`,{className:`text-slate-400`,children:`Owner:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-semibold`,children:l.owner})]})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider`,children:`Governing Decisions`}),(0,j.jsx)(`div`,{className:`space-y-2`,children:l.decisions?.map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 space-y-1`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-400`,children:e.split(`:`)[0]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 font-medium`,children:e.split(`:`)[1]||e})]},e))})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider`,children:`Topological Dependencies`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:l.dependencies?.map(e=>(0,j.jsxs)(`span`,{onClick:()=>r(e),className:`cursor-pointer text-xs font-mono px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-indigo-600/30 text-slate-300 hover:text-indigo-200 border border-slate-700 transition-colors`,children:[`➔ `,e]},e))})]})]}),(0,j.jsx)(`div`,{className:`pt-6 border-t border-slate-800`,children:(0,j.jsxs)(`button`,{onClick:()=>t(`Analyze module ${l.name} and suggest refactorings`),className:`w-full flex items-center justify-center gap-2 py-3 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-xs shadow-lg shadow-indigo-600/30 transition-all hover:scale-[1.02] active:scale-[0.98]`,children:[(0,j.jsx)(Ft,{className:`w-3.5 h-3.5 text-yellow-300 fill-yellow-300`}),(0,j.jsxs)(`span`,{children:[`Reason About `,l.name]})]})})]})]})}function Vt({projectData:e,initialPrompt:t}){let[n,r]=(0,_.useState)(`default`),[i,a]=(0,_.useState)(e?.tasks?.[0]?.task_id||`phase-5-pilot`),[o,s]=(0,_.useState)(t||`Analyze current task state, risks, and next engineering actions`);(0,_.useEffect)(()=>{e?.tasks?.[0]?.task_id&&a(e.tasks[0].task_id)},[e?.tasks]);let[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(`structured`),m=e?.lastCheckpoint||{},h=m.claims||{},g=m.evidence?.git||{},[v,y]=(0,_.useState)({title:`AI Engineering Continuation Briefing`,task:`phase-5-pilot (Phase 5: Consented Pilot and Product Decision)`,timestamp:m.timestamp||new Date().toISOString(),provider:`Meta Llama 3.3 70B`,checkpointId:m.checkpoint_id?m.checkpoint_id.slice(0,8):`e6cfd02c`,gitCommit:g.commit_hash?g.commit_hash.slice(0,7):`9d84ce6`,summary:m.summary||`Completed ADR-014 VectorForce Studio, dynamic module topology clustering, and resilient MCP daemon resolution. All 62 unit and integration tests passing.`,whereLeftOff:[m.summary||`Completed previous milestone`,...(h.goals||[]).map(e=>`Active Goal: ${e}`),...(h.decisions||[]).map(e=>`Decision: ${e.id} (${e.title}) — ${e.rationale}`)],driftAnalysis:"VERIFIED: No git or document drift detected in active task `phase-5-pilot`. Workspace at commit 9d84ce6 (main), dirty: false.",risks:h.constraints&&h.constraints.length>0?h.constraints.map(e=>`Invariant Constraint: ${e}`):[`Invariant: Zero external backend runtime dependencies (Node.js built-ins only).`,`Invariant: Strict local-first SQLite isolation — zero cloud credentials or code leakage.`],nextActions:h.next_steps&&h.next_steps.length>0?h.next_steps.map((e,t)=>`${t+1}. ${e}`):[`1. Discuss explicit graph ontology (NetworkX) and vector search (ChromaDB) in subsequent session.`,`2. Deliver 90-second continuous context recovery walkthrough to hackathon judges.`],rawNarrative:null,degraded:!1}),b=[`Continue OAuth implementation`,`Feature: What did we do this week?`,`Detect architectural violations before adding refresh tokens`,`Reconcile drift in docs/spec.md`],x=async(e=o)=>{l(!0);try{let t=await fetch(`/api/reason`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({focus:e,model:n==="default"?void 0:n,taskId:i})});if(t.ok){let r=await t.json(),a=r.checkpoint||{},o=a.claims||{},s=a.evidence?.git||{},c=[a.summary||`Completed previous engineering phase`,...(o.goals||[]).map(e=>`Active Objective: ${e}`),...(o.decisions||[]).map(e=>`Decision: ${e.id} (${e.title}) — ${e.rationale}`)],l=r.driftDetected?`DRIFT DETECTED: ${r.warnings.join(` | `)}`:`VERIFIED: No drift detected in task '${r.task?.task_id||i}'. Git commit ${s.commit_hash?.slice(0,7)||`clean`} matches recorded evidence.`,u=o.constraints&&o.constraints.length>0?o.constraints.map(e=>`Invariant Constraint: ${e}`):[`Invariant Constraint: Zero external backend runtime dependencies.`,`Invariant Constraint: Strict local-first isolation (zero cloud data leaks).`],d=o.next_steps&&o.next_steps.length>0?o.next_steps.map((e,t)=>`${t+1}. ${e}`):[`1. Rehearse 90-second hackathon demonstration.`,`2. Review pending graph and vector enhancement proposals.`],f=``;f=e.toLowerCase().includes(`oauth`)?`Focus: OAuth Implementation. Active checkpoint ${a.checkpoint_id?.slice(0,8)} tracks OAuth PKCE security flow (DEC-AUTH-01: SHA-256 code challenge). Next engineering step: Implement refresh token rotation.`:e.toLowerCase().includes(`week`)?`Weekly Context Continuity: 8 checkpoints recorded over the last 7 days across 3 active tasks (phase-5-pilot, phase-4-handoff, phase-3-complete). 62 automated tests passing.`:e.toLowerCase().includes(`drift`)?r.driftDetected?`Drift Analysis: Detected modifications since checkpoint ${a.checkpoint_id?.slice(0,8)}. Warnings: ${r.warnings.join(`, `)}`:`Drift Analysis: Workspace is fully synchronized. Zero commit or document drift detected.`:r.degraded?`Grounded against latest checkpoint ${a.checkpoint_id?.slice(0,8)} and ${r.codeFilesConsidered||78} workspace files. Deterministic briefing active (LLM: rule-based fallback).`:`Synthesized via ${r.provider||`Meta Llama 3.3`} (${r.model||n}) grounded against checkpoint ${a.checkpoint_id?.slice(0,8)} and live AST symbol index.`,y({title:`Continuation Synthesis: "${e}"`,task:`${r.task?.task_id||i} (${r.task?.title||`Active Task`})`,timestamp:a.timestamp||new Date().toISOString(),provider:r.degraded?`Deterministic Briefing Engine`:r.provider||`Meta Llama 3.3`,checkpointId:a.checkpoint_id?a.checkpoint_id.slice(0,8):`e6cfd02c`,gitCommit:s.commit_hash?s.commit_hash.slice(0,7):`9d84ce6`,summary:f,whereLeftOff:c,driftAnalysis:l,risks:u,nextActions:d,rawNarrative:r.narrativeText,degraded:r.degraded})}}catch(e){console.error(`Reasoning query failed:`,e)}finally{l(!1)}};return(0,j.jsxs)(`div`,{className:`p-8 max-w-6xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ht,{className:`w-6 h-6 text-indigo-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`AI Engineering Memory Console`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Autonomous context reasoning grounded in immutable checkpoints and live code ontology.`})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 bg-slate-900 border border-slate-800 rounded-xl px-3 py-1.5`,children:[(0,j.jsx)(`span`,{className:`text-xs text-slate-400 font-semibold`,children:`Scope:`}),(0,j.jsx)(`select`,{value:i,onChange:e=>a(e.target.value),className:`bg-transparent text-xs text-indigo-300 font-mono focus:outline-none cursor-pointer`,children:(Array.isArray(e?.tasks)?e.tasks:e?.tasks?.list||[{task_id:`phase-5-pilot`,title:`Phase 5: Consented Pilot`},{task_id:`phase-4-handoff`,title:`Phase 4: Handoff & Safety`}]).map(e=>(0,j.jsx)(`option`,{value:e.task_id,className:`bg-slate-900 text-white font-sans`,children:e.task_id},e.task_id))})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2 bg-slate-900 border border-slate-800 rounded-xl px-3 py-1.5`,children:[(0,j.jsx)(k,{className:`w-4 h-4 text-purple-400`}),(0,j.jsx)(`span`,{className:`text-xs text-slate-400 font-semibold`,children:`Model:`}),(0,j.jsxs)(`select`,{value:n,onChange:e=>r(e.target.value),className:`bg-transparent text-xs text-white focus:outline-none cursor-pointer`,children:[(0,j.jsxs)(`option`,{value:`default`,className:`bg-slate-900 text-white`,children:[`Configured (`,e?.ai?.model||`accounts/fireworks/models/muse-spark-open`,`)`]}),(0,j.jsx)(`option`,{value:`accounts/fireworks/models/muse-spark-open`,className:`bg-slate-900 text-white`,children:`Muse Spark Open (Fireworks AI · 1M Context)`}),(0,j.jsx)(`option`,{value:`meta/muse-spark-open`,className:`bg-slate-900 text-white`,children:`Muse Spark Open (OpenRouter)`}),(0,j.jsx)(`option`,{value:`muse-spark-1.3`,className:`bg-slate-900 text-white`,children:`Meta Muse Direct (muse-spark-1.3)`}),(0,j.jsx)(`option`,{value:`llama3.3`,className:`bg-slate-900 text-white`,children:`Local Ollama (llama3.3 · 100% Private)`}),(0,j.jsx)(`option`,{value:`gpt-4.1`,className:`bg-slate-900 text-white`,children:`OpenAI GPT-4.1`}),(0,j.jsx)(`option`,{value:`claude-sonnet-4-5`,className:`bg-slate-900 text-white`,children:`Anthropic Claude Sonnet 4.5`})]})]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Quick Reasoning Presets:`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:b.map(e=>(0,j.jsxs)(`button`,{onClick:()=>{s(e),x(e)},className:`text-xs px-3 py-1.5 rounded-lg bg-slate-900 hover:bg-slate-800 text-slate-300 hover:text-white border border-slate-800 hover:border-indigo-500/40 transition-all flex items-center gap-1.5 active:scale-95`,children:[(0,j.jsx)(`span`,{className:`text-amber-400 font-bold`,children:`⚡`}),(0,j.jsx)(`span`,{children:e})]},e))})]}),(0,j.jsxs)(`div`,{className:`p-4 rounded-2xl glass-panel border border-slate-700/80 space-y-3`,children:[(0,j.jsx)(`textarea`,{rows:3,value:o,onChange:e=>s(e.target.value),placeholder:`Ask VectorForce to synthesize context, identify architectural risks, or plan the next engineering task...`,className:`w-full bg-slate-900/80 border border-slate-800 rounded-xl p-3 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500 font-sans`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-slate-500`,children:[(0,j.jsx)(pt,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Grounded against real SQLite state & AST symbol index`})]}),(0,j.jsx)(`button`,{onClick:()=>x(o),disabled:c,className:`flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-xs shadow-lg shadow-indigo-600/30 transition-all hover:scale-105 active:scale-95 disabled:opacity-50 cursor-pointer`,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ht,{className:`w-3.5 h-3.5 animate-spin`}),(0,j.jsx)(`span`,{children:`Synthesizing Context...`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(at,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Reason About Task`})]})})]})]}),(0,j.jsxs)(`div`,{className:`rounded-2xl glass-panel border border-indigo-500/20 overflow-hidden shadow-2xl`,children:[(0,j.jsxs)(`div`,{className:`px-5 py-3.5 bg-slate-900/90 border-b border-slate-800 flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Ct,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`span`,{className:`text-xs font-bold text-white tracking-wide`,children:v.title})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center bg-slate-950 p-0.5 rounded-lg border border-slate-800 text-[11px]`,children:[(0,j.jsx)(`button`,{onClick:()=>p(`structured`),className:`px-2.5 py-1 rounded-md transition-all ${f===`structured`?`bg-indigo-600 text-white font-semibold`:`text-slate-400 hover:text-white`}`,children:`Structured`}),(0,j.jsx)(`button`,{onClick:()=>p(`narrative`),className:`px-2.5 py-1 rounded-md transition-all ${f===`narrative`?`bg-indigo-600 text-white font-semibold`:`text-slate-400 hover:text-white`}`,children:`Markdown Stream`})]}),(0,j.jsxs)(`span`,{className:`text-[11px] font-mono text-slate-400 hidden sm:inline`,children:[`Engine: `,(0,j.jsx)(`span`,{className:`text-indigo-300 font-semibold`,children:v.provider})]}),(0,j.jsx)(`button`,{onClick:()=>{let e=f===`narrative`&&v.rawNarrative?v.rawNarrative:JSON.stringify(v,null,2);navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),2e3)},className:`text-xs text-slate-400 hover:text-white p-1.5 rounded-lg hover:bg-slate-800 transition-colors`,title:`Copy to clipboard`,children:u?(0,j.jsx)(ue,{className:`w-3.5 h-3.5 text-emerald-400`}):(0,j.jsx)(Se,{className:`w-3.5 h-3.5`})})]})]}),f===`narrative`&&v.rawNarrative?(0,j.jsx)(`div`,{className:`p-6 bg-slate-950 font-mono text-xs text-slate-200 leading-relaxed whitespace-pre-wrap max-h-[500px] overflow-y-auto`,children:v.rawNarrative}):(0,j.jsxs)(`div`,{className:`p-6 space-y-6 text-sm text-slate-200`,children:[(0,j.jsxs)(`div`,{className:`p-4 rounded-xl bg-indigo-950/30 border border-indigo-500/20 text-indigo-200 text-xs leading-relaxed font-medium`,children:[`💡 `,(0,j.jsx)(`strong`,{className:`text-white`,children:`Executive Synthesis:`}),` `,v.summary]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(ve,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Where You Left Off`})]}),(0,j.jsx)(`ul`,{className:`space-y-1.5 text-xs text-slate-300`,children:v.whereLeftOff.map((e,t)=>(0,j.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,j.jsx)(`span`,{className:`text-indigo-400 font-bold`,children:`•`}),(0,j.jsx)(`span`,{children:e})]},t))})]}),(0,j.jsxs)(`div`,{className:`space-y-2 border-t border-slate-800 pt-4`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Verified Workspace Evidence & Drift`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 leading-relaxed font-mono bg-slate-900/60 p-3 rounded-lg border border-slate-800`,children:v.driftAnalysis})]}),(0,j.jsxs)(`div`,{className:`space-y-2 border-t border-slate-800 pt-4`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(Dt,{className:`w-3.5 h-3.5 text-amber-400`}),(0,j.jsx)(`span`,{children:`Architectural Invariants & Risk Review`})]}),(0,j.jsx)(`ul`,{className:`space-y-1.5 text-xs text-slate-300`,children:v.risks.map((e,t)=>(0,j.jsxs)(`li`,{className:`flex items-start gap-2 text-amber-200/90`,children:[(0,j.jsx)(`span`,{className:`text-amber-400 font-bold`,children:`⚠️`}),(0,j.jsx)(`span`,{children:e})]},t))})]}),(0,j.jsxs)(`div`,{className:`space-y-2 border-t border-slate-800 pt-4`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(ze,{className:`w-3.5 h-3.5 text-purple-400`}),(0,j.jsx)(`span`,{children:`Ranked Next Engineering Actions`})]}),(0,j.jsx)(`div`,{className:`space-y-2`,children:v.nextActions.map((e,t)=>(0,j.jsx)(`div`,{className:`p-3 rounded-xl bg-slate-900/80 border border-slate-800 text-xs text-slate-200 font-medium`,children:e},t))})]})]}),(0,j.jsxs)(`div`,{className:`px-6 py-3 bg-slate-950 border-t border-slate-800/80 flex items-center justify-between text-[11px] text-slate-500`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Claims vs Evidence Protocol strictly enforced`})]}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[`Checkpoint: `,(0,j.jsx)(`span`,{className:`text-slate-300`,children:v.checkpointId}),` | Git: `,(0,j.jsx)(`span`,{className:`text-slate-300`,children:v.gitCommit})]})]})]})]})}function Ht({projectData:e}){let[t,n]=(0,_.useState)(`decisions`),[r,i]=(0,_.useState)(``),a=e?.decisions||[],o=e?.constraints||[],s=a.filter(e=>e.id.toLowerCase().includes(r.toLowerCase())||e.title.toLowerCase().includes(r.toLowerCase())||e.rationale.toLowerCase().includes(r.toLowerCase()));return(0,j.jsxs)(`div`,{className:`p-8 max-w-6xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(we,{className:`w-6 h-6 text-purple-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Project Memory & Ontology`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Durable engineering memory: AST code symbols, allowlisted specs, immutable decisions, and constraints.`})]}),(0,j.jsx)(`div`,{className:`flex items-center bg-slate-900 border border-slate-800 rounded-xl p-1 text-xs`,children:[{id:`decisions`,label:`Decisions (${a.length})`},{id:`constraints`,label:`Constraints (${o.length})`},{id:`symbols`,label:`Code Symbols`},{id:`docs`,label:`Allowlisted Docs`}].map(e=>(0,j.jsx)(`button`,{onClick:()=>n(e.id),className:`px-3 py-1.5 rounded-lg font-semibold transition-all ${t===e.id?`bg-purple-600 text-white shadow`:`text-slate-400 hover:text-slate-200`}`,children:e.label},e.id))})]}),t===`decisions`&&(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Recorded Architectural Choices (ADRs / Checkpoints)`}),(0,j.jsxs)(`div`,{className:`relative w-64`,children:[(0,j.jsx)(rt,{className:`w-3.5 h-3.5 text-slate-500 absolute left-2.5 top-1/2 -translate-y-1/2`}),(0,j.jsx)(`input`,{type:`text`,placeholder:`Filter decisions...`,value:r,onChange:e=>i(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-lg text-xs text-white pl-8 pr-3 py-1.5 focus:outline-none focus:border-purple-500`})]})]}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:s.map(e=>(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover border border-slate-800/80 space-y-2 flex flex-col justify-between`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold px-2 py-0.5 rounded bg-purple-500/10 text-purple-300 border border-purple-500/30`,children:e.id}),(0,j.jsx)(`span`,{className:`text-[11px] font-mono text-slate-500`,children:e.taskId})]}),(0,j.jsx)(`h3`,{className:`text-sm font-bold text-white mt-2`,children:e.title}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 mt-1 leading-relaxed`,children:e.rationale})]}),(0,j.jsxs)(`div`,{className:`pt-3 border-t border-slate-800/60 flex items-center justify-between text-[11px] text-slate-500`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(ve,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Committed & Verified`})]}),(0,j.jsx)(`span`,{children:e.timestamp?.slice(0,10)})]})]},e.id))})]}),t===`constraints`&&(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Non-Negotiable Invariants`}),(0,j.jsx)(`div`,{className:`space-y-3`,children:o.map((e,t)=>(0,j.jsxs)(`div`,{className:`p-4 rounded-xl glass-panel border border-amber-500/20 flex items-start gap-3 bg-amber-500/5`,children:[(0,j.jsx)(Dt,{className:`w-4 h-4 text-amber-400 shrink-0 mt-0.5`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs font-bold text-slate-200`,children:e}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 mt-0.5`,children:`Enforced at every checkpoint across Google Antigravity and Command Code.`})]})]},t))})]}),t===`symbols`&&(0,j.jsx)(`div`,{className:`space-y-4`,children:(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`span`,{className:`text-xs font-bold text-slate-300 uppercase tracking-wider flex items-center gap-2`,children:[(0,j.jsx)(ke,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Containment-Safe Workspace AST Symbols`})]}),(0,j.jsx)(`span`,{className:`text-xs font-mono text-indigo-400 font-semibold`,children:`1,420 Symbols Indexed`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 leading-relaxed`,children:`Symbols are extracted deterministically without cloud scrapers or external language servers. Zero external dependencies.`}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-3 pt-3`,children:[{name:`SqliteStore`,type:`Class`,file:`src/storage/sqlite-store.js`,symbols:18},{name:`ReasoningService`,type:`Class`,file:`src/operations/reasoning-service.js`,symbols:12},{name:`McpServer`,type:`Class`,file:`src/mcp/mcp-server.js`,symbols:14},{name:`HandoffService`,type:`Class`,file:`src/operations/handoff-service.js`,symbols:16},{name:`BriefingService`,type:`Class`,file:`src/operations/briefing-service.js`,symbols:8},{name:`CodeIndexProvider`,type:`Class`,file:`src/providers/code-index-provider.js`,symbols:10}].map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 text-xs space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`font-bold text-indigo-300 font-mono`,children:e.name}),(0,j.jsx)(`span`,{className:`text-[10px] px-1.5 py-0.5 rounded bg-slate-800 text-slate-400`,children:e.type})]}),(0,j.jsx)(`p`,{className:`text-[11px] font-mono text-slate-500 truncate`,children:e.file})]},e.name))})]})}),t===`docs`&&(0,j.jsx)(`div`,{className:`space-y-4`,children:(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel space-y-3`,children:[(0,j.jsxs)(`span`,{className:`text-xs font-bold text-slate-300 uppercase tracking-wider flex items-center gap-2`,children:[(0,j.jsx)(je,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Allowlisted Project Documents`})]}),(0,j.jsx)(`div`,{className:`space-y-2 pt-2`,children:[{path:`AGENTS.md`,size:`2.1 kB`,hash:`cff46c35...`,status:`Verified`},{path:`docs/spec.md`,size:`50 bytes`,hash:`d4382c45...`,status:`Tamper Flagged (Pilot)`},{path:`package.json`,size:`942 bytes`,hash:`8a3b129c...`,status:`Verified`}].map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 flex items-center justify-between text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(je,{className:`w-4 h-4 text-slate-500`}),(0,j.jsx)(`span`,{className:`font-mono text-slate-200 font-semibold`,children:e.path}),(0,j.jsxs)(`span`,{className:`text-[10px] text-slate-500`,children:[`(`,e.size,`)`]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`span`,{className:`text-[10px] font-mono text-slate-500`,children:e.hash}),(0,j.jsx)(`span`,{className:`text-[10px] font-bold px-2 py-0.5 rounded ${e.status.includes(`Tamper`)?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:`bg-emerald-500/10 text-emerald-300 border border-emerald-500/30`}`,children:e.status})]})]},e.path))})]})})]})}function Ut({projectData:e,onTriggerReasoning:t}){let[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(!1),o=e?.checkpoints||[],s=e=>{r(n===e?null:e)};return(0,j.jsxs)(`div`,{className:`p-8 max-w-5xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(tt,{className:`w-6 h-6 text-blue-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Timeline & Checkpoint Provenance`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Immutable parent-linked checkpoint chain. Compare, resume, and audit engineering state over time.`})]}),(0,j.jsxs)(`button`,{onClick:()=>a(!0),className:`flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white font-semibold text-xs shadow-md shadow-blue-500/20 transition-all hover:scale-105`,children:[(0,j.jsx)(ce,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Weekly Engineering Recap`})]})]}),(0,j.jsx)(`div`,{className:`relative pl-6 space-y-8 before:absolute before:left-2 before:top-3 before:bottom-3 before:w-0.5 before:bg-gradient-to-b before:from-indigo-500 before:via-purple-500 before:to-slate-800`,children:o.map((e,r)=>{let i=n===e.id;return(0,j.jsxs)(`div`,{className:`relative group`,children:[(0,j.jsx)(`div`,{className:`absolute -left-[30px] top-4 w-4 h-4 rounded-full bg-slate-900 border-2 border-indigo-500 group-hover:border-purple-400 group-hover:scale-125 transition-all glow-indigo flex items-center justify-center`,children:(0,j.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full bg-indigo-400`})}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover border border-slate-800 space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-start justify-between gap-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-400`,children:e.id.slice(0,8)}),(0,j.jsx)(`span`,{className:`text-xs font-semibold px-2 py-0.5 rounded bg-slate-800 text-slate-300`,children:e.task_id}),e.drift?(0,j.jsxs)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30 flex items-center gap-1`,children:[(0,j.jsx)(dt,{className:`w-3 h-3 text-amber-400`}),`Drift Flagged`]}):(0,j.jsxs)(`span`,{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded bg-emerald-500/10 text-emerald-300 border border-emerald-500/20 flex items-center gap-1`,children:[(0,j.jsx)(pt,{className:`w-3 h-3 text-emerald-400`}),`Verified`]})]}),(0,j.jsx)(`h3`,{className:`text-sm font-bold text-white pt-1`,children:e.summary})]}),(0,j.jsx)(`span`,{className:`text-xs text-slate-500 shrink-0 font-medium`,children:e.timestamp})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 pt-3 border-t border-slate-800/80 text-xs text-slate-400`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(Fe,{className:`w-3.5 h-3.5 text-slate-500`}),(0,j.jsx)(`span`,{className:`font-mono text-slate-300`,children:e.commit})]}),(0,j.jsxs)(`span`,{children:[`By `,e.author]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`button`,{onClick:()=>t(`Resume task ${e.task_id} from checkpoint ${e.id.slice(0,8)}`),className:`px-2.5 py-1 rounded-lg bg-indigo-600/20 hover:bg-indigo-600 text-indigo-300 hover:text-white font-semibold text-xs border border-indigo-500/30 transition-all flex items-center gap-1`,children:[(0,j.jsx)(ht,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:`Resume Briefing`})]}),(0,j.jsx)(`button`,{onClick:()=>s(e.id),className:`p-1 rounded-lg hover:bg-slate-800 text-slate-400 hover:text-slate-200 transition-colors`,children:i?(0,j.jsx)(me,{className:`w-4 h-4`}):(0,j.jsx)(fe,{className:`w-4 h-4`})})]})]}),i&&(0,j.jsxs)(`div`,{className:`mt-4 pt-4 border-t border-slate-800 space-y-3 bg-slate-900/50 p-4 rounded-xl text-xs`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`span`,{className:`font-bold text-slate-400 uppercase tracking-wider text-[10px]`,children:`Active Goals:`}),(0,j.jsx)(`ul`,{className:`mt-1 space-y-1 text-slate-300`,children:e.goals?.map((e,t)=>(0,j.jsxs)(`li`,{children:[`• `,e]},t))})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`span`,{className:`font-bold text-slate-400 uppercase tracking-wider text-[10px]`,children:`Decisions:`}),(0,j.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1.5`,children:e.decisions?.map(e=>(0,j.jsx)(`span`,{className:`px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-300 border border-indigo-500/20 font-mono text-[11px]`,children:e},e))})]}),e.driftWarning&&(0,j.jsxs)(`div`,{className:`p-2.5 rounded bg-amber-500/10 border border-amber-500/30 text-amber-200 text-[11px]`,children:[`⚠️ `,e.driftWarning]})]})]})]},e.id)})}),i&&(0,j.jsx)(`div`,{className:`fixed inset-0 bg-black/70 backdrop-blur-sm z-50 flex items-center justify-center p-4`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-2xl bg-slate-900 border border-slate-800 rounded-2xl p-6 space-y-5 shadow-2xl`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ce,{className:`w-5 h-5 text-blue-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Weekly Engineering Recap (vf recap)`})]}),(0,j.jsx)(`button`,{onClick:()=>a(!1),className:`text-slate-400 hover:text-white text-sm`,children:`✕`})]}),(0,j.jsxs)(`div`,{className:`space-y-4 text-xs text-slate-300 leading-relaxed font-mono bg-slate-950 p-4 rounded-xl border border-slate-800 max-h-96 overflow-y-auto`,children:[(0,j.jsx)(`p`,{className:`text-indigo-300 font-bold`,children:`# Weekly Context Continuity Recap: VectorForce`}),(0,j.jsx)(`p`,{children:`**Window:** Past 7 days | **Total Checkpoints:** 14 across 3 tasks`}),(0,j.jsxs)(`div`,{className:`space-y-1 border-t border-slate-800 pt-2`,children:[(0,j.jsx)(`p`,{className:`font-bold text-slate-200`,children:`## Milestone Progression`}),(0,j.jsx)(`p`,{children:`• Phase 3 (M2): Stdio MCP bridge for Google Antigravity & Command Code`}),(0,j.jsx)(`p`,{children:`• Phase 4 (M3): Selective export, safe import, cryptographic manifests`}),(0,j.jsx)(`p`,{children:`• Phase 5 (M4): 62 automated tests passing, distribution packaging`}),(0,j.jsx)(`p`,{children:`• Pilot Verification: Command Code drift & prompt injection defense`})]}),(0,j.jsxs)(`div`,{className:`space-y-1 border-t border-slate-800 pt-2`,children:[(0,j.jsx)(`p`,{className:`font-bold text-slate-200`,children:`## Active Decisions`}),(0,j.jsx)(`p`,{children:`• DEC-AI-1: OpenAI-compatible provider abstraction`}),(0,j.jsx)(`p`,{children:`• DEC-AI-2: Ephemeral AI reasoning view`}),(0,j.jsx)(`p`,{children:`• DEC-AUTH-01: SHA-256 Code Challenge (PKCE)`})]})]}),(0,j.jsx)(`div`,{className:`flex justify-end gap-3 pt-2`,children:(0,j.jsx)(`button`,{onClick:()=>a(!1),className:`px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 font-medium text-xs`,children:`Close`})})]})})]})}function Wt({projectData:e,onRefreshData:t}){let n=Array.isArray(e?.tasks)?e.tasks:e?.tasks?.list||[],r=Array.isArray(e?.checkpoints)?e.checkpoints:[],[i,a]=(0,_.useState)(`External Reviewer`),[o,s]=(0,_.useState)(n[0]?.task_id||``),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(`any`),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(null),[y,b]=(0,_.useState)(null),[x,S]=(0,_.useState)([]),[C,w]=(0,_.useState)(`file`),[T,ee]=(0,_.useState)(``),[E,te]=(0,_.useState)(``),[ne,re]=(0,_.useState)(``),[ie,D]=(0,_.useState)(``),[ae,oe]=(0,_.useState)(!1),[se,ce]=(0,_.useState)(null),[le,de]=(0,_.useState)(null),fe=(0,_.useRef)(null);(0,_.useEffect)(()=>{n.length>0&&(!o||!n.some(e=>e.task_id===o))&&s(n[0].task_id)},[n,o]),(0,_.useEffect)(()=>{fetch(`/api/team`).then(e=>e.json()).then(e=>{e.team&&e.team.length>0&&S(e.team)}).catch(()=>{})},[]);let pe=r.filter(e=>!o||e.task_id===o),me=async()=>{p(!0),h(null);try{let e=await fetch(`/api/handoff/export`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({recipient:i.trim()||`Collaborator`,taskId:o||n[0]?.task_id,checkpointId:c||void 0,destinationHarness:u})}),t=await e.json();if(!e.ok||t.error){h(t.error||`Failed to export handoff package`);return}let r=t.handoff?.checkpoint?.evidence?.documents?.map(e=>e.path)||[`AGENTS.md`],a=t.manifest?.files?.[0]?.sha256||t.receipt?.request_hash||`verified`;v({package_id:t.package_id,bundle_path:t.bundlePath||`~/.vectorforce/handoffs/${t.package_id}.json`,recipient:i.trim()||`Collaborator`,destinationHarness:u,task_id:t.handoff?.origin?.task_id||o,checkpoint_id:t.handoff?.origin?.checkpoint_id||``,sha256:a,timestamp:t.manifest?.created_at||new Date().toISOString(),status:t.receipt?.status||`committed`,docsIncluded:r.length>0?r:[`AGENTS.md`],docsRedacted:[`.env*`,`*.pem`,`id_rsa*`],bundle:t.bundle||{schema_version:`vectorforce/handoff-bundle/v1`,package_id:t.package_id,created_at:t.manifest?.created_at||new Date().toISOString(),manifest:t.manifest,handoff:t.handoff}})}catch(e){h(e.message||`Network error while exporting handoff package`)}finally{p(!1)}},he=()=>{if(!g?.bundle)return;let e=JSON.stringify(g.bundle,null,2),t=new Blob([e],{type:`application/json`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`${g.package_id}.vfhandoff.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)},_e=(e,t)=>{navigator.clipboard.writeText(t),b(e),setTimeout(()=>b(null),2e3)},ye=e=>{let t=e.target.files?.[0];if(!t)return;re(t.name),ce(null);let n=new FileReader;n.onload=e=>{te(String(e.target?.result||``))},n.readAsText(t)},be=async()=>{oe(!0),ce(null),de(null);try{let e=C===`path`?{bundlePath:T.trim(),targetTaskId:ie.trim()||void 0}:{bundleContent:E,targetTaskId:ie.trim()||void 0},n=await fetch(`/api/handoff/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}),r=await n.json();if(!n.ok||r.error){ce(r.error||`Failed to import handoff package`);return}de(r),t&&t()}catch(e){ce(e.message||`Failed to import handoff package`)}finally{oe(!1)}},xe=x.length>0?x:e?.team||[];return(0,j.jsxs)(`div`,{className:`p-8 max-w-5xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(jt,{className:`w-6 h-6 text-emerald-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Team & Safe Context Handoff`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Boundary-isolated context sharing across developer harnesses without leaking private credentials.`})]}),(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,j.jsxs)(`span`,{className:`text-xs px-2.5 py-1 rounded-full bg-emerald-500/10 text-emerald-300 border border-emerald-500/20 font-medium`,children:[xe.length||1,` Registered Author(s)`]})})]}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-5`,children:xe.map((e,t)=>{let n=String(e?.name||`Author ${t+1}`);return(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover border border-slate-800 space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 to-purple-600 flex items-center justify-center font-bold text-white text-sm shadow`,children:n.slice(0,2).toUpperCase()}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`text-sm font-bold text-white`,children:n}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 font-medium`,children:e?.role||`Contributor`})]})]}),(0,j.jsxs)(`div`,{className:`pt-2 border-t border-slate-800/80 space-y-1.5 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center text-slate-400`,children:[(0,j.jsx)(`span`,{children:`Harness:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-semibold`,children:e?.harness||`cli`})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center text-slate-400`,children:[(0,j.jsx)(`span`,{children:`Tasks:`}),(0,j.jsx)(`span`,{className:`text-indigo-400 font-mono text-[11px]`,children:Array.isArray(e?.tasks)?e.tasks.join(`, `):e?.activeTask||o})]})]})]},n)})}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel border border-slate-700/80 space-y-5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(lt,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Export Boundary-Safe Handoff Package`})]}),(0,j.jsx)(`span`,{className:`text-[11px] font-mono text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 px-2.5 py-0.5 rounded-full`,children:`SHA-256 Manifest Signed`})]}),(0,j.jsxs)(`p`,{className:`text-xs text-slate-300 leading-relaxed`,children:[`VectorForce packages active goals, architectural decisions, and allowlisted documents into an immutable, single-file `,(0,j.jsx)(`code`,{className:`text-indigo-300`,children:`.vfhandoff.json`}),` bundle. Unallowlisted files and secrets are mathematically excluded.`]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:[(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Target Recipient:`}),(0,j.jsx)(`input`,{type:`text`,value:i,onChange:e=>a(e.target.value),placeholder:`e.g. External Reviewer, Priya (Backend), Security Audit`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1.5 pt-1`,children:[`External Reviewer`,`Teammate (Cross-Harness)`,`Security Audit`,`Release Lead`].map(e=>(0,j.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`text-[10px] px-2 py-0.5 rounded-md border transition-colors ${i===e?`bg-indigo-600/20 border-indigo-500/50 text-indigo-300`:`bg-slate-900 border-slate-800 text-slate-400 hover:text-slate-200`}`,children:e},e))})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Active Task Scope:`}),(0,j.jsx)(`select`,{value:o,onChange:e=>{s(e.target.value),l(``)},className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500 font-mono`,children:n.map(e=>(0,j.jsxs)(`option`,{value:e.task_id,children:[e.task_id,` (`,e.title||e.status||`active`,`)`]},e.task_id))})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Checkpoint Snapshot:`}),(0,j.jsxs)(`select`,{value:c,onChange:e=>l(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500 font-mono`,children:[(0,j.jsx)(`option`,{value:``,children:`Latest Head Checkpoint (Auto-Resolve)`}),pe.map((e,t)=>{let n=String(e?.checkpoint_id||e?.id||`cp-${t}`),r=typeof e?.author==`string`?e.author:e?.author?.harness||e?.authorObj?.harness||`cli`;return(0,j.jsxs)(`option`,{value:n,children:[n.slice(0,8),` — [`,r,`] `,String(e?.summary||``).slice(0,48)]},n)})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Target AI Harness:`}),(0,j.jsxs)(`select`,{value:u,onChange:e=>d(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500`,children:[(0,j.jsx)(`option`,{value:`any`,children:`Any Harness (Universal Handoff)`}),(0,j.jsx)(`option`,{value:`antigravity`,children:`Google Antigravity (antigravity)`}),(0,j.jsx)(`option`,{value:`muse-code`,children:`Meta Muse (muse-code)`}),(0,j.jsx)(`option`,{value:`command-code`,children:`Claude Code / Command Code (command-code)`}),(0,j.jsx)(`option`,{value:`codex`,children:`OpenAI Codex (codex)`})]})]})]}),m&&(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-rose-500/10 border border-rose-500/30 flex items-center gap-2 text-xs text-rose-300`,children:[(0,j.jsx)(ge,{className:`w-4 h-4 text-rose-400 shrink-0`}),(0,j.jsx)(`span`,{children:m})]}),(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsx)(`button`,{onClick:me,disabled:f,className:`flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-500 hover:to-teal-500 text-white font-semibold text-xs shadow-lg shadow-emerald-600/20 transition-all hover:scale-105 disabled:opacity-50`,children:f?(0,j.jsx)(`span`,{children:`Generating Package...`}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Ee,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Export Safe Package`})]})})}),g&&(0,j.jsxs)(`div`,{className:`mt-4 p-5 rounded-xl bg-slate-900 border border-emerald-500/30 space-y-4 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,j.jsxs)(`span`,{className:`font-bold text-emerald-400 flex items-center gap-1.5`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsxs)(`span`,{children:[`Package Committed & Verified (`,g.status,`)`]})]}),(0,j.jsx)(`span`,{className:`font-mono text-indigo-300 bg-indigo-500/10 border border-indigo-500/20 px-2.5 py-0.5 rounded-md`,children:g.package_id})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-2 text-[11px] font-mono text-slate-300 bg-slate-950/60 p-3 rounded-lg border border-slate-800`,children:[(0,j.jsxs)(`div`,{className:`truncate`,title:g.bundle_path,children:[`Saved File: `,(0,j.jsx)(`span`,{className:`text-indigo-300`,children:g.bundle_path})]}),(0,j.jsxs)(`div`,{children:[`SHA-256: `,(0,j.jsxs)(`span`,{className:`text-emerald-300`,children:[g.sha256.slice(0,24),`...`]})]}),(0,j.jsxs)(`div`,{children:[`Task / Checkpoint: `,(0,j.jsxs)(`span`,{className:`text-slate-200`,children:[g.task_id,` (`,g.checkpoint_id.slice(0,8),`)`]})]}),(0,j.jsxs)(`div`,{children:[`Recipient / Harness: `,(0,j.jsxs)(`span`,{className:`text-slate-200`,children:[g.recipient,` → `,g.destinationHarness]})]})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2.5 pt-1`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:he,className:`flex items-center gap-1.5 px-3.5 py-2 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white font-semibold text-xs shadow transition-colors`,children:[(0,j.jsx)(A,{className:`w-3.5 h-3.5`}),(0,j.jsxs)(`span`,{children:[`Download `,g.package_id,`.vfhandoff.json`]})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>_e(`json`,JSON.stringify(g.bundle,null,2)),className:`flex items-center gap-1.5 px-3 py-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 font-medium text-xs border border-slate-700 transition-colors`,children:[y===`json`?(0,j.jsx)(ue,{className:`w-3.5 h-3.5 text-emerald-400`}):(0,j.jsx)(Se,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:y===`json`?`Copied Bundle JSON!`:`Copy Bundle JSON`})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>_e(`cli`,`vf handoff import "${g.bundle_path}"`),className:`flex items-center gap-1.5 px-3 py-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 font-medium text-xs border border-slate-700 transition-colors font-mono`,children:[y===`cli`?(0,j.jsx)(ue,{className:`w-3.5 h-3.5 text-emerald-400`}):(0,j.jsx)(Ct,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:y===`cli`?`Copied CLI Command!`:`Copy CLI Import Command`})]})]}),(0,j.jsxs)(`div`,{className:`pt-2 border-t border-slate-800 flex items-center justify-between text-[11px] text-slate-400`,children:[(0,j.jsxs)(`span`,{children:[`Allowlisted Evidence: `,g.docsIncluded.join(`, `)]}),(0,j.jsxs)(`span`,{className:`text-emerald-400 font-medium flex items-center gap-1`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5`}),`Zero Secrets Leaked`]})]})]})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel border border-slate-700/80 space-y-5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(kt,{className:`w-5 h-5 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Import & Reconcile Teammate Handoff Package`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:()=>w(`file`),className:`px-2.5 py-1 rounded-lg text-xs font-medium transition-colors ${C===`file`?`bg-indigo-600 text-white`:`bg-slate-900 text-slate-400 hover:text-white border border-slate-800`}`,children:`Upload / Paste JSON`}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>w(`path`),className:`px-2.5 py-1 rounded-lg text-xs font-medium transition-colors ${C===`path`?`bg-indigo-600 text-white`:`bg-slate-900 text-slate-400 hover:text-white border border-slate-800`}`,children:`Local File Path`})]})]}),(0,j.jsxs)(`p`,{className:`text-xs text-slate-300 leading-relaxed`,children:[`Import a signed `,(0,j.jsx)(`code`,{className:`text-indigo-300`,children:`.vfhandoff.json`}),` bundle from a teammate. VectorForce verifies the SHA-256 manifest digest before reconciling decisions and constraints into your local SQLite context ledger.`]}),C===`file`?(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,j.jsx)(`input`,{ref:fe,type:`file`,accept:`.json,.vfhandoff.json`,onChange:ye,className:`hidden`}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>fe.current?.click(),className:`flex items-center gap-2 px-4 py-2 rounded-xl bg-slate-900 hover:bg-slate-800 text-indigo-300 border border-indigo-500/30 text-xs font-semibold transition-colors`,children:[(0,j.jsx)(A,{className:`w-4 h-4`}),(0,j.jsx)(`span`,{children:`Choose .vfhandoff.json File`})]}),ne&&(0,j.jsxs)(`span`,{className:`text-xs font-mono text-emerald-400`,children:[`Loaded: `,ne]}),g?.bundle&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{te(JSON.stringify(g.bundle,null,2)),re(`${g.package_id}.vfhandoff.json`)},className:`text-xs text-slate-400 hover:text-indigo-300 underline`,children:[`Use Just-Exported Bundle (`,g.package_id,`)`]})]}),(0,j.jsx)(`textarea`,{rows:4,value:E,onChange:e=>te(e.target.value),placeholder:`Or paste raw "vectorforce/handoff-bundle/v1" JSON content here...`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-xs font-mono text-slate-200 focus:outline-none focus:border-indigo-500`})]}):(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Bundle File Path on Disk:`}),(0,j.jsx)(`input`,{type:`text`,value:T,onChange:e=>ee(e.target.value),placeholder:`e.g. ~/.vectorforce/handoffs/hand-xxxx.json`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs font-mono text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 items-end`,children:[(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Target Task ID (Optional — defaults to origin task):`}),(0,j.jsx)(`input`,{type:`text`,value:ie,onChange:e=>D(e.target.value),placeholder:o||`Leave blank to use package origin task`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs font-mono text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsxs)(`button`,{type:`button`,onClick:be,disabled:ae||(C===`file`?!E.trim():!T.trim()),className:`flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-xs shadow-lg shadow-indigo-600/20 transition-all disabled:opacity-50`,children:[(0,j.jsx)(kt,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:ae?`Verifying & Importing...`:`Import & Reconcile Context`})]})})]}),se&&(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-rose-500/10 border border-rose-500/30 flex items-center gap-2 text-xs text-rose-300`,children:[(0,j.jsx)(ge,{className:`w-4 h-4 text-rose-400 shrink-0`}),(0,j.jsx)(`span`,{children:se})]}),le&&(0,j.jsxs)(`div`,{className:`p-4 rounded-xl bg-slate-900 border border-emerald-500/30 space-y-2 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`span`,{className:`font-bold text-emerald-400 flex items-center gap-1.5`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Handoff Package Verified & Imported into SQLite`})]}),(0,j.jsxs)(`span`,{className:`font-mono text-indigo-300`,children:[`Checkpoint: `,le.importedCheckpointId?.slice(0,8)]})]}),(0,j.jsxs)(`div`,{className:`text-[11px] font-mono text-slate-400`,children:[`Reconciled into Task: `,(0,j.jsx)(`span`,{className:`text-slate-200`,children:le.task?.task_id}),` (`,le.task?.title,`)`]})]})]})]})}var Gt=[{id:`fireworks`,label:`Fireworks AI (Muse Spark Open)`,badge:`#1 Hackathon Priority`,model:`accounts/fireworks/models/muse-spark-open`,baseUrl:`https://api.fireworks.ai/inference/v1`,needsKey:!0},{id:`openrouter`,label:`OpenRouter (Muse Spark Open)`,badge:`Open Weights`,model:`meta/muse-spark-open`,baseUrl:`https://openrouter.ai/api/v1`,needsKey:!0},{id:`muse`,label:`Meta Muse Direct API`,badge:`Official API`,model:`muse-spark-1.3`,baseUrl:`https://api.meta.ai/v1`,needsKey:!0},{id:`ollama`,label:`Local Ollama (100% Private)`,badge:`Zero API Key`,model:`llama3.3`,baseUrl:`http://127.0.0.1:11434`,needsKey:!1},{id:`openai`,label:`OpenAI / Codex`,badge:`Cloud`,model:`gpt-4.1`,baseUrl:`https://api.openai.com/v1`,needsKey:!0},{id:`anthropic`,label:`Anthropic Claude`,badge:`Cloud`,model:`claude-sonnet-4-5`,baseUrl:`https://api.anthropic.com/v1`,needsKey:!0},{id:`byok`,label:`Custom BYOK (vLLM / Groq / Together)`,badge:`Custom URL`,model:`meta-llama/Llama-3.3-70B-Instruct`,baseUrl:`https://api.groq.com/openai/v1`,needsKey:!0}];function Kt({projectData:e,theme:t,onToggleTheme:n,onRefreshData:r}){let[i,a]=(0,_.useState)(e?.ai?.provider||`fireworks`),[o,s]=(0,_.useState)(e?.ai?.model||`accounts/fireworks/models/muse-spark-open`),[c,l]=(0,_.useState)(e?.ai?.baseUrl||`https://api.fireworks.ai/inference/v1`),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(null),[y,b]=(0,_.useState)(e?.allowedDocuments||[`AGENTS.md`]),[x,S]=(0,_.useState)(``),[C,w]=(0,_.useState)(null),[T,ee]=(0,_.useState)(!1),[E,te]=(0,_.useState)(null);(0,_.useEffect)(()=>{async function e(){try{let[e,t]=await Promise.all([fetch(`/api/config/llm`).catch(()=>null),fetch(`/api/memory`).catch(()=>null)]);if(e&&e.ok){let t=await e.json();a(t.provider||`ollama`),s(t.model||`llama3.3`),l(t.baseUrl||`http://127.0.0.1:11434`),p(!!t.hasApiKey)}if(t&&t.ok){let e=await t.json();Array.isArray(e.allowedDocuments)&&b(e.allowedDocuments)}}catch{}}e()},[]);let ne=e=>{a(e.id),s(e.model),l(e.baseUrl),v(null)},re=async e=>{e.preventDefault(),h(!0),v(null);try{let e=await fetch(`/api/config/llm`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:i,model:o,baseUrl:c,apiKey:u})}),t=await e.json();e.ok&&t.ok?(p(!!t.hasApiKey),d(``),v({type:`success`,text:`Saved & activated ${t.provider} (${t.model}) in .vectorforce/config.json`}),r&&r()):v({type:`error`,text:t.error||`Failed to save configuration`})}catch(e){v({type:`error`,text:e.message})}finally{h(!1)}},ie=async e=>{let t=String(e||x).trim();if(t){w(null);try{let e=await fetch(`/api/policy`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:t})}),n=await e.json();e.ok&&n.ok&&(b(n.allowedDocuments),S(``),w(`Added "${t}" to document allowlist.`),r&&r())}catch{}}},D=async e=>{try{let t=await fetch(`/api/policy`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`remove`,path:e})}),n=await t.json();t.ok&&n.ok&&(b(n.allowedDocuments),w(`Removed "${e}" from allowlist.`),r&&r())}catch{}};return(0,j.jsxs)(`div`,{className:`p-8 max-w-5xl mx-auto space-y-8`,children:[(0,j.jsx)(`div`,{className:`border-b border-slate-800 pb-6 flex flex-col sm:flex-row sm:items-center justify-between gap-4`,children:(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(st,{className:`w-6 h-6 text-indigo-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Studio Interactive Control & Configuration`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Configure AI reasoning models (Meta Muse Spark Open, Fireworks, OpenRouter, Ollama, OpenAI, Anthropic, BYOK), document policies, and MCP client configs directly from the UI.`})]})}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-5 border border-indigo-500/20`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(k,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`1. AI Reasoning Model Configuration (No CLI Typing Required)`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono px-2.5 py-1 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20`,children:[`Active: `,i,` · `,o]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-300`,children:`Select AI Provider Preset (Click to autofill):`}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5`,children:Gt.map(e=>{let t=i===e.id;return(0,j.jsxs)(`button`,{type:`button`,onClick:()=>ne(e),className:`p-3 rounded-xl border text-left transition-all ${t?`bg-indigo-600/20 border-indigo-500 ring-1 ring-indigo-500/40`:`bg-slate-900/70 border-slate-800 hover:border-slate-700`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,j.jsx)(`span`,{className:`text-xs font-bold text-white truncate`,children:e.label}),(0,j.jsx)(`span`,{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded bg-indigo-500/15 text-indigo-300 shrink-0`,children:e.badge})]}),(0,j.jsx)(`p`,{className:`text-[11px] font-mono text-slate-400 truncate mt-1`,children:e.model})]},e.id)})})]}),(0,j.jsxs)(`form`,{onSubmit:re,className:`space-y-4 pt-2`,children:[(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-4 text-xs`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`text-slate-300 font-semibold`,children:`Provider ID:`}),(0,j.jsx)(`input`,{type:`text`,value:i,onChange:e=>a(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`text-slate-300 font-semibold`,children:`Model Identifier:`}),(0,j.jsx)(`input`,{type:`text`,value:o,onChange:e=>s(e.target.value),placeholder:`accounts/fireworks/models/muse-spark-open`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`text-slate-300 font-semibold`,children:`API Base URL:`}),(0,j.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),placeholder:`https://api.fireworks.ai/inference/v1`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]})]}),(0,j.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-end gap-4 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex-1 space-y-1`,children:[(0,j.jsxs)(`label`,{className:`text-slate-300 font-semibold flex items-center gap-1.5`,children:[(0,j.jsx)(Le,{className:`w-3.5 h-3.5 text-amber-400`}),(0,j.jsxs)(`span`,{children:[`API Key `,i===`ollama`?`(Not required for Local Ollama)`:f?`(Key already saved — enter new key to replace)`:`(Required for cloud reasoning)`]})]}),(0,j.jsx)(`input`,{type:`password`,value:u,onChange:e=>d(e.target.value),placeholder:i===`ollama`?`Local Ollama uses zero API keys`:`Paste API key (stored locally in .vectorforce/config.json)`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`button`,{type:`submit`,disabled:m,className:`px-5 py-2.5 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-bold text-xs shadow-lg shadow-indigo-600/25 flex items-center gap-2 shrink-0 cursor-pointer`,children:[(0,j.jsx)(ht,{className:`w-4 h-4`}),(0,j.jsx)(`span`,{children:m?`Saving...`:`Save & Activate Model`})]})]}),g&&(0,j.jsxs)(`div`,{className:`p-3 rounded-xl text-xs font-medium flex items-center gap-2 ${g.type===`success`?`bg-emerald-500/10 text-emerald-300 border border-emerald-500/30`:`bg-rose-500/10 text-rose-300 border border-rose-500/30`}`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 shrink-0`}),(0,j.jsx)(`span`,{children:g.text})]})]})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(je,{className:`w-5 h-5 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`2. Document Policy Allowlist (Checkpoint Evidence Collection)`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono text-slate-400`,children:[y.length,` file(s) allowlisted`]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400`,children:"Only allowlisted `.md` and `.txt` files (`< 8 KiB` each) are collected and SHA-256 hashed during checkpoints. Add or remove files below without using the CLI:"}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:y.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-1.5 rounded-xl bg-slate-900 border border-slate-700 text-xs font-mono text-emerald-300`,children:[(0,j.jsx)(`span`,{children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>D(e),className:`text-slate-500 hover:text-rose-400 transition-colors cursor-pointer`,title:`Remove from allowlist`,children:(0,j.jsx)(Tt,{className:`w-3.5 h-3.5`})})]},e))}),(0,j.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-2 pt-1`,children:[(0,j.jsx)(`input`,{type:`text`,value:x,onChange:e=>S(e.target.value),placeholder:`e.g. ARCHITECTURE.md or docs/spec.md`,className:`flex-1 bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white font-mono focus:outline-none focus:border-indigo-500`}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>ie(),className:`px-4 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white font-semibold text-xs flex items-center gap-1.5 shrink-0 cursor-pointer`,children:[(0,j.jsx)(Ze,{className:`w-4 h-4`}),(0,j.jsx)(`span`,{children:`Add to Allowlist`})]})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-[11px] text-slate-400`,children:[(0,j.jsx)(`span`,{children:`Quick Add:`}),[`AGENTS.md`,`ARCHITECTURE.md`,`README.md`,`SPEC.md`].map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>ie(e),className:`px-2 py-0.5 rounded bg-slate-900 hover:bg-slate-800 border border-slate-800 text-indigo-300 font-mono cursor-pointer`,children:[`+ `,e]},e))]}),C&&(0,j.jsx)(`p`,{className:`text-xs text-emerald-400 font-medium`,children:C})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ze,{className:`w-5 h-5 text-amber-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`3. One-Click AI Client MCP Harness Auto-Installer`})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:async()=>{ee(!0);try{let e=await fetch(`/api/config/harnesses`,{method:`POST`}),t=await e.json();e.ok&&t.ok&&te(t.installed||[])}catch{}finally{ee(!1)}},disabled:T,className:`px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-semibold text-xs flex items-center gap-1.5 cursor-pointer`,children:[(0,j.jsx)($e,{className:`w-3.5 h-3.5 ${T?`animate-spin`:``}`}),(0,j.jsx)(`span`,{children:T?`Syncing...`:`Sync All AI Client MCP Configs`})]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400`,children:"Automatically writes and updates `.agents/mcp_config.json` (Google Antigravity), `.mcp.json` (Claude Code & Command Code), `.muse/mcp_config.json` (Meta Muse), and `.codex/config.toml` (OpenAI Codex)."}),E&&(0,j.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-2.5 pt-1`,children:E.map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-emerald-500/30 text-xs space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-emerald-400 font-bold`,children:[(0,j.jsx)(ve,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:e.harness})]}),(0,j.jsx)(`p`,{className:`font-mono text-[11px] text-slate-400 truncate`,children:e.path})]},e.harness))})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(qe,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`4. Appearance & Theme`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-400 border border-indigo-500/20`,children:[`Active: `,t===`light`?`Light Theme`:`Dark Theme`]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4 pt-1`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{t!==`dark`&&n()},className:`p-4 rounded-xl border flex items-center gap-3 transition-all text-left cursor-pointer ${t===`dark`?`bg-indigo-600/15 border-indigo-500/60 ring-2 ring-indigo-500/30 shadow-lg`:`bg-slate-900/60 border-slate-800 hover:border-slate-700`}`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-lg bg-slate-950 border border-slate-800 flex items-center justify-center shrink-0`,children:(0,j.jsx)(Ue,{className:`w-5 h-5 text-indigo-400`})}),(0,j.jsxs)(`div`,{className:`flex-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-sm font-bold text-white`,children:`Dark Mode`}),t===`dark`&&(0,j.jsx)(ve,{className:`w-4 h-4 text-indigo-400`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-0.5`,children:`Deep slate & neon accents`})]})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{t!==`light`&&n()},className:`p-4 rounded-xl border flex items-center gap-3 transition-all text-left cursor-pointer ${t===`light`?`bg-indigo-50 border-indigo-500/60 ring-2 ring-indigo-500/30 shadow-lg`:`bg-slate-900/60 border-slate-800 hover:border-slate-700`}`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-lg bg-slate-100 border border-slate-300 flex items-center justify-center shrink-0`,children:(0,j.jsx)(xt,{className:`w-5 h-5 text-amber-500`})}),(0,j.jsxs)(`div`,{className:`flex-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-sm font-bold text-white`,children:`Light Mode`}),t===`light`&&(0,j.jsx)(ve,{className:`w-4 h-4 text-indigo-500`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-0.5`,children:`Crisp, high-contrast daylight`})]})]})]})]})]})}function qt({isOpen:e,onClose:t,onSaveCheckpoint:n,projectData:r}){let i=r?.tasks?.[0]?.task_id||`main`,[a,o]=(0,_.useState)(i),[s,c]=(0,_.useState)(`studio`),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(`DEC-STUDIO-01`),[v,y]=(0,_.useState)(``),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{r?.tasks?.[0]?.task_id&&o(r.tasks[0].task_id)},[r?.tasks]),e?(0,j.jsx)(`div`,{className:`fixed inset-0 bg-black/75 backdrop-blur-sm z-50 flex items-center justify-center p-4`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-lg bg-[#0d1322] border border-slate-700/80 rounded-2xl p-6 space-y-4 shadow-2xl`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Ze,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Capture Immutable Checkpoint (SQLite WAL)`})]}),(0,j.jsx)(`button`,{onClick:t,className:`text-slate-400 hover:text-white text-sm cursor-pointer`,children:(0,j.jsx)(Nt,{className:`w-4 h-4`})})]}),(0,j.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),l.trim()){T(!0);try{await n({taskId:a.trim(),authorHarness:s,summary:l.trim(),goals:d.trim()?[d.trim()]:[],constraints:p.trim()?[p.trim()]:[],decisions:v.trim()?[{id:h.trim()||`DEC-STUDIO-01`,title:v.trim(),rationale:b.trim()||`Recorded via VectorForce Studio UI`}]:[],nextSteps:S.trim()?[S.trim()]:[],requestedDocuments:Array.isArray(r?.allowedDocuments)?r.allowedDocuments:[]}),u(``),f(``),m(``),y(``),x(``),C(``),t()}finally{T(!1)}}},className:`space-y-3.5 text-xs`,children:[(0,j.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Task ID:`}),(0,j.jsx)(`input`,{type:`text`,value:a,onChange:e=>o(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`,required:!0})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Source Harness / IDE:`}),(0,j.jsxs)(`select`,{value:s,onChange:e=>c(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`,children:[(0,j.jsx)(`option`,{value:`studio`,children:`VectorForce Studio UI`}),(0,j.jsx)(`option`,{value:`antigravity`,children:`Google Antigravity`}),(0,j.jsx)(`option`,{value:`muse-code`,children:`Meta Muse (muse-code)`}),(0,j.jsx)(`option`,{value:`command-code`,children:`Claude Code / Command Code`}),(0,j.jsx)(`option`,{value:`codex`,children:`OpenAI Codex CLI`})]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Concise Summary of Work:`}),(0,j.jsx)(`textarea`,{rows:2,value:l,onChange:e=>u(e.target.value),placeholder:`e.g. Implemented promo discount validation and updated Studio model settings`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-white focus:outline-none focus:border-indigo-500`,required:!0})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Active Goal:`}),(0,j.jsx)(`input`,{type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`e.g. Zero rounding drift`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Invariant Constraint:`}),(0,j.jsx)(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),placeholder:`e.g. Zero external runtime DB`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-3 gap-2`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Decision ID:`}),(0,j.jsx)(`input`,{type:`text`,value:h,onChange:e=>g(e.target.value),placeholder:`DEC-01`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Decision Title:`}),(0,j.jsx)(`input`,{type:`text`,value:v,onChange:e=>y(e.target.value),placeholder:`e.g. IntegerCentMath`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-2 text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Rationale:`}),(0,j.jsx)(`input`,{type:`text`,value:b,onChange:e=>x(e.target.value),placeholder:`Why chosen...`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-2 text-white focus:outline-none focus:border-indigo-500`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Immediate Next Step:`}),(0,j.jsx)(`input`,{type:`text`,value:S,onChange:e=>C(e.target.value),placeholder:`e.g. Run E2E verification in Command Code`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between pt-3 border-t border-slate-800`,children:[(0,j.jsxs)(`span`,{className:`text-[11px] text-slate-500 flex items-center gap-1`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Persists directly to .vectorforce/vectorforce.db`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 font-medium cursor-pointer`,children:`Cancel`}),(0,j.jsx)(`button`,{type:`submit`,disabled:w,className:`px-5 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-semibold shadow-md shadow-indigo-600/30 cursor-pointer`,children:w?`Committing...`:`Commit Checkpoint`})]})]})]})]})}):null}var Jt={project:{id:`proj-c16f3afcb5712bc2`,name:`VectorForce Studio`,tagline:`AI Engineering Memory for Coding Agents`,canonical_path:`/Users/omprakashprajapat/AgentAI/VectorForce`,created_at:`2026-10-15T09:00:00.000Z`},ai:{connected:!0,provider:`meta-muse`,model:`llama-3.3-70b-versatile`,latency:`184ms`,contextWindow:`128k`},health:{score:94,status:`Healthy`,driftDetected:!1,memoryIntegrity:`Verified`,harnessesConnected:[`Google Antigravity`,`Command Code`]},stats:{filesIndexed:48,symbolsIndexed:1420,allowlistedDocs:6,checkpointsCount:14,decisionsCount:8,activeTasks:3},tasks:[{task_id:`phase-5-pilot`,title:`AI Engineering Memory & Reasoning Layer (Meta Muse Hackathon)`,status:`active`,updated_at:`Just now`,head_checkpoint:`16372985-22a9-4bad-8125-3bcfbc795f53`},{task_id:`feat-oauth`,title:`OAuth2 with PKCE Flow & Ed25519 Signing`,status:`active`,updated_at:`2 hours ago`,head_checkpoint:`66bb6165-28ad-4f27-80a6-ab7e5aa52fe8`},{task_id:`phase-4-handoff`,title:`Cross-Harness Handoff & Safe Reconciliation`,status:`completed`,updated_at:`Yesterday`,head_checkpoint:`86ae9227-aed7-4f31-9425-ae98986bfd83`}],decisions:[{id:`DEC-AI-1`,title:`OpenAI-compatible provider abstraction`,rationale:`Unified fetch-based chat client for cloud Meta Llama / Muse and local Ollama with zero external runtime dependencies.`,taskId:`phase-5-pilot`,timestamp:`2026-10-18T05:04:46Z`},{id:`DEC-AI-2`,title:`Ephemeral AI reasoning view`,rationale:`Reasoning adds no schema change or mutable tables; it remains a read-only semantic synthesis view over immutable checkpoints.`,taskId:`phase-5-pilot`,timestamp:`2026-10-18T05:04:46Z`},{id:`DEC-AI-3`,title:`Deterministic briefing fallback`,rationale:`On model failure or offline mode, degrades cleanly to rule-based briefing rather than failing.`,taskId:`phase-5-pilot`,timestamp:`2026-10-18T05:04:46Z`},{id:`DEC-AUTH-01`,title:`SHA-256 Code Challenge`,rationale:`RFC 7636 compliance for public client authorization flow without third-party auth SDKs.`,taskId:`feat-oauth`,timestamp:`2026-10-17T18:34:20Z`},{id:`DEC-HANDOFF-01`,title:`Cryptographic Handoff Bundle`,rationale:`Single-file JSON envelope containing SHA-256 manifest and safe receipts without document traversal risks.`,taskId:`phase-4-handoff`,timestamp:`2026-10-17T18:09:41Z`},{id:`DEC-MCP-02`,title:`Daemon Lifecycle Decoupling`,rationale:`Decoupled stdio stream shutdown from standard CLI exit; binds cleanup solely to SIGINT/SIGTERM.`,taskId:`phase-3-complete`,timestamp:`2026-10-17T17:51:04Z`}],constraints:[`AI output is an unverified claim and must never be written into ground-truth evidence`,`Zero external runtime dependencies (Node.js built-ins plus global fetch only)`,`Strict document allowlist policy before any file content is captured`,`Safe receipts only: receipts never contain sensitive document bodies or private tokens`,`Preserve Claims vs Evidence distinction across all harnesses`],checkpoints:[{id:`16372985-22a9-4bad-8125-3bcfbc795f53`,task_id:`phase-5-pilot`,timestamp:`Today, 10:34 AM`,author:`omprakashprajapat (Command Code)`,summary:`Built the AI Engineering Memory reasoning layer (vf reason / reason_about_task) for the Meta Muse hackathon: LlmProvider, CodeIndexProvider, and ReasoningService with deterministic fallback.`,commit:`6593b6f`,branch:`main`,status:`committed`,goals:[`Ship AI reasoning layer`,`Zero runtime dependencies`],decisions:[`DEC-AI-1`,`DEC-AI-2`,`DEC-AI-3`],drift:!1},{id:`66bb6165-28ad-4f27-80a6-ab7e5aa52fe8`,task_id:`feat-oauth`,timestamp:`Yesterday, 7:04 PM`,author:`agent (Google Antigravity)`,summary:`OAuth2 PKCE initial architecture committed via live MCP; verified Ed25519 signature algorithm.`,commit:`fc9a2b7`,branch:`main`,status:`committed`,goals:[`Implement PKCE`,`Enforce Ed25519 signing`],decisions:[`DEC-AUTH-01`],drift:!0,driftWarning:`Document 'docs/spec.md' modified on disk (tamper detected)`},{id:`86ae9227-aed7-4f31-9425-ae98986bfd83`,task_id:`phase-4-handoff`,timestamp:`Oct 17, 6:46 PM`,author:`omprakashprajapat (CLI)`,summary:`Phase 4 committed locally to git (commit a1f3f67); selective export and safe import verified.`,commit:`a1f3f67`,branch:`main`,status:`committed`,goals:[`Selective export`,`Safe import`],decisions:[`DEC-HANDOFF-01`],drift:!1},{id:`036f961d-9c30-49d9-98c6-e0cf9f5e6871`,task_id:`phase-3-complete`,timestamp:`Oct 17, 5:51 PM`,author:`omprakashprajapat (CLI)`,summary:`Phase 3 MCP integration verified with Antigravity; resolved daemon lifecycle in vf.js.`,commit:`c6452f0`,branch:`main`,status:`committed`,goals:[`Bidirectional MCP handover`],decisions:[`DEC-MCP-02`],drift:!1}],modules:[{id:`auth-service`,name:`Authentication & PKCE`,category:`Security`,owner:`Om (Antigravity)`,status:`Tamper Flagged`,drift:!0,files:8,decisions:[`DEC-AUTH-01: SHA-256 Code Challenge`],dependencies:[`mcp-bridge`,`context-store`],x:320,y:120,description:`Handles RFC 7636 PKCE authorization flow, token validation, and Ed25519 key signing.`},{id:`ai-reasoning`,name:`AI Reasoning Engine`,category:`AI / Copilot`,owner:`Meta Llama / Muse`,status:`Active`,drift:!1,files:6,decisions:[`DEC-AI-1: OpenAI-compatible abstraction`,`DEC-AI-2: Ephemeral reasoning`],dependencies:[`code-index`,`context-store`,`briefing-engine`],x:600,y:120,description:`Generates grounded continuation narratives, architecture warnings, and ranked next steps.`},{id:`code-index`,name:`Semantic Code Index`,category:`Core`,owner:`VectorForce`,status:`Verified`,drift:!1,files:12,decisions:[`ADR-013: Containment-safe symbols`],dependencies:[`context-store`],x:600,y:320,description:`Indexes workspace AST symbols, classes, functions, and import topologies without external dependencies.`},{id:`briefing-engine`,name:`Briefing & Drift Engine`,category:`Continuity`,owner:`VectorForce`,status:`Verified`,drift:!1,files:4,decisions:[`ADR-003: Portable Checkpoints`,`DEC-MCP-02: DaemonLifecycle`],dependencies:[`context-store`],x:320,y:320,description:`Compares live workspace state with recorded checkpoints to detect git commit and document content drift.`},{id:`context-store`,name:`SQLite Context Store`,category:`Storage`,owner:`Local WAL`,status:`Verified`,drift:!1,files:2,decisions:[`DEC-01: Node:sqlite WAL mode`,`ADR-002: Local-first isolation`],dependencies:[],x:460,y:480,description:`Local-first SQLite database running in WAL mode with parent-linked provenance and zero cloud leaks.`},{id:`mcp-bridge`,name:`Harness MCP Bridge`,category:`Integration`,owner:`Antigravity & Command Code`,status:`Active`,drift:!1,files:4,decisions:[`DEC-MCP-02: Stdio JSON-RPC`],dependencies:[`context-store`,`ai-reasoning`],x:120,y:220,description:`Stdio Model Context Protocol server exposing tool capabilities to Google Antigravity and Command Code.`},{id:`handoff-service`,name:`Safe Handoff & Export`,category:`Security`,owner:`VectorForce`,status:`Verified`,drift:!1,files:3,decisions:[`DEC-HANDOFF-01: Cryptographic Bundle`],dependencies:[`context-store`],x:820,y:220,description:`Exports single-file boundary-isolated context packages with cryptographic manifests for teammates.`}],team:[{name:`Om Prakash Prajapat`,role:`Lead Engineer & Architect`,harness:`Command Code / Antigravity`,avatar:`OP`,activeTask:`AI Engineering Memory`,status:`Active`},{name:`Meta Muse AI`,role:`Autonomous Reasoning Copilot`,harness:`Llama 3.3 70B`,avatar:`AI`,activeTask:`Context Synthesis & Drift Detection`,status:`Synthesizing`},{name:`External Reviewer`,role:`Security Auditor`,harness:`Handoff Bundle Inspector`,avatar:`ER`,activeTask:`Zero-Dependency Audit`,status:`Read Only`}]};function Yt(){let[e,t]=(0,_.useState)(()=>{try{return new URLSearchParams(window.location.search).get(`tab`)||`dashboard`}catch{return`dashboard`}}),[n,r]=(0,_.useState)(Jt),[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(``),[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(()=>localStorage.getItem(`vf_theme`)||`dark`);(0,_.useEffect)(()=>{u===`light`?(document.documentElement.classList.add(`light`),document.documentElement.classList.remove(`dark`)):(document.documentElement.classList.add(`dark`),document.documentElement.classList.remove(`light`)),localStorage.setItem(`vf_theme`,u)},[u]);let f=()=>{d(e=>e===`light`?`dark`:`light`)},p=async()=>{try{let[e,t,n]=await Promise.all([fetch(`/api/status`).catch(()=>null),fetch(`/api/memory`).catch(()=>null),fetch(`/api/timeline?days=30`).catch(()=>null)]),i=e&&e.ok?await e.json():null,a=t&&t.ok?await t.json():null,o=n&&n.ok?await n.json():null;if(i){let e=Array.isArray(o?.checkpoints)?[...o.checkpoints].reverse().map(e=>({id:e.checkpoint_id,checkpoint_id:e.checkpoint_id,task_id:e.task_id,timestamp:e.timestamp?new Date(e.timestamp).toLocaleString():`Recent`,author:`${e.author?.name||`developer`} (${e.author?.harness||`cli`})`,authorObj:e.author||{name:`developer`,harness:`cli`},summary:e.summary||e.claims?.summary||``,commit:e.evidence?.git?.commit_hash?e.evidence.git.commit_hash.slice(0,7):`local`,branch:e.evidence?.git?.branch||`main`,status:`committed`,goals:e.claims?.goals||[],decisions:(e.claims?.decisions||[]).map(e=>e.id),drift:!1})):null;r(t=>({...t,project:{...t.project,name:i.project.name,id:i.project.id,canonical_path:i.project.path||t.project.canonical_path},ai:{...t.ai,...i.ai||{}},tasks:Array.isArray(i.tasks?.list)?i.tasks.list:t.tasks,allowedDocuments:Array.isArray(a?.allowedDocuments)?a.allowedDocuments:t.allowedDocuments,lastCheckpoint:i.lastCheckpoint||t.lastCheckpoint,checkpoints:e&&e.length>0?e:t.checkpoints,decisions:Array.isArray(a?.decisions)&&a.decisions.length>0?a.decisions:t.decisions,constraints:Array.isArray(a?.constraints)&&a.constraints.length>0?a.constraints:t.constraints,stats:{filesIndexed:a?.filesIndexed??t.stats.filesIndexed,symbolsIndexed:a?.symbolsIndexed??t.stats.symbolsIndexed,allowlistedDocs:Array.isArray(a?.allowedDocuments)?a.allowedDocuments.length:t.stats.allowlistedDocs,checkpointsCount:i.checkpointsCount??t.stats.checkpointsCount,decisionsCount:Array.isArray(a?.decisions)?a.decisions.length:t.stats.decisionsCount,activeTasks:i.tasks?.active??t.stats.activeTasks},health:{...t.health,score:i.health.score,driftDetected:i.health.driftDetected}}))}}catch{}};(0,_.useEffect)(()=>{p()},[]);let m=(e=``)=>{s(e),t(`ai`)};return(0,j.jsxs)(`div`,{className:`flex h-screen overflow-hidden font-sans transition-colors duration-200 ${u===`light`?`light bg-slate-50 text-slate-800`:`dark bg-[#090d16] text-slate-100`}`,children:[(0,j.jsx)(Lt,{currentTab:e,setCurrentTab:t,projectData:n}),(0,j.jsxs)(`div`,{className:`flex-1 flex flex-col h-screen overflow-hidden`,children:[(0,j.jsx)(Rt,{projectData:n,theme:u,onToggleTheme:f,onOpenCheckpointModal:()=>a(!0),onTriggerReasoning:m,isScanningDrift:c,onScanDrift:()=>{l(!0),p().finally(()=>{setTimeout(()=>l(!1),500)})}}),(0,j.jsxs)(`main`,{className:`flex-1 overflow-y-auto`,children:[e===`dashboard`&&(0,j.jsx)(zt,{projectData:n,onNavigateToTab:t,onTriggerReasoning:m,onOpenCheckpointModal:()=>a(!0),onRefreshData:p}),e===`graph`&&(0,j.jsx)(Bt,{projectData:n,onTriggerReasoning:m}),e===`ai`&&(0,j.jsx)(Vt,{projectData:n,initialPrompt:o}),e===`memory`&&(0,j.jsx)(Ht,{projectData:n}),e===`timeline`&&(0,j.jsx)(Ut,{projectData:n,onTriggerReasoning:m}),e===`team`&&(0,j.jsx)(Wt,{projectData:n,onRefreshData:p}),e===`settings`&&(0,j.jsx)(Kt,{projectData:n,theme:u,onToggleTheme:f,onRefreshData:p})]})]}),(0,j.jsx)(qt,{isOpen:i,onClose:()=>a(!1),onSaveCheckpoint:async e=>{try{if((await fetch(`/api/checkpoint`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok){await p();return}}catch{}let t={id:`cp-${Date.now().toString(16)}`,task_id:e.taskId,timestamp:`Just now`,author:`You (VectorForce Studio)`,summary:e.summary,commit:`local`,branch:`main`,status:`committed`,goals:e.goals,decisions:e.decisions?.map(e=>e.id)||[],drift:!1};r(e=>({...e,checkpoints:[t,...e.checkpoints||[]],stats:{...e.stats,checkpointsCount:(e.stats?.checkpointsCount||0)+1}}))},projectData:n})]})}(0,v.createRoot)(document.getElementById(`root`)).render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(Yt,{})}));
|
|
9
|
+
`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&_n(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:bn(e,r,o);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Tn);return;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=wn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Sn.get(n)||n,en(e,n,r);else return}M=!0}function tp(e,t,n,r,a,o){switch(n){case`style`:bn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)_n(e,``+r);else return;break;case`onScroll`:r!=null&&Q(`scroll`,e);return;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Tn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[jt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}M=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):en(e,n,r)}return}M=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}fn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&mn(e,!!r,n,!0):mn(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}gn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Q(zf[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(xn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(M=!0),o=m;break;case`name`:m!==f&&(M=!0),a=m;break;case`checked`:m!==f&&(M=!0),u=m;break;case`defaultChecked`:m!==f&&(M=!0),d=m;break;case`value`:m!==f&&(M=!0),s=m;break;case`defaultValue`:m!==f&&(M=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}dn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(M=!0),p=o;break;case`defaultValue`:o!==l&&(M=!0),c=o;break;case`multiple`:o!==l&&(M=!0),s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?mn(e,!!n,n?[]:``,!1):mn(e,!!n,t,!0)):mn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(M=!0),p=a;break;case`defaultValue`:a!==o&&(M=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}hn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(M=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(xn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[At]=r,n[jt]=t,np(n,e,t),Ut(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[j]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:E({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag===6||(e=b(e),t.observe(e)),!1}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag===6||(e=b(e),t.unobserve(e)),!1}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=zt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=ee(n,a,T),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=ee(r,a,T),t===null?t=!1:(h(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];h(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Zp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),Zp(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[j])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&$(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Tn&&(e.onclick=null),Rt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=k.d;k.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=zd();return e||t}function Cm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?ac(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=un(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ut(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+un(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+un(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+un(n.imageSizes)+`"]`)):i+=`[href="`+un(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=E({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Wt(o)}),Ut(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+un(r)+`"][href="`+un(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=E({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ut(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ht(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=E({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ut(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=E({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=E({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=Ae.current)?bm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ht(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var o=Ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,o)),Lm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ht(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pm(e){return`href="`+un(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Wt.bind(null,t),np(t,`link`,n),Ut(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+un(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+un(n.href)+`"]`);if(r)return t.instance=r,Ut(r),r;var a=E({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ut(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ut(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ut(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ut(a),a):(r=n,(a=vm.get(o))&&(r=E({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ut(a),np(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[j]||a[At]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ut(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:se,Provider:null,Consumer:null,_currentValue:Ce,_currentValue2:Ce,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.hiddenUpdates=yt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=zi(3,null,null,t),e.current=a,a.stateNode=e,t=La(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},bo(a),e}function uh(e){return e?(e=Li,e):Li}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=So(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Co(e,r,t),n!==null&&(Pd(n,e,t),wo(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Pi(e,67108864);t!==null&&Pd(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=jd();t=Tt(t);var n=Pi(e,t);n!==null&&Pd(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,yh(e,t,n,r)}finally{k.p=a,O.T=i}}function vh(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,yh(e,t,n,r)}finally{k.p=a,O.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Kf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=pt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ot(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(W&6)&&(_d=Je()+500,Df(0,!1))}}break;case 31:case 13:s=Pi(a,2),s!==null&&Pd(s,a,2),zd(),ph(a,2)}if(a=bh(r),a===null&&Kf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function bh(e){return e=Dn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=zt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 xh=e,null}function Ch(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ye()){case Xe:return 2;case Ze:return 8;case Qe:case $e:return 32;case et:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Bt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=zt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){hh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){hh(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 Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);En=r,n.target.dispatchEvent(r),En=null}else return t=Bt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,rc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[jt]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[jt]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dh(n,jd(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),zd(),t[Mt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=n.version;if(Kh!==`19.3.1`)throw Error(i(527,Kh,`19.3.1`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{rt=Jh.inject(qh),it=Jh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ec,s=Dc,c=Oc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,o,s,c,Uh),e[Mt]=t.current,Wf(e),new Wh(t)}})),g=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=c(u(),1),v=g(),y=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function b(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:y(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var x=e=>{let t=``,n=!1;for(let r of e)r===`-`||r===`_`||r<=` `?n=t.length>0:(t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1);return t},S=e=>{let t=x(e);return t.charAt(0).toUpperCase()+t.slice(1)},C=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),w={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function T(e){return e!=null}function ee(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??w.width,a=e.size??e.height??w.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?C(...c):C(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??w[`stroke-width`])*Number(e.size??e.width??w.width)/Number(t.size??t.width??w.width):t.strokeWidth??w[`stroke-width`];return[`svg`,{...Object.entries(w).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&T(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&T(t.width)&&{[r(`width`)]:t.width},...`height`in t&&T(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function E(e,t={}){return ee(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var te=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ne=(0,_.createContext)({}),re=()=>(0,_.useContext)(ne),ie=(0,_.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:v=`currentColor`,className:y=``}=re()??{},b=!!c||te(d),[x,S,w=[]]=E(u,{color:e??v,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:C(y,s),hasA11yProp:b,attributes:d});return(0,_.createElement)(x,{ref:f,...S},[...w.map(([e,t])=>(0,_.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function D(e,t=[],n=[]){let r=typeof e==`string`?b(e,t,n):e,i=(0,_.forwardRef)(({className:e,...t},n)=>(0,_.createElement)(ie,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=S(r.name)),i}var ae={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};ae.node;var oe=D(ae),se={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};se.node;var ce=D(se),le={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};le.node;var ue=D(le),de={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};de.node;var fe=D(de),pe={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};pe.node;var me=D(pe),he={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};he.node;var ge=D(he),_e={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};_e.node;var ve=D(_e),ye={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};ye.node;var be=D(ye),xe={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};xe.node;var Se=D(xe),O={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};O.node;var k=D(O),Ce={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};Ce.node;var we=D(Ce),Te={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Te.node;var Ee=D(Te),De={name:`file-braces`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]],aliases:[`file-json`]};De.node;var A=D(De),Oe={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};Oe.node;var ke=D(Oe),Ae={name:`file-text`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]};Ae.node;var je=D(Ae),Me={name:`git-branch`,size:24,node:[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]};Me.node;var Ne=D(Me),Pe={name:`git-commit-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]],aliases:[`git-commit`]};Pe.node;var Fe=D(Pe),Ie={name:`key`,size:24,node:[[`path`,{d:`m2 21 9.6-9.6`,key:`9l79m3`}],[`path`,{d:`m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19`,key:`fw8biw`}],[`circle`,{cx:`15.5`,cy:`7.5`,r:`5.5`,key:`4wxmhb`}]]};Ie.node;var Le=D(Ie),Re={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};Re.node;var ze=D(Re),Be={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};Be.node;var Ve=D(Be),He={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};He.node;var Ue=D(He),We={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};We.node;var Ge=D(We),Ke={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};Ke.node;var qe=D(Ke),Je={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Je.node;var Ye=D(Je),Xe={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};Xe.node;var Ze=D(Xe),Qe={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};Qe.node;var $e=D(Qe),et={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};et.node;var tt=D(et),nt={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};nt.node;var rt=D(nt),it={name:`send`,size:24,node:[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]};it.node;var at=D(it),ot={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};ot.node;var st=D(ot),ct={name:`share-2`,size:24,node:[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]};ct.node;var lt=D(ct),ut={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};ut.node;var dt=D(ut),ft={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};ft.node;var pt=D(ft),mt={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};mt.node;var ht=D(mt),gt={name:`square-check-big`,size:24,node:[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]],aliases:[`check-square`]};gt.node;var _t=D(gt),vt={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};vt.node;var yt=D(vt),bt={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};bt.node;var xt=D(bt),St={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};St.node;var Ct=D(St),wt={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};wt.node;var Tt=D(wt),Et={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Et.node;var Dt=D(Et),Ot={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Ot.node;var kt=D(Ot),At={name:`users`,size:24,node:[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]};At.node;var jt=D(At),Mt={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Mt.node;var Nt=D(Mt),Pt={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};Pt.node;var Ft=D(Pt),It=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),j=o(((e,t)=>{t.exports=It()}))();function Lt({currentTab:e,setCurrentTab:t,projectData:n}){return(0,j.jsxs)(`aside`,{className:`w-64 border-r border-slate-800/80 bg-[#0c121e]/90 flex flex-col justify-between shrink-0 h-screen select-none`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`p-5 border-b border-slate-800/80 flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 via-indigo-500 to-purple-500 flex items-center justify-center shadow-lg shadow-indigo-500/20 glow-indigo`,children:(0,j.jsx)(k,{className:`w-5 h-5 text-white`})}),(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`font-extrabold text-white tracking-tight text-base`,children:`VectorForce`}),(0,j.jsx)(`span`,{className:`text-[10px] uppercase font-bold tracking-widest px-1.5 py-0.5 rounded bg-indigo-500/20 text-indigo-400 border border-indigo-500/30`,children:`Studio`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 font-medium truncate`,children:`AI Engineering Memory`})]})]}),(0,j.jsx)(`nav`,{className:`p-3 space-y-1`,children:[{id:`dashboard`,label:`Dashboard`,icon:Ve},{id:`graph`,label:`Project Graph`,icon:Ge,badge:`WOW`},{id:`ai`,label:`AI Workspace`,icon:ht,highlight:!0},{id:`memory`,label:`Memory & Ontology`,icon:we},{id:`timeline`,label:`Timeline & History`,icon:tt},{id:`team`,label:`Team & Handoff`,icon:jt},{id:`settings`,label:`Settings`,icon:st}].map(n=>{let r=n.icon,i=e===n.id;return(0,j.jsxs)(`button`,{onClick:()=>t(n.id),className:`w-full flex items-center justify-between px-3.5 py-2.5 rounded-xl font-medium text-sm transition-all duration-200 ${i?`bg-gradient-to-r from-indigo-600/90 to-purple-600/90 text-white shadow-md shadow-indigo-600/25 border border-indigo-400/30`:`text-slate-400 hover:text-slate-200 hover:bg-slate-800/50`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(r,{className:`w-4 h-4 ${i?`text-white`:n.highlight?`text-indigo-400`:`text-slate-400`}`}),(0,j.jsx)(`span`,{children:n.label})]}),n.badge&&(0,j.jsx)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-purple-500/20 text-purple-300 border border-purple-500/30`,children:n.badge}),n.highlight&&!i&&(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-indigo-500 animate-pulse`})]},n.id)})})]}),(0,j.jsx)(`div`,{className:`p-4 border-t border-slate-800/80`,children:(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900/80 border border-slate-800 flex flex-col gap-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between text-xs`,children:[(0,j.jsxs)(`span`,{className:`text-slate-400 flex items-center gap-1.5 font-medium`,children:[(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-emerald-500 animate-ping`}),`Meta Muse Spark`]}),(0,j.jsx)(`span`,{className:`text-emerald-400 font-semibold text-[11px]`,children:`Online`})]}),(0,j.jsxs)(`div`,{className:`text-[11px] text-slate-500 flex items-center justify-between`,children:[(0,j.jsx)(`span`,{children:`Storage: SQLite WAL`}),(0,j.jsx)(`span`,{className:`text-slate-400 font-mono`,children:`0.1.0`})]}),(0,j.jsxs)(`div`,{className:`pt-1.5 border-t border-slate-800/60 flex items-center gap-1.5 text-[11px] text-indigo-300/90 font-medium`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-indigo-400 shrink-0`}),(0,j.jsx)(`span`,{className:`truncate`,children:`Local-First & Zero Leaks`})]})]})})]})}function Rt({projectData:e,theme:t,onToggleTheme:n,onOpenCheckpointModal:r,onTriggerReasoning:i,isScanningDrift:a,onScanDrift:o,selectedTaskId:s,onSelectTask:c}){let l=e?.health?.driftDetected,u=e?.git?.branch||`main`,d=e?.git?.commit?e.git.commit.slice(0,7):e?.lastCheckpoint?.commit?e.lastCheckpoint.commit.slice(0,7):`HEAD`,f=!!e?.git?.isDirty;return(0,j.jsxs)(`header`,{className:`h-16 border-b border-slate-800/80 bg-[#090d16]/80 backdrop-blur-md px-6 flex items-center justify-between shrink-0 sticky top-0 z-20`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`font-bold text-white text-base tracking-tight`,children:e?.project?.name||`VectorForce`}),(0,j.jsx)(`span`,{className:`text-xs px-2 py-0.5 rounded-full bg-slate-800 text-slate-400 font-mono`,title:e?.project?.id,children:e?.project?.id?`${e.project.id.slice(0,10)}...`:`active`})]}),(0,j.jsx)(`div`,{className:`h-4 w-px bg-slate-800`}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs text-slate-400 font-mono`,children:[(0,j.jsx)(Ne,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{className:`font-semibold text-slate-200`,children:u}),(0,j.jsx)(`span`,{className:`text-slate-600`,children:`@`}),(0,j.jsx)(`span`,{className:`text-slate-300`,children:d}),f&&(0,j.jsx)(`span`,{className:`text-[10px] text-amber-400 font-bold px-1.5 py-0.5 rounded bg-amber-500/15 border border-amber-500/30 ml-0.5`,title:`Uncommitted changes in local working tree`,children:`dirty`})]}),Array.isArray(e?.tasks)&&e.tasks.length>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`h-4 w-px bg-slate-800 hidden md:block`}),(0,j.jsxs)(`div`,{className:`hidden md:flex items-center gap-1.5 text-xs`,children:[(0,j.jsx)(`span`,{className:`text-slate-500 font-medium`,children:`Task:`}),(0,j.jsxs)(`select`,{value:s||`all`,onChange:e=>c&&c(e.target.value),className:`bg-slate-900 border border-slate-700/80 rounded-lg px-2 py-1 text-xs text-indigo-300 font-mono focus:outline-none focus:border-indigo-500 cursor-pointer`,title:`Filter active workspace scope by task`,children:[(0,j.jsxs)(`option`,{value:`all`,children:[`All Tasks (`,e.tasks.length,`)`]}),e.tasks.map(e=>(0,j.jsxs)(`option`,{value:e.task_id,children:[e.task_id,` · `,e.title?e.title.slice(0,20):``]},e.task_id))]})]})]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`button`,{onClick:o,disabled:a,className:`flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-full border transition-all ${l?`bg-amber-500/10 border-amber-500/30 text-amber-300 animate-pulse`:`bg-emerald-500/10 border-emerald-500/30 text-emerald-300`}`,title:`Click to re-verify workspace and document drift`,children:[l?(0,j.jsx)(dt,{className:`w-3.5 h-3.5 text-amber-400`}):(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:l?`Drift Detected`:`No Drift`}),(0,j.jsx)($e,{className:`w-3 h-3 text-slate-500 ${a?`animate-spin`:``}`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-full bg-indigo-500/10 border border-indigo-500/30 text-indigo-300 font-medium`,children:[(0,j.jsx)(ht,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Meta Llama 3.3 / Muse`})]}),(0,j.jsxs)(`button`,{onClick:()=>i(),className:`flex items-center gap-1.5 text-xs font-semibold px-3 py-1.5 rounded-lg bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white shadow-md shadow-indigo-600/20 transition-all hover:scale-[1.02] active:scale-[0.98]`,children:[(0,j.jsx)(Ft,{className:`w-3.5 h-3.5 text-yellow-300 fill-yellow-300`}),(0,j.jsx)(`span`,{children:`Ask VectorForce`})]}),(0,j.jsxs)(`button`,{onClick:r,className:`flex items-center gap-1.5 text-xs font-medium px-3 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700/80 transition-all`,children:[(0,j.jsx)(Ze,{className:`w-3.5 h-3.5 text-slate-400`}),(0,j.jsx)(`span`,{children:`Checkpoint`})]}),(0,j.jsx)(`button`,{onClick:n,className:`flex items-center gap-1.5 text-xs font-medium px-2.5 py-1.5 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 border border-slate-700/80 transition-all hover:scale-105 active:scale-95 cursor-pointer shadow-sm`,title:t===`light`?`Switch to Dark Mode`:`Switch to Light Mode`,"aria-label":`Toggle Light / Dark Mode`,children:t===`light`?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Ue,{className:`w-3.5 h-3.5 text-indigo-500 fill-indigo-500/20`}),(0,j.jsx)(`span`,{className:`font-semibold text-slate-700`,children:`Dark`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(xt,{className:`w-3.5 h-3.5 text-amber-400 fill-amber-400/20`}),(0,j.jsx)(`span`,{className:`font-semibold text-slate-200`,children:`Light`})]})})]})]})}function zt({projectData:e,onNavigateToTab:t,onTriggerReasoning:n,onOpenCheckpointModal:r,onRefreshData:i}){let[a,o]=(0,_.useState)(``),[s,c]=(0,_.useState)([]),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(!1),v=e?.checkpoints?.[0],y=e?.health?.driftDetected,b=v?.task_id||e?.tasks?.[0]?.task_id||`main`;(0,_.useEffect)(()=>{fetch(`/api/todos`).then(e=>e.ok?e.json():null).then(e=>{e&&Array.isArray(e.todos)&&c(e.todos)}).catch(()=>{})},[]);let x=e=>{e.preventDefault(),a.trim()&&n(a)},S=async e=>{if(e.preventDefault(),!l.trim())return;let t=await fetch(`/api/todos`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`add`,text:l,taskId:b})}).catch(()=>null);if(t&&t.ok){let e=await t.json();c(e.todos||[]),u(``)}},C=async e=>{let t=await fetch(`/api/todos`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`toggle`,id:e})}).catch(()=>null);if(t&&t.ok){let e=await t.json();c(e.todos||[])}},w=async e=>{let t=await fetch(`/api/todos`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`delete`,id:e})}).catch(()=>null);if(t&&t.ok){let e=await t.json();c(e.todos||[])}},T=async e=>{if(e.preventDefault(),!d.trim())return;let t=await fetch(`/api/tasks`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({taskId:d.trim(),title:p.trim()||d.trim()})}).catch(()=>null);t&&t.ok&&(f(``),m(``),g(!1),i&&i())},ee=async e=>{let t=e.status===`completed`?`active`:`completed`,n=await fetch(`/api/tasks`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`status`,taskId:e.task_id,status:t})}).catch(()=>null);n&&n.ok&&i&&i()};return(0,j.jsxs)(`div`,{className:`p-8 max-w-7xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`relative overflow-hidden rounded-2xl glass-panel p-6 border border-indigo-500/20 shadow-xl bg-gradient-to-r from-indigo-950/40 via-purple-950/20 to-slate-900/60`,children:[(0,j.jsx)(`div`,{className:`absolute top-0 right-0 -mt-12 -mr-12 w-64 h-64 bg-indigo-500/10 rounded-full blur-3xl pointer-events-none`}),(0,j.jsxs)(`div`,{className:`relative z-10 flex flex-col md:flex-row md:items-center justify-between gap-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-2 max-w-2xl`,children:[(0,j.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-2.5 py-1 rounded-full bg-indigo-500/20 border border-indigo-500/30 text-indigo-300 text-xs font-semibold`,children:[(0,j.jsx)(ht,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`AI Engineering Memory Online`})]}),(0,j.jsx)(`h1`,{className:`text-2xl md:text-3xl font-extrabold text-white tracking-tight`,children:`Resume Your Engineering Context`}),(0,j.jsxs)(`p`,{className:`text-sm text-slate-300/90 leading-relaxed`,children:[`Last session recorded in task `,(0,j.jsx)(`span`,{className:`font-semibold text-indigo-300`,children:v?.task_id}),` by `,(0,j.jsx)(`span`,{className:`text-slate-200`,children:v?.author}),`. Zero cloud leaks, verified local SQLite state.`]})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 shrink-0`,children:[(0,j.jsxs)(`button`,{onClick:()=>n(`Continue work on ${b}`),className:`flex items-center gap-2 px-5 py-3 rounded-xl bg-gradient-to-r from-indigo-600 via-indigo-500 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-sm shadow-lg shadow-indigo-600/30 transition-all hover:scale-105 active:scale-95 cursor-pointer`,children:[(0,j.jsx)(Ye,{className:`w-4 h-4 fill-white`}),(0,j.jsx)(`span`,{children:`Resume Session`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`settings`),className:`px-4 py-3 rounded-xl glass-panel-subtle hover:bg-slate-800 text-slate-200 font-medium text-sm transition-all border border-slate-700/60 flex items-center gap-2 cursor-pointer`,children:[(0,j.jsx)(st,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Configure Model`})]}),(0,j.jsx)(`button`,{onClick:()=>t(`graph`),className:`px-4 py-3 rounded-xl glass-panel-subtle hover:bg-slate-800 text-slate-300 font-medium text-sm transition-all border border-slate-700/60 cursor-pointer`,children:`Inspect Topology`})]})]}),(0,j.jsx)(`form`,{onSubmit:x,className:`mt-6 relative z-10`,children:(0,j.jsxs)(`div`,{className:`flex items-center gap-2 p-1.5 rounded-xl bg-slate-900/90 border border-slate-700/80 focus-within:border-indigo-500/80 transition-all shadow-inner`,children:[(0,j.jsx)(ht,{className:`w-4 h-4 text-indigo-400 ml-3 shrink-0`}),(0,j.jsx)(`input`,{type:`text`,value:a,onChange:e=>o(e.target.value),placeholder:`Ask VectorForce: "What changed this week?", "Analyze architectural risk", "Continue task..."`,className:`w-full bg-transparent border-none text-sm text-white placeholder-slate-500 focus:outline-none px-2`}),(0,j.jsxs)(`button`,{type:`submit`,className:`px-4 py-2 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white font-medium text-xs flex items-center gap-1.5 transition-all shrink-0 cursor-pointer`,children:[(0,j.jsx)(`span`,{children:`Ask AI`}),(0,j.jsx)(oe,{className:`w-3.5 h-3.5`})]})]})})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-5`,children:[(0,j.jsxs)(`div`,{onClick:()=>t(`timeline`),className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between cursor-pointer`,title:`Click to inspect workspace verification & drift in Timeline`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Health Score`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-emerald-500/10 border border-emerald-500/30 flex items-center justify-center`,children:(0,j.jsx)(pt,{className:`w-4 h-4 text-emerald-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3 flex items-baseline gap-2`,children:[(0,j.jsxs)(`span`,{className:`text-3xl font-black text-white`,children:[e?.health?.score,`%`]}),(0,j.jsx)(`span`,{className:`text-xs font-semibold text-emerald-400`,children:`Optimal`})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Memory Chain:`}),(0,j.jsx)(`span`,{className:`text-emerald-400 font-medium`,children:`Verified`})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Drift Status:`}),(0,j.jsx)(`span`,{className:y?`text-amber-400 font-medium`:`text-emerald-400 font-medium`,children:y?`Tamper Flagged`:`Zero Drift`})]})]})]}),(0,j.jsxs)(`div`,{onClick:()=>t(`settings`),className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between cursor-pointer`,title:`Click to configure AI reasoning provider`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`AI Reasoning`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-indigo-500/10 border border-indigo-500/30 flex items-center justify-center`,children:(0,j.jsx)(k,{className:`w-4 h-4 text-indigo-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3`,children:[(0,j.jsx)(`div`,{className:`text-base font-bold text-white truncate`,children:e?.ai?.model||`Meta Muse Spark Open`}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 mt-1`,children:[(0,j.jsx)(`span`,{className:`w-2 h-2 rounded-full bg-emerald-400 animate-pulse`}),(0,j.jsxs)(`span`,{className:`text-xs text-indigo-300 font-medium`,children:[e?.ai?.provider||`fireworks`,` · Click to change`]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Mode:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-mono`,children:`UI Configurable`})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Context Budget:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-mono`,children:`128k–1M`})]})]})]}),(0,j.jsxs)(`div`,{onClick:()=>t(`memory`),className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between cursor-pointer`,title:`Click to inspect AST code symbols & allowlisted documents`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Ontology & Memory`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-purple-500/10 border border-purple-500/30 flex items-center justify-center`,children:(0,j.jsx)(we,{className:`w-4 h-4 text-purple-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3 flex items-baseline gap-2`,children:[(0,j.jsx)(`span`,{className:`text-3xl font-black text-white`,children:e?.stats?.symbolsIndexed}),(0,j.jsx)(`span`,{className:`text-xs font-medium text-slate-400`,children:`Symbols`})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Files Indexed:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-mono`,children:e?.stats?.filesIndexed})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Decisions Recorded:`}),(0,j.jsx)(`span`,{className:`text-indigo-400 font-mono font-bold`,children:e?.stats?.decisionsCount})]})]})]}),(0,j.jsxs)(`div`,{onClick:()=>t(`timeline`),className:`p-5 rounded-2xl glass-panel glass-panel-hover flex flex-col justify-between cursor-pointer`,title:`Click to view full provenance timeline`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Provenance Chain`}),(0,j.jsx)(`div`,{className:`w-7 h-7 rounded-lg bg-blue-500/10 border border-blue-500/30 flex items-center justify-center`,children:(0,j.jsx)(ze,{className:`w-4 h-4 text-blue-400`})})]}),(0,j.jsxs)(`div`,{className:`my-3 flex items-baseline gap-2`,children:[(0,j.jsx)(`span`,{className:`text-3xl font-black text-white`,children:e?.checkpoints?.length}),(0,j.jsx)(`span`,{className:`text-xs font-medium text-slate-400`,children:`Checkpoints`})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5 text-xs text-slate-400 border-t border-slate-800/80 pt-2.5`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Active Tasks:`}),(0,j.jsx)(`span`,{className:`text-blue-400 font-mono font-medium`,children:e?.stats?.activeTasks??e?.tasks?.length})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center`,children:[(0,j.jsx)(`span`,{children:`Allowlisted Docs:`}),(0,j.jsx)(`span`,{className:`text-slate-300 font-mono`,children:e?.stats?.allowlistedDocs})]})]})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6`,children:[(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel border border-slate-800/80 space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(_t,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`Engineering To-Do & Next Steps`})]}),(0,j.jsx)(`button`,{type:`button`,onClick:r,className:`text-xs px-2.5 py-1 rounded-lg bg-indigo-500/15 hover:bg-indigo-500/25 text-indigo-300 border border-indigo-500/30 font-semibold cursor-pointer`,children:`+ Commit Checkpoint`})]}),(0,j.jsxs)(`form`,{onSubmit:S,className:`flex gap-2`,children:[(0,j.jsx)(`input`,{type:`text`,value:l,onChange:e=>u(e.target.value),placeholder:`Add an engineering action item or next step...`,className:`flex-1 bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500`}),(0,j.jsxs)(`button`,{type:`submit`,className:`px-3.5 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white text-xs font-semibold flex items-center gap-1 shrink-0 cursor-pointer`,children:[(0,j.jsx)(Ze,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Add`})]})]}),(0,j.jsx)(`div`,{className:`space-y-2 max-h-52 overflow-y-auto pr-1`,children:s.length===0?(0,j.jsx)(`p`,{className:`text-xs text-slate-500 py-3 text-center`,children:`No pending action items. Add a to-do above to track your next engineering step!`}):s.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-3 p-2.5 rounded-xl bg-slate-900/70 border border-slate-800/80 text-xs`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>C(e.id),className:`flex items-center gap-2.5 text-left flex-1 cursor-pointer`,children:[e.done?(0,j.jsx)(_t,{className:`w-4 h-4 text-emerald-400 shrink-0`}):(0,j.jsx)(yt,{className:`w-4 h-4 text-slate-500 shrink-0`}),(0,j.jsx)(`span`,{className:e.done?`line-through text-slate-500`:`text-slate-200`,children:e.text})]}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>w(e.id),className:`text-slate-500 hover:text-rose-400 transition-colors cursor-pointer`,title:`Delete item`,children:(0,j.jsx)(Tt,{className:`w-3.5 h-3.5`})})]},e.id))})]}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel border border-slate-800/80 space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ze,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`Workspace Tasks Manager`})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>g(e=>!e),className:`text-xs px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 font-semibold flex items-center gap-1 cursor-pointer`,children:[(0,j.jsx)(Ze,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`New Task`})]})]}),h&&(0,j.jsxs)(`form`,{onSubmit:T,className:`grid grid-cols-1 sm:grid-cols-3 gap-2 p-3 rounded-xl bg-slate-900 border border-slate-800`,children:[(0,j.jsx)(`input`,{type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`Task ID (e.g. feat-qr)`,className:`bg-slate-950 border border-slate-800 rounded-lg px-2.5 py-1.5 text-xs text-white font-mono focus:outline-none focus:border-indigo-500`,required:!0}),(0,j.jsx)(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),placeholder:`Task title...`,className:`bg-slate-950 border border-slate-800 rounded-lg px-2.5 py-1.5 text-xs text-white focus:outline-none focus:border-indigo-500`}),(0,j.jsx)(`button`,{type:`submit`,className:`px-3 py-1.5 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white text-xs font-semibold cursor-pointer`,children:`Create Task`})]}),(0,j.jsx)(`div`,{className:`space-y-2 max-h-52 overflow-y-auto pr-1`,children:(e?.tasks||[]).map(e=>(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-3 p-3 rounded-xl bg-slate-900/70 border border-slate-800/80 text-xs`,children:[(0,j.jsxs)(`div`,{className:`min-w-0`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`font-mono font-bold text-indigo-300`,children:e.task_id}),(0,j.jsx)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded uppercase ${e.status===`completed`?`bg-slate-800 text-slate-400`:`bg-emerald-500/15 text-emerald-400 border border-emerald-500/30`}`,children:e.status})]}),(0,j.jsx)(`p`,{className:`text-slate-300 truncate mt-0.5`,children:e.title})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2 shrink-0`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:()=>n(`Analyze task ${e.task_id}: ${e.title}`),className:`px-2 py-1 rounded bg-indigo-500/15 text-indigo-300 hover:bg-indigo-500/25 font-semibold cursor-pointer`,children:`Reason ▶`}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>ee(e),className:`px-2 py-1 rounded bg-slate-800 hover:bg-slate-700 text-slate-300 cursor-pointer`,children:e.status===`completed`?`Reopen`:`Complete ✓`})]})]},e.task_id))})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 gap-6`,children:[(0,j.jsxs)(`div`,{className:`lg:col-span-2 space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(be,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Recent Provenance Checkpoints`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`timeline`),className:`text-xs text-indigo-400 hover:text-indigo-300 font-semibold flex items-center gap-1 cursor-pointer`,children:[(0,j.jsxs)(`span`,{children:[`View All (`,e?.checkpoints?.length,`)`]}),(0,j.jsx)(oe,{className:`w-3.5 h-3.5`})]})]}),(0,j.jsx)(`div`,{className:`space-y-3`,children:e?.checkpoints?.slice(0,3).map(e=>(0,j.jsxs)(`div`,{onClick:()=>t(`timeline`),className:`p-4 rounded-xl glass-panel glass-panel-hover border border-slate-800/80 space-y-2.5 cursor-pointer transition-all hover:border-indigo-500/50`,title:`Click to inspect checkpoint in Timeline`,children:[(0,j.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-400`,children:e.id.slice(0,8)}),(0,j.jsx)(`span`,{className:`text-xs font-semibold px-2 py-0.5 rounded bg-slate-800 text-slate-300`,children:e.task_id}),e.drift&&(0,j.jsxs)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30 flex items-center gap-1`,children:[(0,j.jsx)(Dt,{className:`w-3 h-3 text-amber-400`}),`Drift`]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 mt-1 font-medium leading-relaxed`,children:e.summary})]}),(0,j.jsx)(`span`,{className:`text-[11px] text-slate-500 shrink-0 font-medium`,children:e.timestamp})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2 pt-2 border-t border-slate-800/60 text-xs text-slate-400`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[11px]`,children:[(0,j.jsx)(Fe,{className:`w-3.5 h-3.5 text-slate-500`}),(0,j.jsx)(`span`,{className:`font-mono text-slate-300`,children:e.commit})]}),(0,j.jsxs)(`span`,{className:`text-[11px] text-slate-500 truncate max-w-[200px]`,children:[`By `,e.author]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[e.decisions?.map(e=>(0,j.jsx)(`span`,{className:`text-[10px] font-mono px-1.5 py-0.5 rounded bg-indigo-500/10 text-indigo-300 border border-indigo-500/20`,children:e},e)),(0,j.jsx)(`button`,{onClick:t=>{t.stopPropagation(),n(`Review checkpoint ${e.id.slice(0,8)}`)},className:`text-[11px] font-semibold text-indigo-400 hover:text-indigo-300 px-2 py-0.5 rounded hover:bg-indigo-500/10 transition-colors cursor-pointer`,children:`Reason ▶`})]})]})]},e.id))})]}),(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Active Architectural Decisions`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`memory`),className:`text-xs text-indigo-400 hover:text-indigo-300 font-semibold cursor-pointer`,children:[`All (`,e?.decisions?.length,`)`]})]}),(0,j.jsx)(`div`,{className:`space-y-3`,children:e?.decisions?.slice(0,3).map(e=>(0,j.jsxs)(`div`,{className:`p-3.5 rounded-xl glass-panel-subtle border border-slate-800/80 space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-300`,children:e.id}),(0,j.jsx)(`span`,{className:`text-[10px] font-mono text-slate-500`,children:e.taskId})]}),(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-200`,children:e.title}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 leading-relaxed`,children:e.rationale})]},e.id))}),(0,j.jsxs)(`div`,{className:`p-4 rounded-xl bg-amber-500/5 border border-amber-500/20 space-y-2`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-bold text-amber-300 uppercase tracking-wider`,children:[(0,j.jsx)(Dt,{className:`w-3.5 h-3.5 text-amber-400`}),(0,j.jsx)(`span`,{children:`Non-Negotiable Invariants`})]}),(0,j.jsx)(`ul`,{className:`text-xs text-slate-300 space-y-1.5 list-disc list-inside`,children:(e?.constraints||[]).slice(0,4).map((e,t)=>(0,j.jsx)(`li`,{children:e},t))})]})]})]})]})}function Bt({projectData:e,onTriggerReasoning:t}){let[n,r]=(0,_.useState)(null),[i,a]=(0,_.useState)(`all`),[o,s]=(0,_.useState)(``),c=e?.modules||[],l=n||(c[0]?.id??``),u=c.find(e=>e.id===l)||c[0],d=[`all`,...Array.from(new Set(c.map(e=>e.category).filter(Boolean)))],f=c.filter(e=>{let t=i===`all`||e.category&&e.category.toLowerCase()===i.toLowerCase(),n=!o||e.name&&e.name.toLowerCase().includes(o.toLowerCase())||e.id&&e.id.toLowerCase().includes(o.toLowerCase());return t&&n}),p=Array.isArray(e?.connections)&&e.connections.length>0?e.connections:[{from:`mcp-bridge`,to:`context-store`},{from:`mcp-bridge`,to:`auth-service`},{from:`mcp-bridge`,to:`ai-reasoning`},{from:`auth-service`,to:`context-store`},{from:`ai-reasoning`,to:`code-index`},{from:`ai-reasoning`,to:`context-store`},{from:`ai-reasoning`,to:`briefing-engine`},{from:`code-index`,to:`context-store`},{from:`briefing-engine`,to:`context-store`},{from:`handoff-service`,to:`context-store`}],m=Math.max(1050,...c.map(e=>(e.x||0)+260)),h=Math.max(700,...c.map(e=>(e.y||0)+180));return(0,j.jsxs)(`div`,{className:`flex h-[calc(100vh-4rem)] overflow-hidden`,children:[(0,j.jsxs)(`div`,{className:`flex-1 flex flex-col bg-[#070b13] relative overflow-hidden`,children:[(0,j.jsxs)(`div`,{className:`p-4 flex items-center justify-between z-10 border-b border-slate-800/80 bg-[#090d16]/80 backdrop-blur-md`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Ge,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h1`,{className:`text-base font-bold text-white`,children:`Engineering Project Graph`})]}),(0,j.jsx)(`span`,{className:`text-xs px-2.5 py-0.5 rounded-full bg-indigo-500/10 text-indigo-300 border border-indigo-500/20 font-medium`,children:`Live Semantic Topology`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsxs)(`div`,{className:`relative`,children:[(0,j.jsx)(rt,{className:`w-3.5 h-3.5 text-slate-500 absolute left-2.5 top-1/2 -translate-y-1/2`}),(0,j.jsx)(`input`,{type:`text`,placeholder:`Find module...`,value:o,onChange:e=>s(e.target.value),className:`bg-slate-900/90 border border-slate-700/80 rounded-lg text-xs text-white pl-8 pr-3 py-1.5 focus:outline-none focus:border-indigo-500`})]}),(0,j.jsx)(`div`,{className:`flex items-center bg-slate-900 border border-slate-800 rounded-lg p-0.5 text-xs`,children:d.map(e=>(0,j.jsx)(`button`,{onClick:()=>a(e),className:`px-2.5 py-1 rounded-md capitalize transition-all ${i===e?`bg-indigo-600 text-white font-semibold shadow`:`text-slate-400 hover:text-slate-200`}`,children:e},e))})]})]}),(0,j.jsxs)(`div`,{className:`flex-1 relative overflow-auto p-8 flex items-center justify-center`,children:[(0,j.jsx)(`div`,{className:`absolute inset-0 bg-[radial-gradient(#1e293b_1px,transparent_1px)] [background-size:24px_24px] opacity-40 pointer-events-none`}),(0,j.jsxs)(`svg`,{className:`absolute inset-0 w-full h-full pointer-events-none`,children:[(0,j.jsx)(`defs`,{children:(0,j.jsxs)(`linearGradient`,{id:`edge-gradient`,x1:`0%`,y1:`0%`,x2:`100%`,y2:`100%`,children:[(0,j.jsx)(`stop`,{offset:`0%`,stopColor:`#6366f1`,stopOpacity:`0.6`}),(0,j.jsx)(`stop`,{offset:`100%`,stopColor:`#a855f7`,stopOpacity:`0.6`})]})}),p.map((e,t)=>{let n=c.find(t=>t.id===e.from),r=c.find(t=>t.id===e.to);return!n||!r?null:(0,j.jsxs)(`g`,{children:[(0,j.jsx)(`line`,{x1:n.x+110,y1:n.y+40,x2:r.x+110,y2:r.y+40,stroke:`url(#edge-gradient)`,strokeWidth:`2`,strokeDasharray:`4 4`,className:`animate-pulse`}),(0,j.jsx)(`circle`,{cx:(n.x+r.x)/2+110,cy:(n.y+r.y)/2+40,r:`3`,fill:`#a855f7`,className:`animate-ping`})]},t)})]}),(0,j.jsx)(`div`,{className:`relative`,style:{width:`${m}px`,height:`${h}px`},children:f.map(e=>{let t=e.id===l,n=e.drift;return(0,j.jsxs)(`div`,{onClick:()=>r(e.id),style:{left:`${e.x}px`,top:`${e.y}px`},className:`absolute w-56 p-4 rounded-xl cursor-pointer transition-all duration-300 select-none ${t?`bg-slate-900 border-2 border-indigo-400 shadow-xl shadow-indigo-500/25 scale-105 z-20`:`bg-slate-900/85 hover:bg-slate-800/90 border border-slate-700/80 hover:border-slate-500 shadow-lg z-10`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,j.jsx)(`span`,{className:`text-[10px] uppercase font-bold tracking-wider px-2 py-0.5 rounded bg-slate-800 text-slate-400 border border-slate-700`,children:e.category}),n?(0,j.jsxs)(`span`,{className:`flex items-center gap-1 text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30`,children:[(0,j.jsx)(dt,{className:`w-3 h-3 text-amber-400 animate-pulse`}),`Drift`]}):(0,j.jsx)(`span`,{className:`flex items-center gap-1 text-[10px] font-medium text-emerald-400`,children:(0,j.jsx)(pt,{className:`w-3.5 h-3.5`})})]}),(0,j.jsx)(`h3`,{className:`font-bold text-sm text-white mt-2 leading-snug`,children:e.name}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 mt-1 line-clamp-2`,children:e.description}),(0,j.jsxs)(`div`,{className:`mt-3 pt-2.5 border-t border-slate-800 flex items-center justify-between text-[11px] text-slate-400`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(ke,{className:`w-3.5 h-3.5 text-slate-500`}),(0,j.jsxs)(`span`,{children:[e.files,` files`]})]}),(0,j.jsxs)(`span`,{className:`text-indigo-400 font-semibold hover:underline flex items-center gap-0.5`,children:[`Inspect `,(0,j.jsx)(oe,{className:`w-3 h-3`})]})]})]},e.id)})})]})]}),u&&(0,j.jsxs)(`aside`,{className:`w-96 border-l border-slate-800/80 bg-[#0c121e]/95 p-6 flex flex-col justify-between overflow-y-auto shrink-0 z-20`,children:[(0,j.jsxs)(`div`,{className:`space-y-6`,children:[(0,j.jsxs)(`div`,{className:`space-y-2 border-b border-slate-800 pb-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs uppercase font-bold tracking-wider px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-400 border border-indigo-500/20`,children:u.category}),(0,j.jsx)(`span`,{className:`text-xs font-semibold px-2 py-0.5 rounded ${u.drift?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:`bg-emerald-500/10 text-emerald-300 border border-emerald-500/30`}`,children:u.status})]}),(0,j.jsx)(`h2`,{className:`text-xl font-extrabold text-white`,children:u.name}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 leading-relaxed`,children:u.description})]}),u.drift&&(0,j.jsxs)(`div`,{className:`p-3.5 rounded-xl bg-amber-500/10 border border-amber-500/30 space-y-1.5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-xs font-bold text-amber-300`,children:[(0,j.jsx)(dt,{className:`w-4 h-4 text-amber-400`}),(0,j.jsx)(`span`,{children:`Tamper / Drift Flagged`})]}),(0,j.jsxs)(`p`,{className:`text-xs text-amber-200/80 leading-relaxed`,children:[`Document `,(0,j.jsx)(`code`,{className:`text-amber-100 font-mono`,children:`docs/spec.md`}),` was modified on disk. VectorForce isolated the injected text as Untrusted Reference Data.`]})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider`,children:`Module Ownership`}),(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 flex items-center justify-between text-xs`,children:[(0,j.jsx)(`span`,{className:`text-slate-400`,children:`Owner:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-semibold`,children:u.owner})]})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider`,children:`Governing Decisions`}),(0,j.jsx)(`div`,{className:`space-y-2`,children:u.decisions?.map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 space-y-1`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-400`,children:e.split(`:`)[0]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 font-medium`,children:e.split(`:`)[1]||e})]},e))})]}),(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsx)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider`,children:`Topological Dependencies`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:u.dependencies?.map(e=>(0,j.jsxs)(`span`,{onClick:()=>r(e),className:`cursor-pointer text-xs font-mono px-2.5 py-1 rounded-lg bg-slate-800 hover:bg-indigo-600/30 text-slate-300 hover:text-indigo-200 border border-slate-700 transition-colors`,children:[`➔ `,e]},e))})]})]}),(0,j.jsx)(`div`,{className:`pt-6 border-t border-slate-800`,children:(0,j.jsxs)(`button`,{onClick:()=>t(`Analyze module ${u.name} and suggest refactorings`),className:`w-full flex items-center justify-center gap-2 py-3 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-xs shadow-lg shadow-indigo-600/30 transition-all hover:scale-[1.02] active:scale-[0.98]`,children:[(0,j.jsx)(Ft,{className:`w-3.5 h-3.5 text-yellow-300 fill-yellow-300`}),(0,j.jsxs)(`span`,{children:[`Reason About `,u.name]})]})})]})]})}function Vt({projectData:e,initialPrompt:t}){let[n,r]=(0,_.useState)(`default`),[i,a]=(0,_.useState)(e?.tasks?.[0]?.task_id||`phase-5-pilot`),[o,s]=(0,_.useState)(t||`Analyze current task state, risks, and next engineering actions`);(0,_.useEffect)(()=>{e?.tasks?.[0]?.task_id&&a(e.tasks[0].task_id)},[e?.tasks]);let[c,l]=(0,_.useState)(!1),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(`structured`),m=e?.lastCheckpoint||{},h=m.claims||{},g=m.evidence?.git||{},[v,y]=(0,_.useState)({title:`AI Engineering Continuation Briefing`,task:`phase-5-pilot (Phase 5: Consented Pilot and Product Decision)`,timestamp:m.timestamp||new Date().toISOString(),provider:`Meta Llama 3.3 70B`,checkpointId:m.checkpoint_id?m.checkpoint_id.slice(0,8):`e6cfd02c`,gitCommit:g.commit_hash?g.commit_hash.slice(0,7):`9d84ce6`,summary:m.summary||`Completed ADR-014 VectorForce Studio, dynamic module topology clustering, and resilient MCP daemon resolution. All 62 unit and integration tests passing.`,whereLeftOff:[m.summary||`Completed previous milestone`,...(h.goals||[]).map(e=>`Active Goal: ${e}`),...(h.decisions||[]).map(e=>`Decision: ${e.id} (${e.title}) — ${e.rationale}`)],driftAnalysis:"VERIFIED: No git or document drift detected in active task `phase-5-pilot`. Workspace at commit 9d84ce6 (main), dirty: false.",risks:h.constraints&&h.constraints.length>0?h.constraints.map(e=>`Invariant Constraint: ${e}`):[`Invariant: Zero external backend runtime dependencies (Node.js built-ins only).`,`Invariant: Strict local-first SQLite isolation — zero cloud credentials or code leakage.`],nextActions:h.next_steps&&h.next_steps.length>0?h.next_steps.map((e,t)=>`${t+1}. ${e}`):[`1. Discuss explicit graph ontology (NetworkX) and vector search (ChromaDB) in subsequent session.`,`2. Deliver 90-second continuous context recovery walkthrough to hackathon judges.`],rawNarrative:null,degraded:!1}),b=[`Continue OAuth implementation`,`Feature: What did we do this week?`,`Detect architectural violations before adding refresh tokens`,`Reconcile drift in docs/spec.md`],x=async(e=o)=>{l(!0);try{let t=await fetch(`/api/reason`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({focus:e,model:n==="default"?void 0:n,taskId:i})});if(t.ok){let r=await t.json(),a=r.checkpoint||{},o=a.claims||{},s=a.evidence?.git||{},c=[a.summary||`Completed previous engineering phase`,...(o.goals||[]).map(e=>`Active Objective: ${e}`),...(o.decisions||[]).map(e=>`Decision: ${e.id} (${e.title}) — ${e.rationale}`)],l=r.driftDetected?`DRIFT DETECTED: ${r.warnings.join(` | `)}`:`VERIFIED: No drift detected in task '${r.task?.task_id||i}'. Git commit ${s.commit_hash?.slice(0,7)||`clean`} matches recorded evidence.`,u=o.constraints&&o.constraints.length>0?o.constraints.map(e=>`Invariant Constraint: ${e}`):[`Invariant Constraint: Zero external backend runtime dependencies.`,`Invariant Constraint: Strict local-first isolation (zero cloud data leaks).`],d=o.next_steps&&o.next_steps.length>0?o.next_steps.map((e,t)=>`${t+1}. ${e}`):[`1. Rehearse 90-second hackathon demonstration.`,`2. Review pending graph and vector enhancement proposals.`],f=``;f=e.toLowerCase().includes(`oauth`)?`Focus: OAuth Implementation. Active checkpoint ${a.checkpoint_id?.slice(0,8)} tracks OAuth PKCE security flow (DEC-AUTH-01: SHA-256 code challenge). Next engineering step: Implement refresh token rotation.`:e.toLowerCase().includes(`week`)?`Weekly Context Continuity: 8 checkpoints recorded over the last 7 days across 3 active tasks (phase-5-pilot, phase-4-handoff, phase-3-complete). 62 automated tests passing.`:e.toLowerCase().includes(`drift`)?r.driftDetected?`Drift Analysis: Detected modifications since checkpoint ${a.checkpoint_id?.slice(0,8)}. Warnings: ${r.warnings.join(`, `)}`:`Drift Analysis: Workspace is fully synchronized. Zero commit or document drift detected.`:r.degraded?`Grounded against latest checkpoint ${a.checkpoint_id?.slice(0,8)} and ${r.codeFilesConsidered||78} workspace files. Deterministic briefing active (LLM: rule-based fallback).`:`Synthesized via ${r.provider||`Meta Llama 3.3`} (${r.model||n}) grounded against checkpoint ${a.checkpoint_id?.slice(0,8)} and live AST symbol index.`,y({title:`Continuation Synthesis: "${e}"`,task:`${r.task?.task_id||i} (${r.task?.title||`Active Task`})`,timestamp:a.timestamp||new Date().toISOString(),provider:r.degraded?`Deterministic Briefing Engine`:r.provider||`Meta Llama 3.3`,checkpointId:a.checkpoint_id?a.checkpoint_id.slice(0,8):`e6cfd02c`,gitCommit:s.commit_hash?s.commit_hash.slice(0,7):`9d84ce6`,summary:f,whereLeftOff:c,driftAnalysis:l,risks:u,nextActions:d,rawNarrative:r.narrativeText,degraded:r.degraded})}}catch(e){console.error(`Reasoning query failed:`,e)}finally{l(!1)}};return(0,j.jsxs)(`div`,{className:`p-8 max-w-6xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ht,{className:`w-6 h-6 text-indigo-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`AI Engineering Memory Console`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Autonomous context reasoning grounded in immutable checkpoints and live code ontology.`})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 bg-slate-900 border border-slate-800 rounded-xl px-3 py-1.5`,children:[(0,j.jsx)(`span`,{className:`text-xs text-slate-400 font-semibold`,children:`Scope:`}),(0,j.jsx)(`select`,{value:i,onChange:e=>a(e.target.value),className:`bg-transparent text-xs text-indigo-300 font-mono focus:outline-none cursor-pointer`,children:(Array.isArray(e?.tasks)?e.tasks:e?.tasks?.list||[{task_id:`phase-5-pilot`,title:`Phase 5: Consented Pilot`},{task_id:`phase-4-handoff`,title:`Phase 4: Handoff & Safety`}]).map(e=>(0,j.jsx)(`option`,{value:e.task_id,className:`bg-slate-900 text-white font-sans`,children:e.task_id},e.task_id))})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2 bg-slate-900 border border-slate-800 rounded-xl px-3 py-1.5`,children:[(0,j.jsx)(k,{className:`w-4 h-4 text-purple-400`}),(0,j.jsx)(`span`,{className:`text-xs text-slate-400 font-semibold`,children:`Model:`}),(0,j.jsxs)(`select`,{value:n,onChange:e=>r(e.target.value),className:`bg-transparent text-xs text-white focus:outline-none cursor-pointer`,children:[(0,j.jsxs)(`option`,{value:`default`,className:`bg-slate-900 text-white`,children:[`Configured (`,e?.ai?.model||`accounts/fireworks/models/muse-spark-open`,`)`]}),(0,j.jsx)(`option`,{value:`accounts/fireworks/models/muse-spark-open`,className:`bg-slate-900 text-white`,children:`Muse Spark Open (Fireworks AI · 1M Context)`}),(0,j.jsx)(`option`,{value:`meta/muse-spark-open`,className:`bg-slate-900 text-white`,children:`Muse Spark Open (OpenRouter)`}),(0,j.jsx)(`option`,{value:`muse-spark-1.3`,className:`bg-slate-900 text-white`,children:`Meta Muse Direct (muse-spark-1.3)`}),(0,j.jsx)(`option`,{value:`llama3.3`,className:`bg-slate-900 text-white`,children:`Local Ollama (llama3.3 · 100% Private)`}),(0,j.jsx)(`option`,{value:`gpt-4.1`,className:`bg-slate-900 text-white`,children:`OpenAI GPT-4.1`}),(0,j.jsx)(`option`,{value:`claude-sonnet-4-5`,className:`bg-slate-900 text-white`,children:`Anthropic Claude Sonnet 4.5`})]})]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Quick Reasoning Presets:`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:b.map(e=>(0,j.jsxs)(`button`,{onClick:()=>{s(e),x(e)},className:`text-xs px-3 py-1.5 rounded-lg bg-slate-900 hover:bg-slate-800 text-slate-300 hover:text-white border border-slate-800 hover:border-indigo-500/40 transition-all flex items-center gap-1.5 active:scale-95`,children:[(0,j.jsx)(`span`,{className:`text-amber-400 font-bold`,children:`⚡`}),(0,j.jsx)(`span`,{children:e})]},e))})]}),(0,j.jsxs)(`div`,{className:`p-4 rounded-2xl glass-panel border border-slate-700/80 space-y-3`,children:[(0,j.jsx)(`textarea`,{rows:3,value:o,onChange:e=>s(e.target.value),placeholder:`Ask VectorForce to synthesize context, identify architectural risks, or plan the next engineering task...`,className:`w-full bg-slate-900/80 border border-slate-800 rounded-xl p-3 text-sm text-white placeholder-slate-500 focus:outline-none focus:border-indigo-500 font-sans`}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-slate-500`,children:[(0,j.jsx)(pt,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Grounded against real SQLite state & AST symbol index`})]}),(0,j.jsx)(`button`,{onClick:()=>x(o),disabled:c,className:`flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-xs shadow-lg shadow-indigo-600/30 transition-all hover:scale-105 active:scale-95 disabled:opacity-50 cursor-pointer`,children:c?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ht,{className:`w-3.5 h-3.5 animate-spin`}),(0,j.jsx)(`span`,{children:`Synthesizing Context...`})]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(at,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Reason About Task`})]})})]})]}),(0,j.jsxs)(`div`,{className:`rounded-2xl glass-panel border border-indigo-500/20 overflow-hidden shadow-2xl`,children:[(0,j.jsxs)(`div`,{className:`px-5 py-3.5 bg-slate-900/90 border-b border-slate-800 flex items-center justify-between`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Ct,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`span`,{className:`text-xs font-bold text-white tracking-wide`,children:v.title})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center bg-slate-950 p-0.5 rounded-lg border border-slate-800 text-[11px]`,children:[(0,j.jsx)(`button`,{onClick:()=>p(`structured`),className:`px-2.5 py-1 rounded-md transition-all ${f===`structured`?`bg-indigo-600 text-white font-semibold`:`text-slate-400 hover:text-white`}`,children:`Structured`}),(0,j.jsx)(`button`,{onClick:()=>p(`narrative`),className:`px-2.5 py-1 rounded-md transition-all ${f===`narrative`?`bg-indigo-600 text-white font-semibold`:`text-slate-400 hover:text-white`}`,children:`Markdown Stream`})]}),(0,j.jsxs)(`span`,{className:`text-[11px] font-mono text-slate-400 hidden sm:inline`,children:[`Engine: `,(0,j.jsx)(`span`,{className:`text-indigo-300 font-semibold`,children:v.provider})]}),(0,j.jsx)(`button`,{onClick:()=>{let e=f===`narrative`&&v.rawNarrative?v.rawNarrative:JSON.stringify(v,null,2);navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),2e3)},className:`text-xs text-slate-400 hover:text-white p-1.5 rounded-lg hover:bg-slate-800 transition-colors`,title:`Copy to clipboard`,children:u?(0,j.jsx)(ue,{className:`w-3.5 h-3.5 text-emerald-400`}):(0,j.jsx)(Se,{className:`w-3.5 h-3.5`})})]})]}),f===`narrative`&&v.rawNarrative?(0,j.jsx)(`div`,{className:`p-6 bg-slate-950 font-mono text-xs text-slate-200 leading-relaxed whitespace-pre-wrap max-h-[500px] overflow-y-auto`,children:v.rawNarrative}):(0,j.jsxs)(`div`,{className:`p-6 space-y-6 text-sm text-slate-200`,children:[(0,j.jsxs)(`div`,{className:`p-4 rounded-xl bg-indigo-950/30 border border-indigo-500/20 text-indigo-200 text-xs leading-relaxed font-medium`,children:[`💡 `,(0,j.jsx)(`strong`,{className:`text-white`,children:`Executive Synthesis:`}),` `,v.summary]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(ve,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Where You Left Off`})]}),(0,j.jsx)(`ul`,{className:`space-y-1.5 text-xs text-slate-300`,children:v.whereLeftOff.map((e,t)=>(0,j.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,j.jsx)(`span`,{className:`text-indigo-400 font-bold`,children:`•`}),(0,j.jsx)(`span`,{children:e})]},t))})]}),(0,j.jsxs)(`div`,{className:`space-y-2 border-t border-slate-800 pt-4`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Verified Workspace Evidence & Drift`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 leading-relaxed font-mono bg-slate-900/60 p-3 rounded-lg border border-slate-800`,children:v.driftAnalysis})]}),(0,j.jsxs)(`div`,{className:`space-y-2 border-t border-slate-800 pt-4`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(Dt,{className:`w-3.5 h-3.5 text-amber-400`}),(0,j.jsx)(`span`,{children:`Architectural Invariants & Risk Review`})]}),(0,j.jsx)(`ul`,{className:`space-y-1.5 text-xs text-slate-300`,children:v.risks.map((e,t)=>(0,j.jsxs)(`li`,{className:`flex items-start gap-2 text-amber-200/90`,children:[(0,j.jsx)(`span`,{className:`text-amber-400 font-bold`,children:`⚠️`}),(0,j.jsx)(`span`,{children:e})]},t))})]}),(0,j.jsxs)(`div`,{className:`space-y-2 border-t border-slate-800 pt-4`,children:[(0,j.jsxs)(`h3`,{className:`text-xs font-bold text-slate-400 uppercase tracking-wider flex items-center gap-1.5`,children:[(0,j.jsx)(ze,{className:`w-3.5 h-3.5 text-purple-400`}),(0,j.jsx)(`span`,{children:`Ranked Next Engineering Actions`})]}),(0,j.jsx)(`div`,{className:`space-y-2`,children:v.nextActions.map((e,t)=>(0,j.jsx)(`div`,{className:`p-3 rounded-xl bg-slate-900/80 border border-slate-800 text-xs text-slate-200 font-medium`,children:e},t))})]})]}),(0,j.jsxs)(`div`,{className:`px-6 py-3 bg-slate-950 border-t border-slate-800/80 flex items-center justify-between text-[11px] text-slate-500`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Claims vs Evidence Protocol strictly enforced`})]}),(0,j.jsxs)(`span`,{className:`font-mono`,children:[`Checkpoint: `,(0,j.jsx)(`span`,{className:`text-slate-300`,children:v.checkpointId}),` | Git: `,(0,j.jsx)(`span`,{className:`text-slate-300`,children:v.gitCommit})]})]})]})]})}function Ht({projectData:e}){let[t,n]=(0,_.useState)(`decisions`),[r,i]=(0,_.useState)(``),a=e?.decisions||[],o=e?.constraints||[],s=Array.isArray(e?.topSymbols)&&e.topSymbols.length>0?e.topSymbols:[{name:`SqliteStore`,type:`Class`,file:`src/storage/sqlite-store.js`},{name:`ReasoningService`,type:`Class`,file:`src/operations/reasoning-service.js`},{name:`McpServer`,type:`Class`,file:`src/mcp/mcp-server.js`},{name:`HandoffService`,type:`Class`,file:`src/operations/handoff-service.js`},{name:`BriefingService`,type:`Class`,file:`src/operations/briefing-service.js`},{name:`CodeIndexProvider`,type:`Class`,file:`src/providers/code-index-provider.js`}],c=Array.isArray(e?.allowedDocsList)&&e.allowedDocsList.length>0?e.allowedDocsList:Array.isArray(e?.allowedDocuments)&&e.allowedDocuments.length>0?e.allowedDocuments.map(e=>({path:e,size:`Tracked`,hash:`sha256...`,status:`Verified`})):[{path:`AGENTS.md`,size:`2.1 kB`,hash:`cff46c35...`,status:`Verified`},{path:`docs/spec.md`,size:`50 bytes`,hash:`d4382c45...`,status:`Tamper Flagged (Pilot)`},{path:`package.json`,size:`942 bytes`,hash:`8a3b129c...`,status:`Verified`}],l=a.filter(e=>!r||e.id.toLowerCase().includes(r.toLowerCase())||e.title.toLowerCase().includes(r.toLowerCase())||e.rationale.toLowerCase().includes(r.toLowerCase())),u=s.filter(e=>!r||e.name.toLowerCase().includes(r.toLowerCase())||e.file.toLowerCase().includes(r.toLowerCase())||e.type.toLowerCase().includes(r.toLowerCase())),d=c.filter(e=>!r||e.path.toLowerCase().includes(r.toLowerCase())||e.status&&e.status.toLowerCase().includes(r.toLowerCase())),f=e?.stats?.symbolsIndexed??s.length;return(0,j.jsxs)(`div`,{className:`p-8 max-w-6xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(we,{className:`w-6 h-6 text-purple-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Project Memory & Ontology`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Durable engineering memory: AST code symbols, allowlisted specs, immutable decisions, and constraints.`})]}),(0,j.jsx)(`div`,{className:`flex items-center bg-slate-900 border border-slate-800 rounded-xl p-1 text-xs`,children:[{id:`decisions`,label:`Decisions (${a.length})`},{id:`constraints`,label:`Constraints (${o.length})`},{id:`symbols`,label:`Code Symbols`},{id:`docs`,label:`Allowlisted Docs`}].map(e=>(0,j.jsx)(`button`,{onClick:()=>n(e.id),className:`px-3 py-1.5 rounded-lg font-semibold transition-all ${t===e.id?`bg-purple-600 text-white shadow`:`text-slate-400 hover:text-slate-200`}`,children:e.label},e.id))})]}),t===`decisions`&&(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Recorded Architectural Choices (ADRs / Checkpoints)`}),(0,j.jsxs)(`div`,{className:`relative w-64`,children:[(0,j.jsx)(rt,{className:`w-3.5 h-3.5 text-slate-500 absolute left-2.5 top-1/2 -translate-y-1/2`}),(0,j.jsx)(`input`,{type:`text`,placeholder:`Filter decisions...`,value:r,onChange:e=>i(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-lg text-xs text-white pl-8 pr-3 py-1.5 focus:outline-none focus:border-purple-500`})]})]}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:l.map(e=>(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover border border-slate-800/80 space-y-2 flex flex-col justify-between`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold px-2 py-0.5 rounded bg-purple-500/10 text-purple-300 border border-purple-500/30`,children:e.id}),(0,j.jsx)(`span`,{className:`text-[11px] font-mono text-slate-500`,children:e.taskId})]}),(0,j.jsx)(`h3`,{className:`text-sm font-bold text-white mt-2`,children:e.title}),(0,j.jsx)(`p`,{className:`text-xs text-slate-300 mt-1 leading-relaxed`,children:e.rationale})]}),(0,j.jsxs)(`div`,{className:`pt-3 border-t border-slate-800/60 flex items-center justify-between text-[11px] text-slate-500`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(ve,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Committed & Verified`})]}),(0,j.jsx)(`span`,{children:e.timestamp?.slice(0,10)})]})]},e.id))})]}),t===`constraints`&&(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Non-Negotiable Invariants`}),(0,j.jsx)(`div`,{className:`space-y-3`,children:o.map((e,t)=>(0,j.jsxs)(`div`,{className:`p-4 rounded-xl glass-panel border border-amber-500/20 flex items-start gap-3 bg-amber-500/5`,children:[(0,j.jsx)(Dt,{className:`w-4 h-4 text-amber-400 shrink-0 mt-0.5`}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`text-xs font-bold text-slate-200`,children:e}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 mt-0.5`,children:`Enforced at every checkpoint across Google Antigravity and Command Code.`})]})]},t))})]}),t===`symbols`&&(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Containment-Safe Workspace AST Symbols`}),(0,j.jsxs)(`div`,{className:`relative w-64`,children:[(0,j.jsx)(rt,{className:`w-3.5 h-3.5 text-slate-500 absolute left-2.5 top-1/2 -translate-y-1/2`}),(0,j.jsx)(`input`,{type:`text`,placeholder:`Filter symbols...`,value:r,onChange:e=>i(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-lg text-xs text-white pl-8 pr-3 py-1.5 focus:outline-none focus:border-purple-500`})]})]}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`span`,{className:`text-xs font-bold text-slate-300 uppercase tracking-wider flex items-center gap-2`,children:[(0,j.jsx)(ke,{className:`w-4 h-4 text-indigo-400`}),(0,j.jsx)(`span`,{children:`Indexed AST Entities`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono text-indigo-400 font-semibold`,children:[f,` Symbols Indexed`]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 leading-relaxed`,children:`Symbols are extracted deterministically without cloud scrapers or external language servers. Zero runtime dependencies.`}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3 pt-3`,children:u.map((e,t)=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 text-xs space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`font-bold text-indigo-300 font-mono truncate max-w-[180px]`,children:e.name}),(0,j.jsx)(`span`,{className:`text-[10px] px-1.5 py-0.5 rounded bg-slate-800 text-slate-400 shrink-0`,children:e.type})]}),(0,j.jsx)(`p`,{className:`text-[11px] font-mono text-slate-500 truncate`,title:e.file,children:e.file})]},`${e.name}-${t}`))})]})]}),t===`docs`&&(0,j.jsxs)(`div`,{className:`space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,j.jsx)(`span`,{className:`text-xs font-semibold text-slate-400 uppercase tracking-wider`,children:`Allowlisted Project Documents`}),(0,j.jsxs)(`div`,{className:`relative w-64`,children:[(0,j.jsx)(rt,{className:`w-3.5 h-3.5 text-slate-500 absolute left-2.5 top-1/2 -translate-y-1/2`}),(0,j.jsx)(`input`,{type:`text`,placeholder:`Filter documents...`,value:r,onChange:e=>i(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-lg text-xs text-white pl-8 pr-3 py-1.5 focus:outline-none focus:border-emerald-500`})]})]}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`span`,{className:`text-xs font-bold text-slate-300 uppercase tracking-wider flex items-center gap-2`,children:[(0,j.jsx)(je,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Verified Evidence Documents`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono text-emerald-400 font-semibold`,children:[d.length,` Tracked`]})]}),(0,j.jsx)(`div`,{className:`space-y-2 pt-2`,children:d.map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-slate-800 flex items-center justify-between text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(je,{className:`w-4 h-4 text-slate-500`}),(0,j.jsx)(`span`,{className:`font-mono text-slate-200 font-semibold`,children:e.path}),(0,j.jsxs)(`span`,{className:`text-[10px] text-slate-500`,children:[`(`,e.size,`)`]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`span`,{className:`text-[10px] font-mono text-slate-500`,children:e.hash}),(0,j.jsx)(`span`,{className:`text-[10px] font-bold px-2 py-0.5 rounded ${(e.status||``).includes(`Missing`)||(e.status||``).includes(`Tamper`)?`bg-amber-500/20 text-amber-300 border border-amber-500/30`:`bg-emerald-500/10 text-emerald-300 border border-emerald-500/30`}`,children:e.status||`Verified`})]})]},e.path))})]})]})]})}function Ut({projectData:e,onTriggerReasoning:t,onNavigateToTab:n}){let[r,i]=(0,_.useState)(null),[a,o]=(0,_.useState)(!1),s=e?.checkpoints||[],c=e=>{i(r===e?null:e)};return(0,j.jsxs)(`div`,{className:`p-8 max-w-5xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(tt,{className:`w-6 h-6 text-blue-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Timeline & Checkpoint Provenance`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Immutable parent-linked checkpoint chain. Compare, resume, and audit engineering state over time.`})]}),(0,j.jsxs)(`button`,{onClick:()=>o(!0),className:`flex items-center gap-2 px-4 py-2 rounded-xl bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-500 hover:to-indigo-500 text-white font-semibold text-xs shadow-md shadow-blue-500/20 transition-all hover:scale-105`,children:[(0,j.jsx)(ce,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Weekly Engineering Recap`})]})]}),(0,j.jsx)(`div`,{className:`relative pl-6 space-y-8 before:absolute before:left-2 before:top-3 before:bottom-3 before:w-0.5 before:bg-gradient-to-b before:from-indigo-500 before:via-purple-500 before:to-slate-800`,children:s.map((e,i)=>{let a=r===e.id;return(0,j.jsxs)(`div`,{className:`relative group`,children:[(0,j.jsx)(`div`,{className:`absolute -left-[30px] top-4 w-4 h-4 rounded-full bg-slate-900 border-2 border-indigo-500 group-hover:border-purple-400 group-hover:scale-125 transition-all glow-indigo flex items-center justify-center`,children:(0,j.jsx)(`span`,{className:`w-1.5 h-1.5 rounded-full bg-indigo-400`})}),(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover border border-slate-800 space-y-3`,children:[(0,j.jsxs)(`div`,{onClick:()=>c(e.id),className:`flex flex-col md:flex-row md:items-start justify-between gap-3 cursor-pointer select-none`,title:`Click to toggle checkpoint details`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2 flex-wrap`,children:[(0,j.jsx)(`span`,{className:`text-xs font-mono font-bold text-indigo-400`,children:e.id.slice(0,8)}),(0,j.jsx)(`span`,{className:`text-xs font-semibold px-2 py-0.5 rounded bg-slate-800 text-slate-300`,children:e.task_id}),e.drift?(0,j.jsxs)(`span`,{className:`text-[10px] font-bold px-1.5 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/30 flex items-center gap-1`,children:[(0,j.jsx)(dt,{className:`w-3 h-3 text-amber-400`}),`Drift Flagged`]}):(0,j.jsxs)(`span`,{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded bg-emerald-500/10 text-emerald-300 border border-emerald-500/20 flex items-center gap-1`,children:[(0,j.jsx)(pt,{className:`w-3 h-3 text-emerald-400`}),`Verified`]})]}),(0,j.jsx)(`h3`,{className:`text-sm font-bold text-white pt-1`,children:e.summary})]}),(0,j.jsx)(`span`,{className:`text-xs text-slate-500 shrink-0 font-medium`,children:e.timestamp})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 pt-3 border-t border-slate-800/80 text-xs text-slate-400`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,j.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,j.jsx)(Fe,{className:`w-3.5 h-3.5 text-slate-500`}),(0,j.jsx)(`span`,{className:`font-mono text-slate-300`,children:e.commit})]}),(0,j.jsxs)(`span`,{children:[`By `,e.author]})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[n&&(0,j.jsxs)(`button`,{onClick:()=>n(`graph`),className:`px-2.5 py-1 rounded-lg bg-purple-600/15 hover:bg-purple-600/30 text-purple-300 hover:text-white font-semibold text-xs border border-purple-500/30 transition-all flex items-center gap-1 cursor-pointer`,title:`Inspect project topology graph`,children:[(0,j.jsx)(Ge,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:`Inspect Topology`})]}),(0,j.jsxs)(`button`,{onClick:()=>t(`Resume task ${e.task_id} from checkpoint ${e.id.slice(0,8)}`),className:`px-2.5 py-1 rounded-lg bg-indigo-600/20 hover:bg-indigo-600 text-indigo-300 hover:text-white font-semibold text-xs border border-indigo-500/30 transition-all flex items-center gap-1 cursor-pointer`,children:[(0,j.jsx)(ht,{className:`w-3 h-3`}),(0,j.jsx)(`span`,{children:`Resume Briefing`})]}),(0,j.jsx)(`button`,{onClick:()=>c(e.id),className:`p-1 rounded-lg hover:bg-slate-800 text-slate-400 hover:text-slate-200 transition-colors cursor-pointer`,children:a?(0,j.jsx)(me,{className:`w-4 h-4`}):(0,j.jsx)(fe,{className:`w-4 h-4`})})]})]}),a&&(0,j.jsxs)(`div`,{className:`mt-4 pt-4 border-t border-slate-800 space-y-3 bg-slate-900/50 p-4 rounded-xl text-xs`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`span`,{className:`font-bold text-slate-400 uppercase tracking-wider text-[10px]`,children:`Active Goals:`}),(0,j.jsx)(`ul`,{className:`mt-1 space-y-1 text-slate-300`,children:e.goals?.map((e,t)=>(0,j.jsxs)(`li`,{children:[`• `,e]},t))})]}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`span`,{className:`font-bold text-slate-400 uppercase tracking-wider text-[10px]`,children:`Decisions:`}),(0,j.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1.5`,children:e.decisions?.map(e=>(0,j.jsx)(`span`,{onClick:()=>n&&n(`memory`),className:`px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-300 border border-indigo-500/20 font-mono text-[11px] cursor-pointer hover:bg-indigo-500/25`,title:`Click to view decision in Memory`,children:e},e))})]}),e.driftWarning&&(0,j.jsxs)(`div`,{className:`p-2.5 rounded bg-amber-500/10 border border-amber-500/30 text-amber-200 text-[11px]`,children:[`⚠️ `,e.driftWarning]})]})]})]},e.id)})}),a&&(0,j.jsx)(`div`,{className:`fixed inset-0 bg-black/70 backdrop-blur-sm z-50 flex items-center justify-center p-4`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-2xl bg-slate-900 border border-slate-800 rounded-2xl p-6 space-y-5 shadow-2xl`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ce,{className:`w-5 h-5 text-blue-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Weekly Engineering Recap (vf recap)`})]}),(0,j.jsx)(`button`,{onClick:()=>o(!1),className:`text-slate-400 hover:text-white text-sm`,children:`✕`})]}),(0,j.jsxs)(`div`,{className:`space-y-4 text-xs text-slate-300 leading-relaxed font-mono bg-slate-950 p-4 rounded-xl border border-slate-800 max-h-96 overflow-y-auto`,children:[(0,j.jsx)(`p`,{className:`text-indigo-300 font-bold`,children:`# Weekly Context Continuity Recap: VectorForce`}),(0,j.jsx)(`p`,{children:`**Window:** Past 7 days | **Total Checkpoints:** 14 across 3 tasks`}),(0,j.jsxs)(`div`,{className:`space-y-1 border-t border-slate-800 pt-2`,children:[(0,j.jsx)(`p`,{className:`font-bold text-slate-200`,children:`## Milestone Progression`}),(0,j.jsx)(`p`,{children:`• Phase 3 (M2): Stdio MCP bridge for Google Antigravity & Command Code`}),(0,j.jsx)(`p`,{children:`• Phase 4 (M3): Selective export, safe import, cryptographic manifests`}),(0,j.jsx)(`p`,{children:`• Phase 5 (M4): 62 automated tests passing, distribution packaging`}),(0,j.jsx)(`p`,{children:`• Pilot Verification: Command Code drift & prompt injection defense`})]}),(0,j.jsxs)(`div`,{className:`space-y-1 border-t border-slate-800 pt-2`,children:[(0,j.jsx)(`p`,{className:`font-bold text-slate-200`,children:`## Active Decisions`}),(0,j.jsx)(`p`,{children:`• DEC-AI-1: OpenAI-compatible provider abstraction`}),(0,j.jsx)(`p`,{children:`• DEC-AI-2: Ephemeral AI reasoning view`}),(0,j.jsx)(`p`,{children:`• DEC-AUTH-01: SHA-256 Code Challenge (PKCE)`})]})]}),(0,j.jsx)(`div`,{className:`flex justify-end gap-3 pt-2`,children:(0,j.jsx)(`button`,{onClick:()=>o(!1),className:`px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-200 font-medium text-xs`,children:`Close`})})]})})]})}function Wt({projectData:e,onRefreshData:t}){let n=Array.isArray(e?.tasks)?e.tasks:e?.tasks?.list||[],r=Array.isArray(e?.checkpoints)?e.checkpoints:[],[i,a]=(0,_.useState)(`External Reviewer`),[o,s]=(0,_.useState)(n[0]?.task_id||``),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(`any`),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(null),[g,v]=(0,_.useState)(null),[y,b]=(0,_.useState)(null),[x,S]=(0,_.useState)([]),[C,w]=(0,_.useState)(`file`),[T,ee]=(0,_.useState)(``),[E,te]=(0,_.useState)(``),[ne,re]=(0,_.useState)(``),[ie,D]=(0,_.useState)(``),[ae,oe]=(0,_.useState)(!1),[se,ce]=(0,_.useState)(null),[le,de]=(0,_.useState)(null),fe=(0,_.useRef)(null);(0,_.useEffect)(()=>{n.length>0&&(!o||!n.some(e=>e.task_id===o))&&s(n[0].task_id)},[n,o]),(0,_.useEffect)(()=>{fetch(`/api/team`).then(e=>e.json()).then(e=>{e.team&&e.team.length>0&&S(e.team)}).catch(()=>{})},[]);let pe=r.filter(e=>!o||e.task_id===o),me=async()=>{p(!0),h(null);try{let e=await fetch(`/api/handoff/export`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({recipient:i.trim()||`Collaborator`,taskId:o||n[0]?.task_id,checkpointId:c||void 0,destinationHarness:u})}),t=await e.json();if(!e.ok||t.error){h(t.error||`Failed to export handoff package`);return}let r=t.handoff?.checkpoint?.evidence?.documents?.map(e=>e.path)||[`AGENTS.md`],a=t.manifest?.files?.[0]?.sha256||t.receipt?.request_hash||`verified`;v({package_id:t.package_id,bundle_path:t.bundlePath||`~/.vectorforce/handoffs/${t.package_id}.json`,recipient:i.trim()||`Collaborator`,destinationHarness:u,task_id:t.handoff?.origin?.task_id||o,checkpoint_id:t.handoff?.origin?.checkpoint_id||``,sha256:a,timestamp:t.manifest?.created_at||new Date().toISOString(),status:t.receipt?.status||`committed`,docsIncluded:r.length>0?r:[`AGENTS.md`],docsRedacted:[`.env*`,`*.pem`,`id_rsa*`],bundle:t.bundle||{schema_version:`vectorforce/handoff-bundle/v1`,package_id:t.package_id,created_at:t.manifest?.created_at||new Date().toISOString(),manifest:t.manifest,handoff:t.handoff}})}catch(e){h(e.message||`Network error while exporting handoff package`)}finally{p(!1)}},he=()=>{if(!g?.bundle)return;let e=JSON.stringify(g.bundle,null,2),t=new Blob([e],{type:`application/json`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`${g.package_id}.vfhandoff.json`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)},_e=(e,t)=>{navigator.clipboard.writeText(t),b(e),setTimeout(()=>b(null),2e3)},ye=e=>{let t=e.target.files?.[0];if(!t)return;re(t.name),ce(null);let n=new FileReader;n.onload=e=>{te(String(e.target?.result||``))},n.readAsText(t)},be=async()=>{oe(!0),ce(null),de(null);try{let e=C===`path`?{bundlePath:T.trim(),targetTaskId:ie.trim()||void 0}:{bundleContent:E,targetTaskId:ie.trim()||void 0},n=await fetch(`/api/handoff/import`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)}),r=await n.json();if(!n.ok||r.error){ce(r.error||`Failed to import handoff package`);return}de(r),t&&t()}catch(e){ce(e.message||`Failed to import handoff package`)}finally{oe(!1)}},xe=x.length>0?x:e?.team||[];return(0,j.jsxs)(`div`,{className:`p-8 max-w-5xl mx-auto space-y-8`,children:[(0,j.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-slate-800 pb-6`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(jt,{className:`w-6 h-6 text-emerald-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Team & Safe Context Handoff`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Boundary-isolated context sharing across developer harnesses without leaking private credentials.`})]}),(0,j.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,j.jsxs)(`span`,{className:`text-xs px-2.5 py-1 rounded-full bg-emerald-500/10 text-emerald-300 border border-emerald-500/20 font-medium`,children:[xe.length||1,` Registered Author(s)`]})})]}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-5`,children:xe.map((e,t)=>{let n=String(e?.name||`Author ${t+1}`);return(0,j.jsxs)(`div`,{className:`p-5 rounded-2xl glass-panel glass-panel-hover border border-slate-800 space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-gradient-to-tr from-indigo-600 to-purple-600 flex items-center justify-center font-bold text-white text-sm shadow`,children:n.slice(0,2).toUpperCase()}),(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`h3`,{className:`text-sm font-bold text-white`,children:n}),(0,j.jsx)(`p`,{className:`text-[11px] text-slate-400 font-medium`,children:e?.role||`Contributor`})]})]}),(0,j.jsxs)(`div`,{className:`pt-2 border-t border-slate-800/80 space-y-1.5 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex justify-between items-center text-slate-400`,children:[(0,j.jsx)(`span`,{children:`Harness:`}),(0,j.jsx)(`span`,{className:`text-slate-200 font-semibold`,children:e?.harness||`cli`})]}),(0,j.jsxs)(`div`,{className:`flex justify-between items-center text-slate-400`,children:[(0,j.jsx)(`span`,{children:`Tasks:`}),(0,j.jsx)(`span`,{className:`text-indigo-400 font-mono text-[11px]`,children:Array.isArray(e?.tasks)?e.tasks.join(`, `):e?.activeTask||o})]})]})]},n)})}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel border border-slate-700/80 space-y-5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(lt,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Export Boundary-Safe Handoff Package`})]}),(0,j.jsx)(`span`,{className:`text-[11px] font-mono text-emerald-400 bg-emerald-500/10 border border-emerald-500/20 px-2.5 py-0.5 rounded-full`,children:`SHA-256 Manifest Signed`})]}),(0,j.jsxs)(`p`,{className:`text-xs text-slate-300 leading-relaxed`,children:[`VectorForce packages active goals, architectural decisions, and allowlisted documents into an immutable, single-file `,(0,j.jsx)(`code`,{className:`text-indigo-300`,children:`.vfhandoff.json`}),` bundle. Unallowlisted files and secrets are mathematically excluded.`]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4`,children:[(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Target Recipient:`}),(0,j.jsx)(`input`,{type:`text`,value:i,onChange:e=>a(e.target.value),placeholder:`e.g. External Reviewer, Priya (Backend), Security Audit`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500`}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-1.5 pt-1`,children:[`External Reviewer`,`Teammate (Cross-Harness)`,`Security Audit`,`Release Lead`].map(e=>(0,j.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`text-[10px] px-2 py-0.5 rounded-md border transition-colors ${i===e?`bg-indigo-600/20 border-indigo-500/50 text-indigo-300`:`bg-slate-900 border-slate-800 text-slate-400 hover:text-slate-200`}`,children:e},e))})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Active Task Scope:`}),(0,j.jsx)(`select`,{value:o,onChange:e=>{s(e.target.value),l(``)},className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500 font-mono`,children:n.map(e=>(0,j.jsxs)(`option`,{value:e.task_id,children:[e.task_id,` (`,e.title||e.status||`active`,`)`]},e.task_id))})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Checkpoint Snapshot:`}),(0,j.jsxs)(`select`,{value:c,onChange:e=>l(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500 font-mono`,children:[(0,j.jsx)(`option`,{value:``,children:`Latest Head Checkpoint (Auto-Resolve)`}),pe.map((e,t)=>{let n=String(e?.checkpoint_id||e?.id||`cp-${t}`),r=typeof e?.author==`string`?e.author:e?.author?.harness||e?.authorObj?.harness||`cli`;return(0,j.jsxs)(`option`,{value:n,children:[n.slice(0,8),` — [`,r,`] `,String(e?.summary||``).slice(0,48)]},n)})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Target AI Harness:`}),(0,j.jsxs)(`select`,{value:u,onChange:e=>d(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white focus:outline-none focus:border-indigo-500`,children:[(0,j.jsx)(`option`,{value:`any`,children:`Any Harness (Universal Handoff)`}),(0,j.jsx)(`option`,{value:`antigravity`,children:`Google Antigravity (antigravity)`}),(0,j.jsx)(`option`,{value:`muse-code`,children:`Meta Muse (muse-code)`}),(0,j.jsx)(`option`,{value:`command-code`,children:`Claude Code / Command Code (command-code)`}),(0,j.jsx)(`option`,{value:`codex`,children:`OpenAI Codex (codex)`})]})]})]}),m&&(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-rose-500/10 border border-rose-500/30 flex items-center gap-2 text-xs text-rose-300`,children:[(0,j.jsx)(ge,{className:`w-4 h-4 text-rose-400 shrink-0`}),(0,j.jsx)(`span`,{children:m})]}),(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsx)(`button`,{onClick:me,disabled:f,className:`flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-emerald-600 to-teal-600 hover:from-emerald-500 hover:to-teal-500 text-white font-semibold text-xs shadow-lg shadow-emerald-600/20 transition-all hover:scale-105 disabled:opacity-50`,children:f?(0,j.jsx)(`span`,{children:`Generating Package...`}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(Ee,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:`Export Safe Package`})]})})}),g&&(0,j.jsxs)(`div`,{className:`mt-4 p-5 rounded-xl bg-slate-900 border border-emerald-500/30 space-y-4 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,j.jsxs)(`span`,{className:`font-bold text-emerald-400 flex items-center gap-1.5`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsxs)(`span`,{children:[`Package Committed & Verified (`,g.status,`)`]})]}),(0,j.jsx)(`span`,{className:`font-mono text-indigo-300 bg-indigo-500/10 border border-indigo-500/20 px-2.5 py-0.5 rounded-md`,children:g.package_id})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-2 text-[11px] font-mono text-slate-300 bg-slate-950/60 p-3 rounded-lg border border-slate-800`,children:[(0,j.jsxs)(`div`,{className:`truncate`,title:g.bundle_path,children:[`Saved File: `,(0,j.jsx)(`span`,{className:`text-indigo-300`,children:g.bundle_path})]}),(0,j.jsxs)(`div`,{children:[`SHA-256: `,(0,j.jsxs)(`span`,{className:`text-emerald-300`,children:[g.sha256.slice(0,24),`...`]})]}),(0,j.jsxs)(`div`,{children:[`Task / Checkpoint: `,(0,j.jsxs)(`span`,{className:`text-slate-200`,children:[g.task_id,` (`,g.checkpoint_id.slice(0,8),`)`]})]}),(0,j.jsxs)(`div`,{children:[`Recipient / Harness: `,(0,j.jsxs)(`span`,{className:`text-slate-200`,children:[g.recipient,` → `,g.destinationHarness]})]})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2.5 pt-1`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:he,className:`flex items-center gap-1.5 px-3.5 py-2 rounded-lg bg-indigo-600 hover:bg-indigo-500 text-white font-semibold text-xs shadow transition-colors`,children:[(0,j.jsx)(A,{className:`w-3.5 h-3.5`}),(0,j.jsxs)(`span`,{children:[`Download `,g.package_id,`.vfhandoff.json`]})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>_e(`json`,JSON.stringify(g.bundle,null,2)),className:`flex items-center gap-1.5 px-3 py-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 font-medium text-xs border border-slate-700 transition-colors`,children:[y===`json`?(0,j.jsx)(ue,{className:`w-3.5 h-3.5 text-emerald-400`}):(0,j.jsx)(Se,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:y===`json`?`Copied Bundle JSON!`:`Copy Bundle JSON`})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>_e(`cli`,`vf handoff import "${g.bundle_path}"`),className:`flex items-center gap-1.5 px-3 py-2 rounded-lg bg-slate-800 hover:bg-slate-700 text-slate-200 font-medium text-xs border border-slate-700 transition-colors font-mono`,children:[y===`cli`?(0,j.jsx)(ue,{className:`w-3.5 h-3.5 text-emerald-400`}):(0,j.jsx)(Ct,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:y===`cli`?`Copied CLI Command!`:`Copy CLI Import Command`})]})]}),(0,j.jsxs)(`div`,{className:`pt-2 border-t border-slate-800 flex items-center justify-between text-[11px] text-slate-400`,children:[(0,j.jsxs)(`span`,{children:[`Allowlisted Evidence: `,g.docsIncluded.join(`, `)]}),(0,j.jsxs)(`span`,{className:`text-emerald-400 font-medium flex items-center gap-1`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5`}),`Zero Secrets Leaked`]})]})]})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel border border-slate-700/80 space-y-5`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(kt,{className:`w-5 h-5 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Import & Reconcile Teammate Handoff Package`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:()=>w(`file`),className:`px-2.5 py-1 rounded-lg text-xs font-medium transition-colors ${C===`file`?`bg-indigo-600 text-white`:`bg-slate-900 text-slate-400 hover:text-white border border-slate-800`}`,children:`Upload / Paste JSON`}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>w(`path`),className:`px-2.5 py-1 rounded-lg text-xs font-medium transition-colors ${C===`path`?`bg-indigo-600 text-white`:`bg-slate-900 text-slate-400 hover:text-white border border-slate-800`}`,children:`Local File Path`})]})]}),(0,j.jsxs)(`p`,{className:`text-xs text-slate-300 leading-relaxed`,children:[`Import a signed `,(0,j.jsx)(`code`,{className:`text-indigo-300`,children:`.vfhandoff.json`}),` bundle from a teammate. VectorForce verifies the SHA-256 manifest digest before reconciling decisions and constraints into your local SQLite context ledger.`]}),C===`file`?(0,j.jsxs)(`div`,{className:`space-y-3`,children:[(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,j.jsx)(`input`,{ref:fe,type:`file`,accept:`.json,.vfhandoff.json`,onChange:ye,className:`hidden`}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>fe.current?.click(),className:`flex items-center gap-2 px-4 py-2 rounded-xl bg-slate-900 hover:bg-slate-800 text-indigo-300 border border-indigo-500/30 text-xs font-semibold transition-colors`,children:[(0,j.jsx)(A,{className:`w-4 h-4`}),(0,j.jsx)(`span`,{children:`Choose .vfhandoff.json File`})]}),ne&&(0,j.jsxs)(`span`,{className:`text-xs font-mono text-emerald-400`,children:[`Loaded: `,ne]}),g?.bundle&&(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{te(JSON.stringify(g.bundle,null,2)),re(`${g.package_id}.vfhandoff.json`)},className:`text-xs text-slate-400 hover:text-indigo-300 underline`,children:[`Use Just-Exported Bundle (`,g.package_id,`)`]})]}),(0,j.jsx)(`textarea`,{rows:4,value:E,onChange:e=>te(e.target.value),placeholder:`Or paste raw "vectorforce/handoff-bundle/v1" JSON content here...`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-xs font-mono text-slate-200 focus:outline-none focus:border-indigo-500`})]}):(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Bundle File Path on Disk:`}),(0,j.jsx)(`input`,{type:`text`,value:T,onChange:e=>ee(e.target.value),placeholder:`e.g. ~/.vectorforce/handoffs/hand-xxxx.json`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs font-mono text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 items-end`,children:[(0,j.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-400`,children:`Target Task ID (Optional — defaults to origin task):`}),(0,j.jsx)(`input`,{type:`text`,value:ie,onChange:e=>D(e.target.value),placeholder:o||`Leave blank to use package origin task`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs font-mono text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsx)(`div`,{className:`flex justify-end`,children:(0,j.jsxs)(`button`,{type:`button`,onClick:be,disabled:ae||(C===`file`?!E.trim():!T.trim()),className:`flex items-center gap-2 px-5 py-2.5 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-semibold text-xs shadow-lg shadow-indigo-600/20 transition-all disabled:opacity-50`,children:[(0,j.jsx)(kt,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:ae?`Verifying & Importing...`:`Import & Reconcile Context`})]})})]}),se&&(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-rose-500/10 border border-rose-500/30 flex items-center gap-2 text-xs text-rose-300`,children:[(0,j.jsx)(ge,{className:`w-4 h-4 text-rose-400 shrink-0`}),(0,j.jsx)(`span`,{children:se})]}),le&&(0,j.jsxs)(`div`,{className:`p-4 rounded-xl bg-slate-900 border border-emerald-500/30 space-y-2 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsxs)(`span`,{className:`font-bold text-emerald-400 flex items-center gap-1.5`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Handoff Package Verified & Imported into SQLite`})]}),(0,j.jsxs)(`span`,{className:`font-mono text-indigo-300`,children:[`Checkpoint: `,le.importedCheckpointId?.slice(0,8)]})]}),(0,j.jsxs)(`div`,{className:`text-[11px] font-mono text-slate-400`,children:[`Reconciled into Task: `,(0,j.jsx)(`span`,{className:`text-slate-200`,children:le.task?.task_id}),` (`,le.task?.title,`)`]})]})]})]})}var Gt=[{id:`fireworks`,label:`Fireworks AI (Muse Spark Open)`,badge:`#1 Hackathon Priority`,model:`accounts/fireworks/models/muse-spark-open`,baseUrl:`https://api.fireworks.ai/inference/v1`,needsKey:!0},{id:`openrouter`,label:`OpenRouter (Muse Spark Open)`,badge:`Open Weights`,model:`meta/muse-spark-open`,baseUrl:`https://openrouter.ai/api/v1`,needsKey:!0},{id:`muse`,label:`Meta Muse Direct API`,badge:`Official API`,model:`muse-spark-1.3`,baseUrl:`https://api.meta.ai/v1`,needsKey:!0},{id:`ollama`,label:`Local Ollama (100% Private)`,badge:`Zero API Key`,model:`llama3.3`,baseUrl:`http://127.0.0.1:11434`,needsKey:!1},{id:`openai`,label:`OpenAI / Codex`,badge:`Cloud`,model:`gpt-4.1`,baseUrl:`https://api.openai.com/v1`,needsKey:!0},{id:`anthropic`,label:`Anthropic Claude`,badge:`Cloud`,model:`claude-sonnet-4-5`,baseUrl:`https://api.anthropic.com/v1`,needsKey:!0},{id:`byok`,label:`Custom BYOK (vLLM / Groq / Together)`,badge:`Custom URL`,model:`meta-llama/Llama-3.3-70B-Instruct`,baseUrl:`https://api.groq.com/openai/v1`,needsKey:!0}];function Kt({projectData:e,theme:t,onToggleTheme:n,onRefreshData:r}){let[i,a]=(0,_.useState)(e?.ai?.provider||`fireworks`),[o,s]=(0,_.useState)(e?.ai?.model||`accounts/fireworks/models/muse-spark-open`),[c,l]=(0,_.useState)(e?.ai?.baseUrl||`https://api.fireworks.ai/inference/v1`),[u,d]=(0,_.useState)(``),[f,p]=(0,_.useState)(!1),[m,h]=(0,_.useState)(!1),[g,v]=(0,_.useState)(null),[y,b]=(0,_.useState)(e?.allowedDocuments||[`AGENTS.md`]),[x,S]=(0,_.useState)(``),[C,w]=(0,_.useState)(null),[T,ee]=(0,_.useState)(!1),[E,te]=(0,_.useState)(null);(0,_.useEffect)(()=>{async function e(){try{let[e,t]=await Promise.all([fetch(`/api/config/llm`).catch(()=>null),fetch(`/api/memory`).catch(()=>null)]);if(e&&e.ok){let t=await e.json();a(t.provider||`ollama`),s(t.model||`llama3.3`),l(t.baseUrl||`http://127.0.0.1:11434`),p(!!t.hasApiKey)}if(t&&t.ok){let e=await t.json();Array.isArray(e.allowedDocuments)&&b(e.allowedDocuments)}}catch{}}e()},[]);let ne=e=>{a(e.id),s(e.model),l(e.baseUrl),v(null)},re=async e=>{e.preventDefault(),h(!0),v(null);try{let e=await fetch(`/api/config/llm`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({provider:i,model:o,baseUrl:c,apiKey:u})}),t=await e.json();e.ok&&t.ok?(p(!!t.hasApiKey),d(``),v({type:`success`,text:`Saved & activated ${t.provider} (${t.model}) in .vectorforce/config.json`}),r&&r()):v({type:`error`,text:t.error||`Failed to save configuration`})}catch(e){v({type:`error`,text:e.message})}finally{h(!1)}},ie=async e=>{let t=String(e||x).trim();if(t){w(null);try{let e=await fetch(`/api/policy`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({path:t})}),n=await e.json();e.ok&&n.ok&&(b(n.allowedDocuments),S(``),w(`Added "${t}" to document allowlist.`),r&&r())}catch{}}},D=async e=>{try{let t=await fetch(`/api/policy`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({action:`remove`,path:e})}),n=await t.json();t.ok&&n.ok&&(b(n.allowedDocuments),w(`Removed "${e}" from allowlist.`),r&&r())}catch{}};return(0,j.jsxs)(`div`,{className:`p-8 max-w-5xl mx-auto space-y-8`,children:[(0,j.jsx)(`div`,{className:`border-b border-slate-800 pb-6 flex flex-col sm:flex-row sm:items-center justify-between gap-4`,children:(0,j.jsxs)(`div`,{children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(st,{className:`w-6 h-6 text-indigo-400`}),(0,j.jsx)(`h1`,{className:`text-2xl font-extrabold text-white tracking-tight`,children:`Studio Interactive Control & Configuration`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-1`,children:`Configure AI reasoning models (Meta Muse Spark Open, Fireworks, OpenRouter, Ollama, OpenAI, Anthropic, BYOK), document policies, and MCP client configs directly from the UI.`})]})}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-5 border border-indigo-500/20`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(k,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`1. AI Reasoning Model Configuration (No CLI Typing Required)`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono px-2.5 py-1 rounded-full bg-emerald-500/10 text-emerald-400 border border-emerald-500/20`,children:[`Active: `,i,` · `,o]})]}),(0,j.jsxs)(`div`,{className:`space-y-2`,children:[(0,j.jsx)(`label`,{className:`text-xs font-semibold text-slate-300`,children:`Select AI Provider Preset (Click to autofill):`}),(0,j.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2.5`,children:Gt.map(e=>{let t=i===e.id;return(0,j.jsxs)(`button`,{type:`button`,onClick:()=>ne(e),className:`p-3 rounded-xl border text-left transition-all ${t?`bg-indigo-600/20 border-indigo-500 ring-1 ring-indigo-500/40`:`bg-slate-900/70 border-slate-800 hover:border-slate-700`}`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,j.jsx)(`span`,{className:`text-xs font-bold text-white truncate`,children:e.label}),(0,j.jsx)(`span`,{className:`text-[10px] font-semibold px-1.5 py-0.5 rounded bg-indigo-500/15 text-indigo-300 shrink-0`,children:e.badge})]}),(0,j.jsx)(`p`,{className:`text-[11px] font-mono text-slate-400 truncate mt-1`,children:e.model})]},e.id)})})]}),(0,j.jsxs)(`form`,{onSubmit:re,className:`space-y-4 pt-2`,children:[(0,j.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-4 text-xs`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`text-slate-300 font-semibold`,children:`Provider ID:`}),(0,j.jsx)(`input`,{type:`text`,value:i,onChange:e=>a(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`text-slate-300 font-semibold`,children:`Model Identifier:`}),(0,j.jsx)(`input`,{type:`text`,value:o,onChange:e=>s(e.target.value),placeholder:`accounts/fireworks/models/muse-spark-open`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`text-slate-300 font-semibold`,children:`API Base URL:`}),(0,j.jsx)(`input`,{type:`text`,value:c,onChange:e=>l(e.target.value),placeholder:`https://api.fireworks.ai/inference/v1`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]})]}),(0,j.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-end gap-4 text-xs`,children:[(0,j.jsxs)(`div`,{className:`flex-1 space-y-1`,children:[(0,j.jsxs)(`label`,{className:`text-slate-300 font-semibold flex items-center gap-1.5`,children:[(0,j.jsx)(Le,{className:`w-3.5 h-3.5 text-amber-400`}),(0,j.jsxs)(`span`,{children:[`API Key `,i===`ollama`?`(Not required for Local Ollama)`:f?`(Key already saved — enter new key to replace)`:`(Required for cloud reasoning)`]})]}),(0,j.jsx)(`input`,{type:`password`,value:u,onChange:e=>d(e.target.value),placeholder:i===`ollama`?`Local Ollama uses zero API keys`:`Paste API key (stored locally in .vectorforce/config.json)`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`button`,{type:`submit`,disabled:m,className:`px-5 py-2.5 rounded-xl bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-500 hover:to-purple-500 text-white font-bold text-xs shadow-lg shadow-indigo-600/25 flex items-center gap-2 shrink-0 cursor-pointer`,children:[(0,j.jsx)(ht,{className:`w-4 h-4`}),(0,j.jsx)(`span`,{children:m?`Saving...`:`Save & Activate Model`})]})]}),g&&(0,j.jsxs)(`div`,{className:`p-3 rounded-xl text-xs font-medium flex items-center gap-2 ${g.type===`success`?`bg-emerald-500/10 text-emerald-300 border border-emerald-500/30`:`bg-rose-500/10 text-rose-300 border border-rose-500/30`}`,children:[(0,j.jsx)(ve,{className:`w-4 h-4 shrink-0`}),(0,j.jsx)(`span`,{children:g.text})]})]})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(je,{className:`w-5 h-5 text-emerald-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`2. Document Policy Allowlist (Checkpoint Evidence Collection)`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono text-slate-400`,children:[y.length,` file(s) allowlisted`]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400`,children:"Only allowlisted `.md` and `.txt` files (`< 8 KiB` each) are collected and SHA-256 hashed during checkpoints. Add or remove files below without using the CLI:"}),(0,j.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:y.map(e=>(0,j.jsxs)(`div`,{className:`flex items-center gap-2 px-3 py-1.5 rounded-xl bg-slate-900 border border-slate-700 text-xs font-mono text-emerald-300`,children:[(0,j.jsx)(`span`,{children:e}),(0,j.jsx)(`button`,{type:`button`,onClick:()=>D(e),className:`text-slate-500 hover:text-rose-400 transition-colors cursor-pointer`,title:`Remove from allowlist`,children:(0,j.jsx)(Tt,{className:`w-3.5 h-3.5`})})]},e))}),(0,j.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-2 pt-1`,children:[(0,j.jsx)(`input`,{type:`text`,value:x,onChange:e=>S(e.target.value),placeholder:`e.g. ARCHITECTURE.md or docs/spec.md`,className:`flex-1 bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-xs text-white font-mono focus:outline-none focus:border-indigo-500`}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>ie(),className:`px-4 py-2 rounded-xl bg-emerald-600 hover:bg-emerald-500 text-white font-semibold text-xs flex items-center gap-1.5 shrink-0 cursor-pointer`,children:[(0,j.jsx)(Ze,{className:`w-4 h-4`}),(0,j.jsx)(`span`,{children:`Add to Allowlist`})]})]}),(0,j.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-[11px] text-slate-400`,children:[(0,j.jsx)(`span`,{children:`Quick Add:`}),[`AGENTS.md`,`ARCHITECTURE.md`,`README.md`,`SPEC.md`].map(e=>(0,j.jsxs)(`button`,{type:`button`,onClick:()=>ie(e),className:`px-2 py-0.5 rounded bg-slate-900 hover:bg-slate-800 border border-slate-800 text-indigo-300 font-mono cursor-pointer`,children:[`+ `,e]},e))]}),C&&(0,j.jsx)(`p`,{className:`text-xs text-emerald-400 font-medium`,children:C})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(ze,{className:`w-5 h-5 text-amber-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`3. One-Click AI Client MCP Harness Auto-Installer`})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:async()=>{ee(!0);try{let e=await fetch(`/api/config/harnesses`,{method:`POST`}),t=await e.json();e.ok&&t.ok&&te(t.installed||[])}catch{}finally{ee(!1)}},disabled:T,className:`px-4 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-semibold text-xs flex items-center gap-1.5 cursor-pointer`,children:[(0,j.jsx)($e,{className:`w-3.5 h-3.5 ${T?`animate-spin`:``}`}),(0,j.jsx)(`span`,{children:T?`Syncing...`:`Sync All AI Client MCP Configs`})]})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400`,children:"Automatically writes and updates `.agents/mcp_config.json` (Google Antigravity), `.mcp.json` (Claude Code & Command Code), `.muse/mcp_config.json` (Meta Muse), and `.codex/config.toml` (OpenAI Codex)."}),E&&(0,j.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-2.5 pt-1`,children:E.map(e=>(0,j.jsxs)(`div`,{className:`p-3 rounded-xl bg-slate-900 border border-emerald-500/30 text-xs space-y-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-1.5 text-emerald-400 font-bold`,children:[(0,j.jsx)(ve,{className:`w-3.5 h-3.5`}),(0,j.jsx)(`span`,{children:e.harness})]}),(0,j.jsx)(`p`,{className:`font-mono text-[11px] text-slate-400 truncate`,children:e.path})]},e.harness))})]}),(0,j.jsxs)(`div`,{className:`p-6 rounded-2xl glass-panel space-y-4`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(qe,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-sm font-bold text-white`,children:`4. Appearance & Theme`})]}),(0,j.jsxs)(`span`,{className:`text-xs font-mono px-2 py-0.5 rounded bg-indigo-500/10 text-indigo-400 border border-indigo-500/20`,children:[`Active: `,t===`light`?`Light Theme`:`Dark Theme`]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4 pt-1`,children:[(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{t!==`dark`&&n()},className:`p-4 rounded-xl border flex items-center gap-3 transition-all text-left cursor-pointer ${t===`dark`?`bg-indigo-600/15 border-indigo-500/60 ring-2 ring-indigo-500/30 shadow-lg`:`bg-slate-900/60 border-slate-800 hover:border-slate-700`}`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-lg bg-slate-950 border border-slate-800 flex items-center justify-center shrink-0`,children:(0,j.jsx)(Ue,{className:`w-5 h-5 text-indigo-400`})}),(0,j.jsxs)(`div`,{className:`flex-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-sm font-bold text-white`,children:`Dark Mode`}),t===`dark`&&(0,j.jsx)(ve,{className:`w-4 h-4 text-indigo-400`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-0.5`,children:`Deep slate & neon accents`})]})]}),(0,j.jsxs)(`button`,{type:`button`,onClick:()=>{t!==`light`&&n()},className:`p-4 rounded-xl border flex items-center gap-3 transition-all text-left cursor-pointer ${t===`light`?`bg-indigo-50 border-indigo-500/60 ring-2 ring-indigo-500/30 shadow-lg`:`bg-slate-900/60 border-slate-800 hover:border-slate-700`}`,children:[(0,j.jsx)(`div`,{className:`w-10 h-10 rounded-lg bg-slate-100 border border-slate-300 flex items-center justify-center shrink-0`,children:(0,j.jsx)(xt,{className:`w-5 h-5 text-amber-500`})}),(0,j.jsxs)(`div`,{className:`flex-1`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,j.jsx)(`span`,{className:`text-sm font-bold text-white`,children:`Light Mode`}),t===`light`&&(0,j.jsx)(ve,{className:`w-4 h-4 text-indigo-500`})]}),(0,j.jsx)(`p`,{className:`text-xs text-slate-400 mt-0.5`,children:`Crisp, high-contrast daylight`})]})]})]})]})]})}function qt({isOpen:e,onClose:t,onSaveCheckpoint:n,projectData:r}){let i=r?.tasks?.[0]?.task_id||`main`,[a,o]=(0,_.useState)(i),[s,c]=(0,_.useState)(`studio`),[l,u]=(0,_.useState)(``),[d,f]=(0,_.useState)(``),[p,m]=(0,_.useState)(``),[h,g]=(0,_.useState)(`DEC-STUDIO-01`),[v,y]=(0,_.useState)(``),[b,x]=(0,_.useState)(``),[S,C]=(0,_.useState)(``),[w,T]=(0,_.useState)(!1);return(0,_.useEffect)(()=>{r?.tasks?.[0]?.task_id&&o(r.tasks[0].task_id)},[r?.tasks]),e?(0,j.jsx)(`div`,{className:`fixed inset-0 bg-black/75 backdrop-blur-sm z-50 flex items-center justify-center p-4`,children:(0,j.jsxs)(`div`,{className:`w-full max-w-lg bg-[#0d1322] border border-slate-700/80 rounded-2xl p-6 space-y-4 shadow-2xl`,children:[(0,j.jsxs)(`div`,{className:`flex items-center justify-between border-b border-slate-800 pb-3`,children:[(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(Ze,{className:`w-5 h-5 text-indigo-400`}),(0,j.jsx)(`h2`,{className:`text-base font-bold text-white`,children:`Capture Immutable Checkpoint (SQLite WAL)`})]}),(0,j.jsx)(`button`,{onClick:t,className:`text-slate-400 hover:text-white text-sm cursor-pointer`,children:(0,j.jsx)(Nt,{className:`w-4 h-4`})})]}),(0,j.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),l.trim()){T(!0);try{await n({taskId:a.trim(),authorHarness:s,summary:l.trim(),goals:d.trim()?[d.trim()]:[],constraints:p.trim()?[p.trim()]:[],decisions:v.trim()?[{id:h.trim()||`DEC-STUDIO-01`,title:v.trim(),rationale:b.trim()||`Recorded via VectorForce Studio UI`}]:[],nextSteps:S.trim()?[S.trim()]:[],requestedDocuments:Array.isArray(r?.allowedDocuments)?r.allowedDocuments:[]}),u(``),f(``),m(``),y(``),x(``),C(``),t()}finally{T(!1)}}},className:`space-y-3.5 text-xs`,children:[(0,j.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Task ID:`}),(0,j.jsx)(`input`,{type:`text`,value:a,onChange:e=>o(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`,required:!0})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Source Harness / IDE:`}),(0,j.jsxs)(`select`,{value:s,onChange:e=>c(e.target.value),className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`,children:[(0,j.jsx)(`option`,{value:`studio`,children:`VectorForce Studio UI`}),(0,j.jsx)(`option`,{value:`antigravity`,children:`Google Antigravity`}),(0,j.jsx)(`option`,{value:`muse-code`,children:`Meta Muse (muse-code)`}),(0,j.jsx)(`option`,{value:`command-code`,children:`Claude Code / Command Code`}),(0,j.jsx)(`option`,{value:`codex`,children:`OpenAI Codex CLI`})]})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Concise Summary of Work:`}),(0,j.jsx)(`textarea`,{rows:2,value:l,onChange:e=>u(e.target.value),placeholder:`e.g. Implemented promo discount validation and updated Studio model settings`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl p-3 text-white focus:outline-none focus:border-indigo-500`,required:!0})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Active Goal:`}),(0,j.jsx)(`input`,{type:`text`,value:d,onChange:e=>f(e.target.value),placeholder:`e.g. Zero rounding drift`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Invariant Constraint:`}),(0,j.jsx)(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),placeholder:`e.g. Zero external runtime DB`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`})]})]}),(0,j.jsxs)(`div`,{className:`grid grid-cols-3 gap-2`,children:[(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Decision ID:`}),(0,j.jsx)(`input`,{type:`text`,value:h,onChange:e=>g(e.target.value),placeholder:`DEC-01`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-2 text-white font-mono focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Decision Title:`}),(0,j.jsx)(`input`,{type:`text`,value:v,onChange:e=>y(e.target.value),placeholder:`e.g. IntegerCentMath`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-2 text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Rationale:`}),(0,j.jsx)(`input`,{type:`text`,value:b,onChange:e=>x(e.target.value),placeholder:`Why chosen...`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-2.5 py-2 text-white focus:outline-none focus:border-indigo-500`})]})]}),(0,j.jsxs)(`div`,{className:`space-y-1`,children:[(0,j.jsx)(`label`,{className:`font-semibold text-slate-300`,children:`Immediate Next Step:`}),(0,j.jsx)(`input`,{type:`text`,value:S,onChange:e=>C(e.target.value),placeholder:`e.g. Run E2E verification in Command Code`,className:`w-full bg-slate-900 border border-slate-800 rounded-xl px-3 py-2 text-white focus:outline-none focus:border-indigo-500`})]}),(0,j.jsxs)(`div`,{className:`flex items-center justify-between pt-3 border-t border-slate-800`,children:[(0,j.jsxs)(`span`,{className:`text-[11px] text-slate-500 flex items-center gap-1`,children:[(0,j.jsx)(pt,{className:`w-3.5 h-3.5 text-emerald-400`}),(0,j.jsx)(`span`,{children:`Persists directly to .vectorforce/vectorforce.db`})]}),(0,j.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,j.jsx)(`button`,{type:`button`,onClick:t,className:`px-4 py-2 rounded-xl bg-slate-800 hover:bg-slate-700 text-slate-300 font-medium cursor-pointer`,children:`Cancel`}),(0,j.jsx)(`button`,{type:`submit`,disabled:w,className:`px-5 py-2 rounded-xl bg-indigo-600 hover:bg-indigo-500 text-white font-semibold shadow-md shadow-indigo-600/30 cursor-pointer`,children:w?`Committing...`:`Commit Checkpoint`})]})]})]})]})}):null}var Jt={project:{id:`proj-c16f3afcb5712bc2`,name:`VectorForce Studio`,tagline:`AI Engineering Memory for Coding Agents`,canonical_path:`/Users/omprakashprajapat/AgentAI/VectorForce`,created_at:`2026-10-15T09:00:00.000Z`},ai:{connected:!0,provider:`meta-muse`,model:`llama-3.3-70b-versatile`,latency:`184ms`,contextWindow:`128k`},health:{score:94,status:`Healthy`,driftDetected:!1,memoryIntegrity:`Verified`,harnessesConnected:[`Google Antigravity`,`Command Code`]},stats:{filesIndexed:48,symbolsIndexed:1420,allowlistedDocs:6,checkpointsCount:14,decisionsCount:8,activeTasks:3},tasks:[{task_id:`phase-5-pilot`,title:`AI Engineering Memory & Reasoning Layer (Meta Muse Hackathon)`,status:`active`,updated_at:`Just now`,head_checkpoint:`16372985-22a9-4bad-8125-3bcfbc795f53`},{task_id:`feat-oauth`,title:`OAuth2 with PKCE Flow & Ed25519 Signing`,status:`active`,updated_at:`2 hours ago`,head_checkpoint:`66bb6165-28ad-4f27-80a6-ab7e5aa52fe8`},{task_id:`phase-4-handoff`,title:`Cross-Harness Handoff & Safe Reconciliation`,status:`completed`,updated_at:`Yesterday`,head_checkpoint:`86ae9227-aed7-4f31-9425-ae98986bfd83`}],decisions:[{id:`DEC-AI-1`,title:`OpenAI-compatible provider abstraction`,rationale:`Unified fetch-based chat client for cloud Meta Llama / Muse and local Ollama with zero external runtime dependencies.`,taskId:`phase-5-pilot`,timestamp:`2026-10-18T05:04:46Z`},{id:`DEC-AI-2`,title:`Ephemeral AI reasoning view`,rationale:`Reasoning adds no schema change or mutable tables; it remains a read-only semantic synthesis view over immutable checkpoints.`,taskId:`phase-5-pilot`,timestamp:`2026-10-18T05:04:46Z`},{id:`DEC-AI-3`,title:`Deterministic briefing fallback`,rationale:`On model failure or offline mode, degrades cleanly to rule-based briefing rather than failing.`,taskId:`phase-5-pilot`,timestamp:`2026-10-18T05:04:46Z`},{id:`DEC-AUTH-01`,title:`SHA-256 Code Challenge`,rationale:`RFC 7636 compliance for public client authorization flow without third-party auth SDKs.`,taskId:`feat-oauth`,timestamp:`2026-10-17T18:34:20Z`},{id:`DEC-HANDOFF-01`,title:`Cryptographic Handoff Bundle`,rationale:`Single-file JSON envelope containing SHA-256 manifest and safe receipts without document traversal risks.`,taskId:`phase-4-handoff`,timestamp:`2026-10-17T18:09:41Z`},{id:`DEC-MCP-02`,title:`Daemon Lifecycle Decoupling`,rationale:`Decoupled stdio stream shutdown from standard CLI exit; binds cleanup solely to SIGINT/SIGTERM.`,taskId:`phase-3-complete`,timestamp:`2026-10-17T17:51:04Z`}],constraints:[`AI output is an unverified claim and must never be written into ground-truth evidence`,`Zero external runtime dependencies (Node.js built-ins plus global fetch only)`,`Strict document allowlist policy before any file content is captured`,`Safe receipts only: receipts never contain sensitive document bodies or private tokens`,`Preserve Claims vs Evidence distinction across all harnesses`],checkpoints:[{id:`16372985-22a9-4bad-8125-3bcfbc795f53`,task_id:`phase-5-pilot`,timestamp:`Today, 10:34 AM`,author:`omprakashprajapat (Command Code)`,summary:`Built the AI Engineering Memory reasoning layer (vf reason / reason_about_task) for the Meta Muse hackathon: LlmProvider, CodeIndexProvider, and ReasoningService with deterministic fallback.`,commit:`6593b6f`,branch:`main`,status:`committed`,goals:[`Ship AI reasoning layer`,`Zero runtime dependencies`],decisions:[`DEC-AI-1`,`DEC-AI-2`,`DEC-AI-3`],drift:!1},{id:`66bb6165-28ad-4f27-80a6-ab7e5aa52fe8`,task_id:`feat-oauth`,timestamp:`Yesterday, 7:04 PM`,author:`agent (Google Antigravity)`,summary:`OAuth2 PKCE initial architecture committed via live MCP; verified Ed25519 signature algorithm.`,commit:`fc9a2b7`,branch:`main`,status:`committed`,goals:[`Implement PKCE`,`Enforce Ed25519 signing`],decisions:[`DEC-AUTH-01`],drift:!0,driftWarning:`Document 'docs/spec.md' modified on disk (tamper detected)`},{id:`86ae9227-aed7-4f31-9425-ae98986bfd83`,task_id:`phase-4-handoff`,timestamp:`Oct 17, 6:46 PM`,author:`omprakashprajapat (CLI)`,summary:`Phase 4 committed locally to git (commit a1f3f67); selective export and safe import verified.`,commit:`a1f3f67`,branch:`main`,status:`committed`,goals:[`Selective export`,`Safe import`],decisions:[`DEC-HANDOFF-01`],drift:!1},{id:`036f961d-9c30-49d9-98c6-e0cf9f5e6871`,task_id:`phase-3-complete`,timestamp:`Oct 17, 5:51 PM`,author:`omprakashprajapat (CLI)`,summary:`Phase 3 MCP integration verified with Antigravity; resolved daemon lifecycle in vf.js.`,commit:`c6452f0`,branch:`main`,status:`committed`,goals:[`Bidirectional MCP handover`],decisions:[`DEC-MCP-02`],drift:!1}],modules:[{id:`auth-service`,name:`Authentication & PKCE`,category:`Security`,owner:`Om (Antigravity)`,status:`Tamper Flagged`,drift:!0,files:8,decisions:[`DEC-AUTH-01: SHA-256 Code Challenge`],dependencies:[`mcp-bridge`,`context-store`],x:320,y:120,description:`Handles RFC 7636 PKCE authorization flow, token validation, and Ed25519 key signing.`},{id:`ai-reasoning`,name:`AI Reasoning Engine`,category:`AI / Copilot`,owner:`Meta Llama / Muse`,status:`Active`,drift:!1,files:6,decisions:[`DEC-AI-1: OpenAI-compatible abstraction`,`DEC-AI-2: Ephemeral reasoning`],dependencies:[`code-index`,`context-store`,`briefing-engine`],x:600,y:120,description:`Generates grounded continuation narratives, architecture warnings, and ranked next steps.`},{id:`code-index`,name:`Semantic Code Index`,category:`Core`,owner:`VectorForce`,status:`Verified`,drift:!1,files:12,decisions:[`ADR-013: Containment-safe symbols`],dependencies:[`context-store`],x:600,y:320,description:`Indexes workspace AST symbols, classes, functions, and import topologies without external dependencies.`},{id:`briefing-engine`,name:`Briefing & Drift Engine`,category:`Continuity`,owner:`VectorForce`,status:`Verified`,drift:!1,files:4,decisions:[`ADR-003: Portable Checkpoints`,`DEC-MCP-02: DaemonLifecycle`],dependencies:[`context-store`],x:320,y:320,description:`Compares live workspace state with recorded checkpoints to detect git commit and document content drift.`},{id:`context-store`,name:`SQLite Context Store`,category:`Storage`,owner:`Local WAL`,status:`Verified`,drift:!1,files:2,decisions:[`DEC-01: Node:sqlite WAL mode`,`ADR-002: Local-first isolation`],dependencies:[],x:460,y:480,description:`Local-first SQLite database running in WAL mode with parent-linked provenance and zero cloud leaks.`},{id:`mcp-bridge`,name:`Harness MCP Bridge`,category:`Integration`,owner:`Antigravity & Command Code`,status:`Active`,drift:!1,files:4,decisions:[`DEC-MCP-02: Stdio JSON-RPC`],dependencies:[`context-store`,`ai-reasoning`],x:120,y:220,description:`Stdio Model Context Protocol server exposing tool capabilities to Google Antigravity and Command Code.`},{id:`handoff-service`,name:`Safe Handoff & Export`,category:`Security`,owner:`VectorForce`,status:`Verified`,drift:!1,files:3,decisions:[`DEC-HANDOFF-01: Cryptographic Bundle`],dependencies:[`context-store`],x:820,y:220,description:`Exports single-file boundary-isolated context packages with cryptographic manifests for teammates.`}],team:[{name:`Om Prakash Prajapat`,role:`Lead Engineer & Architect`,harness:`Command Code / Antigravity`,avatar:`OP`,activeTask:`AI Engineering Memory`,status:`Active`},{name:`Meta Muse AI`,role:`Autonomous Reasoning Copilot`,harness:`Llama 3.3 70B`,avatar:`AI`,activeTask:`Context Synthesis & Drift Detection`,status:`Synthesizing`},{name:`External Reviewer`,role:`Security Auditor`,harness:`Handoff Bundle Inspector`,avatar:`ER`,activeTask:`Zero-Dependency Audit`,status:`Read Only`}]};function Yt(){let[e,t]=(0,_.useState)(()=>{try{return new URLSearchParams(window.location.search).get(`tab`)||`dashboard`}catch{return`dashboard`}}),[n,r]=(0,_.useState)(`all`),[i,a]=(0,_.useState)(Jt),[o,s]=(0,_.useState)(!1),[c,l]=(0,_.useState)(``),[u,d]=(0,_.useState)(!1),[f,p]=(0,_.useState)(()=>localStorage.getItem(`vf_theme`)||`dark`);(0,_.useEffect)(()=>{f===`light`?(document.documentElement.classList.add(`light`),document.documentElement.classList.remove(`dark`)):(document.documentElement.classList.add(`dark`),document.documentElement.classList.remove(`light`)),localStorage.setItem(`vf_theme`,f)},[f]);let m=()=>{p(e=>e===`light`?`dark`:`light`)},h=async(e=n)=>{try{let t=e&&e!==`all`?`/api/graph?taskId=${encodeURIComponent(e)}`:`/api/graph`,[n,r,i,o]=await Promise.all([fetch(`/api/status`).catch(()=>null),fetch(`/api/memory`).catch(()=>null),fetch(`/api/timeline?days=30`).catch(()=>null),fetch(t).catch(()=>null)]),s=n&&n.ok?await n.json():null,c=r&&r.ok?await r.json():null,l=i&&i.ok?await i.json():null,u=o&&o.ok?await o.json():null;if(s){let e=Array.isArray(l?.checkpoints)?[...l.checkpoints].reverse().map(e=>({id:e.checkpoint_id,checkpoint_id:e.checkpoint_id,task_id:e.task_id,timestamp:e.timestamp?new Date(e.timestamp).toLocaleString():`Recent`,author:`${e.author?.name||`developer`} (${e.author?.harness||`cli`})`,authorObj:e.author||{name:`developer`,harness:`cli`},summary:e.summary||e.claims?.summary||``,commit:e.evidence?.git?.commit_hash?e.evidence.git.commit_hash.slice(0,7):`local`,branch:e.evidence?.git?.branch||`main`,status:`committed`,goals:e.claims?.goals||[],decisions:(e.claims?.decisions||[]).map(e=>e.id),drift:!1})):null;a(t=>({...t,project:{...t.project,name:s.project?.name||t.project.name,id:s.project?.id||t.project.id,canonical_path:s.project?.path||t.project.canonical_path},git:s.git||t.git||{branch:`main`,commit:`HEAD`,isDirty:!1},ai:{...t.ai,...s.ai||{}},tasks:Array.isArray(s.tasks?.list)?s.tasks.list:t.tasks,allowedDocuments:Array.isArray(c?.allowedDocuments)?c.allowedDocuments:t.allowedDocuments,allowedDocsList:Array.isArray(c?.allowedDocsList)?c.allowedDocsList:t.allowedDocsList,topSymbols:Array.isArray(c?.topSymbols)?c.topSymbols:t.topSymbols,modules:Array.isArray(u?.modules)&&u.modules.length>0?u.modules:t.modules,connections:Array.isArray(u?.connections)?u.connections:t.connections,lastCheckpoint:s.lastCheckpoint||t.lastCheckpoint,checkpoints:e&&e.length>0?e:t.checkpoints,decisions:Array.isArray(c?.decisions)&&c.decisions.length>0?c.decisions:t.decisions,constraints:Array.isArray(c?.constraints)&&c.constraints.length>0?c.constraints:t.constraints,stats:{filesIndexed:c?.filesIndexed??t.stats.filesIndexed,symbolsIndexed:c?.symbolsIndexed??t.stats.symbolsIndexed,allowlistedDocs:Array.isArray(c?.allowedDocuments)?c.allowedDocuments.length:t.stats.allowlistedDocs,checkpointsCount:s.checkpointsCount??t.stats.checkpointsCount,decisionsCount:Array.isArray(c?.decisions)?c.decisions.length:t.stats.decisionsCount,activeTasks:s.tasks?.active??t.stats.activeTasks},health:{...t.health,score:s.health?.score??t.health.score,driftDetected:s.health?.driftDetected??t.health.driftDetected}}))}}catch{}},g=e=>{r(e),h(e)};(0,_.useEffect)(()=>{h()},[]);let v=(e=``)=>{l(e),t(`ai`)};return(0,j.jsxs)(`div`,{className:`flex h-screen overflow-hidden font-sans transition-colors duration-200 ${f===`light`?`light bg-slate-50 text-slate-800`:`dark bg-[#090d16] text-slate-100`}`,children:[(0,j.jsx)(Lt,{currentTab:e,setCurrentTab:t,projectData:i}),(0,j.jsxs)(`div`,{className:`flex-1 flex flex-col h-screen overflow-hidden`,children:[(0,j.jsx)(Rt,{projectData:i,theme:f,onToggleTheme:m,onOpenCheckpointModal:()=>s(!0),onTriggerReasoning:v,isScanningDrift:u,onScanDrift:()=>{d(!0),h().finally(()=>{setTimeout(()=>d(!1),500)})},selectedTaskId:n,onSelectTask:g}),(0,j.jsxs)(`main`,{className:`flex-1 overflow-y-auto`,children:[e===`dashboard`&&(0,j.jsx)(zt,{projectData:i,onNavigateToTab:t,onTriggerReasoning:v,onOpenCheckpointModal:()=>s(!0),onRefreshData:h}),e===`graph`&&(0,j.jsx)(Bt,{projectData:i,onTriggerReasoning:v}),e===`ai`&&(0,j.jsx)(Vt,{projectData:i,initialPrompt:c}),e===`memory`&&(0,j.jsx)(Ht,{projectData:i}),e===`timeline`&&(0,j.jsx)(Ut,{projectData:i,onTriggerReasoning:v,onNavigateToTab:t}),e===`team`&&(0,j.jsx)(Wt,{projectData:i,onRefreshData:h}),e===`settings`&&(0,j.jsx)(Kt,{projectData:i,theme:f,onToggleTheme:m,onRefreshData:h})]})]}),(0,j.jsx)(qt,{isOpen:o,onClose:()=>s(!1),onSaveCheckpoint:async e=>{try{if((await fetch(`/api/checkpoint`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)})).ok){await h();return}}catch{}let t={id:`cp-${Date.now().toString(16)}`,task_id:e.taskId,timestamp:`Just now`,author:`You (VectorForce Studio)`,summary:e.summary,commit:`local`,branch:`main`,status:`committed`,goals:e.goals,decisions:e.decisions?.map(e=>e.id)||[],drift:!1};a(e=>({...e,checkpoints:[t,...e.checkpoints||[]],stats:{...e.stats,checkpointsCount:(e.stats?.checkpointsCount||0)+1}}))},projectData:i})]})}(0,v.createRoot)(document.getElementById(`root`)).render((0,j.jsx)(_.StrictMode,{children:(0,j.jsx)(Yt,{})}));
|